* image.c (imagemagick_image_p): Replace bcopy by memcpy.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
dbfe4532
AS
12010-09-04 Andreas Schwab <schwab@linux-m68k.org>
2
3 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
4
6d7cc563
JD
52010-09-02 Jan Djärv <jan.h.d@swipnet.se>
6
7 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
8
9 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
10
11 * xselect.c: Remove declaration of cut-buffer objects and functions.
12 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
13 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
14 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
15 (Fx_rotate_cut_buffers_internal): Remove.
16 (syms_of_xselect): Remove defsubr of above.
17 Remove intern of QCUT_BUFFERn.
18
8f4e9110
SM
192010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
20
21 * cmds.c (Vblink_paren_function): Remove.
22 (internal_self_insert): Make it insert N chars at a time.
23 Don't call blink-paren-function.
24 (Fself_insert_command): Adjust accordingly.
25 (syms_of_cmds): Don't declare blink-paren-function.
26
d419e1d9
KH
272010-08-31 Kenichi Handa <handa@m17n.org>
28
29 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
30 characters.
31
32 * term.c (encode_terminal_code): Fix the previous change.
33 (produce_glyphs): Don't set it->char_to_display here. Don't
34 handle unibyte-display-via-language-environment here.
35 (produce_special_glyphs): Set temp_it.char_to_display before
36 calling produce_glyphs.
37
38 * xdisp.c (get_next_display_element): Set it->char_to_display
39 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
40 characters.
41 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
42 calling PRODUCE_GLYPHS.
43 (append_space_for_newline): Save and store it->char_to_display.
44 Set it->char_to_display before calling PRODUCE_GLYPHS.
45 (extend_face_to_end_of_line): Set it->char_to_display before
46 calling PRODUCE_GLYPHS.
47 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
48 character to its byte value.
49 (get_char_glyph_code): New function.
50 (produce_stretch_glyph): Set it2.char_to_display too before
51 calling x_produce_glyphs.
52 (x_produce_glyphs): Simplify by using the same code for ASCII and
53 non-ASCII characters. Don't set it->char_to_display here. Don't
54 handle unibyte-display-via-language-environment here. For a
55 charater of no glyph, use font->space_width instead of FONT_WIDTH.
56
b819f760
SM
572010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
58
59 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
60
07fa68a7
CY
612010-08-31 Chong Yidong <cyd@stupidchicken.com>
62
63 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
64
cd196f12
SM
652010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
66
67 * marker.c (Fcopy_marker): Make the first arg optional.
68
49a752bb
KH
692010-08-30 Kenichi Handa <handa@m17n.org>
70
71 * composite.c (composition_update_it): Fix computing of
72 cmp_it->width.
73
769ae9e1
KH
742010-08-29 Kenichi Handa <handa@m17n.org>
75
9e69cb05
KH
76 * term.c (encode_terminal_code): Encode byte chars to the
77 correspnding bytes.
78
4520b858
J
792010-08-29 Jan Djärv <jan.h.d@swipnet.se>
80
81 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
82
fe50eb41
KH
832010-08-26 Kenichi Handa <handa@m17n.org>
84
85 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
86 on calling composition_compute_stop_pos.
87
f6aa6ec6
KH
882010-08-25 Kenichi Handa <handa@m17n.org>
89
9dfdbc0a
KH
90 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
91 :otf.
92
f6aa6ec6
KH
93 * composite.c (composition_compute_stop_pos): Don't break
94 composition at PT.
95 (composition_reseat_it): Likewise. Fix calculation of character
96 position starting a composition.
97 (Fcomposition_get_gstring): Don't limit the number of components
98 for automatic composition.
99
ff94e32c
KH
1002010-08-25 Kenichi Handa <handa@m17n.org>
101
102 * composite.c (composition_compute_stop_pos): In forward search,
103 pay attention to the possibility that some character after ENDPOS
104 will be composed with charactrs before ENDPOS.
105
1c409d0b
CY
1062010-08-24 Chong Yidong <cyd@stupidchicken.com>
107
108 * keyboard.c (command_loop_1): Don't clobber primary selection
109 during handle-switch-frame (Bug#6872).
110
0c372655
MA
1112010-08-23 Michael Albinus <michael.albinus@gmx.de>
112
113 * dbusbind.c: Accept UNIX domain sockets as bus address.
114 (Fdbus_close_bus): New function.
115 (Vdbus_registered_buses): New variable.
116 (xd_initialize): Implement string as bus address.
117 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
118 (Fdbus_get_unique_name, Fdbus_call_method)
119 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
120 (Fdbus_method_error_internal, Fdbus_send_signal)
121 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
122 check. This is done in xd_initialize_bus. Adapt doc string, if
123 necessary.
124 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
125 Vdbus_registered_buses.
126 (Vdbus_registered_objects_table): Create hash.
127
7133b7ee
JL
1282010-08-22 Juri Linkov <juri@jurta.org>
129
130 * keyboard.c (Fexecute_extended_command): Move reading a command name
131 with `completing-read' to a new Elisp function `read-extended-command'.
132 Call it to read a command to `function' (bug#5364, bug#5214).
133
198a7a97
CY
1342010-08-22 Chong Yidong <cyd@stupidchicken.com>
135
136 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
137
b0126eac 1382010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
139
140 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
141 instead of SAFE_ALLOCA.
142
b0126eac 1432010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
144
145 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
146 (Bug#6214).
147
b0126eac 1482010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
149
150 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
151
b0126eac
CY
1522010-08-22 Jan Djärv <jan.h.d@swipnet.se>
153
154 * doc.c (Fsnarf_documentation): Initialize skip_file before
155 build-files test.
156
692f3ddc 1572010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 158
692f3ddc
JB
159 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
160 New definitions.
b0126eac
CY
161 (HAVE_TERMIO): Remove.
162
5f2f0bc1
EZ
1632010-08-22 Eli Zaretskii <eliz@gnu.org>
164
b613941b
EZ
165 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
166
a583bbef
EZ
167 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
168 for w32.
169
170 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
171 it's done in nt/config.nt.
172
173 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
174
5f2f0bc1
EZ
175 * unexcoff.c (report_error, make_hdr, write_segment)
176 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
177 Convert argument lists and prototypes to ANSI C.
178 (make_hdr, write_segment): Remove unused variables.
179 (unexec): Remove commented-out line. Initialize `new' to shut up
180 compiler warnings.
181
a7ebc409
DN
1822010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
183
184 Simplify termio code.
185 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
186 HAVE_TERMIO code is obsolete.
187 Replace HAVE_TERMIOS conditionals with !DOS_NT.
188 * systty.h: Do not define HAVE_TCATTR.
189 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
190 Do not define EMACS_HAVE_TTY_PGRP. Only define
191 EMACS_GET_TTY_PGRP for !DOS_NT.
192 * sysdep.c: Include sysselect.h unconditionally. Do not include
193 sys/ioctl.h and termios.h, systty.h does it. Use
194 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
195 (init_baud_rate): Remove HAVE_TERMIO code.
196 (child_setup_tty): Remove HAVE_TERMIO code.
197 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
198 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
199 (new_ltchars, new_tchars): Remove, unused.
200 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
201 code. Remove special casing for __mips__, it was a no-op. Remove
202 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
203 (init_sys_modes): Remove HPUX special case.
204 * process.c: Include stdlib.h unconditionally. Do not include
205 fcntl.h, systty.h does it. Remove conditional code for
206 HAVE_SERIAL, it is always true.
207 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
208 always true when SIGNALS_VIA_CHARACTERS is true.
209 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
210 !WINDOWSNT means HAVE_TERMIOS.
211 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
212 conditional, which is true for all HAVE_TERMIOS systems.
213 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
214 instead of HAVE_TERMIOS.
215 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
216 EMACS_HAVE_TTY_PGRP.
217 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
218 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
219 anyway.
220
40629f17
EZ
2212010-08-21 Eli Zaretskii <eliz@gnu.org>
222
223 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
224 mirroring pixel positions.
225
d931da8c
DN
2262010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
227
b5c76d0c
DN
228 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
229 write only.
230 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
231 malloc_sbrk_used, nothing uses them.
232
74815588
DN
233 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
234 defined, unconditionally defined in lisp.h.
235
f5817d1c
DN
236 * term.c: Do not include <termios.h>, systty.h does it.
237
d931da8c
DN
238 * s/unixware.h (HAVE_TCATTR):
239 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
240 systty.h defines it when HAVE_TERMIOS is defined.
241
ff2de6d2 2422010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 243
b43c883c 244 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 245 terminals: add one-character offset for R2L lines.
b43c883c 246
491a1546
EZ
247 * emacs.c <emacs_version>: Add a comment regarding
248 msdos/mainmake.v2's dependency on the syntax of this declaration.
249
2396cbba
EZ
2502010-08-20 Eli Zaretskii <eliz@gnu.org>
251
252 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
253 position for R2L lines by mirroring the pixel position wrt the
254 text are box. Improve commentary.
255
7df6150a
AS
2562010-08-20 Andreas Schwab <schwab@linux-m68k.org>
257
258 * image.c (imagemagick_clear_image): Remove debugging output.
259
a2e5caf7
SM
2602010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
261
262 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
263 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
264 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
265 self-insert-face.
266 (syms_of_cmds): Initialize the new vars.
267
20d60baf
JR
2682010-08-19 Jason Rumney <jasonr@gnu.org>
269
cc477da7
JR
270 * w32menu.c (set_frame_menubar): Remove call to undefined function.
271
20d60baf
JR
272 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
273
2c0ac867
J
2742010-08-19 Jan Djärv <jan.h.d@swipnet.se>
275
276 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
277
93352106
EZ
2782010-08-18 Eli Zaretskii <eliz@gnu.org>
279
280 * xterm.c (x_draw_bar_cursor):
281 * w32term.c (x_draw_bar_cursor): If the character under cursor is
282 R2L, draw the bar cursor on its right rather than on its left.
283
c785836d
SM
2842010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
285
0193499f
SM
286 * eval.c (Fdefmacro): Only obey one declaration.
287
c785836d
SM
288 * casefiddle.c (casify_region): Setup gl_state.
289
9cb728a5
J
2902010-08-18 Jan Djärv <jan.h.d@swipnet.se>
291
292 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
293
e1e18511
J
2942010-08-18 Jan Djärv <jan.h.d@swipnet.se>
295
296 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
297
64cb6c78
J
2982010-08-18 David De La Harpe Golden <david@harpegolden.net>
299
300 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
301 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
302 QPRIMARY => NXPrimaryPboard.
303 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
304 NXPrimaryPboard => QPRIMARY.
305 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
306 NXSecondaryPboard = SecondarySelection.
307 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
308
0c9b8993
GM
3092010-08-18 Joakim Verona <joakim@verona.se>
310
311 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
312 defined:
313 (imagemagick_image_p): New function to test for ImageMagic image.
314 (imagemagick_load): New function to load ImageMagick image.
315 (imagemagick_load_image): New function, helper for imagemagick_load.
316 (imagemagick-types): New function.
317 (Qimagemagick): New Lisp_object.
318 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 319
c3554f68
SM
3202010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
321
322 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
323 is a string.
324
1ff2e434
J
3252010-08-17 Jan Djärv <jan.h.d@swipnet.se>
326
327 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
328 x_set_tool_bar_position handler.
329
0cc56427
EZ
3302010-08-17 Eli Zaretskii <eliz@gnu.org>
331
332 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
333 x_set_tool_bar_position handler, needed to support changes from
334 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
335
e45a249b
JD
3362010-08-16 Jan Djärv <jan.h.d@swipnet.se>
337
921242c6
J
338 * nsselect.m: include keyboard.h for QPRIMARY, remove its
339 declaration (Bug#6863).
573d150b 340 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 341
e45a249b
JD
342 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
343
344 * keyboard.h (QPRIMARY): Declare (Bug#6864).
345
7c23dd44
CY
3462010-08-16 Chong Yidong <cyd@stupidchicken.com>
347
348 * keyboard.c (command_loop_1): Avoid setting selection twice,
349 since it's done in deactivate-mark as well.
350 (Vselect_active_regions): Change default to t. Replace `lazy'
351 with non-default value `only', meaning only set PRIMARY for
352 temporarily active regions.
353
354 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
355 select-active-regions.
356
0005830c
J
3572010-08-15 Jan Djärv <jan.h.d@swipnet.se>
358
359 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
360 isn't a string.
361
603dfc72
AS
3622010-08-15 Andreas Schwab <schwab@linux-m68k.org>
363
364 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
365
c25ce9d0
J
3662010-08-15 Jan Djärv <jan.h.d@swipnet.se>
367
c3554f68
SM
368 * keyboard.c (parse_tool_bar_item): malloc buf.
369 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
370 new_lbl (Bug#6855).
c25ce9d0 371
5872c762
EZ
3722010-08-14 Eli Zaretskii <eliz@gnu.org>
373
b236615c
EZ
374 * xterm.c (x_draw_stretch_glyph_string):
375 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
376 the cursor on the right edge of the stretch glyph.
377
c3554f68
SM
378 * xdisp.c (window_box_right_offset, window_box_right):
379 Fix commentary.
b236615c 380
5872c762
EZ
381 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
382 direction when point is inside a run of whitespace characters.
383
384 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
385
e66f9a1b
JR
3862010-08-14 Jason Rumney <jasonr@gnu.org>
387
388 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
389
79d6f59e
CY
3902010-08-14 Chong Yidong <cyd@stupidchicken.com>
391
392 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
393
1c9b4129
JR
3942010-08-13 Jason Rumney <jasonr@gnu.org>
395
396 * w32menu.c (simple_dialog_show): Use unicode message box if available.
397 (MessageBoxW_Proc): New function typedef.
398 (unicode-message-box): New function pointer.
399 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
400
2b4e6277
J
4012010-08-13 Jan Djärv <jan.h.d@swipnet.se>
402
403 * frame.h (Qtool_bar_position): Declare.
404
405 * xfns.c (Fx_create_frame): Call x_default_parameter for
406 Qtool_bar_position.
407
94c97d85
EZ
4082010-08-13 Eli Zaretskii <eliz@gnu.org>
409
8ee81892
EZ
410 * unexcoff.c: Remove the parts used when "emacs" is not defined.
411 (report_error, report_error_1): Ditto.
412 (write_segment): Remove "#if 0" unused code.
413 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
414 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
415 (start_of_text): Remove unused function (was used only if NO_REMAP
416 was NOT defined).
417
891ef8f7
EZ
418 * msdos.c (IT_set_face): Fix format string to match argument
419 types.
420 (IT_write_glyphs, IT_note_mode_line_highlight)
421 (IT_set_frame_parameters): Remove unused variables.
422 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
423 (IT_set_terminal_modes): Disambiguate expression in if clause.
424 (Fmsdos_remember_default_colors): Return Qnil.
425 (IT_set_frame_parameters): Add parens to disambiguate boolean
426 expression for logging the cursor type to termscript.
427 (keyboard_layout_list, keypad_translate_map)
428 (grey_key_translate_map): Add braces in inner initializers.
429 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
430 (dos_rawgetc): Remove unused label.
431 (XMenuActivate): Add braces to remove ambiguous `else'.
432 (dos_ttraw): Always return a value.
433 (spawnve): Declare.
434 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
435
436 * dosfns.h (x_set_title): Declare.
437
438 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
439 Remove unused variables.
440
441 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
442 variables.
443 (init_dosfns): Declare get_lim_data.
444 (system_process_attributes): Declare Fget_internal_run_time.
445
38e41e0e
EZ
446 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
447 list to be consistent with menu.h.
448
94c97d85
EZ
449 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
450 warnings due to mixing of "char *" and "const char *".
451
c5683ceb
SM
4522010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
453
454 Introduce a new comment style "c" flag.
455 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
456 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
457 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
458 (syntax_prefix_flag_p): New function.
459 (Fstring_to_syntax): Understand new "c" flag.
460 (Finternal_describe_syntax_value): Recognize new flag; use the
461 SYNTAX_FLAGS_* macros.
462 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
463 comment style to accomodate the new styles.
464 (back_comment, forw_comment, Fforward_comment, scan_lists)
465 (scan_sexps_forward): Update code to obey the new comment style flag.
466
467 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
468
469 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
470
7aee76f4
J
4712010-08-11 Jan Djärv <jan.h.d@swipnet.se>
472
3a46642b
J
473 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
474 first.
94dff98f 475 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
476
477 * gtkutil.h (xg_check_special_colors): Declare.
478
479 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
480 (xg_create_frame_widgets): Connect theme name changes to
481 style_changed_cb.
482
42ca4633
J
483 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
484 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
485 (x_term_init): Use char[] display_opt and name_opt instead of
486 string literal. file is const char*.
487
488 * xsmfns.c (NOSPLASH_OPT): Change to char[].
489 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
490 props. Free them at the end.
491
492 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
493
c5683ceb
SM
494 * xrdb.c (get_system_app): Make path const and use char *p for
495 non-const char.
42ca4633
J
496
497 * xmenu.c (Fx_popup_dialog): error_name is const char*.
498 (xmenu_show): error parameter is const char **. pane_string is const
499 char *.
500 (button_names): Is const char *.
501 (xdialog_show): error_name and pane_string is const.
502
503 * process.h (synch_process_death): Is const char*.
504
505 * w32menu.c (w32_menu_show):
506 * nsmenu.m (ns_menu_show): error parameter is const char **.
507
508 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
509 is const char **.
510
511 * menu.c (Fx_popup_menu): error_name is const.
512
513 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
514 with unsigned char and XtPointer with void *.
515
516 * gtkutil.h: Replace widget_value with struct _widget_value.
517 (enum button_type, struct _widget_value): Remove and use the one from
518 keyboard.h.
519
520 * gtkutil.c (get_utf8_string): Always return an allocated string.
521 Parameter is const.
522 (create_dialog, xg_create_one_menuitem, create_menus)
523 (xg_item_label_same_p, xg_update_menu_item): Free result from
524 get_utf8_string.
525 (xg_separator_p, xg_item_label_same_p): label is const.
526
527 * font.h (font_open_by_name): Make name const.
528
529 * font.c (font_open_by_name): Make name const.
530
531 * floatfns.c (matherr): Use a const char* variable for x->name.
532
533 * emacs.c (main): Pass char[] to putenv instead of literal.
534
535 * callproc.c (synch_process_death): Make const.
536 (Fcall_process): Make signame const.
537
9c5bd55a
J
538 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
539 (addDisplayItemWithImage): Use const char*.
540
541 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
542 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
543
544 * nsfont.m (ns_descriptor_to_entity): Use const char*.
545
546 * keyboard.h (_widget_value): name, value and key are const char*.
547
7aee76f4
J
548 * unexmacosx.c (unexec_error): Use const char *.
549
09d93395
DN
5502010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
551
552 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 553 (font_parse_name, font_open_by_name):
09d93395 554 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 555 (font_parse_name, font_open_by_name): Remove const.
09d93395 556
671d409f
AS
5572010-08-09 Andreas Schwab <schwab@linux-m68k.org>
558
559 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
560 definition.
561
562 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
563 * m/amdx86-64.h: Likewise.
564 * m/arm.h: Likewise.
565 * m/hp800.h: Likewise.
566 * m/ia64.h: Likewise.
567 * m/ibmrs6000.h: Likewise.
568 * m/ibms390.h: Likewise.
569 * m/intel386.h: Likewise.
570 * m/iris4d.h: Likewise.
571 * m/m68k.h: Likewise.
572 * m/macppc.h: Likewise.
573 * m/mips.h: Likewise.
574 * m/sh3.h: Likewise.
575 * m/sparc.h: Likewise.
576 * m/template.h: Likewise.
577 * m/vax.h: Likewise.
578 * m/xtensa.h: Likewise.
579 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
580 WORDS_BIG_ENDIAN.
581 * lisp.h: Likewise.
582 * md5.c: Likewise.
583 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
584
8ea90aa3
DN
5852010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
586
587 Use const char* instead of char*.
588 Reduce the number of warnings with -Wwrite-strings.
589 * xrdb.c (get_environ_db, get_system_name):
590 * unexelf.c (find_section):
591 * term.c (string_cost, string_cost_one_line, per_line_cost)
592 (get_named_tty, init_tty):
593 * sysdep.c (sys_subshell):
594 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
595 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
596 * search.c (Freplace_match):
597 * process.c (Fmake_network_process, send_process, init_process):
598 * lread.c (Fload, init_lread):
599 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
600 * keyboard.c (parse_tool_bar_item, struct event_head):
601 * gtkutil.h (xg_get_font_name):
602 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
603 (make_widget_for_menu_item, make_menu_item, create_menus)
604 (xg_make_tool_item):
605 * font.c (parse_matrix, font_parse_name):
606 * floatfns.c (rounding_driver, float_error_fn_name):
607 * filelock.c (get_boot_time_1, lock_file_1):
608 * fileio.c (barf_or_query_if_file_exists, check_writable):
609 * editfns.c (get_system_name, get_operating_system_release)
610 (Fencode_time, Fset_time_zone_rule):
611 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
612 * buffer.c (defvar_per_buffer): Use const.
613
7815fe19 6142010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 615
692f3ddc 616 * charset.c: Include <stdlib.h>.
7a84eee5
KH
617 (struct charset_sort_data): New struct.
618 (charset_compare): New function.
692f3ddc 619 (Fsort_charsets): New function.
7a84eee5
KH
620 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
621
622 * coding.c (decode_coding_iso_2022): Fix checking of dimension
623 number in CTEXT extended segment.
624
7815fe19 6252010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
626
627 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
628 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
629
7815fe19 6302010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
631
632 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
633 (Fhash_table_size): Fix typos in docstrings.
634 (Fmake_hash_table): Doc fix.
635
7815fe19 6362010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
637
638 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
639 Doc fix (bug#5625).
640
7815fe19 6412010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
642
643 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
644 the MSDOS definition.
645
1b6d8cf0
DN
6462010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
647
675e2c69
DN
648 Use const char* instead of char*.
649 * xterm.c (x_create_toolkit_scroll_bar):
650 * xfont.c (xfont_list_pattern):
651 * xfns.c (x_default_scroll_bar_color_parameter)
652 (xic_create_fontsetname, x_default_font_parameter)
653 (x_screen_planes):
654 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
655 (store_mode_line_string, decode_mode_spec, display_string):
656 * menu.c (digest_single_submenu):
657 * keymap.h (initial_define_key, initial_define_lispy_key):
658 * keymap.c (initial_define_key, initial_define_lispy_key):
659 * image.c (image_error, image_keyword):
660 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
661 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
662 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
663 (ftfont_list, ftfont_match):
664 * frame.c (frame_parm_table):
665 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
666 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
667 (font_add_log, font_deferred_log):
668 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
669 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
670 (font_add_log, font_deferred_log):
671 * emacs.c (argmatch):
672 * dispextern.h (struct it):
673 * coding.c (ENCODE_DESIGNATION):
674 * charset.c (define_charset_internal): Use const.
675
25717ca1
DN
676 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
677
c5683ceb
SM
678 * xrdb.c: Remove include guard.
679 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
680 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
681 realloc->xrealloc instead of using #defines.
682
efb41e21
EZ
6832010-08-08 Eli Zaretskii <eliz@gnu.org>
684
cd21226d 685 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
686 * editfns.c (Fline_beginning_position, Fline_end_position):
687 State in the doc strings that start and end of line are in the
688 logical order.
cd21226d 689
efb41e21
EZ
690 * xdisp.c (display_line): Move the handling of overlay arrow after
691 the call to find_row_edges. (Bug#6699)
692
746812d9
CY
6932010-08-07 Chong Yidong <cyd@stupidchicken.com>
694
695 * keyboard.c (command_loop_1):
696 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
697
9852377f
CY
6982010-08-07 Chong Yidong <cyd@stupidchicken.com>
699
700 * insdel.c (prepare_to_modify_buffer): Save active region text to
701 Vsaved_region_selection.
702
703 * xselect.c (QPRIMARY): Move to keyboard.c.
704
705 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
706 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
707 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 708
0e9c8657
JB
7092010-08-07 Juanma Barranquero <lekktu@gmail.com>
710
711 * alloc.c (lisp_malloc):
712 * buffer.c (set_buffer_internal, set_buffer_internal_1):
713 * charset.h (emacs_mule_charset):
714 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
715 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
716 (bitch_at_user):
717 * lisp.h (Fcheck_coding_system, Fget_text_property)
718 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
719 Remove duplicate declarations.
720
648801d1
DN
7212010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
722
32bc6709
DN
723 * process.c: Simplify include logic.
724
3ef1d108
DN
725 * keyboard.h (quit_char): Add declaration.
726 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
727 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
728 Add declarations.
3ef1d108
DN
729 * sysdep.c:
730 * w32.c: Remove the above declarations.
731
97ec208f
DN
732 Remove extern declarations in .c files, .h files have them.
733 * xterm.c:
734 * xdisp.c:
97ec208f
DN
735 * msdos.c:
736 * image.c:
737 * gtkutil.c:
738 * fileio.c:
739 * eval.c: Remove declarations.
740
94eed851
DN
741 * frame.c (frame_params): Make const.
742
36e053eb
DN
743 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
744
0e843971
DN
745 * emacs.c (emacs_copyright, emacs_version): Make static.
746 (Vinitial_window_system, Vauto_save_list_file_name)
747 (Vinhibit_redisplay): Remove declarations.
748 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
749 for AIX.
750
648801d1
DN
751 Use const for some arrays and functions.
752 * xterm.h (xg_set_icon_from_xpm_data):
753 * xfns.c (xg_set_icon_from_xpm_data):
754 * term.c (fkeys):
755 * keyboard.c (lispy_accent_keys, lispy_function_keys)
756 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
757 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
758 (frame.c frame_parms):
759 * emacs-icon.h (gnu_xpm_bits):
760 * callint.c (callint_argfuns): Use const.
761
8646d999
J
7622010-08-06 Jan Djärv <jan.h.d@swipnet.se>
763
764 * sysdep.c: Move include term.h last of includes (Bug#6812).
765
cb4545ad
EZ
7662010-08-06 Eli Zaretskii <eliz@gnu.org>
767
768 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
769
770 * msdos.c (IT_display_cursor): Log cursor position on termscript.
771
772 * .gdbinit (pgx): Display the avoid_cursor_p flag.
773
da7e2be6
JB
7742010-08-06 Juanma Barranquero <lekktu@gmail.com>
775
776 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
777
3d608a86
J
7782010-08-06 Jan Djärv <jan.h.d@swipnet.se>
779
7908fb60
J
780 * xterm.h (x_get_focus_frame): Declare.
781
782 * keyboard.h (poll_for_input_1): Unconditionally declare.
783
4094bf36
J
784 * nsterm.h (x_set_menu_bar_lines): Declare.
785
786 * window.c: Don't include menu.h, it depends on lots of other .h-files.
787
3d608a86
J
788 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
789
790 * window.c: Include menu.h.
791
792 * unexmacosx.c (print_region_list, print_regions)
793 (build_region_list, find_emacs_zone_regions)
794 (unexec_regions_merge, read_load_commands, dump_it)
795 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
796
797 * term.c: Check HAVE_SYS_IOCTL_H.
798
686b968e 799 * sysdep.c: Check HAVE_TERM_H.
3d608a86 800
686b968e 801 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
802
803 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
804 (ns_ring_bell, ns_defined_color, hide_hourglass)
805 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
806 Convert to ANSI C prototypes.
807 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
808 before code.
809
810 * nsterm.h : Include sysselect.h.
811 (x_sync, x_get_focus_frame, x_set_mouse_position)
812 (x_set_mouse_pixel_position, x_make_frame_visible)
813 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
814 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
815 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
816 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 817 Declare.
3d608a86
J
818
819 * nsmenu.m (popup_activated, name_is_separator)
820 (syms_of_nsmenu): Convert to ANSI C prototypes.
821 (runMenuAt): Prototypes and move declarations before code.
822
823 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
824
825 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
826 prototypes.
827
828 * nsfns.m (have_menus_p, ns_display_info_for_name)
829 (x_set_cursor_type, ns_appkit_version_str)
830 (ns_appkit_version_int, ns_do_applescript)
831 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
832 (syms_of_nsfns): Convert to ANSI C prototypes.
833
834 * menu.h (x_set_menu_bar_line): Declare.
835 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
836
837 * lisp.h (fmod_float): Declare.
838
839 * image.c (xpm_scan, xpm_make_color_table_v)
840 (xpm_put_color_table_v, xpm_get_color_table_v)
841 (xpm_make_color_table_h, xpm_put_color_table_h)
842 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
843 (xpm_load): Convert to ANSI C prototypes.
844
845 * emacs.c: Include nsterm.h if HAVE_NS.
846
847 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
848
fce70521
DN
8492010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
850
851 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
852 subprocesses, only MSDOS does not define HAVE_SOCKETS.
853 (socket_options): Use const char* for name.
854
a11889ab
JB
8552010-08-06 Juanma Barranquero <lekktu@gmail.com>
856
857 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
858
859 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
860 Don't declare xmalloc_widget_value and digest_single_submenu.
861
862 * w32font.c (Qlatin): Remove declaration.
863
864 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
865
c95b508f 866 * dired.c (compile_pattern): Restore declaration.
a11889ab 867
6254cdda
DN
8682010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
869
04bab72c
DN
870 Remove extern declarations in .c files, .h files have them.
871 * data.c:
872 * dired.c:
873 * editfns.c:
874 * filelock.c:
875 * fns.c:
876 * font.c:
877 * fontset.c:
878 * frame.c:
879 * fringe.c:
880 * ftfont.c:
881 * gtkutil.c:
882 * indent.c:
883 * keyboard.c:
884 * keymap.c:
885 * lread.c:
886 * menu.c:
887 * print.c:
888 * search.c:
889 * sound.c:
890 * window.c:
891 * xdisp.c:
892 * xfaces.c:
893 * xfns.c:
894 * xfont.c:
895 * xftfont.c:
896 * xmenu.c:
897 * xterm.c: Remove declarations.
898
dff94ed5
DN
899 Cleanup syssignal.h.
900 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
901 (main_thread): Move down to remove #ifdef.
902 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
903 Remove conditional definition following unconditional ones.
904
99f3388e
DN
905 * lisp.h: Remove HAVE_SHM code, unused.
906 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
907 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
908 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
909 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
910 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
911 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
912 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
913 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
914 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
915 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
916 (Qwindow_scroll_functions, Vafter_load_alist)
917 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
918 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
919 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
920 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
921 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
922 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
923 (initial_argv, last_nonmenu_event, load_in_progress)
924 (noninteractive_need_newline, scroll_margin): Add declarations.
925
926 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
927 declarations, menu.h has them.
928 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
929 (Vinput_method_function, Qinput_method_function)
930 (Qevent_symbol_element_mask, last_event_timestamp):
931 * dispextern.h (Voverflow_newline_into_fringe):
932 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
933 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
934 (syms_of_w32font, syms_of_nsfont):
935 * fontset.h (find_font_encoding, Qlatin):
936 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
937 (Vtool_bar_mode, set_frame_menubar):
938 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
939 * xterm.h (Qx_gtk_map_stock):
940 * keymap.h (meta_prefix_char): Add declarations.
941
9f5dd6f2
DN
942 * term.c: Remove dead code.
943
6254cdda
DN
944 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
945 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
946 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
947 which is what was there before BSD_PGRPS was removed.
948
29cf3e20
EZ
9492010-08-05 Eli Zaretskii <eliz@gnu.org>
950
951 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
952
953 * unexcoff.c: Renamed from unexec.c.
954
aaa0a19a
SM
9552010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
956
957 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
958
8d1d9587
JB
9592010-08-03 Johan Bockgård <bojohan@gnu.org>
960
961 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 962 (Bug#6744)
8d1d9587 963
9a747ba6
JD
9642010-08-02 Jan Djärv <jan.h.d@swipnet.se>
965
4d464ae4
JD
966 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
967 to TRUE if depth of screen is < 16.
968
ac01763e
JD
969 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
970 USE_GTK_TOOLTIP.
e0d62a9b
JB
971 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
972 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 973 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
974 USE_GTK_TOOLTIP.
975 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
976
977 * xterm.h (USE_GTK_TOOLTIP): New define.
978 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
979
9a747ba6
JD
980 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
981 to Control-D (Bug#6771).
982
7b0815ba
JB
9832010-08-02 Juanma Barranquero <lekktu@gmail.com>
984
985 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
986 Wording by Drew Adams <drew.adams@oracle.com>.
987
aa1859f5
J
9882010-08-01 Jan Djärv <jan.h.d@swipnet.se>
989
990 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
991 ttip_lbl.
992
993 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
994 calling gtk_widget_queue_draw.
995 (x_free_frame_resources): Call xg_free_frame_widgets.
996
997 * xfns.c (x_gtk_use_system_tooltips): New variable.
998 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
999 new gtkutil tooltip functions to show the tooltip.
1000 (Fx_hide_tip): Call xg_hide_tooltip.
1001 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1002
1003 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1004 (xg_show_tooltip, xg_hide_tooltip): Declare.
1005
1006 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
1007 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1008 New functions.
aa1859f5
J
1009 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1010 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1011 Remove code that is commented out.
1012
76417ef4
SM
10132010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1014
1015 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1016
16041401
CY
10172010-07-31 Chong Yidong <cyd@stupidchicken.com>
1018
1019 * xselect.c (x_own_selection): Use list4.
1020
2c09a58f
DN
10212010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1022
1023 * buffer.c (Qwindow): Do not define, already defined in data.c.
1024 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1025
59df9fdd 10262010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 1027
59df9fdd
JB
1028 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1029 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1030 * config.in: Undef HAVE_DIRENT_H.
1c97e857 1031 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 1032 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 1033
1b231651
DN
10342010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1035
1036 Rename s/usg5-4.h -> s/usg5-4-common.h.
1037 * s/usg5-4.h: Rename file to ...
1038 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1039 * s/unixware.h:
1040 * s/sol2-6.h:
1041 * s/irix6-5.h: Update includes accordingly.
1042
bfeabdc3
JD
10432010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1044
2ebf1083
J
1045 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1046
bfeabdc3 1047 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
1048 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1049 Remove toolbar_height.
1050 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
1051 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1052 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1053 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1054
1055 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1056
1057 * xfns.c (x_set_tool_bar_position): New function.
1058 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1059 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 1060 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
1061
1062 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1063 and FRAME_TOOLBAR_LEFT_WIDTH.
1064
1065 * gtkutil.h (xg_change_toolbar_position): Declare.
1066
1067 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1068 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1069 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1070 (xg_create_frame_widgets): Create a hobox for placing widgets
1071 vertically. Use gtk_box_pack_start.
1072 (xg_height_or_width_changed): Renamed from xg_height_changed.
1073 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1074 (xg_update_frame_menubar, free_frame_menubar): Change to
1075 xg_height_or_width_changed.
1076 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1077 size correctly. Remove hardcoded 4, instead use handlebox size -
1078 toolbar size.
1079 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 1080 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
1081 (xg_pack_tool_bar): POS is a new parameter.
1082 Set orientation of tool bar based on pos.
1083 Only make handlebox_widget if NULL.
1084 Check if tool bar goes to vbox or hbox depending on pos.
1085 (xg_update_tool_bar_sizes): New function.
686b968e 1086 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
1087 height, call xg_update_tool_bar_sizes instead.
1088 (free_frame_tool_bar): Remove from hbox or vbox depending on
1089 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1090 (xg_change_toolbar_position): New function.
1091
1092 * frame.h (struct frame): Add tool_bar_position.
1093 (Qbottom): Declare.
1094
1095 * frame.c (Qtool_bar_position): New variable.
1096 (make_frame): Set tool_bar_position to Qtop.
1097 (frame_parms): Add tool-bar-position.
1098 (x_report_frame_params): Store tool_bar_position.
1099 (x_set_fringe_width): Reset wm size hint after fringe changes.
1100
26469a38
DN
11012010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1102
1103 Make lisp_time_argument declaration work on all systems.
1104 * lisp.h (lisp_time_argument): Move declaration ...
1105 * systime.h (lisp_time_argument): ... here
1106 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1107
8848b728
JD
11082010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1109
1110 * vm-limit.c (POINTER): Add typedef for it.
1111 (start_of_data): Change return type from POINTER to char *.
1112
1113 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1114 HAVE_WINDOW_SYSTEM.
1115
76fd1ee9
DN
11162010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1117
0441987e
DN
1118 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1119 Remove reference to __osf__, unused.
1120
56a000c7
DN
1121 * mem-limits.h: Remove duplicated includes.
1122 (NULL): Remove definition, unused.
1123 (POINTER): Remove definition.
1124 (start_of_data): Use char* in prototype, as the function
1125 definition does.
1126
e6cba650
DN
1127 Remove extern declarations from .c files, and them to .h files.
1128 * keyboard.h (Qhelp_echo, waiting_for_input)
1129 (input_available_clear_time, ignore_mouse_drag_p)
1130 (Vdouble_click_time, real_this_command, Vthis_original_command):
1131 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1132 (Voverriding_local_map_menu_flag):
1133 * lisp.h (Qinteractive_form, use_file_dialog)
1134 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1135 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1136 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1137 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1138 (Qfunction, debug_on_next_call, Qfield)
1139 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1140 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1141 (Qfile_directory_p, Qinsert_file_contents)
1142 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1143 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1144 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1145 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1146 (Qminibuffer_prompt)
1147 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1148 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1149 (gray_bitmap_bits, xic_create_fontsetname):
1150 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1151
1152 * xsmfns.c (Vuser_login_name):
1153 * xrdb.c (Vdouble_click_time):
1154 * xfaces.c (xic_create_fontsetname):
1155 * w32select.c (waiting_for_input):
1156 * print.c (minibuffer_auto_raise):
1157 * msdos.c (Qhelp_echo):
1158 * macros.c (real_this_command):
1159 * keymap.c (Voverriding_local_map):
1160 * xterm.c (poll_for_input_1, gray_bitmap_width)
1161 (gray_bitmap_height, gray_bitmap_bits;
1162 * xmenu.c ( Voverriding_local_map)
1163 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1164 (use_file_dialog, Xt_app_con):
1165 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1166 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1167 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1168 (Qtool_bar_lines, ignore_mouse_drag_p):
1169 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1170 (Qrear_nonsticky, nconc2):
1171 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1172 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1173 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1174 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1175 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1176 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1177 (gc_in_progress):
1178 * doc.c (Voverriding_local_map, Qremap):
1179 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1180 (Vcompletion_regexp_list):
1181 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1182 (Qcompletion_ignore_case):
1183 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1184 (Vhistory_length, Vthis_original_command, real_this_command)
1185 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1186 * image.c (Qrisky_local_variable):
1187 * fontset.c (QCname):
1188 * fns.c (minibuffer_auto_raise, QCname):
1189 * dispnew.c (char_ins_del_cost):
1190 * composite.c (font_fill_lglyph_metrics):
1191 * cmds.c (Qface, Vtranslation_table_for_input):
1192 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1193 * ccl.c (charset_unicode):
1194 * callproc.c (Vtemporary_file_directory):
1195 * buffer.c (emacs_strerror): Remove extern declarations.
1196
1197 * data.c (Qwindow): Make non-static, used from other files too.
1198 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1199
76fd1ee9
DN
1200 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1201 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1202 * s/usg5-4.h (COFF):
1203 * s/template.h:
1204 * s/msdos.h (COFF, NO_REMAP):
1205 * s/ms-w32.h (NO_REMAP):
1206 * s/hpux10-20.h (NO_REMAP):
1207 * m/sparc.h (SEGMENT_MASK):
1208 * m/m68k.h (NO_REMAP):
1209 * m/intel386.h (SEGMENT_MASK):
1210 * m/arm.h (NO_REMAP):
1211 * m/alpha.h (COFF):
1212 * m/template.h: Remove references to unused defines.
1213
8a52f00a
JD
12142010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1215
1216 * xsettings.c (Ftool_bar_get_system_style): Also check for
1217 Qtext_image_horiz.
1218
1219 * xdisp.c (Qtext_image_horiz): Define.
1220 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 1221 to documentation of tool-bar-style.
8a52f00a
JD
1222
1223 * lisp.h (Qtext_image_horiz): Declare.
1224
1225 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1226 style text_image_horiz.
1227
89dc303e
DN
12282010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1229
60799703
DN
1230 * emacs.c (Fkill_emacs): Remove return statement.
1231
37254dc1
DN
1232 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1233 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1234 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1235 local extern declarations.
1236
71c7345a
DN
1237 * xmenu.c: Do not included lwlib.h, not needed.
1238
6ba577cb
DN
1239 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1240
fdb183d6
DN
1241 * process.c: Move definitions earlier to minimize #ifdefs.
1242
1243 * xterm.h (x_get_customization_string, x_load_resources)
1244 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1245 (x_check_errors, x_property_data_to_lisp, defined_color)
1246 (xic_set_xfontset, x_defined_color): Use const.
1247
1248 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1249 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1250
1251 * xselect.c (selection_data_to_lisp_data)
1252 (x_property_data_to_lisp):
1253 * xrdb.c (x_get_string_resource, file_p)
1254 (x_get_customization_string, magic_file_p, search_magic_path)
1255 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1256 (x_get_string_resource): Use const.
1257
1258 * xfns.c: Include xlwmenu.h when USE_LUCID.
1259 (x_defined_color, xic_set_xfontset): Use const.
1260 (Fx_hide_tip): Remove local extern declaration.
1261
1262 * xfaces.c (Qmouse_face): Remove declaration.
1263 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 1264 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
1265
1266 * xdisp.c (do_mouse_tracking): Remove declaration.
1267 (add_to_log): Use const.
1268
1269 * minibuf.c (Qmouse_face): Remove declaration.
1270
1271 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1272
1273 * keyboard.h (do_mouse_tracking): Add declaration.
1274
1275 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1276 (QCdata, QCtype, Qcenter): Remove declarations.
1277
1278 * frame.c (x_get_resource_string, x_get_string_resource)
1279 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1280 (x_default_parameter): Use const.
1281
1282 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1283 (QCheight, QCsize, QCname): Remove declarations.
1284
1285 * emacs.c (main): Remove local extern declaration.
1286
1287 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1288 declarations.
1289
1290 * dispnew.c: Remove duplicate #include <unistd.h>.
1291 (update_window, update_frame_1, init_display): Remove local extern
1292 declarations.
1293
1294 * dispextern.h (add_to_log): Remove declaration.
1295 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1296 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1297
1298 * dired.c (scmp): Add const.
1299 (directory_files_internal): Remove local extern declaration.
1300
1301 * data.c (Finteractive_form): Use const.
1302
1303 * composite.c (syms_of_composite): Remove local extern declarations.
1304
1305 * charset.c (add_to_log): Remove declaration.
1306
1307 * character.c (strwidth, parse_str_to_multibyte): Add const.
1308
1309 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1310
1311 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1312
89dc303e 1313 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
1314 (Lisp_Subr): Make doc and intspec constant.
1315 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1316 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1317 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1318 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1319 (display_arg): Add declarations.
89dc303e 1320
0ed082fe 13212010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
1322
1323 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1324
0ed082fe
JB
1325 * window.c (Fwindow_height): Doc fix (bug#6518).
1326
13272010-07-27 Juanma Barranquero <lekktu@gmail.com>
1328
1329 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1330
ccaf0336
DN
13312010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1332
977105dc
DN
1333 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1334 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1335 functions.
1336
f5ada890
DN
1337 * frame.h (Qtty_color_mode): Add declaration.
1338
ccaf0336
DN
1339 * lisp.h (Ftop_level, Fexit_recursive_edit)
1340 (Fabort_recursive_edit): Mark as NO_RETURN.
1341
dfe3c90f
KH
13422010-07-26 Kenichi Handa <handa@m17n.org>
1343
1344 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 1345 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 1346
7d383292
JB
13472010-07-26 Juanma Barranquero <lekktu@gmail.com>
1348
1349 * lread.c (unreadpure, mapatoms_1): Make static.
1350
da31e629
JB
13512010-07-25 Juanma Barranquero <lekktu@gmail.com>
1352
1353 * terminfo.c (tparam): Fix prototype of tparm.
1354
7bfa6d77
AS
13552010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1356
dcc19aac
AS
1357 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1358 find start of text segment.
1359 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1360 is defined.
1361
7bfa6d77
AS
1362 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1363
63f9a672
KB
13642010-07-25 Ken Brown <kbrown@cornell.edu>
1365
1366 * vm-limit.c (check_memory_limits): Fix previous change;
1367 accidentally reverted an earlier change.
1368
24933075
KB
13692010-07-25 Ken Brown <kbrown@cornell.edu>
1370
1371 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1372 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1373
361358ea
JB
13742010-07-25 Juanma Barranquero <lekktu@gmail.com>
1375
1376 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1377 * dired.c (opendir, readdir): Fix prototypes.
1378 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1379 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1380 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1381 (telldir): Remove declaration.
1382 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1383 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1384 * syssignal.h (strsignal): Fix prototype.
1385 * term.c (tparam): Fix prototype.
1386 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1387 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1388 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1389 and __morecore.
1390 * w32gui.h (XParseGeometry): Fix prototype.
1391 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1392 * w32term.c (my_set_focus): Declare inside #if 0.
1393 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1394 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1395 (drain_message_queue, get_next_msg, post_msg, parse_button)
1396 (ClipboardSequence_Proc): Fix prototypes.
1397 (wait_for_sync): Remove declaration.
1398
630b9592
JB
13992010-07-24 Juanma Barranquero <lekktu@gmail.com>
1400
1401 * w32fns.c (w32_to_x_color): Remove, unused.
1402
6a0d6611
AS
14032010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1404
1405 * lisp.h: Remove leftover P_.
1406
4e8608ff
DN
14072010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1408
1409 * ecrt0.c, unexalpha.c: Remove files, unused.
1410
c8197983
AS
14112010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1412
1413 * cmds.c (internal_self_insert): Make static.
1414 * lisp.h (internal_self_insert): Remove declaration.
1415
97b372d7
JB
14162010-07-23 Juanma Barranquero <lekktu@gmail.com>
1417
33ac0414
JB
1418 * alloc.c (free_float):
1419 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1420 * frame.c (delete_frame_handler):
1421 * ralloc.c (reorder_bloc):
1422 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1423 Remove unused static functions.
1424
94da8397
JB
1425 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1426 it is called only from NS code.
1427
2e6c8532
JB
1428 * w32term.c (my_set_focus): #ifdef away; it is called only from
1429 "#ifdef 0" code.
1430
97b372d7
JB
1431 * w32fns.c (x_edge_detection):
1432 * xfaces.c (may_use_scalable_font_p):
1433 Remove obsolete static declarations.
1434
7c3320d8
JB
14352010-07-20 Juanma Barranquero <lekktu@gmail.com>
1436
1437 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1438 (emacs_blocked_realloc, uninterrupt_malloc):
1439 * fringe.c (w32_reset_fringes):
1440 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1441 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1442 * sound.c (be2hs, do_play_sound):
1443 * vm-limit.c (get_lim_data, ret_lim_data):
1444 * w32term.c (x_free_frame_resources):
1445 * xfaces.c (x_create_gc, x_free_gc):
1446 Convert definitions to standard C.
1447
d5273788
SM
14482010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1449
1450 * eval.c (Feval, Ffuncall): Use the new names.
1451
1452 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1453 (DEFUN): Add braces around the union initialisation and use ## to
1454 specify the right union alternative and avoid a cast.
1455
8d16a259
JB
14562010-07-18 Juanma Barranquero <lekktu@gmail.com>
1457
1458 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1459
3b8eff32
CY
14602010-07-17 Chong Yidong <cyd@stupidchicken.com>
1461
1462 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1463
499322ce
J
14642010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1465
1466 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1467 is related to the menu bar (Bug#6499).
a628ad9d 1468 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 1469
f6003da5 14702010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
1471
1472 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1473
1474 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1475
1476 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1477 i.e. don't put back ButtonRelease (Bug#6608).
1478
1479 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1480 instead of Window. Call xg_event_is_for_menubar when
1481 USE_GTK (Bug#6499).
1482
1483 * gtkutil.h (xg_event_is_for_menubar): Declare.
1484
1485 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1486
f6003da5 14872010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
1488
1489 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1490 when it's the same as the old foreground. (Bug#6609)
1491
23243f29
J
14922010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1493
1494 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1495 widget is non-null (Bug#6645).
1496
2b23d2a6
AS
14972010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1498
01b564ff
AS
1499 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1500 Convert old-style definition.
1501
2b23d2a6
AS
1502 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1503 timestamp argument.
1504
c4affd2c
EZ
15052010-07-15 Eli Zaretskii <eliz@gnu.org>
1506
1507 * fringe.c (update_window_fringes): Restore mistakenly reverted
1508 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1509
cf28cebc
J
15102010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1511
1512 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1513 (SET_SAVED_KEY_EVENT): Remove (not used).
1514 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1515 remove size parameter.
1516 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1517 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1518 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1519 ButtonRelease.
6b2c4bd9
J
1520 (x_set_window_size_1): scroll_bar_actual_width is always
1521 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
1522
1523 * xdisp.c (pending_menu_activation): Remove extern declaration.
1524 (prepare_menu_bars): Remove setting of pending_menu_activation.
1525
1526 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
1527 (x_activate_menubar): Set popup_activated_flag for Xt also.
1528 Remove setting of pending_menu_activation.
cf28cebc
J
1529 (set_frame_menubar): Remove check of pending_menu_activation.
1530 Declare menubar_size before code. Correct spelling in comment.
1531
f6c1c771
KH
15322010-07-14 Kenichi Handa <handa@m17n.org>
1533
1534 * font.c (font_open_entity): Cancel previous change.
1535 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1536
20477505
EZ
15372010-07-13 Eli Zaretskii <eliz@gnu.org>
1538
77defa9a
EZ
1539 Remove subprocesses #ifdefs.
1540 * process.c <inhibit_sentinels>: Move to the common part.
1541 (Fwaiting_for_user_input_p): Move to the common part; return nil
1542 if async subprocesses aren't supported.
1543 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1544 MS-DOS. Remove "#ifdef subprocesses".
1545 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1546 (gettimeofday): Remove "#ifdef subprocesses".
1547 (wait_without_blocking): Remove function.
1548 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1549 Remove "#ifdef subprocesses".
1550 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1551 compiled on MS-DOS.
1552 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1553 wait_for_termination on MS-DOS.
1554 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1555 initialization of inhibit_sentinels.
1556 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1557 subprocesses" conditional.
1558 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1559 wait_for_termination, since `buffer' cannot be an integer when
1560 async subprocesses are not supported
1561 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1562 for ifdefing away the call to Fprocess_status.
1563
20477505
EZ
1564 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1565 away the entire body of the function.
1566
b3ffc17c
DN
15672010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1568
01faa934
DN
1569 Remove subprocesses #ifdefs from term.c.
1570 * process.c (add_keyboard_wait_descriptor)
1571 (delete_keyboard_wait_descriptor): Move to common section, do
1572 nothing when subprocesses is not defined.
a628ad9d
JB
1573 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1574 Remove subprocesses #ifdefs.
01faa934 1575
b3ffc17c
DN
1576 Convert maybe_fatal to standard C.
1577 * lisp.h (verror): Declare.
1578 * eval.c (verror): New function containing the code from ...
1579 (error): ... this. Call verror.
1580 * term.c (vfatal): New function containing the code from ...
1581 (fatal): ... this. Call vfatal.
1582 (maybe_fatal): Convert to standard C, use variable number of
1583 arguments. Declare as non-return.
1584 (init_tty): Fix maybe_fatal call.
1585
0521f580
DN
15862010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1587
1588 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1589 (_scroll_bar_note_movement): Convert definitions to standard C.
1590 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1591 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1592
ebd15611
DN
15932010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1594
1595 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1596 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1597 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1598 (xaw_jump_callback, xaw_scroll_callback)
1599 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1600 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1601 definitions to standard C.
1602 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1603 (popup_activate_callback, popup_deactivate_callback)
1604 (menu_highlight_callback, menubar_selection_callback)
1605 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1606 (free_frame_menubar, popup_selection_callback, as)
1607 (create_and_show_popup_menu, dialog_selection_callback)
1608 (create_and_show_dialog):
1609 * xfns.c (hack_wm_protocols, x_window):
1610 * xfaces.c (x_update_menu_appearance):
1611 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1612 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1613 (set_frame_size, update_wm_hints, setup_frame_gcs)
1614 (update_various_frame_slots, update_from_various_frame_slots)
1615 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1616 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1617 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1618
de06a2dd
AS
16192010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1620
a628ad9d 1621 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 1622
fc549af9
EZ
16232010-07-12 Eli Zaretskii <eliz@gnu.org>
1624
1625 * process.c (setup_process_coding_systems): Move to the part
1626 shared by non-subprocesses systems, and make its body empty when
1627 subprocesses is not defined.
1628 (close_process_descs): Move to the part shared by non-subprocesses
1629 systems.
1408902e
EZ
1630 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1631 ANSI C.
fc549af9 1632
d5a3eaaf
AS
16332010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1634
1635 * editfns.c (transpose_markers): Convert old-style definition.
1636 * emacs.c (abort, shut_down_emacs, fixup_locale)
1637 (synchronize_system_time_locale)
1638 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1639 * floatfns.c (extract_float, matherr, init_floatfns)
1640 (syms_of_floatfns): Likewise.
1641 * fns.c (make_hash_table): Likewise.
1642 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1643 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1644 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1645 (ftfont_variation_glyphs): Likewise.
1646 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1647 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1648 * lread.c (read_filtered_event): Likewise.
1649 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1650 * process.c (wait_reading_process_output): Likewise.
1651 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1652 * search.c (search_buffer, boyer_moore): Likewise.
1653 * syntax.c (scan_sexps_forward): Likewise.
1654 * xdisp.c (try_scrolling): Likewise.
1655 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1656 (face_at_string_position): Likewise.
1657 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1658 * xselect.c (x_get_window_property, receive_incremental_selection)
1659 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1660 Likewise.
1661 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1662
6f704c76
DN
16632010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1664
ded80a25
DN
1665 * callproc.c (child_setup): Remove subprocesses conditional.
1666 Remove code dealing with SET_EMACS_PRIORITY, unused.
1667
49d937f4 1668 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
1669 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1670
1671 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1672 (__do_global_dtors, __main): Use void in definition.
1673 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1674 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1675 the only users from ...
1676 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1677 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1678 (HAVE_VOLATILE): Remove, unused.
1679
6f704c76
DN
1680 Convert more function definitions to standard C.
1681 * xdisp.c (window_box_edges, handle_single_display_spec)
1682 (display_string): Convert definition to standard C.
1683 * scroll.c (do_direct_scrolling, scrolling_1):
1684 * dispnew.c (allocate_matrices_for_frame_redisplay)
1685 (mirrored_line_dance):
1686 * coding.c (code_convert_string):
1687 * charset.c (map_charset_chars):
1688 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1689 (Fregister_ccl_program, Fregister_code_conversion_map):
1690 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1691 (head_table): Make static and const.
1692
e6cfa7c3
AS
16932010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1694
1695 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1696 (PROFILING_LDFLAGS): Set from substitution.
1697 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1698 CFLAGS last.
1699
892dd565
KH
17002010-07-12 Kenichi Handa <handa@m17n.org>
1701
6f2cdcd1
KH
1702 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1703 (shortlisp): Likewise.
1704
892dd565
KH
1705 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1706
1707 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1708 of FONT_ENTITY_INDEX.
1709 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1710 property, get the property value dynamically.
1711 (Ffont_put): Accept font-entity and font-object too.
1712 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1713 return value changed.
1714 (syms_of_font): Adjusted for the above change.
1715
ae96d47a
AS
17162010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1717
c8fc18ee
AS
1718 * blockinput.h: Remove obsolete comment.
1719
89887d67
AS
1720 * lisp.h: Include <stddef.h>.
1721 (OFFSETOF): Don't define.
1722 (VECSIZE): Use offsetof instead of OFFSETOF.
1723 (PSEUDOVECSIZE): Likewise.
1724 * process.c (conv_sockaddr_to_lisp): Likewise.
1725 * alloc.c: Don't include <stddef.h>.
1726 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1727
ae96d47a
AS
1728 * process.c: Remove obsolete comment.
1729
635c0aa1
CY
17302010-07-11 Chong Yidong <cyd@stupidchicken.com>
1731
1732 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1733
a64df650
AS
17342010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1735
8966b757
AS
1736 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1737 index, rindex.
1738 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1739 * editfns.c (Fuser_full_name, Fformat): Likewise.
1740 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1741 * fileio.c (Ffile_symlink_p): Likewise.
1742 * filelock.c (current_lock_owner): Likewise.
1743 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1744 * fontset.c (fontset_pattern_regexp): Likewise.
1745 * lread.c (read1): Likewise.
1746 * sysdep.c (init_system_name): Likewise.
1747 * xfns.c (select_visual): Likewise.
1748 * s/hpux10-20.h (index, rindex): Don't define.
1749 * s/ms-w32.h (index): Likewise.
1750 * s/usg5-4.h: Likewise.
1751
cf237e27
AS
1752 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1753
a8fe7202
AS
1754 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1755 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1756 (egetenv): Likewise.
1757 * doprnt.c (doprnt): Likewise.
1758 * editfns.c (set_time_zone_rule, format2): Likewise.
1759 * emacs.c (decode_env_path): Likewise.
1760 * eval.c (signal_error, error): Likewise.
1761 * insdel.c (replace_range_2): Likewise.
1762 * keyboard.c (cmd_error_internal): Likewise.
1763 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1764 * print.c (write_string, write_string_1, print_error_message):
1765 Likewise.
1766 * vm-limit.c (warn_function, memory_warnings): Likewise.
1767 * xdisp.c (message1, message1_nolog, message_with_string)
1768 (vmessage, message, message_nolog): Likewise.
1769 * emacs.c: Remove duplicate declaration.
1770 * keyboard.h: Likewise.
1771 * lisp.h: Update prototypes.
1772
bb8e180f
AS
1773 * eval.c: Fix indentation problem.
1774
83380e65
AS
1775 * keyboard.c: Include "process.h"
1776
a64df650
AS
1777 * eval.c: Remove obsolete noinline declaration.
1778 * fns.c: Likewise.
1779
6a8033e1
KR
17802010-07-11 Ken Raeburn <raeburn@raeburn.org>
1781
1782 * doprnt.c (doprnt): Take a va_list argument instead of count and
1783 pointer.
1784 * eval.c (error): Change to a standard-C variadic function.
1785 * xdisp.c (vmessage): Renamed from message, made static, and
1786 changed to take a va_list argument.
1787 (message): New variadic wrapper.
1788 (message_nolog): Now a variadic function, calling vmessage.
1789 * lisp.h: Include stdarg.h for va_list.
1790 (doprnt, error, message, message_nolog): Decls updated.
1791
462aa963
EZ
17922010-07-11 Eli Zaretskii <eliz@gnu.org>
1793
1794 * process.c (syms_of_process) <delete-exited-processes>: Define
1795 even if !subprocesses.
1796 (delete_exited_processes): Ditto.
1797
1798 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1799 (delete_exited_processes): Don't define.
1800
48104462
CY
18012010-07-10 Chong Yidong <cyd@stupidchicken.com>
1802
1803 * frame.c (make_frame): Initialize menu_bar_lines and
1804 tool_bar_lines members.
1805 (make_initial_frame, make_terminal_frame): Initialize
1806 menu_bar_lines using value of menu-bar-mode.
1807
1808 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1809
f388c88a
EZ
18102010-07-10 Eli Zaretskii <eliz@gnu.org>
1811
1812 * process.c: Reshuffle #include's. Condition some of the global
1813 and static variables on `subprocesses'.
1814 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1815 Leave only one implementation.
1816 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1817 (kill_buffer_processes, Flist_system_processes)
1818 (Fprocess_attributes, init_process, syms_of_process): Unify the
1819 implementations for with subprocesses and without them.
1820
723f5a07
J
18212010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1822
1823 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1824 correct size for Motif.
1825 (free_frame_menubar): Call x_set_window_size to update frame size.
1826
1827 * xfns.c (x_window): Set borderWidth to 0 for pane and
1828 EmacsFrame. Frame size calculation is wrong otherwise.
1829
2536a4b7
MA
18302010-07-09 Michael Albinus <michael.albinus@gmx.de>
1831
1832 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1833 allows to suppress errors when polling in Emacs' main loop.
1834 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1835 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1836 (Fdbus_method_error_internal, Fdbus_send_signal)
1837 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1838 (Fdbus_register_method): Use it. (Bug#6579)
1839
5842a27b
DN
18402010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1841
1842 * alloc.c: Convert DEFUNs to standard C.
1843 * buffer.c:
1844 * bytecode.c:
1845 * callint.c:
1846 * callproc.c:
1847 * casefiddle.c:
1848 * casetab.c:
1849 * category.c:
1850 * character.c:
1851 * charset.c:
1852 * chartab.c:
1853 * cmds.c:
1854 * coding.c:
1855 * composite.c:
1856 * data.c:
1857 * dbusbind.c:
1858 * dired.c:
1859 * dispnew.c:
1860 * doc.c:
1861 * dosfns.c:
1862 * editfns.c:
1863 * emacs.c:
1864 * eval.c:
1865 * fileio.c:
1866 * filelock.c:
1867 * floatfns.c:
1868 * fns.c:
1869 * font.c:
1870 * fontset.c:
1871 * frame.c:
1872 * fringe.c:
1873 * image.c:
1874 * indent.c:
1875 * insdel.c:
1876 * keyboard.c:
1877 * keymap.c:
1878 * lread.c:
1879 * macros.c:
1880 * marker.c:
1881 * menu.c:
1882 * minibuf.c:
1883 * msdos.c:
1884 * nsfns.m:
1885 * nsmenu.m:
1886 * nsselect.m:
1887 * print.c:
1888 * process.c:
1889 * search.c:
1890 * sound.c:
1891 * syntax.c:
1892 * term.c:
1893 * terminal.c:
1894 * textprop.c:
1895 * undo.c:
1896 * w16select.c:
1897 * w32console.c:
1898 * w32fns.c:
1899 * w32font.c:
1900 * w32menu.c:
1901 * w32proc.c:
1902 * w32select.c:
1903 * window.c:
1904 * xdisp.c:
1905 * xfaces.c:
1906 * xfns.c:
1907 * xmenu.c:
1908 * xselect.c:
1909 * xsettings.c:
1910 * xsmfns.c: Likewise.
1911
d568829b
EZ
19122010-07-08 Eli Zaretskii <eliz@gnu.org>
1913
1914 * process.c (kbd_is_on_hold, hold_keyboard_input)
1915 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1916
52214050
J
19172010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1918
1919 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1920 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1921 unless USE_LUCID.
1922
313d9eb2
DN
19232010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1924
a628ad9d
JB
1925 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1926 declaration.
d8825aa3 1927
295d0d8f
DN
1928 Clean up include guards.
1929 * tparam.c: Remove include guards for config.h, string.h and code
1930 that assumes #ifndef emacs.
1931 * termcap.c:
1932 * unexalpha.c:
1933 * sysdep.c:
1934 * filemode.c:
1935 * filelock.c:
1936 * bidi.c: Likewise.
1937
49d9e6b0
DN
1938 Remove prefix-args.c
1939 * prefix-args.c: Remove file.
1940 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1941 * Makefile.in (temacs${EXEEXT}): Remove references to
1942 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1943 (mostlyclean): Remove reference to prefix-args.
1944 (prefix-args): Remove.
1945
313d9eb2
DN
1946 Simplify cstart_of_data, start_of_code and related code.
1947 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1948 (start_of_data): Merge into start_of_data function.
1949 * sysdep.c (start_of_text): Remove. Move simplified versions of
1950 it in the only users: unexaix.c and unexec.c.
1951 (read_input_waiting): Remove local declaration of quit_char.
1952 (start, etext): Remove declarations.
1953 (start_of_data): Merge with the version in mem-limits.h and move
1954 to vm-limits.c.
1955 * vm-limit.c (start_of_data): Merged and simplified version of the
1956 code formerly in mem-limits.h and sysdep.c.
1957 * unexec.c (start): New declaration, moved from sysdep.c.
1958 (start_of_text): Simplified version of the code formerly in sysdep.c.
1959 * unexaix.c (start_of_text): Simplified version of the code
1960 formerly in sysdep.c.
1961 * m/alpha.h (HAVE_TEXT_START): Remove.
1962 (TEXT_START): Move ...
1963 * unexalpha.c (TEXT_START): ... here.
1964 * s/hpux10-20.h (TEXT_START): Remove.
1965 * s/darwin.h (TEXT_START):
1966 * m/mips.h (TEXT_START):
1967 * m/macppc.h (HAVE_TEXT_START):
1968 * m/m68k.h (TEXT_START):
1969 * m/iris4d.h (TEXT_START):
1970 * m/intel386.h (TEXT_START):
1971 * m/ibmrs6000.h (TEXT_START):
1972 * m/ia64.h (HAVE_TEXT_START):
1973 * s/msdos.h (TEXT_START): Likewise.
1974
72af86bd
AS
19752010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1976
1977 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1978 (overrun_check_free, xstrdup, allocate_string)
1979 (allocate_string_data, compact_small_strings, Fmake_string)
1980 (make_unibyte_string, make_multibyte_string)
1981 (make_string_from_bytes, make_specified_string, make_float)
1982 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1983 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1984 memcpy, memmove, memset, memcmp.
1985 * atimer.c (start_atimer, set_alarm): Likewise.
1986 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1987 (mmap_realloc, init_buffer_once): Likewise.
1988 * callint.c (Fcall_interactively): Likewise.
1989 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1990 (getenv_internal_1): Likewise.
1991 * casefiddle.c (casify_object): Likewise.
1992 * ccl.c (ccl_driver): Likewise.
1993 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1994 * charset.c (load_charset_map_from_file)
1995 (load_charset_map_from_file, load_charset_map_from_vector)
1996 (Fdefine_charset_internal): Likewise.
1997 * cm.c (Wcm_clear): Likewise.
1998 * coding.c (decode_eol, decode_coding_object)
1999 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2000 * data.c (Faset): Likewise.
2001 * dired.c (directory_files_internal, file_name_completion_stat):
2002 Likewise.
2003 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2004 (clear_glyph_row, copy_row_except_pointers)
2005 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2006 (save_current_matrix, restore_current_matrix)
2007 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2008 (mirror_line_dance, scrolling_window): Likewise.
2009 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2010 Likewise.
2011 * doprnt.c (doprnt): Likewise.
2012 * editfns.c (Fuser_full_name, make_buffer_string_both)
2013 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2014 * emacs.c (sort_args): Likewise.
2015 * eval.c (Fapply, Ffuncall): Likewise.
2016 * fileio.c (Ffile_name_directory, make_temp_name)
2017 (Fexpand_file_name, search_embedded_absfilename)
2018 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2019 (auto_save_error): Likewise.
2020 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2021 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2022 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2023 (Fmake_hash_table): Likewise.
2024 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2025 * ftfont.c (ftfont_text_extents): Likewise.
2026 * getloadavg.c (getloadavg): Likewise.
2027 * image.c (define_image_type, make_image, make_image_cache)
2028 (x_create_x_image_and_pixmap, xbm_image_p)
2029 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2030 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2031 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2032 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2033 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2034 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2035 Likewise.
2036 * indent.c (scan_for_column, compute_motion): Likewise.
2037 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2038 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2039 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2040 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2041 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2042 (store_user_signal_events, menu_bar_items, tool_bar_items)
2043 (process_tool_bar_item, append_tool_bar_item)
2044 (read_char_minibuf_menu_prompt, read_key_sequence)
2045 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2046 Likewise.
2047 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2048 Likewise.
2049 * lisp.h (STRING_COPYIN): Likewise.
2050 * lread.c (Fload, read1, oblookup): Likewise.
2051 * msdos.c (Frecent_doskeys): Likewise.
2052 * nsfns.m (Fx_create_frame): Likewise.
2053 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2054 Likewise.
2055 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2056 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2057 Likewise.
2058 * nsmenu.m (ns_update_menubar): Likewise.
2059 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2060 * print.c (print_unwind, printchar, strout, print_string)
2061 (print_error_message): Likewise.
2062 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2063 (Fmake_network_process, Fnetwork_interface_list)
2064 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2065 (init_process): Likewise.
2066 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2067 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2068 Likewise.
2069 * scroll.c (do_scrolling, do_direct_scrolling)
2070 (scrolling_max_lines_saved): Likewise.
2071 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2072 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2073 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2074 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2075 (emacs_set_tty): Likewise.
2076 * term.c (encode_terminal_code, calculate_costs)
2077 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2078 Likewise.
2079 * termcap.c (tgetst1, gobble_line): Likewise.
2080 * termhooks.h (EVENT_INIT): Likewise.
2081 * tparam.c (tparam1): Likewise.
2082 * unexalpha.c (unexec): Likewise.
2083 * unexec.c (write_segment): Likewise.
2084 * unexmacosx.c (unexec_write_zero): Likewise.
2085 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2086 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2087 * w32font.c (w32font_list_family, w32font_text_extents)
2088 (w32font_list_internal, w32font_match_internal)
2089 (w32font_open_internal, compute_metrics, Fx_select_font):
2090 Likewise.
2091 * w32menu.c (set_frame_menubar, add_menu_item)
2092 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2093 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2094 * w32uniscribe.c (uniscribe_list_family): Likewise.
2095 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2096 * window.c (make_window, replace_window, set_window_buffer)
2097 (Fsplit_window): Likewise.
2098 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2099 (add_to_log, message3, x_consider_frame_title)
2100 (append_space_for_newline, extend_face_to_end_of_line)
2101 (decode_mode_spec_coding, init_glyph_string): Likewise.
2102 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2103 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2104 (face_attr_equal_p, make_realized_face, make_face_cache)
2105 (free_realized_faces, lookup_named_face, smaller_face)
2106 (face_with_height, lookup_derived_face)
2107 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2108 (Finternal_set_font_selection_order, realize_default_face)
2109 (compute_char_face, face_at_buffer_position)
2110 (face_for_overlay_string, face_at_string_position, merge_faces):
2111 Likewise.
2112 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2113 (Fx_window_property, x_create_tip_frame)
2114 (Fx_backspace_delete_keys_p): Likewise.
2115 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2116 (xfont_text_extents): Likewise.
2117 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2118 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2119 * xselect.c (x_queue_event, x_get_window_property)
2120 (receive_incremental_selection): Likewise.
2121 * xsmfns.c (x_session_check_input): Likewise.
2122 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2123 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2124 Likewise.
2125 * character.h (BCOPY_SHORT): Removed.
2126 * config.in: Regenerate.
2127 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2128 * emacs.c (main) [PROFILING]: Don't declare
2129 dump_opcode_frequencies.
2130 * lisp.h (safe_bcopy): Remove declaration.
2131 (memset) [!HAVE_MEMSET]: Declare.
2132 (memcpy) [!HAVE_MEMCPY]: Likewise.
2133 (memmove) [!HAVE_MEMMOVE]: Likewise.
2134 (memcmp) [!HAVE_MEMCMP]: Likewise.
2135 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2136 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2137 Don't define.
2138 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2139 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2140 (BCOPY_DOWNWARD_SAFE): Don't define.
2141 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2142 (memcpy) [!HAVE_MEMCPY]: Define.
2143 (memmove) [!HAVE_MEMMOVE]: Define.
2144 (memcmp) [!HAVE_MEMCMP]: Define.
2145
cb768704
J
21462010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2147
2148 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
2149 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2150 New functions.
cb768704
J
2151 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2152 select on empty input mask.
2153 (init_process): Initialize kbd_is_on_hold to 0.
2154
2155 * process.h (hold_keyboard_input, unhold_keyboard_input)
2156 (kbd_on_hold_p): Declare.
2157
2158 * keyboard.c (input_available_signal): Declare.
2159 (kbd_buffer_nr_stored): New function.
2160 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2161 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2162 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2163 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2164 (tty_read_avail_input): If input is on hold, return.
2165 Don't read more that free slots in kbd_buffer (Bug#6571).
2166
3a8ce822
EZ
21672010-07-07 Eli Zaretskii <eliz@gnu.org>
2168
2169 * msdos.h:
2170 * msdos.c:
2171 * dosfns.c:
2172 * w16select.c: Convert function definitions to ANSI C.
2173
a628ad9d
JB
2174 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2175 Remove unused prototypes.
3a8ce822 2176
cf84bb53
JB
21772010-07-07 Juanma Barranquero <lekktu@gmail.com>
2178
2179 * coding.c, sysdep.c: Convert some more functions to standard C.
2180
1a4990fb
JB
21812010-07-07 Juanma Barranquero <lekktu@gmail.com>
2182
2183 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2184 (encode_coding_object): Use SPECPDL_INDEX.
2185 (syms_of_coding): Use DOS_NT.
2186
c0f2f16b
DN
21872010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2188
48fb6855
DN
2189 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2190
c0f2f16b
DN
2191 Make the function member of Lisp_Subr use standard C prototypes.
2192 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2193 (DECL_ALIGN): Add a cast for the function.
2194 * eval.c (Feval, Ffuncall): Use the proper type for each type
2195 function call.
2196
67aecef9
CY
21972010-07-06 Chong Yidong <cyd@stupidchicken.com>
2198
2199 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2200 fringe face id, so face-remapping-alist works (Bug#6091).
2201
b56ceb92
JB
22022010-07-06 Juanma Barranquero <lekktu@gmail.com>
2203
2204 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2205 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2206 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2207
7af07b96
AS
22082010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2209
2210 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2211 * lisp.h: Declare x_get_keysym_name.
2212 * keyboard.c (modify_event_symbol): Don't declare
2213 x_get_keysym_name here.
2214
69e24e34
DN
22152010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2216
2217 * ecrt0.c: Revert conversion to standard C.
2218
d3da34e0 22192010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
2220
2221 * vm-limit.c (memory_warnings):
2222 * keyboard.c (modify_event_symbol):
2223 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2224 (round2, emacs_rint):
2225 * process.c (send_process, old_sigpipe): Convert function
2226 definitions and declarations to standard C.
2227
22282010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
2229
2230 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2231 * xdisp.c: Convert function definitions to standard C.
2232
2233 * cm.c (cmputc): Arg C is now int, not char.
2234 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2235
00be444c
J
22362010-07-05 James Cloos <cloos@jhcloos.com>
2237
2238 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2239
2240 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2241 _NET_WM_ICON_NAME atoms.
2242
2243 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2244 and _NET_WM_ICON_NAME properties, too, matching what is
2245 done in the Gtk+ case.
2246
e4c8d29a
J
22472010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2248
ff919460
J
2249 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2250
e4c8d29a
J
2251 * xsmfns.c (SSDATA): New macro.
2252 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2253 passed to strlen/strcpy/strcat.
2254 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2255 7:th arg to XChangeProperty to (unsigned char *)
2256
2257 * xsettings.c (something_changedCB, parse_settings)
2258 (apply_xft_settings): Reformat prototype.
2259 (something_changedCB, init_gconf): Remove unused variable i.
2260 (read_settings): Remove unused variable long_len.
2261
2262 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2263 (xg_get_image_for_pixmap, create_dialog)
2264 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2265 (menuitem_highlight_callback, make_menu_item)
2266 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2267 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2268 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2269 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2270 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2271 (xg_tool_bar_item_expose_callback): Reformat prototype.
2272 (xg_update_menubar): GList *group => GSList *group.
2273 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2274 before use.
2275 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2276 to GTK_IMAGE (wimage).
2277
dd4c5104
DN
22782010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2279
898b4c5c
DN
2280 * atimer.c: Use "" instead of <> for local includes for
2281 consistency with the rest of the code.
2282
dd4c5104
DN
2283 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2284 * xrdb.c (get_system_name):
2285 * window.c (shrink_windows):
2286 * syntax.c (forw_comment):
2287 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2288 (ins_del_costs):
2289 * mem-limits.h (start_of_data):
2290 * lread.c (readevalloop):
2291 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2292 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2293 * frame.c (x_get_focus_frame):
2294 * floatfns.c (fmod_float):
2295 * fileio.c (choose_write_coding_system):
2296 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2297 (malloc_initialize_hook, sort_args, synchronize_locale):
2298 * doprnt.c (doprnt):
2299 * dired.c (compile_pattern):
2300 * data.c (fmod_float):
2301 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2302 (map_char_table_for_charset):
2303 * charset.c (define_charset_internal):
2304 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2305 to standard C.
2306
9a39b306 23072010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 2308 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
2309
2310 * lread.c (read1): Fix up last change to not mess up `c'.
2311
e6cb2cbb
JB
23122010-07-04 Juanma Barranquero <lekktu@gmail.com>
2313
2314 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2315
438105ed
JB
23162010-07-04 Juanma Barranquero <lekktu@gmail.com>
2317
2318 Fix prototypes.
2319
e5447b22 2320 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 2321 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
2322 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2323 arg, as required by internal_condition_case_1.
dcc7404b 2324 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
2325 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2326 (analyse_first): Fix "const const".
e5447b22 2327 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 2328 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 2329 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 2330
971de7fb
DN
23312010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2332
2333 * alloc.c: Convert function definitions to standard C.
2334 * atimer.c:
2335 * bidi.c:
2336 * bytecode.c:
2337 * callint.c:
2338 * callproc.c:
2339 * casefiddle.c:
2340 * casetab.c:
2341 * category.c:
2342 * ccl.c:
2343 * character.c:
2344 * charset.c:
2345 * chartab.c:
2346 * cmds.c:
2347 * coding.c:
2348 * composite.c:
2349 * data.c:
2350 * dbusbind.c:
2351 * dired.c:
2352 * dispnew.c:
2353 * doc.c:
2354 * doprnt.c:
2355 * ecrt0.c:
2356 * editfns.c:
2357 * fileio.c:
2358 * filelock.c:
2359 * filemode.c:
2360 * fns.c:
2361 * font.c:
2362 * fontset.c:
2363 * frame.c:
2364 * fringe.c:
2365 * ftfont.c:
2366 * ftxfont.c:
2367 * gtkutil.c:
2368 * indent.c:
2369 * insdel.c:
2370 * intervals.c:
2371 * keymap.c:
2372 * lread.c:
2373 * macros.c:
2374 * marker.c:
2375 * md5.c:
2376 * menu.c:
2377 * minibuf.c:
2378 * prefix-args.c:
2379 * print.c:
2380 * ralloc.c:
2381 * regex.c:
2382 * region-cache.c:
2383 * scroll.c:
2384 * search.c:
2385 * sound.c:
2386 * strftime.c:
2387 * syntax.c:
2388 * sysdep.c:
2389 * termcap.c:
2390 * terminal.c:
2391 * terminfo.c:
2392 * textprop.c:
2393 * tparam.c:
2394 * undo.c:
2395 * unexelf.c:
2396 * window.c:
2397 * xfaces.c:
2398 * xfns.c:
2399 * xfont.c:
2400 * xftfont.c:
2401 * xgselect.c:
2402 * xmenu.c:
2403 * xrdb.c:
2404 * xselect.c:
2405 * xsettings.c:
2406 * xsmfns.c:
2407 * xterm.c: Likewise.
2408
ae492bec
EZ
24092010-07-03 Eli Zaretskii <eliz@gnu.org>
2410
76ea4cc9
EZ
2411 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2412 frames other than the initial one. Fix reversal of colors when
2413 `reverse' is specified in the frame parameters. Call
2414 update_face_from_frame_parameter instead of
2415 internal-set-lisp-face-attribute. Initialize screen colors from
2416 initial_screen_colors[] when f->default_face_done_p is zero,
2417 instead of depending on being called with default-frame-alist as
2418 the alist argument.
2419
2420 * xfaces.c (update_face_from_frame_parameter): Move out of
2421 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2422 with HAVE_WINDOW_SYSTEM.
2423
1e6255ae
EZ
2424 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2425 to menu-bar-mode, if not set in the frame parameters or in
2426 default-frame-alist.
2427
ae492bec
EZ
2428 * w32console.c (sys_tputs): Adjust argument list to prototype in
2429 term.c.
2430
3a35a84c
JB
24312010-07-03 Juanma Barranquero <lekktu@gmail.com>
2432
2433 * lisp.h (memory_warnings): Fix prototype.
2434
2435 * cm.h (evalcost): Fix prototype.
2436
2437 * cm.c (evalcost): Fix arg type.
2438
c532d349
DN
24392010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2440
2441 * term.c (term_clear_mouse_face, Fidentity):
2442 * syssignal.h (signal_handler_t):
2443 * lisp.h (memory_warnings):
2444 * coding.h (preferred_coding_system):
2445 * cm.h (evalcost):
2446 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2447
c0b36d46
EZ
24482010-07-02 Eli Zaretskii <eliz@gnu.org>
2449
2450 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2451 from prototypes.
2452
2453 * msdos.h (load_pixmap): Don't define away.
2454
383e0970
J
24552010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2456
f57e2426
J
2457 * lisp.h:
2458 * atimer.h: Remove define for P_.
2459
2460 * alloc.c: Remove __P and P_ from .c and .m files.
2461 * atimer.c:
2462 * buffer.c:
2463 * callint.c:
2464 * category.c:
2465 * charset.c:
2466 * chartab.c:
2467 * cm.c:
2468 * coding.c:
2469 * composite.c:
2470 * data.c:
2471 * dired.c:
2472 * dispnew.c:
2473 * doc.c:
2474 * editfns.c:
2475 * emacs.c:
2476 * eval.c:
2477 * fileio.c:
2478 * filelock.c:
2479 * fns.c:
2480 * font.c:
2481 * fontset.c:
2482 * frame.c:
2483 * ftfont.c:
2484 * ftxfont.c:
2485 * gmalloc.c:
2486 * gtkutil.c:
2487 * image.c:
2488 * indent.c:
2489 * intervals.c:
2490 * keyboard.c:
2491 * keymap.c:
2492 * lread.c:
2493 * marker.c:
2494 * menu.c:
2495 * minibuf.c:
2496 * print.c:
2497 * process.c:
2498 * scroll.c:
2499 * search.c:
2500 * sound.c:
2501 * strftime.c:
2502 * syntax.c:
2503 * sysdep.c:
2504 * term.c:
2505 * terminal.c:
2506 * textprop.c:
2507 * unexalpha.c:
2508 * w32console.c:
2509 * w32fns.c:
2510 * w32font.c:
2511 * w32menu.c:
2512 * w32term.c:
2513 * w32uniscribe.c:
2514 * window.c:
2515 * xdisp.c:
2516 * xfaces.c:
2517 * xfns.c:
2518 * xfont.c:
2519 * xftfont.c:
2520 * xmenu.c:
2521 * xselect.c:
2522 * xterm.c: Likewise.
2523
383e0970 2524 Remove P_ and __P macros.
f57e2426
J
2525 * atimer.h: Remove P_ and __P macros.
2526 * buffer.h:
383e0970
J
2527 * category.h:
2528 * ccl.h:
2529 * character.h:
2530 * charset.h:
2531 * cm.h:
2532 * coding.h:
2533 * composite.h:
2534 * dispextern.h:
2535 * disptab.h:
9e892c8d 2536 * dosfns.h:
383e0970
J
2537 * font.h:
2538 * fontset.h:
2539 * frame.h:
2540 * gtkutil.h:
2541 * indent.h:
2542 * intervals.h:
2543 * keyboard.h:
2544 * keymap.h:
2545 * lisp.h:
2546 * macros.h:
2547 * md5.h:
2548 * menu.h:
2549 * msdos.h:
2550 * nsterm.h:
2551 * puresize.h:
2552 * region-cache.h:
2553 * syntax.h:
2554 * syssignal.h:
2555 * systime.h:
2556 * termhooks.h:
9e892c8d 2557 * w32font.h:
383e0970
J
2558 * w32term.h:
2559 * widget.h:
2560 * window.h:
2561 * xgselect.h:
2562 * xsettings.h:
2563 * xterm.h: Likewise.
2564
98601119
DN
25652010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2566
d9170db5
DN
2567 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2568
98601119
DN
2569 Cleanup old code.
2570 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2571 * syssignal.h: Remove code for Lynx, not supported anymore.
2572 * vm-limit.c: Remove unused code the depends on emacs not being
2573 defined and NO_LIM_DATA being defined.
2574 * mem-limits.h: Remove dead code.
2575
1f984e12
J
25762010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2577
c49d071a
J
2578 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2579
9d5405ec
J
2580 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2581 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2582
7a18115b
J
2583 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2584 parameters, they are already absolute.
2585
a628ad9d
JB
2586 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2587 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 2588
a628ad9d 2589 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 2590
a628ad9d
JB
2591 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2592 Update FRAME_TOOLBAR_HEIGHT.
581a8100 2593
a628ad9d
JB
2594 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2595 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 2596
c1ef4455
CY
25972010-06-30 Chong Yidong <cyd@stupidchicken.com>
2598
2599 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2600 check default-frame-alist.
2601
ce8f5a9a
AS
26022010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2603
2604 * process.c (create_process): Avoid using invalid file descriptors.
2605
2606 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2607
bf935339
J
26082010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2609
2610 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2611 Improve documentation. Return font regardless of use_system_font.
2612 (syms_of_xsettings): Improve documentation for font-use-system-font.
2613
7c33a057
CY
26142010-07-10 Chong Yidong <cyd@stupidchicken.com>
2615
2ec1b5ee
CY
2616 * xfaces.c (realize_face): Garbage the frame if a face is removed
2617 (Bug#6593).
2618
26192010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2620
2621 * keyboard.c: Remove duplicate <setjmp.h>.
2622 (read_key_sequence): Remove volatile qualifiers.
2623
26242010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2625
2626 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2627 (struct glyph_row): New members left_fringe_offset and
2628 right_fringe_offset.
2629
2630 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2631 specially.
2632 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2633 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2634
2635 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 2636 Take account of bitmap offset.
2ec1b5ee
CY
2637 (draw_window_fringes): Take account of window vscroll.
2638 (update_window_fringes): Likewise. Extend top-aligned top indicator
2639 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2640 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2641 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2642
26432010-07-04 Juanma Barranquero <lekktu@gmail.com>
2644
2645 * w32fns.c (Qtooltip): Declare.
2646 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2647
26482010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2649
2650 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2651 grab on just Press (Bug#6499).
2652
26532010-07-02 Chong Yidong <cyd@stupidchicken.com>
2654
2655 * frame.c (Qtooltip): New var.
2656 (delete_frame): Use it. Fix faulty if statement. Don't update
2657 mode line for tooltip frames. Suggested by Martin Rudalics.
2658
2659 * xfns.c (x_create_tip_frame):
2660 * w32fns.c (x_create_tip_frame): Use it.
2661
26622010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
2663
2664 * xftfont.c (xftfont_open): Check font width one by one also when
2665 spacing is dual.
2666
2667 * ftfont.c (ftfont_open): Ditto.
2668
6259c2ec
GM
26692010-06-30 Glenn Morris <rgm@gnu.org>
2670
a46007e9
GM
2671 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2672
6259c2ec
GM
2673 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2674
2675 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2676 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2677 * s/darwin.h (SYSTEM_MALLOC):
2678 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2679
5d1d3d04
J
26802010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2681
2682 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2683 (ns_get_screen): Don't assign integer to f.
2684 (Fx_display_color_cells): Declarations before statements.
2685
e547b051
J
26862010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2687
5fc8e5bc
J
2688 * xfns.c (x_default_font_parameter): Remove got_from_system
2689 (Bug#6526).
2690
e547b051
J
2691 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2692 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2693 defines based on what configure finds.
2694
2695 * xterm.c (XTflash): Use gtk_widget_get_window.
2696 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2697 gtk_adjustment_get_page_size.
2698 (handle_one_xevent): Use gtk_widget_get_mapped.
2699 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2700 messages.
2701
2702 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2703
2704 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2705 HAVE_GTK_FILE_SELECTION_NEW.
2706
2707 * gtkutil.c (xg_display_open, xg_display_close): Remove
2708 HAVE_GTK_MULTIDISPLAY, it is always defined.
2709 (xg_display_open): Return type is void.
2710 (gtk_widget_set_has_window)
2711 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2712 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2713 (gtk_adjustment_set_page_increment)
2714 (gtk_adjustment_get_step_increment): #define these if not found
2715 by configure.
2716 (remove_submenu): New define based on Gtk+ version.
2717 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2718 gtk_widget_get_window.
2719 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2720 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2721 (create_dialog): Use gtk_dialog_get_action_area and
2722 gtk_dialog_get_content_area.
2723 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2724 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2725 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2726 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2727 g_object_ref and g_object_unref.
2728 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2729 gtk_widget_get_sensitive.
2730 (xg_update_submenu): Use remove_submenu.
2731 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2732 properties instead to get old x and y position.
2733 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2734 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 2735 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
2736 (xg_get_tool_bar_widgets): New function.
2737 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2738 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2739 (toolbar_set_orientation): New #define based on if configure
2740 finds gtk_orientable_set_orientation.
2741 (xg_create_tool_bar): Call toolbar_set_orientation.
2742 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2743 instead of gtk_box_pack_start_defaults.
2744
b9229673
CY
27452010-06-28 Chong Yidong <cyd@stupidchicken.com>
2746
2747 * cmds.c (Fdelete_backward_char): Move into Lisp.
2748
bbc803b0
DN
27492010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2750
2751 * s/freebsd.h (BSD4_2): Remove redundant definition.
2752 bsd-common.h defines it already.
2753
6431f2e6
CY
27542010-06-27 Chong Yidong <cyd@stupidchicken.com>
2755
2756 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2757 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2758 tool-bar-mode, which are now set using these X resources at
2759 startup, to determine the defaults (Bug#2249).
2760
2761 * w32fns.c (Fx_create_frame):
2762 * nsfns.m (Fx_create_frame): Likewise.
2763
2764 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2765
8c079ebb
JB
27662010-06-24 Juanma Barranquero <lekktu@gmail.com>
2767
2768 * gtkutil.c (xg_update_scrollbar_pos):
2769 Avoid C99 mid-block variable declaration.
2770
e9b7ab96
JD
27712010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2772
bc869eca
JD
2773 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2774
2b7e356a 2775 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2776
2777 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2778 if height is less than scroll bar min size.
2779 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2780
e9b7ab96
JD
2781 * xfns.c (x_default_font_parameter): Try to open font from system
2782 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2783
a628ad9d 27842010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2785
2786 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2787
70c4cfbb
EZ
27882010-06-20 Eli Zaretskii <eliz@gnu.org>
2789
2790 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2791 most-positive-fixnum, be extra accurate when scrolling window
2792 start, to avoid missing the cursor line.
2793
ad5a12b5
EZ
27942010-06-19 Eli Zaretskii <eliz@gnu.org>
2795
2796 * xdisp.c (try_scrolling): Compute the limit for searching point
2797 in forward scroll from scroll_max, instead of an arbitrary limit
2798 of 10 screen lines. See
2799 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2800 and
2801 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2802 for details.
2803
2a64315a 28042010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2805
2806 * editfns.c (Fbyte_to_string): Pacify compiler.
2807
288cf4e9
SM
28082010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2809
2810 * lread.c (read1): Phase out old-style backquotes a bit more.
2811
6e6e5760
EZ
28122010-06-12 Eli Zaretskii <eliz@gnu.org>
2813
cbc4fd20
EZ
2814 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2815 bidimirror.h.
2816
2817 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2818
317fbf33
EZ
2819 * bidi.c (bidi_initialize): Remove explicit initialization of
2820 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 2821 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 2822 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
2823
2824 * biditype.h: New file.
2825
cbc4fd20
EZ
2826 * bidimirror.h: New file.
2827
6e6e5760
EZ
2828 * window.c (syms_of_window): Doc fix (bug#6409).
2829
4176cba2
RF
28302010-06-12 Romain Francoise <romain@orebokech.com>
2831
2832 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2833 ediff-hook.
2834
cb4bfcb5
GM
28352010-06-10 Glenn Morris <rgm@gnu.org>
2836
64c60c2f
GM
2837 * editfns.c (Fbyte_to_string): Pacify compiler.
2838
cb4bfcb5
GM
2839 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2840
2ec1b5ee
CY
28412010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2842
2843 * alloc.c (Fmake_byte_code): Don't access undefined argument
2844 (Bug#6517).
2845
28462010-06-25 Chong Yidong <cyd@stupidchicken.com>
2847
2848 * xdisp.c (next_element_from_image): Ensure that after-strings are
2849 read the next time we hit handle_stop (Bug#1336).
2850
28512010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2852
2853 * lread.c (read1): Signal error if #s is not followed by paren.
2854
28552010-06-19 Chong Yidong <cyd@stupidchicken.com>
2856
2857 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2858
2859 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2860
28612010-06-15 Glenn Morris <rgm@gnu.org>
2862
2863 * editfns.c (Fbyte_to_string): Pacify compiler.
2864
e454a4a3
SM
28652010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2866
2867 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2868 Check `object's type before accessing its guts.
2869
c1b1acc2
DN
28702010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2871
2872 * s/usg5-4.h: Fix previous change.
2873 Suggested by Lawrence Mitchell <wence@gmx.li>
2874
657d4c0b
AS
28752010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2876
2877 * minibuf.c (Fall_completions): Add more checks.
2878
9b27fd9f
JB
28792010-06-08 Juanma Barranquero <lekktu@gmail.com>
2880
2881 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2882
a99ebb40
DN
28832010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2884
d7c5d87d
DN
2885 * lread.c (X_OK): Remove, unused.
2886
0263a941
DN
2887 * dispnew.c: Remove obsolete comment.
2888
a99ebb40
DN
2889 Remove INCLUDED_FCNTL.
2890 * xterm.c (INCLUDED_FCNTL):
2891 * callproc.c (INCLUDED_FCNTL):
2892 * alloc.c (INCLUDED_FCNTL):
2893 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2894 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2895
13b5221f
MR
28962010-06-07 Martin Rudalics <rudalics@gmx.at>
2897
2898 * window.c (Fselect_window): Move `record_buffer' up to the
2899 beginning of this function, so the buffer gets recorded
2900 even if the selected window does not change.
2901 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2902
5220357f
JB
29032010-06-07 Juanma Barranquero <lekktu@gmail.com>
2904
2905 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2906 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2907
3085237c
DN
29082010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2909
2910 Remove BSTRING related code, all platforms define it.
2911 * s/usg5-4.h (BSTRING): Remove definition.
2912 * s/template.h (BSTRING):
2913 * s/msdos.h (BSTRING):
2914 * s/ms-w32.h (BSTRING):
2915 * s/hpux10-20.h (BSTRING):
2916 * s/gnu-linux.h (BSTRING):
2917 * s/darwin.h (BSTRING):
2918 * s/cygwin.h (BSTRING):
2919 * s/bsd-common.h (BSTRING):
2920 * s/aix4-2.h (BSTRING): Likewise.
2921 * sysdep.c: Remove code depending on BSTRING not being defined.
2922
409f2919
JB
29232010-06-05 Juanma Barranquero <lekktu@gmail.com>
2924
2925 Remove obsolete macro BASE_LEADING_CODE_P.
2926 * character.h (BASE_LEADING_CODE_P): Remove.
2927 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2928 * buffer.c (Fset_buffer_multibyte):
2929 * indent.c (scan_for_column, compute_motion):
2930 * insdel.c (count_combining_before, count_combining_after):
2931 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2932
087fc47a
JB
29332010-06-04 Juanma Barranquero <lekktu@gmail.com>
2934
2935 Turn `directory-sep-char' into a noop.
2936
2937 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2938 (DIRECTORY_SEP): Define unconditionally.
2939
2940 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2941
2942 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2943 call dostounix_filename directly.
2944
2945 * fileio.c (CORRECT_DIR_SEPS): Remove.
2946 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2947 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2948 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2949 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2950
2951 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2952 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2953
0eb7675e
AS
29542010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2955
a628ad9d
JB
2956 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2957 (Bug#6346)
0eb7675e 2958
78edd3b7
JB
29592010-06-03 Juanma Barranquero <lekktu@gmail.com>
2960
2961 * ccl.c (Fccl_program_p): Fix typo in docstring.
2962
eb697db5
DN
29632010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2964
2965 Move UNEXEC definition to autoconf.
2966 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2967 * s/sol2-10.h (UNEXEC):
2968 * s/irix6-5.h (UNEXEC):
2969 * s/hpux10-20.h (UNEXEC):
2970 * s/gnu-linux.h (UNEXEC):
2971 * s/darwin.h (UNEXEC):
2972 * s/cygwin.h (UNEXEC):
2973 * s/bsd-common.h (UNEXEC):
2974 * s/aix4-2.h (UNEXEC):
2975 * m/alpha.h (UNEXEC): Likewise.
2976 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2977
aa3830c4
JB
29782010-06-03 Juanma Barranquero <lekktu@gmail.com>
2979
2980 Remove obsolete pre-unicode2 macros.
2981 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2982 * composite.c (composition_reseat_it):
2983 * data.c (Faset):
2984 * fns.c (Ffillarray):
2985 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2986 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2987
d234d13e
JL
29882010-06-03 Juri Linkov <juri@jurta.org>
2989
2990 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2991 (Fswitch_to_buffer): Remove unused variable `err'.
2992
0d4bcf4d
GM
29932010-06-03 Glenn Morris <rgm@gnu.org>
2994
e23dc1e2
GM
2995 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2996
05b09564
GM
2997 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2998 now that AH_BOTTOM does it.
2999
824e2978
GM
3000 * m/hp800.h (HAVE_ALLOCA):
3001 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3002
0d4bcf4d
GM
3003 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3004 Remove NOT_C_CODE tests, it is always true now.
3005
c55d2abf
DN
30062010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3007
08a494a3
DN
3008 Fix config.h includes.
3009 * xsettings.c:
3010 * xgselect.c:
3011 * nsterm.m:
3012 * nsselect.m:
3013 * nsimage.m:
3014 * nsfont.m:
3015 * nsfns.m:
3016 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3017 other files do.
3018
75934b1d
DN
3019 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3020
9f32a766
DN
3021 * s/sol2-6.h: Remove obsolete comments.
3022
c55d2abf
DN
3023 Remove unnecessary alloca.h includes.
3024 * keymap.c: Do not include alloca.h, config.h does that.
3025 * sysdep.c: Likewise. Do not define fwrite, not used.
3026
06ac62b4
SM
30272010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3028
3029 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3030 the HAVE_TERMIO where it belongs (bug#6149).
3031
1ab8293c
SM
30322010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3033
3034 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3035 of bug#6305).
3036
6dcfd253
EZ
30372010-05-30 Eli Zaretskii <eliz@gnu.org>
3038
3039 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3040 state is always cached (bug#6306).
3041
6d26bbb2
EZ
30422010-05-29 Eli Zaretskii <eliz@gnu.org>
3043
06fa4a23
EZ
3044 Fix cursor motion in bidi-reordered continued lines.
3045 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3046 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
3047 over continuation lines in bidi-reordered buffers. Return
3048 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3049 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3050
f5783df3
MA
30512010-05-28 Michael Albinus <michael.albinus@gmx.de>
3052
3053 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3054
7d56b2dd
KH
30552010-05-28 Kenichi Handa <handa@m17n.org>
3056
3057 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3058 Don't sheck SPEC if it is nil.
3059 (font_list_entities): Call font_delete_unmatched if
b925d231 3060 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 3061
e58d4ff7
GM
30622010-05-28 Glenn Morris <rgm@gnu.org>
3063
3064 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3065
f1a5d776
CY
30662010-05-27 Chong Yidong <cyd@stupidchicken.com>
3067
3068 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3069 whether to trash.
3070 (internal_delete_file, Frename_file): Callers changed.
3071 (delete_by_moving_to_trash): Doc fix.
3072 (Fdelete_directory_internal): Don't move to trash.
3073
3074 * callproc.c (delete_temp_file):
3075 * buffer.c (Fkill_buffer): Callers changed.
3076
3077 * lisp.h: Update prototype.
3078
f44a59e6
CY
30792010-05-27 Chong Yidong <cyd@stupidchicken.com>
3080
3081 * xdisp.c (redisplay_window): After redisplay, check if point is
3082 still valid before setting it (Bug#6177).
3083
81ac4f35
GM
30842010-05-27 Glenn Morris <rgm@gnu.org>
3085
3086 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3087 Convert comments to Makefile format.
3088
3089 * Makefile.in (bootstrap-clean): No more Makefile.c.
3090
ccd89fb3
GM
30912010-05-26 Glenn Morris <rgm@gnu.org>
3092
90278cb6
GM
3093 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3094 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3095
ccd89fb3
GM
3096 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3097 Remove.
3098 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3099
b7050583
KH
31002010-05-26 Kenichi Handa <handa@m17n.org>
3101
3102 * composite.c (composition_compute_stop_pos): Fix condition for
3103 backward scanning.
3104
e5458003
GM
31052010-05-25 Glenn Morris <rgm@gnu.org>
3106
c345fe90
GM
3107 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3108 Move before TEMACS_LDFLAGS.
3109 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3110 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3111
2e0689ab
GM
3112 * Makefile.in (NOT_C_CODE): No longer define.
3113 (config.h): No longer include.
3114
8009a5e8
GM
3115 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3116 variables it may reference.
3117
e5458003
GM
3118 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3119 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3120
10f72a37
KH
31212010-05-25 Kenichi Handa <handa@m17n.org>
3122
3123 * dispextern.h (struct composition_it): New members rule_idx and
3124 charpos.
3125
3126 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3127 that the character positions of IT point the last character of the
3128 current grapheme cluster.
3129 (next_element_from_composition): Don't change character positions
3130 of IT.
3131 (append_composite_glyph): Set glyph->charpos to
3132 it->cmp_it.charpos.
3133
3134 * composite.c (autocmp_chars): Change the first argument to RULE,
3135 and try composition with RULE only.
3136 (composition_compute_stop_pos): Record the index number of the
3137 composition rule in CMP_IT->rule_idx.
3138 (composition_reseat_it): Call autocmp_chars repeatedly until the
3139 correct rule of the composition is found.
3140 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3141 is at the last character of the current grapheme cluster when
3142 CMP_IT->reversed_p is nonzero.
3143
171eda53 31442010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 3145
171eda53
SM
3146 * editfns.c (Fbyte_to_string): New function.
3147
66a9f7f4
SM
31482010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3149
3150 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3151 Suggested by Masatake YAMATO <yamato@redhat.com>.
3152
d8c315d1
EZ
31532010-05-23 Eli Zaretskii <eliz@gnu.org>
3154
171eda53 3155 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 3156
f5b416d2 31572010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3158
3159 * s/netbsd.h: If terminfo is found, use it in preference to
3160 termcap. (Bug#6190) [Backport from trunk]
3161
0416466c
EZ
31622010-05-19 Eli Zaretskii <eliz@gnu.org>
3163
11117830 3164 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
3165
3166 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3167 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3168 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3169 and maxpos members instead of start.pos and end.pos, respectively.
3170
3171 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3172 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3173 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
3174 (try_window_reusing_current_matrix, try_window_id):
3175 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
3176 (init_from_display_pos, init_iterator): Use EMACS_INT for
3177 character and byte positions.
66a9f7f4 3178 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
3179 arguments for minimum and maximum buffer positions seen by
3180 display_line for this row. Don't use iterator to find the
3181 position following the maximum one; instead, increment the
11117830
EZ
3182 position found by display_line directly. Fix logic; eol_pos
3183 should be tested before the rest. Handle the case of characters
3184 delivered from display vector (bug#6036). Fix tests related to
3185 it->method. Handle the truncated_on_right_p rows.
3186 (RECORD_MAX_MIN_POS): New macro.
3187 (display_line): Use it to record the minimum and maximum buffer
3188 positions for glyphs in the row being assembled. Record the
3189 position of the newline that terminates the line. If word wrap is
3190 in effect, restore minimum and maximum positions seen up to the
3191 wrap point, when iterator returns to it.
3192 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3193 row and cursor not already at point. Restore original pre-bidi
3194 code for unidirectional buffers.
d36fe237
EZ
3195
3196 * dispnew.c (increment_row_positions, check_matrix_invariants):
3197 Increment and check row->start.pos and row->end.pos, in addition
3198 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3199
11117830
EZ
3200 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3201 Display truncated_on_left_p and truncated_on_right_p flags.
3202 Formatting fixes.
3203 (pmtxrows): Display the ordinal number of each row. Don't display
3204 rows beyond the last one.
3205
3206 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3207 it is not copied by bidi_copy_it.
3208
6e83d800
EZ
32092010-05-22 Eli Zaretskii <eliz@gnu.org>
3210
3211 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3212 (Bug#6237)
3213
110683ad
CY
32142010-05-22 Chong Yidong <cyd@stupidchicken.com>
3215
3216 * image.c (Fimage_flush): Rename from image-refresh.
3217
98fe5161
CY
32182010-05-21 Chong Yidong <cyd@stupidchicken.com>
3219
3220 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3221 just one window.
3222
3223 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3224 (clear_image_cache): If the number of cached images is unusually
3225 large, decrease the cache eviction delay (Bug#6230).
3226
e8752c66
GM
32272010-05-21 Glenn Morris <rgm@gnu.org>
3228
66dbf213
GM
3229 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3230 Move these rules to ns.mk.
3231 * ns.mk: New file.
3232
04384b2d
GM
3233 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3234
e8752c66
GM
3235 * Makefile.in (CANNOT_DUMP): New, set by configure.
3236 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3237
2e2bbddb
JL
32382010-05-20 Juri Linkov <juri@jurta.org>
3239
3240 * fileio.c (Fdelete_file): Change interative spec to use
3241 `read-file-name' like in `find-file-read-args' where the default
3242 value is `default-directory' instead of `buffer-file-name'.
3243 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3244
31c4aaf6
KR
32452010-05-20 Kevin Ryde <user42@zip.com.au>
3246
3247 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3248 (Voverriding_terminal_local_map, Vsystem_key_alist)
3249 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3250
9d5cf9b6
GM
32512010-05-20 Glenn Morris <rgm@gnu.org>
3252
3253 * Makefile.in (DEPDIR): New constant.
3254 (DEPFLAGS): Set with configure, not cpp.
3255 (MKDEPDIR): New, set by configure.
3256 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3257 (clean): Use $DEPDIR.
3258 (deps_frag): Include from configure.
3259 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3260 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3261
ead6f8f5
EZ
3262 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3263 reallocation of the cache. (Bug#6210)
3264
7f34aec3
GM
32652010-05-19 Glenn Morris <rgm@gnu.org>
3266
d494e8f2
GM
3267 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3268
c1d0dcfd
GM
3269 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3270 (GNULIB_VAR): Remove.
3271 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3272
3273 * m/ibms390x.h (LINKER):
3274 * m/macppc.h (LINKER) [GNU_LINUX]:
3275 * s/aix4-2.h (ORDINARY_LINK):
3276 * s/cygwin.h (LINKER):
3277 * s/darwin.h (ORDINARY_LINK):
3278 * s/gnu.h (ORDINARY_LINK):
3279 * s/netbsd.h (LINKER):
3280 * s/usg5-4.h (ORDINARY_LINK):
3281 Move to configure.
3282
7f34aec3
GM
3283 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3284
754790b6
CY
32852010-05-18 Chong Yidong <cyd@stupidchicken.com>
3286
3287 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3288 prevent stack overflow if number of arguments is too large
3289 (Bug#6214).
3290
161e44d1
JB
32912010-05-18 Juanma Barranquero <lekktu@gmail.com>
3292
3293 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3294
be4ff9da
GM
32952010-05-18 Glenn Morris <rgm@gnu.org>
3296
9539dc5d
GM
3297 * s/gnu-linux.h: Combine two conditionals.
3298
3299 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
3300 $(POST_ALLOC_OBJ).
3301
40dc6bf4
GM
3302 * Makefile.in (RALLOC_OBJ): New, set by configure.
3303 (rallocobj): Replace with the previous variable.
3304 (otherobj): Use $RALLOC_OBJ.
3305
3306 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3307 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3308
be4ff9da
GM
3309 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3310 (gmallocobj, vmlimitobj): Replace with previous two variables.
3311 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3312
16455a85
GM
33132010-05-17 Glenn Morris <rgm@gnu.org>
3314
3315 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3316 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3317
5fdb7468
GM
33182010-05-16 Glenn Morris <rgm@gnu.org>
3319
7ca1f3f9
GM
3320 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3321
7541dad5
GM
3322 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3323
da53fab9
GM
3324 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3325 trailing "/".
3326
b02a6645
GM
3327 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3328 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3329
8877ca0f
GM
3330 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3331 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3332 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3333 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3334 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3335
5fdb7468
GM
3336 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3337 Remove ${STARTFLAGS}, nothing ever sets it.
3338
95adb4b1
DN
33392010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3340
3341 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3342
676b6304
GM
33432010-05-16 Glenn Morris <rgm@gnu.org>
3344
9beab9ce
GM
3345 * Makefile.in (LIBX_BASE): Always define.
3346
8a95f0e7
GM
3347 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3348
676b6304
GM
3349 * Makefile.in (LIBXT): Always define.
3350
6e546d18
GM
33512010-05-15 Glenn Morris <rgm@gnu.org>
3352
4235ca47 3353 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 3354
6e546d18
GM
3355 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3356 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3357
8c5ff6dd
KR
33582010-05-15 Ken Raeburn <raeburn@raeburn.org>
3359
560bb7ae 3360 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
3361 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3362
8b4eb796
KR
3363 * emacs.c (main): Initialize initial-environment and
3364 process-environment before generating from env, not after.
3365
8c5ff6dd
KR
3366 Handle --version reasonably in CANNOT_DUMP configuration.
3367 * emacs.c (emacs_version, emacs_copyright): New string variables.
3368 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3369 (syms_of_emacs): Defvar them, and initialize them from the C
3370 string variables.
3371 (main): If initialization hasn't been done, print initial version
3372 info from the C strings, instead of starting an interactive session.
3373
dbd3f723
EZ
33742010-05-15 Eli Zaretskii <eliz@gnu.org>
3375
d20e1419
EZ
3376 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3377 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
3378 (bidi_paragraph_init): Remove redundant assertion that we are at
3379 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
3380
3381 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3382 (syms_of_xdisp): Defsubr it.
3383
d36fe237
EZ
3384 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3385
dbd3f723
EZ
3386 * Makefile.in: Fix MSDOS-related comments.
3387
02be533b
GM
33882010-05-15 Glenn Morris <rgm@gnu.org>
3389
1a82cca9
GM
3390 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3391 (really-lwlib, really-oldXMenu): Always define.
3392 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3393
3df7b338
GM
3394 * Makefile.in: Simplify cpp conditional.
3395
2b5f541b
GM
3396 * Makefile.in (${ns_appdir}): Simplify using umask.
3397
02be533b
GM
3398 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3399
4e2db1fe
SM
34002010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3401
3402 * eval.c (specbind): Remove left-over duplicate test.
3403 Disallow let-binding frame-local vars. Add comment.
3404
4b292a22
EZ
34052010-05-14 Eli Zaretskii <eliz@gnu.org>
3406
2fe72643 3407 Make the cache of bidi iterator states dynamically allocated.
1edbd309 3408 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
3409 (bidi_init_it): Call it.
3410 (bidi_cache_iterator_state): Enlarge the cache if needed.
3411
4e2db1fe 3412 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
3413 bidi_get_next_char_visually. All callers changed.
3414
82ebc97b
KH
34152010-05-14 Kenichi Handa <handa@m17n.org>
3416
3417 * dispextern.h (struct composition_it): New member reversed_p.
3418
3419 * composite.c (composition_compute_stop_pos): Search backward if
3420 ENDPOS < CHARPOS.
3421 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3422 Set CMP_IT->reversed_p.
b4b6e17e 3423 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 3424
4e2db1fe
SM
3425 * xdisp.c (set_iterator_to_next):
3426 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
3427 scanning backward. Call composition_compute_stop_pos if scan
3428 direction is changed.
3429 (next_element_from_buffer): Call composition_compute_stop_pos with
3430 negative ENDPOS if we are scanning backward.
3431 (next_element_from_composition): Pay attention to
3432 IT->cmp_it.reversed_p.
3433
0e5d7800
KH
34342010-05-14 Kenichi Handa <handa@m17n.org>
3435
560bb7ae 3436 * font.c (font_range): Return the range for the font found at first.
0e5d7800 3437
cb027b32
GM
34382010-05-14 Glenn Morris <rgm@gnu.org>
3439
177b0288
GM
3440 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3441
fbc00890
GM
3442 * Makefile.in (mktime, X11, register): Move undefs to configure.
3443
f14d1dfd
GM
3444 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3445 (MSDOS_X_OBJ): New variable.
3446 (MSDOS_SUPPORT_REAL): New constant.
3447 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3448 (obj): Use MSDOS_X_OBJ.
3449 (lisp): Use MSDOS_SUPPORT as a variable.
3450
11842bd8
GM
3451 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3452 (GPM_MOUSE_SUPPORT): Now it's a constant.
3453 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3454 not cpp.
3455
489d31a4 3456 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 3457 (ns_appresdir): Remove, unused.
e20f1f07 3458
489d31a4
GM
3459 * Makefile.in (SHELL): Move outside cpp section.
3460
cb027b32
GM
3461 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3462
5a903aa9
GM
34632010-05-13 Glenn Morris <rgm@gnu.org>
3464
3369c79f
GM
3465 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3466 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3467
d5e982a6
GM
3468 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3469 HAVE_WINDOW_SYSTEM must be too.
3470
6192e163
GM
3471 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3472 (lisp): Remove WINNT_SUPPORT.
3473
472c5d6b
GM
3474 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3475 Let configure set these variables (to empty) in this case as well.
3476
0116466b
GM
3477 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3478 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3479
5a903aa9
GM
3480 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3481 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3482 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3483 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3484 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 3485 the values output by configure.
5a903aa9
GM
3486 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3487
1a0d7c06
GM
34882010-05-12 Glenn Morris <rgm@gnu.org>
3489
b5457f14
GM
3490 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3491 (LINKER_WAS_SPECIFIED): Remove.
3492
1a0d7c06
GM
3493 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3494 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3495 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3496 * s/cygwin.h (LIB_GCC):
3497 * s/freebsd.h (LIB_GCC):
3498 * s/gnu-linux.h (LIB_GCC):
3499 * s/msdos.h (LIB_GCC):
3500 * s/netbsd.h (LIB_GCC):
3501 Move to configure.
3502
3ffd4615 35032010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
3504
3505 * ftfont.c: Fix incorrect parentheses of #if condition for
3506 definining M17N_FLT_USE_NEW_FEATURE.
3507
acddf8ae
GM
35082010-05-11 Glenn Morris <rgm@gnu.org>
3509
3510 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3511 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3512
ae5e04fa
EZ
35132010-05-10 Eli Zaretskii <eliz@gnu.org>
3514
3515 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3516 unibyte buffers. See
3517 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3518
7490175b
GM
35192010-05-10 Glenn Morris <rgm@gnu.org>
3520
97efb629
GM
3521 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3522 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3523 (LIBES): Use LIBS_SYSTEM as a variable.
3524 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3525 * s/aix4-2.h (LIBS_SYSTEM):
3526 * s/freebsd.h (LIBS_SYSTEM):
3527 * s/hpux10-20.h (LIBS_SYSTEM):
3528 * s/sol2-6.h (LIBS_SYSTEM):
3529 * s/unixware.h (LIBS_SYSTEM):
3530 Move to configure.
3531
7490175b
GM
3532 * s/aix4-2.h (MAIL_USE_LOCKF):
3533 * s/bsd-common.h (MAIL_USE_FLOCK):
3534 * s/darwin.h (MAIL_USE_FLOCK):
3535 * s/gnu-linux.h (MAIL_USE_FLOCK):
3536 * s/irix6-5.h (MAIL_USE_FLOCK):
3537 * s/template.h (MAIL_USE_FLOCK):
3538 Move to configure.
3539
0235128c 35402010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
3541
3542 * Version 23.2 released.
3543
0235128c 35442010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
3545
3546 * composite.c (autocmp_chars): Save point as marker before calling
3547 auto-composition-function (Bug#5984).
3548
3549 * lisp.h (restore_point_unwind): Add prototype.
3550
3551 * fileio.c (restore_point_unwind): Remove static attribute.
3552
0235128c 35532010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
3554
3555 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3556 new feature of libotf and m17n-flt.
0235128c
SM
3557 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3558 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
3559 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3560 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3561 that OUT is NULL. Use OTF_drive_gsub_with_log and
3562 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3563 OTF_drive_gpos.
3564 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
3565 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3566 Setup mflt_enable_new_feature and mflt_try_otf.
3567
4721152c
J
35682010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3569
3570 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3571
3572 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3573 box and toolbar (Bug #6139).
3574 (xg_create_tool_bar): Remove comment (Bug #6139).
3575 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3576 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3577
ee0a16cf
JB
35782010-05-08 Juanma Barranquero <lekktu@gmail.com>
3579
3580 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3581 Update dependencies.
3582
96d79611
EZ
35832010-05-08 Eli Zaretskii <eliz@gnu.org>
3584
3585 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3586 R2L lines.
3587
40c17879
GM
35882010-05-08 Glenn Morris <rgm@gnu.org>
3589
7b42b29f
GM
3590 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3591
40c17879
GM
3592 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3593 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3594 (termcapobj): Replace with TERMCAP_OBJ.
3595 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3596 (LIBES): Use LIBS_TERMCAP as a variable.
3597
3598 * s/freebsd.h (osreldate.h): No longer include, since this file
3599 does not use __FreeBSD_version any more.
3600
3601 * s/aix4-2.h (TERMINFO):
3602 * s/cygwin.h (TERMINFO):
3603 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3604 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3605 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3606 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3607 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3608 * s/irix6-5.h (TERMINFO):
3609 * s/netbsd.h (LIBS_TERMCAP):
3610 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3611 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3612 * s/usg5-4.h (TERMINFO):
3613 Move to configure.
3614
94b612ad
SM
36152010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3616
3617 * eval.c (unbind_to): Don't unbind a local binding into the global
3618 binding when the local binding disappeared. Inversely, don't unbind
3619 a global binding into a newly created local binding.
3620 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3621 can specify the frame to use, when applicable. Adjust callers.
3622
15e12598 36232010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 3624 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
3625
3626 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3627
f724825e
EZ
36282010-05-07 Eli Zaretskii <eliz@gnu.org>
3629
5cba3209
EZ
3630 * w32fns.c: Include w32.h.
3631 (Fw32_shell_execute): Decode the error message before passing it
3632 to `error'. (Bug#6126)
3633
d16bdfc3
EZ
3634 * msdos.c (dos_set_window_size):
3635 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3636 instead of `XSYMBOL (foo)->value'.
3637
59d93e87
EZ
36382010-05-07 Eli Zaretskii <eliz@gnu.org>
3639
9fdec8bc
EZ
3640 Fix the MS-DOS build, broken by autoconfiscation.
3641
3642 * Makefile.in: Don't use Make-style comments past the "start of
3643 cpp stuff" line.
3644 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3645
3646 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3647 edited directly by msdos/sed1v2.inp).
f724825e 3648
2f86b22b
GM
36492010-05-07 Glenn Morris <rgm@gnu.org>
3650
3651 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3652 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3653 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3654 move out of cpp section.
3655 * s/freebsd.h (LD_SWITCH_SYSTEM):
3656 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3657 * s/netbsd.h (LD_SWITCH_SYSTEM):
3658 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3659
49ebbd65
DN
36602010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3661
3662 Define LIB_STANDARD and START_FILES using autoconf.
3663 * s/usg5-4.h (LIB_STANDARD):
3664 * s/netbsd.h (START_FILES):
3665 * s/irix6-5.h (LIB_STANDARD):
3666 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3667 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3668 * s/freebsd.h (START_FILES):
3669 * s/darwin.h (START_FILES):
3670 * s/cygwin.h (START_FILES):
3671 * s/aix4-2.h (LIB_STANDARD):
3672 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3673 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3674 autoconf, not cpp.
3675
d43c06d6
DN
36762010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3677
28823648
DN
3678 Remove NEED_BSDTTY and NEED_UNISTD_H.
3679 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3680 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3681 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3682 <sys/ptyio.h> and <unistd.h>.
3683
aca00430
DN
3684 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3685
d43c06d6
DN
3686 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3687 * s/gnu.h (START_FILES): Remove empty definition.
3688
3e56b11d
JD
36892010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3690
3691 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3692
e3cf0cde
GM
36932010-05-06 Glenn Morris <rgm@gnu.org>
3694
3695 * Makefile.in (CPP, LN_S): Remove unused variables.
3696
774b9a60
SM
36972010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3698
3699 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3700
4ab92842
LM
37012010-05-05 Lawrence Mitchell <wence@gmx.li>
3702
3703 * m/sparc.h: Fix typo in earlier change.
3704
178f2507
SM
37052010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3706
3707 Misc tweaks.
3708 * eval.c (Fdefvaralias): Remove unintended nested if.
3709 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3710
80f00217 37112010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
3712
3713 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3714
ef03a4e6
DN
37152010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3716
58eb6cf0
DN
3717 Remove BSD_PGRPS.
3718 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3719 * s/gnu-linux.h (BSD_PGRPS): Remove.
3720 * term.c (dissociate_if_controlling_tty):
3721 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3722 (init_sys_modes, reset_sys_modes):
3723 * emacs.c (main):
3724 * callproc.c (Fcall_process, child_setup): Remove code depending
3725 on BSD_PGRPS.
3726
ef03a4e6
DN
3727 Remove POSIX_SIGNALS.
3728 * s/usg5-4.h (POSIX_SIGNALS):
3729 * s/netbsd.h (POSIX_SIGNALS):
3730 * s/msdos.h (POSIX_SIGNALS):
3731 * s/ms-w32.h (POSIX_SIGNALS):
3732 * s/hpux11.h (POSIX_SIGNALS):
3733 * s/gnu.h (POSIX_SIGNALS):
3734 * s/gnu-linux.h (POSIX_SIGNALS):
3735 * s/freebsd.h (POSIX_SIGNALS):
3736 * s/darwin.h (POSIX_SIGNALS):
3737 * s/cygwin.h (POSIX_SIGNALS):
3738 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3739 * s/unixware.h:
3740 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3741 * process.c (create_process):
3742 * syssignal.h:
3743 * sysdep.c (wait_for_termination, init_signals):
3744 * process.c (create_process):
3745 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3746 remove all code that assumes the contrary.
3747
49628785
GM
37482010-05-04 Glenn Morris <rgm@gnu.org>
3749
27a2cdfc
GM
3750 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3751 variable.
3752 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3753 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3754 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3755 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3756 LD_SWITCH_SYSTEM_tmp.
3757 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3758 New variables, set by configure.
3759
eb21eab5
GM
3760 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3761 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3762 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3763 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3764 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3765
49628785
GM
3766 * s/aix4-2.h (C_SWITCH_SYSTEM):
3767 * m/alpha.h (C_SWITCH_MACHINE):
3768 Move to configure.in.
3769 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3770 New variables, set by configure.
3771 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3772 $c_switch_machine and $c_switch_system.
3773
7dff330b
DN
37742010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3775
3776 * s/hpux10-20.h (LIB_STANDARD): New definition.
3777 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3778 on it, not used anymore.
3779
53967e09
CY
37802010-05-03 Chong Yidong <cyd@stupidchicken.com>
3781
3782 * eval.c (internal_condition_case_n): Rename from
3783 internal_condition_case_2.
3784 (internal_condition_case_2): New function.
3785
3786 * xdisp.c (safe_call): Use internal_condition_case_n.
3787
3788 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3789 (internal_delete_file, Frename_file): Callers changed.
3790
3791 * buffer.c (Fkill_buffer):
3792 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3793
3794 * lisp.h: Update prototypes.
3795
3dee6fdb
GM
37962010-05-03 Glenn Morris <rgm@gnu.org>
3797
3798 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3799 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3800 (LIBXT): Set with configure, not cpp.
3801 (LIBX): Remove.
3802 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3803
a101e0fb
DN
38042010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3805
3806 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3807 The FreeBSD is not needed, the default works, Solaris version is
3808 not needed, and the remaining case is not supported by configure.
3809
f63d0028
JD
38102010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3811
3812 * xsmfns.c (CHDIR_OPT): New define.
3813 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3814 restarting emacs.
3815
3816 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3817 shut_down_emacs.
3818
3819 * emacs.c (USAGE1): Mention --chdir.
3820 (main): Handle --chdir.
3821 (standard_args): Add --chdir.
3822 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3823 #5552).
3824
e4814a9f
DN
38252010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3826
cd03c74a
DN
3827 Remove LD_SWITCH_MACHINE.
3828 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3829 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3830
c3a398a1
DN
3831 Clean up IRIX code.
3832 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3833 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3834
87e7285c
DN
3835 Clean up AIX code.
3836 * m/ibmrs6000.inp: Remove file, unused.
3837 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3838 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3839 definition ...
3840 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3841
80f00217
JB
3842 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3843 unused.
e4814a9f 3844
59ca28de
EZ
38452010-05-01 Eli Zaretskii <eliz@gnu.org>
3846
197daef4
EZ
3847 Emulate POSIX_SIGNALS on MS-Windows.
3848
3849 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3850 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
3851
3852 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3853 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3854 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3855
80f00217
JB
3856 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3857 New stubs.
197daef4 3858
af7c7572
EZ
3859 Miscellaneous fixes of bidi display.
3860
59ca28de
EZ
3861 * xdisp.c (find_row_end): New function, refactored from display_line.
3862 (display_line): Use it.
017ea819
EZ
3863 (extend_face_to_end_of_line): In almost-filled rows, extend only
3864 if the row is R2L and not continued.
166e930d 3865 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 3866 Preserve overlay and string info in row->end.
166e930d
EZ
3867 (insert_left_trunc_glyphs): Support addition of left truncation
3868 glyphs to R2L rows.
b47e0dcf 3869 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
3870 glyph between adjacent windows. Fix a crash when a display string
3871 is continued to the next line. Don't return zero if cursor was
3872 found by `cursor' property of a display string.
b47e0dcf
EZ
3873 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3874 test for that explicitly.
59ca28de 3875
7acac9f4
GM
38762010-05-01 Glenn Morris <rgm@gnu.org>
3877
3878 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3879 for clarity.
3880 (OTHER_OBJ): Remove.
3881 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3882 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3883
45841e65
KK
38842010-05-01 Karel Klíč <kklic@redhat.com>
3885
3886 * fileio.c (Ffile_selinux_context): Context functions may return null.
3887
afc61943
DN
38882010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3889
80f00217 3890 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 3891
5a1bb006
GM
38922010-04-30 Glenn Morris <rgm@gnu.org>
3893
3894 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3895 (OTHER_OBJ): Define as a separate variable, for clarity.
3896
210af043
J
38972010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3898
3899 * xsettings.c: include limits.h and update file comment.
3900
0a7df391
GM
39012010-04-30 Glenn Morris <rgm@gnu.org>
3902
d5096f16
GM
3903 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3904 Set with configure, not cpp.
3905 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3906
7eb1ac33
GM
3907 * Makefile.in (mallocobj): Remove.
3908 (otherobj): Simplify using @OTHER_OBJ@.
3909
517d086b
GM
3910 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3911 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3912 Don't bother making nsgui.h dependency platform-specific.
3913
0a7df391
GM
3914 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3915
d6d23852
SM
39162010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3917
d2630aef
SM
3918 * process.c (read_process_output, exec_sentinel): Don't burp if the
3919 sentinel/filter kills the current buffer (bug#6060).
3920
f9dddf52 3921 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
3922 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3923 Remove unused var `args'.
3924 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3925 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3926 * doc.c (store_function_docstring): Use XSETCAR.
3927
f1e3642a
GM
39282010-04-28 Glenn Morris <rgm@gnu.org>
3929
faf535f8
GM
3930 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3931 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3932
c40f9449
GM
3933 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3934
658f86ca
GM
3935 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3936 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3937
bc0b5f61
GM
3938 * Makefile.in (FONT_OBJ): New, set by configure.
3939 (FONT_DRIVERS): Use $FONT_OBJ.
3940
294c50a0
GM
3941 * Makefile.in (LIBXMU): Set with configure, not cpp.
3942 * s/aix4-2.h (LIBXMU):
3943 * s/hpux10-20.h (LIBXMU):
3944 Remove definition, now set in configure.
3945
e6ec4e99
GM
3946 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3947
f1e3642a
GM
3948 * m/amdx86-64.h [i386]: Move this test to configure.in.
3949
c6ea2936
GM
39502010-04-27 Glenn Morris <rgm@gnu.org>
3951
8fdac2c3
GM
3952 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3953 * s/unixware.h (NEED_LIBW): Remove definition.
3954
986fb647
GM
3955 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3956 (TOOLKIT_LIBW): New, set by configure.
3957 (@X_TOOLKIT_TYPE@): No longer define it.
3958
c6ea2936
GM
3959 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3960 (MOTIF_LIBW): Set with configure, not cpp.
3961 * s/aix4-2.h (LIB_MOTIF):
3962 * s/gnu-linux.h (LIB_MOTIF):
3963 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3964
aaa36002
DN
39652010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3966
3967 Reduce CPP usage.
3968 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3969 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3970 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3971 definitions and undefs. Inline definitions in the only user.
3972 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3973
b678dd8b
GM
39742010-04-27 Glenn Morris <rgm@gnu.org>
3975
76cda504
GM
3976 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3977 since the defaults (set by the system file) are fine in most cases.
3978 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3979 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3980 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3981 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3982 Remove definitions, since they are set correctly in s/gnu-linux.h.
3983 * s/freebsd.h (START_FILES, LIB_STANDARD):
3984 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3985 * s/hpux10-20.h (START_FILES):
3986 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3987 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3988
b678dd8b
GM
3989 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3990 (MOTIF_LIBW): Use $LIBXP.
3991 (otherobj): Use $WIDGET_OBJ.
3992
9452ded1
DN
39932010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3994
7e10844c
DN
3995 * Makefile.in (LIBS_MACHINE): Remove, unused.
3996
9452ded1
DN
3997 Use autoconf instead of cpp for LIB_MATH.
3998 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3999 * s/cygwin.h (LIB_MATH): Likewise.
4000 * Makefile.in (LIB_MATH): Do not define with cpp.
4001 (LIBES): Use autoconf for LIB_MATH.
4002
fcebfc6a
KH
40032010-04-26 Kenichi Handa <handa@m17n.org>
4004
4005 * composite.c (Ffind_composition_internal): Fix the return value
4006 for an automatic composition.
4007
39e2ad1b
DN
40082010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4009
4010 Remove all NO_ARG_ARRAY uses.
4011 * fns.c (concat2, concat3, nconc2):
4012 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4013 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4014 * m/xtensa.h (NO_ARG_ARRAY):
4015 * m/template.h (NO_ARG_ARRAY):
4016 * m/sparc.h (NO_ARG_ARRAY):
4017 * m/sh3.h (NO_ARG_ARRAY):
4018 * m/mips.h (NO_ARG_ARRAY):
4019 * m/macppc.h (NO_ARG_ARRAY):
4020 * m/iris4d.h (NO_ARG_ARRAY):
4021 * m/intel386.h (NO_ARG_ARRAY):
4022 * m/ibms390x.h (NO_ARG_ARRAY):
4023 * m/ibms390.h (NO_ARG_ARRAY):
4024 * m/ibmrs6000.h (NO_ARG_ARRAY):
4025 * m/ia64.h (NO_ARG_ARRAY):
4026 * m/hp800.h (NO_ARG_ARRAY):
4027 * m/arm.h (NO_ARG_ARRAY):
4028 * m/amdx86-64.h (NO_ARG_ARRAY):
4029 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4030
adf4f59c
EZ
40312010-04-25 Eli Zaretskii <eliz@gnu.org>
4032
6bdf5d65
EZ
4033 * xdisp.c (display_line): Don't assume 2nd call to
4034 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
4035 (iterate_out_of_display_property): New function, body from pop_it.
4036 (pop_it): Use it.
adf4f59c 4037
dfbbda83
GM
40382010-04-24 Glenn Morris <rgm@gnu.org>
4039
4040 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4041 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4042 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4043 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4044
2d4018aa
EZ
40452010-04-24 Eli Zaretskii <eliz@gnu.org>
4046
a49884a6
EZ
4047 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4048 use `get_next_display_element' and `set_iterator_to_next' to
4049 advance to the next character, when looking for the character that
4050 begins the next row.
4051
76db6fcc 4052 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
4053 definition of "struct Lisp_Symbol".
4054
70eab5c1
GM
40552010-04-24 Glenn Morris <rgm@gnu.org>
4056
4057 * Makefile.in (CRT_DIR): New variable, set by configure.
4058 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4059 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4060
1ad4cc3d
DN
40612010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4062
e769f484
DN
4063 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4064
4196ff33
DN
4065 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4066
879b0ee4
DN
4067 Remove redundant flags.
4068 * s/freebsd.h (C_SWITCH_SYSTEM):
4069 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4070 * s/netbsd.h (C_SWITCH_SYSTEM):
4071 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4072 of these.
4073
03cbbcb8
DN
4074 Simplify m/intel386.h.
4075 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4076 user: ecrt0.c.
4077 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4078 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4079 the only user: s/unixware.h.
4080 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4081 from m/intel386.h.
4082 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4083 moved here from m/intel386.h.
4084
1ad4cc3d
DN
4085 * m/mips.h: Remove #if 0 code.
4086
8785b888
EZ
40872010-04-23 Eli Zaretskii <eliz@gnu.org>
4088
728588cc
EZ
4089 Fix display of composed characters from L2R scripts in bidi buffers.
4090 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4091 After advancing IT past the composition, resync the bidi iterator
4092 with IT's position. (Bug#5977)
4093
a63f80b4
DN
40942010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4095
4096 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4097 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4098
ff5dec5c
SM
40992010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4100
4101 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4102
8785b888
EZ
41032010-04-23 Eli Zaretskii <eliz@gnu.org>
4104
58ccf243 4105 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
4106 * xdisp.c (pop_it): When the stack is popped after displaying
4107 from a string, bidi-iterate to exit from the text portion covered
4108 by the `display' property or overlay. (Bug#5988, bug#5920)
4109
feeb1604
DN
41102010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4111
8e324eb6
DN
4112 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4113 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4114
809fcaba
DN
4115 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4116 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4117
ed710380
DN
4118 Simplify STARTFILES definition.
4119 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4120 relying on Makefile.in to define it.
4121 * s/cygwin.h (START_FILES): Likewise.
4122 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4123
feeb1604
DN
4124 Clean up Solaris code.
4125 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4126 (LIB_MOTIF): Remove, configure takes care of this.
4127 (NOT_USING_MOTIF): Remove, unused.
4128 * xrdb.c: Remove #if 0-ed #include.
4129 (SYSV): Remove conditional for old SysV.
4130 * sysdep.c (closedir): Remove conditional code for Solaris,
4131 Solaris has closedir.
4132
a0d0b563
JD
41332010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4134
4135 * xsettings.c (read_and_apply_settings): Check if current_font is
4136 NULL before strcmp (Bug#6001).
4137
56bae7c7
DN
41382010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4139
4140 Clean up HP-UX files.
4141 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4142 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4143 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4144 * s/hpux10-20.h: ... to the only user, here.
4145
372b7a95
EZ
41462010-04-21 Eli Zaretskii <eliz@gnu.org>
4147
4148 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4149 use buffer-local values of paragraph-start and paragraph-separate.
4150 <paragraph_start_re, paragraph_separate_re>: Rename from
4151 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4152 (Bug#5992)
4153
f904c0f9
JD
41542010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4155
4156 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4157 current_tool_bar_style are new.
4158 (store_config_changed_event): Rename from store_font_changed_event.
4159 (XSETTINGS_TOOL_BAR_STYLE): New define.
4160 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4161 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4162 HAVE_XFT.
4163 (something_changedCB): store_font_changed_event is now
c4cc8b9a 4164 store_config_changed_event.
f904c0f9
JD
4165 (parse_settings): Rename from parse_xft_settings. Read
4166 non-xft xsettings outside #ifdef HAVE_XFT.
4167 (read_settings): Renamed from read_xft_settings.
4168 (apply_xft_settings): Take current settings as parameter. Do not
4169 call read_(xft)_settings.
4170 (read_and_apply_settings): New function.
4171 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4172 read_and_apply_settings if there are settings to be read.
4173 (init_xsettings): Renamed from init_xfd_settings.
4174 Call read_and_apply_settings unconditionally.
4175 (xsettings_initialize): Call init_xsettings.
4176 (Ftool_bar_get_system_style): New function.
4177 (syms_of_xsettings): Define Qmonospace_font_name and
4178 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 4179 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 4180 dynamic-setting.
31a01b90 4181 Move misplaced HAVE_GCONF
f904c0f9
JD
4182
4183 * xsettings.h (Ftool_bar_get_system_style): Declare.
4184
4185 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4186 Qtext, Qboth, Qboth_horiz are new.
4187 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4188 Vtool_bar_style, tool_bar_max_label_size.
4189
4190 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4191
4192 * keyboard.c: QClabel is new.
4193 (parse_tool_bar_item): Take out QClabel from tool bar items.
4194 Try to construct a label if ther is no QClabel.
4195 (syms_of_keyboard): Intern :label as QClabel.
4196
4197 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4198 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4199 New.
4200
4201 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4202 dynamic-setting.el.
4203
4204 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4205 (xg_make_tool_item, xg_show_toolbar_item): New function.
4206 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4207 Call xg_make_tool_item to make a tool bar item.
4208 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4209
4210 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4211 into account for toolbars.
4212
c632dfda
JD
42132010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4214
4215 * data.c (make_blv): Declarations before code (Bug#5993).
4216
10efe302
GM
42172010-04-21 Glenn Morris <rgm@gnu.org>
4218
4219 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4220 Define using autoconf, not cpp.
4221 (LIBXSM): New variable, set by autoconf.
4222 (LIBXT): Use $LIBXSM.
4223
4285ac5a
DN
42242010-04-21 Dan Nicolaescu <local_user@dannlt>
4225
3ec759e7
DN
4226 Remove NOMULTIPLEJOBS, unused.
4227 * s/template.h (NOMULTIPLEJOBS):
4228 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4229
4285ac5a
DN
4230 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4231 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4232 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4233 detects -znocombreloc and passes it to the linker
4234 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4235
2807228d
GM
42362010-04-21 Glenn Morris <rgm@gnu.org>
4237
4238 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4239
574c05e2
KK
42402010-04-21 Karel Klíč <kklic@redhat.com>
4241
4242 * Makefile.in (LIBSELINUX_LIBS): New.
4243 (LIBES): Add $LIBSELINUX_LIBS.
4244 * eval.c, lisp.h (call7): New function.
4245 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4246 (Ffile_selinux_context, Fset_file_selinux_context):
4247 New functions.
4248 (Fcopy_file): New parameter preserve-selinux-context.
4249 (Frename_file): Preserve selinux context when renaming by copy-file.
4250
91eac4bb 42512010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 4252 Eli Zaretskii <eliz@gnu.org>
91eac4bb 4253
50426a04
JB
4254 Don't depend on cm.c or termcap.c on Windows, use stubs.
4255 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4256 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4257 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4258 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4259 (sys_tputs, sys_tgetstr): New stubs.
4260 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4261 (tputs, tgetstr): New; define to sys_*.
91eac4bb 4262
938efb77
JB
42632010-04-20 Juanma Barranquero <lekktu@gmail.com>
4264
4265 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4266
b4bf28b7
SM
42672010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4268
8b1e1112
SM
4269 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4270 Just signal a warning rather than an error when inside a let.
4271 (Fmake_variable_frame_local): Add the same test.
4272
933ac235
SM
4273 * font.c (syms_of_font): Make the style table vars read-only.
4274
b4bf28b7
SM
4275 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4276 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4277
4278 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4279
93d68d0c
EZ
42802010-04-20 Eli Zaretskii <eliz@gnu.org>
4281
4282 Fix R2L paragraph display on TTY.
4283
4284 * xdisp.c (unproduce_glyphs): New function.
4285 (display_line): Use it when produced glyphs are discarded from R2L
4286 glyph rows.
4287 (append_composite_glyph): In R2L rows, prepend the glyph rather
4288 than appending it.
4289
4290 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4291 rather than append it. Set up the resolved_level and bidi_type
4292 attributes of the appended glyph.
283ccc18
EZ
4293 (produce_special_glyphs): Mirror the backslash continuation
4294 character in R2L lines.
93d68d0c 4295
283ccc18 4296 Implement display of R2L paragraphs in GUI sessions.
26cdf528 4297
283ccc18
EZ
4298 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4299 append_stretch_glyph.
4300 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4301 off-by-one error in computing x at end of text in the row.
4302 (append_stretch_glyph): In reversed row, prepend the glyph rather
4303 than append it. Set resolved_level and bidi_type of the glyph.
4304 (extend_face_to_end_of_line): If the row is reversed, prepend a
4305 stretch glyph whose width is such that the rightmost glyph will be
4306 drawn at the right margin of the window. Fix off-by-one error on
4307 TTY frames in testing whether a line needs face extension. Fix
4308 face extension at ZV. If this is the last glyph row, use
4309 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4310 region face.
4311 (set_cursor_from_row, display_line): Use
26cdf528
EZ
4312 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4313 row->continuation_lines_width.
283ccc18
EZ
4314 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4315 are at ZV. Fixes a crash when reseated to ZV by
4316 try_window_reusing_current_matrix.
45903529
EZ
4317 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4318 which happens with R2L glyph rows. Fixes a crash when inserting a
4319 character at end of an R2L line.
283ccc18
EZ
4320 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4321 treat them as having zero-width characters. Improve comments.
4322 Don't reverse pos_before and pos_after for reversed glyph rows.
4323 Set cursor.x to negative value when the cursor might be on the
4324 left fringe.
4325 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4326 left fringe, not the right one.
f951a506
EZ
4327 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4328 (erase_phys_cursor): For reversed cursor_row, support cursor on
4329 the left fringe.
4330
283ccc18
EZ
4331 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4332 of continuation indicators on the fringes.
4333 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4334 left fringe.
4335
f951a506
EZ
4336 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4337 draw cursor on the left fringe.
4338
4339 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4340 cursor on the left fringe.
4341
f951a506
EZ
4342 * dispnew.c (update_text_area): Handle reversed desired rows when
4343 the cursor is on the left fringe.
4344 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4345 below, not by 0, for when the cursor is on the left fringe.
4346
3bb49aaf
JD
43472010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4348
4349 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4350 widget is a scrollbar.
4351
c0be27fd
KH
43522010-04-20 Kenichi Handa <handa@m17n.org>
4353
4354 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4355 only when the arg CHARSET_LIST is nil.
4356
ce5b453a
SM
43572010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4358
4359 Make variable forwarding explicit rather the using special values.
4360 Basically, this makes the structure of buffer-local values and object
4361 forwarding explicit in the type of Lisp_Symbols rather than use
4362 special Lisp_Objects for that. This tends to lead to slightly more
4363 verbose code, but is more C-like, simpler, and makes it easier to make
4364 sure we handled all cases, among other things by letting the compiler
4365 help us check it.
4366 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4367 Removing forwarding objects.
4368 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4369 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4370 explicit rather than hiding them inside Lisp_Object "values".
4371 (XFWDTYPE): New macro.
4372 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4373 (XBUFFER_LOCAL_VALUE): Remove.
4374 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4375 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4376 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4377 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4378 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4379 Remove the Lisp_Misc_* header.
4380 (struct Lisp_Buffer_Local_Value): Redefine.
4381 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4382 (struct Lisp_Misc_Any): Add filler to get the right size.
4383 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4384 Lisp_Intfwd.
4385 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4386 (DEFVAR_KBOARD): Allocate a forwarding object.
4387 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4388 (let_shadows_global_binding_p): New function.
4389 (union Lisp_Val_Fwd): New type.
4390 (make_blv): New function.
4391 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4392 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4393 (swap_in_symval_forwarding, find_symbol_value, Fset)
4394 (let_shadows_buffer_binding_p, set_internal, default_value)
4395 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4396 (Fkill_local_variable, Fmake_variable_frame_local)
4397 (Flocal_variable_p, Flocal_variable_if_set_p)
4398 (Fvariable_binding_locus):
4399 * xdisp.c (select_frame_for_redisplay):
4400 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4401 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4402 * frame.c (store_frame_param):
4403 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4404 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4405 value structure.
4406 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4407 (clone_per_buffer_values): Only adjust markers into the current buffer.
4408 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4409 (Fbuffer_local_value, set_buffer_internal_1)
4410 (swap_out_buffer_local_variables):
4411 Adapt to the new symbol value structure.
4412 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4413 (defvar_per_buffer): Take a new arg for the fwd object.
4414 (buffer_lisp_local_variables): Return a proper alist (different fix
4415 for bug#4138).
4416 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4417 (Fgarbage_collect): Don't handle buffer_defaults specially.
4418 (mark_object): Handle new symbol value structure rather than the old
4419 special Lisp_Misc_* objects.
4420 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4421 * term.c (set_tty_color_mode):
4422 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4423 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4424 a buffer_local_flags.
4425 * print.c (print_object): Get rid of impossible forwarding objects.
4426
fd3998ff
EZ
44272010-04-19 Eli Zaretskii <eliz@gnu.org>
4428
4429 * bidi.c (bidi_get_type, bidi_get_category)
4430 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
4431 (bidi_type_of_next_char, bidi_level_of_next_char):
4432 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 4433
e42cd1a7
JB
44342010-04-19 Juanma Barranquero <lekktu@gmail.com>
4435
4436 * dired.c (Ffile_attributes): Fix typo in docstring.
4437
6e104790 44382010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
4439
4440 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4441 NSInteger (Bug#5811).
4442
6e104790 44432010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
4444
4445 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4446 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4447
6e104790 44482010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
4449
4450 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4451
6e104790
SM
44522010-04-19 Chong Yidong <cyd@stupidchicken.com>
4453
4454 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4455 terminal frames (Bug#5837).
4456
37dcfea0
EZ
44572010-04-19 Eli Zaretskii <eliz@gnu.org>
4458
d1da276f
EZ
4459 * .gdbinit (xsubchartable): New command.
4460
37dcfea0
EZ
44612010-04-19 Eli Zaretskii <eliz@gnu.org>
4462
4463 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 4464 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
4465 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4466 and
4467 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4468
e9515805
SM
44692010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4470
4471 * alloc.c (Fpurecopy): Hash-cons if requested.
4472 (syms_of_alloc): Update purify-flag docstring.
4473
22aa44a8
JD
44742010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4475
4476 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4477 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4478
ebb5722e
EZ
44792010-04-17 Eli Zaretskii <eliz@gnu.org>
4480
4481 Fix a crash when an NSM character is inserted at BEGV.
4482
4483 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4484 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4485 NEUTRAL_B or UNKNOWN_BT.
4486
0f4442ef
EZ
44872010-04-16 Eli Zaretskii <eliz@gnu.org>
4488
4489 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4490 other rows with cursor unless they are different from this row and
4491 this row is part of a continued line. (Bug#5943)
4492
7d4e45f8
DN
44932010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4494
4495 * s/freebsd.h: Restore osreldate.h include.
4496 Suggested by Naohiro Aota.
4497
5ba5ec85
J
44982010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4499
4500 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4501
20af301d
CY
45022010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4503
4504 * s/cygwin.h: Avoid linking against static libgcc.
4505
a4b000fb
JL
45062010-04-15 Juri Linkov <juri@jurta.org>
4507
4508 * window.c: Add Qscroll_command.
4509 Remove Vscroll_preserve_screen_position_commands.
4510 (window_scroll_pixel_based, window_scroll_line_based): Check the
4511 `scroll-command' property on the last command instead of searching
4512 the last command in Vscroll_preserve_screen_position_commands.
4513 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4514 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4515 (scroll-preserve-screen-position): Doc fix.
4516 (Vscroll_preserve_screen_position_commands): Remove variable.
4517
bc319ba4
DN
45182010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4519
6bb24457
DN
4520 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4521
19d4c244
DN
45222010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4523
4524 Reduce cpp use in Makefile.in.
4525 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4526 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4527 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4528 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4529 (CRT0_COMPILE): Remove, inline it in the only user.
4530
32129746
JL
45312010-04-14 Juri Linkov <juri@jurta.org>
4532
4533 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4534 `scroll-up-command' and `M-v' from `scroll-down' to
4535 `scroll-down-command'.
4536
9013a7f8
JL
45372010-04-14 Juri Linkov <juri@jurta.org>
4538
4539 * window.c (Vscroll_preserve_screen_position_commands): New variable
4540 with the default value as the list of Qscroll_down and Qscroll_up.
4541 (window_scroll_pixel_based, window_scroll_line_based): Search the
4542 last command in the list Vscroll_preserve_screen_position_commands
4543 instead of comparing with Qscroll_up and Qscroll_down.
4544
4bef8d26
JD
45452010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4546
92848133
JD
4547 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4548 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4549 does that.
4550
4bef8d26
JD
4551 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4552 to zero.
4553
58b963f7
SM
45542010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4555
84164a0d
SM
4556 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4557
2b0a91e7
SM
4558 Try to solve the problem of spurious EOF chars in long lines of text
4559 sent to interactive subprocesses.
4560 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4561 (system_process_attributes): Remove unused var `ttotal'.
4562 * process.c (send_process): Don't bother breaking long line with EOF
4563 chars when talking to ttys any more.
4564 (wait_reading_process_output): Output a warning when called in such
4565 a way that it could block without being interruptible.
4566
58b963f7
SM
4567 Try to detect file modification within the same second.
4568 * buffer.h (struct buffer): New field modtime_size.
4569 * buffer.c (reset_buffer): Initialize it.
4570 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4571 (Fverify_visited_file_modtime): Check it.
4572 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4573 (Fset_visited_file_modtime): Set (or clear) it.
4574
01f5787b
SM
45752010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4576
4577 * process.c (status_notify): Remove unused var `ro'.
4578
83725342
JD
45792010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4580
4581 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4582 more than one visual (Bug#5938).
4583
b9465836
DN
45842010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4585
50426a04
JB
4586 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4587 Undefine.
b9465836 4588
8d9c8ece
DN
45892010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4590
b1f52161
DN
4591 Remove C_SWITCH_SYSTEM_TEMACS.
4592 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4593 (malloc, realloc, free): Use emacs, not temacs for conditional
4594 definition.
4595
4596 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4597 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4598
8d9c8ece
DN
4599 Use autoconf, not cpp for some variables.
4600 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4601 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4602 (ALL_CFLAGS): Use them as make variables.
4603 (really-lwlib, really-oldXMenu): Do not pass them.
4604
1ecb2d3f
JD
46052010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4606
4607 * xmenu.c (apply_systemfont_to_dialog): New.
4608 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4609
3a4fa2f2
SM
46102010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4611
97e53006
SM
4612 * process.c (exec_sentinel): Preserve current-buffer.
4613
3a4fa2f2
SM
4614 * process.c (read_process_output): Move the save-current-buffer to
4615 apply to both the filter and the non-filter branches.
4616
88df7221
DN
46172010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4618
4619 * s/msdos.h (UNEXEC): New definition.
4620
5634ff85
YM
46212010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4622
6eff5c3d
YM
4623 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4624 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4625
4626 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4627 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4628 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4629 TRY_WINDOW_CHECK_MARGINS.
4630
4631 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
4632 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4633 width only when it is for padding.
5634ff85 4634
b13aef54
J
46352010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4636
4637 * xfns.c (Fx_show_tip): Call try_window in a loop until
4638 fonts_changed_p is zero (Bug#2423).
4639
21d28484
EZ
46402010-04-08 Eli Zaretskii <eliz@gnu.org>
4641
4642 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4643 the end of TEXT_AREA. (Bug#5856)
4644
0269ef77
JD
46452010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4646
4647 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4648 HAVE_GCONF.
4649
5930fe97
EZ
46502010-04-08 Eli Zaretskii <eliz@gnu.org>
4651
4652 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4653 prev.orig_type, for resolving type of NSM. (Bug#5858)
4654
99852628
JD
46552010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4656
4657 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4658 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4659 in current_font.
4660 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
4661 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4662 New functions.
4663 (syms_of_xsettings): Initialize current_font.
4664 defsubr Sfont_get_system_normal_font.
99852628 4665
686b968e
JB
4666 * xsettings.h (Ffont_get_system_normal_font)
4667 (xsettings_get_system_normal_font): Declare.
99852628
JD
4668
4669 * xfns.c (extern xlwmenu_default_font): Remove.
4670 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4671 to xlwmenu.c.
4672
4673 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4674 menu items in UTF-8.
4675
4676 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4677 (apply_systemfont_to_menu): New function.
4678 (set_frame_menubar, create_and_show_popup_menu): Call
4679 apply_systemfont_to_menu.
4680
7fc874c4
J
46812010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4682
4683 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4684 FRAME_LINE_TO_PIXEL_Y.
4685
4686 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4687 pixelwidth/height.
4688
863bf481
DN
46892010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4690
5e5a3b92
DN
4691 Simplify code for HP machines.
4692 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4693 for GNU_LINUX, not needed.
4694 (UNEXEC, NEED_BSDTTY): Move definitions...
4695 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4696
863bf481
DN
4697 * m/iris4d.h (UNEXEC): Move definition ...
4698 * s/irix6-5.h (UNEXEC): ... here.
4699
3e6bec3b
JD
47002010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4701
4702 * xfns.c (set_machine_and_pid_properties): New function.
4703 (Fx_create_frame): Call set_machine_and_pid_properties.
4704
2912322b
SM
47052010-04-03 Eli Zaretskii <eliz@gnu.org>
4706
1502b819
EZ
4707 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4708 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4709 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4710
2912322b
SM
4711 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4712 in this function. (Bug#5703)
4713
47142010-04-03 Chong Yidong <cyd@stupidchicken.com>
4715
4716 * nsterm.h: Fix last change.
4717
c435b432
DN
47182010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4719
a568f507
DN
4720 * m/intel386.h (NO_REMAP): Move definition ...
4721 * s/msdos.h (NO_REMAP): ... here.
4722
4cd9f6c2
DN
4723 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4724
c435b432
DN
4725 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4726 used on those platforms.
4727
42a2c622
DN
47282010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4729
4730 Remove extern errno declarations.
4731 * xterm.c:
4732 * xrdb.c:
4733 * w32term.c:
4734 * unexec.c:
4735 * unexaix.c:
4736 * sysdep.c:
4737 * process.c:
4738 * lread.c:
4739 * keyboard.c:
4740 * floatfns.c:
4741 * filelock.c:
4742 * fileio.c:
4743 * emacs.c (main):
4744 * ecrt0.c:
4745 * dispnew.c:
4746 * callproc.c:
4747 * buffer.c: Remove errno extern declarations.
4748 * s/netbsd.h (NEED_ERRNO): Remove.
4749
8224f93d
DN
47502010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4751
4752 Remove all uses of LIBX11_SYSTEM.
4753 * Makefile.in (LIBX11_SYSTEM): Remove.
4754 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4755 instead.
4756
814062c7
EZ
47572010-04-01 Eli Zaretskii <eliz@gnu.org>
4758
ed68db4d
EZ
4759 Remove support for DJGPP v1.x (bug#5813).
4760
4761 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
4762 * s/msdos.h:
4763 * unexec.c (make_hdr, copy_text_and_data):
4764 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4765 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4766 (IT_set_terminal_modes, __write, _rename, gethostname)
4767 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4768 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4769 the value of __DJGPP__.
ed68db4d
EZ
4770 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4771 compatibility code.
8224f93d
DN
4772 * lread.c:
4773 * gmalloc.c (memalign):
4774 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4775 * emacs.c (main):
4776 * dosfns.c (init_dosfns):
ed68db4d
EZ
4777 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4778
52f4d8d5
EZ
47792010-04-01 Eli Zaretskii <eliz@gnu.org>
4780
814062c7
EZ
4781 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4782 string with `cursor' property comes from an `after-string'
4783 overlay. (Bug#5816)
4784
0dc2e11d
GM
47852010-04-01 Glenn Morris <rgm@gnu.org>
4786
4787 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4788 Define as Makefile variables.
4789 (LIBX): Use above variables rather than directly using autoconf.
4790
1d29df59
DN
47912010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4792
4793 Clean up BSD_SYSTEM use.
4794 * xterm.c:
4795 * process.c:
4796 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4797 for including <sys/ioctl.h>.
4798 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4799 code is only used for MSDOS.
4800
1546c559
JL
48012010-03-31 Juri Linkov <juri@jurta.org>
4802
4803 * image.c: Add `Qextension_data'.
4804 (syms_of_image): Initialize and staticpro `Qextension_data'.
4805 (Fimage_metadata): Rename from `Fimage_extension_data'.
4806 (gif_load): Put GIF extension data to the property
4807 `Qextension_data'.
4808
6521c534
CY
48092010-03-31 Chong Yidong <cyd@stupidchicken.com>
4810
4811 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4812 * nsterm.h: Fix prototype.
4813
52c30783
EZ
48142010-03-31 Eli Zaretskii <eliz@gnu.org>
4815
4816 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4817 trailing whitespace in right-to-left rows.
4818
855a0da7
SM
48192010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4820
4821 Get rid of the direct_output optimizations.
4822 * keyboard.c (nonundocount): Remove extern declaration.
4823 (command_loop_1): Remove brittle optimisation for cheap and
4824 common operations.
4825 * xdisp.c (redisplay_internal): Don't bother checking
4826 redisplay_performed_directly_p any more.
4827 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4828 any more.
4829 * dispnew.c (redisplay_performed_directly_p)
4830 (direct_output_for_insert, direct_output_forward_char):
4831 * dispextern.h (redisplay_performed_directly_p)
4832 (direct_output_for_insert, direct_output_forward_char): Remove.
4833 * cmds.c (nonundocount): Make it static.
4834
85738751 48352010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
4836
4837 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4838
85738751 48392010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
4840
4841 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4842 invisible (Bug#5766).
4843
85738751 48442010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 4845
855a0da7
SM
4846 * xdisp.c (x_consider_frame_title, update_window_cursor):
4847 Remove HAVE_NS conditionals.
194d44e7 4848 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
4849
4850 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4851 filename for the title.
4852 (ns_set_doc_edited): Do nothing if the selected window is a
4853 minibuffer window.
4854
4855 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4856 ns_set_doc_edited.
4857
4858 * nsterm.m: Remove unneeded prototype.
4859
85738751 48602010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
4861
4862 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4863 in the DOC file. (Bug#5336)
4864
85738751 48652010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
4866
4867 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4868
75d1428c
SM
48692010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4870
4871 * window.c (keys_of_window): Remove redundant/overridden bindings.
4872
82043cfb
EZ
48732010-03-30 Eli Zaretskii <eliz@gnu.org>
4874
4875 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4876 Restore original behavior when the iterator is not bidi_p.
4877
b5dd0ae7
DN
48782010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4879
4880 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4881
bd924a5d
EZ
48822010-03-30 Eli Zaretskii <eliz@gnu.org>
4883
4884 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4885 are outside the range of cached character positions.
4886
3580374b
JB
48872010-03-30 Juanma Barranquero <lekktu@gmail.com>
4888
4889 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4890
a7b02820
EZ
48912010-03-30 Eli Zaretskii <eliz@gnu.org>
4892
4893 Initial support for bidirectional editing.
4894
4895 * Makefile.in (obj): Include bidi.o.
4896 (bidi.o): New target.
4897
4898 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4899 ($(BLD)/bidi.$(O)): New target.
4900
4901 * bidi.c: New file.
4902
4903 * buffer.h (struct buffer): New members bidi_display_reordering
4904 and bidi_paragraph_direction.
4905
4906 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4907 and bidi_paragraph_direction.
4908 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4909 and bidi-paragraph-direction.
4910 (Fbuffer_swap_text): Swap the values of
4911 bidi_display_reordering and bidi_paragraph_direction.
4912
4913 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4914 (bidi_type_t, bidi_dir_t): New types.
4915 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4916 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4917 prev_stop, base_level_stop, and eol_pos.
4918 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4919 (IT_STACK_SIZE): Enlarge to 5.
4920 (struct glyph_row): New member reversed_p.
4921 <string_buffer_position>: Update prototype.
4922 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4923 glyph_row if bidi_it.paragraph_dir == R2L.
4924 (struct glyph): New members resolved_level and bidi_type.
4925
4926 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4927 processing or buffer's direction is right-to-left.
4928 (prepare_desired_row): Preserve the reversed_p flag.
4929 (row_equal_p): Compare the reversed_p attributes as well.
4930
4931 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4932 bidi_init_it and set it->paragraph_embedding from the current
4933 buffer's value of bidi_paragraph_direction.
4934 (reseat_1): Initialize bidi_it.first_elt.
4935 (set_iterator_to_next, next_element_from_buffer): Use the value of
4936 paragraph_embedding to determine the paragraph direction.
4937 (set_iterator_to_next): Under bidi reordering, call
4938 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4939 new_paragraph flag is set in the bidi iterator.
4940 (next_element_from_buffer): If bidi_it.first_elt is set,
4941 initialize paragraph direction and find the first character to
4942 display in the visual order. If reseated to a middle of a line,
4943 prime the bidi iterator starting at the line's beginning. Handle
4944 the situation where we overstepped stop_charpos due to
4945 non-linearity of the bidi iteration. Likewise for when we back up
4946 beyond the previous stop_charpos. When moving across stop_charpos,
4947 record it in prev_stop.
4948 (display_line): Set row->end and it->start for the next row to the
4949 next character in logical order. Always extend reversed_p rows to
4950 the end of line, even if they end at ZV. Copy the reversed_p flag
4951 to the next glyph row. Keep calling set_cursor_from_row for
4952 bidi-reordered rows even if we already have a possible candidate
4953 for cursor position. Set row_end after all the row's glyphs have
4954 been produced, by looping over the glyphs. Record the position
4955 after EOL in it->eol_pos, and use it to set end_pos of the last
4956 row produced for a continued line.
4957 <Qright_to_left, Qleft_to_right>: New variables.
4958 (syms_of_xdisp): Initialize and staticpro them.
4959 (string_buffer_position_lim): New function.
4960 (string_buffer_position): Most of code moved to
4961 string_buffer_position_lim. Last argument and return value are
4962 now EMACS_INT; all callers changed.
4963 (set_cursor_from_row): Rewritten to support bidirectional text and
4964 reversed glyph rows.
4965 (text_outside_line_unchanged_p, try_window_id): Disable
4966 optimizations if we are reordering bidirectional text and the
4967 paragraph direction can be affected by the change.
4968 (append_glyph, append_composite_glyph)
4969 (produce_image_glyph, append_stretch_glyph): Set the
4970 resolved_level and bidi_type members of each glyph.
4971 (append_glyph): If the glyph row is reversed, prepend the glyph
4972 rather than appending it.
4973 (handle_stop_backwards): New function.
4974 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4975 (reseat): call handle_stop_backwards to recompute prev_stop and
4976 base_level_stop for the new position.
4977 (handle_invisible_prop): Under bidi iteration, skip invisible text
4978 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4979 paragraph direction. Update IT->prev_stop after skipping
4980 invisible text.
4981 (move_it_in_display_line_to): New variables prev_method
4982 and prev_pos. Compare for strict equality in
4983 BUFFER_POS_REACHED_P.
4984 (try_cursor_movement): Examine all the candidate rows that occlude
4985 point, to return the best match. If rows are bidi-reordered
4986 and point moved backwards, back up to the row that is not a
4987 continuation line, and start looking for a suitable row from
4988 there.
4989
4990 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4991 rather than appending, if the glyph_row's reversed_p flag is set.
4992 Set the resolved_level and bidi_type members of each glyph.
4993
4994 * .gdbinit (pbiditype): New command.
4995 (pgx): Use it to display bidi level and type of the glyph.
4996 (pitx): Display some bidi information about the iterator.
4997 (prowlims, pmtxrows): New commands.
4998
32a8894e
DN
49992010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5000
5001 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5002 * s/usg5-4.h (LIBS_DEBUG):
5003 * s/irix6-5.h (C_DEBUG_SWITCH):
5004 * s/gnu-linux.h (LIBS_DEBUG):
5005 * s/darwin.h (LIBS_DEBUG):
5006 * s/bsd-common.h (LIBS_DEBUG):
5007 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5008 * m/iris4d.h (LIBS_DEBUG):
5009 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5010
5011 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5012 (LIBS_DEBUG): Remove definition.
5013
649dbf36
CY
50142010-03-27 Chong Yidong <cyd@stupidchicken.com>
5015
5016 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5017 Windows.
5018
cad4261f
YM
50192010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5020
5021 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5022 `connect' (Bug#5723).
5023
cd591dbc
HE
50242010-03-25 Helmut Eller <eller.helmut@gmail.com>
5025
5026 * process.c (Fmake_network_process): Call `select' for interrupted
5027 `connect' rather than creating new socket (Bug#5173).
5028
e867cb5d 50292010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
5030
5031 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5032
5033 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5034
5035 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5036
e867cb5d 50372010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
5038
5039 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5040 XLoadQueryFont.
5041
e867cb5d 50422010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
5043
5044 * coding.c (decode_coding_ccl): Fix previous change for the
5045 multibyte case.
fb608df3
KH
5046 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5047 case that the output buffer is fullfilled.
5048 (encode_coding): Setup ccl program here.
fbdc1721 5049
5845f0ed
DN
50502010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5051
814fb708
DN
5052 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5053
5845f0ed
DN
5054 Simplify LIBS_MACHINE definitions.
5055 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5056 * m/iris4d.h (LIBS_MACHINE): Likewise.
5057 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5058 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 5059 * s/netbsd.h: Remove commented out code.
5845f0ed 5060
b7064064
DN
50612010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5062
df7734b2
DN
5063 Remove dead code dealing with POSIX_SIGNALS.
5064 * atimer.c (set_alarm): Remove dead code, all USG systems define
5065 POSIX_SIGNALS.
5066 * data.c (arith_error): Likewise.
5067 * keyboard.c (input_available_signal, handle_user_signal)
5068 (interrupt_signal): Likewise.
5069 * process.c (sigchld_handler): Likewise.
5070 (create_process): Remove if 0 code. Remove HPUX conditional when
5071 !defined (POSIX_SIGNALS), it cannot be true.
5072 * syssignal.h: Remove USG5_4 and USG conditionals when
5073 !POSIX_SIGNALS, they cannot be true.
5074
b7064064
DN
5075 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5076 NO_SOCK_SIGIO, not used anymore.
5077
55da5ee3
DN
50782010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5079
0be96e3a
DN
5080 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5081 support vax on BSDs.
5082
55da5ee3
DN
5083 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5084 * s/aix4-2.h (ORDINARY_LINK): ... here.
5085
c0282183
AS
50862010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5087
82c3d67a
AS
5088 * Makefile.in (abs_builddir): Define.
5089 (bootstrap_exe): Use it.
5090 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 5091
3613edce
SM
50922010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5093
5094 * Makefile.in (bootstrap_exe): Use an absolute name.
5095
7f110ddc
DN
50962010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5097
22e87574
DN
5098 Remove support for old GNU/Linux using libc version 5.
5099 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5100 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5101
05a670e6
DN
5102 Consolidate redundant definitions in s/bsd-common.h.
5103 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5104 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5105 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5106 doing it in all files that include this one.
5107 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5108 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5109 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5110 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5111 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5112 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5113 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5114 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5115 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5116
2968f561
DN
5117 Consolidate redundant definitions.
5118 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5119 it's undefined in all files that include this one.
5120 (POSIX_SIGNALS): Define here instead of doing it in all files that
5121 include this one.
5122 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5123 (POSIX_SIGNALS): Do not define.
5124 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5125 (POSIX_SIGNALS): Do not define.
5126 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5127 (POSIX_SIGNALS): Do not define.
5128
15d25dc0
DN
5129 Remove support for old UNIX System V systems.
5130 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5131 * s/usg-5-4-2.h: Remove.
5132
07e339e4
DN
5133 Remove support for Solaris on PPC and for old versions.
5134 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5135 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5136 that cancel each other.
5137 * s/sol2-3.h:
5138 * s/sol2-4.h:
5139 * s/sol2-5.h: Remove.
5140 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5141 (NO_REMAP): Remove, unused.
5142 (UNEXEC): Move definition ...
5143 * s/aix4-2.h (UNEXEC): ... here.
5144
7f110ddc
DN
5145 * s/openbsd.h: Remove support for non-ELF and for systems that do
5146 not support shared libraries.
5147 * s/netbsd.h:
5148 * s/freebsd.h: Likewise.
5149
605f35cd
DN
51502010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5151
5152 Remove non-working support for lynxos 3.0.
5153 * s/lynxos.h: Remove file.
5154
5155 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5156 COFF_BSD_SYMBOLS, nothing defines it anymore.
5157
aed71cf4
DN
51582010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5159
5160 Remove obsolete uses of HAVE_SHM.
5161 * emacs.c (standard_args):
5162 (Fdump_emacs):
5163 (syms_of_emacs): Remove code depending on HAVE_SHM.
5164
5165 * alloc.c: Remove HAVE_SHM dependent definition.
5166
5167 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5168
aded53ff
GM
51692010-03-18 Glenn Morris <rgm@gnu.org>
5170
17284745
GM
5171 * emacs.c (USAGE4): Hard-code bug address.
5172 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5173 (bug_reporting_address): Remove.
5174 (main): Don't call bug_reporting_address.
5175
aded53ff
GM
5176 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5177 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5178
303500aa
CY
51792010-03-15 Chong Yidong <cyd@stupidchicken.com>
5180
5181 * xfns.c (Fx_create_frame):
5182 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5183 on left.
5184
cef3058f
CY
51852010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5186
5187 * editfns.c (Fformat): Account for string precision when computing
5188 field width (Bug#5710).
5189
a647d59d
CY
51902010-03-12 Chong Yidong <cyd@stupidchicken.com>
5191
4fa42018
CY
5192 * xfns.c (Fx_create_frame): Set default to Qright.
5193
a647d59d
CY
5194 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5195 all window systems.
5196
6da23aaa
EZ
51972010-03-12 Eli Zaretskii <eliz@gnu.org>
5198
a96f6398 5199 These changes remove termcap.c from the build on Posix platforms.
83d02def 5200 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
5201 (MSDOS_OBJ): ...to here.
5202 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5203 now identical to when LIBS_TERMCAP is defined.
5204
5205 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5206
5207 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5208
a96f6398 5209 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 5210
288f9fc0
CY
52112010-03-10 Chong Yidong <cyd@stupidchicken.com>
5212
5213 * Branch for 23.2.
5214
d48cd3f4
SM
52152010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5216
5217 Cleanup setup of gl_state in various parts of the code.
5218 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5219 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5220 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5221 (skip_chars):
5222 * regex.c (regex_compile): Use it.
5223 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5224 it's now set in regex_compile when/if we need it.
5225
618db430
SM
52262010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5227
c0335e02
SM
5228 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5229 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5230 (QUIT): Use it to consolidate code and remove redundancy.
5231 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5232
254c06a8
SM
5233 * regex.c (regex_compile): Setup gl_state as well.
5234
618db430
SM
5235 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5236 (in_classes): Use CONSP before XCAR/XCDR.
5237
233f0c9f
CY
52382010-03-03 Chong Yidong <cyd@stupidchicken.com>
5239
5240 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5241 definitions, so that keyboard macros are correctly handled
5242 (Bug#5481).
5243
75f80e63
EZ
52442010-03-02 Eli Zaretskii <eliz@gnu.org>
5245
5246 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5247 text that could be relocated inside the call to emacs_mule_char.
5248 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5249 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5250
dcfb9bc4
KH
52512010-03-02 Kenichi Handa <handa@m17n.org>
5252
fc9a17bc
KH
5253 * character.c (parse_str_as_multibyte): Fix handling of the
5254 multibyte form of raw-bytes.
5255 (str_as_multibyte): Likewise.
5256
dcfb9bc4
KH
5257 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5258 form of raw-bytes.
5259
412c01b6
CY
52602010-02-28 Chong Yidong <cyd@stupidchicken.com>
5261
5262 * charset.c (load_charset_map_from_file)
5263 (load_charset_map_from_vector): Zero out allocated
5264 charset_map_entries before using them.
5265
df7e1ea0
AS
52662010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5267
5268 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5269
fe69a722
CY
52702010-02-27 Chong Yidong <cyd@stupidchicken.com>
5271
4ed28cf4
CY
5272 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5273 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 5274
7379cfce
KH
52752010-02-26 Kenichi Handa <handa@m17n.org>
5276
f88cc4d6
KH
5277 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5278
7379cfce
KH
5279 * xdisp.c (reseat_to_string): Fix previous change.
5280
cf2fdcfb
CY
52812010-02-26 David Reitter <david.reitter@gmail.com>
5282
5283 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5284 Lisp_Object (Bug#4736).
5285
cc6c7c75
KH
52862010-02-25 Kenichi Handa <handa@m17n.org>
5287
5288 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5289
32e737d7
JD
52902010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5291
5292 * xterm.c (XTflash): Move declarations before statements.
5293
5294 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5295 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5296 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5297 (xg_create_tool_bar): Remove unused variables.
5298 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 5299 (xg_create_frame_widgets): Remove variable grav.
32e737d7 5300
676cae9f
CY
53012010-02-21 Chong Yidong <cyd@stupidchicken.com>
5302
5303 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5304
886cc2b8
SM
53052010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5306
5307 * term.c (fatal): Add a final \n if needed (bug#5596).
5308
ddb2d8e2
CY
53092010-02-18 Chong Yidong <cyd@stupidchicken.com>
5310
5311 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5312
2a4f8d3d
GM
53132010-02-18 Glenn Morris <rgm@gnu.org>
5314
5315 * callint.c (Finteractive): Doc fix.
5316
ebaf11b6
KH
53172010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5318
886cc2b8
SM
5319 * coding.c (record_conversion_result):
5320 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
5321 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5322 memory allocation error.
5323
d0396581
KH
53242010-02-17 Kenichi Handa <handa@m17n.org>
5325
886cc2b8
SM
5326 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5327 Fix for the case that the output buffer is fullfilled.
d0396581
KH
5328 (decode_coding): Setup ccl program here. Keep looping when the
5329 decoder stopped because the output buffer is
5330 fullfilled (bug#5534).
5331
5332 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5333
98599f74
JD
53342010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5335
471e4f04 5336 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 5337 bug #5571.
886cc2b8 5338 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 5339 overdrawn.
98599f74 5340
182659ae
JD
53412010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5342
5343 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5344 doing_interact here.
5345 (ice_connection_closed): New function.
5346 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5347 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5348 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5349 returns I/O error.
5350 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5351 bug #5512.
5352
9be32c4e 53532010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
5354
5355 * nsfont.m (nsfont_open): The system's value for the font descent
5356 is negative, so round it down to avoid clipping.
5357
a2f3eb19
CY
53582010-02-06 Chong Yidong <cyd@stupidchicken.com>
5359
5360 * charset.c (load_charset_map_from_file)
5361 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 5362 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 5363
3088147c
CY
53642010-02-05 Chong Yidong <cyd@stupidchicken.com>
5365
5366 * charset.c (load_charset_map_from_file): Allocate large
5367 charset_map_entries structure on the heap rather than the stack.
5368 (Bug#5526).
5369
b57d9029
KH
53702010-01-31 Kenichi Handa <handa@m17n.org>
5371
5372 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 5373 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 5374
c67d885b
CY
53752010-01-31 Chong Yidong <cyd@stupidchicken.com>
5376
5377 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5378 <deactivated@gmail.com> (Bug#3605).
5379
8fab2362
CY
53802010-01-31 David De La Harpe Golden <david@harpegolden.net>
5381
5382 * fileio.c (Frename_file): Correctly rename symlinks to
5383 directories (Bug#5496).
5384
cb2a62f2
CY
53852010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5386
5387 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5388
944c7a26
AS
53892010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5390
5391 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5392
c024ac08
CY
53932010-01-29 Chong Yidong <cyd@stupidchicken.com>
5394
5395 * frame.c (DEFAULT_ROWS): Change default to 35.
5396
5397 * xfns.c (x_default_font_parameter): Change default XFT font to
5398 monospace-10 (Bug#3643).
5399
af93af83
EZ
54002010-01-29 Eli Zaretskii <eliz@gnu.org>
5401
5402 * w32inevt.c (key_event): Remove unnecessary comparison of
5403 event->uChar.AsciiChar with 128.
5404
ca0eb708
CY
54052010-01-28 Chong Yidong <cyd@stupidchicken.com>
5406
b242dbfc
CY
5407 * fileio.c (Frename_file): Fix last change (Bug#5487).
5408
ca0eb708
CY
5409 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5410
5411 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5412
45d45af5
JD
54132010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5414
5415 * xfns.c (Fx_create_frame): Remove window size matching code from
5416 2010-01-15.
a73f9c9d 5417 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 5418
7e233730
JR
54192010-01-27 Jason Rumney <jasonr@gnu.org>
5420
5421 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 5422 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 5423
86e893e3
KH
54242010-01-27 Kenichi Handa <handa@m17n.org>
5425
5426 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 5427 pattern string (Bug#4209).
86e893e3 5428
8719abec
CY
54292010-01-27 David De La Harpe Golden <david@harpegolden.net>
5430
5431 * fileio.c (Frename_file): Call copy-directory and
5432 delete-directory for directories, in order to handle cross-device
5433 renaming (Bug#3353).
5434
844794c8
JD
54352010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5436
aa3e13b5 5437 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 5438 sizes 24 and 10. Bug #3643.
844794c8 5439
bd4b5750
SM
54402010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5441
8dc1adf6 5442 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
5443 * keymap.c (shadow_lookup): Add `remap' arg.
5444 (describe_map, describe_vector): Update calls to shadow_lookup.
5445 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5446 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
5447 perform remapping during shadow_lookup check of remapped_sequences.
5448
285d07e2
CY
54492010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5450
5451 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5452 png_check_sig, which has been removed in libpng 1.4.
5453
c6d09b8d
CY
54542010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5455
5456 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5457 lacks this header file).
5458
3d782998
YM
54592010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5460
5461 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5462 as in Emacs 22.
5463
2aff7c53
YM
54642010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5465
5466 * lisp.h (make_pure_string): String pointer arg now points to const.
5467
5468 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5469 args now point to const.
5470
74327f7a
EZ
54712010-01-22 Eli Zaretskii <eliz@gnu.org>
5472
5473 * lread.c (Fload): Don't treat files without .elc extension as
5474 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5475 them. (bug#5303)
5476
4d1e6632
KH
54772010-01-20 Kenichi Handa <handa@m17n.org>
5478
5479 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5480 treat the source as actual byte sequence.
5481
1fdede8f
AM
54822010-01-19 Alan Mackenzie <acm@muc.de>
5483
5484 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 5485 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
5486 `signal_after_change_p' to `coherent_change_p', and make the
5487 invocation of `modify_region' conditional on it.
5488
67477f30
JD
54892010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5490
5491 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5492 for debug purpose.
5493 (syms_of_xsettings): Declare xft-settings.
5494
244b023e
CY
54952010-01-18 Chong Yidong <cyd@stupidchicken.com>
5496
5497 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5498
617364fe
CY
54992010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5500
5501 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5502
4fe22cdf
CY
55032010-01-16 Chong Yidong <cyd@stupidchicken.com>
5504
5505 * emacs.c (standard_args): Adjust arg priorities to reflect how
5506 they are processed in startup.el.
5507
e118d2be
AS
55082010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5509
5510 * Makefile.in (lisp, shortlisp): Update.
5511
523ae620
SM
55122010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5513
5514 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5515 code, link the new kboard into all_kboard before running Lisp code,
5516 and protect the new terminal with GCPRO (Bug#5365).
5517 (x_term_init): Remove unused var `atom'.
5518 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5519
f0d13888
JD
55202010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5521
5522 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5523 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5524 to find out usable size of the desktop. Don't make frames larger than
ac146f82 5525 this. Bug #3643.
f0d13888 5526
cc320f07
KH
55272010-01-15 Kenichi Handa <handa@m17n.org>
5528
5529 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5530
7ffdf101
CY
55312010-01-15 Chong Yidong <cyd@stupidchicken.com>
5532
5533 * nsterm.m (Qnone): Define.
5534
5535 * nsfns.m (Qnone): Move definition to nsterm.m.
5536
d12bd917
KH
55372010-01-14 Kenichi Handa <handa@m17n.org>
5538
5539 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5540 systems.
5541
d9a7c140
KH
55422010-01-14 Kenichi Handa <handa@m17n.org>
5543
5544 Make auto-composition work on all buffers even if they are
5545 fundamental mode.
5546
5547 * composite.c (Vauto_composition_mode): New variable.
5548 (composition_compute_stop_pos): Check Vauto_composition_mode
5549 instead of Vauto_composition_function.
5550 (composition_adjust_point, Ffind_composition_internal): Likewise.
5551 (syms_of_composite): Declare Lisp variable
5552 "auto-composition-mode" here.
5553
63286bb2
CY
55542010-01-13 Chong Yidong <cyd@stupidchicken.com>
5555
5556 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5557 during call to vendor-specific-keysyms (Bug#5365).
5558
c2623ee7
YM
55592010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5560
5561 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5562 Call SIGNAL_THREAD_CHECK (Bug#5333).
5563
5564 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5565 Call SIGNAL_THREAD_CHECK.
5566
0b5397c2
SM
55672010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5568
5569 Try to fix bug#5314. This is probably not the final word, tho.
5570 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5571 recent-auto-save-p as a side-effect.
5572 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5573 * buffer.c (Fkill_buffer, reset_buffer):
5574 * editfns.c (Fsubst_char_in_region):
5575 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5576 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5577
dc954cb2
KH
55782010-01-13 Kenichi Handa <handa@m17n.org>
5579
5580 Display buffer name, etc. in mode line by composing correctly.
5581
5582 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5583 STRING is not nil.
0b5397c2 5584 (display_mode_element): Adjust for the change of
dc954cb2
KH
5585 decode_mode_spec and display_line.
5586 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5587 (display_string): Handle the case that STRING is non-null and
5588 LISP_STRING is not nil.
5589
0b5397c2
SM
5590 * xterm.c (x_draw_composite_glyph_string_foreground):
5591 Pay attention to s->face->overstrike.
dc954cb2
KH
5592
5593 * composite.c (composition_reseat_it): Don't check PT if STRING is
5594 non nil.
5595
4a00eaca
YM
55962010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5597
5598 * keyboard.c (read_char): Don't apply previous change when current
5599 buffer is unchanged by command execution.
5600
60abb287
JD
56012010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5602
5603 * keyboard.c (read_char): Return after executing from special map.
5604
893db5bc
GM
56052010-01-12 Glenn Morris <rgm@gnu.org>
5606
5607 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5608 bug-gnu-emacs rather than emacs-pretest-bug.
5609
4d03ece0
CY
56102010-01-11 Chong Yidong <cyd@stupidchicken.com>
5611
5612 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5613 initializing the Lisp variables that depend on them.
5614
1df47e38
YM
56152010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5616
5617 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5618 Clear areas that will not be updated after change of menu bar lines.
5619 Clear the menu bar window's current matrix when the window gets empty.
5620
2f1c6384
CY
56212010-01-09 Chong Yidong <cyd@stupidchicken.com>
5622
e398c61c
CY
5623 * intervals.h, textprop.c (extend_property_ranges): Return value
5624 and args changed. Discard properties that begin at or after the
5625 new end (Bug#5306).
5626
5627 * editfns.c (Fformat): Caller changed.
5628
e5a29a10
CY
5629 * nsterm.m (ns_set_default_prefs): Delete function.
5630 (syms_of_nsterm): Initialize ns_command_modifier,
5631 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5632 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5633
2f1c6384
CY
5634 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5635 position (Bug#4040).
5636
d427a9fa
EZ
56372010-01-09 Eli Zaretskii <eliz@gnu.org>
5638
5639 * editfns.c (Ffloat_time): Doc fix.
5640
21b9df2f
JD
56412010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5642
5643 * xfns.c (Fx_create_frame): Don't create frame larger than display
5644 by default bug#3643.
5645
4b00d3b1
YM
56462010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5647
5648 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5649 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5650 windows above internal border.
5651
5652 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5653 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5654 windows above internal border.
5655
5656 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5657 tool bar windows specially.
5658
5659 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5660
5661 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5662 specially.
5663 (XTflash): Take account of menu bar height.
5664
5665 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5666 specially.
5667
5075d853
JD
56682010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5669
ac146f82 5670 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
5671 also be true before we can return early (bug #5339).
5672
474217c8
CY
56732010-01-06 David Reitter <david.reitter@gmail.com>
5674
5675 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5676 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5677 (Bug#3233).
5678
c0e6d47d
JD
56792010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5680
d0cf45b7
JD
5681 * font.c (font_open_entity): Enable chache and call cached_font_ok
5682 for the driver if defined.
5683 (QCuser_spec): New symbol.
5684 (font_spec_from_name): Save name as user-spec.
5685 (font_load_for_lface): Keep user-spec instead of name.
5686 (font_open_by_name): Save name as user-spec.
5687 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 5688 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
5689
5690 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5691 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5692 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5693
5694 * font.h (struct font_driver): Add cached_font_ok.
5695
c0e6d47d
JD
5696 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5697
7c583cd8
JD
56982010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5699
5700 * xterm.c (x_new_font): Move code for setting rows/cols before
5701 resizing ...
ac146f82 5702 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
5703
5704 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
5705 (xg_frame_resized, xg_frame_set_char_size):
5706 Call xg_clear_under_internal_border.
7c583cd8 5707 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 5708
03f77f0a
CY
57092010-01-05 Chong Yidong <cyd@stupidchicken.com>
5710
5711 * keyboard.c (read_key_sequence): Catch keyboard switch after
5712 making a new tty frame (Bug#5095).
5713
2a1ef5be
KH
57142010-01-05 Kenichi Handa <handa@m17n.org>
5715
5716 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5717
e3eb1dae
SM
57182010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5719
5720 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5721 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5722 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5723
777013f2
MA
57242010-01-03 Michael Albinus <michael.albinus@gmx.de>
5725
5726 * dbusbind.c (xd_add_watch): Improve debug message.
5727 (xd_remove_watch): Improve debug message. If DATA is the session
5728 bus, unset D-Bus session environment.
5729 (Fdbus_init_bus): Pass the bus as argument to
5730 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 5731
8932b1c2
CY
57322010-01-01 Chong Yidong <cyd@stupidchicken.com>
5733
87231e2c
CY
5734 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5735
4801c5fa
CY
5736 * lread.c (syms_of_lread): Make it clearer that these are the
5737 names of loaded files (Bug#5068).
5738
8932b1c2
CY
5739 * eval.c (run_hook_with_args): Handle the case where the global
5740 value has the obsolete single-function form (Bug#5026).
5741
11e3c684
CY
57422009-12-27 Chong Yidong <cyd@stupidchicken.com>
5743
5744 * minibuf.c (Fall_completions): Minor optimization.
5745
5b28ce35
EZ
57462009-12-26 Eli Zaretskii <eliz@gnu.org>
5747
5ce6e4f4
JB
5748 * .gdbinit (pgx): Fix display of composite glyphs.
5749 Display cmp.from and cmp.to as well.
5750 (pitx): Fix last change.
5b28ce35 5751
bcffff46
KH
57522009-12-25 Kenichi Handa <handa@m17n.org>
5753
5754 * composite.h (composition_adjust_point): Update prototype.
5755
5756 * composite.c (composition_reseat_it): Don't make a composition
5757 spanning over point.
5758 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5759 composable characters.
5760 (composition_adjust_point): New arg NEW_PT. Callers changed.
5761
5762 * keyboard.c (command_loop_1): Force redisplay if the last point
5763 was within a composition.
5764 (adjust_point_for_property): Don't adjust point for automatic
5765 composition when called after buffer modification.
5766
3f670e9a
EZ
57672009-12-19 Eli Zaretskii <eliz@gnu.org>
5768
5ce6e4f4
JB
5769 * .gdbinit (pitx): Don't use enum names, use their values.
5770 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5771 (pgx): Don't use enum names, use their values.
5772 (pitmethod): New helper command.
5773 (pitx): Use it to display iteration method.
5774 (pgrowit): New command.
5775
ad903955
EZ
5776 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5777
3f670e9a
EZ
5778 Update dependencies in Makefile.in.
5779
5780 * Makefile.in (alloc.o): Depend on termhooks.h.
5781 (atimer.o): Depend on blockinput.h.
5782 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5783 and frame.h.
5784 (callint.o): Depend on systime.h, coding.h, and composite.h.
5785 (callproc.o): Depend on buffer.h.
5786 (casefiddle.o): Don't depend on charset.h.
5787 (casetab.o): Depend on character.h.
5788 (ccl.o): Depend on composite.h.
5789 (chartab.o): Depend on ccl.h.
5790 (cm.o): Depend on dispextern.h.
5791 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5792 (coding.o): Don't depend on $(INTERVALS_H).
5793 (composite.o): Don't depend on dispextern.h explicitly (it's in
5794 $(INTERVALS_H)). Depend on ccl.h.
5795 (data.o): Depend on systime.h, coding.h, composite.h,
5796 dispextern.h, font.h, and ccl.h.
5797 (dired.o): Depend on composite.h.
5798 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5799 composite.h (it's in $(INTERVALS_H)).
5800 (doc.o): Depend on systime.h, coding.h, and composite.h.
5801 (editfns.o): Don't depend explicitly on dispextern.h.
5802 (emacs.o): Depend on frame.h and coding.h.
5803 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5804 (fileio.o): Depend on frame.h and commands.h. Don't depend
5805 explicitly on dispextern.h.
5806 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5807 composite.h.
5808 (fns.o): Don't depend on termhooks.h.
5809 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5810 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5811 coding.h, $(INTERVALS_H), window.h, xterm.h.
5812 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5813 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5814 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5815 fontset.h, ccl.h, and ftfont.h.
5816 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5817 (gtkutil.o): Depend on dispextern.h and composite.h.
5818 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5819 termhooks.h, and ccl.h.
5820 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5821 (intervals.o): Depend on systime.h and coding.h.
5822 (keyboard.o): Depend on composite.h and coding.h.
5823 (keymap.o): Depend on coding.h and frame.h.
5824 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5825 (macros.o): Depend on systime.h, coding.h, and composite.h.
5826 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5827 and atimer.h.
5828 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5829 dispextern.h explicitly.
0b5397c2
SM
5830 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5831 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
5832 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5833 (regex.o): Don't depend on charset.h.
5834 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5835 (search.o): Don't depend explicitly on composite.h.
5836 (sound.o): Depend on atimer.h and systime.h.
5837 (syntax.o): Don't depend explicitly on composite.h.
5838 (sysdep.o): Depend on coding.h and composite.h.
5839 (term.o): Depend on xterm.h and buffer.h.
5840 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5841 (textprop.o): Don't depend on dispextern.h explicitly.
5842 (undo.o): Depend on dispextern.h.
5843 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5844 dispextern.h and composite.h explicitly.
5845 (xdisp.o): Depend on ccl.h.
5846 (xfaces.o): Depend on coding.h and ccl.h.
5847 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5848 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5849 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5850 ftfont.h.
5851 (xgselect.o): New dependency.
5852 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5853 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5854 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5855 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5856 (xsmfns.o): Depend on frame.h and dispextern.h.
5857 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5858 sysselect.h.
5859
7a6f7fea
AS
58602009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5861
5862 * font.c (Fclear_font_cache): Pass correct cache argument to
5863 font_clear_cache.
5864
f4c21026
AS
58652009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5866
5867 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5868 twice.
5869
f7ab0997
CY
58702009-12-15 Chong Yidong <cyd@stupidchicken.com>
5871
5872 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5873 calling file-remote-p. Reported by Jim Meyering.
5874
fa8e045a
MA
58752009-12-15 Michael Albinus <michael.albinus@gmx.de>
5876
5877 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 5878 avoid compiler warnings. (Bug #5217)
fa8e045a 5879
a63dba42
KH
58802009-12-14 Kenichi Handa <handa@m17n.org>
5881
5882 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5883 in 8-bit encoding.
5884
5ce6e4f4 58852009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
5886
5887 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5888 tooltip windows.
5889
223e5fc6
JD
58902009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5891
36acb2a7
JD
5892 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5893 Xatom_net_window_type.
5894
5895 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5896 Xatom_net_window_type.
5897
b8f00677
JD
5898 * xterm.c (my_log_handler): New function.
5899 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 5900 so we can filter out buggy messages. (Bug #5120).
b8f00677 5901
e5f0bc9a
JD
5902 * xterm.c (xg_scroll_callback): Parameter list changed,
5903 use parameter GtkScrollType to determine scroll/line/page.
5904 Only allow dragging if a button < 4 is grabbed (bug #5177).
5905 (xg_end_scroll_callback): New function.
5906 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5907 xg_create_scroll_bar.
5908
5909 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5910 (scroll_end_callback): Remove.
5911 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5912 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 5913 bug #5177.
e5f0bc9a
JD
5914 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5915 bug #5177.
5916
5917 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5918 (xg_create_scroll_bar): Add GCallback end_callback.
5919
223e5fc6
JD
5920 * xftfont.c (QClcdfilter): New variable.
5921 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5922 (syms_of_xftfont): Initialize QClcdfilter.
5923
3c055b77
JD
59242009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5925
5926 * xsettings.c (struct xsettings): Add member seen.
5927 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 5928 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
5929 (apply_xft_settings): Only update Xft settings with what member seen
5930 indicates as new.
5931
05fe33ff
EZ
59322009-12-12 Eli Zaretskii <eliz@gnu.org>
5933
c4cc8b9a 5934 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
5935 (struct glyph): Use EMACS_INT for charpos.
5936 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5937 region_beg_charpos, region_end_charpos,
5938 redisplay_end_trigger_charpos, and also for
5939 iterator_stack_entry.end_charpos and
5940 iterator_stack_entry.stop_charpos.
5941
e8d7886a
JD
59422009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5943
5ce6e4f4 5944 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
5945 (xg_create_scroll_bar): Call scroll_end_callback on button release
5946 event (bug #5177).
5947 (xg_event_is_for_scrollbar): != replaced with ==.
5948
d0db2ec8
KH
59492009-12-12 Kenichi Handa <handa@m17n.org>
5950
5951 * ftfont.c (struct ftfont_info): New member matrix.
5952 (ftfont_open): Setup xftfont_info->matrix.
5953 (MFLTFontFT): New member matrix.
5954 (FLOOR, CEIL, ROUND): New macros.
5955 (ftfont_get_metrics): Handle matrix transformation.
5956 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5957
5958 * xftfont.c (struct xftfont_info): New member matrix.
5959 (xftfont_open): Setup xftfont_info->matrix.
5960
59612009-12-10 Kenichi Handa <handa@m17n.org>
5962
5963 * xdisp.c (append_space_for_newline): Consider face-remapping.
5964
2cc7b62f
AS
59652009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5966
b87dd913
AS
5967 * xsettings.c: Include "keyboard.h".
5968
eba5eb94
AS
5969 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5970
2cc7b62f
AS
5971 Fix implicit function declarations.
5972 * cmds.c: Include "frame.h".
5973 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5974 * frame.h: Move declaration of delete_frame outside of
5975 HAVE_WINDOW_SYSTEM.
5976
a4ef73c8
CY
59772009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5978
5979 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5980
5981 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5982 GTK builds.
5983
944a300c
AS
59842009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5985
5986 * unexelf.c (unexec): Don't search for .data twice.
5987
022eef62
CY
59882009-12-05 Chong Yidong <cyd@stupidchicken.com>
5989
426ac949
CY
5990 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5991 if push failed.
5992 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5993 of push_display_prop (Bug#5000).
5994
022eef62
CY
5995 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5996 value of font_list_entities (Bug#5085).
5997
be95bee9
JB
59982009-12-04 Juanma Barranquero <lekktu@gmail.com>
5999
6000 Fix `string-to-number' to deal consistently with integers and floats.
6001 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6002 trailing characters, not just whitespace.
6003 (read1): Pass new arg 0 to keep old behavior.
6004 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6005 trailing chars, as it is already done for integers. Doc fixes.
6006 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6007
24c2d7ce
EZ
60082009-12-04 Eli Zaretskii <eliz@gnu.org>
6009
0b5397c2
SM
6010 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6011 Delete unused enumeration value.
24c2d7ce 6012
7e694795
EZ
60132009-12-03 Eli Zaretskii <eliz@gnu.org>
6014
6015 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6016
84b31826
SM
60172009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6018
6019 * process.c (Fmake_network_process): Fix up the tests for
6020 "connectionless socket", so they DTRT for seqpacket sockets as well.
6021
f00c449b
SM
60222009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6023
6024 * process.c (Qseqpacket): New symbol.
6025 (HAVE_SEQPACKET): New macro.
6026 (Fmake_network_process): Accept new :type `seqpacket'.
6027 (init_process): Add `seqpacket' feature when applicable.
6028 (syms_of_process): Initialize Qseqpacket.
6029
8096a0ff
YM
60302009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6031
6032 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6033 if entity is Qnil.
6034
3e0de07f
SM
60352009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6036
6037 * print.c (print_preprocess): Preprocess the key_and_value table of
6038 hashtables, even tho they're "hidden" (bug#5082).
6039
abeafb2a
JD
60402009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6041
6042 * frame.c (frame_make_pointer_invisible)
6043 (frame_make_pointer_visible): Declare f before statements.
6044
4bf47195
EZ
60452009-11-28 Eli Zaretskii <eliz@gnu.org>
6046
6047 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6048 omitted dependencies on lisp.h.
6049
c525b3f2
JD
60502009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6051
ece2d4ed
JD
6052 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6053 is NULL.
6054
6055 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6056
6057 * frame.c (frame_make_pointer_invisible)
3e0de07f 6058 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
6059 frame.
6060
c525b3f2
JD
6061 * search.c (simple_search): Remove warning by making *p const.
6062
2f00e299
DN
60632009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6064
6065 * xdisp.c (power_letter): Remove duplicate const.
6066
084b049b
JD
60672009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6068
a1fadc6f
JD
6069 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6070
5ce6e4f4 6071 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
6072 defaults (bug #5025).
6073
28259cac
SM
60742009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6075
6076 * insdel.c (adjust_markers_for_delete): Move it in the
6077 right direction! (bug#4803)
6078
e8e14166
YM
60792009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6080
6081 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6082
6083 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6084
86677b58
GM
60852009-11-24 Glenn Morris <rgm@gnu.org>
6086
6087 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6088
581e51e8
JD
60892009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6090
cfc86c7a
JD
6091 * Makefile.in: Must create deps for ecrt0.o in its rule.
6092
581e51e8
JD
6093 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6094 because that is what Gtk+ font dialog understands.
6095
6096 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6097 of Fcopy_sequence.
6098 (font_open_by_name): Put name given into QCname for font-object returned.
6099
6100 * frame.c (x_set_font): Save original font name as frame parameter
6101 font-parameter.
6102
6103 * xsettings.c (set_default_xft_settings): New function.
6104 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6105 is found.
6106
8b264ecb
AS
61072009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6108
6109 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6110 searching backwards through multibyte buffer.
6111
872870b2
JD
61122009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6113
6114 * xterm.c: #include xgselect.h.
6115 (x_initialize): Call xgselect_initialize.
6116
6117 * xsettings.c (something_changedCB): C++ comments => C comments.
6118 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6119 does that now.
6120
6121 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6122 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6123 (scroll_bar_button_cb): Remove.
5ce6e4f4 6124 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
6125 event.
6126 (xg_create_scroll_bar): Don't bind button-press-event and
6127 button-release-event.
6128
6129 * process.c: Include xgselect.h if defined (USE_GTK) ||
6130 defined (HAVE_GCONF).
6131 (wait_reading_process_output): Call xg_select for the same condition.
6132
6133 * xgselect.c (xg_select): New function to better integrate with
6134 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6135
6136 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6137
6138 * Makefile.in (XOBJ): Add xgselect.o.
6139
62a6e103
AS
61402009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6141
0b5397c2
SM
6142 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6143 Remove ignored second argument. All callers changed.
62a6e103
AS
6144 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6145 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6146 * xdisp.c (string_char_and_length): Likewise.
6147
b0ca0f33
DN
61482009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6149
6150 * xterm.c (x_new_font):
6151 * print.c (print_object):
6152 * cmds.c (Fself_insert_command): Move declarations before statements.
6153
dd5a6279
CY
61542009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6155
6156 * s/cygwin.h: Remove unneeded linker flags.
6157
4a8e097d
JD
61582009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6159
0d1d0d26
JD
6160 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6161
6162 * xsettings.h: Declare xsettings_get_system_font.
6163
6164 * xsettings.c (xsettings_get_system_font): New function.
6165 (init_gconf): No use initiating gconf unless we have Xft also.
6166 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6167 HAVE_GCONF.
6168
4a8e097d
JD
6169 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6170 add a blank entry so it doesn't collapse into nothing.
6171
8ab1650e
SM
61722009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6173
6174 * lread.c (Funintern): Comment out last change.
6175
82c602f0
RS
61762009-11-19 Richard Stallman <rms@gnu.org>
6177
6178 * lread.c (Funintern): Error if symbol is t or nil.
6179
87e32266
SM
61802009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6181
6182 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6183 representation of Lisp integers.
6184 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6185
1b9ac145
AS
61862009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6187
6188 * lisp.h: Remove declaration of Ffont_get_system_font.
6189 * xfns.c: Move include of "xsettings.h".
6190 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6191
dfb3c4c6
JD
61922009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6193
87e32266
SM
6194 * xsettings.c (something_changedCB, Ffont_get_system_font):
6195 Check use_system_font.
dfb3c4c6
JD
6196 (syms_of_xsettings): DEFVAR font-use-system-font.
6197
9370c1d8
AS
61982009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6199
25fe851a
AS
6200 * xfns.c (x_default_font_parameter): Remove dead assignment.
6201
9370c1d8
AS
6202 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6203
637fa988
JD
62042009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6205
87e32266 6206 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 6207 not have FC_LCD_*. #define them if not there.
a6eb20d8 6208
87e32266 6209 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 6210
637fa988
JD
6211 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6212
6213 * xterm.c (handle_one_xevent): Call xft_settings_event for
6214 ClientMessage, PropertyNotify and DestroyNotify.
6215 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6216 Call xsettings_initialize.
6217
6218 * xftfont.c (xftfont_fix_match): New function.
6219 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6220 Call xftfont_fix_match after XftFontMatch.
6221
6222 * xfont.c (xfont_driver): Initialize all members.
6223
87e32266
SM
6224 * xfns.c (x_default_font_parameter):
6225 Try font from Ffont_get_system_font.
637fa988
JD
6226 Do not get font from x_default_parameter if we got one from
6227 Ffont_get_system_font.
87e32266 6228 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
6229
6230 * w32font.c (w32font_driver): Initialize all members.
6231
6232 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6233
6234 * lisp.h: Declare syms_of_xsettings.
6235
87e32266
SM
6236 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6237 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
6238
6239 * ftfont.c (ftfont_filter_properties): New function.
6240
6241 * frame.c (x_set_font): Remove unused variable lval.
6242
87e32266 6243 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
6244
6245 * font.c (font_put_extra): Don't return if val is nil, it means
6246 boolean option is off.
6247 (font_parse_fcname): Collect all extra properties in extra_props
6248 and call filter_properties for all drivers with extra_props and
6249 font as parameter.
87e32266
SM
6250 (font_open_entity): Do not use cache, it does not pick up new
6251 fontconfig settings like hinting.
637fa988
JD
6252 (font_load_for_lface): If spec had a name in it, store it in entity.
6253
a73f9c9d 6254 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
6255
6256 * config.in: HAVE_GCONF is new.
6257
6258 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6259 xsettings.o is new.
6260
5a942932
KH
62612009-11-17 Kenichi Handa <handa@m17n.org>
6262
6263 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6264 back to the default font in case that no suitable font is found.
6265
b7c7a4d1
SM
62662009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6267
6268 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6269 Suggested by Chad Brown <yandros@mit.edu>.
6270 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6271
072f1e39
JD
62722009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6273
6274 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6275
5d1e70a2
AS
62762009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6277
87e32266 6278 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 6279
a53cfbe5
JD
62802009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6281
473a99b7
JD
6282 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6283 has a parent.
6284
a53cfbe5 6285 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 6286 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
6287
6288 * config.in: Generated (AUTO_DEPEND).
6289
f04bb9b2
MA
62902009-11-13 Michael Albinus <michael.albinus@gmx.de>
6291
b7c7a4d1 6292 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
6293 Vdbus_registered_functions_table, because it contains also
6294 properties. Fix docstring.
b7c7a4d1 6295 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 6296
8f11f7ec
SM
62972009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6298
6299 * alloc.c (mark_object): Don't reprocess marked strings.
6300 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6301 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6302
8a605fe8
KH
63032009-11-13 Kenichi Handa <handa@m17n.org>
6304
8f11f7ec 6305 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
6306 semantics of Vword_combining_categories.
6307 (Vword_combining_categories): Describe the slight change of the
6308 semantics.
6309
241c4680
EZ
63102009-11-13 Eli Zaretskii <eliz@gnu.org>
6311
6312 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6313
6314 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6315
5d58e44c
SM
63162009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6317
6318 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6319
5e13f9d3
JB
63202009-11-12 Juanma Barranquero <lekktu@gmail.com>
6321
6322 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6323
cf54c754
DR
63242009-11-11 David Reitter <david.reitter@gmail.com>
6325
6326 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6327 variables to fix 2009-11-09 change.
6328
a4ada374
DN
63292009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6330
91433552
DN
6331 * process.c (ifflag_def): Make flag_sym constant.
6332 (Fnetwork_interface_info): Use a constant pointer.
6333 (ifflag_table):
6334 * xfns.c (cursor_bits):
6335 * xdisp.c (power_letter):
6336 * termcap.c (speeds, esctab):
6337 * sysdep.c (baud_convert):
6338 * keyboard.c (lispy_accent_codes, modifier_names):
6339 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6340 (jpeg_format, tiff_format, gif_format, svg_format)
6341 (interlace_start, interlace_increment, gs_format):
6342 * gtkutil.c (separator_names):
6343 * fringe.c (swap_nibble):
6344 * fns.c (base64_value_to_char, base64_char_to_value):
6345 * fileio.c (make_temp_name_tbl):
6346 * coding.c (suffixes): Make constant.
6347
f4265f6c
DN
6348 * frame.c (make_initial_frame):
6349 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6350 build_string.
6351 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6352
04420943
DN
6353 * s/freebsd.h:
6354 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6355
0a5d24ae
DN
6356 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6357 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6358
a4ada374
DN
6359 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6360 * xterm.c (syms_of_xterm):
6361 * xfaces.c (syms_of_xfaces):
6362 * xdisp.c (syms_of_xdisp):
6363 * lread.c (syms_of_lread):
6364 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6365 build_string.
91433552 6366
a4ada374
DN
6367 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6368
af98fc7f
SM
63692009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6370
8ab1650e 6371 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 6372
e90292a9
JD
63732009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6374
6375 * keyboard.h: Declare timer_check.
6376
6377 * keyboard.c (timer_check_2): New function that does what the old
6378 timer_check did.
6379 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6380 returned, i.e. don't return -1 with timers pending.
6381
6382 * process.c: Remove extern declaration of timer_check.
6383
6384 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6385 even if timer_check returned -1.
6386
af98fc7f
SM
6387 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6388 xg_dialog_data.
e90292a9
JD
6389 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6390 the event loop.
6391 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6392 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6393 Destroy the dialog after xg_dialog_run.
6394
045b83c0
SM
63952009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6396
6397 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6398
1fb99a3a
JD
63992009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6400
6401 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6402
04e452cb
JB
64032009-11-09 Juanma Barranquero <lekktu@gmail.com>
6404
6405 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6406
ef7417fd
SM
64072009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6408
6409 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6410 w32menu.c, and nsmenu.m.
6411 Simplify the obsolete case where position is nil.
6412 (cleanup_popup_menu): New function, moved from nsmenu.m.
6413 (struct skp): Remove slot `notreal'.
6414 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6415 adjust callers.
6416 (single_menu_item): Adjust call to parse_menu_item.
6417 (syms_of_menu): Defsubr x-popup-menu.
6418 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6419 (keymap_panes): Don't export any more.
6420 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6421 (xmenu_show): Declare.
6422 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6423 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6424 * keyboard.h (parse_menu_item): Update declaration.
6425 * xmenu.c (Fx_popup_menu): Remove.
6426 (syms_of_xmenu): Don't defsubr x-popup-menu.
6427 * w32menu.c (Fx_popup_menu): Remove.
6428 (syms_of_w32menu): Don't defsubr x-popup-menu.
6429 * nsmenu.m (cleanup_popup_menu): Remove.
6430 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6431 moved to menu.c's Fx_popup_menu.
6432 (Fx_popup_menu): Remove.
6433 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6434 menu_items (it's done in menu.c already).
6435
424d6179
SM
64362009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6437
6438 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6439 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6440
c0df13a6 64412009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
6442
6443 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 6444 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
6445 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6446 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6447
2de9f71c
SM
64482009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6449
6450 Let integers use up 2 tags to give them one extra bit and thus double
6451 their range.
6452 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6453 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6454 New macros.
6455 (enum Lisp_Type): Use them. Give explicit values.
6456 (Lisp_Type_Limit): Remove.
6457 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6458 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6459 Pay attention to USE_2_TAGS_FOR_INTS.
6460 (INTEGERP): Use LISP_INT_TAG_P.
6461 * fns.c (internal_equal): Simplify the default case.
6462 (sxhash): Use case_Lisp_Int.
6463 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6464 any more.
6465 (Ftype_of): Use case_Lisp_Int.
6466 (store_symval_forwarding): Take into account the fact that Ints can
6467 now have more than one tag.
6468 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 6469 (buffer_slot_type_mismatch):
2de9f71c
SM
6470 * xfaces.c (face_attr_equal_p):
6471 * print.c (print_object):
6472 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6473 Use case_Lisp_Int.
6474
323637a2
EZ
64752009-11-06 Eli Zaretskii <eliz@gnu.org>
6476
7ac65b38
EZ
6477 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6478
323637a2
EZ
6479 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6480 warning.
6481
e511451f
JD
64822009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6483
6484 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6485
6486 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6487
6488 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6489 ButtonPressRelease and MotionNotify (bug#4870).
6490
5e2327cf
DN
64912009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6492
5adc433e
DN
6493 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6494
d67b4f80
DN
6495 * xterm.c (syms_of_xterm):
6496 * xselect.c (syms_of_xselect):
6497 * xmenu.c (syms_of_xmenu):
6498 * xfns.c (syms_of_xfns):
6499 * xfaces.c (syms_of_xfaces):
6500 * xdisp.c (syms_of_xdisp):
6501 * window.c (syms_of_window):
6502 * w32fns.c (syms_of_w32fns):
6503 * undo.c (syms_of_undo):
6504 * textprop.c (syms_of_textprop):
6505 * terminal.c (syms_of_terminal):
6506 * syntax.c (syms_of_syntax):
6507 * sound.c (syms_of_sound):
6508 * search.c (syms_of_search):
6509 * print.c (syms_of_print):
6510 * minibuf.c (syms_of_minibuf):
6511 * macros.c (syms_of_macros):
6512 * keymap.c (syms_of_keymap, initial_define_key)
6513 (initial_define_lispy_key):
6514 * keyboard.c (syms_of_keyboard):
6515 * insdel.c (syms_of_insdel):
6516 * image.c (syms_of_image):
6517 * fringe.c (syms_of_fringe):
6518 * frame.c (syms_of_frame):
6519 * fontset.c (syms_of_fontset):
6520 * fns.c (syms_of_fns):
6521 * fns.c (syms_of_fns):
6522 * fileio.c (syms_of_fileio):
6523 * fileio.c (syms_of_fileio):
6524 * eval.c (syms_of_eval):
6525 * doc.c (syms_of_doc):
6526 * dispnew.c (syms_of_display):
6527 * dired.c (syms_of_dired):
6528 * dbusbind.c (syms_of_dbusbind):
6529 * data.c (syms_of_data):
6530 * composite.c (syms_of_composite):
6531 * coding.c (syms_of_coding):
6532 * cmds.c (syms_of_cmds):
6533 * charset.c (define_charset_internal, syms_of_character):
6534 * ccl.c (syms_of_ccl):
6535 * category.c (syms_of_category, init_category_once):
6536 * casetab.c (syms_of_casetab):
6537 * casefiddle.c (syms_of_casefiddle):
6538 * callint.c (syms_of_callint):
6539 * bytecode.c (syms_of_bytecode):
6540 * buffer.c (keys_of_buffer, syms_of_buffer):
6541 * alloc.c (syms_of_alloc):
6542 * process.c (syms_of_process, init_process):
6543 * lread.c (syms_of_lread, init_obarray):
6544 * font.c (build_style_table):
6545 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6546 intern_c_string, calls to make_pure_string with
6547 make_pure_c_string. Use pure_cons instead of Fcons.
6548
5e2327cf
DN
6549 * process.c (socket_options): Make it const.
6550 (set_socket_option, init_process): Use a const pointer.
6551
6552 * lread.c (intern_c_string): New function.
6553 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6554 (defvar_int): Uset it. Make the name const char*.
6555
6556 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6557 (defvar_int): Update prototypes.
6558 (DEFUN, EXFUN): Support for prototypes is now required.
6559 (intern_c_string): New prototype.
6560 (struct Lisp_Subr): Make symbol_name constant.
6561
6562 * font.c (struct table_entry): Remove unused member. Make NAMES
6563 constant.
6564 (weight_table, slant_table, width_table): Make constant.
6565
6566 * emacs.c (struct standard_args): Make name and longname constant.
6567
6568 * character.h (DEFSYM): Use intern_c_string.
6569
a56eaaef
DN
65702009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6571
6572 * alloc.c (make_pure_c_string): New function.
6573
6574 * eval.c (Fautoload): Purecopy all arguments.
6575
f6a07420
KH
65762009-11-05 Kenichi Handa <handa@m17n.org>
6577
6578 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6579 the buffer in case of replace.
6580
5d28d4b1
DN
65812009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6582
6583 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6584
b349d111
SM
65852009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6586
d528b1ce
SM
6587 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6588 when applicable (bug#4851).
6589
b349d111
SM
6590 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6591 (P_): Support for prototypes is now required.
6592
c38eb027
CY
65932009-10-31 Chong Yidong <cyd@stupidchicken.com>
6594
6595 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6596 (Bug#4827).
6597
0405f8d9
EZ
65982009-10-30 Eli Zaretskii <eliz@gnu.org>
6599
d528b1ce 6600 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 6601
ca0a881a
DN
66022009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6603
6604 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6605
d528b1ce
SM
6606 * lread.c (Fload): Purecopy the file name when building
6607 Vpreloaded_file_list.
ca0a881a 6608
47e0e0e4
JR
66092009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6610
6611 * w32fns.c (syms_of_w32fns): Change default value of
6612 w32-scroll-lock-modifier to nil. (Bug#2827)
6613
057bce6f
JB
66142009-10-26 Juanma Barranquero <lekktu@gmail.com>
6615
782a943e 6616 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 6617
242bc74c
AS
66182009-10-26 Andreas Schwab <schwab@redhat.com>
6619
6620 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6621
522d013a
JB
66222009-10-26 Juanma Barranquero <lekktu@gmail.com>
6623
6624 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6625 For delta < 0, skip check that only makes sense when the mini-window
6626 is going to be enlarged. (Bug#4534)
6627
18060980
CY
66282009-10-25 Chong Yidong <cyd@stupidchicken.com>
6629
6630 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6631 string in menu maps (Bug#4471).
6632
fec8f0fe
CY
66332009-10-24 Chong Yidong <cyd@stupidchicken.com>
6634
6635 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6636 FRAME_NS_VIEW on terminal frames (Bug#4765).
6637
10d66ec0
AS
66382009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6639
1cae01f7
AS
6640 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6641 DBUS_TYPE_UINTnn separately to get proper sign extension.
6642
58a12889
AS
6643 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6644 can properly handle unsigned types.
d528b1ce 6645 (make_uid, make_gid): Remove.
58a12889 6646
987c9327
AS
6647 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6648 types again.
6649
522d013a 6650 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
6651 (system_process_attributes): Likewise.
6652
905a9ed3
DN
66532009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6654
6655 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6656
6657 * eval.c (Fautoload): Purecopy the filename. Simplify.
6658
6659 * category.c (Fdefine_category): Purecopy docstring.
6660
a599b3e8
AS
66612009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6662
7b792fc9
AS
6663 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6664
a599b3e8
AS
6665 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6666
b35ac83e
CY
66672009-10-23 Chong Yidong <cyd@stupidchicken.com>
6668
6669 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6670 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6671 (Bug#4775).
6672
e8903e00
SM
66732009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6674
6675 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6676 (init_fileio_once):
6677 * lisp.h (init_fileio_once): Remove.
6678 * emacs.c (main): Don't call init_fileio_once.
6679
8f43cbf3
DN
66802009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6681
6682 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6683
26898943
AS
66842009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6685
6686 * doprnt.c (doprnt): Fix overflow check.
6687
5c646d5a
JD
66882009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6689
3132a7ea
JD
6690 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6691
5c646d5a
JD
6692 * xterm.h (x_wait_for_event): Declare it.
6693
6694 * xterm.c (pending_event_wait): New variable.
6695 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6696 see pending_event_wait.eventtype.
6697 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
6698 (x_new_font): Call change_frame_size with new rows/columns before we
6699 try to resize the frame.
5c646d5a 6700 (x_wait_for_event): New function.
d528b1ce
SM
6701 (x_set_window_size_1): Don't change gravity unless change_gravity
6702 is set.
5c646d5a
JD
6703 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6704 don't change frame size, instead wait for the ConfigureNotify.
6705 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6706 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6707 (x_initialize): Initialize pending_event_wait.
6708
6709 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6710 size.
6711
6712 * widget.c (EmacsFrameSetValues): Add comment.
6713 (EmacsFrameSetCharSize): Just call x_set_window_size.
6714
6715 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6716 x_wait_for_event.
d528b1ce 6717 (flush_and_sync): Remove again.
5c646d5a
JD
6718 (xg_get_font_name): Suggest monospace if no previous font is known.
6719
e9c1637d
SM
67202009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6721
6722 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 6723 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 6724
5a72cccb
YM
67252009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6726
6727 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6728 processing pending events when event is filtered for input method.
ab04798f 6729 (Bug#3681)
5a72cccb 6730
2629aa37
JB
67312009-10-20 Juanma Barranquero <lekktu@gmail.com>
6732
6733 * fns.c: Add #endif accidentally removed in previous change.
6734
c3417a74
DN
67352009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6736
6737 * fns.c: Remove code for unsupported system: MAC_OS.
6738 * image.c: Likewise. Include setjmp.h.
6739
9685cef2
JD
67402009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6741
6742 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6743 pixel -1 (bug #4742).
6744
d7306fe6
DN
67452009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6746
019d2c4c
DN
6747 * process.c (create_pty): Remove conditionals for no longer
6748 supported systems: UNIPLUS and RTU.
6749
ee6bacd4
DN
6750 * xterm.c:
6751 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6752
d7306fe6
DN
6753 * alloc.c: Do not define struct catchtag.
6754 * eval.c: Move struct catchtag definition ...
6755 * lisp.h: ... here.
6756
6757 * image.c: Move png.h #include earlier to avoid warnings.
6758
6759 * xterm.c:
6760 * xsmfns.c:
6761 * xselect.c:
6762 * xrdb.c:
6763 * xmenu.c:
6764 * xftfont.c:
6765 * xfont.c:
6766 * xfns.c:
6767 * xfaces.c:
6768 * xdisp.c:
6769 * window.c:
6770 * widget.c:
6771 * w32xfns.c:
6772 * w32uniscribe.c:
6773 * w32term.c:
6774 * w32select.c:
6775 * w32reg.c:
6776 * w32proc.c:
6777 * w32menu.c:
6778 * w32inevt.c:
6779 * w32heap.c:
6780 * w32font.c:
6781 * w32fns.c:
6782 * w32console.c:
6783 * w32.c:
6784 * w16select.c:
6785 * vm-limit.c:
6786 * unexsol.c:
6787 * unexec.c:
6788 * unexcw.c:
6789 * unexaix.c:
6790 * undo.c:
6791 * tparam.c:
6792 * textprop.c:
6793 * terminfo.c:
6794 * terminal.c:
6795 * termcap.c:
6796 * term.c:
6797 * syntax.c:
6798 * sound.c:
6799 * sheap.c:
6800 * search.c:
6801 * scroll.c:
6802 * region-cache.c:
6803 * regex.c:
6804 * ralloc.c:
6805 * process.c:
6806 * print.c:
b024548b
DN
6807 * nsterm.m:
6808 * nsselect.m:
6809 * nsmenu.m:
6810 * nsimage.m:
6811 * nsfont.m:
6812 * nsfns.m:
d7306fe6
DN
6813 * msdos.c:
6814 * minibuf.c:
6815 * menu.c:
6816 * marker.c:
6817 * macros.c:
6818 * keymap.c:
6819 * keyboard.c:
6820 * intervals.c:
6821 * insdel.c:
6822 * indent.c:
6823 * gtkutil.c:
6824 * ftxfont.c:
6825 * ftfont.c:
6826 * fringe.c:
6827 * frame.c:
6828 * fontset.c:
6829 * font.c:
6830 * fns.c:
6831 * floatfns.c:
6832 * filelock.c:
6833 * fileio.c:
6834 * emacs.c:
6835 * editfns.c:
6836 * dosfns.c:
6837 * doprnt.c:
6838 * doc.c:
6839 * dispnew.c:
6840 * dired.c:
6841 * dbusbind.c:
6842 * data.c:
6843 * composite.c:
6844 * coding.c:
6845 * cmds.c:
6846 * cm.c:
6847 * chartab.c:
6848 * charset.c:
6849 * character.c:
6850 * ccl.c:
6851 * category.c:
6852 * casetab.c:
6853 * casefiddle.c:
6854 * callproc.c:
6855 * callint.c:
6856 * bytecode.c:
6857 * buffer.c:
6858 * atimer.c: Include setjmp.h. (Bug#4643)
6859
fd5f21e6
SM
68602009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6861
4c0354d7
SM
6862 Remove leftover table unibyte_to_multibyte_table.
6863 * character.c (unibyte_to_multibyte_table): Remove.
6864 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6865 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6866 * character.h (UNIBYTE_TO_CHAR): New macro.
6867 (MAKE_CHAR_MULTIBYTE): Use it.
6868 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6869 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6870 (message_dolog, set_message_1):
6871 * search.c (Freplace_match):
6872 * editfns.c (Fcompare_buffer_substrings):
6873 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6874 (concat):
6875 * insdel.c (copy_text, count_size_as_multibyte):
6876 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6877 * term.c (produce_glyphs):
6878 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6879 * regex.c (RE_CHAR_TO_MULTIBYTE):
6880 * cmds.c (internal_self_insert):
6881 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6882
fd5f21e6
SM
6883 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6884
4418646e
DN
68852009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6886
6887 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6888
35f5c1d2
JB
68892009-10-16 Juanma Barranquero <lekktu@gmail.com>
6890
6891 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6892
a0cd8f6b
AR
68932009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6894
6895 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6896 still needed under Tiger.
6897
6898 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6899
6900 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6901 __Apple__.
6902
6903 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6904
01a8d3fa
KH
69052009-10-15 Kenichi Handa <handa@m17n.org>
6906
6907 * print.c (print_object): Escape a symbol like "2E10" too.
6908
bf6c75c9 69092009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
6910
6911 Cleanups and changes for 64-bit compile under Snow Leopard.
6912 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
6913
6914 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6915
c5959062 6916 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
6917 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6918 cast argument.
6919 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 6920 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
6921
6922 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6923
6924 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6925 where appropriate.
6926
6927 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6928 where appropriate.
6e4780c5
JB
6929 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6930 Use stringWithUTF8String.
bf6c75c9
AR
6931 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6932
6e4780c5
JB
6933 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6934 Add formal protocol mention to inheritance.
bf6c75c9
AR
6935 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6936
6e4780c5
JB
6937 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6938 Fix printf format.
bf6c75c9
AR
6939 (ns_query_color): Use CGFloat where appropriate.
6940 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 6941 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
6942 argument.
6943
3d87f118
AR
6944 * config.in (NS_HAVE_NSINTEGER): Drop.
6945
a95c8102
AR
6946 * dbusbind.c (dbus-method-return-internal)
6947 (dbus-method-error-internal): Use long format in printf, and cast
6948 argument.
6949
6950 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6951 in printf, and cast argument.
6952
6873acca 6953 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6954 cast argument.
6955
9ec6f100
GM
69562009-10-11 Glenn Morris <rgm@gnu.org>
6957
6958 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6959
5be883cd
JD
69602009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6961
6962 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6963 menu bar with a small width so it doesn't enlarge the frame.
6964
d7a39b51
JB
69652009-10-08 Juanma Barranquero <lekktu@gmail.com>
6966
6967 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6968
0c2b6f8e
GM
69692009-10-06 Glenn Morris <rgm@gnu.org>
6970
6971 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6972 SOME_MACHINE_LISP (this enters indirectly via DOC).
6973
e02131a2
EZ
69742009-10-05 Eli Zaretskii <eliz@gnu.org>
6975
6976 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6977
b4744254
EZ
69782009-10-04 Eli Zaretskii <eliz@gnu.org>
6979
6980 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6981 Doc fix.
6982
dbf64827
JB
69832009-10-03 Martin Rudalics <rudalics@gmx.at>
6984
6985 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6986
e9a0aef8
MA
69872009-10-02 Michael Albinus <michael.albinus@gmx.de>
6988
d528b1ce 6989 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6990 used anymore outside fileio.c.
6991
6992 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6993
64eb2b56
JB
69942009-10-01 Juanma Barranquero <lekktu@gmail.com>
6995
6996 * lisp.h (Qdelete_directory_internal):
6997 Declare, instead of Qdelete_directory.
6998
6999 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7000
9d28c33e
SM
70012009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7002
7003 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7004
9d8f3bd9
MA
70052009-10-01 Michael Albinus <michael.albinus@gmx.de>
7006
9d28c33e 7007 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
7008 Fdelete_directory. It is not a command anymore. It has no file
7009 name handler.
7010
9694740b
SM
70112009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7012
7013 * xdisp.c (get_next_display_element): Use an enum in last change.
7014
748e162f
KH
70152009-09-28 Kenichi Handa <handa@m17n.org>
7016
9694740b 7017 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
7018 unibyte_display_via_language_environment in handling
7019 Vnobreak_char_display.
7020
17efd58d
AR
70212009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7022
7023 * nsterm.h (ns_app_name): New extern variable.
7024
7025 * nsterm.m (ns_app_name): New variable.
7026 (ns_term_init): Set and use it.
7027 (ns_term_shutdown): Use it.
7028
7029 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7030 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7031
7032 * nsfns.m (ns_set_name_iconic, ns_set_name)
7033 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7034 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7035
9694740b
SM
7036 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7037 Remove double-casting in client_data comparison.
31c2d412 7038
3208cb35
YM
70392009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7040
7041 * keyboard.c (make_lispy_event): Remember last wheel direction.
7042 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7043
b7d552d6
GM
70442009-09-26 Glenn Morris <rgm@gnu.org>
7045
7046 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7047 internal.elc. Add term/pc-win.elc.
7048 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7049 term/x-win.elc.
7050 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7051 term/w32-win.elc.
7052 (NS_SUPPORT): New.
7053 (lisp): Add NS_SUPPORT.
7054 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7055
4ff670a8
DR
70562009-09-25 David Reitter <david.reitter@gmail.com>
7057
7058 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7059 on Mac OS X 10.6+ (bug#4513).
7060
feabfb6c
JB
70612009-09-24 Juanma Barranquero <lekktu@gmail.com>
7062
7063 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
7064 some parts of Emacs code (like font selection) don't grok them.
7065 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 7066
de59072a
AS
70672009-09-24 Andreas Schwab <schwab@redhat.com>
7068
7069 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7070
a489517b
JB
70712009-09-24 Juanma Barranquero <lekktu@gmail.com>
7072
7073 * dired.c (Fdirectory_files): Fix typo in docstring.
7074
0592970c
AR
70752009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7076
7077 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7078 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7079 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7080 under GNUstep.
7081 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7082
7083 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7084 glyph advancement.
7085
48e8a88b
AR
70862009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7087
7088 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 7089 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
7090
7091 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7092 deleted (bug #4492).
7093
e14f0a78
AR
7094 * nsfont.m (Vns_reg_to_script): New lisp variable.
7095 (syms_of_nsfont): Declare it.
7096 (ns_registry_to_script): New function.
7097 (ns_get_req_script): Call it.
7098 (ns_findfonts): Don't give up on non-unicode registry.
7099
7100 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7101
5b650faa
SM
71022009-09-20 Tom Tromey <tromey@redhat.com>
7103
7104 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7105 batch mode (bug#4228).
7106
a489517b 71072009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
7108
7109 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 7110 carefully. (Bug #4339)
0bae4e09 7111
fcfe06f3
CY
71122009-09-18 Chong Yidong <cyd@stupidchicken.com>
7113
d798ba87 7114 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 7115
31642728
AR
71162009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7117
7118 * emacs.c (inhibit_x_resources): Update doc string for NS.
7119 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 7120 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
7121
7122 * nsterm.h (ns_no_defaults): Remove.
7123
7124 * nsterm.m (ns_no_defaults): Remove.
7125 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7126 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
7127 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7128 don't update the NSWindow itself.
7129 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 7130 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
7131
7132 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7133 ns_use_qd_smoothing.
7134
7135 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7136 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 7137 (x-close-connection): Drop PSFlush() under OS X.
a489517b 7138 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 7139
8686ac71
JB
71402009-09-17 Juanma Barranquero <lekktu@gmail.com>
7141
7142 * emacs.c (inhibit_x_resources): New variable.
7143 (main) [HAVE_NS]: Don't process --quick command line option.
7144 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7145
7146 * lisp.h (inhibit_x_resources): Declare it extern.
7147
7148 * w32reg.c (x_get_string_resource):
7149 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7150
e227ba05
EZ
71512009-09-17 Eli Zaretskii <eliz@gnu.org>
7152
362654a6
JB
7153 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7154 Add lisp/term/internal.elc.
e227ba05 7155
742d40e8
SM
71562009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7157
7158 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7159 (bug#4461).
7160
005bd5a2
DN
71612009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7162
7163 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7164
7165 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7166 (OBJECTS_MACHINE): Remove, unused.
7167
f9af9719
SM
71682009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7169
7170 * frame.c (x_get_resource_string): Remove unused.
7171
0307c7d2
JD
71722009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7173
7174 * xterm.c (x_new_font): Call change_frame_size before calling
7175 x_set_window_size, in case frame size won't change.
7176
7177 * frame.c (x_set_font): Remove dead code.
7178
428b13d6
SM
71792009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7180
7181 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7182
5766c380
SM
71832009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7184
7185 * lread.c (Fload): Don't output a message after loading an obsolete
7186 package any more (done in Lisp now).
7187
2fd0161b
CY
71882009-09-12 Chong Yidong <cyd@stupidchicken.com>
7189
7190 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7191
bc5e75b6
SM
71922009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7193
7194 * keymap.c (Fwhere_is_internal): Use nconc2.
7195
c31c985e
AM
71962009-09-11 Alan Mackenzie <acm@muc.de>
7197
7198 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7199 batch mode.
7200
78012bd2
AS
72012009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7202
7203 * xdisp.c (display_mode_element): Detect cycles.
7204
9d889332
SM
72052009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7206
7207 * keymap.c (where_is_internal): Don't erroneously return nil right after
7208 filling the cache.
7209 (where_is_internal_1): Fix up typo.
7210
7ab5d780
GM
72112009-09-11 Glenn Morris <rgm@gnu.org>
7212
7213 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7214 share a common doc-string.
7215
5238a749
SM
72162009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7217
66d77eda
SM
7218 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7219 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7220
5238a749
SM
7221 * keymap.c (QCadvertised_binding): New constant.
7222 (syms_of_keymap): Initialize it.
7223 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7224 if applicable.
7225
19f48442
SM
72262009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7227
50d4ba39
SM
7228 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7229 (parse_menu_item): Streamline since bindings are recomputed all the
7230 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7231 more and don't support lmenu's menu-alias any more either.
7232
a88a5372
SM
7233 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7234 (where_is_internal): Strip it down to only traverse the keymaps.
7235 Move the cache handling from Fwhere_is_internal to here.
7236 (Fwhere_is_internal): Move the handling of remapping and the choice of
7237 the best binding from where_is_internal to here.
7238 Unify the cached/noncached paths, so remapping is also handled
7239 correctly when the cache is used, and so the cache can be used to
7240 speed up remap-handling when applicable.
7241 Give preference to non-remapped bindings.
7242 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7243 non-remapped bindings.
7244 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7245 command remapping.
7246
19f48442
SM
7247 * xdisp.c (display_mode_element): Move list length limit from 50 to
7248 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7249
599498c3 72502009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
7251
7252 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7253
f9b7b5ac
SM
72542009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7255
a53af587
JB
7256 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7257 (Bug#4334)
7258
f9b7b5ac
SM
7259 * keymap.c (where_is_internal): Filter out shadowed remappings.
7260 Assume that where_is_internal returns unshadowed bindings to simplify
7261 the code and get rid of the gotos. Use ASIZE.
7262
04f4b72d
JD
72632009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7264
4da146f2
JD
7265 * xterm.c (x_focus_changed): If we get a focusout and pointer
7266 is invisible, make it visible.
7267
04f4b72d
JD
7268 * xterm.h: Remove condition for declaration of
7269 x_*_window_to_frame.
7270
7cef7ce3
SM
72712009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7272
7273 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7274 initial terminal as well.
7275
a54fa5b7
JD
72762009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7277
7278 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 7279 x_menubar_window_to_frame.
a54fa5b7 7280
50426a04 7281 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
7282 (XTmouse_position): Do not return valid positions
7283 for clicks in the menubar and the toolbar for Gtk+.
7284
7285 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7286 if the widget for the event has the same top level as a frame,
7287 return the frame.
7288 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7289 internal windows, bug #4122.
7290 (x_non_menubar_window_to_frame): Remove.
7291
5a021dd0
GM
72922009-09-02 Glenn Morris <rgm@gnu.org>
7293
7294 * buffer.c (default-major-mode): Move most of the doc from here...
7295 (major-mode): ... to here.
7296
548fe2f3
NR
72972009-08-30 Nick Roberts <nickrob@snap.net.nz>
7298
7299 * process.c (wait_reading_process_output): Keep the descriptor
7300 when pty is used by a non-child process, e.g., in I/O buffer of
7301 GDB this allows inferior to be restarted.
7302
e0840eef
EZ
73032009-08-29 Eli Zaretskii <eliz@gnu.org>
7304
7305 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7306 both branches into one.
7307
82e98df4
SM
73082009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7309
7310 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7311 (main): Use enable-multibyte-characters rather than
7312 default-enable-multibyte-characters. Output a warning message when
7313 running a unibyte session.
7314
890617cb
YM
73152009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7316
7317 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7318 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7319 (copy_data_segment): Also copy __program_vars section.
7320 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7321 (dump_it) [LC_DYLD_INFO]: Use it.
7322
7323 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7324
e7adeadc
EZ
73252009-08-28 Eli Zaretskii <eliz@gnu.org>
7326
7327 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7328 $(SRC)/buildobj.h.
7329 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7330 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7331 $(SRC)/buildobj.h.
7332 (clean): Add buildobj.h.
7333
3ed8bbdc
TZ
73342009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7335
7336 * print.c (print_object): Set escapeflag to 1 when printing
7337 hashtable keys and values.
7338
155a6764
SM
73392009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7340
7341 * lread.c (read_integer): Use doubles (and potentially return a float
7342 number) as we do in string-to-number.
7343 (read1): Use strtol to read integers, signal errors on strtol's
7344 overflow and use floats if strtol's output is too large for
7345 Elisp integers.
7346
877610de
EZ
73472009-08-27 Eli Zaretskii <eliz@gnu.org>
7348
7349 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7350 (make-buildobj-SH): Fix last change.
7351 (SRC): Move to before where it's first used.
7352
ef73e7be
KH
73532009-08-27 Kenichi Handa <handa@m17n.org>
7354
550c8289
KH
7355 * process.c (send_process): Use encode_coding_object instead of
7356 encode_coding_string to perform eol-conversion even if the string
7357 is unibyte.
7358
60afa08d
KH
7359 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7360 character.
7361
ef73e7be 7362 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 7363 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 7364
7b3a82d7
DN
73652009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7366
5654bf63
DN
7367 * callproc.c (Fcall_process): Remove always true #if.
7368
7b3a82d7
DN
7369 * lisp.h: Replace #if 0 code for checking with text pointing to
7370 the --enable-checking configure flag.
7371
7372 * emacs.c (main): Mention the --enable-profiling configure flag
7373 instead of using CFLAGS.
7374
878bde49
KR
73752009-08-26 Ken Raeburn <raeburn@raeburn.org>
7376
7377 * Makefile.in (buildobj.h): New target.
7378 (doc.o): Depend on it.
7379 (temacs${EXEEXT}): Don't generate buildobj.lst.
7380 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7381 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7382 ($(BLD)/doc.$(O)): Depend on it.
7383 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7384 provided by Eli Zaretskii.)
7385 ($(TEMACS)): Don't generate buildobj.lst.
7386 * doc.c: Include buildobj.h.
7387 (buildobj): New static variable.
7388 (Fsnarf_documentation): Use it, instead of opening and reading
7389 buildobj.lst.
7390
1574224c
MA
73912009-08-25 Michael Albinus <michael.albinus@gmx.de>
7392
7393 * dbusbind.c (Fdbus_call_method)
7394 (Fdbus_call_method_asynchronously): Use English numeric format for
7395 timeout values in doc string.
7396
d9da2f45
KH
73972009-08-25 Kenichi Handa <handa@m17n.org>
7398
ef73e7be
KH
7399 * alloc.c (mark_char_table): New function.
7400 (mark_object): Use mark_char_table for a char-table.
7401
d9da2f45
KH
7402 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7403 (CHAR_TABLE_REF): Use it.
7404
c8edcc01
KR
74052009-08-23 Ken Raeburn <raeburn@raeburn.org>
7406
7407 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7408 before invoking the newly build emacs to check for load-path
7409 shadowing.
7410
7763401b
GM
74112009-08-22 Glenn Morris <rgm@gnu.org>
7412
7413 * Makefile.in (bootstrap_exe): New variable.
7414 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7415 Use ${bootstrap_exe}.
7416
729eadda
EZ
74172009-08-22 Eli Zaretskii <eliz@gnu.org>
7418
7419 * coding.h (encode_coding_string): Don't encode unibyte strings.
7420 (Bug#4047)
7421
eb4c6ace
MA
74222009-08-22 Michael Albinus <michael.albinus@gmx.de>
7423
7424 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7425
7426 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7427 intended as hotfix only.
7428 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7429
36e34d1b
AR
74302009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7431
7432 * nsterm.m (ns_get_color): Update documentation properly for last
7433 change, and clean up loose ends in the code left by it. Fix
7434 longstanding bug with 16-bit hex parsing, and add support for
7435 yet another X11 format (rgb:r/g/b) for compatibility.
7436 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7437 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7438
f983eb8a
SM
74392009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7440
7441 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7442
3f56d3c6
MA
74432009-08-20 Michael Albinus <michael.albinus@gmx.de>
7444
7445 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7446 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7447 (xd_initialize, xd_pending_messages): Check, whether
7448 $DBUS_SESSION_BUS_ADDRESS is set.
7449
fb641d68
YM
74502009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7451
7452 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7453
7454 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7455
cf59a374
GM
74562009-08-20 Glenn Morris <rgm@gnu.org>
7457
7458 * emacs.c (system-type): Doc fix.
7459
1373f3be
SM
74602009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7461
7462 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7463 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7464
058ed861
MA
74652009-08-18 Michael Albinus <michael.albinus@gmx.de>
7466
1373f3be
SM
7467 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7468 New functions.
058ed861
MA
7469 (xd_initialize): Revert change from 2009-08-16.
7470
563a866e 74712009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
7472
7473 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 7474 font-group vector, return nil.
5fc05db0 7475
e42bdf01
CY
74762009-08-17 Chong Yidong <cyd@stupidchicken.com>
7477
7478 * process.c (status_notify): Don't perform redisplay.
7479 (Fdelete_process, list_processes_1, process_send_signal):
7480 Expliticly perform redisplay.
7481 (wait_reading_process_output): Always check process status, but
7482 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7483
4230ab74
KR
74842009-08-17 Ken Raeburn <raeburn@raeburn.org>
7485
1373f3be 7486 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
7487 (XFLOAT_INIT): New macro for storing a float value.
7488 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7489 * fns.c (sxhash): Copy out the value of a float in order to
7490 examine its bytes.
7491 * dbusbind.c (xd_append_arg): Likewise.
7492
4230ab74
KR
7493 * emacs.c (main): Don't call syms_of_data twice.
7494
a0645cdd
MA
74952009-08-16 Michael Albinus <michael.albinus@gmx.de>
7496
7497 * dbusbind.c (xd_initialize): Add connection file descriptor to
7498 input_wait_mask, in order to let select() detect, whether a new
7499 message has been arrived.
ca4f31ea 7500 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 7501
485db0ba
MA
75022009-08-15 Michael Albinus <michael.albinus@gmx.de>
7503
1373f3be
SM
7504 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7505 New functions.
485db0ba
MA
7506
7507 * lisp.h (xd_pending_messages): Declare.
7508
7509 * keyboard.c (readable_events): Call xd_pending_messages.
7510
b5b98ff4
CY
75112009-08-15 Chong Yidong <cyd@stupidchicken.com>
7512
1373f3be 7513 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 7514
f8354c6e
CY
7515 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7516
b5b98ff4
CY
7517 * buffer.c (set_buffer_internal_1)
7518 (swap_out_buffer_local_variables): Check for unbound local
7519 variables (Bug#4138).
7520
8b9fc636
EZ
75212009-08-14 Eli Zaretskii <eliz@gnu.org>
7522
7523 * process.c (create_pty): Fix last change.
7524
ce959360
CY
75252009-08-13 Chong Yidong <cyd@stupidchicken.com>
7526
7527 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7528 (xbm_load_image): Caller changed.
64b807c9 7529 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 7530
c7baf7e9
NR
75312009-08-13 Nick Roberts <nickrob@snap.net.nz>
7532
7533 * process.c (create_pty): New function.
7534 (Fstart_process): Use it to allow Emacs to just associate a pty
7535 with the buffer. See associated change in gdb-mi.el.
7536 (list_processes_1): Deal with no program name.
7537 (start_process_unwind): Use pid == -2 to mean no process.
7538
1ac9108a
SM
75392009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7540
7541 * cmds.c (nonundocount): New global variable.
7542 (keys_of_cmds): Initialize it.
7543 (Fself_insert_command): Use it to combine upto 20 sequential chars
7544 into a single undo entry, just like the Qself_insert_command code in
7545 keyboard.c does.
7546 Call frame_make_pointer_invisible, also like the Qself_insert_command
7547 code in keyboard.c does.
7548 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7549 than its own local replacement for it.
7550
e267324c
KR
75512009-08-10 Ken Raeburn <raeburn@raeburn.org>
7552
1ac9108a 7553 * fns.c (concat): Don't re-set string length to its current value.
77437343 7554
1ac9108a
SM
7555 * coding.h (decode_coding_string, encode_coding_string):
7556 Use SBYTES macro.
f0bed503 7557
1ac9108a 7558 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
7559 (doprnt): Merge with doprnt1, discarding lispstrings code.
7560 * lisp.h (doprnt_lisp): Don't declare.
7561
416e006d
JL
75622009-08-07 Juri Linkov <juri@jurta.org>
7563
7564 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7565
6f7d5780
DN
75662009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7567
7568 * print.c (syms_of_print): Undo previous change.
7569
f19a0f5b
TZ
75702009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7571
7572 * lread.c (read1, syms_of_lread): Read hashtables back from the
7573 readable format.
7574
7575 * print.c (print_preprocess, print_object): Print hashtables fully
7576 and readably.
7577 (syms_of_print): Provide 'hashtable-print-readable.
7578
b9173dc2
AR
75792009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7580
7581 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7582 no family set.
7583 (nsfont_open): Handle case when entity has no family.
7584
1586503c
AR
75852009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7586
7587 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7588 element, not a list, for match case.
7589
087048cd
KH
75902009-07-28 Kenichi Handa <handa@m17n.org>
7591
7592 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7593 rigidly.
7594
7595 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7596 font_parse_xlfd. Check font properties more rigidly.
7597
780c2506
DN
75982009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7599
31fd7c5c
JB
7600 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7601 bsd-common.h.
780c2506 7602
a8c0cc18
KH
76032009-07-27 Kenichi Handa <handa@m17n.org>
7604
7605 * xfaces.c (face_with_height): Call font_clear_prop.
7606
4fbe2306
CY
76072009-07-26 Chong Yidong <cyd@stupidchicken.com>
7608
111d9af3
CY
7609 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7610
7611 * xterm.c (x_term_init): Use Qx.
7612
4fbe2306
CY
7613 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7614
1ac9108a 7615 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
7616 (ns_get_color): Revert 2009-07-16 change.
7617
beb0b7f9
EZ
76182009-07-25 Eli Zaretskii <eliz@gnu.org>
7619
7620 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 7621 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 7622
2baf5e76
KR
76232009-07-25 Ken Raeburn <raeburn@raeburn.org>
7624
1ac9108a
SM
7625 * coding.h (decode_coding_string, encode_coding_string):
7626 Use SCHARS macro.
8890e5f5 7627
2baf5e76 7628 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 7629 (load_depth): Delete.
2baf5e76
KR
7630 (Qload_in_progress): New variable.
7631 (load_unwind): Don't reference load_depth or load_in_progress.
7632 (Fload): Likewise; specbind Qload_in_progress instead.
7633 (init_lread): Don't initialize load_depth.
7634 (syms_of_lread): Initialize and protect Qload_in_progress.
7635
1395c6f5
AR
76362009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7637
7638 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7639
4e2f36cf
AR
76402009-07-23 Yavor Doganov <yavor@gnu.org>
7641
7642 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7643
5dd9a6f7
AR
76442009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7645
7646 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
7647 Bugs 3792, 3720, 2402.
7648 (ns_lookup_indexed_color): Check for bad index.
7649 (ns_index_color): Init unused slot to 0.
7650 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7651 Bug 3714, possibly 3082.
5dd9a6f7 7652
c902b920
JR
76532009-07-22 Jason Rumney <jasonr@gnu.org>
7654
1ac9108a
SM
7655 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7656 Position IME window at cursor (Bug#2570).
c902b920
JR
7657 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7658 (globals_of_w32fns): Dynamically load functions required above.
7659
7660 * w32term.c (w32_draw_window_cursor): Send message to reposition
7661 any IME window.
7662
090101cf
CY
76632009-07-21 Chong Yidong <cyd@stupidchicken.com>
7664
7665 * fileio.c: Revert 2009-07-16 changes.
7666 (Vauto_save_include_big_deletions): New variable.
7667 (Fdo_auto_save): Disable auto-save only if
7668 auto-save-include-big-deletions is nil.
7669
e6583e3d
CY
76702009-07-21 Chong Yidong <cyd@stupidchicken.com>
7671
7672 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7673 the overflowed pixels into account (Bug#3879).
7674
ece435a5
KR
76752009-07-21 Ken Raeburn <raeburn@raeburn.org>
7676
7677 * lread.c (load_depth): New variable.
7678 (Fload, load_unwind, init_lread): Set it to the load recursion
7679 depth; set load_in_progress as a simple boolean based on the
7680 current load_depth. (Bug#3892)
7681
40b2d973
AR
76822009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7683
7684 * nsfont.m (ns_has_attribute): Remove.
7685 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7686
10be7e0d
JL
76872009-07-18 Juri Linkov <juri@jurta.org>
7688
7689 * process.c (Fset_process_query_on_exit_flag): Mention killing
7690 a buffer in docstring.
7691
fa055055
KH
76922009-07-17 Kenichi Handa <handa@m17n.org>
7693
7694 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7695
042f7b69
YM
76962009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7697
7698 * nsfns.m (Fns_set_alpha): Remove function.
7699 (syms_of_nsfns): Don't defsubr it.
7700
7701 * nsterm.m (ns_get_color): Remove incompatible color formats.
7702 (ns_color_to_lisp): Generate #rrggbb color format string.
7703
4be941e3
RS
77042009-07-16 Richard Stallman <rms@gnu.org>
7705
7706 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7707 (Fset_buffer_auto_saved): Handle save_length = -2.
7708
4e6b227d
CY
77092009-07-16 Chong Yidong <cyd@stupidchicken.com>
7710
7711 * xterm.c (Qx_gtk_map_stock): New var.
7712
7713 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7714 of calling intern each time.
7715
a1856973
YM
77162009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7717
7718 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7719 does tiling.
7720
7721 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7722
497e54d8
KH
77232009-07-14 Kenichi Handa <handa@m17n.org>
7724
72d36834
KH
7725 * font.c (font_vconcat_entity_vectors): New function.
7726 (struct font_sort_data): New member font_driver_preference.
7727 (font_compare): Check font_driver_preference.
7728 (font_sort_entities): The format of the first argument changed.
7729 (font_delete_unmatched): Likewise.
7730 (font_list_entities): The return type changed.
7731 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
7732 (font_find_for_lface): Adjuste for the above changes.
7733 Don't suppress the checking of C even if the repertory supports it.
7734 (Flist_fonts): Adjust for the above changes.
72d36834 7735
1ac9108a
SM
7736 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7737 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
7738 Reject a font who has adstyle property that is different from a
7739 langname derived from registry property.
1ac9108a 7740 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 7741
b6046155
EZ
77422009-07-13 Eli Zaretskii <eliz@gnu.org>
7743
7744 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7745 local copy of dirfilename.
7746
fb6b6049
KH
77472009-07-13 Kenichi Handa <handa@m17n.org>
7748
e2402a5e
KH
7749 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7750 against max_char.
7751
fb6b6049
KH
7752 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7753 calling XSYMBOL (sym).
7754
65156807
EZ
77552009-07-11 Eli Zaretskii <eliz@gnu.org>
7756
1ac9108a
SM
7757 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7758 New function.
7759 (directory_files_internal) [WINDOWSNT]:
7760 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
7761 the filesystem of the directory is fast or slow.
7762
7763 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7764 file name.
7765 (is_slow_fs): New function.
7766 (stat): Use it to determine whether to issue more system calls to
7767 get accurate file attributes, when w32-get-true-file-attributes is
7768 `local'.
7769
e0ab5fcf
JD
77702009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7771
7772 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7773 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7774 parameter font-parameter as default to the font dialog.
7775
784ceded
KH
77762009-07-10 Kenichi Handa <handa@m17n.org>
7777
7778 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7779
fb8edc0b
EZ
77802009-07-09 Eli Zaretskii <eliz@gnu.org>
7781
1ac9108a 7782 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7783
fb8edc0b
EZ
7784 * w32.c (stat): Treat UNC file names as residing on remote
7785 drives. (Bug#3542)
7786
635c75b1
KH
77872009-07-09 Kenichi Handa <handa@m17n.org>
7788
7789 * fontset.c (fontset_find_font): Fix previous change.
7790
c1d5ce94
MA
77912009-07-08 Michael Albinus <michael.albinus@gmx.de>
7792
7793 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7794 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7795 error flag.
7796
edb61b39
KH
77972009-07-08 Kenichi Handa <handa@m17n.org>
7798
374bf7e4
KH
7799 * fontset.c (fontset_find_font): Fix the logic of handling
7800 charset_matched.
7801 (font_for_char): Delete unused var.
7802 (generate_ascii_font_name): Delete it.
7803
edb61b39
KH
7804 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7805
7806 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7807 (encode_coding_sjis): Fix the code range check.
7808
0f3f018c
CY
78092009-07-07 Chong Yidong <cyd@stupidchicken.com>
7810
7811 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7812 (Fexpand_file_name): Copy string data properly (Bug#3772).
7813
fcaf6f3a
JD
78142009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7815
7816 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7817 first MapNotify.
7818
6809ca75
KH
78192009-07-07 Kenichi Handa <handa@m17n.org>
7820
7821 * character.h (unibyte_has_multibyte_table): Delete extern.
7822 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7823
7824 * charset.c (Fset_charset_priority): Update charset_unibyte.
7825 (syms_of_charset): Initialize charset_unibyte.
7826
7827 * character.c (unibyte_has_multibyte_table): Delete it.
7828 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7829 charset_unibyte.
7830 (multibyte_char_to_unibyte_safe): Likewise.
7831 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7832
1ac9108a 7833 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
7834 (x_produce_glyphs): Likewise.
7835
7836 * .gdbinit (xcharset): Fix the treating $arg0.
7837
ad9e2d54
EZ
78382009-07-04 Eli Zaretskii <eliz@gnu.org>
7839
7840 Emulation of `getloadavg' on MS-Windows.
50426a04 7841 * w32.c: Include float.h.
ad9e2d54
EZ
7842 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7843 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7844 (get_native_system_info, get_system_times): New functions.
7845 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7846 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7847 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7848 g_b_init_get_system_times, and num_of_processors.
7849
0a3472c7
JR
78502009-07-03 Jason Rumney <jasonr@gnu.org>
7851
7852 * w32term.c (w32_initialize): Use standard types.
7853
80904120
EZ
78542009-07-03 Eli Zaretskii <eliz@gnu.org>
7855
7856 * dired.c (Ffile_attributes): Decode user and group names by the
7857 locale's encoding. (Bug#3443)
7858
6978862d
DN
78592009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7860
f8d23104
DN
7861 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7862 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7863
7864 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7865
7866 * term.c (init_tty): Remove spurious #ifdef.
7867
6978862d
DN
7868 * m/mips.h: Mention this file is also used for netbsd.
7869 * m/pmax.h: Remove file.
7870
e044e4fc
JD
78712009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7872
7873 * xterm.h (struct x_display_info): Add invisible_cursor.
7874 (struct x_output): Add current_cursor.
7875
7876 * xterm.c (XTtoggle_invisible_pointer): New function.
7877 (x_define_frame_cursor): Don't define cursor if invisible or the
7878 same as before. Set current_cursor.
7879 (x_create_terminal): Set toggle_invisible_pointer_hook.
7880
7881 * xfns.c (make_invisible_cursor): New function.
7882 (x_set_mouse_color): Call make_invisible_cursor.
7883 Set current_cursor.
7884 (x_window): Set current_cursor.
7885
7886 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7887
7888 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7889 inserting a character.
7890 (read_avail_input): Call frame_make_pointer_visible.
7891
7892 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
7893 (frame_make_pointer_invisible, frame_make_pointer_visible):
7894 New functions.
e044e4fc
JD
7895 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7896
7897 * frame.h: Declare frame_make_pointer_invisible and
7898 frame_make_pointer_visible.
7899 (struct frame): Add pointer_invisible.
7900
574c8efa
JD
79012009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7902
7b507248
JD
7903 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7904 frame isn't visible.
7905 (xg_frame_resized): If width/height is -1, get size of window
7906 from X server.
7907
7908 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7909 for MapNotify.
7910
835bdaa7 7911 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 7912 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 7913 (flush_and_sync): Reintroduce.
574c8efa 7914
3f1c6666 79152009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 7916
31fd7c5c 7917 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
7918
7919 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7920 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7921
7922 * frame.h: Declare Qsticky.
7923
cad9ef74
JD
7924 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7925
7926 * nsfns.m (ns_frame_parm_handlers): Ditto.
7927
7928 * frame.c: Declare Qsticky.
7929 (frame_parms): Add sticky.
7930
7931 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7932
7933 * xterm.h: Declare x_set_sticky.
7934
7935 * xterm.c (x_set_sticky): New function.
7936
69b16610
JD
7937 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7938 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7939 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
7940
7941 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7942
7943 * frame.c: Qmaximized is new.
7944 (x_set_frame_parameters): Do not handle fullscreen specially.
7945 Only set width and height if explicitly set.
7946 (x_set_fullscreen): Handle Qmaximized.
7947 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7948 (syms_of_frame): Initialize Qmaximized.
7949
1ac9108a
SM
7950 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7951 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
7952
7953 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7954 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7955 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7956 set gravity to NorthWestGravity when USE_GTK.
7957 (set_wm_state): New function.
31fd7c5c 7958 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7959 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7960 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7961 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7962 to x_real_positions and x_fullscreen_adjust.
7963
7964 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7965 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7966 flush_and_sync.
7967 (xg_height_changed): New function.
7968 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7969 and gtk_window_set_policy. Set frame gravity after parsing the
7970 geometry string.
3f1c6666
JD
7971 (xg_update_frame_menubar, free_frame_menubar)
7972 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7973 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7974 Remove calls to xg_frame_set_char_size.
7975
fd503d99
KH
79762009-07-01 Kenichi Handa <handa@m17n.org>
7977
7978 * keyboard.c (decode_keyboard_code): New function.
7979 (tty_read_avail_input): Decode the input bytes if necessary.
7980
1ac9108a
SM
7981 * coding.c (setup_coding_system):
7982 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7983 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7984 use Qno_conversion.
7985
24ed93fb
YM
79862009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7987
7988 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7989
99061dfc
CY
79902009-06-30 Chong Yidong <cyd@stupidchicken.com>
7991
1ac9108a 7992 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7993
ff90fbde
JR
79942009-06-30 Jason Rumney <jasonr@gnu.org>
7995
7996 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7997 is already loaded.
7998 Set user model ID if supported (bug#1849).
7999
5f445726
JM
80002009-06-29 Jim Meyering <meyering@redhat.com>
8001
8002 Remove useless if-before-xfree test.
8003 * nsfont.m (nsfont_close): Remove useless test.
8004 * term.c (delete_tty): Likewise.
8005 * w32.c (system_process_attributes): Likewise.
8006 * w32font.c (w32font_close): Likewise.
8007 * xfaces.c (x_free_gc): Likewise.
8008 * xselect.c (buffer): Likewise.
8009
b9607587
AS
80102009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8011
8012 * process.c (send_process): Keep decoded string in a local
8013 variable and protect it from GC. (Bug#3521)
8014
89ba96f4
EZ
80152009-06-28 Eli Zaretskii <eliz@gnu.org>
8016
8017 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8018 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8019
098a1589
CY
80202009-06-28 Chong Yidong <cyd@stupidchicken.com>
8021
485422be
CY
8022 * xdisp.c (start_display, handle_face_prop)
8023 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
8024 (redisplay_window, try_window_id, produce_image_glyph):
8025 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 8026
098a1589
CY
8027 * xterm.c (x_update_window_begin, x_new_focus_frame)
8028 (x_scroll_bar_handle_click, handle_one_xevent)
8029 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8030 (x_make_frame_visible, x_make_frame_invisible)
8031 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8032 code chunks that are now obsolete.
8033
78c38319
MA
80342009-06-28 Michael Albinus <michael.albinus@gmx.de>
8035
8036 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8037 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8038 for hours, when optimzation is enabled.
8039 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8040 (xd_read_message): Make them static.
8041
4189ed40
CY
80422009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8043
8044 * term.c (turn_on_face): Allow simultaneously bold and dim
8045 terminal faces (Bug#3530).
8046
cd9b5e16
CY
80472009-06-27 Chong Yidong <cyd@stupidchicken.com>
8048
4e23bedb
CY
8049 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8050
cd9b5e16
CY
8051 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8052 truncation glyphs (Bug#3686).
8053
07cc3c35
GM
80542009-06-27 Glenn Morris <rgm@gnu.org>
8055
8056 * m/pmax.h: Restore file, with only netbsd portions.
8057
31fd7c5c 80582009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 8059
cd9b5e16 8060 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 8061
42d4a64f
KH
80622009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8063
8064 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8065 the arg FORCE_SYMBOL.
8066
930fe55b 80672009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
8068
8069 * fontset.c (fontset_find_font): When a usable rfont_def is found
8070 in a fallback font-group, make it the first element of the group.
8071
57ebc3fd
CY
80722009-06-24 Chong Yidong <cyd@stupidchicken.com>
8073
8074 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8075
f084f942
KH
80762009-06-24 Kenichi Handa <handa@m17n.org>
8077
8078 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8079 set for C.
8080 (fontset_font): Record the availability of a font for C both in
8081 the realized fontsets of the current one and the default one.
8082
2f686c87
DN
80832009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8084
8085 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8086 conditional, it is always defined on AIX.
8087
666e158e
MB
80882009-06-23 Miles Bader <miles@gnu.org>
8089
8090 * window.c (Vrecenter_redisplay): New variable.
8091 (syms_of_window): Initialize it.
8092 (Qtty): New extern declaration.
8093 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8094
c6da7cd2
JM
80952009-06-23 Jim Meyering <meyering@redhat.com>
8096
1ac9108a
SM
8097 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8098 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 8099 pointer dereferences are guaranteed to be valid.
c6da7cd2 8100
678dca3d
KH
81012009-06-23 Kenichi Handa <handa@m17n.org>
8102
74d75424
KH
8103 * emacs.c (main): Call init_font ().
8104
8105 * font.h (Vfont_log): Extern it.
8106 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8107
8108 * font.c (font_sort_entities, font_list_entities)
8109 (font_matching_entity, font_open_entity)
8110 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8111 (Vfont_log): Delete static.
8112 (font_log_env_checked): Delete this variable.
8113 (font_add_log): Don't check font_log_env_checked.
8114 (font_deferred_log): Check Vfont_log.
8115 (init_font): New function.
8116
678dca3d
KH
8117 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8118
8119 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8120
8121 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8122
8123 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8124
8125 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8126 (face_for_char): Don't call font_deferred_log here.
8127 (font_for_char): Likewise.
8128
8a668709
CY
81292009-06-22 Chong Yidong <cyd@stupidchicken.com>
8130
9a01ee33
CY
8131 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8132 rather than its background_width for drawing the overline and
8133 underline (Bug#489).
8134
8135 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8136 rather than its background_width for drawing the overline and
8137 underline (Bug#489).
ec7c9926
CY
8138 (xg_default_icon_file): New variable.
8139 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8140 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 8141
8a668709
CY
8142 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8143 (load_overlay_strings): Remove externs.
8144 (fast_find_position): Function deleted.
8145 (mouse_face_from_buffer_pos): New function, based on
8146 fast_find_position. Correctly handle before-strings,
8147 display-strings, and after-strings (Bug#1220).
8148 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8149
4d4c02d8
CY
81502009-06-21 Chong Yidong <cyd@stupidchicken.com>
8151
1ac9108a 8152 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
8153 (move_it_in_display_line_to, move_it_in_display_line_to)
8154 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8155
70243478
CY
81562009-06-21 Chong Yidong <cyd@stupidchicken.com>
8157
8158 * Branch for 23.1.
8159
13087e59
JR
81602009-06-21 Jason Rumney <jasonr@gnu.org>
8161
8162 * w32term.c (keyboard_codepage): New static variable.
8163 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8164 (w32_read_socket) [WM_CHAR]: Use it to decode character
8165 input (bug#3237).
8166 (w32_initialize): Initialize it.
8167 (codepage_for_locale): New function.
8168
4735b74e
KR
81692009-06-20 Ken Raeburn <raeburn@raeburn.org>
8170
8171 * process.c (status_message): Pass Faset index argument as a lisp
8172 object, so as to work with USE_LISP_UNION_TYPE.
8173
0e727afa
YM
81742009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8175
8176 * coding.c (Ffind_coding_systems_region_internal):
8177 Cache checked characters.
8178
cf299835
KH
81792009-06-18 Kenichi Handa <handa@m17n.org>
8180
1ac9108a 8181 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 8182
90f20d94
AS
81832009-06-18 Andreas Schwab <aschwab@redhat.com>
8184
8185 * xdisp.c (redisplay_internal): Check that the frame is still
8186 live after redisplay of its windows.
8187 (redisplay_windows): Check that the window is still live.
8188
7f1faf1c
KH
81892009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8190
8191 * coding.c (detect_coding_utf_16): Fix previous change.
8192
cc13543e
KH
81932009-06-16 Kenichi Handa <handa@m17n.org>
8194
8195 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8196 UTF-16 by checking the dispersion of Eth and Oth bytes.
8197
977b85f4
AS
81982009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8199
8200 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8201
66bd43d1
KH
82022009-06-15 Kenichi Handa <handa@m17n.org>
8203
8204 * process.c (status_message): Fix previous change. Be sure to
8205 decode a localized string.
8206
cb5ca9c5
YM
82072009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8208
8209 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8210 add comment explaining why.
8211
ec7709ba 82122009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 8213
ec7709ba 8214 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 8215
4b7f335c
AR
82162009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8217
8218 * nsfont.m (ns_attribute_value): Remove.
8219 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8220 (ns_has_attribute): Shrink the normal range.
8221 (ns_findfonts): Don't worry about requested spec in determining
8222 need for synthItal.
e41820ee 8223 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 8224
73b26103
SZ
82252009-06-14 Seiji Zenitani <zenitani@mac.com>
8226
8227 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8228
5753e4da
KH
82292009-06-11 Kenichi Handa <handa@m17n.org>
8230
8231 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8232 overhang for the static composition case.
8233
3561b671
KH
82342009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8235
5753e4da
KH
8236 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8237 overhang for the automatic composition case.
8238
3561b671
KH
8239 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8240 composition case.
8241
852bbd41
CY
82422009-06-10 Chong Yidong <cyd@stupidchicken.com>
8243
8244 * xdisp.c (get_next_display_element): When handling wrap-prefix
8245 and line-prefix, treat \n as a control character (bug#3502).
8246
9903d1e6
KH
82472009-06-10 Kenichi Handa <handa@m17n.org>
8248
8249 * font.c (font_parse_family_registry): Fix for one-char foundry.
8250 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8251
0bcbaaaa
CY
82522009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8253
8254 * process.c (status_message): Fix handling of multibyte signal
8255 string (Bug#3499).
8256
40aa3f13
JM
82572009-06-09 Jim Meyering <meyering@redhat.com>
8258
1f80c7e2
CY
8259 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8260 color name is missing.
40aa3f13 8261
72d51285
KH
82622009-06-09 Kenichi Handa <handa@m17n.org>
8263
8264 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8265 FROM-CODE and TO-CODE are codepoints of CHARSET.
8266
c1d04d84
AR
82672009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8268
8269 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8270
82712009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8272
8273 Changes to support :script/:lang/:otf in NS font driver.
8274 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8275 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8276 indicate not part of font driver interface, and change callers.
8277 (ns_get_family): Remove pointless null check.
8278 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8279 ns_spec_to_descriptor, ns_descriptor_to_entity.
8280 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8281 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8282 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8283 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8284 (ns_get_req_script, ns_accumulate_script_ranges)
8285 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8286 New functions.
8287 (nsfont_list, nsfont_match): Use ns_findfonts.
8288 (nsfont_open): Use font descriptor instead of traits.
8289 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8290 (dump_glyphstring): Rename to ns_dump_glyphstring.
8291
c7eb9816
AR
8292 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8293
c1d04d84
AR
8294 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8295
8296 * fontset.c (fontset_from_font): Remove NS-specific code.
8297
ec7709ba 82982009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
8299
8300 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8301 nonactive windows.
8302
31fd7c5c 83032009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 8304
1ac9108a 8305 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 8306
68852c13 83072009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
8308
8309 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8310
6756cd1d
CY
83112009-06-07 Chong Yidong <cyd@stupidchicken.com>
8312
8313 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8314 account for the overflowing of newlines into the last glyph on the
8315 display line (Bug#3482).
8316
28bf482a
DR
83172009-06-05 David Reitter <david.reitter@gmail.com>
8318
ec7709ba
JB
8319 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8320 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
8321 Fns_selection_exists_p, Fns_selection_owner_p.
8322
fdb55376
JR
83232009-06-03 Jason Rumney <jasonr@gnu.org>
8324
8325 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8326 available. (Bug#3379)
8327
05129fbe
KH
83282009-05-29 Kenichi Handa <handa@m17n.org>
8329
1ac9108a
SM
8330 * coding.c (get_translation_table):
8331 Check Venable_character_translation.
05129fbe 8332
ec7709ba 83332009-05-26 David Reitter <david.reitter@gmail.com>
15891144 8334
ec7709ba
JB
8335 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8336 (x_make_frame_visible): Move frame to front rather than calling
15891144 8337 ns_raise_frame().
ec7709ba 8338 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 8339 isn't key window.
ec7709ba 8340 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
8341 drawRect may be called by NSView even if the frame is hidden.
8342
ec7709ba
JB
8343 * nsfns.m (Fx_create_frame): Follow other ports in
8344 determining visibility; default to t. Ensure async_visible is set.
15891144 8345
21f73755
EZ
83462009-05-23 Eli Zaretskii <eliz@gnu.org>
8347
8348 * dired.c (Ffile_attributes): Doc fix.
8349
34001e41
CY
83502009-05-22 Chong Yidong <cyd@stupidchicken.com>
8351
8352 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8353
46306a17
SM
83542009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8355
8356 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8357 and xfont_scratch_props.
8358 (syms_of_xfont): Do it here instead.
8359 (xfont_find_ccl_program): Delete, unused.
8360 (xfont_open): Delete unused var `i'.
8361
ef6e0694
KH
83622009-05-21 Kenichi Handa <handa@m17n.org>
8363
8364 * fontset.c (Qlatin): Don't make it static.
8365
46306a17
SM
8366 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8367 New functions.
ef6e0694
KH
8368 (xfont_scripts_cache, xfont_scratch_props): New variables.
8369 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
8370 (xfont_list_pattern): Argument changed. Callers changed.
8371 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
8372 (xfont_list): Don't reject a font spec with :script property.
8373 (xfont_has_char): Fix setting of encoding.
8374 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8375 xfont_scratch_props.
8376
83772009-05-19 Kenichi Handa <handa@m17n.org>
8378
46306a17 8379 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
8380 Callers changed.
8381
83822009-05-18 Kenichi Handa <handa@m17n.org>
8383
8384 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8385
ac71ced7
SM
83862009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8387
8388 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8389 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8390
1c6d1051
YM
83912009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8392
8393 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8394 (x_delete_terminal): Dissociate resource database from display and
8395 then call XrmDestroyDatabase before closing display.
8396
9b9b779c
AR
83972009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8398
8399 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
8400 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8401 whether selected frame is viable before raising it (based on patch
8402 by David Reitter), and improve commentary.
8403 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 8404
cccd42d5
KH
84052009-05-15 Kenichi Handa <handa@m17n.org>
8406
8407 * font.c (Ffont_spec): Check arguments.
8408
337fbd17
CY
84092009-05-14 Chong Yidong <cyd@stupidchicken.com>
8410
8411 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8412 weight when testing attributes (Bug#3282).
8413
47a6002f
JD
84142009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8415
8416 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8417 what we expect to get in the next ConfigureNotify event.
8418
9cb363db
YM
8419 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8420 before Xft one (Bug#1696).
8421
b9126609
CY
84222009-05-07 David Reitter <david.reitter@gmail.com>
8423
8424 * nsfns.m (Fx_display_planes): Compute bitplanes using
8425 NSBitsPerPixelFromDepth (Bug#3207).
8426
27a69fd9
CY
84272009-05-10 Chong Yidong <cyd@stupidchicken.com>
8428
8429 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8430
00f37552
TTN
84312009-05-10 Ulrich Mueller <ulm@gentoo.org>
8432
8433 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8434
2d82a920
DR
84352009-05-07 David Reitter <david.reitter@gmail.com>
8436
ec7709ba
JB
8437 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8438 Respect mouse face background.
2d82a920 8439
46b0d52d
DR
84402009-05-07 David Reitter <david.reitter@gmail.com>
8441
ec7709ba
JB
8442 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8443 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
8444 in ns_update_begin and ns_update_end.
8445
ce1b23bb
SM
84462009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8447
5996e1b7
SM
8448 * nsfns.m (ns_get_screen): Rewrite.
8449 Don't presume selected-frame is of type `ns'.
8450
ba98e3a0
SM
8451 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8452 all drivers.
8453
ce1b23bb
SM
8454 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8455
bcda200f
YM
84562009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8457
8458 * keyboard.h (add_user_signal): Fix typo in extern.
8459
8460 * lisp.h (add_user_signal): Remove extern.
8461
8462 * unexelf.c (unexec): Consider a section to precede the .bss section
8463 if its addresses overlap that of .bss.
8464 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8465 instead of dumping process.
8466
864660a2
SM
84672009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8468
8469 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8470
50da4e56
SM
84712009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8472
8473 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8474
51520a1a
DN
84752009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8476
8477 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8478 any statements.
8479
409ea3a1
AS
84802009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8481
59c4c60f
AS
8482 * process.c (read_process_output): Make sure the current buffer is
8483 always restored.
8484
409ea3a1
AS
8485 * coding.c (record_conversion_result): Don't modify
8486 Vlast_code_conversion_error for successful result.
8487 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8488
56f00ed2
KH
84892009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8490
8491 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 8492 (load_charset_map): Remove unnecessary code.
56f00ed2 8493
4491c9d2
DR
84942009-04-30 David Reitter <david.reitter@gmail.com>
8495
35f5b128 8496 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
8497 through f24.
8498
6970f632
CY
84992009-04-30 Chong Yidong <cyd@stupidchicken.com>
8500
8501 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8502
8503 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8504 face_at_buffer_position.
8505 (face_before_or_after_it_pos, get_next_display_element)
8506 (note_mouse_highlight): Update face_at_buffer_position call.
8507
8508 * term.c (term_mouse_highlight):
8509 * msdos.c (IT_note_mouse_highlight):
8510 * fontset.c (Finternal_char_font):
35f5b128 8511 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
8512
8513 * dispextern.h (face_at_buffer_position): Update prototype.
8514
0c616f63
KH
85152009-04-30 Kenichi Handa <handa@m17n.org>
8516
35f5b128 8517 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 8518
ad3aaf33
AS
85192009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8520
8521 * callproc.c (Fcall_process): Fix GC protection. Make sure
8522 current buffer is always restored.
8523
c3c963a0
YM
85242009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8525
8526 * atimer.c (init_atimer): Also clear stopped_atimers.
8527
8528 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8529
7e3386cb
YM
8530 * process.c (create_process): Clean up merger residues of
8531 2008-07-17 change.
8532
91f68422
CY
85332009-04-29 Ulrich Mueller <ulm@gentoo.org>
8534
8535 * lread.c (Vread_circle): New variable.
8536 (read1): Disable recursive read if Vread_circle is nil.
8537
24b34550
KH
85382009-04-29 Kenichi Handa <handa@m17n.org>
8539
8540 * fontset.h (set_default_ascii_font): Delete extern.
8541
8542 * fontset.c (set_default_ascii_font): Delete this unused function.
8543
8544 * frame.c (x_set_font): When ARG is a font-object, check if the
8545 font-object matches with the ASCII font-spec of the frame's
9c358bda 8546 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 8547
77bf07e1
AS
85482009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8549
8550 * fns.c (Flocale_info): Protect vector from GC during decoding.
8551
8552 * process.c (Fstart_process): Protect argv strings from GC during
8553 encoding.
8554
2c55aacf
AS
85552009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8556
8557 * sysdep.c: Include <ctype.h>.
8558
b892d3c9
DR
85592009-04-27 David Reitter <david.reitter@gmail.com>
8560
35f5b128 8561 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
8562 Remove commented-out code.
8563
9d0644c4
JB
85642009-04-26 Johan Bockgård <bojohan@gnu.org>
8565
8566 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8567
b7053016
JR
85682009-04-25 Jason Rumney <jasonr@gnu.org>
8569
8570 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8571
4e8231f3
YM
85722009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8573
8574 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8575 Swap bytes in short integer if fringe bitmap width > 8.
8576
493dcf2c
KH
85772009-04-23 Kenichi Handa <handa@m17n.org>
8578
8579 * xfaces.c (Fx_list_fonts): If a font size is specified in
8580 PATTERN, set it in returned scalable fonts.
8581
401e9e57
CY
85822009-04-22 Chong Yidong <cyd@stupidchicken.com>
8583
708e05dc
CY
8584 * keyboard.c (Fset_input_meta_mode): Doc fix.
8585
8586 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8587
1ac9108a 8588 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
8589
8590 * coding.c (Fterminal_coding_system): Doc fix.
8591
8592 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8593 (Fx_display_pixel_height, Fx_display_planes)
8594 (Fx_display_color_cells, Fx_server_max_request_size)
8595 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8596 (Fx_display_mm_height, Fx_display_mm_width)
8597 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
8598 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8599 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
8600 (check_x_display_info): Handle terminal objects instead of
8601 terminal ids.
8602
401e9e57
CY
8603 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8604 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
8605 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8606 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 8607
df80c7f0
KH
86082009-04-21 Kenichi Handa <handa@m17n.org>
8609
5a8f12af 8610 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 8611 (font_score): Check AVGWIDTH too.
908567ef 8612
df80c7f0
KH
8613 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8614 worst case.
1ac9108a
SM
8615 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8616 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 8617
705af33f
JR
86182009-04-19 Jason Rumney <jasonr@gnu.org>
8619
8620 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 8621 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
8622
8623 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8624 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8625 get_phys_cursor_geometry.
8626
b71ac3dd 8627 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
8628 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8629 using get_phys_cursor_geometry.
8630
8631 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8632 correctly calculated.
8633
dc2933eb
JD
86342009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8635
1ac9108a
SM
8636 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8637 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
8638 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8639 is deprecated.
8640
973e7849
AS
86412009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8642
8643 * font.c (font_put_frame_data): Use xfree instead of free.
8644
314d66f4
JB
86452009-04-17 Juanma Barranquero <lekktu@gmail.com>
8646
8647 * w32font.c (Qja, Qko): Remove declarations.
8648 (syms_of_w32font): Don't DEFSYM them.
8649
cf702558
CY
86502009-04-17 Chong Yidong <cyd@stupidchicken.com>
8651
8652 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8653
8654 * font.h (Qja, Qko): Extern them.
8655
8656 * ftfont.c (Qja, Qko): Remove declarations.
8657
8658 * xfont.c (Qja, Qko): Remove declarations.
8659
b50504f5
KH
86602009-04-17 Kenichi Handa <handa@m17n.org>
8661
bde25748
KH
8662 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8663 string from a vector to handle Latin-1 characters correctly.
8664
b50504f5
KH
8665 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8666 entity even if the cache hits.
8667
f4646fff
AS
86682009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8669
8670 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 8671 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 8672
e7deaab0
AS
8673 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8674 * lisp.h: Adjust prototypes.
8675
0a0e7d49
CY
86762009-04-16 Chong Yidong <cyd@stupidchicken.com>
8677
8678 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8679 change (Bug#3003).
8680
3c908a57
KH
86812009-04-16 Kenichi Handa <handa@m17n.org>
8682
1ac9108a 8683 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
8684
8685 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8686 adstyle.
8687
8688 * ftfont.c (Qja, Qko): Don't make them static.
8689 (enum ftfont_cache_for): New enum.
8690 (fc_charset_table): Undo the previous change.
8691 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
8692 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8693 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
8694 non-scarable font, try to get AVERAGE_WIDTH.
8695 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8696 Change ft_face_cache from a list of a hash-table. Don't check
8697 `ja' and `ko' adstyle here.
8698 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8699 FTFONT_CACHE_FOR_CHARET.
8700 (ftfont_get_charset): Undo the previous change.
1ac9108a 8701 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
8702 (ftfont_close): Likewise.
8703 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8704
8705 * font.c (font_sort_entites): Change the meaning of the arg
8706 BEST-ONLY. Don't optimize for VEC of lenght 1.
8707 (font_select_entity): Just return the value of font_sort_entites.
8708
8709 * xfaces.c (merge_face_vectors): Reflect font properties in
8710 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8711 font_clear_prop if a face attribute doesn't change.
8712
3c908a57
KH
8713 * charset.h (charset_ksc5601): Extern it.
8714
8715 * charset.c (charset_ksc5601): New variable.
8716 (Fdefine_charset_internal): Set charset_ksc5601.
8717 (init_charset_once): Initialize charset_ksc5601 to -1.
8718
d65859c3
DN
87192009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8720
8721 * fileio.c (history_delete_duplicates): Remove unused declaration.
8722
8723 * callint.c (history_delete_duplicates): New declaration.
8724 (Fcall_interactively): Remove command history duplicates when
8725 history_delete_duplicates is true.
8726
3ba010e5
EZ
87272009-04-14 Eli Zaretskii <eliz@gnu.org>
8728
8729 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8730
06f19b91
KH
87312009-04-14 Kenichi Handa <handa@m17n.org>
8732
8733 * font.c (Ffont_info): Fix docstring. Fix the second element of
8734 the returned value (bug#2949).
8735
2cce8bfc
CY
87362009-04-14 Chong Yidong <cyd@stupidchicken.com>
8737
8738 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8739
d156542d
KH
87402009-04-14 Kenichi Handa <handa@m17n.org>
8741
8742 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8743 encoding charset is ascii_compatible.
8744
8745 * charset.c (Fdefine_charset_internal): Make charset
8746 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8747 code_offset is 0, and covers all ASCII characters.
8748
86fa089e
SM
87492009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8750
8751 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8752 (ns_string_to_pasteboard_internal):
8753 * nsmenu.m (process_dialog):
8754 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8755 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8756 * lisp.h (Fx_load_color_file): Declare.
8757
a8a3728b
KH
87582009-04-13 Kenichi Handa <handa@m17n.org>
8759
1ac9108a 8760 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
8761 (font_select_entity): Suppress the code to optimize for the same
8762 kind of fonts.
8763 (font_load_for_lface): Get a font that supports at least ASCII
8764 characters.
8765
8766 * ftfont.c (Qja, Qko): New variables.
8767 (fc_charset_table): Delete uniquifier data for iso8859-1.
8768 (ftfont_get_latin1_charset): New function.
8769 (get_adstyle_property): New function.
8770 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8771 bitmap fonts.
8772 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8773 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8774 `ko' or `ja'.
8775 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8776 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8777 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8778 property.
8779 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8780 (syms_of_ftfont): DEFSYM Qja and Qko.
8781
483670b5
KH
87822009-04-09 Kenichi Handa <handa@m17n.org>
8783
12b55765
KH
8784 * charset.c (map_charset_chars): For a charset of `superset'
8785 method, fix calculation of code range.
8786
483670b5
KH
8787 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8788 from the list of extra properties.
8789 (font_clear_prop): Be sure to delete `:name' font property.
8790
57d3b93b
KH
87912009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8792
b4b2c2ca
YM
8793 * dispnew.c (redraw_overlapping_rows): Fix detection of
8794 overlapping for topmost and bottommost rows.
8795
1ac9108a 8796 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8797
472c3609
JR
87982009-04-06 Jason Rumney <jasonr@gnu.org>
8799
8800 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8801
ab193662
KH
88022009-04-06 Kenichi Handa <handa@m17n.org>
8803
8804 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8805
8806 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8807
0c26f026
KH
88082009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8809
8810 * ftfont.c (ftfont_open): Fix checking of the return value of
8811 FT_Load_Char. Fix setting font->underline_thickness.
8812
e173bbce
CY
88132009-04-04 Chong Yidong <cyd@stupidchicken.com>
8814
8815 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8816 (Fterminal_parameters, Fterminal_parameter)
8817 (Fset_terminal_parameter): In doc string, refer to terminal
8818 objects rather than terminal ids.
8819
693a2698
EZ
88202009-04-04 Eli Zaretskii <eliz@gnu.org>
8821
8822 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8823 ret_lim_data. (Bug#2867)
8824
d5221487
CY
88252009-04-03 Chong Yidong <cyd@stupidchicken.com>
8826
8827 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8828 so they don't get wider than the window, matching 2006-01-23
8829 change to the partner function in xdisp.c (Bug#2800).
8830
223509a3
KH
88312009-04-03 Kenichi Handa <handa@m17n.org>
8832
8833 * print.c (print_object): Make each lowest sub_char_table start a
8834 new line (Bug#2866).
8835
74fcd0b1
KH
88362009-04-02 Kenichi Handa <handa@m17n.org>
8837
8838 * fontset.c (fontset_font): Record no-font when a fontset
8839 explicitly tells not to try another font-specs.
8840
c542407d
SM
88412009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8842
8843 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8844
e3869731
KH
88452009-03-30 Kenichi Handa <handa@m17n.org>
8846
d8d2f142
KH
8847 * fontset.c (fontset_from_font): Specify only registry in a
8848 font-spec for all characters supported by that registry.
8849
e3869731
KH
8850 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8851 even if HAVE_M17N_FLT is not defined.
8852
5da5f805
CY
88532009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8854
8855 * ftfont.c: Conditionalize prototyping and use of
8856 ftfont_variation_glyphs.
8857
ab226c50
SM
88582009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8859
9628fed7
SM
8860 * frame.c (delete_frame): Work around compiler bug.
8861
8862 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8863 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8864 Some more EMACS_INT.
8865 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8866
8867 * xdisp.c (dump_glyph): Fix typo.
8868
ae19ba7c
SM
8869 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8870 (adjust_markers_gap_motion, adjust_markers_for_delete)
8871 (adjust_markers_for_insert, adjust_point)
8872 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8873 (make_gap, copy_text, count_size_as_multibyte, insert)
8874 (insert_and_inherit, insert_before_markers)
8875 (insert_before_markers_and_inherit, insert_1)
8876 (count_combining_before, count_combining_after, insert_1_both)
8877 (insert_from_string, insert_from_string_before_markers)
8878 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8879 (insert_from_buffer_1, adjust_after_replace)
8880 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8881 (replace_range_2, del_range, del_range_1, del_range_byte)
8882 (del_range_both, del_range_2, modify_region)
8883 (prepare_to_modify_buffer, signal_before_change)
8884 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8885 for buffer positions and sizes.
8886 * lisp.h: Adjust prototypes accordingly.
8887
8888 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8889 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8890 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8891
ab226c50
SM
8892 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8893
46dfb8fb
JD
88942009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8895
8896 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8897 lines and columns so we keep the same pixel height and width.
8898
8899 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8900 the property _NET_WM_STATE has changed.
46dfb8fb
JD
8901 (x_handle_net_wm_state): New function to update frame parameter
8902 fullscreen.
8903 (x_term_init): Initialize atoms for _NET_WM_STATE.
8904
8905 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8906
d347e494
SM
89072009-03-27 Kevin Ryde <user42@zip.com.au>
8908
8909 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8910 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8911 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8912 (Fgpm_mouse_stop): Pass that new parameter.
8913 * termhooks.h (close_gpm): Adjust prototype.
8914
84db11d6
SM
89152009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8916
c95a5008
SM
8917 * lisp.h (Fx_focus_frame): Declare.
8918
84db11d6
SM
8919 * callint.c (Fcall_interactively): For '^' just delegate the work to
8920 handle-shift-selection.
8921 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8922
0a1958d6
CY
89232009-03-24 Chong Yidong <cyd@stupidchicken.com>
8924
0bfdff23
CY
8925 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8926
0a1958d6
CY
8927 * data.c (Qinteractive_form): New variable.
8928 (Finteractive_form): Use it.
8929
8930 * eval.c (Fcommandp): Use Qinteractive_form.
8931
58aec0d6
JR
89322009-03-24 Jason Rumney <jasonr@gnu.org>
8933
8934 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8935 Calculate total size precisely. Decode environment variables
8936 before substituting. (Bug#38)
8937
553dd618
KH
89382009-03-24 Kenichi Handa <handa@m17n.org>
8939
8940 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 8941 encoding (Bug#2722).
553dd618 8942
c39ea606
JD
89432009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8944
8945 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8946 that gdpy is set.
8947
bc9b2b5e
AM
89482009-03-22 Alan Mackenzie <acm@muc.de>
8949
8950 * callint.c (Finteractive): Clarify the doc string - even
8951 promptless elements need \n separators.
8952
9f995a76
JR
89532009-03-22 Jason Rumney <jasonr@gnu.org>
8954
8955 * w32term.c (syms_of_w32term): Doc fix for
8956 x-use-underline-position-properties.
8957
22749e9a
EZ
89582009-03-21 Eli Zaretskii <eliz@gnu.org>
8959
8960 * w32.c (getpwuid): Change argument type to unsigned.
8961 (struct w32_id): Change type of `rid' member to unsigned.
8962 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8963 argument ID to unsigned. All callers changed.
8964 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8965
e00553bf
EZ
89662009-03-20 Eli Zaretskii <eliz@gnu.org>
8967
8968 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8969 negative, produce a float value.
8970
8971 * dired.c (make_uid, make_gid): New functions.
8972 (Ffile_attributes): Use them to avoid negative UID and GID.
8973
f761d6b6
JB
89742009-03-20 Juanma Barranquero <lekktu@gmail.com>
8975
8976 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8977 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8978 Fix typos in docstrings.
8979
d507f8d7
KH
89802009-03-19 Kenichi Handa <handa@m17n.org>
8981
8982 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8983 changed, use font_load_for_lface to get a new font object.
8984 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8985
8986 * frame.c (x_set_font): Handle the case that ARG is a cons.
8987
c68845e0
GM
89882009-03-19 Glenn Morris <rgm@gnu.org>
8989
8990 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8991
bfa49dd1
CY
89922009-03-19 Chong Yidong <cyd@stupidchicken.com>
8993
8994 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8995
8458d4c1
KH
89962009-03-19 Kenichi Handa <handa@m17n.org>
8997
8998 * charset.c (load_charset_map_from_file): When a mapfile can't be
8999 loaded, signal an error.
9000
78e7d1fe
EZ
90012009-03-18 Eli Zaretskii <eliz@gnu.org>
9002
9003 * dired.c (Ffile_attributes): Make sure UID and GID are always
9004 positive, even if the value is too large for a positive EMACS_INT.
9005 Doc fix.
9006
9007 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9008
5da9fdfa
YM
90092009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9010
9011 * xmenu.c (xdialog_show): Move Fredisplay call ...
9012 (Fx_popup_dialog): ... here.
9013
7519c40d
SM
90142009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9015
9016 * dired.c (file_name_completion): Disable the first optimization just
9017 installed, since it is not implemented correctly.
9018
2cd298e2
SM
90192009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9020
9021 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 9022 only if the entry can affect bestmatch.
2cd298e2
SM
9023 Stop the search early, as Ftry_completion already does.
9024
48d37adf
CY
90252009-03-17 Chong Yidong <cyd@stupidchicken.com>
9026
e10c9c93 9027 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 9028
9286b16a
CY
90292009-03-15 Chong Yidong <cyd@stupidchicken.com>
9030
9031 * keyboard.c (parse_menu_item): Don't display remappings as menu
9032 equivalent bindings (Bug#788).
9033
f7b146dc
JR
90342009-03-15 Jason Rumney <jasonr@gnu.org>
9035
9036 * w32term.h (WM_EMACS_PAINT): New message.
9037 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9038 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9039 before passing to lisp thread. (Bug#950)
9040
f761d6b6 90412009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 9042
d93f9575
CY
9043 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9044 variable as it was never reset.
9045 (ns_term_init): Remove initialization of Lisp-settable defaults
9046 and ns_expand_space.
9047 (-setPanelFromDefaultValues): Remove ns_expand_space.
9048 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9049 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
9050 i.e. no additional spacing, similar to Carbon port.
9051
d93f9575
CY
9052 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9053 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 9054
305018ec
JD
90552009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9056
9057 * sound.c (alsa_configure): Remove call to deprecated
9058 snd_pcm_sw_params_set_xfer_align.
9059
f761d6b6 90602009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
9061
9062 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9063 after clicking in a detached tool bar.
9064 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9065
46e722a9
SM
90662009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9067
348db3dd
SM
9068 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9069 int/Lisp_Object mixup).
46e722a9 9070
a3d16f39
KH
90712009-03-13 Kenichi Handa <handa@m17n.org>
9072
9073 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 9074 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
9075 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9076 (set_fontset_font): Change ARG to a vector. Handle range_list in
9077 ARG correctly.
9078 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 9079 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
9080 the above change.
9081 (fontset_from_font): Fix previous change.
fe24f56a 9082 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
9083 entry. If FONTSET is the default fontset, don't set the extra
9084 slot of the returning char-table.
9085
b066e6b6
JB
90862009-03-12 Juanma Barranquero <lekktu@gmail.com>
9087
9088 * nsfns.m (Fx_close_connection): Doc fix.
9089 (Fns_do_applescript): Reflow docstring.
9090 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9091 (Fx_display_pixel_width, Fx_display_pixel_height)
9092 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9093 Fix typos in docstrings.
9094 (Fns_set_alpha): Fix typos in error messages.
9095
d472514e 90962009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 9097
d472514e 9098 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
9099 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9100 were used for such events.
9101
d472514e
JB
9102 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9103 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 9104
d472514e 9105 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
9106 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9107
fb930676
KH
91082009-03-11 Kenichi Handa <handa@m17n.org>
9109
ff85581a
KH
9110 * font.h (font_open_by_spec): Extern it.
9111
c50b7e98
KH
9112 * font.c (font_open_by_spec): New function.
9113 (font_open_by_name): Use font_open_by_spec.
9114
fb930676
KH
9115 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9116 fontset of the frame.
9117
9118 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9119 modify the default font of frames that use this fontset.
9120 (num_auto_fontsets): New variable.
9121 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9122 name. Be sure to set FONTSET_ASCII to the correct font name.
9123 (update_auto_fontset_alist): New function.
9124
df4e8455
JB
91252009-03-11 Juanma Barranquero <lekktu@gmail.com>
9126
9127 * makefile.w32-in: Update dependencies.
9128
0a375797
AR
91292009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9130
9131 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9132
61313fa3
SM
91332009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9134
9135 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9136
b55103fb
CY
91372009-03-10 Chong Yidong <cyd@stupidchicken.com>
9138
9139 * lread.c (Feval_buffer): Doc fix.
9140
dde2559c
KH
91412009-03-09 Kenichi Handa <handa@m17n.org>
9142
9143 * charset.c (Qfile_name_handler_alist): Extern it.
9144 (load_charset_map_from_file): Temporarily bind
9145 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9146
df4e8455 91472009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 9148
47f588bb
GM
9149 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9150 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 9151
4ddf94bd
AR
91522009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9153
4c9bdfc2
AR
9154 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9155 (x_set_window_size): Change back to calculated method of setting
9156 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
9157 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9158 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9159
fe41ae9e
AR
9160 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9161
4c9bdfc2
AR
9162 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9163 accelerator in parens under GNUstep.
9164
825d0875
KH
91652009-03-06 Kenichi Handa <handa@m17n.org>
9166
9167 These changes are to detect incorrect composition sequence without
f3b3be74 9168 looking ahead the source. (Bug#2370)
825d0875
KH
9169
9170 * coding.h: Include "composite.h".
9171 (enum compisition_state): New enum.
9172 (struct compisition_status): New struct.
9173 (struct iso_2022_spec): New member cmp_status.
9174 (struct emacs_mule_spec): New struct.
9175 (struct coding_system): New members ctext_extended_segment_len and
9176 embedded_utf_8. Change the union member
9177 spec.emacs_mule_full_support to spec.emacs_mule.
9178
9179 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9180 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 9181 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
9182 (ADD_COMPOSITION_DATA): New arg nbytes.
9183 (emacs_mule_char): New arg cmp_status.
9184 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9185 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9186 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9187 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9188 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9189 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9190 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9191 (EMACS_MULE_COMPOSITION_END): New macro.
9192 (emacs_mule_finish_composition): New function.
9193 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9194 (decode_coding_emacs_mule): Avoid long looking ahead while
9195 handling composition.
9196 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9197 (ENCODE_COMPOSITION_RULE): New macro.
9198 (finish_composition): New function.
9199 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9200 (DECODE_COMPOSITION_START): New implementation.
9201 (DECODE_COMPOSITION_END): Likewise.
9202 (STORE_COMPOSITION_RULE): New macro.
9203 (decode_coding_iso_2022): Avoid long looking ahead while handling
9204 composition, CTEXT extended segment, and embedded UTF-8.
9205 (setup_coding_system): For a coding of type iso-2022, reset
9206 CODING_ISO_EXTSEGMENT_LEN (coding) and
9207 CODING_ISO_EMBEDDED_UTF_8 (coding).
9208 (get_translation): Delete arguments last_block, from_nchars,
9209 to_nchars. Callers changed.
9210 (produce_chars): Don't modify charbuf. Adjusted for the change of
9211 get_translation.
98a326f7 9212 (produce_composition): Adjust for the new annotation sequence.
825d0875 9213 (handle_composition_annotation): Likewise.
98a326f7 9214 (consume_chars): Adjust for the change of get_translation.
825d0875 9215
ccbc4452
AR
92162009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9217
4ddf94bd 9218 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 9219
988a7ddb
KH
92202009-03-05 Kenichi Handa <handa@m17n.org>
9221
9222 * font.c (font_select_entity): New function.
9223 (font_find_for_lface): Use font_select_entity to select a font.
9224
9225 * fontset.c (fontset_find_font): If a font found without
a8a3728b 9226 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
9227 font with C restriction.
9228
98a326f7 92292009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 9230
be1bce46 9231 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 9232
10ea2b82
JR
92332009-03-04 Jason Rumney <jasonr@gnu.org>
9234
2c93b248 9235 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 9236 characters that have already been read. (Bug#2569)
2c93b248 9237
10ea2b82
JR
9238 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9239 Log an error message if check_image_size failed.
9240 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 9241 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 9242
71a0c011
EZ
92432009-03-02 Eli Zaretskii <eliz@gnu.org>
9244
9245 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9246 when decoding process output.
9247
2f63bba8
RS
92482009-03-01 Richard M Stallman <rms@gnu.org>
9249
9250 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9251
9252 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9253
0a9564cb
EZ
92542009-02-28 Eli Zaretskii <eliz@gnu.org>
9255
9256 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9257 (decode_coding_emacs_mule, decode_coding_iso_2022)
9258 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9259 (decode_coding_raw_text, decode_coding_charset)
9260 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9261 Honor inhibit-eol-conversion. (Bug #2186)
9262
449148b3
JR
92632009-02-28 Jason Rumney <jasonr@gnu.org>
9264
9265 * coding.c (detect_coding_charset): If not checking latin extra,
9266 fail on characters between 0x80 and 0xA0. (Bug#2354)
9267
a4aee864
EZ
92682009-02-28 Eli Zaretskii <eliz@gnu.org>
9269
9270 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 9271 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 9272
d88bee5a
GM
92732009-02-27 Glenn Morris <rgm@gnu.org>
9274
9275 * callint.c (Finteractive): Doc fix.
9276
a808f22d
KH
92772009-02-27 Kenichi Handa <handa@m17n.org>
9278
9279 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9280
caf8d60c
CY
92812009-02-27 Chong Yidong <cyd@stupidchicken.com>
9282
9283 * font.c (font_style_to_value): Set value for unknown symbols to
9284 100 instead of 255.
b61137ea
CY
9285 (weight_table, slant_table, width_table): Treat "unspecified" as
9286 the default value.
caf8d60c 9287
1a0de25c
JB
92882009-02-26 Juanma Barranquero <lekktu@gmail.com>
9289
9290 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9291
8fc45744
JB
92922009-02-25 Juanma Barranquero <lekktu@gmail.com>
9293
107bd7d1
JB
9294 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9295 error as soon as a recursive load is detected.
8fc45744 9296
f097e223
AR
92972009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9298
9299 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9300 before caching.
9301
8810a12f
KH
93022009-02-24 Kenichi Handa <handa@m17n.org>
9303
9304 * fontset.c (fontset_find_font): Fix the condition for checking
9305 unavailable font.
9306
2c7d1565
GM
93072009-02-24 Glenn Morris <rgm@gnu.org>
9308
9309 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9310 whitespace that confuses documentation.
9311
a20878b6
MB
93122009-02-23 Miles Bader <miles@gnu.org>
9313
9314 * process.c (Flist_system_processes, Fprocess_attributes)
9315 (syms_of_process): Rename `system-process-attributes' to
9316 `process-attributes'.
9317
b3b58c01
AS
93182009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9319
1b3b981b
AS
9320 * coding.h (struct coding_system): Make safe_charsets a pointer to
9321 unsigned char.
9322 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9323 being 255.
9324 (SAFE_CHARSET_P): Likewise.
9325 (setup_iso_safe_charsets): Properly setup safe_charsets.
9326 (Fdefine_coding_system_internal): Likewise.
9327 (setup_coding_system): Likewise. Remove unneeded casts.
9328 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9329 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9330 unneeded casts.
9331
b3b58c01
AS
9332 * insdel.c (del_range_2): Don't modify gap contents when called
9333 from decode_coding_object. (Bug#1809)
9334
0b6f228c
CY
93352009-02-21 Chong Yidong <cyd@stupidchicken.com>
9336
9337 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9338 Qfont_object.
9339 (Ftype_of): Recognize font objects.
9340
9341 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9342
9343 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9344 moved to data.c.
9345
52f8870b
AR
93462009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9347
9348 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9349 async_iconified. Based on a patch by Christian Lynbech
9350 <christian.lynbech@tieto.com>.
9351 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9352
7087d5e9
GM
93532009-02-20 Glenn Morris <rgm@gnu.org>
9354
9355 * syntax.c (Fskip_chars_forward): Fix doc typo.
9356
41d2ceef
CY
93572009-02-20 Chong Yidong <cyd@stupidchicken.com>
9358
9359 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9360
1a3b7ca6
CY
93612009-02-19 Chong Yidong <cyd@stupidchicken.com>
9362
9363 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9364
73cce38d
KH
93652009-02-19 Kenichi Handa <handa@m17n.org>
9366
9367 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 9368 Don't overflow coding->carryover. (Bug#2370)
73cce38d 9369
a51092ee
DN
93702009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9371
9372 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9373
c423ecca
KH
93742009-02-18 Kenichi Handa <handa@m17n.org>
9375
9376 * font.c (font_check_otf_features): Fix handling of `nil' element.
9377 (Ffont_spec): Describe :lang and :otf in the docstring.
9378
4c1958f4
AS
93792009-02-16 Andreas Schwab <schwab@suse.de>
9380
9381 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9382 string.
9383
5704f39a
KH
93842009-02-16 Kenichi Handa <handa@m17n.org>
9385
9386 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 9387 (Bug#1723)
5704f39a 9388
8f0085aa
CY
93892009-02-14 Chong Yidong <cyd@stupidchicken.com>
9390
a057d86a 9391 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
9392
9393 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9394 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9395
aff01dd9
EZ
93962009-02-14 Eli Zaretskii <eliz@gnu.org>
9397
9398 * msdos.c (MAX_SCREEN_BUF): New macro.
9399 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9400 Encode the entire run of glyphs sharing the same face, instead of
9401 doing that one glyph at a time (fixes a bug with displaying
9402 double-size characters).
9403
ba301db3
AR
94042009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9405
9406 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9407
9408 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9409 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 9410 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
9411
9412 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 9413 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 9414
51d861de
SM
94152009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9416
ac146f82 9417 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
9418 invisible areas.
9419
7fed8996
JR
94202009-02-12 Jason Rumney <jasonr@gnu.org>
9421
631ea4fb
JR
9422 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9423 (add_font_entity_to_list): Call check_face_name even when family
9424 is unspecified.
9425
cb4a3e42
JR
9426 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9427 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 9428 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 9429
7fed8996 9430 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 9431 raster fonts. (Bug#2219)
7fed8996 9432
895416e3
KH
94332009-02-12 Kenichi Handa <handa@m17n.org>
9434
9435 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9436 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9437 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 9438 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9439 (find_automatic_composition): While looking forward and backward,
9440 check static composition. Fix where to stop looking forward.
9441 (composition_adjust_point): Fix checking of static composition.
9442 (Fcomposition_get_gstring): Pay attention to
1dacf998 9443 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9444
9445 * lisp.h (fast_looking_at): Extern it.
9446
9447 * search.c (fast_looking_at): New function.
9448
51d861de 9449 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
9450 <struct glyph>.u.cmp.to.
9451 (append_composite_glyph): Likewise.
9452
51d861de 9453 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
9454 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9455 composition.
51d861de 9456 (append_composite_glyph): Adjust for the change of
895416e3
KH
9457 <strcut glyph>.u.cmp.to.
9458
8510724d
JB
94592009-02-11 Juanma Barranquero <lekktu@gmail.com>
9460
9461 * casetab.c (init_casetab_once):
9462 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9463 * font.c (font_update_lface):
9464 * fontset.c (Fnew_fontset):
9465 * ftfont.c (ftfont_drive_otf):
9466 * xfont.c (xfont_open):
9467 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9468
294fa707
SM
94692009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9470
9471 * fileio.c (Fwrite_region): !NILP -> CONSP.
9472
b5bfebec
AS
94732009-02-10 Andreas Schwab <schwab@suse.de>
9474
9475 * process.c (send_process): Properly relocate pointer into data
adab88bd 9476 when using encoded data. (Bug#2272)
b5bfebec 9477
cb84a2be
KH
94782009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9479
9480 * coding.c (detect_coding_charset): Fix previous change.
9481
89e09428
JR
94822009-02-08 Jason Rumney <jasonr@gnu.org>
9483
9484 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 9485 disappeared while hourglass was displayed. (Bug #2193)
89e09428 9486
4470a277
AS
94872009-02-07 Andreas Schwab <schwab@suse.de>
9488
9489 * unexelf.c (unexec): Fix error message.
9490
3175b12a
AR
94912009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9492
9493 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 9494 when modal window is active. (Bug #2152)
3175b12a
AR
9495 (applicationShouldTerminate:): Remove now-unneeded while loop
9496 around NSRunAlertPanel.
9497
9498 * nsmenu.m (popupSession): New file-global variable.
9499 (pop_down_menu): End the popupSession before closing dialog.
9500 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9501 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9502 don't query NSApp for events (just sleep instead).
9503
8434d0b8
EZ
95042009-02-07 Eli Zaretskii <eliz@gnu.org>
9505
51d861de
SM
9506 * coding.c (syms_of_coding) <translation-table-for-input>:
9507 Modify doc string to discourage use for character code unification.
8434d0b8 9508
aa82edfd
CY
95092009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9510
9511 * atimer.c (run_timers): Update pending_atimers.
9512
2d283c7c
CY
95132009-02-06 Chong Yidong <cyd@stupidchicken.com>
9514
eb306cab
CY
9515 * image.c (svg_load_image): Fix last change.
9516
2d283c7c
CY
9517 * xfns.c (Fx_create_frame): Signal an error if no font is
9518 found (Bug#2147).
9519
4d8e170e
JB
95202009-02-05 Juanma Barranquero <lekktu@gmail.com>
9521
9522 * character.c (syms_of_character) <script-representative-chars>:
9523 Fix typo in docstring.
9524
c96169a0
AR
95252009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9526
9527 * nsmenu.m (pop_down_menu): New function.
9528 (ns_popup_dialog): Call it on unwind.
9529 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9530 call timer_check() (Bug#2154).
9531 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9532 handling_signal is set.
9533 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9534
31fd7c5c 9535 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
9536
9537 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9538
9539 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9540
51d861de
SM
9541 * keyboard.c (poll_for_input_1, handle_async_input):
9542 Set handling_signal under HAVE_NS.
c96169a0 9543
aacd8ba1
GM
95442009-02-04 Glenn Morris <rgm@gnu.org>
9545
9546 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9547
4cb75c4b
KH
95482009-02-04 Kenichi Handa <handa@m17n.org>
9549
9550 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9551
9552 * charset.c (Fchar_charset): New optional arg restriction.
9553
9554 * coding.h (coding_system_charset_list): Extern it.
9555
9556 * coding.c (coding_system_charset_list): New function.
9557
9558 * composite.c: Include coding.h and termhooks.h.
9559 (composition_gstring_p): Fix for the terminal case.
9560 (composition_gstring_width): Likewise.
9561 (fill_gstring_body): Likewise.
9562 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9563 the frame.
9564 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9565 is within a composition.
867d4bb3 9566 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
9567
9568 * term.c (encode_terminal_code): Fix handling of composition.
9569 (produce_composite_glyph): For static composition, get pixel_width
9570 from struct composition.
9571
826ba17e
AS
95722009-02-02 Andreas Schwab <schwab@suse.de>
9573
9574 * unexelf.c (unexec): Handle unaligned bss offset.
9575
8ad093db
AR
95762009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9577
9578 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9579 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 9580
8ad093db
AR
9581 * keyboard.c (handle_interrupt): Don't call
9582 quit_throw_to_read_char() under NS.
d0a76a6e 9583
8ad093db
AR
9584 * blockinput.h: Remove NS-specific code.
9585
4d18a7a2
DN
95862009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9587
db878925
DN
9588 * dispnew.c (window_change_signal): Don't try to get the size of a
9589 suspended tty frame.
9590 * term.c (Fresume_tty): Resize if the size has changed while the
9591 tty was suspended.
9592
4d18a7a2
DN
9593 * alloc.c (mark_stack): Properly conditionalize previous change.
9594
8984df7c
JB
95952009-01-30 Juanma Barranquero <lekktu@gmail.com>
9596
9597 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9598 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9599 Remove; this code is not used on Windows.
9600
75f4f1ac
EZ
96012009-01-30 Eli Zaretskii <eliz@gnu.org>
9602
9603 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9604 EOLs that also has stray ^M characters.
9605
07a1e794
JB
96062009-01-30 Juanma Barranquero <lekktu@gmail.com>
9607
9608 * atimer.c (run_timers, alarm_signal_handler):
9609 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9610 * w32inevt.c (w32_console_read_socket):
9611 * w32term.c (w32_read_socket):
9612 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9613
a8b11cc9
CY
96142009-01-30 Chong Yidong <cyd@stupidchicken.com>
9615
9616 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9617 Initialize it as a relative filename pattern.
9618 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9619 (Fcall_process_region): Simplify temp file creation using
9620 temporary-file-directory.
9621
c279587b
EZ
96222009-01-29 Eli Zaretskii <eliz@gnu.org>
9623
9624 * msdos.c: Rename pending_signals to msdos_pending_signals.
9625 (sig_suspender, sigprocmask): Adjust.
9626
a8fe3242
CY
96272009-01-29 Chong Yidong <cyd@stupidchicken.com>
9628
9629 * keyboard.c (pending_signals): New var.
9630 (poll_for_input, input_available_signal, init_keyboard): Set it.
9631 (process_pending_signals): New function.
9632
9633 * lisp.h (QUIT): Check pending_signals instead of
9634 interrupt_input_pending. Use process_pending_signals.
9635
51d861de 9636 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 9637
51d861de 9638 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
9639
9640 * sysdep.c (emacs_write): Use process_pending_signals.
9641
9642 * xterm.c (XTread_socket): Update pending_signals.
9643
9644 * w32term.c (w32_read_socket): Update pending_signals.
9645
9646 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9647
6570a1c4
KH
96482009-01-29 Kenichi Handa <handa@m17n.org>
9649
9650 * xftfont.c (xftfont_has_char): New function.
9651 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9652
d72a4afa
AR
96532009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9654
9655 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9656 under GNUstep.
9657 (ns_query_color): New declaration.
9658
9659 * nsterm.m (ns_confirm_quit): New variable.
9660 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9661 (EmacsApp-applicationShouldTerminate:): Use it.
9662 (EmacsPrefsController): Let user set it.
9663 (ns_query_color): New function.
9664 (ns_defined_color): Use it.
9665 (ns_initialize): Drop.
9666 (ns_term_init): Add two lines from ns_initialize(), and set
9667 input_interrupt_mode to nil.
9668
9669 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 9670 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 9671
9fe78804
KH
96722009-01-28 Kenichi Handa <handa@m17n.org>
9673
9674 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
9675 (fontset_get_font_group): Remember that no font-group is specified
9676 for C.
9fe78804 9677
fa57de36
CY
96782009-01-27 Chong Yidong <cyd@stupidchicken.com>
9679
930600e9
CY
9680 * fns.c (concat): Check for string overflow (bug#1787).
9681
fa57de36
CY
9682 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9683 Quadruple undo limits (bug#1501).
9684
7179ce7b
KH
96852009-01-27 Kenichi Handa <handa@m17n.org>
9686
9687 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9688 directly use GT_Get_Char_index.
9689
9690 * xftfont.c (struct xftfont_info): New member `index'.
9691
9692 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 9693 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 9694
5be8fcc0
CY
96952009-01-26 Kenichi Handa <handa@m17n.org>
9696
9697 * fontset.c (fontset_find_font): Fix handling of non-cons return
9698 value of fontset_get_font_group.
9699 (fontset_font): Revert last change.
9700
19ae3e61
JR
97012009-01-26 Jason Rumney <jasonr@gnu.org>
9702
9703 * w32font.c (w32font_list_internal): Return quickly if registry is
9704 unknown. Simplify final return.
9705 (add_font_entity_to_list): Break complex logic down into more
9706 manageable chunks. Move unknown registry check to
9707 w32font_list_internal.
9708
8612b71a
AR
97092009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9710
9711 Changes to remove Feval calls from GUI under NS.
9712
d8038940
JB
9713 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9714 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
9715 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9716
9717 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9718 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9719 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9720 instead of NON_ASCII_KEYSTROKE_EVENT.
9721 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9722 (EmacsApp-applicationShouldTerminate:): Query user.
9723 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9724 instead of Feval.
9725
9726 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9727
9728 * keyboard.c (kbd_buffer_get_event): Check for it.
9729 (keys_of_keyboard): Define lispy keys for
9730 ns-put/unput-working-text.
9731
9732 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9733 versions.
9734 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9735
6288ae55
CY
97362009-01-25 Chong Yidong <cyd@stupidchicken.com>
9737
9738 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 9739 setting current_buffer directly. (Bug#2044)
6288ae55 9740
289e7f8f
CY
97412009-01-24 Chong Yidong <cyd@stupidchicken.com>
9742
5ce87308 9743 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 9744 any work. (Bug#1952, bug#1990).
5ce87308 9745
64cc3cf6 9746 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 9747
b3243e6f
AR
97482009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9749
9750 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
9751 (ns_no_defaults): New declaration.
9752 (main): Use it.
e0d2e69a 9753
d900b2af 9754 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 9755
d900b2af 9756 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 9757
d900b2af
AR
9758 * nsterm.m (ns_no_defaults): New variable.
9759 (ns_initialize): Don't read defaults when ns_no_defaults.
9760 (EmacsView-readSelectionFromPasteboard:)
9761 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 9762 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
9763 (ns_dumpglyphs_stretch): New function.
9764 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9765 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9766
e0d2e69a
AR
9767 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9768
3ac71f5d
CY
97692009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9770
9771 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9772 call for Sparc64.
9773
3fe53a83
AR
97742009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9775
9776 * nsfns.m:
9777 * nsgui.h:
9778 * nsmenu.m:
9779 * nsselect.m:
9780 * nsterm.h:
9781 * nsterm.m: Remove '23' comments that indicated code added during
9782 update from emacs-20 -> emacs-23.
9783
10f87c6f 97842009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9785
9786 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9787 ns_alternate_modifier. (Bug#1217)
a3b53a85 9788
c7cef62d
AR
9789 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9790 Display all shortcuts, including those w/o super modifier.
9791
575fb8bd
AR
9792 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9793
918b848b
CY
97942009-01-22 Chong Yidong <cyd@stupidchicken.com>
9795
9796 * fileio.c (Vwrite_region_post_annotation_function)
9797 (Vwrite_region_annotation_buffers): New vars.
9798 (build_annotations_unwind): Just reset
9799 Vwrite_region_annotation_buffers.
9800 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9801 Call write-region-post-annotation-function.
9802 (build_annotations): Add to Vwrite_region_annotation_buffers if
9803 buffer changes.
9804
a39e2539
AR
98052009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9806
9807 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9808 Tiger.
51d861de
SM
9809 * nsfns.m (ns_do_applescript):
9810 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9811
35ed44db
AR
98122009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9813
9814 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9815
cbe0b5bf
AR
98162009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9817
9818 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 9819
6049d3a0
AR
9820 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9821
9822 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
9823 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9824 handle Ctrl-tab. (Bug#1841)
9825 (ns_get_color): Use unsigned long long for scanned hex string value.
9826 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 9827 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 9828 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 9829 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 9830 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 9831 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 9832 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 9833
d3810c21 9834 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 9835 DPI. (Bug#1316)
d3810c21
AR
9836 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9837 values in onTiger section.
4c7077c3 9838
e301e634
CY
98392009-01-19 Chong Yidong <cyd@stupidchicken.com>
9840
7f82490b
CY
9841 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9842 Check return value of font_spec_from_name.
64cc3cf6 9843 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
9844
9845 * font.c (font_spec_from_name): Return Qnil if font name could not
9846 be parsed.
9847 (font_parse_name): Treat a `?' character as part of an XLFD.
9848
e301e634
CY
9849 * fns.c (Fsubstring): Doc fix.
9850
1c0db158
KH
98512009-01-19 Kenichi Handa <handa@m17n.org>
9852
51d861de 9853 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
9854 (ftfont_list): Likewise.
9855
acf20901
JB
98562009-01-18 Juanma Barranquero <lekktu@gmail.com>
9857
fff4e459
JB
9858 * dbusbind.c (Fdbus_register_signal):
9859 * process.c (conv_sockaddr_to_lisp):
9860 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9861
acf20901
JB
9862 * callproc.c (Fgetenv_internal): Doc fix.
9863
e7abcdfb
CY
98642009-01-16 Chong Yidong <cyd@stupidchicken.com>
9865
9866 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9867 it is not even used.
9868
b60861e6
GM
98692009-01-16 Glenn Morris <rgm@gnu.org>
9870
9871 * font.c (Ffont_variation_glyphs): Silence compiler.
9872
8db52afe
JB
98732009-01-15 Juanma Barranquero <lekktu@gmail.com>
9874
9875 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9876 Reported by David Robinow <drobinow@gmail.com>.
9877
4cddb209
KH
98782009-01-15 Kenichi Handa <handa@m17n.org>
9879
51d861de 9880 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 9881
f247f67b
JR
98822009-01-14 Jason Rumney <jasonr@gnu.org>
9883
9884 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 9885 never a fontset. (Bug#1562)
f247f67b 9886
f56a4450
KH
98872009-01-14 Kenichi Handa <handa@m17n.org>
9888
9889 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 9890 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 9891
4e99855e
CY
98922009-01-13 Chong Yidong <cyd@stupidchicken.com>
9893
9894 * font.c (font_clear_prop): If clearing the family, clear the font
9895 width index too.
9896
fff4e459 9897 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 9898
24f01470
JB
98992009-01-12 Juanma Barranquero <lekktu@gmail.com>
9900
9901 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9902 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9903 functions, use sizeof.
9904
a41240a3
MR
99052009-01-12 Martin Rudalics <rudalics@gmx.at>
9906
9907 * keyboard.c (read_char): Fix case where last_nonmenu_event
9908 returned a bad value with submenus. (Bug#447)
9909
944636b8
CY
99102009-01-12 Chong Yidong <cyd@stupidchicken.com>
9911
9912 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9913 family, clear the font width index too.
9914
0dad7c6f
JR
99152009-01-11 Jason Rumney <jasonr@gnu.org>
9916
9917 * keyboard.c (cmd_error_internal): Exit when errors occur before
9918 frame creation and not in daemon mode. (Bug#1836)
9919
7c2363af
CY
99202009-01-10 Chong Yidong <cyd@stupidchicken.com>
9921
9922 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9923 of a display vector, backtrack.
9924 (try_window_reusing_current_matrix): Check glyph type before
9925 referencing charpos member.
9926
97b1b294
EZ
99272009-01-10 Eli Zaretskii <eliz@gnu.org>
9928
9929 Fix Bug #876:
9930
9931 * coding.c (inhibit_null_byte_detection): New variable.
9932 (detect_coding, detect_coding_system): Don't pay attention to null
9933 bytes if inhibit_null_byte_detection is non-zero.
51d861de 9934 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
9935 <inhibit-iso-escape-detection>: Doc fix.
9936
4624b6e3
JR
99372009-01-09 Jason Rumney <jasonr@gnu.org>
9938
9939 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 9940 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
9941 Only report Unicode Plane 2 fonts as unicode-sip.
9942
323b840c
CY
99432009-01-09 Chong Yidong <cyd@stupidchicken.com>
9944
51d861de
SM
9945 * xfaces.c (Fx_font_family_list): Delete function.
9946 Move compatibility version to faces.el.
323b840c 9947
51d861de 9948 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 9949
eba7400d
MR
99502009-01-09 Martin Rudalics <rudalics@gmx.at>
9951
9952 * frame.c (x_set_frame_parameters): Remember requested value for
9953 fullscreen before it's reset by the parameter handler.
9954
4b09796d
GM
99552009-01-09 Glenn Morris <rgm@gnu.org>
9956
9957 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9958 (last_command_event): ... and update all users.
4b09796d
GM
9959 (last_input_char): For clarity, rename to...
9960 (last_input_event): ... and update all users.
9961 (last-command-char, last-input-char): Move to subr.el as aliases.
9962 * cmds.c, commands.h: Update for last_command_char rename.
9963
14ccea62
CY
99642009-01-08 Chong Yidong <cyd@stupidchicken.com>
9965
51d861de 9966 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9967
5f004711
JR
99682009-01-08 Jason Rumney <jasonr@gnu.org>
9969
9970 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9971 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9972 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9973 Don't declare.
fff4e459 9974 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9975 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9976
b71f6f73
KH
99772009-01-07 Kenichi Handa <handa@m17n.org>
9978
50b06221 9979 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9980 remember the coding system used for decoding in
50b06221
KH
9981 coding_system (Bug#1039).
9982
b71f6f73 9983 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9984 breaking the loop. (Bug#870)
b71f6f73
KH
9985 (decode_coding_utf_16, decode_coding_emacs_mule)
9986 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9987 (decode_coding_charset): Likewise.
9988
56f668f7
MR
99892009-01-05 Martin Rudalics <rudalics@gmx.at>
9990
9991 * frame.c (x_set_frame_parameters): Make sure height (width) get
9992 applied when fullwidth (fullheight) is set. (Bug#1522)
9993
5da9424d
JB
99942009-01-04 Juanma Barranquero <lekktu@gmail.com>
9995
9996 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9997 (utc_base): Declare as ULONGLONG, not long double.
9998 (convert_time_raw): Delete.
9999 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10000 (initialize_utc_base): New function.
10001 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10002 (convert_from_time_t): Use initialize_utc_base; compute result with
10003 64-bit arithmetic.
10004 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10005
c4605e09
EZ
100062009-01-03 Eli Zaretskii <eliz@gnu.org>
10007
9acef61c 10008 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
10009 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10010 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10011 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10012 [!subprocesses]: Define.
10013 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10014 (Flist_system_processes, Fsystem_process_attributes)
10015 [!subprocesses]: Call list_system_processes and
10016 system_process_attributes instead of returning Qnil.
10017
9acef61c
JB
10018 * dosfns.c (system_process_attributes, list_system_processes):
10019 New functions.
c4605e09
EZ
10020
10021 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10022
10023 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10024 Don't use the default (no-op) implementation.
10025
8b7d0a16
JR
100262009-01-03 Jason Rumney <jasonr@gnu.org>
10027
a6d46bc1
JR
10028 * keyboard.c (parse_modifiers_uncached): Wheel events are
10029 clicks (bug#687).
10030
8b7d0a16
JR
10031 * w32term.c (x_query_colors, x_query_color): New functions.
10032
10033 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10034 (svg_load_image): Cast returned pointers from dynamically loaded
10035 functions. Eliminate W32 specific code.
10036
bfe11752
DN
100372009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10038
89e2438a
DN
10039 * nsfns.m (x_set_foreground_color, x_set_background_color)
10040 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10041 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10042 x_ prefix instead of ns_. Update references.
10043 (syms_of_nsfns): Add a FIXME comment.
10044
10045 * nsterm.m (x_set_cursor_type): New prototype.
10046 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10047
bfe11752
DN
10048 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10049 for Solaris instead of incorrectly providing Qutime and Qcutime.
10050
031da700
EZ
100512009-01-02 Eli Zaretskii <eliz@gnu.org>
10052
10053 * w32.c (process_times): Compute sum of utime and stime.
10054 (system_process_attributes): Add Qtime to the alist.
10055
10056 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10057 and add them to the alist.
10058
10059 * process.c (top level) <Qtime, Qctime>: New variables.
10060 (syms_of_process): staticpro them.
10061 (Fsystem_process_attributes): Add their documentation to the doc
10062 string.
10063
10064 * process.h: Declare Qtime and Qctime.
10065
df23bf08
JR
100662009-01-02 Jason Rumney <jasonr@gnu.org>
10067
9acef61c 10068 * image.c (Qgobject): New symbol.
df23bf08
JR
10069 (syms_of_image): Initialize it.
10070 (init_svg_functions): Load some functions from gobject library.
10071
5bbdf7aa
DN
100722009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10073
10074 * frame.c (make_terminal_frame): Remove redundant code and useless
10075 block.
10076
63136da6
AS
100772009-01-01 Andreas Schwab <schwab@suse.de>
10078
10079 * process.c (conv_sockaddr_to_lisp): Add workaround for
10080 getsockname bug on BSD.
10081
9ef69046
CY
100822009-01-01 Chong Yidong <cyd@stupidchicken.com>
10083
d6fafbe0
CY
10084 * xfns.c (x_create_tip_frame): Set border width of the X window.
10085
51d861de 10086 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 10087
f9c34147
JR
100882009-01-01 Jason Rumney <jasonr@gnu.org>
10089
9acef61c 10090 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
10091 Don't block input, as per earlier xterm.c changes.
10092
f5497e45
AR
100932008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10094
10095 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10096 (ns_appkit_version_int): New function.
10097 (x-server-version): Use ns_appkit_version_int and follow 21+
10098 convention of returning 3 integers.
10099
c19cab20
KH
101002008-12-30 Kenichi Handa <handa@m17n.org>
10101
10102 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10103 (CHAR_SURROGATE_PAIR_P): New macro.
10104
10105 * font.h (struct font_driver): New member get_variation_glyphs.
10106
9acef61c 10107 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
10108 (Ffont_variation_glyphs): New function.
10109 (syms_of_font): Defsubr it.
10110
10111 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10112 ftfont_variation_glyphs.
10113 (setup_otf_gstring): New function.
10114 (ftfont_drive_otf): Use it.
10115 (ftfont_shape_by_flt): Handle variation selector.
10116 (ftfont_variation_glyphs): New function.
10117
28cd591f
MR
101182008-12-30 Martin Rudalics <rudalics@gmx.at>
10119
10120 * frame.c (Vemacs_iconified): Remove.
10121
7f714baf
JR
101222008-12-30 Jason Rumney <jasonr@gnu.org>
10123
10124 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 10125 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 10126
9d2d22ab
CY
101272008-12-30 Chong Yidong <cyd@stupidchicken.com>
10128
10129 * indent.c (Fvertical_motion): Don't advance iterator if we have
10130 reseated to the desired position.
10131
10132 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10133 checking for pos match.
10134
545312c2
KH
101352008-12-30 Kenichi Handa <handa@m17n.org>
10136
1ede3eb6
KH
10137 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10138 just get the low 8-bit of the code.
10139
545312c2
KH
10140 * font.c (font_intern_prop): Validate str as multibyte.
10141
bd7bbf29
DN
101422008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10143
31e0750e
DN
10144 * dispextern.h (struct face): Move lface and hash from the middle
10145 of bitfields.
10146
bd7bbf29
DN
10147 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10148
b5672e7c
DN
101492008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10150
10151 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10152 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10153 instead of intervals.h.
10154
d704470f
AS
101552008-12-26 Andreas Schwab <schwab@suse.de>
10156
10157 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10158 cons.
10159
54b33868
MR
101602008-12-26 Martin Rudalics <rudalics@gmx.at>
10161
10162 * textprop.c (Qminibuffer_prompt): New variable.
10163 (syms_of_textprop): Initialize it.
10164 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10165 in minibuffer-prompt face. (Bug#1662)
10166
40b615d6
JR
101672008-12-25 Jason Rumney <jasonr@gnu.org>
10168
10169 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10170
baae5c2d
JR
101712008-12-24 Jason Rumney <jasonr@gnu.org>
10172
10173 * ralloc.c (r_alloc_reset_variable): New function.
10174
10175 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 10176 record of what points where. (Bug#716)
baae5c2d 10177
a9051c88
DN
101782008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10179
10180 * minibuf.c (read_minibuf): Follow the non-interactive case when
10181 running as a daemon, before detaching.
10182
8b146312
AS
101832008-12-22 Andreas Schwab <schwab@suse.de>
10184
10185 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10186 * gtkutil.c (free_widget_value): Use xfree instead of free.
10187
56f2de10
MR
101882008-12-22 Martin Rudalics <rudalics@gmx.at>
10189
10190 * frame.c (delete_frame): New function derived from
10191 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10192 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10193 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10194 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10195 * frame.h: Extern delete_frame.
10196 * window.c (window_loop):
10197 * terminal.c (delete_terminal):
10198 * xterm.c (x_connection_closed):
10199 * xfns.c (Fx_hide_tip):
9acef61c 10200 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 10201
1fc200d6
JR
102022008-12-21 Jason Rumney <jasonr@gnu.org>
10203
10204 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10205 when character maps to .notdef character.
10206
5e252df2
SM
102072008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10208
10209 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10210
99b72cc4
JR
102112008-12-20 Jason Rumney <jasonr@gnu.org>
10212
10213 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 10214 a graphical frame on Windows. (Bug#1325)
99b72cc4 10215
acc49a52
JD
102162008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10217
10218 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10219
6ea15123
CY
102202008-12-20 Chong Yidong <cyd@stupidchicken.com>
10221
10222 * minibuf.c (Fread_buffer): Doc fix.
10223
b2dab6c8
JR
102242008-12-20 Jason Rumney <jasonr@gnu.org>
10225
54ea0c87 10226 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 10227 server name in UNC paths. (Bug#719)
54ea0c87 10228
b2dab6c8 10229 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 10230 charbuf. (Bug#1035)
b2dab6c8 10231
6d1921be
DN
102322008-12-19 Daniel Engeler <engeler@gmail.com>
10233
10234 * sysdep.c (serial_configure): Fix typo.
10235
53934c98
DN
102362008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10237
10238 * sysdep.c: Include alloca.h.
f4f634e8
DN
10239 (system_process_attributes): Add implementation for Solaris.
10240
10241 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 10242
06e111a6
DN
102432008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10244
10245 Reorganize implementation of Flist_system_processes and
10246 Fsystem_process_attributes. No functional changes.
10247 * process.c: Don't #include pwd.h, grp.h and limits.h.
10248 (Flist_system_processes): Just call list_system_processes.
10249 (Fsystem_process_attributes): Just call system_process_attributes.
10250 (procfs_list_system_processes, time_from_jiffies)
10251 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10252 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10253
10254 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10255 (list_system_processes): Rename from
10256 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10257 Provide a do nothing implementation.
10258 (system_process_attributes): Rename from
10259 procfs_list_system_processes.
10260 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 10261 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
10262
10263 * w32.c (list_system_processes): Rename from
10264 w32_list_system_processes.
10265 (system_process_attributes): Rename from
10266 w32_system_process_attributes.
10267
10268 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10269
10270 * process.h (w32_list_system_processes)
10271 (w32_system_process_attributes): Remove.
362654a6
JB
10272 (list_system_processes, system_process_attributes):
10273 New prototypes.
06e111a6 10274
6a705b23
KH
102752008-12-19 Kenichi Handa <handa@m17n.org>
10276
10277 * xfont.c (xfont_decode_coding_xlfd): New function.
10278 (xfont_encode_coding_xlfd): New function.
10279 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10280 (xfont_list): Decode and encode XLFD by iso-8859-1.
10281 (xfont_match): Likewise.
10282 (xfont_list_family): Likewise.
10283 (xfont_open): Likewise.
10284
d66c0241 10285 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
10286 names are utf-8.
10287
d66c0241 10288 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
10289 names are utf-8.
10290
5a130941
JD
102912008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10292
10293 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10294 changed.
bfd20325
JD
10295 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10296 clicked on a detached tool bar button.
5a130941 10297
fd95644b
DN
102982008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10299
10300 * emacs.c (main): Print and error and exit when no data is read
10301 from the pipe.
10302
e6eee6ae
JR
103032008-12-17 Jason Rumney <jasonr@gnu.org>
10304
10305 * w32font.c (w32font_has_char): Always return -1.
10306
a35dd56b
KH
103072008-12-16 Kenichi Handa <handa@m17n.org>
10308
10309 * font.c (font_open_entity): Fix previous change.
10310
0e3635c2
DN
103112008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10312
10313 * process.c: Include <limits.h>.
10314
d4835507 103152008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
10316
10317 * font.c (font_update_drivers): Fix mistake in reconstructing the
10318 driver list.
10319
103202008-12-16 Chong Yidong <cyd@stupidchicken.com>
10321
10322 * font.c (font_clear_cache): Fix format of font cache data.
10323
e2cbc401
CY
103242008-12-15 Chong Yidong <cyd@stupidchicken.com>
10325
10326 * xftfont.c (xftfont_open): Free Xft font pattern if
10327 XftFontOpenPattern fails.
10328
10329 * xterm.c (x_free_frame_resources): Remove extraneous call to
10330 free_frame_faces.
10331
b131d535
CY
103322008-12-13 Chong Yidong <cyd@stupidchicken.com>
10333
10334 * xterm.c (x_delete_display): Move xim_close_dpy call to
10335 x_delete_terminal.
10336 (x_delete_terminal): Call xim_close_dpy.
10337
e6df5336
JR
103382008-12-13 Jason Rumney <jasonr@gnu.org>
10339
10340 * w32font.c (intern_font_name): New function.
10341 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10342 (w32font_open_internal, Fx_select_font): Decode font name.
10343 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10344
10345 * w32font.h (intern_font_name): Declare new function.
10346
10347 * w32uniscribe.c (add_opentype_font_name_to_list):
10348 Use intern_font_name.
10349
20d68145
CY
103502008-12-13 Chong Yidong <cyd@stupidchicken.com>
10351
9f2554de
CY
10352 * frame.c (Fdelete_frame): Call free_font_driver_list.
10353
3d9bec9a
CY
10354 * font.c (free_font_driver_list): Implement missing function.
10355
20d68145
CY
10356 * w32term.c (w32_term_init): Don't initialize the image cache
10357 here; it will be done in init_frame_faces.
10358
10359 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10360 (struct x_display_info): Remove unused member null_pixel. New
10361 member xim_callback_data.
10362
10363 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10364 (xim_initialize): Save pointer to callback function data.
10365 (xim_close_dpy): Free callback function data. Call XCloseIM,
10366 reverting 2008-11-04 change by David Smith.
10367 (x_term_init): Don't initialize the image cache here; it will be
10368 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10369 (x_delete_display): Free x_dnd_atoms member.
10370
96f9306b
KH
103712008-12-13 Kenichi Handa <handa@m17n.org>
10372
6dec9044
JB
10373 * font.c (font_rescale_ratio): Moved from xfaces.c.
10374 Argument type changed. Handle a font-spec too.
96f9306b 10375 (font_score): Check Vface_font_rescale_alist.
6dec9044 10376 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
10377
10378 * xfaces.c (font_rescale_ratio): Moved to font.c.
10379
8d5b4964
CY
103802008-12-13 Chong Yidong <cyd@stupidchicken.com>
10381
10382 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10383
e6df5336
JR
103842008-12-12 Jason Rumney <jasonr@gnu.org>
10385
10386 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10387 Vwindow_system_version to the real w32 major version.
10388
97c6058a
DN
103892008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10390
10391 * term.c (init_tty): Move setting the terminal name before the
10392 potential user: maybe_fatal.
10393
ec4e88d7
CY
103942008-12-11 Chong Yidong <cyd@stupidchicken.com>
10395
d4835507
JB
10396 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10397 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 10398
b4233ec9
JR
103992008-12-11 Jason Rumney <jasonr@gnu.org>
10400
8ec71e23 10401 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 10402 SYMBOL_CHARSET. (Bug#547)
8ec71e23 10403
b4233ec9 10404 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 10405 size for surrogates. (Bug#1096, bug#872)
b4233ec9 10406
011a0143
JB
104072008-12-11 Juanma Barranquero <lekktu@gmail.com>
10408
10409 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10410
3c309f34
JB
104112008-12-11 Juanma Barranquero <lekktu@gmail.com>
10412
10413 * process.c (Fsystem_process_attributes, syms_of_process):
10414 Fix typo in name of Ssystem_process_attributes.
10415 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10416
fedc6ab5
JB
104172008-12-11 Juanma Barranquero <lekktu@gmail.com>
10418
10419 * syntax.c (Fmodify_syntax_entry): Doc fix.
10420
ba3de0e8
JB
104212008-12-10 Juanma Barranquero <lekktu@gmail.com>
10422
10423 * font.c (Ffont_spec): Move usage to end of docstring.
10424
174f1c74
JR
104252008-12-10 Jason Rumney <jasonr@gnu.org>
10426
10427 * w32font.c (Qcham): New symbol.
10428 (font_supported_scripts): Add cham, and comments for other new
10429 scripts in bitfield from OpenType spec.
9d32f818
JR
10430 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10431 contain characters beyond the bmp.
174f1c74 10432
7b649478
KH
104332008-12-10 Kenichi Handa <handa@m17n.org>
10434
10435 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 10436 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
10437 Qunicode_sip.
10438
2133e2d1
JB
104392008-12-10 Juanma Barranquero <lekktu@gmail.com>
10440
10441 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10442 (Fcoding_system_put): Use QCdefault_char.
10443 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10444
9af886ee
CY
104452008-12-09 Chong Yidong <cyd@stupidchicken.com>
10446
74d819eb
CY
10447 * xftfont.c (syms_of_xftfont): Fix typo.
10448
4ccfa1c0 10449 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 10450
7c19d3ae
DN
104512008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10452
10453 * emacs.c (main): Close daemon_pipe on exec.
10454
567826bb
CY
104552008-12-08 Chong Yidong <cyd@stupidchicken.com>
10456
10457 * termchar.h (struct tty): New members termcap_term_buffer and
10458 termcap_strings_buffer.
10459
10460 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 10461 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
10462 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10463 All callers changed.
10464 (init_tty): Store termcap data and string buffers in new struct
10465 tty members termcap_term_buffer and termcap_strings_buffer.
10466 (delete_tty): Free them.
4ccfa1c0 10467 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 10468
aa96c42b
SZ
104692008-12-07 Seiji Zenitani <zenitani@mac.com>
10470
10471 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 10472 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 10473
b7e1d896
CY
104742008-12-06 Chong Yidong <cyd@stupidchicken.com>
10475
10476 * coding.c (make_conversion_work_buffer): Disable buffer
10477 modification hooks in the work buffer.
10478
b5ec91a5
EZ
104792008-12-05 Eli Zaretskii <eliz@gnu.org>
10480
10481 * process.c (procfs_system_process_attributes): If `nread' has a
10482 negative value, assign zero to it.
10483
a5d2a52b
CY
104842008-12-05 Chong Yidong <cyd@stupidchicken.com>
10485
68c5540b 10486 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 10487
7bf1bb21
KH
104882008-12-05 Kenichi Handa <handa@m17n.org>
10489
10490 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10491 second character is a combining character.
10492
2fdc7d00
EZ
104932008-12-05 Eli Zaretskii <eliz@gnu.org>
10494
10495 * process.c (procfs_system_process_attributes): Don't use cmd,
10496 cmdsize, and q without initializing them first.
10497
bf6bfba8
JR
104982008-12-04 Jason Rumney <jasonr@gnu.org>
10499
10500 * w32font.c (w32font_draw): Initialize orig_clip before getting
10501 it, and delete it when finished.
10502
a3b1a468
DN
105032008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10504
10505 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10506 case when running as a daemon before detaching.
10507
8b8be8eb
JB
105082008-12-03 Juanma Barranquero <lekktu@gmail.com>
10509
805f2638 10510 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 10511
b1bde622
KH
105122008-12-03 Kenichi Handa <handa@m17n.org>
10513
e500c47d
KH
10514 * font.c (font_at): Set `multibyte' at first.
10515
ca516334
KH
10516 * coding.c (decode_coding_charset): Check type of an element of
10517 vector VALIDS.
7bf1bb21 10518 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 10519
4ccfa1c0 10520 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
10521 (font_for_char): Likewise.
10522
1e5ecd37
CY
105232008-12-03 Chong Yidong <cyd@stupidchicken.com>
10524
d5b01609 10525 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
10526 (font_update_lface): Handle fonts with corrupted size specs,
10527 i.e. non-int and non-float.
d5b01609 10528
11e3a6e4 10529 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 10530 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 10531 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 10532
ab06788b
CY
10533 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10534
1e5ecd37 10535 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 10536 underline_minimum_offset for underline position.
1e5ecd37 10537
63c125ab
DN
105382008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10539
10540 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10541
10542 * character.c (c_string_width): Specify the type for LEN.
10543
3a8406e1
KH
105442008-12-03 Kenichi Handa <handa@m17n.org>
10545
4ccfa1c0 10546 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 10547 (decode_coding_utf_8): Likewise.
4ccfa1c0 10548 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 10549 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 10550
651df7d9
CY
105512008-12-02 Chong Yidong <cyd@stupidchicken.com>
10552
10553 * keyboard.c (make_lispy_position): Only use PT if the selected
10554 window is current.
10555
1f625c6c
AS
105562008-12-02 Andreas Schwab <schwab@suse.de>
10557
f7741ce9
AS
10558 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10559
1f625c6c
AS
10560 * doprnt.c (doprnt1): Fix size of charbuf.
10561
92bc2678
CY
105622008-12-02 Chong Yidong <cyd@stupidchicken.com>
10563
10564 * keyboard.c (timer_check): Revert last change.
10565
93b9e8cc
JB
105662008-12-02 Juanma Barranquero <lekktu@gmail.com>
10567
10568 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10569
fd7a37d5
JB
105702008-12-01 Juanma Barranquero <lekktu@gmail.com>
10571
10572 * makefile.w32-in: Update dependencies.
10573 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10574
c115043b
AS
105752008-12-01 Andreas Schwab <schwab@suse.de>
10576
10577 * font.c (register_font_driver): Use xmalloc.
10578 (font_put_frame_data): Likewise.
10579
f5668d2a
CY
105802008-12-01 Chong Yidong <cyd@stupidchicken.com>
10581
860d96be
CY
10582 * xfaces.c (realize_x_face): Make abort condition clearer.
10583
f5668d2a
CY
10584 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10585
379c17e7
CY
105862008-11-30 Chong Yidong <cyd@stupidchicken.com>
10587
10588 * keyboard.c (timer_check): After a timer runs, ensure that the
10589 selected window's buffer is current.
10590
35f36d65
JB
105912008-11-30 Juanma Barranquero <lekktu@gmail.com>
10592
f952c61c
JB
10593 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10594 It was accidentally restored by the Unicode merge.
10595
35f36d65
JB
10596 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10597
b23077df
JB
105982008-11-29 Juanma Barranquero <lekktu@gmail.com>
10599
10600 * w32proc.c: Include "coding.h".
10601 (Fw32_short_file_name): Encode filename passed to Windows API.
10602 (Fw32_long_file_name): Encode filename passed to Windows API and
10603 decode back the result. (Bug#1433)
10604
b8ebe9dd
KH
106052008-11-29 Kenichi Handa <handa@m17n.org>
10606
8cc53f96
KH
10607 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10608 not before accessing it.
10609
b8ebe9dd
KH
10610 * charset.c (Fdefine_charset_internal): After calculating
10611 min_char, max_char, and fastmap, copy the charset structure again.
10612 (encode_char): Fix the previous change.
10613
59bc82c0
SZ
106142008-11-28 Seiji Zenitani <zenitani@mac.com>
10615
10616 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10617
10618 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10619
10620 * nsterm.m (x_set_frame_alpha): New function.
10621
32247e3d
EZ
106222008-11-27 Eli Zaretskii <eliz@gnu.org>
10623
10624 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10625
b003e5ff
JB
106262008-11-27 Juanma Barranquero <lekktu@gmail.com>
10627
10628 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10629 pointer to check_face_name.
10630
708550f5
KH
106312008-11-27 Kenichi Handa <handa@m17n.org>
10632
10633 * category.h (SET_CATEGORY_SET): Call set_category_set.
10634 (set_category_set): Extern it.
10635
10636 * category.c (hash_get_category_set): New function.
10637 (Fmodify_category_entry): Adjusted for the change of
10638 char_table_ref_and_range. Call hash_get_category_set to get a
10639 category set to store in the table.
10640
10641 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10642 Funify_charset.
10643
2ae37cf0 10644 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
10645 (DECODE_CHAR): Check if the decoder vector is ready.
10646 (ENCODE_CHAR): Check if the encoder char-table is ready.
10647 (maybe_unify_char): Extern it.
10648
10649 * charset.c (Vchar_unified_charset_table): Delete it.
10650 (inhibit_load_charset_map): New variable.
10651 (temp_charset_work): New variable.
10652 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10653 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10654 New macros.
10655 (load_charset_map): Meaning of control_flag changed. If
10656 inhibit_load_charset_map is nonzero, setup a table in
10657 temp_charset_work.
10658 (load_charset): New argument control_flag.
10659 (map_charset_for_dump): New function.
10660 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10661 map_charset_for_dump.
10662 (Fdefine_charset_internal): If the charset method is MAP, load
10663 mapping tables by calling load_charset.
10664 (Funify_charset): Don't load a mapping table but directly set
10665 Vchar_unify_table.
10666 (maybe_unify_char): New function.
10667 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10668 Handle the case of inhibit_load_charset_map being nonzero.
10669 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10670 Handle the case of inhibit_load_charset_map being nonzero.
10671 (Fclear_charset_maps): Just free temp_charset_work.
10672 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10673 variable.
10674
10675 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10676 change of char_table_ref_and_range.
10677 (char_table_ref_and_range): Change the meaning of argument FROM
10678 and TO. Now the caller must provide initial values for *FROM
10679 and *TO.
10680
10681 * fontset.c (fontset_add): Adjusted for the change of
10682 char_table_ref_and_range.
10683 (fontset_get_font_group): Likewise.
10684 (Ffontset_info): Likewise.
10685
10686 * keymap.c (describe_vector): Adjusted for the change of
10687 char_table_ref_and_range. For char-table, put boundary between
10688 non-ASCII and 8-bit characters.
10689
10690 * print.c (print_object): For bool-vector, delete unnecessary
10691 check of ASCII_BYTE_P.
10692
9196133b
JR
106932008-11-26 Jason Rumney <jasonr@gnu.org>
10694
10695 * w32font.c (w32font_open_internal): Don't include external
9acef61c 10696 leading in font height. (Bug#879)
9196133b 10697
9f688acf
GM
106982008-11-26 Glenn Morris <rgm@gnu.org>
10699
10700 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10701 redefinition with ifdef. (Bug#1383)
10702
90d19aff
AR
107032008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10704
10705 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10706
4ccfa1c0 107072008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
10708
10709 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10710 New EmacsView methods.
10711 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10712 Fixes bug #1048,1357,1414.
10713
107142008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10715
10716 Fix bug #1362.
10717 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10718 is not an indexed color.
10719 * nsterm.m (free_indexed_color): Add argument checking.
10720 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10721
e7d5ecb3
CY
107222008-11-24 Chong Yidong <cyd@stupidchicken.com>
10723
10724 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10725 Document confirm-after-completion value for
10726 minibuffer-completion-confirm.
10727
c285743c
JR
107282008-11-24 Jason Rumney <jasonr@gnu.org>
10729
10730 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10731 warning.
10732
b0857706
JR
107332008-11-23 Jason Rumney <jasonr@gnu.org>
10734
10735 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10736 restored before returning.
10737
10738 * w32font.c (check_face_name): New function.
10739 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 10740 fonts. (Bug#642)
b0857706 10741
ee50ff07
MR
107422008-11-22 Martin Rudalics <rudalics@gmx.at>
10743
10744 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10745 confirm-nonexistent-file-or-buffer in doc-string.
10746
b8ff72fa
SM
107472008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10748
10749 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10750 Fix copy/paste typo. Add checks.
10751
cee53ed4
KH
107522008-11-21 Kenichi Handa <handa@m17n.org>
10753
10754 * coding.c (detect_coding_iso_2022): Reject invalid composition
10755 sequence.
10756 (DECODE_COMPOSITION_START): If the current source is the last
10757 block, and the current composition doesn't end, regard this
10758 sequence as invalid.
10759 (decode_coding_iso_2022): Handle invalid composition sequence.
10760
f6ef1e65
MR
107612008-11-20 Martin Rudalics <rudalics@gmx.at>
10762
10763 * window.c (coordinates_in_window): Don't return
10764 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10765 line when the window is not the rightmost one. (Bug#1372)
10766
e08b1705
MR
107672008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10768
10769 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10770
ad98e89f
EZ
107712008-11-15 Eli Zaretskii <eliz@gnu.org>
10772
10773 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10774 and bright_bg if noninteractive is non-zero.
10775
fb098a4b
CY
107762008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10777
10778 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10779 x_draw_glyph_string_background.
10780
10781 * w32term.c (x_draw_glyph_string): Likewise.
10782
ce952b6e
CY
107832008-11-15 Chong Yidong <cyd@stupidchicken.com>
10784
10785 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10786 the next glyph string once past the overhang width.
10787
10788 * nsterm.m (ns_draw_glyph_string): Likewise.
10789
10790 * w32term.c (x_draw_glyph_string): Likewise.
10791
26ea7079
CY
107922008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10793
10794 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10795 double file close.
10796
1c33c906
MR
107972008-11-14 Martin Rudalics <rudalics@gmx.at>
10798
10799 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10800 dedicated status of window before attempting to display another
10801 buffer in it.
10802
8fc29035
JB
108032008-11-14 Juanma Barranquero <lekktu@gmail.com>
10804
10805 * msdos.c (Fmsdos_long_file_names):
10806 (syms_of_msdos) <dos-unsupported-char-glyph>:
10807 * dosfns.c (Fint86): Fix typos in docstrings.
10808
55fb4286
EZ
108092008-11-14 Eli Zaretskii <eliz@gnu.org>
10810
10811 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10812
3fda0315
KY
108132008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10814
10815 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10816
7e849c17
CY
108172008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10818
10819 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10820
10821 * frame.h: Negative alpha means "don't touch".
10822
10823 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10824
10825 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10826
b9fd67bd
DN
108272008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10828
10829 * hftctl.c:
10830 * chpdef.h:
10831 * acldef.h: Remove files used only for systems no longer supported.
10832
10833 * Makefile.in: Fix .o alphabetical ordering.
10834 (hftctl.o): Remove dependency, file removed.
10835 (keymap.o, print.o): Depend on charset.h.
10836
d5998e03
KH
108372008-11-10 Kenichi Handa <handa@m17n.org>
10838
2ae37cf0 10839 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 10840
be70e183
CY
108412008-11-08 Chong Yidong <cyd@stupidchicken.com>
10842
10843 * dired.c (file_name_completion): If completion_ignore_case is
10844 enabled, ignore case when checking completion-regexp-list.
10845
7cf94eac
EZ
108462008-11-08 Eli Zaretskii <eliz@gnu.org>
10847
10848 * vm-limit.c (get_lim_data): Fix last change.
10849
ee107a89
KH
108502008-11-08 Kenichi Handa <handa@m17n.org>
10851
10852 * character.c (Fget_byte): New function.
10853 (syms_of_character): Defsubr Fget_byte.
10854
5fd15622
CY
108552008-11-07 Chong Yidong <cyd@stupidchicken.com>
10856
10857 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10858 cursor position is valid after scrolling.
10859
13d62fad
JB
108602008-11-06 Juanma Barranquero <lekktu@gmail.com>
10861
10862 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10863
a1dd2936
GM
108642008-11-06 Glenn Morris <rgm@gnu.org>
10865
10866 * xterm.c (handle_one_xevent): Don't let popup menus cause
10867 mouse-autoselect-window related window switching. (Bug#1261)
10868
860cd236
CY
108692008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10870
10871 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10872
653a3150
AS
108732008-11-04 Andreas Schwab <schwab@suse.de>
10874
10875 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10876
870f5cac
CY
108772008-11-03 Chong Yidong <cyd@stupidchicken.com>
10878
10879 * xfns.c (Fx_wm_set_size_hint): New function.
10880
1e02f3cb
MR
108812008-11-03 Martin Rudalics <rudalics@gmx.at>
10882
10883 * textprop.c (Fprevious_single_char_property_change): Return 0
10884 when there's no change in a string. (Bug#1301)
10885
e630dfc6
MR
108862008-11-02 Martin Rudalics <rudalics@gmx.at>
10887
10888 * frame.c (do_switch_frame): New argument NORECORD passed to
10889 Fselect_window.
10890 (Fselect_frame): New argument NORECORD passed to
10891 do_switch_frame.
10892 (Fset_frame_selected_window): New argument NORECORD passed to
10893 Fselect_frame.
10894 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10895 in call of do_switch_frame.
10896 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10897 Handle NORECORD argument in call of Fselect_frame.
10898 * lisp.h (do_switch_frame, Fselect_frame)
10899 (Fset_frame_selected_window): Adjust declarations.
10900 * window.c (select_frame_norecord): New function.
10901 (run_window_configuration_change_hook): Use it and call
10902 Fselect_frame with NORECORD set.
10903 (Fselect_window): Pass NORECORD to Fselect_frame.
10904 (Fset_window_configuration): Handle NORECORD argument in call of
10905 do_switch_frame.
10906 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10907 Fset_frame_selected_window.
10908 * keyboard.c (command_loop_1): Handle NORECORD in call of
10909 Fselect_frame (currently ifdefd).
10910
9020b223
GM
109112008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10912
10913 * emacs.c (USAGE2): Untabify.
10914
793ffee8
SM
109152008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10916
10917 * composite.c (fill_gstring_header): Fix copy/paste typo.
10918
ab6d1131
MR
109192008-10-31 Martin Rudalics <rudalics@gmx.at>
10920
10921 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10922 (Fother_window): Rename argument and rewrite doc-string.
10923 (select_window_norecord): Fix return value. (Bug#1276)
10924
601a9cf1
JB
109252008-10-30 Juanma Barranquero <lekktu@gmail.com>
10926
10927 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10928 new frames overriding foreground for tooltips. Based on similar patch
10929 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10930
813b0652
CY
109312008-10-29 Chong Yidong <cyd@stupidchicken.com>
10932
10933 * emacs.c (Fdaemon_initialized): Initialize nfd.
10934
4414f58f
MR
109352008-10-29 Martin Rudalics <rudalics@gmx.at>
10936
10937 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10938 (Fwindow_text_height): Clarify doc-strings.
10939 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10940 doc-string of window-scroll-functions.
10941
ecdcaa09
RS
109422008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10943
10944 * category.c (syms_of_category): Fix typo in docstring.
10945
23fe745a
JB
109462008-10-28 Juanma Barranquero <lekktu@gmail.com>
10947
10948 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10949 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10950 Fix typos in docstrings.
10951
ff808935
DN
109522008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10953
10954 * emacs.c (daemon_pipe): Make non-static.
10955 (IS_DAEMON): Move definition ...
10956 * lisp.h (IS_DAEMON): ... here.
10957 (daemon_pipe): Declare.
10958 (is_daemon): Remove.
10959 * dispnew.c (init_display): Use IS_DAEMON.
10960
fc012771
SM
109612008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10962
10963 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10964 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10965
10966 * emacs.c (is_daemon): Remove.
10967 (main): Don't set is_daemon.
10968 (IS_DAEMON): New macro.
10969 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10970 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10971 parent exits.
10972 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10973
d8bdbe6f
CY
109742008-10-27 Chong Yidong <cyd@stupidchicken.com>
10975
d1a072bf
CY
10976 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10977 over-sized glyph, draw it with the default glyph width.
10978
e2e325aa
CY
10979 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10980 glyph, draw it with the default glyph width.
10981
10982 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10983 glyph, draw it with the default glyph width.
10984
d8bdbe6f
CY
10985 * xdisp.c (try_scrolling): When computing the distance from the
10986 scroll margin to PT, try moving some distance past the window
10987 bottom before giving up.
10988
7bfac547
MR
109892008-10-27 Martin Rudalics <rudalics@gmx.at>
10990
10991 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10992 (Fset_window_buffer): Explain in doc-string that a window can be
10993 "strongly" dedicated to its buffer.
10994
4ff029f6
DN
109952008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10996
10997 * emacs.c (daemon_name): New variable.
10998 (main): Deal with --daemon=SERVER_NAME.
10999 (Fdaemonp): Return a name if one was passed to --daemon.
11000
5790ef40
DN
110012008-10-26 Romain Francoise <romain@orebokech.com>
11002
f9bd0df9 11003 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
11004 (main): Create a pipe before forking, make the parent exit only after
11005 the child has closed its end of the pipe. Move closing the
11006 descriptors ...
11007 (Fdaemon_initialized): ... here. New function.
11008
f5385255
SM
110092008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11010
4d632321
SM
11011 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11012 the previous unoptimized table.
11013
f5385255
SM
11014 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11015 the distinction between non-nil and non-t value of `dedicated'.
11016
6c56a0f3
CY
110172008-10-25 Chong Yidong <cyd@stupidchicken.com>
11018
11019 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 11020 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 11021
fec89261
MR
110222008-10-25 Martin Rudalics <rudalics@gmx.at>
11023
11024 * window.c (Fget_buffer_window, Fdelete_windows_on)
11025 (Freplace_buffer_in_windows): Make buffer argument optional and
11026 rename to buffer_or_name.
11027
34fcddd0
CY
110282008-10-24 Chong Yidong <cyd@stupidchicken.com>
11029
f5385255
SM
11030 * xdisp.c (handle_single_display_spec, handle_display_prop):
11031 Undo 2005-05-16 change.
34fcddd0
CY
11032 (handle_stop): Pop iterator if it's loaded with an empty string.
11033 (get_overlay_strings_1): Don't save iterator if it's loaded with
11034 an empty string (bug#1201).
11035
064766f2
KH
110362008-10-24 Kenichi Handa <handa@m17n.org>
11037
11038 * ftfont.c (ftfont_otf_features): Fix previous change.
11039 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11040 calling ftfont_otf_features.
11041
f9bd0df9 110422008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
11043
11044 * font.c (font_match_p): Fix for the case that a vector of
11045 characters is in script-representative-chars.
11046
1dae9197
MA
110472008-10-24 Michael Albinus <michael.albinus@gmx.de>
11048
11049 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 11050 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
11051 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11052 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 11053 macro. (Bug#1186)
1dae9197 11054
f9bd0df9 110552008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
11056
11057 * s/sol2-10.h: New file.
11058
878a4584
JB
110592008-10-23 Juanma Barranquero <lekktu@gmail.com>
11060
11061 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11062 poor beast has survived 9+ years and the jump from xterm.c!).
11063
cd265ca6
MR
110642008-10-23 Martin Rudalics <rudalics@gmx.at>
11065
11066 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11067 Reword doc-string.
f5385255 11068 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 11069
472a4dc9
JB
110702008-10-23 Juanma Barranquero <lekktu@gmail.com>
11071
11072 * character.c (syms_of_character) <script-representative-chars>:
11073 <unicode-category-table>: Doc fixes.
11074
159bd5a2
NF
110752008-10-23 Noah Friedman <friedman@splode.com>
11076
11077 * coding.c (make_conversion_work_buffer): Check that
11078 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11079 Fget_buffer_create.
11080
49f9c344
KH
110812008-10-23 Kenichi Handa <handa@m17n.org>
11082
11083 * font.c (font_add_log): Check the values of extra properties.
11084
12bb3111
MR
110852008-10-22 Martin Rudalics <rudalics@gmx.at>
11086
11087 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11088 Reword doc-string.
11089 (Fset_window_parameter): Use NILP.
11090 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 11091 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 11092
bbeb4e99
JB
110932008-10-22 Juanma Barranquero <lekktu@gmail.com>
11094
11095 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11096
110972008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
11098
11099 * nsfns.m (ns_appkit_version): New function.
11100 (x-server-version): Use it.
11101 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11102 (x-server-vendor): Don't check_ns().
11103
11104 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11105
a9b555d3
JB
111062008-10-22 Juanma Barranquero <lekktu@gmail.com>
11107
11108 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11109 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11110
4626499f
KH
111112008-10-22 Kenichi Handa <handa@m17n.org>
11112
e3681952
KH
11113 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11114 scripts.
11115
4626499f
KH
11116 * category.c (word_boundary_p): Check scripts instead of charset.
11117 Handle nil value in word-separating-categories and
11118 word-combining-categories.
11119 (syms_of_category): Fix docstrings of word-separating-categories
11120 and word-combining-categories.
11121
1560f91a
EZ
111222008-10-21 Eli Zaretskii <eliz@gnu.org>
11123
11124 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11125 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11126
f4668441
MR
111272008-10-21 Martin Rudalics <rudalics@gmx.at>
11128
11129 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11130 Rename arg "buffer" to "buffer_or_name".
11131 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11132 it optional.
11133 (no_switch_window): Remove since the return value is not used.
a9b555d3 11134 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
11135 Consider window as dedicated when Fwindow_dedicated_p returns a
11136 non-nil value.
11137 * lisp.h: Remove prototype for no_switch_window.
11138
fd75ddb2
JD
111392008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11140
11141 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 11142 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 11143
07295713
KH
111442008-10-21 Kenichi Handa <handa@m17n.org>
11145
11146 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11147 check Vlatin_extra_code_table.
11148
712adc82
EZ
111492008-10-20 Eli Zaretskii <eliz@gnu.org>
11150
11151 * fileio.c (Fset_file_modes): Doc fix.
11152
f549eb0b
MA
111532008-10-19 Michael Albinus <michael.albinus@gmx.de>
11154
11155 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11156 in arrays.
11157
aac0c6e3
MR
111582008-10-19 Martin Rudalics <rudalics@gmx.at>
11159
11160 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11161 Mention kill-buffer in doc-string.
11162 (Fset_window_buffer): Reinsert tem check removed in last commit.
11163 (Fenlarge_window, Fshrink_window): Have argument names and
11164 doc-string follow Elisp manual more closely.
11165
111662008-10-18 Eli Zaretskii <eliz@gnu.org>
11167
11168 * fileio.c (Fset_file_modes): Doc fix.
11169
111702008-10-18 Martin Rudalics <rudalics@gmx.at>
11171
11172 * window.c (Fwindow_width, Fset_window_start)
11173 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
11174 (Fdelete_windows_on, Freplace_buffer_in_windows):
11175 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
11176 (Fwindow_dedicated_p): Make window argument optional.
11177 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11178 (Fset_window_buffer): Respect any non-nil dedicated value for
11179 window. Rename "buffer" argument to "buffer_or_name".
11180
111812008-10-18 Ulrich Mueller <ulm@gentoo.org>
11182
11183 * m/sh3.h: New file, machine description for SuperH.
11184
111852008-10-17 Martin Rudalics <rudalics@gmx.at>
11186
11187 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11188
111892008-10-17 Kenichi Handa <handa@m17n.org>
11190
11191 * ftfont.c (ftfont_otf_features): Fix indexing
11192 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11193
111942008-10-16 Magnus Henoch <mange@freemail.hu>
11195
11196 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11197 (Fdbus_call_method_asynchronously): Ditto.
11198 This change makes C-h f display the argument list.
11199
112002008-10-16 Chong Yidong <cyd@stupidchicken.com>
11201
11202 * fileio.c (Fexpand_file_name): Doc fix.
11203
11204 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11205 of :foreground and :background equivalent to unspecified (20.x
11206 compatibility).
11207
112082008-10-15 Eli Zaretskii <eliz@gnu.org>
11209
11210 * buffer.c (syms_of_buffer): Doc fix.
11211
112122008-10-14 Kenichi Handa <handa@m17n.org>
11213
11214 * font.c (font_clear_prop): When clearing font width, clear the
11215 average width field too.
11216
112172008-10-12 Andreas Schwab <schwab@suse.de>
11218
11219 * ftfont.c (ftfont_shape_by_flt): Make static.
11220 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11221
11222 * font.c: Don't include <m17n-flt.h>.
11223
112242008-10-10 Eli Zaretskii <eliz@gnu.org>
11225
11226 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11227
112282008-10-09 Eli Zaretskii <eliz@gnu.org>
11229
11230 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11231 away code.
11232
112332008-10-09 Chong Yidong <cyd@stupidchicken.com>
11234
11235 * dispnew.c (update_text_area): Avoid looping due to large glyph
11236 overhangs (bug#1070).
11237
112382008-10-09 Kenichi Handa <handa@m17n.org>
11239
11240 * fontset.c (face_for_char): If face->fontset is negative, just
11241 return ascii_face.
11242
f5385255
SM
11243 * font.c (font_delete_unmatched): Fix previous change.
11244 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
11245
112462008-10-09 Martin Rudalics <rudalics@gmx.at>
11247
11248 * frame.c (Fraise_frame): On text-only terminals select frame in
11249 order to make it visible. (Bug#1061)
11250
112512008-10-08 Chong Yidong <cyd@stupidchicken.com>
11252
11253 * fontset.c (fontset_find_font): Check frame validity.
11254
112552008-10-07 Chong Yidong <cyd@stupidchicken.com>
11256
a9b555d3 11257 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
11258 (xg_display_close): Allow Emacs to close all displays (bug#985).
11259
112602008-10-06 Andreas Schwab <schwab@suse.de>
11261
f5385255 11262 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
11263
112642008-10-06 Chong Yidong <cyd@stupidchicken.com>
11265
f5385255 11266 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 11267
a9b555d3 11268 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
11269
11270 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11271 during initialization.
11272
112732008-10-04 Eli Zaretskii <eliz@gnu.org>
11274
11275 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11276 whole thing on MSDOS frames as well as on a TTY.
11277
11278 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11279 well as for TTY.
11280 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11281 well as on a TTY.
11282
11283 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11284 as well as for TTY.
11285
11286 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11287
11288 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11289 MSDOS frames as well.
11290
112912008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11292
11293 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11294 correct arguments.
b71ac3dd 11295 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
11296
112972008-10-03 Glenn Morris <rgm@gnu.org>
11298
11299 * emacs.c (USAGE1): Add --daemon.
11300
113012008-10-02 Eli Zaretskii <eliz@gnu.org>
11302
11303 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11304 100, so it's in percents as advertised.
11305
113062008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11307
11308 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11309 (ns_output.current_cursor, ns_output.desired_cursor)
11310 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11311 (FRAME_NEW_CURSOR_COLOR): Remove.
11312
11313 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 11314 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
11315 enumeration (HOLLOW_BOX_CURSOR, etc.).
11316
11317 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11318 (draw_window_cursor): Simplify code.
f5385255
SM
11319 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11320 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 11321 updates manually.
a9b555d3
JB
11322 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11323 Use core Emacs cursor types.
aac0c6e3 11324
b8ff72fa 11325 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
11326
113272008-10-02 Martin Rudalics <rudalics@gmx.at>
11328
11329 * process.c (Faccept_process_output): Fix doc-string.
11330
113312008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11332
11333 * gmalloc.c (__sbrk): Also define for uClibc.
11334
11335 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11336 for uClibc.
11337
113382008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11339
11340 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11341 styles.
11342 (nsfont_open): Reenable the cache.
11343
113442008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11345
11346 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11347 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11348
113492008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11350
11351 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11352 a suspended terminal.
11353
113542008-09-30 Michael Albinus <michael.albinus@gmx.de>
11355
11356 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11357
113582008-09-30 Eli Zaretskii <eliz@gnu.org>
11359
11360 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11361
113622008-09-30 Chong Yidong <cyd@stupidchicken.com>
11363
11364 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11365 in a continued line coincides with a line beginning.
11366
113672008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11368
11369 * nsfont.m (nsfont_trait_distance): Fix bug.
11370 (nsfont_list): Return a list rather than a vector (syncs with Handa
11371 changes of 2008-05-14).
11372 (nsfont_open): Improve logging.
11373
113742008-09-29 Andreas Schwab <schwab@suse.de>
11375
11376 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11377
113782008-09-28 Martin Rudalics <rudalics@gmx.at>
11379
11380 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11381 name as char-resolve-modifiers.
11382 Reported by: Markus Triska <markus.triska@gmx.at>
11383
113842008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11385
11386 * dispnew.c (init_display): Return earlier when running as a daemon.
11387
113882008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11389
11390 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11391
113922008-09-27 Eli Zaretskii <eliz@gnu.org>
11393
11394 * composite.c (Fcomposition_get_gstring)
11395 (Fcompose_region_internal, Fcompose_string_internal)
11396 (Ffind_composition_internal): Doc fix.
11397 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11398 (syms_of_composite) <auto-composition-function>: Doc fix.
11399 (syms_of_composite) <composition-function-table>: Doc fix.
11400
114012008-09-25 Chong Yidong <cyd@stupidchicken.com>
11402
11403 * search.c (wordify): New argument for lax word-ends.
11404 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11405
114062008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11407
11408 * lisp.h (is_daemon): Declare.
11409 * dispnew.c (init_display): Do not try to initialize the terminal
11410 when running as a daemon.
11411
114122008-09-22 Chong Yidong <cyd@stupidchicken.com>
11413
11414 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11415 x_display_pixel_height.
11416
114172008-09-22 Martin Rudalics <rudalics@gmx.at>
11418
11419 * undo.c (record_point): Don't call Fundo_boundary for first
11420 change. (Bug#731)
11421
114222008-09-22 Juanma Barranquero <lekktu@gmail.com>
11423
11424 * emacs.c (Fdaemonp): Doc fix.
11425
114262008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11427
11428 * emacs.c (main): Place #ifdef in the proper place.
11429
114302008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11431
11432 * emacs.c (standard_args): Add --daemon.
11433 (main): Disconnect from the terminal when --daemon is passed.
11434 (is_daemon): New variable.
11435 (Fdaemonp): New function.
11436 (syms_of_emacs): Defsubr it.
11437
114382008-09-20 Chong Yidong <cyd@stupidchicken.com>
11439
11440 * xdisp.c (get_next_display_element): Handle string display
11441 correctly when checking for the end of a box run.
11442
114432008-09-20 Glenn Morris <rgm@gnu.org>
11444
11445 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11446 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11447 (Frename_file): Avoid copying to trash if a rename involves
11448 a delete. (Bug#964).
11449
114502008-09-20 Eli Zaretskii <eliz@gnu.org>
11451
11452 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11453 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11454 frames as well as termcap frames.
11455 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11456 get_named_tty.
11457
114582008-09-19 Eli Zaretskii <eliz@gnu.org>
11459
11460 * process.c (procfs_system_process_attributes): Fix cmdline in
11461 case /proc/PID/cmdline is empty.
11462
11463 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11464 x_display_pixel_height.
11465
114662008-09-19 Juanma Barranquero <lekktu@gmail.com>
11467
11468 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11469
11470 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11471 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11472
114732008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11474
11475 * dispextern.h (struct it): Move line_wrap away from the middle of
11476 bitfields. Move voffset in struct iterator_stack_entry after the
11477 bitfields. Move tab_width near after another short.
11478
114792008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11480
11481 * frame.h (struct frame): Move alpha from the middle of bitfields.
11482
11483 * window.h (struct window): Move frozen_window_start_p after the
11484 rest of the bitfields to reduce padding.
11485
114862008-09-18 Chong Yidong <cyd@stupidchicken.com>
11487
11488 * xterm.h (x_display_info): Remove `height' and `width' members.
11489
11490 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11491
11492 * w32term.h (w32_display_info): Remove `height', `width',
11493 `height_in', and `width_in' members.
11494
b8ff72fa
SM
11495 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11496 New functions.
aac0c6e3
MR
11497 (x_calc_absolute_position): Use them.
11498 (x_term_init): Omit removed `height' and `width' members.
11499
b8ff72fa
SM
11500 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11501 New functions.
aac0c6e3
MR
11502 (w32_read_socket, x_calc_absolute_position): Use them.
11503 (w32_initialize_display_info, w32_term_init): Omit removed members
11504 of w32_display_info.
11505
b8ff72fa
SM
11506 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11507 New functions.
11508 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 11509
b8ff72fa
SM
11510 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11511 New functions.
aac0c6e3
MR
11512 (x_calc_absolute_position): Use them.
11513 (x_term_init): Omit removed `height' and `width' members.
11514
11515 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
11516 (compute_tip_xy):
11517 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
11518 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11519 x_display_pixel_width.
11520
115212008-09-18 Kenichi Handa <handa@m17n.org>
11522
11523 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11524 (composition_compute_stop_pos): Fix handling of static composition.
11525 (Fcomposition_get_gstring): Check FROM and TO at first.
11526
115272008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11528
46e722a9 11529 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
11530 mixup (YAILOM).
11531
115322008-09-17 Chong Yidong <cyd@stupidchicken.com>
11533
11534 * indent.c (Fvertical_motion): Use position reported by iterator
11535 instead of PT for determining screen motion (bug#943).
11536
115372008-09-17 Romain Francoise <romain@orebokech.com>
11538
11539 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11540
115412008-09-17 Kenichi Handa <handa@m17n.org>
11542
11543 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11544
11545 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11546 if necessary.
11547
115482008-09-16 Kenichi Handa <handa@m17n.org>
11549
11550 * coding.c (make_conversion_work_buffer): Avoid calling
11551 Fget_buffer_create if it is not necessary.
11552
115532008-09-15 Martin Rudalics <rudalics@gmx.at>
11554
11555 * window.c (Fselect_window): Don't update window_select_count and
11556 use_time when norecord is not nil.
11557
115582008-09-14 Kenichi Handa <handa@m17n.org>
11559
11560 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11561 specpdl_ptr.
11562
115632008-09-12 Kenichi Handa <handa@m17n.org>
11564
11565 * indent.c (scan_for_column): Don't handle automatic composition
11566 if the current buffer is not associated with a window.
11567
11568 * composite.c (composition_reseat_it): If the current buffer is
11569 not associated with a window, ignore the automatic composition.
11570 (find_automatic_composition): Likewise.
11571
115722008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11573
11574 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11575 (Fgpm_mouse_stop): Use it.
11576 * termhooks.h (close_gpm): Declare.
11577 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11578 connection if Gpm_GetEvent fails.
11579
11580 * window.c (set_window_buffer): Always preserve current-buffer.
11581
115822008-09-12 Glenn Morris <rgm@gnu.org>
11583
11584 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11585
115862008-09-11 Glenn Morris <rgm@gnu.org>
11587
11588 * charset.c (charset-map-path): Doc fix.
11589
115902008-09-10 Kenichi Handa <handa@m17n.org>
11591
11592 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11593
11594 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11595 compose a grapheme cluster with the preceding base glyph.
11596
11597 * composite.c (composition_compute_stop_pos): Fix previous change.
11598 Reset cmp_it->id to -1 at first.
11599
116002008-09-10 Glenn Morris <rgm@gnu.org>
11601
11602 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11603
116042008-09-09 Chong Yidong <cyd@stupidchicken.com>
11605
11606 * keyboard.c (read_key_sequence): Reapply translation maps when
11607 switching keyboards.
11608
116092008-09-09 Kenichi Handa <handa@m17n.org>
11610
11611 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11612 characters.
11613
11614 * composite.c (FORWARD_CHAR): Fix calculation
11615 of (POSITION).pos_byte.
11616 (composition_compute_stop_pos): Limit the search of composition to
11617 at most 500 characters ahead. If we reach the limit or find a
11618 newline, set cmp_it->ch to -2 and return 0.
11619 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11620
116212008-09-08 Kenichi Handa <handa@m17n.org>
11622
11623 * indent.c (Fvertical_motion): Be sure to set
11624 it_overshoot_expected if it.cmp_it.id is non-negative.
11625
116262008-09-07 Andreas Schwab <schwab@suse.de>
11627
11628 * callproc.c (Fcall_process): Don't hold references to string data
11629 across garbage collection. Move initialisation of new_argv down
11630 to avoid compiler bug.
11631
116322008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11633
11634 * process.c (Fsystem_process_attributes): Doc fix.
11635
116362008-09-07 Chong Yidong <cyd@stupidchicken.com>
11637
11638 * callproc.c (Fcall_process): Canonicalize current directory name.
11639
11640 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11641 iterator advances to the next line if the current line ends in a
11642 continued tab.
11643
116442008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11645
11646 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11647 member to point to cmp_from.
11648
11649 * xdisp.c: Doc fix for references to gidx data member.
11650
116512008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11652
11653 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11654
116552008-09-07 Kenichi Handa <handa@m17n.org>
11656
11657 * composite.c (FORWARD_CHAR): Check STOP after
11658 incrementing (POSITION).pos.
11659
116602008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11661
11662 * process.c (Fsystem_process_attributes): Doc fix.
11663
116642008-09-06 Chong Yidong <cyd@stupidchicken.com>
11665
11666 * keyboard.c (Ftop_level): Doc fix.
11667
116682008-09-06 Eli Zaretskii <eliz@gnu.org>
11669
11670 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11671 minibuffer, don't let lower part of menu invade the echo area.
11672
11673 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11674 "char *q" to access menu text and advance through it. Revert the
11675 change that displayed ">" instead of ASCII character 0x10.
11676
116772008-09-05 Eli Zaretskii <eliz@gnu.org>
11678
11679 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11680 toggle boxes and radio buttons on MS-DOS as well.
11681
116822008-09-05 Kenichi Handa <handa@m17n.org>
11683
11684 * composite.c (autocmp_chars): Check lookback count.
11685 (composition_compute_stop_pos): Set cmp_it->lookback.
11686 (composition_reseat_it): Check lookback count.
11687 (struct position_record): New struct.
11688 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11689 (find_automatic_composition): New function.
11690 (composition_adjust_point): Use find_automatic_composition.
11691
11692 * dispextern.h (struct composition_it): New member lookback.
11693
116942008-09-02 Chong Yidong <cyd@stupidchicken.com>
11695
11696 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11697 if moving by a single line.
11698
116992008-09-02 Andreas Schwab <schwab@suse.de>
11700
11701 * xterm.c (x_delete_display): Fix merge error.
11702
11703 * fileio.c (Fexpand_file_name): Remove unused variables.
11704
117052008-09-02 Eli Zaretskii <eliz@gnu.org>
11706
11707 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11708 storage on all platforms, not just on DOS_NT.
11709
117102008-09-02 Jason Rumney <jasonr@gnu.org>
11711
b8ff72fa
SM
11712 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11713 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
11714
117152008-09-01 Chong Yidong <cyd@stupidchicken.com>
11716
11717 * xfaces.c (Finternal_set_alternative_font_family_alist)
11718 (Finternal_set_alternative_font_registry_alist): Properly copy
11719 entire alist structure.
11720
117212008-09-01 Kenichi Handa <handa@m17n.org>
11722
d66c0241 11723 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 11724 representative chars of the script is a vector.
d66c0241
JB
11725 (ftfont_list): Handle the case where the representative chars of
11726 the script is a vector.
aac0c6e3
MR
11727
11728 * character.c (syms_of_character): Docstring of
11729 script-representative-chars fixed.
11730
117312008-08-31 Eli Zaretskii <eliz@gnu.org>
11732
11733 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11734 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11735 the menu. Allocate larger buffer for `text', to account for
11736 possible ^C characters.
11737
117382008-08-31 Martin Rudalics <rudalics@gmx.at>
11739
11740 * xdisp.c (prepare_menu_bars): Don't call
11741 Vwindow_size_change_functions with arg Qt.
11742
117432008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11744
11745 * font.h (font_range):
11746 * fileio.c (report_file_error):
46e722a9
SM
11747 * composite.c (composition_update_it): Yet another int/Lisp_Object
11748 mixup (YAILOM).
aac0c6e3
MR
11749
117502008-08-30 Glenn Morris <rgm@gnu.org>
11751
11752 * data.c (Fmake_variable_frame_local): Doc fix.
11753
11754 * frame.c (Fmodify_frame_parameters): Doc fix.
11755
117562008-08-30 Eli Zaretskii <eliz@gnu.org>
11757
11758 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11759 needed by GetTokenInformation.
11760 (w32_system_process_attributes): Check return values of all system
11761 APIs.
11762
11763 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11764 only when the state changes.
11765 (IT_update_begin, IT_update_end): Add termscript trace.
11766
11767 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11768 clipboard is unavailable. Set dst to NULL if it doesn't point to
11769 malloc'ed data.
11770 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11771 passing random values to xfree.
11772
11773 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11774 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11775
117762008-08-29 Jason Rumney <jasonr@gnu.org>
11777
11778 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11779
117802008-08-29 Eli Zaretskii <eliz@gnu.org>
11781
11782 * composite.c (fill_gstring_body): Avoid compiler warnings.
11783
11784 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11785 LGLYPH_SET_CODE to avoid compiler warnings.
11786
2ae37cf0 11787 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11788
11789 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11790
11791 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11792 LGLYPH_SET_CODE.
11793
117942008-08-29 Kenichi Handa <handa@m17n.org>
11795
11796 * fileio.c (report_file_error): Don't downcase the first character
11797 of errstring if it is still unibyte.
11798
117992008-08-29 Kenichi Handa <handa@m17n.org>
11800
11801 These changes are to re-implement the automatic composition so
11802 that it doesn't use text properties.
11803
11804 * Makefile.in (ftfont.o): Depend on composite.h.
11805 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11806
11807 * character.h (Vunicode_category_table): Extern it.
11808
11809 * character.c (Vunicode_category_table): New variable.
11810 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11811
11812 * chartab.c (optimize_sub_char_table): Perform more greedy
11813 optimization.
11814
b8ff72fa
SM
11815 * composite.h (enum composition_method):
11816 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
11817 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11818 (Vcomposition_function_table): Extern it.
11819 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11820 (composition_gstring_put_cache, composition_gstring_from_id)
11821 (composition_gstring_p, composition_gstring_width)
11822 (composition_compute_stop_pos, composition_reseat_it)
11823 (composition_update_it, composition_adjust_point): Extern them.
11824 (Fcomposition_get_gstring): EXFUN it.
11825
d66c0241 11826 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
11827 (Vcomposition_function_table)
11828 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
11829 (gstring_hash_table, gstring_work, gstring_work_headers):
11830 New variables.
aac0c6e3
MR
11831 (gstring_lookup_cache, composition_gstring_put_cache)
11832 (composition_gstring_from_id, composition_gstring_p)
11833 (composition_gstring_width, fill_gstring_header)
11834 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11835 (composition_reseat_it, composition_update_it)
b8ff72fa 11836 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
11837 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11838 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 11839 Defsubr composition_get_gstring.
aac0c6e3
MR
11840
11841 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11842 cmp_id.
11843 (struct glyph_string): Delete the member gidx. New members
11844 cmp_id, cmp_from, and cmp_to.
11845 (enum it_method): Delete GET_FROM_COMPOSITION.
11846 (struct composition_it): New struct.
11847 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11848 Delete c, len, cmp_id, cmp_len in u.comp.
11849
11850 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 11851 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 11852 (enum lglyph_indices): Likewise.
b8ff72fa 11853 (font_range): Adjust extern.
aac0c6e3
MR
11854 (font_fill_lglyph_metrics): Extern it.
11855
11856 * font.c (QCf): New variable.
11857 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11858 (font_prepare_composition): Delete this function.
11859 (font_range): Type and arguments changed.
11860 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11861 (font_fill_lglyph_metrics): New function.
b8ff72fa 11862 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 11863 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
11864 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11865 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
11866
11867 * fontset.h (font_for_char): Extern it.
11868
11869 * fontset.c (font_for_char): New function.
11870
11871 * ftfont.c: Include composite.h.
11872 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 11873 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
11874
11875 * indent.c: Include composite.h and dispextern.h.
11876 (check_composition): Delete this function.
11877 (scan_for_column): Handle composition by
11878 composition_compute_stop_pos, composition_reseat_it, and
11879 composition_update_it.
11880 (compute_motion): Likewise.
11881 (Fvertical_motion): Fix checking of composition.
11882
11883 * keyboard.c (adjust_point_for_property): Check composition by
11884 composition_adjust_point.
11885
b8ff72fa 11886 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
11887 struct glyph_string.
11888
b8ff72fa
SM
11889 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11890 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
11891 struct glyph.
11892 (produce_composite_glyph): Likewise.
11893
b8ff72fa
SM
11894 * w32term.c (x_draw_composite_glyph_string_foreground):
11895 Adjust for the change of struct glyph_string.
aac0c6e3
MR
11896 (x_draw_glyph_string): Likewise.
11897
11898 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11899 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11900
11901 * xdisp.c: Include font.h.
11902 (it_props): Delete the entry for Qauto_composed.
11903 (init_iterator): Initialize it->cmp_it.id to -1.
11904 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 11905 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
11906 (handle_auto_composed_prop): Delete it.
11907 (handle_composition_prop): Handle only static composition.
11908 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11909 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 11910 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
11911 (pop_it): Likewise.
11912 (get_next_element): Delete next_element_from_composition.
11913 (CHAR_COMPOSED_P): New macro.
11914 (get_next_display_element): For automatic composition, get a face
11915 from the font in the glyph-string.
11916 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 11917 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
11918 (next_element_from_string): Check if the character at the current
11919 position is composed by CHAR_COMPOSED_P.
11920 (next_element_from_buffer): Likewise.
d66c0241
JB
11921 (next_element_from_composition): Adjust for the change of struct it.
11922 Update it->cmp_it.
b8ff72fa
SM
11923 (dump_glyph): Adjust for the change of struct glyph.
11924 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
11925 it and struct glyph. Don't handle automatic composition here.
11926 (fill_gstring_glyph_string): New function.
11927 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 11928 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
11929 (BUILD_GSTRING_GLYPH_STRING): New macro.
11930 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11931 automatic composition.
b8ff72fa 11932 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 11933 struct glyph.
b8ff72fa 11934 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 11935
b8ff72fa 11936 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
11937 the change of struct glyph_string.
11938 (x_draw_glyph_string): Likewise.
11939
119402008-08-29 Glenn Morris <rgm@gnu.org>
11941
11942 * buffer.c (word-wrap): Doc fix.
11943 * xdisp.c (truncate-partial-width-windows): Doc fix.
11944 Increase default to 50.
11945
119462008-08-29 Chong Yidong <cyd@stupidchicken.com>
11947
11948 * xdisp.c (update_tool_bar_unwind): New function.
11949 (update_tool_bar): Temporarily set selected frame before building
11950 tool-bar items.
11951
119522008-08-28 Michael Albinus <michael.albinus@gmx.de>
11953
11954 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11955 snprintf, respectively.
11956 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11957
119582008-08-28 Chong Yidong <cyd@stupidchicken.com>
11959
11960 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11961 LDFLAGS to GNUstep CC invocation.
11962
119632008-08-27 Chong Yidong <cyd@stupidchicken.com>
11964
11965 * indent.c (Fvertical_motion): Revert last change. Handle the
11966 general case where we are moving forward, and PT spans multiple
11967 screen lines.
11968
11969 * eval.c (find_handler_clause): Temporarily increase
11970 max-lisp-eval-depth while printing the backtrace buffer, to
11971 guarantee that help-mode code can run.
11972
119732008-08-27 Eli Zaretskii <eliz@gnu.org>
11974
11975 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11976 colors under -rv.
11977 (IT_set_frame_parameters): Don't swap foreground and background
11978 colors if `(reverse . t)' is present in the frame properties.
11979 (internal_terminal_init): Call init_frame_faces only for the
11980 initial frame.
11981
119822008-08-27 Andreas Schwab <schwab@suse.de>
11983
11984 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11985
119862008-08-27 Andreas Schwab <schwab@suse.de>
11987
11988 * search.c (search_buffer): Set char_base to zero only at the end.
11989
119902008-08-27 Kenichi Handa <handa@m17n.org>
11991
b8ff72fa 11992 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11993
119942008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11995
11996 * xterm.c (x_term_init): Temporarily hide the partially
11997 initialized terminal while calling vendor-specific-keysyms.
11998
119992008-08-26 Eli Zaretskii <eliz@gnu.org>
12000
12001 * msdos.c (internal_terminal_init): Most initializations done only
12002 once, especially initial_screen_colors[] and termscript open.
12003
120042008-08-26 Chong Yidong <cyd@stupidchicken.com>
12005
12006 * eval.c (Fcondition_case): Doc fix.
12007
12008 * widgetprv.h (EmacsFramePart): Change font member to the new font
12009 struct.
12010
12011 * widget.c: Include character.h and font.h for XSETFONT.
12012 (setup_frame_gcs): Compute X font id from font struct, just once.
12013
120142008-08-26 Eli Zaretskii <eliz@gnu.org>
12015
12016 * term.c (get_named_tty): Fix last change.
12017
120182008-08-26 Chong Yidong <cyd@stupidchicken.com>
12019
12020 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 12021 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
12022
120232008-08-25 Eli Zaretskii <eliz@gnu.org>
12024
12025 * frame.c (do_switch_frame): Mark previously displayed frame as
12026 obscured for FRAME_MSDOS_P frames as well.
12027
120282008-08-24 Eli Zaretskii <eliz@gnu.org>
12029
12030 * frame.c (make_terminal_frame): Initialize f->terminal,
12031 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12032 Set the top frame to newly created frame.
12033 (Fmake_terminal_frame): Reuse the_only_display_info.
12034
12035 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12036 estimating available memory.
12037
b97439ce 120382008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
12039
12040 * nsterm.m (ns_draw_window_cursor): Don't call
12041 NSDisableScreenUpdates and NSEnableScreenUpdates on
12042 non-NS_IMPL_COCOA systems.
12043
120442008-08-23 Andreas Schwab <schwab@suse.de>
12045
12046 * process.c (procfs_system_process_attributes): Fix use of
12047 uninitialized variables.
12048
120492008-08-23 Eli Zaretskii <eliz@gnu.org>
12050
12051 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12052
12053 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12054 calling tty-set-up-initial-frame-faces.
12055
b8ff72fa
SM
12056 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12057 Allow MSDOS frames along with X frames.
aac0c6e3
MR
12058
12059 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12060 addition to output_termcap.
12061
12062 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12063
12064 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12065 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12066 highlight.
12067
12068 * process.c [!subprocesses]: Define QCname.
12069 (syms_of_process): Intern and staticpro it.
12070
12071 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
12072 Adjust for changes in encoding/decoding routines.
12073 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
12074 encode_coding and decode_coding.
12075
b8ff72fa 12076 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
12077
12078 * dosfns.c: Include frame.h before termhooks.h.
12079 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12080 variable termscript.
12081
12082 * s/msdos.h (USER_FULL_NAME): Define.
12083 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12084
12085 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12086 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12087 pw->pw_gecos.
12088
12089 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12090 SELECTED_FRAME as additional (1st) argument.
12091 (tty_read_avail_input): Handle output_msdos_raw in
12092 addition to output_termcap.
12093
12094 * msdos.c: Include frame.h before termhooks.h.
12095 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12096 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12097 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12098 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12099 (IT_set_terminal_modes, IT_reset_terminal_modes)
12100 (IT_set_frame_parameters): Use tty->termscript instead of a global
12101 variable termscript.
12102 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12103 global variable terminal_coding. Don't refer to
12104 Vnonascii_translation_table.
12105 (internal_terminal_init): Set Vwindow_system in current_kboard.
12106 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12107 Announce date and time of session start, if termscript is open.
12108 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
12109 term.c:init_tty). Open termscript only of not already open.
12110 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
12111 here instead of dos_ttraw. Don't initialize display if this is an
12112 initial tty. Don't set FRAME_FONT.
12113 (Vwindow_system_version): Bump to 23.
12114 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12115 is available, set up mouse_position_hook.
12116 (dos_ttraw, IT_set_terminal_modes): If called with initial
12117 terminal, do nothing.
12118 (IT_set_frame_parameters): Handle the Qtty_type frame
12119 parameter by calling internal_terminal_init.
12120 (dos_set_window_size, show_mouse_face)
12121 (clear_mouse_face, IT_note_mode_line_highlight)
12122 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12123 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12124 (initialize_msdos_display): New function.
12125 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12126 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12127 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12128 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 12129 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
12130 (request_sigio, unrequest_sigio): Don't define, now defined on
12131 sysdep.c.
12132 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12133
12134 * term.c [MSDOS]: Include msdos.h.
12135 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12136 conditional to DOS_NT. Allow only one call to this function in a
12137 session. Don't allocate a new struct tty_display_info; instead,
12138 reuse the_only_display_info. Call get_tty_size to get screen
12139 dimensions. Call init_baud_rate to set bad_rate.
12140 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12141 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 12142 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
12143 (get_tty_terminal, get_named_tty, Ftty_type)
12144 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12145 output_termcap.
b8ff72fa
SM
12146 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12147 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 12148 only when subprocesses are supported.
aac0c6e3
MR
12149
12150 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12151 f->output_data.x.
12152 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12153 terminal devices.
12154
5582fbc7 12155 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
12156 x_output.
12157 (FRAME_FONT): Use output_data.tty.
12158 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
12159 (struct x_display_info): Rename from display_info. Update all users in
12160 msdos.c.
aac0c6e3 12161 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 12162 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
12163 (dos_ttraw): Update prototype.
12164
12165 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12166 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12167
121682008-08-23 Jason Rumney <jasonr@gnu.org>
12169
12170 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12171 (fn_TIFFSetDirectory): New library function used.
12172 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12173 (tiff_load): Use :index to select among multiple images. Set count
12174 property when multiple images exist.
12175 (gif_format): Use :index, not :image.
12176
121772008-08-23 Chong Yidong <cyd@stupidchicken.com>
12178
12179 * xdisp.c (try_scrolling): Check INT_MAX instead of
12180 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12181 to obtain INT_MAX.
12182
121832008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12184
12185 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12186
121872008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12188
12189 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12190 GNUstep library location.
12191
121922008-08-21 Chong Yidong <cyd@stupidchicken.com>
12193
12194 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12195 before using it.
12196
12197 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12198
121992008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12200
12201 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12202 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12203 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12204 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12205 (EmacsApp-cursor_blink_handler): Remove declaration.
12206 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12207 match 01 Feb 2008 changes in xterm.c.
12208 (ns_read_socket): Add cast to avoid warning.
12209 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12210 GNUstep.
12211
122122008-08-20 Chong Yidong <cyd@stupidchicken.com>
12213
12214 * xselect.c (x_get_foreign_selection): Return nil if desired
12215 selection could not be obtained, instead of signalling an error.
12216
122172008-08-20 David Reitter <david.reitter@gmail.com>
12218
12219 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12220 * nsterm.m: Remove ns-specific code for cursor blinking.
12221 (ns_draw_window_cursor): Clear cursor properly rather than
12222 redrawing the area. Respect width of bar cursors.
12223 These changes enable the use of generic blink-cursor-mode and
12224 generic cursor types in NS and support smooth cursor movements (do
12225 not blink off after command).
12226 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12227 Nextstep, too.
12228
122292008-08-19 Kenichi Handa <handa@m17n.org>
12230
12231 * font.c (Vfont_log_deferred): New variable.
12232 (font_add_log): Check Vfont_log_deferred.
12233 (font_deferred_log): New function.
12234
12235 * font.h (font_deferred_log): Extern it.
12236
12237 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12238 for sorting.
12239 (face_for_char): Use deferred log.
12240
122412008-08-18 Kenichi Handa <handa@m17n.org>
12242
12243 * fontset.c (face_for_char): Add font log.
12244
12245 * font.c (font_add_log): Add the font properties :script, :lang,
12246 and :otf in the log.
12247
122482008-08-17 Chong Yidong <cyd@stupidchicken.com>
12249
12250 * xdisp.c: Remove dead code.
12251 (handle_invisible_prop, next_overlay_string): Defer call to
12252 setup_for_ellipsis.
12253 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12254
122552008-08-15 Chong Yidong <cyd@stupidchicken.com>
12256
12257 * xfaces.c (lookup_derived_face): Properly handle possible zero
12258 return value of get_lface_attributes.
12259 (merge_faces): Don't tell lookup_derived_face to signal an error
12260 if face is not found.
12261
12262 * dired.c (Fdirectory_files): Doc fix.
12263
12264 * process.c (make_process): Initialize kill_without_query struct
12265 member.
12266
122672008-08-15 Eli Zaretskii <eliz@gnu.org>
12268
12269 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12270 Alternative calculation of totphys for Visual Studio 6.
12271
12272 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12273
12274 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12275 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12276 All users changed.
12277 (stat): Only root directory passed to GetDriveType. Allow RAM
12278 disk as well as local fixed disk when w32-get-true-file-attributes
12279 is set to `local'.
12280 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12281 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12282 (w32_cached_id, w32_add_to_cache): New functions.
12283 (get_name_and_id): Look account names in the cache before calling
12284 lookup_account_sid.
12285 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12286 New initialization flags.
12287 (globals_of_w32): Initialize them to zero.
12288 (w32_system_process_attributes): Use w32_cached_id and
12289 w32_add_to_cache.
12290
122912008-08-14 Lawrence Mitchell <wence@gmx.li>
12292
12293 * lread.c (Fread_char, Fread_char_exclusive): If no character
12294 event is read before timeout is reached, return nil, rather than
12295 converting to a number.
12296
122972008-08-14 Chong Yidong <cyd@stupidchicken.com>
12298
12299 * fns.c (use_dialog_box): Doc fix.
12300
12301 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12302 on OS X.
12303
123042008-08-13 Chong Yidong <cyd@stupidchicken.com>
12305
12306 * frame.c (Qns_parse_geometry): New var.
12307 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12308
123092008-08-11 Chong Yidong <cyd@stupidchicken.com>
12310
12311 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12312 space character in calculating tabs.
12313
123142008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12315
12316 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12317
123182008-08-10 Glenn Morris <rgm@gnu.org>
12319
12320 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12321 silence gcc "limited range of data type" warnings in some
12322 make_fixnum_or_float calls.
12323
123242008-08-09 Eli Zaretskii <eliz@gnu.org>
12325
12326 * w32.c (w32_system_process_attributes): If the process does not
12327 exist, return nil.
12328
12329 * w32.c: Include thelp32.h, psapi.h and coding.h.
12330 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12331 declarations.
12332 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12333 (Process32Next_Proc): New typedefs.
12334 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12335 (g_b_init_process32_next, g_b_init_open_thread_token)
12336 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12337 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12338 (g_b_init_get_process_working_set_size)
12339 (g_b_init_global_memory_status_ex): New static variables.
12340 (globals_of_w32): Initialize them.
12341 (create_toolhelp32_snapshot, process32_first, process32_next)
12342 (open_thread_token, impersonate_self, revert_to_self)
12343 (get_process_memory_info, get_process_working_set_size)
12344 (global_memory_status, global_memory_status_ex): New wrapper
12345 functions.
12346 (w32_list_system_processes, w32_system_process_attributes)
12347 (enable_privilege, restore_privilege, ltime, process_times):
12348 New functions.
12349 (convert_time_raw): New function.
12350 (convert_time): Remove conversion of FILETIME into time in 100
12351 nsec units, call convert_time_raw instead.
12352
12353 * process.h (w32_list_system_processes, w32_system_process_attributes):
12354 Add prototypes.
12355 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12356 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12357 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12358 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12359
12360 * process.c (Fsystem_process_attributes): Doc fix.
12361
123622008-08-08 Chong Yidong <cyd@stupidchicken.com>
12363
12364 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12365 a continued multi-char glyph; if so, advance to the actual glyph.
12366
123672008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12368
12369 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12370
12371 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12372 (.m.o): Use it.
12373 * config.in: Regenerate.
12374
123752008-08-07 Chong Yidong <cyd@stupidchicken.com>
12376
12377 * xdisp.c (redisplay_window): Revert last change.
12378 (try_window): Check bottom scroll margin too.
12379
123802008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12381
12382 * config.in: Regenerate.
12383
12384 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12385 -list-load-path-shadows'.
12386 (nsgui.h): Reduce number of things depending on it.
12387
123882008-08-06 Chong Yidong <cyd@stupidchicken.com>
12389
12390 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12391 instead of window-end which does the wrong thing at eob.
12392 (try_cursor_movement): Minor optimization.
12393 (redisplay_window): If scroll margin is defined, don't assume
12394 window doesn't need scrolling.
12395
123962008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12397
12398 * config.in: Regenerate.
12399
12400 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12401 (mostlyclean): Don't delete *.d under NS.
12402
12403 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12404
124052008-08-06 Kenichi Handa <handa@m17n.org>
12406
12407 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12408
124092008-08-06 Andreas Schwab <schwab@suse.de>
12410
12411 * config.in: Regenerate.
12412
124132008-08-05 Chong Yidong <cyd@stupidchicken.com>
12414
12415 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12416 forcing a window start.
12417
12418 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12419 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12420
124212008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12422
12423 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12424 argument.
12425
124262008-08-05 Juanma Barranquero <lekktu@gmail.com>
12427
12428 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12429 <scroll-down-aggressively, before-change-functions>:
12430 <after-change-functions>: Reflow docstrings.
12431
124322008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 12433 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
12434
12435 Dock menu customization, based on a patch by Ken Raeburn, plus some
12436 other fixes.
12437 * nsmenu.m (dockMenu): New variable.
12438 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12439
12440 * nsterm.h (dockMenu): Declare.
12441
12442 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12443 (ns_term_init): Initialize dockMenu.
12444 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12445 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12446 left.
12447
12448 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12449
124502008-08-04 Chong Yidong <cyd@stupidchicken.com>
12451
12452 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12453
12454 * config.in: Regenerate.
12455
124562008-08-04 Seiji Zenitani <zenitani@mac.com>
12457
12458 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12459
124602008-08-04 Chong Yidong <cyd@stupidchicken.com>
12461
12462 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12463
124642008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12465
12466 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12467
12468 * keyboard.h: Comment an #endif.
12469
12470 * lisp.h (have_menus_p): Adjust comment.
12471
12472 * menu.c (find_and_return_menu_selection): Fix comparison with
12473 client_data.
12474
12475 * nsmenu.m (popup_activated_flag): New variable.
12476 (popup_activated): New function.
12477 (menu-or-popup-active-p): New exported lisp definition.
12478 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12479 when popup done.
12480 (ns_popup_dialog): Set popup_activated_flag.
12481
12482 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12483 version for GNUstep (handled by conditional typedef in nsterm.m).
12484 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12485 in rgb.txt).
12486
12487 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12488
12489 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12490
12491 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12492
12493 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12494 shortcircuit if popup_activated like GTK and X toolkit.
12495
12496 * m/inter386.h: Change DARWIN to DARWIN_OS.
12497
12498 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12499 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12500 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12501 comment on NO_SOCK_SIGIO.
12502
125032008-08-03 Chong Yidong <cyd@stupidchicken.com>
12504
12505 * nsterm.m (windowDidResize): Remove stopModal call.
12506
125072008-08-03 Andreas Schwab <schwab@suse.de>
12508
12509 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12510 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12511
125122008-08-02 Chong Yidong <cyd@stupidchicken.com>
12513
12514 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12515 Don't use uninitialized pointer variable when using getrlimit.
12516
125172008-08-02 Jason Rumney <jasonr@gnu.org>
12518
12519 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12520
125212008-08-02 Eli Zaretskii <eliz@gnu.org>
12522
12523 * alloc.c (NSTATICS): Bump to 0x640.
12524
12525 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12526
12527 * lisp.h: Add prototype for directory_files_internal.
12528
12529 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12530 New functions.
12531 (syms_of_process): Defsubr them. Add initializations for various
12532 Q* symbols used in procfs_system_process_attributes.
12533 (procfs_list_system_processes, procfs_system_process_attributes)
12534 [HAVE_PROCFS]: New functions.
12535 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12536 (procfs_get_total_memory): New functions.
12537
125382008-08-01 Juanma Barranquero <lekktu@gmail.com>
12539
12540 * xfaces.c (Fx_load_color_file): Fix previous change;
12541 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12542
125432008-08-01 Michael Albinus <michael.albinus@gmx.de>
12544
12545 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12546
125472008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12548
12549 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12550
125512008-08-01 Chong Yidong <cyd@stupidchicken.com>
12552
12553 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12554
12555 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12556 define NSApplicationDelegateReplySuccess.
12557 (EmacsView -converstationIdentifier): Use long instead of
12558 NSInteger for GNUstep, since it doesn't have NSInteger.
12559
12560 * xmenu.c: Revert last change.
12561
12562 * keyboard.h: Fix last change.
12563
125642008-08-01 Juanma Barranquero <lekktu@gmail.com>
12565
12566 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12567 on Windows.
12568
125692008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12570
12571 Warning clearing and clean-up in NS port.
12572 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12573 Add prototypes.
12574 * nsgui.h (FACE_DEFAULT): Remove, unused.
12575 (XGCValues): Change colors to unsigned long.
12576 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12577 nsterm.m.
12578 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12579 (ns_list_fonts): Remove, unused.
12580 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12581 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12582 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12583 (nsfont_draw): Compare face colors to 0, not nil.
12584 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12585 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12586 (-addSubmenuWithTitle:): Use NSMenuItem class.
12587 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12588 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12589 (ns_clip_to_row): Make gc arg a BOOL.
12590 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12591 ns_clip_to_row() call.
12592 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12593 used). Cast FRAME_FONT assignments.
12594 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12595 (ns_string_to_lispmod): Change arg to const char.
12596 (ns_term_init): Use NSMenuItem class.
12597 (EmacsApp -openFile:): Move to different section of file.
12598 (EmacsApp -application:openFiles:): Don't return a value, call
12599 -replyToOpenOrPrint:.
12600 (EmacsView -keyDown:): Fix up cast.
12601 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12602 (EmacsView -menuDown:): Cast tag in call to
12603 find_and_call_menu_selection().
12604 (ns_list_fonts): Remove, unused.
12605 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12606 (ns_fontname_to_xlfd): Make static.
12607 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12608 Remove prototypes (now in keyboard.h).
12609 (next_menubar_widget_id): Remove, unused.
12610 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12611 Remove prototypes (now in keyboard.h).
12612 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12613
126142008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12615
12616 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12617 (floatfns.o): Depend on syssignal.h.
12618 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12619
12620 * systty.h: Fix previous change that removed BSD_TERMIOS.
12621 Add comments to #ifdefs.
12622
126232008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12624
12625 * w32fns.c (w32-load-color-file): Remove.
12626 (x-open-connection): Use renamed Fx_load_color_file.
12627 * xfaces.c (x-load-color-file): Add.
12628 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12629 Emacs.clr.
12630 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12631
126322008-07-31 Michael Albinus <michael.albinus@gmx.de>
12633
12634 * dbusbind.c (Fdbus_call_method_asynchronously)
12635 (Fdbus_method_error_internal): New defuns.
12636 (xd_read_message): Handle also reply messages.
12637 (Vdbus_registered_functions_table): Extend docstring.
12638
126392008-07-31 Juanma Barranquero <lekktu@gmail.com>
12640
12641 * keyboard.c (gobble_input): Fix previous change.
12642
126432008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12644
12645 * bitmaps/README:
12646 * xfns.c:
12647 * termcap.c:
12648 * term.c:
12649 * syswait.h:
12650 * systty.h:
12651 * systime.h:
12652 * syssignal.h:
12653 * sysdep.c:
12654 * process.h:
12655 * process.c:
12656 * print.c:
12657 * ndir.h:
12658 * lread.c:
12659 * keyboard.c:
12660 * getpagesize.h:
12661 * floatfns.c:
12662 * fileio.c:
12663 * emacs.c:
12664 * doc.c:
12665 * dispnew.c:
12666 * dired.c:
12667 * data.c:
12668 * callproc.c:
12669 * buffer.c:
12670 * README:
12671 * Makefile.in:
12672 * s/template.h:
12673 * s/msdos.h:
12674 * m/vax.h: Remove VMS support.
12675 * s/vms.h:
12676 * vlimit.h:
12677 * uaf.h:
12678 * temacs.opt:
12679 * param.h:
12680 * ioctl.h: Remove file.
12681
126822008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12683
12684 * s/ms-w32.h (MULTI_KBOARD): Remove.
12685 * xterm.c:
12686 * xselect.c:
12687 * xfns.c:
12688 * window.c:
12689 * w32term.c:
12690 * w32fns.c:
12691 * terminal.c:
12692 * termhooks.h:
12693 * term.c:
12694 * sysdep.c:
12695 * keyboard.h:
12696 * keyboard.c:
12697 * frame.h:
12698 * frame.c:
12699 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12700 * config.in: Regenerate.
12701
127022008-07-30 Jason Rumney <jasonr@gnu.org>
12703
12704 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12705
12706 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12707 (w32font_open_internal): Get unicode version of textmetrics.
12708 Don't enable or disable glyph indices here.
12709 (w32font_open): Disable use of glyph indices.
12710
12711 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12712
127132008-07-30 Chong Yidong <cyd@stupidchicken.com>
12714
12715 * minibuf.c (Vread_buffer_function): Doc fix.
12716
127172008-07-30 John Paul Wallington <jpw@pobox.com>
12718
12719 * minibuf.c (read_buffer_completion_ignore_case): New var.
12720 (Fread_buffer): Use it.
12721
127222008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12723
12724 * systty.h (sensemode): Remove empty #if. Remove reference to
12725 BSD_TERMIOS, unused.
12726
12727 * sysdep.c: Remove reference to DGUX.
12728 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12729
12730 * config.in: Regenerate.
12731
127322008-07-30 Jason Rumney <jasonr@gnu.org>
12733
12734 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12735
127362008-07-29 Jason Rumney <jasonr@gnu.org>
12737
12738 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12739 is populated.
12740 (uniscribe_encode_char): Always use uniscribe.
12741 Avoid using context if cache is populated.
12742
127432008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12744
12745 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12746 open menu.
12747
12748 * gtkutil.c (menu_nav_ended): Remove.
12749 (create_menus): Remove signal connect for menu_nav_ended.
12750
127512008-07-28 Chong Yidong <cyd@stupidchicken.com>
12752
12753 * xdisp.c (redisplay_window): Check return value of
12754 compute_window_start_on_continuation_line before forcing a window
12755 start.
12756
127572008-07-28 Jason Rumney <jasonr@gnu.org>
12758
12759 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12760
12761 * w32term.c (w32_enable_unicode_output, cleartype_active):
12762 Remove obsolete display options.
12763 (x_draw_glyph_string_background): Don't use old cleartype_active
12764 workaround.
12765 (w32_initialize): Remove cleartype_active initialization.
12766 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12767
127682008-07-28 Andreas Schwab <schwab@suse.de>
12769
12770 * lisp.h (init_weak_hash_tables, syms_of_font)
12771 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12772 (remove_hash_entry): Don't declare.
12773 * eval.c (maybe_call_debugger): Make static and move before use.
12774 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12775 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12776 * xterm.h (x_set_frame_alpha): Declare.
12777
127782008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12779
12780 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12781 (create_menus): Connect selection-done to menu_nav_ended.
12782
127832008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12784
12785 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12786 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12787 parameter with read of 'alpha' one.
12788 (Qns_frame_parameter): Remove.
5582fbc7 12789 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12790 (next-selection-coding-system, Vselection_coding_system)
12791 (Vnext_selection_coding_system): Drop.
12792
127932008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12794
12795 * nsfns.m (do-applescript, do_applescript): Rename to
12796 ns-do-applescript, ns_do_applescript, and move within file.
12797
127982008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12799
12800 Remove support for Mac Carbon.
12801 * mactoolbox.c:
12802 * macterm.h:
12803 * macterm.c:
12804 * macselect.c:
12805 * macmenu.c:
12806 * macgui.h:
12807 * macfns.c:
12808 * mac.c: Remove file.
12809 * s/darwin.h:
12810 * m/intel386.h:
12811 * xfaces.c:
12812 * xdisp.c:
12813 * window.c:
12814 * tparam.c:
12815 * termhooks.h:
12816 * termcap.c:
12817 * term.c:
12818 * syssignal.h:
12819 * sysselect.h:
12820 * sysdep.c:
12821 * process.c:
12822 * lread.c:
12823 * lisp.h:
12824 * keyboard.c:
12825 * image.c:
12826 * fringe.c:
12827 * frame.h:
12828 * frame.c:
12829 * fontset.c:
12830 * font.h:
12831 * font.c:
12832 * fns.c:
12833 * fileio.c:
12834 * emacs.c:
12835 * dispnew.c:
12836 * dispextern.h:
12837 * config.in:
12838 * atimer.c:
2ae37cf0 12839 * Makefile.in: Remove code for Carbon.
aac0c6e3 12840
f0131492 128412008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12842
12843 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12844
128452008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12846
12847 * macterm.h (kCGBitmapByteOrder32Host): New define for
12848 non-universal SDKs.
12849
12850 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12851 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12852
12853 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12854 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12855
128562008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12857
12858 * w32inevt.c: Include dispextern.h.
12859
128602008-07-26 Andreas Schwab <schwab@suse.de>
12861
12862 * print.c (print_object): Fix off-by-one in last change.
12863
128642008-07-25 Juanma Barranquero <lekktu@gmail.com>
12865
12866 * term.c (syms_of_term): Don't initialize default_orig_pair,
12867 default_set_foreground and default_set_background on Windows.
12868
128692008-07-25 Jason Rumney <jasonr@gnu.org>
12870
12871 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12872 ScriptItemize. Clean up return value checking. Remove unused
12873 variables.
12874 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12875 shaping engine.
12876
12877 * w32font.c (w32font_has_char): Handle the case where we can't
12878 determine the script for a character.
12879
128802008-07-25 Chong Yidong <cyd@stupidchicken.com>
12881
12882 * term.c (syms_of_term): Initialize default_orig_pair,
12883 default_set_foreground, and default_set_background.
12884
12885 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12886 clash (bug#86).
12887 (getloadavg): Callers changed.
12888
12889 * image.c (svg_load_image): Fix last change.
12890 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12891 image size is valid. Use g_object_unref instead of deprecated
12892 rsvg_handle_free to free rsvg handle.
12893 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12894
128952008-07-25 Jason Rumney <jasonr@gnu.org>
12896
12897 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12898 surrogates before looking up glyph index.
12899 (w32font_text_extents): Encode as surrogates if falling back to
12900 functions that need UTF-16 wide chars.
12901
12902 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12903 BMP as surrogates before looking up glyph index.
12904
129052008-07-25 Chong Yidong <cyd@stupidchicken.com>
12906
12907 * image.c (svg_load_image): Check for failure in return value of
12908 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12909
129102008-07-25 Jason Rumney <jasonr@gnu.org>
12911
12912 * w32font.c (Fx_select_font): Reverse sense of second arg.
12913
129142008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12915
12916 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12917 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12918
12919 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12920 (PURESIZE): Use it.
12921
129222008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12923
12924 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12925 * m/alpha.h (TEXT_END):
12926 * m/ibmrs6000.h (TEXT_END):
12927 * m/macppc.h (TEXT_END):
12928 * s/darwin.h (TEXT_END):
12929 * s/msdos.h (TEXT_END): Remove, unused.
12930 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12931 * s/cygwin.h: Remove comment.
12932
12933 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12934 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12935 * m/intel386.h (DOT_GLOBAL_START):
12936 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12937 (USG): Remove, file not used on USG platforms.
12938
12939 * Makefile.in (HAVE_X11): Remove empty #else.
12940
129412008-07-24 Andreas Schwab <schwab@suse.de>
12942
12943 * fileio.c (Finsert_file_contents): Properly adjust undo list
12944 after format conversion.
12945
129462008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12947
12948 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12949 (menu_nav_ended): Remove.
12950 (create_menus): Remove signal connect for menu_nav_ended.
12951 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12952 create_menus.
12953 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12954
129552008-07-23 Jason Rumney <jasonr@gnu.org>
12956
12957 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12958 with opened font.
12959 (w32font_open): Set font type to gdi.
12960
12961 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12962
129632008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12964
12965 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12966 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12967 defines it.
12968 * unexec.c (ADDR_CORRECT): Define unconditionally.
12969
12970 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12971
12972 * unexec.c: Remove code depending on !COFF and USG, the file is
12973 not used for such systems.
12974
12975 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12976 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12977 (LD_SWITCH_SYSTEM_1): Remove, update users.
12978
12979 * s/darwin.h (DATA_END):
12980 * m/intel386.h (DATA_END):
12981 * m/ibmrs6000.h (DATA_END):
12982 * m/alpha.h (DATA_END): Remove, unused.
12983
12984 * config.in: Regenerate.
12985 * s/ms-w32.h (subprocesses): Define unconditionally.
12986 * s/template.h (subprocesses): Update comment.
12987 * s/vms.h (subprocesses):
12988 * s/usg5-4.h (subprocesses):
12989 * s/hpux10-20.h (subprocesses):
12990 * s/gnu-linux.h (subprocesses):
12991 * s/cygwin.h (subprocesses):
12992 * s/bsd-common.h (subprocesses):
12993 * s/aix4-2.h (subprocesses):
12994 * s/darwin.h (subprocesses): Do not define, defined by default now.
12995
12996 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12997 Remove all references.
12998 (temacs): Add GNUstep specific ld flags.
12999
13000 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13001 similarly to what X does.
13002
130032008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13004
13005 * nsfns.m (x-list-fonts): Remove.
13006 (syms_of_nsfns): Drop the x-list-fonts declaration.
13007 * nsterm.m: Get rid of remaining "//" comments.
13008
130092008-07-22 Chong Yidong <cyd@stupidchicken.com>
13010
13011 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13012
13013 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13014 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13015 (Fns_own_selection_internal, Fx_disown_selection_internal)
13016 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13017
13018 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13019 ... */' style of docstrings. Doc fixes.
13020
130212008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13022
13023 * terminfo.c (UP, BC, PC): Undo previous change.
13024
13025 * nsfns.m: Rename ns prefixed functions/variables to the
13026 corresponding x versions. Update references.
13027
130282008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13029
13030 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13031
130322008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13033
13034 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13035 Remove forwarding functions.
13036 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13037 non-static.
13038 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13039 non-static.
13040 (ns_frame_parm_handlers): Use the new names.
13041 (syms_of_nsfns): Move to the end of file.
13042
13043 * nsterm.m (syms_of_nsterm): Move to the end of file.
13044
13045 * dispnew.c (init_display): Remove code for X10.
13046
130472008-07-22 Jason Rumney <jasonr@gnu.org>
13048
13049 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13050 bare drive.
13051
130522008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13053
13054 * nsterm.m (syms_of_nsterm): Remove debugging println.
13055
130562008-07-22 David Reitter <david.reitter@gmail.com>
13057
13058 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13059 Carbon implementation of the same functionality: execute arbitrary
13060 AppleScript code.
13061
130622008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13063
13064 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13065 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13066 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13067 (Fx_display_mm_height, Fx_display_mm_width)
13068 (Fx_display_backing_store, Fx_display_visual_class)
13069 (Fx_display_save_under, Fx_open_connection)
13070 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13071 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13072 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13073 (Fx_display_pixel_width, Fx_display_pixel_height)
13074 (Fx_display_usable_bounds, Fx_display_planes)
13075 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13076 ... */' style of docstrings.
13077
130782008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13079
13080 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13081 on this platform.
13082 (mips):
13083 * m/iris4d.h (mips): Do not define.
13084 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13085
13086 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13087
13088 * image.c:
13089 * nsfns.m:
13090 * nsselect.m:
13091 * nsterm.h:
13092 * nsterm.m: Rename ns prefixed functions/variables to the
13093 corresponding x versions. Update references.
13094
13095 * m/ibms390x.h (NO_REMAP): Do not undefine.
13096
13097 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13098
130992008-07-21 Chong Yidong <cyd@stupidchicken.com>
13100
13101 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13102 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13103 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13104 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13105 (Fns_display_mm_height, Fns_display_mm_width)
13106 (Fns_display_backing_store, Fns_display_visual_class)
13107 (Fns_display_save_under, Fns_open_connection)
13108 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13109 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13110 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13111 (Fns_display_pixel_width, Fns_display_pixel_height)
13112 (Fns_display_usable_bounds, Fx_display_planes)
13113 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13114
131152008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13116
13117 * print.c (print_object): Check print_depth before searching for
13118 circularities.
13119
131202008-07-21 Michael Albinus <michael.albinus@gmx.de>
13121
13122 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13123 only sprintf.
13124
131252008-07-21 Kenichi Handa <handa@m17n.org>
13126
13127 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13128
131292008-07-20 Andreas Schwab <schwab@suse.de>
13130
13131 * syntax.c (find_start_pos, find_start_value)
13132 (find_start_value_byte, find_start_begv, find_defun_start)
13133 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13134
131352008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13136
13137 * s/sol2-3.h: Insert contents of s/sol2.h.
13138 (LD_SWITCH_SYSTEM): Remove redundant definition.
13139 * s/sol2.h: Remove, unused.
13140
131412008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13142
13143 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13144
131452008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13146
13147 * Makefile.in (ns_appdir): Fix typo in find command.
13148
131492008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13150
13151 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13152
13153 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13154 added not supported anymore.
13155
13156 * s/usg5-4-2.h (LIBS_SYSTEM):
13157 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13158
13159 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13160 * s/lynxos.h (GETPGRP_NO_ARG):
13161 * s/hpux10-20.h (NO_SIOCTL_H):
13162 * s/gnu.h (GETPGRP_NO_ARG):
13163 * s/gnu-linux.h (NO_SIOCTL_H):
13164 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13165 * s/cygwin.h (GETPGRP_NO_ARG):
13166 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13167 (C_DEBUG_SWITCH): Remove duplicate definition.
13168
13169 * m/ibms390.h: Remove boilerplate comments.
13170
13171 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13172
13173 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13174 (wait_reading_process_output): Remove code for SunOS, platform not
13175 supported anymore. Use SOLARIS2 instead of sun.
13176
131772008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13178
13179 * font.c (font_open_by_name): Under NS, default lface height to zero.
13180 (font_open_for_lface): Under NS, set size based on frame fontsize.
13181 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13182 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13183
131842008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13185
13186 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13187 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13188 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13189 YES/NO.
13190 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13191 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13192 * Makefile.in (clean): Clear out build destination dir.
13193
131942008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13195
13196 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13197 xterm, xselect.
13198 * lisp.h: Remove declaration of hash_remove.
13199 * nsgui.h: Remove redefinitions of hash_remove.
13200 * fns.c (hash_remove): Rename to hash_remove_from_table.
13201
132022008-07-19 Seiji Zenitani <zenitani@mac.com>
13203
13204 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13205 strdup() the family UTF8String before modifying it.
13206
132072008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13208
13209 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13210 NS_FACE_BACKGROUND with 0 instead of nil.
13211 * nsfont.m (nsfont_draw): Same.
13212
132132008-07-19 Chong Yidong <cyd@stupidchicken.com>
13214
13215 * nsfns.m (ns_set_background_color): Fix crash.
13216
132172008-07-18 Chong Yidong <cyd@stupidchicken.com>
13218
13219 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13220
132212008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13222
13223 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13224
132252008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13226
13227 * gtkutil.c: Include <config.h> instead of "config.h".
13228
13229 * lisp.h (Foverlay_buffer): Add EXFUN.
13230
13231 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13232 child process to complete child_setup. Undo 2005-09-21 change.
13233
13234 * s/darwin.h: Mention setsid after vfork.
13235
132362008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13237
13238 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13239 Depend on macgui.h.
13240
13241 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13242 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13243
13244 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13245 and f19.
13246 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13247
13248 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13249 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13250 Remove enumerators.
13251
13252 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13253 Check if FACE_FROM_ID returns NULL.
13254
132552008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13256
13257 * w32inevt.c (change_frame_size): Remove extern declaration.
13258 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13259 change_frame_size.
13260
132612008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13262
13263 * getloadavg.c: Revert last change (2008-07-15).
13264
132652008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13266
13267 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 13268 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
13269 from configure.
13270
132712008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13272
13273 * s/sol2.h:
13274 * s/sol2-4.h: Reorganize conditionals.
13275
13276 * ecrt0.c: Remove code depending on m68000, not used anymore.
13277
13278 * fns.c (hash_remove): Make static.
13279 * lisp.h (hash_remove): Don't prototype.
13280
13281 * m/ibmrs6000.h:
13282 * m/ibms390x.h:
13283 * m/macppc.h: Remove boilerplate comments.
13284
13285 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13286 Solaris, which does not need them.
13287
13288 * m/vax.h: Remove comments about unsupported systems.
13289
13290 * s/darwin.h: Reorganize ifdefs.
13291
132922008-07-17 Andreas Schwab <schwab@suse.de>
13293
13294 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13295
132962008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13297
13298 Use SDATA. Follow coding convention of placing operators at
13299 beginning of next line rather than end of previous line, and placing
13300 spaces around infix operators.
13301
13302 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13303 in case it was defined already.
13304 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13305 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13306 ns_default.
13307 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13308 Lisp_Objects.
13309 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13310 (ns_defined_color, ns_color_to_lisp): Declare.
13311 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13312 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13313 it's accepted even with USE_LISP_UNION_TYPE.
13314 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13315 (update_frame_tool_bar): Remove apparently obsolete tests for
13316 non-integerness of f->tool_bar_lines.
13317 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13318 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13319 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13320 (nsfont_open): Don't confuse NULL for Qnil.
13321 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13322 * menu.h (find_and_call_menu_selection):
13323 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13324 (find_and_return_menu_selection): Always return something.
13325 * frame.h: Include dispextern.h for Display_Info.
13326 (display_x_get_resource): Declare.
13327
133282008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13329
13330 * syntax.c: Remove stdio.h include accidentally introduced in
13331 Emacs.app commit.
13332 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13333 NS_IMPL_COCOA.
13334 * keyboard.c (handle_async_input, input_available_signal): Remove
13335 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13336
133372008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13338
13339 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13340 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13341 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13342 Use SDATA.
13343
13344 * keymap.c: Remove all NS-specific code.
13345 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13346 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13347 where_is_preferred_modifier, return a different value depending on how
13348 preferred is the binding.
13349 (where_is_internal): Adjust accordingly.
13350 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13351 Adjust to new preferred_sequence_p.
13352 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13353 * keyboard.c (parse_solitary_modifier): Not static any more.
13354 * keyboard.h (parse_solitary_modifier): Declare.
13355
133562008-07-16 Andreas Schwab <schwab@suse.de>
13357
13358 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13359 of easymenu.
13360
133612008-07-16 Chong Yidong <cyd@stupidchicken.com>
13362
13363 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13364 that we don't move off the line.
13365
133662008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13367
13368 * keyboard.c (Qsuper): Remove.
13369 (parse_menu_item): Don't call where_is_internal specially for NS.
13370
133712008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13372
13373 * s/gnu-linux.h: Remove boilerplate comments.
13374
13375 * m/alpha.h (__ELF__): Consolidate conditions.
13376
13377 * m/m68k.h (linux): Use GNU_LINUX instead.
13378 Remove boilerplate comments.
13379
13380 * m/intel386.h: Undo refactoring from previous change.
13381 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13382 too, remove dead code.
13383 (linux): Use GNU_LINUX instead.
13384
133852008-07-16 Jason Rumney <jasonr@gnu.org>
13386
13387 * w32gui.h: Repeat 26 June changes lost by last change.
13388
133892008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13390
13391 * systty.h: Remove code for Aix on 386, unsupported platform.
13392
13393 * s/ms-w32.h: Remove boilerplate comments.
13394 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13395
13396 * s/gnu-linux.h (TERM): Remove support.
13397 (HAVE_SYSVIPC): Remove, unused.
13398 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13399 for this system.
13400
13401 * process.c: Remove support for IRIS, unused.
13402 Remove support for TERM, not relevant anymore.
13403
13404 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13405 used with the definition.
13406
13407 * s/aix4-2.h (static): Do not undef.
13408
13409 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13410 only used on Aix.
13411 (HAVE_SYSVIPC): Remove, unused.
13412
13413 * m/hp800.h (CANNOT_DUMP): Do not undef.
13414
13415 * m/alpha.h: Fix comment.
13416
13417 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13418 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13419 used by this configuration.
13420 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13421 * unexec.c: Remove code depending on HPUX and
13422 USG_SHARED_LIBRARIES, not used with this file. Remove code
13423 depending on IRIS, unused. Remove if 0-ed code.
13424
13425 * s/template.h: Remove comments about static.
13426
13427 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13428 Remove if 0-ed code.
13429 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13430 were the same as the default.
13431 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13432 Remove boilerplate comments.
13433 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13434 (HAVE_SYSVIPC): Remove, unused.
13435 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13436
13437 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13438 Remove boilerplate comments.
13439 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13440 Remove boilerplate comments.
13441 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13442 Remove boilerplate comments.
13443 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13444
13445 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13446 USG systems which do not use DATA_SEG_BITS.
13447 Refactor code. Remove boilerplate comments.
13448
13449 * m/ibms390.h:
13450 * m/m68k.h:
13451 * s/bsd-common.h:
13452 * s/cygwin.h:
13453 * s/darwin.h:
13454 * s/freebsd.h:
13455 * s/gnu.h:
13456 * s/msdos.h: Remove boilerplate comments.
13457
13458 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 13459 do not use this file.
aac0c6e3
MR
13460 (IRIS_4D): Remove, unused.
13461
13462 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 13463 do not use this file.
aac0c6e3
MR
13464 (SIGN_EXTEND_CHAR):
13465 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13466 * unexmips.c: Remove file, unused.
13467
13468 * editfns.c (Fuser_full_name): Replace the only use of
13469 USER_FULL_NAME with its value.
13470 * config.in: Regenerate.
13471
134722008-07-16 David Reitter <david.reitter@gmail.com>
13473
13474 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13475 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13476
134772008-07-16 Glenn Morris <rgm@gnu.org>
13478
13479 * emacs.c (system-type): Doc fix.
13480
134812008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13482
13483 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13484 If the cache doesn't work, let's fix it, rather than work around it.
13485
134862008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13487
13488 * Makefile.in: Correct additions for nsfont.o in last commit.
13489 * nsfont.m: New file (forgot last commit).
13490
134912008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13492
13493 * callproc.c (set_initial_environment): Initialize
13494 Vprocess_environment under CANNOT_DUMP (fixes crash when
13495 batch-compiling for bootstrap).
13496
134972008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 13498 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 13499
c4cc8b9a
JB
13500 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13501 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
13502
135032008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13504
13505 Changes and additions for NeXTstep windowing system (Cocoa and
13506 GNUstep) support.
13507
13508 * Makefile.in:
13509 * config.in: Support defines and build commands for NS port.
13510 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13511 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13512 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13513 windowing.
13514 (struct face): Add synth_ital field.
13515 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13516 (init_display): Initialize Vinitial_window_system to "ns" when so
13517 compiled.
13518 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13519 (display_arg): Use under NS.
13520 (main): Under NS, allocate autorelease pool and handle command line
13521 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13522 (standard_args): Add NS-specific args.
13523 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13524 * font.c (DEFAULT_ENCODING): New variable.
13525 (font_find_for_lface): Use it.
13526 (syms_of_font): Load syms_of_nsfont under NS.
13527 * font.h: Declare nsfont_driver when compiled under NS.
13528 * fontset.c: When compiling under NS, include nsterm.h.
13529 (fontset_from_font): Autoconstruct fontset under NS.
13530 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13531 symbol, document and use it.
13532 (do_switch_frame): When for_deletion under Cocoa, add
13533 Fraise_frame(Qnil).
13534 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13535 (x_get_arg): Allow "yes" and "no" as boolean values.
13536 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13537 Qright under Cocoa.
13538 (focus-follows-mouse): Default to 0 under NS.
13539 * frame.h (enum output_method): Add output_ns.
13540 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13541 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13542 (FRAME_WINDOW_P): NS-specific definition.
13543 * fringe.c (max_used_fringe_bitmap): Make public.
13544 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13545 (getloadavg): Use NeXT code under descendant OS's.
13546 * image.c (includes and header section, x_create_bitmap_from_data)
13547 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13548 (image_background_transparent, x_clear_image_1)
13549 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13550 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13551 (x_to_xcolors, x_from_xcolors, x_disable_image)
13552 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13553 other GUIs, including XPM support using code originally written for
13554 Carbon GUI.
13555 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13556 using NS API.
13557 (image_ascent): Use font metrics macros instead of direct struct field
13558 access.
13559 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13560 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13561 Also, handle NS as GTK for menu bar purposes.
13562 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13563 toolkit where they differ.
13564 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13565 use cachelist, still needed under NS.
13566 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13567 (struct widget_value): Define it here for menu.c.
13568 * keymap.c (includes): Include modifier internals.
13569 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13570 NS.
13571 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13572 support for preferring sequences using certain modifiers, specified by
13573 the FIRSTONLY argument.
13574 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13575 under NS GNUstep implementation.
13576 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13577 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13578 * menu.c: Include nsterm.h under NS.
13579 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13580 (free_menubar_widget_tree_value, update_submenu_strings)
13581 (find_and_call_menu_selection): Treat NS as X and NT.
13582 (find_and_return_menu_selection): New function, used for popup menus.
13583 * nsgui.h:
13584 * nsterm.h:
13585 * nsfns.m:
13586 * nsimage.m:
13587 * nsmenu.m:
13588 * nsselect.m:
13589 * nsterm.m: New files.
13590 * process.c (wait_reading_process_output): Under NS, call ns_select()
13591 instead of plain select().
13592 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13593 beginning of buffer.
13594 * sysselect.h (init_process): Rename when compiling under Cocoa to
13595 avoid name conflict.
13596 * termhooks.h (display_info): Add ns_display_info to union.
13597 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13598 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13599 COCOA environment.
13600 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13601 unexec() signature. (Note, this will dump, but the resulting file
13602 crashes; unexosx is used instead; keeping around for reference and
13603 possible aid in getting dump working under GNUstep.)
13604 * w32gui.h (button_type, widget_value): Remove definitions (now in
13605 keyboard.h).
13606 * window.c: Include nsterm.h when compiling under NS.
13607 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13608 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13609 other GUI windowing systems.
13610 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13611 GTK.
13612 (x_consider_frame_title): Under NS, set icon type and frame
13613 modified-state indicator; use ns_set_name_as_filename() when using
13614 formatted title.
13615 (update_window_cursor): Make public when compiling under NS.
13616 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13617 (hourglass_atimer, Vhourglass_delay
13618 * xfaces.c (header section, init_frame_faces, clear_font_table)
13619 (defined_color, unload_color, x_face_list_fonts)
13620 (prepare_face_for_display): Add NS support parallel to other GUIs.
13621 Emulate GCs like other non-X GUIs.
13622 (split_font_name): Don't lowercase font name under NS.
13623 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13624 under NS.
13625 * s/darwin.h: Add support for compilation under NS.
13626
136272008-07-15 Jason Rumney <jasonr@gnu.org>
13628
13629 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13630 (w32_show_hourglass): Rename from show_hourglass.
13631 (w32_hide_hourglass): Rename from hide_hourglass.
13632 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13633 (Vhourglass_delay): Declare extern.
13634 (hourglass_started): Remove.
13635
13636 * xdisp.c (Vhourglass_delay): Remove static.
13637 (hourglass_started, start_hourglass, cancel_hourglass):
13638 Don't include these versions on WINDOWSNT.
13639
136402008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13641
13642 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13643 variables (formerly in xfns.c).
13644 (show_hourglass, hide_hourglass): New prototypes (same).
13645 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13646 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13647 in xfns.c).
13648 (syms_of_xdisp): Declare/initialize display-hourglass,
13649 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13650 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13651 formerly in xfns.c.
13652 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13653 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13654 (start_hourglass, cancel_hourglass): Remove.
13655 (show_hourglass, hide_hourglass): Remove prototypes and static
13656 modifiers.
13657 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13658 hourglass_atimer, hourglass_shown_p declaration/initialization.
13659 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13660 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13661 (start_hourglass, cancel_hourglass): Remove.
13662 (show_hourglass, hide_hourglass): Remove prototypes and static
13663 modifiers.
13664 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13665 hourglass_atimer, hourglass_shown_p declaration/initialization.
13666 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13667 (DEFAULT_HOURGLASS_DELAY): Remove.
13668 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13669 hourglass_shown_p declaration/initialization.
13670
136712008-07-14 Jason Rumney <jasonr@gnu.org>
13672
13673 * w32fns.c (w32_get_arg): Remove wrapper function.
13674 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13675 directly.
13676 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13677
136782008-07-14 Kenichi Handa <handa@m17n.org>
13679
13680 * xfont.c (xfont_open): Add workaround for X's bug.
13681
136822008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13683
13684 * fontset.c: Include <stdio.h> unconditionally.
13685
136862008-07-13 Michael Albinus <michael.albinus@gmx.de>
13687
13688 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13689 for filtering.
13690
136912008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13692
13693 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13694
13695 * m/macppc.h:
13696 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13697
c4cc8b9a 13698 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
13699 (SPECIAL_EMACS_INT):
13700 * m/ia64.h (SPECIAL_EMACS_INT):
13701 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13702 * s/gnu.h (NLIST_STRUCT):
13703 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13704 * s/gnu-linux.h (LINUX):
13705 * s/msdos.h (HAVE_FACES):
13706 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13707
13708 * systty.h:
13709 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13710 anymore.
13711
137122008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13713
13714 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13715 always defined as int.
13716
13717 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13718 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13719 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13720 * s/freebsd.h (HAVE_WAIT_HEADER):
13721 * s/bsd-common.h (HAVE_UNION_WAIT):
13722 * s/aix4-2.h (HAVE_WAIT_HEADER):
13723 * m/mips.h (HAVE_UNION_WAIT):
13724 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13725 (COFF, static): Do not define, they are undefined later in the file.
13726
13727 * process.c (update_status): Don't use a union.
13728 (status_convert):
13729 (sigchld_handler): Use int instead of WAITTYPE.
13730
137312008-07-12 Chong Yidong <cyd@stupidchicken.com>
13732
13733 * indent.c (Fvertical_motion): Restore hscroll before moving to
13734 goal column.
13735
137362008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13737
13738 * lisp.h: Remove left over code.
13739
137402008-07-11 Andreas Schwab <schwab@suse.de>
13741
13742 * lisp.h: Fix logic in last change.
13743
13744 * menu.h: New file.
13745 * menu.c: Include it.
13746 * xmenu.c: Likewise.
13747 * Makefile.in: Update dependencies.
13748
137492008-07-11 Kenichi Handa <handa@m17n.org>
13750
13751 * fontset.c (fontset_from_font): Cancel the previous change.
13752
137532008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13754
13755 * lisp.h:
13756 * w32heap.c:
13757 * emacs.c:
13758 * alloc.c: Replace all references of NO_UNION_TYPE with
13759 USE_LISP_UNION_TYPE.
13760
13761 * m/xtensa.h (NO_UNION_TYPE):
13762 * m/vax.h (NO_UNION_TYPE):
13763 * m/template.h (NO_UNION_TYPE):
13764 * m/sparc.h (NO_UNION_TYPE):
13765 * m/mips.h (NO_UNION_TYPE):
13766 * m/macppc.h (NO_UNION_TYPE):
13767 * m/m68k.h (NO_UNION_TYPE):
13768 * m/iris4d.h (NO_UNION_TYPE):
13769 * m/intel386.h (NO_UNION_TYPE):
13770 * m/ibms390x.h (NO_UNION_TYPE):
13771 * m/ibms390.h (NO_UNION_TYPE):
13772 * m/ibmrs6000.h (NO_UNION_TYPE):
13773 * m/ia64.h (NO_UNION_TYPE):
13774 * m/hp800.h (NO_UNION_TYPE):
13775 * m/arm.h (NO_UNION_TYPE):
13776 * m/amdx86-64.h (NO_UNION_TYPE):
13777 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13778 defining it the same.
13779
137802008-07-10 Chong Yidong <cyd@stupidchicken.com>
13781
13782 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13783
137842008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13785
13786 * fileio.c:
50426a04 13787 * sysdep.c:
aac0c6e3
MR
13788 * systty.h:
13789 * m/ibmrs6000.h:
13790 * m/iris4d.h:
13791 * s/aix4-2.h:
13792 * s/freebsd.h:
13793 * s/gnu-linux.h:
13794 * s/hpux10-20.h:
13795 * s/hpux11.h:
13796 * s/netbsd.h:
13797 * s/sol2-3.h:
13798 * s/sol2-4.h:
13799 * s/sol2.h:
13800 * s/usg5-4.h:
13801 * s/vms.h: Remove references to unused variables.
13802
138032008-07-10 Andreas Schwab <schwab@suse.de>
13804
13805 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13806 pattern before matching the generic family.
13807
138082008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13809
13810 * unexec.c:
13811 * s/vms.h:
13812 * s/usg5-4-2.h:
13813 * s/sol2-5.h:
13814 * s/freebsd.h:
13815 * s/darwin.h: Remove dead code.
13816
13817 * m/template.h:
13818 * m/sparc.h:
13819 * m/mips.h:
13820 * m/m68k.h:
13821 * m/iris4d.h:
13822 * m/intel386.h:
13823 * m/ibms390x.h:
13824 * m/ibms390.h:
13825 * m/ia64.h:
13826 * m/hp800.h:
13827 * m/arm.h:
13828 * m/amdx86-64.h: Remove dead code and references to unused
13829 and compiler defined symbols.
13830
13831 * unexmips.c:
13832 * unexelf.c: Remove references to desupported systems.
13833
13834 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13835
13836 * m/powermac.h: Remove boilerplate comments.
13837 (NO_REMAP): Remove unused definition.
13838
13839 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13840 define them.
13841
138422008-07-10 Kenichi Handa <handa@m17n.org>
13843
13844 * xfont.c (xfont_open): Log the reason of failure.
13845
138462008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13847
13848 * fontset.c (fontset_get_font_group):
13849 * font.c (font_check_otf): Specify argument types.
13850
138512008-07-09 Kenichi Handa <handa@m17n.org>
13852
13853 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13854 non-ASCII char is found.
13855
13856 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13857 (reorder_font_vector): Change the arg preferred_family to font.
13858 Prefer the spec matching with font.
13859 (fontset_get_font_group): New function.
13860 (fontset_find_font): Change the format of an element of a realized
13861 fontset. Use fontset_get_font_group.
13862 (fontset_font): Try the current fontset, the default fontset, the
13863 fallbacks of the current fontset, and the fallbacks of the default
13864 fontset in this order.
13865 (face_for_char): Delete the shortcut to use the current font.
13866 (fontset_from_font): Don't set fonts for Latin in the fontset.
13867
13868 * font.h (font_make_object, font_match_p): Adjust prototypes.
13869
13870 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13871
13872 * font.c (font_make_object): New arg entity and pixelsize.
13873 (font_check_otf_features, font_check_otf): New functions.
13874 (font_match_p): Check :lang, :script, and :otf properties.
13875
13876 * xfont.c (xfont_open): Adjust it for the change of
13877 font_make_object.
13878 (xfont_text_extents): Fix initial setting of metrics.
13879
13880 * ftfont.c (struct ftfont_info): New member index, delete member
13881 fc_charset_idx. Make the member order compatible with struct
13882 xftfont_info.
13883 (fc_charset_table): Change charset names to registry names.
13884 (ftfont_pattern_entity): Delete the args registry and
13885 fc_charset_idx. Change the value of :font-entity property
13886 to (FONTNAME . INDEX). Always set :registry property to
13887 `iso10646-1'.
13888 (struct ftfont_cache_data): New struct.
13889 (ftfont_lookup_cache): New arg for_face.
13890 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13891 (ftfont_driver): Set the member otf_capability.
13892 (ftfont_get_charset): Adjust it for the change of
13893 fc_charset_table.
13894 (OTF_TAG_SYM): New macro.
13895 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13896 for the change of fc_charset_table.
13897 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13898 ftfont_pattern_entity. Add FC_INDEX to objset.
13899 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13900 and ftfont_pattern_entity.
13901 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13902 font_make_object, struct ftfont_info.
13903 (ftfont_has_char): Use ftfont_get_fc_charset.
13904 (ftfont_otf_features, ftfont_otf_capability): New functions.
13905 (ftfont_shape): Use ftfont_get_otf.
13906 (ftfont_text_extents): Fix initial setting of metrics.
13907
13908 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13909 member order compatible with struct ftfont_info.
13910 (xftfont_open): Add FC_CHARSET to the pattern. Set
13911 xftfont_info->ft_size. Don't unlock the face. Check BDF
13912 properties if appropriate.
13913 (xftfont_close): Unlock the face.
13914 (xftfont_anchor_point, xftfont_shape): Deleted.
13915 (syms_of_xftfont): Don't set members anchor_point and shape of
13916 xftfont_driver.
13917
13918 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13919 font_make_object.
13920
13921 * w32font.c (w32font_open): Adjust it for the change of
13922 font_make_object.
13923 (w32font_open_internal): Don't set properties of font_object here.
13924
139252008-07-08 Chong Yidong <cyd@stupidchicken.com>
13926
13927 * macfns.c (x_create_tip_frame):
13928 * w32fns.c (x_create_tip_frame):
13929 * xfns.c (x_create_tip_frame): Pass parameter argument to
13930 face-set-after-frame-default.
13931
13932 * xfaces.c (Finternal_merge_in_global_face): Save merged
13933 attributes for the default face back into the face vector.
13934
139352008-07-08 Andreas Schwab <schwab@suse.de>
13936
13937 * fontset.h: Declare fontset_from_font. Don't declare
13938 new_fontset_from_font and fontset_from_font_name.
13939 * xterm.c: Include "fontset.h".
13940 * Makefile.in (xterm.o): Update dependencies.
13941
139422008-07-08 Glenn Morris <rgm@gnu.org>
13943
13944 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13945 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13946
139472008-07-07 Chong Yidong <cyd@stupidchicken.com>
13948
13949 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13950 (x_set_frame_parameters): Don't bind it.
13951
139522008-07-07 Juanma Barranquero <lekktu@gmail.com>
13953
13954 * w32fns.c (map_w32_filename): Declare extern.
13955
139562008-07-07 Jason Rumney <jasonr@gnu.org>
13957
13958 * w32term.c (WS_EX_LAYERED): Define if not already.
13959
139602008-07-06 Chong Yidong <cyd@stupidchicken.com>
13961
13962 * xfaces.c (set_font_frame_param): Don't try to set the font
13963 parameter if it is still unspecified in the lface.
13964
139652008-07-05 Chong Yidong <cyd@stupidchicken.com>
13966
13967 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13968 face if it didn't already exist.
13969
13970 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13971
139722008-07-05 Andreas Schwab <schwab@suse.de>
13973
13974 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13975
139762008-07-05 Chong Yidong <cyd@stupidchicken.com>
13977
13978 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13979 word-wrapping.
13980 (IT_DISPLAYING_WHITESPACE): New macro.
13981 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13982 when word-wrapping. Simplify word-wrapping logic. Use correct
13983 pixel positions when saving copies of the iterator.
13984 (display_line): Use proper wrap point if the last character on a
13985 line was preceded by whitespace.
13986
139872008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13988
13989 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13990
139912008-07-04 Kenichi Handa <handa@m17n.org>
13992
13993 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13994
13995 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13996
139972008-07-02 Jason Rumney <jasonr@gnu.org>
13998
13999 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 14000 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
14001
14002 * xdisp.c (next_element_from_display_vector): Move assignment out
14003 of if statement.
14004
140052008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14006
14007 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14008
14009 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14010 (syms_of_fileio): Initialize and export them.
14011 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14012
14013 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14014 (Fsystem_move_file_to_trash): New function.
14015 (syms_of_w32fns): Export it to lisp.
14016
140172008-07-01 Jason Rumney <jasonr@gnu.org>
14018
14019 * w32font.c (w32font_text_extents): Don't count overhang as part
14020 of width.
14021
140222008-06-30 Miles Bader <miles@gnu.org>
14023
14024 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14025 Add `avoid_cursor_p' field.
14026
14027 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14028 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14029 (append_glyph, append_composite_glyph, produce_image_glyph)
14030 (append_stretch_glyph): Initialize avoid_cursor_p.
14031 (get_it_property): Rename from `get_line_height_property'.
14032 (x_produce_glyphs): Use get_it_property.
14033 (handle_line_prefix, push_display_prop): New functions.
14034 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14035 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14036 New variables.
14037 (syms_of_xdisp): Initialize them.
14038
140392008-06-30 Kenichi Handa <handa@m17n.org>
14040
14041 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14042 XftDefaultSubstitute (they are called in XftFontMatch).
14043 (xftfont_open): Fix args to ftfont_font_format.
14044
14045 * ftfont.c (fc_charset_table): New member lang.
14046 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 14047 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
14048 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14049 (ftfont_open): Fix args to ftfont_font_format.
14050 (ftfont_font_format): New arg filename.
14051
140522008-06-30 Chong Yidong <cyd@stupidchicken.com>
14053
14054 * xfaces.c (Finternal_merge_in_global_face): If default face was
14055 modified, realize it again. Update the font face attribute.
14056
140572008-06-29 Jason Rumney <jasonr@gnu.org>
14058
14059 * w32term.c (x_set_frame_alpha): Fix logic.
14060
140612008-06-29 Kenichi Handa <handa@m17n.org>
14062
14063 * fontset.c (Finternal_char_font): Return font-object instead of
14064 font-name.
14065
14066 * composite.c (get_composition_id): Fix the width calculation for TAB.
14067
140682008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14069
14070 * indent.c (Fvertical_motion): Properly handle float column arg.
14071
140722008-06-28 Jason Rumney <jasonr@gnu.org>
14073
14074 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14075 (pfnSetLayeredWindowAttributes): New function pointer.
14076 (w32_initialize): Initialize it when supported.
14077 (x_set_frame_alpha): New function.
14078
14079 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14080 (w32_frame_parm_handlers): Set alpha handler.
14081
14082 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14083
140842008-06-27 Jason Rumney <jasonr@gnu.org>
14085
14086 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14087 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14088 (w32_to_x_charset, x_to_w32_charset)
14089 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14090 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14091 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14092 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14093 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14094 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14095 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14096 (Qw32_charset_unicode): Remove.
14097 (syms_of_w32fns): Update for above changes.
14098
14099 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14100 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14101 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14102 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14103 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14104 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14105 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14106 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14107 (syms_of_w32font): Update for above changes.
14108
141092008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14110
14111 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14112 removed #if.
14113 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14114
141152008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 14116 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
14117
14118 * makefile.w32-in (LOCAL_FLAGS):
14119 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14120
14121 * sysdep.c (_spawnlp, _getpid):
14122 Declare with explicit _cdecl instead of _CRTAPI1.
14123
14124 * editfns.c (Fget_internal_run_time):
14125 Check for WINDOWSNT with #ifdef, not #if.
14126
141272008-06-26 Jason Rumney <jasonr@gnu.org>
14128
14129 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14130
14131 * w32term.c (x_draw_glyph_string_foreground)
14132 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14133 Use FONT_HANDLE macro.
14134 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14135
14136 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14137 (uniscribe_encode_char): Use FONT_HANDLE macro.
14138
14139 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14140 (w32font_text_extents): Use precast w32_font.
14141 (w32font_close): Free cached metrics.
14142 (w32font_open_internal): Allocate space for name on stack.
14143
141442008-06-26 Chong Yidong <cyd@stupidchicken.com>
14145
14146 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14147
141482008-06-26 Jason Rumney <jasonr@gnu.org>
14149
14150 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14151 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14152
141532008-06-26 Juanma Barranquero <lekktu@gmail.com>
14154
14155 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14156
141572008-06-26 Jason Rumney <jasonr@gnu.org>
14158
14159 * w32bdf.c, w32bdf.h: Remove obsolete files.
14160
14161 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14162
14163 * w32gui.h: Don't include w32bdf.h.
14164 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14165 Remove obsolete font support.
14166
14167 * w32font.h (struct w32font_info): Remove compat_w32_font.
14168 Add hfont member.
14169 (FONT_COMPAT): Remove obsolete macro.
14170
14171 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14172 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14173 (w32font_open_internal): Remove compat code. Set new hfont member.
14174 (Fx_select_font): Use new hfont member.
14175
14176 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14177 (uniscribe_encode_char): Use new hfont member.
14178
14179 * w32term.c (x_draw_glyph_string_foreground)
14180 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14181 (x_draw_glyph_string): Use metrics in w32font_info.
14182
141832008-06-26 Kenichi Handa <handa@m17n.org>
14184
14185 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14186
141872008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14188
14189 * unexnext.c:
14190 * m/ews4800.h:
14191 * m/hp9000s300.h:
14192 * m/ibm370aix.h:
14193 * m/mips-siemens.h:
14194 * m/ncr386.h:
14195 * m/next.h:
14196 * m/pmax.h:
14197 * m/powerpcle.h:
14198 * m/tandem-s2.h:
14199 * s/386bsd.h:
14200 * s/bsd386.h:
14201 * s/bsd4-1.h:
14202 * s/bsd4-2.h:
14203 * s/bsdos2-1.h:
14204 * s/bsdos2.h:
14205 * s/bsdos3.h:
14206 * s/bsdos4.h:
14207 * s/nextstep.h:
14208 * s/ultrix4-3.h:
14209 * s/usg5-0.h:
14210 * s/usg5-2-2.h:
14211 * s/usg5-2.h:
14212 * s/usg5-4-3.h:
14213 * s/ux4800.h:
14214 * s/uxpds.h:
14215 * s/uxpv.h: Remove support for obsolete systems.
14216 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 14217 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
14218 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14219 Remove, insert contents in s/aix4-2.h.
14220 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14221 * s/bsd4-3.h: Rename to ...
14222 * s/bsd-common.h: ... this.
14223 * data.c:
14224 * doc.c:
14225 * ecrt0.c:
14226 * emacs.c:
14227 * fileio.c:
14228 * floatfns.c:
14229 * keyboard.c:
14230 * mem-limits.h:
14231 * print.c:
14232 * process.c:
14233 * sysdep.c:
14234 * syssignal.h:
14235 * systty.h:
14236 * syswait.h:
14237 * term.c:
14238 * unexec.c:
14239 * unexelf.c:
14240 * unexhp9k800.c:
14241 * m/hp800.h:
14242 * m/ibmrs6000.h:
14243 * m/mips.h:
14244 * m/vax.h:
14245 * s/darwin.h:
14246 * s/freebsd.h:
14247 * s/gnu.h:
14248 * s/ms-w32.h:
14249 * s/msdos.h:
14250 * s/netbsd.h:
14251 * s/template.h: Remove references to obsolete variables.
14252
14253 * Makefile.in: Add dependencies for all unexec files.
14254 (admindir): Remove unused variable.
14255 (UNEXEC_SRC): Remove references.
14256
142572008-06-25 Chong Yidong <cyd@stupidchicken.com>
14258
14259 * xfns.c (x_default_font_parameter): If Xft is available, first
14260 try Monospace-12 for the default font.
14261
142622008-06-25 Jason Rumney <jasonr@gnu.org>
14263
14264 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14265
142662008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14267
14268 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14269
14270 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14271
142722008-06-25 Juanma Barranquero <lekktu@gmail.com>
14273
14274 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14275 <scroll-conservatively>: Fix typo in docstring.
14276
14277 * xselect.c (Fx_send_client_event): Doc fix.
14278
142792008-06-25 Kenichi Handa <handa@m17n.org>
14280
14281 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14282
14283 * font.c (font_parse_fcname): Remove unused variables.
14284 (font_sort_entites): Delete the arg SPEC. Caller changed.
14285 Fix for the case of ! best_only.
14286 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14287
14288 * lisp.h (Fstring_to_unibyte): EXFUN it.
14289
14290 * character.h (str_to_unibyte): Extern it.
14291
14292 * character.c (str_to_unibyte): New function.
14293
14294 * fns.c (Fstring_to_unibyte): New function.
14295 (syms_of_fns): Defsubr it.
14296
142972008-06-24 Kenichi Handa <handa@m17n.org>
14298
14299 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14300 DPI too.
14301 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14302
143032008-06-24 Andreas Schwab <schwab@suse.de>
14304
14305 * Makefile.in (${lispsource}loaddefs.el): Rename from
14306 ../lisp/loaddefs.el.
14307 (bootstrap-clean): Do what distclean does but don't remove
14308 Makefile.
14309 (distclean): Depend on bootstrap-clean and remove Makefile.
14310
143112008-06-24 Chong Yidong <cyd@stupidchicken.com>
14312
14313 * buffer.h (struct buffer): New member word_wrap.
14314
14315 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14316 word-wrap.
14317 (init_buffer_once): Initialize them.
14318
14319 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14320 line_wrap enum possessing three possible values.
14321
14322 * termopts.h: Replace truncate_partial_width_windows with
14323 Vtruncate_partial_width_windows.
14324
14325 * dispnew.c (direct_output_for_insert): Avoid direct output when
14326 inserting a space with word wrap on.
14327
14328 * indent.c (compute_motion): Obey integer values of
14329 truncate-partial-width-windows.
14330
14331 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14332 replacing truncate_partial_width_windows.
14333 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14334 truncate only if the window width is below that integer.
14335 (start_display, resize_mini_window, produce_stretch_glyph)
14336 (display_string, move_it_in_display_line_to): Use line_wrap.
14337 (back_to_previous_visible_line_start, reseat_1): Reset
14338 string_from_display_prop_p.
14339 (display_line): Extend default face to end of line when wrapping.
14340
143412008-06-24 Kim F. Storm <storm@cua.dk>
14342
14343 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14344 to wrap continued lines at word boundaries.
14345
143462008-06-24 Jason Rumney <jasonr@gnu.org>
14347
14348 * font.c (Ffont_face_attributes): Multiply pixel size before point
14349 conversion to avoid multiplying rounding error.
14350
143512008-06-23 Jason Rumney <jasonr@gnu.org>
14352
14353 * w32term.c (x_draw_glyph_string_background)
14354 (x_draw_glyph_string): Remove old bdf font code.
14355
14356 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14357
143582008-06-22 Kenichi Handa <handa@m17n.org>
14359
14360 * font.c (font_find_for_lface): Try the adstyle specified in
14361 the property of LFACE_FONT of LFACE (if any).
14362
143632008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14364 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14365
14366 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14367
143682008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14369
14370 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14371 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14372 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14373 (witness-emacs): Remove.
14374 (lisp, shortlisp): Move loaddefs.el earlier.
14375 (mostlyclean): Forget about witness-emacs.
14376
143772008-06-22 Glenn Morris <rgm@gnu.org>
14378
14379 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14380 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14381
143822008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14383
14384 * Makefile.in (PRECOMP): Remove.
14385 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14386 (witness-emacs): Run `compile-first'.
14387 (.el.elc): Use the new compile-onefile target.
14388
143892008-06-21 Kenichi Handa <handa@m17n.org>
14390
14391 * xftfont.c (xftfont_open): Handle QCembolden only when
14392 FC_EMBOLDEN is defined.
14393
143942008-06-21 Andreas Schwab <schwab@suse.de>
14395
14396 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14397 (.el.elc): Likewise.
14398
143992008-06-21 Miles Bader <miles@gnu.org>
14400
14401 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14402 build dir, not the lisp source dir.
14403
144042008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14405
14406 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14407 (bootstrapclean): Remove.
14408 (.el.elc): New rule.
14409 (PRECOMP): New var.
14410 (../lisp/subdirs.el): Remove.
14411 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14412 (witness-emacs): New target.
14413 (mostlyclean): Remove witness-emacs as well.
14414 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14415 Add witness-emacs dependency.
14416
144172008-06-20 Chong Yidong <cyd@stupidchicken.com>
14418
14419 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14420 defined by the font.
14421
144222008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14423
14424 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14425 (bootstrap-clean): New target that keeps TAGS around.
14426 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14427 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14428
144292008-06-20 Jason Rumney <jasonr@gnu.org>
14430
14431 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14432 Remove obsolete font code.
14433
14434 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14435 to determine language support.
14436
144372008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14438
14439 * sysdep.c (cfsetspeed): New fun extracted from the code.
14440 (cfmakeraw): Move before first use.
14441
144422008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14443
14444 * sysdep.c (cfmakeraw): Provide fallback implementation.
14445 (serial_configure): Provide fallback implementation of cfsetspeed.
14446
144472008-06-20 Kenichi Handa <handa@m17n.org>
14448
14449 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14450 the pattern.
14451
14452 * fontset.c (fontset_from_font): Copy font_spec before changing
14453 the elements.
14454
14455 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14456
144572008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14458
14459 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14460 for explicit `font' parameters.
14461
14462 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14463
144642008-06-19 Kenichi Handa <handa@m17n.org>
14465
14466 * frame.c: Include <ctype.h>.
14467 (x_set_font_backend): Allow spacing characters in the X resource
14468 for FontBackend.
14469
144702008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14471
14472 * w32fns.c, xfns.c (Qfont_param): New var.
14473 (syms_of_w32fns): Initialize it.
14474 (x_default_font_parameter): Record explicit `font' into
14475 `font-parameter'.
14476
144772008-06-18 Kenichi Handa <handa@m17n.org>
14478
14479 * font.c (font_parse_xlfd): Fix previous change.
14480 (font_parse_fcname): Don't use :fc-unknown-spec.
14481 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14482 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14483 (font_add_log): Prepend the driver name to the resulting fonts.
14484
14485 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14486 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14487 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14488
14489 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14490 (QCembolden): New variables.
14491 (syms_of_xftfont): DEFSYM them.
14492 (xftfont_open): Call XftFontMatch. Don't trust the result of
14493 XftTextExtents8 if the pixel_size is less than 5.
14494
144952008-06-18 Andreas Schwab <schwab@suse.de>
14496
14497 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14498 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14499
145002008-06-18 Jason Rumney <jasonr@gnu.org>
14501
14502 * w32font.c (w32font_list, w32font_match): Add logging.
14503
14504 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14505
145062008-06-17 Chong Yidong <cyd@stupidchicken.com>
14507
14508 * font.c (font_parse_fcname): Store divider characters for
14509 unknown-spec list. For known key symbols, intern using correct
14510 symbol name.
14511
145122008-06-17 Kenichi Handa <handa@m17n.org>
14513
14514 * xfaces.c (realize_default_face): If the frame is not on window
14515 system, set the fontset of face to nil.
14516
145172008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14518
14519 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14520
145212008-06-16 Juanma Barranquero <lekktu@gmail.com>
14522
14523 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14524 (build_font_name_from_vector): Delete externs.
14525
14526 * xfaces.c (struct font_name): Don't declare.
14527
145282008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14529
14530 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14531
145322008-06-16 Chong Yidong <cyd@stupidchicken.com>
14533
14534 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14535
145362008-06-16 Juanma Barranquero <lekktu@gmail.com>
14537
14538 * font.c (Ffont_spec): Fix usage in docstring.
14539 (Ffont_face_attributes): Doc fix.
14540
145412008-06-16 Andreas Schwab <schwab@suse.de>
14542
14543 * font.c (Ffont_face_attributes): Fix definition.
14544
145452008-06-16 Jason Rumney <jasonr@gnu.org>
14546
14547 * font.h (font_style_symbolic_from_value): Remove.
14548
14549 * font.c (font_style_symbolic_from_value): Remove.
14550 (font_style_symbolic): Revert to pre 2008-06-13 version.
14551
14552 * w32font.c (w32_to_fc_weight): New function.
14553 (w32font_full_name, logfont_to_fcname): Use it.
14554
145552008-06-16 Kenichi Handa <handa@m17n.org>
14556
14557 * font.c (font_check_object): Delete it.
14558 (font_clear_cache): Check if a font-object is alive.
14559 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14560 font-object to nil.
14561 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14562 (font_at): Don't call font_check_object.
14563 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14564
145652008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14566
14567 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14568
145692008-06-16 Chong Yidong <cyd@stupidchicken.com>
14570
14571 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14572
145732008-06-15 Chong Yidong <cyd@stupidchicken.com>
14574
14575 * font.c (font_parse_fcname): Only one decimal point.
14576 (font_unparse_fcname): Handle data in family and foundry indices
14577 as symbols, not strings.
14578 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14579
14580 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14581
14582 * font.h (font_unparse_gtkname): Add prototype.
14583
145842008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14585
14586 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14587
145882008-06-15 Andreas Schwab <schwab@suse.de>
14589
14590 * font.c (font_update_drivers): Fix crash when no drivers match.
14591
145922008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14593
14594 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14595 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14596
145972008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14598
14599 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14600
146012008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14602
14603 * process.c (Fserial_process_configure, Fprocess_send_eof):
14604 Use EQ to compare Lisp_Objects.
14605
146062008-06-13 Jason Rumney <jasonr@gnu.org>
14607
14608 * w32fns.c (Fw32_select_font): Remove old font API function.
14609
14610 * w32font.c (logfont_to_fcname): New function.
14611 (Fx_select_font): New font dialog function compatible with
14612 GTK/fontconfig version.
14613
14614 * font.c (font_style_symbolic_from_value): New function.
14615 (font_style_symbolic): Use it.
14616
14617 * font.h (font_style_symbolic_from_value): Declare new function.
14618
146192008-06-13 Juanma Barranquero <lekktu@gmail.com>
14620
14621 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14622 <font-width-table>: Fix typos in docstrings.
14623
146242008-06-13 Daniel Engeler <engeler@gmail.com>
14625
14626 These changes add serial port access.
14627 * process.c: Add HAVE_SERIAL.
14628 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14629 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14630 (list_processes_1, select_wrapper, Fstop_process)
14631 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14632 (status_notify): Modify to handle serial processes.
14633 [HAVE_SERIAL] (Fserial_process_configure)
14634 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14635 New functions.
14636 * process.h (struct Lisp_Process): Add `type'.
14637 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14638 New functions.
14639 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14640 serial ports.
b71ac3dd 14641 (serial_open, serial_configure): New functions.
aac0c6e3
MR
14642 * w32.h: Add FILE_SERIAL.
14643 (struct _child_process): Add ovl_read, ovl_write.
14644
146452008-06-13 Kenichi Handa <handa@m17n.org>
14646
14647 * dispextern.h (enum lface_attribute_index): New member
14648 LFACE_FOUNDRY_INDEX.
14649
14650 * font.c (font_score): Delete arg alternate_families. Check only
14651 weight, slant, width, and size. Ignore the difference of alias
14652 style symbols.
14653 (font_sort_entites): Adjust for the above change. Reflect the
14654 order of font-driver to scores.
14655 (font_list_entities): Don't check alternate_familes here.
14656 (font_clear_prop): Handle foundry.
14657 (font_update_lface): Don't parse "foundry-family" form here.
14658 Handle FONT_FOUNDRY_INDEX.
14659 (font_find_for_lface): Likewise. Handle alternate families here.
14660 If registry is nil, try iso8859-1 and ascii-0.
14661 (font_open_for_lface): Pay attention to size in ENTITY.
14662 (font_open_by_name): Simplify by calling font_load_for_lface.
14663 (free_font_driver_list): Delete it.
14664 (font_update_drivers): Preserve the order of backends.
14665 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14666 of font_score and font_sort_entites.
14667 (font_update_sort_order): Likewise.
14668
14669 * xfaces.c (LFACE_FOUNDRY): New macro.
14670 (check_lface_attrs): Check foundry.
14671 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14672 (merge_face_vectors): Check foundry.
14673 (merge_face_ref): Likewise.
14674 (Finternal_set_lisp_face_attribute): Likewise.
14675 (x_update_menu_appearance): Likewise.
14676 (Finternal_get_lisp_face_attribute): Likewise.
14677 (lface_hash): Likewise.
14678 (lface_same_font_attributes_p): Likewise.
14679 (x_supports_face_attributes_p): Likewise.
14680 (tty_supports_face_attributes_p): Likewise.
14681 (Finternal_set_alternative_font_family_alist): Intern strings.
14682 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14683 (realize_default_face): Set LFACE_FOUNDRY (lface).
14684
14685 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14686 font-driver at first.
14687
14688 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14689
146902008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14691
14692 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14693
146942008-06-12 Jim Meyering <meyering@redhat.com>
14695
14696 Make unexec_free handle NULL the same way free does.
14697 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14698
146992008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14700
14701 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14702 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14703 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14704 (WEAK_ALIAS): Simplify.
14705 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14706 when searching a unibyte buffer.
14707
147082008-06-12 Chong Yidong <cyd@stupidchicken.com>
14709
14710 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14711
147122008-06-12 Juanma Barranquero <lekktu@gmail.com>
14713
14714 * w32font.c: Include ctype.h.
14715
147162008-06-11 Jason Rumney <jasonr@gnu.org>
14717
14718 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14719 misreported as space.
14720 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14721 as aliases for registry iso10646-1.
14722
147232008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14724
14725 * buffer.c (clone_per_buffer_values): Skip `name'.
14726
147272008-06-11 Chong Yidong <cyd@stupidchicken.com>
14728
14729 * font.c (font_parse_fcname): Fix last change; accept decimal
14730 points in font size.
14731
147322008-06-10 Jason Rumney <jasonr@gnu.org>
14733
14734 * w32uniscribe.c (add_opentype_font_name_to_list):
14735 Skip non unicode fonts.
14736
147372008-06-10 Chong Yidong <cyd@stupidchicken.com>
14738
14739 * xfns.c (Fx_font_dialog): New function.
14740
14741 * gtkutil.c (xg_dialog_response_cb): Rename from
14742 xg_file_response_callback.
14743 (pop_down_dialog): Rename from pop_down_file_dialog.
14744 (xg_get_file_name): Callers changed.
14745 (xg_get_font_name): New function.
14746
14747 * gtkutil.h (xg_get_font_name): Insert prototype.
14748
147492008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14750
14751 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14752 x_underline_minimum_display_offset.
14753 (syms_of_xdisp): Declare it here rather than in xterm.c.
14754 * dispextern.h (underline_minimum_offset): Declare it.
14755 * w32term.c (x_draw_glyph_string): Use it.
14756 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14757 (syms_of_xterm): Don't declare it any more.
14758 (x_draw_glyph_string): Adjust to the new name.
14759
8719abec 147602008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
14761
14762 * xterm.c (x_underline_minimum_display_offset): New var.
14763 (x_draw_glyph_string): Use it.
14764 (syms_of_xterm): Declare it.
14765
147662008-06-10 Chong Yidong <cyd@stupidchicken.com>
14767
14768 * font.c (font_parse_fcname): Accept GTK-style font names too.
14769
147702008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14771
14772 * dired.c (file_name_completion): Don't return t if the match is exact
14773 but with different capitalization.
14774 * minibuf.c (Ftry_completion): Simplify.
14775
14776 * window.c (Vwindow_point_insertion_type): New var.
14777 (set_window_buffer): Use it.
14778 (syms_of_window): Init and export it to Lisp.
14779
147802008-06-10 Kenichi Handa <handa@m17n.org>
14781
14782 * font.h (font_intern_prop): Prototype adjusted.
14783
14784 * font.c (font_intern_prop): New arg force_symbol.
14785 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14786 Adjust for the change of font_intern_prop.
14787
14788 * ftfont.c (ftfont_pattern_entity):
14789 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14790 (w32_registry):
14791 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14792 the change of font_intern_prop.
14793
147942008-06-09 Juanma Barranquero <lekktu@gmail.com>
14795
14796 * w32menu.c (digest_single_submenu): Declare extern.
14797
147982008-06-09 Jason Rumney <jasonr@gnu.org>
14799
14800 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14801
14802 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14803 (parse_single_submenu): Remove.
14804 (digest_single_submenu): Remove.
14805 (syms_of_w32menu): Don't initialise variables that have moved
14806 to menu.c.
14807 (set_frame_menubar): Sync with version in xmenu.c.
14808 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14809
14810 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14811 Make static again.
14812
148132008-06-09 Jason Rumney <jasonr@gnu.org>
14814
14815 Changes to w32 files related to the move of common menu code
14816 to menu.c on 2008-06-08 by Chong Yidong.
14817
14818 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14819 defs to w32gui.h.
14820 (single_keymap_panes, push_menu_item, push_menu_pane):
14821 Make globally visible.
14822
14823 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14824 (local_free, malloc_widget_value, free_widget_value)
14825 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14826 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14827 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14828 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14829 (menu_items, menu_items_allocated, menu_items_used)
14830 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14831 (init_menu_items, finish_menu_items, discard_menu_items)
14832 (grow_menu_items, push_submenu_start, push_submenu_end)
14833 (push_left_right_boundary, push_menu_pane, push_menu_item)
14834 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14835 (free_menubar_widget_tree_value, parse_single_submenu)
14836 (update_submenu_strings): Remove functions.
14837 (xmalloc_widget_value): Remove and declare extern.
14838
14839 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14840 (OBJ1): Build it.
14841
14842 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14843 (local_heap, local_alloc, local_free, malloc_widget_value)
14844 (free_widget_value): Define here.
14845
148462008-06-09 Kenichi Handa <handa@m17n.org>
14847
14848 * font.h (Qascii_0): Extern it.
14849
14850 * font.c (Qascii_0): New variable.
14851 (syms_of_font): DEFSYM it.
14852 (font_open_by_name): If the registry "iso8859-1" fails, try also
14853 "ascii-0".
14854
14855 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14856
148572008-06-08 Kenichi Handa <handa@m17n.org>
14858
14859 * .gdbinit (xfont): New command.
14860
148612008-06-08 Andreas Schwab <schwab@suse.de>
14862
14863 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14864 * Makefile.in (menu.o): Update dependencies.
14865
14866 * Makefile.in (obj): Always add menu.o.
14867 * emacs.c (main): Always call syms_of_menu.
14868 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14869
148702008-06-08 Chong Yidong <cyd@stupidchicken.com>
14871
14872 * Makefile.in: Compile menu.c.
14873
14874 * lisp.h: Declare syms_of_menu.
14875
14876 * emacs.c (main): Call syms_of_menu.
14877
14878 * keyboard.h: Relocate platform-independent menu definitions from
14879 xmenu.c.
14880
14881 * menu.c: New file. Relocate platform-independent menu
14882 definitions from xmenu.c. Suggested by Adrian Robert.
14883
14884 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 14885 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
14886 (menu_items_used, menu_items_n_panes)
14887 (menu_items_submenu_depth): Move to keyboard.h.
14888 (init_menu_items, finish_menu_items, unuse_menu_items)
14889 (discard_menu_items, restore_menu_items, save_menu_items)
14890 (grow_menu_items, push_submenu_start, push_submenu_end)
14891 (push_left_right_boundary, push_menu_pane, push_menu_item)
14892 (keymap_panes, single_keymap_panes, single_menu_item)
14893 (list_of_panes, list_of_items, find_and_call_menu_selection)
14894 (xmalloc_widget_value, free_menubar_widget_value_tree)
14895 (parse_single_submenu, digest_single_submenu)
14896 (update_submenu_strings): Move to menu.c.
14897
148982008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14899
14900 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14901
149022008-06-06 Miles Bader <miles@gnu.org>
14903
14904 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14905 face, not frame default.
14906
149072008-06-05 Martin Rudalics <rudalics@gmx.at>
14908
14909 * window.c (pop_up_windows, pop_up_frames)
14910 (display_buffer_reuse_frames, Vpop_up_frame_function)
14911 (Vdisplay_buffer_function, Veven_window_heights)
14912 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14913 (Vspecial_display_function, Vsame_window_buffer_names)
14914 (Vsame_window_regexps, split_height_threshold)
14915 (Vsplit_window_preferred_function): Move those vars to window.el.
14916 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14917 (Fdisplay_buffer): Move those functions to window.el.
14918 (syms_of_window): Remove corresponding declarations.
14919 (display_buffer): New function.
14920 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14921 * dispnew.c (Flast_nonminibuf_frame): New function.
14922 * buffer.c (Fpop_to_buffer): Move to window.el.
14923
149242008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14925
14926 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14927
149282008-06-05 Kenichi Handa <handa@m17n.org>
14929
14930 * coding.c (detect_coding): Fix previous change.
14931 (detect_coding_system): Likewise.
14932
149332008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14934
14935 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14936
14937 * keymap.c (Vminibuffer_local_filename_must_match_map):
14938 Rename from Vminibuffer_local_must_match_filename_map.
14939 (syms_of_keymap):
14940 * minibuf.c (Fcompleting_read): Adjust accordingly.
14941 * commands.h: Rename declaration as well.
14942
149432008-06-05 Kenichi Handa <handa@m17n.org>
14944
14945 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14946 family name.
14947 (Ffont_put): Likewise.
14948
14949 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14950 current font-spec.
14951
14952 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14953 is unspecified.
14954
14955 * xfaces.c (realize_x_face): If the font-related face attributes
14956 are the same as those of default face, realize a new fontset from
14957 default->fontset.
14958 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14959
149602008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14961
14962 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14963 (move_it_in_display_line): New wrapper.
14964
14965 * window.c (window_scroll_pixel_based_preserve_x)
14966 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14967 (window_scroll_pixel_based, window_scroll_line_based):
14968 Use them to preserve column positions.
14969 (syms_of_window): Initialize them.
14970
14971 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14972 (HPOS . VPOS) pair.
14973
14974 * dispextern.h (move_it_in_display_line): Declare.
14975
149762008-06-05 Juanma Barranquero <lekktu@gmail.com>
14977
14978 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14979 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14980 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14981
149822008-06-04 Juanma Barranquero <lekktu@gmail.com>
14983
14984 * window.c (Fset_window_parameter): Doc fix.
14985 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14986
149872008-06-04 Joakim Verona <joakim@verona.se>
14988
14989 * window.h (struct window): Add new member window_parameters.
14990
14991 * window.c (Fwindow_parameters, Fwindow_parameter)
14992 (Fset_window_parameter): New defuns.
14993 (syms_of_window): Defsubr the new defuns.
14994 (make_window): Initialize window_parameters to nil.
14995
149962008-06-04 John Paul Wallington <jpw@pobox.com>
14997
14998 * eval.c (Fdefmacro): Doc fix.
14999
150002008-06-04 Kenichi Handa <handa@m17n.org>
15001
15002 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15003 Be sure to call setup_coding_system when we find a proper coding system.
15004 (detect_coding_system): Fix handling of coding->head_ascii.
15005
150062008-06-03 Andreas Schwab <schwab@suse.de>
15007
15008 * font.c (font_prop_validate_spacing): Fix last change.
15009
150102008-06-03 Kenichi Handa <handa@m17n.org>
15011
15012 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15013 (font_parse_fcname): Fix handling of unknown key.
15014
15015 * xfont.c (xfont_list): Try an alias.
15016
15017 * charset.c (char_charset): Return NULL if the arg charset_list is
15018 specified and C doesn't belong to any of them.
15019
150202008-06-02 Chip Coldwell <coldwell@redhat.com>
15021
15022 * font.c (font_pixel_size): Don't take cdr of an integer.
15023
150242008-06-02 Jim Meyering <meyering@redhat.com>
15025
15026 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15027 * alloc.c (xfree): Return right away for a NULL arg.
15028 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15029 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15030 * mac.c (create_apple_event_from_event_ref): Likewise.
15031 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15032 Likewise.
15033 * doprnt.c (doprnt1): Likewise.
15034 * frame.c (frame): Likewise.
15035 * keyboard.c (wipe_kboard): Likewise.
15036 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15037 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15038 * term.c (tty_default_color_capabilities, maybe_fatal)
15039 (delete_tty): Likewise.
15040 * w16select.c (string): Likewise.
15041 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15042 * w32bdf.c (w32_free_bdf_font): Likewise.
15043 * w32fns.c (w32_unload_font): Likewise.
15044 * w32font.c (w32font_close): Likewise.
15045 * window.c (size_window): Likewise.
15046 * xselect.c (receive_incremental_selection): Likewise.
15047 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15048 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15049 * w32.c (stat): Likewise.
15050
15051 Remove useless if-before-free tests.
15052 * editfns.c (Fset_time_zone_rule): Likewise.
15053 * lread.c (nosuffix): Likewise.
15054 * ralloc.c (get_bloc): Likewise.
15055 * regex.c (reg_free): Likewise.
15056 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15057 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15058 * xsmfns.c (smc_save_yourself_CB): Likewise.
15059
150602008-06-02 Kenichi Handa <handa@m17n.org>
15061
15062 * font.c (font_find_for_lface): Handle float font size.
15063 (font_open_for_lface): Likewise.
15064
15065 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15066 comparing the properties.
15067
150682008-06-01 Jason Rumney <jasonr@gnu.org>
15069
15070 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15071 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15072 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15073 Don't add empty script list.
15074 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15075
150762008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15077
15078 * Makefile.in (dot, dotdot): Remove, update users.
15079 ".." has been used elsewhere in the file for a long time.
15080 (LIBXT_STATIC): Remove conditional based on unused variable.
15081
150822008-06-01 Miles Bader <miles@gnu.org>
15083
15084 * xfaces.c (Vface_remapping_alist): New variable.
15085 (syms_of_xfaces): Initialize it.
15086 (enum named_merge_point_kind): New type.
15087 (struct named_merge_point): Add `named_merge_point_kind' field.
15088 (push_named_merge_point): Make cycle detection respect different
15089 named-merge-point kinds.
15090 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15091 Remove face-name alias resolution.
15092 (lface_from_face_name): New definition using
15093 `lface_from_face_name_no_resolve'.
15094 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15095 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15096 (get_lface_attributes): New definition that layers face-remapping on
15097 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15098 (lookup_basic_face): New function.
15099 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15100 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15101 `get_lface_attributes'.
15102 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15103 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15104 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15105
15106 * xdisp.c (init_iterator): Pass base_face_id through
15107 `lookup_basic_face' when we actually use it as a face-id.
15108 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15109 DEFAULT_FACE_ID.
15110
15111 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15112 lookup the initial face-id.
15113
15114 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15115
151162008-06-01 Juanma Barranquero <lekktu@gmail.com>
15117
15118 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15119 (Fremove_text_properties): Fix typos in docstrings.
15120
151212008-05-31 Kenichi Handa <handa@m17n.org>
15122
15123 * font.c (font_list_entities): Fix the car part of data to be
15124 stored in the cache.
15125
15126 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15127
151282008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15129
15130 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15131 Add a `test' argument so another predicate than `equal' can be used.
15132 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15133 (map_char_table): Remove unused vars `c' and `i'.
15134 * lisp.h (Foptimize_char_table): Adjust declaration.
15135 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15136
151372008-05-30 Kenichi Handa <handa@m17n.org>
15138
15139 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15140 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15141 defined.
15142
151432008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15144
15145 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15146 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15147 frame-local settings for the same variable.
15148
151492008-05-30 Kenichi Handa <handa@m17n.org>
15150
15151 * fontset.c (Ffont_info): Move to font.c.
15152 (syms_of_fontset): Delete defsubr of Sfont_info.
15153
15154 * font.c (font_style_to_value, font_score): Delete casting of the
15155 args to xstcasecmp.
15156 (register_font_driver): Increment num_font_drivers only when
15157 registering the driver globally.
15158 (Ffont_info): Move from fontset.c. Handle a font object too.
15159 (syms_of_font): Defsubr Sfont_info.
15160
151612008-05-29 Kenichi Handa <handa@m17n.org>
15162
15163 * coding.h (enum define_coding_utf8_arg_index): New enum.
15164 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15165 coding_attr_utf_bom.
15166 (enum utf_bom_type): Rename from utf_16_bom_type.
15167 (struct utf_16_spec): Adjust for the above change.
15168 (struct coding_system): Add utf_8_bom in `spec' union.
15169
15170 * coding.c (CODING_UTF_8_BOM): New macro.
15171 (enum coding_category): Delete coding_category_utf_8, add
15172 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15173 coding_category_utf_8_sig.
15174 (CATEGORY_MASK_UTF_8): Delete it.
15175 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15176 (CATEGORY_MASK_UTF_8_SIG): New macros.
15177 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15178 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15179 CATEGORY_MASK_UTF_8_SIG.
15180 (CATEGORY_MASK_UTF_8): New macro.
15181 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15182 (detect_coding_utf_8): Check BOM.
15183 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15184 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15185 (encode_coding_utf_16): Likewise.
15186 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15187 (detect_coding, detect_coding_system): Handle utf-8-auto.
15188 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15189 (syms_of_coding): Fix setting up of Vcoding_category_table.
15190
151912008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15192
15193 * process.c (Faccept_process_output): If `millisec' is non-nil,
15194 `seconds' default to 0.
15195 (wait_reading_process_output): Also return non-nil if we read output
15196 from a non-running process.
15197
151982008-05-29 Jason Rumney <jasonr@gnu.org>
15199
15200 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15201 `raster' specified.
15202 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15203 in the uniscribe backend, but disallow any font that has no
15204 unicode subrange support.
15205
152062008-05-29 Juanma Barranquero <lekktu@gmail.com>
15207
15208 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15209 Fix typos in docstrings.
15210
152112008-05-29 Kenichi Handa <handa@m17n.org>
15212
15213 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15214 (Fx_family_fonts): Set frame correctly.
15215
152162008-05-28 Jason Rumney <jasonr@gnu.org>
15217
15218 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15219
152202008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15221
15222 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15223 calling build_annotations.
15224
152252008-05-28 Juanma Barranquero <lekktu@gmail.com>
15226
15227 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15228 (Fencode_coding_string):
15229 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15230 <latin-extra-code-table>: Fix typos in docstrings.
15231 (syms_of_coding) <coding-system-alist>: Doc fix.
15232 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15233
152342008-05-28 Kenichi Handa <handa@m17n.org>
15235
15236 * fontset.c (Ffont_info): Don't call font_close_object.
15237
15238 * font.c (font_parse_family_registry): Use Ffont_put to validate
15239 foundry and family.
15240 (font_delete_unmatched): Don't check spacing.
15241 (font_list_entities): Add spacing to the spec to list fonts.
15242
15243 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15244 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15245
15246 * coding.c (encode_coding_raw_text): Fix previous change.
15247 (encode_coding_object): When the dst_object is a buffer and is
15248 different from src_object, move gap to PT.
15249
152502008-05-27 Chong Yidong <cyd@stupidchicken.com>
15251
15252 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15253
152542008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15255
15256 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15257 all branches. Compute it differently.
15258
15259 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15260
152612008-05-27 Juanma Barranquero <lekktu@gmail.com>
15262
15263 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15264 into "else if () ... else ...".
15265
152662008-05-27 Jason Rumney <jasonr@gnu.org>
15267
15268 * w32font.c (w32font_open_internal): Determine if glyph indices
15269 are likely to work here.
15270
152712008-05-27 Chong Yidong <cyd@stupidchicken.com>
15272
15273 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15274 draw overlap glyphs with appropriate highlighting.
15275
152762008-05-27 Kenichi Handa <handa@m17n.org>
15277
15278 * xfont.c (xfont_open): Fix calculation of font->average_width.
15279
152802008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15281
15282 * casefiddle.c (casify_object): Try to guess better whether the
15283 argument is a byte or a char.
15284
152852008-05-26 Andreas Schwab <schwab@suse.de>
15286
15287 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15288 Always send multiples of format size.
15289
15290 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15291
152922008-05-26 Jason Rumney <jasonr@gnu.org>
15293
15294 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15295 (compute_metrics): Don't set failure if we just cleared the cache.
15296 (w32_weight_table): Remove unused variable.
15297 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15298 backwards compatibility.
15299
153002008-05-25 Kenichi Handa <handa@m17n.org>
15301
15302 * w32term.c (x_draw_glyph_string):
15303 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15304
15305 * xfaces.c: Delete unused function prototypes.
15306 (xstrlwr, font_frame): Delete them.
15307 (clear_face_cache): Delete unused variable.
15308
15309 * xftfont.c (xftfont_open): Delete unused variable.
15310 If underline_thickness is not 1, adjust underline_position.
15311
15312 * ftxfont.c (ftxfont_open): Delete unused variable.
15313
15314 * fontset.c (face_for_char): Optimize for the case of no charset
15315 property.
15316
15317 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15318 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15319 (otf_open, font_otf_capability, generate_otf_features)
15320 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15321 Comment out by surrounding "#if 0" and "#endif" for the moment.
15322 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15323 (syms_of_font): Codes for accessing above commented out.
15324
153252008-05-24 Eli Zaretskii <eliz@gnu.org>
15326
15327 * w32proc.c: Include dispextern.h.
15328
15329 * w32.c: Include dispextern.h.
15330
153312008-05-23 Juanma Barranquero <lekktu@gmail.com>
15332
15333 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15334 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15335 Fix typos in docstrings.
15336
153372008-05-23 Jason Rumney <jasonr@gnu.org>
15338
15339 * xsmfns.c: Remove includes that are already included by config.h.
15340
153412008-05-23 Kenichi Handa <handa@m17n.org>
15342
15343 * charset.c (Qemacs, charset_emacs): New variables.
15344 (char_charset): Fix for non-Unicode characters.
15345 (syms_of_charset): Define charset_emacs.
15346
15347 * w32term.c (x_draw_glyph_string): Be sure to update
15348 s->underline_thickness and s->underline_position. Be sure to draw
15349 underline within the current line area.
15350
15351 * xterm.c (x_draw_glyph_string): Be sure to update
15352 s->underline_thickness and s->underline_position. Be sure to draw
15353 underline within the current line area.
15354
15355 * fontset.c: Delete unused variables and add casting for char *
15356 throughout the file.
15357 (fontset_font): Try the fallback fonts of the current fontset
15358 before consulting the default fontset.
15359
15360 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15361
15362 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15363
153642008-05-22 Jason Rumney <jasonr@gnu.org>
15365
15366 * font.c: Don't include strings.h.
15367
15368 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15369
15370 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15371 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15372 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15373 to call xstrcasecmp.
15374
15375 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15376
15377 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15378
15379 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15380
15381 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15382
153832008-05-22 Kenichi Handa <handa@m17n.org>
15384
15385 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15386
15387 * font.c (font_prop_validate_style): Adjust for the format
15388 change of font_style_table.
15389
15390 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15391 two args.
15392
15393 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15394 two args.
15395
153962008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15397
15398 * minibuf.c (keys_of_minibuf): Delete.
15399 * lisp.h (keys_of_minibuf): Delete.
15400 * emacs.c (main): Don't call keys_of_minibuf.
15401
154022008-05-22 Kenichi Handa <handa@m17n.org>
15403
15404 * ftfont.c (ftfont_resolve_generic_family): Rename from
15405 ftfont_list_generic_family. Return a single family for each
15406 generic family.
15407 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15408 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15409 Call font_add_log.
15410 (ftfont_match): Call font_add_log.
15411
15412 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15413 (FONT_DEBUG): Define it.
15414 (font_add_log): Extern it.
15415 (font_assert): Rename from xassert.
15416
15417 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15418 (xfont_list_family): Call font_add_log.
15419 (xfont_match): Likewise.
15420 (memq_no_quit): Delete.
15421
15422 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15423 call of Ffont_xlfd_name.
15424
15425 * xfaces.c (struct table_entry, slant_table, weight_table)
15426 (swidth_table): Move to font.c.
15427
15428 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15429 xassert are changed to font_assert. Delete many unused variables.
15430 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15431 New variables.
15432 (struct table_entry): Move from xfaces.c and modified.
15433 (weight_table, slant_table, width_table): Move from xfaces.c and
15434 contents adjusted for the change of struct table_entry.
15435 (font_style_to_value, font_style_symbolic): Adjust for the
15436 format change of font_style_table.
15437 (font_parse_family_registry): Don't overwrite existing foundry and
15438 family of font_spec.
15439 (font_score): Fix calculation of diff for sizes.
15440 (font_sort_entites): Call font_add_log.
15441 (font_delete_unmatched): Return a newly created list.
15442 (font_list_entities): Fix previous change. Call font_add_log.
15443 (font_matching_entity, font_open_entity, font_close_entity):
15444 Call font_add_log.
15445 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15446 (Finternal_set_font_style_table): Delete.
15447 (BUILD_STYLE_TABLE): New macro.
15448 (build_style_table): New function.
15449 (Vfont_log, font_log_env_checked): New variables.
15450 (font_add_log): New function.
15451 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15452 Declare Lisp variables "font-weight-table", "font-slant-table",
15453 "font-width-table", and "font-log". Initialize font_style_table.
15454
154552008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15456
15457 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15458
154592008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15460 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15461
15462 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15463 (Vframe_alpha_lower_limit): New variable.
15464 (x_set_alpha): New function.
15465
15466 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15467
15468 * xfns.c (x-create-frame, Qalpha):
15469 Initialize the frame parameter `alpha'.
15470 * xterm.c (OPAQUE, OPACITY): New.
15471 (x_set_frame_alpha): New function.
15472 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15473
15474 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15475 * w32fns.c (w32_frame_parm_handlers): Likewise.
15476
154772008-05-20 Jason Rumney <jasonr@gnu.org>
15478
15479 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15480 truetype fonts to opentype list.
15481
154822008-05-20 Juanma Barranquero <lekktu@gmail.com>
15483
15484 * fontset.c (Ffontset_info): Doc fix.
15485 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15486 <ignore-relative-composition>: Fix typos in docstrings.
15487
15488 * font.c (syms-of-font) <font-encoding-alist>:
15489 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15490 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15491 (Ffont_otf_alternates): Doc fixes.
15492
154932008-05-20 Kenichi Handa <handa@m17n.org>
15494
15495 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15496 font.h through out the file.
15497 (FONT_DRIVERS): Rename from FONTOBJ.
15498 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15499 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15500
15501 * emacs.c (main): Call syms_of_font unconditionally.
15502
15503 * font.h (find_font_encoding): Extern it.
15504
15505 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15506 fontset.c.
194d44e7 15507 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
15508 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15509 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15510 only when HAVE_WINDOW_SYSTEM is defined.
15511 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15512 when HAVE_WINDOW_SYSTEM is defined.
15513
15514 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15515 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15516
15517 * xfaces.c: Include font.h unconditionally.
15518 (merge_face_ref, merge_face_vectors)
15519 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15520
155212008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15522
15523 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15524 indirect_variable.
15525 * eval.c (lisp_indirect_variable): New fun.
15526 (Fuser_variable_p): Use it.
15527
155282008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15529
15530 * lisp.h (indirect_variable):
15531 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15532 Use Lisp_Symbol pointers rather than Lisp_Object.
15533 Adjust callers.
15534 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15535 To this end, change calling-convention.
15536
15537 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15538 if some non-hidden buffers are selected by string&pred.
15539
155402008-05-19 Chong Yidong <cyd@stupidchicken.com>
15541
15542 * process.c (wait_reading_process_output): Always check status
15543 when in batch mode.
15544
155452008-05-19 Kenichi Handa <handa@m17n.org>
15546
15547 * font.c (font_list_entities): Fix handling of cache.
15548 (font_matching_entity): Likewise.
15549
15550 * ftfont.c (cs_iso8859_1): Delete.
15551 (ft_face_cache): New variable.
15552 (struct ftfont_info): New member fc_charset_idx.
15553 (ftfont_build_basic_charsets): Delete.
15554 (fc_charset_table): New variable.
15555 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15556 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15557 Callers changed.
15558 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15559 (ftfont_spec_pattern): New argument fc_charset_idx.
15560 Check registry more rigidly. Change callers.
15561 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15562 change of :font-entity property of the font.
15563
15564 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15565 property of the font.
15566
155672008-05-18 Juanma Barranquero <lekktu@gmail.com>
15568
15569 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15570 (Funencodable_char_position, Fcheck_coding_systems_region)
15571 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15572 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15573 (Ffind_operation_coding_system, Fset_coding_system_priority)
15574 (Fcoding_system_eol_type): Doc fixes.
15575
155762008-05-17 Glenn Morris <rgm@gnu.org>
15577
15578 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15579
155802008-05-16 Eli Zaretskii <eliz@gnu.org>
15581
15582 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15583 and st_gid.
15584
15585 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15586 HAVE_WINDOW_SYSTEM is not defined.
15587
15588 * xfaces.c (merge_face_ref, merge_face_vectors)
15589 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15590 HAVE_WINDOW_SYSTEM is defined.
15591 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15592
155932008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15594
15595 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15596
155972008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15598
15599 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15600
156012008-05-15 Kenichi Handa <handa@m17n.org>
15602
15603 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15604 preference.
15605
156062008-05-15 Glenn Morris <rgm@gnu.org>
15607
15608 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15609
156102008-05-15 Chong Yidong <cyd@stupidchicken.com>
15611
15612 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15613 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15614
15615 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15616
156172008-05-15 Kenichi Handa <handa@m17n.org>
15618
15619 * ftfont.c (ftfont_list): Downcase family name to check generic
15620 families.
15621
15622 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15623 font-spec for QCfont value.
15624
15625 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15626 buffer. Check the return value of it.
15627
156282008-05-14 Jason Rumney <jasonr@gnu.org>
15629
15630 * w32term.c (w32_get_glyph_overhangs): Remove.
15631 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15632
156332008-05-14 Kenichi Handa <handa@m17n.org>
15634
15635 * font.c (font_prop_validate): Make nil a valid value.
15636 (font_clear_cache): Check if the cached vector of entities is nil
15637 or not.
15638
156392008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15640
15641 * emacs.c (main_thread): Conditionalize on
15642 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15643 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15644
15645 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15646 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15647 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15648
156492008-05-14 Kenichi Handa <handa@m17n.org>
15650
15651 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15652 has no corresponding coding system.
15653
156542008-05-14 Jason Rumney <jasonr@gnu.org>
15655
15656 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15657
15658 * w32font.h (w32font_open_internal): Update declaration.
15659
15660 * w32font.c (w32font_open_internal): Change last argument from
15661 w32font_info struct to font object. Fill in font object from
15662 font_entity. Get Outline metrics if possible. Use them to
15663 calculate underline position and thickness. Use xlfd name as name
15664 property. Don't set codepage.
15665 (w32font_open): Pass font_object to w32font_open_internal. Don't
15666 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15667 (w32font_draw): Use s->font.
15668 (clear_cached_metrics): Don't clear non-existent blocks.
15669
15670 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15671 font was not found.
15672 (x_draw_glyph_string): Use underline position and thickness from font.
15673
15674 * w32uniscribe.c (uniscribe_open): Pass font_object to
15675 w32font_open_internal.
15676
156772008-05-14 Kenichi Handa <handa@m17n.org>
15678
15679 These changes are to delete all legacy font-handling codes, and
15680 make Emacs use only font-backends.
15681
15682 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15683 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15684
15685 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15686
15687 * charset.h (Vcharset_non_preferred_head)
15688 (Vcurrent_iso639_language): Extern them.
15689
15690 * charset.c (Vcharset_non_preferred_head): New variable.
15691 (Vcurrent_iso639_language): New variable.
15692 (syms_of_charset): Declare it as a Lisp variable.
15693 (char_charset): Don't check non preferred charsets. As a last
15694 resort, return charset_unicode.
15695 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15696
15697 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15698 conditionals. Don't check enable_font_backend. Delete all codes
15699 used only when USE_FONT_BACKEND is not defined.
15700
15701 * dispextern.h (struct glyph_string): Change type of `font' to
15702 `struct font *'.
15703 (struct glyph_string): New member underline_position and
15704 underline_thickness.
15705 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15706 (struct face): Change type of `font' to `struct font *'. Remove
15707 members `font_name', `font_info_id'.
15708 (per_char_metric, encode_char): Delete externs.
15709 (calc_pixel_width_or_height): Adjust the prototype.
15710
15711 * emacs.c (enable_font_backend): Delete extern.
15712 (main): Don't set enable_font_backend. Don't check the command
15713 line argument "-disable-font-backend".
15714
15715 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15716 (enum font_property_index): New members FONT_DPI_INDEX,
15717 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15718 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15719 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15720 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15721 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15722 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15723 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15724 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15725 (struct font_spec, struct font_entity): New structs.
15726 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15727 (struct font): Many members from old "struct font_info" moved to
15728 here. Members font and entity deleted.
15729 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15730 the new font-related objects.
15731 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15732 (CHECK_FONT_GET_OBJECT): Likewise.
15733 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15734 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15735 (struct font_driver): New members case_sensitive anc check. Type
15736 of the member list and open changed.
15737 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15738 (font_symbolic_width, font_find_object, font_get_spec)
15739 (font_set_lface_from_name): Delete extern.
15740 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15741
15742 * font.c: Include <strings.h>.
15743 (enable_font_backend): Delete it.
15744 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15745 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15746 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15747 (null_string): Delete it.
15748 (null_vector): Make it static.
15749 (font_family_alist): Delete it.
15750 (Qnormal): Extern it.
15751 (QCextra, QClanguage): Delete it.
15752 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15753 (font_make_spec, font_make_entity, font_make_object)
15754 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15755 the string. Callers changed.
15756 (font_pixel_size): Adjusted for the format change of font-related
15757 objects.
15758 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15759 (font_style_to_value, font_style_symbolic): New function.
15760 (build_font_family_alist): Delete it.
15761 (font_registry_charsets): Use Fassoc_string instead of
15762 assq_no_quit.
15763 (font_prop_validate_symbol): Don't return null_string.
15764 (font_prop_validate_style): Adjusted for the change of
15765 style-related values in a font vector.
15766 (font_property_table): Delete entries for QClanguage and
15767 QCantialias, add entries for QCavgwidth.
15768 (get_font_prop_index): Delete the 2nd argument FROM.
15769 (font_prop_validate): Arguments changed.
15770 (font_put_extra): Adjusted for the change of font-related objects.
15771 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15772 (font_parse_fcname, font_unparse_fcname)
15773 (font_prepare_composition): Likewise.
15774 (font_parse_family_registry): Renamed from font_merge_old_spec.
15775 (otf_open): Delete the 1st arg entity.
15776 (font_otf_capability): Adjusted for the above change.
15777 (font_score): New arg alternate_families. Adjusted for the change
15778 of font-related objects.
15779 (font_sort_entites): New arg best_only.
15780 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15781 Delete them.
15782 (font_match_p): Check alternate families.
15783 (font_find_object): Delete it.
15784 (font_check_object): New function.
15785 (font_clear_cache): Adjusted for the change of font-related objects.
15786 (font_delete_unmatched): New arg.
15787 (font_list_entities): Call font_driver->list with a spec that
15788 doesn't specify style-related properties.
15789 (font_matching_entity): Arguments changed. Caller changed.
15790 (font_open_entity): Adjusted for the change of font-related objects.
15791 (font_close_object, font_has_char, font_encode_char)
15792 (font_get_name, font_get_spec): Likewise.
15793 (font_spec_from_name, font_clear_prop, font_update_lface):
15794 New functions.
15795 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15796 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15797 (font_at): Adjusted for the change of font-related objects.
15798 (font_range): New function.
15799 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15800 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15801 (Fcopy_font_spec, Fmerge_font_spec): New function.
15802 (Ffont_family_list): Renamed from list-families.
15803 (Finternal_set_font_style_table): Arguments changed.
15804 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15805 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15806 change of font-related objects.
15807 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15808
15809 * fontset.h (struct font_info): Delete it. Most members go to
15810 struct font.
15811 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15812 (enum FONT_SPEC_INDEX): Delete it.
15813 (font_info, list_fonts_func, load_font_func, query_font_func)
15814 (set_frame_fontset_func, find_ccl_program_func)
15815 (get_font_repertory_func, new_fontset_from_font_name): Delete
15816 externs.
15817 (fontset_from_font_name): Extern it.
15818 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15819 (FONT_INFO_FROM_FACE): Deleted.
15820 (face_for_font): Adjust prototype.
15821
15822 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15823 conditionals. Don't check enable_font_backend. Delete all codes
15824 used only when USE_FONT_BACKEND is not defined.
15825 (get_font_info_func, list_font_func, load_font_func)
15826 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15827 (get_font_repertory_func): Delete them.
15828 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15829 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15830 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15831 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15832 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15833 (fontset_compare_rfontdef): New function.
15834 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15835 rfont-defs by qsort. Adjusted for the change of font-group vector.
15836 (load_font_get_repertory): Deleted.
15837 (fontset_find_font): Use new macros to ref/set elements of
15838 font-def and rfont-def.
15839 (fontset_font): Fix the timing of remembering that no font for C.
15840 (free_face_fontset): Do nothing if the face has no fontset.
15841 (face_suitable_for_char_p): Use new macros to ref/set elements of
15842 rfont-def.
15843 (face_for_char): Likewise. Call face_for_char with font_object.
15844 (fs_load_font): Delete. Delete #pragma surrounding it.
15845 (fs_query_fontset): Use strcasecmp instead of strcmp.
15846 (generate_ascii_font_name): Adjusted for the format change of
15847 font-spec.
15848 (Fset_fontset_font): Likewise. Use new macros to set elements of
15849 font-def.
15850 (Fnew_fontset): Use font_unparse_xlfd to generate
15851 FONTSET_ASCII (fontset).
15852 (new_fontset_from_font_name): Deleted.
15853 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15854 a fontset is already created for the font. FIx updating of
15855 Vfontset_alias_alist.
15856 (fontset_ascii_font): Deleted.
15857 (Ffont_info): Adjusted for the format change of font-spec.
15858 (Finternal_char_font): Likewise.
15859 (Ffontset_info): Likewise.
15860 (syms_of_fontset): Don't check load_font_func.
15861
15862 * fns.c (internal_equal): Handle PREV_FONT.
15863
15864 * frame.h: Delete USE_FONT_BACKEND conditional.
15865
15866 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15867 conditionals. Don't check enable_font_backend. Delete all codes
15868 used only when USE_FONT_BACKEND is not defined.
15869 (x_set_font): Call x_new_font, not x_new_fontset2.
15870 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15871 already set for the frame.
15872
15873 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15874 a font-entity by font_make_entity. Use font_intern_prop instead
15875 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15876 font property. If a font is scalable, set avgwidth property to 0.
15877 Set font-entity property by font_put_extra.
15878 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15879 (ffont_driver): Adjusted for the change of struct font_driver.
15880 (ftfont_spec_pattern): New function.
15881 (ftfont_list): Return a list, not vector.
15882 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15883 (ftfont_list_family): Don't downcase names.
15884 (ftfont_free_entity): Deleted.
15885 (ftfont_open): Return a font-object. Adjusted for the change of
15886 struct font. Get underline_thickness and underline_position from
15887 font property. Don't update dpyinfo->smallest_font_height and
15888 dpyinfo->smallest_char_width.
15889 (ftfont_close): Don't free `struct font'.
15890 (ftfont_has_char): Adjusted for the format change of font-entity.
15891 (ftfont_encode_char, ftfont_text_extents): Likewise.
15892
15893 * ftxfont.c (ftxfont_list): Return a list, not vector.
15894 (ftxfont_open): Return a font-object. Adjusted for the change of
15895 struct font. Get underline_thickness and underline_position from
15896 font property. Don't update dpyinfo->smallest_font_height and
15897 dpyinfo->smallest_char_width.
15898 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15899 (ftxfont_draw): Adjusted for the change of struct font.
15900
15901 * image.c (image_ascent): Don't include "charset.h". Include
15902 "character.h" and "font.h".
15903
15904 * lisp.h (enum pvec_type): New member PREV_FONT.
15905 (Fassoc_string): EXFUN it.
15906
15907 * print.c: Include font.h.
15908 (print_object): Handle font-related objects.
15909
15910 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15911 conditionals. Don't check enable_font_backend. Delete all codes
15912 used only when USE_FONT_BACKEND is not defined.
15913 (handle_auto_composed_prop): Do nothing if it->f is not on a
15914 window system. Check how many following characters can be
15915 displayed by the same font.
15916 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15917 'struct font *'.
15918 (get_char_face_and_encoding): Assign the whole encoding task to
15919 the `encode-char' method of a font driver.
15920 (fill_composite_glyph_string): Adjusted for the change of `struct
15921 face' and `struct glyph_string'.
15922 (fill_glyph_string): Likewise.
15923 (get_per_char_metric): Arguments changed.
15924 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15925 and `struct glyph_string'.
15926 (produce_stretch_glyph, calc_line_height_property)
15927 (x_produce_glyphs): Likewise.
15928
15929 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15930 conditionals. Don't check enable_font_backend. Delete all codes
15931 used only when USE_FONT_BACKEND is not defined. Use
15932 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15933 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15934 (Qp): Extern them.
15935 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15936 Deleted.
15937 (struct font_name): Deleted.
15938 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15939 (compare_fonts_by_sort_order): New function.
15940 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15941 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15942 Deleted.
15943 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15944 compare_fonts_by_sort_order.
15945 (Fx_font_family_list): Call Ffont_family_list.
15946 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15947 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15948 (face_symbolic_slant, face_symbolic_swidth)
15949 (split_font_name_into_vector, build_font_name_from_vector)
15950 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15951 (font_rescale_ratio, split_font_name, build_font_name)
15952 (free_font_names, sort_fonts, x_face_list_fonts)
15953 (face_font_available_p, sorted_font_list, cmp_font_names)
15954 (font_list_1, concat_font_list, font_list, remove_duplicates):
15955 Deleted.
15956 (Fx_list_fonts): Use Ffont_list.
15957 (LFACE_AVGWIDTH): Deleted.
15958 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15959 by FONTP.
15960 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15961 (set_lface_from_font_name): Delete it.
15962 (set_lface_from_font): Renamed from
15963 set_lface_from_font_and_fontset. Caller changed. Don't set
15964 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15965 for face.
15966 (merge_face_vectors): Copy font-spec if necessary.
15967 Clear properties of the font-spec if necessary.
15968 (merge_face_ref): Clear properties of the font-spec if necessary.
15969 (Finternal_set_lisp_face_attribute): Likewise.
15970 (set_font_frame_param): Use font_load_for_lface to load a
15971 font-object, and call Fmodify_frame_parameters with it.
15972 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15973 font name by Ffont_xlfd_name.
15974 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15975 QCslant, and QCwidth.
15976 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15977 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15978 Compare fonts by EQ.
15979 (lookup_non_ascii_face): Deleted.
15980 (face_for_font): The 2nd argument changed.
15981 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15982 Check atomic font properties by case insensitive.
15983 (realize_non_ascii_face): Set face->overstrike correctly.
15984 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15985 (dump_realized_face): Get font name from
15986 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15987
15988 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15989 conditionals. Don't check enable_font_backend. Delete all codes
15990 used only when USE_FONT_BACKEND is not defined.
15991 (xic_create_xfontset): Original code deleted and renamed from
15992 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15993 (x_make_gc): Don't set GCFont in GCs.
15994 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15995 opened by "fixed".
15996 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15997 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15998 get_font_repertory_func.
15999
16000 * xfont.c: Include <stdlib.h> and "ccl.h".
16001 (struct xfont_info): New structure.
16002 (xfont_query_font): Deleted.
16003 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16004 moved from xterm.c.
16005 (xfont_driver): Adjusted for the change of struct font_driver.
16006 (compare_font_names): New function.
16007 (xfont_list_pattern): Sort font names case insensitively. Make
16008 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16009 (xfont_list): Return a list, not vector.
16010 (xfont_match): If the font doesn't have QCname property, generate
16011 a name from the other font properties.
16012 (xfont_open): Return a font-object. Adjusted for the change of
16013 struct font. Get underline_thickness and underline_position from
16014 font property. Don't update dpyinfo->smallest_font_height and
16015 dpyinfo->smallest_char_width.
16016 (xfont_close): Don't free struct font.
16017 (xfont_prepare_face): Adjusted for the change of struct font.
16018 (xfont_done_face): Deleted.
16019 (xfont_has_char): Adjusted for the change of struct font.
16020 (xfont_encode_char, xfont_draw): Likewise.
16021 (xfont_check): New function.
16022
16023 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16024 callback function.
16025 (xftfont_match): Adjusted for the format change of font-entity.
16026 (xftfont_open): Adjusted for the format change of font-entity and
16027 font-object. Adjusted for the change of struct font. Return a
16028 font-object. Don't update dpyinfo->smallest_font_height and
16029 dpyinfo->smallest_char_width.
16030 (xftfont_close): Block input while calling XftFontClose.
16031 (xftfont_prepare_face): Don't block input while calling
16032 xftfont_get_colors. Adjusted for the change of struct font.
16033 (xftfont_shape): Return value of error case fixed.
16034
16035 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16036
16037 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16038 conditionals.
16039 (FONT_WIDTH): Return (f)->max_width.
16040 (struct x_display_info): Delete member `font'.
16041 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16042 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16043 (struct x_output): Change type of `font' to `struct font *'.
16044
16045 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16046 conditionals. Don't check enable_font_backend. Delete all codes
16047 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16048 (x_per_char_metric, x_encode_char): Deleted.
16049 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16050 (x_compute_glyph_string_overhangs): Adjusted for the change of
16051 `struct face'.
16052 (x_draw_glyph_string_foreground)
16053 (x_draw_composite_glyph_string_foreground): Likewise.
16054 (x_draw_glyph_string): Likewise. Use font->underline_position and
16055 font->underline_thickness.
16056 (x_new_font): Renamed from x_new_fontset2.
16057 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16058 (x_check_font): Call `check' method of a font driver.
16059 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16060 (x_query_font, x_get_font_repertory): Deleted.
16061 (x_find_ccl_program): Renamed and moved to xfont.c.
16062 (x_redisplay_interface): Adjusted for the change of `struct
16063 redisplay_interface'.
16064
16065 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16066 conditionals. Don't check enable_font_backend. Delete all codes
16067 used only when USE_FONT_BACKEND is not defined. Surround non-used
16068 code by "#ifdef OLD_FONT" and "endif".
16069 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16070
16071 * w32font.h (struct w32font_info): New member.
16072 (FONT_COMPAT): New macro.
16073 (w32font_open_internal): Prototype adjusted.
16074
16075 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16076 OLD_FONT" and "endif".
16077
16078 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16079 conditionals. Don't check enable_font_backend. Delete all codes
16080 used only when USE_FONT_BACKEND is not defined.
16081 (w32font_open): Return a font-object. Make a font-object by
16082 font_make_object. Adjusted for the change of struct w32font_info.
16083 (w32font_close): Don't free struct font. Adjusted for the change
16084 of struct w32font_info.
16085 (w32font_encode_char, w32font_text_extents, w32font_draw):
16086 Adjusted for the change of struct w32font_info.
16087 (w32font_draw): Likewise.
16088 (w32font_list_internal): Return a list, not vector.
16089 (w32font_open_internal): Change the 4th arg to font-object.
16090 Adjusted for the change of struct w32font_info and font-object format.
16091 (add_font_name_to_list): Don't downcase names.
16092 (w32_enumfont_pattern_entity): Make a font-entity by
16093 font_make_entity. Adjusted for the format change of font-entity.
16094 Use FONT_SET_STYLE to set a style-related font property. If a
16095 font is scalable, set avgwidth property to 0. Set font-entity
16096 property by font_put_extra.
16097 (font_matches_spec): Adjusted for the format change of font-entity.
16098 (w32_weight_table, w32_decode_weight): New variables.
16099 (w32_encode_weight): New function.
16100 (fill_in_logfont): Adjusted for the format change of font-spec.
16101 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16102 weight value.
16103 (w32font_driver): Adjusted for the change of struct font_driver.
16104
16105 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16106 conditionals. Don't check enable_font_backend. Surround non-used
16107 code by "#ifdef OLD_FONT" and "endif".
16108 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16109 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16110
16111 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16112 conditionals. Don't check enable_font_backend. Delete all codes
16113 used only when USE_FONT_BACKEND is not defined. Surround non-used
16114 code by "#ifdef OLD_FONT" and "endif".
16115
16116 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16117 (uniscribe_open): Return value changed to font-object.
16118 Adjusted for the format change of font-object.
16119 (uniscribe_otf_capability): Adjusted for the change of struct font.
16120 (add_opentype_font_name_to_list): Don't downcase names.
16121 (uniscribe_font_driver): Adjusted for the change of struct
16122 font_driver.
16123
161242008-05-13 Chong Yidong <cyd@stupidchicken.com>
16125
16126 * dispnew.c (update_frame_1): Check if tty output is still valid
16127 before flushing it.
16128
161292008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16130
16131 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16132 to Gtk+ menus.
16133
161342008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16135
16136 * dired.c (file_name_completion): Tweak the code so as to always do it
16137 in a single pass. Tighten the scope of some variables.
16138
16139 * dired.c (Qdefault_directory): New var.
16140 (file_name_completion): Use it instead of Fexpand_file_name.
16141 (syms_of_dired): Initialize it.
16142
161432008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16144
16145 * fileio.c (double_dollars): Remove dead code.
16146
161472008-05-10 Eli Zaretskii <eliz@gnu.org>
16148
16149 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16150 Mention w32-get-true-file-attributes in doc string.
16151
16152 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16153
161542008-05-09 Glenn Morris <rgm@gnu.org>
16155
16156 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16157 2008-04-23.
16158
161592008-05-09 Eli Zaretskii <eliz@gnu.org>
16160
16161 Support for reporting owner and group of each file on MS-Windows:
16162 * dired.c (stat_uname, stat_gname): New functions, with special
16163 implementation for w32.
16164 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16165
16166 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16167 (dflt_group_name): New static variable.
16168 (dflt_group): Rename from the_group.
16169 (init_user_info): Init dflt_group fields. Get user's group name
16170 from LookupAccountSid.
16171 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16172 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16173 New initialization states.
16174 (globals_of_w32): Initialize them to zero. Initialize the default
16175 group name to "None".
16176 (GetFileSecurity_Name): New global var, the name of the function
16177 to call for GetFileSecurity.
16178 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16179 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16180 (get_file_security, get_security_descriptor_owner)
16181 (get_security_descriptor_group, is_valid_sid)
16182 (get_file_security_desc, get_rid, get_name_and_id)
16183 (get_file_owner_and_group): New functions.
16184 (stat): Use get_file_security_desc and get_file_owner_and_group to
16185 report the owner and primary group of each file. Don't ignore the
16186 high 32 bits of file's size, now that st_size is 64-bit wide.
16187 Fix test when to get true file attributes.
16188 (init_user_info): Use get_rid instead of equivalent inline code.
16189 (fstat): Don't ignore the high 32 bits of file's size.
16190
161912008-05-09 Chong Yidong <cyd@stupidchicken.com>
16192
16193 * image.c (png_load): Use correct bit-depth for setting background
16194 color.
16195
161962008-05-08 Eli Zaretskii <eliz@gnu.org>
16197
16198 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16199 epa-hook.elc.
16200
162012008-05-08 Juanma Barranquero <lekktu@gmail.com>
16202
16203 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16204
162052008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16206
16207 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16208 because the original parameters are in pure storage now.
16209 (mac_window): Remove unused params. Update callers.
16210
162112008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16212
16213 * lread.c (substitute_object_recurse): Use lower-level primitives.
16214 Don't signal errors when traversing sub-char-tables.
16215 Don't loop over all the possible characters when traversing char-tables.
16216
16217 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16218 just like we do in print.c.
16219
162202008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16221
16222 * minibuf.c (Ftry_completion): Remove code left over from when we used
16223 scmp instead of Fcompare_strings.
16224
162252008-05-04 Juanma Barranquero <lekktu@gmail.com>
16226
16227 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16228
162292008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16230
16231 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16232 Create bitmap context in native byte order.
16233
16234 * macterm.c (XDrawLine)
16235 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16236 context in native byte order.
16237
162382008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16239
16240 * config.in: Regenerate.
16241
16242 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16243 New definitions for Image I/O support.
16244 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16245 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16246 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16247 (mac_data_provider_release_data, image_load_image_io)
16248 [USE_MAC_IMAGE_IO]: New functions.
16249 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16250 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16251 (init_image_func_pointer) [MAC_OSX]: Remove function.
16252 (image_load_quartz2d) [MAC_OSX]: Check availability of
16253 CGImageCreateWithPNGDataProvider at compile time.
16254 Use lowercase `false' for boolean constant.
16255 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16256 Use image_load_image_io.
16257 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16258 Don't check MyCGImageCreateWithPNGDataProvider.
16259 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16260 Don't call init_image_func_pointer.
16261
16262 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16263
16264 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16265 Make variable non-static.
16266 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16267 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16268
16269 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16270 (RED_FROM_ULONG): Mask off higher bits.
16271 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16272
16273 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16274 Include AvailabilityMacros.h.
16275 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16276 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16277
162782008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16279
16280 * chartab.c (Fset_char_table_range): If range is t, really set all
16281 chars to that value.
16282
162832008-05-03 Eli Zaretskii <eliz@gnu.org>
16284
16285 * dired.c (Ffile_attributes): Don't allow the device number become
16286 negative.
16287
162882008-05-02 Daiki Ueno <ueno@unixuser.org>
16289
16290 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16291
162922008-05-02 Juri Linkov <juri@jurta.org>
16293
16294 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16295 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16296 DEFAULT argument as a list of default values in docstrings.
16297
162982008-05-01 Chong Yidong <cyd@stupidchicken.com>
16299
16300 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16301
163022008-05-01 Martin Rudalics <rudalics@gmx.at>
16303
16304 * dispnew.c (change_frame_size_1): Preserve small windows when
16305 shrinking frames by calling set_window_height|width with third
16306 arg 2.
16307
16308 * window.h (struct window): Replace field too_small_ok by field
16309 resize_proportionally.
16310
16311 * window.c (make_window): Initialize resize_proportionally.
16312 (enlarge_window): Temporarily set resize_proportionally to make
16313 sure that shrink_windows does scale the window proportionally.
16314 (shrink_windows): When window has resize_proportionally set try
16315 to shrink it proportionally by stealing from other windows.
16316 (struct saved_window, Fset_window_configuration)
16317 (compare_window_configurations): Handle resize_proportionally.
16318 (WINDOW_TOTAL_SIZE): New macro.
16319 (window_min_size, shrink_windows, size_window): Use it.
16320 (check_min_window_sizes): Remove. Invalid values of
16321 window-min-height|width are handled by window_min_size_2 now.
16322 (size_window, Fsplit_window, enlarge_window)
16323 (adjust_window_trailing_edge, grow_mini_window): Don't call
16324 check_min_window_sizes.
16325 (window_min_size_2, window_min_size_1, window_min_size):
16326 New argument safe_p for retrieving "safe" minimum sizes.
16327 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16328 (adjust_window_trailing_edge, grow_mini_window):
16329 Adjust arguments of window_min_size... functions.
16330 (shrink_windows): Argument min_size removed. New argument
16331 safe_p allows shrinking windows to their safe minimum sizes.
16332 Calculate minimum size and decide whether a window shall be
16333 deleted for each window individually.
16334 (size_window): When nodelete_p equals 2, tell shrink_windows to
16335 delete windows only if their new minimum size is no more safe.
16336 (shrink_window_lowest_first): Call window_min_size_1 to make
16337 sure to preserve modeline of bottom-most window when resizing
16338 the minibuffer.
16339 (Fset_window_configuration, Fcurrent_window_configuration)
16340 (compare_window_configurations): Do not handle
16341 window-min-height|width any more.
16342 (syms_of_window): Clarify window-min-height|width doc-strings.
16343
163442008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16345
16346 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16347 some more. Copy some of the code from Ftry_completions.
16348 Remove special case code that dates back to initial revision when the
16349 slash was only added when necessary and that can't trigger nowadays.
16350
163512008-04-27 Kenichi Handa <handa@m17n.org>
16352
16353 * font.c (font_prop_validate): Signal `error' instead of `font'.
16354
163552008-04-29 Jason Rumney <jasonr@gnu.org>
16356
16357 * w32fns.c (Fw32_battery_status): New defun.
16358 (syms_of_w32fns): Defsubr it.
16359
163602008-04-28 Andreas Schwab <schwab@suse.de>
16361
16362 * dired.c (file_name_completion): Fix another mixing of encoded
16363 and decoded names.
16364
163652008-04-28 Juanma Barranquero <lekktu@gmail.com>
16366
16367 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16368
163692008-04-27 Juanma Barranquero <lekktu@gmail.com>
16370
16371 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16372
163732008-04-27 Andreas Schwab <schwab@suse.de>
16374
16375 * dired.c (file_name_completion): Fix inappropriate mixing of
16376 encoded and decoded names.
16377
16378 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16379
16380 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16381
163822008-04-26 Eli Zaretskii <eliz@gnu.org>
16383
16384 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16385 2008-03-31, it's not needed anymore with `struct stat' definition
16386 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16387 for the same reasons.
16388
163892008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16390
16391 * m/sparc.h: Additional redefinitions for GNU/Linux.
16392
163932008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16394
16395 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16396 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16397 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16398 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16399 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16400 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16401 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16402 Likewise.
16403
16404 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16405 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16406 (mac_ax_number_of_characters): Add externs.
16407 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16408 [USE_MAC_TSM]: Likewise.
16409 (mac_handle_text_input_event) [MAC_OSX]:
16410 Handle kEventTextInputOffsetToPos for no active input area case.
16411 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16412 (mac_handle_document_access_event)
16413 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16414 (install_application_handler) [MAC_OSX]: Register handlers for
16415 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16416 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16417 Register mac_handle_document_access_event.
16418
16419 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16420 Make functions non-static.
16421
164222008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16423
16424 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16425 (read_file_name_completion_ignore_case, insert_default_directory)
16426 (Qdefault_directory): Move to minibuffer.el.
16427 (Fread_file_name): Call the new `read-file-name' instead.
16428
164292008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16430
16431 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16432 Make function non-static.
16433 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16434 Remove function.
16435 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16436 Move to mactoolbox.c.
16437 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16438
16439 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16440 (mac_rect_make): New macro.
16441
16442 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16443 instead of float.
16444 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16445 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16446 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16447 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16448 CGRectMake.
16449 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16450 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16451 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16452 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16453 instead of WindowRef in argument type.
16454 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16455 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16456 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16457 instead of DISPLAY. All uses changed.
16458 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16459 (x_calc_absolute_position): Simplify so as not to use
16460 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16461
16462 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16463 instead of WindowRef in argument type.
16464 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16465 [TARGET_API_MAC_CARBON]: Remove externs.
16466 (create_apple_event, mac_event_parameters_to_lisp)
16467 [TARGET_API_MAC_CARBON]: Add externs.
16468
16469 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16470 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16471 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16472 is clicked.
16473 (x_activate_menubar): Remove extern for saved_menu_event_location.
16474 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16475 Move from mac.c.
16476
164772008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16478
16479 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16480 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16481
164822008-04-23 Jason Rumney <jasonr@gnu.org>
16483
16484 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16485 attributes only for local files.
16486
16487 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16488 default to Qlocal.
16489
164902008-04-22 Juri Linkov <juri@jurta.org>
16491
16492 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16493 read-buffer-to-switch instead of using the letter "B".
16494
164952008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16496
16497 * fileio.c (Qdefault_directory): New variable.
16498 (Fread_file_name): Use it to pass `dir' to the completion functions.
16499
165002008-04-20 Chong Yidong <cyd@stupidchicken.com>
16501
16502 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16503
165042008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16505
16506 * keyboard.c (Vpre_help_message): Remove.
16507 (show_help_echo): Remove default C code.
16508
16509 * dired.c (directory_files_internal, file_name_completion):
16510 Only call ENCODE_FILE if the string is indeed decoded.
16511
165122008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16513
16514 * Makefile.in (TOOLKIT_DEFINES): Remove.
16515 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16516
165172008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16518
16519 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16520 (mactoolbox.o): New target.
16521
16522 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16523 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16524
16525 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16526 Use mac_set_frame_window_background instead of XSetWindowBackground.
16527 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16528 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16529 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16530 instead of SetWindowTitleWithCFString.
16531 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16532 Move function to mactoolbox.c.
16533 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16534 Use mac_set_window_modified instead of SetWindowModified.
16535 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16536 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16537 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16538 FrontNonFloatingWindow. Use mac_activate_window instead of
16539 ActivateWindow. Use mac_active_non_floating_window instead of
16540 ActiveNonFloatingWindow.
16541 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16542 Use mac_show_hourglass and mac_hide_hourglass.
16543 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16544 instead of GetGlobalMouse.
16545 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16546 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16547 Use mac_bring_window_to_front instead of BringToFront.
16548 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16549 mactoolbox.c.
16550 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16551 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16552 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16553 mactoolbox.c.
16554
16555 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16556 (XtPointer): Move typedef from macmenu.c.
16557 (enum button_type): Move enum from macmenu.c.
16558 (widget_value): Move typedef from macmenu.c.
16559 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16560 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16561 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16562 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16563 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16564 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16565 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16566 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16567 (Selection): Move typedef from macselect.c.
16568 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16569 macterm.c.
16570 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16571 (mac_is_window_collapsed, mac_bring_window_to_front)
16572 (mac_send_window_behind, mac_hide_window, mac_show_window)
16573 (mac_collapse_window, mac_front_non_floating_window)
16574 (mac_active_non_floating_window, mac_activate_window)
16575 (mac_move_window_structure, mac_move_window, mac_size_window)
16576 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16577
16578 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16579 (enum mac_menu_kind): Move enum to mactoolbox.c.
16580 (min_menu_id): Move variable to mactoolbox.c.
16581 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16582 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16583 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16584 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16585 [TARGET_API_MAC_CARBON]: Likewise.
16586 (XtPointer): Move typedef to macgui.h.
16587 (enum button_type): Move enum to macgui.h.
16588 (widget_value): Move typedef to macgui.h.
16589 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16590 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16591 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16592 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16593 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16594 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16595 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16596 (popup_activated_flag): Make variable non-static.
16597 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16598 (add_menu_item, fill_menu, dispose_menus):
16599 Move functions to mactoolbox.c.
16600 (restore_show_help_function, menu_target_item_handler)
16601 (install_menu_target_item_handler, mac_handle_dialog_event)
16602 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16603 [TARGET_API_MAC_CARBON]: Likewise.
16604 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16605 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16606 (find_and_call_menu_selection, name_is_separator): Make function
16607 non-static.
16608 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16609 to mactoolbox.c.
16610 (set_frame_menubar): Don't call install_menu_quit_handler.
16611 (menu_item_selection): New variable.
16612 (mac_menu_show): Use create_and_show_popup_menu.
16613 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16614 selection but set variable menu_item_selection. All uses changed.
16615 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16616 Call install_menu_quit_handler. Move to mactoolbox.c.
16617
16618 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16619 (Selection): Move typedef to macgui.h.
16620 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16621 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16622 Make variables non-static.
16623 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16624 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16625 Make functions non-static.
16626 (Vmac_service_selection) [MAC_OSX]: Likewise.
16627 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16628 (mac_valid_selection_target_p, mac_clear_selection)
16629 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16630 (mac_put_selection_value, mac_selection_has_target_p)
16631 (mac_get_selection_value, mac_get_selection_target_list)
16632 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16633 Move functions to mactoolbox.c.
16634 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16635 Likewise.
16636 (copy_scrap_flavor_data, mac_handle_service_event)
16637 (install_service_handler) [MAC_OSX]: Likewise.
16638 (syms_of_macselect) <Vmac_dnd_known_types>:
16639 Use mac_dnd_default_known_types.
16640
16641 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16642 Move to mactoolbox.c.
16643 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16644 (Fx_selection_owner_p): Add EXFUN.
16645 (install_window_handler, remove_window_handler, XSetWindowBackground):
16646 Remove externs.
16647 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16648 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16649 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16650 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16651 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16652 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16653 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16654 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16655 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16656 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16657 (mac_valid_selection_target_p, mac_clear_selection)
16658 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16659 (mac_put_selection_value, mac_selection_has_target_p)
16660 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16661 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16662 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16663 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16664 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16665 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16666 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16667 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16668 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16669
16670 * mactoolbox.c: New file.
16671
166722008-04-18 Jason Rumney <jasonr@gnu.org>
16673
16674 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16675
166762008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16677
16678 * character.c (Fmultibyte_char_to_unibyte):
16679 Return latin1 chars unchanged.
16680
16681 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16682 relocated if it points to `name'.
16683
166842008-04-17 Kenichi Handa <handa@m17n.org>
16685
16686 * data.c (Faset): Allow setting a multibyte character in an
16687 ASCII-only unibyte string.
16688
16689 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16690
166912008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16692
16693 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16694 done in config.h.
16695
166962008-04-16 Juanma Barranquero <lekktu@gmail.com>
16697
16698 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16699 (Fchar_direction): Add usage in the docstring.
16700
167012008-04-15 Chong Yidong <cyd@stupidchicken.com>
16702
16703 * keyboard.c (read_key_sequence): Remove always-true checks.
16704
167052008-04-14 Jason Rumney <jasonr@gnu.org>
16706
16707 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16708 compatibility struct, for better underline positioning.
16709
167102008-04-13 David Hansen <david.hansen@gmx.net>
16711
16712 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16713 string.
16714
167152008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16716
16717 * m/hp800.h (XUINT, XSET): Remove.
16718
167192008-04-12 Juanma Barranquero <lekktu@gmail.com>
16720
16721 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16722 previous change.
16723
167242008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16725
16726 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16727 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16728
167292008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16730
16731 * keymap.h (map_keymap_canonical): Declare.
16732 * xmenu.c (single_keymap_panes): Use it.
16733
167342008-04-11 Glenn Morris <rgm@gnu.org>
16735
16736 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16737 set the target's value to that of the alias.
16738
167392008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16740
16741 * term.c (set_tty_color_mode): Left over typo.
16742
167432008-04-10 Michael Albinus <michael.albinus@gmx.de>
16744
16745 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16746 only after check for file name handler functions. Signal, when
16747 native functionality is not supported.
16748 (syms_of_fileio): Declare it unconditionally.
16749
167502008-04-10 Jason Rumney <jasonr@gnu.org>
16751
16752 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16753 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16754
16755 * w32.c (logon_network_drive): Also logon to remote drives that
16756 are mapped to drive letters.
16757
167582008-04-10 Glenn Morris <rgm@gnu.org>
16759
16760 * xdisp.c (truncate-partial-width-windows): Doc fix.
16761
167622008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16763
16764 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16765 Move functions to minibuffer.el.
16766 (syms_of_fileio): Don't declare them.
16767
167682008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16769
16770 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16771 (syms_of_minibuf): Remove its initialization.
16772
16773 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16774
167752008-04-09 Juanma Barranquero <lekktu@gmail.com>
16776
16777 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16778
167792008-04-09 Jason Rumney <jasonr@gnu.org>
16780
16781 * makefile.w32-in (distclean): Delete makefile too.
16782 (maintainer-clean): New target.
16783
16784 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16785
16786 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16787 for new font backend and composite cases.
16788
167892008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16790
16791 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16792 Most of the code moved to run_timers.
16793 (do_pending_atimers): Call run_timers.
16794 (run_timers): New function.
16795
16796 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16797 run atimers.
16798
16799 * process.c (wait_reading_process_output): The same as above.
16800
168012008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16802
16803 * minibuf.c (last_exact_completion): Remove variable.
16804 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16805 (complete_and_exit_1, complete_and_exit_2)
16806 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16807 (Fdisplay_completion_list, display_completion_list_1)
16808 (Fminibuffer_completion_help, Fself_insert_and_exit)
16809 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16810 minibuffer.el.
16811 (syms_of_minibuf): Remove corresponding initializations.
16812
16813 * keyboard.c (Qdeactivate_mark): New var.
16814 (command_loop_1): Use it to call `deactivate-mark'.
16815 (syms_of_keyboard): Initialize it.
16816
16817 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16818 to another frame.
16819 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16820 Don't call set_tty_color_mode.
16821 (store_frame_param): Reset previous_frame rather than call
16822 set_tty_color_mode.
16823 * term.c (set_tty_color_mode): Rewrite.
16824 * dispextern.h (set_tty_color_mode): New type.
16825 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16826
168272008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16828
16829 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16830 for generic chars, which do not exist any more in emacs-unicode.
16831
168322008-04-08 Michael Albinus <michael.albinus@gmx.de>
16833
16834 * coding.c (detect_coding_emacs_mule)
16835 (Ffind_operation_coding_system): Fix typo.
16836
168372008-04-08 Jason Rumney <jasonr@gnu.org>
16838
16839 * w32uniscribe.c (SNAME): Extract only symbol name.
16840
16841 * w32font.h (struct w32_metric_cache): New struct.
16842 (w32font_info): Use it.
16843 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16844 (CACHE_BLOCKSIZE): New constants.
16845
16846 * w32font.c (Qja, Qko, Qzh): New symbols.
16847 (syms_of_w32font): Initialise them.
16848 (font_matches_spec): Use them to filter by language.
16849 (recompute_cached_metrics): Remove function.
16850 (compute_metrics, clear_cached_metrics): New functions.
16851 (w32font_encode_char): Use them to manage metric cache.
16852 (w32font_text_extents): Cache metrics for all glyphs on demand.
16853 Delay converting glyph indices to WORD until needed.
16854 (w32font_open_internal): Initialize metric cache to empty.
16855 (registry_to_w32_charset): Charset should always be a symbol.
16856 (fill_in_logfont, list_all_matching_fonts): Family should
16857 always be a symbol.
16858
168592008-04-06 Jason Rumney <jasonr@gnu.org>
16860
16861 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16862 Give up if glyph indices not supported. Use uniscribe obtained
16863 ABC widths for individual metrics. Map glyph clusters back to
16864 characters using fClusterStart flag. Return number of glyphs
16865 produced, not chars processed.
16866 (uniscribe_shape): Map char at FROM to current glyph.
16867
168682008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16869
16870 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16871 Use SetMenuItemHierarchicalMenu.
16872
168732008-04-05 Jason Rumney <jasonr@gnu.org>
16874
16875 * image.c (pbm_load): Allow color values up to 65535.
16876 Throw an error if max_color_idx is outside the supported range.
16877 Report an error when image size is invalid.
16878 Read two bytes at a time when raw images have max_color_idx above 255.
16879
aac0c6e3
MR
168802008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16881
16882 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16883 append "CCL: Quitted" when the CCL program is quitted.
16884 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16885
16886 * ccl.h (struct ccl_program): New member quit_silently.
16887
168882008-04-05 Chong Yidong <cyd@stupidchicken.com>
16889
16890 * search.c (compile_pattern_1): Treat non-nil and non-string of
16891 search-spaces-regexp as nil.
16892
16893 * minibuf.c (Fassoc_string): Tweak docstring.
16894
168952008-04-05 Eli Zaretskii <eliz@gnu.org>
16896
16897 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16898 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16899 2008-03-14 to force inode be positive.
16900
16901 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16902 _S_* ones, since we now use our own sys/stat.h.
16903 (stat, fstat): Don't mangle the inode number.
16904 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16905
169062008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16907
16908 * frame.h (struct frame): Give one more bit to `visible' since we use
16909 values larger than 1 to indicate obscured frames on ttys.
16910
16911 * keymap.c (Qkeymap_canonicalize): New var.
16912 (Fmap_keymap_internal): New fun.
16913 (describe_map): Use keymap-canonicalize.
16914
16915 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16916 (Fundo_boundary): Set them.
16917 (syms_of_undo): Initialize them.
16918 (record_point): Use them instead of last_point_position*.
16919 (last_undo_buffer): Change type.
16920
169212008-04-04 Jason Rumney <jasonr@gnu.org>
16922
16923 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16924 (recompute_cached_metrics): Don't set ascent and descent per char.
16925
16926 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16927 (uniscribe_check_otf): Add GC protection before consing.
16928 Rearrange loop for counting features.
16929
169302008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16931
16932 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16933 buffer with byte-size of source buffer.
16934
169352008-04-03 Chong Yidong <cyd@stupidchicken.com>
16936
16937 * callint.c (Fcall_interactively): Handle temporary region even
16938 when shift-select-mode is off.
16939
169402008-04-03 Jason Rumney <jasonr@gnu.org>
16941
16942 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16943
169442008-04-03 Kenichi Handa <handa@m17n.org>
16945
16946 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16947 (CATEGORY_MASK_UTF_16): Likewise.
16948 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16949 binary file.
16950 (detect_coding): Add null-byte detection for a binary file.
16951 (detect_coding_system): Likewise.
16952
169532008-04-03 Jason Rumney <jasonr@gnu.org>
16954
16955 * w32uniscribe.c: New file.
16956
16957 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16958
16959 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16960
16961 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16962 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16963 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16964 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16965 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16966 (Qphonetic): New symbols.
16967 (syms_of_w32font): Initialize them.
16968 (font_supported_scripts): Use them.
16969 (w32font_list_family): List all charsets.
16970 (w32font_text_extents, recompute_cached_metrics): Fix metric
16971 calculations.
16972 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16973 Give opentype fonts their own format.
16974 (font_matches_spec): New arguments backend and logfont.
16975 Handle :otf spec for uniscribe backend.
16976 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16977 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16978
16979 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16980 font backend.
16981 (globals_of_w32fns): Initialize uniscribe font backend.
16982
16983 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16984 dependencies.
16985 (w32uniscribe.$(O)): New file to build.
16986 (FONT_OBJ): Include w32uniscribe.$(O).
16987 (LIBS): Add uniscribe libraries.
16988
16989 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16990
169912008-04-02 Chong Yidong <cyd@stupidchicken.com>
16992
16993 * callint.c (Vshift_select_mode): New var.
16994 (Finteractive): Document new ^ spec.
16995 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16996 is present.
16997
16998 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16999 (command_loop_1): Avoid running the direct display versions of
17000 forward-char and backward-char if shift-selection may occur.
17001 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17002 shift-translation takes place.
17003
17004 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17005 avoid clobbering by define-minor-mode.
17006
17007 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17008 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17009
17010 * syntax.c (Fforward_word): Add ^ interactive spec.
17011
17012 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17013 (Fscroll_right): Add ^ interactive spec.
17014
170152008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17016
17017 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17018
17019 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17020
17021 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17022
170232008-03-31 Juri Linkov <juri@jurta.org>
17024
17025 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17026
170272008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17028
17029 * gtkutil.c (xg_set_geometry): Fix indentation.
17030 (xg_resize_outer_widget): Remove.
17031 (x_wm_size_hint_off): Fix indentation.
17032 (xg_frame_set_char_size): Call flush_and_sync after
17033 gtk_window_resize.
17034 (x_wm_set_size_hint): Pass NULL as geometry window to
17035 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17036 Add menu bar and tool bar height to base height.
17037 (xg_update_frame_menubar, free_frame_menubar)
17038 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17039 (update_frame_tool_bar, free_frame_tool_bar):
17040 Change xg_resize_outer_widget to xg_frame_set_char_size.
17041
170422008-03-30 Michael Albinus <michael.albinus@gmx.de>
17043
17044 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17045 (Fdbus_call_method): New parameter TIMEOUT.
17046 (dbus-send-signal): Optimize UNGCPRO call.
17047
170482008-03-29 Juri Linkov <juri@jurta.org>
17049
17050 * window.c (Fdisplay_buffer): Move call to
17051 Vsplit_window_preferred_function out of conditions that check
17052 if window is eligible for vertical splitting.
17053 When Vsplit_window_preferred_function is non-nil, call it and use
17054 its non-nil return value as window. Otherwise, continue doing
17055 vertical splitting using Fsplit_window with arg horflag=nil.
17056 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17057 default value from `split-window' to nil.
17058
170592008-03-29 Juri Linkov <juri@jurta.org>
17060
17061 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17062 for interactive code letters 'b' and 'B'.
17063
170642008-03-29 Eli Zaretskii <eliz@gnu.org>
17065
17066 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17067 multibyte string.
17068
170692008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17070
17071 * keyboard.c (pending_funcalls): New var.
17072 (timer_check): Run it.
17073 (syms_of_keyboard): Initialize it.
17074 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17075 (Vdelete_terminal_functions): New vars.
17076 (syms_of_terminal): Initialize them.
17077 (Fdelete_terminal): Run delete-terminal-functions.
17078 * xdisp.c (safe_eval): Rewrite.
17079 (safe_call2): New fun.
17080 * frame.c (Qdelete_frame_functions): New var.
17081 (syms_of_frame): Initialize it.
17082 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17083 * lisp.h (safe_call2, pending_funcalls): Declare.
17084
170852008-03-28 Andreas Schwab <schwab@suse.de>
17086
17087 * indent.c (Fmove_to_column): Move declaration before statements.
17088
170892008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17090
17091 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17092 (struct frame): Use bit fields for boolean vars.
17093
17094 * process.c (server_accept_connection): Simplify naming.
17095 (emacs_get_tty_pgrp): Use SDATA.
17096
17097 * coding.c (decode_coding_object): Fix last change.
17098
170992008-03-27 Jason Rumney <jasonr@gnu.org>
17100
17101 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17102
171032008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17104
17105 * charset.c (Fdefine_charset_internal): Change the way of
17106 registering charsets in Vcharset_order_list.
17107 (syms_of_charset): Make the charset `eight-bit' supplementary.
17108
171092008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17110
17111 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17112 operations, to avoid having the difference between pointers
17113 overflow.
17114
171152008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17116
17117 * indent.c (check_display_width): New fun.
17118 (scan_for_column): Use it.
17119
17120 * data.c (syms_of_data): Mark most-positive-fixnum and
17121 most-negative-fixnum as constants.
17122
17123 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17124
17125 * indent.c (scan_for_column): Extract from current_column_1.
17126 Merge with the same code from Fmove_to_column.
17127 (current_column_1, Fmove_to_column): Use it.
17128
171292008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17130
17131 * keymap.c (map_keymap_internal): New fun.
17132 (map_keymap): Use it.
17133 (Fmap_keymap_internal): New fun.
17134 (Fmap_keymap): Remove left-out test from before make_save_value.
17135
17136 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17137
17138 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17139 Use XCAR/XCDR.
17140
17141 * process.h (struct Lisp_Process): Remove filter_multibyte.
17142 * process.c (QCfilter_multibyte): Remove.
17143 (setup_process_coding_systems): Don't use filter_multibyte.
17144 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17145 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17146 (Fset_process_filter_multibyte): Change the coding-system to
17147 approximate the previous behavior.
17148 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17149 coding-system.
17150
17151 * coding.c (decode_coding_object): When not decoding into a buffer,
17152 obey the coding system's preference of (uni|multi)byte.
17153
171542008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17155
17156 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17157 every char is changed and has a different byte-length.
17158 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17159 Fix int -> EMACS_INT.
17160
171612008-03-23 David Hansen <david.hansen@gmx.net>
17162
17163 * dbusbind.c (xd_read_message): Remove extra copying of message
17164 strings. Check for NULL `interface' or `member'.
17165
171662008-03-22 Eli Zaretskii <eliz@gnu.org>
17167
17168 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17169 cFileName a file name that includes `?' characters, use the 8+3
17170 alias in cAlternateFileName instead.
17171
171722008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17173
17174 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17175
171762008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17177
17178 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17179 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17180 work on current_buffer only instead (that was already the case
17181 for some of the code anyway).
17182 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17183 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17184 (SET_PT, SET_PT_BOTH): Adjust.
17185 * intervals.h (set_point, temp_set_point, set_point_both)
17186 (temp_set_point_both): Remove redundant declarations.
17187
171882008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17189
17190 * fileio.c (Finsert_file_contents):
17191 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17192 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17193 when buffer != current_buffer anyway.
17194
171952008-03-20 Andreas Schwab <schwab@suse.de>
17196
17197 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17198 as default.
17199
172002008-03-19 Jason Rumney <jasonr@gnu.org>
17201
17202 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17203 (syms_of_w32fns): Initialize them.
17204 (HOURGLASS_ID): New constant.
17205 (x_window_to_frame): Don't check hourglass_window.
17206 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17207 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17208 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17209 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17210 Only change the cursor if hourglass is not active.
17211 (Fx_create_frame): Initialize frame's current_cursor.
17212 (hourglass_atimer): Remove.
17213 (hourglass_started): New function.
17214 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17215 (show_hourglass): Adapt to w32, changing argument to frame.
17216
17217 * w32term.h (struct w32_output): Remove hourglass_window.
17218 Add current_cursor.
17219
17220 * eval.c (call_debugger, Fsignal):
17221 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17222 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17223 (Fexecute_extended_command, cancel_hourglass_unwind):
17224 * minibuf.c (read_minibuf):
17225 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17226
172272008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17228
17229 * window.c (run_funs): New fun.
17230 (run_window_configuration_change_hook): Use it to run the buffer-local
17231 and the global part of the hook.
17232
17233 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17234 (unwind_format_mode_line): Restore selected window.
17235 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17236
172372008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17238
17239 * editfns.c (Fchar_equal): Check they are valid characters.
17240
17241 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17242
172432008-03-17 Andreas Schwab <schwab@suse.de>
17244
17245 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17246 against a charset.
17247
17248 * lisp.h (Fbuffer_list): Declare.
17249
172502008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 17251
aac0c6e3
MR
17252 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17253 handlebox_widget is != 0.
17254
172552008-03-16 Juri Linkov <juri@jurta.org>
17256
17257 * callint.c (Fcall_interactively): For interactive code letters
17258 'b' and 'B' put the buffer list into the list of default "future"
17259 values of the minibuffer.
17260
172612008-03-16 Andreas Schwab <schwab@suse.de>
17262
17263 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17264 modifiers.
17265
17266 * regex.c (re_match_2_internal): Correct matching of a charset
17267 against latin-1 characters.
17268
172692008-03-16 Kenichi Handa <handa@m17n.org>
17270
17271 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17272 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17273 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17274 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17275 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17276 CHAR_STRING_ADVANCE.
17277 (produce_chars): Fix for the case that the source and the
17278 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17279 instead of CHAR_STRING_ADVANCE.
17280 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17281 STRING_CHAR_ADVANCE.
17282
172832008-03-15 Andreas Schwab <schwab@suse.de>
17284
17285 * regex.c (re_match_2_internal): Correct matching of eight bit
17286 characters in unibyte strings.
17287
172882008-03-15 Martin Rudalics <rudalics@gmx.at>
17289
17290 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17291 at end of range when it coincides with the end of the buffer.
17292
172932008-03-14 Eli Zaretskii <eliz@gnu.org>
17294
17295 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17296
17297 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17298
172992008-03-14 Jason Rumney <jasonr@gnu.org>
17300
17301 * editfns.c (initial_tz): New variable.
17302 (syms_of_editfns): Initialize it.
17303 (Fset_time_zone_rule): Set it when first called.
17304 Use it when TZSTRING is nil.
17305
17306 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17307 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17308 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17309 (globals_of_w32fns): Initialize them.
17310 (compute_tip_xy): Use them to position tooltips.
17311
173122008-03-14 Glenn Morris <rgm@gnu.org>
17313
17314 * emacs.c (main): Revert previous change.
17315 (standard_args): Revert -internal-script back to -scriptload,
17316 and remove the long-option form.
17317
173182008-03-13 Glenn Morris <rgm@gnu.org>
17319
17320 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17321 Remove option -enable-font-backend.
17322
173232008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17324
17325 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17326
173272008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17328
17329 * xterm.c (x_connection_closed): For GTK: If this is the last
17330 terminal just exit without closing the display.
17331
173322008-03-11 Jason Rumney <jasonr@gnu.org>
17333
17334 * w32font.c (w32font_full_name): Use floor to round.
17335
f0131492 173362008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
17337
17338 * sound.c (alsa_configure): Declare vol at beginning of block.
17339
17340 * fontset.c (Ffontset_info): Remove extra semicolon.
17341
173422008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17343
17344 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17345 size of resulting string.
17346
173472008-03-10 Jason Rumney <jasonr@gnu.org>
17348
17349 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17350
173512008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17352
17353 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17354 Don't pretend as if characters with display property haven't been
17355 consumed for string-replacing-string case.
17356
173572008-03-08 Kim F. Storm <storm@cua.dk>
17358
17359 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17360 (get_next_display_element, next_element_from_string)
17361 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17362
173632008-03-08 Andreas Schwab <schwab@suse.de>
17364
17365 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17366
173672008-03-06 Jason Rumney <jasonr@gnu.org>
17368
17369 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17370 when charset not specified. Only translate ANSI to unicode when
17371 font_type is truetype.
17372 (w32font_coverage_ok): New function.
17373 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17374
173752008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17376
17377 * lread.c (Fread_char): Resolve modifiers.
17378 (Fread_char_exclusive): Likewise.
17379
17380 * character.c (char_resolve_modifier_mask): New function.
17381 (char_string): Use char_resolve_modifier_mask.
17382 (Fchar_resolve_modifiers): New function.
17383 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17384 function.
17385
173862008-03-04 Jason Rumney <jasonr@gnu.org>
17387
17388 * makefile.w32-in: Always include w32font.c in the build.
17389 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17390
173912008-03-04 Andreas Schwab <schwab@suse.de>
17392
17393 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17394 (versionclean): Likewise.
17395
173962008-03-04 Juanma Barranquero <lekktu@gmail.com>
17397
17398 * .cvsignore: Add oo.
17399
174002008-03-03 Andreas Schwab <schwab@suse.de>
17401
17402 * coding.c (decode_coding_object): Inhibit gap shrinking while
17403 decoding in place.
17404
174052008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17406
17407 * w32term.c: Remove unused include "gnu.h".
17408 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17409
17410 * gnu.h: Rename to ...
17411 * emacs-icon.h: ... this.
17412 * xterm.c: Use emacs-icon.h instead of gnu.h.
17413 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17414
174152008-03-03 Juanma Barranquero <lekktu@gmail.com>
17416
17417 * w32font.c: Include math.h.
17418
174192008-03-03 Jason Rumney <jasonr@gnu.org>
17420
17421 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17422 Compute options separately.
17423 (w32font_open_internal): Set glyph_idx before caching metrics.
17424
17425 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17426 Define if system headers don't.
17427 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17428 (w32font_encode_char): Don't declare here.
17429
17430 * w32font.c (Quniscribe, QCformat): New symbols.
17431 (syms_of_w32font): Define them.
17432 (w32font_has_char): Indicate uncertainty.
17433 (w32font_encode_char): Encode as glyph point. Make static.
17434 (recompute_cached_metrics): New function.
17435 (w32font_open_internal): Use it. Set font to use glyph points
17436 initially. Set format based on type of font.
17437 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17438 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17439 on it. Set format based on information available here.
17440 (add_font_entity_to_list): Identify backend based on opentype_only.
17441
174422008-03-02 Andreas Schwab <schwab@suse.de>
17443
17444 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17445
17446 * coding.c (decode_coding_big5, produce_chars):
17447 Fix typos in last change.
17448
174492008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17450
17451 * gnu.h: New icon.
17452
174532008-03-02 Kenichi Handa <handa@m17n.org>
17454
17455 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17456 `dos', don't decode '\r' if that is the last in the source.
17457 (decode_coding_utf_16, decode_coding_emacs_mule)
17458 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17459 (decode_coding_raw_text, decode_coding_charset): Likewise.
17460 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17461
174622008-03-01 Jason Rumney <jasonr@gnu.org>
17463
17464 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17465
174662008-03-01 Kim F. Storm <storm@cua.dk>
17467
17468 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17469
174702008-03-01 Jason Rumney <jasonr@gnu.org>
17471
17472 * w32font.c (w32font_full_name): New function.
17473 (w32font_open_internal): Use it.
17474
174752008-03-01 Kim F. Storm <storm@cua.dk>
17476
17477 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17478
174792008-03-01 Jason Rumney <jasonr@gnu.org>
17480
17481 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17482
174832008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17484
17485 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17486 xg_frame_resized when the event is for the edit widget.
17487
17488 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17489
17490 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17491 set_char_size.
17492 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17493 operations on widgets here. Just set frame size if needed.
17494 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17495 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17496 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17497 the whole frame.
17498 (xg_create_tool_bar): Move attachment of the tool bar to
17499 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17500 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17501
175022008-03-01 Jason Rumney <jasonr@gnu.org>
17503
17504 * w32fns.c (w32_msg_pump): Disable debug code.
17505
175062008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17507
17508 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17509
175102008-02-29 Chong Yidong <cyd@stupidchicken.com>
17511
17512 * xdisp.c (next_overlay_string): Don't set
17513 overlay_strings_at_end_processed_p if we're currently reading from
17514 a display string.
17515
175162008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17517
17518 * xdisp.c (get_overlay_strings_1): Fix typo.
17519
175202008-02-29 Chong Yidong <cyd@stupidchicken.com>
17521
17522 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17523
175242008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17525
17526 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17527
17528 * xdisp.c (display_mode_element): Cancel the previous change.
17529 (decode_mode_spec): Likewise.
17530 (handle_auto_composed_prop): Don't make composition if it->string
17531 is a string.
17532
175332008-02-27 Kim F. Storm <storm@cua.dk>
17534
17535 * lisp.h (GLYPH): Change type from int to struct with separate char
17536 and face_id members.
17537 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17538 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17539 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17540 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17541 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17542 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17543 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17544 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17545 handle new Lisp glyph code encoding, either an integer or a cons.
17546
17547 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17548 (GLYPH_ALIAS): Delete.
17549 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17550 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17551 (GLYPH_FROM_CHAR): Replace macro by ...
17552 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17553
17554 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17555 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17556 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17557 (GLYPH_INVALID_P): New macro.
17558 (spec_glyph_lookup_face): Update prototype.
17559
17560 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17561 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17562 new glyph code encoding.
17563 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17564 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17565
17566 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17567 Adapt to new glyph type and new glyph code encoding.
17568
17569 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17570
17571 * indent.c (current_column, current_column_1, Fmove_to_column)
17572 (compute_motion): Adapt to new glyph code encoding.
17573
17574 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17575
175762008-02-27 Chong Yidong <cyd@stupidchicken.com>
17577
17578 * process.c (wait_reading_process_output): Check for window
17579 changes caused by timers.
17580 Suggested by Johan Bockgård.
17581
175822008-02-27 Glenn Morris <rgm@gnu.org>
17583
17584 * emacs.c (USAGE1): Add `--disable-font-backend'.
17585
175862008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17587
17588 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17589 is made to the buffer.
17590
175912008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17592
17593 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17594 (face_at_string_position):
17595 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17596 (face_at_string_position):
17597 * xdisp.c (display_string, next_overlay_change):
17598 * buffer.h (overlays_at):
17599 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17600 Update callers.
17601
176022008-02-26 Chong Yidong <cyd@stupidchicken.com>
17603
17604 * editfns.c (Fformat): Doc fix.
17605
176062008-02-26 Juanma Barranquero <lekktu@gmail.com>
17607
17608 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17609 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17610 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17611
176122008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17613
17614 * buffer.c (Fbuffer_swap_text): New function.
17615 (syms_of_buffer): Defsubr it.
17616
176172008-02-25 Chong Yidong <cyd@stupidchicken.com>
17618
17619 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17620
176212008-02-25 Jason Rumney <jasonr@gnu.org>
17622
17623 * w32font.c (w32font_draw): Draw one character at a time when padding.
17624
176252008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17626
17627 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17628 Handle a nil arg. Use run_window_configuration_change_hook.
17629 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17630 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17631 Use run_window_configuration_change_hook.
17632
176332008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17634
17635 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17636 1-pixel width.
17637
176382008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17639
17640 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17641 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17642 if the glyph in the font is zero pixel with.
17643
17644 * dispextern.h (struct glyph_string): New member padding_p.
17645
17646 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17647
17648 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17649
17650 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17651
17652 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17653
17654 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17655
176562008-02-25 Jason Rumney <jasonr@gnu.org>
17657
17658 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17659
176602008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17661
17662 Allow fine-grained image-cache flushing.
17663 * dispextern.h (struct image): Add `dependencies' field.
17664 (clear_image_caches): Change arg to Lisp_Object.
17665 * image.c (make_image): Initialize `dependencies' field.
17666 (clear_image_cache): Change arg to allow fine-grained flushing.
17667 Perform the flush even if image-cache-eviction-delay is nil.
17668 (clear_image_caches): Change arg to Lisp_Object.
17669 (Fclear_image_cache): Expand meaning of the argument.
17670 (mark_image): Mark `dependencies' field.
17671 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17672 (lface_hash): Use XHASH rather than XFASTINT.
17673 (face_at_buffer_position): Fix int -> EMACS_INT position.
17674 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17675 (select_frame_for_redisplay): Remove code duplication.
17676 (redisplay_internal): Adapt arg to call to clear_image_caches.
17677
176782008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17679
17680 * s/vms4-0.h:
17681 * s/vms4-2.h:
17682 * s/vms4-4.h:
17683 * s/vms5-5.h: Remove, unused.
17684
17685 * s/irix5-2.h:
17686 * s/irix6-0.h:
17687 * s/riscos5.h:
17688 * s/mach-bsd4-3.h:
17689 * m/mips4.h: Remove files for obsolete systems.
17690
17691 * Makefile.in:
17692 * filelock.c:
17693 * unexmips.c:
17694 * m/hp9000s300.h:
17695 * m/iris4d.h:
17696 * s/aix3-1.h:
17697 * s/hpux.h:
17698 * s/msdos.h:
17699 * s/usg5-0.h:
17700 * s/usg5-2-2.h:
17701 * s/usg5-2.h:
17702 * s/usg5-3.h: Remove references to obsolete variables.
17703
17704 * s/irix5-0.h: Remove, move all the contents ...
17705 * s/irix6-5.h: ... here. Simplify.
17706 * config.in: Regenerate.
17707
177082008-02-24 Jason Rumney <jasonr@gnu.org>
17709
17710 * w32term.c (x_draw_glyph_string_background): Clear the background
17711 manually when cleartype is in use.
17712 (x_draw_glyph_string_foreground): Draw text transparently when
17713 cleartype is in use.
17714
17715 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17716 a font into it unless we have to.
17717
177182008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17719
17720 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17721 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 17722
aac0c6e3
MR
177232008-02-18 Jason Rumney <jasonr@gnu.org>
17724
17725 * w32fns.c (Fw32_shell_execute): Encode parameters.
17726
177272008-02-09 Eli Zaretskii <eliz@gnu.org>
17728
17729 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17730
177312008-02-05 Juanma Barranquero <lekktu@gmail.com>
17732
17733 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17734
177352008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17736
17737 * xterm.c (x_set_offset): Don't change the gravity if
17738 CHANGE_GRAVITY is -1.
17739
177402008-02-23 Chong Yidong <cyd@stupidchicken.com>
17741
17742 * fileio.c (auto_save_error_occurred): New var.
17743 (auto_save_error): Set it.
17744 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17745 error occurred.
17746
177472008-02-23 Eli Zaretskii <eliz@gnu.org>
17748
17749 * w32.c (globals_of_w32): Add initializations for
17750 g_b_init_get_sid_sub_authority and
17751 g_b_init_get_sid_sub_authority_count.
17752
177532008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17754
17755 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17756 (font_parse_xlfd): Use them for sanity check.
17757 (Finternal_set_font_style_table): Make sure the table is bijective.
17758
17759 Consolidate the image_cache to the terminal struct.
17760 * termhooks.h (P_): Remove redundant def.
17761 (struct terminal): New field `image_cache'.
17762 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17763 of FRAME_X_IMAGE_CACHE.
17764 * xterm.h (struct x_display_info): Remove image_cache field.
17765 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17766 * w32term.h (struct w32_display_info): Remove image_cache field.
17767 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17768 * macterm.h (struct mac_display_info): Remove image_cache field.
17769 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17770 * xterm.c (x_term_init):
17771 * w32term.c (w32_term_init):
17772 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17773 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17774 Remove declarations.
17775 (clear_image_caches, mark_image_cache): New declarations.
17776 * xfaces.c (clear_face_cache):
17777 * xdisp.c (redisplay_internal): Use clear_image_caches.
17778 * image.c (clear_image_cache): Don't check that a frame is on
17779 a window-system before checking if it shares the same cache.
17780 (clear_image_caches): New function.
17781 (Fclear_image_cache): Use it.
17782 (mark_image): Move from allo.c.
17783 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17784 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17785 (mark_object): Don't call mark_image_cache for frames.
17786 (mark_terminals): Call mark_image_cache.
17787
17788 * lisp.h (Fdelete_terminal): Declare.
17789
17790 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17791 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17792 wrong_type_argument.
17793
177942008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17795
17796 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17797 malayalam.el, and tamil.el. Add sinhala.el.
17798
177992008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17800
17801 * xterm.c (x_connection_closed): Consolidate identical tests.
17802 (x_delete_terminal): Don't crash if called via x_connection_closed.
17803
178042008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17805
17806 * xdisp.c (decode_mode_spec): New arg string.
17807 (display_mode_element): Adjust for the above change.
17808
178092008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17810
17811 * callint.c (Fcall_interactively): Use AREF.
17812
178132008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17814
17815 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17816
178172008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17818
17819 * xfns.c (Fx_show_tip): Set string to " " if empty.
17820
178212008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17822
17823 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17824 with Qt.
17825
178262008-02-17 Kenichi Handa <handa@m17n.org>
17827
17828 * ftfont.c (ftfont_shape): Return Lispy number.
17829
17830 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17831 for GCs.
17832 (Finternal_set_font_selection_order): Call font_update_sort_order
17833 only when enable_font_backend is set.
17834 (realize_x_face): Set face->font_info to that of default face only
17835 when enable_font_backend is set.
17836
17837 * xdisp.c (handle_composition_prop): Set it->c to the fist
17838 character of the composed region.
17839 (fill_composite_glyph_string): Set base_face->font_info to
17840 s->font_info. Get a face for ascii from base_face->ascii_face.
17841 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17842 with a face already decided.
17843 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17844 non-negative.
17845 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17846 call font_prepare_composition unconditionally.
17847
17848 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17849
17850 * xterm.h (struct x_display_info): New member font.
17851
17852 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17853 (x_set_mouse_face_gc, x_new_font): Likewise.
17854 (x_term_init): Setup display_info->font.
17855 (x_delete_terminal): Free display_info->font.
17856
17857 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17858
17859 * ftxfont.c (ftxfont_default_fid): Delete it.
17860 (ftxfont_open): Set xfont->fid to 0.
17861 (ftxfont_end_for_frame): Clear data specific to the frame and the
17862 font-driver.
17863
17864 * xftfont.c (xftfont_default_fid): Delete it.
17865 (xftfont_open): Set xfont->fid to 0.
17866
17867 * fontset.c (FONTSET_OBJLIST): New macro.
17868 (fontset_find_font): Update font-object list of the fontset.
17869 (free_realized_fontset): New function.
17870 (free_face_fontset): Call free_realized_fontset.
17871 (Ffont_info): Call font_close_object only when enable_font_backend
17872 is set.
17873
17874 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17875 [HAVE_NTGUI]: Include w32term.h.
17876 [MAC_OS]: Include macterm.ch.
17877 (font_otf_ValueRecord): Use make_number.
17878 (font_finish_cache): Fix handling of reference count.
17879 (font_clear_cache): Update num_fonts.
17880 (font_open_entity): Update smallest_char_width and
17881 smallest_font_height of the frame.
17882 (font_close_object): Update num_fonts.
17883 (Fclear_font_cache): Fix finding the target cache data.
17884
178852008-02-16 Glenn Morris <rgm@gnu.org>
17886
17887 * fontset.c (Finternal_char_font): Fix compilation warning.
17888
178892008-02-16 Eli Zaretskii <eliz@gnu.org>
17890
17891 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17892 instead of char arrays. Enlarge the size of array passed to
17893 get_token_information.
17894
17895 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17896 warnings.
17897
178982008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17899
17900 * .gdbinit: Don't set `args', it breaks gdb --args.
17901
179022008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17903
17904 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17905 within a narrowed buffer.
17906
179072008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17908
17909 * coding.c (decode_coding_object, encode_coding_object):
17910 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17911
179122008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17913
17914 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17915 hardcoding 1.
17916 (detect_coding_system):
17917 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17918 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17919 * insdel.c (insert_from_gap):
17920 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17921 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17922 (string_to_multibyte):
17923 * character.c (chars_in_text, multibyte_chars_in_text):
17924 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17925
17926 * character.h (FETCH_STRING_CHAR_ADVANCE)
17927 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17928 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17929 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17930
17931 * casefiddle.c (casify_region): Only call after-change and composition
17932 functions on the part of the region that was changed.
17933
17934 * keyboard.c (read_avail_input):
17935 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17936
179372008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17938
17939 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17940 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17941
179422008-02-11 Juanma Barranquero <lekktu@gmail.com>
17943
17944 * w32menu.c (push_submenu_start, push_submenu_end)
17945 (push_left_right_boundary, push_menu_pane, push_menu_item):
17946 * keyboard.c (read_key_sequence): Don't pass args with side effects
17947 to AREF, it fails when compiling with -DENABLE_CHECKING.
17948
179492008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17950
17951 * Makefile.in (${lispsource}international/charprop.el):
17952 Delete this target.
17953
17954 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17955 emacs-unicode-2.
17956
179572008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17958
17959 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17960
179612008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17962
17963 * frame.c (Qnoelisp): New symbol.
17964 (syms_of_frame): Initialize it.
17965 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17966 harmless Elisp code, from a strong `force' from x_connection_closed.
17967 * frame.h (Qnoelisp): Declare.
17968 * xterm.c (x_connection_closed): Pass `noelisp'.
17969
17970 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17971 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17972 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17973 rather than `int' for the type of `type'.
17974
179752008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17976
17977 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17978
17979 * Makefile.in (GNUC): Remove support for gcc-1.x.
17980
179812008-02-10 Richard Stallman <rms@gnu.org>
17982
17983 * lisp.h (ASET): Use AREF, not ASLOT.
17984
179852008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17986
17987 * lisp.h (ASET): Check bounds.
17988
179892008-02-10 Glenn Morris <rgm@gnu.org>
17990
17991 * buffer.c (mode-name): Doc fix.
17992
179932008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17994
17995 * Makefile.in:
17996 * emacs.c:
17997 * gmalloc.c:
17998 * keyboard.c:
17999 * lisp.h:
18000 * m/ibm370aix.h:
18001 * process.c:
18002 * regex.c:
18003 * s/hpux.h:
18004 * sysdep.c:
18005 * sysselect.h:
18006 * systty.h:
18007 * unexec.c:
18008 * w32term.c:
18009 * xsmfns.c:
18010 * xterm.c: Remove code that deals with obsolete variables.
18011
18012 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18013
18014 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18015 nothing else needs it anymore.
18016
180172008-02-09 Eli Zaretskii <eliz@gnu.org>
18018
18019 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18020 instead of unibyte_char_to_multibyte.
18021
180222008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18023
18024 * s/gnu-linux.h: Remove commented out code.
18025
18026 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18027
18028 * Makefile.in: Update what RMS says about using autoconf.
18029 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18030 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18031 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18032 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18033
180342008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18035
18036 * keymap.c (Fkey_description): Move side effect outside of macro call.
18037
18038 * xfaces.c (Finternal_make_lisp_face):
18039 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18040
18041 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18042 (syms_of_fontset): Use ASET.
18043
18044 * fns.c (concat): Move side effect outside of macro call.
18045 (hash_clear): Use ASET.
18046
180472008-02-08 Richard Stallman <rms@gnu.org>
18048
18049 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18050 If FORCE, and frame has a surrogate minibuffer for another frame,
18051 delete the other frame first.
18052
180532008-02-07 Timo Savola <timo.savola@iki.fi>
18054
18055 * xterm.c (x_detect_focus_change): Handle embed client message.
18056 (handle_one_xevent): Ditto.
18057 (handle_one_xevent): If embedded and we get a button press/release,
18058 request focus.
18059 (xembed_set_info, xembed_send_message): New functions.
18060 (x_make_frame_visible): Call xembed_set_info if embedded.
18061 (x_make_frame_invisible): Call xembed_set_info if embedded.
18062 (x_term_init): Initialize Xatom_XEMBED.
18063 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18064 (x_iconify_frame): Ditto.
18065
18066 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18067 (enum xembed_info, enum xembed_message, enum xembed_focus)
18068 (enum xembed_modifier, enum xembed_accelerator): New.
18069 (xembed_set_info, xembed_send_message): Declare.
18070 (FRAME_X_EMBEDDED_P): New.
18071
18072 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18073 gtk_plug_new.
18074
18075 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18076 window ID of a frame.
18077 (x_window): Reparent frame if embedded.
18078 (Fx_create_frame): Don't set border width if embedded.
18079
18080 * emacs.c (USAGE3): Add --parent-id.
18081 (standard_args): Ditto.
18082
180832008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18084
18085 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18086
180872008-02-07 Jim Meyering <meyering@redhat.com>
18088
18089 Use "do...while (0)", not "if (1)...else" in macro definitions.
18090 The latter provokes a warning from gcc about the empty else, when
18091 followed by ";". Also, without that trailing semicolon, it would
18092 silently swallow up any following statement.
18093 * syntax.h (SETUP_SYNTAX_TABLE)
18094 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18095 * buffer.h (DECODE_POSITION): Likewise.
18096 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18097 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18098 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18099 (FETCH_CHAR_ADVANCE): Likewise.
18100 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18101
181022008-02-07 Jim Meyering <meyering@redhat.com>
18103
18104 * lread.c [lint]: Don't include <sys/inode.h>.
18105
181062008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18107
18108 * xselect.c (x_handle_dnd_message):
18109 * xmenu.c (digest_single_submenu, xmenu_show):
18110 * xdisp.c (with_echo_area_buffer_unwind_data)
18111 (format_mode_line_unwind_data, unwind_format_mode_line)
18112 (display_menu_bar):
18113 * eval.c (Ffetch_bytecode):
18114 * doc.c (store_function_docstring):
18115 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18116 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18117 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18118
181192008-02-07 Kenichi Handa <handa@m17n.org>
18120
18121 * ftxfont.c (ftxfont_open): Don't set
18122 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18123
18124 * ftfont.c (ftfont_open): Fix previous change.
18125
181262008-02-06 Jason Rumney <jasonr@gnu.org>
18127
18128 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18129 Use cached metrics for ASCII characters.
18130 (w32font_open_internal): Don't set font's owning_frame.
18131 Cache metrics for ASCII characters.
18132
18133 * w32font.h (struct w32font_info): Add ascii_metrics.
18134 Remove owning_frame.
18135
181362008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18137
18138 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18139 to negative value.
18140
18141 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18142
18143 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18144
18145 * charset.c (syms_of_charset): Set QCtest and Qeq.
18146
181472008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18148
18149 * process.c (Fstart_process):
18150 * callproc.c (Fcall_process): Handle the case where
18151 Funhandled_file_name_directory returns nil.
18152
18153 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18154 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18155 * font.c (check_gstring): Use them and AREF to access the vector before
18156 we know it's really a gstring.
18157 (Ffont_shape_text): Fix typo.
46e722a9 18158 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
18159
18160 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18161 Declare.
18162
18163 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18164
181652008-02-05 Jason Rumney <jasonr@gnu.org>
18166
18167 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18168 Set smallest_font_height and smallest_char_width in display info.
18169
181702008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18171
18172 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18173
181742008-02-05 Miles Bader <miles@gnu.org>
18175
18176 * xfaces.c (get_lface_attributes, merge_named_face)
18177 (lookup_named_face, lookup_derived_face, realize_named_face):
18178 Revert 2008-02-01 change by cyd@stupidchicken.com.
18179
181802008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18181
18182 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18183 fallback fonts.
18184 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18185
181862008-02-04 Jason Rumney <jasonr@gnu.org>
18187
18188 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18189 set full_name.
18190 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18191
181922008-02-03 Jason Rumney <jasonr@gnu.org>
18193
18194 * makefile.w32-in (OBJ1): Include font.o here.
18195 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18196
181972008-02-02 Jason Rumney <jasonr@gnu.org>
18198
18199 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18200
182012008-02-01 Jason Rumney <jasonr@gnu.org>
18202
18203 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18204
18205 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18206
182072008-02-01 Andreas Schwab <schwab@suse.de>
18208
18209 * Makefile.in (shortlisp, lisp): Update for rename of
18210 ../lisp/language/myanmar.el.
18211
182122008-02-01 Chong Yidong <cyd@stupidchicken.com>
18213
18214 * xfaces.c (get_lface_attributes): Delete function.
18215 (merge_named_face, lookup_named_face, lookup_derived_face)
18216 (realize_named_face): Call lface_from_face_name directly, and use
18217 the fact that merge_face_vectors does not alter its FROM argument.
18218
182192008-02-01 Jason Rumney <jasonr@gnu.org>
18220
18221 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18222 input in the default locale. Handle non-Unicode multibyte input.
18223
182242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18225
18226 * fontset.c (reorder_font_vector): Exclude nil elements from the
18227 font group. Don't try multiple fonts.
18228 (fontset_font): Adjust for the above change.
18229 (Finternal_char_font): Return nil if the found font doesn't
18230 contain the character ch.
18231
18232 * Makefile.in (lisp, shortlisp): Add cham.el.
18233
182342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18235
18236 * font.h (FONTP): Make it return 1 also for a font-object.
18237
18238 * .gdbinit (xfontset): New function.
18239
18240 * font.c (font_find_for_lface): Check if the character C is
18241 supported or not only for the first font.
18242
18243 * fontset.c (reorder_font_vector): Fix typo.
18244 (fontset_find_font): Don't add a font-spec specifying a script.
18245 Use 0 (not Qt) for the indication of empty font-group. Change the
18246 format of RFONT-DEF. Return Qt if no font in the font-group
18247 support the character.
18248 (fontset_font): Adjust for the above change. If no font was
18249 found the character, remember that.
18250 (face_for_char): Adjust for the change of RFONT-DEF.
18251 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18252 no font for the target.
18253 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18254
182552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18256
18257 * font.c (font_load_for_face): Handle the case that the font in
18258 face->lface is a string.
18259
182602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18261
18262 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18263
182642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18265
18266 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18267 Fix previous change. If the frame is not on a window system,
18268 signal an error.
18269
182702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18271
18272 * coding.c (decode_coding_object, encode_coding_object): Adjust
18273 marker positions after conversion.
18274
18275 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18276
182772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18278
18279 * font.c (font_find_for_lface): Fix the handling of the return
18280 value of font_has_char.
18281 (Ffont_shape_text): Fix previous change.
18282
18283 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18284 (fontset_ref_and_range): Delete it.
18285 (fontset_find_font): Call char_table_ref_and_range instead of
18286 FONTSET_REF_AND_RANGE.
18287 (make_fontset): Don't setup font groups of Latin here.
18288 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18289 (new_fontset_from_font): Make the specified font the default for
18290 all Latin characters.
18291
182922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18293
18294 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18295 is on a window system before accessing the fontset of the frame.
18296
182972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18298
18299 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18300
18301 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18302 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18303
18304 * font.c (Ffont_shape_text): If the font driver doesn't have a
18305 shaper function, make zero-width glyphs to have at least one-pixel
18306 width. Fix setting of `to' field of glyphs.
18307
183082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18309
18310 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18311 glyphs.
18312
18313 * font.h (struct font_driver): Improve docstring of member `shape'.
18314
183152008-02-01 Kenichi Handa <handa@m17n.org>
18316
18317 * composite.c (syms_of_composite): Fix docstring of
18318 auto-composition-function.
18319
18320 * font.h (LGLYPH_SIZE): New macro.
18321
18322 * font.c (Ffont_fill_gstring): Stop filling when a character not
18323 supported by the font is found.
18324 (Ffont_shape_text): When a shape callback function returns nil,
18325 try at most two more times with larger gstring.
18326 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18327
18328 * xdisp.c (handle_auto_composed_prop): Change the argument to
18329 auto-composition-function.
18330
18331 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18332 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18333 Lispy glyph and store it in the lgstring.
18334
18335 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18336
18337 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18338
183392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18340
18341 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18342
18343 * fontset.c (Vfont_encoding_charset_alist): New variable.
18344 (syms_of_fontset): DEFVAR it.
18345 (reorder_font_vector, fontset_find_font): Optimize for the case of
18346 no need of reordering.
18347 (face_for_char): Map the charset property by
18348 Vfont_encoding_charset_alist.
18349
183502008-02-01 Jason Rumney <jasonr@gnu.org>
18351
18352 * w32font.c (logfonts_match): Don't check adstyle here.
18353 (font_matches_spec): Check here against physical font instead.
18354 (add_font_entity_to_list): Avoid some substitutions.
18355
18356 * font.c (font_parse_fcname): Default weight and slant to normal.
18357 (font_score): Prefer normal fonts if weight or slant unspecified.
18358 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18359 match freetype scores.
18360
183612008-02-01 Jason Rumney <jasonr@gnu.org>
18362
18363 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18364 font, as it may have been deleted.
18365 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18366 most common hyphenless variation.
18367 (logfonts_match): Check generic family.
18368 (font_matches_spec): Don't check generic family here.
18369 (fill_in_logfont): Set generic family based on adstyle.
18370
18371 * w32font.h (w32font_get_cache): Update declaration.
18372
183732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18374
18375 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18376
18377 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18378 If none of the new drivers are available, call font_update_drivers
18379 with the old drivers.
18380
18381 * w32font.c (w32font_get_cache): Adjust the argument type.
18382
18383 * xfont.c (xfont_get_cache): Adjust the argument type.
18384
18385 * font.h (struct font_driver): Change argument type of get_cache.
18386
18387 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18388
18389 * font.c (Ffont_get): Fix arguments to Fassoc.
18390 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18391 (font_clear_cache): New function.
18392 (font_list_entities, font_matching_entity): Use font_get_cache.
18393 (font_update_drivers): Call font_clear_cache when finishing a driver.
18394
18395 * fontset.c (fontset_find_font): Fix previous change.
18396
183972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18398
18399 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18400 dpyinfo->font_table.
18401 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18402 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18403
18404 * font.c (font_at): Handle the case that the arg C is negative.
18405 Handle the unibyte case.
18406 (Ffont_at): Call font_at with the arg C -1.
18407
18408 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18409 the position here, and call font_at with the arg C -1.
18410 Don't check the range of the existing composition at the point.
18411
184122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18413
18414 * fontset.c (fontset_add): New args charset_id and family.
18415 Change caller.
18416 (load_font_get_repertory, fontset_find_font): Assume that
18417 font_spec is always a font-spec object.
18418 (Fset_fontset_font): Always store a font-spec object in a fontset.
18419
18420 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18421 instead of get_property_and_range.
18422
184232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18424
18425 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18426 (xftfont_open): Don't keep locking face.
18427 (xftfont_close): Don't unlock face.
18428 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18429
18430 * fontset.c (fontset_find_font): Don't prefer a font of
18431 supplementary charset.
18432
184332008-02-01 Kenichi Handa <handa@m17n.org>
18434
18435 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18436 script, langsys_tag to langsys, new member script.
18437 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 18438 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
18439 listing to the script specified in that property. Fix arg to
18440 OTF_check_features.
18441
184422008-02-01 Jason Rumney <jasonr@gnu.org>
18443
18444 * w32font.h: New file.
18445
18446 * w32font.c: Include it.
18447 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18448 (w32font_open): Set owning_frame.
18449 (w32font_text_extents): Use owning_frame.
18450 (struct font_callback_data): Add opentype_only field.
18451 (add_font_entity_to_list): Use it to filter fonts.
18452 Don't check against full name.
18453 (w32font_list_internal): New function.
18454 (w32font_list): Use it.
18455 (w32font_match_internal): New function.
18456 (w32font_match): Use it.
18457 (w32font_open_internal): New function.
18458 (w32font_open): Use it.
18459 (w32font_get_cache, w32font_close, w32font_has_char)
18460 (w32font_encode_char, w32font_text_extents, w32font_draw):
18461 Make non-static.
18462
18463 * makefile.w32-in (w32font.o): Depend on w32font.h.
18464
184652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18466
18467 * charset.c (Fdefine_charset_internal): Record a supplementary
18468 charset at the tail of Vcharset_order_list.
18469
18470 * font.c (Ffont_shape_text): Fix the return value.
18471
18472 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18473
18474 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18475
184762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18477
18478 * ftfont.c (struct OpenTypeSpec): New struct.
18479 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18480 (ftfont_get_open_type_spec): New function.
18481 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18482
18483 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18484
184852008-02-01 Jason Rumney <jasonr@gnu.org>
18486
18487 * w32font.c (add_font_entity_to_list): Compare only the beginning
18488 of full name.
18489
184902008-02-01 Kenichi Handa <handa@m17n.org>
18491
18492 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18493 Never return HANDLED_RECOMPUTE_PROPS.
18494
184952008-02-01 Kenichi Handa <handa@m17n.org>
18496
18497 * font.c (font_gstring_produce): Delete it.
18498
18499 * composite.h (COMPOSITION_METHOD):
18500 Handle COMPOSITION_WITH_GLYPH_STRING.
18501
185022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18503
18504 * xfont.c (Qx): Delete.
18505 (syms_of_xfont): Don't initialize Qx.
18506
18507 * composite.h (enum composition_method):
18508 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18509
185102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18511
18512 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18513 (choose_face_font): Accept new form of font-spec.
18514
18515 * frame.h (font_driver_list): Declare it unconditionally.
18516 (struct frame): Define members font_driver_list and font_data_list
18517 unconditionally.
18518
18519 * fontset.c: Include "font.h" unconditionally.
18520 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18521 (Fset_fontset_font): Accept a font-spec object.
18522
18523 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18524 PIXEL_SIZE part a wild card.
18525
18526 * dispextern.h (struct glyph_string): Define members clip and
18527 num_clips unconditionally.
18528 (struct face): Define members font_info and extra unconditionally.
18529
18530 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18531 ftfont_info only when HAVE_LIBOTF is defined.
18532
185332008-02-01 Andreas Schwab <schwab@suse.de>
18534
18535 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18536 and end.
18537
185382008-02-01 Jason Rumney <jasonr@gnu.org>
18539
18540 * w32font.c (w32font_driver): Add new fields.
18541
185422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18543
18544 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18545 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18546 (LIBES): Add @M17N_FLT_CFLAGS@.
18547
18548 * composite.c (compose_text): Don't treat the new style
18549 composition specially.
18550
18551 * emacs.c (main): Call syms_of_font unconditionally.
18552
18553 * font.h (FONT_ENTITY_NOT_LOADABLE)
18554 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18555 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18556 (struct font_driver): New member shape.
18557 (font_registry_charsets): Extern it.
18558 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18559 (font_otf_capability, font_drive_otf): Delete their externs.
18560
18561 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18562 (font_charset_alist, font_registry_charsets): Move from xfont.c
18563 and rename.
18564 (font_prop_validate_otf): New function.
18565 (font_property_table): Register it for QCotf.
18566 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18567 (font_drive_otf): Delete.
18568 (font_prepare_composition): New arg F. Adjust for the change of
18569 lispy gstring.
18570 (font_find_for_lface): New arg C.
18571 (font_load_for_face): Adjust for the change of font_find_for_lface.
18572 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18573 lispy gstring.
18574 (Ffont_shape_text): New function.
18575 (Fopen_font): If the font size is not given, use 12-pixel.
18576 (Ffont_at): New arg STRING.
18577 (syms_of_font): Initalize font_charset_alist.
18578 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18579 conditionally.
18580
18581 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18582 fonts of the same font-spec. Change the format of RFONT-DEF.
18583 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18584 Adjust for the change of RFONT-DEF.
18585 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18586
18587 * ftfont.h: New file.
18588
18589 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18590 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18591 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18592 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18593 font_otf_capability and font_drive_otf, set ftfont_shape.
18594 (ftfont_list): Adjust for the change of :otf property value.
18595 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18596 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18597 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18598 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18599 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18600 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18601
18602 * w32term.c (x_draw_composite_glyph_string_foreground):
18603 Adjust for the change of lispy gstring.
18604
18605 * xdisp.c (handle_composition_prop): Adjust for the change of
18606 lispy gstring. Call a function for auto-composition with the
18607 third arg it->window.
18608 (fill_composite_glyph_string): Adjust for the change of lispy string.
18609 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18610
18611 * xfaces.c (set_font_frame_param): Adjust for the change of
18612 font_find_for_lface.
18613
18614 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18615 (xfont_registry_charsets): Likewise. Change caller.
18616 (syms_of_xfont): Don't handle x_font_charset_alist.
18617
18618 * xftfont.c: Include "ftfont.h".
18619 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18620 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18621 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18622 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18623 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18624 Set xftfont_driver.shape to xftfont_shape.
18625
18626 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18627 the change of lispy gstring.
18628
186292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18630
18631 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18632
186332008-02-01 Jason Rumney <jasonr@gnu.org>
18634
18635 * w32font.c (w32font_draw): Fill background manually.
18636
186372008-02-01 Jason Rumney <jasonr@gnu.org>
18638
18639 * font.c (Qfontp): Remove unused symbol.
18640 (QCantialias): New symbol.
18641 (syms_of_font): Define it.
18642 (font_property_table): Set a validator for QCantialias.
18643
18644 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18645 Define if not already.
18646 (QCfamily): Share with xfaces.c.
18647 (Qstandard, Qsubpixel, Qnatural): New symbols.
18648 (syms_of_w32font): Define them. Don't define QCfamily here.
18649 (w32_antialias_type, lispy_antialias_type): New functions.
18650 (w32_enumfont_pattern_entity): New arg requested_font.
18651 Set antialias parameter if non-default was requested.
18652 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18653
186542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18655
18656 * lread.c (read1): Undo the previous change.
18657
186582008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18659
18660 * frame.c (Fdelete_frame): Call font_update_drivers only when
18661 USE_FONT_BACKEND is defined.
18662
186632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18664
18665 * font.h (struct font_bitmap): New member bits_per_pixel.
18666 (struct font_driver): New members start_for_frame and end_for_frame.
18667 (struct font_data_list): New struct.
18668 (font_put_frame_data, font_get_frame_data): Extern them.
18669
18670 * frame.h (struct frame): New member font_data_list.
18671
18672 * font.c (font_update_drivers): Call driver->start_for_frame and
18673 driver->end_for_frame at proper timings.
18674 (font_put_frame_data, font_get_frame_data): New functions.
18675 (Ffont_spec): Add usage in the docstring.
18676
18677 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18678 (Fdelete_frame): Call font_update_drivers.
18679
18680 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18681 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18682 (xftfont_get_xft_draw): New function.
18683 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18684 (xftfont_end_for_frame): New function.
18685 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18686
18687 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18688 Change argument. Cache GCs in the per-frame data.
18689 (struct ftxfont_frame_data): New struct.
18690 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18691 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18692 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18693 (ftxfont_end_for_frame): New function.
18694 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18695
18696 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18697
186982008-02-01 Kenichi Handa <handa@m17n.org>
18699
18700 * xselect.c (Vselection_coding_system)
18701 (Vnext_selection_coding_system): Delete them.
18702 (syms_of_xselect): Don't declare selection-coding-system and
18703 next-selection-coding-system. They are declared in select.el.
18704
187052008-02-01 Jason Rumney <jasonr@gnu.org>
18706
18707 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18708
18709 * w32fns.c: Include imm.h.
18710 (get_composition_string_fn, get_ime_context_fn): New optional
18711 system functions.
18712 (globals_of_w32fns): Load them from imm32.dll.
18713 (ignore_ime_char): New flag.
18714 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18715 WM_IME_ENDCOMPOSITION messages.
18716
18717 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18718 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18719
187202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18721
18722 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18723 (READCHAR_REPORT_MULTIBYTE): New macro.
18724 (readchar): New 2nd arg MULTIBYTE.
18725 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18726 Make symbol's name multibyte according to the multibyteness of the
18727 source.
18728
187292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18730
18731 * xfaces.c (face_for_overlay_string): Call lookup_face with
18732 correct arguments (fix of synching with the trunk).
18733
187342008-02-01 Kenichi Handa <handa@m17n.org>
18735
18736 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18737 (font_prop_validate_non_neg, font_prop_validate_spacing):
18738 Delete argument prop_index.
18739 (font_property_table): Change arguments to validater. Change Callers.
18740 (font_lispy_object): Delete.
18741 (font_at): Use font_find_object instead fo font_lispy_object.
18742
187432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18744
18745 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18746 and file names.
18747
187482008-02-01 Jason Rumney <jasonr@gnu.org>
18749
18750 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18751 (font_matches_spec): Remove debug output.
18752 (add_font_entity_to_list): Avoid using substituted fonts.
18753
187542008-02-01 Jason Rumney <jasonr@gnu.org>
18755
18756 * doc.c (Fsnarf_documentation):
18757 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18758
187592008-02-01 Miles Bader <miles@gnu.org>
18760
18761 * dispextern.h (struct glyph_row): Only define "clip" field if
18762 HAVE_WINDOW_SYSTEM is defined.
18763
187642008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18765
18766 Fix up multi-tty merge.
18767
18768 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18769 and indentation.
18770
18771 * xfaces.c (free_realized_face, clear_face_gcs):
18772 Include font_done_for_face in the input_blocked section, just in case.
18773
18774 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18775 (get_char_face_and_encoding): Undo last change and remove the *other*
18776 duplicate definition (i.e. keep the one that's better scoped and that
18777 includes code for the font-backend).
18778
18779 * terminal.c (create_terminal): Default keyboard_coding to
18780 `no-conversion' and terminal_coding to `undecided'.
18781
18782 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18783
18784 * fontset.c (free_realized_fontsets): Check that the table entry does
18785 contain a fontset before trying to compare it to `base'.
18786
18787 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18788 syms_of_charset, and syms_of_coding earlier because init_window_once
18789 now needs Vcoding_system_hash_table to be setup.
18790
18791 * coding.h (default_buffer_file_coding): Remove.
18792
18793 * coding.c (default_buffer_file_coding): Remove.
18794 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18795 than ->symbol, and use the terminal-local coding system.
18796 (syms_of_coding): Don't setup the coding-systems that are not
18797 terminal-local.
18798 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18799
18800 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18801 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18802
18803 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18804 in chartab.c and were re-added here by mistake.
18805 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18806
18807 * doc.c (Fsnarf_documentation):
18808 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18809 src to etc.
18810
18811 * ChangeLog.10: Add mistakenly removed entry.
18812
188132008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18814
18815 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18816
188172008-02-01 Miles Bader <miles@gnu.org>
18818
18819 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18820 Add extra args to FACE_FOR_CHAR.
18821
188222008-02-01 Kenichi Handa <handa@m17n.org>
18823
18824 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18825 in sequence.
18826
18827 * chartab.c (map_sub_char_table, map_char_table): If the range
18828 contains just one character, call the function with that character
18829 even if the depth is not 3.
18830
188312008-02-01 Jason Rumney <jasonr@gnu.org>
18832
18833 * w32font.c (w32font_text_extents): Calculate metrics for the
18834 whole string.
18835
188362008-02-01 Jason Rumney <jasonr@gnu.org>
18837
18838 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18839
188402008-02-01 Jason Rumney <jasonr@gnu.org>
18841
18842 * w32term.c (x_set_glyph_string_clipping): Use
18843 get_glyph_string_clip_rects.
18844 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18845 Adjust for the change of struct glyph_string.
18846
18847 * w32font.c (w32font_draw): Do clipping here.
18848
188492008-02-01 Kenichi Handa <handa@m17n.org>
18850
18851 * xftfont.c (xftfont_draw): Adjust for the change of struct
18852 glyph_string.
18853
18854 * xterm.c (x_set_glyph_string_clipping): Use
18855 get_glyph_string_clip_rects.
18856 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18857 Adjust for the change of struct glyph_string.
18858
18859 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18860 the resulting clip(s}.
18861 (expose_overlaps): Add arg r. Change callers. Set it to
18862 row->clip temporarily.
18863 (expose_window): Redraw rows overlapping the exposed area.
18864
18865 * dispextern.h (struct glyph_row): New member clip.
18866 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18867 clip_height, new member clip, and num_clips.
18868
188692008-02-01 Kenichi Handa <handa@m17n.org>
18870
18871 * data.c (Fchar_or_string_p): Fix docstring.
18872
188732008-02-01 Kenichi Handa <handa@m17n.org>
18874
18875 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18876 create a temporary XftDraw object.
18877
188782008-02-01 Kenichi Handa <handa@m17n.org>
18879
18880 * font.c (Ffontp): Fix docstring.
18881
18882 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18883 strong evidence of ISO-2022.
18884
188852008-02-01 Kenichi Handa <handa@m17n.org>
18886
18887 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18888 SYNTAX_ENTRY_FOLLOW_PARENT.
18889
188902008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18891
18892 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18893 its type.
18894 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18895 Update to the new type of weak_hash_tables and next_weak.
18896
18897 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18898 a plain C pointer to Lisp_Hash_Table.
18899
18900 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18901 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18902 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18903 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18904 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18905 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18906 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18907 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18908 (GC_EQ): Remove since they've been identical to their non-GC_
18909 alter-egos ever since the markbit was eradicated.
18910
18911 * alloc.c:
18912 * buffer.c:
18913 * buffer.h:
18914 * data.c:
18915 * fileio.c:
18916 * filelock.c:
18917 * fns.c:
18918 * frame.h:
18919 * lisp.h:
18920 * macterm.c:
18921 * print.c:
18922 * process.c:
18923 * w32fns.c:
18924 * w32menu.c:
18925 * w32term.c:
18926 * xfns.c:
18927 * xmenu.c:
18928 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18929
189302008-02-01 Kenichi Handa <handa@m17n.org>
18931
18932 * chartab.c (map_sub_char_table): Make it work for the top-level
18933 char-table. Fix handling of parent char-table.
18934 (map_char_table): Adjust for the above change.
18935
189362008-02-01 Jason Rumney <jasonr@gnu.org>
18937
18938 * w32font.c (Qgdi): Rename from Qw32.
18939
189402008-02-01 Jason Rumney <jasonr@gnu.org>
18941
18942 * w32bdf.c (get_quoted_string): Make function static.
18943
189442008-02-01 Kenichi Handa <handa@m17n.org>
18945
18946 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18947 bigger ascent and descent than those of the font, use them as
18948 font's ascent and descent.
18949
189502008-02-01 Kenichi Handa <handa@m17n.org>
18951
18952 * Makefile.in (${lispsource}international/charprop.el): Move this
18953 target within "#ifdef HAVE_UNIDATA" and "#endif".
18954
189552008-02-01 Kenichi Handa <handa@m17n.org>
18956
18957 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18958 (shortlisp): Add ../lisp/language/tai-viet.el.
18959
189602008-02-01 Ulrich Mueller <ulm@gentoo.org>
18961
18962 * Makefile.in (${lispsource}international/charprop.el): Depend on
18963 temacs${EXEEXT}.
18964
189652008-02-01 Jason Rumney <jasonr@gnu.org>
18966
18967 * w32font.c (w32font_close): Delete the GDI font object.
18968
18969 * w32menu.c: Include character.h.
18970
18971 * w32proc.c: Likewise.
18972
18973 * w32select.c: Likewise.
18974
18975 * makefile.w32-in (w32proc.o): Depend on character.h.
18976
189772008-02-01 Jason Rumney <jasonr@gnu.org>
18978
18979 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18980
18981 * w32menu.c (syms_of_w32menu): Likewise.
18982
18983 * w32proc.c (syms_of_ntproc): Likewise.
18984
18985 * w32select.c (syms_of_w32select): Likewise.
18986
18987 * w32term.c (syms_of_w32term): Likewise.
18988
189892008-02-01 Jason Rumney <jasonr@gnu.org>
18990
18991 * w32font.c (w32font_draw): Delete brush after using it.
18992
189932008-02-01 Jason Rumney <jasonr@gnu.org>
18994
18995 * w32font.c (w32font_open): Don't set font_idx.
18996 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18997 to font settings.
18998 (w32font_draw): Fill background explicitly.
18999
190002008-02-01 Jason Rumney <jasonr@gnu.org>
19001
19002 * w32term.c (w32_initialize): Don't call w32font_initialize.
19003
19004 * w32font.c (w32font_info): Remove subranges.
19005 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19006 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19007 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19008 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19009 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19010 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19011 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19012 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19013 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19014 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19015 New symbols.
19016 (font_callback_data): New struct.
19017 (w32font_list, w32font_match): Use it.
19018 (w32font_open): Don't populate subranges.
19019 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19020 (w32font_encode_char): Always return unicode code-point as-is.
19021 (w32font_text_extents): Supply a transformation matrix to
19022 GetGlyphOutline. Never look up by glyph index. Avoid looping
19023 twice. Use unicode version of GetTexExtentPoint32 instead of
19024 glyph index version.
19025 (set_fonts_frame): Remove.
19026 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19027 set frame parameter. Use backward compatible fake foundries.
19028 Save generic family in extra slot under QCfamily. Make width slot
19029 constant. Save QCspacing value. Save list of scripts instead of
19030 binary subranges.
19031 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19032 (add_font_entity_to_list): Use font_callback_data struct. Filter
19033 unwanted fonts.
19034 (add_one_font_entity_to_list): Use font_callback_data struct.
19035 (w32_registry): Default to iso10646_1.
19036 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19037 string font registries. Don't fill in font name if it is a generic
19038 family name, fill family instead. Use spacing, family and script
19039 extra info to fill pitch, family and charset fields.
19040 (list_all_matching_fonts): Use font_callback_data struct.
19041 (unicode_range_for_char): Remove.
19042 (font_supported_scripts): New function.
19043 (w32font_initialize): Remove.
19044 (syms_of_w32font): Update which symbols are defined.
19045
190462008-02-01 Jason Rumney <jasonr@gnu.org>
19047
19048 * font.c (font_pixel_size): Reverse assq_no_quit args.
19049
19050 * w32term.h (FONT_WIDTH): Report max width, not average.
19051 (FONT_MAX_WIDTH): Remove.
19052 (FONT_AVG_WIDTH): New macro.
19053
19054 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19055 redefinition of FONT_WIDTH.
19056
19057 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19058 (w32_cache_char_metrics): Use FONT_WIDTH.
19059
19060 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19061
190622008-02-01 Jason Rumney <jasonr@gnu.org>
19063
19064 * w32font.c (w32font_open): Make lfHeight negative.
19065
19066 * w32fns.c (x_default_font_parameter): Use new style font name.
19067 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19068
190692008-02-01 Jason Rumney <jasonr@gnu.org>
19070
19071 * w32font.c (QCsubranges): New symbol.
19072 (w32font_open, w32font_has_char): Get subranges from subproperty
19073 of extra.
19074 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19075 (syms_of_w32font): Define :subranges symbol.
19076
19077 * font.c (font_put_extra): Expose externally.
19078
19079 * font.h (font_put_extra): Move declaration from font.c.
19080
19081 * font.c (Ffont_get): Use font driver to determine otf capability.
19082 (adjust_anchor): Check if driver defines anchor_point before using.
19083
19084 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19085 (w32font_draw): Use options.
19086 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19087 Fix detection of truetype fonts.
19088 (registry_to_w32_charset): Handle charsets other than iso8859-1
19089 expressed as lisp symbols.
19090 (w32_registry): Express charset as lisp symbol.
19091 (fill_in_logfont): Reverse pixel and point height logic.
19092 Don't set width here. Set quality to default.
19093
19094 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19095 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19096
19097 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19098 Remove redundant loop and allocation.
19099
19100 * makefile.w32-in (font.o, w32font.o): New objects.
19101 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19102 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19103
19104 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19105 STORE_XCHARB a valid l-value.
19106
19107 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19108 calculations for non-Truetype fonts.
19109 (x_draw_glyph_string): Sync with xterm.c.
19110 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19111 Remove redundant code.
19112 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19113
19114 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19115 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19116
19117 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19118 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19119
19120 * w32font.c: New file for w32 font backend.
19121
191222008-02-01 Kenichi Handa <handa@m17n.org>
19123
19124 * term.c: Don't include "buffer.h" twice.
19125
191262008-02-01 Kenichi Handa <handa@m17n.org>
19127
19128 * character.c (Funibyte_string): New function.
19129 (syms_of_character): Defsubr it.
19130
191312008-02-01 Jason Rumney <jasonr@gnu.org>
19132
19133 * w32term.c [USE_FONT_BACKEND]:
19134 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19135 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19136 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19137 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19138 (x_free_frame_resources): Sync with xterm.c.
19139
191402008-02-01 Andreas Schwab <schwab@suse.de>
19141
19142 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19143 char-table size.
19144
191452008-02-01 Kenichi Handa <handa@m17n.org>
19146
19147 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19148
191492008-02-01 Kenichi Handa <handa@m17n.org>
19150
19151 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19152 font_otf_gpos, add font_drive_otf.
19153
19154 * fontset.c (fontset_find_font): Pay attention to font size
19155 specified for a font.
19156 (reorder_font_vector): Check contents of font_def.
19157
19158 * font.c (struct otf_list): Delete it.
19159 (otf_list): Make it a lisp variable.
19160 (otf_open): Use lispy otf_list.
19161 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19162 (check_otf_features): New function.
19163 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19164 New functions.
19165 (font_drive_otf): New function merging font_otf_gsub and
19166 font_otf_gpos.
19167 (font_open_for_lface): New arg spec. Change argument order.
19168 (font_load_for_face): Adjust for the change of font_open_for_lface.
19169 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19170 Ffont_otf_gpos.
19171 (syms_of_font): Staticpro otf_list. Delete defsubr of
19172 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19173
19174 * xfaces.c (set_font_frame_param): Adjust for the change of
19175 font_open_for_lface.
19176
19177 * font.h (font_open_for_lface): Adjust prototype.
19178 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19179 member otf_drive.
19180 (font_otf_gsub, font_otf_gpos): Delete externs.
19181 (font_drive_otf): Extern it.
19182
191832008-02-01 Kenichi Handa <handa@m17n.org>
19184
19185 * font.c (font_at): If the window W is not on a window system,
19186 return Qnil.
19187
19188 * coding.c (produce_chars, encode_coding): Don't call
19189 insert_from_gap if no characters to produce.
19190
191912008-02-01 Kenichi Handa <handa@m17n.org>
19192
19193 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19194 Fclear_face_cache.
19195
19196 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19197
191982008-02-01 Miles Bader <miles@gnu.org>
19199
19200 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19201 Parse "--disable-font-backend" option.
19202 (standard_args): Add "--disable-font-backend" option.
19203
192042008-02-01 Kenichi Handa <handa@m17n.org>
19205
19206 * fontset.c (fontset_find_font): New function.
19207 (fontset_font): Use fontset_find_font.
19208 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19209 Register the specified font for all Latin characters.
19210 (new_fontset_from_font): Register the specified font for all Latin
19211 characters.
19212 (dump_fontset): For a realized fontset, include the base fontset
19213 name in the returned vector.
19214
192152008-02-01 Kenichi Handa <handa@m17n.org>
19216
19217 * character.h (CHAR_STRING): Cast C to unsigned on calling
19218 char_string.
19219
19220 * character.c (char_string): Type of arg C changed to unsigned.
19221 Signal an error if C is an invalid character code.
19222
19223 * editfns.c (general_insert_function, Fchar_to_string):
19224 Use CHARACTERP, not INTEGERP.
19225
192262008-02-01 Kenichi Handa <handa@m17n.org>
19227
19228 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19229 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19230
19231 * regex.c (analyse_first): Fix for multibyte characters in "case
19232 charset:" and "case categoryspec:".
19233
192342008-02-01 Andreas Schwab <schwab@suse.de>
19235
19236 * Makefile.in (LIBES): Move standard libraries to the end.
19237
192382008-02-01 Kenichi Handa <handa@m17n.org>
19239
19240 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19241 nonzero, don't shrink the buffer nextb.
19242
19243 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19244
19245 * coding.c (coding_alloc_by_making_gap): New arg offset.
19246 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19247 offset.
19248 (decode_coding_iso_2022): Update coding->safe_charsets.
19249 (decode_coding_gap): Temporarily set
19250 current_buffer->text->inhibit_shrinking to 1.
19251
192522008-02-01 Kenichi Handa <handa@m17n.org>
19253
19254 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19255 indexing into elements of s->cmp and s->char2b.
19256
192572008-02-01 Juanma Barranquero <lekktu@gmail.com>
19258
19259 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19260
192612008-02-01 Kenichi Handa <handa@m17n.org>
19262
19263 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19264 target_multibyte instead of multibyte.
19265 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19266 (bcmp_translate): Change the argument name from multibyte to
19267 target_multibyte.
19268
192692008-02-01 Kenichi Handa <handa@m17n.org>
19270
19271 These changes are to compile a regexp into a pattern that can be
19272 used both for multibyte and unibyte targets.
19273
19274 * Makefile.in (search.o): Depend on charset.h.
19275
19276 * character.c (multibyte_char_to_unibyte_safe): New function.
19277
19278 * search.c: Include "charset.h".
19279 (compile_pattern_1): Delete argument multibyte. Don't set
19280 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19281 (compile_pattern): Don't compare cp->buf.target_multibyte.
19282 Compare cp->buf.charset_unibyte.
19283 (compile_pattern): Set cp->buf.target_multibyte.
19284
19285 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19286
19287 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19288
19289 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19290 multibyte. Change callers.
19291 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19292 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19293 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19294 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19295 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19296 (regex_compile): Make the compiled pattern usable both for
19297 multibyte and unibyte targets.
19298 (analyse_first): Make the fastmap usable both for multibyte and
19299 unibyte targets.
19300 (TRANSLATE_VIA_MULTIBYTE): Delete.
19301 (re_match_2_internal): Pay attention to the case that the
19302 multibyteness of bufp and target may be different.
19303
193042008-02-01 Kenichi Handa <handa@m17n.org>
19305
19306 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19307 empty box occupy at least one column width.
19308
193092008-02-01 Miles Bader <miles@gnu.org>
19310
19311 * Makefile.in: Remove redundant HAVE_XFT clause.
19312
193132008-02-01 Kenichi Handa <handa@m17n.org>
19314
19315 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19316
193172008-02-01 Kenichi Handa <handa@m17n.org>
19318
19319 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19320 being nil.
19321
193222008-02-01 Kenichi Handa <handa@m17n.org>
19323
19324 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19325
193262008-02-01 Kenichi Handa <handa@m17n.org>
19327
19328 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19329
193302008-02-01 Kenichi Handa <handa@m17n.org>
19331
19332 * search.c (simple_search): Fix previous change.
19333
193342008-02-01 Kenichi Handa <handa@m17n.org>
19335
19336 * xftfont.c (ftfont_font_format): Extern declaration.
19337
19338 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19339
19340 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19341 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19342
19343 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19344 (ftfont_font_format): Fix previous change.
19345
19346 * font.h (Ffont_xlfd_name): EXFUN it.
19347
19348 * font.c (font_parse_xlfd): Fix the array size of `f'.
19349 (register_font_driver): Use EQ to compare driver->type.
19350
19351 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19352 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19353 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19354
193552008-02-01 Kenichi Handa <handa@m17n.org>
19356
19357 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19358 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19359
193602008-02-01 Kenichi Handa <handa@m17n.org>
19361
19362 * xfont.c (xfont_open): Set font->format.
19363
19364 * xftfont.c (xftfont_open): Set font->format.
19365
19366 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19367 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19368 (ftfont_open): Set font->format.
19369 (ftfont_font_format): New function.
19370
19371 * font.h (struct font): New member format.
19372
19373 * font.c (Qopentype): New variable.
19374 (syms_of_font): Defsym it.
19375 (Fquery_font): Change the format of the last element of the return
19376 value.
19377
193782008-02-01 Kenichi Handa <handa@m17n.org>
19379
19380 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19381 last resort.
19382
193832008-02-01 Kenichi Handa <handa@m17n.org>
19384
19385 * coding.c (detect_coding_charset): Fix detection of multi-byte
19386 charset.
19387
193882008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19389
19390 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19391
193922008-02-01 Kenichi Handa <handa@m17n.org>
19393
19394 * xdisp.c (get_next_display_element): Set it->face_id for the
19395 first component of a composition.
19396 (x_produce_glyphs): Check if the font is changed or not for composition.
19397
193982008-02-01 Kenichi Handa <handa@m17n.org>
19399
19400 * fontset.c (Qlatin): New variable.
19401 (syms_of_fontset): Define it as a lisp symbol.
19402 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19403
194042008-02-01 Kenichi Handa <handa@m17n.org>
19405
19406 * font.c (font_unparse_fcname): Pay attention to the case that
19407 some of font property is a null string.
19408
194092008-02-01 Kenichi Handa <handa@m17n.org>
19410
19411 * term.c: Include "composite.h".
19412 (encode_terminal_code): Output all components of composition.
19413 Check the size of encode_terminal_src.
19414 (produce_glyphs): For composition, call produce_composite_glyph.
19415 (append_composite_glyph, produce_composite_glyph): New functions.
19416
19417 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19418 is not found, get font_info from the current ascii face.
19419
194202008-02-01 Kenichi Handa <handa@m17n.org>
19421
19422 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19423 buffer-file-name to Qnil before calling insert_from_buffer.
19424
19425 * font.c (font_unparse_fcname): Pay attention to the case that
19426 foundry is a null string.
19427
194282008-02-01 Kenichi Handa <handa@m17n.org>
19429
19430 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19431
19432 * font.c (Qunicode_sip): New variable.
19433 (syms_of_font): Declare it as a Lisp symbol.
19434
19435 * font.h (Qunicode_sip): Extern it.
19436
194372008-02-01 Kenichi Handa <handa@m17n.org>
19438
19439 * composite.c (get_composition_id): Pay attention to TAB component.
19440
19441 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19442 TAB. Adjust for the change of s->char2b which always points to
19443 the first element of allocated memory.
19444
19445 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19446
19447 * xdisp.c (handle_composition_prop): Set it->c to the first
19448 non-TAB component.
19449 (fill_composite_glyph_string): Change argument.
19450 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19451 (x_produce_glyphs): Fix handling of left/right padding.
19452
194532008-02-01 Kenichi Handa <handa@m17n.org>
19454
19455 * coding.c (detect_coding_system): Fix for handling off
19456 inhibit_iso_escape_detection. Fix for the case that no coding
19457 system is defined for a specific coding category.
19458
194592008-02-01 Kenichi Handa <handa@m17n.org>
19460
19461 * font.c (font_matching_entity): Delete unused local var.
19462
19463 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19464 opening a font.
19465
19466 * fileio.c (Finsert_file_contents): On recovering a file, assume
19467 Unix-like eol.
19468 (choose_write_coding_system): On auto-saving a file, force
19469 Unix-like eol.
19470
19471 * coding.c (setup_coding_system): Fix setting of
19472 coding->common_flags based on eol_type.
19473 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19474 inherit from it.
19475
194762008-02-01 Kenichi Handa <handa@m17n.org>
19477
19478 * alloc.c (NSTATICS): Increas to 0x600.
19479
194802008-02-01 Kenichi Handa <handa@m17n.org>
19481
19482 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19483 (ftfont_list): Don't check :name property.
19484 (ftfont_match): New function.
19485 (ftfont_pattern_entity): If the pattern doesn't contain
19486 FC_SPACING, don't assume FC_MONO.
19487
19488 * font.h (struct font_driver): New member `match'.
19489 (font_update_drivers): Adjust prototype.
19490
19491 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19492 property of FONT.
19493 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19494 them unconditionally.
19495 (font_matching_entity): New function.
19496 (font_open_by_name): Try font_matching_entity if exact match is
19497 not found.
19498 (font_update_drivers): Delete the arg FONT. Return a list of
19499 actually used backends. Don't free faces, font caches here.
19500 Don't store data in frame parameters. Don't call x_set_font.
19501 (Ffont_spec): Store :name property as is.
19502 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19503 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19504 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19505 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19506 Call font->driver->otf_gsub instead of font_otf_gsub.
19507
19508 * frame.c (x_set_font_backend): Do more works that were done in
19509 font_update_drivers before.
19510
19511 * xfont.c (xfont_match): New function.
19512 (xfont_driver): Set xfont_driver.match to xfont_match.
19513 (xfont_draw): Set font in GC if necessary.
19514
19515 * ftxfont.c (ftxfont_match): New function.
19516 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19517
19518 * xftfont.c (xftfont_match): New function.
19519 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19520
195212008-02-01 Kenichi Handa <handa@m17n.org>
19522
19523 * font.h (struct font): New member scalable.
19524 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19525 (font_otf_gsub): Adjust prototype.
19526
19527 * font.c (font_otf_capability): Fix handling of the default langsys.
19528 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19529 Check the contents of SPEC.
19530 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19531 (check_gstring): New function.
19532 (REPLACEMENT_CHARACTER): New macro.
19533 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19534 glyph codes of GSTRING.
19535 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19536 (font_prepare_composition): Set cmp->glyph_len.
19537 (font_open_entity): Set font->scalable.
19538 (Ffont_get): Handle :otf property.
19539 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19540 functions.
19541 (Fquery_font): Use font->font.full_name.
19542 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19543 Sfont_otf_alternates.
19544
19545 * ftfont.c (ftfont_open): Set font->font.full_name and
19546 font->font.name properly. Fix calculation of font->font.height
19547 and font->min_width.
19548
19549 * ftxfont.c (ftxfont_create_gcs): New function.
19550 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19551 (ftxfont_draw_backgrond): Fix filling region.
19552 (ftxfont_default_fid): New function.
19553 (ftxfont_open): Set xfont->fid to the return value of
19554 ftxfont_default_fid.
19555 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19556 (ftxfont_done_face): Free only GCs that are created by
19557 ftxfont_create_gcs.
19558 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19559
19560 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19561 Clip to src->width, etc (not src->clip_XXX).
19562
19563 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19564 FontBackend frame parameter.
19565
195662008-02-01 Kenichi Handa <handa@m17n.org>
19567
19568 * font.h (struct font_driver_list): New member `on'.
19569 (Fclear_font_cache): EXFUN it.
19570 (font_update_drivers): Extern it.
19571
19572 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19573 (font_list_entities): Check driver_list->on.
19574 (register_font_driver): Initalize `on' member to 0.
19575 (font_update_drivers): New function.
19576 (Fclear_font_cache): Check driver_list->on.
19577
19578 * frame.h (Qfont_backend): Extern it.
19579 (x_set_font_backend): Extern it.
19580
19581 * frame.c (Qfont_backend): New variable.
19582 (frame_parms): New element for font-backend.
19583 (x_set_font_backend): New function.
19584
19585 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19586 FontBackend frame parameter.
19587 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19588 x_set_font_backend.
19589
19590 * xfont.c (xfont_list): Don't try listing by :name property if the
19591 name is not for XLFD.
19592
195932008-02-01 Kenichi Handa <handa@m17n.org>
19594
19595 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19596 (LGLYPH_SET_TO): New macros.
19597 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19598 element of G is vector or not.
19599 (font_at): Extern it.
19600
19601 * font.c: Include window.h.
19602 (font_lispy_object): New function.
19603 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19604 end of valid glyph.
19605 (font_close_object): Fix getting (struct font *).
19606 (font_at): New function.
19607 (Ffont_get): If FONT is a font-object, get entity from it.
19608 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19609 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19610 range check.
19611 (Ffont_at): New function.
19612 (syms_of_font): Defsubr Sfont_at.
19613
19614 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19615 before the entry for Qcomposition.
19616 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19617 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19618 the font in gstring.
19619 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19620 LGLYPH_FORM (g) to detect the end of valid glyph.
19621 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19622 we are composing with gstring.
19623
19624 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19625 Check if adjustment is vector or not.
19626
19627 * Makefile.in (font.o): Make it depends on window.h.
19628
196292008-02-01 Kenichi Handa <handa@m17n.org>
19630
19631 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19632 adjustment is vector or not.
19633
196342008-02-01 Miles Bader <miles@gnu.org>
19635
19636 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19637
196382008-02-01 Kenichi Handa <handa@m17n.org>
19639
19640 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19641 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19642 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19643
19644 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19645 (DEVICE_DELTA): Fix typo.
19646 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19647 LGLYPH format.
19648
19649 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19650 the change of LGLYPH format.
19651
196522008-02-01 Kenichi Handa <handa@m17n.org>
19653
19654 * ftfont.c (ftfont_list): Fix typo.
19655 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19656
196572008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19658
19659 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19660
19661 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19662 xftface_info is non-NULL.
19663
196642008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19665
19666 * ftfont.c (ftfont_list): Move misplaced #endif.
19667
196682008-02-01 Kenichi Handa <handa@m17n.org>
19669
19670 * ftfont.c (ftfont_list): Pay attention to the case that
19671 FC_CAPABILITY is not defined.
19672
196732008-02-01 Kenichi Handa <handa@m17n.org>
19674
19675 * xftfont.c (xftfont_open): Set charset related members to -1.
19676
19677 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19678 QCname.
19679 (ftfont_open): Set charset related members to -1.
19680
19681 * fontset.c (Votf_script_alist): New variable.
19682 (syms_of_fontset): Initialize it.
19683 (fontset_font): Delete unused variable.
19684
19685 * fontset.h (Votf_script_alist): Extern it.
19686
19687 * font.c (font_find_for_lface): Optimize code.
19688
19689 * font.h (font_close_object, font_merge_old_spec): Extern them.
19690
196912008-02-01 Kenichi Handa <handa@m17n.org>
19692
19693 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19694 (syms_of_font): Initialize them.
19695 (font_pixel_size): Allow float value in dpi.
19696 (font_prop_validate_type): Delete.
19697 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19698 Change caller.
19699 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19700 (font_prop_validate_extra): Delete.
19701 (font_prop_validate_spacing): New function.
19702 (font_property_table): Add elements for all known properties.
19703 (get_font_prop_index): Rename from check_font_prop_name. New
19704 argument FROM. Change caller.
19705 (font_prop_validate): Validate all known properties.
19706 (font_put_extra): Delete argument force. Change caller.
19707 (font_expand_wildcards): Make it static. Fix the way of shrinking
19708 the possible range.
19709 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19710 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19711 Change caller.
19712 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19713 (font_parse_fcname): Delete argument merge. Fix parsing of point
19714 size. Don't validate properties values here. Change caller.
19715 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19716 (font_open_by_name): Delete unused variable.
19717 (Ffont_spec): Likewise. Validate property values.
19718 (Ffont_match_p): New function.
19719
19720 * font.h (QCscalable): Extern it.
19721 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19722
19723 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19724
19725 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19726 (xfont_list_pattern): New function.
19727 (xfont_list): Use xfont_list_pattern.
19728
197292008-02-01 Kenichi Handa <handa@m17n.org>
19730
19731 * font.h (Flist_fonts): EXFUN it.
19732
197332008-02-01 Jason Rumney <jasonr@gnu.org>
19734
19735 * w32term.c (w32_initialize): Add back smoothing_type and
19736 smoothing_enabled definitions.
19737
197382008-02-01 Kenichi Handa <handa@m17n.org>
19739
19740 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19741 s->face->font on determining underline position.
19742
197432008-02-01 Kenichi Handa <handa@m17n.org>
19744
19745 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19746 (font_has_char): Accept font-object too.
19747 (font_find_for_lface): Try at first with a size specified in face.
19748
197492008-02-01 Kenichi Handa <handa@m17n.org>
19750
19751 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19752 font_open_by_name.
19753
197542008-02-01 Kenichi Handa <handa@m17n.org>
19755
19756 * font.h (QCspacing, QCdpi): Extern them.
19757 (enum font_spacing): New enum.
19758 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19759
19760 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19761 (QCspacing, QCdpi): New variables.
19762 (syms_of_font): Initialize them.
19763 (font_pixel_size): New function.
19764 (font_put_extra): New function.
19765 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19766 in FONT_EXTRA.
19767 (font_parse_fcname): Handle enumerated values (e.g. bold).
19768 Fix handling font size. Add QCname property that contains only
19769 unknown properties.
19770 (font_score): Change argument. Change caller. Pay attention to
19771 FONT_PIXEL_SIZE_QUANTUM.
19772 (font_sort_entites, font_list_entities, font_find_for_lface)
19773 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19774 (Ffont_spec): Add QCname property that contains only unknown properties.
19775
19776 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19777 include weight in listing pattern, instead check weight of each
19778 listed font. Don't include scalable in pattern. Pay attention to
19779 FONT_PIXEL_SIZE_QUANTUM.
19780
197812008-02-01 Kenichi Handa <handa@m17n.org>
19782
19783 * font.c (font_parse_fcname): Fix parsing of point-size.
19784 (font_unparse_fcname): Produce symbolic names for style properties.
19785 (font_list_entities): Handle float size correctly.
19786 (font_open_by_name): Prefer `normal' property values if the name
19787 doesn't specify them.
19788
19789 * fontset.c (Finternal_char_font): Use font_get_name, not
19790 Ffont_xlfd_name.
19791
19792 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19793 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19794 pattern. Don't force scalable.
19795
19796 * xftfont.c (xftfont_open): For generating a name, start from
19797 96-byte buffer.
19798
197992008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19800
19801 * frame.h (x_new_fontset2): Fix prototype.
19802
198032008-02-01 Kenichi Handa <handa@m17n.org>
19804
19805 * font.h (struct font_driver): Delete member parse_name.
19806 (font_match_p, font_get_spec, font_parse_fcname)
19807 (font_unparse_fcname): Extern them.
19808 (font_get_name): Adjust prototype.
19809
19810 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19811 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19812 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19813 unnecessary checks for weight, slant, and swidth.
19814 (font_parse_fcname): New function.
19815 (font_unparse_fcname): New function.
19816 (font_parse_name): New function.
19817 (font_match_p): New function.
19818 (font_get_name): Change return value to Lisp string.
19819 (font_get_spec): New function.
19820 (Qunspecified, Qignore_defface): Don't extern them.
19821 (font_find_for_lface): Assume that LFACE is fully specified.
19822 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19823 object, use it for FACE.
19824 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19825 driver->parse_name.
19826 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19827
19828 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19829 prototype.
19830
19831 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19832 argument F. Don't call Fnew_fontset. Instead, directly call
19833 make_fontset.
19834
19835 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19836
19837 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19838 of x_new_fontset2.
19839
19840 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19841 (Qsans__serif): New variables.
19842 (ftfont_generic_family_list): New variable.
19843 (syms_of_ftfont): Initialize the above variables.
19844 (ftfont_pattern_entity): Delete argument NAME.
19845 (ftfont_list_generic_family): New function.
19846 (ftfont_parse_name): Delete this function.
19847 (ftfont_list): Try generic family only when FcFontList found no font.
19848 (ftfont_list_family): Fix args to FcObjectSetBuild.
19849
19850 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19851 object in attrs[LFACE_FONT_INDEX].
19852 (set_lface_from_font_name): Cancel all changes for font-backend.
19853 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19854 function.
19855 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19856 font object in QCfont attribute.
19857 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19858 (realize_default_face) [USE_FONT_BACKEND]: Call
19859 set_lface_from_font_and_fontset.
19860
19861 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19862 "fixed", and signal error here if no suitable font was found.
19863
19864 * xfont.c (xfont_parse_name): Delete this function.
19865
19866 * xftfont.c (xftfont_open): Change coding style of error
19867 handling. Generate fontconfig's fontname pattern.
19868
19869 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19870 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19871
19872 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19873 Both args FONTSET and FONT_OBJECT must be existing ones.
19874
198752008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19876
19877 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19878
198792008-02-01 Kenichi Handa <handa@m17n.org>
19880
19881 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19882
19883 * font.h (struct font): Fix typo.
19884
19885 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19886 XLFD_XXX_INDEX.
19887 (enum xlfd_field_mask): New enum.
19888 (intern_font_field): Changed argument. Change caller. If digits
19889 are followed by non-digits, return a symbol.
19890 (font_expand_wildcards): New function.
19891 (font_parse_xlfd): Fix wildcard handling.
19892 (Ffont_spec): If :name is specified, reflect the info in the other
19893 properties.
19894
19895 * ftfont.c (ftfont_pattern_entity): Fix typo.
19896 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19897 locale.
19898
198992008-02-01 Kenichi Handa <handa@m17n.org>
19900
19901 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19902
19903 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19904 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19905 registry doesn't specify encoding part.
19906 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19907 (font_open_by_name): At first try parsing the name.
19908 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19909 as Lisp symbols.
19910
19911 * fontset.c (reorder_font_vector): Pay attention to the case that
19912 the 3rd element of font_def is nil.
19913 (fontset_font): For the default fontset, append one more fontset
19914 elements for a script-based font specification. Don't add script
19915 attribute on finding a font.
19916 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19917 font name.
19918 (fontset_ascii_font): If a font can't be opened, return nil.
19919
19920 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19921 (ftfont_pattern_entity): New function.
19922 (ftfont_get_cache): Assume that freetype_font_cache is already
19923 initialized.
19924 (ftfont_list): Handle the case that a file is specified in font
19925 name. Use ftfont_pattern_entity to generate entities.
19926 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19927 (syms_of_ftfont): Initialize freetype_font_cache.
19928
19929 * xftfont.c (xftfont_open): Make the font name fontconfig's
19930 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19931 (xftfont_close): Free font->font.name if not NULL.
19932
19933 * xfont.c (xfont_list): If script is specified for a font, return
19934 null_vector.
19935 (xfont_list_family): Declare argument type.
19936
19937 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19938 name, set LFACE_FONT (lface) to nil.
19939
19940 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19941 return Qnil.
19942
199432008-02-01 Kenichi Handa <handa@m17n.org>
19944
19945 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19946 (standard_args): Add "-enable-font-backend".
19947
199482008-02-01 Kenichi Handa <handa@m17n.org>
19949
19950 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19951 (struct xftdraw_list, xftdraw_list): Delete them.
19952 (register_xftdraw, check_xftdraw): Delete them.
19953 (xftfont_prepare_face): Don't call register_xftdraw.
19954 (xftfont_done_face): Don't call check_xftdraw.
19955 (xftfont_draw): Get background color only when with_background is
19956 nonzero.
19957
19958 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19959
199602008-02-01 Kenichi Handa <handa@m17n.org>
19961
19962 These changes are for the new font handling codes.
19963
19964 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19965 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19966 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19967 (FONTSRC, FONTOBJ): New variables.
19968 (obj): Add $(FONTOBJ).
19969 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19970 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19971 @LIBOTF_LIBS@.
19972 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19973 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19974
19975 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19976
19977 * character.h (Vscript_representative_chars): Extern it.
19978
19979 * character.c (Vscript_representative_chars): New variable.
19980 (syms_of_character): Declare it as a Lisp variable.
19981
19982 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19983 enable_font_backend is nonzero, accept the composition method
19984 COMPOSITION_WITH_GLYPH_STRING.
19985
19986 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19987 enumeration COMPOSITION_WITH_GLYPH_STRING.
19988
19989 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19990 members clip_x, clip_y, clip_width, and clip_height.
19991 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19992
19993 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19994 --enable-font-backend. Call syms_of_font.
19995
19996 * fns.c (assoc_no_quit): New function.
19997
19998 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19999 (face_for_font, new_fontset_from_font)
20000 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20001
20002 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20003 (fontset_font, fontset_ascii, face_for_char)
20004 (make_fontset_for_ascii_face, Ffont_info)
20005 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20006 is nonzero, use font-backend mechanism.
20007 (find_font_encoding): Make it non-static.
20008 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20009 New functions.
20010
20011 * frame.h (struct frame): New members resx and resy.
20012 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20013 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20014
20015 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20016 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20017
20018 * lisp.h (assoc_no_quit): Extern it.
20019
20020 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20021 Through out the file, use FONT_INFO_FROM_FACE instead of
20022 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20023 rif->per_char_metric.
20024 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20025 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20026 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20027 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20028 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20029 nonzero, use font-backend mechanism.
20030 (get_per_char_metric): New function.
20031
20032 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20033 (set_lface_from_font_name)
20034 (set_font_frame_param, free_realized_face)
20035 (prepare_face_for_display, clear_face_gcs)
20036 (Finternal_set_font_selection_order, realize_x_face)
20037 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20038 font-backend mechanism.
20039 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20040 (load_face_font) [USE_FONT_BACKEND]: Abort.
20041 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20042 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20043
20044 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20045 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20046 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20047 nonzero, register all available font drivers. Call
20048 x_default_font_parameter for deciding a font.
20049 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20050
20051 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20052 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20053 (x_set_glyph_string_clipping_exactly)
20054 (x_compute_glyph_string_overhangs)
20055 (x_draw_glyph_string_foreground)
20056 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20057 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20058 enable_font_backend is nonzero, use font-backend mechanism.
20059 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20060
200612008-02-01 Kenichi Handa <handa@m17n.org>
20062
20063 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20064 system_eol_type.
20065 (syms_of_coding): Initialize system_eol_type.
20066
20067 * process.c (Fset_process_coding_system): Inherit system's eol
20068 format if necessary.
20069
200702008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20071
20072 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20073
200742008-02-01 Kenichi Handa <handa@m17n.org>
20075
20076 * coding.c (decode_eol): Pay attention to buffer relocation in
20077 del_range_2.
20078 (decode_coding): Call decode_eol before restoring undo_list.
20079
200802008-02-01 Kenichi Handa <handa@m17n.org>
20081
20082 * charset.c (Fdefine_charset_internal): Fix setting of
20083 emacs_mule_bytes.
20084
200852008-02-01 Kenichi Handa <handa@m17n.org>
20086
20087 * keyboard.c (read_char): Check if C is a character or not before
20088 looking up Vkeyboard_translate_table.
20089
200902008-02-01 Kenichi Handa <handa@m17n.org>
20091
20092 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20093 condition to terminate the loop.
20094
200952008-02-01 Kenichi Handa <handa@m17n.org>
20096
20097 * coding.c (produce_composition): Compare charbuf[i] instead of
20098 args[i] against 0.
20099 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20100
201012008-02-01 Kenichi Handa <handa@m17n.org>
20102
20103 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20104 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20105 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20106 detect_coding.
20107 (emacs_mule_char): Handle old style (Emacs 20) component character
20108 of a composition.
20109 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20110 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20111 composition rule.
20112 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20113
201142008-02-01 Kenichi Handa <handa@m17n.org>
20115
20116 * coding.c (encode_coding_ccl): Allocate destination dynamically
20117 when necessary.
20118
201192008-02-01 Kenichi Handa <handa@m17n.org>
20120
20121 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20122 the loop. When quitted, show a proper error message.
20123
201242008-02-01 Kenichi Handa <handa@m17n.org>
20125
20126 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20127 src->clip_head and src->clip_tail temporarily instead of src->hl.
20128
20129 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20130 character sequence.
20131 (Fccl_execute_on_string): Use ASET, not XSET.
20132
201332008-02-01 Kenichi Handa <handa@m17n.org>
20134
20135 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20136
201372008-02-01 Kenichi Handa <handa@m17n.org>
20138
20139 * coding.c (decode_coding): Fix the condition of terminating the
20140 decoding loop.
20141
201422008-02-01 Kenichi Handa <handa@m17n.org>
20143
20144 * data.c (Faset): On setting a character bigger than 255 in a
20145 unibyte string, signal an error instead of make the string multibyte.
20146
201472008-02-01 Kenichi Handa <handa@m17n.org>
20148
20149 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20150 made by a mapping table.
20151
201522008-02-01 Kenichi Handa <handa@m17n.org>
20153
20154 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20155 not.
20156 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20157 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20158
20159 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20160 s->face is NULL or not.
20161
201622008-02-01 Kenichi Handa <handa@m17n.org>
20163
20164 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20165 (x_draw_glyph_string): Fix drawing of right_overhang and
20166 left_overhang around/on cursor.
20167
20168 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20169
201702008-02-01 Kenichi Handa <handa@m17n.org>
20171
20172 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20173
201742008-02-01 Kenichi Handa <handa@m17n.org>
20175
20176 * coding.c (Fdefine_coding_system_internal)
20177 (Fdefine_coding_system_alias): Avoid a duplicated element in
20178 Vcoding_system_alist.
20179
201802008-02-01 Kenichi Handa <handa@m17n.org>
20181
20182 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20183
20184 * coding.c (Qcoding_system_define_form): New variable.
20185 (syms_of_coding): Intern and staticpro it.
20186 (Fcoding_system_p): Check Qcoding_system_define_form.
20187 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20188
20189 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20190 Fcoding_system_p.
20191 (CHECK_CODING_SYSTEM): If ID is not available, call
20192 Fcheck_coding_system.
20193 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20194 Try also Fcheck_coding_system.
20195
201962008-02-01 Kenichi Handa <handa@m17n.org>
20197
20198 * coding.c (code_conversion_restore): GCPRO arg.
20199
202002008-02-01 Kenichi Handa <handa@m17n.org>
20201
20202 * character.c (lisp_string_width): Check multibyteness of STRING.
20203
202042008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20205
20206 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20207 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20208 (decode_mac_font_name): Use decode_coding_c_string instead of
20209 decode_coding.
20210 (x_load_font): Initialize fontp->fontset to -1. Set
20211 fontp->encoding_type.
20212
202132008-02-01 Kenichi Handa <handa@m17n.org>
20214
20215 * search.c (search_buffer): Give up BM search on case-fold-search
20216 if one of a target character has a case-equivalence of different
20217 byte length even if that target charcter is an ASCII.
20218 (simple_search): Fix calculation of byte length of matched text.
20219 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20220
202212008-02-01 Kenichi Handa <handa@m17n.org>
20222
20223 * coding.c (decode_coding): Fix handling of invalid bytes.
20224
202252008-02-01 Kenichi Handa <handa@m17n.org>
20226
20227 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20228 Unicode characters.
20229
202302008-02-01 Kenichi Handa <handa@m17n.org>
20231
20232 * coding.c (encode_coding_object): If a pre-write-conversion
20233 function makes a new buffer, kill it.
20234
202352008-02-01 Kenichi Handa <handa@m17n.org>
20236
20237 * coding.c (QCascii_compatible_p): New variable.
20238 (syms_of_coding): Initialize it.
20239 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20240 calling string_char.
20241 (record_conversion_result): Add `default:' case.
20242 (coding_charset_list): Delete unused variable `coding_type'.
20243 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20244 property in the plist of the coding system.
20245 (Fcoding_system_put): Check QCascii_compatible_p.
20246
202472008-02-01 Miles Bader <miles@gnu.org>
20248
20249 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20250 removed calculation of frame `f', as it's now used.
20251
202522008-02-01 Kenichi Handa <handa@m17n.org>
20253
20254 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20255 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20256 (UNIDATA): New variable.
20257 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20258 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20259 $(RUN_TEMACS) unconditionally.
20260
202612008-02-01 Kenichi Handa <handa@m17n.org>
20262
20263 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20264 (admindir): New variable.
20265 ($(lispsource)international/charprop.el): New target.
20266
202672008-02-01 Miles Bader <miles@gnu.org>
20268
20269 * character.c (chars-in-region): Remove obsolete function.
20270 (syms_of_character): Remove its initialization.
20271
202722008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20273
20274 * w32select.c (validate_coding_system)
20275 (setup_windows_coding_system): New functions.
20276 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20277 setup_windows_coding_system.
20278 (setup_config, Fw32_get_clipboard_data): Use
20279 validate_coding_system.
20280 (Fx_selection_exists): Move call to setup_config to a place
20281 where signals are allowed.
20282
20283 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20284 (Fcheck_coding_system): Add declarations.
20285
202862008-02-01 Kenichi Handa <handa@m17n.org>
20287
20288 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20289
202902008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20291
20292 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20293 string as the second argument for x_new_fontset.
20294
202952008-02-01 Kenichi Handa <handa@m17n.org>
20296
20297 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20298 (encode_coding_object): Use safe_call instead of call2.
20299
203002008-02-01 Kenichi Handa <handa@m17n.org>
20301
20302 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20303
20304 * Makefile.in (lisp): Include charprop.el.
20305
203062008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20307
20308 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20309 Not sure if it's unnecessary.
20310
203112008-02-01 Steven Tamm <steventamm@mac.com>
20312
20313 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20314 some possibly unnecessary fontset checking code that crashed
20315 when creating a new frame.
20316
203172008-02-01 Kenichi Handa <handa@m17n.org>
20318
20319 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20320 lookup_face.
20321
20322 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20323
20324 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20325
203262008-02-01 Kenichi Handa <handa@m17n.org>
20327
20328 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20329 (coding_charset_list): New function.
20330
20331 * coding.h (coding_charset_list): Extern it.
20332
203332008-02-01 Kenichi Handa <handa@m17n.org>
20334
20335 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20336 concatenation of family and registry.
20337
203382008-02-01 Kenichi Handa <handa@m17n.org>
20339
20340 * character.h (BYTE8_STRING): Fix typo.
20341
20342 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20343 string to multibyte (sync to HEAD).
20344
20345 * casefiddle.c (casify_region): Handle changes in byte-length
20346 using replace_range_2 (sync to HEAD).
20347
203482008-02-01 Andreas Schwab <schwab@suse.de>
20349
20350 * chartab.c (map_char_table): GCPRO table and arg.
20351
203522008-02-01 Kenichi Handa <handa@m17n.org>
20353
20354 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20355 already at limit.
20356
203572008-02-01 Kenichi Handa <handa@m17n.org>
20358
20359 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20360 instead of fast_c_string_match_ignore_case.
20361 (find_font_encoding): Change argument to Lisp_Object. Use
20362 fast_string_match_ignore_case instead of
20363 fast_c_string_match_ignore_case. Change caller.
20364
203652008-02-01 Kenichi Handa <handa@m17n.org>
20366
20367 * xdisp.c (get_next_display_element): In unibyte case, decide to
20368 display in octal form by checking a character by
20369 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20370
20371 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20372
20373 * character.c (unibyte_has_multibyte_table): New variable.
20374
20375 * character.h (unibyte_has_multibyte_table): Extern it.
20376 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20377
203782008-02-01 Kenichi Handa <handa@m17n.org>
20379
20380 * coding.c (encode_coding_iso_2022): Fix handling of charset
20381 annotation.
20382
203832008-02-01 Kenichi Handa <handa@m17n.org>
20384
20385 * coding.c (setup_coding_system): If coding_system is nil, use
20386 Qundecided.
20387 (Fterminal_coding_system): Return nil if terminal coding system is
20388 `undecided'.
20389 (syms_of_coding): Define coding-system `undecided' here. Setup
20390 terminal_coding as `undecided'.
20391
203922008-02-01 Kenichi Handa <handa@m17n.org>
20393
20394 * xdisp.c (message_dolog, set_message_1): Call
20395 unibyte_char_to_multibyte with arg type int.
20396
20397 * lread.c (read1): Fix reading of a char-table.
20398
20399 * print.c (print_object): Include sub char-table in circularities
20400 detection.
20401
204022008-02-01 Kenichi Handa <handa@m17n.org>
20403
20404 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20405 Append the found sequences in car of ARGS instead of prepending.
20406
204072008-02-01 Kenichi Handa <handa@m17n.org>
20408
20409 * fileio.c (report_file_error): Make a unibyte string from
20410 strerror (errorno).
20411 (Fsubstitute_in_file_name): Fix the arg to
20412 unibyte_char_to_multibyte. It is evaluated twice.
20413
204142008-02-01 Kenichi Handa <handa@m17n.org>
20415
20416 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20417
204182008-02-01 Kenichi Handa <handa@m17n.org>
20419
20420 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20421 BOM is not found.
20422 (detect_coding, detect_coding_system): Optimization for ISO-2022
20423 when no 8-bit data is found.
20424
204252008-02-01 Jason Rumney <jasonr@gnu.org>
20426
20427 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20428
204292008-02-01 Kenichi Handa <handa@m17n.org>
20430
20431 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20432 CHARS.
20433
204342008-02-01 Steven Tamm <steventamm@mac.com>
20435
20436 * macterm.c (mac_encode_char): Add charset argument and update
20437 to use encoding_type.
20438 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20439 switch to pure fontset.
20440 (decode_mac_font_name): Temporarily remove decoding.
20441 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20442 (x_load_font): Temporarily remove encoding.
20443
204442008-02-01 Kenichi Handa <handa@m17n.org>
20445
20446 * xfaces.c (Fface_font): If frame is not on a window system,
20447 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20448 refer to face->font.
20449 (split_font_name_into_vector, build_font_name_from_vector)
20450 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20451 when HAVE_WINDOW_SYSTEM is defined.
20452
204532008-02-01 Kenichi Handa <handa@m17n.org>
20454
20455 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20456 (x_produce_glyphs): Fix setting of members of cmp in case
20457 cmp->glyph_len is zero.
20458
20459 * fontset.c (Fset_fontset_font): Fix docstring.
20460 (Ffontset_info): Make it backward compatible. New arg ALL.
20461
204622008-02-01 Kim F. Storm <storm@cua.dk>
20463
20464 * process.c (read_process_output): Grow decoding_buf when needed;
20465 this could cause a crash in allocate_string and compact_small_strings.
20466
204672008-02-01 Kenichi Handa <handa@m17n.org>
20468
20469 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20470
204712008-02-01 Kenichi Handa <handa@m17n.org>
20472
20473 * coding.c (setup_coding_system): Set coding->common_flags
20474 correctly for raw-text.
20475 (consume_chars): On encoding unibyte text by raw-text, don't check
20476 multibyte form.
20477 (encode_coding): On encoding by raw-text, never use translation tables.
20478
20479 * fileio.c (e_write): Short cut for the case of no encoding.
20480
204812008-02-01 Kenichi Handa <handa@m17n.org>
20482
20483 * coding.c (detect_coding, detect_coding_system): Delete unused
20484 variables.
20485
204862008-02-01 Kenichi Handa <handa@m17n.org>
20487
20488 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20489 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20490
204912008-02-01 Kenichi Handa <handa@m17n.org>
20492
20493 * coding.c (Ffind_coding_systems_region_internal): Include
20494 raw-text and no-conversion in the result.
20495
204962008-02-01 Kenichi Handa <handa@m17n.org>
20497
20498 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20499 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20500 FONT_DEF.
20501 (font_def_arg, add_arg, from_arg, to_arg): New args.
20502 (set_fontset_font): Change argument.
20503 (Fset_fontset_font): Fix for the case that TARGET is a script
20504 name and charset name.
20505 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20506
205072008-02-01 Kenichi Handa <handa@m17n.org>
20508
20509 * fontset.c (fontset_font): Rename from fontset_face. Change return
20510 value.
20511 (face_suitable_for_char_p, face_for_char): Adjust for the change
20512 of fontset_font.
20513 (make_fontset_for_ascii_face): Fix setting of the fontset element
20514 for ASCII.
20515 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20516 to get a font name.
20517 (Ffontset_info): Adjust for the change of fontset_font.
20518
20519 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20520
20521 * character.h (LEADING_CODE_LATIN_1_MIN)
20522 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20523
205242008-02-01 Kenichi Handa <handa@m17n.org>
20525
20526 * editfns.c (check_translation): New function.
20527 (Ftranslate_region_internal): Handle M:N mapping.
20528
205292008-02-01 Kenichi Handa <handa@m17n.org>
20530
20531 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20532
205332008-02-01 Kenichi Handa <handa@m17n.org>
20534
20535 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20536 goto invalid_code.
20537 (decode_coding_iso_2022): Fix handling of invalid designation.
20538
20539 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20540 after calling code_conversion_save.
20541
205422008-02-01 Kenichi Handa <handa@m17n.org>
20543
20544 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20545
20546 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20547
20548 * fontset.c: Include "intervals.h".
20549 (fontset_face): Fix comparing of Lisp_Objects.
20550 (free_face_fontset, new_fontset_from_font_name): Fix
20551 Lisp_Object/int mixup.
20552
20553 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20554
20555 * coding.c: Add many prototypes for static functions.
20556 (get_translation_table): Allow max_lookup to be NULL.
20557 (decode_coding, Ffind_coding_systems_region_internal)
20558 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20559 get_translation_table with max_lookup NULL.
20560
205612008-02-01 Kenichi Handa <handa@m17n.org>
20562
20563 * coding.c (get_translation_table): Declare it as Lisp_Object.
20564 (LOOKUP_TRANSLATION_TABLE): New macro.
20565 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20566 instead of CHAR_TABLE_REF.
20567
205682008-02-01 Kenichi Handa <handa@m17n.org>
20569
20570 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20571 annotation data format.
20572 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20573 Change arguments FROM and TO to single argument NCHARS. Change caller.
20574 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20575 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20576 (decode_coding_ccl, decode_coding_charset): Pay attention to
20577 coding->charbuf_used.
20578 (get_translation): New function.
20579 (produce_chars): New arguments translation_table and last_block.
20580 Translate characters here. Return number of carryover chars.
20581 Change caller.
20582 (produce_composition): New argument pos. Change caller.
20583 Adjust for the change of annotation data format.
20584 (produce_charset, produce_annotation): Likewise.
20585 (decode_coding, encode_coding): Don't call translate_chars.
20586 (consume_chars): New arg translation_table. Change caller.
20587 (translate_chars): Delete.
20588 (syms_of_coding): Make translation-table's number of extra slots 2.
20589
205902008-02-01 Kenichi Handa <handa@m17n.org>
20591
20592 * search.c (simple_search): Fix setting this_pos_byte in backward
20593 search.
20594
20595 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20596 byte sequence.
20597 (detect_coding_ccl): Fix setting of the variable valids.
20598
205992008-02-01 Kenichi Handa <handa@m17n.org>
20600
20601 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20602
20603 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20604
20605 * editfns.c (Ftranslate_region_internal): Rename from
20606 Ftranslate_region. Accept a char-table in TABLE.
20607 (syms_of_editfns): Defsubr Stranslate_region_internal.
20608
20609 * xfaces.c (set_lface_from_font_name): If a font is specified for
20610 a frame, generate a fontset from the font.
20611 (build_scalable_font_name): If the scalable font is requested for
20612 a specific size, don't change that size.
20613 (try_font_list): Try a scalable font also in the case that a
20614 pattern string is specified.
20615
206162008-02-01 Kenichi Handa <handa@m17n.org>
20617
20618 * xfaces.c (Fface_font): New optional arg CHARACTER.
20619
206202008-02-01 Kenichi Handa <handa@m17n.org>
20621
20622 * charset.h (CHARSET_OFFSET): New macro.
20623
206242008-02-01 Kenichi Handa <handa@m17n.org>
20625
20626 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20627
20628 * fontset.c (fontset_face): Handle the case that repertory is a
20629 char-table.
20630 (find_font_encoding): Return nil for unknown encoding.
20631 (Fset_fontset_font): Ignore a font of unknown encoding.
20632
206332008-02-01 Kenichi Handa <handa@m17n.org>
20634
20635 * keymap.c (describe_vector): Handle default value of a char table.
20636
20637 * fontset.c (fontset_face): Handle fallback fonts correctly.
20638 (Ffontset_info): Return infomation about fallback fonts.
20639
206402008-02-01 Kenichi Handa <handa@m17n.org>
20641
20642 * fontset.c (FONTSET_DEFAULT): New macro.
20643 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20644 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20645 the case that it is nil.
20646 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20647 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20648
20649 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20650 subset or superset.
20651
206522008-02-01 Kenichi Handa <handa@m17n.org>
20653
20654 * emacs.c (main): Call init_charset after syms_of_XXX.
20655
20656 * charset.c (Vcharset_map_directory): Delete.
20657 (Vcharset_map_path): New variable.
20658 (load_charset_map_from_file): Use Vcharset_map_path instead.
20659 (init_charset): Initialize Vcharset_map_path.
20660 (syms_of_charset): Delete declaration of "charset-map-directory",
20661 add declaration of "charset-map-path".
20662
206632008-02-01 Kenichi Handa <handa@m17n.org>
20664
20665 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20666 ASCII only string.
20667
20668 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20669
20670 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20671 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20672
206732008-02-01 Kenichi Handa <handa@m17n.org>
20674
20675 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20676
20677 * coding.c (QCmnemonic, QCdefalut_char)
20678 (QCdecode_translation_table, QCencode_translation_table)
20679 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20680 (get_translation_table): Return a list of translation tables if
20681 necessary.
20682 (decode_coding): Call get_translation_table with ENCODEP 0.
20683 (char_encodable_p): If translation_table is non-nil, always call
20684 translate_char.
20685 (Fdefine_coding_system_internal): Accept list of translation
20686 tables as :encode-translation-table and :decode-translation-table.
20687 (Fcoding_system_put): New function.
20688 (syms_of_coding): Declare new symbols. Defsubr
20689 Scoding_system_put.
20690 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20691 typically JISX0212.
20692
20693 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20694 when the charset is superset type.
20695
20696 * character.c (translate_char): Accept list of translation tables.
20697
206982008-02-01 Kenichi Handa <handa@m17n.org>
20699
20700 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20701 (CODING_ATTR_TRANS_TBL): New macro.
20702
20703 * coding.c (get_translation_table): New function.
20704 (translate_chars): Fix the bug of skipping annotation data.
20705 (decode_coding, encode_coding): Utilize get_translation_table.
20706 (char_encodable_p, Funencodable_char_position): Translate char if
20707 necessary.
20708 (Ffind_coding_systems_region_internal)
20709 (Fcheck_coding_systems_region): Setup translation table for encode
20710 in a coding system attribute vector in advance.
20711 (Fdefine_coding_system_internal): Allow a symbol as translation
20712 table. For shift-jis type coding system, allow 4th charset.
20713
207142008-02-01 Kenichi Handa <handa@m17n.org>
20715
20716 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20717
20718 * xdisp.c (get_next_display_element): Pass -1 as POS to
20719 FACE_FOR_CHAR if displaying a C-string.
20720
207212008-02-01 Kenichi Handa <handa@m17n.org>
20722
20723 * composite.c (get_composition_id): Handle xoff and yoff in a
20724 composition rule.
20725
20726 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20727 (struct composition): New member lbearing and rbearing.
20728
20729 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20730 (x_get_glyph_overhangs): Handle a composition glyph.
20731 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20732
20733 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20734 composition glyph.
20735
207362008-02-01 Kenichi Handa <handa@m17n.org>
20737
20738 * print.c: Include charset.h.
20739 (Vprint_charset_text_property): New variable.
20740 (Qdefault): Extern it.
20741 (PRINT_STRING_NON_CHARSET_FOUND)
20742 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20743 (print_check_string_result): New variable.
20744 (print_check_string_charset_prop): New function.
20745 (print_prune_charset_plist): New variable.
20746 (print_prune_string_charset): New function.
20747 (print_object): Call print_prune_string_charset if
20748 Vprint_charset_text_property is not t.
20749 (print_interval): Print nothing if interval->plist is nil.
20750 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20751 variable. Init and staticpro print_prune_charset_plist.
20752
207532008-02-01 Kenichi Handa <handa@m17n.org>
20754
20755 * fontset.c (new_fontset_from_font_name): Use the specified font
20756 for all characters in the new fontset.
20757
20758 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20759 OBJECT args.
20760
20761 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20762 OBJECT args for composition too.
20763
20764 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20765 OBJECT args.
20766
207672008-02-01 Kenichi Handa <handa@m17n.org>
20768
20769 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20770
20771 * fontset.c (reorder_font_vector): Adjust for the change of
20772 FONT_DEF format.
20773 (fontset_face): New arg id. Change caller.
20774 (face_for_char): New args pos and object.
20775 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20776 (fs_query_fontset): Check NAME by Fassoc too.
20777 (Fset_fontset_font): Allow non-XLFD font name.
20778 (Ffontset_info): Adjust for the change of FONT_DEF format.
20779
20780 * fontset.h (face_for_char): Adjust prototype.
20781
20782 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20783 (append_space, extend_face_to_end_of_line)
20784 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20785 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20786
20787 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20788 POS and OBJECT args.
20789
20790 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20791 POS and OBJECT args.
20792
207932008-02-01 Jason Rumney <jasonr@gnu.org>
20794
20795 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20796 of GlobalAlloc'ed memory.
20797
207982008-02-01 Kenichi Handa <handa@m17n.org>
20799
20800 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20801
20802 * charset.h (charset_table_used): Delete extern.
20803
20804 * charset.c (charset_table_used): Make it static.
20805 (map_charset_chars): Fix args to c_function with.
20806
20807 * chartab.c (map_sub_char_table_for_charset): Fix args to
20808 c_function with.
20809
20810 * coding.h (enum coding_result_code): Delete
20811 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20812
20813 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20814 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20815 (Vlast_code_conversion_error): New variables.
20816 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20817 (ONE_MORE_BYTE): Record error if any instead of signaling an
20818 error. If non-ASCII multibyte char is found, return the negative
20819 value of the code. All callers changed to check it.
20820 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20821 (record_conversion_result): New function. Change all codes setting
20822 coding->result to call this function.
20823 (detect_coding_utf_8, decode_coding_utf_8)
20824 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20825 Don't use the local variable incomplete.
20826 (emacs_mule_char): Change the second arg to `const'.
20827 (decode_coding): Fix of flushing out unprocessed data.
20828 (make_conversion_work_buffer): Fix making of a work buffer.
20829 (decode_coding_object): Return coding->dst_object.
20830
20831 * fontset.c (set_fontset_font): Fix args.
20832
20833 * lisp.h (CHARACTERBITS): Define as 22.
20834
20835 * process.c (send_process): Be sure to set coding->src_multibyte.
20836
20837 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20838
208392008-02-01 Kenichi Handa <handa@m17n.org>
20840
20841 * xdisp.c (handle_auto_composed_prop): Give limit to
20842 Fnext_single_char_property_change.
20843
208442008-02-01 Kenichi Handa <handa@m17n.org>
20845
20846 * composite.c (syms_of_composite): Don't make the composition hash
20847 table weak.
20848
20849 * fontset.c (Fset_fontset_font): Fix docstring.
20850
20851 * lisp.h (detect_coding_system): Adjust prototype.
20852
20853 * fileio.c (kill_workbuf_unwind): Delete this function.
20854 (Finsert_file_contents): Adjust the call of detect_coding_system.
20855 Get conversion_buffer by code_conversion_save. Use the macro
20856 CODING_MAY_REQUIRE_DECODING. After decoding, update
20857 coding_system.
20858
20859 * coding.h (make_conversion_work_buffer): Delete extern.
20860 (code_conversion_save): Extern it.
20861
20862 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20863 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20864 (decode_coding_utf_8): Don't do eol converion.
20865 (detect_coding_utf_16): Check coding->src_chars, not
20866 coding->src_bytes. Add heuristics for those that have no signature.
20867 (decode_coding_emacs_mule, decode_coding_iso_2022)
20868 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20869 Don't do eol converion.
20870 (adjust_coding_eol_type): Return a new coding system.
20871 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20872 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20873 each change.
20874 (decode_coding): Pay attention to undo_list. Do eol conversion for
20875 all types of coding-systems (if necessary).
20876 (Vcode_conversion_work_buf_list): Delete it.
20877 (Vcode_conversion_reused_workbuf): Rename from
20878 Vcode_conversion_reused_work_buf.
20879 (Vcode_conversion_workbuf_name): New variable.
20880 (reused_workbuf_in_use): New variable.
20881 (make_conversion_work_buffer): Delete the arg DEPTH.
20882 (code_conversion_restore): Change argument to cons.
20883 (code_conversion_save): Delete the argument BUFFER. Change callers.
20884 (detect_coding_system): New argument src_chars. Change callers.
20885 Fix for utf-16 detection.
20886 (init_coding_once): Don't use ISO_carriage_return.
20887 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20888 reused_workbuf_in_use.
20889
208902008-02-01 Kenichi Handa <handa@m17n.org>
20891
20892 * keymap.c (store_in_keymap): Pay attention to the case that idx
20893 is a cons specifying a character range.
20894
208952008-02-01 Kenichi Handa <handa@m17n.org>
20896
20897 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20898 HANDLED_RECOMPUTE_PROPS.
20899
20900 * coding.c (Fdefine_coding_system_internal): Fix checking of
20901 ascii compatibility.
20902
209032008-02-01 Kenichi Handa <handa@m17n.org>
20904
20905 * charset.c (find_charsets_in_text): Delete unused locale variable.
20906 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20907
20908 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20909 Resync charset_list to Vemacs_mule_charset_list.
20910
20911 * keymap.c (store_in_keymap): Pay attention to the case that idx
20912 is a cons specifying a character range.
20913
209142008-02-01 Kenichi Handa <handa@m17n.org>
20915
20916 * composite.c (update_compositions): Bind inhibit-read-only, etc
20917 to t before calling remove-list-of-text-properties.
20918
20919 * print.c (print_object): Always print ASCII chars as is.
20920
209212008-02-01 Kenichi Handa <handa@m17n.org>
20922
20923 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20924
20925 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20926 is a char table.
20927
209282008-02-01 Kenichi Handa <handa@m17n.org>
20929
20930 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20931
209322008-02-01 Kenichi Handa <handa@m17n.org>
20933
20934 * xfaces.c (set_lface_from_font_name): Fix for the case that
20935 FONTNAME is not fontset name.
20936
209372008-02-01 Kenichi Handa <handa@m17n.org>
20938
20939 * fns.c (base64_encode_1): Fix previous change.
20940
209412008-02-01 Kenichi Handa <handa@m17n.org>
20942
20943 * fontset.c (set_fontset_font): New function.
20944 (Fset_fontset_font): If a font is specified for a charset, use
20945 map_charset_chars to store the font spec in a fontset.
20946
209472008-02-01 Kenichi Handa <handa@m17n.org>
20948
20949 * fontset.c (fontset_face): Create a fallback fontset on demand.
20950 (make_fontset): Don't create a fallback fontset here.
20951 (free_face_fontset): Free a fallback fontset (if any) too.
20952 (n_auto_fontsets): Delete this variable.
20953 (auto_fontset_alist): New variable.
20954 (new_fontset_from_font_name): Check auto_fontset_alist.
20955 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20956 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20957 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20958 Defsubr Sfontset_list_all.
20959
209602008-02-01 Kenichi Handa <handa@m17n.org>
20961
20962 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20963
209642008-02-01 Kenichi Handa <handa@m17n.org>
20965
20966 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20967
209682008-02-01 Kenichi Handa <handa@m17n.org>
20969
20970 * editfns.c (Fgoto_char): Fix docstring.
20971
209722008-02-01 Kenichi Handa <handa@m17n.org>
20973
20974 * insdel.c (insert_from_gap): Adjust intervals correctly.
20975
209762008-02-01 Jason Rumney <jasonr@gnu.org>
20977
20978 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20979 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20980 (w32_initialize): Try to load it.
20981 (x_get_font_repertory): Use it if available.
20982 (w32_encode_char): Add shortcut for unicode output.
20983
20984 * w32fns.c (w32_load_system_font): Default charset to -1.
20985 (x_to_w32_charset): Match all fonts for unicode.
20986 (w32_to_x_charset): New parameter matching. Don't return partial
20987 or wildcard charsets.
20988 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20989 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20990 (w32_to_x_font): Match charset to real charset.
20991 (enum_font_cb2): Always list unicode versions.
20992
20993 * makefile.w32-in (temacs): Increase EMHEAP.
20994
209952008-02-01 Jason Rumney <jasonr@gnu.org>
20996
20997 * w32term.c (w32_encode_char): New charset parameter.
20998 font_info.encoding becomes encoding_type.
20999 (x_get_font_repertory): New function. Warning: stub only!
21000 (x_new_font): Return quickly if font already set.
21001 (x_new_fontset): fontsetname parameter is Lisp_Object.
21002 Use new fs_query_fontset. Try new_fontset_from_font_name.
21003 Use fontset_name for return value.
21004
21005 * w32term.h: Declare x_get_font_repertory.
21006
21007 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21008 place of find_charset_in_text. Use encode_coding_object in place
21009 of encode_coding.
21010 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21011 decode_coding.
21012
21013 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21014 of x_new_fontset.
21015 (w32_load_system_font): Initialize charset as unicode.
21016 font_info.encoding becomes encoding_type.
21017 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21018 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21019 (syms_of_w32fns): Set get_font_repertory_func.
21020
21021 * w32console.c: Include character.h. Use terminal_encode_buffer
21022 from term.c.
21023 (write_glyphs): Use new version of encode_terminal_code. Use
21024 encode_coding_object in place of encode_coding.
21025
21026 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21027 encoding becomes encoding_type.
21028
21029 * term.c (terminal_encode_buffer): Make externally visible.
21030
21031 * makefile.w32-in: Add character.h dependancies.
21032 (character.o, chartab.o): New targets.
21033
210342008-02-01 Kenichi Handa <handa@m17n.org>
21035
21036 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21037 CODING_ID_EOL_TYPE.
21038
210392008-02-01 Andreas Schwab <schwab@suse.de>
21040
21041 * coding.c (produce_chars): Revert last change.
21042
210432008-02-01 Kenichi Handa <handa@m17n.org>
21044
21045 * charset.h (charset_unicode): Extern it.
21046
21047 * charset.c (string_xstring_p): Check by (C >= 0x100).
21048 (find_charsets_in_text): Change format of the arc CHARSETS. New
21049 arg MULTIBYTE.
21050 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21051 change of find_charsets_in_text.
21052 (Fsplit_char): Fix doc. Never return unknown.
21053
21054 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21055
21056 * coding.c (Fdefine_coding_system_alias): Update
21057 Vcoding_system_list.
21058
21059 * fontset.c (load_font_get_repertory): Pay attention to the case
21060 that ENCODING of a font is specified by a char-table.
21061
21062 * xterm.c (x_get_font_repertory): Handle the case that the
21063 encoding of font is other than Unicode.
21064
210652008-02-01 Kenichi Handa <handa@m17n.org>
21066
21067 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21068 if a character is encodable by the terminal coding system. If
21069 not, produces proper number of `?'s. Update
21070 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21071 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21072
210732008-02-01 Kenichi Handa <handa@m17n.org>
21074
21075 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21076 variables.
21077 (encode_terminal_code): Change argument. Encode multiple
21078 characters at once. Store the result of encoding in
21079 terminal_encode_buffer.
21080 (write_glyphs, insert_glyphs): Adjust for the change of
21081 encode_terminal_code.
21082 (term_init): Initialize terminal_encode_buffer and
21083 terminal_encode_buf_size.
21084
21085 * coding.c (consume_chars): If coding->src_object is nil, don't
21086 check annotation.
21087
210882008-02-01 Kenichi Handa <handa@m17n.org>
21089
21090 * character.c (char_string): Use ASCII_CHAR_P instead of
21091 SINGLE_BYTE_CHAR_P.
21092
210932008-02-01 Kenichi Handa <handa@m17n.org>
21094
21095 * xdisp.c (handle_auto_composed_prop): Check if the last
21096 characters of auto-composed region is newly composed with the
21097 following characters.
21098 (handle_composition_prop): Fix checking of point being inside
21099 composition.
21100
211012008-02-01 Kenichi Handa <handa@m17n.org>
21102
21103 * fns.c (concat): Don't change multibyteness of the result by
21104 concatenating an 8-bit character.
21105
21106 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21107 multibyteness of the result when newelt is an 8-bit character.
21108
211092008-02-01 Dave Love <fx@gnu.org>
21110
21111 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21112 EMACS_INT.
21113
21114 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21115
21116 * xfaces.c (face_numeric_value): Declare dim size_t.
21117 (Finternal_lisp_face_equal_p): Remove unused f.
21118
21119 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21120 (MATRIX_ROW): Remove unused vars.
21121 (draw_glyphs, x_insert_glyphs, fast_find_position)
21122 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21123 byte/char counts.
21124
21125 * regex.c (regex_compile): Remove unused var.
21126
21127 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21128
21129 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21130 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21131
21132 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21133
21134 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21135
21136 * fileio.c (Fwrite_region): Remove unused var.
21137
21138 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21139 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21140
21141 * composite.c (Fremove_list_of_text_properties): Declare.
21142
21143 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21144 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21145 (coding_inherit_eol_type): Remove unused attrs.
21146 (detect_coding): Cast arg of detect_eol.
21147
21148 * charset.c (syms_of_charset): Remove unused var p.
21149 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21150 byte/char counts.
21151
21152 * casetab.c (set_case_table): Remove unused var.
21153
21154 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21155 unused vars.
21156
211572008-02-01 Dave Love <fx@gnu.org>
21158
21159 * xterm.c (x_bitmap_mask): Declare.
21160
211612008-02-01 Dave Love <fx@gnu.org>
21162
21163 * xterm.c (x_term_init): Fix type error.
21164
21165 * lisp.h: Add Funibyte_char_to_multibyte.
21166
21167 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21168 (Fset_coding_system_priority): Doc fix.
21169
21170 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21171
21172 * indent.c (check_composition): Make start and end EMACS_INT.
21173
21174 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21175
21176 * xdisp.c (handle_composition_prop, check_point_in_composition):
21177 Make buffer positions EMACS_INT.
21178
21179 * composite.c (find_composition, run_composition_function)
21180 (update_compositions, Ffind_composition_internal): Make buffer
21181 positions EMACS_INT.
21182
21183 * composite.h (find_composition, update_compositions): Make
21184 position args EMACS_INT.
21185
21186 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21187
21188 * intervals.c (get_property_and_range):
21189 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21190
21191 * unexalpha.c: Don't include varargs.h.
21192
211932008-02-01 Dave Love <fx@gnu.org>
21194
21195 * coding.h (ENCODE_UTF_8): New.
21196
21197 * Makefile.in (gtkutil.o): Depend on coding.h.
21198
21199 * coding.c (Fset_coding_system_priority): Doc fix.
21200
212012008-02-01 Kenichi Handa <handa@m17n.org>
21202
21203 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21204 the case of auto saving.
21205
212062008-02-01 Andreas Schwab <schwab@suse.de>
21207
21208 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21209 `range' from GC.
21210
212112008-02-01 Kenichi Handa <handa@m17n.org>
21212
21213 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21214
212152008-02-01 Kenichi Handa <handa@m17n.org>
21216
21217 * fileio.c (choose_write_coding_system): Return a decided coding system.
21218 (Fwrite_region): Set Vlast_coding_system_used to the return value
21219 of choose_write_coding_system.
21220
212212008-02-01 Kenichi Handa <handa@m17n.org>
21222
21223 * charset.c (Fset_charset_priority): Pay attention to duplicated
21224 arguments.
21225
21226 * coding.c (QCcategory): New variable.
21227 (syms_of_coding): Defsym it. Set all elements of
21228 Vcoding_category_table and their symbol values.
21229 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21230 coding-category-XXX, and coding-category-list.
21231 (Fdefine_coding_system_internal): Add category in the plist.
21232
212332008-02-01 Kenichi Handa <handa@m17n.org>
21234
21235 * callproc.c (Fcall_process): Handle carryover correctly.
21236
21237 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21238 (raw_text_coding_system): Check NILP (coding_system).
21239 (coding_inherit_eol_type): Check NILP (coding_system) and
21240 NILP (parent).
21241 (consume_chars): Fix for the case of raw-text.
21242
21243 * process.c (read_process_output): Handle carryover correctly.
21244
212452008-02-01 Dave Love <fx@gnu.org>
21246
21247 * regex.c (re_search_2): Fix last change.
21248
212492008-02-01 Kenichi Handa <handa@m17n.org>
21250
21251 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21252 target_multibyte. Even in a unibyte case, return a converted
21253 multibyte char.
21254 (GET_CHAR_AFTER): New macro.
21255 (PATFETCH): Translate via multibyte char.
21256 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21257 (SETUP_MULTIBYTE_RANGE): New macro.
21258 (regex_compile): Setup compiled code so that its multibyteness
21259 matches that of a target. Fix the handling of "[X-YZ]" using
21260 SETUP_MULTIBYTE_RANGE.
21261 (analyse_first) <charset>: For filling fastmap for all multibyte
21262 characters, don't check by BASE_LEADING_CODE_P.
21263 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21264 the same as RE_MULTIBYTE_P (bufp) now.
21265 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21266 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21267 (TRANSLATE_VIA_MULTIBYTE): New macro.
21268 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21269 It is the same as RE_MULTIBYTE_P (bufp) now.
21270 <exactn>: Translate via multibyte.
21271 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21272 translate it.
21273 <charset, charset_not>: Fetch a character by
21274 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21275 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21276 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21277 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21278 by GET_CHAR_AFTER.
21279 (bcmp_translate): Likewise.
21280
21281 * search.c (compile_pattern): Check the member target_multibyte,
21282 not the member multibyte of buf.
21283
21284 * lread.c (read1): While reading a string, set force_singlebyte
21285 and force_multibyte correctly.
21286
21287 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21288 up of unibyte_to_multibyte_table.
21289
212902008-02-01 Kenichi Handa <handa@m17n.org>
21291
21292 * coding.c (setup_coding_system): If coding has
21293 post-read-conversion or pre-write-conversion, set
21294 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21295 respectively.
21296 (decode_coding_gap): Run post-read-conversion if any.
21297
21298 * fileio.c (Finsert_file_contents): Even if we read into a
21299 unibyte buffer, check if we must decode the result or not.
21300
213012008-02-01 Kenichi Handa <handa@m17n.org>
21302
21303 * coding.c (make_conversion_work_buffer): Change the work buffer
21304 name to the same one as that of Emacs 21.
21305
213062008-02-01 Kenichi Handa <handa@m17n.org>
21307
21308 * coding.h (make_conversion_work_buffer): Adjust prototype.
21309 (code_conversion_restore): Don't extern it.
21310
21311 * coding.c (detected_mask): Delete unused variable.
21312 (decode_coding_iso_2022): Pay attention to the byte sequence of
21313 CTEXT extended segment, and retain those bytes as is.
21314 (decode_coding_ccl): Delete unused variable `valids'.
21315 (setup_coding_system): Delete unused variable `category'.
21316 (consume_chars): Delete unused variable `category'. Make it work
21317 for non-multibyte case.
21318 (make_conversion_work_buffer): Change argument.
21319 (saved_coding): Delete unused variable.
21320 (code_conversion_restore): Don't check saved_coding->destination.
21321 (code_conversion_save): New function.
21322 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21323 instead of record_unwind_protect.
21324 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21325 (detect_coding_system): Delete unused variable `mask'.
21326 (Fdefine_coding_system_internal): Delete unused variable id.
21327
21328 * fileio.c (kill_workbuf_unwind): New function.
21329 (Finsert_file_contents): On replacing, call
21330 make_conversion_work_buffer with correct args, and call
21331 record_unwind_protect with the first arg kill_workbuf_unwind.
21332
21333 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21334
213352008-02-01 Kenichi Handa <handa@m17n.org>
21336
21337 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21338 (fontset_add): Fix for the case that TO is less than TO1.
21339 (Ffontset_info): Don't use fallback fontset on checking the
21340 default fontset.
21341 (dump_fontset): New function for debugging.
21342
21343 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21344 coding_type is Qcharset.
21345
213462008-02-01 Kenichi Handa <handa@m17n.org>
21347
21348 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21349 (map_char_table): Don't inherit the value from the parent on
21350 initializing VAL. Adjust for the above change.
21351
213522008-02-01 Kenichi Handa <handa@m17n.org>
21353
21354 * coding.c (Qsignature, Qendian): Delete these variables.
21355 (syms_of_coding): Don't initialize them.
21356 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21357 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21358 detect_info->found.
21359 (decode_coding_utf_16): Don't detect BOM here.
21360 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21361 is NOT utf_16_without_bom.
21362 (setup_coding_system): For a coding system of type utf-16, check
21363 if the attribute :endian is Qbig or not (not nil or not), and set
21364 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21365 (detect_coding): If coding type is utf-16 and BOM detection is
21366 required, detect it.
21367 (Fdefine_coding_system_internal): For a coding system of type
21368 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21369
213702008-02-01 Kenichi Handa <handa@m17n.org>
21371
21372 * coding.c (coding_set_source): Fix for the case that the current
21373 buffer is different from coding->src_object.
21374 (decode_coding_object): Don't use the conversion work buffer if
21375 DST_OBJECT is a buffer.
21376
213772008-02-01 Dave Love <fx@gnu.org>
21378
21379 * lread.c (read_emacs_mule_char) [len==2]: Index
21380 emacs_mule_charset correctly.
21381
213822008-02-01 Dave Love <fx@gnu.org>
21383
21384 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21385 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21386 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21387 treated specially.)
21388 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21389 (detected_mask): Remove Big5 bits.
21390
213912008-02-01 Kenichi Handa <handa@m17n.org>
21392
21393 The following changes are to make the font rescaling facility
21394 compatible with Emacs 21.
21395
21396 * xfaces.c (Vface_font_rescale_alist): Rename from
21397 Vface_resizing_fonts.
21398 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21399 (font_rescale_ratio): Rename from font_resizing_ratio.
21400 (split_font_name): Set font->rescale_ratio.
21401 (better_font_p): Pay attention to font->rescale_ratio.
21402 (build_scalable_font_name): Likewise. Change RESX, and RESY
21403 fields.
21404 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21405
214062008-02-01 Kenichi Handa <handa@m17n.org>
21407
21408 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21409 (Qutf_16_le): Remove these variables.
21410 (syms_of_coding): Don't DEFSYM them.
21411 (decode_coding_utf_16): Fix handling of BOM.
21412 (encode_coding_utf_16): Fix handling of BOM.
21413
214142008-02-01 Kenichi Handa <handa@m17n.org>
21415
21416 * fileio.c (Finsert_file_contents): On replacing, before decoding
21417 the file into the work buffer, set point of the work buffer to the end.
21418
214192008-02-01 Dave Love <fx@gnu.org>
21420
21421 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21422
214232008-02-01 Dave Love <fx@gnu.org>
21424
21425 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21426 and fix C types.
21427
214282008-02-01 Kenichi Handa <handa@m17n.org>
21429
21430 * xdisp.c (SKIP_GLYPHS): New macro.
21431 (set_cursor_from_row): Pay attention to string display properties.
21432
21433 * category.c (copy_category_entry): Fix for the case that RANGE
21434 is an integer.
21435
21436 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21437
21438 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21439
214402008-02-01 Kenichi Handa <handa@m17n.org>
21441
21442 * charset.c (Fcharset_id_internal): New function.
21443 (syms_of_charset): Defsubr it.
21444
21445 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21446 with the last arg charset_list acquired from coding.
21447 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21448 the attribute coding_attr_ccl_valids.
21449
21450 * coding.h (enum define_coding_ccl_arg_index): Set the first
21451 member coding_arg_ccl_decoder to coding_arg_max.
21452
21453 * ccl.h (ccl_driver): Adjust prototype.
21454
21455 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21456 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 21457 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
21458 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21459 last arg Qnil.
21460
214612008-02-01 Kenichi Handa <handa@m17n.org>
21462
21463 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21464 call encode_char.
21465
21466 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21467
214682008-02-01 Dave Love <fx@gnu.org>
21469
21470 * composite.c (syms_of_composite): Make composition_hash_table weak.
21471
214722008-02-01 Kenichi Handa <handa@m17n.org>
21473
21474 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21475 (font_name_registry): Don't extern them.
21476 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21477
21478 * fontset.h (Qfontset): Don't extern it.
21479 (new_fontset_from_font_name): Extern it.
21480
21481 * fontset.c: Give 8 extra slots to fontset objects.
21482 (Qfontset_info): New variable.
21483 (syms_of_fontset): Defsym it.
21484 (FONTSET_FALLBACK): New macro.
21485 (fontset_face): Try also the default fontset.
21486 (make_fontset): Realize a fallback fontset from the default fontset.
21487 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21488 using split_font_name_into_vector and build_font_name_from_vector.
21489 (Fset_fontset_font): Access the elements of font_spec by enum
21490 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21491 name by using split_font_name_into_vector.
21492 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21493 generate a proper font name from the fontset name. Update
21494 Vfontset_alias_alist.
21495 (n_auto_fontsets): New variable.
21496 (new_fontset_from_font_name): New function.
21497 (Ffont_info): Store the information about fonts generated from the
21498 default fontset in the first extra slot of the returned char-table.
21499
21500 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21501 (font_name_registry): Delete function.
21502 (split_font_name_into_vector): New function.
21503 (build_font_name_from_vector): New function.
21504 (font_list): The argument REGISTRY is now a list of registry names.
21505 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21506 specifies an explicit font name, return the name as is. Make a
21507 list of registy names.
21508
21509 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21510 of x_new_fontset.
21511 (Fx_create_frame): Don't call x_new_fontset here. Just use
21512 x_list_fonts to check the existence of fonts.
21513
21514 * xterm.h (x_new_fontset): Adjust prototype.
21515
21516 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21517 string. Use new_fontset_from_font_name to create a fontset from a
21518 font name.
21519
215202008-02-01 Kenichi Handa <handa@m17n.org>
21521
21522 * syntax.c (Vfind_word_boundary_function_table): New name for
21523 Vnext_word_boundary_function_table.
21524 (find-word-boundary-function-table): New name for
21525 next-word-boundary-function-table.
21526
215272008-02-01 Dave Love <fx@gnu.org>
21528
21529 * Makefile.in: Fix some dependencies.
21530
21531 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21532 set it to nil before returning.
21533
21534 * composite.c (update_compositions): Fix type error.
21535
21536 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21537
215382008-02-01 Kenichi Handa <handa@m17n.org>
21539
21540 * xterm.c (x_new_font): Optimize for the case that the font is
21541 already set for the frame.
21542
215432008-02-01 Kenichi Handa <handa@m17n.org>
21544
21545 * chartab.c (char_table_ascii): Check if the char table contents
21546 is sub-char-table or not.
21547 (char_table_set, char_table_set_range): Fix argument to
21548 char_table_ascii.
21549
21550 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21551 (detect_coding_utf_8, detect_coding_utf_16)
21552 (detect_coding_emacs_mule, detect_coding_iso_2022)
21553 (detect_coding_sjis, detect_coding_big5)
21554 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21555 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21556 sequence is valid in this coding system. Change callers.
21557 (MAX_ANNOTATION_LENGTH): New macro.
21558 (ADD_ANNOTATION_DATA): New macro.
21559 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21560 ADD_ANNOTATION_DATA. Change the format of annotation data.
21561 (ADD_CHARSET_DATA): New macro.
21562 (emacs_mule_char): New argument ID. Change callers.
21563 (decode_coding_emacs_mule, decode_coding_iso_2022)
21564 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21565 Produce charset annotation data in coding->charbuf.
21566 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21567 to charset annotation data in coding->charbuf.
21568 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21569 coding->common_flags if the coding system is iso-2022 based and
21570 uses designation.
21571 (produce_composition): Adjust for the new annotation data format.
21572 (produce_charset): New function.
21573 (produce_annotation): Handle charset annotation.
21574 (handle_composition_annotation, handle_charset_annotation): New
21575 functions.
21576 (consume_chars): Handle charset annotation. Utilize the above two
21577 functions.
21578 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21579 buffer, get the deleted text as a string and set
21580 coding->src_object to that string.
21581 (detect_coding, detect_coding_system): Use the new struct
21582 coding_detection_info.
21583
21584 * coding.h (struct coding_detection_info): New structure.
21585 (struct coding_system): Adjust prototype of the member `detector'.
21586 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21587
215882008-02-01 Kenichi Handa <handa@m17n.org>
21589
21590 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21591
215922008-02-01 Dave Love <fx@gnu.org>
21593
21594 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21595 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21596 to new local and nullify apropos_accumulate before returning.
21597 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21598
215992008-02-01 Kenichi Handa <handa@m17n.org>
21600
21601 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21602 correctly.
e3eea1fc 21603
aac0c6e3
MR
216042008-02-01 Dave Love <fx@gnu.org>
21605
21606 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21607
216082008-02-01 Kenichi Handa <handa@m17n.org>
21609
21610 The following changes are to make character composition happen
21611 automatically on displaying.
21612
21613 * Makefile.in (lisp, shortlisp): Add composite.elc.
21614
21615 * composite.h (Qauto_composed, Vauto_composition_function)
21616 (Qauto_composition_function): Extern them.
21617
21618 * composite.c (Vcomposition_function_table)
21619 (Qcomposition_function_table): Delete variables.
21620 (Qauto_composed, Vauto_composition_function)
21621 (Qauto_composition_function): New variables.
21622 (run_composition_function): Don't call
21623 compose-chars-after-function.
21624 (update_compositions): Clear `auto-composed' text property.
21625 (compose_chars_in_text): Delete this function.
21626 (syms_of_composite): Staticpro Qauto_composed and
21627 Qauto_composition_function. Declare Vauto_composition_function as
21628 a Lisp variable.
21629
21630 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21631
21632 * xdisp.c (it_props): Add an entry for Qauto_composed.
21633 (handle_auto_composed_prop): New function.
21634
21635 * xselect.c (selection_data_to_lisp_data): Don't call
21636 compose_chars_in_text.
21637
216382008-02-01 Dave Love <fx@gnu.org>
21639
21640 * keyboard.c (read_char): Modify checking around use of
21641 Vkeyboard_translate_table.
21642
21643 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21644 and fix C types.
21645
216462008-02-01 Kenichi Handa <handa@m17n.org>
21647
21648 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21649 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21650 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21651 the case that the last byte is '\r' correctly.
21652 (decode_coding): Flush out the unprocessed data correctly.
21653 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21654
216552008-02-01 Dave Love <fx@gnu.org>
21656
21657 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21658 Add XK_ISO... case.
21659 (xaw_scroll_callback): Revert last change.
21660
216612008-02-01 Kenichi Handa <handa@m17n.org>
21662
21663 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21664
216652008-02-01 Kenichi Handa <handa@m17n.org>
21666
21667 * xfaces.c (Vface_resizing_fonts): New variable.
21668 (struct font_name): New member `resizing_ratio'.
21669 (font_resizing_ratio): New function.
21670 (split_font_name): Set font->resizing_ratio.
21671 (better_font_p): Pay attention to font->resizing_ratio.
21672 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21673 RESX, and RESY fields.
21674 (try_alternative_families): Try scalable fonts if
21675 Vscalable_fonts_allowed is not Qt.
21676 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21677
216782008-02-01 Dave Love <fx@gnu.org>
21679
21680 * xterm.c (xaw_scroll_callback): Cast correctly.
21681
216822008-02-01 Dave Love <fx@gnu.org>
21683
21684 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21685 (lispy_kana_keys): Comment out.
21686 (make_lispy_event) [XK_kana_A]: Comment out.
21687
21688 * xterm.c (xaw_scroll_callback): Cast call_data.
21689 (XTread_socket): Deal with ASCII keysyms.
21690 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21691
216922008-02-01 Dave Love <fx@gnu.org>
21693
21694 * xterm.c (Vx_keysym_table): New.
21695 (syms_of_xterm): Initialize it.
21696 (XTread_socket): Use it.
21697 From head: Eliminate incorrect optimization that tried to avoid
21698 decoding the output of X*LookupString.
21699 (x_get_font_repertory): Delete charset declaration.
21700
217012008-02-01 Kenichi Handa <handa@m17n.org>
21702
21703 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21704 return 0.
21705 (Fdefine_coding_system_internal): Setup
21706 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21707
217082008-02-01 Dave Love <fx@gnu.org>
21709
21710 * coding.c (Fcheck_coding_system): Doc fix.
21711
21712 * editfns.c (Finsert_byte): Return a proper value.
21713
217142008-02-01 Kenichi Handa <handa@m17n.org>
21715
21716 * coding.c (decode_coding): Fix args to translate_chars. Pay
21717 attention to Vstandard_translation_table_for_decode.
21718 (encode_coding): Fix args to translate_chars. Pay attention to
21719 Vstandard_translation_table_for_encode.
21720
21721 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21722 SINGLE_BYTE_CHAR_P.
21723
21724 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21725 not by SINGLE_BYTE_CHAR_P.
21726
21727 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21728 SINGLE_BYTE_CHAR_P.
21729
21730 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21731 SINGLE_BYTE_CHAR_P.
21732
21733 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21734 by SINGLE_BYTE_CHAR_P.
21735
21736 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21737 SINGLE_BYTE_CHAR_P.
21738
217392008-02-01 Dave Love <fx@gnu.org>
21740
21741 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21742
217432008-02-01 Dave Love <fx@gnu.org>
21744
21745 * fns.c (Flanginfo): Fix typo.
21746
21747 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21748
217492008-02-01 Kenichi Handa <handa@m17n.org>
21750
21751 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21752 (detect_coding_emacs_mule, detect_coding_iso_2022)
21753 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21754 incomplete byte sequence. Don't update *mask when correctly detected.
21755 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21756 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21757 (detect_coding, detect_coding_system): Adjust for the changes above.
21758
217592008-02-01 Kenichi Handa <handa@m17n.org>
21760
21761 * character.c (char_string): Rename from
21762 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21763 (string_char): Rename from string_char.
21764
21765 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21766 if C is greater than MAX_3_BYTE_CHAR.
21767 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21768 string_char instead of string_char_with_unification.
21769
217702008-02-01 Dave Love <fx@gnu.org>
21771
21772 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21773
217742008-02-01 Kenichi Handa <handa@m17n.org>
21775
21776 * keymap.c (push_key_description): Pay attention to force_multibyte.
21777
21778 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21779
217802008-02-01 Dave Love <fx@gnu.org>
21781
21782 * charset.c (define_charset_internal): Rename `supprementary'.
21783
21784 * Makefile.in (lisp, shortlisp): Remove latin-N.
21785
217862008-02-01 Dave Love <fx@gnu.org>
21787
21788 * xfns.c (x_window, x_window): Use use_xim.
21789
21790 * xterm.c (use_xim): Initialize.
21791 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21792 (x_term_init): Maybe set use_xim.
21793
21794 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21795
217962008-02-01 Kenichi Handa <handa@m17n.org>
21797
21798 * search.c (search_buffer): Fix case-fold-search of multibyte
21799 characters.
21800 (boyer_moore): Rename the last argument to char_high_bits.
21801
218022008-02-01 Kenichi Handa <handa@m17n.org>
21803
21804 * xdisp.c (display_string): Fix for the case of zero width glyph.
21805
21806 * xfns.c (x_set_font): Change the error message of the case that
21807 x_new_fontset returns Qt.
21808
21809 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21810 (Finternal_set_lisp_face_attribute): Use signal_error for the
21811 error of invalid fontset.
21812
21813 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21814 fontset, return Qt.
21815
218162008-02-01 Dave Love <fx@gnu.org>
21817
21818 * unexelf.c (unexec): Make .got handling not SGI-specific.
21819
21820 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21821
21822 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21823
21824 * keyboard.c (read_key_sequence): Fix type error.
21825
21826 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21827 type error.
21828
21829 * fontset.c (fontset_add): Return Lisp_Object.
21830
218312008-02-01 Dave Love <fx@gnu.org>
21832
21833 * charset.h (charset_ordered_list_tick): Declare extern.
21834
218352008-02-01 Kenichi Handa <handa@m17n.org>
21836
21837 The following changes (and some of 2008-02-01 changes of mine) are
21838 for handling syntax, category, and case conversion for unibyte
21839 characters by converting them to multibyte on the fly. With these
21840 changes, we don't have to setup syntax and case tables for unibyte
21841 characters in each language environment.
21842
21843 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21844 multibyte if necessary.
21845
21846 * bytecode.c (Fbyte_code): Likewise.
21847
21848 * character.h (LEADING_CODE_LATIN_1_MIN)
21849 (LEADING_CODE_LATIN_1_MAX): New macros.
21850 (unibyte_to_multibyte_table): Extern it.
21851 (unibyte_char_to_multibyte): New macro.
21852 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21853 (CHAR_LEADING_CODE): New macro.
21854 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21855
21856 * character.c (unibyte_to_multibyte_table): New variable.
21857 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21858 (multibyte_char_to_unibyte): If C is an eight-bit character,
21859 convert it to the corresponding byte value.
21860
21861 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21862 not 1, signals an error. Update the elements of
21863 unibyte_to_multibyte_table.
21864 (init_charset_once): Initialize unibyte_to_multibyte_table.
21865 (syms_of_charset): Define the charset `iso-8859-1'.
21866
21867 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21868 as is without converting it to unibyte. In a unibyte buffer,
21869 convert C to multibyte before checking the syntax.
21870
21871 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21872
21873 * minibuf.c (Fminibuffer_complete_word): Use the macro
21874 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21875
21876 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21877
21878 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21879 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21880 that is zero, convert an eight-bit char to multibyte.
21881 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21882 non-emacs case.
21883 (PATFETCH): Convert an eight-bit char to multibyte.
21884 (HANDLE_UNIBYTE_RANGE): New macro.
21885 (regex_compile): Setup the compiled pattern for multibyte chars
21886 even if the given regex string is unibyte. Use PATFETCH_RAW
21887 instead of PATFETCH in many places. To handle `charset'
21888 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21889 only for ASCII chars.
21890 (analyse_first) <exactn>: Simplify because the compiled pattern
21891 is multibyte.
21892 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21893 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21894 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21895 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21896 multibyte always 1.
21897 (re_search_2): In emacs, set the locale variable multibyte to 1,
21898 otherwise to 0. New local variable target_multibyte. Check it
21899 to decide the multibyteness of STR1 and STR2. If
21900 target_multibyte is zero, convert unibyte chars to multibyte
21901 before translating and checking fastmap.
21902 (TARGET_CHAR_AND_LENGTH): New macro.
21903 (re_match_2_internal): In emacs, set the locale variable multibyte
21904 to 1, otherwise to 0. New local variable target_multibyte. Check
21905 it to decide the multibyteness of STR1 and STR2. Use
21906 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21907 <charset, charset_not>: If multibyte is nonzero, check fastmap
21908 only for ASCII chars. Call bcmp_translate with
21909 target_multibyte, not with multibyte.
21910 <begline>: Declare the local variable C as `unsigned'.
21911 (bcmp_translate): Change the last arg name to target_multibyte.
21912
21913 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21914 the regexp pattern and the matching target. Set cp->buf.multibyte
21915 to the multibyteness of the regexp pattern. Set
21916 cp->but.target_multibyte to the multibyteness of the matching target.
21917 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21918 FETCH_STRING_CHAR_ADVANCE.
21919 (Freplace_match): Convert unibyte chars to multibyte.
21920
21921 * syntax.c (char_quoted, back_comment, scan_words)
21922 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21923 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21924 unibyte chars to multibyte.
21925 (skip_chars): Delete the arg syntaxp, and move the code for
21926 handling syntaxes to skip_syntaxes. Change callers.
21927 Fix the case that the multibyteness of STRING and the current
21928 buffer doesn't match.
21929 (skip_syntaxes): New function.
21930 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21931 SINGLE_BYTE_CHAR_P.
21932
219332008-02-01 Kenichi Handa <handa@m17n.org>
21934
21935 * xfaces.c (QCfontset): New variable.
21936 (LFACE_FONTSET): New macro.
21937 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21938 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21939 (Finternal_set_lisp_face_attribute)
21940 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21941 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21942 check also LFACE_FONTSET_INDEX.
21943 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21944 attrs[LFACE_FONT_INDEX].
21945 (syms_of_xfaces): Intern and staticpro QCfontset.
21946
21947 * dispextern.h (enum lface_attribute_index): New member
21948 LFACE_FONTSET_INDEX.
21949
21950 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21951
219522008-02-01 Kenichi Handa <handa@m17n.org>
21953
21954 * coding.c (coding_set_destination): Fix coding->destination for
21955 the case converting a region.
21956 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21957 (encode_coding_object): Fix coding->dst_pos and
21958 coding->dst_pos_byte for the case converting a region.
21959
21960 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21961
21962 * character.h (BYTE8_STRING): New macro.
21963
21964 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21965
219662008-02-01 Kenichi Handa <handa@m17n.org>
21967
21968 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21969 characters by octal form.
21970
21971 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21972
21973 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21974 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21975 _fetch_multibyte_char_len.
21976 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21977
21978 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21979
21980 * casefiddle.c (casify_object): Simplify. Handle the case that
21981 the case conversion change the byte length.
21982 (casify_region): Likewise.
21983
21984 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21985
21986 * character.c (_fetch_multibyte_char_len): Delete this variable.
21987 (syms_of_character): Setup Vprintable_chars.
21988
21989 * editfns.c (Fchar_equal): Fix for the unibyte case.
21990 (Finsert_byte): New function.
21991 (syms_of_editfns): Defsubr it.
21992
21993 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21994 of direct code 0x3ffff.
21995
21996 * search.c (Freplace_match): Fix for the unibyte case.
21997
219982008-02-01 Kenichi Handa <handa@m17n.org>
21999
22000 * lread.c (safe_to_load_p): Fix the logic.
22001
22002 * syntax.c (scan_words): Don't treat characters belonging to
22003 different scripts as constituting a word.
22004
22005 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22006
22007 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22008
22009 * emacs.c (main): In the case of --unibyte, instead of aborting on
22010 finding non-empty buffer, make it unibyte.
22011
220122008-02-01 Kenichi Handa <handa@m17n.org>
22013
22014 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22015 to create a fontset.
22016
220172008-02-01 Dave Love <fx@gnu.org>
22018
22019 * character.c (Funibyte_char_to_multibyte): Doc fix.
22020
22021 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22022
220232008-02-01 Kenichi Handa <handa@m17n.org>
22024
22025 * fontset.c (fontset_add): Make the type `int'.
22026 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22027
22028 * character.c (unibyte_char_to_multibyte)
22029 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22030 charset_unibyte, not charset_primary.
22031
22032 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22033
22034 * charset.c (charset_unibyte): Rename from charset_primary.
22035 (Funibyte_charset): Rename from Fprimary_charset.
22036 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22037 (syms_of_charset): Adjust for the above changes.
22038
22039 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22040 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22041 it->multibyte_p is zero.
22042
22043 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22044 Delete extern.
22045
220462008-02-01 Kenichi Handa <handa@m17n.org>
22047
22048 * coding.c (Fdefine_coding_system_internal): Fix category setting
22049 for a coding system of type iso-2022.
22050
220512008-02-01 Kenichi Handa <handa@m17n.org>
22052
22053 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22054
220552008-02-01 Kenichi Handa <handa@m17n.org>
22056
22057 * syntax.c (Vnext_word_boundary_function_table): New variable.
22058 (next-word-boundary-function-table): Declare it as a Lisp variable
22059 in syms_of_syntax.
22060 (scan_words): Call functions in Vnext_word_boundary_function_table
22061 if any.
22062
22063 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22064
22065 * fontset.c (fs_load_font): If fontp->charset is not negative,
22066 return fontp without setting its members.
22067
220682008-02-01 Dave Love <fx@gnu.org>
22069
22070 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22071
22072 * m/sparc.h (HAVE_ALLOCA): Delete.
22073
22074 * s/irix6-5.h: Don't include strings.h.
22075 (bcopy, bzero, bcmp): Don't undef.
22076
22077 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22078
22079 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22080 (TIOCSIGSEND): Don't test IRIX6.
22081 (bcopy, bzero, bcmp): Define conditionally.
22082
220832008-02-01 Kenichi Handa <handa@m17n.org>
22084
22085 * buffer.c (Qas, Qmake, Qto): New variables.
22086 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22087 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22088
22089 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22090 we are inserting a process output into a multibyte buffer.
22091
22092 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22093 multibyte_char_to_unibyte.
22094
22095 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22096 by the primary charset, make it eight-bit char.
22097 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22098
22099 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22100 (charset_8_bit__control, charset_8_bit_graphic)
22101 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22102 (define_charset_internal): New function.
22103 (syms_of_charset): Call define_charset_internal for pre-defined
22104 charsets.
22105
22106 * charset.h (charset_8_bit): Extern it.
22107
22108 * coding.c (make_conversion_work_buffer): Adjust for the change
22109 of Fset_buffer_multibyte.
22110 (encode_coding_raw_text): Increment p0 in the loop.
22111
22112 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22113
22114 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22115 for the change of Fset_buffer_multibyte.
22116
22117 * fns.c (Fstring_to_multibyte): New function.
22118 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22119
221202008-02-01 Dave Love <fx@gnu.org>
22121
22122 * xfns.c (x_put_x_image): Declare args.
22123
22124 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22125 (try_font_list): Declare an arg.
22126
22127 * xdisp.c (message2_nolog, set_message): Declare an arg.
22128
22129 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22130
22131 * syntax.c (scan_sexps_forward): Declare an arg.
22132
22133 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22134 Declare an arg.
22135
22136 * lisp.h (Fnew_fontset): Declare.
22137
22138 * keymap.c (push_key_description): Call CHARACTERP correctly.
22139
22140 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22141 (face_for_char): Delete unused vars.
22142 (Fset_fontset_font): Doc fix. Delete unused vars.
22143
22144 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22145
22146 * composite.c (update_compositions): Declare arg.
22147
22148 * cm.c (calccost, cmgoto): Declare args.
22149
22150 * charset.c: Remove `emacs' conditional. Doc fixes.
22151 (map_char_table_for_charset): Declare.
22152
22153 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22154
22155 * ccl.c: Remove `emacs' conditional.
22156
221572008-02-01 Kenichi Handa <handa@m17n.org>
22158
22159 The following changes are to allow specifying multiple font
22160 patterns for a character range (specified by script or charset).
22161
22162 * Makefile.in (abbrev.o): Depend on syntax.h.
22163 (xfaces.o): Depend on charset.h.
22164
22165 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22166 SINGLE_BYTE_CHAR_P.
22167
22168 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22169
22170 * character.h (Vchar_script_table): Extern it.
22171
22172 * character.c (Vscript_alist): Delete.
22173 (Vchar_script_table, Qchar_script_table): New variable.
22174 (syms_of_character): Declare Vchar_script_table as a lisp variable
22175 and initialize it.
22176
22177 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22178 have property char-table-extra-slots, make no extra slot.
22179
22180 * dispextern.h (struct face): Delete member `charset'.
22181 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22182 SINGLE_BYTE_CHAR_P.
22183 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22184 Add prototypes.
22185 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22186 (generate_ascii_font_name): Rename from generate_ascii_font.
22187
22188 * fontset.h (get_font_repertory_func): New prototype.
22189 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22190 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22191
22192 * fontset.c (Qprepend, Qappend): New variables.
22193 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22194 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22195 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22196 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22197 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22198 (load_font_get_repertory): New functions.
22199 (fontset_set): Delete.
22200 (fontset_face): New arg FACE. Return face ID, not face.
22201 Complete re-write to handle new fontset structure. Change caller.
22202 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22203 (face_for_char): Don't call lookup_face.
22204 (make_fontset_for_ascii_face): New arg FACE.
22205 (fs_load_font): New arg CHARSET_ID. Don't check
22206 Vfont_encoding_alist here.
22207 (find_font_encoding): New function.
22208 (list_fontsets): Use STRINGP, not ! NILP.
22209 (accumulate_script_ranges): New function.
22210 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22211 re-written to handle new fontset structure.
22212 (Ffontset_font): Return a copy of element.
22213 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22214 docstring of font-encoding-alist.
22215
22216 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22217 (Fset_fotset_font): Fix arguments to 5.
22218
22219 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22220
22221 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22222 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22223 (highlight_trailing_whitespace): Adjust for the change of
22224 lookup_named_face.
22225
22226 * xfaces.c: Include charset.h.
22227 (load_face_font): Delete argument C. Change caller.
22228 (generate_ascii_font_name): Rename from generate_ascii_font.
22229 (font_name_registry): New function.
22230 (cache_face): Store ascii faces before non-ascii faces in buckets.
22231 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22232 Lookup only ascii faces.
22233 (lookup_non_ascii_face): New function.
22234 (lookup_named_face): Delete argument C. Change caller.
22235 (lookup_derived_face): Delete argument C. Change caller.
22236 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22237 a string, just call font_list with it.
22238 (choose_face_font): Delete arguments FACE and C. New arg
22239 FONT_SPEC. Change caller.
22240 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22241 Change caller.
22242 (realize_non_ascii_face): New function.
22243 (realize_x_face): Call load_face_font here.
22244 (realize_tty_face): Delete argument C. Change caller.
22245 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22246 get a face ID.
22247 (dump_realized_face): Don't print charset of FACE.
22248
22249 * xfns.c (x_set_font): Always call x_new_fontset and
22250 store_frame_parameter.
22251 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22252 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22253
22254 * xterm.h (x_get_font_repertory): Extern it.
22255
22256 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22257 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22258 it->multibyte_p is zero.
22259 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22260 (x_new_fontset): If FONTSETNAME doesn't match any existing
22261 fontsets, create a new one.
22262 (x_get_font_repertory): New function.
22263
222642008-02-01 Kenichi Handa <handa@m17n.org>
22265
22266 * coding.c (Ffind_coding_systems_region_internal): Detect an
22267 ASCII only string correctly.
22268
22269 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22270 version is 0.
22271
222722008-02-01 Kenichi Handa <handa@m17n.org>
22273
22274 * lread.c: Include "coding.h".
22275 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22276 (load_each_byte, unread_char): New variables.
22277 (readchar_backlog): Delete.
22278 (readchar): Return a character unless load_each_byte is nonzero.
22279 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22280 cons. If unread_char is not -1, simply return it.
22281 (unreadchar): Handle the case that readcharfun is
22282 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22283 (read_multibyte): Delete.
22284 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22285 (read_emacs_mule_char): New functions.
22286 (Fload): Even if the file doesn't have the extension ".elc", if
22287 safe_to_load_p returns a positive version number, assume that the
22288 file contains bytecompiled code. If the version is less than 22,
22289 load the file while decoding multibyte sequences by emacs-mule.
22290 (readevalloop): Don't use readchar_backlog.
22291 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22292 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22293 (read_escape): Delete the arg BYTEREP.
22294 (read1): Set load_each_byte to 1 temporarily while handling
22295 #@NUMBER. Don't call read_multibyte.
22296 (read_vector): Call Fread with a cons. If readcharfun is
22297 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22298 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22299 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22300 and Qload_force_doc_strings.
22301
223022008-02-01 Kenichi Handa <handa@m17n.org>
22303
22304 * xdisp.c (face_before_or_after_it_pos): Call
22305 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22306
223072008-02-01 Kenichi Handa <handa@m17n.org>
22308
22309 * character.h (TRAILING_CODE_P): New macro.
22310 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22311 (string_char_with_unification): Fix prototype.
22312 (Vscript_alist): Extern it.
22313
22314 * character.c (Vscript_alist): New variable.
22315 (string_char_with_unification, str_as_unibyte)
22316 (string_escape_byte8): Add `const' to local variables.
22317 (syms_of_character): Declare script-alist as a Lisp variable.
22318
22319 * charset.h (Vcharset_ordered_list): Extern it.
22320 (charset_ordered_list_tick): Extern it.
22321 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22322 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22323 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22324 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22325 (Funify_charset): Adjust for the change of Funify_charset.
22326
22327 * charset.c (charset_ordered_list_tick): New variable.
22328 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22329 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 22330 deunify instead of unify a charset.
aac0c6e3
MR
22331 (string_xstring_p): Add `const' to local variables.
22332 (find_charsets_in_text): Add `const' to arguments and local variables.
22333 (encode_char): Adjust for the change of Funify_charset. Fix
22334 detecting of invalid code.
22335 (Fset_charset_priority): Increment charset_ordered_list_tick.
22336 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22337 and TO_CODE.
22338
22339 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22340 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22341 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22342 (decode_coding_ccl, consume_chars)
22343 (Ffind_coding_systems_region_internal)
22344 (Fcheck_coding_systems_region): Add `const' to local variables.
22345
22346 * print.c (print_object): Use octal form for printing the
22347 contents of a bool vector.
22348
223492008-02-01 Dave Love <fx@gnu.org>
22350
22351 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22352 <version == 20>: Refuse to load.
22353
223542008-02-01 Dave Love <fx@gnu.org>
22355
22356 * fns.c: Move coding.h.
22357 (Qcodeset, Qdays, Qmonths): New.
22358 (concat): Use CHARACTERP instead of INTEGERP.
22359 (Flocale_codeset): Delete.
22360 (Flanginfo): New function.
22361 (syms_of_fns): Change accordingly.
22362
22363 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22364
223652008-02-01 Dave Love <fx@gnu.org>
22366
22367 * casetab.c (init_casetab_once, init_casetab_once): Fix
22368 CHAR_TABLE_SET call.
22369
22370 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22371
22372 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22373
22374 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22375 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22376 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22377
22378 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22379
22380 * coding.c (ENCODE_DESIGNATION, decode_eol)
22381 (make_conversion_work_buffer, code_conversion_restore)
22382 (Fdefine_coding_system_internal): Convert Lisp types.
22383 (code_conversion_restore): Use EQ, not ==.
22384 (Fencode_coding_string): Fix code_convert_string call.
22385
22386 * coding.h (code_convert_region): Fix prototype.
22387
22388 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22389
22390 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22391 (Ffontset_info): Convert Lisp types.
22392
22393 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22394
22395 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22396
22397 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22398
22399 * chartab.c: Include "...h", not <...h> in some cases.
22400
22401 * callproc.c (Fcall_process): Remove unused variables.
22402
224032008-02-01 Dave Love <fx@gnu.org>
22404
22405 * coding.c (Fset_coding_system_priority): Allow null arg list.
22406
224072008-02-01 Dave Love <fx@gnu.org>
22408
22409 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22410 (Fself_insert_and_exit): Use CHARACTERP.
22411
22412 * callproc.c (Fcall_process): Remove unused vars.
22413
22414 * xterm.c (XTread_socket): Add extra dead keysyms.
22415
22416 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22417
22418 * dispextern.h: Remove prototypes for redraw_frame,
22419 redraw_garbaged_frames.
22420
22421 * cmds.c (Fself_insert_command): Use CHARACTERP.
22422
22423 * chartab.c (make_sub_char_table): Remove unused var.
22424 (Fset_char_table_default, Fmap_char_table): Doc fix.
22425
22426 * keymap.c (access_keymap): Remove generic char code.
22427 (push_key_description): Use CHARACTERP.
22428
224292008-02-01 Dave Love <fx@gnu.org>
22430
22431 * charset.c: Doc fixes.
22432 (Funify_charset): Extra checking.
22433
224342008-02-01 Dave Love <fx@gnu.org>
22435
22436 * lread.c: Remove some unused variables.
22437 (safe_to_load_p): If safe, return the magic number version byte.
22438 (Fload): Maybe use load-with-code-conversion.
22439
224402008-02-01 Kenichi Handa <handa@m17n.org>
22441
22442 * category.c (Fmodify_category_entry): Don't modify the contents
22443 of category_set for characters out of the range. Avoid
22444 unnecessary modification.
22445
22446 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22447 Vchar_unify_table. The default value of the table is now nil.
22448
22449 * character.c (syms_of_character): Setup Vchar_width_table for
22450 eight-bit-control and raw-byte chars.
22451
22452 * charset.h (enum define_charset_arg_index): Delete
22453 charset_arg_parents and add charset_arg_subset and
22454 charset_arg_superset.
22455 (enum charset_attr_index): Delete charset_parents and add
22456 charset_subset and charset_superset.
22457 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22458 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22459 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22460 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22461 (CHARSET_SUPERSET): New macros.
22462 (charset_work): Extern it.
22463 (ENCODE_CHAR): Use charset_work.
22464 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22465 (map_charset_chars): Extern it.
22466
22467 * charset.c (load_charset_map): Set the default value of encoder
22468 and deunifier char-tables to nil.
22469 (map_charset_chars): Change argument. Change callers. Use
22470 map_char_table_for_charset instead of map_char_table.
22471 (Fmap_charset_chars): New optional args from_code and to_code.
22472 (Fdefine_charset_internal): Adjust for the change of
22473 `define-charset' (:parents -> :subset or :superset).
22474 (charset_work): New variable.
22475 (encode_char, syms_of_charset): Adjust for the change of
22476 Fdefine_charset_internal.
22477 (Ffind_charset_string): Setup the vector `charsets' correctly.
22478
22479 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22480 the previous change.
22481 (char_table_ref_and_range): Adjust for the above change.
22482 (map_sub_char_table_for_charset): New function.
22483 (map_char_table_for_charset): New function.
22484
22485 * keymap.c (describe_vector): Handle a char-table directly here.
22486 (describe_char_table): Delete.
22487
22488 * lisp.h (map_charset_chars): Delete.
22489
224902008-02-01 Dave Love <fx@gnu.org>
22491
22492 * fns.c (count_combining): Comment out (unused).
22493 (Flocale_codeset): New.
22494 (syms_of_fns): Defsubr it.
22495
22496 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22497 (size_t): Remove.
22498
224992008-02-01 Dave Love <fx@gnu.org>
22500
22501 * Makefile.in (chartab.o): Depend on charset.h.
22502
225032008-02-01 Kenichi Handa <handa@m17n.org>
22504
22505 * character.c (syms_of_character): Set the default value of
22506 Vprintable_chars to Qnil.
22507
225082008-02-01 Dave Love <fx@gnu.org>
22509
22510 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22511
225122008-02-01 Kenichi Handa <handa@m17n.org>
22513
22514 * charset.c (load_charset_map): Handle the case that from < to
22515 correctly.
22516
22517 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22518 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22519 Pay attention to raw-8-bit chars.
22520
225212008-02-01 Kenichi Handa <handa@m17n.org>
22522
22523 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22524 It is not bytecompiled now.
22525
22526 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22527 (charset_jisx0208): New variables.
22528 (Fdefine_charset_internal): Setup them if appropriate.
22529 (init_charset_once): Initialize them to -1.
22530
22531 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22532 (charset_jisx0208): Extern them.
22533
22534 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22535 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22536 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22537 (setup_iso_safe_charsets): Fix arguments to Fassq.
22538 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22539 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22540 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22541 (encode_coding_iso_2022): Change the 1st arg to
22542 ENCODE_ISO_CHARACTER to a variable.
22543
225442008-02-01 Kenichi Handa <handa@m17n.org>
22545
22546 * charset.h (enum define_charset_arg_index): New enums
22547 charset_arg_min_code and charset_arg_max_code.
22548 (struct charset): New member char_index_offset.
22549
22550 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22551 Take charset->char_index_offset into account.
22552 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22553 args[charset_arg_max_code]. Setup charset.char_index_offset.
22554 (syms_of_charset): Fix args to Fdefine_charset_internal.
22555
225562008-02-01 Dave Love <fx@gnu.org>
22557
22558 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22559
225602008-02-01 Dave Love <fx@gnu.org>
22561
22562 * coding.c: Doc fixes.
22563 (Fcoding_system_aliases): Fix return value.
22564 (Qmac): Remove (duplicated) definition.
22565
225662008-02-01 Dave Love <fx@gnu.org>
22567
362654a6
JB
22568 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22569 New functions.
aac0c6e3
MR
22570
22571 * character.c (Fstring): Doc fix.
22572
22573 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22574
362654a6 22575 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
22576 (font-encoding-alist): Doc fix.
22577
225782008-02-01 Dave Love <fx@gnu.org>
22579
22580 * term.c (costs_set): Declare static, non-initialized for pcc.
22581 (encode_terminal_code): Remove unused var.
22582
22583 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22584 for K&R.
22585
22586 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22587
22588 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22589 (suffixes): Move out of make_subsidiaries for K&R.
22590
22591 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22592
22593 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22594
225952008-02-01 Dave Love <fx@gnu.org>
22596
22597 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22598
22599 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22600
226012008-02-01 Yong Lu <lyongu@asia-infonet.com>
22602
22603 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22604
22605 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22606
226072008-02-01 Kenichi Handa <handa@m17n.org>
22608
22609 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22610 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22611
226122008-02-01 Kenichi Handa <handa@m17n.org>
22613
22614 * coding.c (decode_coding_charset): Adjust for the change of
22615 Fdefine_coding_system_internal.
22616 (Fdefine_coding_system_internal): For a coding system of
22617 `charset' type, store a list of charset IDs in
22618 `charset_attr_charset_valids' element of coding attributes.
22619
226202008-02-01 Kenichi Handa <handa@m17n.org>
22621
22622 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22623 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22624 caller. Handle 2-byte and 3-byte charsets correctly.
22625 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22626 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22627 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22628 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22629 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22630 sequence.
22631 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22632 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22633 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22634 and alt&rule composition.
22635 (decode_coding_iso_2022): Handle composition correctly.
22636 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22637
22638 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22639 re-defining a charset. If the charset has :emacs-mule-id, setup
22640 emacs_mule_bytes.
22641 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22642
226432008-02-01 Kenichi Handa <handa@m17n.org>
22644
22645 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22646 (encode_coding_big5, encode_coding_charset): If coding requires safe
22647 encoding, produce a character specified by
22648 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22649
226502008-02-01 Dave Love <fx@gnu.org>
22651
22652 * xterm.c (XSetIMValues): Declare.
22653
22654 * process.c: Conditionally include sys/wait.h, pty.h.
22655
22656 * print.c (print_object): Fix print format for 64-bit systems.
22657
22658 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22659
22660 * buffer.c (emacs_strerror): Declare.
22661
22662 * fontset.c (Fclear_face_cache): Declare.
22663 (accumulate_font_info): Comment-out (unused).
22664 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22665 variables.
22666
22667 * character.h (string_escape_byte8): Declare.
22668
22669 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22670 unused vars.
22671 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22672 (Fmap_charset_chars): Doc fix.
22673
22674 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22675 (Fset_coding_system_priority, Fset_coding_system_priority)
22676 (Fdefine_coding_system_internal): Doc fix.
22677
226782008-02-01 Dave Love <fx@gnu.org>
22679
22680 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22681
226822008-02-01 Kenichi Handa <handa@m17n.org>
22683
22684 * character.c (string_escape_byte8): Make multibyte string with
22685 correct size.
22686
22687 * charset.c (Fmake_char): Delete unnecessary code.
22688
226892008-02-01 Kenichi Handa <handa@m17n.org>
22690
22691 * xfns.c (x_encode_text): Allocate coding.destination here, and
22692 call encode_coding_object with dst_object Qnil.
22693
22694 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22695 multibyte form correctly.
22696
22697 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22698 against Vfont_encoding_alist.
22699
22700 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22701 handling of charset list.
22702 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22703 (decode_coding_object): Move point to coding->dst_pos before
22704 calling post-read-conversion function.
22705 (encode_coding_object): Give correct arguments to
22706 pre-write-conversion. Ignore the return value of
22707 pre-write-conversion function. Pay attention to the case that
22708 pre-write-conversion changes the current buffer. If dst_object is
22709 Qt, even if coding->src_bytes is zero, allocate at least one byte
22710 to coding->destination.
22711
22712 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22713
22714 * charset.c (Fmake_char): Make it more backward compatible.
22715 (Fmap_charset_chars): Fix docstring.
22716
227172008-02-01 Dave Love <fx@gnu.org>
22718
22719 * coding.c: Doc fixes.
22720 (Fdefine_coding_system_alias): Use names, not symbols, in
22721 coding-system-alist.
22722
227232008-02-01 Kenichi Handa <handa@m17n.org>
22724
22725 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22726 of calling free_realized_face.
22727
227282008-02-01 Yong Lu <lyongu@asia-infonet.com>
22729
22730 * charset.c (read_hex): Don't treat SPC as a comment starter.
22731 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22732 (Fdecode_char): Fix typo.
22733
227342008-02-01 Kenichi Handa <handa@m17n.org>
22735
22736 * charset.h (struct charset): New member `code_space_mask'.
22737
22738 * coding.c (coding_set_source): Delete the local variable beg_byte.
22739 (encode_coding_charset, Fdefine_coding_system_internal):
22740 Delete the local variable charset.
22741 (Fdefine_coding_system_internal): Setup
22742 attrs[coding_attr_charset_valids] correctly.
22743
22744 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22745 member to check if CODE is valid or not.
22746 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22747 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22748 is within the range of charset->min_code and carset->max_code.
22749
227502008-02-01 Dave Love <fx@gnu.org>
22751
22752 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22753
22754 * dispextern.h (generate_ascii_font): Fix return type.
22755
22756 * xfaces.c (generate_ascii_font): Fix arg declaration.
22757
22758 * coding.c (coding_inherit_eol_type)
22759 (Fset_terminal_coding_system_internal)
22760 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22761
227622008-02-01 Kenichi Handa <handa@m17n.org>
22763
22764 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22765 multiple charsets correctly.
22766
227672008-02-01 Kenichi Handa <handa@m17n.org>
22768
22769 * search.c (boyer_moore): Fix handling of multibyte character
22770 translation.
22771
22772 * xdisp.c (display_mode_element): When the variable `elt' is
22773 changed, update `this' and `lisp_string'.
22774
227752008-02-01 Kenichi Handa <handa@m17n.org>
22776
22777 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22778
22779 * callproc.c (Fcall_process): Be sure to give the current buffer
22780 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22781
22782 * charset.c (struct charset_map_entries): New struct.
22783 (load_charset_map): Rename from parse_charset_map. New args
22784 entries and n_entries. Change caller.
22785 (load_charset_map_from_file): Rename from load_charset_map.
22786 Change caller. New arg control_flag. Call load_charset_map at
22787 the tail.
22788 (load_charset_map_from_vector): New function.
22789 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22790 (encode_char): If the charset is compact, change a character index
22791 to a code point.
22792
22793 * coding.c (coding_alloc_by_making_gap): Check the case that the
22794 source and destination are the same correctly.
22795 (decode_coding_raw_text): Set coding->consumed_char and
22796 coding->consumed to 0.
22797 (produce_chars): If coding->chars_at_source is nonzero, update
22798 coding->consumed_char and coding->consumed before calling
22799 alloc_destination.
22800 (Fdefine_coding_system_alias): Register ALIAS in
22801 Vcoding_system_alist.
22802 (syms_of_coding): Define `no-conversion' coding system at the tail.
22803
22804 * fileio.c (Finsert_file_contents): Set coding_system instead of
22805 val. If the current buffer is multibyte, always call
22806 decode_coding_gap.
22807
22808 * xfaces.c (try_font_list): Give higher priority to fontset's
22809 family than face's family.
22810
228112008-02-01 Kenichi Handa <handa@m17n.org>
22812
22813 * callproc.c (Fcall_process): Be sure to give the current buffer
22814 to decode_coding_c_string.
22815
22816 * xfaces.c (try_font_list): Give a family specified in a fontset
22817 higher priority than a family specified in a face.
22818
228192008-02-01 Kenichi Handa <handa@m17n.org>
22820
22821 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22822 Fix arguments to insert_from_buffer.
22823
22824 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22825
228262008-02-01 Kenichi Handa <handa@m17n.org>
22827
22828 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22829 (decode_coding_gap): Set coding->dst_multibyte correctly.
22830
228312008-02-01 Kenichi Handa <handa@m17n.org>
22832
22833 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22834 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22835 (encode_coding_utf_16): Substitute coding->default_char for
22836 non-Unicode characters.
22837 (decode_coding): Don't call record_insert here.
22838 (setup_coding_system): Initialize `surrogate' of
22839 coding->spec.utf_16 to 0.
22840 (EMIT_ONE_BYTE): Fix for multibyte case.
22841
22842 * insdel.c (insert_from_gap): Call record_insert.
22843
228442008-02-01 Kenichi Handa <handa@m17n.org>
22845
22846 * casefiddle.c (casify_region): Fix multibyte case.
22847
22848 * character.c (c_string_width): Add return type `int'.
22849 (char_string_with_unification): Delete arg ADVANCED.
22850
22851 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22852 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22853 (CHAR_STRING_ADVANCE): Make it do-while statement.
22854
22855 * chartab.c (sub_char_table_set_range): Optimize for the case
22856 DEPTH == 3. Add workaround code for a GCC optimization bug.
22857
22858 * charset.c (parse_charset_map): Remove an unused variable.
22859
22860 * coding.c: Delete unused variables.
22861
22862 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22863 earlier. If inserted is zero and the coding system doesn't
22864 require flushing, don't call decode_coding_gap.
22865
22866 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22867
228682008-02-01 Kenichi Handa <handa@m17n.org>
22869
22870 The following changes are for using Unicode as an internal
22871 character model, and use UTF-8 format for buffer/string
22872 representation.
22873
22874 * .gdbinit (xchartable): Adjust for the change of char table structure.
22875 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22876
22877 * Makefile.in (obj): Add character.o and chartab.o.
22878 (lisp, shortlisp): Remove utf-8.elc.
22879 (*.o): For many files, change dependency on charset.h to
22880 character.h, and add dependency on character.h.
22881 (character.o, chartab.o): New targets.
22882
22883 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22884 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22885 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22886 of "charset.h".
22887
22888 * dired.c, filelock.c: Include "character.h".
22889
22890 * alloc.c: Include "character.h" instead of "charset.h".
22891 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22892 (syms_of_alloc): Remove defsubr for Smake_char_table.
22893
22894 * buffer.c: Include "character.h" instead of "charset.h", don't
22895 include "coding.h".
22896 (Fset_buffer_multibyte): Adjust for UTF-8.
22897
22898 * buffer.h: EXFUN Fbuffer_live_p.
22899
22900 * callproc.c: Include "character.h" instead of "charset.h".
22901 (Fcall_process): Big change for the new code-conversion APIs.
22902
22903 * casetab.c: Include "character.h" instead of "charset.h".
22904 (set_canon, set_identity, shuffle): Adjust for the new
22905 map_char_table spec.
22906 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22907 accessing the char table structure.
22908
22909 * chartab.c: New file that implements char table.
22910
22911 * category.c: Include "character.h".
22912 (copy_category_entry): New function.
22913 (copy_category_table): Call map_char_table and copy_category_entry.
22914 (Fmake_category_table): Initialize all top-level slots.
22915 (char_category_set): New function.
22916 (modify_lower_category_set): Delete.
22917 (Fmodify_category_entry): Call char_table_ref_and_range.
22918
22919 * category.h (CATEGORY_SET): Just call char_category_set.
22920
22921 * ccl.c: Include "character.h".
22922 (Qccl, Qcclp): New variables.
22923 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22924 it's less than 256.
22925 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22926 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22927 and DST type.
22928 (ccl_driver): Change types of argument, adjust code accordingly.
22929 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22930 ccl_driver.
22931 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22932
22933 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22934 New members src_multibyte, dst_multibyte, consumed, and produced.
22935 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22936 (CODING_SPEC_CCL_PROGRAM): New macro.
22937 (ccl_driver): Update prototype.
22938 (Qccl, Qcclp, Fccl_program_p): Extern them.
22939 (CHECK_CCL_PROGRAM): New macro.
22940
22941 * character.c, character.h, chartab.c: New files.
22942
22943 * charset.c: Mostly re-written. Move character and multibyte sequence
22944 handling codes to character.c.
22945
22946 * charset.h: Mostly re-written. Move character and multibyte sequence
22947 handling codes to character.h.
22948
22949 * coding.c, coding.h: Mostly re-written.
22950
22951 * composite.c: Include "character.h" instead of "charset.h".
22952 (CHAR_WIDTH): Move to character.h.
22953 (HASH_KEY, HASH_VALUE): Delete.
22954
22955 * composite.h (enum composition_method): Change order of enumeration
22956 symbols.
22957
22958 * data.c: Include "character.h" instead of "charset.h".
22959 (Faref): Call CHAR_TABLE_REF for a char table.
22960 (Faset): Call CHAR_TABLE_SET for a char table.
22961
22962 * dispextern.h (free_realized_face, check_face_attribytes)
22963 (generate_ascii_font): Extern them.
22964 (free_realized_multibyte_face): Delete extern.
22965
22966 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22967 table structure.
22968
22969 * editfns.c: Include "character.h" instead of "charset.h".
22970 (Fchar_to_string): Always call CHAR_STRING.
22971
22972 * emacs.c (main): Call init_charset_once, init_charset,
22973 syms_of_chartab, and syms_of_character.
22974
22975 * fileio.c: Include "character.h" instead of "charset.h".
22976 (Finsert_file_contents): Big change for the new code-conversion API.
22977 (choose_write_coding_system, Fwrite_region): Likewise.
22978 (build_annotations_2): Delete.
22979 (e_write): Big change for the new code-conversion API.
22980
22981 * fns.c: Include "character.h" instead of "charset.h".
22982 (copy_sub_char_table): Move to chartab.c.
22983 (Fcopy_sequence): Call copy_char_table for a char table.
22984 (concat): Delete codes calling count_multibyte.
22985 (string_char_to_byte, string_byte_to_char): Adjust for the new
22986 multibyte form.
22987 (internal_equal): Adjust for the change of char table structure.
22988 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22989 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22990 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22991 (char_table_translate, optimize_sub_char_table)
22992 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22993 chartab.c.
22994 (char_table_ref_and_index): Delete.
22995 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22996 (Fmd5): Call preferred_coding_system instead of accessing
22997 Vcoding_category_list. Adjust for the new code-conversion API.
22998 (syms_of_fns): Move defsubr for char table related functions to
22999 chartab.c.
23000
23001 * fontset.c: Mostly re-written.
23002
23003 * fontset.h (struct font_info): Change type of the member encoding_type.
23004 (enum FONT_SPEC_INDEX): New enum.
23005 (fontset_font_pattern, fs_load_font): Update prototype.
23006 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23007
23008 * indent.c: Include "character.h" instead of "charset.h".
23009 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23010
23011 * insdel.c: Include "character.h" instead of "charset.h".
23012 (copy_text): Don't refer to Vnonascii_translation_table.
23013 (insert_from_gap): New function.
23014
23015 * keyboard.c: Include "character.h" instead of "charset.h".
23016 (command_loop_1): Never call direct_output_forward_char before
23017 a non-ASCII character.
23018 (read_char): If Vkeyboard_translate_table is a char table, always
23019 translate a character.
23020
23021 * keymap.c: Include "character.h".
23022 (store_in_keymap): Handle the case that IDX is a cons.
23023 (Fdefine_key): Handle the case that KEY is a cons and the car part
23024 is also a cons (range).
23025 (push_key_description): Adjust for the new character code.
23026 (describe_vector): Call describe_char_table for a char table.
23027 (describe_char_table): New function.
23028
23029 * keymap.h (describe_char_table): Extern it.
23030
23031 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23032 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23033 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23034 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23035 Delete.
23036 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23037 structure.
23038 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23039 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23040 (CHARTAB_SIZE_BITS_3): New macros.
23041 (chartab_size): Extern it.
23042 (struct Lisp_Char_Table): Re-design.
23043 (struct Lisp_Sub_Char_Table): New structure.
23044 (HASH_KEY, HASH_VALUE): Move from fns.c.
23045 (CHARACTERBITS): Define as 22.
23046 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23047 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23048 (GC_SUB_CHAR_TABLE_P): New macro.
23049 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23050 (code_convert_string_norecord): Deleted extern.
23051 (init_character_once, syms_of_character, init_charset)
23052 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23053
23054 * lread.c: Include "character.h".
23055 (read_multibyte): New arg NBYTES.
23056 (read_escape): Change the meaning of returned *BYTEREP.
23057 (to_multibyte): Delete.
23058 (read1): Adjust the handling of char table and string.
23059
23060 * print.c: Include "character.h" instead of "charset.h".
23061 (print_string): Convert 8-bit raw bytes to octal form by
23062 string_escape_byte8.
23063 (print_object): Adjust for the new multibyte form. Print 8-bit
23064 raw bytes always in octal form. Handle sub char table correctly.
23065
23066 * process.c: Include "character.h" instead of "charset.h".
23067 (read_process_output, send_process): Adjust for the new
23068 code-conversion API.
23069
23070 * puresize.h (BASE_PURESIZE): Increase.
23071
23072 * regex.c: Include "character.h" instead of "charset.h".
23073 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23074 (regex_compile): Accept a range whose starting and ending
23075 character have different leading bytes.
23076 (analyse_first): Adjust for the above change.
23077
23078 * search.c: Include "character.h" instead of "charset.h".
23079 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23080 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23081
23082 * syntax.c: Include "character.h" instead of "charset.h".
23083 (syntax_parent_lookup): Delete.
23084 (Fmodify_syntax_entry): Accept a cons as CHAR.
23085 (skip_chars): Adjust for the new multibyte form.
23086 (init_syntax_once): Call char_table_set_range instead of directly
23087 accessing the structure of a char table.
23088
23089 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23090 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23091 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23092 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23093
23094 * term.c: Include "buffer.h" and "character.h".
23095 (encode_terminal_code, write_glyphs): Adjust for the new
23096 code-conversion API.
23097 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23098
23099 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23100
23101 * xdisp.c: Include "character.h".
23102 (get_next_display_element): Adjust for the new multibyte form.
23103 (disp_char_vector): Adjust for the new char table structure.
23104 (decode_mode_spec_coding): Adjust for the new structure of
23105 coding system.
23106 (decode_mode_spec): Adjust for the new code-conversion API.
23107
23108 * xfaces.c: Include "character.h" instead of "charset.h".
23109 (load_face_font): Adjust for the change of choose_face_font and
23110 FS_LOAD_FONT.
23111 (generate_ascii_font): New function.
23112 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23113 (set_font_frame_param): Adjust for the change of choose_face_font.
23114 (free_realized_face): Make it public.
23115 (free_realized_faces_for_fontset): Rename from
23116 free_realized_multibyte_face. Free also faces realized for ASCII.
23117 (choose_face_font): Change arguments. Adjust for the change of
23118 fontset_font_pattern and FS_LOAD_FONT.
23119
23120 * xfns.c: Include "character.h".
23121 (x_encode_text): Adjust for the new code-conversion API.
23122
23123 * xselect.c: Don't include "charset.h".
23124 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23125
23126 * xterm.c: Include "character.h".
23127 (x_encode_char): New argument CHARSET. Change caller.
23128 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23129 Call ENCODE_CHAR instead of SPLIT_CHAR.
23130 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23131 CHAR_WIDTH instead of CHARSET_WIDTH.
23132 (XTread_socket): Adjust for the new code-conversion API.
23133 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23134 (x_load_font): Adjust for the change of struct font.
23135
231362008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23137
23138 * xfaces.c (face_at_buffer_position): Remove unused vars.
23139
231402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23141
23142 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23143 Fix overflow checking.
23144
231452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23146
23147 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23148 Cancel previous change.
23149
231502008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23151
23152 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23153 ccl->eight_bit_control. Fix check for buffer overflow.
23154 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23155 (ccl_driver): Initialize extra_bytes to 0.
23156
231572008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23158
23159 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23160 return it ORed with ctrl_modifier.
23161
231622008-01-29 Miles Bader <miles@gnu.org>
23163
23164 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23165
231662008-01-28 Jason Rumney <jasonr@gnu.org>
23167
23168 * w32.c (stat): Don't double check for networked drive.
23169
231702008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23171
23172 * window.c (run_window_configuration_change_hook): New function.
23173 Code extracted from set_window_buffer. Set the selected frame.
23174 (set_window_buffer): Use it.
23175 * window.h (run_window_configuration_change_hook): Declare.
23176 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23177
23178 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23179
231802008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23181
23182 * Makefile.in: Remove references to unused macros.
23183
231842008-01-26 Eli Zaretskii <eliz@gnu.org>
23185
23186 * w32.c (g_b_init_get_sid_sub_authority)
23187 (g_b_init_get_sid_sub_authority_count): New static variables.
23188 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23189 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23190 (init_user_info): Use them to retrieve uid and gid.
23191 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23192 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23193 st_uid and st_gid of the file.
23194
231952008-01-26 Jason Rumney <jasonr@gnu.org>
23196
23197 * w32.c (logon_network_drive): New function.
23198 (stat): Use it.
23199
232002008-01-26 Chong Yidong <cyd@stupidchicken.com>
23201
23202 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23203 invisible text covered with an ellipsis.
23204
232052008-01-25 Richard Stallman <rms@gnu.org>
23206
23207 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23208 jump back to beginning. Move some other initializations after that.
23209 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23210 New variables.
23211 (syms_of_xdisp): Init them.
23212
23213 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23214
23215 * buffer.c (reset_buffer_local_variables):
23216 Implement `permanent-local-hook'.
23217 (Qpermanent_local_hook): New variable.
23218 (syms_of_buffer): Init and staticpro it.
23219
232202008-01-25 Michael Albinus <michael.albinus@gmx.de>
23221
23222 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23223
232242008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23225
23226 * fns.c (Fclrhash): Return TABLE.
23227
232282008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23229
23230 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23231 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23232 is set even without positional changes.
23233 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23234
23235 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23236
232372008-01-23 Jason Rumney <jasonr@gnu.org>
23238
23239 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23240
23241 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23242 the unicode range available in MULE by locale-coding-system.
23243 Improve dbcs lead byte detection. Set event timestamp and modifiers
23244 earlier.
23245
232462008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23247
23248 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23249 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23250 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23251 when used on child processes.
23252
232532008-01-21 Michael Albinus <michael.albinus@gmx.de>
23254
23255 * dbusbind.c (Fdbus_method_return_internal): Rename from
23256 Fdbus_method_return.
23257 (Fdbus_unregister_object): Move to dbus.el.
23258 (Fdbus_call_method, Fdbus_method_return_internal)
23259 (Fdbus_send_signal): Improve debug messages.
23260
232612008-01-20 Martin Rudalics <rudalics@gmx.at>
23262
23263 * undo.c (undo_inhibit_record_point): New variable.
23264 (syms_of_undo): Initialize it.
23265 (record_point): Don't record point when undo_inhibit_record_point
23266 is set.
23267
232682008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23269
23270 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23271
23272 * xdisp.c (Qauto_hscroll_mode): New var.
23273 (syms_of_xdisp): Initialize it.
23274 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23275 window's buffer.
23276 (hscroll_windows): Don't check automatic_hscrolling_p here.
23277
23278 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23279 vscroll if we're setting window-buffer to the value it already has.
23280
232812008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23282
23283 * m/intel386.h: Remove references to XENIX.
23284
232852008-01-17 Andreas Schwab <schwab@suse.de>
23286
23287 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23288 instead of HAVE_X86_64_LIB64_DIR.
23289 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23290
232912008-01-17 Glenn Morris <rgm@gnu.org>
23292
23293 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23294 to HAVE_X86_64_LIB64_DIR.
23295
232962008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23297
23298 * s/irix3-3.h:
23299 * s/irix4-0.h:
23300 * s/386-ix.h:
23301 * s/domain.h:
23302 * s/hpux9-x11r4.h:
23303 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23304
23305 * sysdep.c: Remove code containing references to symbols defined
23306 by unsupported systems.
23307
233082008-01-16 Glenn Morris <rgm@gnu.org>
23309
23310 * coding.c (select-safe-coding-system-function): Doc fix.
23311
233122008-01-15 Glenn Morris <rgm@gnu.org>
23313
23314 * config.in: Revert 2008-01-13 change: this is a generated file.
23315
233162008-01-13 Tom Tromey <tromey@redhat.com>
23317
23318 * lisp.h: Fix typo.
23319
233202008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23321
23322 * m/sequent-ptx.h:
23323 * m/sequent.h:
23324 * s/ptx.h:
23325 * s/ptx4-2.h:
23326 * s/ptx4.h: Remove files for systems no longer supported.
23327
23328 * callproc.c (Fcall_process): Fix previous change.
23329
233302008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23331
23332 * unexsunos4.c: Remove file, system not supported anymore.
23333
23334 * m/mips.h:
23335 * m/intel386.h:
23336 * callproc.c:
23337 * config.in:
23338 * ecrt0.c:
23339 * emacs.c:
23340 * fileio.c:
23341 * frame.c:
23342 * getpagesize.h:
23343 * keyboard.c:
23344 * lread.c:
23345 * process.c:
23346 * puresize.h:
23347 * sysdep.c:
23348 * systty.h:
23349 * syswait.h:
23350 * unexec.c:
23351 * xdisp.c:
23352 * alloc.c: Remove code containing references to symbols defined by
23353 unsupported systems.
23354
233552008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23356
23357 * coding.c (detect_coding_mask): Fix previous change.
23358
233592008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23360
23361 * coding.c (detect_coding_iso2022): New arg
23362 latin_extra_code_state. Allow Latin extra codes only
23363 when *latin_extra_code_state is nonzero.
23364 (detect_coding_mask): If there is a NULL byte, detect the encoding
23365 as UTF-16 or binary. If Latin extra codes exist, detect the
23366 encoding as ISO-2022 only when there's no other proper encoding is
23367 found.
23368
233692008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23370
23371 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23372 #ifdef MAC_OS.
23373
233742008-01-08 Richard Stallman <rms@gnu.org>
23375
23376 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23377
233782008-01-06 Nick Roberts <nickrob@snap.net.nz>
23379
23380 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23381 menu bar in parentheses.
23382
233832008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23384
23385 * m/7300.h:
23386 * m/acorn.h:
23387 * m/alliant-2800.h:
23388 * m/alliant.h:
23389 * m/alliant1.h:
23390 * m/alliant4.h:
23391 * m/altos.h:
23392 * m/amdahl.h:
23393 * m/apollo.h:
23394 * m/att3b.h:
23395 * m/aviion-intel.h:
23396 * m/aviion.h:
23397 * m/celerity.h:
23398 * m/clipper.h:
23399 * m/cnvrgnt.h:
23400 * m/convex.h:
23401 * m/cydra5.h:
23402 * m/delta88k.h:
23403 * m/dpx2.h:
23404 * m/dual.h:
23405 * m/elxsi.h:
23406 * m/f301.h:
23407 * m/gould-np1.h:
23408 * m/gould.h:
23409 * m/i860.h:
23410 * m/ibmps2-aix.h:
23411 * m/ibmrt-aix.h:
23412 * m/ibmrt.h:
23413 * m/irist.h:
23414 * m/is386.h:
23415 * m/isi-ov.h:
23416 * m/mega68.h:
23417 * m/mg1.h:
23418 * m/news-r6.h:
23419 * m/news-risc.h:
23420 * m/news.h:
23421 * m/nh3000.h:
23422 * m/nh4000.h:
23423 * m/ns16000.h:
23424 * m/ns32000.h:
23425 * m/nu.h:
23426 * m/orion.h:
23427 * m/orion105.h:
23428 * m/paragon.h:
23429 * m/pfa50.h:
23430 * m/plexus.h:
23431 * m/pyramid.h:
23432 * m/pyrmips.h:
23433 * m/sh3el.h:
23434 * m/sps7.h:
23435 * m/sr2k.h:
23436 * m/stride.h:
23437 * m/sun1.h:
23438 * m/sun2.h:
23439 * m/sun3-68881.h:
23440 * m/sun3-fpa.h:
23441 * m/sun3-soft.h:
23442 * m/sun3.h:
23443 * m/sun386.h:
23444 * m/symmetry.h:
23445 * m/tad68k.h:
23446 * m/tahoe.h:
23447 * m/targon31.h:
23448 * m/tek4300.h:
23449 * m/tekxd88.h:
23450 * m/tower32.h:
23451 * m/tower32v3.h:
23452 * m/ustation.h:
23453 * m/wicat.h:
23454 * m/xps100.h:
23455 * s/cxux.h:
23456 * s/cxux7.h:
23457 * s/dgux.h:
23458 * s/dgux4.h:
23459 * s/dgux5-4-3.h:
23460 * s/dgux5-4r2.h:
23461 * s/esix.h:
23462 * s/esix5r4.h:
23463 * s/hiuxmpp.h:
23464 * s/hiuxwe2.h:
23465 * s/iris3-5.h:
23466 * s/iris3-6.h:
23467 * s/isc2-2.h:
23468 * s/isc3-0.h:
23469 * s/isc4-0.h:
23470 * s/isc4-1.h:
23471 * s/newsos5.h:
23472 * s/newsos6.h:
23473 * s/osf1.h:
23474 * s/osf5-0.h:
23475 * s/riscix1-1.h:
23476 * s/riscix12.h:
23477 * s/sco4.h:
23478 * s/sco5.h:
23479 * s/sunos4-0.h:
23480 * s/sunos4-1.h:
23481 * s/sunos413.h:
23482 * s/sunos4shr.h:
23483 * s/umax.h:
23484 * s/unipl5-2.h:
23485 * s/xenix.h:
23486 * cxux-crt0.s:
23487 * unexapollo.c:
23488 * unexconvex.c:
23489 * unexenix.c:
23490 * unexsni.c: Remove files for systems no longer supported.
23491
23492 * m/intel386.h: Remove references to unsupported systems.
23493
23494 * w32.c (get_emacs_configuration): Remove reference to i860.
23495
23496 * sysdep.c: Remove dead code.
23497
234982008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23499
23500 * s/rtu.h:
23501 * m/masscomp.h: Remove files. Platform is obsolete.
23502
235032008-01-04 Michael Albinus <michael.albinus@gmx.de>
23504
23505 * dbusbind.c (Fdbus_method_return): New function.
23506 (xd_read_message): Add the serial number to the event.
23507 (Fdbus_register_method): Activate the function.
23508
235092008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23510
23511 * keyboard.c (read_key_sequence): Fix typo.
23512
235132008-01-03 Michael Albinus <michael.albinus@gmx.de>
23514
23515 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23516 (xd_signature, xd_append_arg): Handle element type detection for
23517 empty arrays.
23518 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23519 SDATA () calls; this must be solved more general.
23520 (Fdbus_register_signal): Use SBYTES instead of strlen.
23521
235222008-01-03 Magnus Henoch <magnus@zemdatav>
23523
23524 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23525 unsigned int for byte values (necessary for big-endian platform).
23526 (Fdbus_call_method): Handle the case of no returned arguments.
23527
235282007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23529
23530 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23531
235322007-12-31 Magnus Henoch <mange@freemail.hu>
23533
23534 * dbusbind.c (xd_signature): Signature of variant is just "v".
23535
235362007-12-30 Michael Albinus <michael.albinus@gmx.de>
23537
23538 * dbusbind.c: Fix several errors and compiler warnings.
23539 Reported by Tom Tromey <tromey@redhat.com>.
23540 (XD_ERROR, XD_DEBUG_MESSAGE)
23541 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23542 (xd_append_arg): Part for basic D-Bus types rewritten.
23543 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23544 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23545 appropriate.
23546 (xd_read_message): Return Qnil. Don't signal an error; it is not
23547 useful during event reading.
23548 (Fdbus_register_signal): Signal an error if the check for
23549 FUNCTIONP fails.
23550 (Fdbus_register_method): New function. The implementation is not
23551 complete, the call of the function signals an error therefore.
23552 (Fdbus_unregister_object): New function, renamed from
23553 Fdbus_unregister_signal. The initial check signals an error, if
23554 the object is not well formed.
23555
235562007-12-30 Richard Stallman <rms@gnu.org>
23557
23558 * textprop.c (get_char_property_and_overlay):
23559 Signal error if POSITION is out of range in a buffer.
23560
235612007-12-29 Martin Rudalics <rudalics@gmx.at>
23562
23563 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23564 because the original parameters are in pure storage now.
23565
235662007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23567
23568 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23569
235702007-12-22 Eli Zaretskii <eliz@gnu.org>
23571
23572 * callint.c (syms_of_callint) <command-history>: Add reference to
23573 history-length in the doc string.
23574
235752007-12-17 Jason Rumney <jasonr@gnu.org>
23576
23577 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23578 before passing as wParam.
23579
235802007-12-22 Michael Albinus <michael.albinus@gmx.de>
23581
23582 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23583 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23584 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23585 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23586 as number.
23587 (Fdbus_call_method): Fix docstring.
23588
235892007-12-21 Michael Albinus <michael.albinus@gmx.de>
23590
23591 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23592 New macros.
23593 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23594 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23595 Simplify.
23596 (xd_signature): New function.
23597 (xd_append_arg): Compute also signatures. Major rewrite.
23598 (xd_retrieve_arg): Make debug messages friendly.
23599 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23600 Check for signatures of arguments.
23601
236022007-12-19 Michael Albinus <michael.albinus@gmx.de>
23603
23604 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23605 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23606 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23607 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23608 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23609 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23610 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23611 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23612 (xd_retrieve_value): Remove. Functionality included in ...
23613 (xd_append_arg): New function.
23614 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23615
236162007-12-16 Michael Albinus <michael.albinus@gmx.de>
23617
23618 * dbusbind.c (top): Include <stdio.h>.
23619 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23620 dbus_message_new_method_call and dbus_message_new_signal.
23621 (Fdbus_register_signal): Rename unique_name to uname.
23622 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23623 non-existing unique name. Fix typos in matching rule. Return an
23624 object which is useful in Fdbus_unregister_signal.
23625 (Fdbus_unregister_signal): Reimplementation, in order to remove
23626 only the corresponding entry.
23627 (Vdbus_registered_functions_table): Change the order of entries.
23628 Apply these changes in xd_read_message and Fdbus_register_signal.
23629
236302007-12-16 Andreas Schwab <schwab@suse.de>
23631
23632 * fileio.c (Finsert_file_contents): Fix overflow check to not
23633 depend on undefined integer overflow.
23634
236352007-12-14 Jason Rumney <jasonr@gnu.org>
23636
23637 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23638 for characters above 127.
23639
236402007-12-13 Jason Rumney <jasonr@gnu.org>
23641
23642 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23643 before dereferencing array.
23644 (lookup_vk_code): Remove zero comparison.
23645
236462007-12-14 Michael Albinus <michael.albinus@gmx.de>
23647
23648 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23649 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23650 Use `unsigned int' instead of `uint'.
23651 (xd_read_message, Fdbus_register_signal): Split expressions into
23652 multiple lines before operators "&&" and "||", according to the
23653 GNU Coding Standards.
23654
236552007-12-14 Eli Zaretskii <eliz@gnu.org>
23656
23657 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23658
236592007-12-12 Juri Linkov <juri@jurta.org>
23660
23661 * buffer.c (Frename_buffer): In interactive spec replace
23662 `read-buffer' with `read-string' that uses `buffer-name-history'
23663 as history, and the current buffer's name as default.
23664
236652007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23666
23667 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23668 manipulating the backtrace manually.
23669 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23670 (struct backtrace, backtrace_list): Remove.
23671 (command_loop_1): Remove dead var `no_direct'.
23672
23673 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23674 preserve non-built-in buffer-local variables.
23675 (Fkill_all_local_variables): Don't re-create&re-set permanent
23676 buffer-local variables.
23677
236782007-12-09 Juri Linkov <juri@jurta.org>
23679
23680 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23681 Lisp code that uses `read-buffer' with current buffer as default.
23682
236832007-12-08 Michael Albinus <michael.albinus@gmx.de>
23684
23685 * dbusbind.c (xd_read_message): Generate an event for every
23686 registered handler. There might be several handlers registered
23687 for the same signal.
23688 (Fdbus_register_signal): Don't overwrite a registration for the
23689 same signal. Add a new registration if handlers are different.
23690 (Vdbus_registered_functions_table): Rework doc string.
23691
236922007-12-07 Michael Albinus <michael.albinus@gmx.de>
23693
23694 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23695 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23696 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23697 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23698 Unify argument lists.
23699 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23700 arguments and hash table keys. Use unique name for service.
23701 (Fdbus_unregister_signal): Remove checks.
23702 (Vdbus_registered_functions_table): Fix doc string.
23703
237042007-12-05 Magnus Henoch <mange@freemail.hu>
23705
23706 * process.c (make_process): Initialize pty_flag to 0.
23707
237082007-12-05 Jason Rumney <jasonr@gnu.org>
23709
23710 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23711 specified XBMs.
23712
237132007-12-05 Richard Stallman <rms@gnu.org>
23714
23715 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23716
237172007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23718
23719 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23720 New variable.
23721 (mac_try_close_socket) [MAC_OSX]: New function.
23722 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23723 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23724
23725 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23726 Use mac_try_close_socket.
23727
237282007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23729
23730 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23731 reloc_base.
23732 (copy_dysymtab): Compute relocation base here.
23733 (rebase_reloc_address) [__ppc64__]: New function.
23734 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23735 changed.
23736
237372007-12-05 Jason Rumney <jasonr@gnu.org>
23738
23739 * w32proc.c (sys_spawnve): Quote args with wildcards.
23740
237412007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23742
23743 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23744 __objc_* sections.
23745 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23746
237472007-12-05 Michael Albinus <michael.albinus@gmx.de>
23748
23749 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23750 Move check for Vdbus_registered_functions_table to
23751 xd_read_queued_messages.
23752 (xd_read_queued_messages): Protect xd_read_message calls by
23753 internal_condition_case_1.
23754
237552007-12-04 Michael Albinus <michael.albinus@gmx.de>
23756
23757 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23758 Qdbus_system_bus and Qdbus_session_bus, respectively.
23759 (Vdbus_intern_symbols): Remove.
23760 (Vdbus_registered_functions_table): New hash table.
23761 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23762 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23763 Rewrite in order to manage registered functions by hash table
23764 Vdbus_registered_functions_table.
23765
237662007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23767
23768 * xterm.c: Update URL to Window Manager Specification in comment.
23769
237702007-12-02 Michael Albinus <michael.albinus@gmx.de>
23771
23772 * config.in (HAVE_DBUS): Add.
23773
23774 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23775 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23776 (obj): Add $(DBUS_OBJ).
23777 (LIBES): Add $(DBUS_LIBS).
23778 (dbusbind.o): New target.
23779
23780 * dbusbind.c: New file.
23781
23782 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23783
23784 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23785 (Qdbus_event): New Lisp symbol.
23786 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23787 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23788 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23789
23790 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23791
237922007-12-01 Richard Stallman <rms@gnu.org>
23793
23794 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23795
237962007-11-30 Jason Rumney <jasonr@gnu.org>
23797
23798 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23799 (w32con_reset_terminal_modes): Clear screen buffer.
23800 (w32_face_attributes): Don't use color indexes that are out of range.
23801 Only reverse the default colors.
23802
23803 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23804 WINDOWSNT.
23805
23806 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23807
238082007-11-29 Jason Rumney <jasonr@gnu.org>
23809
23810 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23811 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23812 if the terminal colors are initialized.
23813 (unspecified_fg, unspecified_bg): Remove unused declarations.
23814
238152007-11-29 Andreas Schwab <schwab@suse.de>
23816
23817 * keyboard.c (apply_modifiers): Fix typo.
23818
238192007-11-29 Richard Stallman <rms@gnu.org>
23820
23821 * keymap.c (Fcurrent_local_map): Doc fix.
23822
238232007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23824
23825 * s/gnu-kfreebsd.h: New file.
23826
238272007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23828
23829 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23830 Don't cast redundantly.
23831
23832 * keyboard.c (KEY_TO_CHAR): New macro.
23833 (parse_modifiers, apply_modifiers): Accept integer arguments.
23834 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23835 for chars and symbol keys.
23836 After doing such remapping, apply function-key-map again.
23837
238382007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23839
23840 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23841 compiled anymore.
23842
238432007-11-26 Andreas Schwab <schwab@suse.de>
23844
23845 * process.c (list_processes_1): Fix indentation level of the
23846 command column.
23847
238482007-11-23 Andreas Schwab <schwab@suse.de>
23849
23850 * editfns.c (Fformat): Handle %c specially since it requires the
23851 argument to be of type int.
23852
238532007-11-23 Markus Triska <markus.triska@gmx.at>
23854
23855 * emacs.c (main): Call init_editfns before init_process, since
23856 init_process sets Vprocess_connection_type depending on OS release.
23857
238582007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23859
23860 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23861 (find_symbol_value): Use do_symval_forwarding.
23862
23863 * data.c (set_internal): Set the value in the `cons-cell' (for
23864 Buffer_Local_values) not only for frame-local variables.
23865
238662007-11-22 Andreas Schwab <schwab@suse.de>
23867
23868 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23869 values to sprintf.
23870 * keymap.c (Fsingle_key_description): Likewise.
23871 * print.c (print_object): Likewise.
23872
238732007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23874
23875 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23876 file for image is nil.
23877
238782007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23879
23880 * term.c: Include stdarg.h.
23881 (fatal): Implement using varargs.
23882 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23883
238842007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23885
23886 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23887 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23888 Update call to buffer_slot_type_mismatch.
23889 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23890 (buffer_slot_type_mismatch): Update.
23891 * buffer.c (buffer_local_types): Remove.
23892 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23893 (defvar_per_buffer): Set the type in the buffer_objfwd.
23894
238952007-11-21 Jason Rumney <jasonr@gnu.org>
23896
23897 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23898 CreateFileMapping returns NULL on failure.
23899
239002007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23901
23902 * search.c (Fset_match_data): Remove the `evaporate' feature.
23903 (unwind_set_match_data): Don't use the `evaporate' feature.
23904
239052007-11-21 Jason Rumney <jasonr@gnu.org>
23906
23907 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23908
23909 * w32console.c (w32con_write_glyphs): Remove unused variables.
23910
239112007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23912
23913 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23914
23915 * s/darwin.h (MULTI_KBOARD): Remove.
23916
23917 * macfns.c (x_create_tip_frame, Fx_create_frame)
23918 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23919
239202007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23921
23922 * buffer.c (Fbuffer_local_value): Remove redundant test.
23923 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23924 than in `current-buffer' to match the comment.
23925 Do the swap using swap_in_global_binding.
23926
23927 * data.c (store_symval_forwarding, set_internal):
23928 * eval.c (specbind): Remove dead code.
23929
23930 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23931 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23932 Since we do not want to see internal Lisp_*fwd objects here.
23933
239342007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23935
23936 * sysdep.c (init_system_name): Use getaddrinfo if available.
23937
23938 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23939 (x_scroll_bar_note_movement): start, end, with, height in struct
23940 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23941
239422007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23943
23944 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23945
239462007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23947
23948 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23949 This undoes Richard's change of 14-Oct-2002.
23950
23951 * alloc.c (allocate_other_vector):
23952 * lisp.h (allocate_other_vector): Remove.
23953
23954 * window.c (struct save_window_data): Move non-lisp data to the end
23955 and make it `int' rather than Lisp_Object.
23956 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23957 Done wrap/unwrap integer values.
23958 (Fset_window_configuration, compare_window_configurations):
23959 Update use of fields to their new types.
23960
23961 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23962 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23963 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23964 (SET_SCROLL_BAR_X_WINDOW): Remove.
23965 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23966 Access the new x_window field directly.
23967 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23968 Don't wrap/unwrap integers into Lisp_Objects.
23969 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23970 (x_scroll_bar_report_motion):
23971 Don't wrap/unwrap integers into Lisp_Objects.
23972 (x_term_init): Use SDATA.
23973 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23974 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23975 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23976 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23977 * xfns.c (x_set_background_color):
23978 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23979 Access the new x_window field directly.
23980
23981 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23982 (allocate_pseudovector): Make non-static.
23983
23984 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23985 (allocate_pseudovector): Declare.
23986 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23987
239882007-11-15 Andreas Schwab <schwab@suse.de>
23989
23990 * editfns.c (Fformat): Correctly format EMACS_INT values.
23991 Also take precision into account when formatting an integer.
23992
23993 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23994
239952007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23996
23997 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23998 (syms_of_keyboard): Defsubr it.
23999
24000 * data.c (swap_in_global_binding): Fix longstanding bug where
24001 store_symval_forwarding was not called with the right second argument,
24002 thus causing objfwd-ing from being dropped.
24003
240042007-11-14 Juanma Barranquero <lekktu@gmail.com>
24005
24006 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24007 (Fx_display_pixel_height, Fx_display_planes)
24008 (Fx_display_color_cells, Fx_server_max_request_size)
24009 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24010 (Fx_display_visual_class, Fx_display_save_under):
24011 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24012 (Fx_display_pixel_height, Fx_display_planes)
24013 (Fx_display_color_cells, Fx_server_max_request_size)
24014 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24015 (Fx_display_mm_height, Fx_display_mm_width)
24016 (Fx_display_backing_store, Fx_display_visual_class)
24017 (Fw32_select_font, Fx_display_save_under):
24018 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24019 (Fx_display_pixel_height, Fx_display_planes)
24020 (Fx_display_color_cells, Fx_server_max_request_size)
24021 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24022 (Fx_display_save_under): Fix typos in docstrings.
24023
240242007-11-14 Juanma Barranquero <lekktu@gmail.com>
24025
24026 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24027 corresponding to deleted entries; they are an implementation detail.
24028 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24029 Remove variables.
24030 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24031 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24032 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24033 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24034 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24035 (Fw32_define_rgb_color, Fw32_load_color_file)
24036 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24037 Fix typos in docstrings.
24038 (Fx_server_version): Reflow docstring.
24039 (Fw32_shell_execute): Doc fixes.
24040
240412007-11-13 Juanma Barranquero <lekktu@gmail.com>
24042
24043 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24044 if w32_parse_hot_key returned nil.
24045
240462007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24047
24048 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24049
240502007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 24051
aac0c6e3
MR
24052 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24053
24054 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24055
24056 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24057 Remove W32_SCROLL_BAR_CLICK_EVENT.
24058
24059 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24060 Add MULTIMEDIA_KEY_EVENT.
24061
24062 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24063 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24064 (make_lispy_event) [WINDOWSNT]: Use it to translate
24065 MULTIMEDIA_KEY_EVENT.
24066
24067 * w32term.h (WM_APPCOMMAND): Define if not already.
24068 (GET_APPCOMMAND_LPARAM): Likewise.
24069
24070 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24071 WM_APPCOMMAND.
24072
24073 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24074 (syms_of_w32fns): Export and initialize it.
24075 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24076
240772007-11-09 Chong Yidong <cyd@stupidchicken.com>
24078
24079 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24080 twice.
24081
24082 * xdisp.c (handle_face_prop): Fix last change.
24083
240842007-11-09 Richard Stallman <rms@gnu.org>
24085
24086 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24087 not just for after-strings and before-strings.
24088 Call face_for_overlay_string and pass the overlay to it.
24089 (handle_display_prop): Determine whether property came from an overlay.
24090 Pass OVERLAY arg to handle_single_display_spec.
24091 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24092 (load_overlay_strings): Fill in it->string_overlays.
24093 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24094
24095 * xfaces.c (face_for_overlay_string): Function renamed from
24096 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24097
24098 * dispextern.h (struct it): New elt string_overlays.
24099 New elt from_overlay, also in stack.
24100 Rearrange a few elements.
24101 (face_for_overlay_string): Decl renamed from
24102 face_at_buffer_position_no_overlays, and add argument.
24103
241042007-11-09 Richard Stallman <rms@gnu.org>
24105
24106 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24107 to get the base face for an overlay string.
24108
24109 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24110
24111 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24112
24113 * xdisp.c (handle_stop): Move some code out of loop.
24114
241152007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24116
24117 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24118 Fix conversion from Lisp object to ATSUFontID.
24119
241202007-11-09 Jason Rumney <jasonr@gnu.org>
24121
24122 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24123
241242007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24125
24126 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24127 Don't assume regions are aligned to page boundary.
24128 (print_load_command_name): Add LC_UUID if defined.
24129
241302007-11-09 Richard Stallman <rms@gnu.org>
24131
24132 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24133
241342007-11-07 Jason Rumney <jasonr@gnu.org>
24135
24136 * s/windows95.h: Remove.
24137
241382007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24139
24140 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24141 abort with a message on unhandled store_type values.
24142
241432007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24144
24145 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24146 Remove HAVE_X11R5 and HAVE_X11R4.
24147
241482007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24149
24150 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24151
241522007-11-01 Johan Bockgård <bojohan@gnu.org>
24153
24154 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24155 Don't set s->stippled_p here, since it has already been set by
24156 x_set_glyph_string_gc from x_draw_glyph_string.
24157
241582007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24159
24160 * sunfns.c: Remove file.
24161
24162 * m/sun386.h:
24163 * m/sun2.h:
24164 * m/sparc.h: Remove Sun windows code.
24165
241662007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24167
24168 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24169 (init_keyboard): Set current_kboard's window-system to nil.
24170 (tty_read_avail_input): Typo.
24171 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24172
241732007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24174
24175 * s/usg5-4.h:
24176 * s/usg5-3.h:
24177 * s/ptx.h:
24178 * m/is386.h:
24179 * m/ibmps2-aix.h:
24180 * Makefile.in: Remove all mentions of X10.
24181
24182 * dispnew.c (syms_of_display): Don't mention version 10.
24183
241842007-10-28 Juanma Barranquero <lekktu@gmail.com>
24185
24186 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24187 ($(BLD)/abbrev.$(O)): Remove.
24188
241892007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24190
24191 Rewrite abbrev.c in Elisp.
24192 * image.c (Qcount): Don't declare as extern.
24193 (syms_of_image): Initialize and staticpro `Qcount'.
24194 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24195 * emacs.c (main): Don't call syms_of_abbrev.
24196 * Makefile.in (obj): Remove abbrev.o.
24197 (abbrev.o): Remove.
24198 * abbrev.c: Remove.
24199
242002007-10-26 Martin Rudalics <rudalics@gmx.at>
24201
24202 * window.c (window_min_size_2): Don't count header-line.
24203
242042007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24205
24206 * frame.h (struct frame): Move all bit fields after the first bit
24207 field to take advantage of the available space. Group all the
24208 chars together to reduce wasted space due to padding.
24209
242102007-10-26 Juanma Barranquero <lekktu@gmail.com>
24211
24212 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24213
24214 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24215 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24216 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24217 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24218 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24219 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24220 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24221 (last_marked, mark_object_loop_halt): Make static.
24222
24223 * frame.c (syms_of_frame) <delete-frame-functions>:
24224 Fix typo in docstring.
24225
242262007-10-25 Juanma Barranquero <lekktu@gmail.com>
24227
24228 * w32.c (init_environment): Fix tiny memory leak.
24229 (w32_get_resource): Remove unused variable `ok'.
24230
242312007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24232
24233 Make `window-system' into a keyboard-local variable (rather than
24234 frame-local as done originally by multi-tty).
24235
24236 * keyboard.h (struct kboard): Add Vwindow_system.
24237 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24238 (mark_kboards): Mark Vwindow_system.
24239
24240 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24241 (init_display): Don't set the obsolete `window-system' frame-param.
24242
24243 * xterm.c (x_term_init):
24244 * w32term.c (w32_create_terminal):
24245 * term.c (init_tty): Set Vwindow_system.
24246 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24247 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24248
24249 * xfns.c (Fx_create_frame, x_create_tip_frame):
24250 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24251 * macfns.c (Fx_create_frame):
24252 Don't set the obsolete `window-system' frame-param.
24253
24254 * frame.h (Qwindow_system): Remove.
24255 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24256 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24257
242582007-10-24 Richard Stallman <rms@gnu.org>
24259
24260 * frame.c (x_figure_window_size): For fullscreen case,
24261 set USPosition | PPosition without clobbering rest of window_prompting.
24262
24263 * keyboard.c (Fcurrent_idle_time): Doc fix.
24264
24265 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24266
242672007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24268
24269 * process.c (unwind_request_sigio): Only define if __ultrix__.
24270
24271 * callproc.c (child_setup): Remove spurious *.
24272
24273 * lisp.h (Fget_text_property): Declare.
24274 (have_menus_p): Declare it here rather than in sys-dep header files.
24275 * macterm.h (have_menus_p):
24276 * msdos.h (have_menus_p):
24277 * xterm.h (have_menus_p): Remove.
24278
24279 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24280 (Fmake_variable_frame_local): Just check the variable's const-ness
24281 rather than checking nil or t.
24282
242832007-10-22 Jason Rumney <jasonr@gnu.org>
24284
24285 * w32fns.c: Include math.h.
24286 (w32_abort): Declaration moved to nt/config.nt.
24287
24288 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24289 (abort): Redefinition moved to nt/config.nt.
24290
24291 * m/windowsnt.h: Remove.
24292
242932007-10-22 Juanma Barranquero <lekktu@gmail.com>
24294
24295 * emacs.c (Fdump_emacs): Fix typo in message.
24296 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24297 <installation-directory>: Reflow docstring.
24298
242992007-10-22 Juri Linkov <juri@jurta.org>
24300
24301 * minibuf.c: Allow minibuffer default to be a list of default values.
24302 With empty input use the first element of this list as returned default.
24303 (string_to_object)
24304 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24305 (read_minibuf): If defalt is cons, set histstring to its car.
24306 (Fread_string): If default_value is cons, set val to its car.
24307 (Fread_buffer): If def is cons, use its car.
24308 (Fcompleting_read): If defalt is cons, set val to its car.
24309
243102007-10-21 Michael Albinus <michael.albinus@gmx.de>
24311
24312 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24313
243142007-10-20 Juanma Barranquero <lekktu@gmail.com>
24315
24316 * doc.c (Fdocumentation): Check for advice in all cases.
24317
243182007-10-19 Chong Yidong <cyd@stupidchicken.com>
24319
24320 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24321
243222007-10-19 Richard Stallman <rms@gnu.org>
24323
24324 * doc.c (Fdocumentation): Check for and handle an advised function.
24325
243262007-10-19 Juanma Barranquero <lekktu@gmail.com>
24327
24328 * process.c (Fset_process_filter): Doc fix.
24329
243302007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24331
24332 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24333 which caused key-translation-map to applied repeatedly (thus breaking
24334 double-mode).
24335
243362007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24337
24338 * xselect.c (x_own_selection, x_handle_selection_clear)
24339 (x_clear_frame_selections):
24340 * w32menu.c (list_of_panes, list_of_items):
24341 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24342 * textprop.c (validate_plist, interval_has_all_properties)
24343 (interval_has_some_properties, interval_has_some_properties_list)
24344 (add_properties, text_property_list):
24345 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24346 * minibuf.c (Fassoc_string):
24347 * macselect.c (x_own_selection, x_clear_frame_selections)
24348 (Fx_disown_selection_internal):
24349 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24350 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24351
243522007-10-17 Chong Yidong <cyd@stupidchicken.com>
24353
24354 * process.c: Link to libs for calling res_init() if available.
24355 (Fmake_network_process): Call res_init() before getaddrinfo or
24356 gethostbyname, if possible.
24357
243582007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24359
24360 * lread.c (read1): Set pvectype for char_tables.
24361
24362 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24363 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24364 Add type checks.
24365 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24366
24367 * alloc.c (free_misc): Use XMISCTYPE.
24368 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24369
243702007-10-17 Glenn Morris <rgm@gnu.org>
24371
24372 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24373 (syms_of_minibuf): Add Qcompletion_ignore_case.
24374 * dired.c (Qcompletion_ignore_case): Change to external.
24375 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24376 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24377 (Fread_file_name): Use it rather than intern'ing.
24378
24379 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24380 (Fread_coding_system): Ignore case of user input.
24381
243822007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24383
24384 * xdisp.c (handle_display_prop): Ignore display specs after
24385 replacing one when string text is being replaced.
24386 (handle_single_display_spec): Pretend as if characters with display
24387 property haven't been consumed only when buffer text is being replaced.
24388
243892007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24390
24391 * xfns.c (Fx_create_frame, Fx_display_list):
24392 * window.c (window_fixed_size_p, enlarge_window)
24393 (shrink_window_lowest_first):
24394 * macterm.c (init_font_name_table):
24395 * macfns.c (Fx_create_frame, Fx_display_list):
24396 * lread.c (close_load_descs):
24397 * keyboard.c (read_char_x_menu_prompt):
24398 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24399 * coding.c (code_convert_region_unwind): Test the type of an object
24400 rather than just !NILP before extracting data from it.
24401
24402 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24403
24404 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24405 (XMISCANY): New macro.
24406 (XMISCTYPE): Use it.
24407 (struct Lisp_Misc_Any): New type.
24408 (union Lisp_Misc): Use it.
24409 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24410 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24411 (find_symbol_value, set_internal, default_value, Fset_default)
24412 (Fmake_variable_buffer_local, Fmake_local_variable)
24413 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24414 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24415 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24416 * alloc.c (allocate_buffer): Set the size and tag.
24417 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24418 Use XMISCANY.
24419 (die): Follow the GNU convention for error messages.
24420 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24421 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24422 tag any more.
24423 (set_buffer_internal_1):
24424 * frame.c (store_frame_param):
24425 * eval.c (specbind):
24426 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24427
24428 * doc.c (Fsnarf_documentation): Simplify.
24429
244302007-10-14 Juanma Barranquero <lekktu@gmail.com>
24431
24432 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24433 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24434
244352007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24436
24437 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24438
244392007-10-14 Juanma Barranquero <lekktu@gmail.com>
24440
24441 * eval.c (do_autoload): Don't save autoloads.
24442
24443 * data.c (Ffset): Save autoload of the function being set.
24444
244452007-10-07 John Paul Wallington <jpw@pobox.com>
24446
24447 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24448 parameter before setting up faces.
24449
244502007-10-13 Eli Zaretskii <eliz@gnu.org>
24451
24452 * ccl.c (Fregister_code_conversion_map):
24453 * keyboard.c (append_tool_bar_item): Reformat last change.
24454
24455 * lisp.h (eabs): Rename from `abs'. All callers changed.
24456
244572007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24458
24459 * buffer.c (add_overlay_mod_hooklist):
24460 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24461 * fontset.c (make_fontset):
24462 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24463 (append_tool_bar_item):
24464 * macmenu.c (grow_menu_items):
24465 * w32menu.c (grow_menu_items):
24466 * xmenu.c (grow_menu_items): Use larger_vector.
24467
244682007-10-13 Eli Zaretskii <eliz@gnu.org>
24469
24470 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24471 selected frame'' on MSDOS).
24472
244732007-10-12 Martin Rudalics <rudalics@gmx.at>
24474
24475 * frame.c (Qexplicit_name): New variable.
24476 (x_report_frame_params): Report it in parameter alist.
24477 (syms_of_frame): Intern and staticpro it.
24478
244792007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24480
24481 * macfns.c (x_create_tip_frame): Set terminal for frame.
24482
244832007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24484
24485 * frame.c (Qenvironment): Remove.
24486 (syms_of_frame) <Qenvironment>: Don't initialize.
24487 (Fdelete_frame): Don't treat the `environment' param specially.
24488 * frame.h (Qenvironment): Don't declare.
24489 * callproc.c (set_initial_environment): Don't set unused frame param.
24490
24491 * frame.c (Fframe_with_environment): Remove.
24492 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24493
24494 * lisp.h (Fframe_with_environment): Don't declare.
24495
244962007-10-10 Juanma Barranquero <lekktu@gmail.com>
24497
24498 * indent.c (indent_tabs_mode, last_known_column)
24499 (last_known_column_modified): Make static.
24500 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24501
245022007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24503
24504 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24505
245062007-10-09 Jason Rumney <jasonr@gnu.org>
24507
24508 * w32term.c (x_set_window_size): Disable code that attempts to tell
24509 Lisp code about a size change before it actually happens.
24510
245112007-10-09 Richard Stallman <rms@gnu.org>
24512
24513 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24514 return HANDLED_RETURN.
24515
245162007-10-08 Martin Rudalics <rudalics@gmx.at>
24517
24518 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24519 when there's an unread command event.
24520
24521 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24522 window autoselection act appropriately when leaving selected frame.
24523 (syms_of_frame): Initialize focus_follows_mouse.
24524 * frame.h (focus_follows_mouse): Extern it.
24525 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24526 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24527 * msdos.c (dos_rawgetc): Likewise.
24528 * w32term.c (w32_read_socket): Likewise.
24529 * xterm.c (handle_one_xevent): Likewise.
24530 * xdisp.c (syms_of_xdisp): In doc-string of
24531 mouse-autoselect-window mention focus-follows-mouse.
24532
245332007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24534
24535 * macterm.c (mac_load_query_font): Fix missing return value.
24536 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24537 Add BLOCK_INPUT.
24538
245392007-10-08 Richard Stallman <rms@gnu.org>
24540
24541 * xdisp.c (get_window_cursor_type): Implement documented behavior
24542 for cursor-in-non-selected-windows = t.
24543
245442007-10-08 Jason Rumney <jasonr@gnu.org>
24545
24546 * w32.c (w32_get_resource): Always close registry keys.
24547
245482007-10-08 Jason Rumney <jasonr@gnu.org>
24549
24550 * makefile.w32-in (LIBS): Add COMCTL32.
24551
24552 * w32fns.c (globals_of_w32fns): Init common controls.
24553
245542007-10-08 Richard Stallman <rms@gnu.org>
24555
24556 * image.c (our_memory_buffer): Rename from omfib_buffer.
24557
245582007-10-08 Richard Stallman <rms@gnu.org>
24559
24560 * buffer.c (Foverlays_at): Doc fix.
24561
245622007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24563
24564 * fns.c (Fplist_put): Preserve uneven tail data.
24565
245662007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24567
24568 * termhooks.h (enum event_kind): Remove trailing comma.
24569
24570 * frame.h (enum): Remove trailing comma.
24571
245722007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24573
24574 * w32proc.c (delete_child): Don't terminate threads of zombies.
24575
245762007-10-08 Martin Rudalics <rudalics@gmx.at>
24577
24578 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24579
24580 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24581 last-repeatable-command.
24582 (init_kboard): Initialize Vlast_repeatable_command.
24583 (command_loop_1): Set it to real_this_command unless that was
24584 bound to an input event.
24585 (mark_kboards): Mark it.
24586
245872007-10-08 Richard Stallman <rms@gnu.org>
24588
24589 * eval.c (condition-case): Doc fix.
24590
245912007-10-08 Masatake YAMATO <jet@gyve.org>
24592
24593 * xfaces.c (tty_supports_face_attributes_p): Fix code
24594 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24595 was copied and not edited.
24596
245972007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24598
24599 Add new `input-decode-map' keymap and use it for terminal
24600 escape sequences.
24601 * keyboard.h (struct kboard): Add Vinput_decode_map.
24602 Remove Vlocal_key_translation_map.
24603 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24604 (init_kboard): Init input-decode-map.
24605 Replace local-key-translation-map back with key-translation-map.
24606 (syms_of_keyboard): Declare input-decode-map.
24607 Remove local-key-translation-map. Update docstrings.
24608 (mark_kboards): Mark Vinput_decode_map.
24609 Don't mark Vlocal_key_translation_map.
24610 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24611 Replace local-key-translation-map back with key-translation-map.
24612 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24613 Bind in input-decode-map rather than function-key-map.
24614
24615 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24616 This was made redundant by the previous introduction of XSETPVECTYPE.
24617
246182007-10-09 Richard Stallman <rms@gnu.org>
24619
24620 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24621
246222007-09-29 Richard Stallman <rms@gnu.org>
24623
24624 * eval.c (internal_condition_case_2, internal_condition_case_1)
24625 (internal_condition_case): Reenable abort if x_catching_errors ()
24626 to see if that really happens and why.
24627
246282007-10-06 Andreas Schwab <schwab@suse.de>
24629
24630 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24631
246322007-10-04 Juanma Barranquero <lekktu@gmail.com>
24633
24634 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24635
246362007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24637
24638 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24639
246402007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24641
24642 * window.h (struct window):
24643 * window.c (struct save_window_data, struct saved_window):
24644 * termhooks.h (struct terminal):
24645 * process.h (struct Lisp_Process):
24646 * frame.h (struct frame):
24647 * buffer.h (struct buffer):
24648 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24649 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24650 The size field of (pseudo)vectors is now unsigned.
24651 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24652
24653 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24654 Turn `count' into an integer.
24655
24656 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24657 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24658 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24659 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24660 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24661
24662 * alloc.c (allocate_pseudovector): New fun.
24663 (ALLOCATE_PSEUDOVECTOR): New macro.
24664 (allocate_window, allocate_terminal, allocate_frame)
24665 (allocate_process): Use it.
24666 (mark_vectorlike): New function.
24667 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24668 (mark_terminals): Use it.
24669 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24670 (Fmake_byte_code): Use XSETPVECTYPE.
24671
24672 * frame.c (Fframe_parameters): Minor simplification.
24673
24674 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24675
24676 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24677
24678 * buffer.c (Fget_buffer_create, init_buffer_once):
24679 * lread.c (defsubr):
24680 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24681
24682 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24683 defined differently in the m/*.h files.
24684 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24685 (XSETPVECTYPE): New macro.
24686 (XSETPSEUDOVECTOR): Use it.
24687
24688 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24689 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24690
24691 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24692 * lread.c (defvar_per_buffer):
24693 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24694
24695 * window.c (candidate_window_p): Only consider as visible frames that
24696 are on the same terminal.
24697
24698 * m/ibms390x.h (MARKBIT): Remove unused macro.
24699
247002007-10-01 Juanma Barranquero <lekktu@gmail.com>
24701
24702 * lread.c (Fload): Fix typo in docstring.
24703
247042007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24705
24706 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24707 of a non-zero value can't yield zero.
24708
247092007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24710
24711 * term.c (term_clear_mouse_face, term_mouse_highlight)
24712 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24713
24714 * print.c (safe_debug_print): Use XHASH.
24715
24716 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24717 Lisp elements such as tags.
24718 (XHASH): New macro.
24719 (EQ): Use it.
24720 (SREF, SSET, STRING_COPYIN): Use SDATA.
24721 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24722
24723 * alloc.c (mark_terminal): Remove left-over declaration.
24724 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24725 (allocate_vectorlike): Remove type argument. Adjust callers.
24726 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24727 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24728
24729 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24730 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24731 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24732 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24733 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24734 Use them.
24735
24736 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24737 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24738 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24739
247402007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24741
24742 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24743 loaded by default.
24744
247452007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24746
24747 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24748 on this tty.
24749 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24750
24751 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24752 Update all users.
24753 (handle_one_term_event): Use Gpm_DrawPointer.
24754 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24755 Signal errors instead of returning nil. Always return nil.
24756 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24757 Make it a noop if gpm-mouse was not activated.
24758 (syms_of_term): Update names.
24759
247602007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24761
24762 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24763 (init_sys_modes): Check that gpm_tty is the current tty.
24764
24765 * alloc.c (allocate_terminal): Set the vector size to only count the
24766 lisp fields. Initialize those to nil.
24767 (mark_object): Don't treat terminals specially.
24768 (mark_terminal): Remove.
24769 (mark_terminals): Use mark_object instead.
24770
24771 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24772 the GC to the beginning.
24773
24774 * indent.h:
24775 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24776
24777 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24778
247792007-09-25 Jason Rumney <jasonr@gnu.org>
24780
24781 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24782
24783 * w32console.c (create_w32cons_output): Remove.
24784
24785 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24786
24787 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24788 (reset_sys_modes): Use reset_terminal_modes_hook.
24789
247902007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24791
24792 * eval.c (do_autoload): Don't output any message.
24793
247942007-09-24 Juri Linkov <juri@jurta.org>
24795
24796 * emacs.c (standard_args): Change priority of "--no-splash"
24797 from 40 to 3. Add "--no-desktop" with the same priority.
24798
247992007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24800
24801 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24802 and optimize the case where they are all 1.
24803
248042007-09-23 Johannes Weiner <hannes@saeurebad.de>
24805
24806 * lisp.h (abs): Define if not defined.
24807 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24808 Don't define `abs', since it's defined in lisp.h.
24809
248102007-09-22 Eli Zaretskii <eliz@gnu.org>
24811
24812 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24813 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24814 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24815 (init_tty): Use DEV_TTY instead of "/dev/tty".
24816 [WINDOWSNT]: No need to protect from NAME arg being null.
24817
248182007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24819
24820 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24821 up the tty state.
24822
248232007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24824
24825 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24826 (gpm_tty): Change its type.
24827 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24828 (gpm_tty): Change its type and initialize it.
24829 (Fterm_open_connection): Check the frame is indeed a tty.
24830 Use the new gpm_tty.
24831 (Fterm_close_connection): Use the new gpm_tty.
24832 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24833 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24834
248352007-09-21 Juanma Barranquero <lekktu@gmail.com>
24836
24837 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24838 underline_color, to draw strike-through.
24839
248402007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24841
24842 * lisp.h (allocate_terminal): Declare.
24843
24844 * window.c (candidate_window_p): Consider frames that are being placed
24845 by the user as somewhere between visible and iconified.
24846 (window_loop): Prefer windows on the current frame.
24847 (Fselect_window): Move the use of select-frame to the beginning so we
24848 can just delegate all the work (it'll call us back anyway).
24849
24850 * frame.c (Qdisplay_environment_variable):
24851 * frame.h (Qdisplay_environment_variable): Delete.
24852
24853 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24854 of the first arg, since that value may be a union.
24855
24856 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24857 parameter rather than Qdisplay_environment_variable. If all else
24858 fails, look for DISPLAY in initial-environment.
24859
248602007-09-21 Glenn Morris <rgm@gnu.org>
24861
24862 * Makefile.in (emacstool): Remove target.
24863 (lisp, shortlisp): Remove termdev.elc.
24864
248652007-09-21 Markus Triska <markus.triska@gmx.at>
24866
24867 * xterm.c (x_delete_display): Compile session management conditionally.
24868
248692007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24870
24871 * callproc.c (getenv_internal_1): New function.
24872 (getenv_internal): Use it.
24873 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24874
24875 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24876 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24877 (Fset_terminal_parameter): Work with dead terminals as well.
24878 (Fmodify_terminal_parameters): Remove.
24879
24880 * terminal.c (get_terminal): Handle terminals.
24881 Make sure the terminal returned is live.
24882 (create_terminal): Use allocate_terminal.
24883 (mark_terminals): Move to alloc.c.
24884 (delete_terminal): Use terminal->name as liveness status.
24885 NULL out fields after freeing their contents.
24886 Don't deallocate the object.
24887 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24888 rather than an int.
24889 (Fterminal_live_p): Accept non-integer arguments.
24890 (Fterminal_list): Return terminal objects rather than an ints.
24891
24892 * alloc.c (enum mem_type): New member for `terminal' objects.
24893 (allocate_terminal): New function.
24894 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24895 Handle terminals.
24896 (mark_terminal): New fun.
24897 (mark_terminals): Move from terminal.c.
24898
24899 * term.c (get_tty_terminal): Don't treat output_initial specially.
24900 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24901 (delete_tty): Use terminal->name as liveness status.
24902
24903 * termhooks.h (struct terminal): Make it into a pseudovector.
24904 Remove `deleted' replaced by checking `name's nullness.
24905
24906 * print.c (print_object): Handle terminals.
24907
24908 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24909 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24910
24911 * frame.c (make_terminal_frame):
24912 * keyboard.c (tty_read_avail_input):
24913 * w32term.c (x_delete_terminal):
24914 * xfns.c (Fx_create_frame, x_create_tip_frame):
24915 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24916
249172007-09-20 Glenn Morris <rgm@gnu.org>
24918
24919 * process.c (Fmake_network_process): Doc fix.
24920
249212007-09-19 Jason Rumney <jasonr@gnu.org>
24922
24923 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24924
249252007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24926
24927 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24928 Fix a C warning regarding variable constness.
24929
24930 * xterm.c (handle_one_xevent): Fix a C warning.
24931
249322007-09-18 Jason Rumney <jasonr@gnu.org>
24933
24934 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24935
249362007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24937
24938 * gtkutil.c (gdpy_def): New variable.
24939 (xg_initialize): Initialize gdpy_def.
24940 (xg_display_close): If no other display exists, set gdpy_def to a
24941 new connection.
24942
249432007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24944
24945 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24946 when we have no file name for the icon.
24947 (xg_tool_bar_expose_callback): Remove.
24948 (xg_create_tool_bar): Don't connect expose signal to
24949 xg_tool_bar_expose_callback.
24950 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24951
249522007-09-16 Andreas Schwab <schwab@suse.de>
24953
24954 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24955 values instead of zapping them.
24956
249572007-09-14 Glenn Morris <rgm@gnu.org>
24958
24959 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24960 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24961 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24962 scope and rename to omfib_buffer for clarity.
24963 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24964
249652007-09-14 Kenichi Handa <handa@m17n.org>
24966
24967 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24968
249692007-09-13 Jason Rumney <jasonr@gnu.org>
24970
24971 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24972
24973 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24974
24975 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24976 (mac_term_init): Call here instead, passing rif.
24977
249782007-09-13 Glenn Morris <rgm@gnu.org>
24979
24980 * s/hpux.h: No longer define `static' as nothing.
24981
249822007-09-13 Johan Bockgård <bojohan@gnu.org>
24983
24984 * callint.c (Fcall_interactively): Remove unused var `fun'.
24985
249862007-09-12 Romain Francoise <romain@orebokech.com>
24987
24988 * window.c (prefer_window_split_horizontally, display_buffer):
24989 Revert 2007-09-08 change.
24990
249912007-09-12 Glenn Morris <rgm@gnu.org>
24992
24993 * alloca.c: Remove file.
24994 * Makefile.in (alloca): Do not undef.
24995 (allocaobj, alloca.o): Remove.
24996 (otherobj): Remove allocaobj.
24997 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24998 * regex.c (C_ALLOCA): Remove all references and code that was only
24999 used when this was defined.
25000 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25001 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25002 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25003
25004 * Makefile.in (SOURCES, unlock, relock): Delete.
25005
25006 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25007 (menu_grab_callback): All uses changed.
25008
25009 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25010 (x_reply_selection_request): All uses changed.
25011
250122007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25013
25014 * lread.c (load_warn_old_style_backquotes): Change message to look
25015 better when it appears in the middle of byte-compiler messages.
25016
250172007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25018
25019 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25020
25021 * xterm.c (x_create_terminal): Add comment.
25022
25023 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25024
250252007-09-10 Richard Stallman <rms@gnu.org>
25026
25027 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25028
250292007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25030
25031 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25032 (DEFUN): Document `intspec', use it instead of `prompt'.
25033
25034 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25035
25036 * data.c (Finteractive_form): If the interactive specification starts
25037 with a `(', use it as a Lisp form.
25038
25039 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25040 name and file modes.
25041
25042 * callint.c (Fcall_interactively): Comment fixes.
25043
250442007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25045
25046 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25047 and compiled functions.
25048
250492007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25050
25051 * window.c (prefer_window_split_horizontally): New variable.
25052 (display_buffer): Consider splitting window horizontally depending
25053 on prefer_window_split_horizontally.
25054
250552007-09-08 Eli Zaretskii <eliz@gnu.org>
25056
25057 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25058
250592007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25060
25061 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25062
25063 * frame.c (x_set_frame_parameters): Check number is positive before
25064 using XFASTINT.
25065
25066 * window.c (freeze_window_start): Don't presume selected_window holds
25067 a window object.
25068 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25069
250702007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25071
25072 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25073
250742007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25075
25076 * window.c (Vsplit_window_preferred_function): New var.
25077 (Fdisplay_buffer): Use it.
25078 (syms_of_window): Export, and initialize it.
25079
250802007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25081
25082 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25083
250842007-09-06 Glenn Morris <rgm@gnu.org>
25085
25086 * gtkutil.c (menu_grab_callback) <cnt>:
25087 * xselect.c (x_reply_selection_request) <cnt>: Move static
25088 variable to file scope.
25089
250902007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25091
25092 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25093 consistent values of selected_frame and selected_window.
25094
250952007-09-04 Jason Rumney <jasonr@gnu.org>
25096
25097 * w32console.c (initialize_w32_display): Zero unused hooks.
25098
250992007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25100
25101 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25102 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25103
251042007-09-04 Jason Rumney <jasonr@gnu.org>
25105
25106 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25107 in w32console.c. Set up input. Remove XXX comments that have been
25108 confirmed as correct.
25109
25110 * s/ms-w32.h (MULTI_KBOARD): Define.
25111
25112 * w32console.c (one_and_only_w32cons): Remove.
25113 (initialize_w32_display): Take terminal argument.
25114
25115 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25116 initialize_w32_display.
25117 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25118
25119 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25120
25121 * keyboard.c (discard_mouse_events): Discard it.
25122 (make_lispy_event): Translate it to a lisp event.
25123 (lispy_wheel_names): Add wheel-left and right events.
25124 (syms_of_keyboard): Enlarge wheel_syms.
25125
25126 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25127 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25128
25129 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25130
25131 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25132 from WM_MOUSEHWHEEL.
25133 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25134
25135 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25136 terminal.
25137
25138 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25139 keyboard for the terminal.
25140
251412007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25142
25143 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25144 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25145 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25146 and resume-tty-function to resume-tty-hook.
25147 (Fsuspend_tty, Fresume_tty): Use new names.
25148
251492007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25150
25151 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25152 if it starts with "n:".
25153
251542007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25155
25156 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25157
251582007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25159
25160 * frame.h:
25161 * frame.c (Qterm_environment_variable): Remove.
25162 (syms_of_frame): Don't init and staticpro it.
25163
25164 * callproc.c (getenv_internal): Remove special case for $TERM.
25165
25166 * callproc.c (Vinitial_environment): New variable.
25167 (set_initial_environment): Initialize it.
25168 (syms_of_callproc): Declare it.
25169 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25170 TERM under which a process runs is never related to the TERM in which
25171 Emacs is running.
25172
251732007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25174
25175 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25176 * s/darwin.h: ... do it here.
25177
251782007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25179
25180 * lisp.h (set_initial_environment): Rename from set_global_environment.
25181
25182 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25183 removed by mistake on the multi-tty branch.
25184
25185 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25186 (Fmodify_frame_parameters): Return a value.
25187
25188 * image.c (png_load): Comment-out var only used in commented-out code.
25189
25190 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25191 before passing it to mark_object.
25192
25193 * xfaces.c (internal_resolve_face_name): Return a value.
25194 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25195
25196 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25197 (x_icon): Comment-out var only used in commented-out code.
25198
251992007-08-29 Romain Francoise <romain@orebokech.com>
25200
25201 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25202 QUIT hasn't been provided.
25203
252042007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25205
25206 * callproc.c (child_setup, getenv_internal): Use the
25207 display-environment-variable and term-environment-variable frame params.
25208 (set_initial_environment): Initialise Vprocess_environment.
25209
25210 * config.in: Disable multi-keyboard support on a mac.
25211
25212 * frame.c (Qterm_environment_variable)
25213 (Qdisplay_environment_variable): New variables.
25214 (syms_of_frame): Intern and staticpro them.
25215 (Fmake_terminal_frame): Disable output method test.
25216
25217 * frame.h: Declare them here.
25218
25219 * macfns.c (x_set_mouse_color): Get rif from the frame.
25220 (x_set_tool_bar_lines): Don't use updating_frame.
25221 (mac_window): Add 2 new parameters for consistency with other systems.
25222 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25223 frame parameters following what is done in X11 and w32. Don't use
25224 FRAME_MAC_DISPLAY_INFO.
25225 (Fx_open_connection, start_hourglass): Remove window-system check.
25226 (x_create_tip_frame): Get the keyboard from the terminal.
25227
25228 * macmenu.c: Reorder includes.
25229 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25230
25231 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25232 terminal parameter.
25233 (x_clear_frame): Add a frame parameter.
25234 (note_mouse_movement): Get rif from the frame.
25235 (mac_term_init): Initialize the terminal.
25236 (mac_initialize): Make static and move terminal initialization ...
25237 (mac_create_terminal): ... to this new function.
25238
25239 * macterm.h (struct mac_display_info): Add terminal.
25240 (mac_initialize): Delete declaration.
25241
25242 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25243
25244 * sysdep.c: Comment out text after #endif.
25245
25246 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25247 is defined. Better initialize ttys in windows. Use terminal
25248 specific mouse_position_hook.
25249
25250 * termhooks.h (union display_info): Add mac_display_info.
25251
25252 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25253 Set the default minibuffer frame, window_system and the rest of the
25254 frame parameters following what is done in X11.
25255
25256 * w32term.c (w32_initialize): Make static.
25257
25258 * xselect.c (x_handle_selection_clear): Only access
25259 terminal->kboard when MULTI_KBOARD is defined.
25260
25261 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25262 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25263
252642007-08-29 Jason Rumney <jasonr@gnu.org>
25265
25266 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25267 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25268
25269 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25270 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25271
25272 * keyboard.c (restore_kboard_configuration): Only define when
25273 MULTI_KBOARD defined.
25274
25275 * makefile.w32-in: Update dependancies from Makefile.in.
25276 (OBJ1): Add terminal.$(O)
25277
25278 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25279 Don't define function body.
25280 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25281
25282 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25283
25284 * w32.c (request_sigio, unrequest_sigio): Remove.
25285
25286 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25287 (w32con_clear_frame, w32con_clear_end_of_line)
25288 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25289 (w32con_delete_glyphs, w32con_set_terminal_window)
25290 (scroll_line, w32_sys_ring_bell): Add frame arg.
25291 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25292 Add terminal arg.
25293 (PICK_FRAME): Remove.
25294 (w32con_write_glyphs): Use frame specific terminal coding.
25295 (one_and_only_w32cons): New global variable.
25296 (initialize_w32_display): Use it for storing hooks.
25297 (create_w32cons_output): New function.
25298
25299 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25300 arg a frame.
25301
25302 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25303 Set window_system.
25304 (x_set_tool_bar_lines): Don't use updating_frame.
25305 (Fx_create_frame): Set terminal and ref count.
25306 (Fx_open_connection): Remove window-system check.
25307
25308 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25309
25310 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25311 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25312 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25313 Add frame arg.
25314 (x_delete_terminal, w32_create_terminal): New functions.
25315 (w32_term_init): Create a terminal.
25316 (w32_initialize): Move terminal specific initialization to
25317 w32_create_terminal.
25318
25319 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25320 (w32_clear_rect, w32_clear_area): Use background from frame.
25321 (w32_display_info): Add terminal.
25322 (w32_sys_ring_bell, x_delete_display): Declare here.
25323
25324 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25325
25326 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25327
253282007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25329
25330 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25331 Fix get_named_tty calls for the controlling tty.
25332
253332007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25334
194d44e7 25335 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
25336
253372007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25338
25339 * term.c (tty_insert_glyphs): Add missing first parameter.
25340
253412007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25342
25343 * buffer.c (Fbuffer_list, Fbury_buffer):
25344 Take frame->buried_buffer_list into account.
25345
25346 * cm.c (current_tty): New variable, for cmputc().
25347 (cmputc): Use it.
25348 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25349 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25350 (cmgoto): Add tty parameter. Pass it on to calccost().
25351 Use emacs_tputs() instead of tputs().
25352
25353 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25354 tputs().
25355 (current_tty): New variable, for cmputc().
25356 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25357
25358 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25359 (internal_condition_case, internal_condition_case_1)
25360 (internal_condition_case_2): Don't abort when x_catching_errors.
25361
25362 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25363 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25364 prevent crashes caused by bogus longjmps in read_char.
25365
25366 * keymap.h (Fset_keymap_parent): Add EXFUN.
25367
25368 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25369 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25370 Remove redundant definition.
25371
25372 * macfns.c (x_set_mouse_color, x_make_gc):
25373 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25374
25375 * w32term.c (x_free_frame_resources):
25376 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25377 (w32_initialize): Use the accessor macros for terminal characteristics.
25378
25379 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25380 Use the accessor macros for terminal characteristics.
25381 * msdos.c (internal_terminal_init): Use the accessor macros for
25382 terminal characteristics.
25383 (ScreenVisualBell, internal_terminal_init):
25384 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25385
25386 * termopts.h (no_redraw_on_reenter): Declare.
25387
25388 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25389 (mark_terminals, mark_ttys): Declare.
25390 (Fgarbage_collect): Call them.
25391 (mark_object): Mark buried_buffer_list.
25392
25393 * prefix-args.c: Include stdlib.h for exit.
25394
25395 * syssignal.h: Add comment.
25396
25397 * indent.c: Include stdio.h.
25398
25399 * window.h (Vinitial_window_system): Declare.
25400 (Vwindow_system): Delete declaration.
25401
25402 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25403
25404 * image.c (lookup_image): Don't initialize `c' until the xasserts
25405 have been run.
25406
25407 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25408 FRAME_FOREGROUND_PIXEL.
25409
25410 * print.c (print_preprocess): Don't lose print_depth levels while
25411 iterating.
25412
25413 * widget.c (update_from_various_frame_slots):
25414 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25415
25416 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25417 frames.
25418 (window_internal_height): Remove bogus make_number call.
25419 (init_window_once): Call make_terminal_frame with two zero parameters.
25420
25421 * fileio.c (Fread_file_name): Update comment.
25422
25423 * callint.c (Fcall_interactively):
25424 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25425 Make sure it is correctly unwound.
25426
25427 * xsmfns.c (x_session_close): New function.
25428
25429 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25430 Delete declarations.
25431
25432 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25433 (x_output): Remove background_pixel and foreground_pixel fields.
25434 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25435 (x_delete_device, x_session_close): Declare.
25436
25437 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25438 (read_filtered_event): Call `read_char' with a local
25439 `wrong_kboard_jmpbuf'.
25440
25441 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25442 Don't call single_kboard_state. Use FRAME_RIF.
25443
25444 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25445 systems.
25446
25447 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25448 (Fframe_with_environment, Fset_input_meta_mode)
25449 (Fset_quit_char): EXFUN.
25450 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25451 (init_sys_modes, reset_sys_modes): Update prototypes.
25452 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25453
25454 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25455 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25456 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25457 Delete declarations.
25458 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25459 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25460 New declarations.
25461
25462 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25463 already does that during init_display(). Call syms_of_keymap
25464 before syms_of_keyboard. Call `syms_of_terminal'.
25465 Call set_initial_environment, not set_process_environment.
25466 (shut_down_emacs): Call reset_all_sys_modes() instead of
25467 reset_sys_modes().
25468
25469 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25470 (internal_resolve_face_name, resolve_face_name_error): New functions.
25471 (resolve_face_name): Protect against loops and errors thrown by Fget.
25472 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25473 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25474
25475 * scroll.c: Replace CURTTY() with local variables throughout the
25476 file (where applicable).
25477 (calculate_scrolling, calculate_direct_scrolling)
25478 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25479 characteristics.
25480
25481 * keymap.c (Vfunction_key_map): Remove.
25482 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25483 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25484 (Vkey_translation_map): Remove.
25485 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25486 (Fdescribe_buffer_bindings)
25487 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25488 Update for terminal-local key-translation-map.
25489
25490 * Makefile.in (callproc.o): Update dependencies.
25491 (lisp, shortlisp): Add termdev.elc.
25492 (obj): Add terminal.o.
25493 (terminal.o): Add dependencies.
25494 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25495 (data.o, fns.o): Add termhooks.h dependency.
25496 (SOME_MACHINE_LISP): Add dnd.elc.
25497 (minibuf.o): Fix typo.
25498 Update dependencies.
25499
25500 * data.c (do_symval_forwarding, store_symval_forwarding)
25501 (find_symbol_value): Use the selected frame's keyboard, not
25502 current_kboard.
25503
25504 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25505 Vwindow_system.
25506
25507 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25508 Fmenu_bar_open.
25509 (syms_of_xmenu): Update defsubr.
25510 (mouse_position_for_popup, Fx_popup_menu)
25511 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25512 (set_frame_menubar, free_frame_menubar)
b97439ce 25513 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
25514 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25515 an X frame.
25516
25517 * xselect.c (x_own_selection): Abort if not an X frame.
25518 (some_frame_on_display): Check if it is an X frame.
25519 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25520
25521 * coding.c: Include frame.h and termhooks.h.
25522 (terminal_coding, keyboard_coding): Delete.
25523 (Fset_terminal_coding_system_internal)
25524 (Fset_keyboard_coding_system_internal)
25525 (Fkeyboard_coding_system)
25526 (Fterminal_coding_system): Add a terminal parameter.
25527 Get terminal_coding from the terminal.
25528 (init_coding_once): Don't call setup_coding_system here.
25529
25530 * dispextern.h (set_scroll_region, turn_off_insert)
25531 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25532 (tty_clear_end_of_line, tty_setup_colors)
25533 (delete_tty, updating_frame)
25534 (produce_special_glyphs, produce_glyphs, write_glyphs)
25535 (insert_glyphs): Remove.
25536 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25537 (tty_turn_off_highlight, get_tty_size): Add declaration.
25538 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25539
25540 * frame.h (enum output_method): Add output_initial.
25541 (struct x_output): Delete.
25542 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25543 Access foreground_pixel and background_pixel directly from the frame.
25544 (tty_display): Delete.
25545 (struct frame): Add buried_buffer_list, foreground_pixel,
25546 background_pixel and terminal. Delete kboard.
25547 (union output_data): Add tty.
25548 (FRAME_KBOARD): Get the kboard from the terminal.
25549 (FRAME_INITIAL_P): New macro.
25550 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25551 (Qterm_environment_variable, Qdisplay_environment_variable)
25552 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25553 New declarations.
25554
25555 * termchar.h (tty_output, tty_display_info): New structures.
25556 (tty_list): Declare.
25557 (FRAME_TTY, CURTTY): New macros.
25558 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25559 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25560 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25561 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25562
25563 * callproc.c: Include frame.h and termhooks.h, for terminal
25564 parameters.
25565 (add_env): New function.
25566 (child_setup): Use it.
25567 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25568 (getenv_internal): Fix get_terminal_param call.
25569 (Fgetenv_internal, egetenv): Update doc.
25570 (syms_of_callproc): Initialize Vprocess_environment to nil.
25571 Register and initialize them. Remove obsolete defvars. Update doc
25572 strings.
25573 (child_setup): Handle Vlocal_environment_variables.
25574 (getenv_internal): Add terminal parameter.
25575 Handle Vlocal_environment_variables.
25576 (Fgetenv_internal): Add terminal parameter.
25577 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25578 environment in a frame (not terminal) parameter. Update doc strings.
25579 (set_initial_environment): Rename from set_global_environment.
25580 Store Emacs environment in initial frame parameter.
25581
25582 * xdisp.c (redisplay_internal): Update references to
25583 `previous_terminal_frame'.
25584 (display_mode_line, Fformat_mode_line): Replace calls to
25585 `push_frame_kboard' with `push_kboard'.
25586 (get_glyph_string_clip_rects): Add extra parentheses and
25587 braces to prevent compiler warnings.
25588 (calc_pixel_width_or_height): Add xassert to check that the
25589 frame is alive. Don't call `lookup_image' on a termcap frame.
25590 (message2_nolog, message3_nolog, redisplay_internal)
25591 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25592 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25593 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25594 (Fx_display_pixel_width, Fx_display_pixel_height)
25595 (Fx_display_planes, Fx_display_color_cells)
25596 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25597 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25598 (Fx_display_backing_store, Fx_display_visual_class)
25599 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25600 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25601
25602 * xfns.c (x_set_foreground_color x_set_background_color)
25603 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25604 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25605 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25606 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25607 terminal that is being deleted.
25608 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25609 frame parameter, and make sure it overrides any user-supplied setting.
25610 (Fx_close_connection, Fx_synchronize): Unify argument names with
25611 the rest of the DEFUNs.
25612
25613 * dispnew.c (Fsend_string_to_terminal): Update call to
25614 `get_tty_terminal'.
25615 (Fredraw_frame, Fsend_string_to_terminal)
25616 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25617 FRAME_TERMCAP_P and FRAME_TTY.
25618 (window_change_signal): Don't believe width/height values that are
25619 impossibly small.
25620 (Vinitial_window_system): Rename from Vwindow_system.
25621 (termscript, Wcm, rif): Delete.
25622
25623 * termhooks.h (struct terminal): New struct containing the
25624 previously global text display hooks and new members NAME,
25625 DELETED and PARAM_ALIST.
25626 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25627 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25628 (FRAME_RIF): New macros.
25629 (get_terminal_param, get_device): New declarations.
25630 (termscript): Delete declaration.
25631
25632 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25633 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25634 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25635 FRAME_FOREGROUND_PIXEL.
25636 (x_fully_uncatch_errors): Disable definition.
25637 (x_scroll_bar_expose): Fix reference to foreground pixel.
25638 (XTread_socket): Disable loop on all X displays.
25639 (x_delete_terminal): Don't set terminal->deleted and let
25640 delete_terminal delete the frames on the terminal.
25641 (x_delete_display): Doc update to reflect changes in
25642 delete_terminal.
25643 (x_display_info) <terminal>: Move member earlier in the struct.
25644 (deleting_tty): Remove old variable.
25645 (Fsuspend_tty): Call clear_tty_hooks.
25646 (Fresume_tty, init_tty): Call set_tty_hooks.
25647 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25648 errors on X frames.
25649 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25650 (handle_one_xevent): Initialize `f' to NULL.
25651 (x_delete_terminal, x_create_terminal): New functions.
25652 (XTset_terminal_modes, XTreset_terminal_modes)
25653 (XTread_socket, x_connection_closed, x_term_init)
25654 (x_term_init, x_delete_display): Add terminal parameter.
25655 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25656 X connections.
25657
25658 * frame.c: Include termchar.h.
25659 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25660 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25661 (Qdisplay_environment_variable): New vars.
25662 (Fframep): Deal with output_initial.
25663 (Fframe-live-p): Doc fix.
25664 (Fwindow-system): New function.
25665 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25666 (make_terminal_frame): Don't create frames on a terminal that is
25667 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25668 (store_frame_param): Check for found_for_frame before calling XFRAME.
25669 (Fmake_terminal_frame): Handle NULL tty names correctly.
25670 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25671 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25672 frames to refer to a deleted frame in their 'environment parameter.
25673 (Fframe_with_environment): New function.
25674 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25675 (get_future_frame_param): New function.
25676 (Fmake_terminal_frame): Use it.
25677 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25678
25679 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25680 * sysdep.c (reset_sys_modes): Update for renames.
25681
25682 * keyboard.c (tty_read_avail_input): New function.
25683 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25684 (syms_of_keyboard): Defsubr them.
25685 (Fset_input_meta_mode, Fset_quit_char): New functions.
25686 (Fset_input_mode): Split to above functions.
25687 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25688 parameter. Use it in call to `read_char'.
25689 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25690 Set wrong_kboard_jmpbuf correctly in recursive calls.
25691 Use current_kboard to access Vkeyboard_translate_table.
25692 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25693 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25694 Update longjmp invocations. Remember the original current_kboard,
25695 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25696 changes it. Comment out unnecessary calls to
25697 `record_single_kboard_state' and `any_kboard_state'.
25698 Update recursive calls.
25699 (wrong_kboard_jmpbuf): Remove global variable.
25700 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25701 Handle deleted interrupted_kboards correctly; that is a legal
25702 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25703 and read_char calls. Abort if interrupted_kboard died in read_char.
25704 (any_kboard_state, single_kboard_state)
25705 (push_frame_kboard): Remove function.
25706 (pop_kboard): Switch out of single_kboard mode if the kboard has
25707 been deleted. Remove unused variable. Help debugging by not
25708 changing current_kboard unnecessarily. Set current_kboard to the
25709 kboard of the selected frame when the stored kboard object has
25710 been deleted before pop_kboard.
25711 (temporarily_switch_to_single_kboard): Change first parameter to a
25712 frame pointer. Throw an error when caller wants to change kboards
25713 while in single_kboard mode. Don't push_kboard if we weren't in
25714 single kboard state. Don't pop_kboard if we popped into any
25715 kboard state.
25716 (restore_kboard_configuration): Abort if pop_kboard changed the
25717 kboard in single_kboard mode. Call pop_kboard only after setting
25718 up single_kboard mode.
25719 (Frecursive_edit): Switch to single_kboard mode only in nested
25720 command loops.
25721 (cmd_error, command_loop, command_loop_1, timer_check):
25722 Comment out unnecessary call to `any_kboard_state' and
25723 `record_single_kboard_state'.
25724 (delete_kboard): Exit single_kboard mode if we have just deleted
25725 that kboard. Use FRAME_KBOARD.
25726 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25727 `fatal_error_signal'.
25728 (record_single_kboard_state): Don't push_kboard if we weren't in
25729 single kboard state. Don't pop_kboard if we popped into any
25730 kboard state.
25731 (push_frame_kboard): Rename to push_kboard.
25732 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25733 (read_avail_input): Read input from all terminals.
25734 (mark_kboards): Also mark Vkeyboard_translate_table.
25735 (kbd_buffer_store_event_hold): Simplify condition.
25736 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25737 (Vkeyboard_translate_table): Move to struct kboard.
25738 (init_kboard): Initialize Vkeyboard_translate_table.
25739 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25740 Vkeyboard_translate_table. Update doc strings. Update docs of
25741 local-function-key-map and function-key-map.
25742
25743 * terminal.c: New file.
25744
25745 * term.c: Include errno.h.
25746 (Vring_bell_function, device_list, initial_device)
25747 (next_device_id, ring_bell, update_begin, update_end)
25748 (set_terminal_window, cursor_to, raw_cursor_to)
25749 (clear_to_end, clear_frame, clear_end_of_line)
25750 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25751 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25752 (syms_of_term): Move their initialization to terminal.c.
25753 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25754 (Ftty_display_color_cells)
25755 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25756 (clear_tty_hooks, set_tty_hooks)
25757 (init_tty, maybe_fatal): New functions.
25758 (Ftty_type): Return nil if terminal is not on a tty instead of
25759 throwing an error. Doc update.
25760 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25761 Doc update. Initialize new subrs and variables.
25762 (delete_tty): Use terminal->deleted.
25763 (tty_set_terminal_modes): Rename from set_terminal_modes.
25764 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25765 (set_scroll_region): Rename to `tty_set_scroll_region'.
25766 (turn_on_insert): Rename to `tty_turn_on_insert'.
25767 (turn_off_insert): Rename to `tty_turn_off_insert'.
25768 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25769 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25770 (toggle_highligh): Rename to `tty_toggle_highlight'.
25771 (background_highlight): Rename to `tty_background_highlight'.
25772 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25773 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25774 (tty_set_scroll_region, tty_background_highlight)
25775 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25776 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25777 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25778 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25779 Add static modifier.
25780 (tty_reset_terminal_modes, tty_set_terminal_window)
25781 (tty_set_scroll_region, tty_background_highlight)
25782 (tty_highlight_if_desired, tty_cursor_to)
25783 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25784 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25785 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25786 renames.
25787
257882007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25789
25790 * keyboard.c: Qrtl is new.
25791 (parse_tool_bar_item): Handle :rtl keyword.
25792 (syms_of_keyboard): Intern :rtl keyword.
25793
25794 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25795
25796 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25797 so no Lisp code is executed.
25798 (file_for_image, find_rtl_image): New functions.
25799 (xg_get_image_for_pixmap): Use file_for_image.
25800 (update_frame_tool_bar): If direction is RTL, use RTL image if
25801 defined. Use Gtk stock images if defined.
25802
258032007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25804
25805 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25806 for nonexistent or zero-width glyph in composition glyph.
25807
258082007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25809
25810 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25811
25812 * xdisp.c (Finvisible_p): New function.
25813 (syms_of_xdisp): defsubr it.
25814
258152007-08-24 Juanma Barranquero <lekktu@gmail.com>
25816
25817 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25818 Doc fixes.
25819
258202007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25821
25822 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25823
258242007-08-24 Martin Rudalics <rudalics@gmx.at>
25825
25826 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25827 whether decoding has modified buffer contents.
25828
258292007-08-24 Jason Rumney <jasonr@gnu.org>
25830
25831 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25832 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25833 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25834 (init_svg_functions) [HAVE_NTGUI]: New function.
25835 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25836 (svg_load_image): Use them.
25837 (svg_load_image) [HAVE_NTGUI]: Implement background.
25838
258392007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25840
25841 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25842 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25843 (LIBX): Remove @RSVG_LIBS@.
25844 (LIBES): Add $(RSVG_LIBS).
25845
25846 * image.c (svg_load_image): Blend with specified background if exists.
25847 Use IMAGE_BACKGROUND. Add Mac OS Support.
25848
25849 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25850 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25851 Remove macros.
25852 [MAC_OSX] (socket_callback): Do nothing.
25853 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25854 ReceiveNextEvent.
25855 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25856 socket_callback.
25857 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25858
258592007-08-22 Glenn Morris <rgm@gnu.org>
25860
25861 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25862
258632007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25864
25865 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25866
25867 * image.c: Add support for SVG images. Some additional comments
25868 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25869 (svg_image_p): New function to test for SVG image.
25870 (svg_load): New function to load SVG image.
25871 (svg_load_image): New function, helper for svg_load.
25872 (Qsvg): New Lisp_object.
25873 (svg_keyword_index): New enum.
25874 (svg_format): New static `image_keyword' struct.
25875 (svg_type): New static `image_type' struct.
25876 (librsvg/rsvg.h): Include it.
25877
258782007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25879
25880 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25881
258822007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25883
25884 * lread.c (Qold_style_backquotes): New var.
25885 (syms_of_lread): Init and staticpro it.
25886 (load_warn_old_style_backquotes): New fun.
25887 (Fload): Use them to warn about old style backquotes.
25888 (end_of_file_error, Fload): Remove unused vars.
25889
25890 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25891
25892 * lread.c (Vold_style_backquotes): New var.
25893 (syms_of_lread): Init and export it to Elisp.
25894 (read1): Set it when we find an old-style (back)quote.
25895
258962007-08-22 Jason Rumney <jasonr@gnu.org>
25897
25898 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25899
259002007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25901
25902 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25903
259042007-08-19 Richard Stallman <rms@gnu.org>
25905
25906 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25907
259082007-08-19 Andreas Schwab <schwab@suse.de>
25909
25910 * alloc.c (pure): Round PURESIZE up.
25911
259122007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25913
25914 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25915 active frame.
25916
259172007-08-16 Richard Stallman <rms@gnu.org>
25918
25919 * eval.c (Fcommandp): Add parens to clarify.
25920
25921 * minibuf.c (Fall_completions): Use enum for type of table.
25922
25923 * emacs.c (USAGE2): Improve text.
25924
259252007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25926
25927 * term.c (tty_default_color_capabilities): Declare static
25928 variables in file scope, to avoid HPUX compiler problem.
25929
259302007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25931
25932 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25933 to gtk_toolbar_insert.
25934
259352007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25936
25937 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25938
25939 * insdel.c (reset_var_on_error): New fun.
25940 (signal_before_change, signal_after_change):
25941 Use it to reset (after|before)-change-functions to nil in case of error.
25942 Bind inhibit-modification-hooks to t.
25943 Don't bind (after|before)-change-functions to nil while they run.
25944
259452007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25946
25947 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25948 filling pixmap with stippled background.
25949
259502007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25951
25952 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25953 Don't use invisible frame as parent window for repositioning.
25954
259552007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25956
25957 * print.c (new_backquote_output): Rename from old_backquote_output.
25958 (print): Inverse its logic (according to its name) so as to match the
25959 behavior of new_backquote_flag in lread.c.
25960
259612007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25962
25963 * gmalloc.c (posix_memalign): New function.
25964
25965 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25966 ActivateControl/DeactivateControl here.
25967 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25968 frame-notice-user-settings is non-nil.
25969 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25970 for kEventParamFMFontStyle.
25971 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25972 mac_pass_command_to_system and mac_pass_control_to_system here.
25973 (XTread_socket): Call ActivateControl/DeactivateControl here.
25974 (XTread_socket) [TARGET_API_MAC_CARBON]:
25975 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25976 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25977 for window repositioning.
25978
259792007-08-08 Glenn Morris <rgm@gnu.org>
25980
25981 * Replace `iff' in doc-strings and comments.
25982
259832007-08-07 Chong Yidong <cyd@stupidchicken.com>
25984
25985 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25986
259872007-08-07 Martin Rudalics <rudalics@gmx.at>
25988
25989 * fileio.c (Finsert_file_contents): Run format-decode and
25990 after_insert_file_functions on entire buffer when REPLACE is
25991 non-nil and inhibit modification_hooks and point_motion_hooks.
25992 For consistency, run after_insert_file_functions iff something
25993 got inserted. Move signal_after_change and update_compositions
25994 after code running after_insert_file_functions. Make sure that
25995 undo_list doesn't record intermediate steps of the decoding process.
25996
259972007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25998
25999 * emacs.c (main)
26000 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26001 Call malloc_enable_thread on interactive startup.
26002
26003 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26004 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26005 [USE_PTHREAD]: Conditionalize with it.
26006 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26007 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26008 New functions.
26009
260102007-08-06 Chong Yidong <cyd@stupidchicken.com>
26011
26012 * xdisp.c (redisplay_window): When restoring original buffer
26013 position, make sure it is still valid.
26014
26015 * image.c (png_load): Ignore png-supplied background color.
26016
260172007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26018
26019 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26020 Use kCFAbsoluteTimeIntervalSince1970.
26021
26022 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26023 New variable.
26024 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26025 event loop should be quit.
26026 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26027 Quit dialog event loop if quit_dialog_event_loop is set.
26028
26029 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26030 (Selection): New typedef. Use instead of ScrapRef.
26031 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26032 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26033 (mac_clear_selection): Rename from clear_scrap.
26034 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26035 scrap_has_target_type. All uses changed.
26036 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26037 (mac_selection_has_target_p): New functions.
26038 (mac_put_selection_value): Rename from put_scrap_string.
26039 (mac_get_selection_value): Rename from get_scrap_string.
26040 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26041 (put_scrap_private_timestamp, scrap_has_target_type)
26042 (get_scrap_private_timestamp): Remove functions.
26043 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26044 (x_own_selection, x_get_local_selection):
26045 Use mac_valid_selection_value_p.
26046 (x_own_selection): Don't use put_scrap_private_timestamp.
26047 Record OWNERSHIP-INFO into Vselection_alist instead.
26048 (x_get_local_selection): Don't check type if request is local.
26049 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26050 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26051
260522007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26053
26054 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26055 add comment explaining why.
26056
260572007-08-03 Richard Stallman <rms@gnu.org>
26058
26059 * fileio.c (Fvisited_file_modtime): Use make_time.
26060
260612007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26062
26063 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26064 build.
26065
260662007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26067
26068 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26069
260702007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26071
26072 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26073
260742007-07-30 Richard Stallman <rms@gnu.org>
26075
26076 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26077
260782007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26079
26080 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26081
260822007-07-28 Nick Roberts <nickrob@snap.net.nz>
26083
26084 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26085 remote default-directory.
26086
26087 * buffer.c (mode-line-format): Update doc string.
26088
260892007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26090
26091 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26092 scroll bar gap.
26093 (x_scroll_bar_create): Set bar->fringe_extended_p.
26094 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26095 on frame edge. Check fringe background extension. Don't clear
26096 extended fringe background area.
26097
26098 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26099 (w32_fill_area): Enclose multiple statements with do ... while (0).
26100
26101 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26102 Extend fringe background to scroll bar gap.
26103 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26104 Set bar->fringe_extended_p.
26105 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26106 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26107 background extension. Don't clear extended fringe background area.
26108
26109 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26110 New member fringe_extended_p.
26111
261122007-07-25 Glenn Morris <rgm@gnu.org>
26113
26114 * Relicense all FSF files to GPLv3 or later.
26115
26116 * COPYING: Switch to GPLv3.
26117
261182007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26119
26120 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26121
26122 * data.c (Finteractive_form): Check for the presence of an
26123 `interactive-form' symbol property more thoroughly.
26124
26125 * data.c (Finteractive_form): Use an `interactive-form' property if
26126 present, analogous to the function-documentation property.
26127
261282007-07-24 Jason Rumney <jasonr@gnu.org>
26129
26130 * w32fns.c (x_real_positions): Get real position from OS instead of
26131 calculating it.
26132
261332007-07-23 Jason Rumney <jasonr@gnu.org>
26134
26135 * filelock.c (current_lock_owner): Allow for @ sign in username.
26136
261372007-07-22 Nick Roberts <nickrob@snap.net.nz>
26138
26139 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26140 remote default-directory.
26141
26142 * buffer.c (mode-line-format): Describe above case in doc string.
26143
261442007-07-20 Eli Zaretskii <eliz@gnu.org>
26145
26146 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26147 Define if not defined.
26148
261492007-07-18 Jason Rumney <jasonr@gnu.org>
26150
26151 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26152
261532007-07-18 Richard Stallman <rms@gnu.org>
26154
26155 * data.c (Fsetq_default): Doc fix.
26156
26157 * eval.c (Fsetq): Doc fix.
26158
261592007-07-18 Juanma Barranquero <lekktu@gmail.com>
26160
26161 * coding.c (Ffind_operation_coding_system):
26162 * eval.c (For, Fand): Doc fixes.
26163 Reported by Johan Bockgård.
26164
261652007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26166
26167 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26168
26169 * xterm.h: Declare x_ewmh_activate_frame.
26170
26171 * xterm.c (x_ewmh_activate_frame): New function.
26172 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26173
261742007-07-17 Martin Rudalics <rudalics@gmx.at>
26175
26176 * window.c (Fdisplay_buffer): If largest or LRU window is the
26177 only window, split it even if it is not eligible for splitting.
26178 This restores the original behavior broken by the 2007-07-15
26179 change.
26180
261812007-07-17 Glenn Morris <rgm@gnu.org>
26182
26183 * abbrev.c (abbrev_check_chars): New function.
26184 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26185 Call abbrev_check_chars to check abbrev characters are word
26186 constituents. Doc fix.
26187
261882007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26189
26190 * process.c (Fstart_process, Fmake_network_process)
26191 (read_process_output): Fix up last changes.
26192
261932007-07-16 Eli Zaretskii <eliz@gnu.org>
26194
26195 * makefile.w32-in (clean): Don't delete *~.
26196
261972007-07-16 Andreas Schwab <schwab@suse.de>
26198
26199 * window.c (Fdisplay_buffer): Use NILP.
26200 (Fset_window_scroll_bars): Likewise.
26201
262022007-07-15 Martin Rudalics <rudalics@gmx.at>
26203
26204 * window.c (window_min_size_2): New function.
26205 (window_min_size_1, size_window, Fdisplay_buffer)
26206 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26207 windows without mode- or header-lines when window-min-height is
26208 too small.
26209 (size_window): Reset nodelete_p after testing it, following an
26210 earlier note by Kim F. Storm.
26211 (display_buffer): Do not set split_height_threshold to twice the
26212 value of window_min_height to avoid changing the value of a
26213 customizable variable. Rather explicitly check whether the
26214 height of the window that shall be splitted is at least as large
26215 as split_height_threshold.
26216 (Fwindow_full_width_p): New defun.
26217 (syms_of_window): Defsubr it.
26218
26219 * window.h: Add EXFUN for Fwindow_full_width_p.
26220
262212007-07-14 Jason Rumney <jasonr@gnu.org>
26222
26223 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26224
262252007-07-14 Richard Stallman <rms@gnu.org>
26226
26227 * eval.c (maybe_call_debugger): New function.
26228 (find_handler_clause): Use maybe_call_debugger.
26229 Call it when the handler says `debug'.
26230 Eliminate DEBUGGER_VALUE_PTR.
26231 (Fsignal): Eliminate debugger_value.
26232 (Qdebug): New variable.
26233 (syms_of_eval): Initialize it.
26234
262352007-07-14 Juanma Barranquero <lekktu@gmail.com>
26236
26237 * eval.c (Fprogn):
26238 * keyboard.c (Ftrack_mouse):
26239 * print.c (Fwith_output_to_temp_buffer):
26240 * window.c (Fsave_window_excursion): Doc fix.
26241
262422007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26243
26244 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26245
262462007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26247
26248 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26249 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26250 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26251 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26252 Remove unused encoding_carryover.
26253 * process.c: Adjust all functions accordingly.
26254
262552007-07-12 Richard Stallman <rms@gnu.org>
26256
26257 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26258
262592007-07-11 Jason Rumney <jasonr@gnu.org>
26260
26261 * makefile.w32-in (LIBS): Include OLE32.
26262
26263 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26264 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26265
262662007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26267
26268 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26269 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26270 from a Lisp_Object into a bare pointer.
26271 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26272 Adjust the code correspondingly.
26273
26274 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26275
26276 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26277 (term_show_mouse_face): Remove unused var `j'.
26278 (handle_one_term_event): Remove unused vars `i' and `j'.
26279 Don't cast return value of ttyname since it's not necessary.
26280
262812007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26282
26283 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26284 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26285
26286 * fns.c (map_char_table): Use an array of int for `indices' rather than
26287 an array of Lisp_Objects (which are only ever integers anyway).
26288 (Fmap_char_table): Update caller.
26289 * lisp.h: Update prototype.
26290 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26291 * fontset.c (Ffontset_info):
26292 * casetab.c (set_case_table): Update callers.
26293
26294 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26295
26296 * keymap.c (struct accessible_keymaps_data)
26297 (struct where_is_internal_data): New structures.
26298 (accessible_keymaps_1, where_is_internal_1): Use them to change
26299 interface to adhere to the one used by map_keymap.
26300 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26301 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26302
26303 * keymap.h (map_keymap_function_t): More informative prototype.
26304
263052007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26306
26307 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26308 (looking_at_1): Don't change search_regs and last_thing_searched
26309 if `inhibit-changing-match-data' is non-nil.
26310 (string_match_1, search_buffer, set_search_regs): Likewise.
26311 (syms_of_search): Add Lisp level definition for
26312 `inhibit-changing-match-data' and set it to nil.
26313 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26314 start and end of the match, instead of using values in search_regs.
26315
263162007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26317
26318 * minibuf.c (Fcompleting_read): New value `confirm-only'
26319 for `require-match'.
26320
263212007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26322
26323 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26324 part of the 2007-06-27 change to syms_of_fileio.
26325
263262007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26327
26328 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26329 Check WINDOWP before using XWINDOW. Consolidate return statements.
26330
263312007-06-27 Richard Stallman <rms@gnu.org>
26332
26333 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26334
263352007-06-27 Juanma Barranquero <lekktu@gmail.com>
26336
26337 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26338
263392007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26340
26341 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26342 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26343 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26344 (_free_internal, memalign): Use them.
26345 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26346 Initialize to PTHREAD_MUTEX_INITIALIZER.
26347 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26348 (morecore_nolock): Rename from morecore. All uses changed.
26349 Use only nolock versions of internal allocation functions.
26350 (_malloc_internal_nolock, _realloc_internal_nolock)
26351 (_free_internal_nolock): New functions created from
26352 _malloc_internal, _realloc_internal, and _free_internal.
26353 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26354 Copy hook value to automatic variable before its use.
26355 (memalign): Copy hook value to automatic variable before its use.
26356
263572007-06-26 Kenichi Handa <handa@m17n.org>
26358
26359 * coding.c (Ffind_operation_coding_system): Docstring improved.
26360 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26361
263622007-06-25 David Kastrup <dak@gnu.org>
26363
26364 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26365 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26366 cater for additional parameter.
26367
26368 * keymap.h: Adjust number of parameters to `current-active-maps'.
26369
26370 * doc.c (Fsubstitute_command_keys): Adjust call of
26371 `current-active-maps'.
26372
263732007-06-25 David Kastrup <dak@gnu.org>
26374
26375 * callint.c (Fcall_interactively): Make the parsing of interactive
26376 specs somewhat more readable.
26377
263782007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26379
26380 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26381 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26382 if extended background has already been filled.
26383
263842007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26385
26386 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26387 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26388
26389 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26390 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26391 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26392 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26393 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26394 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26395 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26396 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26397 Run timers during dialog popup.
26398 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26399
264002007-06-21 Jason Rumney <jasonr@gnu.org>
26401
26402 * image.c (convert_mono_to_color_image): Swap fore and background.
26403
264042007-06-20 Jason Rumney <jasonr@gnu.org>
26405
26406 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26407 (w32_free_bdf_font): Unmap memory not handle.
26408
264092007-06-20 Sam Steingold <sds@gnu.org>
26410
26411 * gmalloc.c (__morecore): Fix the declaration to comply with the
26412 definition.
26413
264142007-06-20 Juanma Barranquero <lekktu@gmail.com>
26415
26416 * w32term.c (w32_delete_display): Remove leftover declaration.
26417 (w32_define_cursor, w32_initialize): Make static.
26418
26419 * w32.c (_wsa_errlist): Fix typo in error message.
26420 (init_environment): Ignore any environment variable from the
26421 registry having a null value.
26422
264232007-06-20 Glenn Morris <rgm@gnu.org>
26424
26425 * Makefile.in (LIBGIF): Default to -lgif.
26426
264272007-06-17 Jason Rumney <jasonr@gnu.org>
26428
26429 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26430 unicode strings.
26431
264322007-06-16 Juanma Barranquero <lekktu@gmail.com>
26433
26434 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26435 Fix typo in docstring.
26436
264372007-06-16 Eli Zaretskii <eliz@gnu.org>
26438
26439 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26440 and their keybindings.
26441
264422007-06-15 Chong Yidong <cyd@stupidchicken.com>
26443
26444 * composite.c (update_compositions): Fix last fix.
26445
264462007-06-14 Jason Rumney <jasonr@gnu.org>
26447
26448 * w32.c (get_process_times_fn): New function pointer.
26449 (globals_of_w32): Intialize it if present in kernel32.dll.
26450 (w32_get_internal_run_time): New function.
26451
26452 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26453
264542007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26455
26456 * composite.c (update_compositions): Check the validness of
26457 compositions.
26458
264592007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26460
26461 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26462 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26463
26464 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26465 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26466
26467 * macgui.h (USE_MAC_TOOLBAR): New define.
26468
26469 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26470 Return immediately unless popup is activated.
26471
26472 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26473 background to scroll bar gap.
26474 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26475 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26476 scroll bars on frame edge. Check fringe background extension.
26477 Don't clear extended fringe background area.
26478 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26479 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26480 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26481 [USE_MAC_TOOLBAR]: New macros.
26482 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26483 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26484 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26485 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26486 [USE_MAC_TOOLBAR]: New functions.
26487 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26488 manually if previous repositioning has failed.
26489 (mac_handle_keyboard_event): Use precomputed event kind.
26490 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26491 as tool bar item click. Handle mouse movement over tool bar items.
26492
26493 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26494 toolbar_win_gravity.
26495 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26496 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26497 Add externs.
26498
26499 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26500 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26501
265022007-06-14 Chong Yidong <cyd@stupidchicken.com>
26503
26504 * image.c (search_image_cache): Remove unused variable.
26505
265062007-06-13 Chong Yidong <cyd@stupidchicken.com>
26507
26508 * xfns.c, xmenu.c: Link to xaw3d if available.
26509
265102007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26511
26512 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26513 frame_foreground and frame_background.
26514
26515 * image.c (lookup_image): Save frame foreground and background colors.
26516 (search_image_cache): Check if saved and current frame colors match.
26517
265182007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26519
26520 * regex.c (regex_compile): Remove the `regnum' counter.
26521 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26522
265232007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26524
26525 * term.c: Include intervals.h to declare Fget_text_property.
26526
265272007-06-10 Jason Rumney <jasonr@gnu.org>
26528
26529 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26530
265312007-06-08 Juanma Barranquero <lekktu@gmail.com>
26532
26533 * callint.c (Fcall_interactively):
26534 * editfns.c (Fdelete_and_extract_region):
26535 * fileio.c (Fread_file_name):
26536 * fns.c (Fmapconcat):
26537 * keyboard.c (cmd_error_internal):
26538 * keymap.c (Fkey_description):
26539 * lread.c (openp):
26540 * minibuf.c (read_minibuf):
26541 * search.c (wordify):
26542 * sunfns.c (sel_read):
26543 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26544 * xfns.c (x_default_scroll_bar_color_parameter):
26545 * xmenu.c (menu_help_callback):
26546 * xselect.c (Fx_get_atom_name):
26547 * xterm.c (x_term_init): Use empty_unibyte_string.
26548
265492007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26550
26551 * alloc.c (init_strings): Initialize canonical empty strings.
26552 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26553 canonical empty string when the requested size is 0.
26554
26555 * emacs.c (empty_unibyte_string): Rename from empty_string.
26556 (empty_multibyte_string): New canonical empty string.
26557 (syms_of_emacs): Don't initialize empty_string.
26558
26559 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26560 string, if appropriate.
26561 (empty_unibyte_string, empty_multibyte_string): New externs.
26562 (empty_string): Remove extern.
26563
26564 * lread.c (syms_of_lread): Use empty_unibyte_string.
26565
265662007-06-07 Jason Rumney <jasonr@gnu.org>
26567
26568 * s/ms-w32.h: Don't define HAVE_TZNAME.
26569
26570 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26571
265722007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26573
26574 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26575
26576 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26577 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26578
26579 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26580 Don't call next handler.
26581 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26582 Remove argument. Install handler to application.
26583 (set_frame_menubar): Don't change deep_p.
26584 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26585 FRAME_OUTER_TO_INNER_DIFF_Y.
26586 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26587 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26588 [HAVE_DIALOGS]: New macros.
26589 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26590 Use them.
26591 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26592
26593 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26594 init_service_handler. All callers changed. Return OSStatus value.
26595
26596 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26597 All callers changed so as not to call SetPortWindowPort.
26598 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26599 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26600 mac_draw_string_common.
26601 (mac_draw_image_string_qd): Likewise.
26602 (mac_draw_string_common): Use them. Add INLINE.
26603 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26604 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26605 GetGlobalMouse.
26606 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26607 and FRAME_OUTER_TO_INNER_DIFF_Y.
26608 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26609 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26610 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26611 repositioning window to mac_handle_window_event.
26612 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26613 saving window location to mac_handle_window_event
26614 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26615 (install_menu_target_item_handler): Remove argument in extern.
26616 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26617 Also accept command events.
26618 (do_keystroke): New function created from XTread_socket.
26619 (init_command_handler): Remove functions.
26620 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26621 and save window location by kEventWindowShowing and kEventWindowHiding
26622 handlers here. Don't call next handler for window state change and
26623 focus events.
26624 (mac_handle_application_event, mac_handle_keyboard_event)
26625 [TARGET_API_MAC_CARBON]: New functions.
26626 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26627 kEventWindowShowing and kEventWindowHiding events. Move installation
26628 of mouse, font, text input and menu target item handlers to
26629 install_application_handler.
26630 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26631 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26632 New function.
26633 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26634 Register it.
26635 (XTread_socket) [TARGET_API_MAC_CARBON]:
26636 Consolidate SendEventToEventTarget calls.
26637 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26638 Move application activation handler to mac_handle_application_event.
26639 Move keyboard handler to mac_handle_keyboard_event.
26640 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26641 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26642 init_command_handler. Call install_application_handler.
26643
26644 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26645 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26646
266472007-06-07 Glenn Morris <rgm@gnu.org>
26648
26649 * emacs.c (main): Use `emacs-copyright' in --version output.
26650
266512007-06-06 Chong Yidong <cyd@stupidchicken.com>
26652
26653 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26654
266552007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26656
26657 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26658
26659 * macgui.h: Replace WindowPtr with WindowRef.
26660
26661 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26662 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26663 Replace ControlHandle with ControlRef.
26664 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26665
26666 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26667 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26668 Replace ControlHandle with ControlRef.
26669 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26670 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26671
26672 * macterm.h (struct scroll_bar): Rename member control_handle_low
26673 and control_handle_high to control_ref_low and control_ref_high.
26674 All uses changed.
26675 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26676 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26677 respectively. All uses changed.
26678 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26679 (install_window_handler, remove_window_handler): Replace WindowPtr
26680 with WindowRef in externs.
26681
266822007-06-05 Juanma Barranquero <lekktu@gmail.com>
26683
26684 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26685
266862007-06-03 Nick Roberts <nickrob@snap.net.nz>
26687
26688 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26689
26690 * frame.c (Fmouse_position, Fmouse_pixel_position):
26691 Condition on HAVE_GPM too.
26692
26693 * term.c (term_mouse_highlight): Remove unused variables.
26694 (Fterm_open_connection): Set gpm_zerobased to 1.
26695 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26696 Use zero based co-ordinates.
26697 (handle_one_term_event): Report a drag as mouse movement too.
26698
26699 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26700
267012007-06-03 Chong Yidong <cyd@stupidchicken.com>
26702
26703 * image.c (search_image_cache): New function. Require background
26704 color match if background color is unspecified in the image spec.
26705 (uncache_image, lookup_image): Use it.
26706
267072007-06-01 Juanma Barranquero <lekktu@gmail.com>
26708
26709 * window.c (Fshrink_window): Reflow docstring.
26710
267112007-06-02 Chong Yidong <cyd@stupidchicken.com>
26712
26713 * Version 22.1 released.
26714
267152007-06-01 Richard Stallman <rms@gnu.org>
26716
26717 * xfns.c (x_encode_text): Add GCPRO.
26718
267192007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26720
26721 * xfns.c (x_set_name_internal): Save encoded name before
26722 x_encode_text in case string data is relocated.
26723
267242007-05-31 Richard Stallman <rms@gnu.org>
26725
26726 * buffer.c (syms_of_buffer): Doc fix.
26727
267282007-05-30 Nick Roberts <nickrob@snap.net.nz>
26729
26730 * sysdep.c (init_sys_modes): Add rather than replace with
26731 O_NONBLOCK.
26732
26733 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26734 term_mouse_moveto.
26735
26736 * termhooks.h (term_mouse_moveto): New extern.
26737
26738 * term.c (mouse_face_window): Rename...
26739 (Qmouse_face_window): ...to this.
26740 (term_show_mouse_face, term_clear_mouse_face)
26741 (term_mouse_highlight): Use Qmouse_face_window.
26742 (term_mouse_moveto): New function.
26743 (term_mouse_position): Make it work.
26744 (syms_of_term): Uncomment assignment to mouse_position_hook.
26745 Staticpro Qmouse_face_window.
26746
267472007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26748
26749 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26750 around current_column call.
26751
267522007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26753
26754 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26755 * xdisp.c (next_element_from_buffer):
26756 * window.c (delete_window):
26757 * term.c (term_mouse_highlight):
26758 * msdos.c (getdefdir):
26759 * macterm.c (mac_create_bitmap_from_bitmap_data)
26760 (init_font_name_table):
26761 * fns.c (Fsxhash):
26762 * data.c (Fmake_local_variable):
26763 * ccl.c (ccl_driver): Likewise.
26764
267652007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26766
26767 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26768 Call mac_wakeup_from_rne on window size change.
26769
267702007-05-25 Chong Yidong <cyd@stupidchicken.com>
26771
26772 * image.c (uncache_image): Fix typo.
26773
267742007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26775
26776 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26777
267782007-05-22 Richard Stallman <rms@gnu.org>
26779
26780 * xterm.c (x_connection_closed): Remove NO_RETURN.
26781
267822007-05-22 Martin Rudalics <rudalics@gmx.at>
26783
26784 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26785
267862007-05-21 Chong Yidong <cyd@stupidchicken.com>
26787
26788 * image.c (uncache_image): New function.
26789 (Fimage_refresh): New function.
26790
267912007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26792
26793 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26794
267952007-05-20 Nick Roberts <nickrob@snap.net.nz>
26796
26797 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26798 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26799
268002007-05-20 Nick Roberts <nickrob@snap.net.nz>
26801
26802 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26803 conditional on [HAVE_GPM_H].
26804
268052007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26806
26807 * syntax.c (skip_chars): Update syntax-table only after we checked that
26808 the new location is valid.
26809
268102007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26811
26812 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26813 mac_get_window_bounds.
26814
268152007-05-20 Nick Roberts <nickrob@snap.net.nz>
26816
26817 * Makefile.in (LIBGPM): Allow it to be set from configure.
26818 If set then link Emacs with it.
26819
26820 * config.in: Regenerate.
26821
26822 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26823 New externs.
26824
26825 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26826 Include gpm.h.
26827 (handle_one_term_event, term_gpm): New externs.
26828
26829 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26830 and allow it to be interrupted by SIGIO.
26831
26832 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26833 (wait_reading_process_output): Wait on gpm_fd too.
26834 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26835 (add_gpm_wait_descriptor_called_flag): New variable.
26836 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26837
26838 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26839 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26840 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26841 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26842 (make_lispy_event): Add case GPM_CLICK_EVENT.
26843 (read_avail_input): Handle mouse input.
26844
26845 * term.c (write_glyphs_with_face): New function.
26846 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26847 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26848 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26849 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26850 (last_mouse_x, last_mouse_y): New variables.
26851 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26852 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26853 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26854 (Fterm_close_connection): New functions.
26855 (term_init): Initialise mouse_face_window.
26856
268572007-05-19 Chong Yidong <cyd@stupidchicken.com>
26858
26859 * xdisp.c (redisplay_window): If first window line is a
26860 continuation line, recompute the new window start instead of
26861 recentering.
26862
268632007-05-18 Glenn Morris <rgm@gnu.org>
26864
26865 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26866 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26867
268682007-05-17 Glenn Morris <rgm@gnu.org>
26869
26870 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26871
268722007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26873
26874 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26875 dead key repeat and up events.
26876
268772007-05-14 Chong Yidong <cyd@stupidchicken.com>
26878
26879 * image.c (pbm_load): Check image size for monochrome pbm.
26880
268812007-05-13 Chong Yidong <cyd@stupidchicken.com>
26882
26883 * xterm.c (XTread_socket): Revert last change.
26884
268852007-05-12 Chong Yidong <cyd@stupidchicken.com>
26886
26887 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26888
26889 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26890
268912007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26892
26893 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26894 mixup (YAILOM).
26895
268962007-05-07 Andreas Schwab <schwab@suse.de>
26897
26898 * keymap.c (Flookup_key): Fix typo in last change.
26899
269002007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26901
26902 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26903 mapping for unibyte strings.
26904
269052007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26906
26907 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26908 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26909
269102007-04-29 Richard Stallman <rms@gnu.org>
26911
26912 * insdel.c (replace_range): For undo, record insertion first.
26913
269142007-04-29 Andreas Schwab <schwab@suse.de>
26915
26916 * lisp.h (VECSIZE): Use OFFSETOF.
26917
269182007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26919
26920 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26921 disabled lines.
26922
269232007-04-28 Richard Stallman <rms@gnu.org>
26924
26925 * lread.c (read_escape): In a string, \s is always space.
26926
269272007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26928
26929 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26930
26931 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26932 submenu for menu bar items.
26933
26934See ChangeLog.10 for earlier changes.
26935
26936;; Local Variables:
26937;; coding: utf-8
26938;; add-log-time-zone-rule: t
aac0c6e3
MR
26939;; End:
26940
e3eb1dae 26941 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
26942
26943 This file is part of GNU Emacs.
26944
26945 GNU Emacs is free software: you can redistribute it and/or modify
26946 it under the terms of the GNU General Public License as published by
26947 the Free Software Foundation, either version 3 of the License, or
26948 (at your option) any later version.
26949
26950 GNU Emacs is distributed in the hope that it will be useful,
26951 but WITHOUT ANY WARRANTY; without even the implied warranty of
26952 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26953 GNU General Public License for more details.
26954
26955 You should have received a copy of the GNU General Public License
26956 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26957
26958;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40