Fix dependencies according to 2010-08-22T15:14:37Z!dann@ics.uci.edu.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
5f2f0bc1
EZ
12010-08-22 Eli Zaretskii <eliz@gnu.org>
2
b613941b
EZ
3 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
4
a583bbef
EZ
5 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
6 for w32.
7
8 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
9 it's done in nt/config.nt.
10
11 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
12
5f2f0bc1
EZ
13 * unexcoff.c (report_error, make_hdr, write_segment)
14 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
15 Convert argument lists and prototypes to ANSI C.
16 (make_hdr, write_segment): Remove unused variables.
17 (unexec): Remove commented-out line. Initialize `new' to shut up
18 compiler warnings.
19
a7ebc409
DN
202010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
21
22 Simplify termio code.
23 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
24 HAVE_TERMIO code is obsolete.
25 Replace HAVE_TERMIOS conditionals with !DOS_NT.
26 * systty.h: Do not define HAVE_TCATTR.
27 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
28 Do not define EMACS_HAVE_TTY_PGRP. Only define
29 EMACS_GET_TTY_PGRP for !DOS_NT.
30 * sysdep.c: Include sysselect.h unconditionally. Do not include
31 sys/ioctl.h and termios.h, systty.h does it. Use
32 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
33 (init_baud_rate): Remove HAVE_TERMIO code.
34 (child_setup_tty): Remove HAVE_TERMIO code.
35 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
36 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
37 (new_ltchars, new_tchars): Remove, unused.
38 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
39 code. Remove special casing for __mips__, it was a no-op. Remove
40 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
41 (init_sys_modes): Remove HPUX special case.
42 * process.c: Include stdlib.h unconditionally. Do not include
43 fcntl.h, systty.h does it. Remove conditional code for
44 HAVE_SERIAL, it is always true.
45 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
46 always true when SIGNALS_VIA_CHARACTERS is true.
47 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
48 !WINDOWSNT means HAVE_TERMIOS.
49 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
50 conditional, which is true for all HAVE_TERMIOS systems.
51 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
52 instead of HAVE_TERMIOS.
53 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
54 EMACS_HAVE_TTY_PGRP.
55 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
56 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
57 anyway.
58
40629f17
EZ
592010-08-21 Eli Zaretskii <eliz@gnu.org>
60
61 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
62 mirroring pixel positions.
63
d931da8c
DN
642010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
65
b5c76d0c
DN
66 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
67 write only.
68 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
69 malloc_sbrk_used, nothing uses them.
70
74815588
DN
71 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
72 defined, unconditionally defined in lisp.h.
73
f5817d1c
DN
74 * term.c: Do not include <termios.h>, systty.h does it.
75
d931da8c
DN
76 * s/unixware.h (HAVE_TCATTR):
77 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
78 systty.h defines it when HAVE_TERMIOS is defined.
79
ff2de6d2 802010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 81
b43c883c 82 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 83 terminals: add one-character offset for R2L lines.
b43c883c 84
491a1546
EZ
85 * emacs.c <emacs_version>: Add a comment regarding
86 msdos/mainmake.v2's dependency on the syntax of this declaration.
87
2396cbba
EZ
882010-08-20 Eli Zaretskii <eliz@gnu.org>
89
90 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
91 position for R2L lines by mirroring the pixel position wrt the
92 text are box. Improve commentary.
93
7df6150a
AS
942010-08-20 Andreas Schwab <schwab@linux-m68k.org>
95
96 * image.c (imagemagick_clear_image): Remove debugging output.
97
a2e5caf7
SM
982010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
99
100 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
101 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
102 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
103 self-insert-face.
104 (syms_of_cmds): Initialize the new vars.
105
20d60baf
JR
1062010-08-19 Jason Rumney <jasonr@gnu.org>
107
cc477da7
JR
108 * w32menu.c (set_frame_menubar): Remove call to undefined function.
109
20d60baf
JR
110 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
111
2c0ac867
J
1122010-08-19 Jan Djärv <jan.h.d@swipnet.se>
113
114 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
115
93352106
EZ
1162010-08-18 Eli Zaretskii <eliz@gnu.org>
117
118 * xterm.c (x_draw_bar_cursor):
119 * w32term.c (x_draw_bar_cursor): If the character under cursor is
120 R2L, draw the bar cursor on its right rather than on its left.
121
c785836d
SM
1222010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
123
0193499f
SM
124 * eval.c (Fdefmacro): Only obey one declaration.
125
c785836d
SM
126 * casefiddle.c (casify_region): Setup gl_state.
127
9cb728a5
J
1282010-08-18 Jan Djärv <jan.h.d@swipnet.se>
129
130 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
131
e1e18511
J
1322010-08-18 Jan Djärv <jan.h.d@swipnet.se>
133
134 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
135
64cb6c78
J
1362010-08-18 David De La Harpe Golden <david@harpegolden.net>
137
138 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
139 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
140 QPRIMARY => NXPrimaryPboard.
141 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
142 NXPrimaryPboard => QPRIMARY.
143 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
144 NXSecondaryPboard = SecondarySelection.
145 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
146
0c9b8993
GM
1472010-08-18 Joakim Verona <joakim@verona.se>
148
149 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
150 defined:
151 (imagemagick_image_p): New function to test for ImageMagic image.
152 (imagemagick_load): New function to load ImageMagick image.
153 (imagemagick_load_image): New function, helper for imagemagick_load.
154 (imagemagick-types): New function.
155 (Qimagemagick): New Lisp_object.
156 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 157
c3554f68
SM
1582010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
159
160 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
161 is a string.
162
1ff2e434
J
1632010-08-17 Jan Djärv <jan.h.d@swipnet.se>
164
165 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
166 x_set_tool_bar_position handler.
167
0cc56427
EZ
1682010-08-17 Eli Zaretskii <eliz@gnu.org>
169
170 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
171 x_set_tool_bar_position handler, needed to support changes from
172 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
173
e45a249b
JD
1742010-08-16 Jan Djärv <jan.h.d@swipnet.se>
175
921242c6
J
176 * nsselect.m: include keyboard.h for QPRIMARY, remove its
177 declaration (Bug#6863).
573d150b 178 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 179
e45a249b
JD
180 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
181
182 * keyboard.h (QPRIMARY): Declare (Bug#6864).
183
7c23dd44
CY
1842010-08-16 Chong Yidong <cyd@stupidchicken.com>
185
186 * keyboard.c (command_loop_1): Avoid setting selection twice,
187 since it's done in deactivate-mark as well.
188 (Vselect_active_regions): Change default to t. Replace `lazy'
189 with non-default value `only', meaning only set PRIMARY for
190 temporarily active regions.
191
192 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
193 select-active-regions.
194
0005830c
J
1952010-08-15 Jan Djärv <jan.h.d@swipnet.se>
196
197 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
198 isn't a string.
199
603dfc72
AS
2002010-08-15 Andreas Schwab <schwab@linux-m68k.org>
201
202 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
203
c25ce9d0
J
2042010-08-15 Jan Djärv <jan.h.d@swipnet.se>
205
c3554f68
SM
206 * keyboard.c (parse_tool_bar_item): malloc buf.
207 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
208 new_lbl (Bug#6855).
c25ce9d0 209
5872c762
EZ
2102010-08-14 Eli Zaretskii <eliz@gnu.org>
211
b236615c
EZ
212 * xterm.c (x_draw_stretch_glyph_string):
213 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
214 the cursor on the right edge of the stretch glyph.
215
c3554f68
SM
216 * xdisp.c (window_box_right_offset, window_box_right):
217 Fix commentary.
b236615c 218
5872c762
EZ
219 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
220 direction when point is inside a run of whitespace characters.
221
222 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
223
e66f9a1b
JR
2242010-08-14 Jason Rumney <jasonr@gnu.org>
225
226 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
227
79d6f59e
CY
2282010-08-14 Chong Yidong <cyd@stupidchicken.com>
229
230 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
231
1c9b4129
JR
2322010-08-13 Jason Rumney <jasonr@gnu.org>
233
234 * w32menu.c (simple_dialog_show): Use unicode message box if available.
235 (MessageBoxW_Proc): New function typedef.
236 (unicode-message-box): New function pointer.
237 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
238
2b4e6277
J
2392010-08-13 Jan Djärv <jan.h.d@swipnet.se>
240
241 * frame.h (Qtool_bar_position): Declare.
242
243 * xfns.c (Fx_create_frame): Call x_default_parameter for
244 Qtool_bar_position.
245
94c97d85
EZ
2462010-08-13 Eli Zaretskii <eliz@gnu.org>
247
8ee81892
EZ
248 * unexcoff.c: Remove the parts used when "emacs" is not defined.
249 (report_error, report_error_1): Ditto.
250 (write_segment): Remove "#if 0" unused code.
251 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
252 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
253 (start_of_text): Remove unused function (was used only if NO_REMAP
254 was NOT defined).
255
891ef8f7
EZ
256 * msdos.c (IT_set_face): Fix format string to match argument
257 types.
258 (IT_write_glyphs, IT_note_mode_line_highlight)
259 (IT_set_frame_parameters): Remove unused variables.
260 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
261 (IT_set_terminal_modes): Disambiguate expression in if clause.
262 (Fmsdos_remember_default_colors): Return Qnil.
263 (IT_set_frame_parameters): Add parens to disambiguate boolean
264 expression for logging the cursor type to termscript.
265 (keyboard_layout_list, keypad_translate_map)
266 (grey_key_translate_map): Add braces in inner initializers.
267 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
268 (dos_rawgetc): Remove unused label.
269 (XMenuActivate): Add braces to remove ambiguous `else'.
270 (dos_ttraw): Always return a value.
271 (spawnve): Declare.
272 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
273
274 * dosfns.h (x_set_title): Declare.
275
276 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
277 Remove unused variables.
278
279 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
280 variables.
281 (init_dosfns): Declare get_lim_data.
282 (system_process_attributes): Declare Fget_internal_run_time.
283
38e41e0e
EZ
284 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
285 list to be consistent with menu.h.
286
94c97d85
EZ
287 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
288 warnings due to mixing of "char *" and "const char *".
289
c5683ceb
SM
2902010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
291
292 Introduce a new comment style "c" flag.
293 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
294 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
295 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
296 (syntax_prefix_flag_p): New function.
297 (Fstring_to_syntax): Understand new "c" flag.
298 (Finternal_describe_syntax_value): Recognize new flag; use the
299 SYNTAX_FLAGS_* macros.
300 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
301 comment style to accomodate the new styles.
302 (back_comment, forw_comment, Fforward_comment, scan_lists)
303 (scan_sexps_forward): Update code to obey the new comment style flag.
304
305 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
306
307 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
308
7aee76f4
J
3092010-08-11 Jan Djärv <jan.h.d@swipnet.se>
310
3a46642b
J
311 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
312 first.
94dff98f 313 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
314
315 * gtkutil.h (xg_check_special_colors): Declare.
316
317 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
318 (xg_create_frame_widgets): Connect theme name changes to
319 style_changed_cb.
320
42ca4633
J
321 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
322 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
323 (x_term_init): Use char[] display_opt and name_opt instead of
324 string literal. file is const char*.
325
326 * xsmfns.c (NOSPLASH_OPT): Change to char[].
327 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
328 props. Free them at the end.
329
330 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
331
c5683ceb
SM
332 * xrdb.c (get_system_app): Make path const and use char *p for
333 non-const char.
42ca4633
J
334
335 * xmenu.c (Fx_popup_dialog): error_name is const char*.
336 (xmenu_show): error parameter is const char **. pane_string is const
337 char *.
338 (button_names): Is const char *.
339 (xdialog_show): error_name and pane_string is const.
340
341 * process.h (synch_process_death): Is const char*.
342
343 * w32menu.c (w32_menu_show):
344 * nsmenu.m (ns_menu_show): error parameter is const char **.
345
346 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
347 is const char **.
348
349 * menu.c (Fx_popup_menu): error_name is const.
350
351 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
352 with unsigned char and XtPointer with void *.
353
354 * gtkutil.h: Replace widget_value with struct _widget_value.
355 (enum button_type, struct _widget_value): Remove and use the one from
356 keyboard.h.
357
358 * gtkutil.c (get_utf8_string): Always return an allocated string.
359 Parameter is const.
360 (create_dialog, xg_create_one_menuitem, create_menus)
361 (xg_item_label_same_p, xg_update_menu_item): Free result from
362 get_utf8_string.
363 (xg_separator_p, xg_item_label_same_p): label is const.
364
365 * font.h (font_open_by_name): Make name const.
366
367 * font.c (font_open_by_name): Make name const.
368
369 * floatfns.c (matherr): Use a const char* variable for x->name.
370
371 * emacs.c (main): Pass char[] to putenv instead of literal.
372
373 * callproc.c (synch_process_death): Make const.
374 (Fcall_process): Make signame const.
375
9c5bd55a
J
376 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
377 (addDisplayItemWithImage): Use const char*.
378
379 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
380 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
381
382 * nsfont.m (ns_descriptor_to_entity): Use const char*.
383
384 * keyboard.h (_widget_value): name, value and key are const char*.
385
7aee76f4
J
386 * unexmacosx.c (unexec_error): Use const char *.
387
09d93395
DN
3882010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
389
390 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 391 (font_parse_name, font_open_by_name):
09d93395 392 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 393 (font_parse_name, font_open_by_name): Remove const.
09d93395 394
671d409f
AS
3952010-08-09 Andreas Schwab <schwab@linux-m68k.org>
396
397 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
398 definition.
399
400 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
401 * m/amdx86-64.h: Likewise.
402 * m/arm.h: Likewise.
403 * m/hp800.h: Likewise.
404 * m/ia64.h: Likewise.
405 * m/ibmrs6000.h: Likewise.
406 * m/ibms390.h: Likewise.
407 * m/intel386.h: Likewise.
408 * m/iris4d.h: Likewise.
409 * m/m68k.h: Likewise.
410 * m/macppc.h: Likewise.
411 * m/mips.h: Likewise.
412 * m/sh3.h: Likewise.
413 * m/sparc.h: Likewise.
414 * m/template.h: Likewise.
415 * m/vax.h: Likewise.
416 * m/xtensa.h: Likewise.
417 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
418 WORDS_BIG_ENDIAN.
419 * lisp.h: Likewise.
420 * md5.c: Likewise.
421 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
422
8ea90aa3
DN
4232010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
424
425 Use const char* instead of char*.
426 Reduce the number of warnings with -Wwrite-strings.
427 * xrdb.c (get_environ_db, get_system_name):
428 * unexelf.c (find_section):
429 * term.c (string_cost, string_cost_one_line, per_line_cost)
430 (get_named_tty, init_tty):
431 * sysdep.c (sys_subshell):
432 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
433 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
434 * search.c (Freplace_match):
435 * process.c (Fmake_network_process, send_process, init_process):
436 * lread.c (Fload, init_lread):
437 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
438 * keyboard.c (parse_tool_bar_item, struct event_head):
439 * gtkutil.h (xg_get_font_name):
440 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
441 (make_widget_for_menu_item, make_menu_item, create_menus)
442 (xg_make_tool_item):
443 * font.c (parse_matrix, font_parse_name):
444 * floatfns.c (rounding_driver, float_error_fn_name):
445 * filelock.c (get_boot_time_1, lock_file_1):
446 * fileio.c (barf_or_query_if_file_exists, check_writable):
447 * editfns.c (get_system_name, get_operating_system_release)
448 (Fencode_time, Fset_time_zone_rule):
449 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
450 * buffer.c (defvar_per_buffer): Use const.
451
7815fe19 4522010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5
KH
453
454 * charset.c: Include <stdlib.h>
455 (struct charset_sort_data): New struct.
456 (charset_compare): New function.
457 (Fsort_charsets): New funciton.
458 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
459
460 * coding.c (decode_coding_iso_2022): Fix checking of dimension
461 number in CTEXT extended segment.
462
7815fe19 4632010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
464
465 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
466 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
467
7815fe19 4682010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
469
470 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
471 (Fhash_table_size): Fix typos in docstrings.
472 (Fmake_hash_table): Doc fix.
473
7815fe19 4742010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
475
476 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
477 Doc fix (bug#5625).
478
7815fe19 4792010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
480
481 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
482 the MSDOS definition.
483
1b6d8cf0
DN
4842010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
485
675e2c69
DN
486 Use const char* instead of char*.
487 * xterm.c (x_create_toolkit_scroll_bar):
488 * xfont.c (xfont_list_pattern):
489 * xfns.c (x_default_scroll_bar_color_parameter)
490 (xic_create_fontsetname, x_default_font_parameter)
491 (x_screen_planes):
492 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
493 (store_mode_line_string, decode_mode_spec, display_string):
494 * menu.c (digest_single_submenu):
495 * keymap.h (initial_define_key, initial_define_lispy_key):
496 * keymap.c (initial_define_key, initial_define_lispy_key):
497 * image.c (image_error, image_keyword):
498 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
499 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
500 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
501 (ftfont_list, ftfont_match):
502 * frame.c (frame_parm_table):
503 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
504 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
505 (font_add_log, font_deferred_log):
506 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
507 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
508 (font_add_log, font_deferred_log):
509 * emacs.c (argmatch):
510 * dispextern.h (struct it):
511 * coding.c (ENCODE_DESIGNATION):
512 * charset.c (define_charset_internal): Use const.
513
25717ca1
DN
514 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
515
c5683ceb
SM
516 * xrdb.c: Remove include guard.
517 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
518 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
519 realloc->xrealloc instead of using #defines.
520
efb41e21
EZ
5212010-08-08 Eli Zaretskii <eliz@gnu.org>
522
cd21226d 523 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
524 * editfns.c (Fline_beginning_position, Fline_end_position):
525 State in the doc strings that start and end of line are in the
526 logical order.
cd21226d 527
efb41e21
EZ
528 * xdisp.c (display_line): Move the handling of overlay arrow after
529 the call to find_row_edges. (Bug#6699)
530
746812d9
CY
5312010-08-07 Chong Yidong <cyd@stupidchicken.com>
532
533 * keyboard.c (command_loop_1):
534 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
535
9852377f
CY
5362010-08-07 Chong Yidong <cyd@stupidchicken.com>
537
538 * insdel.c (prepare_to_modify_buffer): Save active region text to
539 Vsaved_region_selection.
540
541 * xselect.c (QPRIMARY): Move to keyboard.c.
542
543 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
544 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
545 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 546
0e9c8657
JB
5472010-08-07 Juanma Barranquero <lekktu@gmail.com>
548
549 * alloc.c (lisp_malloc):
550 * buffer.c (set_buffer_internal, set_buffer_internal_1):
551 * charset.h (emacs_mule_charset):
552 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
553 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
554 (bitch_at_user):
555 * lisp.h (Fcheck_coding_system, Fget_text_property)
556 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
557 Remove duplicate declarations.
558
648801d1
DN
5592010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
560
32bc6709
DN
561 * process.c: Simplify include logic.
562
3ef1d108
DN
563 * keyboard.h (quit_char): Add declaration.
564 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
565 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
566 Add declarations.
3ef1d108
DN
567 * sysdep.c:
568 * w32.c: Remove the above declarations.
569
97ec208f
DN
570 Remove extern declarations in .c files, .h files have them.
571 * xterm.c:
572 * xdisp.c:
97ec208f
DN
573 * msdos.c:
574 * image.c:
575 * gtkutil.c:
576 * fileio.c:
577 * eval.c: Remove declarations.
578
94eed851
DN
579 * frame.c (frame_params): Make const.
580
36e053eb
DN
581 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
582
0e843971
DN
583 * emacs.c (emacs_copyright, emacs_version): Make static.
584 (Vinitial_window_system, Vauto_save_list_file_name)
585 (Vinhibit_redisplay): Remove declarations.
586 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
587 for AIX.
588
648801d1
DN
589 Use const for some arrays and functions.
590 * xterm.h (xg_set_icon_from_xpm_data):
591 * xfns.c (xg_set_icon_from_xpm_data):
592 * term.c (fkeys):
593 * keyboard.c (lispy_accent_keys, lispy_function_keys)
594 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
595 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
596 (frame.c frame_parms):
597 * emacs-icon.h (gnu_xpm_bits):
598 * callint.c (callint_argfuns): Use const.
599
8646d999
J
6002010-08-06 Jan Djärv <jan.h.d@swipnet.se>
601
602 * sysdep.c: Move include term.h last of includes (Bug#6812).
603
cb4545ad
EZ
6042010-08-06 Eli Zaretskii <eliz@gnu.org>
605
606 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
607
608 * msdos.c (IT_display_cursor): Log cursor position on termscript.
609
610 * .gdbinit (pgx): Display the avoid_cursor_p flag.
611
da7e2be6
JB
6122010-08-06 Juanma Barranquero <lekktu@gmail.com>
613
614 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
615
3d608a86
J
6162010-08-06 Jan Djärv <jan.h.d@swipnet.se>
617
7908fb60
J
618 * xterm.h (x_get_focus_frame): Declare.
619
620 * keyboard.h (poll_for_input_1): Unconditionally declare.
621
4094bf36
J
622 * nsterm.h (x_set_menu_bar_lines): Declare.
623
624 * window.c: Don't include menu.h, it depends on lots of other .h-files.
625
3d608a86
J
626 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
627
628 * window.c: Include menu.h.
629
630 * unexmacosx.c (print_region_list, print_regions)
631 (build_region_list, find_emacs_zone_regions)
632 (unexec_regions_merge, read_load_commands, dump_it)
633 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
634
635 * term.c: Check HAVE_SYS_IOCTL_H.
636
686b968e 637 * sysdep.c: Check HAVE_TERM_H.
3d608a86 638
686b968e 639 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
640
641 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
642 (ns_ring_bell, ns_defined_color, hide_hourglass)
643 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
644 Convert to ANSI C prototypes.
645 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
646 before code.
647
648 * nsterm.h : Include sysselect.h.
649 (x_sync, x_get_focus_frame, x_set_mouse_position)
650 (x_set_mouse_pixel_position, x_make_frame_visible)
651 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
652 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
653 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
654 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 655 Declare.
3d608a86
J
656
657 * nsmenu.m (popup_activated, name_is_separator)
658 (syms_of_nsmenu): Convert to ANSI C prototypes.
659 (runMenuAt): Prototypes and move declarations before code.
660
661 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
662
663 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
664 prototypes.
665
666 * nsfns.m (have_menus_p, ns_display_info_for_name)
667 (x_set_cursor_type, ns_appkit_version_str)
668 (ns_appkit_version_int, ns_do_applescript)
669 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
670 (syms_of_nsfns): Convert to ANSI C prototypes.
671
672 * menu.h (x_set_menu_bar_line): Declare.
673 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
674
675 * lisp.h (fmod_float): Declare.
676
677 * image.c (xpm_scan, xpm_make_color_table_v)
678 (xpm_put_color_table_v, xpm_get_color_table_v)
679 (xpm_make_color_table_h, xpm_put_color_table_h)
680 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
681 (xpm_load): Convert to ANSI C prototypes.
682
683 * emacs.c: Include nsterm.h if HAVE_NS.
684
685 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
686
fce70521
DN
6872010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
688
689 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
690 subprocesses, only MSDOS does not define HAVE_SOCKETS.
691 (socket_options): Use const char* for name.
692
a11889ab
JB
6932010-08-06 Juanma Barranquero <lekktu@gmail.com>
694
695 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
696
697 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
698 Don't declare xmalloc_widget_value and digest_single_submenu.
699
700 * w32font.c (Qlatin): Remove declaration.
701
702 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
703
c95b508f 704 * dired.c (compile_pattern): Restore declaration.
a11889ab 705
6254cdda
DN
7062010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
707
04bab72c
DN
708 Remove extern declarations in .c files, .h files have them.
709 * data.c:
710 * dired.c:
711 * editfns.c:
712 * filelock.c:
713 * fns.c:
714 * font.c:
715 * fontset.c:
716 * frame.c:
717 * fringe.c:
718 * ftfont.c:
719 * gtkutil.c:
720 * indent.c:
721 * keyboard.c:
722 * keymap.c:
723 * lread.c:
724 * menu.c:
725 * print.c:
726 * search.c:
727 * sound.c:
728 * window.c:
729 * xdisp.c:
730 * xfaces.c:
731 * xfns.c:
732 * xfont.c:
733 * xftfont.c:
734 * xmenu.c:
735 * xterm.c: Remove declarations.
736
dff94ed5
DN
737 Cleanup syssignal.h.
738 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
739 (main_thread): Move down to remove #ifdef.
740 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
741 Remove conditional definition following unconditional ones.
742
99f3388e
DN
743 * lisp.h: Remove HAVE_SHM code, unused.
744 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
745 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
746 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
747 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
748 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
749 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
750 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
751 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
752 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
753 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
754 (Qwindow_scroll_functions, Vafter_load_alist)
755 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
756 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
757 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
758 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
759 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
760 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
761 (initial_argv, last_nonmenu_event, load_in_progress)
762 (noninteractive_need_newline, scroll_margin): Add declarations.
763
764 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
765 declarations, menu.h has them.
766 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
767 (Vinput_method_function, Qinput_method_function)
768 (Qevent_symbol_element_mask, last_event_timestamp):
769 * dispextern.h (Voverflow_newline_into_fringe):
770 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
771 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
772 (syms_of_w32font, syms_of_nsfont):
773 * fontset.h (find_font_encoding, Qlatin):
774 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
775 (Vtool_bar_mode, set_frame_menubar):
776 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
777 * xterm.h (Qx_gtk_map_stock):
778 * keymap.h (meta_prefix_char): Add declarations.
779
9f5dd6f2
DN
780 * term.c: Remove dead code.
781
6254cdda
DN
782 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
783 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
784 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
785 which is what was there before BSD_PGRPS was removed.
786
29cf3e20
EZ
7872010-08-05 Eli Zaretskii <eliz@gnu.org>
788
789 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
790
791 * unexcoff.c: Renamed from unexec.c.
792
aaa0a19a
SM
7932010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
794
795 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
796
8d1d9587
JB
7972010-08-03 Johan Bockgård <bojohan@gnu.org>
798
799 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 800 (Bug#6744)
8d1d9587 801
9a747ba6
JD
8022010-08-02 Jan Djärv <jan.h.d@swipnet.se>
803
4d464ae4
JD
804 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
805 to TRUE if depth of screen is < 16.
806
ac01763e
JD
807 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
808 USE_GTK_TOOLTIP.
e0d62a9b
JB
809 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
810 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 811 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
812 USE_GTK_TOOLTIP.
813 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
814
815 * xterm.h (USE_GTK_TOOLTIP): New define.
816 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
817
9a747ba6
JD
818 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
819 to Control-D (Bug#6771).
820
7b0815ba
JB
8212010-08-02 Juanma Barranquero <lekktu@gmail.com>
822
823 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
824 Wording by Drew Adams <drew.adams@oracle.com>.
825
aa1859f5
J
8262010-08-01 Jan Djärv <jan.h.d@swipnet.se>
827
828 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
829 ttip_lbl.
830
831 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
832 calling gtk_widget_queue_draw.
833 (x_free_frame_resources): Call xg_free_frame_widgets.
834
835 * xfns.c (x_gtk_use_system_tooltips): New variable.
836 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
837 new gtkutil tooltip functions to show the tooltip.
838 (Fx_hide_tip): Call xg_hide_tooltip.
839 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
840
841 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
842 (xg_show_tooltip, xg_hide_tooltip): Declare.
843
844 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
845 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
846 New functions.
aa1859f5
J
847 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
848 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
849 Remove code that is commented out.
850
76417ef4
SM
8512010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
852
853 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
854
16041401
CY
8552010-07-31 Chong Yidong <cyd@stupidchicken.com>
856
857 * xselect.c (x_own_selection): Use list4.
858
2c09a58f
DN
8592010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
860
861 * buffer.c (Qwindow): Do not define, already defined in data.c.
862 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
863
59df9fdd 8642010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 865
59df9fdd
JB
866 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
867 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
868 * config.in: Undef HAVE_DIRENT_H.
1c97e857 869 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 870 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 871
1b231651
DN
8722010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
873
874 Rename s/usg5-4.h -> s/usg5-4-common.h.
875 * s/usg5-4.h: Rename file to ...
876 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
877 * s/unixware.h:
878 * s/sol2-6.h:
879 * s/irix6-5.h: Update includes accordingly.
880
bfeabdc3
JD
8812010-07-29 Jan Djärv <jan.h.d@swipnet.se>
882
2ebf1083
J
883 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
884
bfeabdc3 885 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
886 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
887 Remove toolbar_height.
888 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
889 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
890 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
891 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
892
893 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
894
895 * xfns.c (x_set_tool_bar_position): New function.
896 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
897 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 898 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
899
900 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
901 and FRAME_TOOLBAR_LEFT_WIDTH.
902
903 * gtkutil.h (xg_change_toolbar_position): Declare.
904
905 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
906 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
907 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
908 (xg_create_frame_widgets): Create a hobox for placing widgets
909 vertically. Use gtk_box_pack_start.
910 (xg_height_or_width_changed): Renamed from xg_height_changed.
911 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
912 (xg_update_frame_menubar, free_frame_menubar): Change to
913 xg_height_or_width_changed.
914 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
915 size correctly. Remove hardcoded 4, instead use handlebox size -
916 toolbar size.
917 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 918 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
919 (xg_pack_tool_bar): POS is a new parameter.
920 Set orientation of tool bar based on pos.
921 Only make handlebox_widget if NULL.
922 Check if tool bar goes to vbox or hbox depending on pos.
923 (xg_update_tool_bar_sizes): New function.
686b968e 924 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
925 height, call xg_update_tool_bar_sizes instead.
926 (free_frame_tool_bar): Remove from hbox or vbox depending on
927 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
928 (xg_change_toolbar_position): New function.
929
930 * frame.h (struct frame): Add tool_bar_position.
931 (Qbottom): Declare.
932
933 * frame.c (Qtool_bar_position): New variable.
934 (make_frame): Set tool_bar_position to Qtop.
935 (frame_parms): Add tool-bar-position.
936 (x_report_frame_params): Store tool_bar_position.
937 (x_set_fringe_width): Reset wm size hint after fringe changes.
938
26469a38
DN
9392010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
940
941 Make lisp_time_argument declaration work on all systems.
942 * lisp.h (lisp_time_argument): Move declaration ...
943 * systime.h (lisp_time_argument): ... here
944 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
945
8848b728
JD
9462010-07-29 Jan Djärv <jan.h.d@swipnet.se>
947
948 * vm-limit.c (POINTER): Add typedef for it.
949 (start_of_data): Change return type from POINTER to char *.
950
951 * frame.h (Qtty_color_mode): Move declaration out of ifdef
952 HAVE_WINDOW_SYSTEM.
953
76fd1ee9
DN
9542010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
955
0441987e
DN
956 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
957 Remove reference to __osf__, unused.
958
56a000c7
DN
959 * mem-limits.h: Remove duplicated includes.
960 (NULL): Remove definition, unused.
961 (POINTER): Remove definition.
962 (start_of_data): Use char* in prototype, as the function
963 definition does.
964
e6cba650
DN
965 Remove extern declarations from .c files, and them to .h files.
966 * keyboard.h (Qhelp_echo, waiting_for_input)
967 (input_available_clear_time, ignore_mouse_drag_p)
968 (Vdouble_click_time, real_this_command, Vthis_original_command):
969 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
970 (Voverriding_local_map_menu_flag):
971 * lisp.h (Qinteractive_form, use_file_dialog)
972 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
973 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
974 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
975 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
976 (Qfunction, debug_on_next_call, Qfield)
977 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
978 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
979 (Qfile_directory_p, Qinsert_file_contents)
980 (Qcompletion_ignore_case, Qcompletion_ignore_case)
981 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
982 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
983 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
984 (Qminibuffer_prompt)
985 (Vtemporary_file_directory,char_ins_del_vector, Qface):
986 * xterm.h (gray_bitmap_width, gray_bitmap_height)
987 (gray_bitmap_bits, xic_create_fontsetname):
988 * coding.h (Vtranslation_table_for_input): Add extern declarations.
989
990 * xsmfns.c (Vuser_login_name):
991 * xrdb.c (Vdouble_click_time):
992 * xfaces.c (xic_create_fontsetname):
993 * w32select.c (waiting_for_input):
994 * print.c (minibuffer_auto_raise):
995 * msdos.c (Qhelp_echo):
996 * macros.c (real_this_command):
997 * keymap.c (Voverriding_local_map):
998 * xterm.c (poll_for_input_1, gray_bitmap_width)
999 (gray_bitmap_height, gray_bitmap_bits;
1000 * xmenu.c ( Voverriding_local_map)
1001 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1002 (use_file_dialog, Xt_app_con):
1003 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1004 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1005 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1006 (Qtool_bar_lines, ignore_mouse_drag_p):
1007 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1008 (Qrear_nonsticky, nconc2):
1009 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1010 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1011 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1012 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1013 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1014 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1015 (gc_in_progress):
1016 * doc.c (Voverriding_local_map, Qremap):
1017 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1018 (Vcompletion_regexp_list):
1019 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1020 (Qcompletion_ignore_case):
1021 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1022 (Vhistory_length, Vthis_original_command, real_this_command)
1023 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1024 * image.c (Qrisky_local_variable):
1025 * fontset.c (QCname):
1026 * fns.c (minibuffer_auto_raise, QCname):
1027 * dispnew.c (char_ins_del_cost):
1028 * composite.c (font_fill_lglyph_metrics):
1029 * cmds.c (Qface, Vtranslation_table_for_input):
1030 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1031 * ccl.c (charset_unicode):
1032 * callproc.c (Vtemporary_file_directory):
1033 * buffer.c (emacs_strerror): Remove extern declarations.
1034
1035 * data.c (Qwindow): Make non-static, used from other files too.
1036 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1037
76fd1ee9
DN
1038 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1039 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1040 * s/usg5-4.h (COFF):
1041 * s/template.h:
1042 * s/msdos.h (COFF, NO_REMAP):
1043 * s/ms-w32.h (NO_REMAP):
1044 * s/hpux10-20.h (NO_REMAP):
1045 * m/sparc.h (SEGMENT_MASK):
1046 * m/m68k.h (NO_REMAP):
1047 * m/intel386.h (SEGMENT_MASK):
1048 * m/arm.h (NO_REMAP):
1049 * m/alpha.h (COFF):
1050 * m/template.h: Remove references to unused defines.
1051
8a52f00a
JD
10522010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1053
1054 * xsettings.c (Ftool_bar_get_system_style): Also check for
1055 Qtext_image_horiz.
1056
1057 * xdisp.c (Qtext_image_horiz): Define.
1058 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 1059 to documentation of tool-bar-style.
8a52f00a
JD
1060
1061 * lisp.h (Qtext_image_horiz): Declare.
1062
1063 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1064 style text_image_horiz.
1065
89dc303e
DN
10662010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1067
60799703
DN
1068 * emacs.c (Fkill_emacs): Remove return statement.
1069
37254dc1
DN
1070 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1071 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1072 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1073 local extern declarations.
1074
71c7345a
DN
1075 * xmenu.c: Do not included lwlib.h, not needed.
1076
6ba577cb
DN
1077 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1078
fdb183d6
DN
1079 * process.c: Move definitions earlier to minimize #ifdefs.
1080
1081 * xterm.h (x_get_customization_string, x_load_resources)
1082 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1083 (x_check_errors, x_property_data_to_lisp, defined_color)
1084 (xic_set_xfontset, x_defined_color): Use const.
1085
1086 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1087 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1088
1089 * xselect.c (selection_data_to_lisp_data)
1090 (x_property_data_to_lisp):
1091 * xrdb.c (x_get_string_resource, file_p)
1092 (x_get_customization_string, magic_file_p, search_magic_path)
1093 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1094 (x_get_string_resource): Use const.
1095
1096 * xfns.c: Include xlwmenu.h when USE_LUCID.
1097 (x_defined_color, xic_set_xfontset): Use const.
1098 (Fx_hide_tip): Remove local extern declaration.
1099
1100 * xfaces.c (Qmouse_face): Remove declaration.
1101 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 1102 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
1103
1104 * xdisp.c (do_mouse_tracking): Remove declaration.
1105 (add_to_log): Use const.
1106
1107 * minibuf.c (Qmouse_face): Remove declaration.
1108
1109 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1110
1111 * keyboard.h (do_mouse_tracking): Add declaration.
1112
1113 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1114 (QCdata, QCtype, Qcenter): Remove declarations.
1115
1116 * frame.c (x_get_resource_string, x_get_string_resource)
1117 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1118 (x_default_parameter): Use const.
1119
1120 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1121 (QCheight, QCsize, QCname): Remove declarations.
1122
1123 * emacs.c (main): Remove local extern declaration.
1124
1125 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1126 declarations.
1127
1128 * dispnew.c: Remove duplicate #include <unistd.h>.
1129 (update_window, update_frame_1, init_display): Remove local extern
1130 declarations.
1131
1132 * dispextern.h (add_to_log): Remove declaration.
1133 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1134 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1135
1136 * dired.c (scmp): Add const.
1137 (directory_files_internal): Remove local extern declaration.
1138
1139 * data.c (Finteractive_form): Use const.
1140
1141 * composite.c (syms_of_composite): Remove local extern declarations.
1142
1143 * charset.c (add_to_log): Remove declaration.
1144
1145 * character.c (strwidth, parse_str_to_multibyte): Add const.
1146
1147 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1148
1149 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1150
89dc303e 1151 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
1152 (Lisp_Subr): Make doc and intspec constant.
1153 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1154 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1155 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1156 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1157 (display_arg): Add declarations.
89dc303e 1158
0ed082fe 11592010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
1160
1161 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1162
0ed082fe
JB
1163 * window.c (Fwindow_height): Doc fix (bug#6518).
1164
11652010-07-27 Juanma Barranquero <lekktu@gmail.com>
1166
1167 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1168
ccaf0336
DN
11692010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1170
977105dc
DN
1171 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1172 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1173 functions.
1174
f5ada890
DN
1175 * frame.h (Qtty_color_mode): Add declaration.
1176
ccaf0336
DN
1177 * lisp.h (Ftop_level, Fexit_recursive_edit)
1178 (Fabort_recursive_edit): Mark as NO_RETURN.
1179
dfe3c90f
KH
11802010-07-26 Kenichi Handa <handa@m17n.org>
1181
1182 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 1183 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 1184
7d383292
JB
11852010-07-26 Juanma Barranquero <lekktu@gmail.com>
1186
1187 * lread.c (unreadpure, mapatoms_1): Make static.
1188
da31e629
JB
11892010-07-25 Juanma Barranquero <lekktu@gmail.com>
1190
1191 * terminfo.c (tparam): Fix prototype of tparm.
1192
7bfa6d77
AS
11932010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1194
dcc19aac
AS
1195 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1196 find start of text segment.
1197 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1198 is defined.
1199
7bfa6d77
AS
1200 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1201
63f9a672
KB
12022010-07-25 Ken Brown <kbrown@cornell.edu>
1203
1204 * vm-limit.c (check_memory_limits): Fix previous change;
1205 accidentally reverted an earlier change.
1206
24933075
KB
12072010-07-25 Ken Brown <kbrown@cornell.edu>
1208
1209 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1210 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1211
361358ea
JB
12122010-07-25 Juanma Barranquero <lekktu@gmail.com>
1213
1214 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1215 * dired.c (opendir, readdir): Fix prototypes.
1216 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1217 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1218 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1219 (telldir): Remove declaration.
1220 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1221 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1222 * syssignal.h (strsignal): Fix prototype.
1223 * term.c (tparam): Fix prototype.
1224 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1225 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1226 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1227 and __morecore.
1228 * w32gui.h (XParseGeometry): Fix prototype.
1229 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1230 * w32term.c (my_set_focus): Declare inside #if 0.
1231 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1232 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1233 (drain_message_queue, get_next_msg, post_msg, parse_button)
1234 (ClipboardSequence_Proc): Fix prototypes.
1235 (wait_for_sync): Remove declaration.
1236
630b9592
JB
12372010-07-24 Juanma Barranquero <lekktu@gmail.com>
1238
1239 * w32fns.c (w32_to_x_color): Remove, unused.
1240
6a0d6611
AS
12412010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1242
1243 * lisp.h: Remove leftover P_.
1244
4e8608ff
DN
12452010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1246
1247 * ecrt0.c, unexalpha.c: Remove files, unused.
1248
c8197983
AS
12492010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1250
1251 * cmds.c (internal_self_insert): Make static.
1252 * lisp.h (internal_self_insert): Remove declaration.
1253
97b372d7
JB
12542010-07-23 Juanma Barranquero <lekktu@gmail.com>
1255
33ac0414
JB
1256 * alloc.c (free_float):
1257 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1258 * frame.c (delete_frame_handler):
1259 * ralloc.c (reorder_bloc):
1260 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1261 Remove unused static functions.
1262
94da8397
JB
1263 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1264 it is called only from NS code.
1265
2e6c8532
JB
1266 * w32term.c (my_set_focus): #ifdef away; it is called only from
1267 "#ifdef 0" code.
1268
97b372d7
JB
1269 * w32fns.c (x_edge_detection):
1270 * xfaces.c (may_use_scalable_font_p):
1271 Remove obsolete static declarations.
1272
7c3320d8
JB
12732010-07-20 Juanma Barranquero <lekktu@gmail.com>
1274
1275 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1276 (emacs_blocked_realloc, uninterrupt_malloc):
1277 * fringe.c (w32_reset_fringes):
1278 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1279 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1280 * sound.c (be2hs, do_play_sound):
1281 * vm-limit.c (get_lim_data, ret_lim_data):
1282 * w32term.c (x_free_frame_resources):
1283 * xfaces.c (x_create_gc, x_free_gc):
1284 Convert definitions to standard C.
1285
d5273788
SM
12862010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1287
1288 * eval.c (Feval, Ffuncall): Use the new names.
1289
1290 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1291 (DEFUN): Add braces around the union initialisation and use ## to
1292 specify the right union alternative and avoid a cast.
1293
8d16a259
JB
12942010-07-18 Juanma Barranquero <lekktu@gmail.com>
1295
1296 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1297
3b8eff32
CY
12982010-07-17 Chong Yidong <cyd@stupidchicken.com>
1299
1300 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1301
499322ce
J
13022010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1303
1304 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1305 is related to the menu bar (Bug#6499).
a628ad9d 1306 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 1307
f6003da5 13082010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
1309
1310 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1311
1312 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1313
1314 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1315 i.e. don't put back ButtonRelease (Bug#6608).
1316
1317 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1318 instead of Window. Call xg_event_is_for_menubar when
1319 USE_GTK (Bug#6499).
1320
1321 * gtkutil.h (xg_event_is_for_menubar): Declare.
1322
1323 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1324
f6003da5 13252010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
1326
1327 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1328 when it's the same as the old foreground. (Bug#6609)
1329
23243f29
J
13302010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1331
1332 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1333 widget is non-null (Bug#6645).
1334
2b23d2a6
AS
13352010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1336
01b564ff
AS
1337 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1338 Convert old-style definition.
1339
2b23d2a6
AS
1340 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1341 timestamp argument.
1342
c4affd2c
EZ
13432010-07-15 Eli Zaretskii <eliz@gnu.org>
1344
1345 * fringe.c (update_window_fringes): Restore mistakenly reverted
1346 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1347
cf28cebc
J
13482010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1349
1350 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1351 (SET_SAVED_KEY_EVENT): Remove (not used).
1352 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1353 remove size parameter.
1354 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1355 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1356 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1357 ButtonRelease.
6b2c4bd9
J
1358 (x_set_window_size_1): scroll_bar_actual_width is always
1359 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
1360
1361 * xdisp.c (pending_menu_activation): Remove extern declaration.
1362 (prepare_menu_bars): Remove setting of pending_menu_activation.
1363
1364 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
1365 (x_activate_menubar): Set popup_activated_flag for Xt also.
1366 Remove setting of pending_menu_activation.
cf28cebc
J
1367 (set_frame_menubar): Remove check of pending_menu_activation.
1368 Declare menubar_size before code. Correct spelling in comment.
1369
f6c1c771
KH
13702010-07-14 Kenichi Handa <handa@m17n.org>
1371
1372 * font.c (font_open_entity): Cancel previous change.
1373 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1374
20477505
EZ
13752010-07-13 Eli Zaretskii <eliz@gnu.org>
1376
77defa9a
EZ
1377 Remove subprocesses #ifdefs.
1378 * process.c <inhibit_sentinels>: Move to the common part.
1379 (Fwaiting_for_user_input_p): Move to the common part; return nil
1380 if async subprocesses aren't supported.
1381 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1382 MS-DOS. Remove "#ifdef subprocesses".
1383 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1384 (gettimeofday): Remove "#ifdef subprocesses".
1385 (wait_without_blocking): Remove function.
1386 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1387 Remove "#ifdef subprocesses".
1388 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1389 compiled on MS-DOS.
1390 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1391 wait_for_termination on MS-DOS.
1392 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1393 initialization of inhibit_sentinels.
1394 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1395 subprocesses" conditional.
1396 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1397 wait_for_termination, since `buffer' cannot be an integer when
1398 async subprocesses are not supported
1399 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1400 for ifdefing away the call to Fprocess_status.
1401
20477505
EZ
1402 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1403 away the entire body of the function.
1404
b3ffc17c
DN
14052010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1406
01faa934
DN
1407 Remove subprocesses #ifdefs from term.c.
1408 * process.c (add_keyboard_wait_descriptor)
1409 (delete_keyboard_wait_descriptor): Move to common section, do
1410 nothing when subprocesses is not defined.
a628ad9d
JB
1411 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1412 Remove subprocesses #ifdefs.
01faa934 1413
b3ffc17c
DN
1414 Convert maybe_fatal to standard C.
1415 * lisp.h (verror): Declare.
1416 * eval.c (verror): New function containing the code from ...
1417 (error): ... this. Call verror.
1418 * term.c (vfatal): New function containing the code from ...
1419 (fatal): ... this. Call vfatal.
1420 (maybe_fatal): Convert to standard C, use variable number of
1421 arguments. Declare as non-return.
1422 (init_tty): Fix maybe_fatal call.
1423
0521f580
DN
14242010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1425
1426 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1427 (_scroll_bar_note_movement): Convert definitions to standard C.
1428 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1429 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1430
ebd15611
DN
14312010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1432
1433 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1434 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1435 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1436 (xaw_jump_callback, xaw_scroll_callback)
1437 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1438 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1439 definitions to standard C.
1440 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1441 (popup_activate_callback, popup_deactivate_callback)
1442 (menu_highlight_callback, menubar_selection_callback)
1443 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1444 (free_frame_menubar, popup_selection_callback, as)
1445 (create_and_show_popup_menu, dialog_selection_callback)
1446 (create_and_show_dialog):
1447 * xfns.c (hack_wm_protocols, x_window):
1448 * xfaces.c (x_update_menu_appearance):
1449 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1450 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1451 (set_frame_size, update_wm_hints, setup_frame_gcs)
1452 (update_various_frame_slots, update_from_various_frame_slots)
1453 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1454 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1455 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1456
de06a2dd
AS
14572010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1458
a628ad9d 1459 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 1460
fc549af9
EZ
14612010-07-12 Eli Zaretskii <eliz@gnu.org>
1462
1463 * process.c (setup_process_coding_systems): Move to the part
1464 shared by non-subprocesses systems, and make its body empty when
1465 subprocesses is not defined.
1466 (close_process_descs): Move to the part shared by non-subprocesses
1467 systems.
1408902e
EZ
1468 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1469 ANSI C.
fc549af9 1470
d5a3eaaf
AS
14712010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1472
1473 * editfns.c (transpose_markers): Convert old-style definition.
1474 * emacs.c (abort, shut_down_emacs, fixup_locale)
1475 (synchronize_system_time_locale)
1476 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1477 * floatfns.c (extract_float, matherr, init_floatfns)
1478 (syms_of_floatfns): Likewise.
1479 * fns.c (make_hash_table): Likewise.
1480 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1481 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1482 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1483 (ftfont_variation_glyphs): Likewise.
1484 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1485 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1486 * lread.c (read_filtered_event): Likewise.
1487 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1488 * process.c (wait_reading_process_output): Likewise.
1489 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1490 * search.c (search_buffer, boyer_moore): Likewise.
1491 * syntax.c (scan_sexps_forward): Likewise.
1492 * xdisp.c (try_scrolling): Likewise.
1493 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1494 (face_at_string_position): Likewise.
1495 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1496 * xselect.c (x_get_window_property, receive_incremental_selection)
1497 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1498 Likewise.
1499 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1500
6f704c76
DN
15012010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1502
ded80a25
DN
1503 * callproc.c (child_setup): Remove subprocesses conditional.
1504 Remove code dealing with SET_EMACS_PRIORITY, unused.
1505
49d937f4 1506 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
1507 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1508
1509 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1510 (__do_global_dtors, __main): Use void in definition.
1511 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1512 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1513 the only users from ...
1514 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1515 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1516 (HAVE_VOLATILE): Remove, unused.
1517
6f704c76
DN
1518 Convert more function definitions to standard C.
1519 * xdisp.c (window_box_edges, handle_single_display_spec)
1520 (display_string): Convert definition to standard C.
1521 * scroll.c (do_direct_scrolling, scrolling_1):
1522 * dispnew.c (allocate_matrices_for_frame_redisplay)
1523 (mirrored_line_dance):
1524 * coding.c (code_convert_string):
1525 * charset.c (map_charset_chars):
1526 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1527 (Fregister_ccl_program, Fregister_code_conversion_map):
1528 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1529 (head_table): Make static and const.
1530
e6cfa7c3
AS
15312010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1532
1533 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1534 (PROFILING_LDFLAGS): Set from substitution.
1535 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1536 CFLAGS last.
1537
892dd565
KH
15382010-07-12 Kenichi Handa <handa@m17n.org>
1539
6f2cdcd1
KH
1540 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1541 (shortlisp): Likewise.
1542
892dd565
KH
1543 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1544
1545 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1546 of FONT_ENTITY_INDEX.
1547 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1548 property, get the property value dynamically.
1549 (Ffont_put): Accept font-entity and font-object too.
1550 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1551 return value changed.
1552 (syms_of_font): Adjusted for the above change.
1553
ae96d47a
AS
15542010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1555
c8fc18ee
AS
1556 * blockinput.h: Remove obsolete comment.
1557
89887d67
AS
1558 * lisp.h: Include <stddef.h>.
1559 (OFFSETOF): Don't define.
1560 (VECSIZE): Use offsetof instead of OFFSETOF.
1561 (PSEUDOVECSIZE): Likewise.
1562 * process.c (conv_sockaddr_to_lisp): Likewise.
1563 * alloc.c: Don't include <stddef.h>.
1564 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1565
ae96d47a
AS
1566 * process.c: Remove obsolete comment.
1567
635c0aa1
CY
15682010-07-11 Chong Yidong <cyd@stupidchicken.com>
1569
1570 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1571
a64df650
AS
15722010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1573
8966b757
AS
1574 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1575 index, rindex.
1576 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1577 * editfns.c (Fuser_full_name, Fformat): Likewise.
1578 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1579 * fileio.c (Ffile_symlink_p): Likewise.
1580 * filelock.c (current_lock_owner): Likewise.
1581 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1582 * fontset.c (fontset_pattern_regexp): Likewise.
1583 * lread.c (read1): Likewise.
1584 * sysdep.c (init_system_name): Likewise.
1585 * xfns.c (select_visual): Likewise.
1586 * s/hpux10-20.h (index, rindex): Don't define.
1587 * s/ms-w32.h (index): Likewise.
1588 * s/usg5-4.h: Likewise.
1589
cf237e27
AS
1590 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1591
a8fe7202
AS
1592 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1593 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1594 (egetenv): Likewise.
1595 * doprnt.c (doprnt): Likewise.
1596 * editfns.c (set_time_zone_rule, format2): Likewise.
1597 * emacs.c (decode_env_path): Likewise.
1598 * eval.c (signal_error, error): Likewise.
1599 * insdel.c (replace_range_2): Likewise.
1600 * keyboard.c (cmd_error_internal): Likewise.
1601 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1602 * print.c (write_string, write_string_1, print_error_message):
1603 Likewise.
1604 * vm-limit.c (warn_function, memory_warnings): Likewise.
1605 * xdisp.c (message1, message1_nolog, message_with_string)
1606 (vmessage, message, message_nolog): Likewise.
1607 * emacs.c: Remove duplicate declaration.
1608 * keyboard.h: Likewise.
1609 * lisp.h: Update prototypes.
1610
bb8e180f
AS
1611 * eval.c: Fix indentation problem.
1612
83380e65
AS
1613 * keyboard.c: Include "process.h"
1614
a64df650
AS
1615 * eval.c: Remove obsolete noinline declaration.
1616 * fns.c: Likewise.
1617
6a8033e1
KR
16182010-07-11 Ken Raeburn <raeburn@raeburn.org>
1619
1620 * doprnt.c (doprnt): Take a va_list argument instead of count and
1621 pointer.
1622 * eval.c (error): Change to a standard-C variadic function.
1623 * xdisp.c (vmessage): Renamed from message, made static, and
1624 changed to take a va_list argument.
1625 (message): New variadic wrapper.
1626 (message_nolog): Now a variadic function, calling vmessage.
1627 * lisp.h: Include stdarg.h for va_list.
1628 (doprnt, error, message, message_nolog): Decls updated.
1629
462aa963
EZ
16302010-07-11 Eli Zaretskii <eliz@gnu.org>
1631
1632 * process.c (syms_of_process) <delete-exited-processes>: Define
1633 even if !subprocesses.
1634 (delete_exited_processes): Ditto.
1635
1636 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1637 (delete_exited_processes): Don't define.
1638
48104462
CY
16392010-07-10 Chong Yidong <cyd@stupidchicken.com>
1640
1641 * frame.c (make_frame): Initialize menu_bar_lines and
1642 tool_bar_lines members.
1643 (make_initial_frame, make_terminal_frame): Initialize
1644 menu_bar_lines using value of menu-bar-mode.
1645
1646 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1647
f388c88a
EZ
16482010-07-10 Eli Zaretskii <eliz@gnu.org>
1649
1650 * process.c: Reshuffle #include's. Condition some of the global
1651 and static variables on `subprocesses'.
1652 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1653 Leave only one implementation.
1654 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1655 (kill_buffer_processes, Flist_system_processes)
1656 (Fprocess_attributes, init_process, syms_of_process): Unify the
1657 implementations for with subprocesses and without them.
1658
723f5a07
J
16592010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1660
1661 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1662 correct size for Motif.
1663 (free_frame_menubar): Call x_set_window_size to update frame size.
1664
1665 * xfns.c (x_window): Set borderWidth to 0 for pane and
1666 EmacsFrame. Frame size calculation is wrong otherwise.
1667
2536a4b7
MA
16682010-07-09 Michael Albinus <michael.albinus@gmx.de>
1669
1670 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1671 allows to suppress errors when polling in Emacs' main loop.
1672 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1673 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1674 (Fdbus_method_error_internal, Fdbus_send_signal)
1675 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1676 (Fdbus_register_method): Use it. (Bug#6579)
1677
5842a27b
DN
16782010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1679
1680 * alloc.c: Convert DEFUNs to standard C.
1681 * buffer.c:
1682 * bytecode.c:
1683 * callint.c:
1684 * callproc.c:
1685 * casefiddle.c:
1686 * casetab.c:
1687 * category.c:
1688 * character.c:
1689 * charset.c:
1690 * chartab.c:
1691 * cmds.c:
1692 * coding.c:
1693 * composite.c:
1694 * data.c:
1695 * dbusbind.c:
1696 * dired.c:
1697 * dispnew.c:
1698 * doc.c:
1699 * dosfns.c:
1700 * editfns.c:
1701 * emacs.c:
1702 * eval.c:
1703 * fileio.c:
1704 * filelock.c:
1705 * floatfns.c:
1706 * fns.c:
1707 * font.c:
1708 * fontset.c:
1709 * frame.c:
1710 * fringe.c:
1711 * image.c:
1712 * indent.c:
1713 * insdel.c:
1714 * keyboard.c:
1715 * keymap.c:
1716 * lread.c:
1717 * macros.c:
1718 * marker.c:
1719 * menu.c:
1720 * minibuf.c:
1721 * msdos.c:
1722 * nsfns.m:
1723 * nsmenu.m:
1724 * nsselect.m:
1725 * print.c:
1726 * process.c:
1727 * search.c:
1728 * sound.c:
1729 * syntax.c:
1730 * term.c:
1731 * terminal.c:
1732 * textprop.c:
1733 * undo.c:
1734 * w16select.c:
1735 * w32console.c:
1736 * w32fns.c:
1737 * w32font.c:
1738 * w32menu.c:
1739 * w32proc.c:
1740 * w32select.c:
1741 * window.c:
1742 * xdisp.c:
1743 * xfaces.c:
1744 * xfns.c:
1745 * xmenu.c:
1746 * xselect.c:
1747 * xsettings.c:
1748 * xsmfns.c: Likewise.
1749
d568829b
EZ
17502010-07-08 Eli Zaretskii <eliz@gnu.org>
1751
1752 * process.c (kbd_is_on_hold, hold_keyboard_input)
1753 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1754
52214050
J
17552010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1756
1757 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1758 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1759 unless USE_LUCID.
1760
313d9eb2
DN
17612010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1762
a628ad9d
JB
1763 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1764 declaration.
d8825aa3 1765
295d0d8f
DN
1766 Clean up include guards.
1767 * tparam.c: Remove include guards for config.h, string.h and code
1768 that assumes #ifndef emacs.
1769 * termcap.c:
1770 * unexalpha.c:
1771 * sysdep.c:
1772 * filemode.c:
1773 * filelock.c:
1774 * bidi.c: Likewise.
1775
49d9e6b0
DN
1776 Remove prefix-args.c
1777 * prefix-args.c: Remove file.
1778 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1779 * Makefile.in (temacs${EXEEXT}): Remove references to
1780 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1781 (mostlyclean): Remove reference to prefix-args.
1782 (prefix-args): Remove.
1783
313d9eb2
DN
1784 Simplify cstart_of_data, start_of_code and related code.
1785 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1786 (start_of_data): Merge into start_of_data function.
1787 * sysdep.c (start_of_text): Remove. Move simplified versions of
1788 it in the only users: unexaix.c and unexec.c.
1789 (read_input_waiting): Remove local declaration of quit_char.
1790 (start, etext): Remove declarations.
1791 (start_of_data): Merge with the version in mem-limits.h and move
1792 to vm-limits.c.
1793 * vm-limit.c (start_of_data): Merged and simplified version of the
1794 code formerly in mem-limits.h and sysdep.c.
1795 * unexec.c (start): New declaration, moved from sysdep.c.
1796 (start_of_text): Simplified version of the code formerly in sysdep.c.
1797 * unexaix.c (start_of_text): Simplified version of the code
1798 formerly in sysdep.c.
1799 * m/alpha.h (HAVE_TEXT_START): Remove.
1800 (TEXT_START): Move ...
1801 * unexalpha.c (TEXT_START): ... here.
1802 * s/hpux10-20.h (TEXT_START): Remove.
1803 * s/darwin.h (TEXT_START):
1804 * m/mips.h (TEXT_START):
1805 * m/macppc.h (HAVE_TEXT_START):
1806 * m/m68k.h (TEXT_START):
1807 * m/iris4d.h (TEXT_START):
1808 * m/intel386.h (TEXT_START):
1809 * m/ibmrs6000.h (TEXT_START):
1810 * m/ia64.h (HAVE_TEXT_START):
1811 * s/msdos.h (TEXT_START): Likewise.
1812
72af86bd
AS
18132010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1814
1815 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1816 (overrun_check_free, xstrdup, allocate_string)
1817 (allocate_string_data, compact_small_strings, Fmake_string)
1818 (make_unibyte_string, make_multibyte_string)
1819 (make_string_from_bytes, make_specified_string, make_float)
1820 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1821 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1822 memcpy, memmove, memset, memcmp.
1823 * atimer.c (start_atimer, set_alarm): Likewise.
1824 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1825 (mmap_realloc, init_buffer_once): Likewise.
1826 * callint.c (Fcall_interactively): Likewise.
1827 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1828 (getenv_internal_1): Likewise.
1829 * casefiddle.c (casify_object): Likewise.
1830 * ccl.c (ccl_driver): Likewise.
1831 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1832 * charset.c (load_charset_map_from_file)
1833 (load_charset_map_from_file, load_charset_map_from_vector)
1834 (Fdefine_charset_internal): Likewise.
1835 * cm.c (Wcm_clear): Likewise.
1836 * coding.c (decode_eol, decode_coding_object)
1837 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1838 * data.c (Faset): Likewise.
1839 * dired.c (directory_files_internal, file_name_completion_stat):
1840 Likewise.
1841 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1842 (clear_glyph_row, copy_row_except_pointers)
1843 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1844 (save_current_matrix, restore_current_matrix)
1845 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1846 (mirror_line_dance, scrolling_window): Likewise.
1847 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1848 Likewise.
1849 * doprnt.c (doprnt): Likewise.
1850 * editfns.c (Fuser_full_name, make_buffer_string_both)
1851 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1852 * emacs.c (sort_args): Likewise.
1853 * eval.c (Fapply, Ffuncall): Likewise.
1854 * fileio.c (Ffile_name_directory, make_temp_name)
1855 (Fexpand_file_name, search_embedded_absfilename)
1856 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1857 (auto_save_error): Likewise.
1858 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1859 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1860 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1861 (Fmake_hash_table): Likewise.
1862 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1863 * ftfont.c (ftfont_text_extents): Likewise.
1864 * getloadavg.c (getloadavg): Likewise.
1865 * image.c (define_image_type, make_image, make_image_cache)
1866 (x_create_x_image_and_pixmap, xbm_image_p)
1867 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1868 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1869 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1870 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1871 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1872 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1873 Likewise.
1874 * indent.c (scan_for_column, compute_motion): Likewise.
1875 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1876 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1877 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1878 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1879 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1880 (store_user_signal_events, menu_bar_items, tool_bar_items)
1881 (process_tool_bar_item, append_tool_bar_item)
1882 (read_char_minibuf_menu_prompt, read_key_sequence)
1883 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1884 Likewise.
1885 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1886 Likewise.
1887 * lisp.h (STRING_COPYIN): Likewise.
1888 * lread.c (Fload, read1, oblookup): Likewise.
1889 * msdos.c (Frecent_doskeys): Likewise.
1890 * nsfns.m (Fx_create_frame): Likewise.
1891 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1892 Likewise.
1893 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1894 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1895 Likewise.
1896 * nsmenu.m (ns_update_menubar): Likewise.
1897 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1898 * print.c (print_unwind, printchar, strout, print_string)
1899 (print_error_message): Likewise.
1900 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1901 (Fmake_network_process, Fnetwork_interface_list)
1902 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1903 (init_process): Likewise.
1904 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1905 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1906 Likewise.
1907 * scroll.c (do_scrolling, do_direct_scrolling)
1908 (scrolling_max_lines_saved): Likewise.
1909 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1910 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1911 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1912 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1913 (emacs_set_tty): Likewise.
1914 * term.c (encode_terminal_code, calculate_costs)
1915 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1916 Likewise.
1917 * termcap.c (tgetst1, gobble_line): Likewise.
1918 * termhooks.h (EVENT_INIT): Likewise.
1919 * tparam.c (tparam1): Likewise.
1920 * unexalpha.c (unexec): Likewise.
1921 * unexec.c (write_segment): Likewise.
1922 * unexmacosx.c (unexec_write_zero): Likewise.
1923 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1924 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1925 * w32font.c (w32font_list_family, w32font_text_extents)
1926 (w32font_list_internal, w32font_match_internal)
1927 (w32font_open_internal, compute_metrics, Fx_select_font):
1928 Likewise.
1929 * w32menu.c (set_frame_menubar, add_menu_item)
1930 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1931 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1932 * w32uniscribe.c (uniscribe_list_family): Likewise.
1933 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1934 * window.c (make_window, replace_window, set_window_buffer)
1935 (Fsplit_window): Likewise.
1936 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1937 (add_to_log, message3, x_consider_frame_title)
1938 (append_space_for_newline, extend_face_to_end_of_line)
1939 (decode_mode_spec_coding, init_glyph_string): Likewise.
1940 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1941 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1942 (face_attr_equal_p, make_realized_face, make_face_cache)
1943 (free_realized_faces, lookup_named_face, smaller_face)
1944 (face_with_height, lookup_derived_face)
1945 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1946 (Finternal_set_font_selection_order, realize_default_face)
1947 (compute_char_face, face_at_buffer_position)
1948 (face_for_overlay_string, face_at_string_position, merge_faces):
1949 Likewise.
1950 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1951 (Fx_window_property, x_create_tip_frame)
1952 (Fx_backspace_delete_keys_p): Likewise.
1953 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1954 (xfont_text_extents): Likewise.
1955 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1956 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1957 * xselect.c (x_queue_event, x_get_window_property)
1958 (receive_incremental_selection): Likewise.
1959 * xsmfns.c (x_session_check_input): Likewise.
1960 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1961 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1962 Likewise.
1963 * character.h (BCOPY_SHORT): Removed.
1964 * config.in: Regenerate.
1965 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1966 * emacs.c (main) [PROFILING]: Don't declare
1967 dump_opcode_frequencies.
1968 * lisp.h (safe_bcopy): Remove declaration.
1969 (memset) [!HAVE_MEMSET]: Declare.
1970 (memcpy) [!HAVE_MEMCPY]: Likewise.
1971 (memmove) [!HAVE_MEMMOVE]: Likewise.
1972 (memcmp) [!HAVE_MEMCMP]: Likewise.
1973 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1974 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1975 Don't define.
1976 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1977 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1978 (BCOPY_DOWNWARD_SAFE): Don't define.
1979 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1980 (memcpy) [!HAVE_MEMCPY]: Define.
1981 (memmove) [!HAVE_MEMMOVE]: Define.
1982 (memcmp) [!HAVE_MEMCMP]: Define.
1983
cb768704
J
19842010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1985
1986 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1987 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1988 New functions.
cb768704
J
1989 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1990 select on empty input mask.
1991 (init_process): Initialize kbd_is_on_hold to 0.
1992
1993 * process.h (hold_keyboard_input, unhold_keyboard_input)
1994 (kbd_on_hold_p): Declare.
1995
1996 * keyboard.c (input_available_signal): Declare.
1997 (kbd_buffer_nr_stored): New function.
1998 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1999 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2000 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2001 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2002 (tty_read_avail_input): If input is on hold, return.
2003 Don't read more that free slots in kbd_buffer (Bug#6571).
2004
3a8ce822
EZ
20052010-07-07 Eli Zaretskii <eliz@gnu.org>
2006
2007 * msdos.h:
2008 * msdos.c:
2009 * dosfns.c:
2010 * w16select.c: Convert function definitions to ANSI C.
2011
a628ad9d
JB
2012 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2013 Remove unused prototypes.
3a8ce822 2014
cf84bb53
JB
20152010-07-07 Juanma Barranquero <lekktu@gmail.com>
2016
2017 * coding.c, sysdep.c: Convert some more functions to standard C.
2018
1a4990fb
JB
20192010-07-07 Juanma Barranquero <lekktu@gmail.com>
2020
2021 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2022 (encode_coding_object): Use SPECPDL_INDEX.
2023 (syms_of_coding): Use DOS_NT.
2024
c0f2f16b
DN
20252010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2026
48fb6855
DN
2027 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2028
c0f2f16b
DN
2029 Make the function member of Lisp_Subr use standard C prototypes.
2030 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2031 (DECL_ALIGN): Add a cast for the function.
2032 * eval.c (Feval, Ffuncall): Use the proper type for each type
2033 function call.
2034
67aecef9
CY
20352010-07-06 Chong Yidong <cyd@stupidchicken.com>
2036
2037 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2038 fringe face id, so face-remapping-alist works (Bug#6091).
2039
b56ceb92
JB
20402010-07-06 Juanma Barranquero <lekktu@gmail.com>
2041
2042 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2043 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2044 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2045
7af07b96
AS
20462010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2047
2048 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2049 * lisp.h: Declare x_get_keysym_name.
2050 * keyboard.c (modify_event_symbol): Don't declare
2051 x_get_keysym_name here.
2052
69e24e34
DN
20532010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2054
2055 * ecrt0.c: Revert conversion to standard C.
2056
d3da34e0 20572010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
2058
2059 * vm-limit.c (memory_warnings):
2060 * keyboard.c (modify_event_symbol):
2061 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2062 (round2, emacs_rint):
2063 * process.c (send_process, old_sigpipe): Convert function
2064 definitions and declarations to standard C.
2065
20662010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
2067
2068 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2069 * xdisp.c: Convert function definitions to standard C.
2070
2071 * cm.c (cmputc): Arg C is now int, not char.
2072 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2073
00be444c
J
20742010-07-05 James Cloos <cloos@jhcloos.com>
2075
2076 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2077
2078 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2079 _NET_WM_ICON_NAME atoms.
2080
2081 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2082 and _NET_WM_ICON_NAME properties, too, matching what is
2083 done in the Gtk+ case.
2084
e4c8d29a
J
20852010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2086
ff919460
J
2087 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2088
e4c8d29a
J
2089 * xsmfns.c (SSDATA): New macro.
2090 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2091 passed to strlen/strcpy/strcat.
2092 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2093 7:th arg to XChangeProperty to (unsigned char *)
2094
2095 * xsettings.c (something_changedCB, parse_settings)
2096 (apply_xft_settings): Reformat prototype.
2097 (something_changedCB, init_gconf): Remove unused variable i.
2098 (read_settings): Remove unused variable long_len.
2099
2100 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2101 (xg_get_image_for_pixmap, create_dialog)
2102 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2103 (menuitem_highlight_callback, make_menu_item)
2104 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2105 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2106 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2107 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2108 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2109 (xg_tool_bar_item_expose_callback): Reformat prototype.
2110 (xg_update_menubar): GList *group => GSList *group.
2111 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2112 before use.
2113 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2114 to GTK_IMAGE (wimage).
2115
dd4c5104
DN
21162010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2117
898b4c5c
DN
2118 * atimer.c: Use "" instead of <> for local includes for
2119 consistency with the rest of the code.
2120
dd4c5104
DN
2121 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2122 * xrdb.c (get_system_name):
2123 * window.c (shrink_windows):
2124 * syntax.c (forw_comment):
2125 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2126 (ins_del_costs):
2127 * mem-limits.h (start_of_data):
2128 * lread.c (readevalloop):
2129 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2130 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2131 * frame.c (x_get_focus_frame):
2132 * floatfns.c (fmod_float):
2133 * fileio.c (choose_write_coding_system):
2134 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2135 (malloc_initialize_hook, sort_args, synchronize_locale):
2136 * doprnt.c (doprnt):
2137 * dired.c (compile_pattern):
2138 * data.c (fmod_float):
2139 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2140 (map_char_table_for_charset):
2141 * charset.c (define_charset_internal):
2142 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2143 to standard C.
2144
9a39b306 21452010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 2146 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
2147
2148 * lread.c (read1): Fix up last change to not mess up `c'.
2149
e6cb2cbb
JB
21502010-07-04 Juanma Barranquero <lekktu@gmail.com>
2151
2152 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2153
438105ed
JB
21542010-07-04 Juanma Barranquero <lekktu@gmail.com>
2155
2156 Fix prototypes.
2157
e5447b22 2158 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 2159 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
2160 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2161 arg, as required by internal_condition_case_1.
dcc7404b 2162 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
2163 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2164 (analyse_first): Fix "const const".
e5447b22 2165 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 2166 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 2167 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 2168
971de7fb
DN
21692010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2170
2171 * alloc.c: Convert function definitions to standard C.
2172 * atimer.c:
2173 * bidi.c:
2174 * bytecode.c:
2175 * callint.c:
2176 * callproc.c:
2177 * casefiddle.c:
2178 * casetab.c:
2179 * category.c:
2180 * ccl.c:
2181 * character.c:
2182 * charset.c:
2183 * chartab.c:
2184 * cmds.c:
2185 * coding.c:
2186 * composite.c:
2187 * data.c:
2188 * dbusbind.c:
2189 * dired.c:
2190 * dispnew.c:
2191 * doc.c:
2192 * doprnt.c:
2193 * ecrt0.c:
2194 * editfns.c:
2195 * fileio.c:
2196 * filelock.c:
2197 * filemode.c:
2198 * fns.c:
2199 * font.c:
2200 * fontset.c:
2201 * frame.c:
2202 * fringe.c:
2203 * ftfont.c:
2204 * ftxfont.c:
2205 * gtkutil.c:
2206 * indent.c:
2207 * insdel.c:
2208 * intervals.c:
2209 * keymap.c:
2210 * lread.c:
2211 * macros.c:
2212 * marker.c:
2213 * md5.c:
2214 * menu.c:
2215 * minibuf.c:
2216 * prefix-args.c:
2217 * print.c:
2218 * ralloc.c:
2219 * regex.c:
2220 * region-cache.c:
2221 * scroll.c:
2222 * search.c:
2223 * sound.c:
2224 * strftime.c:
2225 * syntax.c:
2226 * sysdep.c:
2227 * termcap.c:
2228 * terminal.c:
2229 * terminfo.c:
2230 * textprop.c:
2231 * tparam.c:
2232 * undo.c:
2233 * unexelf.c:
2234 * window.c:
2235 * xfaces.c:
2236 * xfns.c:
2237 * xfont.c:
2238 * xftfont.c:
2239 * xgselect.c:
2240 * xmenu.c:
2241 * xrdb.c:
2242 * xselect.c:
2243 * xsettings.c:
2244 * xsmfns.c:
2245 * xterm.c: Likewise.
2246
ae492bec
EZ
22472010-07-03 Eli Zaretskii <eliz@gnu.org>
2248
76ea4cc9
EZ
2249 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2250 frames other than the initial one. Fix reversal of colors when
2251 `reverse' is specified in the frame parameters. Call
2252 update_face_from_frame_parameter instead of
2253 internal-set-lisp-face-attribute. Initialize screen colors from
2254 initial_screen_colors[] when f->default_face_done_p is zero,
2255 instead of depending on being called with default-frame-alist as
2256 the alist argument.
2257
2258 * xfaces.c (update_face_from_frame_parameter): Move out of
2259 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2260 with HAVE_WINDOW_SYSTEM.
2261
1e6255ae
EZ
2262 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2263 to menu-bar-mode, if not set in the frame parameters or in
2264 default-frame-alist.
2265
ae492bec
EZ
2266 * w32console.c (sys_tputs): Adjust argument list to prototype in
2267 term.c.
2268
3a35a84c
JB
22692010-07-03 Juanma Barranquero <lekktu@gmail.com>
2270
2271 * lisp.h (memory_warnings): Fix prototype.
2272
2273 * cm.h (evalcost): Fix prototype.
2274
2275 * cm.c (evalcost): Fix arg type.
2276
c532d349
DN
22772010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2278
2279 * term.c (term_clear_mouse_face, Fidentity):
2280 * syssignal.h (signal_handler_t):
2281 * lisp.h (memory_warnings):
2282 * coding.h (preferred_coding_system):
2283 * cm.h (evalcost):
2284 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2285
c0b36d46
EZ
22862010-07-02 Eli Zaretskii <eliz@gnu.org>
2287
2288 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2289 from prototypes.
2290
2291 * msdos.h (load_pixmap): Don't define away.
2292
383e0970
J
22932010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2294
f57e2426
J
2295 * lisp.h:
2296 * atimer.h: Remove define for P_.
2297
2298 * alloc.c: Remove __P and P_ from .c and .m files.
2299 * atimer.c:
2300 * buffer.c:
2301 * callint.c:
2302 * category.c:
2303 * charset.c:
2304 * chartab.c:
2305 * cm.c:
2306 * coding.c:
2307 * composite.c:
2308 * data.c:
2309 * dired.c:
2310 * dispnew.c:
2311 * doc.c:
2312 * editfns.c:
2313 * emacs.c:
2314 * eval.c:
2315 * fileio.c:
2316 * filelock.c:
2317 * fns.c:
2318 * font.c:
2319 * fontset.c:
2320 * frame.c:
2321 * ftfont.c:
2322 * ftxfont.c:
2323 * gmalloc.c:
2324 * gtkutil.c:
2325 * image.c:
2326 * indent.c:
2327 * intervals.c:
2328 * keyboard.c:
2329 * keymap.c:
2330 * lread.c:
2331 * marker.c:
2332 * menu.c:
2333 * minibuf.c:
2334 * print.c:
2335 * process.c:
2336 * scroll.c:
2337 * search.c:
2338 * sound.c:
2339 * strftime.c:
2340 * syntax.c:
2341 * sysdep.c:
2342 * term.c:
2343 * terminal.c:
2344 * textprop.c:
2345 * unexalpha.c:
2346 * w32console.c:
2347 * w32fns.c:
2348 * w32font.c:
2349 * w32menu.c:
2350 * w32term.c:
2351 * w32uniscribe.c:
2352 * window.c:
2353 * xdisp.c:
2354 * xfaces.c:
2355 * xfns.c:
2356 * xfont.c:
2357 * xftfont.c:
2358 * xmenu.c:
2359 * xselect.c:
2360 * xterm.c: Likewise.
2361
383e0970 2362 Remove P_ and __P macros.
f57e2426
J
2363 * atimer.h: Remove P_ and __P macros.
2364 * buffer.h:
383e0970
J
2365 * category.h:
2366 * ccl.h:
2367 * character.h:
2368 * charset.h:
2369 * cm.h:
2370 * coding.h:
2371 * composite.h:
2372 * dispextern.h:
2373 * disptab.h:
9e892c8d 2374 * dosfns.h:
383e0970
J
2375 * font.h:
2376 * fontset.h:
2377 * frame.h:
2378 * gtkutil.h:
2379 * indent.h:
2380 * intervals.h:
2381 * keyboard.h:
2382 * keymap.h:
2383 * lisp.h:
2384 * macros.h:
2385 * md5.h:
2386 * menu.h:
2387 * msdos.h:
2388 * nsterm.h:
2389 * puresize.h:
2390 * region-cache.h:
2391 * syntax.h:
2392 * syssignal.h:
2393 * systime.h:
2394 * termhooks.h:
9e892c8d 2395 * w32font.h:
383e0970
J
2396 * w32term.h:
2397 * widget.h:
2398 * window.h:
2399 * xgselect.h:
2400 * xsettings.h:
2401 * xterm.h: Likewise.
2402
98601119
DN
24032010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2404
d9170db5
DN
2405 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2406
98601119
DN
2407 Cleanup old code.
2408 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2409 * syssignal.h: Remove code for Lynx, not supported anymore.
2410 * vm-limit.c: Remove unused code the depends on emacs not being
2411 defined and NO_LIM_DATA being defined.
2412 * mem-limits.h: Remove dead code.
2413
1f984e12
J
24142010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2415
c49d071a
J
2416 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2417
9d5405ec
J
2418 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2419 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2420
7a18115b
J
2421 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2422 parameters, they are already absolute.
2423
a628ad9d
JB
2424 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2425 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 2426
a628ad9d 2427 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 2428
a628ad9d
JB
2429 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2430 Update FRAME_TOOLBAR_HEIGHT.
581a8100 2431
a628ad9d
JB
2432 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2433 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 2434
c1ef4455
CY
24352010-06-30 Chong Yidong <cyd@stupidchicken.com>
2436
2437 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2438 check default-frame-alist.
2439
ce8f5a9a
AS
24402010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2441
2442 * process.c (create_process): Avoid using invalid file descriptors.
2443
2444 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2445
bf935339
J
24462010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2447
2448 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2449 Improve documentation. Return font regardless of use_system_font.
2450 (syms_of_xsettings): Improve documentation for font-use-system-font.
2451
7c33a057
CY
24522010-07-10 Chong Yidong <cyd@stupidchicken.com>
2453
2ec1b5ee
CY
2454 * xfaces.c (realize_face): Garbage the frame if a face is removed
2455 (Bug#6593).
2456
24572010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2458
2459 * keyboard.c: Remove duplicate <setjmp.h>.
2460 (read_key_sequence): Remove volatile qualifiers.
2461
24622010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2463
2464 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2465 (struct glyph_row): New members left_fringe_offset and
2466 right_fringe_offset.
2467
2468 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2469 specially.
2470 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2471 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2472
2473 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 2474 Take account of bitmap offset.
2ec1b5ee
CY
2475 (draw_window_fringes): Take account of window vscroll.
2476 (update_window_fringes): Likewise. Extend top-aligned top indicator
2477 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2478 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2479 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2480
24812010-07-04 Juanma Barranquero <lekktu@gmail.com>
2482
2483 * w32fns.c (Qtooltip): Declare.
2484 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2485
24862010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2487
2488 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2489 grab on just Press (Bug#6499).
2490
24912010-07-02 Chong Yidong <cyd@stupidchicken.com>
2492
2493 * frame.c (Qtooltip): New var.
2494 (delete_frame): Use it. Fix faulty if statement. Don't update
2495 mode line for tooltip frames. Suggested by Martin Rudalics.
2496
2497 * xfns.c (x_create_tip_frame):
2498 * w32fns.c (x_create_tip_frame): Use it.
2499
25002010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
2501
2502 * xftfont.c (xftfont_open): Check font width one by one also when
2503 spacing is dual.
2504
2505 * ftfont.c (ftfont_open): Ditto.
2506
6259c2ec
GM
25072010-06-30 Glenn Morris <rgm@gnu.org>
2508
a46007e9
GM
2509 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2510
6259c2ec
GM
2511 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2512
2513 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2514 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2515 * s/darwin.h (SYSTEM_MALLOC):
2516 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2517
5d1d3d04
J
25182010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2519
2520 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2521 (ns_get_screen): Don't assign integer to f.
2522 (Fx_display_color_cells): Declarations before statements.
2523
e547b051
J
25242010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2525
5fc8e5bc
J
2526 * xfns.c (x_default_font_parameter): Remove got_from_system
2527 (Bug#6526).
2528
e547b051
J
2529 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2530 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2531 defines based on what configure finds.
2532
2533 * xterm.c (XTflash): Use gtk_widget_get_window.
2534 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2535 gtk_adjustment_get_page_size.
2536 (handle_one_xevent): Use gtk_widget_get_mapped.
2537 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2538 messages.
2539
2540 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2541
2542 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2543 HAVE_GTK_FILE_SELECTION_NEW.
2544
2545 * gtkutil.c (xg_display_open, xg_display_close): Remove
2546 HAVE_GTK_MULTIDISPLAY, it is always defined.
2547 (xg_display_open): Return type is void.
2548 (gtk_widget_set_has_window)
2549 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2550 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2551 (gtk_adjustment_set_page_increment)
2552 (gtk_adjustment_get_step_increment): #define these if not found
2553 by configure.
2554 (remove_submenu): New define based on Gtk+ version.
2555 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2556 gtk_widget_get_window.
2557 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2558 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2559 (create_dialog): Use gtk_dialog_get_action_area and
2560 gtk_dialog_get_content_area.
2561 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2562 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2563 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2564 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2565 g_object_ref and g_object_unref.
2566 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2567 gtk_widget_get_sensitive.
2568 (xg_update_submenu): Use remove_submenu.
2569 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2570 properties instead to get old x and y position.
2571 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2572 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 2573 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
2574 (xg_get_tool_bar_widgets): New function.
2575 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2576 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2577 (toolbar_set_orientation): New #define based on if configure
2578 finds gtk_orientable_set_orientation.
2579 (xg_create_tool_bar): Call toolbar_set_orientation.
2580 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2581 instead of gtk_box_pack_start_defaults.
2582
b9229673
CY
25832010-06-28 Chong Yidong <cyd@stupidchicken.com>
2584
2585 * cmds.c (Fdelete_backward_char): Move into Lisp.
2586
bbc803b0
DN
25872010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2588
2589 * s/freebsd.h (BSD4_2): Remove redundant definition.
2590 bsd-common.h defines it already.
2591
6431f2e6
CY
25922010-06-27 Chong Yidong <cyd@stupidchicken.com>
2593
2594 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2595 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2596 tool-bar-mode, which are now set using these X resources at
2597 startup, to determine the defaults (Bug#2249).
2598
2599 * w32fns.c (Fx_create_frame):
2600 * nsfns.m (Fx_create_frame): Likewise.
2601
2602 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2603
8c079ebb
JB
26042010-06-24 Juanma Barranquero <lekktu@gmail.com>
2605
2606 * gtkutil.c (xg_update_scrollbar_pos):
2607 Avoid C99 mid-block variable declaration.
2608
e9b7ab96
JD
26092010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2610
bc869eca
JD
2611 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2612
2b7e356a 2613 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2614
2615 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2616 if height is less than scroll bar min size.
2617 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2618
e9b7ab96
JD
2619 * xfns.c (x_default_font_parameter): Try to open font from system
2620 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2621
a628ad9d 26222010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2623
2624 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2625
70c4cfbb
EZ
26262010-06-20 Eli Zaretskii <eliz@gnu.org>
2627
2628 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2629 most-positive-fixnum, be extra accurate when scrolling window
2630 start, to avoid missing the cursor line.
2631
ad5a12b5
EZ
26322010-06-19 Eli Zaretskii <eliz@gnu.org>
2633
2634 * xdisp.c (try_scrolling): Compute the limit for searching point
2635 in forward scroll from scroll_max, instead of an arbitrary limit
2636 of 10 screen lines. See
2637 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2638 and
2639 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2640 for details.
2641
2a64315a 26422010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2643
2644 * editfns.c (Fbyte_to_string): Pacify compiler.
2645
288cf4e9
SM
26462010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2647
2648 * lread.c (read1): Phase out old-style backquotes a bit more.
2649
6e6e5760
EZ
26502010-06-12 Eli Zaretskii <eliz@gnu.org>
2651
cbc4fd20
EZ
2652 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2653 bidimirror.h.
2654
2655 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2656
317fbf33
EZ
2657 * bidi.c (bidi_initialize): Remove explicit initialization of
2658 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 2659 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 2660 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
2661
2662 * biditype.h: New file.
2663
cbc4fd20
EZ
2664 * bidimirror.h: New file.
2665
6e6e5760
EZ
2666 * window.c (syms_of_window): Doc fix (bug#6409).
2667
4176cba2
RF
26682010-06-12 Romain Francoise <romain@orebokech.com>
2669
2670 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2671 ediff-hook.
2672
cb4bfcb5
GM
26732010-06-10 Glenn Morris <rgm@gnu.org>
2674
64c60c2f
GM
2675 * editfns.c (Fbyte_to_string): Pacify compiler.
2676
cb4bfcb5
GM
2677 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2678
2ec1b5ee
CY
26792010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2680
2681 * alloc.c (Fmake_byte_code): Don't access undefined argument
2682 (Bug#6517).
2683
26842010-06-25 Chong Yidong <cyd@stupidchicken.com>
2685
2686 * xdisp.c (next_element_from_image): Ensure that after-strings are
2687 read the next time we hit handle_stop (Bug#1336).
2688
26892010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2690
2691 * lread.c (read1): Signal error if #s is not followed by paren.
2692
26932010-06-19 Chong Yidong <cyd@stupidchicken.com>
2694
2695 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2696
2697 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2698
26992010-06-15 Glenn Morris <rgm@gnu.org>
2700
2701 * editfns.c (Fbyte_to_string): Pacify compiler.
2702
e454a4a3
SM
27032010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2704
2705 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2706 Check `object's type before accessing its guts.
2707
c1b1acc2
DN
27082010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2709
2710 * s/usg5-4.h: Fix previous change.
2711 Suggested by Lawrence Mitchell <wence@gmx.li>
2712
657d4c0b
AS
27132010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2714
2715 * minibuf.c (Fall_completions): Add more checks.
2716
9b27fd9f
JB
27172010-06-08 Juanma Barranquero <lekktu@gmail.com>
2718
2719 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2720
a99ebb40
DN
27212010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2722
d7c5d87d
DN
2723 * lread.c (X_OK): Remove, unused.
2724
0263a941
DN
2725 * dispnew.c: Remove obsolete comment.
2726
a99ebb40
DN
2727 Remove INCLUDED_FCNTL.
2728 * xterm.c (INCLUDED_FCNTL):
2729 * callproc.c (INCLUDED_FCNTL):
2730 * alloc.c (INCLUDED_FCNTL):
2731 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2732 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2733
13b5221f
MR
27342010-06-07 Martin Rudalics <rudalics@gmx.at>
2735
2736 * window.c (Fselect_window): Move `record_buffer' up to the
2737 beginning of this function, so the buffer gets recorded
2738 even if the selected window does not change.
2739 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2740
5220357f
JB
27412010-06-07 Juanma Barranquero <lekktu@gmail.com>
2742
2743 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2744 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2745
3085237c
DN
27462010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2747
2748 Remove BSTRING related code, all platforms define it.
2749 * s/usg5-4.h (BSTRING): Remove definition.
2750 * s/template.h (BSTRING):
2751 * s/msdos.h (BSTRING):
2752 * s/ms-w32.h (BSTRING):
2753 * s/hpux10-20.h (BSTRING):
2754 * s/gnu-linux.h (BSTRING):
2755 * s/darwin.h (BSTRING):
2756 * s/cygwin.h (BSTRING):
2757 * s/bsd-common.h (BSTRING):
2758 * s/aix4-2.h (BSTRING): Likewise.
2759 * sysdep.c: Remove code depending on BSTRING not being defined.
2760
409f2919
JB
27612010-06-05 Juanma Barranquero <lekktu@gmail.com>
2762
2763 Remove obsolete macro BASE_LEADING_CODE_P.
2764 * character.h (BASE_LEADING_CODE_P): Remove.
2765 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2766 * buffer.c (Fset_buffer_multibyte):
2767 * indent.c (scan_for_column, compute_motion):
2768 * insdel.c (count_combining_before, count_combining_after):
2769 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2770
087fc47a
JB
27712010-06-04 Juanma Barranquero <lekktu@gmail.com>
2772
2773 Turn `directory-sep-char' into a noop.
2774
2775 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2776 (DIRECTORY_SEP): Define unconditionally.
2777
2778 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2779
2780 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2781 call dostounix_filename directly.
2782
2783 * fileio.c (CORRECT_DIR_SEPS): Remove.
2784 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2785 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2786 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2787 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2788
2789 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2790 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2791
0eb7675e
AS
27922010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2793
a628ad9d
JB
2794 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2795 (Bug#6346)
0eb7675e 2796
78edd3b7
JB
27972010-06-03 Juanma Barranquero <lekktu@gmail.com>
2798
2799 * ccl.c (Fccl_program_p): Fix typo in docstring.
2800
eb697db5
DN
28012010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2802
2803 Move UNEXEC definition to autoconf.
2804 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2805 * s/sol2-10.h (UNEXEC):
2806 * s/irix6-5.h (UNEXEC):
2807 * s/hpux10-20.h (UNEXEC):
2808 * s/gnu-linux.h (UNEXEC):
2809 * s/darwin.h (UNEXEC):
2810 * s/cygwin.h (UNEXEC):
2811 * s/bsd-common.h (UNEXEC):
2812 * s/aix4-2.h (UNEXEC):
2813 * m/alpha.h (UNEXEC): Likewise.
2814 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2815
aa3830c4
JB
28162010-06-03 Juanma Barranquero <lekktu@gmail.com>
2817
2818 Remove obsolete pre-unicode2 macros.
2819 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2820 * composite.c (composition_reseat_it):
2821 * data.c (Faset):
2822 * fns.c (Ffillarray):
2823 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2824 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2825
d234d13e
JL
28262010-06-03 Juri Linkov <juri@jurta.org>
2827
2828 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2829 (Fswitch_to_buffer): Remove unused variable `err'.
2830
0d4bcf4d
GM
28312010-06-03 Glenn Morris <rgm@gnu.org>
2832
e23dc1e2
GM
2833 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2834
05b09564
GM
2835 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2836 now that AH_BOTTOM does it.
2837
824e2978
GM
2838 * m/hp800.h (HAVE_ALLOCA):
2839 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2840
0d4bcf4d
GM
2841 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2842 Remove NOT_C_CODE tests, it is always true now.
2843
c55d2abf
DN
28442010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2845
08a494a3
DN
2846 Fix config.h includes.
2847 * xsettings.c:
2848 * xgselect.c:
2849 * nsterm.m:
2850 * nsselect.m:
2851 * nsimage.m:
2852 * nsfont.m:
2853 * nsfns.m:
2854 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2855 other files do.
2856
75934b1d
DN
2857 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2858
9f32a766
DN
2859 * s/sol2-6.h: Remove obsolete comments.
2860
c55d2abf
DN
2861 Remove unnecessary alloca.h includes.
2862 * keymap.c: Do not include alloca.h, config.h does that.
2863 * sysdep.c: Likewise. Do not define fwrite, not used.
2864
06ac62b4
SM
28652010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2866
2867 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2868 the HAVE_TERMIO where it belongs (bug#6149).
2869
1ab8293c
SM
28702010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2871
2872 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2873 of bug#6305).
2874
6dcfd253
EZ
28752010-05-30 Eli Zaretskii <eliz@gnu.org>
2876
2877 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2878 state is always cached (bug#6306).
2879
6d26bbb2
EZ
28802010-05-29 Eli Zaretskii <eliz@gnu.org>
2881
06fa4a23
EZ
2882 Fix cursor motion in bidi-reordered continued lines.
2883 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2884 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2885 over continuation lines in bidi-reordered buffers. Return
2886 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2887 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2888
f5783df3
MA
28892010-05-28 Michael Albinus <michael.albinus@gmx.de>
2890
2891 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2892
7d56b2dd
KH
28932010-05-28 Kenichi Handa <handa@m17n.org>
2894
2895 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2896 Don't sheck SPEC if it is nil.
2897 (font_list_entities): Call font_delete_unmatched if
b925d231 2898 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2899
e58d4ff7
GM
29002010-05-28 Glenn Morris <rgm@gnu.org>
2901
2902 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2903
f1a5d776
CY
29042010-05-27 Chong Yidong <cyd@stupidchicken.com>
2905
2906 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2907 whether to trash.
2908 (internal_delete_file, Frename_file): Callers changed.
2909 (delete_by_moving_to_trash): Doc fix.
2910 (Fdelete_directory_internal): Don't move to trash.
2911
2912 * callproc.c (delete_temp_file):
2913 * buffer.c (Fkill_buffer): Callers changed.
2914
2915 * lisp.h: Update prototype.
2916
f44a59e6
CY
29172010-05-27 Chong Yidong <cyd@stupidchicken.com>
2918
2919 * xdisp.c (redisplay_window): After redisplay, check if point is
2920 still valid before setting it (Bug#6177).
2921
81ac4f35
GM
29222010-05-27 Glenn Morris <rgm@gnu.org>
2923
2924 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2925 Convert comments to Makefile format.
2926
2927 * Makefile.in (bootstrap-clean): No more Makefile.c.
2928
ccd89fb3
GM
29292010-05-26 Glenn Morris <rgm@gnu.org>
2930
90278cb6
GM
2931 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2932 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2933
ccd89fb3
GM
2934 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2935 Remove.
2936 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2937
b7050583
KH
29382010-05-26 Kenichi Handa <handa@m17n.org>
2939
2940 * composite.c (composition_compute_stop_pos): Fix condition for
2941 backward scanning.
2942
e5458003
GM
29432010-05-25 Glenn Morris <rgm@gnu.org>
2944
c345fe90
GM
2945 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2946 Move before TEMACS_LDFLAGS.
2947 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2948 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2949
2e0689ab
GM
2950 * Makefile.in (NOT_C_CODE): No longer define.
2951 (config.h): No longer include.
2952
8009a5e8
GM
2953 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2954 variables it may reference.
2955
e5458003
GM
2956 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2957 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2958
10f72a37
KH
29592010-05-25 Kenichi Handa <handa@m17n.org>
2960
2961 * dispextern.h (struct composition_it): New members rule_idx and
2962 charpos.
2963
2964 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2965 that the character positions of IT point the last character of the
2966 current grapheme cluster.
2967 (next_element_from_composition): Don't change character positions
2968 of IT.
2969 (append_composite_glyph): Set glyph->charpos to
2970 it->cmp_it.charpos.
2971
2972 * composite.c (autocmp_chars): Change the first argument to RULE,
2973 and try composition with RULE only.
2974 (composition_compute_stop_pos): Record the index number of the
2975 composition rule in CMP_IT->rule_idx.
2976 (composition_reseat_it): Call autocmp_chars repeatedly until the
2977 correct rule of the composition is found.
2978 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2979 is at the last character of the current grapheme cluster when
2980 CMP_IT->reversed_p is nonzero.
2981
171eda53 29822010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2983
171eda53
SM
2984 * editfns.c (Fbyte_to_string): New function.
2985
66a9f7f4
SM
29862010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2987
2988 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2989 Suggested by Masatake YAMATO <yamato@redhat.com>.
2990
d8c315d1
EZ
29912010-05-23 Eli Zaretskii <eliz@gnu.org>
2992
171eda53 2993 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2994
f5b416d2 29952010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2996
2997 * s/netbsd.h: If terminfo is found, use it in preference to
2998 termcap. (Bug#6190) [Backport from trunk]
2999
0416466c
EZ
30002010-05-19 Eli Zaretskii <eliz@gnu.org>
3001
11117830 3002 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
3003
3004 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3005 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3006 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3007 and maxpos members instead of start.pos and end.pos, respectively.
3008
3009 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3010 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3011 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
3012 (try_window_reusing_current_matrix, try_window_id):
3013 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
3014 (init_from_display_pos, init_iterator): Use EMACS_INT for
3015 character and byte positions.
66a9f7f4 3016 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
3017 arguments for minimum and maximum buffer positions seen by
3018 display_line for this row. Don't use iterator to find the
3019 position following the maximum one; instead, increment the
11117830
EZ
3020 position found by display_line directly. Fix logic; eol_pos
3021 should be tested before the rest. Handle the case of characters
3022 delivered from display vector (bug#6036). Fix tests related to
3023 it->method. Handle the truncated_on_right_p rows.
3024 (RECORD_MAX_MIN_POS): New macro.
3025 (display_line): Use it to record the minimum and maximum buffer
3026 positions for glyphs in the row being assembled. Record the
3027 position of the newline that terminates the line. If word wrap is
3028 in effect, restore minimum and maximum positions seen up to the
3029 wrap point, when iterator returns to it.
3030 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3031 row and cursor not already at point. Restore original pre-bidi
3032 code for unidirectional buffers.
d36fe237
EZ
3033
3034 * dispnew.c (increment_row_positions, check_matrix_invariants):
3035 Increment and check row->start.pos and row->end.pos, in addition
3036 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3037
11117830
EZ
3038 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3039 Display truncated_on_left_p and truncated_on_right_p flags.
3040 Formatting fixes.
3041 (pmtxrows): Display the ordinal number of each row. Don't display
3042 rows beyond the last one.
3043
3044 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3045 it is not copied by bidi_copy_it.
3046
6e83d800
EZ
30472010-05-22 Eli Zaretskii <eliz@gnu.org>
3048
3049 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3050 (Bug#6237)
3051
110683ad
CY
30522010-05-22 Chong Yidong <cyd@stupidchicken.com>
3053
3054 * image.c (Fimage_flush): Rename from image-refresh.
3055
98fe5161
CY
30562010-05-21 Chong Yidong <cyd@stupidchicken.com>
3057
3058 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3059 just one window.
3060
3061 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3062 (clear_image_cache): If the number of cached images is unusually
3063 large, decrease the cache eviction delay (Bug#6230).
3064
e8752c66
GM
30652010-05-21 Glenn Morris <rgm@gnu.org>
3066
66dbf213
GM
3067 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3068 Move these rules to ns.mk.
3069 * ns.mk: New file.
3070
04384b2d
GM
3071 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3072
e8752c66
GM
3073 * Makefile.in (CANNOT_DUMP): New, set by configure.
3074 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3075
2e2bbddb
JL
30762010-05-20 Juri Linkov <juri@jurta.org>
3077
3078 * fileio.c (Fdelete_file): Change interative spec to use
3079 `read-file-name' like in `find-file-read-args' where the default
3080 value is `default-directory' instead of `buffer-file-name'.
3081 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3082
31c4aaf6
KR
30832010-05-20 Kevin Ryde <user42@zip.com.au>
3084
3085 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3086 (Voverriding_terminal_local_map, Vsystem_key_alist)
3087 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3088
9d5cf9b6
GM
30892010-05-20 Glenn Morris <rgm@gnu.org>
3090
3091 * Makefile.in (DEPDIR): New constant.
3092 (DEPFLAGS): Set with configure, not cpp.
3093 (MKDEPDIR): New, set by configure.
3094 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3095 (clean): Use $DEPDIR.
3096 (deps_frag): Include from configure.
3097 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3098 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3099
ead6f8f5
EZ
3100 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3101 reallocation of the cache. (Bug#6210)
3102
7f34aec3
GM
31032010-05-19 Glenn Morris <rgm@gnu.org>
3104
d494e8f2
GM
3105 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3106
c1d0dcfd
GM
3107 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3108 (GNULIB_VAR): Remove.
3109 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3110
3111 * m/ibms390x.h (LINKER):
3112 * m/macppc.h (LINKER) [GNU_LINUX]:
3113 * s/aix4-2.h (ORDINARY_LINK):
3114 * s/cygwin.h (LINKER):
3115 * s/darwin.h (ORDINARY_LINK):
3116 * s/gnu.h (ORDINARY_LINK):
3117 * s/netbsd.h (LINKER):
3118 * s/usg5-4.h (ORDINARY_LINK):
3119 Move to configure.
3120
7f34aec3
GM
3121 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3122
754790b6
CY
31232010-05-18 Chong Yidong <cyd@stupidchicken.com>
3124
3125 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3126 prevent stack overflow if number of arguments is too large
3127 (Bug#6214).
3128
161e44d1
JB
31292010-05-18 Juanma Barranquero <lekktu@gmail.com>
3130
3131 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3132
be4ff9da
GM
31332010-05-18 Glenn Morris <rgm@gnu.org>
3134
9539dc5d
GM
3135 * s/gnu-linux.h: Combine two conditionals.
3136
3137 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
3138 $(POST_ALLOC_OBJ).
3139
40dc6bf4
GM
3140 * Makefile.in (RALLOC_OBJ): New, set by configure.
3141 (rallocobj): Replace with the previous variable.
3142 (otherobj): Use $RALLOC_OBJ.
3143
3144 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3145 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3146
be4ff9da
GM
3147 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3148 (gmallocobj, vmlimitobj): Replace with previous two variables.
3149 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3150
16455a85
GM
31512010-05-17 Glenn Morris <rgm@gnu.org>
3152
3153 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3154 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3155
5fdb7468
GM
31562010-05-16 Glenn Morris <rgm@gnu.org>
3157
7ca1f3f9
GM
3158 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3159
7541dad5
GM
3160 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3161
da53fab9
GM
3162 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3163 trailing "/".
3164
b02a6645
GM
3165 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3166 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3167
8877ca0f
GM
3168 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3169 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3170 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3171 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3172 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3173
5fdb7468
GM
3174 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3175 Remove ${STARTFLAGS}, nothing ever sets it.
3176
95adb4b1
DN
31772010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3178
3179 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3180
676b6304
GM
31812010-05-16 Glenn Morris <rgm@gnu.org>
3182
9beab9ce
GM
3183 * Makefile.in (LIBX_BASE): Always define.
3184
8a95f0e7
GM
3185 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3186
676b6304
GM
3187 * Makefile.in (LIBXT): Always define.
3188
6e546d18
GM
31892010-05-15 Glenn Morris <rgm@gnu.org>
3190
4235ca47 3191 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 3192
6e546d18
GM
3193 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3194 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3195
8c5ff6dd
KR
31962010-05-15 Ken Raeburn <raeburn@raeburn.org>
3197
560bb7ae 3198 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
3199 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3200
8b4eb796
KR
3201 * emacs.c (main): Initialize initial-environment and
3202 process-environment before generating from env, not after.
3203
8c5ff6dd
KR
3204 Handle --version reasonably in CANNOT_DUMP configuration.
3205 * emacs.c (emacs_version, emacs_copyright): New string variables.
3206 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3207 (syms_of_emacs): Defvar them, and initialize them from the C
3208 string variables.
3209 (main): If initialization hasn't been done, print initial version
3210 info from the C strings, instead of starting an interactive session.
3211
dbd3f723
EZ
32122010-05-15 Eli Zaretskii <eliz@gnu.org>
3213
d20e1419
EZ
3214 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3215 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
3216 (bidi_paragraph_init): Remove redundant assertion that we are at
3217 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
3218
3219 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3220 (syms_of_xdisp): Defsubr it.
3221
d36fe237
EZ
3222 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3223
dbd3f723
EZ
3224 * Makefile.in: Fix MSDOS-related comments.
3225
02be533b
GM
32262010-05-15 Glenn Morris <rgm@gnu.org>
3227
1a82cca9
GM
3228 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3229 (really-lwlib, really-oldXMenu): Always define.
3230 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3231
3df7b338
GM
3232 * Makefile.in: Simplify cpp conditional.
3233
2b5f541b
GM
3234 * Makefile.in (${ns_appdir}): Simplify using umask.
3235
02be533b
GM
3236 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3237
4e2db1fe
SM
32382010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3239
3240 * eval.c (specbind): Remove left-over duplicate test.
3241 Disallow let-binding frame-local vars. Add comment.
3242
4b292a22
EZ
32432010-05-14 Eli Zaretskii <eliz@gnu.org>
3244
2fe72643 3245 Make the cache of bidi iterator states dynamically allocated.
1edbd309 3246 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
3247 (bidi_init_it): Call it.
3248 (bidi_cache_iterator_state): Enlarge the cache if needed.
3249
4e2db1fe 3250 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
3251 bidi_get_next_char_visually. All callers changed.
3252
82ebc97b
KH
32532010-05-14 Kenichi Handa <handa@m17n.org>
3254
3255 * dispextern.h (struct composition_it): New member reversed_p.
3256
3257 * composite.c (composition_compute_stop_pos): Search backward if
3258 ENDPOS < CHARPOS.
3259 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3260 Set CMP_IT->reversed_p.
b4b6e17e 3261 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 3262
4e2db1fe
SM
3263 * xdisp.c (set_iterator_to_next):
3264 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
3265 scanning backward. Call composition_compute_stop_pos if scan
3266 direction is changed.
3267 (next_element_from_buffer): Call composition_compute_stop_pos with
3268 negative ENDPOS if we are scanning backward.
3269 (next_element_from_composition): Pay attention to
3270 IT->cmp_it.reversed_p.
3271
0e5d7800
KH
32722010-05-14 Kenichi Handa <handa@m17n.org>
3273
560bb7ae 3274 * font.c (font_range): Return the range for the font found at first.
0e5d7800 3275
cb027b32
GM
32762010-05-14 Glenn Morris <rgm@gnu.org>
3277
177b0288
GM
3278 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3279
fbc00890
GM
3280 * Makefile.in (mktime, X11, register): Move undefs to configure.
3281
f14d1dfd
GM
3282 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3283 (MSDOS_X_OBJ): New variable.
3284 (MSDOS_SUPPORT_REAL): New constant.
3285 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3286 (obj): Use MSDOS_X_OBJ.
3287 (lisp): Use MSDOS_SUPPORT as a variable.
3288
11842bd8
GM
3289 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3290 (GPM_MOUSE_SUPPORT): Now it's a constant.
3291 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3292 not cpp.
3293
489d31a4 3294 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 3295 (ns_appresdir): Remove, unused.
e20f1f07 3296
489d31a4
GM
3297 * Makefile.in (SHELL): Move outside cpp section.
3298
cb027b32
GM
3299 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3300
5a903aa9
GM
33012010-05-13 Glenn Morris <rgm@gnu.org>
3302
3369c79f
GM
3303 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3304 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3305
d5e982a6
GM
3306 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3307 HAVE_WINDOW_SYSTEM must be too.
3308
6192e163
GM
3309 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3310 (lisp): Remove WINNT_SUPPORT.
3311
472c5d6b
GM
3312 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3313 Let configure set these variables (to empty) in this case as well.
3314
0116466b
GM
3315 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3316 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3317
5a903aa9
GM
3318 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3319 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3320 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3321 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3322 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 3323 the values output by configure.
5a903aa9
GM
3324 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3325
1a0d7c06
GM
33262010-05-12 Glenn Morris <rgm@gnu.org>
3327
b5457f14
GM
3328 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3329 (LINKER_WAS_SPECIFIED): Remove.
3330
1a0d7c06
GM
3331 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3332 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3333 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3334 * s/cygwin.h (LIB_GCC):
3335 * s/freebsd.h (LIB_GCC):
3336 * s/gnu-linux.h (LIB_GCC):
3337 * s/msdos.h (LIB_GCC):
3338 * s/netbsd.h (LIB_GCC):
3339 Move to configure.
3340
3ffd4615 33412010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
3342
3343 * ftfont.c: Fix incorrect parentheses of #if condition for
3344 definining M17N_FLT_USE_NEW_FEATURE.
3345
acddf8ae
GM
33462010-05-11 Glenn Morris <rgm@gnu.org>
3347
3348 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3349 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3350
ae5e04fa
EZ
33512010-05-10 Eli Zaretskii <eliz@gnu.org>
3352
3353 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3354 unibyte buffers. See
3355 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3356
7490175b
GM
33572010-05-10 Glenn Morris <rgm@gnu.org>
3358
97efb629
GM
3359 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3360 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3361 (LIBES): Use LIBS_SYSTEM as a variable.
3362 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3363 * s/aix4-2.h (LIBS_SYSTEM):
3364 * s/freebsd.h (LIBS_SYSTEM):
3365 * s/hpux10-20.h (LIBS_SYSTEM):
3366 * s/sol2-6.h (LIBS_SYSTEM):
3367 * s/unixware.h (LIBS_SYSTEM):
3368 Move to configure.
3369
7490175b
GM
3370 * s/aix4-2.h (MAIL_USE_LOCKF):
3371 * s/bsd-common.h (MAIL_USE_FLOCK):
3372 * s/darwin.h (MAIL_USE_FLOCK):
3373 * s/gnu-linux.h (MAIL_USE_FLOCK):
3374 * s/irix6-5.h (MAIL_USE_FLOCK):
3375 * s/template.h (MAIL_USE_FLOCK):
3376 Move to configure.
3377
0235128c 33782010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
3379
3380 * Version 23.2 released.
3381
0235128c 33822010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
3383
3384 * composite.c (autocmp_chars): Save point as marker before calling
3385 auto-composition-function (Bug#5984).
3386
3387 * lisp.h (restore_point_unwind): Add prototype.
3388
3389 * fileio.c (restore_point_unwind): Remove static attribute.
3390
0235128c 33912010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
3392
3393 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3394 new feature of libotf and m17n-flt.
0235128c
SM
3395 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3396 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
3397 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3398 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3399 that OUT is NULL. Use OTF_drive_gsub_with_log and
3400 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3401 OTF_drive_gpos.
3402 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
3403 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3404 Setup mflt_enable_new_feature and mflt_try_otf.
3405
4721152c
J
34062010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3407
3408 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3409
3410 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3411 box and toolbar (Bug #6139).
3412 (xg_create_tool_bar): Remove comment (Bug #6139).
3413 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3414 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3415
ee0a16cf
JB
34162010-05-08 Juanma Barranquero <lekktu@gmail.com>
3417
3418 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3419 Update dependencies.
3420
96d79611
EZ
34212010-05-08 Eli Zaretskii <eliz@gnu.org>
3422
3423 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3424 R2L lines.
3425
40c17879
GM
34262010-05-08 Glenn Morris <rgm@gnu.org>
3427
7b42b29f
GM
3428 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3429
40c17879
GM
3430 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3431 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3432 (termcapobj): Replace with TERMCAP_OBJ.
3433 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3434 (LIBES): Use LIBS_TERMCAP as a variable.
3435
3436 * s/freebsd.h (osreldate.h): No longer include, since this file
3437 does not use __FreeBSD_version any more.
3438
3439 * s/aix4-2.h (TERMINFO):
3440 * s/cygwin.h (TERMINFO):
3441 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3442 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3443 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3444 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3445 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3446 * s/irix6-5.h (TERMINFO):
3447 * s/netbsd.h (LIBS_TERMCAP):
3448 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3449 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3450 * s/usg5-4.h (TERMINFO):
3451 Move to configure.
3452
94b612ad
SM
34532010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3454
3455 * eval.c (unbind_to): Don't unbind a local binding into the global
3456 binding when the local binding disappeared. Inversely, don't unbind
3457 a global binding into a newly created local binding.
3458 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3459 can specify the frame to use, when applicable. Adjust callers.
3460
15e12598 34612010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 3462 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
3463
3464 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3465
f724825e
EZ
34662010-05-07 Eli Zaretskii <eliz@gnu.org>
3467
5cba3209
EZ
3468 * w32fns.c: Include w32.h.
3469 (Fw32_shell_execute): Decode the error message before passing it
3470 to `error'. (Bug#6126)
3471
d16bdfc3
EZ
3472 * msdos.c (dos_set_window_size):
3473 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3474 instead of `XSYMBOL (foo)->value'.
3475
59d93e87
EZ
34762010-05-07 Eli Zaretskii <eliz@gnu.org>
3477
9fdec8bc
EZ
3478 Fix the MS-DOS build, broken by autoconfiscation.
3479
3480 * Makefile.in: Don't use Make-style comments past the "start of
3481 cpp stuff" line.
3482 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3483
3484 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3485 edited directly by msdos/sed1v2.inp).
f724825e 3486
2f86b22b
GM
34872010-05-07 Glenn Morris <rgm@gnu.org>
3488
3489 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3490 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3491 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3492 move out of cpp section.
3493 * s/freebsd.h (LD_SWITCH_SYSTEM):
3494 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3495 * s/netbsd.h (LD_SWITCH_SYSTEM):
3496 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3497
49ebbd65
DN
34982010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3499
3500 Define LIB_STANDARD and START_FILES using autoconf.
3501 * s/usg5-4.h (LIB_STANDARD):
3502 * s/netbsd.h (START_FILES):
3503 * s/irix6-5.h (LIB_STANDARD):
3504 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3505 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3506 * s/freebsd.h (START_FILES):
3507 * s/darwin.h (START_FILES):
3508 * s/cygwin.h (START_FILES):
3509 * s/aix4-2.h (LIB_STANDARD):
3510 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3511 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3512 autoconf, not cpp.
3513
d43c06d6
DN
35142010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3515
28823648
DN
3516 Remove NEED_BSDTTY and NEED_UNISTD_H.
3517 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3518 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3519 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3520 <sys/ptyio.h> and <unistd.h>.
3521
aca00430
DN
3522 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3523
d43c06d6
DN
3524 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3525 * s/gnu.h (START_FILES): Remove empty definition.
3526
3e56b11d
JD
35272010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3528
3529 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3530
e3cf0cde
GM
35312010-05-06 Glenn Morris <rgm@gnu.org>
3532
3533 * Makefile.in (CPP, LN_S): Remove unused variables.
3534
774b9a60
SM
35352010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3536
3537 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3538
4ab92842
LM
35392010-05-05 Lawrence Mitchell <wence@gmx.li>
3540
3541 * m/sparc.h: Fix typo in earlier change.
3542
178f2507
SM
35432010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3544
3545 Misc tweaks.
3546 * eval.c (Fdefvaralias): Remove unintended nested if.
3547 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3548
80f00217 35492010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
3550
3551 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3552
ef03a4e6
DN
35532010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3554
58eb6cf0
DN
3555 Remove BSD_PGRPS.
3556 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3557 * s/gnu-linux.h (BSD_PGRPS): Remove.
3558 * term.c (dissociate_if_controlling_tty):
3559 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3560 (init_sys_modes, reset_sys_modes):
3561 * emacs.c (main):
3562 * callproc.c (Fcall_process, child_setup): Remove code depending
3563 on BSD_PGRPS.
3564
ef03a4e6
DN
3565 Remove POSIX_SIGNALS.
3566 * s/usg5-4.h (POSIX_SIGNALS):
3567 * s/netbsd.h (POSIX_SIGNALS):
3568 * s/msdos.h (POSIX_SIGNALS):
3569 * s/ms-w32.h (POSIX_SIGNALS):
3570 * s/hpux11.h (POSIX_SIGNALS):
3571 * s/gnu.h (POSIX_SIGNALS):
3572 * s/gnu-linux.h (POSIX_SIGNALS):
3573 * s/freebsd.h (POSIX_SIGNALS):
3574 * s/darwin.h (POSIX_SIGNALS):
3575 * s/cygwin.h (POSIX_SIGNALS):
3576 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3577 * s/unixware.h:
3578 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3579 * process.c (create_process):
3580 * syssignal.h:
3581 * sysdep.c (wait_for_termination, init_signals):
3582 * process.c (create_process):
3583 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3584 remove all code that assumes the contrary.
3585
49628785
GM
35862010-05-04 Glenn Morris <rgm@gnu.org>
3587
27a2cdfc
GM
3588 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3589 variable.
3590 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3591 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3592 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3593 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3594 LD_SWITCH_SYSTEM_tmp.
3595 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3596 New variables, set by configure.
3597
eb21eab5
GM
3598 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3599 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3600 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3601 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3602 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3603
49628785
GM
3604 * s/aix4-2.h (C_SWITCH_SYSTEM):
3605 * m/alpha.h (C_SWITCH_MACHINE):
3606 Move to configure.in.
3607 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3608 New variables, set by configure.
3609 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3610 $c_switch_machine and $c_switch_system.
3611
7dff330b
DN
36122010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3613
3614 * s/hpux10-20.h (LIB_STANDARD): New definition.
3615 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3616 on it, not used anymore.
3617
53967e09
CY
36182010-05-03 Chong Yidong <cyd@stupidchicken.com>
3619
3620 * eval.c (internal_condition_case_n): Rename from
3621 internal_condition_case_2.
3622 (internal_condition_case_2): New function.
3623
3624 * xdisp.c (safe_call): Use internal_condition_case_n.
3625
3626 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3627 (internal_delete_file, Frename_file): Callers changed.
3628
3629 * buffer.c (Fkill_buffer):
3630 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3631
3632 * lisp.h: Update prototypes.
3633
3dee6fdb
GM
36342010-05-03 Glenn Morris <rgm@gnu.org>
3635
3636 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3637 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3638 (LIBXT): Set with configure, not cpp.
3639 (LIBX): Remove.
3640 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3641
a101e0fb
DN
36422010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3643
3644 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3645 The FreeBSD is not needed, the default works, Solaris version is
3646 not needed, and the remaining case is not supported by configure.
3647
f63d0028
JD
36482010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3649
3650 * xsmfns.c (CHDIR_OPT): New define.
3651 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3652 restarting emacs.
3653
3654 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3655 shut_down_emacs.
3656
3657 * emacs.c (USAGE1): Mention --chdir.
3658 (main): Handle --chdir.
3659 (standard_args): Add --chdir.
3660 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3661 #5552).
3662
e4814a9f
DN
36632010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3664
cd03c74a
DN
3665 Remove LD_SWITCH_MACHINE.
3666 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3667 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3668
c3a398a1
DN
3669 Clean up IRIX code.
3670 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3671 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3672
87e7285c
DN
3673 Clean up AIX code.
3674 * m/ibmrs6000.inp: Remove file, unused.
3675 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3676 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3677 definition ...
3678 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3679
80f00217
JB
3680 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3681 unused.
e4814a9f 3682
59ca28de
EZ
36832010-05-01 Eli Zaretskii <eliz@gnu.org>
3684
197daef4
EZ
3685 Emulate POSIX_SIGNALS on MS-Windows.
3686
3687 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3688 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
3689
3690 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3691 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3692 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3693
80f00217
JB
3694 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3695 New stubs.
197daef4 3696
af7c7572
EZ
3697 Miscellaneous fixes of bidi display.
3698
59ca28de
EZ
3699 * xdisp.c (find_row_end): New function, refactored from display_line.
3700 (display_line): Use it.
017ea819
EZ
3701 (extend_face_to_end_of_line): In almost-filled rows, extend only
3702 if the row is R2L and not continued.
166e930d 3703 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 3704 Preserve overlay and string info in row->end.
166e930d
EZ
3705 (insert_left_trunc_glyphs): Support addition of left truncation
3706 glyphs to R2L rows.
b47e0dcf 3707 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
3708 glyph between adjacent windows. Fix a crash when a display string
3709 is continued to the next line. Don't return zero if cursor was
3710 found by `cursor' property of a display string.
b47e0dcf
EZ
3711 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3712 test for that explicitly.
59ca28de 3713
7acac9f4
GM
37142010-05-01 Glenn Morris <rgm@gnu.org>
3715
3716 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3717 for clarity.
3718 (OTHER_OBJ): Remove.
3719 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3720 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3721
45841e65
KK
37222010-05-01 Karel Klíč <kklic@redhat.com>
3723
3724 * fileio.c (Ffile_selinux_context): Context functions may return null.
3725
afc61943
DN
37262010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3727
80f00217 3728 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 3729
5a1bb006
GM
37302010-04-30 Glenn Morris <rgm@gnu.org>
3731
3732 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3733 (OTHER_OBJ): Define as a separate variable, for clarity.
3734
210af043
J
37352010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3736
3737 * xsettings.c: include limits.h and update file comment.
3738
0a7df391
GM
37392010-04-30 Glenn Morris <rgm@gnu.org>
3740
d5096f16
GM
3741 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3742 Set with configure, not cpp.
3743 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3744
7eb1ac33
GM
3745 * Makefile.in (mallocobj): Remove.
3746 (otherobj): Simplify using @OTHER_OBJ@.
3747
517d086b
GM
3748 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3749 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3750 Don't bother making nsgui.h dependency platform-specific.
3751
0a7df391
GM
3752 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3753
d6d23852
SM
37542010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3755
d2630aef
SM
3756 * process.c (read_process_output, exec_sentinel): Don't burp if the
3757 sentinel/filter kills the current buffer (bug#6060).
3758
f9dddf52 3759 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
3760 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3761 Remove unused var `args'.
3762 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3763 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3764 * doc.c (store_function_docstring): Use XSETCAR.
3765
f1e3642a
GM
37662010-04-28 Glenn Morris <rgm@gnu.org>
3767
faf535f8
GM
3768 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3769 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3770
c40f9449
GM
3771 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3772
658f86ca
GM
3773 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3774 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3775
bc0b5f61
GM
3776 * Makefile.in (FONT_OBJ): New, set by configure.
3777 (FONT_DRIVERS): Use $FONT_OBJ.
3778
294c50a0
GM
3779 * Makefile.in (LIBXMU): Set with configure, not cpp.
3780 * s/aix4-2.h (LIBXMU):
3781 * s/hpux10-20.h (LIBXMU):
3782 Remove definition, now set in configure.
3783
e6ec4e99
GM
3784 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3785
f1e3642a
GM
3786 * m/amdx86-64.h [i386]: Move this test to configure.in.
3787
c6ea2936
GM
37882010-04-27 Glenn Morris <rgm@gnu.org>
3789
8fdac2c3
GM
3790 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3791 * s/unixware.h (NEED_LIBW): Remove definition.
3792
986fb647
GM
3793 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3794 (TOOLKIT_LIBW): New, set by configure.
3795 (@X_TOOLKIT_TYPE@): No longer define it.
3796
c6ea2936
GM
3797 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3798 (MOTIF_LIBW): Set with configure, not cpp.
3799 * s/aix4-2.h (LIB_MOTIF):
3800 * s/gnu-linux.h (LIB_MOTIF):
3801 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3802
aaa36002
DN
38032010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3804
3805 Reduce CPP usage.
3806 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3807 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3808 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3809 definitions and undefs. Inline definitions in the only user.
3810 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3811
b678dd8b
GM
38122010-04-27 Glenn Morris <rgm@gnu.org>
3813
76cda504
GM
3814 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3815 since the defaults (set by the system file) are fine in most cases.
3816 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3817 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3818 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3819 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3820 Remove definitions, since they are set correctly in s/gnu-linux.h.
3821 * s/freebsd.h (START_FILES, LIB_STANDARD):
3822 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3823 * s/hpux10-20.h (START_FILES):
3824 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3825 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3826
b678dd8b
GM
3827 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3828 (MOTIF_LIBW): Use $LIBXP.
3829 (otherobj): Use $WIDGET_OBJ.
3830
9452ded1
DN
38312010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3832
7e10844c
DN
3833 * Makefile.in (LIBS_MACHINE): Remove, unused.
3834
9452ded1
DN
3835 Use autoconf instead of cpp for LIB_MATH.
3836 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3837 * s/cygwin.h (LIB_MATH): Likewise.
3838 * Makefile.in (LIB_MATH): Do not define with cpp.
3839 (LIBES): Use autoconf for LIB_MATH.
3840
fcebfc6a
KH
38412010-04-26 Kenichi Handa <handa@m17n.org>
3842
3843 * composite.c (Ffind_composition_internal): Fix the return value
3844 for an automatic composition.
3845
39e2ad1b
DN
38462010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3847
3848 Remove all NO_ARG_ARRAY uses.
3849 * fns.c (concat2, concat3, nconc2):
3850 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3851 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3852 * m/xtensa.h (NO_ARG_ARRAY):
3853 * m/template.h (NO_ARG_ARRAY):
3854 * m/sparc.h (NO_ARG_ARRAY):
3855 * m/sh3.h (NO_ARG_ARRAY):
3856 * m/mips.h (NO_ARG_ARRAY):
3857 * m/macppc.h (NO_ARG_ARRAY):
3858 * m/iris4d.h (NO_ARG_ARRAY):
3859 * m/intel386.h (NO_ARG_ARRAY):
3860 * m/ibms390x.h (NO_ARG_ARRAY):
3861 * m/ibms390.h (NO_ARG_ARRAY):
3862 * m/ibmrs6000.h (NO_ARG_ARRAY):
3863 * m/ia64.h (NO_ARG_ARRAY):
3864 * m/hp800.h (NO_ARG_ARRAY):
3865 * m/arm.h (NO_ARG_ARRAY):
3866 * m/amdx86-64.h (NO_ARG_ARRAY):
3867 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3868
adf4f59c
EZ
38692010-04-25 Eli Zaretskii <eliz@gnu.org>
3870
6bdf5d65
EZ
3871 * xdisp.c (display_line): Don't assume 2nd call to
3872 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3873 (iterate_out_of_display_property): New function, body from pop_it.
3874 (pop_it): Use it.
adf4f59c 3875
dfbbda83
GM
38762010-04-24 Glenn Morris <rgm@gnu.org>
3877
3878 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3879 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3880 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3881 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3882
2d4018aa
EZ
38832010-04-24 Eli Zaretskii <eliz@gnu.org>
3884
a49884a6
EZ
3885 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3886 use `get_next_display_element' and `set_iterator_to_next' to
3887 advance to the next character, when looking for the character that
3888 begins the next row.
3889
76db6fcc 3890 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3891 definition of "struct Lisp_Symbol".
3892
70eab5c1
GM
38932010-04-24 Glenn Morris <rgm@gnu.org>
3894
3895 * Makefile.in (CRT_DIR): New variable, set by configure.
3896 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3897 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3898
1ad4cc3d
DN
38992010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3900
e769f484
DN
3901 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3902
4196ff33
DN
3903 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3904
879b0ee4
DN
3905 Remove redundant flags.
3906 * s/freebsd.h (C_SWITCH_SYSTEM):
3907 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3908 * s/netbsd.h (C_SWITCH_SYSTEM):
3909 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3910 of these.
3911
03cbbcb8
DN
3912 Simplify m/intel386.h.
3913 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3914 user: ecrt0.c.
3915 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3916 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3917 the only user: s/unixware.h.
3918 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3919 from m/intel386.h.
3920 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3921 moved here from m/intel386.h.
3922
1ad4cc3d
DN
3923 * m/mips.h: Remove #if 0 code.
3924
8785b888
EZ
39252010-04-23 Eli Zaretskii <eliz@gnu.org>
3926
728588cc
EZ
3927 Fix display of composed characters from L2R scripts in bidi buffers.
3928 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3929 After advancing IT past the composition, resync the bidi iterator
3930 with IT's position. (Bug#5977)
3931
a63f80b4
DN
39322010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3933
3934 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3935 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3936
ff5dec5c
SM
39372010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3938
3939 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3940
8785b888
EZ
39412010-04-23 Eli Zaretskii <eliz@gnu.org>
3942
58ccf243 3943 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3944 * xdisp.c (pop_it): When the stack is popped after displaying
3945 from a string, bidi-iterate to exit from the text portion covered
3946 by the `display' property or overlay. (Bug#5988, bug#5920)
3947
feeb1604
DN
39482010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3949
8e324eb6
DN
3950 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3951 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3952
809fcaba
DN
3953 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3954 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3955
ed710380
DN
3956 Simplify STARTFILES definition.
3957 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3958 relying on Makefile.in to define it.
3959 * s/cygwin.h (START_FILES): Likewise.
3960 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3961
feeb1604
DN
3962 Clean up Solaris code.
3963 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3964 (LIB_MOTIF): Remove, configure takes care of this.
3965 (NOT_USING_MOTIF): Remove, unused.
3966 * xrdb.c: Remove #if 0-ed #include.
3967 (SYSV): Remove conditional for old SysV.
3968 * sysdep.c (closedir): Remove conditional code for Solaris,
3969 Solaris has closedir.
3970
a0d0b563
JD
39712010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3972
3973 * xsettings.c (read_and_apply_settings): Check if current_font is
3974 NULL before strcmp (Bug#6001).
3975
56bae7c7
DN
39762010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3977
3978 Clean up HP-UX files.
3979 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3980 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3981 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3982 * s/hpux10-20.h: ... to the only user, here.
3983
372b7a95
EZ
39842010-04-21 Eli Zaretskii <eliz@gnu.org>
3985
3986 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3987 use buffer-local values of paragraph-start and paragraph-separate.
3988 <paragraph_start_re, paragraph_separate_re>: Rename from
3989 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3990 (Bug#5992)
3991
f904c0f9
JD
39922010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3993
3994 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3995 current_tool_bar_style are new.
3996 (store_config_changed_event): Rename from store_font_changed_event.
3997 (XSETTINGS_TOOL_BAR_STYLE): New define.
3998 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3999 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4000 HAVE_XFT.
4001 (something_changedCB): store_font_changed_event is now
c4cc8b9a 4002 store_config_changed_event.
f904c0f9
JD
4003 (parse_settings): Rename from parse_xft_settings. Read
4004 non-xft xsettings outside #ifdef HAVE_XFT.
4005 (read_settings): Renamed from read_xft_settings.
4006 (apply_xft_settings): Take current settings as parameter. Do not
4007 call read_(xft)_settings.
4008 (read_and_apply_settings): New function.
4009 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4010 read_and_apply_settings if there are settings to be read.
4011 (init_xsettings): Renamed from init_xfd_settings.
4012 Call read_and_apply_settings unconditionally.
4013 (xsettings_initialize): Call init_xsettings.
4014 (Ftool_bar_get_system_style): New function.
4015 (syms_of_xsettings): Define Qmonospace_font_name and
4016 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 4017 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 4018 dynamic-setting.
31a01b90 4019 Move misplaced HAVE_GCONF
f904c0f9
JD
4020
4021 * xsettings.h (Ftool_bar_get_system_style): Declare.
4022
4023 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4024 Qtext, Qboth, Qboth_horiz are new.
4025 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4026 Vtool_bar_style, tool_bar_max_label_size.
4027
4028 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4029
4030 * keyboard.c: QClabel is new.
4031 (parse_tool_bar_item): Take out QClabel from tool bar items.
4032 Try to construct a label if ther is no QClabel.
4033 (syms_of_keyboard): Intern :label as QClabel.
4034
4035 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4036 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4037 New.
4038
4039 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4040 dynamic-setting.el.
4041
4042 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4043 (xg_make_tool_item, xg_show_toolbar_item): New function.
4044 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4045 Call xg_make_tool_item to make a tool bar item.
4046 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4047
4048 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4049 into account for toolbars.
4050
c632dfda
JD
40512010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4052
4053 * data.c (make_blv): Declarations before code (Bug#5993).
4054
10efe302
GM
40552010-04-21 Glenn Morris <rgm@gnu.org>
4056
4057 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4058 Define using autoconf, not cpp.
4059 (LIBXSM): New variable, set by autoconf.
4060 (LIBXT): Use $LIBXSM.
4061
4285ac5a
DN
40622010-04-21 Dan Nicolaescu <local_user@dannlt>
4063
3ec759e7
DN
4064 Remove NOMULTIPLEJOBS, unused.
4065 * s/template.h (NOMULTIPLEJOBS):
4066 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4067
4285ac5a
DN
4068 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4069 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4070 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4071 detects -znocombreloc and passes it to the linker
4072 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4073
2807228d
GM
40742010-04-21 Glenn Morris <rgm@gnu.org>
4075
4076 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4077
574c05e2
KK
40782010-04-21 Karel Klíč <kklic@redhat.com>
4079
4080 * Makefile.in (LIBSELINUX_LIBS): New.
4081 (LIBES): Add $LIBSELINUX_LIBS.
4082 * eval.c, lisp.h (call7): New function.
4083 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4084 (Ffile_selinux_context, Fset_file_selinux_context):
4085 New functions.
4086 (Fcopy_file): New parameter preserve-selinux-context.
4087 (Frename_file): Preserve selinux context when renaming by copy-file.
4088
91eac4bb 40892010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 4090 Eli Zaretskii <eliz@gnu.org>
91eac4bb 4091
50426a04
JB
4092 Don't depend on cm.c or termcap.c on Windows, use stubs.
4093 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4094 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4095 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4096 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4097 (sys_tputs, sys_tgetstr): New stubs.
4098 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4099 (tputs, tgetstr): New; define to sys_*.
91eac4bb 4100
938efb77
JB
41012010-04-20 Juanma Barranquero <lekktu@gmail.com>
4102
4103 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4104
b4bf28b7
SM
41052010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4106
8b1e1112
SM
4107 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4108 Just signal a warning rather than an error when inside a let.
4109 (Fmake_variable_frame_local): Add the same test.
4110
933ac235
SM
4111 * font.c (syms_of_font): Make the style table vars read-only.
4112
b4bf28b7
SM
4113 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4114 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4115
4116 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4117
93d68d0c
EZ
41182010-04-20 Eli Zaretskii <eliz@gnu.org>
4119
4120 Fix R2L paragraph display on TTY.
4121
4122 * xdisp.c (unproduce_glyphs): New function.
4123 (display_line): Use it when produced glyphs are discarded from R2L
4124 glyph rows.
4125 (append_composite_glyph): In R2L rows, prepend the glyph rather
4126 than appending it.
4127
4128 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4129 rather than append it. Set up the resolved_level and bidi_type
4130 attributes of the appended glyph.
283ccc18
EZ
4131 (produce_special_glyphs): Mirror the backslash continuation
4132 character in R2L lines.
93d68d0c 4133
283ccc18 4134 Implement display of R2L paragraphs in GUI sessions.
26cdf528 4135
283ccc18
EZ
4136 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4137 append_stretch_glyph.
4138 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4139 off-by-one error in computing x at end of text in the row.
4140 (append_stretch_glyph): In reversed row, prepend the glyph rather
4141 than append it. Set resolved_level and bidi_type of the glyph.
4142 (extend_face_to_end_of_line): If the row is reversed, prepend a
4143 stretch glyph whose width is such that the rightmost glyph will be
4144 drawn at the right margin of the window. Fix off-by-one error on
4145 TTY frames in testing whether a line needs face extension. Fix
4146 face extension at ZV. If this is the last glyph row, use
4147 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4148 region face.
4149 (set_cursor_from_row, display_line): Use
26cdf528
EZ
4150 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4151 row->continuation_lines_width.
283ccc18
EZ
4152 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4153 are at ZV. Fixes a crash when reseated to ZV by
4154 try_window_reusing_current_matrix.
45903529
EZ
4155 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4156 which happens with R2L glyph rows. Fixes a crash when inserting a
4157 character at end of an R2L line.
283ccc18
EZ
4158 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4159 treat them as having zero-width characters. Improve comments.
4160 Don't reverse pos_before and pos_after for reversed glyph rows.
4161 Set cursor.x to negative value when the cursor might be on the
4162 left fringe.
4163 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4164 left fringe, not the right one.
f951a506
EZ
4165 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4166 (erase_phys_cursor): For reversed cursor_row, support cursor on
4167 the left fringe.
4168
283ccc18
EZ
4169 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4170 of continuation indicators on the fringes.
4171 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4172 left fringe.
4173
f951a506
EZ
4174 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4175 draw cursor on the left fringe.
4176
4177 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4178 cursor on the left fringe.
4179
f951a506
EZ
4180 * dispnew.c (update_text_area): Handle reversed desired rows when
4181 the cursor is on the left fringe.
4182 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4183 below, not by 0, for when the cursor is on the left fringe.
4184
3bb49aaf
JD
41852010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4186
4187 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4188 widget is a scrollbar.
4189
c0be27fd
KH
41902010-04-20 Kenichi Handa <handa@m17n.org>
4191
4192 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4193 only when the arg CHARSET_LIST is nil.
4194
ce5b453a
SM
41952010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4196
4197 Make variable forwarding explicit rather the using special values.
4198 Basically, this makes the structure of buffer-local values and object
4199 forwarding explicit in the type of Lisp_Symbols rather than use
4200 special Lisp_Objects for that. This tends to lead to slightly more
4201 verbose code, but is more C-like, simpler, and makes it easier to make
4202 sure we handled all cases, among other things by letting the compiler
4203 help us check it.
4204 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4205 Removing forwarding objects.
4206 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4207 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4208 explicit rather than hiding them inside Lisp_Object "values".
4209 (XFWDTYPE): New macro.
4210 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4211 (XBUFFER_LOCAL_VALUE): Remove.
4212 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4213 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4214 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4215 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4216 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4217 Remove the Lisp_Misc_* header.
4218 (struct Lisp_Buffer_Local_Value): Redefine.
4219 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4220 (struct Lisp_Misc_Any): Add filler to get the right size.
4221 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4222 Lisp_Intfwd.
4223 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4224 (DEFVAR_KBOARD): Allocate a forwarding object.
4225 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4226 (let_shadows_global_binding_p): New function.
4227 (union Lisp_Val_Fwd): New type.
4228 (make_blv): New function.
4229 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4230 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4231 (swap_in_symval_forwarding, find_symbol_value, Fset)
4232 (let_shadows_buffer_binding_p, set_internal, default_value)
4233 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4234 (Fkill_local_variable, Fmake_variable_frame_local)
4235 (Flocal_variable_p, Flocal_variable_if_set_p)
4236 (Fvariable_binding_locus):
4237 * xdisp.c (select_frame_for_redisplay):
4238 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4239 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4240 * frame.c (store_frame_param):
4241 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4242 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4243 value structure.
4244 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4245 (clone_per_buffer_values): Only adjust markers into the current buffer.
4246 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4247 (Fbuffer_local_value, set_buffer_internal_1)
4248 (swap_out_buffer_local_variables):
4249 Adapt to the new symbol value structure.
4250 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4251 (defvar_per_buffer): Take a new arg for the fwd object.
4252 (buffer_lisp_local_variables): Return a proper alist (different fix
4253 for bug#4138).
4254 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4255 (Fgarbage_collect): Don't handle buffer_defaults specially.
4256 (mark_object): Handle new symbol value structure rather than the old
4257 special Lisp_Misc_* objects.
4258 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4259 * term.c (set_tty_color_mode):
4260 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4261 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4262 a buffer_local_flags.
4263 * print.c (print_object): Get rid of impossible forwarding objects.
4264
fd3998ff
EZ
42652010-04-19 Eli Zaretskii <eliz@gnu.org>
4266
4267 * bidi.c (bidi_get_type, bidi_get_category)
4268 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
4269 (bidi_type_of_next_char, bidi_level_of_next_char):
4270 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 4271
e42cd1a7
JB
42722010-04-19 Juanma Barranquero <lekktu@gmail.com>
4273
4274 * dired.c (Ffile_attributes): Fix typo in docstring.
4275
6e104790 42762010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
4277
4278 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4279 NSInteger (Bug#5811).
4280
6e104790 42812010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
4282
4283 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4284 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4285
6e104790 42862010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
4287
4288 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4289
6e104790
SM
42902010-04-19 Chong Yidong <cyd@stupidchicken.com>
4291
4292 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4293 terminal frames (Bug#5837).
4294
37dcfea0
EZ
42952010-04-19 Eli Zaretskii <eliz@gnu.org>
4296
d1da276f
EZ
4297 * .gdbinit (xsubchartable): New command.
4298
37dcfea0
EZ
42992010-04-19 Eli Zaretskii <eliz@gnu.org>
4300
4301 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 4302 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
4303 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4304 and
4305 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4306
e9515805
SM
43072010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4308
4309 * alloc.c (Fpurecopy): Hash-cons if requested.
4310 (syms_of_alloc): Update purify-flag docstring.
4311
22aa44a8
JD
43122010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4313
4314 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4315 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4316
ebb5722e
EZ
43172010-04-17 Eli Zaretskii <eliz@gnu.org>
4318
4319 Fix a crash when an NSM character is inserted at BEGV.
4320
4321 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4322 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4323 NEUTRAL_B or UNKNOWN_BT.
4324
0f4442ef
EZ
43252010-04-16 Eli Zaretskii <eliz@gnu.org>
4326
4327 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4328 other rows with cursor unless they are different from this row and
4329 this row is part of a continued line. (Bug#5943)
4330
7d4e45f8
DN
43312010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4332
4333 * s/freebsd.h: Restore osreldate.h include.
4334 Suggested by Naohiro Aota.
4335
5ba5ec85
J
43362010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4337
4338 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4339
20af301d
CY
43402010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4341
4342 * s/cygwin.h: Avoid linking against static libgcc.
4343
a4b000fb
JL
43442010-04-15 Juri Linkov <juri@jurta.org>
4345
4346 * window.c: Add Qscroll_command.
4347 Remove Vscroll_preserve_screen_position_commands.
4348 (window_scroll_pixel_based, window_scroll_line_based): Check the
4349 `scroll-command' property on the last command instead of searching
4350 the last command in Vscroll_preserve_screen_position_commands.
4351 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4352 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4353 (scroll-preserve-screen-position): Doc fix.
4354 (Vscroll_preserve_screen_position_commands): Remove variable.
4355
bc319ba4
DN
43562010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4357
6bb24457
DN
4358 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4359
19d4c244
DN
43602010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4361
4362 Reduce cpp use in Makefile.in.
4363 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4364 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4365 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4366 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4367 (CRT0_COMPILE): Remove, inline it in the only user.
4368
32129746
JL
43692010-04-14 Juri Linkov <juri@jurta.org>
4370
4371 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4372 `scroll-up-command' and `M-v' from `scroll-down' to
4373 `scroll-down-command'.
4374
9013a7f8
JL
43752010-04-14 Juri Linkov <juri@jurta.org>
4376
4377 * window.c (Vscroll_preserve_screen_position_commands): New variable
4378 with the default value as the list of Qscroll_down and Qscroll_up.
4379 (window_scroll_pixel_based, window_scroll_line_based): Search the
4380 last command in the list Vscroll_preserve_screen_position_commands
4381 instead of comparing with Qscroll_up and Qscroll_down.
4382
4bef8d26
JD
43832010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4384
92848133
JD
4385 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4386 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4387 does that.
4388
4bef8d26
JD
4389 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4390 to zero.
4391
58b963f7
SM
43922010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4393
84164a0d
SM
4394 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4395
2b0a91e7
SM
4396 Try to solve the problem of spurious EOF chars in long lines of text
4397 sent to interactive subprocesses.
4398 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4399 (system_process_attributes): Remove unused var `ttotal'.
4400 * process.c (send_process): Don't bother breaking long line with EOF
4401 chars when talking to ttys any more.
4402 (wait_reading_process_output): Output a warning when called in such
4403 a way that it could block without being interruptible.
4404
58b963f7
SM
4405 Try to detect file modification within the same second.
4406 * buffer.h (struct buffer): New field modtime_size.
4407 * buffer.c (reset_buffer): Initialize it.
4408 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4409 (Fverify_visited_file_modtime): Check it.
4410 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4411 (Fset_visited_file_modtime): Set (or clear) it.
4412
01f5787b
SM
44132010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4414
4415 * process.c (status_notify): Remove unused var `ro'.
4416
83725342
JD
44172010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4418
4419 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4420 more than one visual (Bug#5938).
4421
b9465836
DN
44222010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4423
50426a04
JB
4424 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4425 Undefine.
b9465836 4426
8d9c8ece
DN
44272010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4428
b1f52161
DN
4429 Remove C_SWITCH_SYSTEM_TEMACS.
4430 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4431 (malloc, realloc, free): Use emacs, not temacs for conditional
4432 definition.
4433
4434 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4435 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4436
8d9c8ece
DN
4437 Use autoconf, not cpp for some variables.
4438 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4439 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4440 (ALL_CFLAGS): Use them as make variables.
4441 (really-lwlib, really-oldXMenu): Do not pass them.
4442
1ecb2d3f
JD
44432010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4444
4445 * xmenu.c (apply_systemfont_to_dialog): New.
4446 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4447
3a4fa2f2
SM
44482010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4449
97e53006
SM
4450 * process.c (exec_sentinel): Preserve current-buffer.
4451
3a4fa2f2
SM
4452 * process.c (read_process_output): Move the save-current-buffer to
4453 apply to both the filter and the non-filter branches.
4454
88df7221
DN
44552010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4456
4457 * s/msdos.h (UNEXEC): New definition.
4458
5634ff85
YM
44592010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4460
6eff5c3d
YM
4461 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4462 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4463
4464 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4465 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4466 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4467 TRY_WINDOW_CHECK_MARGINS.
4468
4469 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
4470 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4471 width only when it is for padding.
5634ff85 4472
b13aef54
J
44732010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4474
4475 * xfns.c (Fx_show_tip): Call try_window in a loop until
4476 fonts_changed_p is zero (Bug#2423).
4477
21d28484
EZ
44782010-04-08 Eli Zaretskii <eliz@gnu.org>
4479
4480 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4481 the end of TEXT_AREA. (Bug#5856)
4482
0269ef77
JD
44832010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4484
4485 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4486 HAVE_GCONF.
4487
5930fe97
EZ
44882010-04-08 Eli Zaretskii <eliz@gnu.org>
4489
4490 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4491 prev.orig_type, for resolving type of NSM. (Bug#5858)
4492
99852628
JD
44932010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4494
4495 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4496 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4497 in current_font.
4498 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
4499 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4500 New functions.
4501 (syms_of_xsettings): Initialize current_font.
4502 defsubr Sfont_get_system_normal_font.
99852628 4503
686b968e
JB
4504 * xsettings.h (Ffont_get_system_normal_font)
4505 (xsettings_get_system_normal_font): Declare.
99852628
JD
4506
4507 * xfns.c (extern xlwmenu_default_font): Remove.
4508 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4509 to xlwmenu.c.
4510
4511 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4512 menu items in UTF-8.
4513
4514 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4515 (apply_systemfont_to_menu): New function.
4516 (set_frame_menubar, create_and_show_popup_menu): Call
4517 apply_systemfont_to_menu.
4518
7fc874c4
J
45192010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4520
4521 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4522 FRAME_LINE_TO_PIXEL_Y.
4523
4524 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4525 pixelwidth/height.
4526
863bf481
DN
45272010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4528
5e5a3b92
DN
4529 Simplify code for HP machines.
4530 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4531 for GNU_LINUX, not needed.
4532 (UNEXEC, NEED_BSDTTY): Move definitions...
4533 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4534
863bf481
DN
4535 * m/iris4d.h (UNEXEC): Move definition ...
4536 * s/irix6-5.h (UNEXEC): ... here.
4537
3e6bec3b
JD
45382010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4539
4540 * xfns.c (set_machine_and_pid_properties): New function.
4541 (Fx_create_frame): Call set_machine_and_pid_properties.
4542
2912322b
SM
45432010-04-03 Eli Zaretskii <eliz@gnu.org>
4544
1502b819
EZ
4545 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4546 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4547 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4548
2912322b
SM
4549 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4550 in this function. (Bug#5703)
4551
45522010-04-03 Chong Yidong <cyd@stupidchicken.com>
4553
4554 * nsterm.h: Fix last change.
4555
c435b432
DN
45562010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4557
a568f507
DN
4558 * m/intel386.h (NO_REMAP): Move definition ...
4559 * s/msdos.h (NO_REMAP): ... here.
4560
4cd9f6c2
DN
4561 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4562
c435b432
DN
4563 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4564 used on those platforms.
4565
42a2c622
DN
45662010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4567
4568 Remove extern errno declarations.
4569 * xterm.c:
4570 * xrdb.c:
4571 * w32term.c:
4572 * unexec.c:
4573 * unexaix.c:
4574 * sysdep.c:
4575 * process.c:
4576 * lread.c:
4577 * keyboard.c:
4578 * floatfns.c:
4579 * filelock.c:
4580 * fileio.c:
4581 * emacs.c (main):
4582 * ecrt0.c:
4583 * dispnew.c:
4584 * callproc.c:
4585 * buffer.c: Remove errno extern declarations.
4586 * s/netbsd.h (NEED_ERRNO): Remove.
4587
8224f93d
DN
45882010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4589
4590 Remove all uses of LIBX11_SYSTEM.
4591 * Makefile.in (LIBX11_SYSTEM): Remove.
4592 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4593 instead.
4594
814062c7
EZ
45952010-04-01 Eli Zaretskii <eliz@gnu.org>
4596
ed68db4d
EZ
4597 Remove support for DJGPP v1.x (bug#5813).
4598
4599 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
4600 * s/msdos.h:
4601 * unexec.c (make_hdr, copy_text_and_data):
4602 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4603 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4604 (IT_set_terminal_modes, __write, _rename, gethostname)
4605 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4606 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4607 the value of __DJGPP__.
ed68db4d
EZ
4608 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4609 compatibility code.
8224f93d
DN
4610 * lread.c:
4611 * gmalloc.c (memalign):
4612 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4613 * emacs.c (main):
4614 * dosfns.c (init_dosfns):
ed68db4d
EZ
4615 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4616
52f4d8d5
EZ
46172010-04-01 Eli Zaretskii <eliz@gnu.org>
4618
814062c7
EZ
4619 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4620 string with `cursor' property comes from an `after-string'
4621 overlay. (Bug#5816)
4622
0dc2e11d
GM
46232010-04-01 Glenn Morris <rgm@gnu.org>
4624
4625 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4626 Define as Makefile variables.
4627 (LIBX): Use above variables rather than directly using autoconf.
4628
1d29df59
DN
46292010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4630
4631 Clean up BSD_SYSTEM use.
4632 * xterm.c:
4633 * process.c:
4634 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4635 for including <sys/ioctl.h>.
4636 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4637 code is only used for MSDOS.
4638
1546c559
JL
46392010-03-31 Juri Linkov <juri@jurta.org>
4640
4641 * image.c: Add `Qextension_data'.
4642 (syms_of_image): Initialize and staticpro `Qextension_data'.
4643 (Fimage_metadata): Rename from `Fimage_extension_data'.
4644 (gif_load): Put GIF extension data to the property
4645 `Qextension_data'.
4646
6521c534
CY
46472010-03-31 Chong Yidong <cyd@stupidchicken.com>
4648
4649 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4650 * nsterm.h: Fix prototype.
4651
52c30783
EZ
46522010-03-31 Eli Zaretskii <eliz@gnu.org>
4653
4654 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4655 trailing whitespace in right-to-left rows.
4656
855a0da7
SM
46572010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4658
4659 Get rid of the direct_output optimizations.
4660 * keyboard.c (nonundocount): Remove extern declaration.
4661 (command_loop_1): Remove brittle optimisation for cheap and
4662 common operations.
4663 * xdisp.c (redisplay_internal): Don't bother checking
4664 redisplay_performed_directly_p any more.
4665 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4666 any more.
4667 * dispnew.c (redisplay_performed_directly_p)
4668 (direct_output_for_insert, direct_output_forward_char):
4669 * dispextern.h (redisplay_performed_directly_p)
4670 (direct_output_for_insert, direct_output_forward_char): Remove.
4671 * cmds.c (nonundocount): Make it static.
4672
85738751 46732010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
4674
4675 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4676
85738751 46772010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
4678
4679 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4680 invisible (Bug#5766).
4681
85738751 46822010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 4683
855a0da7
SM
4684 * xdisp.c (x_consider_frame_title, update_window_cursor):
4685 Remove HAVE_NS conditionals.
194d44e7 4686 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
4687
4688 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4689 filename for the title.
4690 (ns_set_doc_edited): Do nothing if the selected window is a
4691 minibuffer window.
4692
4693 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4694 ns_set_doc_edited.
4695
4696 * nsterm.m: Remove unneeded prototype.
4697
85738751 46982010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
4699
4700 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4701 in the DOC file. (Bug#5336)
4702
85738751 47032010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
4704
4705 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4706
75d1428c
SM
47072010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4708
4709 * window.c (keys_of_window): Remove redundant/overridden bindings.
4710
82043cfb
EZ
47112010-03-30 Eli Zaretskii <eliz@gnu.org>
4712
4713 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4714 Restore original behavior when the iterator is not bidi_p.
4715
b5dd0ae7
DN
47162010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4717
4718 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4719
bd924a5d
EZ
47202010-03-30 Eli Zaretskii <eliz@gnu.org>
4721
4722 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4723 are outside the range of cached character positions.
4724
3580374b
JB
47252010-03-30 Juanma Barranquero <lekktu@gmail.com>
4726
4727 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4728
a7b02820
EZ
47292010-03-30 Eli Zaretskii <eliz@gnu.org>
4730
4731 Initial support for bidirectional editing.
4732
4733 * Makefile.in (obj): Include bidi.o.
4734 (bidi.o): New target.
4735
4736 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4737 ($(BLD)/bidi.$(O)): New target.
4738
4739 * bidi.c: New file.
4740
4741 * buffer.h (struct buffer): New members bidi_display_reordering
4742 and bidi_paragraph_direction.
4743
4744 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4745 and bidi_paragraph_direction.
4746 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4747 and bidi-paragraph-direction.
4748 (Fbuffer_swap_text): Swap the values of
4749 bidi_display_reordering and bidi_paragraph_direction.
4750
4751 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4752 (bidi_type_t, bidi_dir_t): New types.
4753 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4754 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4755 prev_stop, base_level_stop, and eol_pos.
4756 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4757 (IT_STACK_SIZE): Enlarge to 5.
4758 (struct glyph_row): New member reversed_p.
4759 <string_buffer_position>: Update prototype.
4760 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4761 glyph_row if bidi_it.paragraph_dir == R2L.
4762 (struct glyph): New members resolved_level and bidi_type.
4763
4764 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4765 processing or buffer's direction is right-to-left.
4766 (prepare_desired_row): Preserve the reversed_p flag.
4767 (row_equal_p): Compare the reversed_p attributes as well.
4768
4769 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4770 bidi_init_it and set it->paragraph_embedding from the current
4771 buffer's value of bidi_paragraph_direction.
4772 (reseat_1): Initialize bidi_it.first_elt.
4773 (set_iterator_to_next, next_element_from_buffer): Use the value of
4774 paragraph_embedding to determine the paragraph direction.
4775 (set_iterator_to_next): Under bidi reordering, call
4776 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4777 new_paragraph flag is set in the bidi iterator.
4778 (next_element_from_buffer): If bidi_it.first_elt is set,
4779 initialize paragraph direction and find the first character to
4780 display in the visual order. If reseated to a middle of a line,
4781 prime the bidi iterator starting at the line's beginning. Handle
4782 the situation where we overstepped stop_charpos due to
4783 non-linearity of the bidi iteration. Likewise for when we back up
4784 beyond the previous stop_charpos. When moving across stop_charpos,
4785 record it in prev_stop.
4786 (display_line): Set row->end and it->start for the next row to the
4787 next character in logical order. Always extend reversed_p rows to
4788 the end of line, even if they end at ZV. Copy the reversed_p flag
4789 to the next glyph row. Keep calling set_cursor_from_row for
4790 bidi-reordered rows even if we already have a possible candidate
4791 for cursor position. Set row_end after all the row's glyphs have
4792 been produced, by looping over the glyphs. Record the position
4793 after EOL in it->eol_pos, and use it to set end_pos of the last
4794 row produced for a continued line.
4795 <Qright_to_left, Qleft_to_right>: New variables.
4796 (syms_of_xdisp): Initialize and staticpro them.
4797 (string_buffer_position_lim): New function.
4798 (string_buffer_position): Most of code moved to
4799 string_buffer_position_lim. Last argument and return value are
4800 now EMACS_INT; all callers changed.
4801 (set_cursor_from_row): Rewritten to support bidirectional text and
4802 reversed glyph rows.
4803 (text_outside_line_unchanged_p, try_window_id): Disable
4804 optimizations if we are reordering bidirectional text and the
4805 paragraph direction can be affected by the change.
4806 (append_glyph, append_composite_glyph)
4807 (produce_image_glyph, append_stretch_glyph): Set the
4808 resolved_level and bidi_type members of each glyph.
4809 (append_glyph): If the glyph row is reversed, prepend the glyph
4810 rather than appending it.
4811 (handle_stop_backwards): New function.
4812 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4813 (reseat): call handle_stop_backwards to recompute prev_stop and
4814 base_level_stop for the new position.
4815 (handle_invisible_prop): Under bidi iteration, skip invisible text
4816 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4817 paragraph direction. Update IT->prev_stop after skipping
4818 invisible text.
4819 (move_it_in_display_line_to): New variables prev_method
4820 and prev_pos. Compare for strict equality in
4821 BUFFER_POS_REACHED_P.
4822 (try_cursor_movement): Examine all the candidate rows that occlude
4823 point, to return the best match. If rows are bidi-reordered
4824 and point moved backwards, back up to the row that is not a
4825 continuation line, and start looking for a suitable row from
4826 there.
4827
4828 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4829 rather than appending, if the glyph_row's reversed_p flag is set.
4830 Set the resolved_level and bidi_type members of each glyph.
4831
4832 * .gdbinit (pbiditype): New command.
4833 (pgx): Use it to display bidi level and type of the glyph.
4834 (pitx): Display some bidi information about the iterator.
4835 (prowlims, pmtxrows): New commands.
4836
32a8894e
DN
48372010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4838
4839 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4840 * s/usg5-4.h (LIBS_DEBUG):
4841 * s/irix6-5.h (C_DEBUG_SWITCH):
4842 * s/gnu-linux.h (LIBS_DEBUG):
4843 * s/darwin.h (LIBS_DEBUG):
4844 * s/bsd-common.h (LIBS_DEBUG):
4845 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4846 * m/iris4d.h (LIBS_DEBUG):
4847 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4848
4849 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4850 (LIBS_DEBUG): Remove definition.
4851
649dbf36
CY
48522010-03-27 Chong Yidong <cyd@stupidchicken.com>
4853
4854 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4855 Windows.
4856
cad4261f
YM
48572010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4858
4859 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4860 `connect' (Bug#5723).
4861
cd591dbc
HE
48622010-03-25 Helmut Eller <eller.helmut@gmail.com>
4863
4864 * process.c (Fmake_network_process): Call `select' for interrupted
4865 `connect' rather than creating new socket (Bug#5173).
4866
e867cb5d 48672010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4868
4869 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4870
4871 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4872
4873 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4874
e867cb5d 48752010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4876
4877 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4878 XLoadQueryFont.
4879
e867cb5d 48802010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4881
4882 * coding.c (decode_coding_ccl): Fix previous change for the
4883 multibyte case.
fb608df3
KH
4884 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4885 case that the output buffer is fullfilled.
4886 (encode_coding): Setup ccl program here.
fbdc1721 4887
5845f0ed
DN
48882010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4889
814fb708
DN
4890 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4891
5845f0ed
DN
4892 Simplify LIBS_MACHINE definitions.
4893 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4894 * m/iris4d.h (LIBS_MACHINE): Likewise.
4895 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4896 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4897 * s/netbsd.h: Remove commented out code.
5845f0ed 4898
b7064064
DN
48992010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4900
df7734b2
DN
4901 Remove dead code dealing with POSIX_SIGNALS.
4902 * atimer.c (set_alarm): Remove dead code, all USG systems define
4903 POSIX_SIGNALS.
4904 * data.c (arith_error): Likewise.
4905 * keyboard.c (input_available_signal, handle_user_signal)
4906 (interrupt_signal): Likewise.
4907 * process.c (sigchld_handler): Likewise.
4908 (create_process): Remove if 0 code. Remove HPUX conditional when
4909 !defined (POSIX_SIGNALS), it cannot be true.
4910 * syssignal.h: Remove USG5_4 and USG conditionals when
4911 !POSIX_SIGNALS, they cannot be true.
4912
b7064064
DN
4913 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4914 NO_SOCK_SIGIO, not used anymore.
4915
55da5ee3
DN
49162010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4917
0be96e3a
DN
4918 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4919 support vax on BSDs.
4920
55da5ee3
DN
4921 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4922 * s/aix4-2.h (ORDINARY_LINK): ... here.
4923
c0282183
AS
49242010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4925
82c3d67a
AS
4926 * Makefile.in (abs_builddir): Define.
4927 (bootstrap_exe): Use it.
4928 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 4929
3613edce
SM
49302010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4931
4932 * Makefile.in (bootstrap_exe): Use an absolute name.
4933
7f110ddc
DN
49342010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4935
22e87574
DN
4936 Remove support for old GNU/Linux using libc version 5.
4937 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4938 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4939
05a670e6
DN
4940 Consolidate redundant definitions in s/bsd-common.h.
4941 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4942 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4943 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4944 doing it in all files that include this one.
4945 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4946 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4947 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4948 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4949 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4950 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4951 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4952 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4953 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4954
2968f561
DN
4955 Consolidate redundant definitions.
4956 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4957 it's undefined in all files that include this one.
4958 (POSIX_SIGNALS): Define here instead of doing it in all files that
4959 include this one.
4960 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4961 (POSIX_SIGNALS): Do not define.
4962 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4963 (POSIX_SIGNALS): Do not define.
4964 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4965 (POSIX_SIGNALS): Do not define.
4966
15d25dc0
DN
4967 Remove support for old UNIX System V systems.
4968 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4969 * s/usg-5-4-2.h: Remove.
4970
07e339e4
DN
4971 Remove support for Solaris on PPC and for old versions.
4972 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4973 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4974 that cancel each other.
4975 * s/sol2-3.h:
4976 * s/sol2-4.h:
4977 * s/sol2-5.h: Remove.
4978 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4979 (NO_REMAP): Remove, unused.
4980 (UNEXEC): Move definition ...
4981 * s/aix4-2.h (UNEXEC): ... here.
4982
7f110ddc
DN
4983 * s/openbsd.h: Remove support for non-ELF and for systems that do
4984 not support shared libraries.
4985 * s/netbsd.h:
4986 * s/freebsd.h: Likewise.
4987
605f35cd
DN
49882010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4989
4990 Remove non-working support for lynxos 3.0.
4991 * s/lynxos.h: Remove file.
4992
4993 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4994 COFF_BSD_SYMBOLS, nothing defines it anymore.
4995
aed71cf4
DN
49962010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4997
4998 Remove obsolete uses of HAVE_SHM.
4999 * emacs.c (standard_args):
5000 (Fdump_emacs):
5001 (syms_of_emacs): Remove code depending on HAVE_SHM.
5002
5003 * alloc.c: Remove HAVE_SHM dependent definition.
5004
5005 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5006
aded53ff
GM
50072010-03-18 Glenn Morris <rgm@gnu.org>
5008
17284745
GM
5009 * emacs.c (USAGE4): Hard-code bug address.
5010 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5011 (bug_reporting_address): Remove.
5012 (main): Don't call bug_reporting_address.
5013
aded53ff
GM
5014 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5015 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5016
303500aa
CY
50172010-03-15 Chong Yidong <cyd@stupidchicken.com>
5018
5019 * xfns.c (Fx_create_frame):
5020 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5021 on left.
5022
cef3058f
CY
50232010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5024
5025 * editfns.c (Fformat): Account for string precision when computing
5026 field width (Bug#5710).
5027
a647d59d
CY
50282010-03-12 Chong Yidong <cyd@stupidchicken.com>
5029
4fa42018
CY
5030 * xfns.c (Fx_create_frame): Set default to Qright.
5031
a647d59d
CY
5032 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5033 all window systems.
5034
6da23aaa
EZ
50352010-03-12 Eli Zaretskii <eliz@gnu.org>
5036
a96f6398 5037 These changes remove termcap.c from the build on Posix platforms.
83d02def 5038 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
5039 (MSDOS_OBJ): ...to here.
5040 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5041 now identical to when LIBS_TERMCAP is defined.
5042
5043 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5044
5045 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5046
a96f6398 5047 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 5048
288f9fc0
CY
50492010-03-10 Chong Yidong <cyd@stupidchicken.com>
5050
5051 * Branch for 23.2.
5052
d48cd3f4
SM
50532010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5054
5055 Cleanup setup of gl_state in various parts of the code.
5056 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5057 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5058 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5059 (skip_chars):
5060 * regex.c (regex_compile): Use it.
5061 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5062 it's now set in regex_compile when/if we need it.
5063
618db430
SM
50642010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5065
c0335e02
SM
5066 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5067 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5068 (QUIT): Use it to consolidate code and remove redundancy.
5069 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5070
254c06a8
SM
5071 * regex.c (regex_compile): Setup gl_state as well.
5072
618db430
SM
5073 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5074 (in_classes): Use CONSP before XCAR/XCDR.
5075
233f0c9f
CY
50762010-03-03 Chong Yidong <cyd@stupidchicken.com>
5077
5078 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5079 definitions, so that keyboard macros are correctly handled
5080 (Bug#5481).
5081
75f80e63
EZ
50822010-03-02 Eli Zaretskii <eliz@gnu.org>
5083
5084 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5085 text that could be relocated inside the call to emacs_mule_char.
5086 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5087 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5088
dcfb9bc4
KH
50892010-03-02 Kenichi Handa <handa@m17n.org>
5090
fc9a17bc
KH
5091 * character.c (parse_str_as_multibyte): Fix handling of the
5092 multibyte form of raw-bytes.
5093 (str_as_multibyte): Likewise.
5094
dcfb9bc4
KH
5095 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5096 form of raw-bytes.
5097
412c01b6
CY
50982010-02-28 Chong Yidong <cyd@stupidchicken.com>
5099
5100 * charset.c (load_charset_map_from_file)
5101 (load_charset_map_from_vector): Zero out allocated
5102 charset_map_entries before using them.
5103
df7e1ea0
AS
51042010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5105
5106 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5107
fe69a722
CY
51082010-02-27 Chong Yidong <cyd@stupidchicken.com>
5109
4ed28cf4
CY
5110 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5111 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 5112
7379cfce
KH
51132010-02-26 Kenichi Handa <handa@m17n.org>
5114
f88cc4d6
KH
5115 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5116
7379cfce
KH
5117 * xdisp.c (reseat_to_string): Fix previous change.
5118
cf2fdcfb
CY
51192010-02-26 David Reitter <david.reitter@gmail.com>
5120
5121 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5122 Lisp_Object (Bug#4736).
5123
cc6c7c75
KH
51242010-02-25 Kenichi Handa <handa@m17n.org>
5125
5126 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5127
32e737d7
JD
51282010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5129
5130 * xterm.c (XTflash): Move declarations before statements.
5131
5132 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5133 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5134 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5135 (xg_create_tool_bar): Remove unused variables.
5136 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 5137 (xg_create_frame_widgets): Remove variable grav.
32e737d7 5138
676cae9f
CY
51392010-02-21 Chong Yidong <cyd@stupidchicken.com>
5140
5141 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5142
886cc2b8
SM
51432010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5144
5145 * term.c (fatal): Add a final \n if needed (bug#5596).
5146
ddb2d8e2
CY
51472010-02-18 Chong Yidong <cyd@stupidchicken.com>
5148
5149 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5150
2a4f8d3d
GM
51512010-02-18 Glenn Morris <rgm@gnu.org>
5152
5153 * callint.c (Finteractive): Doc fix.
5154
ebaf11b6
KH
51552010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5156
886cc2b8
SM
5157 * coding.c (record_conversion_result):
5158 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
5159 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5160 memory allocation error.
5161
d0396581
KH
51622010-02-17 Kenichi Handa <handa@m17n.org>
5163
886cc2b8
SM
5164 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5165 Fix for the case that the output buffer is fullfilled.
d0396581
KH
5166 (decode_coding): Setup ccl program here. Keep looping when the
5167 decoder stopped because the output buffer is
5168 fullfilled (bug#5534).
5169
5170 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5171
98599f74
JD
51722010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5173
471e4f04 5174 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 5175 bug #5571.
886cc2b8 5176 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 5177 overdrawn.
98599f74 5178
182659ae
JD
51792010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5180
5181 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5182 doing_interact here.
5183 (ice_connection_closed): New function.
5184 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5185 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5186 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5187 returns I/O error.
5188 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5189 bug #5512.
5190
9be32c4e 51912010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
5192
5193 * nsfont.m (nsfont_open): The system's value for the font descent
5194 is negative, so round it down to avoid clipping.
5195
a2f3eb19
CY
51962010-02-06 Chong Yidong <cyd@stupidchicken.com>
5197
5198 * charset.c (load_charset_map_from_file)
5199 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 5200 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 5201
3088147c
CY
52022010-02-05 Chong Yidong <cyd@stupidchicken.com>
5203
5204 * charset.c (load_charset_map_from_file): Allocate large
5205 charset_map_entries structure on the heap rather than the stack.
5206 (Bug#5526).
5207
b57d9029
KH
52082010-01-31 Kenichi Handa <handa@m17n.org>
5209
5210 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 5211 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 5212
c67d885b
CY
52132010-01-31 Chong Yidong <cyd@stupidchicken.com>
5214
5215 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5216 <deactivated@gmail.com> (Bug#3605).
5217
8fab2362
CY
52182010-01-31 David De La Harpe Golden <david@harpegolden.net>
5219
5220 * fileio.c (Frename_file): Correctly rename symlinks to
5221 directories (Bug#5496).
5222
cb2a62f2
CY
52232010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5224
5225 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5226
944c7a26
AS
52272010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5228
5229 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5230
c024ac08
CY
52312010-01-29 Chong Yidong <cyd@stupidchicken.com>
5232
5233 * frame.c (DEFAULT_ROWS): Change default to 35.
5234
5235 * xfns.c (x_default_font_parameter): Change default XFT font to
5236 monospace-10 (Bug#3643).
5237
af93af83
EZ
52382010-01-29 Eli Zaretskii <eliz@gnu.org>
5239
5240 * w32inevt.c (key_event): Remove unnecessary comparison of
5241 event->uChar.AsciiChar with 128.
5242
ca0eb708
CY
52432010-01-28 Chong Yidong <cyd@stupidchicken.com>
5244
b242dbfc
CY
5245 * fileio.c (Frename_file): Fix last change (Bug#5487).
5246
ca0eb708
CY
5247 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5248
5249 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5250
45d45af5
JD
52512010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5252
5253 * xfns.c (Fx_create_frame): Remove window size matching code from
5254 2010-01-15.
a73f9c9d 5255 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 5256
7e233730
JR
52572010-01-27 Jason Rumney <jasonr@gnu.org>
5258
5259 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 5260 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 5261
86e893e3
KH
52622010-01-27 Kenichi Handa <handa@m17n.org>
5263
5264 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 5265 pattern string (Bug#4209).
86e893e3 5266
8719abec
CY
52672010-01-27 David De La Harpe Golden <david@harpegolden.net>
5268
5269 * fileio.c (Frename_file): Call copy-directory and
5270 delete-directory for directories, in order to handle cross-device
5271 renaming (Bug#3353).
5272
844794c8
JD
52732010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5274
aa3e13b5 5275 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 5276 sizes 24 and 10. Bug #3643.
844794c8 5277
bd4b5750
SM
52782010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5279
8dc1adf6 5280 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
5281 * keymap.c (shadow_lookup): Add `remap' arg.
5282 (describe_map, describe_vector): Update calls to shadow_lookup.
5283 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5284 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
5285 perform remapping during shadow_lookup check of remapped_sequences.
5286
285d07e2
CY
52872010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5288
5289 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5290 png_check_sig, which has been removed in libpng 1.4.
5291
c6d09b8d
CY
52922010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5293
5294 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5295 lacks this header file).
5296
3d782998
YM
52972010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5298
5299 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5300 as in Emacs 22.
5301
2aff7c53
YM
53022010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5303
5304 * lisp.h (make_pure_string): String pointer arg now points to const.
5305
5306 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5307 args now point to const.
5308
74327f7a
EZ
53092010-01-22 Eli Zaretskii <eliz@gnu.org>
5310
5311 * lread.c (Fload): Don't treat files without .elc extension as
5312 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5313 them. (bug#5303)
5314
4d1e6632
KH
53152010-01-20 Kenichi Handa <handa@m17n.org>
5316
5317 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5318 treat the source as actual byte sequence.
5319
1fdede8f
AM
53202010-01-19 Alan Mackenzie <acm@muc.de>
5321
5322 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 5323 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
5324 `signal_after_change_p' to `coherent_change_p', and make the
5325 invocation of `modify_region' conditional on it.
5326
67477f30
JD
53272010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5328
5329 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5330 for debug purpose.
5331 (syms_of_xsettings): Declare xft-settings.
5332
244b023e
CY
53332010-01-18 Chong Yidong <cyd@stupidchicken.com>
5334
5335 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5336
617364fe
CY
53372010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5338
5339 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5340
4fe22cdf
CY
53412010-01-16 Chong Yidong <cyd@stupidchicken.com>
5342
5343 * emacs.c (standard_args): Adjust arg priorities to reflect how
5344 they are processed in startup.el.
5345
e118d2be
AS
53462010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5347
5348 * Makefile.in (lisp, shortlisp): Update.
5349
523ae620
SM
53502010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5351
5352 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5353 code, link the new kboard into all_kboard before running Lisp code,
5354 and protect the new terminal with GCPRO (Bug#5365).
5355 (x_term_init): Remove unused var `atom'.
5356 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5357
f0d13888
JD
53582010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5359
5360 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5361 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5362 to find out usable size of the desktop. Don't make frames larger than
ac146f82 5363 this. Bug #3643.
f0d13888 5364
cc320f07
KH
53652010-01-15 Kenichi Handa <handa@m17n.org>
5366
5367 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5368
7ffdf101
CY
53692010-01-15 Chong Yidong <cyd@stupidchicken.com>
5370
5371 * nsterm.m (Qnone): Define.
5372
5373 * nsfns.m (Qnone): Move definition to nsterm.m.
5374
d12bd917
KH
53752010-01-14 Kenichi Handa <handa@m17n.org>
5376
5377 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5378 systems.
5379
d9a7c140
KH
53802010-01-14 Kenichi Handa <handa@m17n.org>
5381
5382 Make auto-composition work on all buffers even if they are
5383 fundamental mode.
5384
5385 * composite.c (Vauto_composition_mode): New variable.
5386 (composition_compute_stop_pos): Check Vauto_composition_mode
5387 instead of Vauto_composition_function.
5388 (composition_adjust_point, Ffind_composition_internal): Likewise.
5389 (syms_of_composite): Declare Lisp variable
5390 "auto-composition-mode" here.
5391
63286bb2
CY
53922010-01-13 Chong Yidong <cyd@stupidchicken.com>
5393
5394 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5395 during call to vendor-specific-keysyms (Bug#5365).
5396
c2623ee7
YM
53972010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5398
5399 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5400 Call SIGNAL_THREAD_CHECK (Bug#5333).
5401
5402 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5403 Call SIGNAL_THREAD_CHECK.
5404
0b5397c2
SM
54052010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5406
5407 Try to fix bug#5314. This is probably not the final word, tho.
5408 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5409 recent-auto-save-p as a side-effect.
5410 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5411 * buffer.c (Fkill_buffer, reset_buffer):
5412 * editfns.c (Fsubst_char_in_region):
5413 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5414 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5415
dc954cb2
KH
54162010-01-13 Kenichi Handa <handa@m17n.org>
5417
5418 Display buffer name, etc. in mode line by composing correctly.
5419
5420 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5421 STRING is not nil.
0b5397c2 5422 (display_mode_element): Adjust for the change of
dc954cb2
KH
5423 decode_mode_spec and display_line.
5424 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5425 (display_string): Handle the case that STRING is non-null and
5426 LISP_STRING is not nil.
5427
0b5397c2
SM
5428 * xterm.c (x_draw_composite_glyph_string_foreground):
5429 Pay attention to s->face->overstrike.
dc954cb2
KH
5430
5431 * composite.c (composition_reseat_it): Don't check PT if STRING is
5432 non nil.
5433
4a00eaca
YM
54342010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5435
5436 * keyboard.c (read_char): Don't apply previous change when current
5437 buffer is unchanged by command execution.
5438
60abb287
JD
54392010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5440
5441 * keyboard.c (read_char): Return after executing from special map.
5442
893db5bc
GM
54432010-01-12 Glenn Morris <rgm@gnu.org>
5444
5445 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5446 bug-gnu-emacs rather than emacs-pretest-bug.
5447
4d03ece0
CY
54482010-01-11 Chong Yidong <cyd@stupidchicken.com>
5449
5450 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5451 initializing the Lisp variables that depend on them.
5452
1df47e38
YM
54532010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5454
5455 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5456 Clear areas that will not be updated after change of menu bar lines.
5457 Clear the menu bar window's current matrix when the window gets empty.
5458
2f1c6384
CY
54592010-01-09 Chong Yidong <cyd@stupidchicken.com>
5460
e398c61c
CY
5461 * intervals.h, textprop.c (extend_property_ranges): Return value
5462 and args changed. Discard properties that begin at or after the
5463 new end (Bug#5306).
5464
5465 * editfns.c (Fformat): Caller changed.
5466
e5a29a10
CY
5467 * nsterm.m (ns_set_default_prefs): Delete function.
5468 (syms_of_nsterm): Initialize ns_command_modifier,
5469 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5470 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5471
2f1c6384
CY
5472 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5473 position (Bug#4040).
5474
d427a9fa
EZ
54752010-01-09 Eli Zaretskii <eliz@gnu.org>
5476
5477 * editfns.c (Ffloat_time): Doc fix.
5478
21b9df2f
JD
54792010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5480
5481 * xfns.c (Fx_create_frame): Don't create frame larger than display
5482 by default bug#3643.
5483
4b00d3b1
YM
54842010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5485
5486 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5487 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5488 windows above internal border.
5489
5490 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5491 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5492 windows above internal border.
5493
5494 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5495 tool bar windows specially.
5496
5497 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5498
5499 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5500 specially.
5501 (XTflash): Take account of menu bar height.
5502
5503 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5504 specially.
5505
5075d853
JD
55062010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5507
ac146f82 5508 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
5509 also be true before we can return early (bug #5339).
5510
474217c8
CY
55112010-01-06 David Reitter <david.reitter@gmail.com>
5512
5513 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5514 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5515 (Bug#3233).
5516
c0e6d47d
JD
55172010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5518
d0cf45b7
JD
5519 * font.c (font_open_entity): Enable chache and call cached_font_ok
5520 for the driver if defined.
5521 (QCuser_spec): New symbol.
5522 (font_spec_from_name): Save name as user-spec.
5523 (font_load_for_lface): Keep user-spec instead of name.
5524 (font_open_by_name): Save name as user-spec.
5525 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 5526 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
5527
5528 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5529 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5530 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5531
5532 * font.h (struct font_driver): Add cached_font_ok.
5533
c0e6d47d
JD
5534 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5535
7c583cd8
JD
55362010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5537
5538 * xterm.c (x_new_font): Move code for setting rows/cols before
5539 resizing ...
ac146f82 5540 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
5541
5542 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
5543 (xg_frame_resized, xg_frame_set_char_size):
5544 Call xg_clear_under_internal_border.
7c583cd8 5545 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 5546
03f77f0a
CY
55472010-01-05 Chong Yidong <cyd@stupidchicken.com>
5548
5549 * keyboard.c (read_key_sequence): Catch keyboard switch after
5550 making a new tty frame (Bug#5095).
5551
2a1ef5be
KH
55522010-01-05 Kenichi Handa <handa@m17n.org>
5553
5554 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5555
e3eb1dae
SM
55562010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5557
5558 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5559 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5560 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5561
777013f2
MA
55622010-01-03 Michael Albinus <michael.albinus@gmx.de>
5563
5564 * dbusbind.c (xd_add_watch): Improve debug message.
5565 (xd_remove_watch): Improve debug message. If DATA is the session
5566 bus, unset D-Bus session environment.
5567 (Fdbus_init_bus): Pass the bus as argument to
5568 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 5569
8932b1c2
CY
55702010-01-01 Chong Yidong <cyd@stupidchicken.com>
5571
87231e2c
CY
5572 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5573
4801c5fa
CY
5574 * lread.c (syms_of_lread): Make it clearer that these are the
5575 names of loaded files (Bug#5068).
5576
8932b1c2
CY
5577 * eval.c (run_hook_with_args): Handle the case where the global
5578 value has the obsolete single-function form (Bug#5026).
5579
11e3c684
CY
55802009-12-27 Chong Yidong <cyd@stupidchicken.com>
5581
5582 * minibuf.c (Fall_completions): Minor optimization.
5583
5b28ce35
EZ
55842009-12-26 Eli Zaretskii <eliz@gnu.org>
5585
5ce6e4f4
JB
5586 * .gdbinit (pgx): Fix display of composite glyphs.
5587 Display cmp.from and cmp.to as well.
5588 (pitx): Fix last change.
5b28ce35 5589
bcffff46
KH
55902009-12-25 Kenichi Handa <handa@m17n.org>
5591
5592 * composite.h (composition_adjust_point): Update prototype.
5593
5594 * composite.c (composition_reseat_it): Don't make a composition
5595 spanning over point.
5596 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5597 composable characters.
5598 (composition_adjust_point): New arg NEW_PT. Callers changed.
5599
5600 * keyboard.c (command_loop_1): Force redisplay if the last point
5601 was within a composition.
5602 (adjust_point_for_property): Don't adjust point for automatic
5603 composition when called after buffer modification.
5604
3f670e9a
EZ
56052009-12-19 Eli Zaretskii <eliz@gnu.org>
5606
5ce6e4f4
JB
5607 * .gdbinit (pitx): Don't use enum names, use their values.
5608 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5609 (pgx): Don't use enum names, use their values.
5610 (pitmethod): New helper command.
5611 (pitx): Use it to display iteration method.
5612 (pgrowit): New command.
5613
ad903955
EZ
5614 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5615
3f670e9a
EZ
5616 Update dependencies in Makefile.in.
5617
5618 * Makefile.in (alloc.o): Depend on termhooks.h.
5619 (atimer.o): Depend on blockinput.h.
5620 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5621 and frame.h.
5622 (callint.o): Depend on systime.h, coding.h, and composite.h.
5623 (callproc.o): Depend on buffer.h.
5624 (casefiddle.o): Don't depend on charset.h.
5625 (casetab.o): Depend on character.h.
5626 (ccl.o): Depend on composite.h.
5627 (chartab.o): Depend on ccl.h.
5628 (cm.o): Depend on dispextern.h.
5629 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5630 (coding.o): Don't depend on $(INTERVALS_H).
5631 (composite.o): Don't depend on dispextern.h explicitly (it's in
5632 $(INTERVALS_H)). Depend on ccl.h.
5633 (data.o): Depend on systime.h, coding.h, composite.h,
5634 dispextern.h, font.h, and ccl.h.
5635 (dired.o): Depend on composite.h.
5636 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5637 composite.h (it's in $(INTERVALS_H)).
5638 (doc.o): Depend on systime.h, coding.h, and composite.h.
5639 (editfns.o): Don't depend explicitly on dispextern.h.
5640 (emacs.o): Depend on frame.h and coding.h.
5641 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5642 (fileio.o): Depend on frame.h and commands.h. Don't depend
5643 explicitly on dispextern.h.
5644 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5645 composite.h.
5646 (fns.o): Don't depend on termhooks.h.
5647 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5648 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5649 coding.h, $(INTERVALS_H), window.h, xterm.h.
5650 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5651 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5652 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5653 fontset.h, ccl.h, and ftfont.h.
5654 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5655 (gtkutil.o): Depend on dispextern.h and composite.h.
5656 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5657 termhooks.h, and ccl.h.
5658 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5659 (intervals.o): Depend on systime.h and coding.h.
5660 (keyboard.o): Depend on composite.h and coding.h.
5661 (keymap.o): Depend on coding.h and frame.h.
5662 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5663 (macros.o): Depend on systime.h, coding.h, and composite.h.
5664 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5665 and atimer.h.
5666 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5667 dispextern.h explicitly.
0b5397c2
SM
5668 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5669 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
5670 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5671 (regex.o): Don't depend on charset.h.
5672 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5673 (search.o): Don't depend explicitly on composite.h.
5674 (sound.o): Depend on atimer.h and systime.h.
5675 (syntax.o): Don't depend explicitly on composite.h.
5676 (sysdep.o): Depend on coding.h and composite.h.
5677 (term.o): Depend on xterm.h and buffer.h.
5678 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5679 (textprop.o): Don't depend on dispextern.h explicitly.
5680 (undo.o): Depend on dispextern.h.
5681 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5682 dispextern.h and composite.h explicitly.
5683 (xdisp.o): Depend on ccl.h.
5684 (xfaces.o): Depend on coding.h and ccl.h.
5685 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5686 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5687 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5688 ftfont.h.
5689 (xgselect.o): New dependency.
5690 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5691 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5692 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5693 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5694 (xsmfns.o): Depend on frame.h and dispextern.h.
5695 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5696 sysselect.h.
5697
7a6f7fea
AS
56982009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5699
5700 * font.c (Fclear_font_cache): Pass correct cache argument to
5701 font_clear_cache.
5702
f4c21026
AS
57032009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5704
5705 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5706 twice.
5707
f7ab0997
CY
57082009-12-15 Chong Yidong <cyd@stupidchicken.com>
5709
5710 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5711 calling file-remote-p. Reported by Jim Meyering.
5712
fa8e045a
MA
57132009-12-15 Michael Albinus <michael.albinus@gmx.de>
5714
5715 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 5716 avoid compiler warnings. (Bug #5217)
fa8e045a 5717
a63dba42
KH
57182009-12-14 Kenichi Handa <handa@m17n.org>
5719
5720 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5721 in 8-bit encoding.
5722
5ce6e4f4 57232009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
5724
5725 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5726 tooltip windows.
5727
223e5fc6
JD
57282009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5729
36acb2a7
JD
5730 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5731 Xatom_net_window_type.
5732
5733 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5734 Xatom_net_window_type.
5735
b8f00677
JD
5736 * xterm.c (my_log_handler): New function.
5737 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 5738 so we can filter out buggy messages. (Bug #5120).
b8f00677 5739
e5f0bc9a
JD
5740 * xterm.c (xg_scroll_callback): Parameter list changed,
5741 use parameter GtkScrollType to determine scroll/line/page.
5742 Only allow dragging if a button < 4 is grabbed (bug #5177).
5743 (xg_end_scroll_callback): New function.
5744 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5745 xg_create_scroll_bar.
5746
5747 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5748 (scroll_end_callback): Remove.
5749 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5750 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 5751 bug #5177.
e5f0bc9a
JD
5752 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5753 bug #5177.
5754
5755 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5756 (xg_create_scroll_bar): Add GCallback end_callback.
5757
223e5fc6
JD
5758 * xftfont.c (QClcdfilter): New variable.
5759 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5760 (syms_of_xftfont): Initialize QClcdfilter.
5761
3c055b77
JD
57622009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5763
5764 * xsettings.c (struct xsettings): Add member seen.
5765 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 5766 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
5767 (apply_xft_settings): Only update Xft settings with what member seen
5768 indicates as new.
5769
05fe33ff
EZ
57702009-12-12 Eli Zaretskii <eliz@gnu.org>
5771
c4cc8b9a 5772 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
5773 (struct glyph): Use EMACS_INT for charpos.
5774 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5775 region_beg_charpos, region_end_charpos,
5776 redisplay_end_trigger_charpos, and also for
5777 iterator_stack_entry.end_charpos and
5778 iterator_stack_entry.stop_charpos.
5779
e8d7886a
JD
57802009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5781
5ce6e4f4 5782 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
5783 (xg_create_scroll_bar): Call scroll_end_callback on button release
5784 event (bug #5177).
5785 (xg_event_is_for_scrollbar): != replaced with ==.
5786
d0db2ec8
KH
57872009-12-12 Kenichi Handa <handa@m17n.org>
5788
5789 * ftfont.c (struct ftfont_info): New member matrix.
5790 (ftfont_open): Setup xftfont_info->matrix.
5791 (MFLTFontFT): New member matrix.
5792 (FLOOR, CEIL, ROUND): New macros.
5793 (ftfont_get_metrics): Handle matrix transformation.
5794 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5795
5796 * xftfont.c (struct xftfont_info): New member matrix.
5797 (xftfont_open): Setup xftfont_info->matrix.
5798
57992009-12-10 Kenichi Handa <handa@m17n.org>
5800
5801 * xdisp.c (append_space_for_newline): Consider face-remapping.
5802
2cc7b62f
AS
58032009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5804
b87dd913
AS
5805 * xsettings.c: Include "keyboard.h".
5806
eba5eb94
AS
5807 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5808
2cc7b62f
AS
5809 Fix implicit function declarations.
5810 * cmds.c: Include "frame.h".
5811 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5812 * frame.h: Move declaration of delete_frame outside of
5813 HAVE_WINDOW_SYSTEM.
5814
a4ef73c8
CY
58152009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5816
5817 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5818
5819 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5820 GTK builds.
5821
944a300c
AS
58222009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5823
5824 * unexelf.c (unexec): Don't search for .data twice.
5825
022eef62
CY
58262009-12-05 Chong Yidong <cyd@stupidchicken.com>
5827
426ac949
CY
5828 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5829 if push failed.
5830 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5831 of push_display_prop (Bug#5000).
5832
022eef62
CY
5833 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5834 value of font_list_entities (Bug#5085).
5835
be95bee9
JB
58362009-12-04 Juanma Barranquero <lekktu@gmail.com>
5837
5838 Fix `string-to-number' to deal consistently with integers and floats.
5839 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5840 trailing characters, not just whitespace.
5841 (read1): Pass new arg 0 to keep old behavior.
5842 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5843 trailing chars, as it is already done for integers. Doc fixes.
5844 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5845
24c2d7ce
EZ
58462009-12-04 Eli Zaretskii <eliz@gnu.org>
5847
0b5397c2
SM
5848 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5849 Delete unused enumeration value.
24c2d7ce 5850
7e694795
EZ
58512009-12-03 Eli Zaretskii <eliz@gnu.org>
5852
5853 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5854
84b31826
SM
58552009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5856
5857 * process.c (Fmake_network_process): Fix up the tests for
5858 "connectionless socket", so they DTRT for seqpacket sockets as well.
5859
f00c449b
SM
58602009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5861
5862 * process.c (Qseqpacket): New symbol.
5863 (HAVE_SEQPACKET): New macro.
5864 (Fmake_network_process): Accept new :type `seqpacket'.
5865 (init_process): Add `seqpacket' feature when applicable.
5866 (syms_of_process): Initialize Qseqpacket.
5867
8096a0ff
YM
58682009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5869
5870 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5871 if entity is Qnil.
5872
3e0de07f
SM
58732009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5874
5875 * print.c (print_preprocess): Preprocess the key_and_value table of
5876 hashtables, even tho they're "hidden" (bug#5082).
5877
abeafb2a
JD
58782009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5879
5880 * frame.c (frame_make_pointer_invisible)
5881 (frame_make_pointer_visible): Declare f before statements.
5882
4bf47195
EZ
58832009-11-28 Eli Zaretskii <eliz@gnu.org>
5884
5885 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5886 omitted dependencies on lisp.h.
5887
c525b3f2
JD
58882009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5889
ece2d4ed
JD
5890 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5891 is NULL.
5892
5893 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5894
5895 * frame.c (frame_make_pointer_invisible)
3e0de07f 5896 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5897 frame.
5898
c525b3f2
JD
5899 * search.c (simple_search): Remove warning by making *p const.
5900
2f00e299
DN
59012009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5902
5903 * xdisp.c (power_letter): Remove duplicate const.
5904
084b049b
JD
59052009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5906
a1fadc6f
JD
5907 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5908
5ce6e4f4 5909 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5910 defaults (bug #5025).
5911
28259cac
SM
59122009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5913
5914 * insdel.c (adjust_markers_for_delete): Move it in the
5915 right direction! (bug#4803)
5916
e8e14166
YM
59172009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5918
5919 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5920
5921 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5922
86677b58
GM
59232009-11-24 Glenn Morris <rgm@gnu.org>
5924
5925 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5926
581e51e8
JD
59272009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5928
cfc86c7a
JD
5929 * Makefile.in: Must create deps for ecrt0.o in its rule.
5930
581e51e8
JD
5931 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5932 because that is what Gtk+ font dialog understands.
5933
5934 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5935 of Fcopy_sequence.
5936 (font_open_by_name): Put name given into QCname for font-object returned.
5937
5938 * frame.c (x_set_font): Save original font name as frame parameter
5939 font-parameter.
5940
5941 * xsettings.c (set_default_xft_settings): New function.
5942 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5943 is found.
5944
8b264ecb
AS
59452009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5946
5947 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5948 searching backwards through multibyte buffer.
5949
872870b2
JD
59502009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5951
5952 * xterm.c: #include xgselect.h.
5953 (x_initialize): Call xgselect_initialize.
5954
5955 * xsettings.c (something_changedCB): C++ comments => C comments.
5956 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5957 does that now.
5958
5959 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5960 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5961 (scroll_bar_button_cb): Remove.
5ce6e4f4 5962 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5963 event.
5964 (xg_create_scroll_bar): Don't bind button-press-event and
5965 button-release-event.
5966
5967 * process.c: Include xgselect.h if defined (USE_GTK) ||
5968 defined (HAVE_GCONF).
5969 (wait_reading_process_output): Call xg_select for the same condition.
5970
5971 * xgselect.c (xg_select): New function to better integrate with
5972 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5973
5974 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5975
5976 * Makefile.in (XOBJ): Add xgselect.o.
5977
62a6e103
AS
59782009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5979
0b5397c2
SM
5980 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5981 Remove ignored second argument. All callers changed.
62a6e103
AS
5982 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5983 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5984 * xdisp.c (string_char_and_length): Likewise.
5985
b0ca0f33
DN
59862009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5987
5988 * xterm.c (x_new_font):
5989 * print.c (print_object):
5990 * cmds.c (Fself_insert_command): Move declarations before statements.
5991
dd5a6279
CY
59922009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5993
5994 * s/cygwin.h: Remove unneeded linker flags.
5995
4a8e097d
JD
59962009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5997
0d1d0d26
JD
5998 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5999
6000 * xsettings.h: Declare xsettings_get_system_font.
6001
6002 * xsettings.c (xsettings_get_system_font): New function.
6003 (init_gconf): No use initiating gconf unless we have Xft also.
6004 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6005 HAVE_GCONF.
6006
4a8e097d
JD
6007 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6008 add a blank entry so it doesn't collapse into nothing.
6009
8ab1650e
SM
60102009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6011
6012 * lread.c (Funintern): Comment out last change.
6013
82c602f0
RS
60142009-11-19 Richard Stallman <rms@gnu.org>
6015
6016 * lread.c (Funintern): Error if symbol is t or nil.
6017
87e32266
SM
60182009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6019
6020 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6021 representation of Lisp integers.
6022 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6023
1b9ac145
AS
60242009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6025
6026 * lisp.h: Remove declaration of Ffont_get_system_font.
6027 * xfns.c: Move include of "xsettings.h".
6028 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6029
dfb3c4c6
JD
60302009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6031
87e32266
SM
6032 * xsettings.c (something_changedCB, Ffont_get_system_font):
6033 Check use_system_font.
dfb3c4c6
JD
6034 (syms_of_xsettings): DEFVAR font-use-system-font.
6035
9370c1d8
AS
60362009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6037
25fe851a
AS
6038 * xfns.c (x_default_font_parameter): Remove dead assignment.
6039
9370c1d8
AS
6040 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6041
637fa988
JD
60422009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6043
87e32266 6044 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 6045 not have FC_LCD_*. #define them if not there.
a6eb20d8 6046
87e32266 6047 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 6048
637fa988
JD
6049 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6050
6051 * xterm.c (handle_one_xevent): Call xft_settings_event for
6052 ClientMessage, PropertyNotify and DestroyNotify.
6053 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6054 Call xsettings_initialize.
6055
6056 * xftfont.c (xftfont_fix_match): New function.
6057 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6058 Call xftfont_fix_match after XftFontMatch.
6059
6060 * xfont.c (xfont_driver): Initialize all members.
6061
87e32266
SM
6062 * xfns.c (x_default_font_parameter):
6063 Try font from Ffont_get_system_font.
637fa988
JD
6064 Do not get font from x_default_parameter if we got one from
6065 Ffont_get_system_font.
87e32266 6066 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
6067
6068 * w32font.c (w32font_driver): Initialize all members.
6069
6070 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6071
6072 * lisp.h: Declare syms_of_xsettings.
6073
87e32266
SM
6074 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6075 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
6076
6077 * ftfont.c (ftfont_filter_properties): New function.
6078
6079 * frame.c (x_set_font): Remove unused variable lval.
6080
87e32266 6081 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
6082
6083 * font.c (font_put_extra): Don't return if val is nil, it means
6084 boolean option is off.
6085 (font_parse_fcname): Collect all extra properties in extra_props
6086 and call filter_properties for all drivers with extra_props and
6087 font as parameter.
87e32266
SM
6088 (font_open_entity): Do not use cache, it does not pick up new
6089 fontconfig settings like hinting.
637fa988
JD
6090 (font_load_for_lface): If spec had a name in it, store it in entity.
6091
a73f9c9d 6092 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
6093
6094 * config.in: HAVE_GCONF is new.
6095
6096 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6097 xsettings.o is new.
6098
5a942932
KH
60992009-11-17 Kenichi Handa <handa@m17n.org>
6100
6101 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6102 back to the default font in case that no suitable font is found.
6103
b7c7a4d1
SM
61042009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6105
6106 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6107 Suggested by Chad Brown <yandros@mit.edu>.
6108 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6109
072f1e39
JD
61102009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6111
6112 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6113
5d1e70a2
AS
61142009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6115
87e32266 6116 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 6117
a53cfbe5
JD
61182009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6119
473a99b7
JD
6120 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6121 has a parent.
6122
a53cfbe5 6123 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 6124 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
6125
6126 * config.in: Generated (AUTO_DEPEND).
6127
f04bb9b2
MA
61282009-11-13 Michael Albinus <michael.albinus@gmx.de>
6129
b7c7a4d1 6130 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
6131 Vdbus_registered_functions_table, because it contains also
6132 properties. Fix docstring.
b7c7a4d1 6133 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 6134
8f11f7ec
SM
61352009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6136
6137 * alloc.c (mark_object): Don't reprocess marked strings.
6138 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6139 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6140
8a605fe8
KH
61412009-11-13 Kenichi Handa <handa@m17n.org>
6142
8f11f7ec 6143 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
6144 semantics of Vword_combining_categories.
6145 (Vword_combining_categories): Describe the slight change of the
6146 semantics.
6147
241c4680
EZ
61482009-11-13 Eli Zaretskii <eliz@gnu.org>
6149
6150 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6151
6152 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6153
5d58e44c
SM
61542009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6155
6156 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6157
5e13f9d3
JB
61582009-11-12 Juanma Barranquero <lekktu@gmail.com>
6159
6160 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6161
cf54c754
DR
61622009-11-11 David Reitter <david.reitter@gmail.com>
6163
6164 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6165 variables to fix 2009-11-09 change.
6166
a4ada374
DN
61672009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6168
91433552
DN
6169 * process.c (ifflag_def): Make flag_sym constant.
6170 (Fnetwork_interface_info): Use a constant pointer.
6171 (ifflag_table):
6172 * xfns.c (cursor_bits):
6173 * xdisp.c (power_letter):
6174 * termcap.c (speeds, esctab):
6175 * sysdep.c (baud_convert):
6176 * keyboard.c (lispy_accent_codes, modifier_names):
6177 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6178 (jpeg_format, tiff_format, gif_format, svg_format)
6179 (interlace_start, interlace_increment, gs_format):
6180 * gtkutil.c (separator_names):
6181 * fringe.c (swap_nibble):
6182 * fns.c (base64_value_to_char, base64_char_to_value):
6183 * fileio.c (make_temp_name_tbl):
6184 * coding.c (suffixes): Make constant.
6185
f4265f6c
DN
6186 * frame.c (make_initial_frame):
6187 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6188 build_string.
6189 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6190
04420943
DN
6191 * s/freebsd.h:
6192 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6193
0a5d24ae
DN
6194 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6195 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6196
a4ada374
DN
6197 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6198 * xterm.c (syms_of_xterm):
6199 * xfaces.c (syms_of_xfaces):
6200 * xdisp.c (syms_of_xdisp):
6201 * lread.c (syms_of_lread):
6202 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6203 build_string.
91433552 6204
a4ada374
DN
6205 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6206
af98fc7f
SM
62072009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6208
8ab1650e 6209 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 6210
e90292a9
JD
62112009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6212
6213 * keyboard.h: Declare timer_check.
6214
6215 * keyboard.c (timer_check_2): New function that does what the old
6216 timer_check did.
6217 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6218 returned, i.e. don't return -1 with timers pending.
6219
6220 * process.c: Remove extern declaration of timer_check.
6221
6222 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6223 even if timer_check returned -1.
6224
af98fc7f
SM
6225 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6226 xg_dialog_data.
e90292a9
JD
6227 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6228 the event loop.
6229 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6230 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6231 Destroy the dialog after xg_dialog_run.
6232
045b83c0
SM
62332009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6234
6235 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6236
1fb99a3a
JD
62372009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6238
6239 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6240
04e452cb
JB
62412009-11-09 Juanma Barranquero <lekktu@gmail.com>
6242
6243 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6244
ef7417fd
SM
62452009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6246
6247 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6248 w32menu.c, and nsmenu.m.
6249 Simplify the obsolete case where position is nil.
6250 (cleanup_popup_menu): New function, moved from nsmenu.m.
6251 (struct skp): Remove slot `notreal'.
6252 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6253 adjust callers.
6254 (single_menu_item): Adjust call to parse_menu_item.
6255 (syms_of_menu): Defsubr x-popup-menu.
6256 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6257 (keymap_panes): Don't export any more.
6258 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6259 (xmenu_show): Declare.
6260 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6261 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6262 * keyboard.h (parse_menu_item): Update declaration.
6263 * xmenu.c (Fx_popup_menu): Remove.
6264 (syms_of_xmenu): Don't defsubr x-popup-menu.
6265 * w32menu.c (Fx_popup_menu): Remove.
6266 (syms_of_w32menu): Don't defsubr x-popup-menu.
6267 * nsmenu.m (cleanup_popup_menu): Remove.
6268 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6269 moved to menu.c's Fx_popup_menu.
6270 (Fx_popup_menu): Remove.
6271 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6272 menu_items (it's done in menu.c already).
6273
424d6179
SM
62742009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6275
6276 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6277 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6278
c0df13a6 62792009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
6280
6281 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 6282 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
6283 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6284 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6285
2de9f71c
SM
62862009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6287
6288 Let integers use up 2 tags to give them one extra bit and thus double
6289 their range.
6290 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6291 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6292 New macros.
6293 (enum Lisp_Type): Use them. Give explicit values.
6294 (Lisp_Type_Limit): Remove.
6295 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6296 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6297 Pay attention to USE_2_TAGS_FOR_INTS.
6298 (INTEGERP): Use LISP_INT_TAG_P.
6299 * fns.c (internal_equal): Simplify the default case.
6300 (sxhash): Use case_Lisp_Int.
6301 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6302 any more.
6303 (Ftype_of): Use case_Lisp_Int.
6304 (store_symval_forwarding): Take into account the fact that Ints can
6305 now have more than one tag.
6306 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 6307 (buffer_slot_type_mismatch):
2de9f71c
SM
6308 * xfaces.c (face_attr_equal_p):
6309 * print.c (print_object):
6310 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6311 Use case_Lisp_Int.
6312
323637a2
EZ
63132009-11-06 Eli Zaretskii <eliz@gnu.org>
6314
7ac65b38
EZ
6315 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6316
323637a2
EZ
6317 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6318 warning.
6319
e511451f
JD
63202009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6321
6322 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6323
6324 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6325
6326 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6327 ButtonPressRelease and MotionNotify (bug#4870).
6328
5e2327cf
DN
63292009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6330
5adc433e
DN
6331 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6332
d67b4f80
DN
6333 * xterm.c (syms_of_xterm):
6334 * xselect.c (syms_of_xselect):
6335 * xmenu.c (syms_of_xmenu):
6336 * xfns.c (syms_of_xfns):
6337 * xfaces.c (syms_of_xfaces):
6338 * xdisp.c (syms_of_xdisp):
6339 * window.c (syms_of_window):
6340 * w32fns.c (syms_of_w32fns):
6341 * undo.c (syms_of_undo):
6342 * textprop.c (syms_of_textprop):
6343 * terminal.c (syms_of_terminal):
6344 * syntax.c (syms_of_syntax):
6345 * sound.c (syms_of_sound):
6346 * search.c (syms_of_search):
6347 * print.c (syms_of_print):
6348 * minibuf.c (syms_of_minibuf):
6349 * macros.c (syms_of_macros):
6350 * keymap.c (syms_of_keymap, initial_define_key)
6351 (initial_define_lispy_key):
6352 * keyboard.c (syms_of_keyboard):
6353 * insdel.c (syms_of_insdel):
6354 * image.c (syms_of_image):
6355 * fringe.c (syms_of_fringe):
6356 * frame.c (syms_of_frame):
6357 * fontset.c (syms_of_fontset):
6358 * fns.c (syms_of_fns):
6359 * fns.c (syms_of_fns):
6360 * fileio.c (syms_of_fileio):
6361 * fileio.c (syms_of_fileio):
6362 * eval.c (syms_of_eval):
6363 * doc.c (syms_of_doc):
6364 * dispnew.c (syms_of_display):
6365 * dired.c (syms_of_dired):
6366 * dbusbind.c (syms_of_dbusbind):
6367 * data.c (syms_of_data):
6368 * composite.c (syms_of_composite):
6369 * coding.c (syms_of_coding):
6370 * cmds.c (syms_of_cmds):
6371 * charset.c (define_charset_internal, syms_of_character):
6372 * ccl.c (syms_of_ccl):
6373 * category.c (syms_of_category, init_category_once):
6374 * casetab.c (syms_of_casetab):
6375 * casefiddle.c (syms_of_casefiddle):
6376 * callint.c (syms_of_callint):
6377 * bytecode.c (syms_of_bytecode):
6378 * buffer.c (keys_of_buffer, syms_of_buffer):
6379 * alloc.c (syms_of_alloc):
6380 * process.c (syms_of_process, init_process):
6381 * lread.c (syms_of_lread, init_obarray):
6382 * font.c (build_style_table):
6383 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6384 intern_c_string, calls to make_pure_string with
6385 make_pure_c_string. Use pure_cons instead of Fcons.
6386
5e2327cf
DN
6387 * process.c (socket_options): Make it const.
6388 (set_socket_option, init_process): Use a const pointer.
6389
6390 * lread.c (intern_c_string): New function.
6391 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6392 (defvar_int): Uset it. Make the name const char*.
6393
6394 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6395 (defvar_int): Update prototypes.
6396 (DEFUN, EXFUN): Support for prototypes is now required.
6397 (intern_c_string): New prototype.
6398 (struct Lisp_Subr): Make symbol_name constant.
6399
6400 * font.c (struct table_entry): Remove unused member. Make NAMES
6401 constant.
6402 (weight_table, slant_table, width_table): Make constant.
6403
6404 * emacs.c (struct standard_args): Make name and longname constant.
6405
6406 * character.h (DEFSYM): Use intern_c_string.
6407
a56eaaef
DN
64082009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6409
6410 * alloc.c (make_pure_c_string): New function.
6411
6412 * eval.c (Fautoload): Purecopy all arguments.
6413
f6a07420
KH
64142009-11-05 Kenichi Handa <handa@m17n.org>
6415
6416 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6417 the buffer in case of replace.
6418
5d28d4b1
DN
64192009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6420
6421 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6422
b349d111
SM
64232009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6424
d528b1ce
SM
6425 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6426 when applicable (bug#4851).
6427
b349d111
SM
6428 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6429 (P_): Support for prototypes is now required.
6430
c38eb027
CY
64312009-10-31 Chong Yidong <cyd@stupidchicken.com>
6432
6433 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6434 (Bug#4827).
6435
0405f8d9
EZ
64362009-10-30 Eli Zaretskii <eliz@gnu.org>
6437
d528b1ce 6438 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 6439
ca0a881a
DN
64402009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6441
6442 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6443
d528b1ce
SM
6444 * lread.c (Fload): Purecopy the file name when building
6445 Vpreloaded_file_list.
ca0a881a 6446
47e0e0e4
JR
64472009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6448
6449 * w32fns.c (syms_of_w32fns): Change default value of
6450 w32-scroll-lock-modifier to nil. (Bug#2827)
6451
057bce6f
JB
64522009-10-26 Juanma Barranquero <lekktu@gmail.com>
6453
782a943e 6454 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 6455
242bc74c
AS
64562009-10-26 Andreas Schwab <schwab@redhat.com>
6457
6458 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6459
522d013a
JB
64602009-10-26 Juanma Barranquero <lekktu@gmail.com>
6461
6462 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6463 For delta < 0, skip check that only makes sense when the mini-window
6464 is going to be enlarged. (Bug#4534)
6465
18060980
CY
64662009-10-25 Chong Yidong <cyd@stupidchicken.com>
6467
6468 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6469 string in menu maps (Bug#4471).
6470
fec8f0fe
CY
64712009-10-24 Chong Yidong <cyd@stupidchicken.com>
6472
6473 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6474 FRAME_NS_VIEW on terminal frames (Bug#4765).
6475
10d66ec0
AS
64762009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6477
1cae01f7
AS
6478 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6479 DBUS_TYPE_UINTnn separately to get proper sign extension.
6480
58a12889
AS
6481 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6482 can properly handle unsigned types.
d528b1ce 6483 (make_uid, make_gid): Remove.
58a12889 6484
987c9327
AS
6485 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6486 types again.
6487
522d013a 6488 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
6489 (system_process_attributes): Likewise.
6490
905a9ed3
DN
64912009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6492
6493 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6494
6495 * eval.c (Fautoload): Purecopy the filename. Simplify.
6496
6497 * category.c (Fdefine_category): Purecopy docstring.
6498
a599b3e8
AS
64992009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6500
7b792fc9
AS
6501 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6502
a599b3e8
AS
6503 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6504
b35ac83e
CY
65052009-10-23 Chong Yidong <cyd@stupidchicken.com>
6506
6507 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6508 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6509 (Bug#4775).
6510
e8903e00
SM
65112009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6512
6513 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6514 (init_fileio_once):
6515 * lisp.h (init_fileio_once): Remove.
6516 * emacs.c (main): Don't call init_fileio_once.
6517
8f43cbf3
DN
65182009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6519
6520 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6521
26898943
AS
65222009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6523
6524 * doprnt.c (doprnt): Fix overflow check.
6525
5c646d5a
JD
65262009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6527
3132a7ea
JD
6528 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6529
5c646d5a
JD
6530 * xterm.h (x_wait_for_event): Declare it.
6531
6532 * xterm.c (pending_event_wait): New variable.
6533 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6534 see pending_event_wait.eventtype.
6535 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
6536 (x_new_font): Call change_frame_size with new rows/columns before we
6537 try to resize the frame.
5c646d5a 6538 (x_wait_for_event): New function.
d528b1ce
SM
6539 (x_set_window_size_1): Don't change gravity unless change_gravity
6540 is set.
5c646d5a
JD
6541 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6542 don't change frame size, instead wait for the ConfigureNotify.
6543 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6544 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6545 (x_initialize): Initialize pending_event_wait.
6546
6547 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6548 size.
6549
6550 * widget.c (EmacsFrameSetValues): Add comment.
6551 (EmacsFrameSetCharSize): Just call x_set_window_size.
6552
6553 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6554 x_wait_for_event.
d528b1ce 6555 (flush_and_sync): Remove again.
5c646d5a
JD
6556 (xg_get_font_name): Suggest monospace if no previous font is known.
6557
e9c1637d
SM
65582009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6559
6560 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 6561 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 6562
5a72cccb
YM
65632009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6564
6565 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6566 processing pending events when event is filtered for input method.
ab04798f 6567 (Bug#3681)
5a72cccb 6568
2629aa37
JB
65692009-10-20 Juanma Barranquero <lekktu@gmail.com>
6570
6571 * fns.c: Add #endif accidentally removed in previous change.
6572
c3417a74
DN
65732009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6574
6575 * fns.c: Remove code for unsupported system: MAC_OS.
6576 * image.c: Likewise. Include setjmp.h.
6577
9685cef2
JD
65782009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6579
6580 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6581 pixel -1 (bug #4742).
6582
d7306fe6
DN
65832009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6584
019d2c4c
DN
6585 * process.c (create_pty): Remove conditionals for no longer
6586 supported systems: UNIPLUS and RTU.
6587
ee6bacd4
DN
6588 * xterm.c:
6589 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6590
d7306fe6
DN
6591 * alloc.c: Do not define struct catchtag.
6592 * eval.c: Move struct catchtag definition ...
6593 * lisp.h: ... here.
6594
6595 * image.c: Move png.h #include earlier to avoid warnings.
6596
6597 * xterm.c:
6598 * xsmfns.c:
6599 * xselect.c:
6600 * xrdb.c:
6601 * xmenu.c:
6602 * xftfont.c:
6603 * xfont.c:
6604 * xfns.c:
6605 * xfaces.c:
6606 * xdisp.c:
6607 * window.c:
6608 * widget.c:
6609 * w32xfns.c:
6610 * w32uniscribe.c:
6611 * w32term.c:
6612 * w32select.c:
6613 * w32reg.c:
6614 * w32proc.c:
6615 * w32menu.c:
6616 * w32inevt.c:
6617 * w32heap.c:
6618 * w32font.c:
6619 * w32fns.c:
6620 * w32console.c:
6621 * w32.c:
6622 * w16select.c:
6623 * vm-limit.c:
6624 * unexsol.c:
6625 * unexec.c:
6626 * unexcw.c:
6627 * unexaix.c:
6628 * undo.c:
6629 * tparam.c:
6630 * textprop.c:
6631 * terminfo.c:
6632 * terminal.c:
6633 * termcap.c:
6634 * term.c:
6635 * syntax.c:
6636 * sound.c:
6637 * sheap.c:
6638 * search.c:
6639 * scroll.c:
6640 * region-cache.c:
6641 * regex.c:
6642 * ralloc.c:
6643 * process.c:
6644 * print.c:
b024548b
DN
6645 * nsterm.m:
6646 * nsselect.m:
6647 * nsmenu.m:
6648 * nsimage.m:
6649 * nsfont.m:
6650 * nsfns.m:
d7306fe6
DN
6651 * msdos.c:
6652 * minibuf.c:
6653 * menu.c:
6654 * marker.c:
6655 * macros.c:
6656 * keymap.c:
6657 * keyboard.c:
6658 * intervals.c:
6659 * insdel.c:
6660 * indent.c:
6661 * gtkutil.c:
6662 * ftxfont.c:
6663 * ftfont.c:
6664 * fringe.c:
6665 * frame.c:
6666 * fontset.c:
6667 * font.c:
6668 * fns.c:
6669 * floatfns.c:
6670 * filelock.c:
6671 * fileio.c:
6672 * emacs.c:
6673 * editfns.c:
6674 * dosfns.c:
6675 * doprnt.c:
6676 * doc.c:
6677 * dispnew.c:
6678 * dired.c:
6679 * dbusbind.c:
6680 * data.c:
6681 * composite.c:
6682 * coding.c:
6683 * cmds.c:
6684 * cm.c:
6685 * chartab.c:
6686 * charset.c:
6687 * character.c:
6688 * ccl.c:
6689 * category.c:
6690 * casetab.c:
6691 * casefiddle.c:
6692 * callproc.c:
6693 * callint.c:
6694 * bytecode.c:
6695 * buffer.c:
6696 * atimer.c: Include setjmp.h. (Bug#4643)
6697
fd5f21e6
SM
66982009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6699
4c0354d7
SM
6700 Remove leftover table unibyte_to_multibyte_table.
6701 * character.c (unibyte_to_multibyte_table): Remove.
6702 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6703 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6704 * character.h (UNIBYTE_TO_CHAR): New macro.
6705 (MAKE_CHAR_MULTIBYTE): Use it.
6706 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6707 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6708 (message_dolog, set_message_1):
6709 * search.c (Freplace_match):
6710 * editfns.c (Fcompare_buffer_substrings):
6711 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6712 (concat):
6713 * insdel.c (copy_text, count_size_as_multibyte):
6714 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6715 * term.c (produce_glyphs):
6716 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6717 * regex.c (RE_CHAR_TO_MULTIBYTE):
6718 * cmds.c (internal_self_insert):
6719 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6720
fd5f21e6
SM
6721 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6722
4418646e
DN
67232009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6724
6725 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6726
35f5c1d2
JB
67272009-10-16 Juanma Barranquero <lekktu@gmail.com>
6728
6729 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6730
a0cd8f6b
AR
67312009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6732
6733 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6734 still needed under Tiger.
6735
6736 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6737
6738 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6739 __Apple__.
6740
6741 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6742
01a8d3fa
KH
67432009-10-15 Kenichi Handa <handa@m17n.org>
6744
6745 * print.c (print_object): Escape a symbol like "2E10" too.
6746
bf6c75c9 67472009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
6748
6749 Cleanups and changes for 64-bit compile under Snow Leopard.
6750 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
6751
6752 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6753
c5959062 6754 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
6755 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6756 cast argument.
6757 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 6758 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
6759
6760 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6761
6762 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6763 where appropriate.
6764
6765 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6766 where appropriate.
6e4780c5
JB
6767 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6768 Use stringWithUTF8String.
bf6c75c9
AR
6769 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6770
6e4780c5
JB
6771 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6772 Add formal protocol mention to inheritance.
bf6c75c9
AR
6773 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6774
6e4780c5
JB
6775 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6776 Fix printf format.
bf6c75c9
AR
6777 (ns_query_color): Use CGFloat where appropriate.
6778 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 6779 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
6780 argument.
6781
3d87f118
AR
6782 * config.in (NS_HAVE_NSINTEGER): Drop.
6783
a95c8102
AR
6784 * dbusbind.c (dbus-method-return-internal)
6785 (dbus-method-error-internal): Use long format in printf, and cast
6786 argument.
6787
6788 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6789 in printf, and cast argument.
6790
6873acca 6791 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6792 cast argument.
6793
9ec6f100
GM
67942009-10-11 Glenn Morris <rgm@gnu.org>
6795
6796 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6797
5be883cd
JD
67982009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6799
6800 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6801 menu bar with a small width so it doesn't enlarge the frame.
6802
d7a39b51
JB
68032009-10-08 Juanma Barranquero <lekktu@gmail.com>
6804
6805 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6806
0c2b6f8e
GM
68072009-10-06 Glenn Morris <rgm@gnu.org>
6808
6809 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6810 SOME_MACHINE_LISP (this enters indirectly via DOC).
6811
e02131a2
EZ
68122009-10-05 Eli Zaretskii <eliz@gnu.org>
6813
6814 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6815
b4744254
EZ
68162009-10-04 Eli Zaretskii <eliz@gnu.org>
6817
6818 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6819 Doc fix.
6820
dbf64827
JB
68212009-10-03 Martin Rudalics <rudalics@gmx.at>
6822
6823 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6824
e9a0aef8
MA
68252009-10-02 Michael Albinus <michael.albinus@gmx.de>
6826
d528b1ce 6827 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6828 used anymore outside fileio.c.
6829
6830 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6831
64eb2b56
JB
68322009-10-01 Juanma Barranquero <lekktu@gmail.com>
6833
6834 * lisp.h (Qdelete_directory_internal):
6835 Declare, instead of Qdelete_directory.
6836
6837 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6838
9d28c33e
SM
68392009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6840
6841 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6842
9d8f3bd9
MA
68432009-10-01 Michael Albinus <michael.albinus@gmx.de>
6844
9d28c33e 6845 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6846 Fdelete_directory. It is not a command anymore. It has no file
6847 name handler.
6848
9694740b
SM
68492009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6850
6851 * xdisp.c (get_next_display_element): Use an enum in last change.
6852
748e162f
KH
68532009-09-28 Kenichi Handa <handa@m17n.org>
6854
9694740b 6855 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6856 unibyte_display_via_language_environment in handling
6857 Vnobreak_char_display.
6858
17efd58d
AR
68592009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6860
6861 * nsterm.h (ns_app_name): New extern variable.
6862
6863 * nsterm.m (ns_app_name): New variable.
6864 (ns_term_init): Set and use it.
6865 (ns_term_shutdown): Use it.
6866
6867 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6868 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6869
6870 * nsfns.m (ns_set_name_iconic, ns_set_name)
6871 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6872 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6873
9694740b
SM
6874 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6875 Remove double-casting in client_data comparison.
31c2d412 6876
3208cb35
YM
68772009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6878
6879 * keyboard.c (make_lispy_event): Remember last wheel direction.
6880 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6881
b7d552d6
GM
68822009-09-26 Glenn Morris <rgm@gnu.org>
6883
6884 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6885 internal.elc. Add term/pc-win.elc.
6886 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6887 term/x-win.elc.
6888 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6889 term/w32-win.elc.
6890 (NS_SUPPORT): New.
6891 (lisp): Add NS_SUPPORT.
6892 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6893
4ff670a8
DR
68942009-09-25 David Reitter <david.reitter@gmail.com>
6895
6896 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6897 on Mac OS X 10.6+ (bug#4513).
6898
feabfb6c
JB
68992009-09-24 Juanma Barranquero <lekktu@gmail.com>
6900
6901 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6902 some parts of Emacs code (like font selection) don't grok them.
6903 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6904
de59072a
AS
69052009-09-24 Andreas Schwab <schwab@redhat.com>
6906
6907 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6908
a489517b
JB
69092009-09-24 Juanma Barranquero <lekktu@gmail.com>
6910
6911 * dired.c (Fdirectory_files): Fix typo in docstring.
6912
0592970c
AR
69132009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6914
6915 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6916 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6917 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6918 under GNUstep.
6919 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6920
6921 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6922 glyph advancement.
6923
48e8a88b
AR
69242009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6925
6926 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6927 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
6928
6929 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6930 deleted (bug #4492).
6931
e14f0a78
AR
6932 * nsfont.m (Vns_reg_to_script): New lisp variable.
6933 (syms_of_nsfont): Declare it.
6934 (ns_registry_to_script): New function.
6935 (ns_get_req_script): Call it.
6936 (ns_findfonts): Don't give up on non-unicode registry.
6937
6938 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6939
5b650faa
SM
69402009-09-20 Tom Tromey <tromey@redhat.com>
6941
6942 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6943 batch mode (bug#4228).
6944
a489517b 69452009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6946
6947 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6948 carefully. (Bug #4339)
0bae4e09 6949
fcfe06f3
CY
69502009-09-18 Chong Yidong <cyd@stupidchicken.com>
6951
d798ba87 6952 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6953
31642728
AR
69542009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6955
6956 * emacs.c (inhibit_x_resources): Update doc string for NS.
6957 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6958 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6959
6960 * nsterm.h (ns_no_defaults): Remove.
6961
6962 * nsterm.m (ns_no_defaults): Remove.
6963 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6964 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6965 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6966 don't update the NSWindow itself.
6967 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6968 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6969
6970 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6971 ns_use_qd_smoothing.
6972
6973 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6974 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6975 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6976 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6977
8686ac71
JB
69782009-09-17 Juanma Barranquero <lekktu@gmail.com>
6979
6980 * emacs.c (inhibit_x_resources): New variable.
6981 (main) [HAVE_NS]: Don't process --quick command line option.
6982 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6983
6984 * lisp.h (inhibit_x_resources): Declare it extern.
6985
6986 * w32reg.c (x_get_string_resource):
6987 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6988
e227ba05
EZ
69892009-09-17 Eli Zaretskii <eliz@gnu.org>
6990
362654a6
JB
6991 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6992 Add lisp/term/internal.elc.
e227ba05 6993
742d40e8
SM
69942009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6995
6996 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6997 (bug#4461).
6998
005bd5a2
DN
69992009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7000
7001 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7002
7003 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7004 (OBJECTS_MACHINE): Remove, unused.
7005
f9af9719
SM
70062009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7007
7008 * frame.c (x_get_resource_string): Remove unused.
7009
0307c7d2
JD
70102009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7011
7012 * xterm.c (x_new_font): Call change_frame_size before calling
7013 x_set_window_size, in case frame size won't change.
7014
7015 * frame.c (x_set_font): Remove dead code.
7016
428b13d6
SM
70172009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7018
7019 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7020
5766c380
SM
70212009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7022
7023 * lread.c (Fload): Don't output a message after loading an obsolete
7024 package any more (done in Lisp now).
7025
2fd0161b
CY
70262009-09-12 Chong Yidong <cyd@stupidchicken.com>
7027
7028 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7029
bc5e75b6
SM
70302009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7031
7032 * keymap.c (Fwhere_is_internal): Use nconc2.
7033
c31c985e
AM
70342009-09-11 Alan Mackenzie <acm@muc.de>
7035
7036 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7037 batch mode.
7038
78012bd2
AS
70392009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7040
7041 * xdisp.c (display_mode_element): Detect cycles.
7042
9d889332
SM
70432009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7044
7045 * keymap.c (where_is_internal): Don't erroneously return nil right after
7046 filling the cache.
7047 (where_is_internal_1): Fix up typo.
7048
7ab5d780
GM
70492009-09-11 Glenn Morris <rgm@gnu.org>
7050
7051 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7052 share a common doc-string.
7053
5238a749
SM
70542009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7055
66d77eda
SM
7056 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7057 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7058
5238a749
SM
7059 * keymap.c (QCadvertised_binding): New constant.
7060 (syms_of_keymap): Initialize it.
7061 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7062 if applicable.
7063
19f48442
SM
70642009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7065
50d4ba39
SM
7066 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7067 (parse_menu_item): Streamline since bindings are recomputed all the
7068 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7069 more and don't support lmenu's menu-alias any more either.
7070
a88a5372
SM
7071 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7072 (where_is_internal): Strip it down to only traverse the keymaps.
7073 Move the cache handling from Fwhere_is_internal to here.
7074 (Fwhere_is_internal): Move the handling of remapping and the choice of
7075 the best binding from where_is_internal to here.
7076 Unify the cached/noncached paths, so remapping is also handled
7077 correctly when the cache is used, and so the cache can be used to
7078 speed up remap-handling when applicable.
7079 Give preference to non-remapped bindings.
7080 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7081 non-remapped bindings.
7082 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7083 command remapping.
7084
19f48442
SM
7085 * xdisp.c (display_mode_element): Move list length limit from 50 to
7086 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7087
599498c3 70882009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
7089
7090 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7091
f9b7b5ac
SM
70922009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7093
a53af587
JB
7094 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7095 (Bug#4334)
7096
f9b7b5ac
SM
7097 * keymap.c (where_is_internal): Filter out shadowed remappings.
7098 Assume that where_is_internal returns unshadowed bindings to simplify
7099 the code and get rid of the gotos. Use ASIZE.
7100
04f4b72d
JD
71012009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7102
4da146f2
JD
7103 * xterm.c (x_focus_changed): If we get a focusout and pointer
7104 is invisible, make it visible.
7105
04f4b72d
JD
7106 * xterm.h: Remove condition for declaration of
7107 x_*_window_to_frame.
7108
7cef7ce3
SM
71092009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7110
7111 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7112 initial terminal as well.
7113
a54fa5b7
JD
71142009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7115
7116 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 7117 x_menubar_window_to_frame.
a54fa5b7 7118
50426a04 7119 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
7120 (XTmouse_position): Do not return valid positions
7121 for clicks in the menubar and the toolbar for Gtk+.
7122
7123 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7124 if the widget for the event has the same top level as a frame,
7125 return the frame.
7126 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7127 internal windows, bug #4122.
7128 (x_non_menubar_window_to_frame): Remove.
7129
5a021dd0
GM
71302009-09-02 Glenn Morris <rgm@gnu.org>
7131
7132 * buffer.c (default-major-mode): Move most of the doc from here...
7133 (major-mode): ... to here.
7134
548fe2f3
NR
71352009-08-30 Nick Roberts <nickrob@snap.net.nz>
7136
7137 * process.c (wait_reading_process_output): Keep the descriptor
7138 when pty is used by a non-child process, e.g., in I/O buffer of
7139 GDB this allows inferior to be restarted.
7140
e0840eef
EZ
71412009-08-29 Eli Zaretskii <eliz@gnu.org>
7142
7143 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7144 both branches into one.
7145
82e98df4
SM
71462009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7147
7148 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7149 (main): Use enable-multibyte-characters rather than
7150 default-enable-multibyte-characters. Output a warning message when
7151 running a unibyte session.
7152
890617cb
YM
71532009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7154
7155 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7156 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7157 (copy_data_segment): Also copy __program_vars section.
7158 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7159 (dump_it) [LC_DYLD_INFO]: Use it.
7160
7161 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7162
e7adeadc
EZ
71632009-08-28 Eli Zaretskii <eliz@gnu.org>
7164
7165 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7166 $(SRC)/buildobj.h.
7167 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7168 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7169 $(SRC)/buildobj.h.
7170 (clean): Add buildobj.h.
7171
3ed8bbdc
TZ
71722009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7173
7174 * print.c (print_object): Set escapeflag to 1 when printing
7175 hashtable keys and values.
7176
155a6764
SM
71772009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7178
7179 * lread.c (read_integer): Use doubles (and potentially return a float
7180 number) as we do in string-to-number.
7181 (read1): Use strtol to read integers, signal errors on strtol's
7182 overflow and use floats if strtol's output is too large for
7183 Elisp integers.
7184
877610de
EZ
71852009-08-27 Eli Zaretskii <eliz@gnu.org>
7186
7187 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7188 (make-buildobj-SH): Fix last change.
7189 (SRC): Move to before where it's first used.
7190
ef73e7be
KH
71912009-08-27 Kenichi Handa <handa@m17n.org>
7192
550c8289
KH
7193 * process.c (send_process): Use encode_coding_object instead of
7194 encode_coding_string to perform eol-conversion even if the string
7195 is unibyte.
7196
60afa08d
KH
7197 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7198 character.
7199
ef73e7be 7200 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 7201 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 7202
7b3a82d7
DN
72032009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7204
5654bf63
DN
7205 * callproc.c (Fcall_process): Remove always true #if.
7206
7b3a82d7
DN
7207 * lisp.h: Replace #if 0 code for checking with text pointing to
7208 the --enable-checking configure flag.
7209
7210 * emacs.c (main): Mention the --enable-profiling configure flag
7211 instead of using CFLAGS.
7212
878bde49
KR
72132009-08-26 Ken Raeburn <raeburn@raeburn.org>
7214
7215 * Makefile.in (buildobj.h): New target.
7216 (doc.o): Depend on it.
7217 (temacs${EXEEXT}): Don't generate buildobj.lst.
7218 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7219 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7220 ($(BLD)/doc.$(O)): Depend on it.
7221 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7222 provided by Eli Zaretskii.)
7223 ($(TEMACS)): Don't generate buildobj.lst.
7224 * doc.c: Include buildobj.h.
7225 (buildobj): New static variable.
7226 (Fsnarf_documentation): Use it, instead of opening and reading
7227 buildobj.lst.
7228
1574224c
MA
72292009-08-25 Michael Albinus <michael.albinus@gmx.de>
7230
7231 * dbusbind.c (Fdbus_call_method)
7232 (Fdbus_call_method_asynchronously): Use English numeric format for
7233 timeout values in doc string.
7234
d9da2f45
KH
72352009-08-25 Kenichi Handa <handa@m17n.org>
7236
ef73e7be
KH
7237 * alloc.c (mark_char_table): New function.
7238 (mark_object): Use mark_char_table for a char-table.
7239
d9da2f45
KH
7240 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7241 (CHAR_TABLE_REF): Use it.
7242
c8edcc01
KR
72432009-08-23 Ken Raeburn <raeburn@raeburn.org>
7244
7245 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7246 before invoking the newly build emacs to check for load-path
7247 shadowing.
7248
7763401b
GM
72492009-08-22 Glenn Morris <rgm@gnu.org>
7250
7251 * Makefile.in (bootstrap_exe): New variable.
7252 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7253 Use ${bootstrap_exe}.
7254
729eadda
EZ
72552009-08-22 Eli Zaretskii <eliz@gnu.org>
7256
7257 * coding.h (encode_coding_string): Don't encode unibyte strings.
7258 (Bug#4047)
7259
eb4c6ace
MA
72602009-08-22 Michael Albinus <michael.albinus@gmx.de>
7261
7262 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7263
7264 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7265 intended as hotfix only.
7266 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7267
36e34d1b
AR
72682009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7269
7270 * nsterm.m (ns_get_color): Update documentation properly for last
7271 change, and clean up loose ends in the code left by it. Fix
7272 longstanding bug with 16-bit hex parsing, and add support for
7273 yet another X11 format (rgb:r/g/b) for compatibility.
7274 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7275 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7276
f983eb8a
SM
72772009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7278
7279 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7280
3f56d3c6
MA
72812009-08-20 Michael Albinus <michael.albinus@gmx.de>
7282
7283 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7284 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7285 (xd_initialize, xd_pending_messages): Check, whether
7286 $DBUS_SESSION_BUS_ADDRESS is set.
7287
fb641d68
YM
72882009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7289
7290 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7291
7292 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7293
cf59a374
GM
72942009-08-20 Glenn Morris <rgm@gnu.org>
7295
7296 * emacs.c (system-type): Doc fix.
7297
1373f3be
SM
72982009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7299
7300 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7301 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7302
058ed861
MA
73032009-08-18 Michael Albinus <michael.albinus@gmx.de>
7304
1373f3be
SM
7305 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7306 New functions.
058ed861
MA
7307 (xd_initialize): Revert change from 2009-08-16.
7308
563a866e 73092009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
7310
7311 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 7312 font-group vector, return nil.
5fc05db0 7313
e42bdf01
CY
73142009-08-17 Chong Yidong <cyd@stupidchicken.com>
7315
7316 * process.c (status_notify): Don't perform redisplay.
7317 (Fdelete_process, list_processes_1, process_send_signal):
7318 Expliticly perform redisplay.
7319 (wait_reading_process_output): Always check process status, but
7320 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7321
4230ab74
KR
73222009-08-17 Ken Raeburn <raeburn@raeburn.org>
7323
1373f3be 7324 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
7325 (XFLOAT_INIT): New macro for storing a float value.
7326 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7327 * fns.c (sxhash): Copy out the value of a float in order to
7328 examine its bytes.
7329 * dbusbind.c (xd_append_arg): Likewise.
7330
4230ab74
KR
7331 * emacs.c (main): Don't call syms_of_data twice.
7332
a0645cdd
MA
73332009-08-16 Michael Albinus <michael.albinus@gmx.de>
7334
7335 * dbusbind.c (xd_initialize): Add connection file descriptor to
7336 input_wait_mask, in order to let select() detect, whether a new
7337 message has been arrived.
ca4f31ea 7338 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 7339
485db0ba
MA
73402009-08-15 Michael Albinus <michael.albinus@gmx.de>
7341
1373f3be
SM
7342 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7343 New functions.
485db0ba
MA
7344
7345 * lisp.h (xd_pending_messages): Declare.
7346
7347 * keyboard.c (readable_events): Call xd_pending_messages.
7348
b5b98ff4
CY
73492009-08-15 Chong Yidong <cyd@stupidchicken.com>
7350
1373f3be 7351 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 7352
f8354c6e
CY
7353 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7354
b5b98ff4
CY
7355 * buffer.c (set_buffer_internal_1)
7356 (swap_out_buffer_local_variables): Check for unbound local
7357 variables (Bug#4138).
7358
8b9fc636
EZ
73592009-08-14 Eli Zaretskii <eliz@gnu.org>
7360
7361 * process.c (create_pty): Fix last change.
7362
ce959360
CY
73632009-08-13 Chong Yidong <cyd@stupidchicken.com>
7364
7365 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7366 (xbm_load_image): Caller changed.
64b807c9 7367 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 7368
c7baf7e9
NR
73692009-08-13 Nick Roberts <nickrob@snap.net.nz>
7370
7371 * process.c (create_pty): New function.
7372 (Fstart_process): Use it to allow Emacs to just associate a pty
7373 with the buffer. See associated change in gdb-mi.el.
7374 (list_processes_1): Deal with no program name.
7375 (start_process_unwind): Use pid == -2 to mean no process.
7376
1ac9108a
SM
73772009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7378
7379 * cmds.c (nonundocount): New global variable.
7380 (keys_of_cmds): Initialize it.
7381 (Fself_insert_command): Use it to combine upto 20 sequential chars
7382 into a single undo entry, just like the Qself_insert_command code in
7383 keyboard.c does.
7384 Call frame_make_pointer_invisible, also like the Qself_insert_command
7385 code in keyboard.c does.
7386 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7387 than its own local replacement for it.
7388
e267324c
KR
73892009-08-10 Ken Raeburn <raeburn@raeburn.org>
7390
1ac9108a 7391 * fns.c (concat): Don't re-set string length to its current value.
77437343 7392
1ac9108a
SM
7393 * coding.h (decode_coding_string, encode_coding_string):
7394 Use SBYTES macro.
f0bed503 7395
1ac9108a 7396 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
7397 (doprnt): Merge with doprnt1, discarding lispstrings code.
7398 * lisp.h (doprnt_lisp): Don't declare.
7399
416e006d
JL
74002009-08-07 Juri Linkov <juri@jurta.org>
7401
7402 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7403
6f7d5780
DN
74042009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7405
7406 * print.c (syms_of_print): Undo previous change.
7407
f19a0f5b
TZ
74082009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7409
7410 * lread.c (read1, syms_of_lread): Read hashtables back from the
7411 readable format.
7412
7413 * print.c (print_preprocess, print_object): Print hashtables fully
7414 and readably.
7415 (syms_of_print): Provide 'hashtable-print-readable.
7416
b9173dc2
AR
74172009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7418
7419 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7420 no family set.
7421 (nsfont_open): Handle case when entity has no family.
7422
1586503c
AR
74232009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7424
7425 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7426 element, not a list, for match case.
7427
087048cd
KH
74282009-07-28 Kenichi Handa <handa@m17n.org>
7429
7430 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7431 rigidly.
7432
7433 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7434 font_parse_xlfd. Check font properties more rigidly.
7435
780c2506
DN
74362009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7437
31fd7c5c
JB
7438 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7439 bsd-common.h.
780c2506 7440
a8c0cc18
KH
74412009-07-27 Kenichi Handa <handa@m17n.org>
7442
7443 * xfaces.c (face_with_height): Call font_clear_prop.
7444
4fbe2306
CY
74452009-07-26 Chong Yidong <cyd@stupidchicken.com>
7446
111d9af3
CY
7447 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7448
7449 * xterm.c (x_term_init): Use Qx.
7450
4fbe2306
CY
7451 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7452
1ac9108a 7453 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
7454 (ns_get_color): Revert 2009-07-16 change.
7455
beb0b7f9
EZ
74562009-07-25 Eli Zaretskii <eliz@gnu.org>
7457
7458 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 7459 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 7460
2baf5e76
KR
74612009-07-25 Ken Raeburn <raeburn@raeburn.org>
7462
1ac9108a
SM
7463 * coding.h (decode_coding_string, encode_coding_string):
7464 Use SCHARS macro.
8890e5f5 7465
2baf5e76 7466 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 7467 (load_depth): Delete.
2baf5e76
KR
7468 (Qload_in_progress): New variable.
7469 (load_unwind): Don't reference load_depth or load_in_progress.
7470 (Fload): Likewise; specbind Qload_in_progress instead.
7471 (init_lread): Don't initialize load_depth.
7472 (syms_of_lread): Initialize and protect Qload_in_progress.
7473
1395c6f5
AR
74742009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7475
7476 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7477
4e2f36cf
AR
74782009-07-23 Yavor Doganov <yavor@gnu.org>
7479
7480 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7481
5dd9a6f7
AR
74822009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7483
7484 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
7485 Bugs 3792, 3720, 2402.
7486 (ns_lookup_indexed_color): Check for bad index.
7487 (ns_index_color): Init unused slot to 0.
7488 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7489 Bug 3714, possibly 3082.
5dd9a6f7 7490
c902b920
JR
74912009-07-22 Jason Rumney <jasonr@gnu.org>
7492
1ac9108a
SM
7493 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7494 Position IME window at cursor (Bug#2570).
c902b920
JR
7495 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7496 (globals_of_w32fns): Dynamically load functions required above.
7497
7498 * w32term.c (w32_draw_window_cursor): Send message to reposition
7499 any IME window.
7500
090101cf
CY
75012009-07-21 Chong Yidong <cyd@stupidchicken.com>
7502
7503 * fileio.c: Revert 2009-07-16 changes.
7504 (Vauto_save_include_big_deletions): New variable.
7505 (Fdo_auto_save): Disable auto-save only if
7506 auto-save-include-big-deletions is nil.
7507
e6583e3d
CY
75082009-07-21 Chong Yidong <cyd@stupidchicken.com>
7509
7510 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7511 the overflowed pixels into account (Bug#3879).
7512
ece435a5
KR
75132009-07-21 Ken Raeburn <raeburn@raeburn.org>
7514
7515 * lread.c (load_depth): New variable.
7516 (Fload, load_unwind, init_lread): Set it to the load recursion
7517 depth; set load_in_progress as a simple boolean based on the
7518 current load_depth. (Bug#3892)
7519
40b2d973
AR
75202009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7521
7522 * nsfont.m (ns_has_attribute): Remove.
7523 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7524
10be7e0d
JL
75252009-07-18 Juri Linkov <juri@jurta.org>
7526
7527 * process.c (Fset_process_query_on_exit_flag): Mention killing
7528 a buffer in docstring.
7529
fa055055
KH
75302009-07-17 Kenichi Handa <handa@m17n.org>
7531
7532 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7533
042f7b69
YM
75342009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7535
7536 * nsfns.m (Fns_set_alpha): Remove function.
7537 (syms_of_nsfns): Don't defsubr it.
7538
7539 * nsterm.m (ns_get_color): Remove incompatible color formats.
7540 (ns_color_to_lisp): Generate #rrggbb color format string.
7541
4be941e3
RS
75422009-07-16 Richard Stallman <rms@gnu.org>
7543
7544 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7545 (Fset_buffer_auto_saved): Handle save_length = -2.
7546
4e6b227d
CY
75472009-07-16 Chong Yidong <cyd@stupidchicken.com>
7548
7549 * xterm.c (Qx_gtk_map_stock): New var.
7550
7551 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7552 of calling intern each time.
7553
a1856973
YM
75542009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7555
7556 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7557 does tiling.
7558
7559 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7560
497e54d8
KH
75612009-07-14 Kenichi Handa <handa@m17n.org>
7562
72d36834
KH
7563 * font.c (font_vconcat_entity_vectors): New function.
7564 (struct font_sort_data): New member font_driver_preference.
7565 (font_compare): Check font_driver_preference.
7566 (font_sort_entities): The format of the first argument changed.
7567 (font_delete_unmatched): Likewise.
7568 (font_list_entities): The return type changed.
7569 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
7570 (font_find_for_lface): Adjuste for the above changes.
7571 Don't suppress the checking of C even if the repertory supports it.
7572 (Flist_fonts): Adjust for the above changes.
72d36834 7573
1ac9108a
SM
7574 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7575 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
7576 Reject a font who has adstyle property that is different from a
7577 langname derived from registry property.
1ac9108a 7578 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 7579
b6046155
EZ
75802009-07-13 Eli Zaretskii <eliz@gnu.org>
7581
7582 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7583 local copy of dirfilename.
7584
fb6b6049
KH
75852009-07-13 Kenichi Handa <handa@m17n.org>
7586
e2402a5e
KH
7587 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7588 against max_char.
7589
fb6b6049
KH
7590 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7591 calling XSYMBOL (sym).
7592
65156807
EZ
75932009-07-11 Eli Zaretskii <eliz@gnu.org>
7594
1ac9108a
SM
7595 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7596 New function.
7597 (directory_files_internal) [WINDOWSNT]:
7598 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
7599 the filesystem of the directory is fast or slow.
7600
7601 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7602 file name.
7603 (is_slow_fs): New function.
7604 (stat): Use it to determine whether to issue more system calls to
7605 get accurate file attributes, when w32-get-true-file-attributes is
7606 `local'.
7607
e0ab5fcf
JD
76082009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7609
7610 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7611 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7612 parameter font-parameter as default to the font dialog.
7613
784ceded
KH
76142009-07-10 Kenichi Handa <handa@m17n.org>
7615
7616 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7617
fb8edc0b
EZ
76182009-07-09 Eli Zaretskii <eliz@gnu.org>
7619
1ac9108a 7620 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7621
fb8edc0b
EZ
7622 * w32.c (stat): Treat UNC file names as residing on remote
7623 drives. (Bug#3542)
7624
635c75b1
KH
76252009-07-09 Kenichi Handa <handa@m17n.org>
7626
7627 * fontset.c (fontset_find_font): Fix previous change.
7628
c1d5ce94
MA
76292009-07-08 Michael Albinus <michael.albinus@gmx.de>
7630
7631 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7632 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7633 error flag.
7634
edb61b39
KH
76352009-07-08 Kenichi Handa <handa@m17n.org>
7636
374bf7e4
KH
7637 * fontset.c (fontset_find_font): Fix the logic of handling
7638 charset_matched.
7639 (font_for_char): Delete unused var.
7640 (generate_ascii_font_name): Delete it.
7641
edb61b39
KH
7642 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7643
7644 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7645 (encode_coding_sjis): Fix the code range check.
7646
0f3f018c
CY
76472009-07-07 Chong Yidong <cyd@stupidchicken.com>
7648
7649 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7650 (Fexpand_file_name): Copy string data properly (Bug#3772).
7651
fcaf6f3a
JD
76522009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7653
7654 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7655 first MapNotify.
7656
6809ca75
KH
76572009-07-07 Kenichi Handa <handa@m17n.org>
7658
7659 * character.h (unibyte_has_multibyte_table): Delete extern.
7660 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7661
7662 * charset.c (Fset_charset_priority): Update charset_unibyte.
7663 (syms_of_charset): Initialize charset_unibyte.
7664
7665 * character.c (unibyte_has_multibyte_table): Delete it.
7666 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7667 charset_unibyte.
7668 (multibyte_char_to_unibyte_safe): Likewise.
7669 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7670
1ac9108a 7671 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
7672 (x_produce_glyphs): Likewise.
7673
7674 * .gdbinit (xcharset): Fix the treating $arg0.
7675
ad9e2d54
EZ
76762009-07-04 Eli Zaretskii <eliz@gnu.org>
7677
7678 Emulation of `getloadavg' on MS-Windows.
50426a04 7679 * w32.c: Include float.h.
ad9e2d54
EZ
7680 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7681 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7682 (get_native_system_info, get_system_times): New functions.
7683 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7684 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7685 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7686 g_b_init_get_system_times, and num_of_processors.
7687
0a3472c7
JR
76882009-07-03 Jason Rumney <jasonr@gnu.org>
7689
7690 * w32term.c (w32_initialize): Use standard types.
7691
80904120
EZ
76922009-07-03 Eli Zaretskii <eliz@gnu.org>
7693
7694 * dired.c (Ffile_attributes): Decode user and group names by the
7695 locale's encoding. (Bug#3443)
7696
6978862d
DN
76972009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7698
f8d23104
DN
7699 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7700 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7701
7702 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7703
7704 * term.c (init_tty): Remove spurious #ifdef.
7705
6978862d
DN
7706 * m/mips.h: Mention this file is also used for netbsd.
7707 * m/pmax.h: Remove file.
7708
e044e4fc
JD
77092009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7710
7711 * xterm.h (struct x_display_info): Add invisible_cursor.
7712 (struct x_output): Add current_cursor.
7713
7714 * xterm.c (XTtoggle_invisible_pointer): New function.
7715 (x_define_frame_cursor): Don't define cursor if invisible or the
7716 same as before. Set current_cursor.
7717 (x_create_terminal): Set toggle_invisible_pointer_hook.
7718
7719 * xfns.c (make_invisible_cursor): New function.
7720 (x_set_mouse_color): Call make_invisible_cursor.
7721 Set current_cursor.
7722 (x_window): Set current_cursor.
7723
7724 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7725
7726 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7727 inserting a character.
7728 (read_avail_input): Call frame_make_pointer_visible.
7729
7730 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
7731 (frame_make_pointer_invisible, frame_make_pointer_visible):
7732 New functions.
e044e4fc
JD
7733 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7734
7735 * frame.h: Declare frame_make_pointer_invisible and
7736 frame_make_pointer_visible.
7737 (struct frame): Add pointer_invisible.
7738
574c8efa
JD
77392009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7740
7b507248
JD
7741 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7742 frame isn't visible.
7743 (xg_frame_resized): If width/height is -1, get size of window
7744 from X server.
7745
7746 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7747 for MapNotify.
7748
835bdaa7 7749 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 7750 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 7751 (flush_and_sync): Reintroduce.
574c8efa 7752
3f1c6666 77532009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 7754
31fd7c5c 7755 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
7756
7757 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7758 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7759
7760 * frame.h: Declare Qsticky.
7761
cad9ef74
JD
7762 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7763
7764 * nsfns.m (ns_frame_parm_handlers): Ditto.
7765
7766 * frame.c: Declare Qsticky.
7767 (frame_parms): Add sticky.
7768
7769 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7770
7771 * xterm.h: Declare x_set_sticky.
7772
7773 * xterm.c (x_set_sticky): New function.
7774
69b16610
JD
7775 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7776 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7777 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
7778
7779 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7780
7781 * frame.c: Qmaximized is new.
7782 (x_set_frame_parameters): Do not handle fullscreen specially.
7783 Only set width and height if explicitly set.
7784 (x_set_fullscreen): Handle Qmaximized.
7785 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7786 (syms_of_frame): Initialize Qmaximized.
7787
1ac9108a
SM
7788 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7789 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
7790
7791 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7792 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7793 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7794 set gravity to NorthWestGravity when USE_GTK.
7795 (set_wm_state): New function.
31fd7c5c 7796 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7797 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7798 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7799 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7800 to x_real_positions and x_fullscreen_adjust.
7801
7802 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7803 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7804 flush_and_sync.
7805 (xg_height_changed): New function.
7806 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7807 and gtk_window_set_policy. Set frame gravity after parsing the
7808 geometry string.
3f1c6666
JD
7809 (xg_update_frame_menubar, free_frame_menubar)
7810 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7811 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7812 Remove calls to xg_frame_set_char_size.
7813
fd503d99
KH
78142009-07-01 Kenichi Handa <handa@m17n.org>
7815
7816 * keyboard.c (decode_keyboard_code): New function.
7817 (tty_read_avail_input): Decode the input bytes if necessary.
7818
1ac9108a
SM
7819 * coding.c (setup_coding_system):
7820 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7821 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7822 use Qno_conversion.
7823
24ed93fb
YM
78242009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7825
7826 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7827
99061dfc
CY
78282009-06-30 Chong Yidong <cyd@stupidchicken.com>
7829
1ac9108a 7830 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7831
ff90fbde
JR
78322009-06-30 Jason Rumney <jasonr@gnu.org>
7833
7834 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7835 is already loaded.
7836 Set user model ID if supported (bug#1849).
7837
5f445726
JM
78382009-06-29 Jim Meyering <meyering@redhat.com>
7839
7840 Remove useless if-before-xfree test.
7841 * nsfont.m (nsfont_close): Remove useless test.
7842 * term.c (delete_tty): Likewise.
7843 * w32.c (system_process_attributes): Likewise.
7844 * w32font.c (w32font_close): Likewise.
7845 * xfaces.c (x_free_gc): Likewise.
7846 * xselect.c (buffer): Likewise.
7847
b9607587
AS
78482009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7849
7850 * process.c (send_process): Keep decoded string in a local
7851 variable and protect it from GC. (Bug#3521)
7852
89ba96f4
EZ
78532009-06-28 Eli Zaretskii <eliz@gnu.org>
7854
7855 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7856 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7857
098a1589
CY
78582009-06-28 Chong Yidong <cyd@stupidchicken.com>
7859
485422be
CY
7860 * xdisp.c (start_display, handle_face_prop)
7861 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7862 (redisplay_window, try_window_id, produce_image_glyph):
7863 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7864
098a1589
CY
7865 * xterm.c (x_update_window_begin, x_new_focus_frame)
7866 (x_scroll_bar_handle_click, handle_one_xevent)
7867 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7868 (x_make_frame_visible, x_make_frame_invisible)
7869 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7870 code chunks that are now obsolete.
7871
78c38319
MA
78722009-06-28 Michael Albinus <michael.albinus@gmx.de>
7873
7874 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7875 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7876 for hours, when optimzation is enabled.
7877 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7878 (xd_read_message): Make them static.
7879
4189ed40
CY
78802009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7881
7882 * term.c (turn_on_face): Allow simultaneously bold and dim
7883 terminal faces (Bug#3530).
7884
cd9b5e16
CY
78852009-06-27 Chong Yidong <cyd@stupidchicken.com>
7886
4e23bedb
CY
7887 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7888
cd9b5e16
CY
7889 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7890 truncation glyphs (Bug#3686).
7891
07cc3c35
GM
78922009-06-27 Glenn Morris <rgm@gnu.org>
7893
7894 * m/pmax.h: Restore file, with only netbsd portions.
7895
31fd7c5c 78962009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7897
cd9b5e16 7898 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7899
42d4a64f
KH
79002009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7901
7902 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7903 the arg FORCE_SYMBOL.
7904
930fe55b 79052009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7906
7907 * fontset.c (fontset_find_font): When a usable rfont_def is found
7908 in a fallback font-group, make it the first element of the group.
7909
57ebc3fd
CY
79102009-06-24 Chong Yidong <cyd@stupidchicken.com>
7911
7912 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7913
f084f942
KH
79142009-06-24 Kenichi Handa <handa@m17n.org>
7915
7916 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7917 set for C.
7918 (fontset_font): Record the availability of a font for C both in
7919 the realized fontsets of the current one and the default one.
7920
2f686c87
DN
79212009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7922
7923 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7924 conditional, it is always defined on AIX.
7925
666e158e
MB
79262009-06-23 Miles Bader <miles@gnu.org>
7927
7928 * window.c (Vrecenter_redisplay): New variable.
7929 (syms_of_window): Initialize it.
7930 (Qtty): New extern declaration.
7931 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7932
c6da7cd2
JM
79332009-06-23 Jim Meyering <meyering@redhat.com>
7934
1ac9108a
SM
7935 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7936 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 7937 pointer dereferences are guaranteed to be valid.
c6da7cd2 7938
678dca3d
KH
79392009-06-23 Kenichi Handa <handa@m17n.org>
7940
74d75424
KH
7941 * emacs.c (main): Call init_font ().
7942
7943 * font.h (Vfont_log): Extern it.
7944 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7945
7946 * font.c (font_sort_entities, font_list_entities)
7947 (font_matching_entity, font_open_entity)
7948 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7949 (Vfont_log): Delete static.
7950 (font_log_env_checked): Delete this variable.
7951 (font_add_log): Don't check font_log_env_checked.
7952 (font_deferred_log): Check Vfont_log.
7953 (init_font): New function.
7954
678dca3d
KH
7955 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7956
7957 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7958
7959 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7960
7961 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7962
7963 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7964 (face_for_char): Don't call font_deferred_log here.
7965 (font_for_char): Likewise.
7966
8a668709
CY
79672009-06-22 Chong Yidong <cyd@stupidchicken.com>
7968
9a01ee33
CY
7969 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7970 rather than its background_width for drawing the overline and
7971 underline (Bug#489).
7972
7973 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7974 rather than its background_width for drawing the overline and
7975 underline (Bug#489).
ec7c9926
CY
7976 (xg_default_icon_file): New variable.
7977 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7978 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7979
8a668709
CY
7980 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7981 (load_overlay_strings): Remove externs.
7982 (fast_find_position): Function deleted.
7983 (mouse_face_from_buffer_pos): New function, based on
7984 fast_find_position. Correctly handle before-strings,
7985 display-strings, and after-strings (Bug#1220).
7986 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7987
4d4c02d8
CY
79882009-06-21 Chong Yidong <cyd@stupidchicken.com>
7989
1ac9108a 7990 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7991 (move_it_in_display_line_to, move_it_in_display_line_to)
7992 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7993
70243478
CY
79942009-06-21 Chong Yidong <cyd@stupidchicken.com>
7995
7996 * Branch for 23.1.
7997
13087e59
JR
79982009-06-21 Jason Rumney <jasonr@gnu.org>
7999
8000 * w32term.c (keyboard_codepage): New static variable.
8001 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8002 (w32_read_socket) [WM_CHAR]: Use it to decode character
8003 input (bug#3237).
8004 (w32_initialize): Initialize it.
8005 (codepage_for_locale): New function.
8006
4735b74e
KR
80072009-06-20 Ken Raeburn <raeburn@raeburn.org>
8008
8009 * process.c (status_message): Pass Faset index argument as a lisp
8010 object, so as to work with USE_LISP_UNION_TYPE.
8011
0e727afa
YM
80122009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8013
8014 * coding.c (Ffind_coding_systems_region_internal):
8015 Cache checked characters.
8016
cf299835
KH
80172009-06-18 Kenichi Handa <handa@m17n.org>
8018
1ac9108a 8019 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 8020
90f20d94
AS
80212009-06-18 Andreas Schwab <aschwab@redhat.com>
8022
8023 * xdisp.c (redisplay_internal): Check that the frame is still
8024 live after redisplay of its windows.
8025 (redisplay_windows): Check that the window is still live.
8026
7f1faf1c
KH
80272009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8028
8029 * coding.c (detect_coding_utf_16): Fix previous change.
8030
cc13543e
KH
80312009-06-16 Kenichi Handa <handa@m17n.org>
8032
8033 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8034 UTF-16 by checking the dispersion of Eth and Oth bytes.
8035
977b85f4
AS
80362009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8037
8038 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8039
66bd43d1
KH
80402009-06-15 Kenichi Handa <handa@m17n.org>
8041
8042 * process.c (status_message): Fix previous change. Be sure to
8043 decode a localized string.
8044
cb5ca9c5
YM
80452009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8046
8047 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8048 add comment explaining why.
8049
ec7709ba 80502009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 8051
ec7709ba 8052 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 8053
4b7f335c
AR
80542009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8055
8056 * nsfont.m (ns_attribute_value): Remove.
8057 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8058 (ns_has_attribute): Shrink the normal range.
8059 (ns_findfonts): Don't worry about requested spec in determining
8060 need for synthItal.
e41820ee 8061 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 8062
73b26103
SZ
80632009-06-14 Seiji Zenitani <zenitani@mac.com>
8064
8065 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8066
5753e4da
KH
80672009-06-11 Kenichi Handa <handa@m17n.org>
8068
8069 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8070 overhang for the static composition case.
8071
3561b671
KH
80722009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8073
5753e4da
KH
8074 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8075 overhang for the automatic composition case.
8076
3561b671
KH
8077 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8078 composition case.
8079
852bbd41
CY
80802009-06-10 Chong Yidong <cyd@stupidchicken.com>
8081
8082 * xdisp.c (get_next_display_element): When handling wrap-prefix
8083 and line-prefix, treat \n as a control character (bug#3502).
8084
9903d1e6
KH
80852009-06-10 Kenichi Handa <handa@m17n.org>
8086
8087 * font.c (font_parse_family_registry): Fix for one-char foundry.
8088 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8089
0bcbaaaa
CY
80902009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8091
8092 * process.c (status_message): Fix handling of multibyte signal
8093 string (Bug#3499).
8094
40aa3f13
JM
80952009-06-09 Jim Meyering <meyering@redhat.com>
8096
1f80c7e2
CY
8097 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8098 color name is missing.
40aa3f13 8099
72d51285
KH
81002009-06-09 Kenichi Handa <handa@m17n.org>
8101
8102 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8103 FROM-CODE and TO-CODE are codepoints of CHARSET.
8104
c1d04d84
AR
81052009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8106
8107 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8108
81092009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8110
8111 Changes to support :script/:lang/:otf in NS font driver.
8112 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8113 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8114 indicate not part of font driver interface, and change callers.
8115 (ns_get_family): Remove pointless null check.
8116 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8117 ns_spec_to_descriptor, ns_descriptor_to_entity.
8118 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8119 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8120 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8121 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8122 (ns_get_req_script, ns_accumulate_script_ranges)
8123 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8124 New functions.
8125 (nsfont_list, nsfont_match): Use ns_findfonts.
8126 (nsfont_open): Use font descriptor instead of traits.
8127 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8128 (dump_glyphstring): Rename to ns_dump_glyphstring.
8129
c7eb9816
AR
8130 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8131
c1d04d84
AR
8132 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8133
8134 * fontset.c (fontset_from_font): Remove NS-specific code.
8135
ec7709ba 81362009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
8137
8138 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8139 nonactive windows.
8140
31fd7c5c 81412009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 8142
1ac9108a 8143 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 8144
68852c13 81452009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
8146
8147 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8148
6756cd1d
CY
81492009-06-07 Chong Yidong <cyd@stupidchicken.com>
8150
8151 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8152 account for the overflowing of newlines into the last glyph on the
8153 display line (Bug#3482).
8154
28bf482a
DR
81552009-06-05 David Reitter <david.reitter@gmail.com>
8156
ec7709ba
JB
8157 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8158 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
8159 Fns_selection_exists_p, Fns_selection_owner_p.
8160
fdb55376
JR
81612009-06-03 Jason Rumney <jasonr@gnu.org>
8162
8163 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8164 available. (Bug#3379)
8165
05129fbe
KH
81662009-05-29 Kenichi Handa <handa@m17n.org>
8167
1ac9108a
SM
8168 * coding.c (get_translation_table):
8169 Check Venable_character_translation.
05129fbe 8170
ec7709ba 81712009-05-26 David Reitter <david.reitter@gmail.com>
15891144 8172
ec7709ba
JB
8173 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8174 (x_make_frame_visible): Move frame to front rather than calling
15891144 8175 ns_raise_frame().
ec7709ba 8176 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 8177 isn't key window.
ec7709ba 8178 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
8179 drawRect may be called by NSView even if the frame is hidden.
8180
ec7709ba
JB
8181 * nsfns.m (Fx_create_frame): Follow other ports in
8182 determining visibility; default to t. Ensure async_visible is set.
15891144 8183
21f73755
EZ
81842009-05-23 Eli Zaretskii <eliz@gnu.org>
8185
8186 * dired.c (Ffile_attributes): Doc fix.
8187
34001e41
CY
81882009-05-22 Chong Yidong <cyd@stupidchicken.com>
8189
8190 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8191
46306a17
SM
81922009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8193
8194 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8195 and xfont_scratch_props.
8196 (syms_of_xfont): Do it here instead.
8197 (xfont_find_ccl_program): Delete, unused.
8198 (xfont_open): Delete unused var `i'.
8199
ef6e0694
KH
82002009-05-21 Kenichi Handa <handa@m17n.org>
8201
8202 * fontset.c (Qlatin): Don't make it static.
8203
46306a17
SM
8204 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8205 New functions.
ef6e0694
KH
8206 (xfont_scripts_cache, xfont_scratch_props): New variables.
8207 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
8208 (xfont_list_pattern): Argument changed. Callers changed.
8209 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
8210 (xfont_list): Don't reject a font spec with :script property.
8211 (xfont_has_char): Fix setting of encoding.
8212 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8213 xfont_scratch_props.
8214
82152009-05-19 Kenichi Handa <handa@m17n.org>
8216
46306a17 8217 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
8218 Callers changed.
8219
82202009-05-18 Kenichi Handa <handa@m17n.org>
8221
8222 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8223
ac71ced7
SM
82242009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8225
8226 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8227 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8228
1c6d1051
YM
82292009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8230
8231 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8232 (x_delete_terminal): Dissociate resource database from display and
8233 then call XrmDestroyDatabase before closing display.
8234
9b9b779c
AR
82352009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8236
8237 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
8238 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8239 whether selected frame is viable before raising it (based on patch
8240 by David Reitter), and improve commentary.
8241 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 8242
cccd42d5
KH
82432009-05-15 Kenichi Handa <handa@m17n.org>
8244
8245 * font.c (Ffont_spec): Check arguments.
8246
337fbd17
CY
82472009-05-14 Chong Yidong <cyd@stupidchicken.com>
8248
8249 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8250 weight when testing attributes (Bug#3282).
8251
47a6002f
JD
82522009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8253
8254 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8255 what we expect to get in the next ConfigureNotify event.
8256
9cb363db
YM
8257 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8258 before Xft one (Bug#1696).
8259
b9126609
CY
82602009-05-07 David Reitter <david.reitter@gmail.com>
8261
8262 * nsfns.m (Fx_display_planes): Compute bitplanes using
8263 NSBitsPerPixelFromDepth (Bug#3207).
8264
27a69fd9
CY
82652009-05-10 Chong Yidong <cyd@stupidchicken.com>
8266
8267 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8268
00f37552
TTN
82692009-05-10 Ulrich Mueller <ulm@gentoo.org>
8270
8271 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8272
2d82a920
DR
82732009-05-07 David Reitter <david.reitter@gmail.com>
8274
ec7709ba
JB
8275 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8276 Respect mouse face background.
2d82a920 8277
46b0d52d
DR
82782009-05-07 David Reitter <david.reitter@gmail.com>
8279
ec7709ba
JB
8280 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8281 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
8282 in ns_update_begin and ns_update_end.
8283
ce1b23bb
SM
82842009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8285
5996e1b7
SM
8286 * nsfns.m (ns_get_screen): Rewrite.
8287 Don't presume selected-frame is of type `ns'.
8288
ba98e3a0
SM
8289 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8290 all drivers.
8291
ce1b23bb
SM
8292 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8293
bcda200f
YM
82942009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8295
8296 * keyboard.h (add_user_signal): Fix typo in extern.
8297
8298 * lisp.h (add_user_signal): Remove extern.
8299
8300 * unexelf.c (unexec): Consider a section to precede the .bss section
8301 if its addresses overlap that of .bss.
8302 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8303 instead of dumping process.
8304
864660a2
SM
83052009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8306
8307 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8308
50da4e56
SM
83092009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8310
8311 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8312
51520a1a
DN
83132009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8314
8315 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8316 any statements.
8317
409ea3a1
AS
83182009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8319
59c4c60f
AS
8320 * process.c (read_process_output): Make sure the current buffer is
8321 always restored.
8322
409ea3a1
AS
8323 * coding.c (record_conversion_result): Don't modify
8324 Vlast_code_conversion_error for successful result.
8325 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8326
56f00ed2
KH
83272009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8328
8329 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 8330 (load_charset_map): Remove unnecessary code.
56f00ed2 8331
4491c9d2
DR
83322009-04-30 David Reitter <david.reitter@gmail.com>
8333
35f5b128 8334 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
8335 through f24.
8336
6970f632
CY
83372009-04-30 Chong Yidong <cyd@stupidchicken.com>
8338
8339 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8340
8341 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8342 face_at_buffer_position.
8343 (face_before_or_after_it_pos, get_next_display_element)
8344 (note_mouse_highlight): Update face_at_buffer_position call.
8345
8346 * term.c (term_mouse_highlight):
8347 * msdos.c (IT_note_mouse_highlight):
8348 * fontset.c (Finternal_char_font):
35f5b128 8349 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
8350
8351 * dispextern.h (face_at_buffer_position): Update prototype.
8352
0c616f63
KH
83532009-04-30 Kenichi Handa <handa@m17n.org>
8354
35f5b128 8355 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 8356
ad3aaf33
AS
83572009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8358
8359 * callproc.c (Fcall_process): Fix GC protection. Make sure
8360 current buffer is always restored.
8361
c3c963a0
YM
83622009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8363
8364 * atimer.c (init_atimer): Also clear stopped_atimers.
8365
8366 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8367
7e3386cb
YM
8368 * process.c (create_process): Clean up merger residues of
8369 2008-07-17 change.
8370
91f68422
CY
83712009-04-29 Ulrich Mueller <ulm@gentoo.org>
8372
8373 * lread.c (Vread_circle): New variable.
8374 (read1): Disable recursive read if Vread_circle is nil.
8375
24b34550
KH
83762009-04-29 Kenichi Handa <handa@m17n.org>
8377
8378 * fontset.h (set_default_ascii_font): Delete extern.
8379
8380 * fontset.c (set_default_ascii_font): Delete this unused function.
8381
8382 * frame.c (x_set_font): When ARG is a font-object, check if the
8383 font-object matches with the ASCII font-spec of the frame's
9c358bda 8384 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 8385
77bf07e1
AS
83862009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8387
8388 * fns.c (Flocale_info): Protect vector from GC during decoding.
8389
8390 * process.c (Fstart_process): Protect argv strings from GC during
8391 encoding.
8392
2c55aacf
AS
83932009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8394
8395 * sysdep.c: Include <ctype.h>.
8396
b892d3c9
DR
83972009-04-27 David Reitter <david.reitter@gmail.com>
8398
35f5b128 8399 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
8400 Remove commented-out code.
8401
9d0644c4
JB
84022009-04-26 Johan Bockgård <bojohan@gnu.org>
8403
8404 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8405
b7053016
JR
84062009-04-25 Jason Rumney <jasonr@gnu.org>
8407
8408 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8409
4e8231f3
YM
84102009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8411
8412 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8413 Swap bytes in short integer if fringe bitmap width > 8.
8414
493dcf2c
KH
84152009-04-23 Kenichi Handa <handa@m17n.org>
8416
8417 * xfaces.c (Fx_list_fonts): If a font size is specified in
8418 PATTERN, set it in returned scalable fonts.
8419
401e9e57
CY
84202009-04-22 Chong Yidong <cyd@stupidchicken.com>
8421
708e05dc
CY
8422 * keyboard.c (Fset_input_meta_mode): Doc fix.
8423
8424 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8425
1ac9108a 8426 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
8427
8428 * coding.c (Fterminal_coding_system): Doc fix.
8429
8430 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8431 (Fx_display_pixel_height, Fx_display_planes)
8432 (Fx_display_color_cells, Fx_server_max_request_size)
8433 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8434 (Fx_display_mm_height, Fx_display_mm_width)
8435 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
8436 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8437 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
8438 (check_x_display_info): Handle terminal objects instead of
8439 terminal ids.
8440
401e9e57
CY
8441 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8442 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
8443 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8444 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 8445
df80c7f0
KH
84462009-04-21 Kenichi Handa <handa@m17n.org>
8447
5a8f12af 8448 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 8449 (font_score): Check AVGWIDTH too.
908567ef 8450
df80c7f0
KH
8451 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8452 worst case.
1ac9108a
SM
8453 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8454 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 8455
705af33f
JR
84562009-04-19 Jason Rumney <jasonr@gnu.org>
8457
8458 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 8459 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
8460
8461 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8462 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8463 get_phys_cursor_geometry.
8464
b71ac3dd 8465 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
8466 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8467 using get_phys_cursor_geometry.
8468
8469 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8470 correctly calculated.
8471
dc2933eb
JD
84722009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8473
1ac9108a
SM
8474 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8475 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
8476 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8477 is deprecated.
8478
973e7849
AS
84792009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8480
8481 * font.c (font_put_frame_data): Use xfree instead of free.
8482
314d66f4
JB
84832009-04-17 Juanma Barranquero <lekktu@gmail.com>
8484
8485 * w32font.c (Qja, Qko): Remove declarations.
8486 (syms_of_w32font): Don't DEFSYM them.
8487
cf702558
CY
84882009-04-17 Chong Yidong <cyd@stupidchicken.com>
8489
8490 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8491
8492 * font.h (Qja, Qko): Extern them.
8493
8494 * ftfont.c (Qja, Qko): Remove declarations.
8495
8496 * xfont.c (Qja, Qko): Remove declarations.
8497
b50504f5
KH
84982009-04-17 Kenichi Handa <handa@m17n.org>
8499
bde25748
KH
8500 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8501 string from a vector to handle Latin-1 characters correctly.
8502
b50504f5
KH
8503 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8504 entity even if the cache hits.
8505
f4646fff
AS
85062009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8507
8508 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 8509 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 8510
e7deaab0
AS
8511 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8512 * lisp.h: Adjust prototypes.
8513
0a0e7d49
CY
85142009-04-16 Chong Yidong <cyd@stupidchicken.com>
8515
8516 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8517 change (Bug#3003).
8518
3c908a57
KH
85192009-04-16 Kenichi Handa <handa@m17n.org>
8520
1ac9108a 8521 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
8522
8523 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8524 adstyle.
8525
8526 * ftfont.c (Qja, Qko): Don't make them static.
8527 (enum ftfont_cache_for): New enum.
8528 (fc_charset_table): Undo the previous change.
8529 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
8530 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8531 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
8532 non-scarable font, try to get AVERAGE_WIDTH.
8533 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8534 Change ft_face_cache from a list of a hash-table. Don't check
8535 `ja' and `ko' adstyle here.
8536 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8537 FTFONT_CACHE_FOR_CHARET.
8538 (ftfont_get_charset): Undo the previous change.
1ac9108a 8539 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
8540 (ftfont_close): Likewise.
8541 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8542
8543 * font.c (font_sort_entites): Change the meaning of the arg
8544 BEST-ONLY. Don't optimize for VEC of lenght 1.
8545 (font_select_entity): Just return the value of font_sort_entites.
8546
8547 * xfaces.c (merge_face_vectors): Reflect font properties in
8548 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8549 font_clear_prop if a face attribute doesn't change.
8550
3c908a57
KH
8551 * charset.h (charset_ksc5601): Extern it.
8552
8553 * charset.c (charset_ksc5601): New variable.
8554 (Fdefine_charset_internal): Set charset_ksc5601.
8555 (init_charset_once): Initialize charset_ksc5601 to -1.
8556
d65859c3
DN
85572009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8558
8559 * fileio.c (history_delete_duplicates): Remove unused declaration.
8560
8561 * callint.c (history_delete_duplicates): New declaration.
8562 (Fcall_interactively): Remove command history duplicates when
8563 history_delete_duplicates is true.
8564
3ba010e5
EZ
85652009-04-14 Eli Zaretskii <eliz@gnu.org>
8566
8567 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8568
06f19b91
KH
85692009-04-14 Kenichi Handa <handa@m17n.org>
8570
8571 * font.c (Ffont_info): Fix docstring. Fix the second element of
8572 the returned value (bug#2949).
8573
2cce8bfc
CY
85742009-04-14 Chong Yidong <cyd@stupidchicken.com>
8575
8576 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8577
d156542d
KH
85782009-04-14 Kenichi Handa <handa@m17n.org>
8579
8580 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8581 encoding charset is ascii_compatible.
8582
8583 * charset.c (Fdefine_charset_internal): Make charset
8584 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8585 code_offset is 0, and covers all ASCII characters.
8586
86fa089e
SM
85872009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8588
8589 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8590 (ns_string_to_pasteboard_internal):
8591 * nsmenu.m (process_dialog):
8592 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8593 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8594 * lisp.h (Fx_load_color_file): Declare.
8595
a8a3728b
KH
85962009-04-13 Kenichi Handa <handa@m17n.org>
8597
1ac9108a 8598 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
8599 (font_select_entity): Suppress the code to optimize for the same
8600 kind of fonts.
8601 (font_load_for_lface): Get a font that supports at least ASCII
8602 characters.
8603
8604 * ftfont.c (Qja, Qko): New variables.
8605 (fc_charset_table): Delete uniquifier data for iso8859-1.
8606 (ftfont_get_latin1_charset): New function.
8607 (get_adstyle_property): New function.
8608 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8609 bitmap fonts.
8610 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8611 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8612 `ko' or `ja'.
8613 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8614 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8615 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8616 property.
8617 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8618 (syms_of_ftfont): DEFSYM Qja and Qko.
8619
483670b5
KH
86202009-04-09 Kenichi Handa <handa@m17n.org>
8621
12b55765
KH
8622 * charset.c (map_charset_chars): For a charset of `superset'
8623 method, fix calculation of code range.
8624
483670b5
KH
8625 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8626 from the list of extra properties.
8627 (font_clear_prop): Be sure to delete `:name' font property.
8628
57d3b93b
KH
86292009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8630
b4b2c2ca
YM
8631 * dispnew.c (redraw_overlapping_rows): Fix detection of
8632 overlapping for topmost and bottommost rows.
8633
1ac9108a 8634 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8635
472c3609
JR
86362009-04-06 Jason Rumney <jasonr@gnu.org>
8637
8638 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8639
ab193662
KH
86402009-04-06 Kenichi Handa <handa@m17n.org>
8641
8642 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8643
8644 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8645
0c26f026
KH
86462009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8647
8648 * ftfont.c (ftfont_open): Fix checking of the return value of
8649 FT_Load_Char. Fix setting font->underline_thickness.
8650
e173bbce
CY
86512009-04-04 Chong Yidong <cyd@stupidchicken.com>
8652
8653 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8654 (Fterminal_parameters, Fterminal_parameter)
8655 (Fset_terminal_parameter): In doc string, refer to terminal
8656 objects rather than terminal ids.
8657
693a2698
EZ
86582009-04-04 Eli Zaretskii <eliz@gnu.org>
8659
8660 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8661 ret_lim_data. (Bug#2867)
8662
d5221487
CY
86632009-04-03 Chong Yidong <cyd@stupidchicken.com>
8664
8665 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8666 so they don't get wider than the window, matching 2006-01-23
8667 change to the partner function in xdisp.c (Bug#2800).
8668
223509a3
KH
86692009-04-03 Kenichi Handa <handa@m17n.org>
8670
8671 * print.c (print_object): Make each lowest sub_char_table start a
8672 new line (Bug#2866).
8673
74fcd0b1
KH
86742009-04-02 Kenichi Handa <handa@m17n.org>
8675
8676 * fontset.c (fontset_font): Record no-font when a fontset
8677 explicitly tells not to try another font-specs.
8678
c542407d
SM
86792009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8680
8681 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8682
e3869731
KH
86832009-03-30 Kenichi Handa <handa@m17n.org>
8684
d8d2f142
KH
8685 * fontset.c (fontset_from_font): Specify only registry in a
8686 font-spec for all characters supported by that registry.
8687
e3869731
KH
8688 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8689 even if HAVE_M17N_FLT is not defined.
8690
5da5f805
CY
86912009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8692
8693 * ftfont.c: Conditionalize prototyping and use of
8694 ftfont_variation_glyphs.
8695
ab226c50
SM
86962009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8697
9628fed7
SM
8698 * frame.c (delete_frame): Work around compiler bug.
8699
8700 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8701 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8702 Some more EMACS_INT.
8703 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8704
8705 * xdisp.c (dump_glyph): Fix typo.
8706
ae19ba7c
SM
8707 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8708 (adjust_markers_gap_motion, adjust_markers_for_delete)
8709 (adjust_markers_for_insert, adjust_point)
8710 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8711 (make_gap, copy_text, count_size_as_multibyte, insert)
8712 (insert_and_inherit, insert_before_markers)
8713 (insert_before_markers_and_inherit, insert_1)
8714 (count_combining_before, count_combining_after, insert_1_both)
8715 (insert_from_string, insert_from_string_before_markers)
8716 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8717 (insert_from_buffer_1, adjust_after_replace)
8718 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8719 (replace_range_2, del_range, del_range_1, del_range_byte)
8720 (del_range_both, del_range_2, modify_region)
8721 (prepare_to_modify_buffer, signal_before_change)
8722 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8723 for buffer positions and sizes.
8724 * lisp.h: Adjust prototypes accordingly.
8725
8726 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8727 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8728 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8729
ab226c50
SM
8730 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8731
46dfb8fb
JD
87322009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8733
8734 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8735 lines and columns so we keep the same pixel height and width.
8736
8737 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8738 the property _NET_WM_STATE has changed.
46dfb8fb
JD
8739 (x_handle_net_wm_state): New function to update frame parameter
8740 fullscreen.
8741 (x_term_init): Initialize atoms for _NET_WM_STATE.
8742
8743 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8744
d347e494
SM
87452009-03-27 Kevin Ryde <user42@zip.com.au>
8746
8747 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8748 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8749 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8750 (Fgpm_mouse_stop): Pass that new parameter.
8751 * termhooks.h (close_gpm): Adjust prototype.
8752
84db11d6
SM
87532009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8754
c95a5008
SM
8755 * lisp.h (Fx_focus_frame): Declare.
8756
84db11d6
SM
8757 * callint.c (Fcall_interactively): For '^' just delegate the work to
8758 handle-shift-selection.
8759 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8760
0a1958d6
CY
87612009-03-24 Chong Yidong <cyd@stupidchicken.com>
8762
0bfdff23
CY
8763 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8764
0a1958d6
CY
8765 * data.c (Qinteractive_form): New variable.
8766 (Finteractive_form): Use it.
8767
8768 * eval.c (Fcommandp): Use Qinteractive_form.
8769
58aec0d6
JR
87702009-03-24 Jason Rumney <jasonr@gnu.org>
8771
8772 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8773 Calculate total size precisely. Decode environment variables
8774 before substituting. (Bug#38)
8775
553dd618
KH
87762009-03-24 Kenichi Handa <handa@m17n.org>
8777
8778 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 8779 encoding (Bug#2722).
553dd618 8780
c39ea606
JD
87812009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8782
8783 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8784 that gdpy is set.
8785
bc9b2b5e
AM
87862009-03-22 Alan Mackenzie <acm@muc.de>
8787
8788 * callint.c (Finteractive): Clarify the doc string - even
8789 promptless elements need \n separators.
8790
9f995a76
JR
87912009-03-22 Jason Rumney <jasonr@gnu.org>
8792
8793 * w32term.c (syms_of_w32term): Doc fix for
8794 x-use-underline-position-properties.
8795
22749e9a
EZ
87962009-03-21 Eli Zaretskii <eliz@gnu.org>
8797
8798 * w32.c (getpwuid): Change argument type to unsigned.
8799 (struct w32_id): Change type of `rid' member to unsigned.
8800 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8801 argument ID to unsigned. All callers changed.
8802 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8803
e00553bf
EZ
88042009-03-20 Eli Zaretskii <eliz@gnu.org>
8805
8806 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8807 negative, produce a float value.
8808
8809 * dired.c (make_uid, make_gid): New functions.
8810 (Ffile_attributes): Use them to avoid negative UID and GID.
8811
f761d6b6
JB
88122009-03-20 Juanma Barranquero <lekktu@gmail.com>
8813
8814 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8815 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8816 Fix typos in docstrings.
8817
d507f8d7
KH
88182009-03-19 Kenichi Handa <handa@m17n.org>
8819
8820 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8821 changed, use font_load_for_lface to get a new font object.
8822 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8823
8824 * frame.c (x_set_font): Handle the case that ARG is a cons.
8825
c68845e0
GM
88262009-03-19 Glenn Morris <rgm@gnu.org>
8827
8828 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8829
bfa49dd1
CY
88302009-03-19 Chong Yidong <cyd@stupidchicken.com>
8831
8832 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8833
8458d4c1
KH
88342009-03-19 Kenichi Handa <handa@m17n.org>
8835
8836 * charset.c (load_charset_map_from_file): When a mapfile can't be
8837 loaded, signal an error.
8838
78e7d1fe
EZ
88392009-03-18 Eli Zaretskii <eliz@gnu.org>
8840
8841 * dired.c (Ffile_attributes): Make sure UID and GID are always
8842 positive, even if the value is too large for a positive EMACS_INT.
8843 Doc fix.
8844
8845 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8846
5da9fdfa
YM
88472009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8848
8849 * xmenu.c (xdialog_show): Move Fredisplay call ...
8850 (Fx_popup_dialog): ... here.
8851
7519c40d
SM
88522009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8853
8854 * dired.c (file_name_completion): Disable the first optimization just
8855 installed, since it is not implemented correctly.
8856
2cd298e2
SM
88572009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8858
8859 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8860 only if the entry can affect bestmatch.
2cd298e2
SM
8861 Stop the search early, as Ftry_completion already does.
8862
48d37adf
CY
88632009-03-17 Chong Yidong <cyd@stupidchicken.com>
8864
e10c9c93 8865 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8866
9286b16a
CY
88672009-03-15 Chong Yidong <cyd@stupidchicken.com>
8868
8869 * keyboard.c (parse_menu_item): Don't display remappings as menu
8870 equivalent bindings (Bug#788).
8871
f7b146dc
JR
88722009-03-15 Jason Rumney <jasonr@gnu.org>
8873
8874 * w32term.h (WM_EMACS_PAINT): New message.
8875 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8876 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8877 before passing to lisp thread. (Bug#950)
8878
f761d6b6 88792009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8880
d93f9575
CY
8881 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8882 variable as it was never reset.
8883 (ns_term_init): Remove initialization of Lisp-settable defaults
8884 and ns_expand_space.
8885 (-setPanelFromDefaultValues): Remove ns_expand_space.
8886 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8887 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8888 i.e. no additional spacing, similar to Carbon port.
8889
d93f9575
CY
8890 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8891 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8892
305018ec
JD
88932009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8894
8895 * sound.c (alsa_configure): Remove call to deprecated
8896 snd_pcm_sw_params_set_xfer_align.
8897
f761d6b6 88982009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8899
8900 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8901 after clicking in a detached tool bar.
8902 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8903
46e722a9
SM
89042009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8905
348db3dd
SM
8906 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8907 int/Lisp_Object mixup).
46e722a9 8908
a3d16f39
KH
89092009-03-13 Kenichi Handa <handa@m17n.org>
8910
8911 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8912 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8913 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8914 (set_fontset_font): Change ARG to a vector. Handle range_list in
8915 ARG correctly.
8916 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8917 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8918 the above change.
8919 (fontset_from_font): Fix previous change.
fe24f56a 8920 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8921 entry. If FONTSET is the default fontset, don't set the extra
8922 slot of the returning char-table.
8923
b066e6b6
JB
89242009-03-12 Juanma Barranquero <lekktu@gmail.com>
8925
8926 * nsfns.m (Fx_close_connection): Doc fix.
8927 (Fns_do_applescript): Reflow docstring.
8928 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8929 (Fx_display_pixel_width, Fx_display_pixel_height)
8930 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8931 Fix typos in docstrings.
8932 (Fns_set_alpha): Fix typos in error messages.
8933
d472514e 89342009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 8935
d472514e 8936 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
8937 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8938 were used for such events.
8939
d472514e
JB
8940 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8941 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8942
d472514e 8943 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8944 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8945
fb930676
KH
89462009-03-11 Kenichi Handa <handa@m17n.org>
8947
ff85581a
KH
8948 * font.h (font_open_by_spec): Extern it.
8949
c50b7e98
KH
8950 * font.c (font_open_by_spec): New function.
8951 (font_open_by_name): Use font_open_by_spec.
8952
fb930676
KH
8953 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8954 fontset of the frame.
8955
8956 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8957 modify the default font of frames that use this fontset.
8958 (num_auto_fontsets): New variable.
8959 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8960 name. Be sure to set FONTSET_ASCII to the correct font name.
8961 (update_auto_fontset_alist): New function.
8962
df4e8455
JB
89632009-03-11 Juanma Barranquero <lekktu@gmail.com>
8964
8965 * makefile.w32-in: Update dependencies.
8966
0a375797
AR
89672009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8968
8969 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8970
61313fa3
SM
89712009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8972
8973 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8974
b55103fb
CY
89752009-03-10 Chong Yidong <cyd@stupidchicken.com>
8976
8977 * lread.c (Feval_buffer): Doc fix.
8978
dde2559c
KH
89792009-03-09 Kenichi Handa <handa@m17n.org>
8980
8981 * charset.c (Qfile_name_handler_alist): Extern it.
8982 (load_charset_map_from_file): Temporarily bind
8983 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8984
df4e8455 89852009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8986
47f588bb
GM
8987 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8988 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8989
4ddf94bd
AR
89902009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8991
4c9bdfc2
AR
8992 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8993 (x_set_window_size): Change back to calculated method of setting
8994 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8995 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8996 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8997
fe41ae9e
AR
8998 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8999
4c9bdfc2
AR
9000 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9001 accelerator in parens under GNUstep.
9002
825d0875
KH
90032009-03-06 Kenichi Handa <handa@m17n.org>
9004
9005 These changes are to detect incorrect composition sequence without
f3b3be74 9006 looking ahead the source. (Bug#2370)
825d0875
KH
9007
9008 * coding.h: Include "composite.h".
9009 (enum compisition_state): New enum.
9010 (struct compisition_status): New struct.
9011 (struct iso_2022_spec): New member cmp_status.
9012 (struct emacs_mule_spec): New struct.
9013 (struct coding_system): New members ctext_extended_segment_len and
9014 embedded_utf_8. Change the union member
9015 spec.emacs_mule_full_support to spec.emacs_mule.
9016
9017 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9018 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 9019 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
9020 (ADD_COMPOSITION_DATA): New arg nbytes.
9021 (emacs_mule_char): New arg cmp_status.
9022 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9023 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9024 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9025 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9026 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9027 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9028 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9029 (EMACS_MULE_COMPOSITION_END): New macro.
9030 (emacs_mule_finish_composition): New function.
9031 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9032 (decode_coding_emacs_mule): Avoid long looking ahead while
9033 handling composition.
9034 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9035 (ENCODE_COMPOSITION_RULE): New macro.
9036 (finish_composition): New function.
9037 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9038 (DECODE_COMPOSITION_START): New implementation.
9039 (DECODE_COMPOSITION_END): Likewise.
9040 (STORE_COMPOSITION_RULE): New macro.
9041 (decode_coding_iso_2022): Avoid long looking ahead while handling
9042 composition, CTEXT extended segment, and embedded UTF-8.
9043 (setup_coding_system): For a coding of type iso-2022, reset
9044 CODING_ISO_EXTSEGMENT_LEN (coding) and
9045 CODING_ISO_EMBEDDED_UTF_8 (coding).
9046 (get_translation): Delete arguments last_block, from_nchars,
9047 to_nchars. Callers changed.
9048 (produce_chars): Don't modify charbuf. Adjusted for the change of
9049 get_translation.
98a326f7 9050 (produce_composition): Adjust for the new annotation sequence.
825d0875 9051 (handle_composition_annotation): Likewise.
98a326f7 9052 (consume_chars): Adjust for the change of get_translation.
825d0875 9053
ccbc4452
AR
90542009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9055
4ddf94bd 9056 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 9057
988a7ddb
KH
90582009-03-05 Kenichi Handa <handa@m17n.org>
9059
9060 * font.c (font_select_entity): New function.
9061 (font_find_for_lface): Use font_select_entity to select a font.
9062
9063 * fontset.c (fontset_find_font): If a font found without
a8a3728b 9064 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
9065 font with C restriction.
9066
98a326f7 90672009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 9068
be1bce46 9069 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 9070
10ea2b82
JR
90712009-03-04 Jason Rumney <jasonr@gnu.org>
9072
2c93b248 9073 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 9074 characters that have already been read. (Bug#2569)
2c93b248 9075
10ea2b82
JR
9076 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9077 Log an error message if check_image_size failed.
9078 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 9079 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 9080
71a0c011
EZ
90812009-03-02 Eli Zaretskii <eliz@gnu.org>
9082
9083 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9084 when decoding process output.
9085
2f63bba8
RS
90862009-03-01 Richard M Stallman <rms@gnu.org>
9087
9088 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9089
9090 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9091
0a9564cb
EZ
90922009-02-28 Eli Zaretskii <eliz@gnu.org>
9093
9094 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9095 (decode_coding_emacs_mule, decode_coding_iso_2022)
9096 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9097 (decode_coding_raw_text, decode_coding_charset)
9098 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9099 Honor inhibit-eol-conversion. (Bug #2186)
9100
449148b3
JR
91012009-02-28 Jason Rumney <jasonr@gnu.org>
9102
9103 * coding.c (detect_coding_charset): If not checking latin extra,
9104 fail on characters between 0x80 and 0xA0. (Bug#2354)
9105
a4aee864
EZ
91062009-02-28 Eli Zaretskii <eliz@gnu.org>
9107
9108 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 9109 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 9110
d88bee5a
GM
91112009-02-27 Glenn Morris <rgm@gnu.org>
9112
9113 * callint.c (Finteractive): Doc fix.
9114
a808f22d
KH
91152009-02-27 Kenichi Handa <handa@m17n.org>
9116
9117 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9118
caf8d60c
CY
91192009-02-27 Chong Yidong <cyd@stupidchicken.com>
9120
9121 * font.c (font_style_to_value): Set value for unknown symbols to
9122 100 instead of 255.
b61137ea
CY
9123 (weight_table, slant_table, width_table): Treat "unspecified" as
9124 the default value.
caf8d60c 9125
1a0de25c
JB
91262009-02-26 Juanma Barranquero <lekktu@gmail.com>
9127
9128 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9129
8fc45744
JB
91302009-02-25 Juanma Barranquero <lekktu@gmail.com>
9131
107bd7d1
JB
9132 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9133 error as soon as a recursive load is detected.
8fc45744 9134
f097e223
AR
91352009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9136
9137 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9138 before caching.
9139
8810a12f
KH
91402009-02-24 Kenichi Handa <handa@m17n.org>
9141
9142 * fontset.c (fontset_find_font): Fix the condition for checking
9143 unavailable font.
9144
2c7d1565
GM
91452009-02-24 Glenn Morris <rgm@gnu.org>
9146
9147 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9148 whitespace that confuses documentation.
9149
a20878b6
MB
91502009-02-23 Miles Bader <miles@gnu.org>
9151
9152 * process.c (Flist_system_processes, Fprocess_attributes)
9153 (syms_of_process): Rename `system-process-attributes' to
9154 `process-attributes'.
9155
b3b58c01
AS
91562009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9157
1b3b981b
AS
9158 * coding.h (struct coding_system): Make safe_charsets a pointer to
9159 unsigned char.
9160 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9161 being 255.
9162 (SAFE_CHARSET_P): Likewise.
9163 (setup_iso_safe_charsets): Properly setup safe_charsets.
9164 (Fdefine_coding_system_internal): Likewise.
9165 (setup_coding_system): Likewise. Remove unneeded casts.
9166 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9167 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9168 unneeded casts.
9169
b3b58c01
AS
9170 * insdel.c (del_range_2): Don't modify gap contents when called
9171 from decode_coding_object. (Bug#1809)
9172
0b6f228c
CY
91732009-02-21 Chong Yidong <cyd@stupidchicken.com>
9174
9175 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9176 Qfont_object.
9177 (Ftype_of): Recognize font objects.
9178
9179 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9180
9181 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9182 moved to data.c.
9183
52f8870b
AR
91842009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9185
9186 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9187 async_iconified. Based on a patch by Christian Lynbech
9188 <christian.lynbech@tieto.com>.
9189 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9190
7087d5e9
GM
91912009-02-20 Glenn Morris <rgm@gnu.org>
9192
9193 * syntax.c (Fskip_chars_forward): Fix doc typo.
9194
41d2ceef
CY
91952009-02-20 Chong Yidong <cyd@stupidchicken.com>
9196
9197 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9198
1a3b7ca6
CY
91992009-02-19 Chong Yidong <cyd@stupidchicken.com>
9200
9201 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9202
73cce38d
KH
92032009-02-19 Kenichi Handa <handa@m17n.org>
9204
9205 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 9206 Don't overflow coding->carryover. (Bug#2370)
73cce38d 9207
a51092ee
DN
92082009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9209
9210 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9211
c423ecca
KH
92122009-02-18 Kenichi Handa <handa@m17n.org>
9213
9214 * font.c (font_check_otf_features): Fix handling of `nil' element.
9215 (Ffont_spec): Describe :lang and :otf in the docstring.
9216
4c1958f4
AS
92172009-02-16 Andreas Schwab <schwab@suse.de>
9218
9219 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9220 string.
9221
5704f39a
KH
92222009-02-16 Kenichi Handa <handa@m17n.org>
9223
9224 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 9225 (Bug#1723)
5704f39a 9226
8f0085aa
CY
92272009-02-14 Chong Yidong <cyd@stupidchicken.com>
9228
a057d86a 9229 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
9230
9231 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9232 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9233
aff01dd9
EZ
92342009-02-14 Eli Zaretskii <eliz@gnu.org>
9235
9236 * msdos.c (MAX_SCREEN_BUF): New macro.
9237 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9238 Encode the entire run of glyphs sharing the same face, instead of
9239 doing that one glyph at a time (fixes a bug with displaying
9240 double-size characters).
9241
ba301db3
AR
92422009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9243
9244 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9245
9246 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9247 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 9248 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
9249
9250 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 9251 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 9252
51d861de
SM
92532009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9254
ac146f82 9255 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
9256 invisible areas.
9257
7fed8996
JR
92582009-02-12 Jason Rumney <jasonr@gnu.org>
9259
631ea4fb
JR
9260 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9261 (add_font_entity_to_list): Call check_face_name even when family
9262 is unspecified.
9263
cb4a3e42
JR
9264 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9265 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 9266 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 9267
7fed8996 9268 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 9269 raster fonts. (Bug#2219)
7fed8996 9270
895416e3
KH
92712009-02-12 Kenichi Handa <handa@m17n.org>
9272
9273 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9274 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9275 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 9276 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9277 (find_automatic_composition): While looking forward and backward,
9278 check static composition. Fix where to stop looking forward.
9279 (composition_adjust_point): Fix checking of static composition.
9280 (Fcomposition_get_gstring): Pay attention to
1dacf998 9281 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9282
9283 * lisp.h (fast_looking_at): Extern it.
9284
9285 * search.c (fast_looking_at): New function.
9286
51d861de 9287 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
9288 <struct glyph>.u.cmp.to.
9289 (append_composite_glyph): Likewise.
9290
51d861de 9291 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
9292 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9293 composition.
51d861de 9294 (append_composite_glyph): Adjust for the change of
895416e3
KH
9295 <strcut glyph>.u.cmp.to.
9296
8510724d
JB
92972009-02-11 Juanma Barranquero <lekktu@gmail.com>
9298
9299 * casetab.c (init_casetab_once):
9300 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9301 * font.c (font_update_lface):
9302 * fontset.c (Fnew_fontset):
9303 * ftfont.c (ftfont_drive_otf):
9304 * xfont.c (xfont_open):
9305 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9306
294fa707
SM
93072009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9308
9309 * fileio.c (Fwrite_region): !NILP -> CONSP.
9310
b5bfebec
AS
93112009-02-10 Andreas Schwab <schwab@suse.de>
9312
9313 * process.c (send_process): Properly relocate pointer into data
adab88bd 9314 when using encoded data. (Bug#2272)
b5bfebec 9315
cb84a2be
KH
93162009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9317
9318 * coding.c (detect_coding_charset): Fix previous change.
9319
89e09428
JR
93202009-02-08 Jason Rumney <jasonr@gnu.org>
9321
9322 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 9323 disappeared while hourglass was displayed. (Bug #2193)
89e09428 9324
4470a277
AS
93252009-02-07 Andreas Schwab <schwab@suse.de>
9326
9327 * unexelf.c (unexec): Fix error message.
9328
3175b12a
AR
93292009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9330
9331 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 9332 when modal window is active. (Bug #2152)
3175b12a
AR
9333 (applicationShouldTerminate:): Remove now-unneeded while loop
9334 around NSRunAlertPanel.
9335
9336 * nsmenu.m (popupSession): New file-global variable.
9337 (pop_down_menu): End the popupSession before closing dialog.
9338 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9339 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9340 don't query NSApp for events (just sleep instead).
9341
8434d0b8
EZ
93422009-02-07 Eli Zaretskii <eliz@gnu.org>
9343
51d861de
SM
9344 * coding.c (syms_of_coding) <translation-table-for-input>:
9345 Modify doc string to discourage use for character code unification.
8434d0b8 9346
aa82edfd
CY
93472009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9348
9349 * atimer.c (run_timers): Update pending_atimers.
9350
2d283c7c
CY
93512009-02-06 Chong Yidong <cyd@stupidchicken.com>
9352
eb306cab
CY
9353 * image.c (svg_load_image): Fix last change.
9354
2d283c7c
CY
9355 * xfns.c (Fx_create_frame): Signal an error if no font is
9356 found (Bug#2147).
9357
4d8e170e
JB
93582009-02-05 Juanma Barranquero <lekktu@gmail.com>
9359
9360 * character.c (syms_of_character) <script-representative-chars>:
9361 Fix typo in docstring.
9362
c96169a0
AR
93632009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9364
9365 * nsmenu.m (pop_down_menu): New function.
9366 (ns_popup_dialog): Call it on unwind.
9367 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9368 call timer_check() (Bug#2154).
9369 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9370 handling_signal is set.
9371 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9372
31fd7c5c 9373 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
9374
9375 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9376
9377 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9378
51d861de
SM
9379 * keyboard.c (poll_for_input_1, handle_async_input):
9380 Set handling_signal under HAVE_NS.
c96169a0 9381
aacd8ba1
GM
93822009-02-04 Glenn Morris <rgm@gnu.org>
9383
9384 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9385
4cb75c4b
KH
93862009-02-04 Kenichi Handa <handa@m17n.org>
9387
9388 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9389
9390 * charset.c (Fchar_charset): New optional arg restriction.
9391
9392 * coding.h (coding_system_charset_list): Extern it.
9393
9394 * coding.c (coding_system_charset_list): New function.
9395
9396 * composite.c: Include coding.h and termhooks.h.
9397 (composition_gstring_p): Fix for the terminal case.
9398 (composition_gstring_width): Likewise.
9399 (fill_gstring_body): Likewise.
9400 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9401 the frame.
9402 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9403 is within a composition.
867d4bb3 9404 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
9405
9406 * term.c (encode_terminal_code): Fix handling of composition.
9407 (produce_composite_glyph): For static composition, get pixel_width
9408 from struct composition.
9409
826ba17e
AS
94102009-02-02 Andreas Schwab <schwab@suse.de>
9411
9412 * unexelf.c (unexec): Handle unaligned bss offset.
9413
8ad093db
AR
94142009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9415
9416 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9417 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 9418
8ad093db
AR
9419 * keyboard.c (handle_interrupt): Don't call
9420 quit_throw_to_read_char() under NS.
d0a76a6e 9421
8ad093db
AR
9422 * blockinput.h: Remove NS-specific code.
9423
4d18a7a2
DN
94242009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9425
db878925
DN
9426 * dispnew.c (window_change_signal): Don't try to get the size of a
9427 suspended tty frame.
9428 * term.c (Fresume_tty): Resize if the size has changed while the
9429 tty was suspended.
9430
4d18a7a2
DN
9431 * alloc.c (mark_stack): Properly conditionalize previous change.
9432
8984df7c
JB
94332009-01-30 Juanma Barranquero <lekktu@gmail.com>
9434
9435 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9436 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9437 Remove; this code is not used on Windows.
9438
75f4f1ac
EZ
94392009-01-30 Eli Zaretskii <eliz@gnu.org>
9440
9441 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9442 EOLs that also has stray ^M characters.
9443
07a1e794
JB
94442009-01-30 Juanma Barranquero <lekktu@gmail.com>
9445
9446 * atimer.c (run_timers, alarm_signal_handler):
9447 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9448 * w32inevt.c (w32_console_read_socket):
9449 * w32term.c (w32_read_socket):
9450 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9451
a8b11cc9
CY
94522009-01-30 Chong Yidong <cyd@stupidchicken.com>
9453
9454 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9455 Initialize it as a relative filename pattern.
9456 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9457 (Fcall_process_region): Simplify temp file creation using
9458 temporary-file-directory.
9459
c279587b
EZ
94602009-01-29 Eli Zaretskii <eliz@gnu.org>
9461
9462 * msdos.c: Rename pending_signals to msdos_pending_signals.
9463 (sig_suspender, sigprocmask): Adjust.
9464
a8fe3242
CY
94652009-01-29 Chong Yidong <cyd@stupidchicken.com>
9466
9467 * keyboard.c (pending_signals): New var.
9468 (poll_for_input, input_available_signal, init_keyboard): Set it.
9469 (process_pending_signals): New function.
9470
9471 * lisp.h (QUIT): Check pending_signals instead of
9472 interrupt_input_pending. Use process_pending_signals.
9473
51d861de 9474 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 9475
51d861de 9476 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
9477
9478 * sysdep.c (emacs_write): Use process_pending_signals.
9479
9480 * xterm.c (XTread_socket): Update pending_signals.
9481
9482 * w32term.c (w32_read_socket): Update pending_signals.
9483
9484 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9485
6570a1c4
KH
94862009-01-29 Kenichi Handa <handa@m17n.org>
9487
9488 * xftfont.c (xftfont_has_char): New function.
9489 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9490
d72a4afa
AR
94912009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9492
9493 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9494 under GNUstep.
9495 (ns_query_color): New declaration.
9496
9497 * nsterm.m (ns_confirm_quit): New variable.
9498 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9499 (EmacsApp-applicationShouldTerminate:): Use it.
9500 (EmacsPrefsController): Let user set it.
9501 (ns_query_color): New function.
9502 (ns_defined_color): Use it.
9503 (ns_initialize): Drop.
9504 (ns_term_init): Add two lines from ns_initialize(), and set
9505 input_interrupt_mode to nil.
9506
9507 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 9508 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 9509
9fe78804
KH
95102009-01-28 Kenichi Handa <handa@m17n.org>
9511
9512 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
9513 (fontset_get_font_group): Remember that no font-group is specified
9514 for C.
9fe78804 9515
fa57de36
CY
95162009-01-27 Chong Yidong <cyd@stupidchicken.com>
9517
930600e9
CY
9518 * fns.c (concat): Check for string overflow (bug#1787).
9519
fa57de36
CY
9520 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9521 Quadruple undo limits (bug#1501).
9522
7179ce7b
KH
95232009-01-27 Kenichi Handa <handa@m17n.org>
9524
9525 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9526 directly use GT_Get_Char_index.
9527
9528 * xftfont.c (struct xftfont_info): New member `index'.
9529
9530 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 9531 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 9532
5be8fcc0
CY
95332009-01-26 Kenichi Handa <handa@m17n.org>
9534
9535 * fontset.c (fontset_find_font): Fix handling of non-cons return
9536 value of fontset_get_font_group.
9537 (fontset_font): Revert last change.
9538
19ae3e61
JR
95392009-01-26 Jason Rumney <jasonr@gnu.org>
9540
9541 * w32font.c (w32font_list_internal): Return quickly if registry is
9542 unknown. Simplify final return.
9543 (add_font_entity_to_list): Break complex logic down into more
9544 manageable chunks. Move unknown registry check to
9545 w32font_list_internal.
9546
8612b71a
AR
95472009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9548
9549 Changes to remove Feval calls from GUI under NS.
9550
d8038940
JB
9551 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9552 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
9553 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9554
9555 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9556 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9557 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9558 instead of NON_ASCII_KEYSTROKE_EVENT.
9559 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9560 (EmacsApp-applicationShouldTerminate:): Query user.
9561 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9562 instead of Feval.
9563
9564 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9565
9566 * keyboard.c (kbd_buffer_get_event): Check for it.
9567 (keys_of_keyboard): Define lispy keys for
9568 ns-put/unput-working-text.
9569
9570 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9571 versions.
9572 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9573
6288ae55
CY
95742009-01-25 Chong Yidong <cyd@stupidchicken.com>
9575
9576 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 9577 setting current_buffer directly. (Bug#2044)
6288ae55 9578
289e7f8f
CY
95792009-01-24 Chong Yidong <cyd@stupidchicken.com>
9580
5ce87308 9581 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 9582 any work. (Bug#1952, bug#1990).
5ce87308 9583
64cc3cf6 9584 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 9585
b3243e6f
AR
95862009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9587
9588 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
9589 (ns_no_defaults): New declaration.
9590 (main): Use it.
e0d2e69a 9591
d900b2af 9592 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 9593
d900b2af 9594 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 9595
d900b2af
AR
9596 * nsterm.m (ns_no_defaults): New variable.
9597 (ns_initialize): Don't read defaults when ns_no_defaults.
9598 (EmacsView-readSelectionFromPasteboard:)
9599 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 9600 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
9601 (ns_dumpglyphs_stretch): New function.
9602 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9603 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9604
e0d2e69a
AR
9605 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9606
3ac71f5d
CY
96072009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9608
9609 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9610 call for Sparc64.
9611
3fe53a83
AR
96122009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9613
9614 * nsfns.m:
9615 * nsgui.h:
9616 * nsmenu.m:
9617 * nsselect.m:
9618 * nsterm.h:
9619 * nsterm.m: Remove '23' comments that indicated code added during
9620 update from emacs-20 -> emacs-23.
9621
10f87c6f 96222009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9623
9624 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9625 ns_alternate_modifier. (Bug#1217)
a3b53a85 9626
c7cef62d
AR
9627 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9628 Display all shortcuts, including those w/o super modifier.
9629
575fb8bd
AR
9630 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9631
918b848b
CY
96322009-01-22 Chong Yidong <cyd@stupidchicken.com>
9633
9634 * fileio.c (Vwrite_region_post_annotation_function)
9635 (Vwrite_region_annotation_buffers): New vars.
9636 (build_annotations_unwind): Just reset
9637 Vwrite_region_annotation_buffers.
9638 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9639 Call write-region-post-annotation-function.
9640 (build_annotations): Add to Vwrite_region_annotation_buffers if
9641 buffer changes.
9642
a39e2539
AR
96432009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9644
9645 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9646 Tiger.
51d861de
SM
9647 * nsfns.m (ns_do_applescript):
9648 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9649
35ed44db
AR
96502009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9651
9652 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9653
cbe0b5bf
AR
96542009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9655
9656 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 9657
6049d3a0
AR
9658 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9659
9660 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
9661 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9662 handle Ctrl-tab. (Bug#1841)
9663 (ns_get_color): Use unsigned long long for scanned hex string value.
9664 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 9665 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 9666 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 9667 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 9668 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 9669 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 9670 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 9671
d3810c21 9672 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 9673 DPI. (Bug#1316)
d3810c21
AR
9674 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9675 values in onTiger section.
4c7077c3 9676
e301e634
CY
96772009-01-19 Chong Yidong <cyd@stupidchicken.com>
9678
7f82490b
CY
9679 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9680 Check return value of font_spec_from_name.
64cc3cf6 9681 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
9682
9683 * font.c (font_spec_from_name): Return Qnil if font name could not
9684 be parsed.
9685 (font_parse_name): Treat a `?' character as part of an XLFD.
9686
e301e634
CY
9687 * fns.c (Fsubstring): Doc fix.
9688
1c0db158
KH
96892009-01-19 Kenichi Handa <handa@m17n.org>
9690
51d861de 9691 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
9692 (ftfont_list): Likewise.
9693
acf20901
JB
96942009-01-18 Juanma Barranquero <lekktu@gmail.com>
9695
fff4e459
JB
9696 * dbusbind.c (Fdbus_register_signal):
9697 * process.c (conv_sockaddr_to_lisp):
9698 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9699
acf20901
JB
9700 * callproc.c (Fgetenv_internal): Doc fix.
9701
e7abcdfb
CY
97022009-01-16 Chong Yidong <cyd@stupidchicken.com>
9703
9704 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9705 it is not even used.
9706
b60861e6
GM
97072009-01-16 Glenn Morris <rgm@gnu.org>
9708
9709 * font.c (Ffont_variation_glyphs): Silence compiler.
9710
8db52afe
JB
97112009-01-15 Juanma Barranquero <lekktu@gmail.com>
9712
9713 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9714 Reported by David Robinow <drobinow@gmail.com>.
9715
4cddb209
KH
97162009-01-15 Kenichi Handa <handa@m17n.org>
9717
51d861de 9718 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 9719
f247f67b
JR
97202009-01-14 Jason Rumney <jasonr@gnu.org>
9721
9722 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 9723 never a fontset. (Bug#1562)
f247f67b 9724
f56a4450
KH
97252009-01-14 Kenichi Handa <handa@m17n.org>
9726
9727 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 9728 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 9729
4e99855e
CY
97302009-01-13 Chong Yidong <cyd@stupidchicken.com>
9731
9732 * font.c (font_clear_prop): If clearing the family, clear the font
9733 width index too.
9734
fff4e459 9735 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 9736
24f01470
JB
97372009-01-12 Juanma Barranquero <lekktu@gmail.com>
9738
9739 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9740 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9741 functions, use sizeof.
9742
a41240a3
MR
97432009-01-12 Martin Rudalics <rudalics@gmx.at>
9744
9745 * keyboard.c (read_char): Fix case where last_nonmenu_event
9746 returned a bad value with submenus. (Bug#447)
9747
944636b8
CY
97482009-01-12 Chong Yidong <cyd@stupidchicken.com>
9749
9750 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9751 family, clear the font width index too.
9752
0dad7c6f
JR
97532009-01-11 Jason Rumney <jasonr@gnu.org>
9754
9755 * keyboard.c (cmd_error_internal): Exit when errors occur before
9756 frame creation and not in daemon mode. (Bug#1836)
9757
7c2363af
CY
97582009-01-10 Chong Yidong <cyd@stupidchicken.com>
9759
9760 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9761 of a display vector, backtrack.
9762 (try_window_reusing_current_matrix): Check glyph type before
9763 referencing charpos member.
9764
97b1b294
EZ
97652009-01-10 Eli Zaretskii <eliz@gnu.org>
9766
9767 Fix Bug #876:
9768
9769 * coding.c (inhibit_null_byte_detection): New variable.
9770 (detect_coding, detect_coding_system): Don't pay attention to null
9771 bytes if inhibit_null_byte_detection is non-zero.
51d861de 9772 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
9773 <inhibit-iso-escape-detection>: Doc fix.
9774
4624b6e3
JR
97752009-01-09 Jason Rumney <jasonr@gnu.org>
9776
9777 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 9778 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
9779 Only report Unicode Plane 2 fonts as unicode-sip.
9780
323b840c
CY
97812009-01-09 Chong Yidong <cyd@stupidchicken.com>
9782
51d861de
SM
9783 * xfaces.c (Fx_font_family_list): Delete function.
9784 Move compatibility version to faces.el.
323b840c 9785
51d861de 9786 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 9787
eba7400d
MR
97882009-01-09 Martin Rudalics <rudalics@gmx.at>
9789
9790 * frame.c (x_set_frame_parameters): Remember requested value for
9791 fullscreen before it's reset by the parameter handler.
9792
4b09796d
GM
97932009-01-09 Glenn Morris <rgm@gnu.org>
9794
9795 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9796 (last_command_event): ... and update all users.
4b09796d
GM
9797 (last_input_char): For clarity, rename to...
9798 (last_input_event): ... and update all users.
9799 (last-command-char, last-input-char): Move to subr.el as aliases.
9800 * cmds.c, commands.h: Update for last_command_char rename.
9801
14ccea62
CY
98022009-01-08 Chong Yidong <cyd@stupidchicken.com>
9803
51d861de 9804 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9805
5f004711
JR
98062009-01-08 Jason Rumney <jasonr@gnu.org>
9807
9808 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9809 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9810 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9811 Don't declare.
fff4e459 9812 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9813 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9814
b71f6f73
KH
98152009-01-07 Kenichi Handa <handa@m17n.org>
9816
50b06221 9817 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9818 remember the coding system used for decoding in
50b06221
KH
9819 coding_system (Bug#1039).
9820
b71f6f73 9821 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9822 breaking the loop. (Bug#870)
b71f6f73
KH
9823 (decode_coding_utf_16, decode_coding_emacs_mule)
9824 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9825 (decode_coding_charset): Likewise.
9826
56f668f7
MR
98272009-01-05 Martin Rudalics <rudalics@gmx.at>
9828
9829 * frame.c (x_set_frame_parameters): Make sure height (width) get
9830 applied when fullwidth (fullheight) is set. (Bug#1522)
9831
5da9424d
JB
98322009-01-04 Juanma Barranquero <lekktu@gmail.com>
9833
9834 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9835 (utc_base): Declare as ULONGLONG, not long double.
9836 (convert_time_raw): Delete.
9837 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9838 (initialize_utc_base): New function.
9839 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9840 (convert_from_time_t): Use initialize_utc_base; compute result with
9841 64-bit arithmetic.
9842 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9843
c4605e09
EZ
98442009-01-03 Eli Zaretskii <eliz@gnu.org>
9845
9acef61c 9846 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9847 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9848 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9849 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9850 [!subprocesses]: Define.
9851 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9852 (Flist_system_processes, Fsystem_process_attributes)
9853 [!subprocesses]: Call list_system_processes and
9854 system_process_attributes instead of returning Qnil.
9855
9acef61c
JB
9856 * dosfns.c (system_process_attributes, list_system_processes):
9857 New functions.
c4605e09
EZ
9858
9859 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9860
9861 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9862 Don't use the default (no-op) implementation.
9863
8b7d0a16
JR
98642009-01-03 Jason Rumney <jasonr@gnu.org>
9865
a6d46bc1
JR
9866 * keyboard.c (parse_modifiers_uncached): Wheel events are
9867 clicks (bug#687).
9868
8b7d0a16
JR
9869 * w32term.c (x_query_colors, x_query_color): New functions.
9870
9871 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9872 (svg_load_image): Cast returned pointers from dynamically loaded
9873 functions. Eliminate W32 specific code.
9874
bfe11752
DN
98752009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9876
89e2438a
DN
9877 * nsfns.m (x_set_foreground_color, x_set_background_color)
9878 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9879 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9880 x_ prefix instead of ns_. Update references.
9881 (syms_of_nsfns): Add a FIXME comment.
9882
9883 * nsterm.m (x_set_cursor_type): New prototype.
9884 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9885
bfe11752
DN
9886 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9887 for Solaris instead of incorrectly providing Qutime and Qcutime.
9888
031da700
EZ
98892009-01-02 Eli Zaretskii <eliz@gnu.org>
9890
9891 * w32.c (process_times): Compute sum of utime and stime.
9892 (system_process_attributes): Add Qtime to the alist.
9893
9894 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9895 and add them to the alist.
9896
9897 * process.c (top level) <Qtime, Qctime>: New variables.
9898 (syms_of_process): staticpro them.
9899 (Fsystem_process_attributes): Add their documentation to the doc
9900 string.
9901
9902 * process.h: Declare Qtime and Qctime.
9903
df23bf08
JR
99042009-01-02 Jason Rumney <jasonr@gnu.org>
9905
9acef61c 9906 * image.c (Qgobject): New symbol.
df23bf08
JR
9907 (syms_of_image): Initialize it.
9908 (init_svg_functions): Load some functions from gobject library.
9909
5bbdf7aa
DN
99102009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9911
9912 * frame.c (make_terminal_frame): Remove redundant code and useless
9913 block.
9914
63136da6
AS
99152009-01-01 Andreas Schwab <schwab@suse.de>
9916
9917 * process.c (conv_sockaddr_to_lisp): Add workaround for
9918 getsockname bug on BSD.
9919
9ef69046
CY
99202009-01-01 Chong Yidong <cyd@stupidchicken.com>
9921
d6fafbe0
CY
9922 * xfns.c (x_create_tip_frame): Set border width of the X window.
9923
51d861de 9924 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9925
f9c34147
JR
99262009-01-01 Jason Rumney <jasonr@gnu.org>
9927
9acef61c 9928 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
9929 Don't block input, as per earlier xterm.c changes.
9930
f5497e45
AR
99312008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9932
9933 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9934 (ns_appkit_version_int): New function.
9935 (x-server-version): Use ns_appkit_version_int and follow 21+
9936 convention of returning 3 integers.
9937
c19cab20
KH
99382008-12-30 Kenichi Handa <handa@m17n.org>
9939
9940 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9941 (CHAR_SURROGATE_PAIR_P): New macro.
9942
9943 * font.h (struct font_driver): New member get_variation_glyphs.
9944
9acef61c 9945 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9946 (Ffont_variation_glyphs): New function.
9947 (syms_of_font): Defsubr it.
9948
9949 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9950 ftfont_variation_glyphs.
9951 (setup_otf_gstring): New function.
9952 (ftfont_drive_otf): Use it.
9953 (ftfont_shape_by_flt): Handle variation selector.
9954 (ftfont_variation_glyphs): New function.
9955
28cd591f
MR
99562008-12-30 Martin Rudalics <rudalics@gmx.at>
9957
9958 * frame.c (Vemacs_iconified): Remove.
9959
7f714baf
JR
99602008-12-30 Jason Rumney <jasonr@gnu.org>
9961
9962 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9963 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9964
9d2d22ab
CY
99652008-12-30 Chong Yidong <cyd@stupidchicken.com>
9966
9967 * indent.c (Fvertical_motion): Don't advance iterator if we have
9968 reseated to the desired position.
9969
9970 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9971 checking for pos match.
9972
545312c2
KH
99732008-12-30 Kenichi Handa <handa@m17n.org>
9974
1ede3eb6
KH
9975 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9976 just get the low 8-bit of the code.
9977
545312c2
KH
9978 * font.c (font_intern_prop): Validate str as multibyte.
9979
bd7bbf29
DN
99802008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9981
31e0750e
DN
9982 * dispextern.h (struct face): Move lface and hash from the middle
9983 of bitfields.
9984
bd7bbf29
DN
9985 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9986
b5672e7c
DN
99872008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9988
9989 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9990 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9991 instead of intervals.h.
9992
d704470f
AS
99932008-12-26 Andreas Schwab <schwab@suse.de>
9994
9995 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9996 cons.
9997
54b33868
MR
99982008-12-26 Martin Rudalics <rudalics@gmx.at>
9999
10000 * textprop.c (Qminibuffer_prompt): New variable.
10001 (syms_of_textprop): Initialize it.
10002 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10003 in minibuffer-prompt face. (Bug#1662)
10004
40b615d6
JR
100052008-12-25 Jason Rumney <jasonr@gnu.org>
10006
10007 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10008
baae5c2d
JR
100092008-12-24 Jason Rumney <jasonr@gnu.org>
10010
10011 * ralloc.c (r_alloc_reset_variable): New function.
10012
10013 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 10014 record of what points where. (Bug#716)
baae5c2d 10015
a9051c88
DN
100162008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10017
10018 * minibuf.c (read_minibuf): Follow the non-interactive case when
10019 running as a daemon, before detaching.
10020
8b146312
AS
100212008-12-22 Andreas Schwab <schwab@suse.de>
10022
10023 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10024 * gtkutil.c (free_widget_value): Use xfree instead of free.
10025
56f2de10
MR
100262008-12-22 Martin Rudalics <rudalics@gmx.at>
10027
10028 * frame.c (delete_frame): New function derived from
10029 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10030 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10031 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10032 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10033 * frame.h: Extern delete_frame.
10034 * window.c (window_loop):
10035 * terminal.c (delete_terminal):
10036 * xterm.c (x_connection_closed):
10037 * xfns.c (Fx_hide_tip):
9acef61c 10038 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 10039
1fc200d6
JR
100402008-12-21 Jason Rumney <jasonr@gnu.org>
10041
10042 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10043 when character maps to .notdef character.
10044
5e252df2
SM
100452008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10046
10047 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10048
99b72cc4
JR
100492008-12-20 Jason Rumney <jasonr@gnu.org>
10050
10051 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 10052 a graphical frame on Windows. (Bug#1325)
99b72cc4 10053
acc49a52
JD
100542008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10055
10056 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10057
6ea15123
CY
100582008-12-20 Chong Yidong <cyd@stupidchicken.com>
10059
10060 * minibuf.c (Fread_buffer): Doc fix.
10061
b2dab6c8
JR
100622008-12-20 Jason Rumney <jasonr@gnu.org>
10063
54ea0c87 10064 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 10065 server name in UNC paths. (Bug#719)
54ea0c87 10066
b2dab6c8 10067 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 10068 charbuf. (Bug#1035)
b2dab6c8 10069
6d1921be
DN
100702008-12-19 Daniel Engeler <engeler@gmail.com>
10071
10072 * sysdep.c (serial_configure): Fix typo.
10073
53934c98
DN
100742008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10075
10076 * sysdep.c: Include alloca.h.
f4f634e8
DN
10077 (system_process_attributes): Add implementation for Solaris.
10078
10079 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 10080
06e111a6
DN
100812008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10082
10083 Reorganize implementation of Flist_system_processes and
10084 Fsystem_process_attributes. No functional changes.
10085 * process.c: Don't #include pwd.h, grp.h and limits.h.
10086 (Flist_system_processes): Just call list_system_processes.
10087 (Fsystem_process_attributes): Just call system_process_attributes.
10088 (procfs_list_system_processes, time_from_jiffies)
10089 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10090 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10091
10092 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10093 (list_system_processes): Rename from
10094 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10095 Provide a do nothing implementation.
10096 (system_process_attributes): Rename from
10097 procfs_list_system_processes.
10098 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 10099 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
10100
10101 * w32.c (list_system_processes): Rename from
10102 w32_list_system_processes.
10103 (system_process_attributes): Rename from
10104 w32_system_process_attributes.
10105
10106 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10107
10108 * process.h (w32_list_system_processes)
10109 (w32_system_process_attributes): Remove.
362654a6
JB
10110 (list_system_processes, system_process_attributes):
10111 New prototypes.
06e111a6 10112
6a705b23
KH
101132008-12-19 Kenichi Handa <handa@m17n.org>
10114
10115 * xfont.c (xfont_decode_coding_xlfd): New function.
10116 (xfont_encode_coding_xlfd): New function.
10117 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10118 (xfont_list): Decode and encode XLFD by iso-8859-1.
10119 (xfont_match): Likewise.
10120 (xfont_list_family): Likewise.
10121 (xfont_open): Likewise.
10122
d66c0241 10123 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
10124 names are utf-8.
10125
d66c0241 10126 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
10127 names are utf-8.
10128
5a130941
JD
101292008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10130
10131 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10132 changed.
bfd20325
JD
10133 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10134 clicked on a detached tool bar button.
5a130941 10135
fd95644b
DN
101362008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10137
10138 * emacs.c (main): Print and error and exit when no data is read
10139 from the pipe.
10140
e6eee6ae
JR
101412008-12-17 Jason Rumney <jasonr@gnu.org>
10142
10143 * w32font.c (w32font_has_char): Always return -1.
10144
a35dd56b
KH
101452008-12-16 Kenichi Handa <handa@m17n.org>
10146
10147 * font.c (font_open_entity): Fix previous change.
10148
0e3635c2
DN
101492008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10150
10151 * process.c: Include <limits.h>.
10152
d4835507 101532008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
10154
10155 * font.c (font_update_drivers): Fix mistake in reconstructing the
10156 driver list.
10157
101582008-12-16 Chong Yidong <cyd@stupidchicken.com>
10159
10160 * font.c (font_clear_cache): Fix format of font cache data.
10161
e2cbc401
CY
101622008-12-15 Chong Yidong <cyd@stupidchicken.com>
10163
10164 * xftfont.c (xftfont_open): Free Xft font pattern if
10165 XftFontOpenPattern fails.
10166
10167 * xterm.c (x_free_frame_resources): Remove extraneous call to
10168 free_frame_faces.
10169
b131d535
CY
101702008-12-13 Chong Yidong <cyd@stupidchicken.com>
10171
10172 * xterm.c (x_delete_display): Move xim_close_dpy call to
10173 x_delete_terminal.
10174 (x_delete_terminal): Call xim_close_dpy.
10175
e6df5336
JR
101762008-12-13 Jason Rumney <jasonr@gnu.org>
10177
10178 * w32font.c (intern_font_name): New function.
10179 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10180 (w32font_open_internal, Fx_select_font): Decode font name.
10181 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10182
10183 * w32font.h (intern_font_name): Declare new function.
10184
10185 * w32uniscribe.c (add_opentype_font_name_to_list):
10186 Use intern_font_name.
10187
20d68145
CY
101882008-12-13 Chong Yidong <cyd@stupidchicken.com>
10189
9f2554de
CY
10190 * frame.c (Fdelete_frame): Call free_font_driver_list.
10191
3d9bec9a
CY
10192 * font.c (free_font_driver_list): Implement missing function.
10193
20d68145
CY
10194 * w32term.c (w32_term_init): Don't initialize the image cache
10195 here; it will be done in init_frame_faces.
10196
10197 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10198 (struct x_display_info): Remove unused member null_pixel. New
10199 member xim_callback_data.
10200
10201 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10202 (xim_initialize): Save pointer to callback function data.
10203 (xim_close_dpy): Free callback function data. Call XCloseIM,
10204 reverting 2008-11-04 change by David Smith.
10205 (x_term_init): Don't initialize the image cache here; it will be
10206 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10207 (x_delete_display): Free x_dnd_atoms member.
10208
96f9306b
KH
102092008-12-13 Kenichi Handa <handa@m17n.org>
10210
6dec9044
JB
10211 * font.c (font_rescale_ratio): Moved from xfaces.c.
10212 Argument type changed. Handle a font-spec too.
96f9306b 10213 (font_score): Check Vface_font_rescale_alist.
6dec9044 10214 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
10215
10216 * xfaces.c (font_rescale_ratio): Moved to font.c.
10217
8d5b4964
CY
102182008-12-13 Chong Yidong <cyd@stupidchicken.com>
10219
10220 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10221
e6df5336
JR
102222008-12-12 Jason Rumney <jasonr@gnu.org>
10223
10224 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10225 Vwindow_system_version to the real w32 major version.
10226
97c6058a
DN
102272008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10228
10229 * term.c (init_tty): Move setting the terminal name before the
10230 potential user: maybe_fatal.
10231
ec4e88d7
CY
102322008-12-11 Chong Yidong <cyd@stupidchicken.com>
10233
d4835507
JB
10234 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10235 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 10236
b4233ec9
JR
102372008-12-11 Jason Rumney <jasonr@gnu.org>
10238
8ec71e23 10239 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 10240 SYMBOL_CHARSET. (Bug#547)
8ec71e23 10241
b4233ec9 10242 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 10243 size for surrogates. (Bug#1096, bug#872)
b4233ec9 10244
011a0143
JB
102452008-12-11 Juanma Barranquero <lekktu@gmail.com>
10246
10247 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10248
3c309f34
JB
102492008-12-11 Juanma Barranquero <lekktu@gmail.com>
10250
10251 * process.c (Fsystem_process_attributes, syms_of_process):
10252 Fix typo in name of Ssystem_process_attributes.
10253 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10254
fedc6ab5
JB
102552008-12-11 Juanma Barranquero <lekktu@gmail.com>
10256
10257 * syntax.c (Fmodify_syntax_entry): Doc fix.
10258
ba3de0e8
JB
102592008-12-10 Juanma Barranquero <lekktu@gmail.com>
10260
10261 * font.c (Ffont_spec): Move usage to end of docstring.
10262
174f1c74
JR
102632008-12-10 Jason Rumney <jasonr@gnu.org>
10264
10265 * w32font.c (Qcham): New symbol.
10266 (font_supported_scripts): Add cham, and comments for other new
10267 scripts in bitfield from OpenType spec.
9d32f818
JR
10268 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10269 contain characters beyond the bmp.
174f1c74 10270
7b649478
KH
102712008-12-10 Kenichi Handa <handa@m17n.org>
10272
10273 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 10274 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
10275 Qunicode_sip.
10276
2133e2d1
JB
102772008-12-10 Juanma Barranquero <lekktu@gmail.com>
10278
10279 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10280 (Fcoding_system_put): Use QCdefault_char.
10281 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10282
9af886ee
CY
102832008-12-09 Chong Yidong <cyd@stupidchicken.com>
10284
74d819eb
CY
10285 * xftfont.c (syms_of_xftfont): Fix typo.
10286
4ccfa1c0 10287 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 10288
7c19d3ae
DN
102892008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10290
10291 * emacs.c (main): Close daemon_pipe on exec.
10292
567826bb
CY
102932008-12-08 Chong Yidong <cyd@stupidchicken.com>
10294
10295 * termchar.h (struct tty): New members termcap_term_buffer and
10296 termcap_strings_buffer.
10297
10298 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 10299 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
10300 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10301 All callers changed.
10302 (init_tty): Store termcap data and string buffers in new struct
10303 tty members termcap_term_buffer and termcap_strings_buffer.
10304 (delete_tty): Free them.
4ccfa1c0 10305 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 10306
aa96c42b
SZ
103072008-12-07 Seiji Zenitani <zenitani@mac.com>
10308
10309 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 10310 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 10311
b7e1d896
CY
103122008-12-06 Chong Yidong <cyd@stupidchicken.com>
10313
10314 * coding.c (make_conversion_work_buffer): Disable buffer
10315 modification hooks in the work buffer.
10316
b5ec91a5
EZ
103172008-12-05 Eli Zaretskii <eliz@gnu.org>
10318
10319 * process.c (procfs_system_process_attributes): If `nread' has a
10320 negative value, assign zero to it.
10321
a5d2a52b
CY
103222008-12-05 Chong Yidong <cyd@stupidchicken.com>
10323
68c5540b 10324 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 10325
7bf1bb21
KH
103262008-12-05 Kenichi Handa <handa@m17n.org>
10327
10328 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10329 second character is a combining character.
10330
2fdc7d00
EZ
103312008-12-05 Eli Zaretskii <eliz@gnu.org>
10332
10333 * process.c (procfs_system_process_attributes): Don't use cmd,
10334 cmdsize, and q without initializing them first.
10335
bf6bfba8
JR
103362008-12-04 Jason Rumney <jasonr@gnu.org>
10337
10338 * w32font.c (w32font_draw): Initialize orig_clip before getting
10339 it, and delete it when finished.
10340
a3b1a468
DN
103412008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10342
10343 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10344 case when running as a daemon before detaching.
10345
8b8be8eb
JB
103462008-12-03 Juanma Barranquero <lekktu@gmail.com>
10347
805f2638 10348 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 10349
b1bde622
KH
103502008-12-03 Kenichi Handa <handa@m17n.org>
10351
e500c47d
KH
10352 * font.c (font_at): Set `multibyte' at first.
10353
ca516334
KH
10354 * coding.c (decode_coding_charset): Check type of an element of
10355 vector VALIDS.
7bf1bb21 10356 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 10357
4ccfa1c0 10358 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
10359 (font_for_char): Likewise.
10360
1e5ecd37
CY
103612008-12-03 Chong Yidong <cyd@stupidchicken.com>
10362
d5b01609 10363 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
10364 (font_update_lface): Handle fonts with corrupted size specs,
10365 i.e. non-int and non-float.
d5b01609 10366
11e3a6e4 10367 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 10368 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 10369 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 10370
ab06788b
CY
10371 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10372
1e5ecd37 10373 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 10374 underline_minimum_offset for underline position.
1e5ecd37 10375
63c125ab
DN
103762008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10377
10378 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10379
10380 * character.c (c_string_width): Specify the type for LEN.
10381
3a8406e1
KH
103822008-12-03 Kenichi Handa <handa@m17n.org>
10383
4ccfa1c0 10384 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 10385 (decode_coding_utf_8): Likewise.
4ccfa1c0 10386 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 10387 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 10388
651df7d9
CY
103892008-12-02 Chong Yidong <cyd@stupidchicken.com>
10390
10391 * keyboard.c (make_lispy_position): Only use PT if the selected
10392 window is current.
10393
1f625c6c
AS
103942008-12-02 Andreas Schwab <schwab@suse.de>
10395
f7741ce9
AS
10396 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10397
1f625c6c
AS
10398 * doprnt.c (doprnt1): Fix size of charbuf.
10399
92bc2678
CY
104002008-12-02 Chong Yidong <cyd@stupidchicken.com>
10401
10402 * keyboard.c (timer_check): Revert last change.
10403
93b9e8cc
JB
104042008-12-02 Juanma Barranquero <lekktu@gmail.com>
10405
10406 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10407
fd7a37d5
JB
104082008-12-01 Juanma Barranquero <lekktu@gmail.com>
10409
10410 * makefile.w32-in: Update dependencies.
10411 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10412
c115043b
AS
104132008-12-01 Andreas Schwab <schwab@suse.de>
10414
10415 * font.c (register_font_driver): Use xmalloc.
10416 (font_put_frame_data): Likewise.
10417
f5668d2a
CY
104182008-12-01 Chong Yidong <cyd@stupidchicken.com>
10419
860d96be
CY
10420 * xfaces.c (realize_x_face): Make abort condition clearer.
10421
f5668d2a
CY
10422 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10423
379c17e7
CY
104242008-11-30 Chong Yidong <cyd@stupidchicken.com>
10425
10426 * keyboard.c (timer_check): After a timer runs, ensure that the
10427 selected window's buffer is current.
10428
35f36d65
JB
104292008-11-30 Juanma Barranquero <lekktu@gmail.com>
10430
f952c61c
JB
10431 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10432 It was accidentally restored by the Unicode merge.
10433
35f36d65
JB
10434 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10435
b23077df
JB
104362008-11-29 Juanma Barranquero <lekktu@gmail.com>
10437
10438 * w32proc.c: Include "coding.h".
10439 (Fw32_short_file_name): Encode filename passed to Windows API.
10440 (Fw32_long_file_name): Encode filename passed to Windows API and
10441 decode back the result. (Bug#1433)
10442
b8ebe9dd
KH
104432008-11-29 Kenichi Handa <handa@m17n.org>
10444
8cc53f96
KH
10445 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10446 not before accessing it.
10447
b8ebe9dd
KH
10448 * charset.c (Fdefine_charset_internal): After calculating
10449 min_char, max_char, and fastmap, copy the charset structure again.
10450 (encode_char): Fix the previous change.
10451
59bc82c0
SZ
104522008-11-28 Seiji Zenitani <zenitani@mac.com>
10453
10454 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10455
10456 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10457
10458 * nsterm.m (x_set_frame_alpha): New function.
10459
32247e3d
EZ
104602008-11-27 Eli Zaretskii <eliz@gnu.org>
10461
10462 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10463
b003e5ff
JB
104642008-11-27 Juanma Barranquero <lekktu@gmail.com>
10465
10466 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10467 pointer to check_face_name.
10468
708550f5
KH
104692008-11-27 Kenichi Handa <handa@m17n.org>
10470
10471 * category.h (SET_CATEGORY_SET): Call set_category_set.
10472 (set_category_set): Extern it.
10473
10474 * category.c (hash_get_category_set): New function.
10475 (Fmodify_category_entry): Adjusted for the change of
10476 char_table_ref_and_range. Call hash_get_category_set to get a
10477 category set to store in the table.
10478
10479 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10480 Funify_charset.
10481
2ae37cf0 10482 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
10483 (DECODE_CHAR): Check if the decoder vector is ready.
10484 (ENCODE_CHAR): Check if the encoder char-table is ready.
10485 (maybe_unify_char): Extern it.
10486
10487 * charset.c (Vchar_unified_charset_table): Delete it.
10488 (inhibit_load_charset_map): New variable.
10489 (temp_charset_work): New variable.
10490 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10491 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10492 New macros.
10493 (load_charset_map): Meaning of control_flag changed. If
10494 inhibit_load_charset_map is nonzero, setup a table in
10495 temp_charset_work.
10496 (load_charset): New argument control_flag.
10497 (map_charset_for_dump): New function.
10498 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10499 map_charset_for_dump.
10500 (Fdefine_charset_internal): If the charset method is MAP, load
10501 mapping tables by calling load_charset.
10502 (Funify_charset): Don't load a mapping table but directly set
10503 Vchar_unify_table.
10504 (maybe_unify_char): New function.
10505 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10506 Handle the case of inhibit_load_charset_map being nonzero.
10507 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10508 Handle the case of inhibit_load_charset_map being nonzero.
10509 (Fclear_charset_maps): Just free temp_charset_work.
10510 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10511 variable.
10512
10513 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10514 change of char_table_ref_and_range.
10515 (char_table_ref_and_range): Change the meaning of argument FROM
10516 and TO. Now the caller must provide initial values for *FROM
10517 and *TO.
10518
10519 * fontset.c (fontset_add): Adjusted for the change of
10520 char_table_ref_and_range.
10521 (fontset_get_font_group): Likewise.
10522 (Ffontset_info): Likewise.
10523
10524 * keymap.c (describe_vector): Adjusted for the change of
10525 char_table_ref_and_range. For char-table, put boundary between
10526 non-ASCII and 8-bit characters.
10527
10528 * print.c (print_object): For bool-vector, delete unnecessary
10529 check of ASCII_BYTE_P.
10530
9196133b
JR
105312008-11-26 Jason Rumney <jasonr@gnu.org>
10532
10533 * w32font.c (w32font_open_internal): Don't include external
9acef61c 10534 leading in font height. (Bug#879)
9196133b 10535
9f688acf
GM
105362008-11-26 Glenn Morris <rgm@gnu.org>
10537
10538 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10539 redefinition with ifdef. (Bug#1383)
10540
90d19aff
AR
105412008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10542
10543 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10544
4ccfa1c0 105452008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
10546
10547 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10548 New EmacsView methods.
10549 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10550 Fixes bug #1048,1357,1414.
10551
105522008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10553
10554 Fix bug #1362.
10555 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10556 is not an indexed color.
10557 * nsterm.m (free_indexed_color): Add argument checking.
10558 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10559
e7d5ecb3
CY
105602008-11-24 Chong Yidong <cyd@stupidchicken.com>
10561
10562 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10563 Document confirm-after-completion value for
10564 minibuffer-completion-confirm.
10565
c285743c
JR
105662008-11-24 Jason Rumney <jasonr@gnu.org>
10567
10568 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10569 warning.
10570
b0857706
JR
105712008-11-23 Jason Rumney <jasonr@gnu.org>
10572
10573 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10574 restored before returning.
10575
10576 * w32font.c (check_face_name): New function.
10577 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 10578 fonts. (Bug#642)
b0857706 10579
ee50ff07
MR
105802008-11-22 Martin Rudalics <rudalics@gmx.at>
10581
10582 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10583 confirm-nonexistent-file-or-buffer in doc-string.
10584
b8ff72fa
SM
105852008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10586
10587 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10588 Fix copy/paste typo. Add checks.
10589
cee53ed4
KH
105902008-11-21 Kenichi Handa <handa@m17n.org>
10591
10592 * coding.c (detect_coding_iso_2022): Reject invalid composition
10593 sequence.
10594 (DECODE_COMPOSITION_START): If the current source is the last
10595 block, and the current composition doesn't end, regard this
10596 sequence as invalid.
10597 (decode_coding_iso_2022): Handle invalid composition sequence.
10598
f6ef1e65
MR
105992008-11-20 Martin Rudalics <rudalics@gmx.at>
10600
10601 * window.c (coordinates_in_window): Don't return
10602 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10603 line when the window is not the rightmost one. (Bug#1372)
10604
e08b1705
MR
106052008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10606
10607 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10608
ad98e89f
EZ
106092008-11-15 Eli Zaretskii <eliz@gnu.org>
10610
10611 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10612 and bright_bg if noninteractive is non-zero.
10613
fb098a4b
CY
106142008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10615
10616 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10617 x_draw_glyph_string_background.
10618
10619 * w32term.c (x_draw_glyph_string): Likewise.
10620
ce952b6e
CY
106212008-11-15 Chong Yidong <cyd@stupidchicken.com>
10622
10623 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10624 the next glyph string once past the overhang width.
10625
10626 * nsterm.m (ns_draw_glyph_string): Likewise.
10627
10628 * w32term.c (x_draw_glyph_string): Likewise.
10629
26ea7079
CY
106302008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10631
10632 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10633 double file close.
10634
1c33c906
MR
106352008-11-14 Martin Rudalics <rudalics@gmx.at>
10636
10637 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10638 dedicated status of window before attempting to display another
10639 buffer in it.
10640
8fc29035
JB
106412008-11-14 Juanma Barranquero <lekktu@gmail.com>
10642
10643 * msdos.c (Fmsdos_long_file_names):
10644 (syms_of_msdos) <dos-unsupported-char-glyph>:
10645 * dosfns.c (Fint86): Fix typos in docstrings.
10646
55fb4286
EZ
106472008-11-14 Eli Zaretskii <eliz@gnu.org>
10648
10649 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10650
3fda0315
KY
106512008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10652
10653 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10654
7e849c17
CY
106552008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10656
10657 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10658
10659 * frame.h: Negative alpha means "don't touch".
10660
10661 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10662
10663 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10664
b9fd67bd
DN
106652008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10666
10667 * hftctl.c:
10668 * chpdef.h:
10669 * acldef.h: Remove files used only for systems no longer supported.
10670
10671 * Makefile.in: Fix .o alphabetical ordering.
10672 (hftctl.o): Remove dependency, file removed.
10673 (keymap.o, print.o): Depend on charset.h.
10674
d5998e03
KH
106752008-11-10 Kenichi Handa <handa@m17n.org>
10676
2ae37cf0 10677 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 10678
be70e183
CY
106792008-11-08 Chong Yidong <cyd@stupidchicken.com>
10680
10681 * dired.c (file_name_completion): If completion_ignore_case is
10682 enabled, ignore case when checking completion-regexp-list.
10683
7cf94eac
EZ
106842008-11-08 Eli Zaretskii <eliz@gnu.org>
10685
10686 * vm-limit.c (get_lim_data): Fix last change.
10687
ee107a89
KH
106882008-11-08 Kenichi Handa <handa@m17n.org>
10689
10690 * character.c (Fget_byte): New function.
10691 (syms_of_character): Defsubr Fget_byte.
10692
5fd15622
CY
106932008-11-07 Chong Yidong <cyd@stupidchicken.com>
10694
10695 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10696 cursor position is valid after scrolling.
10697
13d62fad
JB
106982008-11-06 Juanma Barranquero <lekktu@gmail.com>
10699
10700 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10701
a1dd2936
GM
107022008-11-06 Glenn Morris <rgm@gnu.org>
10703
10704 * xterm.c (handle_one_xevent): Don't let popup menus cause
10705 mouse-autoselect-window related window switching. (Bug#1261)
10706
860cd236
CY
107072008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10708
10709 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10710
653a3150
AS
107112008-11-04 Andreas Schwab <schwab@suse.de>
10712
10713 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10714
870f5cac
CY
107152008-11-03 Chong Yidong <cyd@stupidchicken.com>
10716
10717 * xfns.c (Fx_wm_set_size_hint): New function.
10718
1e02f3cb
MR
107192008-11-03 Martin Rudalics <rudalics@gmx.at>
10720
10721 * textprop.c (Fprevious_single_char_property_change): Return 0
10722 when there's no change in a string. (Bug#1301)
10723
e630dfc6
MR
107242008-11-02 Martin Rudalics <rudalics@gmx.at>
10725
10726 * frame.c (do_switch_frame): New argument NORECORD passed to
10727 Fselect_window.
10728 (Fselect_frame): New argument NORECORD passed to
10729 do_switch_frame.
10730 (Fset_frame_selected_window): New argument NORECORD passed to
10731 Fselect_frame.
10732 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10733 in call of do_switch_frame.
10734 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10735 Handle NORECORD argument in call of Fselect_frame.
10736 * lisp.h (do_switch_frame, Fselect_frame)
10737 (Fset_frame_selected_window): Adjust declarations.
10738 * window.c (select_frame_norecord): New function.
10739 (run_window_configuration_change_hook): Use it and call
10740 Fselect_frame with NORECORD set.
10741 (Fselect_window): Pass NORECORD to Fselect_frame.
10742 (Fset_window_configuration): Handle NORECORD argument in call of
10743 do_switch_frame.
10744 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10745 Fset_frame_selected_window.
10746 * keyboard.c (command_loop_1): Handle NORECORD in call of
10747 Fselect_frame (currently ifdefd).
10748
9020b223
GM
107492008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10750
10751 * emacs.c (USAGE2): Untabify.
10752
793ffee8
SM
107532008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10754
10755 * composite.c (fill_gstring_header): Fix copy/paste typo.
10756
ab6d1131
MR
107572008-10-31 Martin Rudalics <rudalics@gmx.at>
10758
10759 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10760 (Fother_window): Rename argument and rewrite doc-string.
10761 (select_window_norecord): Fix return value. (Bug#1276)
10762
601a9cf1
JB
107632008-10-30 Juanma Barranquero <lekktu@gmail.com>
10764
10765 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10766 new frames overriding foreground for tooltips. Based on similar patch
10767 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10768
813b0652
CY
107692008-10-29 Chong Yidong <cyd@stupidchicken.com>
10770
10771 * emacs.c (Fdaemon_initialized): Initialize nfd.
10772
4414f58f
MR
107732008-10-29 Martin Rudalics <rudalics@gmx.at>
10774
10775 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10776 (Fwindow_text_height): Clarify doc-strings.
10777 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10778 doc-string of window-scroll-functions.
10779
ecdcaa09
RS
107802008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10781
10782 * category.c (syms_of_category): Fix typo in docstring.
10783
23fe745a
JB
107842008-10-28 Juanma Barranquero <lekktu@gmail.com>
10785
10786 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10787 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10788 Fix typos in docstrings.
10789
ff808935
DN
107902008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10791
10792 * emacs.c (daemon_pipe): Make non-static.
10793 (IS_DAEMON): Move definition ...
10794 * lisp.h (IS_DAEMON): ... here.
10795 (daemon_pipe): Declare.
10796 (is_daemon): Remove.
10797 * dispnew.c (init_display): Use IS_DAEMON.
10798
fc012771
SM
107992008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10800
10801 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10802 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10803
10804 * emacs.c (is_daemon): Remove.
10805 (main): Don't set is_daemon.
10806 (IS_DAEMON): New macro.
10807 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10808 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10809 parent exits.
10810 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10811
d8bdbe6f
CY
108122008-10-27 Chong Yidong <cyd@stupidchicken.com>
10813
d1a072bf
CY
10814 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10815 over-sized glyph, draw it with the default glyph width.
10816
e2e325aa
CY
10817 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10818 glyph, draw it with the default glyph width.
10819
10820 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10821 glyph, draw it with the default glyph width.
10822
d8bdbe6f
CY
10823 * xdisp.c (try_scrolling): When computing the distance from the
10824 scroll margin to PT, try moving some distance past the window
10825 bottom before giving up.
10826
7bfac547
MR
108272008-10-27 Martin Rudalics <rudalics@gmx.at>
10828
10829 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10830 (Fset_window_buffer): Explain in doc-string that a window can be
10831 "strongly" dedicated to its buffer.
10832
4ff029f6
DN
108332008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10834
10835 * emacs.c (daemon_name): New variable.
10836 (main): Deal with --daemon=SERVER_NAME.
10837 (Fdaemonp): Return a name if one was passed to --daemon.
10838
5790ef40
DN
108392008-10-26 Romain Francoise <romain@orebokech.com>
10840
f9bd0df9 10841 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10842 (main): Create a pipe before forking, make the parent exit only after
10843 the child has closed its end of the pipe. Move closing the
10844 descriptors ...
10845 (Fdaemon_initialized): ... here. New function.
10846
f5385255
SM
108472008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10848
4d632321
SM
10849 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10850 the previous unoptimized table.
10851
f5385255
SM
10852 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10853 the distinction between non-nil and non-t value of `dedicated'.
10854
6c56a0f3
CY
108552008-10-25 Chong Yidong <cyd@stupidchicken.com>
10856
10857 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10858 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10859
fec89261
MR
108602008-10-25 Martin Rudalics <rudalics@gmx.at>
10861
10862 * window.c (Fget_buffer_window, Fdelete_windows_on)
10863 (Freplace_buffer_in_windows): Make buffer argument optional and
10864 rename to buffer_or_name.
10865
34fcddd0
CY
108662008-10-24 Chong Yidong <cyd@stupidchicken.com>
10867
f5385255
SM
10868 * xdisp.c (handle_single_display_spec, handle_display_prop):
10869 Undo 2005-05-16 change.
34fcddd0
CY
10870 (handle_stop): Pop iterator if it's loaded with an empty string.
10871 (get_overlay_strings_1): Don't save iterator if it's loaded with
10872 an empty string (bug#1201).
10873
064766f2
KH
108742008-10-24 Kenichi Handa <handa@m17n.org>
10875
10876 * ftfont.c (ftfont_otf_features): Fix previous change.
10877 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10878 calling ftfont_otf_features.
10879
f9bd0df9 108802008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10881
10882 * font.c (font_match_p): Fix for the case that a vector of
10883 characters is in script-representative-chars.
10884
1dae9197
MA
108852008-10-24 Michael Albinus <michael.albinus@gmx.de>
10886
10887 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10888 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10889 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10890 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10891 macro. (Bug#1186)
1dae9197 10892
f9bd0df9 108932008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10894
10895 * s/sol2-10.h: New file.
10896
878a4584
JB
108972008-10-23 Juanma Barranquero <lekktu@gmail.com>
10898
10899 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10900 poor beast has survived 9+ years and the jump from xterm.c!).
10901
cd265ca6
MR
109022008-10-23 Martin Rudalics <rudalics@gmx.at>
10903
10904 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10905 Reword doc-string.
f5385255 10906 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10907
472a4dc9
JB
109082008-10-23 Juanma Barranquero <lekktu@gmail.com>
10909
10910 * character.c (syms_of_character) <script-representative-chars>:
10911 <unicode-category-table>: Doc fixes.
10912
159bd5a2
NF
109132008-10-23 Noah Friedman <friedman@splode.com>
10914
10915 * coding.c (make_conversion_work_buffer): Check that
10916 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10917 Fget_buffer_create.
10918
49f9c344
KH
109192008-10-23 Kenichi Handa <handa@m17n.org>
10920
10921 * font.c (font_add_log): Check the values of extra properties.
10922
12bb3111
MR
109232008-10-22 Martin Rudalics <rudalics@gmx.at>
10924
10925 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10926 Reword doc-string.
10927 (Fset_window_parameter): Use NILP.
10928 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 10929 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 10930
bbeb4e99
JB
109312008-10-22 Juanma Barranquero <lekktu@gmail.com>
10932
10933 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10934
109352008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
10936
10937 * nsfns.m (ns_appkit_version): New function.
10938 (x-server-version): Use it.
10939 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10940 (x-server-vendor): Don't check_ns().
10941
10942 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10943
a9b555d3
JB
109442008-10-22 Juanma Barranquero <lekktu@gmail.com>
10945
10946 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10947 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10948
4626499f
KH
109492008-10-22 Kenichi Handa <handa@m17n.org>
10950
e3681952
KH
10951 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10952 scripts.
10953
4626499f
KH
10954 * category.c (word_boundary_p): Check scripts instead of charset.
10955 Handle nil value in word-separating-categories and
10956 word-combining-categories.
10957 (syms_of_category): Fix docstrings of word-separating-categories
10958 and word-combining-categories.
10959
1560f91a
EZ
109602008-10-21 Eli Zaretskii <eliz@gnu.org>
10961
10962 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10963 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10964
f4668441
MR
109652008-10-21 Martin Rudalics <rudalics@gmx.at>
10966
10967 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10968 Rename arg "buffer" to "buffer_or_name".
10969 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10970 it optional.
10971 (no_switch_window): Remove since the return value is not used.
a9b555d3 10972 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10973 Consider window as dedicated when Fwindow_dedicated_p returns a
10974 non-nil value.
10975 * lisp.h: Remove prototype for no_switch_window.
10976
fd75ddb2
JD
109772008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10978
10979 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10980 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10981
07295713
KH
109822008-10-21 Kenichi Handa <handa@m17n.org>
10983
10984 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10985 check Vlatin_extra_code_table.
10986
712adc82
EZ
109872008-10-20 Eli Zaretskii <eliz@gnu.org>
10988
10989 * fileio.c (Fset_file_modes): Doc fix.
10990
f549eb0b
MA
109912008-10-19 Michael Albinus <michael.albinus@gmx.de>
10992
10993 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10994 in arrays.
10995
aac0c6e3
MR
109962008-10-19 Martin Rudalics <rudalics@gmx.at>
10997
10998 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10999 Mention kill-buffer in doc-string.
11000 (Fset_window_buffer): Reinsert tem check removed in last commit.
11001 (Fenlarge_window, Fshrink_window): Have argument names and
11002 doc-string follow Elisp manual more closely.
11003
110042008-10-18 Eli Zaretskii <eliz@gnu.org>
11005
11006 * fileio.c (Fset_file_modes): Doc fix.
11007
110082008-10-18 Martin Rudalics <rudalics@gmx.at>
11009
11010 * window.c (Fwindow_width, Fset_window_start)
11011 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
11012 (Fdelete_windows_on, Freplace_buffer_in_windows):
11013 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
11014 (Fwindow_dedicated_p): Make window argument optional.
11015 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11016 (Fset_window_buffer): Respect any non-nil dedicated value for
11017 window. Rename "buffer" argument to "buffer_or_name".
11018
110192008-10-18 Ulrich Mueller <ulm@gentoo.org>
11020
11021 * m/sh3.h: New file, machine description for SuperH.
11022
110232008-10-17 Martin Rudalics <rudalics@gmx.at>
11024
11025 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11026
110272008-10-17 Kenichi Handa <handa@m17n.org>
11028
11029 * ftfont.c (ftfont_otf_features): Fix indexing
11030 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11031
110322008-10-16 Magnus Henoch <mange@freemail.hu>
11033
11034 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11035 (Fdbus_call_method_asynchronously): Ditto.
11036 This change makes C-h f display the argument list.
11037
110382008-10-16 Chong Yidong <cyd@stupidchicken.com>
11039
11040 * fileio.c (Fexpand_file_name): Doc fix.
11041
11042 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11043 of :foreground and :background equivalent to unspecified (20.x
11044 compatibility).
11045
110462008-10-15 Eli Zaretskii <eliz@gnu.org>
11047
11048 * buffer.c (syms_of_buffer): Doc fix.
11049
110502008-10-14 Kenichi Handa <handa@m17n.org>
11051
11052 * font.c (font_clear_prop): When clearing font width, clear the
11053 average width field too.
11054
110552008-10-12 Andreas Schwab <schwab@suse.de>
11056
11057 * ftfont.c (ftfont_shape_by_flt): Make static.
11058 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11059
11060 * font.c: Don't include <m17n-flt.h>.
11061
110622008-10-10 Eli Zaretskii <eliz@gnu.org>
11063
11064 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11065
110662008-10-09 Eli Zaretskii <eliz@gnu.org>
11067
11068 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11069 away code.
11070
110712008-10-09 Chong Yidong <cyd@stupidchicken.com>
11072
11073 * dispnew.c (update_text_area): Avoid looping due to large glyph
11074 overhangs (bug#1070).
11075
110762008-10-09 Kenichi Handa <handa@m17n.org>
11077
11078 * fontset.c (face_for_char): If face->fontset is negative, just
11079 return ascii_face.
11080
f5385255
SM
11081 * font.c (font_delete_unmatched): Fix previous change.
11082 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
11083
110842008-10-09 Martin Rudalics <rudalics@gmx.at>
11085
11086 * frame.c (Fraise_frame): On text-only terminals select frame in
11087 order to make it visible. (Bug#1061)
11088
110892008-10-08 Chong Yidong <cyd@stupidchicken.com>
11090
11091 * fontset.c (fontset_find_font): Check frame validity.
11092
110932008-10-07 Chong Yidong <cyd@stupidchicken.com>
11094
a9b555d3 11095 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
11096 (xg_display_close): Allow Emacs to close all displays (bug#985).
11097
110982008-10-06 Andreas Schwab <schwab@suse.de>
11099
f5385255 11100 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
11101
111022008-10-06 Chong Yidong <cyd@stupidchicken.com>
11103
f5385255 11104 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 11105
a9b555d3 11106 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
11107
11108 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11109 during initialization.
11110
111112008-10-04 Eli Zaretskii <eliz@gnu.org>
11112
11113 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11114 whole thing on MSDOS frames as well as on a TTY.
11115
11116 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11117 well as for TTY.
11118 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11119 well as on a TTY.
11120
11121 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11122 as well as for TTY.
11123
11124 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11125
11126 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11127 MSDOS frames as well.
11128
111292008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11130
11131 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11132 correct arguments.
b71ac3dd 11133 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
11134
111352008-10-03 Glenn Morris <rgm@gnu.org>
11136
11137 * emacs.c (USAGE1): Add --daemon.
11138
111392008-10-02 Eli Zaretskii <eliz@gnu.org>
11140
11141 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11142 100, so it's in percents as advertised.
11143
111442008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11145
11146 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11147 (ns_output.current_cursor, ns_output.desired_cursor)
11148 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11149 (FRAME_NEW_CURSOR_COLOR): Remove.
11150
11151 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 11152 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
11153 enumeration (HOLLOW_BOX_CURSOR, etc.).
11154
11155 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11156 (draw_window_cursor): Simplify code.
f5385255
SM
11157 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11158 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 11159 updates manually.
a9b555d3
JB
11160 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11161 Use core Emacs cursor types.
aac0c6e3 11162
b8ff72fa 11163 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
11164
111652008-10-02 Martin Rudalics <rudalics@gmx.at>
11166
11167 * process.c (Faccept_process_output): Fix doc-string.
11168
111692008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11170
11171 * gmalloc.c (__sbrk): Also define for uClibc.
11172
11173 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11174 for uClibc.
11175
111762008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11177
11178 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11179 styles.
11180 (nsfont_open): Reenable the cache.
11181
111822008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11183
11184 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11185 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11186
111872008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11188
11189 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11190 a suspended terminal.
11191
111922008-09-30 Michael Albinus <michael.albinus@gmx.de>
11193
11194 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11195
111962008-09-30 Eli Zaretskii <eliz@gnu.org>
11197
11198 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11199
112002008-09-30 Chong Yidong <cyd@stupidchicken.com>
11201
11202 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11203 in a continued line coincides with a line beginning.
11204
112052008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11206
11207 * nsfont.m (nsfont_trait_distance): Fix bug.
11208 (nsfont_list): Return a list rather than a vector (syncs with Handa
11209 changes of 2008-05-14).
11210 (nsfont_open): Improve logging.
11211
112122008-09-29 Andreas Schwab <schwab@suse.de>
11213
11214 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11215
112162008-09-28 Martin Rudalics <rudalics@gmx.at>
11217
11218 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11219 name as char-resolve-modifiers.
11220 Reported by: Markus Triska <markus.triska@gmx.at>
11221
112222008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11223
11224 * dispnew.c (init_display): Return earlier when running as a daemon.
11225
112262008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11227
11228 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11229
112302008-09-27 Eli Zaretskii <eliz@gnu.org>
11231
11232 * composite.c (Fcomposition_get_gstring)
11233 (Fcompose_region_internal, Fcompose_string_internal)
11234 (Ffind_composition_internal): Doc fix.
11235 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11236 (syms_of_composite) <auto-composition-function>: Doc fix.
11237 (syms_of_composite) <composition-function-table>: Doc fix.
11238
112392008-09-25 Chong Yidong <cyd@stupidchicken.com>
11240
11241 * search.c (wordify): New argument for lax word-ends.
11242 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11243
112442008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11245
11246 * lisp.h (is_daemon): Declare.
11247 * dispnew.c (init_display): Do not try to initialize the terminal
11248 when running as a daemon.
11249
112502008-09-22 Chong Yidong <cyd@stupidchicken.com>
11251
11252 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11253 x_display_pixel_height.
11254
112552008-09-22 Martin Rudalics <rudalics@gmx.at>
11256
11257 * undo.c (record_point): Don't call Fundo_boundary for first
11258 change. (Bug#731)
11259
112602008-09-22 Juanma Barranquero <lekktu@gmail.com>
11261
11262 * emacs.c (Fdaemonp): Doc fix.
11263
112642008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11265
11266 * emacs.c (main): Place #ifdef in the proper place.
11267
112682008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11269
11270 * emacs.c (standard_args): Add --daemon.
11271 (main): Disconnect from the terminal when --daemon is passed.
11272 (is_daemon): New variable.
11273 (Fdaemonp): New function.
11274 (syms_of_emacs): Defsubr it.
11275
112762008-09-20 Chong Yidong <cyd@stupidchicken.com>
11277
11278 * xdisp.c (get_next_display_element): Handle string display
11279 correctly when checking for the end of a box run.
11280
112812008-09-20 Glenn Morris <rgm@gnu.org>
11282
11283 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11284 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11285 (Frename_file): Avoid copying to trash if a rename involves
11286 a delete. (Bug#964).
11287
112882008-09-20 Eli Zaretskii <eliz@gnu.org>
11289
11290 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11291 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11292 frames as well as termcap frames.
11293 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11294 get_named_tty.
11295
112962008-09-19 Eli Zaretskii <eliz@gnu.org>
11297
11298 * process.c (procfs_system_process_attributes): Fix cmdline in
11299 case /proc/PID/cmdline is empty.
11300
11301 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11302 x_display_pixel_height.
11303
113042008-09-19 Juanma Barranquero <lekktu@gmail.com>
11305
11306 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11307
11308 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11309 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11310
113112008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11312
11313 * dispextern.h (struct it): Move line_wrap away from the middle of
11314 bitfields. Move voffset in struct iterator_stack_entry after the
11315 bitfields. Move tab_width near after another short.
11316
113172008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11318
11319 * frame.h (struct frame): Move alpha from the middle of bitfields.
11320
11321 * window.h (struct window): Move frozen_window_start_p after the
11322 rest of the bitfields to reduce padding.
11323
113242008-09-18 Chong Yidong <cyd@stupidchicken.com>
11325
11326 * xterm.h (x_display_info): Remove `height' and `width' members.
11327
11328 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11329
11330 * w32term.h (w32_display_info): Remove `height', `width',
11331 `height_in', and `width_in' members.
11332
b8ff72fa
SM
11333 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11334 New functions.
aac0c6e3
MR
11335 (x_calc_absolute_position): Use them.
11336 (x_term_init): Omit removed `height' and `width' members.
11337
b8ff72fa
SM
11338 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11339 New functions.
aac0c6e3
MR
11340 (w32_read_socket, x_calc_absolute_position): Use them.
11341 (w32_initialize_display_info, w32_term_init): Omit removed members
11342 of w32_display_info.
11343
b8ff72fa
SM
11344 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11345 New functions.
11346 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 11347
b8ff72fa
SM
11348 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11349 New functions.
aac0c6e3
MR
11350 (x_calc_absolute_position): Use them.
11351 (x_term_init): Omit removed `height' and `width' members.
11352
11353 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
11354 (compute_tip_xy):
11355 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
11356 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11357 x_display_pixel_width.
11358
113592008-09-18 Kenichi Handa <handa@m17n.org>
11360
11361 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11362 (composition_compute_stop_pos): Fix handling of static composition.
11363 (Fcomposition_get_gstring): Check FROM and TO at first.
11364
113652008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11366
46e722a9 11367 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
11368 mixup (YAILOM).
11369
113702008-09-17 Chong Yidong <cyd@stupidchicken.com>
11371
11372 * indent.c (Fvertical_motion): Use position reported by iterator
11373 instead of PT for determining screen motion (bug#943).
11374
113752008-09-17 Romain Francoise <romain@orebokech.com>
11376
11377 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11378
113792008-09-17 Kenichi Handa <handa@m17n.org>
11380
11381 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11382
11383 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11384 if necessary.
11385
113862008-09-16 Kenichi Handa <handa@m17n.org>
11387
11388 * coding.c (make_conversion_work_buffer): Avoid calling
11389 Fget_buffer_create if it is not necessary.
11390
113912008-09-15 Martin Rudalics <rudalics@gmx.at>
11392
11393 * window.c (Fselect_window): Don't update window_select_count and
11394 use_time when norecord is not nil.
11395
113962008-09-14 Kenichi Handa <handa@m17n.org>
11397
11398 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11399 specpdl_ptr.
11400
114012008-09-12 Kenichi Handa <handa@m17n.org>
11402
11403 * indent.c (scan_for_column): Don't handle automatic composition
11404 if the current buffer is not associated with a window.
11405
11406 * composite.c (composition_reseat_it): If the current buffer is
11407 not associated with a window, ignore the automatic composition.
11408 (find_automatic_composition): Likewise.
11409
114102008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11411
11412 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11413 (Fgpm_mouse_stop): Use it.
11414 * termhooks.h (close_gpm): Declare.
11415 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11416 connection if Gpm_GetEvent fails.
11417
11418 * window.c (set_window_buffer): Always preserve current-buffer.
11419
114202008-09-12 Glenn Morris <rgm@gnu.org>
11421
11422 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11423
114242008-09-11 Glenn Morris <rgm@gnu.org>
11425
11426 * charset.c (charset-map-path): Doc fix.
11427
114282008-09-10 Kenichi Handa <handa@m17n.org>
11429
11430 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11431
11432 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11433 compose a grapheme cluster with the preceding base glyph.
11434
11435 * composite.c (composition_compute_stop_pos): Fix previous change.
11436 Reset cmp_it->id to -1 at first.
11437
114382008-09-10 Glenn Morris <rgm@gnu.org>
11439
11440 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11441
114422008-09-09 Chong Yidong <cyd@stupidchicken.com>
11443
11444 * keyboard.c (read_key_sequence): Reapply translation maps when
11445 switching keyboards.
11446
114472008-09-09 Kenichi Handa <handa@m17n.org>
11448
11449 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11450 characters.
11451
11452 * composite.c (FORWARD_CHAR): Fix calculation
11453 of (POSITION).pos_byte.
11454 (composition_compute_stop_pos): Limit the search of composition to
11455 at most 500 characters ahead. If we reach the limit or find a
11456 newline, set cmp_it->ch to -2 and return 0.
11457 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11458
114592008-09-08 Kenichi Handa <handa@m17n.org>
11460
11461 * indent.c (Fvertical_motion): Be sure to set
11462 it_overshoot_expected if it.cmp_it.id is non-negative.
11463
114642008-09-07 Andreas Schwab <schwab@suse.de>
11465
11466 * callproc.c (Fcall_process): Don't hold references to string data
11467 across garbage collection. Move initialisation of new_argv down
11468 to avoid compiler bug.
11469
114702008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11471
11472 * process.c (Fsystem_process_attributes): Doc fix.
11473
114742008-09-07 Chong Yidong <cyd@stupidchicken.com>
11475
11476 * callproc.c (Fcall_process): Canonicalize current directory name.
11477
11478 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11479 iterator advances to the next line if the current line ends in a
11480 continued tab.
11481
114822008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11483
11484 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11485 member to point to cmp_from.
11486
11487 * xdisp.c: Doc fix for references to gidx data member.
11488
114892008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11490
11491 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11492
114932008-09-07 Kenichi Handa <handa@m17n.org>
11494
11495 * composite.c (FORWARD_CHAR): Check STOP after
11496 incrementing (POSITION).pos.
11497
114982008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11499
11500 * process.c (Fsystem_process_attributes): Doc fix.
11501
115022008-09-06 Chong Yidong <cyd@stupidchicken.com>
11503
11504 * keyboard.c (Ftop_level): Doc fix.
11505
115062008-09-06 Eli Zaretskii <eliz@gnu.org>
11507
11508 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11509 minibuffer, don't let lower part of menu invade the echo area.
11510
11511 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11512 "char *q" to access menu text and advance through it. Revert the
11513 change that displayed ">" instead of ASCII character 0x10.
11514
115152008-09-05 Eli Zaretskii <eliz@gnu.org>
11516
11517 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11518 toggle boxes and radio buttons on MS-DOS as well.
11519
115202008-09-05 Kenichi Handa <handa@m17n.org>
11521
11522 * composite.c (autocmp_chars): Check lookback count.
11523 (composition_compute_stop_pos): Set cmp_it->lookback.
11524 (composition_reseat_it): Check lookback count.
11525 (struct position_record): New struct.
11526 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11527 (find_automatic_composition): New function.
11528 (composition_adjust_point): Use find_automatic_composition.
11529
11530 * dispextern.h (struct composition_it): New member lookback.
11531
115322008-09-02 Chong Yidong <cyd@stupidchicken.com>
11533
11534 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11535 if moving by a single line.
11536
115372008-09-02 Andreas Schwab <schwab@suse.de>
11538
11539 * xterm.c (x_delete_display): Fix merge error.
11540
11541 * fileio.c (Fexpand_file_name): Remove unused variables.
11542
115432008-09-02 Eli Zaretskii <eliz@gnu.org>
11544
11545 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11546 storage on all platforms, not just on DOS_NT.
11547
115482008-09-02 Jason Rumney <jasonr@gnu.org>
11549
b8ff72fa
SM
11550 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11551 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
11552
115532008-09-01 Chong Yidong <cyd@stupidchicken.com>
11554
11555 * xfaces.c (Finternal_set_alternative_font_family_alist)
11556 (Finternal_set_alternative_font_registry_alist): Properly copy
11557 entire alist structure.
11558
115592008-09-01 Kenichi Handa <handa@m17n.org>
11560
d66c0241 11561 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 11562 representative chars of the script is a vector.
d66c0241
JB
11563 (ftfont_list): Handle the case where the representative chars of
11564 the script is a vector.
aac0c6e3
MR
11565
11566 * character.c (syms_of_character): Docstring of
11567 script-representative-chars fixed.
11568
115692008-08-31 Eli Zaretskii <eliz@gnu.org>
11570
11571 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11572 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11573 the menu. Allocate larger buffer for `text', to account for
11574 possible ^C characters.
11575
115762008-08-31 Martin Rudalics <rudalics@gmx.at>
11577
11578 * xdisp.c (prepare_menu_bars): Don't call
11579 Vwindow_size_change_functions with arg Qt.
11580
115812008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11582
11583 * font.h (font_range):
11584 * fileio.c (report_file_error):
46e722a9
SM
11585 * composite.c (composition_update_it): Yet another int/Lisp_Object
11586 mixup (YAILOM).
aac0c6e3
MR
11587
115882008-08-30 Glenn Morris <rgm@gnu.org>
11589
11590 * data.c (Fmake_variable_frame_local): Doc fix.
11591
11592 * frame.c (Fmodify_frame_parameters): Doc fix.
11593
115942008-08-30 Eli Zaretskii <eliz@gnu.org>
11595
11596 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11597 needed by GetTokenInformation.
11598 (w32_system_process_attributes): Check return values of all system
11599 APIs.
11600
11601 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11602 only when the state changes.
11603 (IT_update_begin, IT_update_end): Add termscript trace.
11604
11605 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11606 clipboard is unavailable. Set dst to NULL if it doesn't point to
11607 malloc'ed data.
11608 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11609 passing random values to xfree.
11610
11611 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11612 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11613
116142008-08-29 Jason Rumney <jasonr@gnu.org>
11615
11616 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11617
116182008-08-29 Eli Zaretskii <eliz@gnu.org>
11619
11620 * composite.c (fill_gstring_body): Avoid compiler warnings.
11621
11622 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11623 LGLYPH_SET_CODE to avoid compiler warnings.
11624
2ae37cf0 11625 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11626
11627 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11628
11629 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11630 LGLYPH_SET_CODE.
11631
116322008-08-29 Kenichi Handa <handa@m17n.org>
11633
11634 * fileio.c (report_file_error): Don't downcase the first character
11635 of errstring if it is still unibyte.
11636
116372008-08-29 Kenichi Handa <handa@m17n.org>
11638
11639 These changes are to re-implement the automatic composition so
11640 that it doesn't use text properties.
11641
11642 * Makefile.in (ftfont.o): Depend on composite.h.
11643 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11644
11645 * character.h (Vunicode_category_table): Extern it.
11646
11647 * character.c (Vunicode_category_table): New variable.
11648 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11649
11650 * chartab.c (optimize_sub_char_table): Perform more greedy
11651 optimization.
11652
b8ff72fa
SM
11653 * composite.h (enum composition_method):
11654 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
11655 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11656 (Vcomposition_function_table): Extern it.
11657 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11658 (composition_gstring_put_cache, composition_gstring_from_id)
11659 (composition_gstring_p, composition_gstring_width)
11660 (composition_compute_stop_pos, composition_reseat_it)
11661 (composition_update_it, composition_adjust_point): Extern them.
11662 (Fcomposition_get_gstring): EXFUN it.
11663
d66c0241 11664 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
11665 (Vcomposition_function_table)
11666 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
11667 (gstring_hash_table, gstring_work, gstring_work_headers):
11668 New variables.
aac0c6e3
MR
11669 (gstring_lookup_cache, composition_gstring_put_cache)
11670 (composition_gstring_from_id, composition_gstring_p)
11671 (composition_gstring_width, fill_gstring_header)
11672 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11673 (composition_reseat_it, composition_update_it)
b8ff72fa 11674 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
11675 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11676 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 11677 Defsubr composition_get_gstring.
aac0c6e3
MR
11678
11679 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11680 cmp_id.
11681 (struct glyph_string): Delete the member gidx. New members
11682 cmp_id, cmp_from, and cmp_to.
11683 (enum it_method): Delete GET_FROM_COMPOSITION.
11684 (struct composition_it): New struct.
11685 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11686 Delete c, len, cmp_id, cmp_len in u.comp.
11687
11688 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 11689 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 11690 (enum lglyph_indices): Likewise.
b8ff72fa 11691 (font_range): Adjust extern.
aac0c6e3
MR
11692 (font_fill_lglyph_metrics): Extern it.
11693
11694 * font.c (QCf): New variable.
11695 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11696 (font_prepare_composition): Delete this function.
11697 (font_range): Type and arguments changed.
11698 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11699 (font_fill_lglyph_metrics): New function.
b8ff72fa 11700 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 11701 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
11702 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11703 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
11704
11705 * fontset.h (font_for_char): Extern it.
11706
11707 * fontset.c (font_for_char): New function.
11708
11709 * ftfont.c: Include composite.h.
11710 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 11711 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
11712
11713 * indent.c: Include composite.h and dispextern.h.
11714 (check_composition): Delete this function.
11715 (scan_for_column): Handle composition by
11716 composition_compute_stop_pos, composition_reseat_it, and
11717 composition_update_it.
11718 (compute_motion): Likewise.
11719 (Fvertical_motion): Fix checking of composition.
11720
11721 * keyboard.c (adjust_point_for_property): Check composition by
11722 composition_adjust_point.
11723
b8ff72fa 11724 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
11725 struct glyph_string.
11726
b8ff72fa
SM
11727 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11728 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
11729 struct glyph.
11730 (produce_composite_glyph): Likewise.
11731
b8ff72fa
SM
11732 * w32term.c (x_draw_composite_glyph_string_foreground):
11733 Adjust for the change of struct glyph_string.
aac0c6e3
MR
11734 (x_draw_glyph_string): Likewise.
11735
11736 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11737 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11738
11739 * xdisp.c: Include font.h.
11740 (it_props): Delete the entry for Qauto_composed.
11741 (init_iterator): Initialize it->cmp_it.id to -1.
11742 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 11743 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
11744 (handle_auto_composed_prop): Delete it.
11745 (handle_composition_prop): Handle only static composition.
11746 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11747 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 11748 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
11749 (pop_it): Likewise.
11750 (get_next_element): Delete next_element_from_composition.
11751 (CHAR_COMPOSED_P): New macro.
11752 (get_next_display_element): For automatic composition, get a face
11753 from the font in the glyph-string.
11754 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 11755 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
11756 (next_element_from_string): Check if the character at the current
11757 position is composed by CHAR_COMPOSED_P.
11758 (next_element_from_buffer): Likewise.
d66c0241
JB
11759 (next_element_from_composition): Adjust for the change of struct it.
11760 Update it->cmp_it.
b8ff72fa
SM
11761 (dump_glyph): Adjust for the change of struct glyph.
11762 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
11763 it and struct glyph. Don't handle automatic composition here.
11764 (fill_gstring_glyph_string): New function.
11765 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 11766 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
11767 (BUILD_GSTRING_GLYPH_STRING): New macro.
11768 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11769 automatic composition.
b8ff72fa 11770 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 11771 struct glyph.
b8ff72fa 11772 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 11773
b8ff72fa 11774 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
11775 the change of struct glyph_string.
11776 (x_draw_glyph_string): Likewise.
11777
117782008-08-29 Glenn Morris <rgm@gnu.org>
11779
11780 * buffer.c (word-wrap): Doc fix.
11781 * xdisp.c (truncate-partial-width-windows): Doc fix.
11782 Increase default to 50.
11783
117842008-08-29 Chong Yidong <cyd@stupidchicken.com>
11785
11786 * xdisp.c (update_tool_bar_unwind): New function.
11787 (update_tool_bar): Temporarily set selected frame before building
11788 tool-bar items.
11789
117902008-08-28 Michael Albinus <michael.albinus@gmx.de>
11791
11792 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11793 snprintf, respectively.
11794 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11795
117962008-08-28 Chong Yidong <cyd@stupidchicken.com>
11797
11798 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11799 LDFLAGS to GNUstep CC invocation.
11800
118012008-08-27 Chong Yidong <cyd@stupidchicken.com>
11802
11803 * indent.c (Fvertical_motion): Revert last change. Handle the
11804 general case where we are moving forward, and PT spans multiple
11805 screen lines.
11806
11807 * eval.c (find_handler_clause): Temporarily increase
11808 max-lisp-eval-depth while printing the backtrace buffer, to
11809 guarantee that help-mode code can run.
11810
118112008-08-27 Eli Zaretskii <eliz@gnu.org>
11812
11813 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11814 colors under -rv.
11815 (IT_set_frame_parameters): Don't swap foreground and background
11816 colors if `(reverse . t)' is present in the frame properties.
11817 (internal_terminal_init): Call init_frame_faces only for the
11818 initial frame.
11819
118202008-08-27 Andreas Schwab <schwab@suse.de>
11821
11822 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11823
118242008-08-27 Andreas Schwab <schwab@suse.de>
11825
11826 * search.c (search_buffer): Set char_base to zero only at the end.
11827
118282008-08-27 Kenichi Handa <handa@m17n.org>
11829
b8ff72fa 11830 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11831
118322008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11833
11834 * xterm.c (x_term_init): Temporarily hide the partially
11835 initialized terminal while calling vendor-specific-keysyms.
11836
118372008-08-26 Eli Zaretskii <eliz@gnu.org>
11838
11839 * msdos.c (internal_terminal_init): Most initializations done only
11840 once, especially initial_screen_colors[] and termscript open.
11841
118422008-08-26 Chong Yidong <cyd@stupidchicken.com>
11843
11844 * eval.c (Fcondition_case): Doc fix.
11845
11846 * widgetprv.h (EmacsFramePart): Change font member to the new font
11847 struct.
11848
11849 * widget.c: Include character.h and font.h for XSETFONT.
11850 (setup_frame_gcs): Compute X font id from font struct, just once.
11851
118522008-08-26 Eli Zaretskii <eliz@gnu.org>
11853
11854 * term.c (get_named_tty): Fix last change.
11855
118562008-08-26 Chong Yidong <cyd@stupidchicken.com>
11857
11858 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11859 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11860
118612008-08-25 Eli Zaretskii <eliz@gnu.org>
11862
11863 * frame.c (do_switch_frame): Mark previously displayed frame as
11864 obscured for FRAME_MSDOS_P frames as well.
11865
118662008-08-24 Eli Zaretskii <eliz@gnu.org>
11867
11868 * frame.c (make_terminal_frame): Initialize f->terminal,
11869 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11870 Set the top frame to newly created frame.
11871 (Fmake_terminal_frame): Reuse the_only_display_info.
11872
11873 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11874 estimating available memory.
11875
b97439ce 118762008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11877
11878 * nsterm.m (ns_draw_window_cursor): Don't call
11879 NSDisableScreenUpdates and NSEnableScreenUpdates on
11880 non-NS_IMPL_COCOA systems.
11881
118822008-08-23 Andreas Schwab <schwab@suse.de>
11883
11884 * process.c (procfs_system_process_attributes): Fix use of
11885 uninitialized variables.
11886
118872008-08-23 Eli Zaretskii <eliz@gnu.org>
11888
11889 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11890
11891 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11892 calling tty-set-up-initial-frame-faces.
11893
b8ff72fa
SM
11894 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11895 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11896
11897 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11898 addition to output_termcap.
11899
11900 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11901
11902 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11903 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11904 highlight.
11905
11906 * process.c [!subprocesses]: Define QCname.
11907 (syms_of_process): Intern and staticpro it.
11908
11909 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11910 Adjust for changes in encoding/decoding routines.
11911 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11912 encode_coding and decode_coding.
11913
b8ff72fa 11914 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11915
11916 * dosfns.c: Include frame.h before termhooks.h.
11917 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11918 variable termscript.
11919
11920 * s/msdos.h (USER_FULL_NAME): Define.
11921 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11922
11923 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11924 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11925 pw->pw_gecos.
11926
11927 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11928 SELECTED_FRAME as additional (1st) argument.
11929 (tty_read_avail_input): Handle output_msdos_raw in
11930 addition to output_termcap.
11931
11932 * msdos.c: Include frame.h before termhooks.h.
11933 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11934 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11935 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11936 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11937 (IT_set_terminal_modes, IT_reset_terminal_modes)
11938 (IT_set_frame_parameters): Use tty->termscript instead of a global
11939 variable termscript.
11940 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11941 global variable terminal_coding. Don't refer to
11942 Vnonascii_translation_table.
11943 (internal_terminal_init): Set Vwindow_system in current_kboard.
11944 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11945 Announce date and time of session start, if termscript is open.
11946 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11947 term.c:init_tty). Open termscript only of not already open.
11948 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11949 here instead of dos_ttraw. Don't initialize display if this is an
11950 initial tty. Don't set FRAME_FONT.
11951 (Vwindow_system_version): Bump to 23.
11952 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11953 is available, set up mouse_position_hook.
11954 (dos_ttraw, IT_set_terminal_modes): If called with initial
11955 terminal, do nothing.
11956 (IT_set_frame_parameters): Handle the Qtty_type frame
11957 parameter by calling internal_terminal_init.
11958 (dos_set_window_size, show_mouse_face)
11959 (clear_mouse_face, IT_note_mode_line_highlight)
11960 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11961 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11962 (initialize_msdos_display): New function.
11963 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11964 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11965 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11966 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11967 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11968 (request_sigio, unrequest_sigio): Don't define, now defined on
11969 sysdep.c.
11970 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11971
11972 * term.c [MSDOS]: Include msdos.h.
11973 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11974 conditional to DOS_NT. Allow only one call to this function in a
11975 session. Don't allocate a new struct tty_display_info; instead,
11976 reuse the_only_display_info. Call get_tty_size to get screen
11977 dimensions. Call init_baud_rate to set bad_rate.
11978 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11979 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11980 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11981 (get_tty_terminal, get_named_tty, Ftty_type)
11982 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11983 output_termcap.
b8ff72fa
SM
11984 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11985 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11986 only when subprocesses are supported.
aac0c6e3
MR
11987
11988 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11989 f->output_data.x.
11990 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11991 terminal devices.
11992
5582fbc7 11993 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11994 x_output.
11995 (FRAME_FONT): Use output_data.tty.
11996 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11997 (struct x_display_info): Rename from display_info. Update all users in
11998 msdos.c.
aac0c6e3 11999 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 12000 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
12001 (dos_ttraw): Update prototype.
12002
12003 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12004 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12005
120062008-08-23 Jason Rumney <jasonr@gnu.org>
12007
12008 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12009 (fn_TIFFSetDirectory): New library function used.
12010 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12011 (tiff_load): Use :index to select among multiple images. Set count
12012 property when multiple images exist.
12013 (gif_format): Use :index, not :image.
12014
120152008-08-23 Chong Yidong <cyd@stupidchicken.com>
12016
12017 * xdisp.c (try_scrolling): Check INT_MAX instead of
12018 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12019 to obtain INT_MAX.
12020
120212008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12022
12023 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12024
120252008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12026
12027 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12028 GNUstep library location.
12029
120302008-08-21 Chong Yidong <cyd@stupidchicken.com>
12031
12032 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12033 before using it.
12034
12035 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12036
120372008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12038
12039 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12040 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12041 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12042 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12043 (EmacsApp-cursor_blink_handler): Remove declaration.
12044 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12045 match 01 Feb 2008 changes in xterm.c.
12046 (ns_read_socket): Add cast to avoid warning.
12047 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12048 GNUstep.
12049
120502008-08-20 Chong Yidong <cyd@stupidchicken.com>
12051
12052 * xselect.c (x_get_foreign_selection): Return nil if desired
12053 selection could not be obtained, instead of signalling an error.
12054
120552008-08-20 David Reitter <david.reitter@gmail.com>
12056
12057 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12058 * nsterm.m: Remove ns-specific code for cursor blinking.
12059 (ns_draw_window_cursor): Clear cursor properly rather than
12060 redrawing the area. Respect width of bar cursors.
12061 These changes enable the use of generic blink-cursor-mode and
12062 generic cursor types in NS and support smooth cursor movements (do
12063 not blink off after command).
12064 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12065 Nextstep, too.
12066
120672008-08-19 Kenichi Handa <handa@m17n.org>
12068
12069 * font.c (Vfont_log_deferred): New variable.
12070 (font_add_log): Check Vfont_log_deferred.
12071 (font_deferred_log): New function.
12072
12073 * font.h (font_deferred_log): Extern it.
12074
12075 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12076 for sorting.
12077 (face_for_char): Use deferred log.
12078
120792008-08-18 Kenichi Handa <handa@m17n.org>
12080
12081 * fontset.c (face_for_char): Add font log.
12082
12083 * font.c (font_add_log): Add the font properties :script, :lang,
12084 and :otf in the log.
12085
120862008-08-17 Chong Yidong <cyd@stupidchicken.com>
12087
12088 * xdisp.c: Remove dead code.
12089 (handle_invisible_prop, next_overlay_string): Defer call to
12090 setup_for_ellipsis.
12091 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12092
120932008-08-15 Chong Yidong <cyd@stupidchicken.com>
12094
12095 * xfaces.c (lookup_derived_face): Properly handle possible zero
12096 return value of get_lface_attributes.
12097 (merge_faces): Don't tell lookup_derived_face to signal an error
12098 if face is not found.
12099
12100 * dired.c (Fdirectory_files): Doc fix.
12101
12102 * process.c (make_process): Initialize kill_without_query struct
12103 member.
12104
121052008-08-15 Eli Zaretskii <eliz@gnu.org>
12106
12107 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12108 Alternative calculation of totphys for Visual Studio 6.
12109
12110 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12111
12112 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12113 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12114 All users changed.
12115 (stat): Only root directory passed to GetDriveType. Allow RAM
12116 disk as well as local fixed disk when w32-get-true-file-attributes
12117 is set to `local'.
12118 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12119 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12120 (w32_cached_id, w32_add_to_cache): New functions.
12121 (get_name_and_id): Look account names in the cache before calling
12122 lookup_account_sid.
12123 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12124 New initialization flags.
12125 (globals_of_w32): Initialize them to zero.
12126 (w32_system_process_attributes): Use w32_cached_id and
12127 w32_add_to_cache.
12128
121292008-08-14 Lawrence Mitchell <wence@gmx.li>
12130
12131 * lread.c (Fread_char, Fread_char_exclusive): If no character
12132 event is read before timeout is reached, return nil, rather than
12133 converting to a number.
12134
121352008-08-14 Chong Yidong <cyd@stupidchicken.com>
12136
12137 * fns.c (use_dialog_box): Doc fix.
12138
12139 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12140 on OS X.
12141
121422008-08-13 Chong Yidong <cyd@stupidchicken.com>
12143
12144 * frame.c (Qns_parse_geometry): New var.
12145 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12146
121472008-08-11 Chong Yidong <cyd@stupidchicken.com>
12148
12149 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12150 space character in calculating tabs.
12151
121522008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12153
12154 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12155
121562008-08-10 Glenn Morris <rgm@gnu.org>
12157
12158 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12159 silence gcc "limited range of data type" warnings in some
12160 make_fixnum_or_float calls.
12161
121622008-08-09 Eli Zaretskii <eliz@gnu.org>
12163
12164 * w32.c (w32_system_process_attributes): If the process does not
12165 exist, return nil.
12166
12167 * w32.c: Include thelp32.h, psapi.h and coding.h.
12168 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12169 declarations.
12170 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12171 (Process32Next_Proc): New typedefs.
12172 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12173 (g_b_init_process32_next, g_b_init_open_thread_token)
12174 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12175 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12176 (g_b_init_get_process_working_set_size)
12177 (g_b_init_global_memory_status_ex): New static variables.
12178 (globals_of_w32): Initialize them.
12179 (create_toolhelp32_snapshot, process32_first, process32_next)
12180 (open_thread_token, impersonate_self, revert_to_self)
12181 (get_process_memory_info, get_process_working_set_size)
12182 (global_memory_status, global_memory_status_ex): New wrapper
12183 functions.
12184 (w32_list_system_processes, w32_system_process_attributes)
12185 (enable_privilege, restore_privilege, ltime, process_times):
12186 New functions.
12187 (convert_time_raw): New function.
12188 (convert_time): Remove conversion of FILETIME into time in 100
12189 nsec units, call convert_time_raw instead.
12190
12191 * process.h (w32_list_system_processes, w32_system_process_attributes):
12192 Add prototypes.
12193 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12194 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12195 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12196 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12197
12198 * process.c (Fsystem_process_attributes): Doc fix.
12199
122002008-08-08 Chong Yidong <cyd@stupidchicken.com>
12201
12202 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12203 a continued multi-char glyph; if so, advance to the actual glyph.
12204
122052008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12206
12207 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12208
12209 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12210 (.m.o): Use it.
12211 * config.in: Regenerate.
12212
122132008-08-07 Chong Yidong <cyd@stupidchicken.com>
12214
12215 * xdisp.c (redisplay_window): Revert last change.
12216 (try_window): Check bottom scroll margin too.
12217
122182008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12219
12220 * config.in: Regenerate.
12221
12222 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12223 -list-load-path-shadows'.
12224 (nsgui.h): Reduce number of things depending on it.
12225
122262008-08-06 Chong Yidong <cyd@stupidchicken.com>
12227
12228 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12229 instead of window-end which does the wrong thing at eob.
12230 (try_cursor_movement): Minor optimization.
12231 (redisplay_window): If scroll margin is defined, don't assume
12232 window doesn't need scrolling.
12233
122342008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12235
12236 * config.in: Regenerate.
12237
12238 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12239 (mostlyclean): Don't delete *.d under NS.
12240
12241 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12242
122432008-08-06 Kenichi Handa <handa@m17n.org>
12244
12245 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12246
122472008-08-06 Andreas Schwab <schwab@suse.de>
12248
12249 * config.in: Regenerate.
12250
122512008-08-05 Chong Yidong <cyd@stupidchicken.com>
12252
12253 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12254 forcing a window start.
12255
12256 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12257 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12258
122592008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12260
12261 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12262 argument.
12263
122642008-08-05 Juanma Barranquero <lekktu@gmail.com>
12265
12266 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12267 <scroll-down-aggressively, before-change-functions>:
12268 <after-change-functions>: Reflow docstrings.
12269
122702008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 12271 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
12272
12273 Dock menu customization, based on a patch by Ken Raeburn, plus some
12274 other fixes.
12275 * nsmenu.m (dockMenu): New variable.
12276 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12277
12278 * nsterm.h (dockMenu): Declare.
12279
12280 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12281 (ns_term_init): Initialize dockMenu.
12282 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12283 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12284 left.
12285
12286 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12287
122882008-08-04 Chong Yidong <cyd@stupidchicken.com>
12289
12290 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12291
12292 * config.in: Regenerate.
12293
122942008-08-04 Seiji Zenitani <zenitani@mac.com>
12295
12296 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12297
122982008-08-04 Chong Yidong <cyd@stupidchicken.com>
12299
12300 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12301
123022008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12303
12304 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12305
12306 * keyboard.h: Comment an #endif.
12307
12308 * lisp.h (have_menus_p): Adjust comment.
12309
12310 * menu.c (find_and_return_menu_selection): Fix comparison with
12311 client_data.
12312
12313 * nsmenu.m (popup_activated_flag): New variable.
12314 (popup_activated): New function.
12315 (menu-or-popup-active-p): New exported lisp definition.
12316 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12317 when popup done.
12318 (ns_popup_dialog): Set popup_activated_flag.
12319
12320 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12321 version for GNUstep (handled by conditional typedef in nsterm.m).
12322 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12323 in rgb.txt).
12324
12325 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12326
12327 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12328
12329 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12330
12331 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12332 shortcircuit if popup_activated like GTK and X toolkit.
12333
12334 * m/inter386.h: Change DARWIN to DARWIN_OS.
12335
12336 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12337 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12338 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12339 comment on NO_SOCK_SIGIO.
12340
123412008-08-03 Chong Yidong <cyd@stupidchicken.com>
12342
12343 * nsterm.m (windowDidResize): Remove stopModal call.
12344
123452008-08-03 Andreas Schwab <schwab@suse.de>
12346
12347 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12348 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12349
123502008-08-02 Chong Yidong <cyd@stupidchicken.com>
12351
12352 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12353 Don't use uninitialized pointer variable when using getrlimit.
12354
123552008-08-02 Jason Rumney <jasonr@gnu.org>
12356
12357 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12358
123592008-08-02 Eli Zaretskii <eliz@gnu.org>
12360
12361 * alloc.c (NSTATICS): Bump to 0x640.
12362
12363 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12364
12365 * lisp.h: Add prototype for directory_files_internal.
12366
12367 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12368 New functions.
12369 (syms_of_process): Defsubr them. Add initializations for various
12370 Q* symbols used in procfs_system_process_attributes.
12371 (procfs_list_system_processes, procfs_system_process_attributes)
12372 [HAVE_PROCFS]: New functions.
12373 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12374 (procfs_get_total_memory): New functions.
12375
123762008-08-01 Juanma Barranquero <lekktu@gmail.com>
12377
12378 * xfaces.c (Fx_load_color_file): Fix previous change;
12379 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12380
123812008-08-01 Michael Albinus <michael.albinus@gmx.de>
12382
12383 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12384
123852008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12386
12387 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12388
123892008-08-01 Chong Yidong <cyd@stupidchicken.com>
12390
12391 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12392
12393 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12394 define NSApplicationDelegateReplySuccess.
12395 (EmacsView -converstationIdentifier): Use long instead of
12396 NSInteger for GNUstep, since it doesn't have NSInteger.
12397
12398 * xmenu.c: Revert last change.
12399
12400 * keyboard.h: Fix last change.
12401
124022008-08-01 Juanma Barranquero <lekktu@gmail.com>
12403
12404 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12405 on Windows.
12406
124072008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12408
12409 Warning clearing and clean-up in NS port.
12410 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12411 Add prototypes.
12412 * nsgui.h (FACE_DEFAULT): Remove, unused.
12413 (XGCValues): Change colors to unsigned long.
12414 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12415 nsterm.m.
12416 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12417 (ns_list_fonts): Remove, unused.
12418 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12419 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12420 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12421 (nsfont_draw): Compare face colors to 0, not nil.
12422 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12423 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12424 (-addSubmenuWithTitle:): Use NSMenuItem class.
12425 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12426 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12427 (ns_clip_to_row): Make gc arg a BOOL.
12428 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12429 ns_clip_to_row() call.
12430 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12431 used). Cast FRAME_FONT assignments.
12432 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12433 (ns_string_to_lispmod): Change arg to const char.
12434 (ns_term_init): Use NSMenuItem class.
12435 (EmacsApp -openFile:): Move to different section of file.
12436 (EmacsApp -application:openFiles:): Don't return a value, call
12437 -replyToOpenOrPrint:.
12438 (EmacsView -keyDown:): Fix up cast.
12439 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12440 (EmacsView -menuDown:): Cast tag in call to
12441 find_and_call_menu_selection().
12442 (ns_list_fonts): Remove, unused.
12443 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12444 (ns_fontname_to_xlfd): Make static.
12445 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12446 Remove prototypes (now in keyboard.h).
12447 (next_menubar_widget_id): Remove, unused.
12448 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12449 Remove prototypes (now in keyboard.h).
12450 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12451
124522008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12453
12454 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12455 (floatfns.o): Depend on syssignal.h.
12456 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12457
12458 * systty.h: Fix previous change that removed BSD_TERMIOS.
12459 Add comments to #ifdefs.
12460
124612008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12462
12463 * w32fns.c (w32-load-color-file): Remove.
12464 (x-open-connection): Use renamed Fx_load_color_file.
12465 * xfaces.c (x-load-color-file): Add.
12466 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12467 Emacs.clr.
12468 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12469
124702008-07-31 Michael Albinus <michael.albinus@gmx.de>
12471
12472 * dbusbind.c (Fdbus_call_method_asynchronously)
12473 (Fdbus_method_error_internal): New defuns.
12474 (xd_read_message): Handle also reply messages.
12475 (Vdbus_registered_functions_table): Extend docstring.
12476
124772008-07-31 Juanma Barranquero <lekktu@gmail.com>
12478
12479 * keyboard.c (gobble_input): Fix previous change.
12480
124812008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12482
12483 * bitmaps/README:
12484 * xfns.c:
12485 * termcap.c:
12486 * term.c:
12487 * syswait.h:
12488 * systty.h:
12489 * systime.h:
12490 * syssignal.h:
12491 * sysdep.c:
12492 * process.h:
12493 * process.c:
12494 * print.c:
12495 * ndir.h:
12496 * lread.c:
12497 * keyboard.c:
12498 * getpagesize.h:
12499 * floatfns.c:
12500 * fileio.c:
12501 * emacs.c:
12502 * doc.c:
12503 * dispnew.c:
12504 * dired.c:
12505 * data.c:
12506 * callproc.c:
12507 * buffer.c:
12508 * README:
12509 * Makefile.in:
12510 * s/template.h:
12511 * s/msdos.h:
12512 * m/vax.h: Remove VMS support.
12513 * s/vms.h:
12514 * vlimit.h:
12515 * uaf.h:
12516 * temacs.opt:
12517 * param.h:
12518 * ioctl.h: Remove file.
12519
125202008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12521
12522 * s/ms-w32.h (MULTI_KBOARD): Remove.
12523 * xterm.c:
12524 * xselect.c:
12525 * xfns.c:
12526 * window.c:
12527 * w32term.c:
12528 * w32fns.c:
12529 * terminal.c:
12530 * termhooks.h:
12531 * term.c:
12532 * sysdep.c:
12533 * keyboard.h:
12534 * keyboard.c:
12535 * frame.h:
12536 * frame.c:
12537 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12538 * config.in: Regenerate.
12539
125402008-07-30 Jason Rumney <jasonr@gnu.org>
12541
12542 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12543
12544 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12545 (w32font_open_internal): Get unicode version of textmetrics.
12546 Don't enable or disable glyph indices here.
12547 (w32font_open): Disable use of glyph indices.
12548
12549 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12550
125512008-07-30 Chong Yidong <cyd@stupidchicken.com>
12552
12553 * minibuf.c (Vread_buffer_function): Doc fix.
12554
125552008-07-30 John Paul Wallington <jpw@pobox.com>
12556
12557 * minibuf.c (read_buffer_completion_ignore_case): New var.
12558 (Fread_buffer): Use it.
12559
125602008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12561
12562 * systty.h (sensemode): Remove empty #if. Remove reference to
12563 BSD_TERMIOS, unused.
12564
12565 * sysdep.c: Remove reference to DGUX.
12566 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12567
12568 * config.in: Regenerate.
12569
125702008-07-30 Jason Rumney <jasonr@gnu.org>
12571
12572 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12573
125742008-07-29 Jason Rumney <jasonr@gnu.org>
12575
12576 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12577 is populated.
12578 (uniscribe_encode_char): Always use uniscribe.
12579 Avoid using context if cache is populated.
12580
125812008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12582
12583 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12584 open menu.
12585
12586 * gtkutil.c (menu_nav_ended): Remove.
12587 (create_menus): Remove signal connect for menu_nav_ended.
12588
125892008-07-28 Chong Yidong <cyd@stupidchicken.com>
12590
12591 * xdisp.c (redisplay_window): Check return value of
12592 compute_window_start_on_continuation_line before forcing a window
12593 start.
12594
125952008-07-28 Jason Rumney <jasonr@gnu.org>
12596
12597 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12598
12599 * w32term.c (w32_enable_unicode_output, cleartype_active):
12600 Remove obsolete display options.
12601 (x_draw_glyph_string_background): Don't use old cleartype_active
12602 workaround.
12603 (w32_initialize): Remove cleartype_active initialization.
12604 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12605
126062008-07-28 Andreas Schwab <schwab@suse.de>
12607
12608 * lisp.h (init_weak_hash_tables, syms_of_font)
12609 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12610 (remove_hash_entry): Don't declare.
12611 * eval.c (maybe_call_debugger): Make static and move before use.
12612 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12613 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12614 * xterm.h (x_set_frame_alpha): Declare.
12615
126162008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12617
12618 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12619 (create_menus): Connect selection-done to menu_nav_ended.
12620
126212008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12622
12623 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12624 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12625 parameter with read of 'alpha' one.
12626 (Qns_frame_parameter): Remove.
5582fbc7 12627 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12628 (next-selection-coding-system, Vselection_coding_system)
12629 (Vnext_selection_coding_system): Drop.
12630
126312008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12632
12633 * nsfns.m (do-applescript, do_applescript): Rename to
12634 ns-do-applescript, ns_do_applescript, and move within file.
12635
126362008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12637
12638 Remove support for Mac Carbon.
12639 * mactoolbox.c:
12640 * macterm.h:
12641 * macterm.c:
12642 * macselect.c:
12643 * macmenu.c:
12644 * macgui.h:
12645 * macfns.c:
12646 * mac.c: Remove file.
12647 * s/darwin.h:
12648 * m/intel386.h:
12649 * xfaces.c:
12650 * xdisp.c:
12651 * window.c:
12652 * tparam.c:
12653 * termhooks.h:
12654 * termcap.c:
12655 * term.c:
12656 * syssignal.h:
12657 * sysselect.h:
12658 * sysdep.c:
12659 * process.c:
12660 * lread.c:
12661 * lisp.h:
12662 * keyboard.c:
12663 * image.c:
12664 * fringe.c:
12665 * frame.h:
12666 * frame.c:
12667 * fontset.c:
12668 * font.h:
12669 * font.c:
12670 * fns.c:
12671 * fileio.c:
12672 * emacs.c:
12673 * dispnew.c:
12674 * dispextern.h:
12675 * config.in:
12676 * atimer.c:
2ae37cf0 12677 * Makefile.in: Remove code for Carbon.
aac0c6e3 12678
f0131492 126792008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12680
12681 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12682
126832008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12684
12685 * macterm.h (kCGBitmapByteOrder32Host): New define for
12686 non-universal SDKs.
12687
12688 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12689 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12690
12691 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12692 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12693
126942008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12695
12696 * w32inevt.c: Include dispextern.h.
12697
126982008-07-26 Andreas Schwab <schwab@suse.de>
12699
12700 * print.c (print_object): Fix off-by-one in last change.
12701
127022008-07-25 Juanma Barranquero <lekktu@gmail.com>
12703
12704 * term.c (syms_of_term): Don't initialize default_orig_pair,
12705 default_set_foreground and default_set_background on Windows.
12706
127072008-07-25 Jason Rumney <jasonr@gnu.org>
12708
12709 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12710 ScriptItemize. Clean up return value checking. Remove unused
12711 variables.
12712 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12713 shaping engine.
12714
12715 * w32font.c (w32font_has_char): Handle the case where we can't
12716 determine the script for a character.
12717
127182008-07-25 Chong Yidong <cyd@stupidchicken.com>
12719
12720 * term.c (syms_of_term): Initialize default_orig_pair,
12721 default_set_foreground, and default_set_background.
12722
12723 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12724 clash (bug#86).
12725 (getloadavg): Callers changed.
12726
12727 * image.c (svg_load_image): Fix last change.
12728 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12729 image size is valid. Use g_object_unref instead of deprecated
12730 rsvg_handle_free to free rsvg handle.
12731 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12732
127332008-07-25 Jason Rumney <jasonr@gnu.org>
12734
12735 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12736 surrogates before looking up glyph index.
12737 (w32font_text_extents): Encode as surrogates if falling back to
12738 functions that need UTF-16 wide chars.
12739
12740 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12741 BMP as surrogates before looking up glyph index.
12742
127432008-07-25 Chong Yidong <cyd@stupidchicken.com>
12744
12745 * image.c (svg_load_image): Check for failure in return value of
12746 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12747
127482008-07-25 Jason Rumney <jasonr@gnu.org>
12749
12750 * w32font.c (Fx_select_font): Reverse sense of second arg.
12751
127522008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12753
12754 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12755 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12756
12757 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12758 (PURESIZE): Use it.
12759
127602008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12761
12762 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12763 * m/alpha.h (TEXT_END):
12764 * m/ibmrs6000.h (TEXT_END):
12765 * m/macppc.h (TEXT_END):
12766 * s/darwin.h (TEXT_END):
12767 * s/msdos.h (TEXT_END): Remove, unused.
12768 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12769 * s/cygwin.h: Remove comment.
12770
12771 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12772 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12773 * m/intel386.h (DOT_GLOBAL_START):
12774 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12775 (USG): Remove, file not used on USG platforms.
12776
12777 * Makefile.in (HAVE_X11): Remove empty #else.
12778
127792008-07-24 Andreas Schwab <schwab@suse.de>
12780
12781 * fileio.c (Finsert_file_contents): Properly adjust undo list
12782 after format conversion.
12783
127842008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12785
12786 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12787 (menu_nav_ended): Remove.
12788 (create_menus): Remove signal connect for menu_nav_ended.
12789 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12790 create_menus.
12791 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12792
127932008-07-23 Jason Rumney <jasonr@gnu.org>
12794
12795 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12796 with opened font.
12797 (w32font_open): Set font type to gdi.
12798
12799 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12800
128012008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12802
12803 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12804 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12805 defines it.
12806 * unexec.c (ADDR_CORRECT): Define unconditionally.
12807
12808 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12809
12810 * unexec.c: Remove code depending on !COFF and USG, the file is
12811 not used for such systems.
12812
12813 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12814 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12815 (LD_SWITCH_SYSTEM_1): Remove, update users.
12816
12817 * s/darwin.h (DATA_END):
12818 * m/intel386.h (DATA_END):
12819 * m/ibmrs6000.h (DATA_END):
12820 * m/alpha.h (DATA_END): Remove, unused.
12821
12822 * config.in: Regenerate.
12823 * s/ms-w32.h (subprocesses): Define unconditionally.
12824 * s/template.h (subprocesses): Update comment.
12825 * s/vms.h (subprocesses):
12826 * s/usg5-4.h (subprocesses):
12827 * s/hpux10-20.h (subprocesses):
12828 * s/gnu-linux.h (subprocesses):
12829 * s/cygwin.h (subprocesses):
12830 * s/bsd-common.h (subprocesses):
12831 * s/aix4-2.h (subprocesses):
12832 * s/darwin.h (subprocesses): Do not define, defined by default now.
12833
12834 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12835 Remove all references.
12836 (temacs): Add GNUstep specific ld flags.
12837
12838 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12839 similarly to what X does.
12840
128412008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12842
12843 * nsfns.m (x-list-fonts): Remove.
12844 (syms_of_nsfns): Drop the x-list-fonts declaration.
12845 * nsterm.m: Get rid of remaining "//" comments.
12846
128472008-07-22 Chong Yidong <cyd@stupidchicken.com>
12848
12849 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12850
12851 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12852 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12853 (Fns_own_selection_internal, Fx_disown_selection_internal)
12854 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12855
12856 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12857 ... */' style of docstrings. Doc fixes.
12858
128592008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12860
12861 * terminfo.c (UP, BC, PC): Undo previous change.
12862
12863 * nsfns.m: Rename ns prefixed functions/variables to the
12864 corresponding x versions. Update references.
12865
128662008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12867
12868 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12869
128702008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12871
12872 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12873 Remove forwarding functions.
12874 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12875 non-static.
12876 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12877 non-static.
12878 (ns_frame_parm_handlers): Use the new names.
12879 (syms_of_nsfns): Move to the end of file.
12880
12881 * nsterm.m (syms_of_nsterm): Move to the end of file.
12882
12883 * dispnew.c (init_display): Remove code for X10.
12884
128852008-07-22 Jason Rumney <jasonr@gnu.org>
12886
12887 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12888 bare drive.
12889
128902008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12891
12892 * nsterm.m (syms_of_nsterm): Remove debugging println.
12893
128942008-07-22 David Reitter <david.reitter@gmail.com>
12895
12896 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12897 Carbon implementation of the same functionality: execute arbitrary
12898 AppleScript code.
12899
129002008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12901
12902 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12903 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12904 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12905 (Fx_display_mm_height, Fx_display_mm_width)
12906 (Fx_display_backing_store, Fx_display_visual_class)
12907 (Fx_display_save_under, Fx_open_connection)
12908 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12909 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12910 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12911 (Fx_display_pixel_width, Fx_display_pixel_height)
12912 (Fx_display_usable_bounds, Fx_display_planes)
12913 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12914 ... */' style of docstrings.
12915
129162008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12917
12918 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12919 on this platform.
12920 (mips):
12921 * m/iris4d.h (mips): Do not define.
12922 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12923
12924 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12925
12926 * image.c:
12927 * nsfns.m:
12928 * nsselect.m:
12929 * nsterm.h:
12930 * nsterm.m: Rename ns prefixed functions/variables to the
12931 corresponding x versions. Update references.
12932
12933 * m/ibms390x.h (NO_REMAP): Do not undefine.
12934
12935 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12936
129372008-07-21 Chong Yidong <cyd@stupidchicken.com>
12938
12939 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12940 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12941 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12942 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12943 (Fns_display_mm_height, Fns_display_mm_width)
12944 (Fns_display_backing_store, Fns_display_visual_class)
12945 (Fns_display_save_under, Fns_open_connection)
12946 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12947 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12948 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12949 (Fns_display_pixel_width, Fns_display_pixel_height)
12950 (Fns_display_usable_bounds, Fx_display_planes)
12951 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12952
129532008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12954
12955 * print.c (print_object): Check print_depth before searching for
12956 circularities.
12957
129582008-07-21 Michael Albinus <michael.albinus@gmx.de>
12959
12960 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12961 only sprintf.
12962
129632008-07-21 Kenichi Handa <handa@m17n.org>
12964
12965 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12966
129672008-07-20 Andreas Schwab <schwab@suse.de>
12968
12969 * syntax.c (find_start_pos, find_start_value)
12970 (find_start_value_byte, find_start_begv, find_defun_start)
12971 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12972
129732008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12974
12975 * s/sol2-3.h: Insert contents of s/sol2.h.
12976 (LD_SWITCH_SYSTEM): Remove redundant definition.
12977 * s/sol2.h: Remove, unused.
12978
129792008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12980
12981 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12982
129832008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12984
12985 * Makefile.in (ns_appdir): Fix typo in find command.
12986
129872008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12988
12989 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12990
12991 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12992 added not supported anymore.
12993
12994 * s/usg5-4-2.h (LIBS_SYSTEM):
12995 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12996
12997 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12998 * s/lynxos.h (GETPGRP_NO_ARG):
12999 * s/hpux10-20.h (NO_SIOCTL_H):
13000 * s/gnu.h (GETPGRP_NO_ARG):
13001 * s/gnu-linux.h (NO_SIOCTL_H):
13002 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13003 * s/cygwin.h (GETPGRP_NO_ARG):
13004 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13005 (C_DEBUG_SWITCH): Remove duplicate definition.
13006
13007 * m/ibms390.h: Remove boilerplate comments.
13008
13009 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13010
13011 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13012 (wait_reading_process_output): Remove code for SunOS, platform not
13013 supported anymore. Use SOLARIS2 instead of sun.
13014
130152008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13016
13017 * font.c (font_open_by_name): Under NS, default lface height to zero.
13018 (font_open_for_lface): Under NS, set size based on frame fontsize.
13019 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13020 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13021
130222008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13023
13024 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13025 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13026 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13027 YES/NO.
13028 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13029 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13030 * Makefile.in (clean): Clear out build destination dir.
13031
130322008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13033
13034 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13035 xterm, xselect.
13036 * lisp.h: Remove declaration of hash_remove.
13037 * nsgui.h: Remove redefinitions of hash_remove.
13038 * fns.c (hash_remove): Rename to hash_remove_from_table.
13039
130402008-07-19 Seiji Zenitani <zenitani@mac.com>
13041
13042 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13043 strdup() the family UTF8String before modifying it.
13044
130452008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13046
13047 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13048 NS_FACE_BACKGROUND with 0 instead of nil.
13049 * nsfont.m (nsfont_draw): Same.
13050
130512008-07-19 Chong Yidong <cyd@stupidchicken.com>
13052
13053 * nsfns.m (ns_set_background_color): Fix crash.
13054
130552008-07-18 Chong Yidong <cyd@stupidchicken.com>
13056
13057 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13058
130592008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13060
13061 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13062
130632008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13064
13065 * gtkutil.c: Include <config.h> instead of "config.h".
13066
13067 * lisp.h (Foverlay_buffer): Add EXFUN.
13068
13069 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13070 child process to complete child_setup. Undo 2005-09-21 change.
13071
13072 * s/darwin.h: Mention setsid after vfork.
13073
130742008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13075
13076 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13077 Depend on macgui.h.
13078
13079 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13080 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13081
13082 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13083 and f19.
13084 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13085
13086 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13087 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13088 Remove enumerators.
13089
13090 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13091 Check if FACE_FROM_ID returns NULL.
13092
130932008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13094
13095 * w32inevt.c (change_frame_size): Remove extern declaration.
13096 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13097 change_frame_size.
13098
130992008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13100
13101 * getloadavg.c: Revert last change (2008-07-15).
13102
131032008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13104
13105 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 13106 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
13107 from configure.
13108
131092008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13110
13111 * s/sol2.h:
13112 * s/sol2-4.h: Reorganize conditionals.
13113
13114 * ecrt0.c: Remove code depending on m68000, not used anymore.
13115
13116 * fns.c (hash_remove): Make static.
13117 * lisp.h (hash_remove): Don't prototype.
13118
13119 * m/ibmrs6000.h:
13120 * m/ibms390x.h:
13121 * m/macppc.h: Remove boilerplate comments.
13122
13123 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13124 Solaris, which does not need them.
13125
13126 * m/vax.h: Remove comments about unsupported systems.
13127
13128 * s/darwin.h: Reorganize ifdefs.
13129
131302008-07-17 Andreas Schwab <schwab@suse.de>
13131
13132 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13133
131342008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13135
13136 Use SDATA. Follow coding convention of placing operators at
13137 beginning of next line rather than end of previous line, and placing
13138 spaces around infix operators.
13139
13140 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13141 in case it was defined already.
13142 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13143 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13144 ns_default.
13145 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13146 Lisp_Objects.
13147 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13148 (ns_defined_color, ns_color_to_lisp): Declare.
13149 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13150 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13151 it's accepted even with USE_LISP_UNION_TYPE.
13152 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13153 (update_frame_tool_bar): Remove apparently obsolete tests for
13154 non-integerness of f->tool_bar_lines.
13155 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13156 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13157 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13158 (nsfont_open): Don't confuse NULL for Qnil.
13159 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13160 * menu.h (find_and_call_menu_selection):
13161 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13162 (find_and_return_menu_selection): Always return something.
13163 * frame.h: Include dispextern.h for Display_Info.
13164 (display_x_get_resource): Declare.
13165
131662008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13167
13168 * syntax.c: Remove stdio.h include accidentally introduced in
13169 Emacs.app commit.
13170 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13171 NS_IMPL_COCOA.
13172 * keyboard.c (handle_async_input, input_available_signal): Remove
13173 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13174
131752008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13176
13177 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13178 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13179 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13180 Use SDATA.
13181
13182 * keymap.c: Remove all NS-specific code.
13183 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13184 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13185 where_is_preferred_modifier, return a different value depending on how
13186 preferred is the binding.
13187 (where_is_internal): Adjust accordingly.
13188 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13189 Adjust to new preferred_sequence_p.
13190 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13191 * keyboard.c (parse_solitary_modifier): Not static any more.
13192 * keyboard.h (parse_solitary_modifier): Declare.
13193
131942008-07-16 Andreas Schwab <schwab@suse.de>
13195
13196 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13197 of easymenu.
13198
131992008-07-16 Chong Yidong <cyd@stupidchicken.com>
13200
13201 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13202 that we don't move off the line.
13203
132042008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13205
13206 * keyboard.c (Qsuper): Remove.
13207 (parse_menu_item): Don't call where_is_internal specially for NS.
13208
132092008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13210
13211 * s/gnu-linux.h: Remove boilerplate comments.
13212
13213 * m/alpha.h (__ELF__): Consolidate conditions.
13214
13215 * m/m68k.h (linux): Use GNU_LINUX instead.
13216 Remove boilerplate comments.
13217
13218 * m/intel386.h: Undo refactoring from previous change.
13219 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13220 too, remove dead code.
13221 (linux): Use GNU_LINUX instead.
13222
132232008-07-16 Jason Rumney <jasonr@gnu.org>
13224
13225 * w32gui.h: Repeat 26 June changes lost by last change.
13226
132272008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13228
13229 * systty.h: Remove code for Aix on 386, unsupported platform.
13230
13231 * s/ms-w32.h: Remove boilerplate comments.
13232 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13233
13234 * s/gnu-linux.h (TERM): Remove support.
13235 (HAVE_SYSVIPC): Remove, unused.
13236 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13237 for this system.
13238
13239 * process.c: Remove support for IRIS, unused.
13240 Remove support for TERM, not relevant anymore.
13241
13242 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13243 used with the definition.
13244
13245 * s/aix4-2.h (static): Do not undef.
13246
13247 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13248 only used on Aix.
13249 (HAVE_SYSVIPC): Remove, unused.
13250
13251 * m/hp800.h (CANNOT_DUMP): Do not undef.
13252
13253 * m/alpha.h: Fix comment.
13254
13255 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13256 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13257 used by this configuration.
13258 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13259 * unexec.c: Remove code depending on HPUX and
13260 USG_SHARED_LIBRARIES, not used with this file. Remove code
13261 depending on IRIS, unused. Remove if 0-ed code.
13262
13263 * s/template.h: Remove comments about static.
13264
13265 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13266 Remove if 0-ed code.
13267 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13268 were the same as the default.
13269 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13270 Remove boilerplate comments.
13271 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13272 (HAVE_SYSVIPC): Remove, unused.
13273 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13274
13275 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13276 Remove boilerplate comments.
13277 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13278 Remove boilerplate comments.
13279 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13280 Remove boilerplate comments.
13281 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13282
13283 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13284 USG systems which do not use DATA_SEG_BITS.
13285 Refactor code. Remove boilerplate comments.
13286
13287 * m/ibms390.h:
13288 * m/m68k.h:
13289 * s/bsd-common.h:
13290 * s/cygwin.h:
13291 * s/darwin.h:
13292 * s/freebsd.h:
13293 * s/gnu.h:
13294 * s/msdos.h: Remove boilerplate comments.
13295
13296 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 13297 do not use this file.
aac0c6e3
MR
13298 (IRIS_4D): Remove, unused.
13299
13300 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 13301 do not use this file.
aac0c6e3
MR
13302 (SIGN_EXTEND_CHAR):
13303 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13304 * unexmips.c: Remove file, unused.
13305
13306 * editfns.c (Fuser_full_name): Replace the only use of
13307 USER_FULL_NAME with its value.
13308 * config.in: Regenerate.
13309
133102008-07-16 David Reitter <david.reitter@gmail.com>
13311
13312 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13313 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13314
133152008-07-16 Glenn Morris <rgm@gnu.org>
13316
13317 * emacs.c (system-type): Doc fix.
13318
133192008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13320
13321 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13322 If the cache doesn't work, let's fix it, rather than work around it.
13323
133242008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13325
13326 * Makefile.in: Correct additions for nsfont.o in last commit.
13327 * nsfont.m: New file (forgot last commit).
13328
133292008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13330
13331 * callproc.c (set_initial_environment): Initialize
13332 Vprocess_environment under CANNOT_DUMP (fixes crash when
13333 batch-compiling for bootstrap).
13334
133352008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 13336 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 13337
c4cc8b9a
JB
13338 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13339 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
13340
133412008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13342
13343 Changes and additions for NeXTstep windowing system (Cocoa and
13344 GNUstep) support.
13345
13346 * Makefile.in:
13347 * config.in: Support defines and build commands for NS port.
13348 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13349 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13350 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13351 windowing.
13352 (struct face): Add synth_ital field.
13353 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13354 (init_display): Initialize Vinitial_window_system to "ns" when so
13355 compiled.
13356 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13357 (display_arg): Use under NS.
13358 (main): Under NS, allocate autorelease pool and handle command line
13359 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13360 (standard_args): Add NS-specific args.
13361 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13362 * font.c (DEFAULT_ENCODING): New variable.
13363 (font_find_for_lface): Use it.
13364 (syms_of_font): Load syms_of_nsfont under NS.
13365 * font.h: Declare nsfont_driver when compiled under NS.
13366 * fontset.c: When compiling under NS, include nsterm.h.
13367 (fontset_from_font): Autoconstruct fontset under NS.
13368 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13369 symbol, document and use it.
13370 (do_switch_frame): When for_deletion under Cocoa, add
13371 Fraise_frame(Qnil).
13372 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13373 (x_get_arg): Allow "yes" and "no" as boolean values.
13374 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13375 Qright under Cocoa.
13376 (focus-follows-mouse): Default to 0 under NS.
13377 * frame.h (enum output_method): Add output_ns.
13378 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13379 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13380 (FRAME_WINDOW_P): NS-specific definition.
13381 * fringe.c (max_used_fringe_bitmap): Make public.
13382 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13383 (getloadavg): Use NeXT code under descendant OS's.
13384 * image.c (includes and header section, x_create_bitmap_from_data)
13385 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13386 (image_background_transparent, x_clear_image_1)
13387 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13388 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13389 (x_to_xcolors, x_from_xcolors, x_disable_image)
13390 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13391 other GUIs, including XPM support using code originally written for
13392 Carbon GUI.
13393 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13394 using NS API.
13395 (image_ascent): Use font metrics macros instead of direct struct field
13396 access.
13397 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13398 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13399 Also, handle NS as GTK for menu bar purposes.
13400 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13401 toolkit where they differ.
13402 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13403 use cachelist, still needed under NS.
13404 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13405 (struct widget_value): Define it here for menu.c.
13406 * keymap.c (includes): Include modifier internals.
13407 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13408 NS.
13409 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13410 support for preferring sequences using certain modifiers, specified by
13411 the FIRSTONLY argument.
13412 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13413 under NS GNUstep implementation.
13414 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13415 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13416 * menu.c: Include nsterm.h under NS.
13417 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13418 (free_menubar_widget_tree_value, update_submenu_strings)
13419 (find_and_call_menu_selection): Treat NS as X and NT.
13420 (find_and_return_menu_selection): New function, used for popup menus.
13421 * nsgui.h:
13422 * nsterm.h:
13423 * nsfns.m:
13424 * nsimage.m:
13425 * nsmenu.m:
13426 * nsselect.m:
13427 * nsterm.m: New files.
13428 * process.c (wait_reading_process_output): Under NS, call ns_select()
13429 instead of plain select().
13430 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13431 beginning of buffer.
13432 * sysselect.h (init_process): Rename when compiling under Cocoa to
13433 avoid name conflict.
13434 * termhooks.h (display_info): Add ns_display_info to union.
13435 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13436 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13437 COCOA environment.
13438 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13439 unexec() signature. (Note, this will dump, but the resulting file
13440 crashes; unexosx is used instead; keeping around for reference and
13441 possible aid in getting dump working under GNUstep.)
13442 * w32gui.h (button_type, widget_value): Remove definitions (now in
13443 keyboard.h).
13444 * window.c: Include nsterm.h when compiling under NS.
13445 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13446 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13447 other GUI windowing systems.
13448 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13449 GTK.
13450 (x_consider_frame_title): Under NS, set icon type and frame
13451 modified-state indicator; use ns_set_name_as_filename() when using
13452 formatted title.
13453 (update_window_cursor): Make public when compiling under NS.
13454 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13455 (hourglass_atimer, Vhourglass_delay
13456 * xfaces.c (header section, init_frame_faces, clear_font_table)
13457 (defined_color, unload_color, x_face_list_fonts)
13458 (prepare_face_for_display): Add NS support parallel to other GUIs.
13459 Emulate GCs like other non-X GUIs.
13460 (split_font_name): Don't lowercase font name under NS.
13461 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13462 under NS.
13463 * s/darwin.h: Add support for compilation under NS.
13464
134652008-07-15 Jason Rumney <jasonr@gnu.org>
13466
13467 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13468 (w32_show_hourglass): Rename from show_hourglass.
13469 (w32_hide_hourglass): Rename from hide_hourglass.
13470 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13471 (Vhourglass_delay): Declare extern.
13472 (hourglass_started): Remove.
13473
13474 * xdisp.c (Vhourglass_delay): Remove static.
13475 (hourglass_started, start_hourglass, cancel_hourglass):
13476 Don't include these versions on WINDOWSNT.
13477
134782008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13479
13480 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13481 variables (formerly in xfns.c).
13482 (show_hourglass, hide_hourglass): New prototypes (same).
13483 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13484 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13485 in xfns.c).
13486 (syms_of_xdisp): Declare/initialize display-hourglass,
13487 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13488 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13489 formerly in xfns.c.
13490 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13491 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13492 (start_hourglass, cancel_hourglass): Remove.
13493 (show_hourglass, hide_hourglass): Remove prototypes and static
13494 modifiers.
13495 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13496 hourglass_atimer, hourglass_shown_p declaration/initialization.
13497 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13498 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13499 (start_hourglass, cancel_hourglass): Remove.
13500 (show_hourglass, hide_hourglass): Remove prototypes and static
13501 modifiers.
13502 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13503 hourglass_atimer, hourglass_shown_p declaration/initialization.
13504 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13505 (DEFAULT_HOURGLASS_DELAY): Remove.
13506 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13507 hourglass_shown_p declaration/initialization.
13508
135092008-07-14 Jason Rumney <jasonr@gnu.org>
13510
13511 * w32fns.c (w32_get_arg): Remove wrapper function.
13512 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13513 directly.
13514 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13515
135162008-07-14 Kenichi Handa <handa@m17n.org>
13517
13518 * xfont.c (xfont_open): Add workaround for X's bug.
13519
135202008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13521
13522 * fontset.c: Include <stdio.h> unconditionally.
13523
135242008-07-13 Michael Albinus <michael.albinus@gmx.de>
13525
13526 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13527 for filtering.
13528
135292008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13530
13531 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13532
13533 * m/macppc.h:
13534 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13535
c4cc8b9a 13536 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
13537 (SPECIAL_EMACS_INT):
13538 * m/ia64.h (SPECIAL_EMACS_INT):
13539 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13540 * s/gnu.h (NLIST_STRUCT):
13541 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13542 * s/gnu-linux.h (LINUX):
13543 * s/msdos.h (HAVE_FACES):
13544 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13545
13546 * systty.h:
13547 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13548 anymore.
13549
135502008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13551
13552 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13553 always defined as int.
13554
13555 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13556 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13557 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13558 * s/freebsd.h (HAVE_WAIT_HEADER):
13559 * s/bsd-common.h (HAVE_UNION_WAIT):
13560 * s/aix4-2.h (HAVE_WAIT_HEADER):
13561 * m/mips.h (HAVE_UNION_WAIT):
13562 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13563 (COFF, static): Do not define, they are undefined later in the file.
13564
13565 * process.c (update_status): Don't use a union.
13566 (status_convert):
13567 (sigchld_handler): Use int instead of WAITTYPE.
13568
135692008-07-12 Chong Yidong <cyd@stupidchicken.com>
13570
13571 * indent.c (Fvertical_motion): Restore hscroll before moving to
13572 goal column.
13573
135742008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13575
13576 * lisp.h: Remove left over code.
13577
135782008-07-11 Andreas Schwab <schwab@suse.de>
13579
13580 * lisp.h: Fix logic in last change.
13581
13582 * menu.h: New file.
13583 * menu.c: Include it.
13584 * xmenu.c: Likewise.
13585 * Makefile.in: Update dependencies.
13586
135872008-07-11 Kenichi Handa <handa@m17n.org>
13588
13589 * fontset.c (fontset_from_font): Cancel the previous change.
13590
135912008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13592
13593 * lisp.h:
13594 * w32heap.c:
13595 * emacs.c:
13596 * alloc.c: Replace all references of NO_UNION_TYPE with
13597 USE_LISP_UNION_TYPE.
13598
13599 * m/xtensa.h (NO_UNION_TYPE):
13600 * m/vax.h (NO_UNION_TYPE):
13601 * m/template.h (NO_UNION_TYPE):
13602 * m/sparc.h (NO_UNION_TYPE):
13603 * m/mips.h (NO_UNION_TYPE):
13604 * m/macppc.h (NO_UNION_TYPE):
13605 * m/m68k.h (NO_UNION_TYPE):
13606 * m/iris4d.h (NO_UNION_TYPE):
13607 * m/intel386.h (NO_UNION_TYPE):
13608 * m/ibms390x.h (NO_UNION_TYPE):
13609 * m/ibms390.h (NO_UNION_TYPE):
13610 * m/ibmrs6000.h (NO_UNION_TYPE):
13611 * m/ia64.h (NO_UNION_TYPE):
13612 * m/hp800.h (NO_UNION_TYPE):
13613 * m/arm.h (NO_UNION_TYPE):
13614 * m/amdx86-64.h (NO_UNION_TYPE):
13615 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13616 defining it the same.
13617
136182008-07-10 Chong Yidong <cyd@stupidchicken.com>
13619
13620 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13621
136222008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13623
13624 * fileio.c:
50426a04 13625 * sysdep.c:
aac0c6e3
MR
13626 * systty.h:
13627 * m/ibmrs6000.h:
13628 * m/iris4d.h:
13629 * s/aix4-2.h:
13630 * s/freebsd.h:
13631 * s/gnu-linux.h:
13632 * s/hpux10-20.h:
13633 * s/hpux11.h:
13634 * s/netbsd.h:
13635 * s/sol2-3.h:
13636 * s/sol2-4.h:
13637 * s/sol2.h:
13638 * s/usg5-4.h:
13639 * s/vms.h: Remove references to unused variables.
13640
136412008-07-10 Andreas Schwab <schwab@suse.de>
13642
13643 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13644 pattern before matching the generic family.
13645
136462008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13647
13648 * unexec.c:
13649 * s/vms.h:
13650 * s/usg5-4-2.h:
13651 * s/sol2-5.h:
13652 * s/freebsd.h:
13653 * s/darwin.h: Remove dead code.
13654
13655 * m/template.h:
13656 * m/sparc.h:
13657 * m/mips.h:
13658 * m/m68k.h:
13659 * m/iris4d.h:
13660 * m/intel386.h:
13661 * m/ibms390x.h:
13662 * m/ibms390.h:
13663 * m/ia64.h:
13664 * m/hp800.h:
13665 * m/arm.h:
13666 * m/amdx86-64.h: Remove dead code and references to unused
13667 and compiler defined symbols.
13668
13669 * unexmips.c:
13670 * unexelf.c: Remove references to desupported systems.
13671
13672 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13673
13674 * m/powermac.h: Remove boilerplate comments.
13675 (NO_REMAP): Remove unused definition.
13676
13677 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13678 define them.
13679
136802008-07-10 Kenichi Handa <handa@m17n.org>
13681
13682 * xfont.c (xfont_open): Log the reason of failure.
13683
136842008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13685
13686 * fontset.c (fontset_get_font_group):
13687 * font.c (font_check_otf): Specify argument types.
13688
136892008-07-09 Kenichi Handa <handa@m17n.org>
13690
13691 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13692 non-ASCII char is found.
13693
13694 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13695 (reorder_font_vector): Change the arg preferred_family to font.
13696 Prefer the spec matching with font.
13697 (fontset_get_font_group): New function.
13698 (fontset_find_font): Change the format of an element of a realized
13699 fontset. Use fontset_get_font_group.
13700 (fontset_font): Try the current fontset, the default fontset, the
13701 fallbacks of the current fontset, and the fallbacks of the default
13702 fontset in this order.
13703 (face_for_char): Delete the shortcut to use the current font.
13704 (fontset_from_font): Don't set fonts for Latin in the fontset.
13705
13706 * font.h (font_make_object, font_match_p): Adjust prototypes.
13707
13708 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13709
13710 * font.c (font_make_object): New arg entity and pixelsize.
13711 (font_check_otf_features, font_check_otf): New functions.
13712 (font_match_p): Check :lang, :script, and :otf properties.
13713
13714 * xfont.c (xfont_open): Adjust it for the change of
13715 font_make_object.
13716 (xfont_text_extents): Fix initial setting of metrics.
13717
13718 * ftfont.c (struct ftfont_info): New member index, delete member
13719 fc_charset_idx. Make the member order compatible with struct
13720 xftfont_info.
13721 (fc_charset_table): Change charset names to registry names.
13722 (ftfont_pattern_entity): Delete the args registry and
13723 fc_charset_idx. Change the value of :font-entity property
13724 to (FONTNAME . INDEX). Always set :registry property to
13725 `iso10646-1'.
13726 (struct ftfont_cache_data): New struct.
13727 (ftfont_lookup_cache): New arg for_face.
13728 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13729 (ftfont_driver): Set the member otf_capability.
13730 (ftfont_get_charset): Adjust it for the change of
13731 fc_charset_table.
13732 (OTF_TAG_SYM): New macro.
13733 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13734 for the change of fc_charset_table.
13735 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13736 ftfont_pattern_entity. Add FC_INDEX to objset.
13737 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13738 and ftfont_pattern_entity.
13739 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13740 font_make_object, struct ftfont_info.
13741 (ftfont_has_char): Use ftfont_get_fc_charset.
13742 (ftfont_otf_features, ftfont_otf_capability): New functions.
13743 (ftfont_shape): Use ftfont_get_otf.
13744 (ftfont_text_extents): Fix initial setting of metrics.
13745
13746 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13747 member order compatible with struct ftfont_info.
13748 (xftfont_open): Add FC_CHARSET to the pattern. Set
13749 xftfont_info->ft_size. Don't unlock the face. Check BDF
13750 properties if appropriate.
13751 (xftfont_close): Unlock the face.
13752 (xftfont_anchor_point, xftfont_shape): Deleted.
13753 (syms_of_xftfont): Don't set members anchor_point and shape of
13754 xftfont_driver.
13755
13756 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13757 font_make_object.
13758
13759 * w32font.c (w32font_open): Adjust it for the change of
13760 font_make_object.
13761 (w32font_open_internal): Don't set properties of font_object here.
13762
137632008-07-08 Chong Yidong <cyd@stupidchicken.com>
13764
13765 * macfns.c (x_create_tip_frame):
13766 * w32fns.c (x_create_tip_frame):
13767 * xfns.c (x_create_tip_frame): Pass parameter argument to
13768 face-set-after-frame-default.
13769
13770 * xfaces.c (Finternal_merge_in_global_face): Save merged
13771 attributes for the default face back into the face vector.
13772
137732008-07-08 Andreas Schwab <schwab@suse.de>
13774
13775 * fontset.h: Declare fontset_from_font. Don't declare
13776 new_fontset_from_font and fontset_from_font_name.
13777 * xterm.c: Include "fontset.h".
13778 * Makefile.in (xterm.o): Update dependencies.
13779
137802008-07-08 Glenn Morris <rgm@gnu.org>
13781
13782 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13783 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13784
137852008-07-07 Chong Yidong <cyd@stupidchicken.com>
13786
13787 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13788 (x_set_frame_parameters): Don't bind it.
13789
137902008-07-07 Juanma Barranquero <lekktu@gmail.com>
13791
13792 * w32fns.c (map_w32_filename): Declare extern.
13793
137942008-07-07 Jason Rumney <jasonr@gnu.org>
13795
13796 * w32term.c (WS_EX_LAYERED): Define if not already.
13797
137982008-07-06 Chong Yidong <cyd@stupidchicken.com>
13799
13800 * xfaces.c (set_font_frame_param): Don't try to set the font
13801 parameter if it is still unspecified in the lface.
13802
138032008-07-05 Chong Yidong <cyd@stupidchicken.com>
13804
13805 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13806 face if it didn't already exist.
13807
13808 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13809
138102008-07-05 Andreas Schwab <schwab@suse.de>
13811
13812 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13813
138142008-07-05 Chong Yidong <cyd@stupidchicken.com>
13815
13816 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13817 word-wrapping.
13818 (IT_DISPLAYING_WHITESPACE): New macro.
13819 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13820 when word-wrapping. Simplify word-wrapping logic. Use correct
13821 pixel positions when saving copies of the iterator.
13822 (display_line): Use proper wrap point if the last character on a
13823 line was preceded by whitespace.
13824
138252008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13826
13827 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13828
138292008-07-04 Kenichi Handa <handa@m17n.org>
13830
13831 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13832
13833 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13834
138352008-07-02 Jason Rumney <jasonr@gnu.org>
13836
13837 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13838 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13839
13840 * xdisp.c (next_element_from_display_vector): Move assignment out
13841 of if statement.
13842
138432008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13844
13845 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13846
13847 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13848 (syms_of_fileio): Initialize and export them.
13849 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13850
13851 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13852 (Fsystem_move_file_to_trash): New function.
13853 (syms_of_w32fns): Export it to lisp.
13854
138552008-07-01 Jason Rumney <jasonr@gnu.org>
13856
13857 * w32font.c (w32font_text_extents): Don't count overhang as part
13858 of width.
13859
138602008-06-30 Miles Bader <miles@gnu.org>
13861
13862 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13863 Add `avoid_cursor_p' field.
13864
13865 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13866 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13867 (append_glyph, append_composite_glyph, produce_image_glyph)
13868 (append_stretch_glyph): Initialize avoid_cursor_p.
13869 (get_it_property): Rename from `get_line_height_property'.
13870 (x_produce_glyphs): Use get_it_property.
13871 (handle_line_prefix, push_display_prop): New functions.
13872 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13873 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13874 New variables.
13875 (syms_of_xdisp): Initialize them.
13876
138772008-06-30 Kenichi Handa <handa@m17n.org>
13878
13879 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13880 XftDefaultSubstitute (they are called in XftFontMatch).
13881 (xftfont_open): Fix args to ftfont_font_format.
13882
13883 * ftfont.c (fc_charset_table): New member lang.
13884 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13885 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13886 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13887 (ftfont_open): Fix args to ftfont_font_format.
13888 (ftfont_font_format): New arg filename.
13889
138902008-06-30 Chong Yidong <cyd@stupidchicken.com>
13891
13892 * xfaces.c (Finternal_merge_in_global_face): If default face was
13893 modified, realize it again. Update the font face attribute.
13894
138952008-06-29 Jason Rumney <jasonr@gnu.org>
13896
13897 * w32term.c (x_set_frame_alpha): Fix logic.
13898
138992008-06-29 Kenichi Handa <handa@m17n.org>
13900
13901 * fontset.c (Finternal_char_font): Return font-object instead of
13902 font-name.
13903
13904 * composite.c (get_composition_id): Fix the width calculation for TAB.
13905
139062008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13907
13908 * indent.c (Fvertical_motion): Properly handle float column arg.
13909
139102008-06-28 Jason Rumney <jasonr@gnu.org>
13911
13912 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13913 (pfnSetLayeredWindowAttributes): New function pointer.
13914 (w32_initialize): Initialize it when supported.
13915 (x_set_frame_alpha): New function.
13916
13917 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13918 (w32_frame_parm_handlers): Set alpha handler.
13919
13920 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13921
139222008-06-27 Jason Rumney <jasonr@gnu.org>
13923
13924 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13925 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13926 (w32_to_x_charset, x_to_w32_charset)
13927 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13928 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13929 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13930 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13931 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13932 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13933 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13934 (Qw32_charset_unicode): Remove.
13935 (syms_of_w32fns): Update for above changes.
13936
13937 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13938 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13939 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13940 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13941 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13942 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13943 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13944 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13945 (syms_of_w32font): Update for above changes.
13946
139472008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13948
13949 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13950 removed #if.
13951 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13952
139532008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13954 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13955
13956 * makefile.w32-in (LOCAL_FLAGS):
13957 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13958
13959 * sysdep.c (_spawnlp, _getpid):
13960 Declare with explicit _cdecl instead of _CRTAPI1.
13961
13962 * editfns.c (Fget_internal_run_time):
13963 Check for WINDOWSNT with #ifdef, not #if.
13964
139652008-06-26 Jason Rumney <jasonr@gnu.org>
13966
13967 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13968
13969 * w32term.c (x_draw_glyph_string_foreground)
13970 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13971 Use FONT_HANDLE macro.
13972 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13973
13974 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13975 (uniscribe_encode_char): Use FONT_HANDLE macro.
13976
13977 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13978 (w32font_text_extents): Use precast w32_font.
13979 (w32font_close): Free cached metrics.
13980 (w32font_open_internal): Allocate space for name on stack.
13981
139822008-06-26 Chong Yidong <cyd@stupidchicken.com>
13983
13984 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13985
139862008-06-26 Jason Rumney <jasonr@gnu.org>
13987
13988 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13989 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13990
139912008-06-26 Juanma Barranquero <lekktu@gmail.com>
13992
13993 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13994
139952008-06-26 Jason Rumney <jasonr@gnu.org>
13996
13997 * w32bdf.c, w32bdf.h: Remove obsolete files.
13998
13999 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14000
14001 * w32gui.h: Don't include w32bdf.h.
14002 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14003 Remove obsolete font support.
14004
14005 * w32font.h (struct w32font_info): Remove compat_w32_font.
14006 Add hfont member.
14007 (FONT_COMPAT): Remove obsolete macro.
14008
14009 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14010 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14011 (w32font_open_internal): Remove compat code. Set new hfont member.
14012 (Fx_select_font): Use new hfont member.
14013
14014 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14015 (uniscribe_encode_char): Use new hfont member.
14016
14017 * w32term.c (x_draw_glyph_string_foreground)
14018 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14019 (x_draw_glyph_string): Use metrics in w32font_info.
14020
140212008-06-26 Kenichi Handa <handa@m17n.org>
14022
14023 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14024
140252008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14026
14027 * unexnext.c:
14028 * m/ews4800.h:
14029 * m/hp9000s300.h:
14030 * m/ibm370aix.h:
14031 * m/mips-siemens.h:
14032 * m/ncr386.h:
14033 * m/next.h:
14034 * m/pmax.h:
14035 * m/powerpcle.h:
14036 * m/tandem-s2.h:
14037 * s/386bsd.h:
14038 * s/bsd386.h:
14039 * s/bsd4-1.h:
14040 * s/bsd4-2.h:
14041 * s/bsdos2-1.h:
14042 * s/bsdos2.h:
14043 * s/bsdos3.h:
14044 * s/bsdos4.h:
14045 * s/nextstep.h:
14046 * s/ultrix4-3.h:
14047 * s/usg5-0.h:
14048 * s/usg5-2-2.h:
14049 * s/usg5-2.h:
14050 * s/usg5-4-3.h:
14051 * s/ux4800.h:
14052 * s/uxpds.h:
14053 * s/uxpv.h: Remove support for obsolete systems.
14054 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 14055 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
14056 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14057 Remove, insert contents in s/aix4-2.h.
14058 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14059 * s/bsd4-3.h: Rename to ...
14060 * s/bsd-common.h: ... this.
14061 * data.c:
14062 * doc.c:
14063 * ecrt0.c:
14064 * emacs.c:
14065 * fileio.c:
14066 * floatfns.c:
14067 * keyboard.c:
14068 * mem-limits.h:
14069 * print.c:
14070 * process.c:
14071 * sysdep.c:
14072 * syssignal.h:
14073 * systty.h:
14074 * syswait.h:
14075 * term.c:
14076 * unexec.c:
14077 * unexelf.c:
14078 * unexhp9k800.c:
14079 * m/hp800.h:
14080 * m/ibmrs6000.h:
14081 * m/mips.h:
14082 * m/vax.h:
14083 * s/darwin.h:
14084 * s/freebsd.h:
14085 * s/gnu.h:
14086 * s/ms-w32.h:
14087 * s/msdos.h:
14088 * s/netbsd.h:
14089 * s/template.h: Remove references to obsolete variables.
14090
14091 * Makefile.in: Add dependencies for all unexec files.
14092 (admindir): Remove unused variable.
14093 (UNEXEC_SRC): Remove references.
14094
140952008-06-25 Chong Yidong <cyd@stupidchicken.com>
14096
14097 * xfns.c (x_default_font_parameter): If Xft is available, first
14098 try Monospace-12 for the default font.
14099
141002008-06-25 Jason Rumney <jasonr@gnu.org>
14101
14102 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14103
141042008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14105
14106 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14107
14108 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14109
141102008-06-25 Juanma Barranquero <lekktu@gmail.com>
14111
14112 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14113 <scroll-conservatively>: Fix typo in docstring.
14114
14115 * xselect.c (Fx_send_client_event): Doc fix.
14116
141172008-06-25 Kenichi Handa <handa@m17n.org>
14118
14119 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14120
14121 * font.c (font_parse_fcname): Remove unused variables.
14122 (font_sort_entites): Delete the arg SPEC. Caller changed.
14123 Fix for the case of ! best_only.
14124 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14125
14126 * lisp.h (Fstring_to_unibyte): EXFUN it.
14127
14128 * character.h (str_to_unibyte): Extern it.
14129
14130 * character.c (str_to_unibyte): New function.
14131
14132 * fns.c (Fstring_to_unibyte): New function.
14133 (syms_of_fns): Defsubr it.
14134
141352008-06-24 Kenichi Handa <handa@m17n.org>
14136
14137 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14138 DPI too.
14139 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14140
141412008-06-24 Andreas Schwab <schwab@suse.de>
14142
14143 * Makefile.in (${lispsource}loaddefs.el): Rename from
14144 ../lisp/loaddefs.el.
14145 (bootstrap-clean): Do what distclean does but don't remove
14146 Makefile.
14147 (distclean): Depend on bootstrap-clean and remove Makefile.
14148
141492008-06-24 Chong Yidong <cyd@stupidchicken.com>
14150
14151 * buffer.h (struct buffer): New member word_wrap.
14152
14153 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14154 word-wrap.
14155 (init_buffer_once): Initialize them.
14156
14157 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14158 line_wrap enum possessing three possible values.
14159
14160 * termopts.h: Replace truncate_partial_width_windows with
14161 Vtruncate_partial_width_windows.
14162
14163 * dispnew.c (direct_output_for_insert): Avoid direct output when
14164 inserting a space with word wrap on.
14165
14166 * indent.c (compute_motion): Obey integer values of
14167 truncate-partial-width-windows.
14168
14169 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14170 replacing truncate_partial_width_windows.
14171 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14172 truncate only if the window width is below that integer.
14173 (start_display, resize_mini_window, produce_stretch_glyph)
14174 (display_string, move_it_in_display_line_to): Use line_wrap.
14175 (back_to_previous_visible_line_start, reseat_1): Reset
14176 string_from_display_prop_p.
14177 (display_line): Extend default face to end of line when wrapping.
14178
141792008-06-24 Kim F. Storm <storm@cua.dk>
14180
14181 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14182 to wrap continued lines at word boundaries.
14183
141842008-06-24 Jason Rumney <jasonr@gnu.org>
14185
14186 * font.c (Ffont_face_attributes): Multiply pixel size before point
14187 conversion to avoid multiplying rounding error.
14188
141892008-06-23 Jason Rumney <jasonr@gnu.org>
14190
14191 * w32term.c (x_draw_glyph_string_background)
14192 (x_draw_glyph_string): Remove old bdf font code.
14193
14194 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14195
141962008-06-22 Kenichi Handa <handa@m17n.org>
14197
14198 * font.c (font_find_for_lface): Try the adstyle specified in
14199 the property of LFACE_FONT of LFACE (if any).
14200
142012008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14202 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14203
14204 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14205
142062008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14207
14208 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14209 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14210 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14211 (witness-emacs): Remove.
14212 (lisp, shortlisp): Move loaddefs.el earlier.
14213 (mostlyclean): Forget about witness-emacs.
14214
142152008-06-22 Glenn Morris <rgm@gnu.org>
14216
14217 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14218 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14219
142202008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14221
14222 * Makefile.in (PRECOMP): Remove.
14223 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14224 (witness-emacs): Run `compile-first'.
14225 (.el.elc): Use the new compile-onefile target.
14226
142272008-06-21 Kenichi Handa <handa@m17n.org>
14228
14229 * xftfont.c (xftfont_open): Handle QCembolden only when
14230 FC_EMBOLDEN is defined.
14231
142322008-06-21 Andreas Schwab <schwab@suse.de>
14233
14234 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14235 (.el.elc): Likewise.
14236
142372008-06-21 Miles Bader <miles@gnu.org>
14238
14239 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14240 build dir, not the lisp source dir.
14241
142422008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14243
14244 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14245 (bootstrapclean): Remove.
14246 (.el.elc): New rule.
14247 (PRECOMP): New var.
14248 (../lisp/subdirs.el): Remove.
14249 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14250 (witness-emacs): New target.
14251 (mostlyclean): Remove witness-emacs as well.
14252 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14253 Add witness-emacs dependency.
14254
142552008-06-20 Chong Yidong <cyd@stupidchicken.com>
14256
14257 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14258 defined by the font.
14259
142602008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14261
14262 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14263 (bootstrap-clean): New target that keeps TAGS around.
14264 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14265 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14266
142672008-06-20 Jason Rumney <jasonr@gnu.org>
14268
14269 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14270 Remove obsolete font code.
14271
14272 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14273 to determine language support.
14274
142752008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14276
14277 * sysdep.c (cfsetspeed): New fun extracted from the code.
14278 (cfmakeraw): Move before first use.
14279
142802008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14281
14282 * sysdep.c (cfmakeraw): Provide fallback implementation.
14283 (serial_configure): Provide fallback implementation of cfsetspeed.
14284
142852008-06-20 Kenichi Handa <handa@m17n.org>
14286
14287 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14288 the pattern.
14289
14290 * fontset.c (fontset_from_font): Copy font_spec before changing
14291 the elements.
14292
14293 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14294
142952008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14296
14297 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14298 for explicit `font' parameters.
14299
14300 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14301
143022008-06-19 Kenichi Handa <handa@m17n.org>
14303
14304 * frame.c: Include <ctype.h>.
14305 (x_set_font_backend): Allow spacing characters in the X resource
14306 for FontBackend.
14307
143082008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14309
14310 * w32fns.c, xfns.c (Qfont_param): New var.
14311 (syms_of_w32fns): Initialize it.
14312 (x_default_font_parameter): Record explicit `font' into
14313 `font-parameter'.
14314
143152008-06-18 Kenichi Handa <handa@m17n.org>
14316
14317 * font.c (font_parse_xlfd): Fix previous change.
14318 (font_parse_fcname): Don't use :fc-unknown-spec.
14319 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14320 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14321 (font_add_log): Prepend the driver name to the resulting fonts.
14322
14323 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14324 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14325 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14326
14327 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14328 (QCembolden): New variables.
14329 (syms_of_xftfont): DEFSYM them.
14330 (xftfont_open): Call XftFontMatch. Don't trust the result of
14331 XftTextExtents8 if the pixel_size is less than 5.
14332
143332008-06-18 Andreas Schwab <schwab@suse.de>
14334
14335 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14336 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14337
143382008-06-18 Jason Rumney <jasonr@gnu.org>
14339
14340 * w32font.c (w32font_list, w32font_match): Add logging.
14341
14342 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14343
143442008-06-17 Chong Yidong <cyd@stupidchicken.com>
14345
14346 * font.c (font_parse_fcname): Store divider characters for
14347 unknown-spec list. For known key symbols, intern using correct
14348 symbol name.
14349
143502008-06-17 Kenichi Handa <handa@m17n.org>
14351
14352 * xfaces.c (realize_default_face): If the frame is not on window
14353 system, set the fontset of face to nil.
14354
143552008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14356
14357 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14358
143592008-06-16 Juanma Barranquero <lekktu@gmail.com>
14360
14361 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14362 (build_font_name_from_vector): Delete externs.
14363
14364 * xfaces.c (struct font_name): Don't declare.
14365
143662008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14367
14368 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14369
143702008-06-16 Chong Yidong <cyd@stupidchicken.com>
14371
14372 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14373
143742008-06-16 Juanma Barranquero <lekktu@gmail.com>
14375
14376 * font.c (Ffont_spec): Fix usage in docstring.
14377 (Ffont_face_attributes): Doc fix.
14378
143792008-06-16 Andreas Schwab <schwab@suse.de>
14380
14381 * font.c (Ffont_face_attributes): Fix definition.
14382
143832008-06-16 Jason Rumney <jasonr@gnu.org>
14384
14385 * font.h (font_style_symbolic_from_value): Remove.
14386
14387 * font.c (font_style_symbolic_from_value): Remove.
14388 (font_style_symbolic): Revert to pre 2008-06-13 version.
14389
14390 * w32font.c (w32_to_fc_weight): New function.
14391 (w32font_full_name, logfont_to_fcname): Use it.
14392
143932008-06-16 Kenichi Handa <handa@m17n.org>
14394
14395 * font.c (font_check_object): Delete it.
14396 (font_clear_cache): Check if a font-object is alive.
14397 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14398 font-object to nil.
14399 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14400 (font_at): Don't call font_check_object.
14401 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14402
144032008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14404
14405 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14406
144072008-06-16 Chong Yidong <cyd@stupidchicken.com>
14408
14409 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14410
144112008-06-15 Chong Yidong <cyd@stupidchicken.com>
14412
14413 * font.c (font_parse_fcname): Only one decimal point.
14414 (font_unparse_fcname): Handle data in family and foundry indices
14415 as symbols, not strings.
14416 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14417
14418 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14419
14420 * font.h (font_unparse_gtkname): Add prototype.
14421
144222008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14423
14424 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14425
144262008-06-15 Andreas Schwab <schwab@suse.de>
14427
14428 * font.c (font_update_drivers): Fix crash when no drivers match.
14429
144302008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14431
14432 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14433 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14434
144352008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14436
14437 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14438
144392008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14440
14441 * process.c (Fserial_process_configure, Fprocess_send_eof):
14442 Use EQ to compare Lisp_Objects.
14443
144442008-06-13 Jason Rumney <jasonr@gnu.org>
14445
14446 * w32fns.c (Fw32_select_font): Remove old font API function.
14447
14448 * w32font.c (logfont_to_fcname): New function.
14449 (Fx_select_font): New font dialog function compatible with
14450 GTK/fontconfig version.
14451
14452 * font.c (font_style_symbolic_from_value): New function.
14453 (font_style_symbolic): Use it.
14454
14455 * font.h (font_style_symbolic_from_value): Declare new function.
14456
144572008-06-13 Juanma Barranquero <lekktu@gmail.com>
14458
14459 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14460 <font-width-table>: Fix typos in docstrings.
14461
144622008-06-13 Daniel Engeler <engeler@gmail.com>
14463
14464 These changes add serial port access.
14465 * process.c: Add HAVE_SERIAL.
14466 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14467 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14468 (list_processes_1, select_wrapper, Fstop_process)
14469 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14470 (status_notify): Modify to handle serial processes.
14471 [HAVE_SERIAL] (Fserial_process_configure)
14472 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14473 New functions.
14474 * process.h (struct Lisp_Process): Add `type'.
14475 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14476 New functions.
14477 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14478 serial ports.
b71ac3dd 14479 (serial_open, serial_configure): New functions.
aac0c6e3
MR
14480 * w32.h: Add FILE_SERIAL.
14481 (struct _child_process): Add ovl_read, ovl_write.
14482
144832008-06-13 Kenichi Handa <handa@m17n.org>
14484
14485 * dispextern.h (enum lface_attribute_index): New member
14486 LFACE_FOUNDRY_INDEX.
14487
14488 * font.c (font_score): Delete arg alternate_families. Check only
14489 weight, slant, width, and size. Ignore the difference of alias
14490 style symbols.
14491 (font_sort_entites): Adjust for the above change. Reflect the
14492 order of font-driver to scores.
14493 (font_list_entities): Don't check alternate_familes here.
14494 (font_clear_prop): Handle foundry.
14495 (font_update_lface): Don't parse "foundry-family" form here.
14496 Handle FONT_FOUNDRY_INDEX.
14497 (font_find_for_lface): Likewise. Handle alternate families here.
14498 If registry is nil, try iso8859-1 and ascii-0.
14499 (font_open_for_lface): Pay attention to size in ENTITY.
14500 (font_open_by_name): Simplify by calling font_load_for_lface.
14501 (free_font_driver_list): Delete it.
14502 (font_update_drivers): Preserve the order of backends.
14503 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14504 of font_score and font_sort_entites.
14505 (font_update_sort_order): Likewise.
14506
14507 * xfaces.c (LFACE_FOUNDRY): New macro.
14508 (check_lface_attrs): Check foundry.
14509 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14510 (merge_face_vectors): Check foundry.
14511 (merge_face_ref): Likewise.
14512 (Finternal_set_lisp_face_attribute): Likewise.
14513 (x_update_menu_appearance): Likewise.
14514 (Finternal_get_lisp_face_attribute): Likewise.
14515 (lface_hash): Likewise.
14516 (lface_same_font_attributes_p): Likewise.
14517 (x_supports_face_attributes_p): Likewise.
14518 (tty_supports_face_attributes_p): Likewise.
14519 (Finternal_set_alternative_font_family_alist): Intern strings.
14520 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14521 (realize_default_face): Set LFACE_FOUNDRY (lface).
14522
14523 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14524 font-driver at first.
14525
14526 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14527
145282008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14529
14530 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14531
145322008-06-12 Jim Meyering <meyering@redhat.com>
14533
14534 Make unexec_free handle NULL the same way free does.
14535 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14536
145372008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14538
14539 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14540 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14541 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14542 (WEAK_ALIAS): Simplify.
14543 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14544 when searching a unibyte buffer.
14545
145462008-06-12 Chong Yidong <cyd@stupidchicken.com>
14547
14548 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14549
145502008-06-12 Juanma Barranquero <lekktu@gmail.com>
14551
14552 * w32font.c: Include ctype.h.
14553
145542008-06-11 Jason Rumney <jasonr@gnu.org>
14555
14556 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14557 misreported as space.
14558 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14559 as aliases for registry iso10646-1.
14560
145612008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14562
14563 * buffer.c (clone_per_buffer_values): Skip `name'.
14564
145652008-06-11 Chong Yidong <cyd@stupidchicken.com>
14566
14567 * font.c (font_parse_fcname): Fix last change; accept decimal
14568 points in font size.
14569
145702008-06-10 Jason Rumney <jasonr@gnu.org>
14571
14572 * w32uniscribe.c (add_opentype_font_name_to_list):
14573 Skip non unicode fonts.
14574
145752008-06-10 Chong Yidong <cyd@stupidchicken.com>
14576
14577 * xfns.c (Fx_font_dialog): New function.
14578
14579 * gtkutil.c (xg_dialog_response_cb): Rename from
14580 xg_file_response_callback.
14581 (pop_down_dialog): Rename from pop_down_file_dialog.
14582 (xg_get_file_name): Callers changed.
14583 (xg_get_font_name): New function.
14584
14585 * gtkutil.h (xg_get_font_name): Insert prototype.
14586
145872008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14588
14589 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14590 x_underline_minimum_display_offset.
14591 (syms_of_xdisp): Declare it here rather than in xterm.c.
14592 * dispextern.h (underline_minimum_offset): Declare it.
14593 * w32term.c (x_draw_glyph_string): Use it.
14594 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14595 (syms_of_xterm): Don't declare it any more.
14596 (x_draw_glyph_string): Adjust to the new name.
14597
8719abec 145982008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
14599
14600 * xterm.c (x_underline_minimum_display_offset): New var.
14601 (x_draw_glyph_string): Use it.
14602 (syms_of_xterm): Declare it.
14603
146042008-06-10 Chong Yidong <cyd@stupidchicken.com>
14605
14606 * font.c (font_parse_fcname): Accept GTK-style font names too.
14607
146082008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14609
14610 * dired.c (file_name_completion): Don't return t if the match is exact
14611 but with different capitalization.
14612 * minibuf.c (Ftry_completion): Simplify.
14613
14614 * window.c (Vwindow_point_insertion_type): New var.
14615 (set_window_buffer): Use it.
14616 (syms_of_window): Init and export it to Lisp.
14617
146182008-06-10 Kenichi Handa <handa@m17n.org>
14619
14620 * font.h (font_intern_prop): Prototype adjusted.
14621
14622 * font.c (font_intern_prop): New arg force_symbol.
14623 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14624 Adjust for the change of font_intern_prop.
14625
14626 * ftfont.c (ftfont_pattern_entity):
14627 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14628 (w32_registry):
14629 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14630 the change of font_intern_prop.
14631
146322008-06-09 Juanma Barranquero <lekktu@gmail.com>
14633
14634 * w32menu.c (digest_single_submenu): Declare extern.
14635
146362008-06-09 Jason Rumney <jasonr@gnu.org>
14637
14638 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14639
14640 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14641 (parse_single_submenu): Remove.
14642 (digest_single_submenu): Remove.
14643 (syms_of_w32menu): Don't initialise variables that have moved
14644 to menu.c.
14645 (set_frame_menubar): Sync with version in xmenu.c.
14646 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14647
14648 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14649 Make static again.
14650
146512008-06-09 Jason Rumney <jasonr@gnu.org>
14652
14653 Changes to w32 files related to the move of common menu code
14654 to menu.c on 2008-06-08 by Chong Yidong.
14655
14656 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14657 defs to w32gui.h.
14658 (single_keymap_panes, push_menu_item, push_menu_pane):
14659 Make globally visible.
14660
14661 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14662 (local_free, malloc_widget_value, free_widget_value)
14663 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14664 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14665 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14666 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14667 (menu_items, menu_items_allocated, menu_items_used)
14668 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14669 (init_menu_items, finish_menu_items, discard_menu_items)
14670 (grow_menu_items, push_submenu_start, push_submenu_end)
14671 (push_left_right_boundary, push_menu_pane, push_menu_item)
14672 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14673 (free_menubar_widget_tree_value, parse_single_submenu)
14674 (update_submenu_strings): Remove functions.
14675 (xmalloc_widget_value): Remove and declare extern.
14676
14677 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14678 (OBJ1): Build it.
14679
14680 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14681 (local_heap, local_alloc, local_free, malloc_widget_value)
14682 (free_widget_value): Define here.
14683
146842008-06-09 Kenichi Handa <handa@m17n.org>
14685
14686 * font.h (Qascii_0): Extern it.
14687
14688 * font.c (Qascii_0): New variable.
14689 (syms_of_font): DEFSYM it.
14690 (font_open_by_name): If the registry "iso8859-1" fails, try also
14691 "ascii-0".
14692
14693 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14694
146952008-06-08 Kenichi Handa <handa@m17n.org>
14696
14697 * .gdbinit (xfont): New command.
14698
146992008-06-08 Andreas Schwab <schwab@suse.de>
14700
14701 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14702 * Makefile.in (menu.o): Update dependencies.
14703
14704 * Makefile.in (obj): Always add menu.o.
14705 * emacs.c (main): Always call syms_of_menu.
14706 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14707
147082008-06-08 Chong Yidong <cyd@stupidchicken.com>
14709
14710 * Makefile.in: Compile menu.c.
14711
14712 * lisp.h: Declare syms_of_menu.
14713
14714 * emacs.c (main): Call syms_of_menu.
14715
14716 * keyboard.h: Relocate platform-independent menu definitions from
14717 xmenu.c.
14718
14719 * menu.c: New file. Relocate platform-independent menu
14720 definitions from xmenu.c. Suggested by Adrian Robert.
14721
14722 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 14723 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
14724 (menu_items_used, menu_items_n_panes)
14725 (menu_items_submenu_depth): Move to keyboard.h.
14726 (init_menu_items, finish_menu_items, unuse_menu_items)
14727 (discard_menu_items, restore_menu_items, save_menu_items)
14728 (grow_menu_items, push_submenu_start, push_submenu_end)
14729 (push_left_right_boundary, push_menu_pane, push_menu_item)
14730 (keymap_panes, single_keymap_panes, single_menu_item)
14731 (list_of_panes, list_of_items, find_and_call_menu_selection)
14732 (xmalloc_widget_value, free_menubar_widget_value_tree)
14733 (parse_single_submenu, digest_single_submenu)
14734 (update_submenu_strings): Move to menu.c.
14735
147362008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14737
14738 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14739
147402008-06-06 Miles Bader <miles@gnu.org>
14741
14742 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14743 face, not frame default.
14744
147452008-06-05 Martin Rudalics <rudalics@gmx.at>
14746
14747 * window.c (pop_up_windows, pop_up_frames)
14748 (display_buffer_reuse_frames, Vpop_up_frame_function)
14749 (Vdisplay_buffer_function, Veven_window_heights)
14750 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14751 (Vspecial_display_function, Vsame_window_buffer_names)
14752 (Vsame_window_regexps, split_height_threshold)
14753 (Vsplit_window_preferred_function): Move those vars to window.el.
14754 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14755 (Fdisplay_buffer): Move those functions to window.el.
14756 (syms_of_window): Remove corresponding declarations.
14757 (display_buffer): New function.
14758 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14759 * dispnew.c (Flast_nonminibuf_frame): New function.
14760 * buffer.c (Fpop_to_buffer): Move to window.el.
14761
147622008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14763
14764 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14765
147662008-06-05 Kenichi Handa <handa@m17n.org>
14767
14768 * coding.c (detect_coding): Fix previous change.
14769 (detect_coding_system): Likewise.
14770
147712008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14772
14773 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14774
14775 * keymap.c (Vminibuffer_local_filename_must_match_map):
14776 Rename from Vminibuffer_local_must_match_filename_map.
14777 (syms_of_keymap):
14778 * minibuf.c (Fcompleting_read): Adjust accordingly.
14779 * commands.h: Rename declaration as well.
14780
147812008-06-05 Kenichi Handa <handa@m17n.org>
14782
14783 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14784 family name.
14785 (Ffont_put): Likewise.
14786
14787 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14788 current font-spec.
14789
14790 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14791 is unspecified.
14792
14793 * xfaces.c (realize_x_face): If the font-related face attributes
14794 are the same as those of default face, realize a new fontset from
14795 default->fontset.
14796 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14797
147982008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14799
14800 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14801 (move_it_in_display_line): New wrapper.
14802
14803 * window.c (window_scroll_pixel_based_preserve_x)
14804 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14805 (window_scroll_pixel_based, window_scroll_line_based):
14806 Use them to preserve column positions.
14807 (syms_of_window): Initialize them.
14808
14809 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14810 (HPOS . VPOS) pair.
14811
14812 * dispextern.h (move_it_in_display_line): Declare.
14813
148142008-06-05 Juanma Barranquero <lekktu@gmail.com>
14815
14816 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14817 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14818 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14819
148202008-06-04 Juanma Barranquero <lekktu@gmail.com>
14821
14822 * window.c (Fset_window_parameter): Doc fix.
14823 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14824
148252008-06-04 Joakim Verona <joakim@verona.se>
14826
14827 * window.h (struct window): Add new member window_parameters.
14828
14829 * window.c (Fwindow_parameters, Fwindow_parameter)
14830 (Fset_window_parameter): New defuns.
14831 (syms_of_window): Defsubr the new defuns.
14832 (make_window): Initialize window_parameters to nil.
14833
148342008-06-04 John Paul Wallington <jpw@pobox.com>
14835
14836 * eval.c (Fdefmacro): Doc fix.
14837
148382008-06-04 Kenichi Handa <handa@m17n.org>
14839
14840 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14841 Be sure to call setup_coding_system when we find a proper coding system.
14842 (detect_coding_system): Fix handling of coding->head_ascii.
14843
148442008-06-03 Andreas Schwab <schwab@suse.de>
14845
14846 * font.c (font_prop_validate_spacing): Fix last change.
14847
148482008-06-03 Kenichi Handa <handa@m17n.org>
14849
14850 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14851 (font_parse_fcname): Fix handling of unknown key.
14852
14853 * xfont.c (xfont_list): Try an alias.
14854
14855 * charset.c (char_charset): Return NULL if the arg charset_list is
14856 specified and C doesn't belong to any of them.
14857
148582008-06-02 Chip Coldwell <coldwell@redhat.com>
14859
14860 * font.c (font_pixel_size): Don't take cdr of an integer.
14861
148622008-06-02 Jim Meyering <meyering@redhat.com>
14863
14864 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14865 * alloc.c (xfree): Return right away for a NULL arg.
14866 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14867 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14868 * mac.c (create_apple_event_from_event_ref): Likewise.
14869 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14870 Likewise.
14871 * doprnt.c (doprnt1): Likewise.
14872 * frame.c (frame): Likewise.
14873 * keyboard.c (wipe_kboard): Likewise.
14874 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14875 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14876 * term.c (tty_default_color_capabilities, maybe_fatal)
14877 (delete_tty): Likewise.
14878 * w16select.c (string): Likewise.
14879 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14880 * w32bdf.c (w32_free_bdf_font): Likewise.
14881 * w32fns.c (w32_unload_font): Likewise.
14882 * w32font.c (w32font_close): Likewise.
14883 * window.c (size_window): Likewise.
14884 * xselect.c (receive_incremental_selection): Likewise.
14885 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14886 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14887 * w32.c (stat): Likewise.
14888
14889 Remove useless if-before-free tests.
14890 * editfns.c (Fset_time_zone_rule): Likewise.
14891 * lread.c (nosuffix): Likewise.
14892 * ralloc.c (get_bloc): Likewise.
14893 * regex.c (reg_free): Likewise.
14894 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14895 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14896 * xsmfns.c (smc_save_yourself_CB): Likewise.
14897
148982008-06-02 Kenichi Handa <handa@m17n.org>
14899
14900 * font.c (font_find_for_lface): Handle float font size.
14901 (font_open_for_lface): Likewise.
14902
14903 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14904 comparing the properties.
14905
149062008-06-01 Jason Rumney <jasonr@gnu.org>
14907
14908 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14909 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14910 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14911 Don't add empty script list.
14912 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14913
149142008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14915
14916 * Makefile.in (dot, dotdot): Remove, update users.
14917 ".." has been used elsewhere in the file for a long time.
14918 (LIBXT_STATIC): Remove conditional based on unused variable.
14919
149202008-06-01 Miles Bader <miles@gnu.org>
14921
14922 * xfaces.c (Vface_remapping_alist): New variable.
14923 (syms_of_xfaces): Initialize it.
14924 (enum named_merge_point_kind): New type.
14925 (struct named_merge_point): Add `named_merge_point_kind' field.
14926 (push_named_merge_point): Make cycle detection respect different
14927 named-merge-point kinds.
14928 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14929 Remove face-name alias resolution.
14930 (lface_from_face_name): New definition using
14931 `lface_from_face_name_no_resolve'.
14932 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14933 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14934 (get_lface_attributes): New definition that layers face-remapping on
14935 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14936 (lookup_basic_face): New function.
14937 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14938 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14939 `get_lface_attributes'.
14940 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14941 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14942 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14943
14944 * xdisp.c (init_iterator): Pass base_face_id through
14945 `lookup_basic_face' when we actually use it as a face-id.
14946 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14947 DEFAULT_FACE_ID.
14948
14949 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14950 lookup the initial face-id.
14951
14952 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14953
149542008-06-01 Juanma Barranquero <lekktu@gmail.com>
14955
14956 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14957 (Fremove_text_properties): Fix typos in docstrings.
14958
149592008-05-31 Kenichi Handa <handa@m17n.org>
14960
14961 * font.c (font_list_entities): Fix the car part of data to be
14962 stored in the cache.
14963
14964 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14965
149662008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14967
14968 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14969 Add a `test' argument so another predicate than `equal' can be used.
14970 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14971 (map_char_table): Remove unused vars `c' and `i'.
14972 * lisp.h (Foptimize_char_table): Adjust declaration.
14973 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14974
149752008-05-30 Kenichi Handa <handa@m17n.org>
14976
14977 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14978 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14979 defined.
14980
149812008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14982
14983 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14984 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14985 frame-local settings for the same variable.
14986
149872008-05-30 Kenichi Handa <handa@m17n.org>
14988
14989 * fontset.c (Ffont_info): Move to font.c.
14990 (syms_of_fontset): Delete defsubr of Sfont_info.
14991
14992 * font.c (font_style_to_value, font_score): Delete casting of the
14993 args to xstcasecmp.
14994 (register_font_driver): Increment num_font_drivers only when
14995 registering the driver globally.
14996 (Ffont_info): Move from fontset.c. Handle a font object too.
14997 (syms_of_font): Defsubr Sfont_info.
14998
149992008-05-29 Kenichi Handa <handa@m17n.org>
15000
15001 * coding.h (enum define_coding_utf8_arg_index): New enum.
15002 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15003 coding_attr_utf_bom.
15004 (enum utf_bom_type): Rename from utf_16_bom_type.
15005 (struct utf_16_spec): Adjust for the above change.
15006 (struct coding_system): Add utf_8_bom in `spec' union.
15007
15008 * coding.c (CODING_UTF_8_BOM): New macro.
15009 (enum coding_category): Delete coding_category_utf_8, add
15010 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15011 coding_category_utf_8_sig.
15012 (CATEGORY_MASK_UTF_8): Delete it.
15013 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15014 (CATEGORY_MASK_UTF_8_SIG): New macros.
15015 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15016 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15017 CATEGORY_MASK_UTF_8_SIG.
15018 (CATEGORY_MASK_UTF_8): New macro.
15019 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15020 (detect_coding_utf_8): Check BOM.
15021 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15022 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15023 (encode_coding_utf_16): Likewise.
15024 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15025 (detect_coding, detect_coding_system): Handle utf-8-auto.
15026 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15027 (syms_of_coding): Fix setting up of Vcoding_category_table.
15028
150292008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15030
15031 * process.c (Faccept_process_output): If `millisec' is non-nil,
15032 `seconds' default to 0.
15033 (wait_reading_process_output): Also return non-nil if we read output
15034 from a non-running process.
15035
150362008-05-29 Jason Rumney <jasonr@gnu.org>
15037
15038 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15039 `raster' specified.
15040 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15041 in the uniscribe backend, but disallow any font that has no
15042 unicode subrange support.
15043
150442008-05-29 Juanma Barranquero <lekktu@gmail.com>
15045
15046 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15047 Fix typos in docstrings.
15048
150492008-05-29 Kenichi Handa <handa@m17n.org>
15050
15051 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15052 (Fx_family_fonts): Set frame correctly.
15053
150542008-05-28 Jason Rumney <jasonr@gnu.org>
15055
15056 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15057
150582008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15059
15060 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15061 calling build_annotations.
15062
150632008-05-28 Juanma Barranquero <lekktu@gmail.com>
15064
15065 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15066 (Fencode_coding_string):
15067 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15068 <latin-extra-code-table>: Fix typos in docstrings.
15069 (syms_of_coding) <coding-system-alist>: Doc fix.
15070 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15071
150722008-05-28 Kenichi Handa <handa@m17n.org>
15073
15074 * fontset.c (Ffont_info): Don't call font_close_object.
15075
15076 * font.c (font_parse_family_registry): Use Ffont_put to validate
15077 foundry and family.
15078 (font_delete_unmatched): Don't check spacing.
15079 (font_list_entities): Add spacing to the spec to list fonts.
15080
15081 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15082 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15083
15084 * coding.c (encode_coding_raw_text): Fix previous change.
15085 (encode_coding_object): When the dst_object is a buffer and is
15086 different from src_object, move gap to PT.
15087
150882008-05-27 Chong Yidong <cyd@stupidchicken.com>
15089
15090 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15091
150922008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15093
15094 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15095 all branches. Compute it differently.
15096
15097 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15098
150992008-05-27 Juanma Barranquero <lekktu@gmail.com>
15100
15101 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15102 into "else if () ... else ...".
15103
151042008-05-27 Jason Rumney <jasonr@gnu.org>
15105
15106 * w32font.c (w32font_open_internal): Determine if glyph indices
15107 are likely to work here.
15108
151092008-05-27 Chong Yidong <cyd@stupidchicken.com>
15110
15111 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15112 draw overlap glyphs with appropriate highlighting.
15113
151142008-05-27 Kenichi Handa <handa@m17n.org>
15115
15116 * xfont.c (xfont_open): Fix calculation of font->average_width.
15117
151182008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15119
15120 * casefiddle.c (casify_object): Try to guess better whether the
15121 argument is a byte or a char.
15122
151232008-05-26 Andreas Schwab <schwab@suse.de>
15124
15125 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15126 Always send multiples of format size.
15127
15128 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15129
151302008-05-26 Jason Rumney <jasonr@gnu.org>
15131
15132 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15133 (compute_metrics): Don't set failure if we just cleared the cache.
15134 (w32_weight_table): Remove unused variable.
15135 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15136 backwards compatibility.
15137
151382008-05-25 Kenichi Handa <handa@m17n.org>
15139
15140 * w32term.c (x_draw_glyph_string):
15141 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15142
15143 * xfaces.c: Delete unused function prototypes.
15144 (xstrlwr, font_frame): Delete them.
15145 (clear_face_cache): Delete unused variable.
15146
15147 * xftfont.c (xftfont_open): Delete unused variable.
15148 If underline_thickness is not 1, adjust underline_position.
15149
15150 * ftxfont.c (ftxfont_open): Delete unused variable.
15151
15152 * fontset.c (face_for_char): Optimize for the case of no charset
15153 property.
15154
15155 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15156 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15157 (otf_open, font_otf_capability, generate_otf_features)
15158 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15159 Comment out by surrounding "#if 0" and "#endif" for the moment.
15160 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15161 (syms_of_font): Codes for accessing above commented out.
15162
151632008-05-24 Eli Zaretskii <eliz@gnu.org>
15164
15165 * w32proc.c: Include dispextern.h.
15166
15167 * w32.c: Include dispextern.h.
15168
151692008-05-23 Juanma Barranquero <lekktu@gmail.com>
15170
15171 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15172 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15173 Fix typos in docstrings.
15174
151752008-05-23 Jason Rumney <jasonr@gnu.org>
15176
15177 * xsmfns.c: Remove includes that are already included by config.h.
15178
151792008-05-23 Kenichi Handa <handa@m17n.org>
15180
15181 * charset.c (Qemacs, charset_emacs): New variables.
15182 (char_charset): Fix for non-Unicode characters.
15183 (syms_of_charset): Define charset_emacs.
15184
15185 * w32term.c (x_draw_glyph_string): Be sure to update
15186 s->underline_thickness and s->underline_position. Be sure to draw
15187 underline within the current line area.
15188
15189 * xterm.c (x_draw_glyph_string): Be sure to update
15190 s->underline_thickness and s->underline_position. Be sure to draw
15191 underline within the current line area.
15192
15193 * fontset.c: Delete unused variables and add casting for char *
15194 throughout the file.
15195 (fontset_font): Try the fallback fonts of the current fontset
15196 before consulting the default fontset.
15197
15198 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15199
15200 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15201
152022008-05-22 Jason Rumney <jasonr@gnu.org>
15203
15204 * font.c: Don't include strings.h.
15205
15206 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15207
15208 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15209 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15210 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15211 to call xstrcasecmp.
15212
15213 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15214
15215 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15216
15217 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15218
15219 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15220
152212008-05-22 Kenichi Handa <handa@m17n.org>
15222
15223 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15224
15225 * font.c (font_prop_validate_style): Adjust for the format
15226 change of font_style_table.
15227
15228 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15229 two args.
15230
15231 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15232 two args.
15233
152342008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15235
15236 * minibuf.c (keys_of_minibuf): Delete.
15237 * lisp.h (keys_of_minibuf): Delete.
15238 * emacs.c (main): Don't call keys_of_minibuf.
15239
152402008-05-22 Kenichi Handa <handa@m17n.org>
15241
15242 * ftfont.c (ftfont_resolve_generic_family): Rename from
15243 ftfont_list_generic_family. Return a single family for each
15244 generic family.
15245 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15246 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15247 Call font_add_log.
15248 (ftfont_match): Call font_add_log.
15249
15250 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15251 (FONT_DEBUG): Define it.
15252 (font_add_log): Extern it.
15253 (font_assert): Rename from xassert.
15254
15255 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15256 (xfont_list_family): Call font_add_log.
15257 (xfont_match): Likewise.
15258 (memq_no_quit): Delete.
15259
15260 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15261 call of Ffont_xlfd_name.
15262
15263 * xfaces.c (struct table_entry, slant_table, weight_table)
15264 (swidth_table): Move to font.c.
15265
15266 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15267 xassert are changed to font_assert. Delete many unused variables.
15268 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15269 New variables.
15270 (struct table_entry): Move from xfaces.c and modified.
15271 (weight_table, slant_table, width_table): Move from xfaces.c and
15272 contents adjusted for the change of struct table_entry.
15273 (font_style_to_value, font_style_symbolic): Adjust for the
15274 format change of font_style_table.
15275 (font_parse_family_registry): Don't overwrite existing foundry and
15276 family of font_spec.
15277 (font_score): Fix calculation of diff for sizes.
15278 (font_sort_entites): Call font_add_log.
15279 (font_delete_unmatched): Return a newly created list.
15280 (font_list_entities): Fix previous change. Call font_add_log.
15281 (font_matching_entity, font_open_entity, font_close_entity):
15282 Call font_add_log.
15283 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15284 (Finternal_set_font_style_table): Delete.
15285 (BUILD_STYLE_TABLE): New macro.
15286 (build_style_table): New function.
15287 (Vfont_log, font_log_env_checked): New variables.
15288 (font_add_log): New function.
15289 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15290 Declare Lisp variables "font-weight-table", "font-slant-table",
15291 "font-width-table", and "font-log". Initialize font_style_table.
15292
152932008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15294
15295 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15296
152972008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15298 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15299
15300 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15301 (Vframe_alpha_lower_limit): New variable.
15302 (x_set_alpha): New function.
15303
15304 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15305
15306 * xfns.c (x-create-frame, Qalpha):
15307 Initialize the frame parameter `alpha'.
15308 * xterm.c (OPAQUE, OPACITY): New.
15309 (x_set_frame_alpha): New function.
15310 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15311
15312 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15313 * w32fns.c (w32_frame_parm_handlers): Likewise.
15314
153152008-05-20 Jason Rumney <jasonr@gnu.org>
15316
15317 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15318 truetype fonts to opentype list.
15319
153202008-05-20 Juanma Barranquero <lekktu@gmail.com>
15321
15322 * fontset.c (Ffontset_info): Doc fix.
15323 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15324 <ignore-relative-composition>: Fix typos in docstrings.
15325
15326 * font.c (syms-of-font) <font-encoding-alist>:
15327 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15328 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15329 (Ffont_otf_alternates): Doc fixes.
15330
153312008-05-20 Kenichi Handa <handa@m17n.org>
15332
15333 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15334 font.h through out the file.
15335 (FONT_DRIVERS): Rename from FONTOBJ.
15336 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15337 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15338
15339 * emacs.c (main): Call syms_of_font unconditionally.
15340
15341 * font.h (find_font_encoding): Extern it.
15342
15343 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15344 fontset.c.
194d44e7 15345 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
15346 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15347 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15348 only when HAVE_WINDOW_SYSTEM is defined.
15349 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15350 when HAVE_WINDOW_SYSTEM is defined.
15351
15352 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15353 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15354
15355 * xfaces.c: Include font.h unconditionally.
15356 (merge_face_ref, merge_face_vectors)
15357 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15358
153592008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15360
15361 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15362 indirect_variable.
15363 * eval.c (lisp_indirect_variable): New fun.
15364 (Fuser_variable_p): Use it.
15365
153662008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15367
15368 * lisp.h (indirect_variable):
15369 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15370 Use Lisp_Symbol pointers rather than Lisp_Object.
15371 Adjust callers.
15372 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15373 To this end, change calling-convention.
15374
15375 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15376 if some non-hidden buffers are selected by string&pred.
15377
153782008-05-19 Chong Yidong <cyd@stupidchicken.com>
15379
15380 * process.c (wait_reading_process_output): Always check status
15381 when in batch mode.
15382
153832008-05-19 Kenichi Handa <handa@m17n.org>
15384
15385 * font.c (font_list_entities): Fix handling of cache.
15386 (font_matching_entity): Likewise.
15387
15388 * ftfont.c (cs_iso8859_1): Delete.
15389 (ft_face_cache): New variable.
15390 (struct ftfont_info): New member fc_charset_idx.
15391 (ftfont_build_basic_charsets): Delete.
15392 (fc_charset_table): New variable.
15393 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15394 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15395 Callers changed.
15396 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15397 (ftfont_spec_pattern): New argument fc_charset_idx.
15398 Check registry more rigidly. Change callers.
15399 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15400 change of :font-entity property of the font.
15401
15402 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15403 property of the font.
15404
154052008-05-18 Juanma Barranquero <lekktu@gmail.com>
15406
15407 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15408 (Funencodable_char_position, Fcheck_coding_systems_region)
15409 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15410 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15411 (Ffind_operation_coding_system, Fset_coding_system_priority)
15412 (Fcoding_system_eol_type): Doc fixes.
15413
154142008-05-17 Glenn Morris <rgm@gnu.org>
15415
15416 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15417
154182008-05-16 Eli Zaretskii <eliz@gnu.org>
15419
15420 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15421 and st_gid.
15422
15423 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15424 HAVE_WINDOW_SYSTEM is not defined.
15425
15426 * xfaces.c (merge_face_ref, merge_face_vectors)
15427 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15428 HAVE_WINDOW_SYSTEM is defined.
15429 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15430
154312008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15432
15433 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15434
154352008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15436
15437 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15438
154392008-05-15 Kenichi Handa <handa@m17n.org>
15440
15441 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15442 preference.
15443
154442008-05-15 Glenn Morris <rgm@gnu.org>
15445
15446 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15447
154482008-05-15 Chong Yidong <cyd@stupidchicken.com>
15449
15450 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15451 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15452
15453 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15454
154552008-05-15 Kenichi Handa <handa@m17n.org>
15456
15457 * ftfont.c (ftfont_list): Downcase family name to check generic
15458 families.
15459
15460 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15461 font-spec for QCfont value.
15462
15463 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15464 buffer. Check the return value of it.
15465
154662008-05-14 Jason Rumney <jasonr@gnu.org>
15467
15468 * w32term.c (w32_get_glyph_overhangs): Remove.
15469 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15470
154712008-05-14 Kenichi Handa <handa@m17n.org>
15472
15473 * font.c (font_prop_validate): Make nil a valid value.
15474 (font_clear_cache): Check if the cached vector of entities is nil
15475 or not.
15476
154772008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15478
15479 * emacs.c (main_thread): Conditionalize on
15480 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15481 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15482
15483 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15484 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15485 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15486
154872008-05-14 Kenichi Handa <handa@m17n.org>
15488
15489 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15490 has no corresponding coding system.
15491
154922008-05-14 Jason Rumney <jasonr@gnu.org>
15493
15494 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15495
15496 * w32font.h (w32font_open_internal): Update declaration.
15497
15498 * w32font.c (w32font_open_internal): Change last argument from
15499 w32font_info struct to font object. Fill in font object from
15500 font_entity. Get Outline metrics if possible. Use them to
15501 calculate underline position and thickness. Use xlfd name as name
15502 property. Don't set codepage.
15503 (w32font_open): Pass font_object to w32font_open_internal. Don't
15504 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15505 (w32font_draw): Use s->font.
15506 (clear_cached_metrics): Don't clear non-existent blocks.
15507
15508 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15509 font was not found.
15510 (x_draw_glyph_string): Use underline position and thickness from font.
15511
15512 * w32uniscribe.c (uniscribe_open): Pass font_object to
15513 w32font_open_internal.
15514
155152008-05-14 Kenichi Handa <handa@m17n.org>
15516
15517 These changes are to delete all legacy font-handling codes, and
15518 make Emacs use only font-backends.
15519
15520 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15521 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15522
15523 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15524
15525 * charset.h (Vcharset_non_preferred_head)
15526 (Vcurrent_iso639_language): Extern them.
15527
15528 * charset.c (Vcharset_non_preferred_head): New variable.
15529 (Vcurrent_iso639_language): New variable.
15530 (syms_of_charset): Declare it as a Lisp variable.
15531 (char_charset): Don't check non preferred charsets. As a last
15532 resort, return charset_unicode.
15533 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15534
15535 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15536 conditionals. Don't check enable_font_backend. Delete all codes
15537 used only when USE_FONT_BACKEND is not defined.
15538
15539 * dispextern.h (struct glyph_string): Change type of `font' to
15540 `struct font *'.
15541 (struct glyph_string): New member underline_position and
15542 underline_thickness.
15543 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15544 (struct face): Change type of `font' to `struct font *'. Remove
15545 members `font_name', `font_info_id'.
15546 (per_char_metric, encode_char): Delete externs.
15547 (calc_pixel_width_or_height): Adjust the prototype.
15548
15549 * emacs.c (enable_font_backend): Delete extern.
15550 (main): Don't set enable_font_backend. Don't check the command
15551 line argument "-disable-font-backend".
15552
15553 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15554 (enum font_property_index): New members FONT_DPI_INDEX,
15555 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15556 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15557 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15558 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15559 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15560 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15561 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15562 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15563 (struct font_spec, struct font_entity): New structs.
15564 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15565 (struct font): Many members from old "struct font_info" moved to
15566 here. Members font and entity deleted.
15567 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15568 the new font-related objects.
15569 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15570 (CHECK_FONT_GET_OBJECT): Likewise.
15571 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15572 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15573 (struct font_driver): New members case_sensitive anc check. Type
15574 of the member list and open changed.
15575 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15576 (font_symbolic_width, font_find_object, font_get_spec)
15577 (font_set_lface_from_name): Delete extern.
15578 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15579
15580 * font.c: Include <strings.h>.
15581 (enable_font_backend): Delete it.
15582 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15583 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15584 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15585 (null_string): Delete it.
15586 (null_vector): Make it static.
15587 (font_family_alist): Delete it.
15588 (Qnormal): Extern it.
15589 (QCextra, QClanguage): Delete it.
15590 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15591 (font_make_spec, font_make_entity, font_make_object)
15592 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15593 the string. Callers changed.
15594 (font_pixel_size): Adjusted for the format change of font-related
15595 objects.
15596 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15597 (font_style_to_value, font_style_symbolic): New function.
15598 (build_font_family_alist): Delete it.
15599 (font_registry_charsets): Use Fassoc_string instead of
15600 assq_no_quit.
15601 (font_prop_validate_symbol): Don't return null_string.
15602 (font_prop_validate_style): Adjusted for the change of
15603 style-related values in a font vector.
15604 (font_property_table): Delete entries for QClanguage and
15605 QCantialias, add entries for QCavgwidth.
15606 (get_font_prop_index): Delete the 2nd argument FROM.
15607 (font_prop_validate): Arguments changed.
15608 (font_put_extra): Adjusted for the change of font-related objects.
15609 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15610 (font_parse_fcname, font_unparse_fcname)
15611 (font_prepare_composition): Likewise.
15612 (font_parse_family_registry): Renamed from font_merge_old_spec.
15613 (otf_open): Delete the 1st arg entity.
15614 (font_otf_capability): Adjusted for the above change.
15615 (font_score): New arg alternate_families. Adjusted for the change
15616 of font-related objects.
15617 (font_sort_entites): New arg best_only.
15618 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15619 Delete them.
15620 (font_match_p): Check alternate families.
15621 (font_find_object): Delete it.
15622 (font_check_object): New function.
15623 (font_clear_cache): Adjusted for the change of font-related objects.
15624 (font_delete_unmatched): New arg.
15625 (font_list_entities): Call font_driver->list with a spec that
15626 doesn't specify style-related properties.
15627 (font_matching_entity): Arguments changed. Caller changed.
15628 (font_open_entity): Adjusted for the change of font-related objects.
15629 (font_close_object, font_has_char, font_encode_char)
15630 (font_get_name, font_get_spec): Likewise.
15631 (font_spec_from_name, font_clear_prop, font_update_lface):
15632 New functions.
15633 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15634 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15635 (font_at): Adjusted for the change of font-related objects.
15636 (font_range): New function.
15637 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15638 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15639 (Fcopy_font_spec, Fmerge_font_spec): New function.
15640 (Ffont_family_list): Renamed from list-families.
15641 (Finternal_set_font_style_table): Arguments changed.
15642 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15643 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15644 change of font-related objects.
15645 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15646
15647 * fontset.h (struct font_info): Delete it. Most members go to
15648 struct font.
15649 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15650 (enum FONT_SPEC_INDEX): Delete it.
15651 (font_info, list_fonts_func, load_font_func, query_font_func)
15652 (set_frame_fontset_func, find_ccl_program_func)
15653 (get_font_repertory_func, new_fontset_from_font_name): Delete
15654 externs.
15655 (fontset_from_font_name): Extern it.
15656 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15657 (FONT_INFO_FROM_FACE): Deleted.
15658 (face_for_font): Adjust prototype.
15659
15660 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15661 conditionals. Don't check enable_font_backend. Delete all codes
15662 used only when USE_FONT_BACKEND is not defined.
15663 (get_font_info_func, list_font_func, load_font_func)
15664 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15665 (get_font_repertory_func): Delete them.
15666 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15667 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15668 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15669 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15670 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15671 (fontset_compare_rfontdef): New function.
15672 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15673 rfont-defs by qsort. Adjusted for the change of font-group vector.
15674 (load_font_get_repertory): Deleted.
15675 (fontset_find_font): Use new macros to ref/set elements of
15676 font-def and rfont-def.
15677 (fontset_font): Fix the timing of remembering that no font for C.
15678 (free_face_fontset): Do nothing if the face has no fontset.
15679 (face_suitable_for_char_p): Use new macros to ref/set elements of
15680 rfont-def.
15681 (face_for_char): Likewise. Call face_for_char with font_object.
15682 (fs_load_font): Delete. Delete #pragma surrounding it.
15683 (fs_query_fontset): Use strcasecmp instead of strcmp.
15684 (generate_ascii_font_name): Adjusted for the format change of
15685 font-spec.
15686 (Fset_fontset_font): Likewise. Use new macros to set elements of
15687 font-def.
15688 (Fnew_fontset): Use font_unparse_xlfd to generate
15689 FONTSET_ASCII (fontset).
15690 (new_fontset_from_font_name): Deleted.
15691 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15692 a fontset is already created for the font. FIx updating of
15693 Vfontset_alias_alist.
15694 (fontset_ascii_font): Deleted.
15695 (Ffont_info): Adjusted for the format change of font-spec.
15696 (Finternal_char_font): Likewise.
15697 (Ffontset_info): Likewise.
15698 (syms_of_fontset): Don't check load_font_func.
15699
15700 * fns.c (internal_equal): Handle PREV_FONT.
15701
15702 * frame.h: Delete USE_FONT_BACKEND conditional.
15703
15704 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15705 conditionals. Don't check enable_font_backend. Delete all codes
15706 used only when USE_FONT_BACKEND is not defined.
15707 (x_set_font): Call x_new_font, not x_new_fontset2.
15708 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15709 already set for the frame.
15710
15711 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15712 a font-entity by font_make_entity. Use font_intern_prop instead
15713 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15714 font property. If a font is scalable, set avgwidth property to 0.
15715 Set font-entity property by font_put_extra.
15716 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15717 (ffont_driver): Adjusted for the change of struct font_driver.
15718 (ftfont_spec_pattern): New function.
15719 (ftfont_list): Return a list, not vector.
15720 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15721 (ftfont_list_family): Don't downcase names.
15722 (ftfont_free_entity): Deleted.
15723 (ftfont_open): Return a font-object. Adjusted for the change of
15724 struct font. Get underline_thickness and underline_position from
15725 font property. Don't update dpyinfo->smallest_font_height and
15726 dpyinfo->smallest_char_width.
15727 (ftfont_close): Don't free `struct font'.
15728 (ftfont_has_char): Adjusted for the format change of font-entity.
15729 (ftfont_encode_char, ftfont_text_extents): Likewise.
15730
15731 * ftxfont.c (ftxfont_list): Return a list, not vector.
15732 (ftxfont_open): Return a font-object. Adjusted for the change of
15733 struct font. Get underline_thickness and underline_position from
15734 font property. Don't update dpyinfo->smallest_font_height and
15735 dpyinfo->smallest_char_width.
15736 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15737 (ftxfont_draw): Adjusted for the change of struct font.
15738
15739 * image.c (image_ascent): Don't include "charset.h". Include
15740 "character.h" and "font.h".
15741
15742 * lisp.h (enum pvec_type): New member PREV_FONT.
15743 (Fassoc_string): EXFUN it.
15744
15745 * print.c: Include font.h.
15746 (print_object): Handle font-related objects.
15747
15748 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15749 conditionals. Don't check enable_font_backend. Delete all codes
15750 used only when USE_FONT_BACKEND is not defined.
15751 (handle_auto_composed_prop): Do nothing if it->f is not on a
15752 window system. Check how many following characters can be
15753 displayed by the same font.
15754 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15755 'struct font *'.
15756 (get_char_face_and_encoding): Assign the whole encoding task to
15757 the `encode-char' method of a font driver.
15758 (fill_composite_glyph_string): Adjusted for the change of `struct
15759 face' and `struct glyph_string'.
15760 (fill_glyph_string): Likewise.
15761 (get_per_char_metric): Arguments changed.
15762 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15763 and `struct glyph_string'.
15764 (produce_stretch_glyph, calc_line_height_property)
15765 (x_produce_glyphs): Likewise.
15766
15767 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15768 conditionals. Don't check enable_font_backend. Delete all codes
15769 used only when USE_FONT_BACKEND is not defined. Use
15770 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15771 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15772 (Qp): Extern them.
15773 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15774 Deleted.
15775 (struct font_name): Deleted.
15776 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15777 (compare_fonts_by_sort_order): New function.
15778 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15779 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15780 Deleted.
15781 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15782 compare_fonts_by_sort_order.
15783 (Fx_font_family_list): Call Ffont_family_list.
15784 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15785 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15786 (face_symbolic_slant, face_symbolic_swidth)
15787 (split_font_name_into_vector, build_font_name_from_vector)
15788 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15789 (font_rescale_ratio, split_font_name, build_font_name)
15790 (free_font_names, sort_fonts, x_face_list_fonts)
15791 (face_font_available_p, sorted_font_list, cmp_font_names)
15792 (font_list_1, concat_font_list, font_list, remove_duplicates):
15793 Deleted.
15794 (Fx_list_fonts): Use Ffont_list.
15795 (LFACE_AVGWIDTH): Deleted.
15796 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15797 by FONTP.
15798 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15799 (set_lface_from_font_name): Delete it.
15800 (set_lface_from_font): Renamed from
15801 set_lface_from_font_and_fontset. Caller changed. Don't set
15802 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15803 for face.
15804 (merge_face_vectors): Copy font-spec if necessary.
15805 Clear properties of the font-spec if necessary.
15806 (merge_face_ref): Clear properties of the font-spec if necessary.
15807 (Finternal_set_lisp_face_attribute): Likewise.
15808 (set_font_frame_param): Use font_load_for_lface to load a
15809 font-object, and call Fmodify_frame_parameters with it.
15810 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15811 font name by Ffont_xlfd_name.
15812 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15813 QCslant, and QCwidth.
15814 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15815 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15816 Compare fonts by EQ.
15817 (lookup_non_ascii_face): Deleted.
15818 (face_for_font): The 2nd argument changed.
15819 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15820 Check atomic font properties by case insensitive.
15821 (realize_non_ascii_face): Set face->overstrike correctly.
15822 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15823 (dump_realized_face): Get font name from
15824 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15825
15826 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15827 conditionals. Don't check enable_font_backend. Delete all codes
15828 used only when USE_FONT_BACKEND is not defined.
15829 (xic_create_xfontset): Original code deleted and renamed from
15830 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15831 (x_make_gc): Don't set GCFont in GCs.
15832 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15833 opened by "fixed".
15834 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15835 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15836 get_font_repertory_func.
15837
15838 * xfont.c: Include <stdlib.h> and "ccl.h".
15839 (struct xfont_info): New structure.
15840 (xfont_query_font): Deleted.
15841 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15842 moved from xterm.c.
15843 (xfont_driver): Adjusted for the change of struct font_driver.
15844 (compare_font_names): New function.
15845 (xfont_list_pattern): Sort font names case insensitively. Make
15846 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15847 (xfont_list): Return a list, not vector.
15848 (xfont_match): If the font doesn't have QCname property, generate
15849 a name from the other font properties.
15850 (xfont_open): Return a font-object. Adjusted for the change of
15851 struct font. Get underline_thickness and underline_position from
15852 font property. Don't update dpyinfo->smallest_font_height and
15853 dpyinfo->smallest_char_width.
15854 (xfont_close): Don't free struct font.
15855 (xfont_prepare_face): Adjusted for the change of struct font.
15856 (xfont_done_face): Deleted.
15857 (xfont_has_char): Adjusted for the change of struct font.
15858 (xfont_encode_char, xfont_draw): Likewise.
15859 (xfont_check): New function.
15860
15861 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15862 callback function.
15863 (xftfont_match): Adjusted for the format change of font-entity.
15864 (xftfont_open): Adjusted for the format change of font-entity and
15865 font-object. Adjusted for the change of struct font. Return a
15866 font-object. Don't update dpyinfo->smallest_font_height and
15867 dpyinfo->smallest_char_width.
15868 (xftfont_close): Block input while calling XftFontClose.
15869 (xftfont_prepare_face): Don't block input while calling
15870 xftfont_get_colors. Adjusted for the change of struct font.
15871 (xftfont_shape): Return value of error case fixed.
15872
15873 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15874
15875 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15876 conditionals.
15877 (FONT_WIDTH): Return (f)->max_width.
15878 (struct x_display_info): Delete member `font'.
15879 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15880 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15881 (struct x_output): Change type of `font' to `struct font *'.
15882
15883 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15884 conditionals. Don't check enable_font_backend. Delete all codes
15885 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15886 (x_per_char_metric, x_encode_char): Deleted.
15887 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15888 (x_compute_glyph_string_overhangs): Adjusted for the change of
15889 `struct face'.
15890 (x_draw_glyph_string_foreground)
15891 (x_draw_composite_glyph_string_foreground): Likewise.
15892 (x_draw_glyph_string): Likewise. Use font->underline_position and
15893 font->underline_thickness.
15894 (x_new_font): Renamed from x_new_fontset2.
15895 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15896 (x_check_font): Call `check' method of a font driver.
15897 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15898 (x_query_font, x_get_font_repertory): Deleted.
15899 (x_find_ccl_program): Renamed and moved to xfont.c.
15900 (x_redisplay_interface): Adjusted for the change of `struct
15901 redisplay_interface'.
15902
15903 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15904 conditionals. Don't check enable_font_backend. Delete all codes
15905 used only when USE_FONT_BACKEND is not defined. Surround non-used
15906 code by "#ifdef OLD_FONT" and "endif".
15907 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15908
15909 * w32font.h (struct w32font_info): New member.
15910 (FONT_COMPAT): New macro.
15911 (w32font_open_internal): Prototype adjusted.
15912
15913 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15914 OLD_FONT" and "endif".
15915
15916 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15917 conditionals. Don't check enable_font_backend. Delete all codes
15918 used only when USE_FONT_BACKEND is not defined.
15919 (w32font_open): Return a font-object. Make a font-object by
15920 font_make_object. Adjusted for the change of struct w32font_info.
15921 (w32font_close): Don't free struct font. Adjusted for the change
15922 of struct w32font_info.
15923 (w32font_encode_char, w32font_text_extents, w32font_draw):
15924 Adjusted for the change of struct w32font_info.
15925 (w32font_draw): Likewise.
15926 (w32font_list_internal): Return a list, not vector.
15927 (w32font_open_internal): Change the 4th arg to font-object.
15928 Adjusted for the change of struct w32font_info and font-object format.
15929 (add_font_name_to_list): Don't downcase names.
15930 (w32_enumfont_pattern_entity): Make a font-entity by
15931 font_make_entity. Adjusted for the format change of font-entity.
15932 Use FONT_SET_STYLE to set a style-related font property. If a
15933 font is scalable, set avgwidth property to 0. Set font-entity
15934 property by font_put_extra.
15935 (font_matches_spec): Adjusted for the format change of font-entity.
15936 (w32_weight_table, w32_decode_weight): New variables.
15937 (w32_encode_weight): New function.
15938 (fill_in_logfont): Adjusted for the format change of font-spec.
15939 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15940 weight value.
15941 (w32font_driver): Adjusted for the change of struct font_driver.
15942
15943 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15944 conditionals. Don't check enable_font_backend. Surround non-used
15945 code by "#ifdef OLD_FONT" and "endif".
15946 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15947 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15948
15949 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15950 conditionals. Don't check enable_font_backend. Delete all codes
15951 used only when USE_FONT_BACKEND is not defined. Surround non-used
15952 code by "#ifdef OLD_FONT" and "endif".
15953
15954 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15955 (uniscribe_open): Return value changed to font-object.
15956 Adjusted for the format change of font-object.
15957 (uniscribe_otf_capability): Adjusted for the change of struct font.
15958 (add_opentype_font_name_to_list): Don't downcase names.
15959 (uniscribe_font_driver): Adjusted for the change of struct
15960 font_driver.
15961
159622008-05-13 Chong Yidong <cyd@stupidchicken.com>
15963
15964 * dispnew.c (update_frame_1): Check if tty output is still valid
15965 before flushing it.
15966
159672008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15968
15969 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15970 to Gtk+ menus.
15971
159722008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15973
15974 * dired.c (file_name_completion): Tweak the code so as to always do it
15975 in a single pass. Tighten the scope of some variables.
15976
15977 * dired.c (Qdefault_directory): New var.
15978 (file_name_completion): Use it instead of Fexpand_file_name.
15979 (syms_of_dired): Initialize it.
15980
159812008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15982
15983 * fileio.c (double_dollars): Remove dead code.
15984
159852008-05-10 Eli Zaretskii <eliz@gnu.org>
15986
15987 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15988 Mention w32-get-true-file-attributes in doc string.
15989
15990 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15991
159922008-05-09 Glenn Morris <rgm@gnu.org>
15993
15994 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15995 2008-04-23.
15996
159972008-05-09 Eli Zaretskii <eliz@gnu.org>
15998
15999 Support for reporting owner and group of each file on MS-Windows:
16000 * dired.c (stat_uname, stat_gname): New functions, with special
16001 implementation for w32.
16002 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16003
16004 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16005 (dflt_group_name): New static variable.
16006 (dflt_group): Rename from the_group.
16007 (init_user_info): Init dflt_group fields. Get user's group name
16008 from LookupAccountSid.
16009 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16010 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16011 New initialization states.
16012 (globals_of_w32): Initialize them to zero. Initialize the default
16013 group name to "None".
16014 (GetFileSecurity_Name): New global var, the name of the function
16015 to call for GetFileSecurity.
16016 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16017 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16018 (get_file_security, get_security_descriptor_owner)
16019 (get_security_descriptor_group, is_valid_sid)
16020 (get_file_security_desc, get_rid, get_name_and_id)
16021 (get_file_owner_and_group): New functions.
16022 (stat): Use get_file_security_desc and get_file_owner_and_group to
16023 report the owner and primary group of each file. Don't ignore the
16024 high 32 bits of file's size, now that st_size is 64-bit wide.
16025 Fix test when to get true file attributes.
16026 (init_user_info): Use get_rid instead of equivalent inline code.
16027 (fstat): Don't ignore the high 32 bits of file's size.
16028
160292008-05-09 Chong Yidong <cyd@stupidchicken.com>
16030
16031 * image.c (png_load): Use correct bit-depth for setting background
16032 color.
16033
160342008-05-08 Eli Zaretskii <eliz@gnu.org>
16035
16036 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16037 epa-hook.elc.
16038
160392008-05-08 Juanma Barranquero <lekktu@gmail.com>
16040
16041 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16042
160432008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16044
16045 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16046 because the original parameters are in pure storage now.
16047 (mac_window): Remove unused params. Update callers.
16048
160492008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16050
16051 * lread.c (substitute_object_recurse): Use lower-level primitives.
16052 Don't signal errors when traversing sub-char-tables.
16053 Don't loop over all the possible characters when traversing char-tables.
16054
16055 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16056 just like we do in print.c.
16057
160582008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16059
16060 * minibuf.c (Ftry_completion): Remove code left over from when we used
16061 scmp instead of Fcompare_strings.
16062
160632008-05-04 Juanma Barranquero <lekktu@gmail.com>
16064
16065 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16066
160672008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16068
16069 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16070 Create bitmap context in native byte order.
16071
16072 * macterm.c (XDrawLine)
16073 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16074 context in native byte order.
16075
160762008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16077
16078 * config.in: Regenerate.
16079
16080 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16081 New definitions for Image I/O support.
16082 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16083 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16084 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16085 (mac_data_provider_release_data, image_load_image_io)
16086 [USE_MAC_IMAGE_IO]: New functions.
16087 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16088 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16089 (init_image_func_pointer) [MAC_OSX]: Remove function.
16090 (image_load_quartz2d) [MAC_OSX]: Check availability of
16091 CGImageCreateWithPNGDataProvider at compile time.
16092 Use lowercase `false' for boolean constant.
16093 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16094 Use image_load_image_io.
16095 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16096 Don't check MyCGImageCreateWithPNGDataProvider.
16097 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16098 Don't call init_image_func_pointer.
16099
16100 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16101
16102 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16103 Make variable non-static.
16104 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16105 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16106
16107 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16108 (RED_FROM_ULONG): Mask off higher bits.
16109 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16110
16111 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16112 Include AvailabilityMacros.h.
16113 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16114 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16115
161162008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16117
16118 * chartab.c (Fset_char_table_range): If range is t, really set all
16119 chars to that value.
16120
161212008-05-03 Eli Zaretskii <eliz@gnu.org>
16122
16123 * dired.c (Ffile_attributes): Don't allow the device number become
16124 negative.
16125
161262008-05-02 Daiki Ueno <ueno@unixuser.org>
16127
16128 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16129
161302008-05-02 Juri Linkov <juri@jurta.org>
16131
16132 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16133 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16134 DEFAULT argument as a list of default values in docstrings.
16135
161362008-05-01 Chong Yidong <cyd@stupidchicken.com>
16137
16138 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16139
161402008-05-01 Martin Rudalics <rudalics@gmx.at>
16141
16142 * dispnew.c (change_frame_size_1): Preserve small windows when
16143 shrinking frames by calling set_window_height|width with third
16144 arg 2.
16145
16146 * window.h (struct window): Replace field too_small_ok by field
16147 resize_proportionally.
16148
16149 * window.c (make_window): Initialize resize_proportionally.
16150 (enlarge_window): Temporarily set resize_proportionally to make
16151 sure that shrink_windows does scale the window proportionally.
16152 (shrink_windows): When window has resize_proportionally set try
16153 to shrink it proportionally by stealing from other windows.
16154 (struct saved_window, Fset_window_configuration)
16155 (compare_window_configurations): Handle resize_proportionally.
16156 (WINDOW_TOTAL_SIZE): New macro.
16157 (window_min_size, shrink_windows, size_window): Use it.
16158 (check_min_window_sizes): Remove. Invalid values of
16159 window-min-height|width are handled by window_min_size_2 now.
16160 (size_window, Fsplit_window, enlarge_window)
16161 (adjust_window_trailing_edge, grow_mini_window): Don't call
16162 check_min_window_sizes.
16163 (window_min_size_2, window_min_size_1, window_min_size):
16164 New argument safe_p for retrieving "safe" minimum sizes.
16165 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16166 (adjust_window_trailing_edge, grow_mini_window):
16167 Adjust arguments of window_min_size... functions.
16168 (shrink_windows): Argument min_size removed. New argument
16169 safe_p allows shrinking windows to their safe minimum sizes.
16170 Calculate minimum size and decide whether a window shall be
16171 deleted for each window individually.
16172 (size_window): When nodelete_p equals 2, tell shrink_windows to
16173 delete windows only if their new minimum size is no more safe.
16174 (shrink_window_lowest_first): Call window_min_size_1 to make
16175 sure to preserve modeline of bottom-most window when resizing
16176 the minibuffer.
16177 (Fset_window_configuration, Fcurrent_window_configuration)
16178 (compare_window_configurations): Do not handle
16179 window-min-height|width any more.
16180 (syms_of_window): Clarify window-min-height|width doc-strings.
16181
161822008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16183
16184 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16185 some more. Copy some of the code from Ftry_completions.
16186 Remove special case code that dates back to initial revision when the
16187 slash was only added when necessary and that can't trigger nowadays.
16188
161892008-04-27 Kenichi Handa <handa@m17n.org>
16190
16191 * font.c (font_prop_validate): Signal `error' instead of `font'.
16192
161932008-04-29 Jason Rumney <jasonr@gnu.org>
16194
16195 * w32fns.c (Fw32_battery_status): New defun.
16196 (syms_of_w32fns): Defsubr it.
16197
161982008-04-28 Andreas Schwab <schwab@suse.de>
16199
16200 * dired.c (file_name_completion): Fix another mixing of encoded
16201 and decoded names.
16202
162032008-04-28 Juanma Barranquero <lekktu@gmail.com>
16204
16205 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16206
162072008-04-27 Juanma Barranquero <lekktu@gmail.com>
16208
16209 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16210
162112008-04-27 Andreas Schwab <schwab@suse.de>
16212
16213 * dired.c (file_name_completion): Fix inappropriate mixing of
16214 encoded and decoded names.
16215
16216 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16217
16218 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16219
162202008-04-26 Eli Zaretskii <eliz@gnu.org>
16221
16222 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16223 2008-03-31, it's not needed anymore with `struct stat' definition
16224 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16225 for the same reasons.
16226
162272008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16228
16229 * m/sparc.h: Additional redefinitions for GNU/Linux.
16230
162312008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16232
16233 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16234 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16235 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16236 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16237 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16238 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16239 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16240 Likewise.
16241
16242 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16243 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16244 (mac_ax_number_of_characters): Add externs.
16245 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16246 [USE_MAC_TSM]: Likewise.
16247 (mac_handle_text_input_event) [MAC_OSX]:
16248 Handle kEventTextInputOffsetToPos for no active input area case.
16249 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16250 (mac_handle_document_access_event)
16251 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16252 (install_application_handler) [MAC_OSX]: Register handlers for
16253 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16254 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16255 Register mac_handle_document_access_event.
16256
16257 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16258 Make functions non-static.
16259
162602008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16261
16262 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16263 (read_file_name_completion_ignore_case, insert_default_directory)
16264 (Qdefault_directory): Move to minibuffer.el.
16265 (Fread_file_name): Call the new `read-file-name' instead.
16266
162672008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16268
16269 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16270 Make function non-static.
16271 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16272 Remove function.
16273 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16274 Move to mactoolbox.c.
16275 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16276
16277 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16278 (mac_rect_make): New macro.
16279
16280 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16281 instead of float.
16282 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16283 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16284 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16285 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16286 CGRectMake.
16287 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16288 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16289 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16290 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16291 instead of WindowRef in argument type.
16292 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16293 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16294 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16295 instead of DISPLAY. All uses changed.
16296 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16297 (x_calc_absolute_position): Simplify so as not to use
16298 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16299
16300 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16301 instead of WindowRef in argument type.
16302 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16303 [TARGET_API_MAC_CARBON]: Remove externs.
16304 (create_apple_event, mac_event_parameters_to_lisp)
16305 [TARGET_API_MAC_CARBON]: Add externs.
16306
16307 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16308 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16309 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16310 is clicked.
16311 (x_activate_menubar): Remove extern for saved_menu_event_location.
16312 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16313 Move from mac.c.
16314
163152008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16316
16317 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16318 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16319
163202008-04-23 Jason Rumney <jasonr@gnu.org>
16321
16322 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16323 attributes only for local files.
16324
16325 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16326 default to Qlocal.
16327
163282008-04-22 Juri Linkov <juri@jurta.org>
16329
16330 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16331 read-buffer-to-switch instead of using the letter "B".
16332
163332008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16334
16335 * fileio.c (Qdefault_directory): New variable.
16336 (Fread_file_name): Use it to pass `dir' to the completion functions.
16337
163382008-04-20 Chong Yidong <cyd@stupidchicken.com>
16339
16340 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16341
163422008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16343
16344 * keyboard.c (Vpre_help_message): Remove.
16345 (show_help_echo): Remove default C code.
16346
16347 * dired.c (directory_files_internal, file_name_completion):
16348 Only call ENCODE_FILE if the string is indeed decoded.
16349
163502008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16351
16352 * Makefile.in (TOOLKIT_DEFINES): Remove.
16353 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16354
163552008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16356
16357 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16358 (mactoolbox.o): New target.
16359
16360 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16361 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16362
16363 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16364 Use mac_set_frame_window_background instead of XSetWindowBackground.
16365 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16366 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16367 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16368 instead of SetWindowTitleWithCFString.
16369 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16370 Move function to mactoolbox.c.
16371 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16372 Use mac_set_window_modified instead of SetWindowModified.
16373 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16374 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16375 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16376 FrontNonFloatingWindow. Use mac_activate_window instead of
16377 ActivateWindow. Use mac_active_non_floating_window instead of
16378 ActiveNonFloatingWindow.
16379 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16380 Use mac_show_hourglass and mac_hide_hourglass.
16381 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16382 instead of GetGlobalMouse.
16383 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16384 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16385 Use mac_bring_window_to_front instead of BringToFront.
16386 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16387 mactoolbox.c.
16388 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16389 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16390 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16391 mactoolbox.c.
16392
16393 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16394 (XtPointer): Move typedef from macmenu.c.
16395 (enum button_type): Move enum from macmenu.c.
16396 (widget_value): Move typedef from macmenu.c.
16397 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16398 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16399 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16400 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16401 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16402 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16403 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16404 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16405 (Selection): Move typedef from macselect.c.
16406 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16407 macterm.c.
16408 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16409 (mac_is_window_collapsed, mac_bring_window_to_front)
16410 (mac_send_window_behind, mac_hide_window, mac_show_window)
16411 (mac_collapse_window, mac_front_non_floating_window)
16412 (mac_active_non_floating_window, mac_activate_window)
16413 (mac_move_window_structure, mac_move_window, mac_size_window)
16414 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16415
16416 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16417 (enum mac_menu_kind): Move enum to mactoolbox.c.
16418 (min_menu_id): Move variable to mactoolbox.c.
16419 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16420 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16421 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16422 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16423 [TARGET_API_MAC_CARBON]: Likewise.
16424 (XtPointer): Move typedef to macgui.h.
16425 (enum button_type): Move enum to macgui.h.
16426 (widget_value): Move typedef to macgui.h.
16427 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16428 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16429 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16430 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16431 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16432 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16433 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16434 (popup_activated_flag): Make variable non-static.
16435 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16436 (add_menu_item, fill_menu, dispose_menus):
16437 Move functions to mactoolbox.c.
16438 (restore_show_help_function, menu_target_item_handler)
16439 (install_menu_target_item_handler, mac_handle_dialog_event)
16440 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16441 [TARGET_API_MAC_CARBON]: Likewise.
16442 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16443 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16444 (find_and_call_menu_selection, name_is_separator): Make function
16445 non-static.
16446 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16447 to mactoolbox.c.
16448 (set_frame_menubar): Don't call install_menu_quit_handler.
16449 (menu_item_selection): New variable.
16450 (mac_menu_show): Use create_and_show_popup_menu.
16451 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16452 selection but set variable menu_item_selection. All uses changed.
16453 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16454 Call install_menu_quit_handler. Move to mactoolbox.c.
16455
16456 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16457 (Selection): Move typedef to macgui.h.
16458 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16459 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16460 Make variables non-static.
16461 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16462 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16463 Make functions non-static.
16464 (Vmac_service_selection) [MAC_OSX]: Likewise.
16465 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16466 (mac_valid_selection_target_p, mac_clear_selection)
16467 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16468 (mac_put_selection_value, mac_selection_has_target_p)
16469 (mac_get_selection_value, mac_get_selection_target_list)
16470 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16471 Move functions to mactoolbox.c.
16472 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16473 Likewise.
16474 (copy_scrap_flavor_data, mac_handle_service_event)
16475 (install_service_handler) [MAC_OSX]: Likewise.
16476 (syms_of_macselect) <Vmac_dnd_known_types>:
16477 Use mac_dnd_default_known_types.
16478
16479 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16480 Move to mactoolbox.c.
16481 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16482 (Fx_selection_owner_p): Add EXFUN.
16483 (install_window_handler, remove_window_handler, XSetWindowBackground):
16484 Remove externs.
16485 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16486 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16487 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16488 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16489 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16490 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16491 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16492 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16493 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16494 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16495 (mac_valid_selection_target_p, mac_clear_selection)
16496 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16497 (mac_put_selection_value, mac_selection_has_target_p)
16498 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16499 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16500 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16501 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16502 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16503 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16504 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16505 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16506 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16507
16508 * mactoolbox.c: New file.
16509
165102008-04-18 Jason Rumney <jasonr@gnu.org>
16511
16512 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16513
165142008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16515
16516 * character.c (Fmultibyte_char_to_unibyte):
16517 Return latin1 chars unchanged.
16518
16519 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16520 relocated if it points to `name'.
16521
165222008-04-17 Kenichi Handa <handa@m17n.org>
16523
16524 * data.c (Faset): Allow setting a multibyte character in an
16525 ASCII-only unibyte string.
16526
16527 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16528
165292008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16530
16531 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16532 done in config.h.
16533
165342008-04-16 Juanma Barranquero <lekktu@gmail.com>
16535
16536 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16537 (Fchar_direction): Add usage in the docstring.
16538
165392008-04-15 Chong Yidong <cyd@stupidchicken.com>
16540
16541 * keyboard.c (read_key_sequence): Remove always-true checks.
16542
165432008-04-14 Jason Rumney <jasonr@gnu.org>
16544
16545 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16546 compatibility struct, for better underline positioning.
16547
165482008-04-13 David Hansen <david.hansen@gmx.net>
16549
16550 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16551 string.
16552
165532008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16554
16555 * m/hp800.h (XUINT, XSET): Remove.
16556
165572008-04-12 Juanma Barranquero <lekktu@gmail.com>
16558
16559 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16560 previous change.
16561
165622008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16563
16564 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16565 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16566
165672008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16568
16569 * keymap.h (map_keymap_canonical): Declare.
16570 * xmenu.c (single_keymap_panes): Use it.
16571
165722008-04-11 Glenn Morris <rgm@gnu.org>
16573
16574 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16575 set the target's value to that of the alias.
16576
165772008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16578
16579 * term.c (set_tty_color_mode): Left over typo.
16580
165812008-04-10 Michael Albinus <michael.albinus@gmx.de>
16582
16583 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16584 only after check for file name handler functions. Signal, when
16585 native functionality is not supported.
16586 (syms_of_fileio): Declare it unconditionally.
16587
165882008-04-10 Jason Rumney <jasonr@gnu.org>
16589
16590 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16591 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16592
16593 * w32.c (logon_network_drive): Also logon to remote drives that
16594 are mapped to drive letters.
16595
165962008-04-10 Glenn Morris <rgm@gnu.org>
16597
16598 * xdisp.c (truncate-partial-width-windows): Doc fix.
16599
166002008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16601
16602 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16603 Move functions to minibuffer.el.
16604 (syms_of_fileio): Don't declare them.
16605
166062008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16607
16608 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16609 (syms_of_minibuf): Remove its initialization.
16610
16611 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16612
166132008-04-09 Juanma Barranquero <lekktu@gmail.com>
16614
16615 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16616
166172008-04-09 Jason Rumney <jasonr@gnu.org>
16618
16619 * makefile.w32-in (distclean): Delete makefile too.
16620 (maintainer-clean): New target.
16621
16622 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16623
16624 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16625 for new font backend and composite cases.
16626
166272008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16628
16629 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16630 Most of the code moved to run_timers.
16631 (do_pending_atimers): Call run_timers.
16632 (run_timers): New function.
16633
16634 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16635 run atimers.
16636
16637 * process.c (wait_reading_process_output): The same as above.
16638
166392008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16640
16641 * minibuf.c (last_exact_completion): Remove variable.
16642 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16643 (complete_and_exit_1, complete_and_exit_2)
16644 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16645 (Fdisplay_completion_list, display_completion_list_1)
16646 (Fminibuffer_completion_help, Fself_insert_and_exit)
16647 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16648 minibuffer.el.
16649 (syms_of_minibuf): Remove corresponding initializations.
16650
16651 * keyboard.c (Qdeactivate_mark): New var.
16652 (command_loop_1): Use it to call `deactivate-mark'.
16653 (syms_of_keyboard): Initialize it.
16654
16655 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16656 to another frame.
16657 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16658 Don't call set_tty_color_mode.
16659 (store_frame_param): Reset previous_frame rather than call
16660 set_tty_color_mode.
16661 * term.c (set_tty_color_mode): Rewrite.
16662 * dispextern.h (set_tty_color_mode): New type.
16663 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16664
166652008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16666
16667 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16668 for generic chars, which do not exist any more in emacs-unicode.
16669
166702008-04-08 Michael Albinus <michael.albinus@gmx.de>
16671
16672 * coding.c (detect_coding_emacs_mule)
16673 (Ffind_operation_coding_system): Fix typo.
16674
166752008-04-08 Jason Rumney <jasonr@gnu.org>
16676
16677 * w32uniscribe.c (SNAME): Extract only symbol name.
16678
16679 * w32font.h (struct w32_metric_cache): New struct.
16680 (w32font_info): Use it.
16681 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16682 (CACHE_BLOCKSIZE): New constants.
16683
16684 * w32font.c (Qja, Qko, Qzh): New symbols.
16685 (syms_of_w32font): Initialise them.
16686 (font_matches_spec): Use them to filter by language.
16687 (recompute_cached_metrics): Remove function.
16688 (compute_metrics, clear_cached_metrics): New functions.
16689 (w32font_encode_char): Use them to manage metric cache.
16690 (w32font_text_extents): Cache metrics for all glyphs on demand.
16691 Delay converting glyph indices to WORD until needed.
16692 (w32font_open_internal): Initialize metric cache to empty.
16693 (registry_to_w32_charset): Charset should always be a symbol.
16694 (fill_in_logfont, list_all_matching_fonts): Family should
16695 always be a symbol.
16696
166972008-04-06 Jason Rumney <jasonr@gnu.org>
16698
16699 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16700 Give up if glyph indices not supported. Use uniscribe obtained
16701 ABC widths for individual metrics. Map glyph clusters back to
16702 characters using fClusterStart flag. Return number of glyphs
16703 produced, not chars processed.
16704 (uniscribe_shape): Map char at FROM to current glyph.
16705
167062008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16707
16708 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16709 Use SetMenuItemHierarchicalMenu.
16710
167112008-04-05 Jason Rumney <jasonr@gnu.org>
16712
16713 * image.c (pbm_load): Allow color values up to 65535.
16714 Throw an error if max_color_idx is outside the supported range.
16715 Report an error when image size is invalid.
16716 Read two bytes at a time when raw images have max_color_idx above 255.
16717
aac0c6e3
MR
167182008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16719
16720 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16721 append "CCL: Quitted" when the CCL program is quitted.
16722 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16723
16724 * ccl.h (struct ccl_program): New member quit_silently.
16725
167262008-04-05 Chong Yidong <cyd@stupidchicken.com>
16727
16728 * search.c (compile_pattern_1): Treat non-nil and non-string of
16729 search-spaces-regexp as nil.
16730
16731 * minibuf.c (Fassoc_string): Tweak docstring.
16732
167332008-04-05 Eli Zaretskii <eliz@gnu.org>
16734
16735 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16736 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16737 2008-03-14 to force inode be positive.
16738
16739 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16740 _S_* ones, since we now use our own sys/stat.h.
16741 (stat, fstat): Don't mangle the inode number.
16742 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16743
167442008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16745
16746 * frame.h (struct frame): Give one more bit to `visible' since we use
16747 values larger than 1 to indicate obscured frames on ttys.
16748
16749 * keymap.c (Qkeymap_canonicalize): New var.
16750 (Fmap_keymap_internal): New fun.
16751 (describe_map): Use keymap-canonicalize.
16752
16753 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16754 (Fundo_boundary): Set them.
16755 (syms_of_undo): Initialize them.
16756 (record_point): Use them instead of last_point_position*.
16757 (last_undo_buffer): Change type.
16758
167592008-04-04 Jason Rumney <jasonr@gnu.org>
16760
16761 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16762 (recompute_cached_metrics): Don't set ascent and descent per char.
16763
16764 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16765 (uniscribe_check_otf): Add GC protection before consing.
16766 Rearrange loop for counting features.
16767
167682008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16769
16770 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16771 buffer with byte-size of source buffer.
16772
167732008-04-03 Chong Yidong <cyd@stupidchicken.com>
16774
16775 * callint.c (Fcall_interactively): Handle temporary region even
16776 when shift-select-mode is off.
16777
167782008-04-03 Jason Rumney <jasonr@gnu.org>
16779
16780 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16781
167822008-04-03 Kenichi Handa <handa@m17n.org>
16783
16784 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16785 (CATEGORY_MASK_UTF_16): Likewise.
16786 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16787 binary file.
16788 (detect_coding): Add null-byte detection for a binary file.
16789 (detect_coding_system): Likewise.
16790
167912008-04-03 Jason Rumney <jasonr@gnu.org>
16792
16793 * w32uniscribe.c: New file.
16794
16795 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16796
16797 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16798
16799 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16800 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16801 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16802 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16803 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16804 (Qphonetic): New symbols.
16805 (syms_of_w32font): Initialize them.
16806 (font_supported_scripts): Use them.
16807 (w32font_list_family): List all charsets.
16808 (w32font_text_extents, recompute_cached_metrics): Fix metric
16809 calculations.
16810 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16811 Give opentype fonts their own format.
16812 (font_matches_spec): New arguments backend and logfont.
16813 Handle :otf spec for uniscribe backend.
16814 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16815 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16816
16817 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16818 font backend.
16819 (globals_of_w32fns): Initialize uniscribe font backend.
16820
16821 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16822 dependencies.
16823 (w32uniscribe.$(O)): New file to build.
16824 (FONT_OBJ): Include w32uniscribe.$(O).
16825 (LIBS): Add uniscribe libraries.
16826
16827 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16828
168292008-04-02 Chong Yidong <cyd@stupidchicken.com>
16830
16831 * callint.c (Vshift_select_mode): New var.
16832 (Finteractive): Document new ^ spec.
16833 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16834 is present.
16835
16836 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16837 (command_loop_1): Avoid running the direct display versions of
16838 forward-char and backward-char if shift-selection may occur.
16839 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16840 shift-translation takes place.
16841
16842 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16843 avoid clobbering by define-minor-mode.
16844
16845 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16846 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16847
16848 * syntax.c (Fforward_word): Add ^ interactive spec.
16849
16850 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16851 (Fscroll_right): Add ^ interactive spec.
16852
168532008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16854
16855 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16856
16857 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16858
16859 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16860
168612008-03-31 Juri Linkov <juri@jurta.org>
16862
16863 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16864
168652008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16866
16867 * gtkutil.c (xg_set_geometry): Fix indentation.
16868 (xg_resize_outer_widget): Remove.
16869 (x_wm_size_hint_off): Fix indentation.
16870 (xg_frame_set_char_size): Call flush_and_sync after
16871 gtk_window_resize.
16872 (x_wm_set_size_hint): Pass NULL as geometry window to
16873 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16874 Add menu bar and tool bar height to base height.
16875 (xg_update_frame_menubar, free_frame_menubar)
16876 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16877 (update_frame_tool_bar, free_frame_tool_bar):
16878 Change xg_resize_outer_widget to xg_frame_set_char_size.
16879
168802008-03-30 Michael Albinus <michael.albinus@gmx.de>
16881
16882 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16883 (Fdbus_call_method): New parameter TIMEOUT.
16884 (dbus-send-signal): Optimize UNGCPRO call.
16885
168862008-03-29 Juri Linkov <juri@jurta.org>
16887
16888 * window.c (Fdisplay_buffer): Move call to
16889 Vsplit_window_preferred_function out of conditions that check
16890 if window is eligible for vertical splitting.
16891 When Vsplit_window_preferred_function is non-nil, call it and use
16892 its non-nil return value as window. Otherwise, continue doing
16893 vertical splitting using Fsplit_window with arg horflag=nil.
16894 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16895 default value from `split-window' to nil.
16896
168972008-03-29 Juri Linkov <juri@jurta.org>
16898
16899 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16900 for interactive code letters 'b' and 'B'.
16901
169022008-03-29 Eli Zaretskii <eliz@gnu.org>
16903
16904 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16905 multibyte string.
16906
169072008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16908
16909 * keyboard.c (pending_funcalls): New var.
16910 (timer_check): Run it.
16911 (syms_of_keyboard): Initialize it.
16912 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16913 (Vdelete_terminal_functions): New vars.
16914 (syms_of_terminal): Initialize them.
16915 (Fdelete_terminal): Run delete-terminal-functions.
16916 * xdisp.c (safe_eval): Rewrite.
16917 (safe_call2): New fun.
16918 * frame.c (Qdelete_frame_functions): New var.
16919 (syms_of_frame): Initialize it.
16920 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16921 * lisp.h (safe_call2, pending_funcalls): Declare.
16922
169232008-03-28 Andreas Schwab <schwab@suse.de>
16924
16925 * indent.c (Fmove_to_column): Move declaration before statements.
16926
169272008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16928
16929 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16930 (struct frame): Use bit fields for boolean vars.
16931
16932 * process.c (server_accept_connection): Simplify naming.
16933 (emacs_get_tty_pgrp): Use SDATA.
16934
16935 * coding.c (decode_coding_object): Fix last change.
16936
169372008-03-27 Jason Rumney <jasonr@gnu.org>
16938
16939 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16940
169412008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16942
16943 * charset.c (Fdefine_charset_internal): Change the way of
16944 registering charsets in Vcharset_order_list.
16945 (syms_of_charset): Make the charset `eight-bit' supplementary.
16946
169472008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16948
16949 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16950 operations, to avoid having the difference between pointers
16951 overflow.
16952
169532008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16954
16955 * indent.c (check_display_width): New fun.
16956 (scan_for_column): Use it.
16957
16958 * data.c (syms_of_data): Mark most-positive-fixnum and
16959 most-negative-fixnum as constants.
16960
16961 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16962
16963 * indent.c (scan_for_column): Extract from current_column_1.
16964 Merge with the same code from Fmove_to_column.
16965 (current_column_1, Fmove_to_column): Use it.
16966
169672008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16968
16969 * keymap.c (map_keymap_internal): New fun.
16970 (map_keymap): Use it.
16971 (Fmap_keymap_internal): New fun.
16972 (Fmap_keymap): Remove left-out test from before make_save_value.
16973
16974 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16975
16976 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16977 Use XCAR/XCDR.
16978
16979 * process.h (struct Lisp_Process): Remove filter_multibyte.
16980 * process.c (QCfilter_multibyte): Remove.
16981 (setup_process_coding_systems): Don't use filter_multibyte.
16982 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16983 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16984 (Fset_process_filter_multibyte): Change the coding-system to
16985 approximate the previous behavior.
16986 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16987 coding-system.
16988
16989 * coding.c (decode_coding_object): When not decoding into a buffer,
16990 obey the coding system's preference of (uni|multi)byte.
16991
169922008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16993
16994 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16995 every char is changed and has a different byte-length.
16996 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16997 Fix int -> EMACS_INT.
16998
169992008-03-23 David Hansen <david.hansen@gmx.net>
17000
17001 * dbusbind.c (xd_read_message): Remove extra copying of message
17002 strings. Check for NULL `interface' or `member'.
17003
170042008-03-22 Eli Zaretskii <eliz@gnu.org>
17005
17006 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17007 cFileName a file name that includes `?' characters, use the 8+3
17008 alias in cAlternateFileName instead.
17009
170102008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17011
17012 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17013
170142008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17015
17016 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17017 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17018 work on current_buffer only instead (that was already the case
17019 for some of the code anyway).
17020 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17021 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17022 (SET_PT, SET_PT_BOTH): Adjust.
17023 * intervals.h (set_point, temp_set_point, set_point_both)
17024 (temp_set_point_both): Remove redundant declarations.
17025
170262008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17027
17028 * fileio.c (Finsert_file_contents):
17029 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17030 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17031 when buffer != current_buffer anyway.
17032
170332008-03-20 Andreas Schwab <schwab@suse.de>
17034
17035 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17036 as default.
17037
170382008-03-19 Jason Rumney <jasonr@gnu.org>
17039
17040 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17041 (syms_of_w32fns): Initialize them.
17042 (HOURGLASS_ID): New constant.
17043 (x_window_to_frame): Don't check hourglass_window.
17044 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17045 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17046 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17047 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17048 Only change the cursor if hourglass is not active.
17049 (Fx_create_frame): Initialize frame's current_cursor.
17050 (hourglass_atimer): Remove.
17051 (hourglass_started): New function.
17052 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17053 (show_hourglass): Adapt to w32, changing argument to frame.
17054
17055 * w32term.h (struct w32_output): Remove hourglass_window.
17056 Add current_cursor.
17057
17058 * eval.c (call_debugger, Fsignal):
17059 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17060 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17061 (Fexecute_extended_command, cancel_hourglass_unwind):
17062 * minibuf.c (read_minibuf):
17063 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17064
170652008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17066
17067 * window.c (run_funs): New fun.
17068 (run_window_configuration_change_hook): Use it to run the buffer-local
17069 and the global part of the hook.
17070
17071 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17072 (unwind_format_mode_line): Restore selected window.
17073 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17074
170752008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17076
17077 * editfns.c (Fchar_equal): Check they are valid characters.
17078
17079 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17080
170812008-03-17 Andreas Schwab <schwab@suse.de>
17082
17083 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17084 against a charset.
17085
17086 * lisp.h (Fbuffer_list): Declare.
17087
170882008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 17089
aac0c6e3
MR
17090 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17091 handlebox_widget is != 0.
17092
170932008-03-16 Juri Linkov <juri@jurta.org>
17094
17095 * callint.c (Fcall_interactively): For interactive code letters
17096 'b' and 'B' put the buffer list into the list of default "future"
17097 values of the minibuffer.
17098
170992008-03-16 Andreas Schwab <schwab@suse.de>
17100
17101 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17102 modifiers.
17103
17104 * regex.c (re_match_2_internal): Correct matching of a charset
17105 against latin-1 characters.
17106
171072008-03-16 Kenichi Handa <handa@m17n.org>
17108
17109 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17110 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17111 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17112 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17113 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17114 CHAR_STRING_ADVANCE.
17115 (produce_chars): Fix for the case that the source and the
17116 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17117 instead of CHAR_STRING_ADVANCE.
17118 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17119 STRING_CHAR_ADVANCE.
17120
171212008-03-15 Andreas Schwab <schwab@suse.de>
17122
17123 * regex.c (re_match_2_internal): Correct matching of eight bit
17124 characters in unibyte strings.
17125
171262008-03-15 Martin Rudalics <rudalics@gmx.at>
17127
17128 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17129 at end of range when it coincides with the end of the buffer.
17130
171312008-03-14 Eli Zaretskii <eliz@gnu.org>
17132
17133 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17134
17135 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17136
171372008-03-14 Jason Rumney <jasonr@gnu.org>
17138
17139 * editfns.c (initial_tz): New variable.
17140 (syms_of_editfns): Initialize it.
17141 (Fset_time_zone_rule): Set it when first called.
17142 Use it when TZSTRING is nil.
17143
17144 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17145 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17146 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17147 (globals_of_w32fns): Initialize them.
17148 (compute_tip_xy): Use them to position tooltips.
17149
171502008-03-14 Glenn Morris <rgm@gnu.org>
17151
17152 * emacs.c (main): Revert previous change.
17153 (standard_args): Revert -internal-script back to -scriptload,
17154 and remove the long-option form.
17155
171562008-03-13 Glenn Morris <rgm@gnu.org>
17157
17158 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17159 Remove option -enable-font-backend.
17160
171612008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17162
17163 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17164
171652008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17166
17167 * xterm.c (x_connection_closed): For GTK: If this is the last
17168 terminal just exit without closing the display.
17169
171702008-03-11 Jason Rumney <jasonr@gnu.org>
17171
17172 * w32font.c (w32font_full_name): Use floor to round.
17173
f0131492 171742008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
17175
17176 * sound.c (alsa_configure): Declare vol at beginning of block.
17177
17178 * fontset.c (Ffontset_info): Remove extra semicolon.
17179
171802008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17181
17182 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17183 size of resulting string.
17184
171852008-03-10 Jason Rumney <jasonr@gnu.org>
17186
17187 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17188
171892008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17190
17191 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17192 Don't pretend as if characters with display property haven't been
17193 consumed for string-replacing-string case.
17194
171952008-03-08 Kim F. Storm <storm@cua.dk>
17196
17197 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17198 (get_next_display_element, next_element_from_string)
17199 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17200
172012008-03-08 Andreas Schwab <schwab@suse.de>
17202
17203 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17204
172052008-03-06 Jason Rumney <jasonr@gnu.org>
17206
17207 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17208 when charset not specified. Only translate ANSI to unicode when
17209 font_type is truetype.
17210 (w32font_coverage_ok): New function.
17211 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17212
172132008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17214
17215 * lread.c (Fread_char): Resolve modifiers.
17216 (Fread_char_exclusive): Likewise.
17217
17218 * character.c (char_resolve_modifier_mask): New function.
17219 (char_string): Use char_resolve_modifier_mask.
17220 (Fchar_resolve_modifiers): New function.
17221 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17222 function.
17223
172242008-03-04 Jason Rumney <jasonr@gnu.org>
17225
17226 * makefile.w32-in: Always include w32font.c in the build.
17227 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17228
172292008-03-04 Andreas Schwab <schwab@suse.de>
17230
17231 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17232 (versionclean): Likewise.
17233
172342008-03-04 Juanma Barranquero <lekktu@gmail.com>
17235
17236 * .cvsignore: Add oo.
17237
172382008-03-03 Andreas Schwab <schwab@suse.de>
17239
17240 * coding.c (decode_coding_object): Inhibit gap shrinking while
17241 decoding in place.
17242
172432008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17244
17245 * w32term.c: Remove unused include "gnu.h".
17246 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17247
17248 * gnu.h: Rename to ...
17249 * emacs-icon.h: ... this.
17250 * xterm.c: Use emacs-icon.h instead of gnu.h.
17251 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17252
172532008-03-03 Juanma Barranquero <lekktu@gmail.com>
17254
17255 * w32font.c: Include math.h.
17256
172572008-03-03 Jason Rumney <jasonr@gnu.org>
17258
17259 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17260 Compute options separately.
17261 (w32font_open_internal): Set glyph_idx before caching metrics.
17262
17263 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17264 Define if system headers don't.
17265 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17266 (w32font_encode_char): Don't declare here.
17267
17268 * w32font.c (Quniscribe, QCformat): New symbols.
17269 (syms_of_w32font): Define them.
17270 (w32font_has_char): Indicate uncertainty.
17271 (w32font_encode_char): Encode as glyph point. Make static.
17272 (recompute_cached_metrics): New function.
17273 (w32font_open_internal): Use it. Set font to use glyph points
17274 initially. Set format based on type of font.
17275 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17276 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17277 on it. Set format based on information available here.
17278 (add_font_entity_to_list): Identify backend based on opentype_only.
17279
172802008-03-02 Andreas Schwab <schwab@suse.de>
17281
17282 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17283
17284 * coding.c (decode_coding_big5, produce_chars):
17285 Fix typos in last change.
17286
172872008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17288
17289 * gnu.h: New icon.
17290
172912008-03-02 Kenichi Handa <handa@m17n.org>
17292
17293 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17294 `dos', don't decode '\r' if that is the last in the source.
17295 (decode_coding_utf_16, decode_coding_emacs_mule)
17296 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17297 (decode_coding_raw_text, decode_coding_charset): Likewise.
17298 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17299
173002008-03-01 Jason Rumney <jasonr@gnu.org>
17301
17302 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17303
173042008-03-01 Kim F. Storm <storm@cua.dk>
17305
17306 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17307
173082008-03-01 Jason Rumney <jasonr@gnu.org>
17309
17310 * w32font.c (w32font_full_name): New function.
17311 (w32font_open_internal): Use it.
17312
173132008-03-01 Kim F. Storm <storm@cua.dk>
17314
17315 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17316
173172008-03-01 Jason Rumney <jasonr@gnu.org>
17318
17319 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17320
173212008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17322
17323 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17324 xg_frame_resized when the event is for the edit widget.
17325
17326 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17327
17328 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17329 set_char_size.
17330 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17331 operations on widgets here. Just set frame size if needed.
17332 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17333 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17334 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17335 the whole frame.
17336 (xg_create_tool_bar): Move attachment of the tool bar to
17337 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17338 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17339
173402008-03-01 Jason Rumney <jasonr@gnu.org>
17341
17342 * w32fns.c (w32_msg_pump): Disable debug code.
17343
173442008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17345
17346 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17347
173482008-02-29 Chong Yidong <cyd@stupidchicken.com>
17349
17350 * xdisp.c (next_overlay_string): Don't set
17351 overlay_strings_at_end_processed_p if we're currently reading from
17352 a display string.
17353
173542008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17355
17356 * xdisp.c (get_overlay_strings_1): Fix typo.
17357
173582008-02-29 Chong Yidong <cyd@stupidchicken.com>
17359
17360 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17361
173622008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17363
17364 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17365
17366 * xdisp.c (display_mode_element): Cancel the previous change.
17367 (decode_mode_spec): Likewise.
17368 (handle_auto_composed_prop): Don't make composition if it->string
17369 is a string.
17370
173712008-02-27 Kim F. Storm <storm@cua.dk>
17372
17373 * lisp.h (GLYPH): Change type from int to struct with separate char
17374 and face_id members.
17375 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17376 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17377 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17378 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17379 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17380 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17381 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17382 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17383 handle new Lisp glyph code encoding, either an integer or a cons.
17384
17385 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17386 (GLYPH_ALIAS): Delete.
17387 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17388 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17389 (GLYPH_FROM_CHAR): Replace macro by ...
17390 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17391
17392 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17393 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17394 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17395 (GLYPH_INVALID_P): New macro.
17396 (spec_glyph_lookup_face): Update prototype.
17397
17398 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17399 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17400 new glyph code encoding.
17401 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17402 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17403
17404 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17405 Adapt to new glyph type and new glyph code encoding.
17406
17407 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17408
17409 * indent.c (current_column, current_column_1, Fmove_to_column)
17410 (compute_motion): Adapt to new glyph code encoding.
17411
17412 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17413
174142008-02-27 Chong Yidong <cyd@stupidchicken.com>
17415
17416 * process.c (wait_reading_process_output): Check for window
17417 changes caused by timers.
17418 Suggested by Johan Bockgård.
17419
174202008-02-27 Glenn Morris <rgm@gnu.org>
17421
17422 * emacs.c (USAGE1): Add `--disable-font-backend'.
17423
174242008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17425
17426 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17427 is made to the buffer.
17428
174292008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17430
17431 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17432 (face_at_string_position):
17433 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17434 (face_at_string_position):
17435 * xdisp.c (display_string, next_overlay_change):
17436 * buffer.h (overlays_at):
17437 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17438 Update callers.
17439
174402008-02-26 Chong Yidong <cyd@stupidchicken.com>
17441
17442 * editfns.c (Fformat): Doc fix.
17443
174442008-02-26 Juanma Barranquero <lekktu@gmail.com>
17445
17446 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17447 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17448 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17449
174502008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17451
17452 * buffer.c (Fbuffer_swap_text): New function.
17453 (syms_of_buffer): Defsubr it.
17454
174552008-02-25 Chong Yidong <cyd@stupidchicken.com>
17456
17457 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17458
174592008-02-25 Jason Rumney <jasonr@gnu.org>
17460
17461 * w32font.c (w32font_draw): Draw one character at a time when padding.
17462
174632008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17464
17465 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17466 Handle a nil arg. Use run_window_configuration_change_hook.
17467 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17468 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17469 Use run_window_configuration_change_hook.
17470
174712008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17472
17473 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17474 1-pixel width.
17475
174762008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17477
17478 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17479 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17480 if the glyph in the font is zero pixel with.
17481
17482 * dispextern.h (struct glyph_string): New member padding_p.
17483
17484 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17485
17486 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17487
17488 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17489
17490 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17491
17492 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17493
174942008-02-25 Jason Rumney <jasonr@gnu.org>
17495
17496 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17497
174982008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17499
17500 Allow fine-grained image-cache flushing.
17501 * dispextern.h (struct image): Add `dependencies' field.
17502 (clear_image_caches): Change arg to Lisp_Object.
17503 * image.c (make_image): Initialize `dependencies' field.
17504 (clear_image_cache): Change arg to allow fine-grained flushing.
17505 Perform the flush even if image-cache-eviction-delay is nil.
17506 (clear_image_caches): Change arg to Lisp_Object.
17507 (Fclear_image_cache): Expand meaning of the argument.
17508 (mark_image): Mark `dependencies' field.
17509 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17510 (lface_hash): Use XHASH rather than XFASTINT.
17511 (face_at_buffer_position): Fix int -> EMACS_INT position.
17512 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17513 (select_frame_for_redisplay): Remove code duplication.
17514 (redisplay_internal): Adapt arg to call to clear_image_caches.
17515
175162008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17517
17518 * s/vms4-0.h:
17519 * s/vms4-2.h:
17520 * s/vms4-4.h:
17521 * s/vms5-5.h: Remove, unused.
17522
17523 * s/irix5-2.h:
17524 * s/irix6-0.h:
17525 * s/riscos5.h:
17526 * s/mach-bsd4-3.h:
17527 * m/mips4.h: Remove files for obsolete systems.
17528
17529 * Makefile.in:
17530 * filelock.c:
17531 * unexmips.c:
17532 * m/hp9000s300.h:
17533 * m/iris4d.h:
17534 * s/aix3-1.h:
17535 * s/hpux.h:
17536 * s/msdos.h:
17537 * s/usg5-0.h:
17538 * s/usg5-2-2.h:
17539 * s/usg5-2.h:
17540 * s/usg5-3.h: Remove references to obsolete variables.
17541
17542 * s/irix5-0.h: Remove, move all the contents ...
17543 * s/irix6-5.h: ... here. Simplify.
17544 * config.in: Regenerate.
17545
175462008-02-24 Jason Rumney <jasonr@gnu.org>
17547
17548 * w32term.c (x_draw_glyph_string_background): Clear the background
17549 manually when cleartype is in use.
17550 (x_draw_glyph_string_foreground): Draw text transparently when
17551 cleartype is in use.
17552
17553 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17554 a font into it unless we have to.
17555
175562008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17557
17558 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17559 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 17560
aac0c6e3
MR
175612008-02-18 Jason Rumney <jasonr@gnu.org>
17562
17563 * w32fns.c (Fw32_shell_execute): Encode parameters.
17564
175652008-02-09 Eli Zaretskii <eliz@gnu.org>
17566
17567 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17568
175692008-02-05 Juanma Barranquero <lekktu@gmail.com>
17570
17571 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17572
175732008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17574
17575 * xterm.c (x_set_offset): Don't change the gravity if
17576 CHANGE_GRAVITY is -1.
17577
175782008-02-23 Chong Yidong <cyd@stupidchicken.com>
17579
17580 * fileio.c (auto_save_error_occurred): New var.
17581 (auto_save_error): Set it.
17582 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17583 error occurred.
17584
175852008-02-23 Eli Zaretskii <eliz@gnu.org>
17586
17587 * w32.c (globals_of_w32): Add initializations for
17588 g_b_init_get_sid_sub_authority and
17589 g_b_init_get_sid_sub_authority_count.
17590
175912008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17592
17593 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17594 (font_parse_xlfd): Use them for sanity check.
17595 (Finternal_set_font_style_table): Make sure the table is bijective.
17596
17597 Consolidate the image_cache to the terminal struct.
17598 * termhooks.h (P_): Remove redundant def.
17599 (struct terminal): New field `image_cache'.
17600 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17601 of FRAME_X_IMAGE_CACHE.
17602 * xterm.h (struct x_display_info): Remove image_cache field.
17603 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17604 * w32term.h (struct w32_display_info): Remove image_cache field.
17605 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17606 * macterm.h (struct mac_display_info): Remove image_cache field.
17607 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17608 * xterm.c (x_term_init):
17609 * w32term.c (w32_term_init):
17610 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17611 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17612 Remove declarations.
17613 (clear_image_caches, mark_image_cache): New declarations.
17614 * xfaces.c (clear_face_cache):
17615 * xdisp.c (redisplay_internal): Use clear_image_caches.
17616 * image.c (clear_image_cache): Don't check that a frame is on
17617 a window-system before checking if it shares the same cache.
17618 (clear_image_caches): New function.
17619 (Fclear_image_cache): Use it.
17620 (mark_image): Move from allo.c.
17621 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17622 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17623 (mark_object): Don't call mark_image_cache for frames.
17624 (mark_terminals): Call mark_image_cache.
17625
17626 * lisp.h (Fdelete_terminal): Declare.
17627
17628 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17629 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17630 wrong_type_argument.
17631
176322008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17633
17634 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17635 malayalam.el, and tamil.el. Add sinhala.el.
17636
176372008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17638
17639 * xterm.c (x_connection_closed): Consolidate identical tests.
17640 (x_delete_terminal): Don't crash if called via x_connection_closed.
17641
176422008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17643
17644 * xdisp.c (decode_mode_spec): New arg string.
17645 (display_mode_element): Adjust for the above change.
17646
176472008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17648
17649 * callint.c (Fcall_interactively): Use AREF.
17650
176512008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17652
17653 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17654
176552008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17656
17657 * xfns.c (Fx_show_tip): Set string to " " if empty.
17658
176592008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17660
17661 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17662 with Qt.
17663
176642008-02-17 Kenichi Handa <handa@m17n.org>
17665
17666 * ftfont.c (ftfont_shape): Return Lispy number.
17667
17668 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17669 for GCs.
17670 (Finternal_set_font_selection_order): Call font_update_sort_order
17671 only when enable_font_backend is set.
17672 (realize_x_face): Set face->font_info to that of default face only
17673 when enable_font_backend is set.
17674
17675 * xdisp.c (handle_composition_prop): Set it->c to the fist
17676 character of the composed region.
17677 (fill_composite_glyph_string): Set base_face->font_info to
17678 s->font_info. Get a face for ascii from base_face->ascii_face.
17679 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17680 with a face already decided.
17681 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17682 non-negative.
17683 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17684 call font_prepare_composition unconditionally.
17685
17686 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17687
17688 * xterm.h (struct x_display_info): New member font.
17689
17690 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17691 (x_set_mouse_face_gc, x_new_font): Likewise.
17692 (x_term_init): Setup display_info->font.
17693 (x_delete_terminal): Free display_info->font.
17694
17695 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17696
17697 * ftxfont.c (ftxfont_default_fid): Delete it.
17698 (ftxfont_open): Set xfont->fid to 0.
17699 (ftxfont_end_for_frame): Clear data specific to the frame and the
17700 font-driver.
17701
17702 * xftfont.c (xftfont_default_fid): Delete it.
17703 (xftfont_open): Set xfont->fid to 0.
17704
17705 * fontset.c (FONTSET_OBJLIST): New macro.
17706 (fontset_find_font): Update font-object list of the fontset.
17707 (free_realized_fontset): New function.
17708 (free_face_fontset): Call free_realized_fontset.
17709 (Ffont_info): Call font_close_object only when enable_font_backend
17710 is set.
17711
17712 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17713 [HAVE_NTGUI]: Include w32term.h.
17714 [MAC_OS]: Include macterm.ch.
17715 (font_otf_ValueRecord): Use make_number.
17716 (font_finish_cache): Fix handling of reference count.
17717 (font_clear_cache): Update num_fonts.
17718 (font_open_entity): Update smallest_char_width and
17719 smallest_font_height of the frame.
17720 (font_close_object): Update num_fonts.
17721 (Fclear_font_cache): Fix finding the target cache data.
17722
177232008-02-16 Glenn Morris <rgm@gnu.org>
17724
17725 * fontset.c (Finternal_char_font): Fix compilation warning.
17726
177272008-02-16 Eli Zaretskii <eliz@gnu.org>
17728
17729 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17730 instead of char arrays. Enlarge the size of array passed to
17731 get_token_information.
17732
17733 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17734 warnings.
17735
177362008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17737
17738 * .gdbinit: Don't set `args', it breaks gdb --args.
17739
177402008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17741
17742 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17743 within a narrowed buffer.
17744
177452008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17746
17747 * coding.c (decode_coding_object, encode_coding_object):
17748 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17749
177502008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17751
17752 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17753 hardcoding 1.
17754 (detect_coding_system):
17755 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17756 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17757 * insdel.c (insert_from_gap):
17758 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17759 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17760 (string_to_multibyte):
17761 * character.c (chars_in_text, multibyte_chars_in_text):
17762 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17763
17764 * character.h (FETCH_STRING_CHAR_ADVANCE)
17765 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17766 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17767 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17768
17769 * casefiddle.c (casify_region): Only call after-change and composition
17770 functions on the part of the region that was changed.
17771
17772 * keyboard.c (read_avail_input):
17773 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17774
177752008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17776
17777 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17778 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17779
177802008-02-11 Juanma Barranquero <lekktu@gmail.com>
17781
17782 * w32menu.c (push_submenu_start, push_submenu_end)
17783 (push_left_right_boundary, push_menu_pane, push_menu_item):
17784 * keyboard.c (read_key_sequence): Don't pass args with side effects
17785 to AREF, it fails when compiling with -DENABLE_CHECKING.
17786
177872008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17788
17789 * Makefile.in (${lispsource}international/charprop.el):
17790 Delete this target.
17791
17792 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17793 emacs-unicode-2.
17794
177952008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17796
17797 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17798
177992008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17800
17801 * frame.c (Qnoelisp): New symbol.
17802 (syms_of_frame): Initialize it.
17803 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17804 harmless Elisp code, from a strong `force' from x_connection_closed.
17805 * frame.h (Qnoelisp): Declare.
17806 * xterm.c (x_connection_closed): Pass `noelisp'.
17807
17808 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17809 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17810 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17811 rather than `int' for the type of `type'.
17812
178132008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17814
17815 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17816
17817 * Makefile.in (GNUC): Remove support for gcc-1.x.
17818
178192008-02-10 Richard Stallman <rms@gnu.org>
17820
17821 * lisp.h (ASET): Use AREF, not ASLOT.
17822
178232008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17824
17825 * lisp.h (ASET): Check bounds.
17826
178272008-02-10 Glenn Morris <rgm@gnu.org>
17828
17829 * buffer.c (mode-name): Doc fix.
17830
178312008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17832
17833 * Makefile.in:
17834 * emacs.c:
17835 * gmalloc.c:
17836 * keyboard.c:
17837 * lisp.h:
17838 * m/ibm370aix.h:
17839 * process.c:
17840 * regex.c:
17841 * s/hpux.h:
17842 * sysdep.c:
17843 * sysselect.h:
17844 * systty.h:
17845 * unexec.c:
17846 * w32term.c:
17847 * xsmfns.c:
17848 * xterm.c: Remove code that deals with obsolete variables.
17849
17850 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17851
17852 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17853 nothing else needs it anymore.
17854
178552008-02-09 Eli Zaretskii <eliz@gnu.org>
17856
17857 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17858 instead of unibyte_char_to_multibyte.
17859
178602008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17861
17862 * s/gnu-linux.h: Remove commented out code.
17863
17864 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17865
17866 * Makefile.in: Update what RMS says about using autoconf.
17867 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17868 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17869 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17870 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17871
178722008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17873
17874 * keymap.c (Fkey_description): Move side effect outside of macro call.
17875
17876 * xfaces.c (Finternal_make_lisp_face):
17877 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17878
17879 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17880 (syms_of_fontset): Use ASET.
17881
17882 * fns.c (concat): Move side effect outside of macro call.
17883 (hash_clear): Use ASET.
17884
178852008-02-08 Richard Stallman <rms@gnu.org>
17886
17887 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17888 If FORCE, and frame has a surrogate minibuffer for another frame,
17889 delete the other frame first.
17890
178912008-02-07 Timo Savola <timo.savola@iki.fi>
17892
17893 * xterm.c (x_detect_focus_change): Handle embed client message.
17894 (handle_one_xevent): Ditto.
17895 (handle_one_xevent): If embedded and we get a button press/release,
17896 request focus.
17897 (xembed_set_info, xembed_send_message): New functions.
17898 (x_make_frame_visible): Call xembed_set_info if embedded.
17899 (x_make_frame_invisible): Call xembed_set_info if embedded.
17900 (x_term_init): Initialize Xatom_XEMBED.
17901 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17902 (x_iconify_frame): Ditto.
17903
17904 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17905 (enum xembed_info, enum xembed_message, enum xembed_focus)
17906 (enum xembed_modifier, enum xembed_accelerator): New.
17907 (xembed_set_info, xembed_send_message): Declare.
17908 (FRAME_X_EMBEDDED_P): New.
17909
17910 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17911 gtk_plug_new.
17912
17913 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17914 window ID of a frame.
17915 (x_window): Reparent frame if embedded.
17916 (Fx_create_frame): Don't set border width if embedded.
17917
17918 * emacs.c (USAGE3): Add --parent-id.
17919 (standard_args): Ditto.
17920
179212008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17922
17923 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17924
179252008-02-07 Jim Meyering <meyering@redhat.com>
17926
17927 Use "do...while (0)", not "if (1)...else" in macro definitions.
17928 The latter provokes a warning from gcc about the empty else, when
17929 followed by ";". Also, without that trailing semicolon, it would
17930 silently swallow up any following statement.
17931 * syntax.h (SETUP_SYNTAX_TABLE)
17932 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17933 * buffer.h (DECODE_POSITION): Likewise.
17934 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17935 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17936 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17937 (FETCH_CHAR_ADVANCE): Likewise.
17938 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17939
179402008-02-07 Jim Meyering <meyering@redhat.com>
17941
17942 * lread.c [lint]: Don't include <sys/inode.h>.
17943
179442008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17945
17946 * xselect.c (x_handle_dnd_message):
17947 * xmenu.c (digest_single_submenu, xmenu_show):
17948 * xdisp.c (with_echo_area_buffer_unwind_data)
17949 (format_mode_line_unwind_data, unwind_format_mode_line)
17950 (display_menu_bar):
17951 * eval.c (Ffetch_bytecode):
17952 * doc.c (store_function_docstring):
17953 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17954 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17955 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17956
179572008-02-07 Kenichi Handa <handa@m17n.org>
17958
17959 * ftxfont.c (ftxfont_open): Don't set
17960 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17961
17962 * ftfont.c (ftfont_open): Fix previous change.
17963
179642008-02-06 Jason Rumney <jasonr@gnu.org>
17965
17966 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17967 Use cached metrics for ASCII characters.
17968 (w32font_open_internal): Don't set font's owning_frame.
17969 Cache metrics for ASCII characters.
17970
17971 * w32font.h (struct w32font_info): Add ascii_metrics.
17972 Remove owning_frame.
17973
179742008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17975
17976 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17977 to negative value.
17978
17979 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17980
17981 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17982
17983 * charset.c (syms_of_charset): Set QCtest and Qeq.
17984
179852008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17986
17987 * process.c (Fstart_process):
17988 * callproc.c (Fcall_process): Handle the case where
17989 Funhandled_file_name_directory returns nil.
17990
17991 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17992 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17993 * font.c (check_gstring): Use them and AREF to access the vector before
17994 we know it's really a gstring.
17995 (Ffont_shape_text): Fix typo.
46e722a9 17996 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17997
17998 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17999 Declare.
18000
18001 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18002
180032008-02-05 Jason Rumney <jasonr@gnu.org>
18004
18005 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18006 Set smallest_font_height and smallest_char_width in display info.
18007
180082008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18009
18010 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18011
180122008-02-05 Miles Bader <miles@gnu.org>
18013
18014 * xfaces.c (get_lface_attributes, merge_named_face)
18015 (lookup_named_face, lookup_derived_face, realize_named_face):
18016 Revert 2008-02-01 change by cyd@stupidchicken.com.
18017
180182008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18019
18020 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18021 fallback fonts.
18022 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18023
180242008-02-04 Jason Rumney <jasonr@gnu.org>
18025
18026 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18027 set full_name.
18028 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18029
180302008-02-03 Jason Rumney <jasonr@gnu.org>
18031
18032 * makefile.w32-in (OBJ1): Include font.o here.
18033 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18034
180352008-02-02 Jason Rumney <jasonr@gnu.org>
18036
18037 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18038
180392008-02-01 Jason Rumney <jasonr@gnu.org>
18040
18041 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18042
18043 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18044
180452008-02-01 Andreas Schwab <schwab@suse.de>
18046
18047 * Makefile.in (shortlisp, lisp): Update for rename of
18048 ../lisp/language/myanmar.el.
18049
180502008-02-01 Chong Yidong <cyd@stupidchicken.com>
18051
18052 * xfaces.c (get_lface_attributes): Delete function.
18053 (merge_named_face, lookup_named_face, lookup_derived_face)
18054 (realize_named_face): Call lface_from_face_name directly, and use
18055 the fact that merge_face_vectors does not alter its FROM argument.
18056
180572008-02-01 Jason Rumney <jasonr@gnu.org>
18058
18059 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18060 input in the default locale. Handle non-Unicode multibyte input.
18061
180622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18063
18064 * fontset.c (reorder_font_vector): Exclude nil elements from the
18065 font group. Don't try multiple fonts.
18066 (fontset_font): Adjust for the above change.
18067 (Finternal_char_font): Return nil if the found font doesn't
18068 contain the character ch.
18069
18070 * Makefile.in (lisp, shortlisp): Add cham.el.
18071
180722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18073
18074 * font.h (FONTP): Make it return 1 also for a font-object.
18075
18076 * .gdbinit (xfontset): New function.
18077
18078 * font.c (font_find_for_lface): Check if the character C is
18079 supported or not only for the first font.
18080
18081 * fontset.c (reorder_font_vector): Fix typo.
18082 (fontset_find_font): Don't add a font-spec specifying a script.
18083 Use 0 (not Qt) for the indication of empty font-group. Change the
18084 format of RFONT-DEF. Return Qt if no font in the font-group
18085 support the character.
18086 (fontset_font): Adjust for the above change. If no font was
18087 found the character, remember that.
18088 (face_for_char): Adjust for the change of RFONT-DEF.
18089 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18090 no font for the target.
18091 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18092
180932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18094
18095 * font.c (font_load_for_face): Handle the case that the font in
18096 face->lface is a string.
18097
180982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18099
18100 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18101
181022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18103
18104 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18105 Fix previous change. If the frame is not on a window system,
18106 signal an error.
18107
181082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18109
18110 * coding.c (decode_coding_object, encode_coding_object): Adjust
18111 marker positions after conversion.
18112
18113 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18114
181152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18116
18117 * font.c (font_find_for_lface): Fix the handling of the return
18118 value of font_has_char.
18119 (Ffont_shape_text): Fix previous change.
18120
18121 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18122 (fontset_ref_and_range): Delete it.
18123 (fontset_find_font): Call char_table_ref_and_range instead of
18124 FONTSET_REF_AND_RANGE.
18125 (make_fontset): Don't setup font groups of Latin here.
18126 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18127 (new_fontset_from_font): Make the specified font the default for
18128 all Latin characters.
18129
181302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18131
18132 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18133 is on a window system before accessing the fontset of the frame.
18134
181352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18136
18137 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18138
18139 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18140 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18141
18142 * font.c (Ffont_shape_text): If the font driver doesn't have a
18143 shaper function, make zero-width glyphs to have at least one-pixel
18144 width. Fix setting of `to' field of glyphs.
18145
181462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18147
18148 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18149 glyphs.
18150
18151 * font.h (struct font_driver): Improve docstring of member `shape'.
18152
181532008-02-01 Kenichi Handa <handa@m17n.org>
18154
18155 * composite.c (syms_of_composite): Fix docstring of
18156 auto-composition-function.
18157
18158 * font.h (LGLYPH_SIZE): New macro.
18159
18160 * font.c (Ffont_fill_gstring): Stop filling when a character not
18161 supported by the font is found.
18162 (Ffont_shape_text): When a shape callback function returns nil,
18163 try at most two more times with larger gstring.
18164 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18165
18166 * xdisp.c (handle_auto_composed_prop): Change the argument to
18167 auto-composition-function.
18168
18169 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18170 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18171 Lispy glyph and store it in the lgstring.
18172
18173 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18174
18175 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18176
181772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18178
18179 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18180
18181 * fontset.c (Vfont_encoding_charset_alist): New variable.
18182 (syms_of_fontset): DEFVAR it.
18183 (reorder_font_vector, fontset_find_font): Optimize for the case of
18184 no need of reordering.
18185 (face_for_char): Map the charset property by
18186 Vfont_encoding_charset_alist.
18187
181882008-02-01 Jason Rumney <jasonr@gnu.org>
18189
18190 * w32font.c (logfonts_match): Don't check adstyle here.
18191 (font_matches_spec): Check here against physical font instead.
18192 (add_font_entity_to_list): Avoid some substitutions.
18193
18194 * font.c (font_parse_fcname): Default weight and slant to normal.
18195 (font_score): Prefer normal fonts if weight or slant unspecified.
18196 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18197 match freetype scores.
18198
181992008-02-01 Jason Rumney <jasonr@gnu.org>
18200
18201 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18202 font, as it may have been deleted.
18203 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18204 most common hyphenless variation.
18205 (logfonts_match): Check generic family.
18206 (font_matches_spec): Don't check generic family here.
18207 (fill_in_logfont): Set generic family based on adstyle.
18208
18209 * w32font.h (w32font_get_cache): Update declaration.
18210
182112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18212
18213 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18214
18215 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18216 If none of the new drivers are available, call font_update_drivers
18217 with the old drivers.
18218
18219 * w32font.c (w32font_get_cache): Adjust the argument type.
18220
18221 * xfont.c (xfont_get_cache): Adjust the argument type.
18222
18223 * font.h (struct font_driver): Change argument type of get_cache.
18224
18225 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18226
18227 * font.c (Ffont_get): Fix arguments to Fassoc.
18228 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18229 (font_clear_cache): New function.
18230 (font_list_entities, font_matching_entity): Use font_get_cache.
18231 (font_update_drivers): Call font_clear_cache when finishing a driver.
18232
18233 * fontset.c (fontset_find_font): Fix previous change.
18234
182352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18236
18237 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18238 dpyinfo->font_table.
18239 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18240 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18241
18242 * font.c (font_at): Handle the case that the arg C is negative.
18243 Handle the unibyte case.
18244 (Ffont_at): Call font_at with the arg C -1.
18245
18246 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18247 the position here, and call font_at with the arg C -1.
18248 Don't check the range of the existing composition at the point.
18249
182502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18251
18252 * fontset.c (fontset_add): New args charset_id and family.
18253 Change caller.
18254 (load_font_get_repertory, fontset_find_font): Assume that
18255 font_spec is always a font-spec object.
18256 (Fset_fontset_font): Always store a font-spec object in a fontset.
18257
18258 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18259 instead of get_property_and_range.
18260
182612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18262
18263 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18264 (xftfont_open): Don't keep locking face.
18265 (xftfont_close): Don't unlock face.
18266 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18267
18268 * fontset.c (fontset_find_font): Don't prefer a font of
18269 supplementary charset.
18270
182712008-02-01 Kenichi Handa <handa@m17n.org>
18272
18273 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18274 script, langsys_tag to langsys, new member script.
18275 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 18276 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
18277 listing to the script specified in that property. Fix arg to
18278 OTF_check_features.
18279
182802008-02-01 Jason Rumney <jasonr@gnu.org>
18281
18282 * w32font.h: New file.
18283
18284 * w32font.c: Include it.
18285 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18286 (w32font_open): Set owning_frame.
18287 (w32font_text_extents): Use owning_frame.
18288 (struct font_callback_data): Add opentype_only field.
18289 (add_font_entity_to_list): Use it to filter fonts.
18290 Don't check against full name.
18291 (w32font_list_internal): New function.
18292 (w32font_list): Use it.
18293 (w32font_match_internal): New function.
18294 (w32font_match): Use it.
18295 (w32font_open_internal): New function.
18296 (w32font_open): Use it.
18297 (w32font_get_cache, w32font_close, w32font_has_char)
18298 (w32font_encode_char, w32font_text_extents, w32font_draw):
18299 Make non-static.
18300
18301 * makefile.w32-in (w32font.o): Depend on w32font.h.
18302
183032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18304
18305 * charset.c (Fdefine_charset_internal): Record a supplementary
18306 charset at the tail of Vcharset_order_list.
18307
18308 * font.c (Ffont_shape_text): Fix the return value.
18309
18310 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18311
18312 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18313
183142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18315
18316 * ftfont.c (struct OpenTypeSpec): New struct.
18317 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18318 (ftfont_get_open_type_spec): New function.
18319 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18320
18321 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18322
183232008-02-01 Jason Rumney <jasonr@gnu.org>
18324
18325 * w32font.c (add_font_entity_to_list): Compare only the beginning
18326 of full name.
18327
183282008-02-01 Kenichi Handa <handa@m17n.org>
18329
18330 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18331 Never return HANDLED_RECOMPUTE_PROPS.
18332
183332008-02-01 Kenichi Handa <handa@m17n.org>
18334
18335 * font.c (font_gstring_produce): Delete it.
18336
18337 * composite.h (COMPOSITION_METHOD):
18338 Handle COMPOSITION_WITH_GLYPH_STRING.
18339
183402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18341
18342 * xfont.c (Qx): Delete.
18343 (syms_of_xfont): Don't initialize Qx.
18344
18345 * composite.h (enum composition_method):
18346 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18347
183482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18349
18350 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18351 (choose_face_font): Accept new form of font-spec.
18352
18353 * frame.h (font_driver_list): Declare it unconditionally.
18354 (struct frame): Define members font_driver_list and font_data_list
18355 unconditionally.
18356
18357 * fontset.c: Include "font.h" unconditionally.
18358 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18359 (Fset_fontset_font): Accept a font-spec object.
18360
18361 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18362 PIXEL_SIZE part a wild card.
18363
18364 * dispextern.h (struct glyph_string): Define members clip and
18365 num_clips unconditionally.
18366 (struct face): Define members font_info and extra unconditionally.
18367
18368 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18369 ftfont_info only when HAVE_LIBOTF is defined.
18370
183712008-02-01 Andreas Schwab <schwab@suse.de>
18372
18373 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18374 and end.
18375
183762008-02-01 Jason Rumney <jasonr@gnu.org>
18377
18378 * w32font.c (w32font_driver): Add new fields.
18379
183802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18381
18382 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18383 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18384 (LIBES): Add @M17N_FLT_CFLAGS@.
18385
18386 * composite.c (compose_text): Don't treat the new style
18387 composition specially.
18388
18389 * emacs.c (main): Call syms_of_font unconditionally.
18390
18391 * font.h (FONT_ENTITY_NOT_LOADABLE)
18392 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18393 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18394 (struct font_driver): New member shape.
18395 (font_registry_charsets): Extern it.
18396 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18397 (font_otf_capability, font_drive_otf): Delete their externs.
18398
18399 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18400 (font_charset_alist, font_registry_charsets): Move from xfont.c
18401 and rename.
18402 (font_prop_validate_otf): New function.
18403 (font_property_table): Register it for QCotf.
18404 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18405 (font_drive_otf): Delete.
18406 (font_prepare_composition): New arg F. Adjust for the change of
18407 lispy gstring.
18408 (font_find_for_lface): New arg C.
18409 (font_load_for_face): Adjust for the change of font_find_for_lface.
18410 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18411 lispy gstring.
18412 (Ffont_shape_text): New function.
18413 (Fopen_font): If the font size is not given, use 12-pixel.
18414 (Ffont_at): New arg STRING.
18415 (syms_of_font): Initalize font_charset_alist.
18416 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18417 conditionally.
18418
18419 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18420 fonts of the same font-spec. Change the format of RFONT-DEF.
18421 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18422 Adjust for the change of RFONT-DEF.
18423 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18424
18425 * ftfont.h: New file.
18426
18427 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18428 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18429 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18430 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18431 font_otf_capability and font_drive_otf, set ftfont_shape.
18432 (ftfont_list): Adjust for the change of :otf property value.
18433 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18434 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18435 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18436 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18437 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18438 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18439
18440 * w32term.c (x_draw_composite_glyph_string_foreground):
18441 Adjust for the change of lispy gstring.
18442
18443 * xdisp.c (handle_composition_prop): Adjust for the change of
18444 lispy gstring. Call a function for auto-composition with the
18445 third arg it->window.
18446 (fill_composite_glyph_string): Adjust for the change of lispy string.
18447 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18448
18449 * xfaces.c (set_font_frame_param): Adjust for the change of
18450 font_find_for_lface.
18451
18452 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18453 (xfont_registry_charsets): Likewise. Change caller.
18454 (syms_of_xfont): Don't handle x_font_charset_alist.
18455
18456 * xftfont.c: Include "ftfont.h".
18457 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18458 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18459 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18460 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18461 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18462 Set xftfont_driver.shape to xftfont_shape.
18463
18464 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18465 the change of lispy gstring.
18466
184672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18468
18469 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18470
184712008-02-01 Jason Rumney <jasonr@gnu.org>
18472
18473 * w32font.c (w32font_draw): Fill background manually.
18474
184752008-02-01 Jason Rumney <jasonr@gnu.org>
18476
18477 * font.c (Qfontp): Remove unused symbol.
18478 (QCantialias): New symbol.
18479 (syms_of_font): Define it.
18480 (font_property_table): Set a validator for QCantialias.
18481
18482 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18483 Define if not already.
18484 (QCfamily): Share with xfaces.c.
18485 (Qstandard, Qsubpixel, Qnatural): New symbols.
18486 (syms_of_w32font): Define them. Don't define QCfamily here.
18487 (w32_antialias_type, lispy_antialias_type): New functions.
18488 (w32_enumfont_pattern_entity): New arg requested_font.
18489 Set antialias parameter if non-default was requested.
18490 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18491
184922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18493
18494 * lread.c (read1): Undo the previous change.
18495
184962008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18497
18498 * frame.c (Fdelete_frame): Call font_update_drivers only when
18499 USE_FONT_BACKEND is defined.
18500
185012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18502
18503 * font.h (struct font_bitmap): New member bits_per_pixel.
18504 (struct font_driver): New members start_for_frame and end_for_frame.
18505 (struct font_data_list): New struct.
18506 (font_put_frame_data, font_get_frame_data): Extern them.
18507
18508 * frame.h (struct frame): New member font_data_list.
18509
18510 * font.c (font_update_drivers): Call driver->start_for_frame and
18511 driver->end_for_frame at proper timings.
18512 (font_put_frame_data, font_get_frame_data): New functions.
18513 (Ffont_spec): Add usage in the docstring.
18514
18515 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18516 (Fdelete_frame): Call font_update_drivers.
18517
18518 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18519 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18520 (xftfont_get_xft_draw): New function.
18521 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18522 (xftfont_end_for_frame): New function.
18523 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18524
18525 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18526 Change argument. Cache GCs in the per-frame data.
18527 (struct ftxfont_frame_data): New struct.
18528 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18529 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18530 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18531 (ftxfont_end_for_frame): New function.
18532 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18533
18534 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18535
185362008-02-01 Kenichi Handa <handa@m17n.org>
18537
18538 * xselect.c (Vselection_coding_system)
18539 (Vnext_selection_coding_system): Delete them.
18540 (syms_of_xselect): Don't declare selection-coding-system and
18541 next-selection-coding-system. They are declared in select.el.
18542
185432008-02-01 Jason Rumney <jasonr@gnu.org>
18544
18545 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18546
18547 * w32fns.c: Include imm.h.
18548 (get_composition_string_fn, get_ime_context_fn): New optional
18549 system functions.
18550 (globals_of_w32fns): Load them from imm32.dll.
18551 (ignore_ime_char): New flag.
18552 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18553 WM_IME_ENDCOMPOSITION messages.
18554
18555 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18556 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18557
185582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18559
18560 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18561 (READCHAR_REPORT_MULTIBYTE): New macro.
18562 (readchar): New 2nd arg MULTIBYTE.
18563 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18564 Make symbol's name multibyte according to the multibyteness of the
18565 source.
18566
185672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18568
18569 * xfaces.c (face_for_overlay_string): Call lookup_face with
18570 correct arguments (fix of synching with the trunk).
18571
185722008-02-01 Kenichi Handa <handa@m17n.org>
18573
18574 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18575 (font_prop_validate_non_neg, font_prop_validate_spacing):
18576 Delete argument prop_index.
18577 (font_property_table): Change arguments to validater. Change Callers.
18578 (font_lispy_object): Delete.
18579 (font_at): Use font_find_object instead fo font_lispy_object.
18580
185812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18582
18583 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18584 and file names.
18585
185862008-02-01 Jason Rumney <jasonr@gnu.org>
18587
18588 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18589 (font_matches_spec): Remove debug output.
18590 (add_font_entity_to_list): Avoid using substituted fonts.
18591
185922008-02-01 Jason Rumney <jasonr@gnu.org>
18593
18594 * doc.c (Fsnarf_documentation):
18595 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18596
185972008-02-01 Miles Bader <miles@gnu.org>
18598
18599 * dispextern.h (struct glyph_row): Only define "clip" field if
18600 HAVE_WINDOW_SYSTEM is defined.
18601
186022008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18603
18604 Fix up multi-tty merge.
18605
18606 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18607 and indentation.
18608
18609 * xfaces.c (free_realized_face, clear_face_gcs):
18610 Include font_done_for_face in the input_blocked section, just in case.
18611
18612 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18613 (get_char_face_and_encoding): Undo last change and remove the *other*
18614 duplicate definition (i.e. keep the one that's better scoped and that
18615 includes code for the font-backend).
18616
18617 * terminal.c (create_terminal): Default keyboard_coding to
18618 `no-conversion' and terminal_coding to `undecided'.
18619
18620 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18621
18622 * fontset.c (free_realized_fontsets): Check that the table entry does
18623 contain a fontset before trying to compare it to `base'.
18624
18625 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18626 syms_of_charset, and syms_of_coding earlier because init_window_once
18627 now needs Vcoding_system_hash_table to be setup.
18628
18629 * coding.h (default_buffer_file_coding): Remove.
18630
18631 * coding.c (default_buffer_file_coding): Remove.
18632 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18633 than ->symbol, and use the terminal-local coding system.
18634 (syms_of_coding): Don't setup the coding-systems that are not
18635 terminal-local.
18636 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18637
18638 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18639 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18640
18641 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18642 in chartab.c and were re-added here by mistake.
18643 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18644
18645 * doc.c (Fsnarf_documentation):
18646 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18647 src to etc.
18648
18649 * ChangeLog.10: Add mistakenly removed entry.
18650
186512008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18652
18653 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18654
186552008-02-01 Miles Bader <miles@gnu.org>
18656
18657 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18658 Add extra args to FACE_FOR_CHAR.
18659
186602008-02-01 Kenichi Handa <handa@m17n.org>
18661
18662 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18663 in sequence.
18664
18665 * chartab.c (map_sub_char_table, map_char_table): If the range
18666 contains just one character, call the function with that character
18667 even if the depth is not 3.
18668
186692008-02-01 Jason Rumney <jasonr@gnu.org>
18670
18671 * w32font.c (w32font_text_extents): Calculate metrics for the
18672 whole string.
18673
186742008-02-01 Jason Rumney <jasonr@gnu.org>
18675
18676 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18677
186782008-02-01 Jason Rumney <jasonr@gnu.org>
18679
18680 * w32term.c (x_set_glyph_string_clipping): Use
18681 get_glyph_string_clip_rects.
18682 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18683 Adjust for the change of struct glyph_string.
18684
18685 * w32font.c (w32font_draw): Do clipping here.
18686
186872008-02-01 Kenichi Handa <handa@m17n.org>
18688
18689 * xftfont.c (xftfont_draw): Adjust for the change of struct
18690 glyph_string.
18691
18692 * xterm.c (x_set_glyph_string_clipping): Use
18693 get_glyph_string_clip_rects.
18694 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18695 Adjust for the change of struct glyph_string.
18696
18697 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18698 the resulting clip(s}.
18699 (expose_overlaps): Add arg r. Change callers. Set it to
18700 row->clip temporarily.
18701 (expose_window): Redraw rows overlapping the exposed area.
18702
18703 * dispextern.h (struct glyph_row): New member clip.
18704 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18705 clip_height, new member clip, and num_clips.
18706
187072008-02-01 Kenichi Handa <handa@m17n.org>
18708
18709 * data.c (Fchar_or_string_p): Fix docstring.
18710
187112008-02-01 Kenichi Handa <handa@m17n.org>
18712
18713 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18714 create a temporary XftDraw object.
18715
187162008-02-01 Kenichi Handa <handa@m17n.org>
18717
18718 * font.c (Ffontp): Fix docstring.
18719
18720 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18721 strong evidence of ISO-2022.
18722
187232008-02-01 Kenichi Handa <handa@m17n.org>
18724
18725 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18726 SYNTAX_ENTRY_FOLLOW_PARENT.
18727
187282008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18729
18730 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18731 its type.
18732 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18733 Update to the new type of weak_hash_tables and next_weak.
18734
18735 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18736 a plain C pointer to Lisp_Hash_Table.
18737
18738 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18739 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18740 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18741 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18742 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18743 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18744 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18745 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18746 (GC_EQ): Remove since they've been identical to their non-GC_
18747 alter-egos ever since the markbit was eradicated.
18748
18749 * alloc.c:
18750 * buffer.c:
18751 * buffer.h:
18752 * data.c:
18753 * fileio.c:
18754 * filelock.c:
18755 * fns.c:
18756 * frame.h:
18757 * lisp.h:
18758 * macterm.c:
18759 * print.c:
18760 * process.c:
18761 * w32fns.c:
18762 * w32menu.c:
18763 * w32term.c:
18764 * xfns.c:
18765 * xmenu.c:
18766 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18767
187682008-02-01 Kenichi Handa <handa@m17n.org>
18769
18770 * chartab.c (map_sub_char_table): Make it work for the top-level
18771 char-table. Fix handling of parent char-table.
18772 (map_char_table): Adjust for the above change.
18773
187742008-02-01 Jason Rumney <jasonr@gnu.org>
18775
18776 * w32font.c (Qgdi): Rename from Qw32.
18777
187782008-02-01 Jason Rumney <jasonr@gnu.org>
18779
18780 * w32bdf.c (get_quoted_string): Make function static.
18781
187822008-02-01 Kenichi Handa <handa@m17n.org>
18783
18784 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18785 bigger ascent and descent than those of the font, use them as
18786 font's ascent and descent.
18787
187882008-02-01 Kenichi Handa <handa@m17n.org>
18789
18790 * Makefile.in (${lispsource}international/charprop.el): Move this
18791 target within "#ifdef HAVE_UNIDATA" and "#endif".
18792
187932008-02-01 Kenichi Handa <handa@m17n.org>
18794
18795 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18796 (shortlisp): Add ../lisp/language/tai-viet.el.
18797
187982008-02-01 Ulrich Mueller <ulm@gentoo.org>
18799
18800 * Makefile.in (${lispsource}international/charprop.el): Depend on
18801 temacs${EXEEXT}.
18802
188032008-02-01 Jason Rumney <jasonr@gnu.org>
18804
18805 * w32font.c (w32font_close): Delete the GDI font object.
18806
18807 * w32menu.c: Include character.h.
18808
18809 * w32proc.c: Likewise.
18810
18811 * w32select.c: Likewise.
18812
18813 * makefile.w32-in (w32proc.o): Depend on character.h.
18814
188152008-02-01 Jason Rumney <jasonr@gnu.org>
18816
18817 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18818
18819 * w32menu.c (syms_of_w32menu): Likewise.
18820
18821 * w32proc.c (syms_of_ntproc): Likewise.
18822
18823 * w32select.c (syms_of_w32select): Likewise.
18824
18825 * w32term.c (syms_of_w32term): Likewise.
18826
188272008-02-01 Jason Rumney <jasonr@gnu.org>
18828
18829 * w32font.c (w32font_draw): Delete brush after using it.
18830
188312008-02-01 Jason Rumney <jasonr@gnu.org>
18832
18833 * w32font.c (w32font_open): Don't set font_idx.
18834 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18835 to font settings.
18836 (w32font_draw): Fill background explicitly.
18837
188382008-02-01 Jason Rumney <jasonr@gnu.org>
18839
18840 * w32term.c (w32_initialize): Don't call w32font_initialize.
18841
18842 * w32font.c (w32font_info): Remove subranges.
18843 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18844 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18845 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18846 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18847 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18848 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18849 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18850 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18851 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18852 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18853 New symbols.
18854 (font_callback_data): New struct.
18855 (w32font_list, w32font_match): Use it.
18856 (w32font_open): Don't populate subranges.
18857 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18858 (w32font_encode_char): Always return unicode code-point as-is.
18859 (w32font_text_extents): Supply a transformation matrix to
18860 GetGlyphOutline. Never look up by glyph index. Avoid looping
18861 twice. Use unicode version of GetTexExtentPoint32 instead of
18862 glyph index version.
18863 (set_fonts_frame): Remove.
18864 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18865 set frame parameter. Use backward compatible fake foundries.
18866 Save generic family in extra slot under QCfamily. Make width slot
18867 constant. Save QCspacing value. Save list of scripts instead of
18868 binary subranges.
18869 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18870 (add_font_entity_to_list): Use font_callback_data struct. Filter
18871 unwanted fonts.
18872 (add_one_font_entity_to_list): Use font_callback_data struct.
18873 (w32_registry): Default to iso10646_1.
18874 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18875 string font registries. Don't fill in font name if it is a generic
18876 family name, fill family instead. Use spacing, family and script
18877 extra info to fill pitch, family and charset fields.
18878 (list_all_matching_fonts): Use font_callback_data struct.
18879 (unicode_range_for_char): Remove.
18880 (font_supported_scripts): New function.
18881 (w32font_initialize): Remove.
18882 (syms_of_w32font): Update which symbols are defined.
18883
188842008-02-01 Jason Rumney <jasonr@gnu.org>
18885
18886 * font.c (font_pixel_size): Reverse assq_no_quit args.
18887
18888 * w32term.h (FONT_WIDTH): Report max width, not average.
18889 (FONT_MAX_WIDTH): Remove.
18890 (FONT_AVG_WIDTH): New macro.
18891
18892 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18893 redefinition of FONT_WIDTH.
18894
18895 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18896 (w32_cache_char_metrics): Use FONT_WIDTH.
18897
18898 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18899
189002008-02-01 Jason Rumney <jasonr@gnu.org>
18901
18902 * w32font.c (w32font_open): Make lfHeight negative.
18903
18904 * w32fns.c (x_default_font_parameter): Use new style font name.
18905 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18906
189072008-02-01 Jason Rumney <jasonr@gnu.org>
18908
18909 * w32font.c (QCsubranges): New symbol.
18910 (w32font_open, w32font_has_char): Get subranges from subproperty
18911 of extra.
18912 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18913 (syms_of_w32font): Define :subranges symbol.
18914
18915 * font.c (font_put_extra): Expose externally.
18916
18917 * font.h (font_put_extra): Move declaration from font.c.
18918
18919 * font.c (Ffont_get): Use font driver to determine otf capability.
18920 (adjust_anchor): Check if driver defines anchor_point before using.
18921
18922 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18923 (w32font_draw): Use options.
18924 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18925 Fix detection of truetype fonts.
18926 (registry_to_w32_charset): Handle charsets other than iso8859-1
18927 expressed as lisp symbols.
18928 (w32_registry): Express charset as lisp symbol.
18929 (fill_in_logfont): Reverse pixel and point height logic.
18930 Don't set width here. Set quality to default.
18931
18932 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18933 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18934
18935 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18936 Remove redundant loop and allocation.
18937
18938 * makefile.w32-in (font.o, w32font.o): New objects.
18939 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18940 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18941
18942 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18943 STORE_XCHARB a valid l-value.
18944
18945 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18946 calculations for non-Truetype fonts.
18947 (x_draw_glyph_string): Sync with xterm.c.
18948 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18949 Remove redundant code.
18950 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18951
18952 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18953 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18954
18955 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18956 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18957
18958 * w32font.c: New file for w32 font backend.
18959
189602008-02-01 Kenichi Handa <handa@m17n.org>
18961
18962 * term.c: Don't include "buffer.h" twice.
18963
189642008-02-01 Kenichi Handa <handa@m17n.org>
18965
18966 * character.c (Funibyte_string): New function.
18967 (syms_of_character): Defsubr it.
18968
189692008-02-01 Jason Rumney <jasonr@gnu.org>
18970
18971 * w32term.c [USE_FONT_BACKEND]:
18972 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18973 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18974 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18975 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18976 (x_free_frame_resources): Sync with xterm.c.
18977
189782008-02-01 Andreas Schwab <schwab@suse.de>
18979
18980 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18981 char-table size.
18982
189832008-02-01 Kenichi Handa <handa@m17n.org>
18984
18985 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18986
189872008-02-01 Kenichi Handa <handa@m17n.org>
18988
18989 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18990 font_otf_gpos, add font_drive_otf.
18991
18992 * fontset.c (fontset_find_font): Pay attention to font size
18993 specified for a font.
18994 (reorder_font_vector): Check contents of font_def.
18995
18996 * font.c (struct otf_list): Delete it.
18997 (otf_list): Make it a lisp variable.
18998 (otf_open): Use lispy otf_list.
18999 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19000 (check_otf_features): New function.
19001 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19002 New functions.
19003 (font_drive_otf): New function merging font_otf_gsub and
19004 font_otf_gpos.
19005 (font_open_for_lface): New arg spec. Change argument order.
19006 (font_load_for_face): Adjust for the change of font_open_for_lface.
19007 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19008 Ffont_otf_gpos.
19009 (syms_of_font): Staticpro otf_list. Delete defsubr of
19010 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19011
19012 * xfaces.c (set_font_frame_param): Adjust for the change of
19013 font_open_for_lface.
19014
19015 * font.h (font_open_for_lface): Adjust prototype.
19016 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19017 member otf_drive.
19018 (font_otf_gsub, font_otf_gpos): Delete externs.
19019 (font_drive_otf): Extern it.
19020
190212008-02-01 Kenichi Handa <handa@m17n.org>
19022
19023 * font.c (font_at): If the window W is not on a window system,
19024 return Qnil.
19025
19026 * coding.c (produce_chars, encode_coding): Don't call
19027 insert_from_gap if no characters to produce.
19028
190292008-02-01 Kenichi Handa <handa@m17n.org>
19030
19031 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19032 Fclear_face_cache.
19033
19034 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19035
190362008-02-01 Miles Bader <miles@gnu.org>
19037
19038 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19039 Parse "--disable-font-backend" option.
19040 (standard_args): Add "--disable-font-backend" option.
19041
190422008-02-01 Kenichi Handa <handa@m17n.org>
19043
19044 * fontset.c (fontset_find_font): New function.
19045 (fontset_font): Use fontset_find_font.
19046 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19047 Register the specified font for all Latin characters.
19048 (new_fontset_from_font): Register the specified font for all Latin
19049 characters.
19050 (dump_fontset): For a realized fontset, include the base fontset
19051 name in the returned vector.
19052
190532008-02-01 Kenichi Handa <handa@m17n.org>
19054
19055 * character.h (CHAR_STRING): Cast C to unsigned on calling
19056 char_string.
19057
19058 * character.c (char_string): Type of arg C changed to unsigned.
19059 Signal an error if C is an invalid character code.
19060
19061 * editfns.c (general_insert_function, Fchar_to_string):
19062 Use CHARACTERP, not INTEGERP.
19063
190642008-02-01 Kenichi Handa <handa@m17n.org>
19065
19066 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19067 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19068
19069 * regex.c (analyse_first): Fix for multibyte characters in "case
19070 charset:" and "case categoryspec:".
19071
190722008-02-01 Andreas Schwab <schwab@suse.de>
19073
19074 * Makefile.in (LIBES): Move standard libraries to the end.
19075
190762008-02-01 Kenichi Handa <handa@m17n.org>
19077
19078 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19079 nonzero, don't shrink the buffer nextb.
19080
19081 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19082
19083 * coding.c (coding_alloc_by_making_gap): New arg offset.
19084 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19085 offset.
19086 (decode_coding_iso_2022): Update coding->safe_charsets.
19087 (decode_coding_gap): Temporarily set
19088 current_buffer->text->inhibit_shrinking to 1.
19089
190902008-02-01 Kenichi Handa <handa@m17n.org>
19091
19092 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19093 indexing into elements of s->cmp and s->char2b.
19094
190952008-02-01 Juanma Barranquero <lekktu@gmail.com>
19096
19097 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19098
190992008-02-01 Kenichi Handa <handa@m17n.org>
19100
19101 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19102 target_multibyte instead of multibyte.
19103 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19104 (bcmp_translate): Change the argument name from multibyte to
19105 target_multibyte.
19106
191072008-02-01 Kenichi Handa <handa@m17n.org>
19108
19109 These changes are to compile a regexp into a pattern that can be
19110 used both for multibyte and unibyte targets.
19111
19112 * Makefile.in (search.o): Depend on charset.h.
19113
19114 * character.c (multibyte_char_to_unibyte_safe): New function.
19115
19116 * search.c: Include "charset.h".
19117 (compile_pattern_1): Delete argument multibyte. Don't set
19118 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19119 (compile_pattern): Don't compare cp->buf.target_multibyte.
19120 Compare cp->buf.charset_unibyte.
19121 (compile_pattern): Set cp->buf.target_multibyte.
19122
19123 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19124
19125 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19126
19127 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19128 multibyte. Change callers.
19129 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19130 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19131 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19132 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19133 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19134 (regex_compile): Make the compiled pattern usable both for
19135 multibyte and unibyte targets.
19136 (analyse_first): Make the fastmap usable both for multibyte and
19137 unibyte targets.
19138 (TRANSLATE_VIA_MULTIBYTE): Delete.
19139 (re_match_2_internal): Pay attention to the case that the
19140 multibyteness of bufp and target may be different.
19141
191422008-02-01 Kenichi Handa <handa@m17n.org>
19143
19144 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19145 empty box occupy at least one column width.
19146
191472008-02-01 Miles Bader <miles@gnu.org>
19148
19149 * Makefile.in: Remove redundant HAVE_XFT clause.
19150
191512008-02-01 Kenichi Handa <handa@m17n.org>
19152
19153 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19154
191552008-02-01 Kenichi Handa <handa@m17n.org>
19156
19157 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19158 being nil.
19159
191602008-02-01 Kenichi Handa <handa@m17n.org>
19161
19162 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19163
191642008-02-01 Kenichi Handa <handa@m17n.org>
19165
19166 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19167
191682008-02-01 Kenichi Handa <handa@m17n.org>
19169
19170 * search.c (simple_search): Fix previous change.
19171
191722008-02-01 Kenichi Handa <handa@m17n.org>
19173
19174 * xftfont.c (ftfont_font_format): Extern declaration.
19175
19176 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19177
19178 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19179 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19180
19181 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19182 (ftfont_font_format): Fix previous change.
19183
19184 * font.h (Ffont_xlfd_name): EXFUN it.
19185
19186 * font.c (font_parse_xlfd): Fix the array size of `f'.
19187 (register_font_driver): Use EQ to compare driver->type.
19188
19189 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19190 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19191 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19192
191932008-02-01 Kenichi Handa <handa@m17n.org>
19194
19195 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19196 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19197
191982008-02-01 Kenichi Handa <handa@m17n.org>
19199
19200 * xfont.c (xfont_open): Set font->format.
19201
19202 * xftfont.c (xftfont_open): Set font->format.
19203
19204 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19205 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19206 (ftfont_open): Set font->format.
19207 (ftfont_font_format): New function.
19208
19209 * font.h (struct font): New member format.
19210
19211 * font.c (Qopentype): New variable.
19212 (syms_of_font): Defsym it.
19213 (Fquery_font): Change the format of the last element of the return
19214 value.
19215
192162008-02-01 Kenichi Handa <handa@m17n.org>
19217
19218 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19219 last resort.
19220
192212008-02-01 Kenichi Handa <handa@m17n.org>
19222
19223 * coding.c (detect_coding_charset): Fix detection of multi-byte
19224 charset.
19225
192262008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19227
19228 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19229
192302008-02-01 Kenichi Handa <handa@m17n.org>
19231
19232 * xdisp.c (get_next_display_element): Set it->face_id for the
19233 first component of a composition.
19234 (x_produce_glyphs): Check if the font is changed or not for composition.
19235
192362008-02-01 Kenichi Handa <handa@m17n.org>
19237
19238 * fontset.c (Qlatin): New variable.
19239 (syms_of_fontset): Define it as a lisp symbol.
19240 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19241
192422008-02-01 Kenichi Handa <handa@m17n.org>
19243
19244 * font.c (font_unparse_fcname): Pay attention to the case that
19245 some of font property is a null string.
19246
192472008-02-01 Kenichi Handa <handa@m17n.org>
19248
19249 * term.c: Include "composite.h".
19250 (encode_terminal_code): Output all components of composition.
19251 Check the size of encode_terminal_src.
19252 (produce_glyphs): For composition, call produce_composite_glyph.
19253 (append_composite_glyph, produce_composite_glyph): New functions.
19254
19255 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19256 is not found, get font_info from the current ascii face.
19257
192582008-02-01 Kenichi Handa <handa@m17n.org>
19259
19260 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19261 buffer-file-name to Qnil before calling insert_from_buffer.
19262
19263 * font.c (font_unparse_fcname): Pay attention to the case that
19264 foundry is a null string.
19265
192662008-02-01 Kenichi Handa <handa@m17n.org>
19267
19268 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19269
19270 * font.c (Qunicode_sip): New variable.
19271 (syms_of_font): Declare it as a Lisp symbol.
19272
19273 * font.h (Qunicode_sip): Extern it.
19274
192752008-02-01 Kenichi Handa <handa@m17n.org>
19276
19277 * composite.c (get_composition_id): Pay attention to TAB component.
19278
19279 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19280 TAB. Adjust for the change of s->char2b which always points to
19281 the first element of allocated memory.
19282
19283 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19284
19285 * xdisp.c (handle_composition_prop): Set it->c to the first
19286 non-TAB component.
19287 (fill_composite_glyph_string): Change argument.
19288 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19289 (x_produce_glyphs): Fix handling of left/right padding.
19290
192912008-02-01 Kenichi Handa <handa@m17n.org>
19292
19293 * coding.c (detect_coding_system): Fix for handling off
19294 inhibit_iso_escape_detection. Fix for the case that no coding
19295 system is defined for a specific coding category.
19296
192972008-02-01 Kenichi Handa <handa@m17n.org>
19298
19299 * font.c (font_matching_entity): Delete unused local var.
19300
19301 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19302 opening a font.
19303
19304 * fileio.c (Finsert_file_contents): On recovering a file, assume
19305 Unix-like eol.
19306 (choose_write_coding_system): On auto-saving a file, force
19307 Unix-like eol.
19308
19309 * coding.c (setup_coding_system): Fix setting of
19310 coding->common_flags based on eol_type.
19311 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19312 inherit from it.
19313
193142008-02-01 Kenichi Handa <handa@m17n.org>
19315
19316 * alloc.c (NSTATICS): Increas to 0x600.
19317
193182008-02-01 Kenichi Handa <handa@m17n.org>
19319
19320 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19321 (ftfont_list): Don't check :name property.
19322 (ftfont_match): New function.
19323 (ftfont_pattern_entity): If the pattern doesn't contain
19324 FC_SPACING, don't assume FC_MONO.
19325
19326 * font.h (struct font_driver): New member `match'.
19327 (font_update_drivers): Adjust prototype.
19328
19329 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19330 property of FONT.
19331 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19332 them unconditionally.
19333 (font_matching_entity): New function.
19334 (font_open_by_name): Try font_matching_entity if exact match is
19335 not found.
19336 (font_update_drivers): Delete the arg FONT. Return a list of
19337 actually used backends. Don't free faces, font caches here.
19338 Don't store data in frame parameters. Don't call x_set_font.
19339 (Ffont_spec): Store :name property as is.
19340 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19341 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19342 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19343 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19344 Call font->driver->otf_gsub instead of font_otf_gsub.
19345
19346 * frame.c (x_set_font_backend): Do more works that were done in
19347 font_update_drivers before.
19348
19349 * xfont.c (xfont_match): New function.
19350 (xfont_driver): Set xfont_driver.match to xfont_match.
19351 (xfont_draw): Set font in GC if necessary.
19352
19353 * ftxfont.c (ftxfont_match): New function.
19354 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19355
19356 * xftfont.c (xftfont_match): New function.
19357 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19358
193592008-02-01 Kenichi Handa <handa@m17n.org>
19360
19361 * font.h (struct font): New member scalable.
19362 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19363 (font_otf_gsub): Adjust prototype.
19364
19365 * font.c (font_otf_capability): Fix handling of the default langsys.
19366 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19367 Check the contents of SPEC.
19368 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19369 (check_gstring): New function.
19370 (REPLACEMENT_CHARACTER): New macro.
19371 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19372 glyph codes of GSTRING.
19373 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19374 (font_prepare_composition): Set cmp->glyph_len.
19375 (font_open_entity): Set font->scalable.
19376 (Ffont_get): Handle :otf property.
19377 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19378 functions.
19379 (Fquery_font): Use font->font.full_name.
19380 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19381 Sfont_otf_alternates.
19382
19383 * ftfont.c (ftfont_open): Set font->font.full_name and
19384 font->font.name properly. Fix calculation of font->font.height
19385 and font->min_width.
19386
19387 * ftxfont.c (ftxfont_create_gcs): New function.
19388 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19389 (ftxfont_draw_backgrond): Fix filling region.
19390 (ftxfont_default_fid): New function.
19391 (ftxfont_open): Set xfont->fid to the return value of
19392 ftxfont_default_fid.
19393 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19394 (ftxfont_done_face): Free only GCs that are created by
19395 ftxfont_create_gcs.
19396 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19397
19398 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19399 Clip to src->width, etc (not src->clip_XXX).
19400
19401 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19402 FontBackend frame parameter.
19403
194042008-02-01 Kenichi Handa <handa@m17n.org>
19405
19406 * font.h (struct font_driver_list): New member `on'.
19407 (Fclear_font_cache): EXFUN it.
19408 (font_update_drivers): Extern it.
19409
19410 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19411 (font_list_entities): Check driver_list->on.
19412 (register_font_driver): Initalize `on' member to 0.
19413 (font_update_drivers): New function.
19414 (Fclear_font_cache): Check driver_list->on.
19415
19416 * frame.h (Qfont_backend): Extern it.
19417 (x_set_font_backend): Extern it.
19418
19419 * frame.c (Qfont_backend): New variable.
19420 (frame_parms): New element for font-backend.
19421 (x_set_font_backend): New function.
19422
19423 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19424 FontBackend frame parameter.
19425 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19426 x_set_font_backend.
19427
19428 * xfont.c (xfont_list): Don't try listing by :name property if the
19429 name is not for XLFD.
19430
194312008-02-01 Kenichi Handa <handa@m17n.org>
19432
19433 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19434 (LGLYPH_SET_TO): New macros.
19435 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19436 element of G is vector or not.
19437 (font_at): Extern it.
19438
19439 * font.c: Include window.h.
19440 (font_lispy_object): New function.
19441 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19442 end of valid glyph.
19443 (font_close_object): Fix getting (struct font *).
19444 (font_at): New function.
19445 (Ffont_get): If FONT is a font-object, get entity from it.
19446 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19447 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19448 range check.
19449 (Ffont_at): New function.
19450 (syms_of_font): Defsubr Sfont_at.
19451
19452 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19453 before the entry for Qcomposition.
19454 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19455 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19456 the font in gstring.
19457 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19458 LGLYPH_FORM (g) to detect the end of valid glyph.
19459 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19460 we are composing with gstring.
19461
19462 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19463 Check if adjustment is vector or not.
19464
19465 * Makefile.in (font.o): Make it depends on window.h.
19466
194672008-02-01 Kenichi Handa <handa@m17n.org>
19468
19469 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19470 adjustment is vector or not.
19471
194722008-02-01 Miles Bader <miles@gnu.org>
19473
19474 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19475
194762008-02-01 Kenichi Handa <handa@m17n.org>
19477
19478 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19479 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19480 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19481
19482 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19483 (DEVICE_DELTA): Fix typo.
19484 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19485 LGLYPH format.
19486
19487 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19488 the change of LGLYPH format.
19489
194902008-02-01 Kenichi Handa <handa@m17n.org>
19491
19492 * ftfont.c (ftfont_list): Fix typo.
19493 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19494
194952008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19496
19497 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19498
19499 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19500 xftface_info is non-NULL.
19501
195022008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19503
19504 * ftfont.c (ftfont_list): Move misplaced #endif.
19505
195062008-02-01 Kenichi Handa <handa@m17n.org>
19507
19508 * ftfont.c (ftfont_list): Pay attention to the case that
19509 FC_CAPABILITY is not defined.
19510
195112008-02-01 Kenichi Handa <handa@m17n.org>
19512
19513 * xftfont.c (xftfont_open): Set charset related members to -1.
19514
19515 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19516 QCname.
19517 (ftfont_open): Set charset related members to -1.
19518
19519 * fontset.c (Votf_script_alist): New variable.
19520 (syms_of_fontset): Initialize it.
19521 (fontset_font): Delete unused variable.
19522
19523 * fontset.h (Votf_script_alist): Extern it.
19524
19525 * font.c (font_find_for_lface): Optimize code.
19526
19527 * font.h (font_close_object, font_merge_old_spec): Extern them.
19528
195292008-02-01 Kenichi Handa <handa@m17n.org>
19530
19531 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19532 (syms_of_font): Initialize them.
19533 (font_pixel_size): Allow float value in dpi.
19534 (font_prop_validate_type): Delete.
19535 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19536 Change caller.
19537 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19538 (font_prop_validate_extra): Delete.
19539 (font_prop_validate_spacing): New function.
19540 (font_property_table): Add elements for all known properties.
19541 (get_font_prop_index): Rename from check_font_prop_name. New
19542 argument FROM. Change caller.
19543 (font_prop_validate): Validate all known properties.
19544 (font_put_extra): Delete argument force. Change caller.
19545 (font_expand_wildcards): Make it static. Fix the way of shrinking
19546 the possible range.
19547 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19548 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19549 Change caller.
19550 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19551 (font_parse_fcname): Delete argument merge. Fix parsing of point
19552 size. Don't validate properties values here. Change caller.
19553 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19554 (font_open_by_name): Delete unused variable.
19555 (Ffont_spec): Likewise. Validate property values.
19556 (Ffont_match_p): New function.
19557
19558 * font.h (QCscalable): Extern it.
19559 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19560
19561 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19562
19563 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19564 (xfont_list_pattern): New function.
19565 (xfont_list): Use xfont_list_pattern.
19566
195672008-02-01 Kenichi Handa <handa@m17n.org>
19568
19569 * font.h (Flist_fonts): EXFUN it.
19570
195712008-02-01 Jason Rumney <jasonr@gnu.org>
19572
19573 * w32term.c (w32_initialize): Add back smoothing_type and
19574 smoothing_enabled definitions.
19575
195762008-02-01 Kenichi Handa <handa@m17n.org>
19577
19578 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19579 s->face->font on determining underline position.
19580
195812008-02-01 Kenichi Handa <handa@m17n.org>
19582
19583 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19584 (font_has_char): Accept font-object too.
19585 (font_find_for_lface): Try at first with a size specified in face.
19586
195872008-02-01 Kenichi Handa <handa@m17n.org>
19588
19589 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19590 font_open_by_name.
19591
195922008-02-01 Kenichi Handa <handa@m17n.org>
19593
19594 * font.h (QCspacing, QCdpi): Extern them.
19595 (enum font_spacing): New enum.
19596 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19597
19598 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19599 (QCspacing, QCdpi): New variables.
19600 (syms_of_font): Initialize them.
19601 (font_pixel_size): New function.
19602 (font_put_extra): New function.
19603 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19604 in FONT_EXTRA.
19605 (font_parse_fcname): Handle enumerated values (e.g. bold).
19606 Fix handling font size. Add QCname property that contains only
19607 unknown properties.
19608 (font_score): Change argument. Change caller. Pay attention to
19609 FONT_PIXEL_SIZE_QUANTUM.
19610 (font_sort_entites, font_list_entities, font_find_for_lface)
19611 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19612 (Ffont_spec): Add QCname property that contains only unknown properties.
19613
19614 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19615 include weight in listing pattern, instead check weight of each
19616 listed font. Don't include scalable in pattern. Pay attention to
19617 FONT_PIXEL_SIZE_QUANTUM.
19618
196192008-02-01 Kenichi Handa <handa@m17n.org>
19620
19621 * font.c (font_parse_fcname): Fix parsing of point-size.
19622 (font_unparse_fcname): Produce symbolic names for style properties.
19623 (font_list_entities): Handle float size correctly.
19624 (font_open_by_name): Prefer `normal' property values if the name
19625 doesn't specify them.
19626
19627 * fontset.c (Finternal_char_font): Use font_get_name, not
19628 Ffont_xlfd_name.
19629
19630 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19631 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19632 pattern. Don't force scalable.
19633
19634 * xftfont.c (xftfont_open): For generating a name, start from
19635 96-byte buffer.
19636
196372008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19638
19639 * frame.h (x_new_fontset2): Fix prototype.
19640
196412008-02-01 Kenichi Handa <handa@m17n.org>
19642
19643 * font.h (struct font_driver): Delete member parse_name.
19644 (font_match_p, font_get_spec, font_parse_fcname)
19645 (font_unparse_fcname): Extern them.
19646 (font_get_name): Adjust prototype.
19647
19648 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19649 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19650 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19651 unnecessary checks for weight, slant, and swidth.
19652 (font_parse_fcname): New function.
19653 (font_unparse_fcname): New function.
19654 (font_parse_name): New function.
19655 (font_match_p): New function.
19656 (font_get_name): Change return value to Lisp string.
19657 (font_get_spec): New function.
19658 (Qunspecified, Qignore_defface): Don't extern them.
19659 (font_find_for_lface): Assume that LFACE is fully specified.
19660 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19661 object, use it for FACE.
19662 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19663 driver->parse_name.
19664 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19665
19666 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19667 prototype.
19668
19669 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19670 argument F. Don't call Fnew_fontset. Instead, directly call
19671 make_fontset.
19672
19673 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19674
19675 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19676 of x_new_fontset2.
19677
19678 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19679 (Qsans__serif): New variables.
19680 (ftfont_generic_family_list): New variable.
19681 (syms_of_ftfont): Initialize the above variables.
19682 (ftfont_pattern_entity): Delete argument NAME.
19683 (ftfont_list_generic_family): New function.
19684 (ftfont_parse_name): Delete this function.
19685 (ftfont_list): Try generic family only when FcFontList found no font.
19686 (ftfont_list_family): Fix args to FcObjectSetBuild.
19687
19688 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19689 object in attrs[LFACE_FONT_INDEX].
19690 (set_lface_from_font_name): Cancel all changes for font-backend.
19691 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19692 function.
19693 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19694 font object in QCfont attribute.
19695 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19696 (realize_default_face) [USE_FONT_BACKEND]: Call
19697 set_lface_from_font_and_fontset.
19698
19699 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19700 "fixed", and signal error here if no suitable font was found.
19701
19702 * xfont.c (xfont_parse_name): Delete this function.
19703
19704 * xftfont.c (xftfont_open): Change coding style of error
19705 handling. Generate fontconfig's fontname pattern.
19706
19707 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19708 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19709
19710 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19711 Both args FONTSET and FONT_OBJECT must be existing ones.
19712
197132008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19714
19715 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19716
197172008-02-01 Kenichi Handa <handa@m17n.org>
19718
19719 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19720
19721 * font.h (struct font): Fix typo.
19722
19723 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19724 XLFD_XXX_INDEX.
19725 (enum xlfd_field_mask): New enum.
19726 (intern_font_field): Changed argument. Change caller. If digits
19727 are followed by non-digits, return a symbol.
19728 (font_expand_wildcards): New function.
19729 (font_parse_xlfd): Fix wildcard handling.
19730 (Ffont_spec): If :name is specified, reflect the info in the other
19731 properties.
19732
19733 * ftfont.c (ftfont_pattern_entity): Fix typo.
19734 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19735 locale.
19736
197372008-02-01 Kenichi Handa <handa@m17n.org>
19738
19739 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19740
19741 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19742 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19743 registry doesn't specify encoding part.
19744 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19745 (font_open_by_name): At first try parsing the name.
19746 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19747 as Lisp symbols.
19748
19749 * fontset.c (reorder_font_vector): Pay attention to the case that
19750 the 3rd element of font_def is nil.
19751 (fontset_font): For the default fontset, append one more fontset
19752 elements for a script-based font specification. Don't add script
19753 attribute on finding a font.
19754 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19755 font name.
19756 (fontset_ascii_font): If a font can't be opened, return nil.
19757
19758 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19759 (ftfont_pattern_entity): New function.
19760 (ftfont_get_cache): Assume that freetype_font_cache is already
19761 initialized.
19762 (ftfont_list): Handle the case that a file is specified in font
19763 name. Use ftfont_pattern_entity to generate entities.
19764 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19765 (syms_of_ftfont): Initialize freetype_font_cache.
19766
19767 * xftfont.c (xftfont_open): Make the font name fontconfig's
19768 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19769 (xftfont_close): Free font->font.name if not NULL.
19770
19771 * xfont.c (xfont_list): If script is specified for a font, return
19772 null_vector.
19773 (xfont_list_family): Declare argument type.
19774
19775 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19776 name, set LFACE_FONT (lface) to nil.
19777
19778 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19779 return Qnil.
19780
197812008-02-01 Kenichi Handa <handa@m17n.org>
19782
19783 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19784 (standard_args): Add "-enable-font-backend".
19785
197862008-02-01 Kenichi Handa <handa@m17n.org>
19787
19788 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19789 (struct xftdraw_list, xftdraw_list): Delete them.
19790 (register_xftdraw, check_xftdraw): Delete them.
19791 (xftfont_prepare_face): Don't call register_xftdraw.
19792 (xftfont_done_face): Don't call check_xftdraw.
19793 (xftfont_draw): Get background color only when with_background is
19794 nonzero.
19795
19796 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19797
197982008-02-01 Kenichi Handa <handa@m17n.org>
19799
19800 These changes are for the new font handling codes.
19801
19802 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19803 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19804 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19805 (FONTSRC, FONTOBJ): New variables.
19806 (obj): Add $(FONTOBJ).
19807 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19808 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19809 @LIBOTF_LIBS@.
19810 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19811 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19812
19813 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19814
19815 * character.h (Vscript_representative_chars): Extern it.
19816
19817 * character.c (Vscript_representative_chars): New variable.
19818 (syms_of_character): Declare it as a Lisp variable.
19819
19820 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19821 enable_font_backend is nonzero, accept the composition method
19822 COMPOSITION_WITH_GLYPH_STRING.
19823
19824 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19825 enumeration COMPOSITION_WITH_GLYPH_STRING.
19826
19827 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19828 members clip_x, clip_y, clip_width, and clip_height.
19829 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19830
19831 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19832 --enable-font-backend. Call syms_of_font.
19833
19834 * fns.c (assoc_no_quit): New function.
19835
19836 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19837 (face_for_font, new_fontset_from_font)
19838 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19839
19840 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19841 (fontset_font, fontset_ascii, face_for_char)
19842 (make_fontset_for_ascii_face, Ffont_info)
19843 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19844 is nonzero, use font-backend mechanism.
19845 (find_font_encoding): Make it non-static.
19846 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19847 New functions.
19848
19849 * frame.h (struct frame): New members resx and resy.
19850 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19851 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19852
19853 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19854 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19855
19856 * lisp.h (assoc_no_quit): Extern it.
19857
19858 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19859 Through out the file, use FONT_INFO_FROM_FACE instead of
19860 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19861 rif->per_char_metric.
19862 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19863 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19864 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19865 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19866 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19867 nonzero, use font-backend mechanism.
19868 (get_per_char_metric): New function.
19869
19870 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19871 (set_lface_from_font_name)
19872 (set_font_frame_param, free_realized_face)
19873 (prepare_face_for_display, clear_face_gcs)
19874 (Finternal_set_font_selection_order, realize_x_face)
19875 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19876 font-backend mechanism.
19877 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19878 (load_face_font) [USE_FONT_BACKEND]: Abort.
19879 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19880 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19881
19882 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19883 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19884 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19885 nonzero, register all available font drivers. Call
19886 x_default_font_parameter for deciding a font.
19887 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19888
19889 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19890 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19891 (x_set_glyph_string_clipping_exactly)
19892 (x_compute_glyph_string_overhangs)
19893 (x_draw_glyph_string_foreground)
19894 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19895 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19896 enable_font_backend is nonzero, use font-backend mechanism.
19897 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19898
198992008-02-01 Kenichi Handa <handa@m17n.org>
19900
19901 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19902 system_eol_type.
19903 (syms_of_coding): Initialize system_eol_type.
19904
19905 * process.c (Fset_process_coding_system): Inherit system's eol
19906 format if necessary.
19907
199082008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19909
19910 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19911
199122008-02-01 Kenichi Handa <handa@m17n.org>
19913
19914 * coding.c (decode_eol): Pay attention to buffer relocation in
19915 del_range_2.
19916 (decode_coding): Call decode_eol before restoring undo_list.
19917
199182008-02-01 Kenichi Handa <handa@m17n.org>
19919
19920 * charset.c (Fdefine_charset_internal): Fix setting of
19921 emacs_mule_bytes.
19922
199232008-02-01 Kenichi Handa <handa@m17n.org>
19924
19925 * keyboard.c (read_char): Check if C is a character or not before
19926 looking up Vkeyboard_translate_table.
19927
199282008-02-01 Kenichi Handa <handa@m17n.org>
19929
19930 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19931 condition to terminate the loop.
19932
199332008-02-01 Kenichi Handa <handa@m17n.org>
19934
19935 * coding.c (produce_composition): Compare charbuf[i] instead of
19936 args[i] against 0.
19937 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19938
199392008-02-01 Kenichi Handa <handa@m17n.org>
19940
19941 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19942 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19943 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19944 detect_coding.
19945 (emacs_mule_char): Handle old style (Emacs 20) component character
19946 of a composition.
19947 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19948 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19949 composition rule.
19950 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19951
199522008-02-01 Kenichi Handa <handa@m17n.org>
19953
19954 * coding.c (encode_coding_ccl): Allocate destination dynamically
19955 when necessary.
19956
199572008-02-01 Kenichi Handa <handa@m17n.org>
19958
19959 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19960 the loop. When quitted, show a proper error message.
19961
199622008-02-01 Kenichi Handa <handa@m17n.org>
19963
19964 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19965 src->clip_head and src->clip_tail temporarily instead of src->hl.
19966
19967 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19968 character sequence.
19969 (Fccl_execute_on_string): Use ASET, not XSET.
19970
199712008-02-01 Kenichi Handa <handa@m17n.org>
19972
19973 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19974
199752008-02-01 Kenichi Handa <handa@m17n.org>
19976
19977 * coding.c (decode_coding): Fix the condition of terminating the
19978 decoding loop.
19979
199802008-02-01 Kenichi Handa <handa@m17n.org>
19981
19982 * data.c (Faset): On setting a character bigger than 255 in a
19983 unibyte string, signal an error instead of make the string multibyte.
19984
199852008-02-01 Kenichi Handa <handa@m17n.org>
19986
19987 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19988 made by a mapping table.
19989
199902008-02-01 Kenichi Handa <handa@m17n.org>
19991
19992 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19993 not.
19994 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19995 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19996
19997 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19998 s->face is NULL or not.
19999
200002008-02-01 Kenichi Handa <handa@m17n.org>
20001
20002 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20003 (x_draw_glyph_string): Fix drawing of right_overhang and
20004 left_overhang around/on cursor.
20005
20006 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20007
200082008-02-01 Kenichi Handa <handa@m17n.org>
20009
20010 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20011
200122008-02-01 Kenichi Handa <handa@m17n.org>
20013
20014 * coding.c (Fdefine_coding_system_internal)
20015 (Fdefine_coding_system_alias): Avoid a duplicated element in
20016 Vcoding_system_alist.
20017
200182008-02-01 Kenichi Handa <handa@m17n.org>
20019
20020 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20021
20022 * coding.c (Qcoding_system_define_form): New variable.
20023 (syms_of_coding): Intern and staticpro it.
20024 (Fcoding_system_p): Check Qcoding_system_define_form.
20025 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20026
20027 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20028 Fcoding_system_p.
20029 (CHECK_CODING_SYSTEM): If ID is not available, call
20030 Fcheck_coding_system.
20031 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20032 Try also Fcheck_coding_system.
20033
200342008-02-01 Kenichi Handa <handa@m17n.org>
20035
20036 * coding.c (code_conversion_restore): GCPRO arg.
20037
200382008-02-01 Kenichi Handa <handa@m17n.org>
20039
20040 * character.c (lisp_string_width): Check multibyteness of STRING.
20041
200422008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20043
20044 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20045 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20046 (decode_mac_font_name): Use decode_coding_c_string instead of
20047 decode_coding.
20048 (x_load_font): Initialize fontp->fontset to -1. Set
20049 fontp->encoding_type.
20050
200512008-02-01 Kenichi Handa <handa@m17n.org>
20052
20053 * search.c (search_buffer): Give up BM search on case-fold-search
20054 if one of a target character has a case-equivalence of different
20055 byte length even if that target charcter is an ASCII.
20056 (simple_search): Fix calculation of byte length of matched text.
20057 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20058
200592008-02-01 Kenichi Handa <handa@m17n.org>
20060
20061 * coding.c (decode_coding): Fix handling of invalid bytes.
20062
200632008-02-01 Kenichi Handa <handa@m17n.org>
20064
20065 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20066 Unicode characters.
20067
200682008-02-01 Kenichi Handa <handa@m17n.org>
20069
20070 * coding.c (encode_coding_object): If a pre-write-conversion
20071 function makes a new buffer, kill it.
20072
200732008-02-01 Kenichi Handa <handa@m17n.org>
20074
20075 * coding.c (QCascii_compatible_p): New variable.
20076 (syms_of_coding): Initialize it.
20077 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20078 calling string_char.
20079 (record_conversion_result): Add `default:' case.
20080 (coding_charset_list): Delete unused variable `coding_type'.
20081 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20082 property in the plist of the coding system.
20083 (Fcoding_system_put): Check QCascii_compatible_p.
20084
200852008-02-01 Miles Bader <miles@gnu.org>
20086
20087 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20088 removed calculation of frame `f', as it's now used.
20089
200902008-02-01 Kenichi Handa <handa@m17n.org>
20091
20092 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20093 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20094 (UNIDATA): New variable.
20095 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20096 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20097 $(RUN_TEMACS) unconditionally.
20098
200992008-02-01 Kenichi Handa <handa@m17n.org>
20100
20101 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20102 (admindir): New variable.
20103 ($(lispsource)international/charprop.el): New target.
20104
201052008-02-01 Miles Bader <miles@gnu.org>
20106
20107 * character.c (chars-in-region): Remove obsolete function.
20108 (syms_of_character): Remove its initialization.
20109
201102008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20111
20112 * w32select.c (validate_coding_system)
20113 (setup_windows_coding_system): New functions.
20114 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20115 setup_windows_coding_system.
20116 (setup_config, Fw32_get_clipboard_data): Use
20117 validate_coding_system.
20118 (Fx_selection_exists): Move call to setup_config to a place
20119 where signals are allowed.
20120
20121 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20122 (Fcheck_coding_system): Add declarations.
20123
201242008-02-01 Kenichi Handa <handa@m17n.org>
20125
20126 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20127
201282008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20129
20130 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20131 string as the second argument for x_new_fontset.
20132
201332008-02-01 Kenichi Handa <handa@m17n.org>
20134
20135 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20136 (encode_coding_object): Use safe_call instead of call2.
20137
201382008-02-01 Kenichi Handa <handa@m17n.org>
20139
20140 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20141
20142 * Makefile.in (lisp): Include charprop.el.
20143
201442008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20145
20146 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20147 Not sure if it's unnecessary.
20148
201492008-02-01 Steven Tamm <steventamm@mac.com>
20150
20151 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20152 some possibly unnecessary fontset checking code that crashed
20153 when creating a new frame.
20154
201552008-02-01 Kenichi Handa <handa@m17n.org>
20156
20157 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20158 lookup_face.
20159
20160 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20161
20162 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20163
201642008-02-01 Kenichi Handa <handa@m17n.org>
20165
20166 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20167 (coding_charset_list): New function.
20168
20169 * coding.h (coding_charset_list): Extern it.
20170
201712008-02-01 Kenichi Handa <handa@m17n.org>
20172
20173 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20174 concatenation of family and registry.
20175
201762008-02-01 Kenichi Handa <handa@m17n.org>
20177
20178 * character.h (BYTE8_STRING): Fix typo.
20179
20180 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20181 string to multibyte (sync to HEAD).
20182
20183 * casefiddle.c (casify_region): Handle changes in byte-length
20184 using replace_range_2 (sync to HEAD).
20185
201862008-02-01 Andreas Schwab <schwab@suse.de>
20187
20188 * chartab.c (map_char_table): GCPRO table and arg.
20189
201902008-02-01 Kenichi Handa <handa@m17n.org>
20191
20192 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20193 already at limit.
20194
201952008-02-01 Kenichi Handa <handa@m17n.org>
20196
20197 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20198 instead of fast_c_string_match_ignore_case.
20199 (find_font_encoding): Change argument to Lisp_Object. Use
20200 fast_string_match_ignore_case instead of
20201 fast_c_string_match_ignore_case. Change caller.
20202
202032008-02-01 Kenichi Handa <handa@m17n.org>
20204
20205 * xdisp.c (get_next_display_element): In unibyte case, decide to
20206 display in octal form by checking a character by
20207 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20208
20209 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20210
20211 * character.c (unibyte_has_multibyte_table): New variable.
20212
20213 * character.h (unibyte_has_multibyte_table): Extern it.
20214 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20215
202162008-02-01 Kenichi Handa <handa@m17n.org>
20217
20218 * coding.c (encode_coding_iso_2022): Fix handling of charset
20219 annotation.
20220
202212008-02-01 Kenichi Handa <handa@m17n.org>
20222
20223 * coding.c (setup_coding_system): If coding_system is nil, use
20224 Qundecided.
20225 (Fterminal_coding_system): Return nil if terminal coding system is
20226 `undecided'.
20227 (syms_of_coding): Define coding-system `undecided' here. Setup
20228 terminal_coding as `undecided'.
20229
202302008-02-01 Kenichi Handa <handa@m17n.org>
20231
20232 * xdisp.c (message_dolog, set_message_1): Call
20233 unibyte_char_to_multibyte with arg type int.
20234
20235 * lread.c (read1): Fix reading of a char-table.
20236
20237 * print.c (print_object): Include sub char-table in circularities
20238 detection.
20239
202402008-02-01 Kenichi Handa <handa@m17n.org>
20241
20242 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20243 Append the found sequences in car of ARGS instead of prepending.
20244
202452008-02-01 Kenichi Handa <handa@m17n.org>
20246
20247 * fileio.c (report_file_error): Make a unibyte string from
20248 strerror (errorno).
20249 (Fsubstitute_in_file_name): Fix the arg to
20250 unibyte_char_to_multibyte. It is evaluated twice.
20251
202522008-02-01 Kenichi Handa <handa@m17n.org>
20253
20254 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20255
202562008-02-01 Kenichi Handa <handa@m17n.org>
20257
20258 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20259 BOM is not found.
20260 (detect_coding, detect_coding_system): Optimization for ISO-2022
20261 when no 8-bit data is found.
20262
202632008-02-01 Jason Rumney <jasonr@gnu.org>
20264
20265 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20266
202672008-02-01 Kenichi Handa <handa@m17n.org>
20268
20269 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20270 CHARS.
20271
202722008-02-01 Steven Tamm <steventamm@mac.com>
20273
20274 * macterm.c (mac_encode_char): Add charset argument and update
20275 to use encoding_type.
20276 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20277 switch to pure fontset.
20278 (decode_mac_font_name): Temporarily remove decoding.
20279 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20280 (x_load_font): Temporarily remove encoding.
20281
202822008-02-01 Kenichi Handa <handa@m17n.org>
20283
20284 * xfaces.c (Fface_font): If frame is not on a window system,
20285 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20286 refer to face->font.
20287 (split_font_name_into_vector, build_font_name_from_vector)
20288 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20289 when HAVE_WINDOW_SYSTEM is defined.
20290
202912008-02-01 Kenichi Handa <handa@m17n.org>
20292
20293 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20294 (x_produce_glyphs): Fix setting of members of cmp in case
20295 cmp->glyph_len is zero.
20296
20297 * fontset.c (Fset_fontset_font): Fix docstring.
20298 (Ffontset_info): Make it backward compatible. New arg ALL.
20299
203002008-02-01 Kim F. Storm <storm@cua.dk>
20301
20302 * process.c (read_process_output): Grow decoding_buf when needed;
20303 this could cause a crash in allocate_string and compact_small_strings.
20304
203052008-02-01 Kenichi Handa <handa@m17n.org>
20306
20307 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20308
203092008-02-01 Kenichi Handa <handa@m17n.org>
20310
20311 * coding.c (setup_coding_system): Set coding->common_flags
20312 correctly for raw-text.
20313 (consume_chars): On encoding unibyte text by raw-text, don't check
20314 multibyte form.
20315 (encode_coding): On encoding by raw-text, never use translation tables.
20316
20317 * fileio.c (e_write): Short cut for the case of no encoding.
20318
203192008-02-01 Kenichi Handa <handa@m17n.org>
20320
20321 * coding.c (detect_coding, detect_coding_system): Delete unused
20322 variables.
20323
203242008-02-01 Kenichi Handa <handa@m17n.org>
20325
20326 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20327 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20328
203292008-02-01 Kenichi Handa <handa@m17n.org>
20330
20331 * coding.c (Ffind_coding_systems_region_internal): Include
20332 raw-text and no-conversion in the result.
20333
203342008-02-01 Kenichi Handa <handa@m17n.org>
20335
20336 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20337 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20338 FONT_DEF.
20339 (font_def_arg, add_arg, from_arg, to_arg): New args.
20340 (set_fontset_font): Change argument.
20341 (Fset_fontset_font): Fix for the case that TARGET is a script
20342 name and charset name.
20343 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20344
203452008-02-01 Kenichi Handa <handa@m17n.org>
20346
20347 * fontset.c (fontset_font): Rename from fontset_face. Change return
20348 value.
20349 (face_suitable_for_char_p, face_for_char): Adjust for the change
20350 of fontset_font.
20351 (make_fontset_for_ascii_face): Fix setting of the fontset element
20352 for ASCII.
20353 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20354 to get a font name.
20355 (Ffontset_info): Adjust for the change of fontset_font.
20356
20357 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20358
20359 * character.h (LEADING_CODE_LATIN_1_MIN)
20360 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20361
203622008-02-01 Kenichi Handa <handa@m17n.org>
20363
20364 * editfns.c (check_translation): New function.
20365 (Ftranslate_region_internal): Handle M:N mapping.
20366
203672008-02-01 Kenichi Handa <handa@m17n.org>
20368
20369 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20370
203712008-02-01 Kenichi Handa <handa@m17n.org>
20372
20373 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20374 goto invalid_code.
20375 (decode_coding_iso_2022): Fix handling of invalid designation.
20376
20377 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20378 after calling code_conversion_save.
20379
203802008-02-01 Kenichi Handa <handa@m17n.org>
20381
20382 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20383
20384 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20385
20386 * fontset.c: Include "intervals.h".
20387 (fontset_face): Fix comparing of Lisp_Objects.
20388 (free_face_fontset, new_fontset_from_font_name): Fix
20389 Lisp_Object/int mixup.
20390
20391 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20392
20393 * coding.c: Add many prototypes for static functions.
20394 (get_translation_table): Allow max_lookup to be NULL.
20395 (decode_coding, Ffind_coding_systems_region_internal)
20396 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20397 get_translation_table with max_lookup NULL.
20398
203992008-02-01 Kenichi Handa <handa@m17n.org>
20400
20401 * coding.c (get_translation_table): Declare it as Lisp_Object.
20402 (LOOKUP_TRANSLATION_TABLE): New macro.
20403 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20404 instead of CHAR_TABLE_REF.
20405
204062008-02-01 Kenichi Handa <handa@m17n.org>
20407
20408 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20409 annotation data format.
20410 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20411 Change arguments FROM and TO to single argument NCHARS. Change caller.
20412 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20413 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20414 (decode_coding_ccl, decode_coding_charset): Pay attention to
20415 coding->charbuf_used.
20416 (get_translation): New function.
20417 (produce_chars): New arguments translation_table and last_block.
20418 Translate characters here. Return number of carryover chars.
20419 Change caller.
20420 (produce_composition): New argument pos. Change caller.
20421 Adjust for the change of annotation data format.
20422 (produce_charset, produce_annotation): Likewise.
20423 (decode_coding, encode_coding): Don't call translate_chars.
20424 (consume_chars): New arg translation_table. Change caller.
20425 (translate_chars): Delete.
20426 (syms_of_coding): Make translation-table's number of extra slots 2.
20427
204282008-02-01 Kenichi Handa <handa@m17n.org>
20429
20430 * search.c (simple_search): Fix setting this_pos_byte in backward
20431 search.
20432
20433 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20434 byte sequence.
20435 (detect_coding_ccl): Fix setting of the variable valids.
20436
204372008-02-01 Kenichi Handa <handa@m17n.org>
20438
20439 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20440
20441 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20442
20443 * editfns.c (Ftranslate_region_internal): Rename from
20444 Ftranslate_region. Accept a char-table in TABLE.
20445 (syms_of_editfns): Defsubr Stranslate_region_internal.
20446
20447 * xfaces.c (set_lface_from_font_name): If a font is specified for
20448 a frame, generate a fontset from the font.
20449 (build_scalable_font_name): If the scalable font is requested for
20450 a specific size, don't change that size.
20451 (try_font_list): Try a scalable font also in the case that a
20452 pattern string is specified.
20453
204542008-02-01 Kenichi Handa <handa@m17n.org>
20455
20456 * xfaces.c (Fface_font): New optional arg CHARACTER.
20457
204582008-02-01 Kenichi Handa <handa@m17n.org>
20459
20460 * charset.h (CHARSET_OFFSET): New macro.
20461
204622008-02-01 Kenichi Handa <handa@m17n.org>
20463
20464 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20465
20466 * fontset.c (fontset_face): Handle the case that repertory is a
20467 char-table.
20468 (find_font_encoding): Return nil for unknown encoding.
20469 (Fset_fontset_font): Ignore a font of unknown encoding.
20470
204712008-02-01 Kenichi Handa <handa@m17n.org>
20472
20473 * keymap.c (describe_vector): Handle default value of a char table.
20474
20475 * fontset.c (fontset_face): Handle fallback fonts correctly.
20476 (Ffontset_info): Return infomation about fallback fonts.
20477
204782008-02-01 Kenichi Handa <handa@m17n.org>
20479
20480 * fontset.c (FONTSET_DEFAULT): New macro.
20481 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20482 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20483 the case that it is nil.
20484 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20485 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20486
20487 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20488 subset or superset.
20489
204902008-02-01 Kenichi Handa <handa@m17n.org>
20491
20492 * emacs.c (main): Call init_charset after syms_of_XXX.
20493
20494 * charset.c (Vcharset_map_directory): Delete.
20495 (Vcharset_map_path): New variable.
20496 (load_charset_map_from_file): Use Vcharset_map_path instead.
20497 (init_charset): Initialize Vcharset_map_path.
20498 (syms_of_charset): Delete declaration of "charset-map-directory",
20499 add declaration of "charset-map-path".
20500
205012008-02-01 Kenichi Handa <handa@m17n.org>
20502
20503 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20504 ASCII only string.
20505
20506 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20507
20508 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20509 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20510
205112008-02-01 Kenichi Handa <handa@m17n.org>
20512
20513 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20514
20515 * coding.c (QCmnemonic, QCdefalut_char)
20516 (QCdecode_translation_table, QCencode_translation_table)
20517 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20518 (get_translation_table): Return a list of translation tables if
20519 necessary.
20520 (decode_coding): Call get_translation_table with ENCODEP 0.
20521 (char_encodable_p): If translation_table is non-nil, always call
20522 translate_char.
20523 (Fdefine_coding_system_internal): Accept list of translation
20524 tables as :encode-translation-table and :decode-translation-table.
20525 (Fcoding_system_put): New function.
20526 (syms_of_coding): Declare new symbols. Defsubr
20527 Scoding_system_put.
20528 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20529 typically JISX0212.
20530
20531 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20532 when the charset is superset type.
20533
20534 * character.c (translate_char): Accept list of translation tables.
20535
205362008-02-01 Kenichi Handa <handa@m17n.org>
20537
20538 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20539 (CODING_ATTR_TRANS_TBL): New macro.
20540
20541 * coding.c (get_translation_table): New function.
20542 (translate_chars): Fix the bug of skipping annotation data.
20543 (decode_coding, encode_coding): Utilize get_translation_table.
20544 (char_encodable_p, Funencodable_char_position): Translate char if
20545 necessary.
20546 (Ffind_coding_systems_region_internal)
20547 (Fcheck_coding_systems_region): Setup translation table for encode
20548 in a coding system attribute vector in advance.
20549 (Fdefine_coding_system_internal): Allow a symbol as translation
20550 table. For shift-jis type coding system, allow 4th charset.
20551
205522008-02-01 Kenichi Handa <handa@m17n.org>
20553
20554 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20555
20556 * xdisp.c (get_next_display_element): Pass -1 as POS to
20557 FACE_FOR_CHAR if displaying a C-string.
20558
205592008-02-01 Kenichi Handa <handa@m17n.org>
20560
20561 * composite.c (get_composition_id): Handle xoff and yoff in a
20562 composition rule.
20563
20564 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20565 (struct composition): New member lbearing and rbearing.
20566
20567 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20568 (x_get_glyph_overhangs): Handle a composition glyph.
20569 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20570
20571 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20572 composition glyph.
20573
205742008-02-01 Kenichi Handa <handa@m17n.org>
20575
20576 * print.c: Include charset.h.
20577 (Vprint_charset_text_property): New variable.
20578 (Qdefault): Extern it.
20579 (PRINT_STRING_NON_CHARSET_FOUND)
20580 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20581 (print_check_string_result): New variable.
20582 (print_check_string_charset_prop): New function.
20583 (print_prune_charset_plist): New variable.
20584 (print_prune_string_charset): New function.
20585 (print_object): Call print_prune_string_charset if
20586 Vprint_charset_text_property is not t.
20587 (print_interval): Print nothing if interval->plist is nil.
20588 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20589 variable. Init and staticpro print_prune_charset_plist.
20590
205912008-02-01 Kenichi Handa <handa@m17n.org>
20592
20593 * fontset.c (new_fontset_from_font_name): Use the specified font
20594 for all characters in the new fontset.
20595
20596 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20597 OBJECT args.
20598
20599 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20600 OBJECT args for composition too.
20601
20602 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20603 OBJECT args.
20604
206052008-02-01 Kenichi Handa <handa@m17n.org>
20606
20607 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20608
20609 * fontset.c (reorder_font_vector): Adjust for the change of
20610 FONT_DEF format.
20611 (fontset_face): New arg id. Change caller.
20612 (face_for_char): New args pos and object.
20613 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20614 (fs_query_fontset): Check NAME by Fassoc too.
20615 (Fset_fontset_font): Allow non-XLFD font name.
20616 (Ffontset_info): Adjust for the change of FONT_DEF format.
20617
20618 * fontset.h (face_for_char): Adjust prototype.
20619
20620 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20621 (append_space, extend_face_to_end_of_line)
20622 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20623 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20624
20625 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20626 POS and OBJECT args.
20627
20628 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20629 POS and OBJECT args.
20630
206312008-02-01 Jason Rumney <jasonr@gnu.org>
20632
20633 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20634 of GlobalAlloc'ed memory.
20635
206362008-02-01 Kenichi Handa <handa@m17n.org>
20637
20638 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20639
20640 * charset.h (charset_table_used): Delete extern.
20641
20642 * charset.c (charset_table_used): Make it static.
20643 (map_charset_chars): Fix args to c_function with.
20644
20645 * chartab.c (map_sub_char_table_for_charset): Fix args to
20646 c_function with.
20647
20648 * coding.h (enum coding_result_code): Delete
20649 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20650
20651 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20652 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20653 (Vlast_code_conversion_error): New variables.
20654 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20655 (ONE_MORE_BYTE): Record error if any instead of signaling an
20656 error. If non-ASCII multibyte char is found, return the negative
20657 value of the code. All callers changed to check it.
20658 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20659 (record_conversion_result): New function. Change all codes setting
20660 coding->result to call this function.
20661 (detect_coding_utf_8, decode_coding_utf_8)
20662 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20663 Don't use the local variable incomplete.
20664 (emacs_mule_char): Change the second arg to `const'.
20665 (decode_coding): Fix of flushing out unprocessed data.
20666 (make_conversion_work_buffer): Fix making of a work buffer.
20667 (decode_coding_object): Return coding->dst_object.
20668
20669 * fontset.c (set_fontset_font): Fix args.
20670
20671 * lisp.h (CHARACTERBITS): Define as 22.
20672
20673 * process.c (send_process): Be sure to set coding->src_multibyte.
20674
20675 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20676
206772008-02-01 Kenichi Handa <handa@m17n.org>
20678
20679 * xdisp.c (handle_auto_composed_prop): Give limit to
20680 Fnext_single_char_property_change.
20681
206822008-02-01 Kenichi Handa <handa@m17n.org>
20683
20684 * composite.c (syms_of_composite): Don't make the composition hash
20685 table weak.
20686
20687 * fontset.c (Fset_fontset_font): Fix docstring.
20688
20689 * lisp.h (detect_coding_system): Adjust prototype.
20690
20691 * fileio.c (kill_workbuf_unwind): Delete this function.
20692 (Finsert_file_contents): Adjust the call of detect_coding_system.
20693 Get conversion_buffer by code_conversion_save. Use the macro
20694 CODING_MAY_REQUIRE_DECODING. After decoding, update
20695 coding_system.
20696
20697 * coding.h (make_conversion_work_buffer): Delete extern.
20698 (code_conversion_save): Extern it.
20699
20700 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20701 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20702 (decode_coding_utf_8): Don't do eol converion.
20703 (detect_coding_utf_16): Check coding->src_chars, not
20704 coding->src_bytes. Add heuristics for those that have no signature.
20705 (decode_coding_emacs_mule, decode_coding_iso_2022)
20706 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20707 Don't do eol converion.
20708 (adjust_coding_eol_type): Return a new coding system.
20709 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20710 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20711 each change.
20712 (decode_coding): Pay attention to undo_list. Do eol conversion for
20713 all types of coding-systems (if necessary).
20714 (Vcode_conversion_work_buf_list): Delete it.
20715 (Vcode_conversion_reused_workbuf): Rename from
20716 Vcode_conversion_reused_work_buf.
20717 (Vcode_conversion_workbuf_name): New variable.
20718 (reused_workbuf_in_use): New variable.
20719 (make_conversion_work_buffer): Delete the arg DEPTH.
20720 (code_conversion_restore): Change argument to cons.
20721 (code_conversion_save): Delete the argument BUFFER. Change callers.
20722 (detect_coding_system): New argument src_chars. Change callers.
20723 Fix for utf-16 detection.
20724 (init_coding_once): Don't use ISO_carriage_return.
20725 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20726 reused_workbuf_in_use.
20727
207282008-02-01 Kenichi Handa <handa@m17n.org>
20729
20730 * keymap.c (store_in_keymap): Pay attention to the case that idx
20731 is a cons specifying a character range.
20732
207332008-02-01 Kenichi Handa <handa@m17n.org>
20734
20735 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20736 HANDLED_RECOMPUTE_PROPS.
20737
20738 * coding.c (Fdefine_coding_system_internal): Fix checking of
20739 ascii compatibility.
20740
207412008-02-01 Kenichi Handa <handa@m17n.org>
20742
20743 * charset.c (find_charsets_in_text): Delete unused locale variable.
20744 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20745
20746 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20747 Resync charset_list to Vemacs_mule_charset_list.
20748
20749 * keymap.c (store_in_keymap): Pay attention to the case that idx
20750 is a cons specifying a character range.
20751
207522008-02-01 Kenichi Handa <handa@m17n.org>
20753
20754 * composite.c (update_compositions): Bind inhibit-read-only, etc
20755 to t before calling remove-list-of-text-properties.
20756
20757 * print.c (print_object): Always print ASCII chars as is.
20758
207592008-02-01 Kenichi Handa <handa@m17n.org>
20760
20761 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20762
20763 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20764 is a char table.
20765
207662008-02-01 Kenichi Handa <handa@m17n.org>
20767
20768 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20769
207702008-02-01 Kenichi Handa <handa@m17n.org>
20771
20772 * xfaces.c (set_lface_from_font_name): Fix for the case that
20773 FONTNAME is not fontset name.
20774
207752008-02-01 Kenichi Handa <handa@m17n.org>
20776
20777 * fns.c (base64_encode_1): Fix previous change.
20778
207792008-02-01 Kenichi Handa <handa@m17n.org>
20780
20781 * fontset.c (set_fontset_font): New function.
20782 (Fset_fontset_font): If a font is specified for a charset, use
20783 map_charset_chars to store the font spec in a fontset.
20784
207852008-02-01 Kenichi Handa <handa@m17n.org>
20786
20787 * fontset.c (fontset_face): Create a fallback fontset on demand.
20788 (make_fontset): Don't create a fallback fontset here.
20789 (free_face_fontset): Free a fallback fontset (if any) too.
20790 (n_auto_fontsets): Delete this variable.
20791 (auto_fontset_alist): New variable.
20792 (new_fontset_from_font_name): Check auto_fontset_alist.
20793 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20794 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20795 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20796 Defsubr Sfontset_list_all.
20797
207982008-02-01 Kenichi Handa <handa@m17n.org>
20799
20800 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20801
208022008-02-01 Kenichi Handa <handa@m17n.org>
20803
20804 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20805
208062008-02-01 Kenichi Handa <handa@m17n.org>
20807
20808 * editfns.c (Fgoto_char): Fix docstring.
20809
208102008-02-01 Kenichi Handa <handa@m17n.org>
20811
20812 * insdel.c (insert_from_gap): Adjust intervals correctly.
20813
208142008-02-01 Jason Rumney <jasonr@gnu.org>
20815
20816 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20817 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20818 (w32_initialize): Try to load it.
20819 (x_get_font_repertory): Use it if available.
20820 (w32_encode_char): Add shortcut for unicode output.
20821
20822 * w32fns.c (w32_load_system_font): Default charset to -1.
20823 (x_to_w32_charset): Match all fonts for unicode.
20824 (w32_to_x_charset): New parameter matching. Don't return partial
20825 or wildcard charsets.
20826 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20827 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20828 (w32_to_x_font): Match charset to real charset.
20829 (enum_font_cb2): Always list unicode versions.
20830
20831 * makefile.w32-in (temacs): Increase EMHEAP.
20832
208332008-02-01 Jason Rumney <jasonr@gnu.org>
20834
20835 * w32term.c (w32_encode_char): New charset parameter.
20836 font_info.encoding becomes encoding_type.
20837 (x_get_font_repertory): New function. Warning: stub only!
20838 (x_new_font): Return quickly if font already set.
20839 (x_new_fontset): fontsetname parameter is Lisp_Object.
20840 Use new fs_query_fontset. Try new_fontset_from_font_name.
20841 Use fontset_name for return value.
20842
20843 * w32term.h: Declare x_get_font_repertory.
20844
20845 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20846 place of find_charset_in_text. Use encode_coding_object in place
20847 of encode_coding.
20848 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20849 decode_coding.
20850
20851 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20852 of x_new_fontset.
20853 (w32_load_system_font): Initialize charset as unicode.
20854 font_info.encoding becomes encoding_type.
20855 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20856 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20857 (syms_of_w32fns): Set get_font_repertory_func.
20858
20859 * w32console.c: Include character.h. Use terminal_encode_buffer
20860 from term.c.
20861 (write_glyphs): Use new version of encode_terminal_code. Use
20862 encode_coding_object in place of encode_coding.
20863
20864 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20865 encoding becomes encoding_type.
20866
20867 * term.c (terminal_encode_buffer): Make externally visible.
20868
20869 * makefile.w32-in: Add character.h dependancies.
20870 (character.o, chartab.o): New targets.
20871
208722008-02-01 Kenichi Handa <handa@m17n.org>
20873
20874 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20875 CODING_ID_EOL_TYPE.
20876
208772008-02-01 Andreas Schwab <schwab@suse.de>
20878
20879 * coding.c (produce_chars): Revert last change.
20880
208812008-02-01 Kenichi Handa <handa@m17n.org>
20882
20883 * charset.h (charset_unicode): Extern it.
20884
20885 * charset.c (string_xstring_p): Check by (C >= 0x100).
20886 (find_charsets_in_text): Change format of the arc CHARSETS. New
20887 arg MULTIBYTE.
20888 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20889 change of find_charsets_in_text.
20890 (Fsplit_char): Fix doc. Never return unknown.
20891
20892 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20893
20894 * coding.c (Fdefine_coding_system_alias): Update
20895 Vcoding_system_list.
20896
20897 * fontset.c (load_font_get_repertory): Pay attention to the case
20898 that ENCODING of a font is specified by a char-table.
20899
20900 * xterm.c (x_get_font_repertory): Handle the case that the
20901 encoding of font is other than Unicode.
20902
209032008-02-01 Kenichi Handa <handa@m17n.org>
20904
20905 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20906 if a character is encodable by the terminal coding system. If
20907 not, produces proper number of `?'s. Update
20908 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20909 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20910
209112008-02-01 Kenichi Handa <handa@m17n.org>
20912
20913 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20914 variables.
20915 (encode_terminal_code): Change argument. Encode multiple
20916 characters at once. Store the result of encoding in
20917 terminal_encode_buffer.
20918 (write_glyphs, insert_glyphs): Adjust for the change of
20919 encode_terminal_code.
20920 (term_init): Initialize terminal_encode_buffer and
20921 terminal_encode_buf_size.
20922
20923 * coding.c (consume_chars): If coding->src_object is nil, don't
20924 check annotation.
20925
209262008-02-01 Kenichi Handa <handa@m17n.org>
20927
20928 * character.c (char_string): Use ASCII_CHAR_P instead of
20929 SINGLE_BYTE_CHAR_P.
20930
209312008-02-01 Kenichi Handa <handa@m17n.org>
20932
20933 * xdisp.c (handle_auto_composed_prop): Check if the last
20934 characters of auto-composed region is newly composed with the
20935 following characters.
20936 (handle_composition_prop): Fix checking of point being inside
20937 composition.
20938
209392008-02-01 Kenichi Handa <handa@m17n.org>
20940
20941 * fns.c (concat): Don't change multibyteness of the result by
20942 concatenating an 8-bit character.
20943
20944 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20945 multibyteness of the result when newelt is an 8-bit character.
20946
209472008-02-01 Dave Love <fx@gnu.org>
20948
20949 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20950 EMACS_INT.
20951
20952 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20953
20954 * xfaces.c (face_numeric_value): Declare dim size_t.
20955 (Finternal_lisp_face_equal_p): Remove unused f.
20956
20957 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20958 (MATRIX_ROW): Remove unused vars.
20959 (draw_glyphs, x_insert_glyphs, fast_find_position)
20960 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20961 byte/char counts.
20962
20963 * regex.c (regex_compile): Remove unused var.
20964
20965 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20966
20967 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20968 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20969
20970 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20971
20972 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20973
20974 * fileio.c (Fwrite_region): Remove unused var.
20975
20976 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20977 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20978
20979 * composite.c (Fremove_list_of_text_properties): Declare.
20980
20981 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20982 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20983 (coding_inherit_eol_type): Remove unused attrs.
20984 (detect_coding): Cast arg of detect_eol.
20985
20986 * charset.c (syms_of_charset): Remove unused var p.
20987 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20988 byte/char counts.
20989
20990 * casetab.c (set_case_table): Remove unused var.
20991
20992 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20993 unused vars.
20994
209952008-02-01 Dave Love <fx@gnu.org>
20996
20997 * xterm.c (x_bitmap_mask): Declare.
20998
209992008-02-01 Dave Love <fx@gnu.org>
21000
21001 * xterm.c (x_term_init): Fix type error.
21002
21003 * lisp.h: Add Funibyte_char_to_multibyte.
21004
21005 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21006 (Fset_coding_system_priority): Doc fix.
21007
21008 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21009
21010 * indent.c (check_composition): Make start and end EMACS_INT.
21011
21012 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21013
21014 * xdisp.c (handle_composition_prop, check_point_in_composition):
21015 Make buffer positions EMACS_INT.
21016
21017 * composite.c (find_composition, run_composition_function)
21018 (update_compositions, Ffind_composition_internal): Make buffer
21019 positions EMACS_INT.
21020
21021 * composite.h (find_composition, update_compositions): Make
21022 position args EMACS_INT.
21023
21024 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21025
21026 * intervals.c (get_property_and_range):
21027 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21028
21029 * unexalpha.c: Don't include varargs.h.
21030
210312008-02-01 Dave Love <fx@gnu.org>
21032
21033 * coding.h (ENCODE_UTF_8): New.
21034
21035 * Makefile.in (gtkutil.o): Depend on coding.h.
21036
21037 * coding.c (Fset_coding_system_priority): Doc fix.
21038
210392008-02-01 Kenichi Handa <handa@m17n.org>
21040
21041 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21042 the case of auto saving.
21043
210442008-02-01 Andreas Schwab <schwab@suse.de>
21045
21046 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21047 `range' from GC.
21048
210492008-02-01 Kenichi Handa <handa@m17n.org>
21050
21051 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21052
210532008-02-01 Kenichi Handa <handa@m17n.org>
21054
21055 * fileio.c (choose_write_coding_system): Return a decided coding system.
21056 (Fwrite_region): Set Vlast_coding_system_used to the return value
21057 of choose_write_coding_system.
21058
210592008-02-01 Kenichi Handa <handa@m17n.org>
21060
21061 * charset.c (Fset_charset_priority): Pay attention to duplicated
21062 arguments.
21063
21064 * coding.c (QCcategory): New variable.
21065 (syms_of_coding): Defsym it. Set all elements of
21066 Vcoding_category_table and their symbol values.
21067 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21068 coding-category-XXX, and coding-category-list.
21069 (Fdefine_coding_system_internal): Add category in the plist.
21070
210712008-02-01 Kenichi Handa <handa@m17n.org>
21072
21073 * callproc.c (Fcall_process): Handle carryover correctly.
21074
21075 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21076 (raw_text_coding_system): Check NILP (coding_system).
21077 (coding_inherit_eol_type): Check NILP (coding_system) and
21078 NILP (parent).
21079 (consume_chars): Fix for the case of raw-text.
21080
21081 * process.c (read_process_output): Handle carryover correctly.
21082
210832008-02-01 Dave Love <fx@gnu.org>
21084
21085 * regex.c (re_search_2): Fix last change.
21086
210872008-02-01 Kenichi Handa <handa@m17n.org>
21088
21089 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21090 target_multibyte. Even in a unibyte case, return a converted
21091 multibyte char.
21092 (GET_CHAR_AFTER): New macro.
21093 (PATFETCH): Translate via multibyte char.
21094 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21095 (SETUP_MULTIBYTE_RANGE): New macro.
21096 (regex_compile): Setup compiled code so that its multibyteness
21097 matches that of a target. Fix the handling of "[X-YZ]" using
21098 SETUP_MULTIBYTE_RANGE.
21099 (analyse_first) <charset>: For filling fastmap for all multibyte
21100 characters, don't check by BASE_LEADING_CODE_P.
21101 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21102 the same as RE_MULTIBYTE_P (bufp) now.
21103 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21104 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21105 (TRANSLATE_VIA_MULTIBYTE): New macro.
21106 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21107 It is the same as RE_MULTIBYTE_P (bufp) now.
21108 <exactn>: Translate via multibyte.
21109 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21110 translate it.
21111 <charset, charset_not>: Fetch a character by
21112 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21113 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21114 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21115 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21116 by GET_CHAR_AFTER.
21117 (bcmp_translate): Likewise.
21118
21119 * search.c (compile_pattern): Check the member target_multibyte,
21120 not the member multibyte of buf.
21121
21122 * lread.c (read1): While reading a string, set force_singlebyte
21123 and force_multibyte correctly.
21124
21125 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21126 up of unibyte_to_multibyte_table.
21127
211282008-02-01 Kenichi Handa <handa@m17n.org>
21129
21130 * coding.c (setup_coding_system): If coding has
21131 post-read-conversion or pre-write-conversion, set
21132 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21133 respectively.
21134 (decode_coding_gap): Run post-read-conversion if any.
21135
21136 * fileio.c (Finsert_file_contents): Even if we read into a
21137 unibyte buffer, check if we must decode the result or not.
21138
211392008-02-01 Kenichi Handa <handa@m17n.org>
21140
21141 * coding.c (make_conversion_work_buffer): Change the work buffer
21142 name to the same one as that of Emacs 21.
21143
211442008-02-01 Kenichi Handa <handa@m17n.org>
21145
21146 * coding.h (make_conversion_work_buffer): Adjust prototype.
21147 (code_conversion_restore): Don't extern it.
21148
21149 * coding.c (detected_mask): Delete unused variable.
21150 (decode_coding_iso_2022): Pay attention to the byte sequence of
21151 CTEXT extended segment, and retain those bytes as is.
21152 (decode_coding_ccl): Delete unused variable `valids'.
21153 (setup_coding_system): Delete unused variable `category'.
21154 (consume_chars): Delete unused variable `category'. Make it work
21155 for non-multibyte case.
21156 (make_conversion_work_buffer): Change argument.
21157 (saved_coding): Delete unused variable.
21158 (code_conversion_restore): Don't check saved_coding->destination.
21159 (code_conversion_save): New function.
21160 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21161 instead of record_unwind_protect.
21162 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21163 (detect_coding_system): Delete unused variable `mask'.
21164 (Fdefine_coding_system_internal): Delete unused variable id.
21165
21166 * fileio.c (kill_workbuf_unwind): New function.
21167 (Finsert_file_contents): On replacing, call
21168 make_conversion_work_buffer with correct args, and call
21169 record_unwind_protect with the first arg kill_workbuf_unwind.
21170
21171 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21172
211732008-02-01 Kenichi Handa <handa@m17n.org>
21174
21175 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21176 (fontset_add): Fix for the case that TO is less than TO1.
21177 (Ffontset_info): Don't use fallback fontset on checking the
21178 default fontset.
21179 (dump_fontset): New function for debugging.
21180
21181 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21182 coding_type is Qcharset.
21183
211842008-02-01 Kenichi Handa <handa@m17n.org>
21185
21186 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21187 (map_char_table): Don't inherit the value from the parent on
21188 initializing VAL. Adjust for the above change.
21189
211902008-02-01 Kenichi Handa <handa@m17n.org>
21191
21192 * coding.c (Qsignature, Qendian): Delete these variables.
21193 (syms_of_coding): Don't initialize them.
21194 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21195 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21196 detect_info->found.
21197 (decode_coding_utf_16): Don't detect BOM here.
21198 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21199 is NOT utf_16_without_bom.
21200 (setup_coding_system): For a coding system of type utf-16, check
21201 if the attribute :endian is Qbig or not (not nil or not), and set
21202 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21203 (detect_coding): If coding type is utf-16 and BOM detection is
21204 required, detect it.
21205 (Fdefine_coding_system_internal): For a coding system of type
21206 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21207
212082008-02-01 Kenichi Handa <handa@m17n.org>
21209
21210 * coding.c (coding_set_source): Fix for the case that the current
21211 buffer is different from coding->src_object.
21212 (decode_coding_object): Don't use the conversion work buffer if
21213 DST_OBJECT is a buffer.
21214
212152008-02-01 Dave Love <fx@gnu.org>
21216
21217 * lread.c (read_emacs_mule_char) [len==2]: Index
21218 emacs_mule_charset correctly.
21219
212202008-02-01 Dave Love <fx@gnu.org>
21221
21222 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21223 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21224 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21225 treated specially.)
21226 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21227 (detected_mask): Remove Big5 bits.
21228
212292008-02-01 Kenichi Handa <handa@m17n.org>
21230
21231 The following changes are to make the font rescaling facility
21232 compatible with Emacs 21.
21233
21234 * xfaces.c (Vface_font_rescale_alist): Rename from
21235 Vface_resizing_fonts.
21236 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21237 (font_rescale_ratio): Rename from font_resizing_ratio.
21238 (split_font_name): Set font->rescale_ratio.
21239 (better_font_p): Pay attention to font->rescale_ratio.
21240 (build_scalable_font_name): Likewise. Change RESX, and RESY
21241 fields.
21242 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21243
212442008-02-01 Kenichi Handa <handa@m17n.org>
21245
21246 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21247 (Qutf_16_le): Remove these variables.
21248 (syms_of_coding): Don't DEFSYM them.
21249 (decode_coding_utf_16): Fix handling of BOM.
21250 (encode_coding_utf_16): Fix handling of BOM.
21251
212522008-02-01 Kenichi Handa <handa@m17n.org>
21253
21254 * fileio.c (Finsert_file_contents): On replacing, before decoding
21255 the file into the work buffer, set point of the work buffer to the end.
21256
212572008-02-01 Dave Love <fx@gnu.org>
21258
21259 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21260
212612008-02-01 Dave Love <fx@gnu.org>
21262
21263 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21264 and fix C types.
21265
212662008-02-01 Kenichi Handa <handa@m17n.org>
21267
21268 * xdisp.c (SKIP_GLYPHS): New macro.
21269 (set_cursor_from_row): Pay attention to string display properties.
21270
21271 * category.c (copy_category_entry): Fix for the case that RANGE
21272 is an integer.
21273
21274 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21275
21276 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21277
212782008-02-01 Kenichi Handa <handa@m17n.org>
21279
21280 * charset.c (Fcharset_id_internal): New function.
21281 (syms_of_charset): Defsubr it.
21282
21283 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21284 with the last arg charset_list acquired from coding.
21285 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21286 the attribute coding_attr_ccl_valids.
21287
21288 * coding.h (enum define_coding_ccl_arg_index): Set the first
21289 member coding_arg_ccl_decoder to coding_arg_max.
21290
21291 * ccl.h (ccl_driver): Adjust prototype.
21292
21293 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21294 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 21295 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
21296 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21297 last arg Qnil.
21298
212992008-02-01 Kenichi Handa <handa@m17n.org>
21300
21301 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21302 call encode_char.
21303
21304 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21305
213062008-02-01 Dave Love <fx@gnu.org>
21307
21308 * composite.c (syms_of_composite): Make composition_hash_table weak.
21309
213102008-02-01 Kenichi Handa <handa@m17n.org>
21311
21312 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21313 (font_name_registry): Don't extern them.
21314 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21315
21316 * fontset.h (Qfontset): Don't extern it.
21317 (new_fontset_from_font_name): Extern it.
21318
21319 * fontset.c: Give 8 extra slots to fontset objects.
21320 (Qfontset_info): New variable.
21321 (syms_of_fontset): Defsym it.
21322 (FONTSET_FALLBACK): New macro.
21323 (fontset_face): Try also the default fontset.
21324 (make_fontset): Realize a fallback fontset from the default fontset.
21325 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21326 using split_font_name_into_vector and build_font_name_from_vector.
21327 (Fset_fontset_font): Access the elements of font_spec by enum
21328 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21329 name by using split_font_name_into_vector.
21330 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21331 generate a proper font name from the fontset name. Update
21332 Vfontset_alias_alist.
21333 (n_auto_fontsets): New variable.
21334 (new_fontset_from_font_name): New function.
21335 (Ffont_info): Store the information about fonts generated from the
21336 default fontset in the first extra slot of the returned char-table.
21337
21338 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21339 (font_name_registry): Delete function.
21340 (split_font_name_into_vector): New function.
21341 (build_font_name_from_vector): New function.
21342 (font_list): The argument REGISTRY is now a list of registry names.
21343 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21344 specifies an explicit font name, return the name as is. Make a
21345 list of registy names.
21346
21347 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21348 of x_new_fontset.
21349 (Fx_create_frame): Don't call x_new_fontset here. Just use
21350 x_list_fonts to check the existence of fonts.
21351
21352 * xterm.h (x_new_fontset): Adjust prototype.
21353
21354 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21355 string. Use new_fontset_from_font_name to create a fontset from a
21356 font name.
21357
213582008-02-01 Kenichi Handa <handa@m17n.org>
21359
21360 * syntax.c (Vfind_word_boundary_function_table): New name for
21361 Vnext_word_boundary_function_table.
21362 (find-word-boundary-function-table): New name for
21363 next-word-boundary-function-table.
21364
213652008-02-01 Dave Love <fx@gnu.org>
21366
21367 * Makefile.in: Fix some dependencies.
21368
21369 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21370 set it to nil before returning.
21371
21372 * composite.c (update_compositions): Fix type error.
21373
21374 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21375
213762008-02-01 Kenichi Handa <handa@m17n.org>
21377
21378 * xterm.c (x_new_font): Optimize for the case that the font is
21379 already set for the frame.
21380
213812008-02-01 Kenichi Handa <handa@m17n.org>
21382
21383 * chartab.c (char_table_ascii): Check if the char table contents
21384 is sub-char-table or not.
21385 (char_table_set, char_table_set_range): Fix argument to
21386 char_table_ascii.
21387
21388 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21389 (detect_coding_utf_8, detect_coding_utf_16)
21390 (detect_coding_emacs_mule, detect_coding_iso_2022)
21391 (detect_coding_sjis, detect_coding_big5)
21392 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21393 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21394 sequence is valid in this coding system. Change callers.
21395 (MAX_ANNOTATION_LENGTH): New macro.
21396 (ADD_ANNOTATION_DATA): New macro.
21397 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21398 ADD_ANNOTATION_DATA. Change the format of annotation data.
21399 (ADD_CHARSET_DATA): New macro.
21400 (emacs_mule_char): New argument ID. Change callers.
21401 (decode_coding_emacs_mule, decode_coding_iso_2022)
21402 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21403 Produce charset annotation data in coding->charbuf.
21404 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21405 to charset annotation data in coding->charbuf.
21406 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21407 coding->common_flags if the coding system is iso-2022 based and
21408 uses designation.
21409 (produce_composition): Adjust for the new annotation data format.
21410 (produce_charset): New function.
21411 (produce_annotation): Handle charset annotation.
21412 (handle_composition_annotation, handle_charset_annotation): New
21413 functions.
21414 (consume_chars): Handle charset annotation. Utilize the above two
21415 functions.
21416 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21417 buffer, get the deleted text as a string and set
21418 coding->src_object to that string.
21419 (detect_coding, detect_coding_system): Use the new struct
21420 coding_detection_info.
21421
21422 * coding.h (struct coding_detection_info): New structure.
21423 (struct coding_system): Adjust prototype of the member `detector'.
21424 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21425
214262008-02-01 Kenichi Handa <handa@m17n.org>
21427
21428 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21429
214302008-02-01 Dave Love <fx@gnu.org>
21431
21432 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21433 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21434 to new local and nullify apropos_accumulate before returning.
21435 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21436
214372008-02-01 Kenichi Handa <handa@m17n.org>
21438
21439 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21440 correctly.
e3eea1fc 21441
aac0c6e3
MR
214422008-02-01 Dave Love <fx@gnu.org>
21443
21444 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21445
214462008-02-01 Kenichi Handa <handa@m17n.org>
21447
21448 The following changes are to make character composition happen
21449 automatically on displaying.
21450
21451 * Makefile.in (lisp, shortlisp): Add composite.elc.
21452
21453 * composite.h (Qauto_composed, Vauto_composition_function)
21454 (Qauto_composition_function): Extern them.
21455
21456 * composite.c (Vcomposition_function_table)
21457 (Qcomposition_function_table): Delete variables.
21458 (Qauto_composed, Vauto_composition_function)
21459 (Qauto_composition_function): New variables.
21460 (run_composition_function): Don't call
21461 compose-chars-after-function.
21462 (update_compositions): Clear `auto-composed' text property.
21463 (compose_chars_in_text): Delete this function.
21464 (syms_of_composite): Staticpro Qauto_composed and
21465 Qauto_composition_function. Declare Vauto_composition_function as
21466 a Lisp variable.
21467
21468 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21469
21470 * xdisp.c (it_props): Add an entry for Qauto_composed.
21471 (handle_auto_composed_prop): New function.
21472
21473 * xselect.c (selection_data_to_lisp_data): Don't call
21474 compose_chars_in_text.
21475
214762008-02-01 Dave Love <fx@gnu.org>
21477
21478 * keyboard.c (read_char): Modify checking around use of
21479 Vkeyboard_translate_table.
21480
21481 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21482 and fix C types.
21483
214842008-02-01 Kenichi Handa <handa@m17n.org>
21485
21486 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21487 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21488 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21489 the case that the last byte is '\r' correctly.
21490 (decode_coding): Flush out the unprocessed data correctly.
21491 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21492
214932008-02-01 Dave Love <fx@gnu.org>
21494
21495 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21496 Add XK_ISO... case.
21497 (xaw_scroll_callback): Revert last change.
21498
214992008-02-01 Kenichi Handa <handa@m17n.org>
21500
21501 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21502
215032008-02-01 Kenichi Handa <handa@m17n.org>
21504
21505 * xfaces.c (Vface_resizing_fonts): New variable.
21506 (struct font_name): New member `resizing_ratio'.
21507 (font_resizing_ratio): New function.
21508 (split_font_name): Set font->resizing_ratio.
21509 (better_font_p): Pay attention to font->resizing_ratio.
21510 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21511 RESX, and RESY fields.
21512 (try_alternative_families): Try scalable fonts if
21513 Vscalable_fonts_allowed is not Qt.
21514 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21515
215162008-02-01 Dave Love <fx@gnu.org>
21517
21518 * xterm.c (xaw_scroll_callback): Cast correctly.
21519
215202008-02-01 Dave Love <fx@gnu.org>
21521
21522 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21523 (lispy_kana_keys): Comment out.
21524 (make_lispy_event) [XK_kana_A]: Comment out.
21525
21526 * xterm.c (xaw_scroll_callback): Cast call_data.
21527 (XTread_socket): Deal with ASCII keysyms.
21528 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21529
215302008-02-01 Dave Love <fx@gnu.org>
21531
21532 * xterm.c (Vx_keysym_table): New.
21533 (syms_of_xterm): Initialize it.
21534 (XTread_socket): Use it.
21535 From head: Eliminate incorrect optimization that tried to avoid
21536 decoding the output of X*LookupString.
21537 (x_get_font_repertory): Delete charset declaration.
21538
215392008-02-01 Kenichi Handa <handa@m17n.org>
21540
21541 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21542 return 0.
21543 (Fdefine_coding_system_internal): Setup
21544 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21545
215462008-02-01 Dave Love <fx@gnu.org>
21547
21548 * coding.c (Fcheck_coding_system): Doc fix.
21549
21550 * editfns.c (Finsert_byte): Return a proper value.
21551
215522008-02-01 Kenichi Handa <handa@m17n.org>
21553
21554 * coding.c (decode_coding): Fix args to translate_chars. Pay
21555 attention to Vstandard_translation_table_for_decode.
21556 (encode_coding): Fix args to translate_chars. Pay attention to
21557 Vstandard_translation_table_for_encode.
21558
21559 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21560 SINGLE_BYTE_CHAR_P.
21561
21562 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21563 not by SINGLE_BYTE_CHAR_P.
21564
21565 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21566 SINGLE_BYTE_CHAR_P.
21567
21568 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21569 SINGLE_BYTE_CHAR_P.
21570
21571 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21572 by SINGLE_BYTE_CHAR_P.
21573
21574 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21575 SINGLE_BYTE_CHAR_P.
21576
215772008-02-01 Dave Love <fx@gnu.org>
21578
21579 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21580
215812008-02-01 Dave Love <fx@gnu.org>
21582
21583 * fns.c (Flanginfo): Fix typo.
21584
21585 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21586
215872008-02-01 Kenichi Handa <handa@m17n.org>
21588
21589 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21590 (detect_coding_emacs_mule, detect_coding_iso_2022)
21591 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21592 incomplete byte sequence. Don't update *mask when correctly detected.
21593 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21594 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21595 (detect_coding, detect_coding_system): Adjust for the changes above.
21596
215972008-02-01 Kenichi Handa <handa@m17n.org>
21598
21599 * character.c (char_string): Rename from
21600 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21601 (string_char): Rename from string_char.
21602
21603 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21604 if C is greater than MAX_3_BYTE_CHAR.
21605 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21606 string_char instead of string_char_with_unification.
21607
216082008-02-01 Dave Love <fx@gnu.org>
21609
21610 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21611
216122008-02-01 Kenichi Handa <handa@m17n.org>
21613
21614 * keymap.c (push_key_description): Pay attention to force_multibyte.
21615
21616 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21617
216182008-02-01 Dave Love <fx@gnu.org>
21619
21620 * charset.c (define_charset_internal): Rename `supprementary'.
21621
21622 * Makefile.in (lisp, shortlisp): Remove latin-N.
21623
216242008-02-01 Dave Love <fx@gnu.org>
21625
21626 * xfns.c (x_window, x_window): Use use_xim.
21627
21628 * xterm.c (use_xim): Initialize.
21629 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21630 (x_term_init): Maybe set use_xim.
21631
21632 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21633
216342008-02-01 Kenichi Handa <handa@m17n.org>
21635
21636 * search.c (search_buffer): Fix case-fold-search of multibyte
21637 characters.
21638 (boyer_moore): Rename the last argument to char_high_bits.
21639
216402008-02-01 Kenichi Handa <handa@m17n.org>
21641
21642 * xdisp.c (display_string): Fix for the case of zero width glyph.
21643
21644 * xfns.c (x_set_font): Change the error message of the case that
21645 x_new_fontset returns Qt.
21646
21647 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21648 (Finternal_set_lisp_face_attribute): Use signal_error for the
21649 error of invalid fontset.
21650
21651 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21652 fontset, return Qt.
21653
216542008-02-01 Dave Love <fx@gnu.org>
21655
21656 * unexelf.c (unexec): Make .got handling not SGI-specific.
21657
21658 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21659
21660 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21661
21662 * keyboard.c (read_key_sequence): Fix type error.
21663
21664 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21665 type error.
21666
21667 * fontset.c (fontset_add): Return Lisp_Object.
21668
216692008-02-01 Dave Love <fx@gnu.org>
21670
21671 * charset.h (charset_ordered_list_tick): Declare extern.
21672
216732008-02-01 Kenichi Handa <handa@m17n.org>
21674
21675 The following changes (and some of 2008-02-01 changes of mine) are
21676 for handling syntax, category, and case conversion for unibyte
21677 characters by converting them to multibyte on the fly. With these
21678 changes, we don't have to setup syntax and case tables for unibyte
21679 characters in each language environment.
21680
21681 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21682 multibyte if necessary.
21683
21684 * bytecode.c (Fbyte_code): Likewise.
21685
21686 * character.h (LEADING_CODE_LATIN_1_MIN)
21687 (LEADING_CODE_LATIN_1_MAX): New macros.
21688 (unibyte_to_multibyte_table): Extern it.
21689 (unibyte_char_to_multibyte): New macro.
21690 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21691 (CHAR_LEADING_CODE): New macro.
21692 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21693
21694 * character.c (unibyte_to_multibyte_table): New variable.
21695 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21696 (multibyte_char_to_unibyte): If C is an eight-bit character,
21697 convert it to the corresponding byte value.
21698
21699 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21700 not 1, signals an error. Update the elements of
21701 unibyte_to_multibyte_table.
21702 (init_charset_once): Initialize unibyte_to_multibyte_table.
21703 (syms_of_charset): Define the charset `iso-8859-1'.
21704
21705 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21706 as is without converting it to unibyte. In a unibyte buffer,
21707 convert C to multibyte before checking the syntax.
21708
21709 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21710
21711 * minibuf.c (Fminibuffer_complete_word): Use the macro
21712 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21713
21714 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21715
21716 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21717 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21718 that is zero, convert an eight-bit char to multibyte.
21719 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21720 non-emacs case.
21721 (PATFETCH): Convert an eight-bit char to multibyte.
21722 (HANDLE_UNIBYTE_RANGE): New macro.
21723 (regex_compile): Setup the compiled pattern for multibyte chars
21724 even if the given regex string is unibyte. Use PATFETCH_RAW
21725 instead of PATFETCH in many places. To handle `charset'
21726 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21727 only for ASCII chars.
21728 (analyse_first) <exactn>: Simplify because the compiled pattern
21729 is multibyte.
21730 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21731 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21732 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21733 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21734 multibyte always 1.
21735 (re_search_2): In emacs, set the locale variable multibyte to 1,
21736 otherwise to 0. New local variable target_multibyte. Check it
21737 to decide the multibyteness of STR1 and STR2. If
21738 target_multibyte is zero, convert unibyte chars to multibyte
21739 before translating and checking fastmap.
21740 (TARGET_CHAR_AND_LENGTH): New macro.
21741 (re_match_2_internal): In emacs, set the locale variable multibyte
21742 to 1, otherwise to 0. New local variable target_multibyte. Check
21743 it to decide the multibyteness of STR1 and STR2. Use
21744 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21745 <charset, charset_not>: If multibyte is nonzero, check fastmap
21746 only for ASCII chars. Call bcmp_translate with
21747 target_multibyte, not with multibyte.
21748 <begline>: Declare the local variable C as `unsigned'.
21749 (bcmp_translate): Change the last arg name to target_multibyte.
21750
21751 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21752 the regexp pattern and the matching target. Set cp->buf.multibyte
21753 to the multibyteness of the regexp pattern. Set
21754 cp->but.target_multibyte to the multibyteness of the matching target.
21755 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21756 FETCH_STRING_CHAR_ADVANCE.
21757 (Freplace_match): Convert unibyte chars to multibyte.
21758
21759 * syntax.c (char_quoted, back_comment, scan_words)
21760 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21761 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21762 unibyte chars to multibyte.
21763 (skip_chars): Delete the arg syntaxp, and move the code for
21764 handling syntaxes to skip_syntaxes. Change callers.
21765 Fix the case that the multibyteness of STRING and the current
21766 buffer doesn't match.
21767 (skip_syntaxes): New function.
21768 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21769 SINGLE_BYTE_CHAR_P.
21770
217712008-02-01 Kenichi Handa <handa@m17n.org>
21772
21773 * xfaces.c (QCfontset): New variable.
21774 (LFACE_FONTSET): New macro.
21775 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21776 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21777 (Finternal_set_lisp_face_attribute)
21778 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21779 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21780 check also LFACE_FONTSET_INDEX.
21781 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21782 attrs[LFACE_FONT_INDEX].
21783 (syms_of_xfaces): Intern and staticpro QCfontset.
21784
21785 * dispextern.h (enum lface_attribute_index): New member
21786 LFACE_FONTSET_INDEX.
21787
21788 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21789
217902008-02-01 Kenichi Handa <handa@m17n.org>
21791
21792 * coding.c (coding_set_destination): Fix coding->destination for
21793 the case converting a region.
21794 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21795 (encode_coding_object): Fix coding->dst_pos and
21796 coding->dst_pos_byte for the case converting a region.
21797
21798 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21799
21800 * character.h (BYTE8_STRING): New macro.
21801
21802 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21803
218042008-02-01 Kenichi Handa <handa@m17n.org>
21805
21806 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21807 characters by octal form.
21808
21809 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21810
21811 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21812 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21813 _fetch_multibyte_char_len.
21814 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21815
21816 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21817
21818 * casefiddle.c (casify_object): Simplify. Handle the case that
21819 the case conversion change the byte length.
21820 (casify_region): Likewise.
21821
21822 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21823
21824 * character.c (_fetch_multibyte_char_len): Delete this variable.
21825 (syms_of_character): Setup Vprintable_chars.
21826
21827 * editfns.c (Fchar_equal): Fix for the unibyte case.
21828 (Finsert_byte): New function.
21829 (syms_of_editfns): Defsubr it.
21830
21831 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21832 of direct code 0x3ffff.
21833
21834 * search.c (Freplace_match): Fix for the unibyte case.
21835
218362008-02-01 Kenichi Handa <handa@m17n.org>
21837
21838 * lread.c (safe_to_load_p): Fix the logic.
21839
21840 * syntax.c (scan_words): Don't treat characters belonging to
21841 different scripts as constituting a word.
21842
21843 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21844
21845 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21846
21847 * emacs.c (main): In the case of --unibyte, instead of aborting on
21848 finding non-empty buffer, make it unibyte.
21849
218502008-02-01 Kenichi Handa <handa@m17n.org>
21851
21852 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21853 to create a fontset.
21854
218552008-02-01 Dave Love <fx@gnu.org>
21856
21857 * character.c (Funibyte_char_to_multibyte): Doc fix.
21858
21859 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21860
218612008-02-01 Kenichi Handa <handa@m17n.org>
21862
21863 * fontset.c (fontset_add): Make the type `int'.
21864 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21865
21866 * character.c (unibyte_char_to_multibyte)
21867 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21868 charset_unibyte, not charset_primary.
21869
21870 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21871
21872 * charset.c (charset_unibyte): Rename from charset_primary.
21873 (Funibyte_charset): Rename from Fprimary_charset.
21874 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21875 (syms_of_charset): Adjust for the above changes.
21876
21877 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21878 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21879 it->multibyte_p is zero.
21880
21881 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21882 Delete extern.
21883
218842008-02-01 Kenichi Handa <handa@m17n.org>
21885
21886 * coding.c (Fdefine_coding_system_internal): Fix category setting
21887 for a coding system of type iso-2022.
21888
218892008-02-01 Kenichi Handa <handa@m17n.org>
21890
21891 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21892
218932008-02-01 Kenichi Handa <handa@m17n.org>
21894
21895 * syntax.c (Vnext_word_boundary_function_table): New variable.
21896 (next-word-boundary-function-table): Declare it as a Lisp variable
21897 in syms_of_syntax.
21898 (scan_words): Call functions in Vnext_word_boundary_function_table
21899 if any.
21900
21901 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21902
21903 * fontset.c (fs_load_font): If fontp->charset is not negative,
21904 return fontp without setting its members.
21905
219062008-02-01 Dave Love <fx@gnu.org>
21907
21908 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21909
21910 * m/sparc.h (HAVE_ALLOCA): Delete.
21911
21912 * s/irix6-5.h: Don't include strings.h.
21913 (bcopy, bzero, bcmp): Don't undef.
21914
21915 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21916
21917 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21918 (TIOCSIGSEND): Don't test IRIX6.
21919 (bcopy, bzero, bcmp): Define conditionally.
21920
219212008-02-01 Kenichi Handa <handa@m17n.org>
21922
21923 * buffer.c (Qas, Qmake, Qto): New variables.
21924 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21925 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21926
21927 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21928 we are inserting a process output into a multibyte buffer.
21929
21930 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21931 multibyte_char_to_unibyte.
21932
21933 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21934 by the primary charset, make it eight-bit char.
21935 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21936
21937 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21938 (charset_8_bit__control, charset_8_bit_graphic)
21939 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21940 (define_charset_internal): New function.
21941 (syms_of_charset): Call define_charset_internal for pre-defined
21942 charsets.
21943
21944 * charset.h (charset_8_bit): Extern it.
21945
21946 * coding.c (make_conversion_work_buffer): Adjust for the change
21947 of Fset_buffer_multibyte.
21948 (encode_coding_raw_text): Increment p0 in the loop.
21949
21950 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21951
21952 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21953 for the change of Fset_buffer_multibyte.
21954
21955 * fns.c (Fstring_to_multibyte): New function.
21956 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21957
219582008-02-01 Dave Love <fx@gnu.org>
21959
21960 * xfns.c (x_put_x_image): Declare args.
21961
21962 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21963 (try_font_list): Declare an arg.
21964
21965 * xdisp.c (message2_nolog, set_message): Declare an arg.
21966
21967 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21968
21969 * syntax.c (scan_sexps_forward): Declare an arg.
21970
21971 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21972 Declare an arg.
21973
21974 * lisp.h (Fnew_fontset): Declare.
21975
21976 * keymap.c (push_key_description): Call CHARACTERP correctly.
21977
21978 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21979 (face_for_char): Delete unused vars.
21980 (Fset_fontset_font): Doc fix. Delete unused vars.
21981
21982 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21983
21984 * composite.c (update_compositions): Declare arg.
21985
21986 * cm.c (calccost, cmgoto): Declare args.
21987
21988 * charset.c: Remove `emacs' conditional. Doc fixes.
21989 (map_char_table_for_charset): Declare.
21990
21991 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21992
21993 * ccl.c: Remove `emacs' conditional.
21994
219952008-02-01 Kenichi Handa <handa@m17n.org>
21996
21997 The following changes are to allow specifying multiple font
21998 patterns for a character range (specified by script or charset).
21999
22000 * Makefile.in (abbrev.o): Depend on syntax.h.
22001 (xfaces.o): Depend on charset.h.
22002
22003 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22004 SINGLE_BYTE_CHAR_P.
22005
22006 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22007
22008 * character.h (Vchar_script_table): Extern it.
22009
22010 * character.c (Vscript_alist): Delete.
22011 (Vchar_script_table, Qchar_script_table): New variable.
22012 (syms_of_character): Declare Vchar_script_table as a lisp variable
22013 and initialize it.
22014
22015 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22016 have property char-table-extra-slots, make no extra slot.
22017
22018 * dispextern.h (struct face): Delete member `charset'.
22019 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22020 SINGLE_BYTE_CHAR_P.
22021 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22022 Add prototypes.
22023 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22024 (generate_ascii_font_name): Rename from generate_ascii_font.
22025
22026 * fontset.h (get_font_repertory_func): New prototype.
22027 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22028 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22029
22030 * fontset.c (Qprepend, Qappend): New variables.
22031 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22032 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22033 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22034 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22035 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22036 (load_font_get_repertory): New functions.
22037 (fontset_set): Delete.
22038 (fontset_face): New arg FACE. Return face ID, not face.
22039 Complete re-write to handle new fontset structure. Change caller.
22040 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22041 (face_for_char): Don't call lookup_face.
22042 (make_fontset_for_ascii_face): New arg FACE.
22043 (fs_load_font): New arg CHARSET_ID. Don't check
22044 Vfont_encoding_alist here.
22045 (find_font_encoding): New function.
22046 (list_fontsets): Use STRINGP, not ! NILP.
22047 (accumulate_script_ranges): New function.
22048 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22049 re-written to handle new fontset structure.
22050 (Ffontset_font): Return a copy of element.
22051 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22052 docstring of font-encoding-alist.
22053
22054 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22055 (Fset_fotset_font): Fix arguments to 5.
22056
22057 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22058
22059 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22060 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22061 (highlight_trailing_whitespace): Adjust for the change of
22062 lookup_named_face.
22063
22064 * xfaces.c: Include charset.h.
22065 (load_face_font): Delete argument C. Change caller.
22066 (generate_ascii_font_name): Rename from generate_ascii_font.
22067 (font_name_registry): New function.
22068 (cache_face): Store ascii faces before non-ascii faces in buckets.
22069 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22070 Lookup only ascii faces.
22071 (lookup_non_ascii_face): New function.
22072 (lookup_named_face): Delete argument C. Change caller.
22073 (lookup_derived_face): Delete argument C. Change caller.
22074 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22075 a string, just call font_list with it.
22076 (choose_face_font): Delete arguments FACE and C. New arg
22077 FONT_SPEC. Change caller.
22078 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22079 Change caller.
22080 (realize_non_ascii_face): New function.
22081 (realize_x_face): Call load_face_font here.
22082 (realize_tty_face): Delete argument C. Change caller.
22083 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22084 get a face ID.
22085 (dump_realized_face): Don't print charset of FACE.
22086
22087 * xfns.c (x_set_font): Always call x_new_fontset and
22088 store_frame_parameter.
22089 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22090 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22091
22092 * xterm.h (x_get_font_repertory): Extern it.
22093
22094 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22095 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22096 it->multibyte_p is zero.
22097 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22098 (x_new_fontset): If FONTSETNAME doesn't match any existing
22099 fontsets, create a new one.
22100 (x_get_font_repertory): New function.
22101
221022008-02-01 Kenichi Handa <handa@m17n.org>
22103
22104 * coding.c (Ffind_coding_systems_region_internal): Detect an
22105 ASCII only string correctly.
22106
22107 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22108 version is 0.
22109
221102008-02-01 Kenichi Handa <handa@m17n.org>
22111
22112 * lread.c: Include "coding.h".
22113 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22114 (load_each_byte, unread_char): New variables.
22115 (readchar_backlog): Delete.
22116 (readchar): Return a character unless load_each_byte is nonzero.
22117 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22118 cons. If unread_char is not -1, simply return it.
22119 (unreadchar): Handle the case that readcharfun is
22120 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22121 (read_multibyte): Delete.
22122 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22123 (read_emacs_mule_char): New functions.
22124 (Fload): Even if the file doesn't have the extension ".elc", if
22125 safe_to_load_p returns a positive version number, assume that the
22126 file contains bytecompiled code. If the version is less than 22,
22127 load the file while decoding multibyte sequences by emacs-mule.
22128 (readevalloop): Don't use readchar_backlog.
22129 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22130 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22131 (read_escape): Delete the arg BYTEREP.
22132 (read1): Set load_each_byte to 1 temporarily while handling
22133 #@NUMBER. Don't call read_multibyte.
22134 (read_vector): Call Fread with a cons. If readcharfun is
22135 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22136 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22137 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22138 and Qload_force_doc_strings.
22139
221402008-02-01 Kenichi Handa <handa@m17n.org>
22141
22142 * xdisp.c (face_before_or_after_it_pos): Call
22143 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22144
221452008-02-01 Kenichi Handa <handa@m17n.org>
22146
22147 * character.h (TRAILING_CODE_P): New macro.
22148 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22149 (string_char_with_unification): Fix prototype.
22150 (Vscript_alist): Extern it.
22151
22152 * character.c (Vscript_alist): New variable.
22153 (string_char_with_unification, str_as_unibyte)
22154 (string_escape_byte8): Add `const' to local variables.
22155 (syms_of_character): Declare script-alist as a Lisp variable.
22156
22157 * charset.h (Vcharset_ordered_list): Extern it.
22158 (charset_ordered_list_tick): Extern it.
22159 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22160 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22161 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22162 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22163 (Funify_charset): Adjust for the change of Funify_charset.
22164
22165 * charset.c (charset_ordered_list_tick): New variable.
22166 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22167 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 22168 deunify instead of unify a charset.
aac0c6e3
MR
22169 (string_xstring_p): Add `const' to local variables.
22170 (find_charsets_in_text): Add `const' to arguments and local variables.
22171 (encode_char): Adjust for the change of Funify_charset. Fix
22172 detecting of invalid code.
22173 (Fset_charset_priority): Increment charset_ordered_list_tick.
22174 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22175 and TO_CODE.
22176
22177 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22178 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22179 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22180 (decode_coding_ccl, consume_chars)
22181 (Ffind_coding_systems_region_internal)
22182 (Fcheck_coding_systems_region): Add `const' to local variables.
22183
22184 * print.c (print_object): Use octal form for printing the
22185 contents of a bool vector.
22186
221872008-02-01 Dave Love <fx@gnu.org>
22188
22189 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22190 <version == 20>: Refuse to load.
22191
221922008-02-01 Dave Love <fx@gnu.org>
22193
22194 * fns.c: Move coding.h.
22195 (Qcodeset, Qdays, Qmonths): New.
22196 (concat): Use CHARACTERP instead of INTEGERP.
22197 (Flocale_codeset): Delete.
22198 (Flanginfo): New function.
22199 (syms_of_fns): Change accordingly.
22200
22201 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22202
222032008-02-01 Dave Love <fx@gnu.org>
22204
22205 * casetab.c (init_casetab_once, init_casetab_once): Fix
22206 CHAR_TABLE_SET call.
22207
22208 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22209
22210 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22211
22212 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22213 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22214 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22215
22216 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22217
22218 * coding.c (ENCODE_DESIGNATION, decode_eol)
22219 (make_conversion_work_buffer, code_conversion_restore)
22220 (Fdefine_coding_system_internal): Convert Lisp types.
22221 (code_conversion_restore): Use EQ, not ==.
22222 (Fencode_coding_string): Fix code_convert_string call.
22223
22224 * coding.h (code_convert_region): Fix prototype.
22225
22226 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22227
22228 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22229 (Ffontset_info): Convert Lisp types.
22230
22231 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22232
22233 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22234
22235 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22236
22237 * chartab.c: Include "...h", not <...h> in some cases.
22238
22239 * callproc.c (Fcall_process): Remove unused variables.
22240
222412008-02-01 Dave Love <fx@gnu.org>
22242
22243 * coding.c (Fset_coding_system_priority): Allow null arg list.
22244
222452008-02-01 Dave Love <fx@gnu.org>
22246
22247 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22248 (Fself_insert_and_exit): Use CHARACTERP.
22249
22250 * callproc.c (Fcall_process): Remove unused vars.
22251
22252 * xterm.c (XTread_socket): Add extra dead keysyms.
22253
22254 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22255
22256 * dispextern.h: Remove prototypes for redraw_frame,
22257 redraw_garbaged_frames.
22258
22259 * cmds.c (Fself_insert_command): Use CHARACTERP.
22260
22261 * chartab.c (make_sub_char_table): Remove unused var.
22262 (Fset_char_table_default, Fmap_char_table): Doc fix.
22263
22264 * keymap.c (access_keymap): Remove generic char code.
22265 (push_key_description): Use CHARACTERP.
22266
222672008-02-01 Dave Love <fx@gnu.org>
22268
22269 * charset.c: Doc fixes.
22270 (Funify_charset): Extra checking.
22271
222722008-02-01 Dave Love <fx@gnu.org>
22273
22274 * lread.c: Remove some unused variables.
22275 (safe_to_load_p): If safe, return the magic number version byte.
22276 (Fload): Maybe use load-with-code-conversion.
22277
222782008-02-01 Kenichi Handa <handa@m17n.org>
22279
22280 * category.c (Fmodify_category_entry): Don't modify the contents
22281 of category_set for characters out of the range. Avoid
22282 unnecessary modification.
22283
22284 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22285 Vchar_unify_table. The default value of the table is now nil.
22286
22287 * character.c (syms_of_character): Setup Vchar_width_table for
22288 eight-bit-control and raw-byte chars.
22289
22290 * charset.h (enum define_charset_arg_index): Delete
22291 charset_arg_parents and add charset_arg_subset and
22292 charset_arg_superset.
22293 (enum charset_attr_index): Delete charset_parents and add
22294 charset_subset and charset_superset.
22295 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22296 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22297 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22298 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22299 (CHARSET_SUPERSET): New macros.
22300 (charset_work): Extern it.
22301 (ENCODE_CHAR): Use charset_work.
22302 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22303 (map_charset_chars): Extern it.
22304
22305 * charset.c (load_charset_map): Set the default value of encoder
22306 and deunifier char-tables to nil.
22307 (map_charset_chars): Change argument. Change callers. Use
22308 map_char_table_for_charset instead of map_char_table.
22309 (Fmap_charset_chars): New optional args from_code and to_code.
22310 (Fdefine_charset_internal): Adjust for the change of
22311 `define-charset' (:parents -> :subset or :superset).
22312 (charset_work): New variable.
22313 (encode_char, syms_of_charset): Adjust for the change of
22314 Fdefine_charset_internal.
22315 (Ffind_charset_string): Setup the vector `charsets' correctly.
22316
22317 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22318 the previous change.
22319 (char_table_ref_and_range): Adjust for the above change.
22320 (map_sub_char_table_for_charset): New function.
22321 (map_char_table_for_charset): New function.
22322
22323 * keymap.c (describe_vector): Handle a char-table directly here.
22324 (describe_char_table): Delete.
22325
22326 * lisp.h (map_charset_chars): Delete.
22327
223282008-02-01 Dave Love <fx@gnu.org>
22329
22330 * fns.c (count_combining): Comment out (unused).
22331 (Flocale_codeset): New.
22332 (syms_of_fns): Defsubr it.
22333
22334 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22335 (size_t): Remove.
22336
223372008-02-01 Dave Love <fx@gnu.org>
22338
22339 * Makefile.in (chartab.o): Depend on charset.h.
22340
223412008-02-01 Kenichi Handa <handa@m17n.org>
22342
22343 * character.c (syms_of_character): Set the default value of
22344 Vprintable_chars to Qnil.
22345
223462008-02-01 Dave Love <fx@gnu.org>
22347
22348 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22349
223502008-02-01 Kenichi Handa <handa@m17n.org>
22351
22352 * charset.c (load_charset_map): Handle the case that from < to
22353 correctly.
22354
22355 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22356 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22357 Pay attention to raw-8-bit chars.
22358
223592008-02-01 Kenichi Handa <handa@m17n.org>
22360
22361 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22362 It is not bytecompiled now.
22363
22364 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22365 (charset_jisx0208): New variables.
22366 (Fdefine_charset_internal): Setup them if appropriate.
22367 (init_charset_once): Initialize them to -1.
22368
22369 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22370 (charset_jisx0208): Extern them.
22371
22372 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22373 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22374 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22375 (setup_iso_safe_charsets): Fix arguments to Fassq.
22376 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22377 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22378 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22379 (encode_coding_iso_2022): Change the 1st arg to
22380 ENCODE_ISO_CHARACTER to a variable.
22381
223822008-02-01 Kenichi Handa <handa@m17n.org>
22383
22384 * charset.h (enum define_charset_arg_index): New enums
22385 charset_arg_min_code and charset_arg_max_code.
22386 (struct charset): New member char_index_offset.
22387
22388 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22389 Take charset->char_index_offset into account.
22390 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22391 args[charset_arg_max_code]. Setup charset.char_index_offset.
22392 (syms_of_charset): Fix args to Fdefine_charset_internal.
22393
223942008-02-01 Dave Love <fx@gnu.org>
22395
22396 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22397
223982008-02-01 Dave Love <fx@gnu.org>
22399
22400 * coding.c: Doc fixes.
22401 (Fcoding_system_aliases): Fix return value.
22402 (Qmac): Remove (duplicated) definition.
22403
224042008-02-01 Dave Love <fx@gnu.org>
22405
362654a6
JB
22406 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22407 New functions.
aac0c6e3
MR
22408
22409 * character.c (Fstring): Doc fix.
22410
22411 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22412
362654a6 22413 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
22414 (font-encoding-alist): Doc fix.
22415
224162008-02-01 Dave Love <fx@gnu.org>
22417
22418 * term.c (costs_set): Declare static, non-initialized for pcc.
22419 (encode_terminal_code): Remove unused var.
22420
22421 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22422 for K&R.
22423
22424 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22425
22426 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22427 (suffixes): Move out of make_subsidiaries for K&R.
22428
22429 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22430
22431 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22432
224332008-02-01 Dave Love <fx@gnu.org>
22434
22435 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22436
22437 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22438
224392008-02-01 Yong Lu <lyongu@asia-infonet.com>
22440
22441 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22442
22443 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22444
224452008-02-01 Kenichi Handa <handa@m17n.org>
22446
22447 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22448 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22449
224502008-02-01 Kenichi Handa <handa@m17n.org>
22451
22452 * coding.c (decode_coding_charset): Adjust for the change of
22453 Fdefine_coding_system_internal.
22454 (Fdefine_coding_system_internal): For a coding system of
22455 `charset' type, store a list of charset IDs in
22456 `charset_attr_charset_valids' element of coding attributes.
22457
224582008-02-01 Kenichi Handa <handa@m17n.org>
22459
22460 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22461 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22462 caller. Handle 2-byte and 3-byte charsets correctly.
22463 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22464 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22465 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22466 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22467 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22468 sequence.
22469 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22470 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22471 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22472 and alt&rule composition.
22473 (decode_coding_iso_2022): Handle composition correctly.
22474 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22475
22476 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22477 re-defining a charset. If the charset has :emacs-mule-id, setup
22478 emacs_mule_bytes.
22479 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22480
224812008-02-01 Kenichi Handa <handa@m17n.org>
22482
22483 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22484 (encode_coding_big5, encode_coding_charset): If coding requires safe
22485 encoding, produce a character specified by
22486 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22487
224882008-02-01 Dave Love <fx@gnu.org>
22489
22490 * xterm.c (XSetIMValues): Declare.
22491
22492 * process.c: Conditionally include sys/wait.h, pty.h.
22493
22494 * print.c (print_object): Fix print format for 64-bit systems.
22495
22496 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22497
22498 * buffer.c (emacs_strerror): Declare.
22499
22500 * fontset.c (Fclear_face_cache): Declare.
22501 (accumulate_font_info): Comment-out (unused).
22502 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22503 variables.
22504
22505 * character.h (string_escape_byte8): Declare.
22506
22507 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22508 unused vars.
22509 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22510 (Fmap_charset_chars): Doc fix.
22511
22512 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22513 (Fset_coding_system_priority, Fset_coding_system_priority)
22514 (Fdefine_coding_system_internal): Doc fix.
22515
225162008-02-01 Dave Love <fx@gnu.org>
22517
22518 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22519
225202008-02-01 Kenichi Handa <handa@m17n.org>
22521
22522 * character.c (string_escape_byte8): Make multibyte string with
22523 correct size.
22524
22525 * charset.c (Fmake_char): Delete unnecessary code.
22526
225272008-02-01 Kenichi Handa <handa@m17n.org>
22528
22529 * xfns.c (x_encode_text): Allocate coding.destination here, and
22530 call encode_coding_object with dst_object Qnil.
22531
22532 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22533 multibyte form correctly.
22534
22535 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22536 against Vfont_encoding_alist.
22537
22538 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22539 handling of charset list.
22540 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22541 (decode_coding_object): Move point to coding->dst_pos before
22542 calling post-read-conversion function.
22543 (encode_coding_object): Give correct arguments to
22544 pre-write-conversion. Ignore the return value of
22545 pre-write-conversion function. Pay attention to the case that
22546 pre-write-conversion changes the current buffer. If dst_object is
22547 Qt, even if coding->src_bytes is zero, allocate at least one byte
22548 to coding->destination.
22549
22550 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22551
22552 * charset.c (Fmake_char): Make it more backward compatible.
22553 (Fmap_charset_chars): Fix docstring.
22554
225552008-02-01 Dave Love <fx@gnu.org>
22556
22557 * coding.c: Doc fixes.
22558 (Fdefine_coding_system_alias): Use names, not symbols, in
22559 coding-system-alist.
22560
225612008-02-01 Kenichi Handa <handa@m17n.org>
22562
22563 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22564 of calling free_realized_face.
22565
225662008-02-01 Yong Lu <lyongu@asia-infonet.com>
22567
22568 * charset.c (read_hex): Don't treat SPC as a comment starter.
22569 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22570 (Fdecode_char): Fix typo.
22571
225722008-02-01 Kenichi Handa <handa@m17n.org>
22573
22574 * charset.h (struct charset): New member `code_space_mask'.
22575
22576 * coding.c (coding_set_source): Delete the local variable beg_byte.
22577 (encode_coding_charset, Fdefine_coding_system_internal):
22578 Delete the local variable charset.
22579 (Fdefine_coding_system_internal): Setup
22580 attrs[coding_attr_charset_valids] correctly.
22581
22582 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22583 member to check if CODE is valid or not.
22584 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22585 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22586 is within the range of charset->min_code and carset->max_code.
22587
225882008-02-01 Dave Love <fx@gnu.org>
22589
22590 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22591
22592 * dispextern.h (generate_ascii_font): Fix return type.
22593
22594 * xfaces.c (generate_ascii_font): Fix arg declaration.
22595
22596 * coding.c (coding_inherit_eol_type)
22597 (Fset_terminal_coding_system_internal)
22598 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22599
226002008-02-01 Kenichi Handa <handa@m17n.org>
22601
22602 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22603 multiple charsets correctly.
22604
226052008-02-01 Kenichi Handa <handa@m17n.org>
22606
22607 * search.c (boyer_moore): Fix handling of multibyte character
22608 translation.
22609
22610 * xdisp.c (display_mode_element): When the variable `elt' is
22611 changed, update `this' and `lisp_string'.
22612
226132008-02-01 Kenichi Handa <handa@m17n.org>
22614
22615 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22616
22617 * callproc.c (Fcall_process): Be sure to give the current buffer
22618 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22619
22620 * charset.c (struct charset_map_entries): New struct.
22621 (load_charset_map): Rename from parse_charset_map. New args
22622 entries and n_entries. Change caller.
22623 (load_charset_map_from_file): Rename from load_charset_map.
22624 Change caller. New arg control_flag. Call load_charset_map at
22625 the tail.
22626 (load_charset_map_from_vector): New function.
22627 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22628 (encode_char): If the charset is compact, change a character index
22629 to a code point.
22630
22631 * coding.c (coding_alloc_by_making_gap): Check the case that the
22632 source and destination are the same correctly.
22633 (decode_coding_raw_text): Set coding->consumed_char and
22634 coding->consumed to 0.
22635 (produce_chars): If coding->chars_at_source is nonzero, update
22636 coding->consumed_char and coding->consumed before calling
22637 alloc_destination.
22638 (Fdefine_coding_system_alias): Register ALIAS in
22639 Vcoding_system_alist.
22640 (syms_of_coding): Define `no-conversion' coding system at the tail.
22641
22642 * fileio.c (Finsert_file_contents): Set coding_system instead of
22643 val. If the current buffer is multibyte, always call
22644 decode_coding_gap.
22645
22646 * xfaces.c (try_font_list): Give higher priority to fontset's
22647 family than face's family.
22648
226492008-02-01 Kenichi Handa <handa@m17n.org>
22650
22651 * callproc.c (Fcall_process): Be sure to give the current buffer
22652 to decode_coding_c_string.
22653
22654 * xfaces.c (try_font_list): Give a family specified in a fontset
22655 higher priority than a family specified in a face.
22656
226572008-02-01 Kenichi Handa <handa@m17n.org>
22658
22659 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22660 Fix arguments to insert_from_buffer.
22661
22662 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22663
226642008-02-01 Kenichi Handa <handa@m17n.org>
22665
22666 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22667 (decode_coding_gap): Set coding->dst_multibyte correctly.
22668
226692008-02-01 Kenichi Handa <handa@m17n.org>
22670
22671 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22672 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22673 (encode_coding_utf_16): Substitute coding->default_char for
22674 non-Unicode characters.
22675 (decode_coding): Don't call record_insert here.
22676 (setup_coding_system): Initialize `surrogate' of
22677 coding->spec.utf_16 to 0.
22678 (EMIT_ONE_BYTE): Fix for multibyte case.
22679
22680 * insdel.c (insert_from_gap): Call record_insert.
22681
226822008-02-01 Kenichi Handa <handa@m17n.org>
22683
22684 * casefiddle.c (casify_region): Fix multibyte case.
22685
22686 * character.c (c_string_width): Add return type `int'.
22687 (char_string_with_unification): Delete arg ADVANCED.
22688
22689 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22690 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22691 (CHAR_STRING_ADVANCE): Make it do-while statement.
22692
22693 * chartab.c (sub_char_table_set_range): Optimize for the case
22694 DEPTH == 3. Add workaround code for a GCC optimization bug.
22695
22696 * charset.c (parse_charset_map): Remove an unused variable.
22697
22698 * coding.c: Delete unused variables.
22699
22700 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22701 earlier. If inserted is zero and the coding system doesn't
22702 require flushing, don't call decode_coding_gap.
22703
22704 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22705
227062008-02-01 Kenichi Handa <handa@m17n.org>
22707
22708 The following changes are for using Unicode as an internal
22709 character model, and use UTF-8 format for buffer/string
22710 representation.
22711
22712 * .gdbinit (xchartable): Adjust for the change of char table structure.
22713 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22714
22715 * Makefile.in (obj): Add character.o and chartab.o.
22716 (lisp, shortlisp): Remove utf-8.elc.
22717 (*.o): For many files, change dependency on charset.h to
22718 character.h, and add dependency on character.h.
22719 (character.o, chartab.o): New targets.
22720
22721 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22722 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22723 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22724 of "charset.h".
22725
22726 * dired.c, filelock.c: Include "character.h".
22727
22728 * alloc.c: Include "character.h" instead of "charset.h".
22729 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22730 (syms_of_alloc): Remove defsubr for Smake_char_table.
22731
22732 * buffer.c: Include "character.h" instead of "charset.h", don't
22733 include "coding.h".
22734 (Fset_buffer_multibyte): Adjust for UTF-8.
22735
22736 * buffer.h: EXFUN Fbuffer_live_p.
22737
22738 * callproc.c: Include "character.h" instead of "charset.h".
22739 (Fcall_process): Big change for the new code-conversion APIs.
22740
22741 * casetab.c: Include "character.h" instead of "charset.h".
22742 (set_canon, set_identity, shuffle): Adjust for the new
22743 map_char_table spec.
22744 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22745 accessing the char table structure.
22746
22747 * chartab.c: New file that implements char table.
22748
22749 * category.c: Include "character.h".
22750 (copy_category_entry): New function.
22751 (copy_category_table): Call map_char_table and copy_category_entry.
22752 (Fmake_category_table): Initialize all top-level slots.
22753 (char_category_set): New function.
22754 (modify_lower_category_set): Delete.
22755 (Fmodify_category_entry): Call char_table_ref_and_range.
22756
22757 * category.h (CATEGORY_SET): Just call char_category_set.
22758
22759 * ccl.c: Include "character.h".
22760 (Qccl, Qcclp): New variables.
22761 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22762 it's less than 256.
22763 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22764 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22765 and DST type.
22766 (ccl_driver): Change types of argument, adjust code accordingly.
22767 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22768 ccl_driver.
22769 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22770
22771 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22772 New members src_multibyte, dst_multibyte, consumed, and produced.
22773 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22774 (CODING_SPEC_CCL_PROGRAM): New macro.
22775 (ccl_driver): Update prototype.
22776 (Qccl, Qcclp, Fccl_program_p): Extern them.
22777 (CHECK_CCL_PROGRAM): New macro.
22778
22779 * character.c, character.h, chartab.c: New files.
22780
22781 * charset.c: Mostly re-written. Move character and multibyte sequence
22782 handling codes to character.c.
22783
22784 * charset.h: Mostly re-written. Move character and multibyte sequence
22785 handling codes to character.h.
22786
22787 * coding.c, coding.h: Mostly re-written.
22788
22789 * composite.c: Include "character.h" instead of "charset.h".
22790 (CHAR_WIDTH): Move to character.h.
22791 (HASH_KEY, HASH_VALUE): Delete.
22792
22793 * composite.h (enum composition_method): Change order of enumeration
22794 symbols.
22795
22796 * data.c: Include "character.h" instead of "charset.h".
22797 (Faref): Call CHAR_TABLE_REF for a char table.
22798 (Faset): Call CHAR_TABLE_SET for a char table.
22799
22800 * dispextern.h (free_realized_face, check_face_attribytes)
22801 (generate_ascii_font): Extern them.
22802 (free_realized_multibyte_face): Delete extern.
22803
22804 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22805 table structure.
22806
22807 * editfns.c: Include "character.h" instead of "charset.h".
22808 (Fchar_to_string): Always call CHAR_STRING.
22809
22810 * emacs.c (main): Call init_charset_once, init_charset,
22811 syms_of_chartab, and syms_of_character.
22812
22813 * fileio.c: Include "character.h" instead of "charset.h".
22814 (Finsert_file_contents): Big change for the new code-conversion API.
22815 (choose_write_coding_system, Fwrite_region): Likewise.
22816 (build_annotations_2): Delete.
22817 (e_write): Big change for the new code-conversion API.
22818
22819 * fns.c: Include "character.h" instead of "charset.h".
22820 (copy_sub_char_table): Move to chartab.c.
22821 (Fcopy_sequence): Call copy_char_table for a char table.
22822 (concat): Delete codes calling count_multibyte.
22823 (string_char_to_byte, string_byte_to_char): Adjust for the new
22824 multibyte form.
22825 (internal_equal): Adjust for the change of char table structure.
22826 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22827 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22828 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22829 (char_table_translate, optimize_sub_char_table)
22830 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22831 chartab.c.
22832 (char_table_ref_and_index): Delete.
22833 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22834 (Fmd5): Call preferred_coding_system instead of accessing
22835 Vcoding_category_list. Adjust for the new code-conversion API.
22836 (syms_of_fns): Move defsubr for char table related functions to
22837 chartab.c.
22838
22839 * fontset.c: Mostly re-written.
22840
22841 * fontset.h (struct font_info): Change type of the member encoding_type.
22842 (enum FONT_SPEC_INDEX): New enum.
22843 (fontset_font_pattern, fs_load_font): Update prototype.
22844 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22845
22846 * indent.c: Include "character.h" instead of "charset.h".
22847 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22848
22849 * insdel.c: Include "character.h" instead of "charset.h".
22850 (copy_text): Don't refer to Vnonascii_translation_table.
22851 (insert_from_gap): New function.
22852
22853 * keyboard.c: Include "character.h" instead of "charset.h".
22854 (command_loop_1): Never call direct_output_forward_char before
22855 a non-ASCII character.
22856 (read_char): If Vkeyboard_translate_table is a char table, always
22857 translate a character.
22858
22859 * keymap.c: Include "character.h".
22860 (store_in_keymap): Handle the case that IDX is a cons.
22861 (Fdefine_key): Handle the case that KEY is a cons and the car part
22862 is also a cons (range).
22863 (push_key_description): Adjust for the new character code.
22864 (describe_vector): Call describe_char_table for a char table.
22865 (describe_char_table): New function.
22866
22867 * keymap.h (describe_char_table): Extern it.
22868
22869 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22870 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22871 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22872 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22873 Delete.
22874 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22875 structure.
22876 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22877 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22878 (CHARTAB_SIZE_BITS_3): New macros.
22879 (chartab_size): Extern it.
22880 (struct Lisp_Char_Table): Re-design.
22881 (struct Lisp_Sub_Char_Table): New structure.
22882 (HASH_KEY, HASH_VALUE): Move from fns.c.
22883 (CHARACTERBITS): Define as 22.
22884 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22885 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22886 (GC_SUB_CHAR_TABLE_P): New macro.
22887 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22888 (code_convert_string_norecord): Deleted extern.
22889 (init_character_once, syms_of_character, init_charset)
22890 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22891
22892 * lread.c: Include "character.h".
22893 (read_multibyte): New arg NBYTES.
22894 (read_escape): Change the meaning of returned *BYTEREP.
22895 (to_multibyte): Delete.
22896 (read1): Adjust the handling of char table and string.
22897
22898 * print.c: Include "character.h" instead of "charset.h".
22899 (print_string): Convert 8-bit raw bytes to octal form by
22900 string_escape_byte8.
22901 (print_object): Adjust for the new multibyte form. Print 8-bit
22902 raw bytes always in octal form. Handle sub char table correctly.
22903
22904 * process.c: Include "character.h" instead of "charset.h".
22905 (read_process_output, send_process): Adjust for the new
22906 code-conversion API.
22907
22908 * puresize.h (BASE_PURESIZE): Increase.
22909
22910 * regex.c: Include "character.h" instead of "charset.h".
22911 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22912 (regex_compile): Accept a range whose starting and ending
22913 character have different leading bytes.
22914 (analyse_first): Adjust for the above change.
22915
22916 * search.c: Include "character.h" instead of "charset.h".
22917 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22918 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22919
22920 * syntax.c: Include "character.h" instead of "charset.h".
22921 (syntax_parent_lookup): Delete.
22922 (Fmodify_syntax_entry): Accept a cons as CHAR.
22923 (skip_chars): Adjust for the new multibyte form.
22924 (init_syntax_once): Call char_table_set_range instead of directly
22925 accessing the structure of a char table.
22926
22927 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22928 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22929 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22930 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22931
22932 * term.c: Include "buffer.h" and "character.h".
22933 (encode_terminal_code, write_glyphs): Adjust for the new
22934 code-conversion API.
22935 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22936
22937 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22938
22939 * xdisp.c: Include "character.h".
22940 (get_next_display_element): Adjust for the new multibyte form.
22941 (disp_char_vector): Adjust for the new char table structure.
22942 (decode_mode_spec_coding): Adjust for the new structure of
22943 coding system.
22944 (decode_mode_spec): Adjust for the new code-conversion API.
22945
22946 * xfaces.c: Include "character.h" instead of "charset.h".
22947 (load_face_font): Adjust for the change of choose_face_font and
22948 FS_LOAD_FONT.
22949 (generate_ascii_font): New function.
22950 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22951 (set_font_frame_param): Adjust for the change of choose_face_font.
22952 (free_realized_face): Make it public.
22953 (free_realized_faces_for_fontset): Rename from
22954 free_realized_multibyte_face. Free also faces realized for ASCII.
22955 (choose_face_font): Change arguments. Adjust for the change of
22956 fontset_font_pattern and FS_LOAD_FONT.
22957
22958 * xfns.c: Include "character.h".
22959 (x_encode_text): Adjust for the new code-conversion API.
22960
22961 * xselect.c: Don't include "charset.h".
22962 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22963
22964 * xterm.c: Include "character.h".
22965 (x_encode_char): New argument CHARSET. Change caller.
22966 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22967 Call ENCODE_CHAR instead of SPLIT_CHAR.
22968 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22969 CHAR_WIDTH instead of CHARSET_WIDTH.
22970 (XTread_socket): Adjust for the new code-conversion API.
22971 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22972 (x_load_font): Adjust for the change of struct font.
22973
229742008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22975
22976 * xfaces.c (face_at_buffer_position): Remove unused vars.
22977
229782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22979
22980 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22981 Fix overflow checking.
22982
229832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22984
22985 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22986 Cancel previous change.
22987
229882008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22989
22990 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22991 ccl->eight_bit_control. Fix check for buffer overflow.
22992 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22993 (ccl_driver): Initialize extra_bytes to 0.
22994
229952008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22996
22997 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22998 return it ORed with ctrl_modifier.
22999
230002008-01-29 Miles Bader <miles@gnu.org>
23001
23002 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23003
230042008-01-28 Jason Rumney <jasonr@gnu.org>
23005
23006 * w32.c (stat): Don't double check for networked drive.
23007
230082008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23009
23010 * window.c (run_window_configuration_change_hook): New function.
23011 Code extracted from set_window_buffer. Set the selected frame.
23012 (set_window_buffer): Use it.
23013 * window.h (run_window_configuration_change_hook): Declare.
23014 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23015
23016 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23017
230182008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23019
23020 * Makefile.in: Remove references to unused macros.
23021
230222008-01-26 Eli Zaretskii <eliz@gnu.org>
23023
23024 * w32.c (g_b_init_get_sid_sub_authority)
23025 (g_b_init_get_sid_sub_authority_count): New static variables.
23026 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23027 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23028 (init_user_info): Use them to retrieve uid and gid.
23029 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23030 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23031 st_uid and st_gid of the file.
23032
230332008-01-26 Jason Rumney <jasonr@gnu.org>
23034
23035 * w32.c (logon_network_drive): New function.
23036 (stat): Use it.
23037
230382008-01-26 Chong Yidong <cyd@stupidchicken.com>
23039
23040 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23041 invisible text covered with an ellipsis.
23042
230432008-01-25 Richard Stallman <rms@gnu.org>
23044
23045 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23046 jump back to beginning. Move some other initializations after that.
23047 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23048 New variables.
23049 (syms_of_xdisp): Init them.
23050
23051 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23052
23053 * buffer.c (reset_buffer_local_variables):
23054 Implement `permanent-local-hook'.
23055 (Qpermanent_local_hook): New variable.
23056 (syms_of_buffer): Init and staticpro it.
23057
230582008-01-25 Michael Albinus <michael.albinus@gmx.de>
23059
23060 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23061
230622008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23063
23064 * fns.c (Fclrhash): Return TABLE.
23065
230662008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23067
23068 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23069 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23070 is set even without positional changes.
23071 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23072
23073 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23074
230752008-01-23 Jason Rumney <jasonr@gnu.org>
23076
23077 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23078
23079 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23080 the unicode range available in MULE by locale-coding-system.
23081 Improve dbcs lead byte detection. Set event timestamp and modifiers
23082 earlier.
23083
230842008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23085
23086 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23087 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23088 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23089 when used on child processes.
23090
230912008-01-21 Michael Albinus <michael.albinus@gmx.de>
23092
23093 * dbusbind.c (Fdbus_method_return_internal): Rename from
23094 Fdbus_method_return.
23095 (Fdbus_unregister_object): Move to dbus.el.
23096 (Fdbus_call_method, Fdbus_method_return_internal)
23097 (Fdbus_send_signal): Improve debug messages.
23098
230992008-01-20 Martin Rudalics <rudalics@gmx.at>
23100
23101 * undo.c (undo_inhibit_record_point): New variable.
23102 (syms_of_undo): Initialize it.
23103 (record_point): Don't record point when undo_inhibit_record_point
23104 is set.
23105
231062008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23107
23108 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23109
23110 * xdisp.c (Qauto_hscroll_mode): New var.
23111 (syms_of_xdisp): Initialize it.
23112 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23113 window's buffer.
23114 (hscroll_windows): Don't check automatic_hscrolling_p here.
23115
23116 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23117 vscroll if we're setting window-buffer to the value it already has.
23118
231192008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23120
23121 * m/intel386.h: Remove references to XENIX.
23122
231232008-01-17 Andreas Schwab <schwab@suse.de>
23124
23125 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23126 instead of HAVE_X86_64_LIB64_DIR.
23127 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23128
231292008-01-17 Glenn Morris <rgm@gnu.org>
23130
23131 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23132 to HAVE_X86_64_LIB64_DIR.
23133
231342008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23135
23136 * s/irix3-3.h:
23137 * s/irix4-0.h:
23138 * s/386-ix.h:
23139 * s/domain.h:
23140 * s/hpux9-x11r4.h:
23141 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23142
23143 * sysdep.c: Remove code containing references to symbols defined
23144 by unsupported systems.
23145
231462008-01-16 Glenn Morris <rgm@gnu.org>
23147
23148 * coding.c (select-safe-coding-system-function): Doc fix.
23149
231502008-01-15 Glenn Morris <rgm@gnu.org>
23151
23152 * config.in: Revert 2008-01-13 change: this is a generated file.
23153
231542008-01-13 Tom Tromey <tromey@redhat.com>
23155
23156 * lisp.h: Fix typo.
23157
231582008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23159
23160 * m/sequent-ptx.h:
23161 * m/sequent.h:
23162 * s/ptx.h:
23163 * s/ptx4-2.h:
23164 * s/ptx4.h: Remove files for systems no longer supported.
23165
23166 * callproc.c (Fcall_process): Fix previous change.
23167
231682008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23169
23170 * unexsunos4.c: Remove file, system not supported anymore.
23171
23172 * m/mips.h:
23173 * m/intel386.h:
23174 * callproc.c:
23175 * config.in:
23176 * ecrt0.c:
23177 * emacs.c:
23178 * fileio.c:
23179 * frame.c:
23180 * getpagesize.h:
23181 * keyboard.c:
23182 * lread.c:
23183 * process.c:
23184 * puresize.h:
23185 * sysdep.c:
23186 * systty.h:
23187 * syswait.h:
23188 * unexec.c:
23189 * xdisp.c:
23190 * alloc.c: Remove code containing references to symbols defined by
23191 unsupported systems.
23192
231932008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23194
23195 * coding.c (detect_coding_mask): Fix previous change.
23196
231972008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23198
23199 * coding.c (detect_coding_iso2022): New arg
23200 latin_extra_code_state. Allow Latin extra codes only
23201 when *latin_extra_code_state is nonzero.
23202 (detect_coding_mask): If there is a NULL byte, detect the encoding
23203 as UTF-16 or binary. If Latin extra codes exist, detect the
23204 encoding as ISO-2022 only when there's no other proper encoding is
23205 found.
23206
232072008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23208
23209 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23210 #ifdef MAC_OS.
23211
232122008-01-08 Richard Stallman <rms@gnu.org>
23213
23214 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23215
232162008-01-06 Nick Roberts <nickrob@snap.net.nz>
23217
23218 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23219 menu bar in parentheses.
23220
232212008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23222
23223 * m/7300.h:
23224 * m/acorn.h:
23225 * m/alliant-2800.h:
23226 * m/alliant.h:
23227 * m/alliant1.h:
23228 * m/alliant4.h:
23229 * m/altos.h:
23230 * m/amdahl.h:
23231 * m/apollo.h:
23232 * m/att3b.h:
23233 * m/aviion-intel.h:
23234 * m/aviion.h:
23235 * m/celerity.h:
23236 * m/clipper.h:
23237 * m/cnvrgnt.h:
23238 * m/convex.h:
23239 * m/cydra5.h:
23240 * m/delta88k.h:
23241 * m/dpx2.h:
23242 * m/dual.h:
23243 * m/elxsi.h:
23244 * m/f301.h:
23245 * m/gould-np1.h:
23246 * m/gould.h:
23247 * m/i860.h:
23248 * m/ibmps2-aix.h:
23249 * m/ibmrt-aix.h:
23250 * m/ibmrt.h:
23251 * m/irist.h:
23252 * m/is386.h:
23253 * m/isi-ov.h:
23254 * m/mega68.h:
23255 * m/mg1.h:
23256 * m/news-r6.h:
23257 * m/news-risc.h:
23258 * m/news.h:
23259 * m/nh3000.h:
23260 * m/nh4000.h:
23261 * m/ns16000.h:
23262 * m/ns32000.h:
23263 * m/nu.h:
23264 * m/orion.h:
23265 * m/orion105.h:
23266 * m/paragon.h:
23267 * m/pfa50.h:
23268 * m/plexus.h:
23269 * m/pyramid.h:
23270 * m/pyrmips.h:
23271 * m/sh3el.h:
23272 * m/sps7.h:
23273 * m/sr2k.h:
23274 * m/stride.h:
23275 * m/sun1.h:
23276 * m/sun2.h:
23277 * m/sun3-68881.h:
23278 * m/sun3-fpa.h:
23279 * m/sun3-soft.h:
23280 * m/sun3.h:
23281 * m/sun386.h:
23282 * m/symmetry.h:
23283 * m/tad68k.h:
23284 * m/tahoe.h:
23285 * m/targon31.h:
23286 * m/tek4300.h:
23287 * m/tekxd88.h:
23288 * m/tower32.h:
23289 * m/tower32v3.h:
23290 * m/ustation.h:
23291 * m/wicat.h:
23292 * m/xps100.h:
23293 * s/cxux.h:
23294 * s/cxux7.h:
23295 * s/dgux.h:
23296 * s/dgux4.h:
23297 * s/dgux5-4-3.h:
23298 * s/dgux5-4r2.h:
23299 * s/esix.h:
23300 * s/esix5r4.h:
23301 * s/hiuxmpp.h:
23302 * s/hiuxwe2.h:
23303 * s/iris3-5.h:
23304 * s/iris3-6.h:
23305 * s/isc2-2.h:
23306 * s/isc3-0.h:
23307 * s/isc4-0.h:
23308 * s/isc4-1.h:
23309 * s/newsos5.h:
23310 * s/newsos6.h:
23311 * s/osf1.h:
23312 * s/osf5-0.h:
23313 * s/riscix1-1.h:
23314 * s/riscix12.h:
23315 * s/sco4.h:
23316 * s/sco5.h:
23317 * s/sunos4-0.h:
23318 * s/sunos4-1.h:
23319 * s/sunos413.h:
23320 * s/sunos4shr.h:
23321 * s/umax.h:
23322 * s/unipl5-2.h:
23323 * s/xenix.h:
23324 * cxux-crt0.s:
23325 * unexapollo.c:
23326 * unexconvex.c:
23327 * unexenix.c:
23328 * unexsni.c: Remove files for systems no longer supported.
23329
23330 * m/intel386.h: Remove references to unsupported systems.
23331
23332 * w32.c (get_emacs_configuration): Remove reference to i860.
23333
23334 * sysdep.c: Remove dead code.
23335
233362008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23337
23338 * s/rtu.h:
23339 * m/masscomp.h: Remove files. Platform is obsolete.
23340
233412008-01-04 Michael Albinus <michael.albinus@gmx.de>
23342
23343 * dbusbind.c (Fdbus_method_return): New function.
23344 (xd_read_message): Add the serial number to the event.
23345 (Fdbus_register_method): Activate the function.
23346
233472008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23348
23349 * keyboard.c (read_key_sequence): Fix typo.
23350
233512008-01-03 Michael Albinus <michael.albinus@gmx.de>
23352
23353 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23354 (xd_signature, xd_append_arg): Handle element type detection for
23355 empty arrays.
23356 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23357 SDATA () calls; this must be solved more general.
23358 (Fdbus_register_signal): Use SBYTES instead of strlen.
23359
233602008-01-03 Magnus Henoch <magnus@zemdatav>
23361
23362 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23363 unsigned int for byte values (necessary for big-endian platform).
23364 (Fdbus_call_method): Handle the case of no returned arguments.
23365
233662007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23367
23368 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23369
233702007-12-31 Magnus Henoch <mange@freemail.hu>
23371
23372 * dbusbind.c (xd_signature): Signature of variant is just "v".
23373
233742007-12-30 Michael Albinus <michael.albinus@gmx.de>
23375
23376 * dbusbind.c: Fix several errors and compiler warnings.
23377 Reported by Tom Tromey <tromey@redhat.com>.
23378 (XD_ERROR, XD_DEBUG_MESSAGE)
23379 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23380 (xd_append_arg): Part for basic D-Bus types rewritten.
23381 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23382 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23383 appropriate.
23384 (xd_read_message): Return Qnil. Don't signal an error; it is not
23385 useful during event reading.
23386 (Fdbus_register_signal): Signal an error if the check for
23387 FUNCTIONP fails.
23388 (Fdbus_register_method): New function. The implementation is not
23389 complete, the call of the function signals an error therefore.
23390 (Fdbus_unregister_object): New function, renamed from
23391 Fdbus_unregister_signal. The initial check signals an error, if
23392 the object is not well formed.
23393
233942007-12-30 Richard Stallman <rms@gnu.org>
23395
23396 * textprop.c (get_char_property_and_overlay):
23397 Signal error if POSITION is out of range in a buffer.
23398
233992007-12-29 Martin Rudalics <rudalics@gmx.at>
23400
23401 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23402 because the original parameters are in pure storage now.
23403
234042007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23405
23406 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23407
234082007-12-22 Eli Zaretskii <eliz@gnu.org>
23409
23410 * callint.c (syms_of_callint) <command-history>: Add reference to
23411 history-length in the doc string.
23412
234132007-12-17 Jason Rumney <jasonr@gnu.org>
23414
23415 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23416 before passing as wParam.
23417
234182007-12-22 Michael Albinus <michael.albinus@gmx.de>
23419
23420 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23421 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23422 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23423 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23424 as number.
23425 (Fdbus_call_method): Fix docstring.
23426
234272007-12-21 Michael Albinus <michael.albinus@gmx.de>
23428
23429 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23430 New macros.
23431 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23432 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23433 Simplify.
23434 (xd_signature): New function.
23435 (xd_append_arg): Compute also signatures. Major rewrite.
23436 (xd_retrieve_arg): Make debug messages friendly.
23437 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23438 Check for signatures of arguments.
23439
234402007-12-19 Michael Albinus <michael.albinus@gmx.de>
23441
23442 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23443 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23444 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23445 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23446 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23447 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23448 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23449 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23450 (xd_retrieve_value): Remove. Functionality included in ...
23451 (xd_append_arg): New function.
23452 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23453
234542007-12-16 Michael Albinus <michael.albinus@gmx.de>
23455
23456 * dbusbind.c (top): Include <stdio.h>.
23457 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23458 dbus_message_new_method_call and dbus_message_new_signal.
23459 (Fdbus_register_signal): Rename unique_name to uname.
23460 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23461 non-existing unique name. Fix typos in matching rule. Return an
23462 object which is useful in Fdbus_unregister_signal.
23463 (Fdbus_unregister_signal): Reimplementation, in order to remove
23464 only the corresponding entry.
23465 (Vdbus_registered_functions_table): Change the order of entries.
23466 Apply these changes in xd_read_message and Fdbus_register_signal.
23467
234682007-12-16 Andreas Schwab <schwab@suse.de>
23469
23470 * fileio.c (Finsert_file_contents): Fix overflow check to not
23471 depend on undefined integer overflow.
23472
234732007-12-14 Jason Rumney <jasonr@gnu.org>
23474
23475 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23476 for characters above 127.
23477
234782007-12-13 Jason Rumney <jasonr@gnu.org>
23479
23480 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23481 before dereferencing array.
23482 (lookup_vk_code): Remove zero comparison.
23483
234842007-12-14 Michael Albinus <michael.albinus@gmx.de>
23485
23486 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23487 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23488 Use `unsigned int' instead of `uint'.
23489 (xd_read_message, Fdbus_register_signal): Split expressions into
23490 multiple lines before operators "&&" and "||", according to the
23491 GNU Coding Standards.
23492
234932007-12-14 Eli Zaretskii <eliz@gnu.org>
23494
23495 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23496
234972007-12-12 Juri Linkov <juri@jurta.org>
23498
23499 * buffer.c (Frename_buffer): In interactive spec replace
23500 `read-buffer' with `read-string' that uses `buffer-name-history'
23501 as history, and the current buffer's name as default.
23502
235032007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23504
23505 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23506 manipulating the backtrace manually.
23507 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23508 (struct backtrace, backtrace_list): Remove.
23509 (command_loop_1): Remove dead var `no_direct'.
23510
23511 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23512 preserve non-built-in buffer-local variables.
23513 (Fkill_all_local_variables): Don't re-create&re-set permanent
23514 buffer-local variables.
23515
235162007-12-09 Juri Linkov <juri@jurta.org>
23517
23518 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23519 Lisp code that uses `read-buffer' with current buffer as default.
23520
235212007-12-08 Michael Albinus <michael.albinus@gmx.de>
23522
23523 * dbusbind.c (xd_read_message): Generate an event for every
23524 registered handler. There might be several handlers registered
23525 for the same signal.
23526 (Fdbus_register_signal): Don't overwrite a registration for the
23527 same signal. Add a new registration if handlers are different.
23528 (Vdbus_registered_functions_table): Rework doc string.
23529
235302007-12-07 Michael Albinus <michael.albinus@gmx.de>
23531
23532 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23533 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23534 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23535 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23536 Unify argument lists.
23537 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23538 arguments and hash table keys. Use unique name for service.
23539 (Fdbus_unregister_signal): Remove checks.
23540 (Vdbus_registered_functions_table): Fix doc string.
23541
235422007-12-05 Magnus Henoch <mange@freemail.hu>
23543
23544 * process.c (make_process): Initialize pty_flag to 0.
23545
235462007-12-05 Jason Rumney <jasonr@gnu.org>
23547
23548 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23549 specified XBMs.
23550
235512007-12-05 Richard Stallman <rms@gnu.org>
23552
23553 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23554
235552007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23556
23557 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23558 New variable.
23559 (mac_try_close_socket) [MAC_OSX]: New function.
23560 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23561 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23562
23563 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23564 Use mac_try_close_socket.
23565
235662007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23567
23568 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23569 reloc_base.
23570 (copy_dysymtab): Compute relocation base here.
23571 (rebase_reloc_address) [__ppc64__]: New function.
23572 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23573 changed.
23574
235752007-12-05 Jason Rumney <jasonr@gnu.org>
23576
23577 * w32proc.c (sys_spawnve): Quote args with wildcards.
23578
235792007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23580
23581 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23582 __objc_* sections.
23583 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23584
235852007-12-05 Michael Albinus <michael.albinus@gmx.de>
23586
23587 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23588 Move check for Vdbus_registered_functions_table to
23589 xd_read_queued_messages.
23590 (xd_read_queued_messages): Protect xd_read_message calls by
23591 internal_condition_case_1.
23592
235932007-12-04 Michael Albinus <michael.albinus@gmx.de>
23594
23595 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23596 Qdbus_system_bus and Qdbus_session_bus, respectively.
23597 (Vdbus_intern_symbols): Remove.
23598 (Vdbus_registered_functions_table): New hash table.
23599 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23600 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23601 Rewrite in order to manage registered functions by hash table
23602 Vdbus_registered_functions_table.
23603
236042007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23605
23606 * xterm.c: Update URL to Window Manager Specification in comment.
23607
236082007-12-02 Michael Albinus <michael.albinus@gmx.de>
23609
23610 * config.in (HAVE_DBUS): Add.
23611
23612 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23613 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23614 (obj): Add $(DBUS_OBJ).
23615 (LIBES): Add $(DBUS_LIBS).
23616 (dbusbind.o): New target.
23617
23618 * dbusbind.c: New file.
23619
23620 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23621
23622 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23623 (Qdbus_event): New Lisp symbol.
23624 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23625 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23626 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23627
23628 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23629
236302007-12-01 Richard Stallman <rms@gnu.org>
23631
23632 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23633
236342007-11-30 Jason Rumney <jasonr@gnu.org>
23635
23636 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23637 (w32con_reset_terminal_modes): Clear screen buffer.
23638 (w32_face_attributes): Don't use color indexes that are out of range.
23639 Only reverse the default colors.
23640
23641 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23642 WINDOWSNT.
23643
23644 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23645
236462007-11-29 Jason Rumney <jasonr@gnu.org>
23647
23648 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23649 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23650 if the terminal colors are initialized.
23651 (unspecified_fg, unspecified_bg): Remove unused declarations.
23652
236532007-11-29 Andreas Schwab <schwab@suse.de>
23654
23655 * keyboard.c (apply_modifiers): Fix typo.
23656
236572007-11-29 Richard Stallman <rms@gnu.org>
23658
23659 * keymap.c (Fcurrent_local_map): Doc fix.
23660
236612007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23662
23663 * s/gnu-kfreebsd.h: New file.
23664
236652007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23666
23667 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23668 Don't cast redundantly.
23669
23670 * keyboard.c (KEY_TO_CHAR): New macro.
23671 (parse_modifiers, apply_modifiers): Accept integer arguments.
23672 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23673 for chars and symbol keys.
23674 After doing such remapping, apply function-key-map again.
23675
236762007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23677
23678 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23679 compiled anymore.
23680
236812007-11-26 Andreas Schwab <schwab@suse.de>
23682
23683 * process.c (list_processes_1): Fix indentation level of the
23684 command column.
23685
236862007-11-23 Andreas Schwab <schwab@suse.de>
23687
23688 * editfns.c (Fformat): Handle %c specially since it requires the
23689 argument to be of type int.
23690
236912007-11-23 Markus Triska <markus.triska@gmx.at>
23692
23693 * emacs.c (main): Call init_editfns before init_process, since
23694 init_process sets Vprocess_connection_type depending on OS release.
23695
236962007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23697
23698 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23699 (find_symbol_value): Use do_symval_forwarding.
23700
23701 * data.c (set_internal): Set the value in the `cons-cell' (for
23702 Buffer_Local_values) not only for frame-local variables.
23703
237042007-11-22 Andreas Schwab <schwab@suse.de>
23705
23706 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23707 values to sprintf.
23708 * keymap.c (Fsingle_key_description): Likewise.
23709 * print.c (print_object): Likewise.
23710
237112007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23712
23713 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23714 file for image is nil.
23715
237162007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23717
23718 * term.c: Include stdarg.h.
23719 (fatal): Implement using varargs.
23720 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23721
237222007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23723
23724 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23725 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23726 Update call to buffer_slot_type_mismatch.
23727 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23728 (buffer_slot_type_mismatch): Update.
23729 * buffer.c (buffer_local_types): Remove.
23730 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23731 (defvar_per_buffer): Set the type in the buffer_objfwd.
23732
237332007-11-21 Jason Rumney <jasonr@gnu.org>
23734
23735 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23736 CreateFileMapping returns NULL on failure.
23737
237382007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23739
23740 * search.c (Fset_match_data): Remove the `evaporate' feature.
23741 (unwind_set_match_data): Don't use the `evaporate' feature.
23742
237432007-11-21 Jason Rumney <jasonr@gnu.org>
23744
23745 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23746
23747 * w32console.c (w32con_write_glyphs): Remove unused variables.
23748
237492007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23750
23751 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23752
23753 * s/darwin.h (MULTI_KBOARD): Remove.
23754
23755 * macfns.c (x_create_tip_frame, Fx_create_frame)
23756 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23757
237582007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23759
23760 * buffer.c (Fbuffer_local_value): Remove redundant test.
23761 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23762 than in `current-buffer' to match the comment.
23763 Do the swap using swap_in_global_binding.
23764
23765 * data.c (store_symval_forwarding, set_internal):
23766 * eval.c (specbind): Remove dead code.
23767
23768 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23769 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23770 Since we do not want to see internal Lisp_*fwd objects here.
23771
237722007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23773
23774 * sysdep.c (init_system_name): Use getaddrinfo if available.
23775
23776 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23777 (x_scroll_bar_note_movement): start, end, with, height in struct
23778 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23779
237802007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23781
23782 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23783
237842007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23785
23786 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23787 This undoes Richard's change of 14-Oct-2002.
23788
23789 * alloc.c (allocate_other_vector):
23790 * lisp.h (allocate_other_vector): Remove.
23791
23792 * window.c (struct save_window_data): Move non-lisp data to the end
23793 and make it `int' rather than Lisp_Object.
23794 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23795 Done wrap/unwrap integer values.
23796 (Fset_window_configuration, compare_window_configurations):
23797 Update use of fields to their new types.
23798
23799 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23800 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23801 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23802 (SET_SCROLL_BAR_X_WINDOW): Remove.
23803 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23804 Access the new x_window field directly.
23805 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23806 Don't wrap/unwrap integers into Lisp_Objects.
23807 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23808 (x_scroll_bar_report_motion):
23809 Don't wrap/unwrap integers into Lisp_Objects.
23810 (x_term_init): Use SDATA.
23811 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23812 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23813 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23814 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23815 * xfns.c (x_set_background_color):
23816 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23817 Access the new x_window field directly.
23818
23819 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23820 (allocate_pseudovector): Make non-static.
23821
23822 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23823 (allocate_pseudovector): Declare.
23824 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23825
238262007-11-15 Andreas Schwab <schwab@suse.de>
23827
23828 * editfns.c (Fformat): Correctly format EMACS_INT values.
23829 Also take precision into account when formatting an integer.
23830
23831 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23832
238332007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23834
23835 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23836 (syms_of_keyboard): Defsubr it.
23837
23838 * data.c (swap_in_global_binding): Fix longstanding bug where
23839 store_symval_forwarding was not called with the right second argument,
23840 thus causing objfwd-ing from being dropped.
23841
238422007-11-14 Juanma Barranquero <lekktu@gmail.com>
23843
23844 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23845 (Fx_display_pixel_height, Fx_display_planes)
23846 (Fx_display_color_cells, Fx_server_max_request_size)
23847 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23848 (Fx_display_visual_class, Fx_display_save_under):
23849 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23850 (Fx_display_pixel_height, Fx_display_planes)
23851 (Fx_display_color_cells, Fx_server_max_request_size)
23852 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23853 (Fx_display_mm_height, Fx_display_mm_width)
23854 (Fx_display_backing_store, Fx_display_visual_class)
23855 (Fw32_select_font, Fx_display_save_under):
23856 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23857 (Fx_display_pixel_height, Fx_display_planes)
23858 (Fx_display_color_cells, Fx_server_max_request_size)
23859 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23860 (Fx_display_save_under): Fix typos in docstrings.
23861
238622007-11-14 Juanma Barranquero <lekktu@gmail.com>
23863
23864 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23865 corresponding to deleted entries; they are an implementation detail.
23866 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23867 Remove variables.
23868 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23869 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23870 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23871 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23872 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23873 (Fw32_define_rgb_color, Fw32_load_color_file)
23874 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23875 Fix typos in docstrings.
23876 (Fx_server_version): Reflow docstring.
23877 (Fw32_shell_execute): Doc fixes.
23878
238792007-11-13 Juanma Barranquero <lekktu@gmail.com>
23880
23881 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23882 if w32_parse_hot_key returned nil.
23883
238842007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23885
23886 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23887
238882007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23889
aac0c6e3
MR
23890 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23891
23892 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23893
23894 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23895 Remove W32_SCROLL_BAR_CLICK_EVENT.
23896
23897 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23898 Add MULTIMEDIA_KEY_EVENT.
23899
23900 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23901 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23902 (make_lispy_event) [WINDOWSNT]: Use it to translate
23903 MULTIMEDIA_KEY_EVENT.
23904
23905 * w32term.h (WM_APPCOMMAND): Define if not already.
23906 (GET_APPCOMMAND_LPARAM): Likewise.
23907
23908 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23909 WM_APPCOMMAND.
23910
23911 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23912 (syms_of_w32fns): Export and initialize it.
23913 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23914
239152007-11-09 Chong Yidong <cyd@stupidchicken.com>
23916
23917 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23918 twice.
23919
23920 * xdisp.c (handle_face_prop): Fix last change.
23921
239222007-11-09 Richard Stallman <rms@gnu.org>
23923
23924 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23925 not just for after-strings and before-strings.
23926 Call face_for_overlay_string and pass the overlay to it.
23927 (handle_display_prop): Determine whether property came from an overlay.
23928 Pass OVERLAY arg to handle_single_display_spec.
23929 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23930 (load_overlay_strings): Fill in it->string_overlays.
23931 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23932
23933 * xfaces.c (face_for_overlay_string): Function renamed from
23934 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23935
23936 * dispextern.h (struct it): New elt string_overlays.
23937 New elt from_overlay, also in stack.
23938 Rearrange a few elements.
23939 (face_for_overlay_string): Decl renamed from
23940 face_at_buffer_position_no_overlays, and add argument.
23941
239422007-11-09 Richard Stallman <rms@gnu.org>
23943
23944 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23945 to get the base face for an overlay string.
23946
23947 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23948
23949 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23950
23951 * xdisp.c (handle_stop): Move some code out of loop.
23952
239532007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23954
23955 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23956 Fix conversion from Lisp object to ATSUFontID.
23957
239582007-11-09 Jason Rumney <jasonr@gnu.org>
23959
23960 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23961
239622007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23963
23964 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23965 Don't assume regions are aligned to page boundary.
23966 (print_load_command_name): Add LC_UUID if defined.
23967
239682007-11-09 Richard Stallman <rms@gnu.org>
23969
23970 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23971
239722007-11-07 Jason Rumney <jasonr@gnu.org>
23973
23974 * s/windows95.h: Remove.
23975
239762007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23977
23978 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23979 abort with a message on unhandled store_type values.
23980
239812007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23982
23983 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23984 Remove HAVE_X11R5 and HAVE_X11R4.
23985
239862007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23987
23988 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23989
239902007-11-01 Johan Bockgård <bojohan@gnu.org>
23991
23992 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23993 Don't set s->stippled_p here, since it has already been set by
23994 x_set_glyph_string_gc from x_draw_glyph_string.
23995
239962007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23997
23998 * sunfns.c: Remove file.
23999
24000 * m/sun386.h:
24001 * m/sun2.h:
24002 * m/sparc.h: Remove Sun windows code.
24003
240042007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24005
24006 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24007 (init_keyboard): Set current_kboard's window-system to nil.
24008 (tty_read_avail_input): Typo.
24009 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24010
240112007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24012
24013 * s/usg5-4.h:
24014 * s/usg5-3.h:
24015 * s/ptx.h:
24016 * m/is386.h:
24017 * m/ibmps2-aix.h:
24018 * Makefile.in: Remove all mentions of X10.
24019
24020 * dispnew.c (syms_of_display): Don't mention version 10.
24021
240222007-10-28 Juanma Barranquero <lekktu@gmail.com>
24023
24024 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24025 ($(BLD)/abbrev.$(O)): Remove.
24026
240272007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24028
24029 Rewrite abbrev.c in Elisp.
24030 * image.c (Qcount): Don't declare as extern.
24031 (syms_of_image): Initialize and staticpro `Qcount'.
24032 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24033 * emacs.c (main): Don't call syms_of_abbrev.
24034 * Makefile.in (obj): Remove abbrev.o.
24035 (abbrev.o): Remove.
24036 * abbrev.c: Remove.
24037
240382007-10-26 Martin Rudalics <rudalics@gmx.at>
24039
24040 * window.c (window_min_size_2): Don't count header-line.
24041
240422007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24043
24044 * frame.h (struct frame): Move all bit fields after the first bit
24045 field to take advantage of the available space. Group all the
24046 chars together to reduce wasted space due to padding.
24047
240482007-10-26 Juanma Barranquero <lekktu@gmail.com>
24049
24050 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24051
24052 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24053 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24054 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24055 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24056 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24057 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24058 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24059 (last_marked, mark_object_loop_halt): Make static.
24060
24061 * frame.c (syms_of_frame) <delete-frame-functions>:
24062 Fix typo in docstring.
24063
240642007-10-25 Juanma Barranquero <lekktu@gmail.com>
24065
24066 * w32.c (init_environment): Fix tiny memory leak.
24067 (w32_get_resource): Remove unused variable `ok'.
24068
240692007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24070
24071 Make `window-system' into a keyboard-local variable (rather than
24072 frame-local as done originally by multi-tty).
24073
24074 * keyboard.h (struct kboard): Add Vwindow_system.
24075 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24076 (mark_kboards): Mark Vwindow_system.
24077
24078 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24079 (init_display): Don't set the obsolete `window-system' frame-param.
24080
24081 * xterm.c (x_term_init):
24082 * w32term.c (w32_create_terminal):
24083 * term.c (init_tty): Set Vwindow_system.
24084 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24085 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24086
24087 * xfns.c (Fx_create_frame, x_create_tip_frame):
24088 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24089 * macfns.c (Fx_create_frame):
24090 Don't set the obsolete `window-system' frame-param.
24091
24092 * frame.h (Qwindow_system): Remove.
24093 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24094 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24095
240962007-10-24 Richard Stallman <rms@gnu.org>
24097
24098 * frame.c (x_figure_window_size): For fullscreen case,
24099 set USPosition | PPosition without clobbering rest of window_prompting.
24100
24101 * keyboard.c (Fcurrent_idle_time): Doc fix.
24102
24103 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24104
241052007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24106
24107 * process.c (unwind_request_sigio): Only define if __ultrix__.
24108
24109 * callproc.c (child_setup): Remove spurious *.
24110
24111 * lisp.h (Fget_text_property): Declare.
24112 (have_menus_p): Declare it here rather than in sys-dep header files.
24113 * macterm.h (have_menus_p):
24114 * msdos.h (have_menus_p):
24115 * xterm.h (have_menus_p): Remove.
24116
24117 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24118 (Fmake_variable_frame_local): Just check the variable's const-ness
24119 rather than checking nil or t.
24120
241212007-10-22 Jason Rumney <jasonr@gnu.org>
24122
24123 * w32fns.c: Include math.h.
24124 (w32_abort): Declaration moved to nt/config.nt.
24125
24126 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24127 (abort): Redefinition moved to nt/config.nt.
24128
24129 * m/windowsnt.h: Remove.
24130
241312007-10-22 Juanma Barranquero <lekktu@gmail.com>
24132
24133 * emacs.c (Fdump_emacs): Fix typo in message.
24134 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24135 <installation-directory>: Reflow docstring.
24136
241372007-10-22 Juri Linkov <juri@jurta.org>
24138
24139 * minibuf.c: Allow minibuffer default to be a list of default values.
24140 With empty input use the first element of this list as returned default.
24141 (string_to_object)
24142 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24143 (read_minibuf): If defalt is cons, set histstring to its car.
24144 (Fread_string): If default_value is cons, set val to its car.
24145 (Fread_buffer): If def is cons, use its car.
24146 (Fcompleting_read): If defalt is cons, set val to its car.
24147
241482007-10-21 Michael Albinus <michael.albinus@gmx.de>
24149
24150 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24151
241522007-10-20 Juanma Barranquero <lekktu@gmail.com>
24153
24154 * doc.c (Fdocumentation): Check for advice in all cases.
24155
241562007-10-19 Chong Yidong <cyd@stupidchicken.com>
24157
24158 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24159
241602007-10-19 Richard Stallman <rms@gnu.org>
24161
24162 * doc.c (Fdocumentation): Check for and handle an advised function.
24163
241642007-10-19 Juanma Barranquero <lekktu@gmail.com>
24165
24166 * process.c (Fset_process_filter): Doc fix.
24167
241682007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24169
24170 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24171 which caused key-translation-map to applied repeatedly (thus breaking
24172 double-mode).
24173
241742007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24175
24176 * xselect.c (x_own_selection, x_handle_selection_clear)
24177 (x_clear_frame_selections):
24178 * w32menu.c (list_of_panes, list_of_items):
24179 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24180 * textprop.c (validate_plist, interval_has_all_properties)
24181 (interval_has_some_properties, interval_has_some_properties_list)
24182 (add_properties, text_property_list):
24183 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24184 * minibuf.c (Fassoc_string):
24185 * macselect.c (x_own_selection, x_clear_frame_selections)
24186 (Fx_disown_selection_internal):
24187 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24188 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24189
241902007-10-17 Chong Yidong <cyd@stupidchicken.com>
24191
24192 * process.c: Link to libs for calling res_init() if available.
24193 (Fmake_network_process): Call res_init() before getaddrinfo or
24194 gethostbyname, if possible.
24195
241962007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24197
24198 * lread.c (read1): Set pvectype for char_tables.
24199
24200 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24201 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24202 Add type checks.
24203 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24204
24205 * alloc.c (free_misc): Use XMISCTYPE.
24206 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24207
242082007-10-17 Glenn Morris <rgm@gnu.org>
24209
24210 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24211 (syms_of_minibuf): Add Qcompletion_ignore_case.
24212 * dired.c (Qcompletion_ignore_case): Change to external.
24213 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24214 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24215 (Fread_file_name): Use it rather than intern'ing.
24216
24217 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24218 (Fread_coding_system): Ignore case of user input.
24219
242202007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24221
24222 * xdisp.c (handle_display_prop): Ignore display specs after
24223 replacing one when string text is being replaced.
24224 (handle_single_display_spec): Pretend as if characters with display
24225 property haven't been consumed only when buffer text is being replaced.
24226
242272007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24228
24229 * xfns.c (Fx_create_frame, Fx_display_list):
24230 * window.c (window_fixed_size_p, enlarge_window)
24231 (shrink_window_lowest_first):
24232 * macterm.c (init_font_name_table):
24233 * macfns.c (Fx_create_frame, Fx_display_list):
24234 * lread.c (close_load_descs):
24235 * keyboard.c (read_char_x_menu_prompt):
24236 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24237 * coding.c (code_convert_region_unwind): Test the type of an object
24238 rather than just !NILP before extracting data from it.
24239
24240 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24241
24242 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24243 (XMISCANY): New macro.
24244 (XMISCTYPE): Use it.
24245 (struct Lisp_Misc_Any): New type.
24246 (union Lisp_Misc): Use it.
24247 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24248 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24249 (find_symbol_value, set_internal, default_value, Fset_default)
24250 (Fmake_variable_buffer_local, Fmake_local_variable)
24251 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24252 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24253 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24254 * alloc.c (allocate_buffer): Set the size and tag.
24255 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24256 Use XMISCANY.
24257 (die): Follow the GNU convention for error messages.
24258 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24259 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24260 tag any more.
24261 (set_buffer_internal_1):
24262 * frame.c (store_frame_param):
24263 * eval.c (specbind):
24264 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24265
24266 * doc.c (Fsnarf_documentation): Simplify.
24267
242682007-10-14 Juanma Barranquero <lekktu@gmail.com>
24269
24270 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24271 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24272
242732007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24274
24275 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24276
242772007-10-14 Juanma Barranquero <lekktu@gmail.com>
24278
24279 * eval.c (do_autoload): Don't save autoloads.
24280
24281 * data.c (Ffset): Save autoload of the function being set.
24282
242832007-10-07 John Paul Wallington <jpw@pobox.com>
24284
24285 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24286 parameter before setting up faces.
24287
242882007-10-13 Eli Zaretskii <eliz@gnu.org>
24289
24290 * ccl.c (Fregister_code_conversion_map):
24291 * keyboard.c (append_tool_bar_item): Reformat last change.
24292
24293 * lisp.h (eabs): Rename from `abs'. All callers changed.
24294
242952007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24296
24297 * buffer.c (add_overlay_mod_hooklist):
24298 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24299 * fontset.c (make_fontset):
24300 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24301 (append_tool_bar_item):
24302 * macmenu.c (grow_menu_items):
24303 * w32menu.c (grow_menu_items):
24304 * xmenu.c (grow_menu_items): Use larger_vector.
24305
243062007-10-13 Eli Zaretskii <eliz@gnu.org>
24307
24308 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24309 selected frame'' on MSDOS).
24310
243112007-10-12 Martin Rudalics <rudalics@gmx.at>
24312
24313 * frame.c (Qexplicit_name): New variable.
24314 (x_report_frame_params): Report it in parameter alist.
24315 (syms_of_frame): Intern and staticpro it.
24316
243172007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24318
24319 * macfns.c (x_create_tip_frame): Set terminal for frame.
24320
243212007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24322
24323 * frame.c (Qenvironment): Remove.
24324 (syms_of_frame) <Qenvironment>: Don't initialize.
24325 (Fdelete_frame): Don't treat the `environment' param specially.
24326 * frame.h (Qenvironment): Don't declare.
24327 * callproc.c (set_initial_environment): Don't set unused frame param.
24328
24329 * frame.c (Fframe_with_environment): Remove.
24330 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24331
24332 * lisp.h (Fframe_with_environment): Don't declare.
24333
243342007-10-10 Juanma Barranquero <lekktu@gmail.com>
24335
24336 * indent.c (indent_tabs_mode, last_known_column)
24337 (last_known_column_modified): Make static.
24338 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24339
243402007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24341
24342 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24343
243442007-10-09 Jason Rumney <jasonr@gnu.org>
24345
24346 * w32term.c (x_set_window_size): Disable code that attempts to tell
24347 Lisp code about a size change before it actually happens.
24348
243492007-10-09 Richard Stallman <rms@gnu.org>
24350
24351 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24352 return HANDLED_RETURN.
24353
243542007-10-08 Martin Rudalics <rudalics@gmx.at>
24355
24356 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24357 when there's an unread command event.
24358
24359 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24360 window autoselection act appropriately when leaving selected frame.
24361 (syms_of_frame): Initialize focus_follows_mouse.
24362 * frame.h (focus_follows_mouse): Extern it.
24363 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24364 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24365 * msdos.c (dos_rawgetc): Likewise.
24366 * w32term.c (w32_read_socket): Likewise.
24367 * xterm.c (handle_one_xevent): Likewise.
24368 * xdisp.c (syms_of_xdisp): In doc-string of
24369 mouse-autoselect-window mention focus-follows-mouse.
24370
243712007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24372
24373 * macterm.c (mac_load_query_font): Fix missing return value.
24374 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24375 Add BLOCK_INPUT.
24376
243772007-10-08 Richard Stallman <rms@gnu.org>
24378
24379 * xdisp.c (get_window_cursor_type): Implement documented behavior
24380 for cursor-in-non-selected-windows = t.
24381
243822007-10-08 Jason Rumney <jasonr@gnu.org>
24383
24384 * w32.c (w32_get_resource): Always close registry keys.
24385
243862007-10-08 Jason Rumney <jasonr@gnu.org>
24387
24388 * makefile.w32-in (LIBS): Add COMCTL32.
24389
24390 * w32fns.c (globals_of_w32fns): Init common controls.
24391
243922007-10-08 Richard Stallman <rms@gnu.org>
24393
24394 * image.c (our_memory_buffer): Rename from omfib_buffer.
24395
243962007-10-08 Richard Stallman <rms@gnu.org>
24397
24398 * buffer.c (Foverlays_at): Doc fix.
24399
244002007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24401
24402 * fns.c (Fplist_put): Preserve uneven tail data.
24403
244042007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24405
24406 * termhooks.h (enum event_kind): Remove trailing comma.
24407
24408 * frame.h (enum): Remove trailing comma.
24409
244102007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24411
24412 * w32proc.c (delete_child): Don't terminate threads of zombies.
24413
244142007-10-08 Martin Rudalics <rudalics@gmx.at>
24415
24416 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24417
24418 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24419 last-repeatable-command.
24420 (init_kboard): Initialize Vlast_repeatable_command.
24421 (command_loop_1): Set it to real_this_command unless that was
24422 bound to an input event.
24423 (mark_kboards): Mark it.
24424
244252007-10-08 Richard Stallman <rms@gnu.org>
24426
24427 * eval.c (condition-case): Doc fix.
24428
244292007-10-08 Masatake YAMATO <jet@gyve.org>
24430
24431 * xfaces.c (tty_supports_face_attributes_p): Fix code
24432 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24433 was copied and not edited.
24434
244352007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24436
24437 Add new `input-decode-map' keymap and use it for terminal
24438 escape sequences.
24439 * keyboard.h (struct kboard): Add Vinput_decode_map.
24440 Remove Vlocal_key_translation_map.
24441 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24442 (init_kboard): Init input-decode-map.
24443 Replace local-key-translation-map back with key-translation-map.
24444 (syms_of_keyboard): Declare input-decode-map.
24445 Remove local-key-translation-map. Update docstrings.
24446 (mark_kboards): Mark Vinput_decode_map.
24447 Don't mark Vlocal_key_translation_map.
24448 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24449 Replace local-key-translation-map back with key-translation-map.
24450 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24451 Bind in input-decode-map rather than function-key-map.
24452
24453 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24454 This was made redundant by the previous introduction of XSETPVECTYPE.
24455
244562007-10-09 Richard Stallman <rms@gnu.org>
24457
24458 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24459
244602007-09-29 Richard Stallman <rms@gnu.org>
24461
24462 * eval.c (internal_condition_case_2, internal_condition_case_1)
24463 (internal_condition_case): Reenable abort if x_catching_errors ()
24464 to see if that really happens and why.
24465
244662007-10-06 Andreas Schwab <schwab@suse.de>
24467
24468 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24469
244702007-10-04 Juanma Barranquero <lekktu@gmail.com>
24471
24472 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24473
244742007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24475
24476 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24477
244782007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24479
24480 * window.h (struct window):
24481 * window.c (struct save_window_data, struct saved_window):
24482 * termhooks.h (struct terminal):
24483 * process.h (struct Lisp_Process):
24484 * frame.h (struct frame):
24485 * buffer.h (struct buffer):
24486 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24487 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24488 The size field of (pseudo)vectors is now unsigned.
24489 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24490
24491 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24492 Turn `count' into an integer.
24493
24494 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24495 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24496 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24497 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24498 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24499
24500 * alloc.c (allocate_pseudovector): New fun.
24501 (ALLOCATE_PSEUDOVECTOR): New macro.
24502 (allocate_window, allocate_terminal, allocate_frame)
24503 (allocate_process): Use it.
24504 (mark_vectorlike): New function.
24505 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24506 (mark_terminals): Use it.
24507 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24508 (Fmake_byte_code): Use XSETPVECTYPE.
24509
24510 * frame.c (Fframe_parameters): Minor simplification.
24511
24512 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24513
24514 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24515
24516 * buffer.c (Fget_buffer_create, init_buffer_once):
24517 * lread.c (defsubr):
24518 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24519
24520 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24521 defined differently in the m/*.h files.
24522 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24523 (XSETPVECTYPE): New macro.
24524 (XSETPSEUDOVECTOR): Use it.
24525
24526 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24527 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24528
24529 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24530 * lread.c (defvar_per_buffer):
24531 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24532
24533 * window.c (candidate_window_p): Only consider as visible frames that
24534 are on the same terminal.
24535
24536 * m/ibms390x.h (MARKBIT): Remove unused macro.
24537
245382007-10-01 Juanma Barranquero <lekktu@gmail.com>
24539
24540 * lread.c (Fload): Fix typo in docstring.
24541
245422007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24543
24544 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24545 of a non-zero value can't yield zero.
24546
245472007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24548
24549 * term.c (term_clear_mouse_face, term_mouse_highlight)
24550 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24551
24552 * print.c (safe_debug_print): Use XHASH.
24553
24554 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24555 Lisp elements such as tags.
24556 (XHASH): New macro.
24557 (EQ): Use it.
24558 (SREF, SSET, STRING_COPYIN): Use SDATA.
24559 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24560
24561 * alloc.c (mark_terminal): Remove left-over declaration.
24562 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24563 (allocate_vectorlike): Remove type argument. Adjust callers.
24564 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24565 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24566
24567 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24568 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24569 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24570 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24571 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24572 Use them.
24573
24574 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24575 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24576 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24577
245782007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24579
24580 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24581 loaded by default.
24582
245832007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24584
24585 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24586 on this tty.
24587 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24588
24589 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24590 Update all users.
24591 (handle_one_term_event): Use Gpm_DrawPointer.
24592 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24593 Signal errors instead of returning nil. Always return nil.
24594 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24595 Make it a noop if gpm-mouse was not activated.
24596 (syms_of_term): Update names.
24597
245982007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24599
24600 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24601 (init_sys_modes): Check that gpm_tty is the current tty.
24602
24603 * alloc.c (allocate_terminal): Set the vector size to only count the
24604 lisp fields. Initialize those to nil.
24605 (mark_object): Don't treat terminals specially.
24606 (mark_terminal): Remove.
24607 (mark_terminals): Use mark_object instead.
24608
24609 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24610 the GC to the beginning.
24611
24612 * indent.h:
24613 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24614
24615 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24616
246172007-09-25 Jason Rumney <jasonr@gnu.org>
24618
24619 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24620
24621 * w32console.c (create_w32cons_output): Remove.
24622
24623 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24624
24625 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24626 (reset_sys_modes): Use reset_terminal_modes_hook.
24627
246282007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24629
24630 * eval.c (do_autoload): Don't output any message.
24631
246322007-09-24 Juri Linkov <juri@jurta.org>
24633
24634 * emacs.c (standard_args): Change priority of "--no-splash"
24635 from 40 to 3. Add "--no-desktop" with the same priority.
24636
246372007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24638
24639 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24640 and optimize the case where they are all 1.
24641
246422007-09-23 Johannes Weiner <hannes@saeurebad.de>
24643
24644 * lisp.h (abs): Define if not defined.
24645 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24646 Don't define `abs', since it's defined in lisp.h.
24647
246482007-09-22 Eli Zaretskii <eliz@gnu.org>
24649
24650 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24651 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24652 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24653 (init_tty): Use DEV_TTY instead of "/dev/tty".
24654 [WINDOWSNT]: No need to protect from NAME arg being null.
24655
246562007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24657
24658 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24659 up the tty state.
24660
246612007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24662
24663 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24664 (gpm_tty): Change its type.
24665 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24666 (gpm_tty): Change its type and initialize it.
24667 (Fterm_open_connection): Check the frame is indeed a tty.
24668 Use the new gpm_tty.
24669 (Fterm_close_connection): Use the new gpm_tty.
24670 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24671 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24672
246732007-09-21 Juanma Barranquero <lekktu@gmail.com>
24674
24675 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24676 underline_color, to draw strike-through.
24677
246782007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24679
24680 * lisp.h (allocate_terminal): Declare.
24681
24682 * window.c (candidate_window_p): Consider frames that are being placed
24683 by the user as somewhere between visible and iconified.
24684 (window_loop): Prefer windows on the current frame.
24685 (Fselect_window): Move the use of select-frame to the beginning so we
24686 can just delegate all the work (it'll call us back anyway).
24687
24688 * frame.c (Qdisplay_environment_variable):
24689 * frame.h (Qdisplay_environment_variable): Delete.
24690
24691 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24692 of the first arg, since that value may be a union.
24693
24694 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24695 parameter rather than Qdisplay_environment_variable. If all else
24696 fails, look for DISPLAY in initial-environment.
24697
246982007-09-21 Glenn Morris <rgm@gnu.org>
24699
24700 * Makefile.in (emacstool): Remove target.
24701 (lisp, shortlisp): Remove termdev.elc.
24702
247032007-09-21 Markus Triska <markus.triska@gmx.at>
24704
24705 * xterm.c (x_delete_display): Compile session management conditionally.
24706
247072007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24708
24709 * callproc.c (getenv_internal_1): New function.
24710 (getenv_internal): Use it.
24711 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24712
24713 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24714 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24715 (Fset_terminal_parameter): Work with dead terminals as well.
24716 (Fmodify_terminal_parameters): Remove.
24717
24718 * terminal.c (get_terminal): Handle terminals.
24719 Make sure the terminal returned is live.
24720 (create_terminal): Use allocate_terminal.
24721 (mark_terminals): Move to alloc.c.
24722 (delete_terminal): Use terminal->name as liveness status.
24723 NULL out fields after freeing their contents.
24724 Don't deallocate the object.
24725 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24726 rather than an int.
24727 (Fterminal_live_p): Accept non-integer arguments.
24728 (Fterminal_list): Return terminal objects rather than an ints.
24729
24730 * alloc.c (enum mem_type): New member for `terminal' objects.
24731 (allocate_terminal): New function.
24732 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24733 Handle terminals.
24734 (mark_terminal): New fun.
24735 (mark_terminals): Move from terminal.c.
24736
24737 * term.c (get_tty_terminal): Don't treat output_initial specially.
24738 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24739 (delete_tty): Use terminal->name as liveness status.
24740
24741 * termhooks.h (struct terminal): Make it into a pseudovector.
24742 Remove `deleted' replaced by checking `name's nullness.
24743
24744 * print.c (print_object): Handle terminals.
24745
24746 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24747 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24748
24749 * frame.c (make_terminal_frame):
24750 * keyboard.c (tty_read_avail_input):
24751 * w32term.c (x_delete_terminal):
24752 * xfns.c (Fx_create_frame, x_create_tip_frame):
24753 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24754
247552007-09-20 Glenn Morris <rgm@gnu.org>
24756
24757 * process.c (Fmake_network_process): Doc fix.
24758
247592007-09-19 Jason Rumney <jasonr@gnu.org>
24760
24761 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24762
247632007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24764
24765 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24766 Fix a C warning regarding variable constness.
24767
24768 * xterm.c (handle_one_xevent): Fix a C warning.
24769
247702007-09-18 Jason Rumney <jasonr@gnu.org>
24771
24772 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24773
247742007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24775
24776 * gtkutil.c (gdpy_def): New variable.
24777 (xg_initialize): Initialize gdpy_def.
24778 (xg_display_close): If no other display exists, set gdpy_def to a
24779 new connection.
24780
247812007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24782
24783 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24784 when we have no file name for the icon.
24785 (xg_tool_bar_expose_callback): Remove.
24786 (xg_create_tool_bar): Don't connect expose signal to
24787 xg_tool_bar_expose_callback.
24788 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24789
247902007-09-16 Andreas Schwab <schwab@suse.de>
24791
24792 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24793 values instead of zapping them.
24794
247952007-09-14 Glenn Morris <rgm@gnu.org>
24796
24797 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24798 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24799 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24800 scope and rename to omfib_buffer for clarity.
24801 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24802
248032007-09-14 Kenichi Handa <handa@m17n.org>
24804
24805 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24806
248072007-09-13 Jason Rumney <jasonr@gnu.org>
24808
24809 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24810
24811 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24812
24813 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24814 (mac_term_init): Call here instead, passing rif.
24815
248162007-09-13 Glenn Morris <rgm@gnu.org>
24817
24818 * s/hpux.h: No longer define `static' as nothing.
24819
248202007-09-13 Johan Bockgård <bojohan@gnu.org>
24821
24822 * callint.c (Fcall_interactively): Remove unused var `fun'.
24823
248242007-09-12 Romain Francoise <romain@orebokech.com>
24825
24826 * window.c (prefer_window_split_horizontally, display_buffer):
24827 Revert 2007-09-08 change.
24828
248292007-09-12 Glenn Morris <rgm@gnu.org>
24830
24831 * alloca.c: Remove file.
24832 * Makefile.in (alloca): Do not undef.
24833 (allocaobj, alloca.o): Remove.
24834 (otherobj): Remove allocaobj.
24835 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24836 * regex.c (C_ALLOCA): Remove all references and code that was only
24837 used when this was defined.
24838 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24839 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24840 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24841
24842 * Makefile.in (SOURCES, unlock, relock): Delete.
24843
24844 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24845 (menu_grab_callback): All uses changed.
24846
24847 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24848 (x_reply_selection_request): All uses changed.
24849
248502007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24851
24852 * lread.c (load_warn_old_style_backquotes): Change message to look
24853 better when it appears in the middle of byte-compiler messages.
24854
248552007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24856
24857 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24858
24859 * xterm.c (x_create_terminal): Add comment.
24860
24861 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24862
248632007-09-10 Richard Stallman <rms@gnu.org>
24864
24865 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24866
248672007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24868
24869 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24870 (DEFUN): Document `intspec', use it instead of `prompt'.
24871
24872 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24873
24874 * data.c (Finteractive_form): If the interactive specification starts
24875 with a `(', use it as a Lisp form.
24876
24877 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24878 name and file modes.
24879
24880 * callint.c (Fcall_interactively): Comment fixes.
24881
248822007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24883
24884 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24885 and compiled functions.
24886
248872007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24888
24889 * window.c (prefer_window_split_horizontally): New variable.
24890 (display_buffer): Consider splitting window horizontally depending
24891 on prefer_window_split_horizontally.
24892
248932007-09-08 Eli Zaretskii <eliz@gnu.org>
24894
24895 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24896
248972007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24898
24899 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24900
24901 * frame.c (x_set_frame_parameters): Check number is positive before
24902 using XFASTINT.
24903
24904 * window.c (freeze_window_start): Don't presume selected_window holds
24905 a window object.
24906 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24907
249082007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24909
24910 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24911
249122007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24913
24914 * window.c (Vsplit_window_preferred_function): New var.
24915 (Fdisplay_buffer): Use it.
24916 (syms_of_window): Export, and initialize it.
24917
249182007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24919
24920 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24921
249222007-09-06 Glenn Morris <rgm@gnu.org>
24923
24924 * gtkutil.c (menu_grab_callback) <cnt>:
24925 * xselect.c (x_reply_selection_request) <cnt>: Move static
24926 variable to file scope.
24927
249282007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24929
24930 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24931 consistent values of selected_frame and selected_window.
24932
249332007-09-04 Jason Rumney <jasonr@gnu.org>
24934
24935 * w32console.c (initialize_w32_display): Zero unused hooks.
24936
249372007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24938
24939 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24940 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24941
249422007-09-04 Jason Rumney <jasonr@gnu.org>
24943
24944 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24945 in w32console.c. Set up input. Remove XXX comments that have been
24946 confirmed as correct.
24947
24948 * s/ms-w32.h (MULTI_KBOARD): Define.
24949
24950 * w32console.c (one_and_only_w32cons): Remove.
24951 (initialize_w32_display): Take terminal argument.
24952
24953 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24954 initialize_w32_display.
24955 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24956
24957 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24958
24959 * keyboard.c (discard_mouse_events): Discard it.
24960 (make_lispy_event): Translate it to a lisp event.
24961 (lispy_wheel_names): Add wheel-left and right events.
24962 (syms_of_keyboard): Enlarge wheel_syms.
24963
24964 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24965 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24966
24967 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24968
24969 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24970 from WM_MOUSEHWHEEL.
24971 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24972
24973 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24974 terminal.
24975
24976 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24977 keyboard for the terminal.
24978
249792007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24980
24981 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24982 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24983 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24984 and resume-tty-function to resume-tty-hook.
24985 (Fsuspend_tty, Fresume_tty): Use new names.
24986
249872007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24988
24989 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24990 if it starts with "n:".
24991
249922007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24993
24994 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24995
249962007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24997
24998 * frame.h:
24999 * frame.c (Qterm_environment_variable): Remove.
25000 (syms_of_frame): Don't init and staticpro it.
25001
25002 * callproc.c (getenv_internal): Remove special case for $TERM.
25003
25004 * callproc.c (Vinitial_environment): New variable.
25005 (set_initial_environment): Initialize it.
25006 (syms_of_callproc): Declare it.
25007 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25008 TERM under which a process runs is never related to the TERM in which
25009 Emacs is running.
25010
250112007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25012
25013 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25014 * s/darwin.h: ... do it here.
25015
250162007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25017
25018 * lisp.h (set_initial_environment): Rename from set_global_environment.
25019
25020 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25021 removed by mistake on the multi-tty branch.
25022
25023 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25024 (Fmodify_frame_parameters): Return a value.
25025
25026 * image.c (png_load): Comment-out var only used in commented-out code.
25027
25028 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25029 before passing it to mark_object.
25030
25031 * xfaces.c (internal_resolve_face_name): Return a value.
25032 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25033
25034 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25035 (x_icon): Comment-out var only used in commented-out code.
25036
250372007-08-29 Romain Francoise <romain@orebokech.com>
25038
25039 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25040 QUIT hasn't been provided.
25041
250422007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25043
25044 * callproc.c (child_setup, getenv_internal): Use the
25045 display-environment-variable and term-environment-variable frame params.
25046 (set_initial_environment): Initialise Vprocess_environment.
25047
25048 * config.in: Disable multi-keyboard support on a mac.
25049
25050 * frame.c (Qterm_environment_variable)
25051 (Qdisplay_environment_variable): New variables.
25052 (syms_of_frame): Intern and staticpro them.
25053 (Fmake_terminal_frame): Disable output method test.
25054
25055 * frame.h: Declare them here.
25056
25057 * macfns.c (x_set_mouse_color): Get rif from the frame.
25058 (x_set_tool_bar_lines): Don't use updating_frame.
25059 (mac_window): Add 2 new parameters for consistency with other systems.
25060 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25061 frame parameters following what is done in X11 and w32. Don't use
25062 FRAME_MAC_DISPLAY_INFO.
25063 (Fx_open_connection, start_hourglass): Remove window-system check.
25064 (x_create_tip_frame): Get the keyboard from the terminal.
25065
25066 * macmenu.c: Reorder includes.
25067 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25068
25069 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25070 terminal parameter.
25071 (x_clear_frame): Add a frame parameter.
25072 (note_mouse_movement): Get rif from the frame.
25073 (mac_term_init): Initialize the terminal.
25074 (mac_initialize): Make static and move terminal initialization ...
25075 (mac_create_terminal): ... to this new function.
25076
25077 * macterm.h (struct mac_display_info): Add terminal.
25078 (mac_initialize): Delete declaration.
25079
25080 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25081
25082 * sysdep.c: Comment out text after #endif.
25083
25084 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25085 is defined. Better initialize ttys in windows. Use terminal
25086 specific mouse_position_hook.
25087
25088 * termhooks.h (union display_info): Add mac_display_info.
25089
25090 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25091 Set the default minibuffer frame, window_system and the rest of the
25092 frame parameters following what is done in X11.
25093
25094 * w32term.c (w32_initialize): Make static.
25095
25096 * xselect.c (x_handle_selection_clear): Only access
25097 terminal->kboard when MULTI_KBOARD is defined.
25098
25099 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25100 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25101
251022007-08-29 Jason Rumney <jasonr@gnu.org>
25103
25104 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25105 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25106
25107 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25108 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25109
25110 * keyboard.c (restore_kboard_configuration): Only define when
25111 MULTI_KBOARD defined.
25112
25113 * makefile.w32-in: Update dependancies from Makefile.in.
25114 (OBJ1): Add terminal.$(O)
25115
25116 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25117 Don't define function body.
25118 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25119
25120 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25121
25122 * w32.c (request_sigio, unrequest_sigio): Remove.
25123
25124 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25125 (w32con_clear_frame, w32con_clear_end_of_line)
25126 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25127 (w32con_delete_glyphs, w32con_set_terminal_window)
25128 (scroll_line, w32_sys_ring_bell): Add frame arg.
25129 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25130 Add terminal arg.
25131 (PICK_FRAME): Remove.
25132 (w32con_write_glyphs): Use frame specific terminal coding.
25133 (one_and_only_w32cons): New global variable.
25134 (initialize_w32_display): Use it for storing hooks.
25135 (create_w32cons_output): New function.
25136
25137 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25138 arg a frame.
25139
25140 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25141 Set window_system.
25142 (x_set_tool_bar_lines): Don't use updating_frame.
25143 (Fx_create_frame): Set terminal and ref count.
25144 (Fx_open_connection): Remove window-system check.
25145
25146 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25147
25148 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25149 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25150 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25151 Add frame arg.
25152 (x_delete_terminal, w32_create_terminal): New functions.
25153 (w32_term_init): Create a terminal.
25154 (w32_initialize): Move terminal specific initialization to
25155 w32_create_terminal.
25156
25157 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25158 (w32_clear_rect, w32_clear_area): Use background from frame.
25159 (w32_display_info): Add terminal.
25160 (w32_sys_ring_bell, x_delete_display): Declare here.
25161
25162 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25163
25164 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25165
251662007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25167
25168 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25169 Fix get_named_tty calls for the controlling tty.
25170
251712007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25172
194d44e7 25173 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
25174
251752007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25176
25177 * term.c (tty_insert_glyphs): Add missing first parameter.
25178
251792007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25180
25181 * buffer.c (Fbuffer_list, Fbury_buffer):
25182 Take frame->buried_buffer_list into account.
25183
25184 * cm.c (current_tty): New variable, for cmputc().
25185 (cmputc): Use it.
25186 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25187 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25188 (cmgoto): Add tty parameter. Pass it on to calccost().
25189 Use emacs_tputs() instead of tputs().
25190
25191 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25192 tputs().
25193 (current_tty): New variable, for cmputc().
25194 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25195
25196 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25197 (internal_condition_case, internal_condition_case_1)
25198 (internal_condition_case_2): Don't abort when x_catching_errors.
25199
25200 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25201 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25202 prevent crashes caused by bogus longjmps in read_char.
25203
25204 * keymap.h (Fset_keymap_parent): Add EXFUN.
25205
25206 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25207 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25208 Remove redundant definition.
25209
25210 * macfns.c (x_set_mouse_color, x_make_gc):
25211 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25212
25213 * w32term.c (x_free_frame_resources):
25214 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25215 (w32_initialize): Use the accessor macros for terminal characteristics.
25216
25217 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25218 Use the accessor macros for terminal characteristics.
25219 * msdos.c (internal_terminal_init): Use the accessor macros for
25220 terminal characteristics.
25221 (ScreenVisualBell, internal_terminal_init):
25222 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25223
25224 * termopts.h (no_redraw_on_reenter): Declare.
25225
25226 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25227 (mark_terminals, mark_ttys): Declare.
25228 (Fgarbage_collect): Call them.
25229 (mark_object): Mark buried_buffer_list.
25230
25231 * prefix-args.c: Include stdlib.h for exit.
25232
25233 * syssignal.h: Add comment.
25234
25235 * indent.c: Include stdio.h.
25236
25237 * window.h (Vinitial_window_system): Declare.
25238 (Vwindow_system): Delete declaration.
25239
25240 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25241
25242 * image.c (lookup_image): Don't initialize `c' until the xasserts
25243 have been run.
25244
25245 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25246 FRAME_FOREGROUND_PIXEL.
25247
25248 * print.c (print_preprocess): Don't lose print_depth levels while
25249 iterating.
25250
25251 * widget.c (update_from_various_frame_slots):
25252 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25253
25254 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25255 frames.
25256 (window_internal_height): Remove bogus make_number call.
25257 (init_window_once): Call make_terminal_frame with two zero parameters.
25258
25259 * fileio.c (Fread_file_name): Update comment.
25260
25261 * callint.c (Fcall_interactively):
25262 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25263 Make sure it is correctly unwound.
25264
25265 * xsmfns.c (x_session_close): New function.
25266
25267 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25268 Delete declarations.
25269
25270 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25271 (x_output): Remove background_pixel and foreground_pixel fields.
25272 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25273 (x_delete_device, x_session_close): Declare.
25274
25275 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25276 (read_filtered_event): Call `read_char' with a local
25277 `wrong_kboard_jmpbuf'.
25278
25279 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25280 Don't call single_kboard_state. Use FRAME_RIF.
25281
25282 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25283 systems.
25284
25285 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25286 (Fframe_with_environment, Fset_input_meta_mode)
25287 (Fset_quit_char): EXFUN.
25288 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25289 (init_sys_modes, reset_sys_modes): Update prototypes.
25290 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25291
25292 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25293 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25294 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25295 Delete declarations.
25296 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25297 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25298 New declarations.
25299
25300 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25301 already does that during init_display(). Call syms_of_keymap
25302 before syms_of_keyboard. Call `syms_of_terminal'.
25303 Call set_initial_environment, not set_process_environment.
25304 (shut_down_emacs): Call reset_all_sys_modes() instead of
25305 reset_sys_modes().
25306
25307 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25308 (internal_resolve_face_name, resolve_face_name_error): New functions.
25309 (resolve_face_name): Protect against loops and errors thrown by Fget.
25310 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25311 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25312
25313 * scroll.c: Replace CURTTY() with local variables throughout the
25314 file (where applicable).
25315 (calculate_scrolling, calculate_direct_scrolling)
25316 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25317 characteristics.
25318
25319 * keymap.c (Vfunction_key_map): Remove.
25320 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25321 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25322 (Vkey_translation_map): Remove.
25323 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25324 (Fdescribe_buffer_bindings)
25325 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25326 Update for terminal-local key-translation-map.
25327
25328 * Makefile.in (callproc.o): Update dependencies.
25329 (lisp, shortlisp): Add termdev.elc.
25330 (obj): Add terminal.o.
25331 (terminal.o): Add dependencies.
25332 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25333 (data.o, fns.o): Add termhooks.h dependency.
25334 (SOME_MACHINE_LISP): Add dnd.elc.
25335 (minibuf.o): Fix typo.
25336 Update dependencies.
25337
25338 * data.c (do_symval_forwarding, store_symval_forwarding)
25339 (find_symbol_value): Use the selected frame's keyboard, not
25340 current_kboard.
25341
25342 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25343 Vwindow_system.
25344
25345 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25346 Fmenu_bar_open.
25347 (syms_of_xmenu): Update defsubr.
25348 (mouse_position_for_popup, Fx_popup_menu)
25349 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25350 (set_frame_menubar, free_frame_menubar)
b97439ce 25351 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
25352 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25353 an X frame.
25354
25355 * xselect.c (x_own_selection): Abort if not an X frame.
25356 (some_frame_on_display): Check if it is an X frame.
25357 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25358
25359 * coding.c: Include frame.h and termhooks.h.
25360 (terminal_coding, keyboard_coding): Delete.
25361 (Fset_terminal_coding_system_internal)
25362 (Fset_keyboard_coding_system_internal)
25363 (Fkeyboard_coding_system)
25364 (Fterminal_coding_system): Add a terminal parameter.
25365 Get terminal_coding from the terminal.
25366 (init_coding_once): Don't call setup_coding_system here.
25367
25368 * dispextern.h (set_scroll_region, turn_off_insert)
25369 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25370 (tty_clear_end_of_line, tty_setup_colors)
25371 (delete_tty, updating_frame)
25372 (produce_special_glyphs, produce_glyphs, write_glyphs)
25373 (insert_glyphs): Remove.
25374 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25375 (tty_turn_off_highlight, get_tty_size): Add declaration.
25376 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25377
25378 * frame.h (enum output_method): Add output_initial.
25379 (struct x_output): Delete.
25380 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25381 Access foreground_pixel and background_pixel directly from the frame.
25382 (tty_display): Delete.
25383 (struct frame): Add buried_buffer_list, foreground_pixel,
25384 background_pixel and terminal. Delete kboard.
25385 (union output_data): Add tty.
25386 (FRAME_KBOARD): Get the kboard from the terminal.
25387 (FRAME_INITIAL_P): New macro.
25388 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25389 (Qterm_environment_variable, Qdisplay_environment_variable)
25390 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25391 New declarations.
25392
25393 * termchar.h (tty_output, tty_display_info): New structures.
25394 (tty_list): Declare.
25395 (FRAME_TTY, CURTTY): New macros.
25396 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25397 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25398 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25399 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25400
25401 * callproc.c: Include frame.h and termhooks.h, for terminal
25402 parameters.
25403 (add_env): New function.
25404 (child_setup): Use it.
25405 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25406 (getenv_internal): Fix get_terminal_param call.
25407 (Fgetenv_internal, egetenv): Update doc.
25408 (syms_of_callproc): Initialize Vprocess_environment to nil.
25409 Register and initialize them. Remove obsolete defvars. Update doc
25410 strings.
25411 (child_setup): Handle Vlocal_environment_variables.
25412 (getenv_internal): Add terminal parameter.
25413 Handle Vlocal_environment_variables.
25414 (Fgetenv_internal): Add terminal parameter.
25415 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25416 environment in a frame (not terminal) parameter. Update doc strings.
25417 (set_initial_environment): Rename from set_global_environment.
25418 Store Emacs environment in initial frame parameter.
25419
25420 * xdisp.c (redisplay_internal): Update references to
25421 `previous_terminal_frame'.
25422 (display_mode_line, Fformat_mode_line): Replace calls to
25423 `push_frame_kboard' with `push_kboard'.
25424 (get_glyph_string_clip_rects): Add extra parentheses and
25425 braces to prevent compiler warnings.
25426 (calc_pixel_width_or_height): Add xassert to check that the
25427 frame is alive. Don't call `lookup_image' on a termcap frame.
25428 (message2_nolog, message3_nolog, redisplay_internal)
25429 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25430 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25431 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25432 (Fx_display_pixel_width, Fx_display_pixel_height)
25433 (Fx_display_planes, Fx_display_color_cells)
25434 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25435 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25436 (Fx_display_backing_store, Fx_display_visual_class)
25437 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25438 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25439
25440 * xfns.c (x_set_foreground_color x_set_background_color)
25441 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25442 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25443 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25444 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25445 terminal that is being deleted.
25446 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25447 frame parameter, and make sure it overrides any user-supplied setting.
25448 (Fx_close_connection, Fx_synchronize): Unify argument names with
25449 the rest of the DEFUNs.
25450
25451 * dispnew.c (Fsend_string_to_terminal): Update call to
25452 `get_tty_terminal'.
25453 (Fredraw_frame, Fsend_string_to_terminal)
25454 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25455 FRAME_TERMCAP_P and FRAME_TTY.
25456 (window_change_signal): Don't believe width/height values that are
25457 impossibly small.
25458 (Vinitial_window_system): Rename from Vwindow_system.
25459 (termscript, Wcm, rif): Delete.
25460
25461 * termhooks.h (struct terminal): New struct containing the
25462 previously global text display hooks and new members NAME,
25463 DELETED and PARAM_ALIST.
25464 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25465 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25466 (FRAME_RIF): New macros.
25467 (get_terminal_param, get_device): New declarations.
25468 (termscript): Delete declaration.
25469
25470 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25471 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25472 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25473 FRAME_FOREGROUND_PIXEL.
25474 (x_fully_uncatch_errors): Disable definition.
25475 (x_scroll_bar_expose): Fix reference to foreground pixel.
25476 (XTread_socket): Disable loop on all X displays.
25477 (x_delete_terminal): Don't set terminal->deleted and let
25478 delete_terminal delete the frames on the terminal.
25479 (x_delete_display): Doc update to reflect changes in
25480 delete_terminal.
25481 (x_display_info) <terminal>: Move member earlier in the struct.
25482 (deleting_tty): Remove old variable.
25483 (Fsuspend_tty): Call clear_tty_hooks.
25484 (Fresume_tty, init_tty): Call set_tty_hooks.
25485 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25486 errors on X frames.
25487 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25488 (handle_one_xevent): Initialize `f' to NULL.
25489 (x_delete_terminal, x_create_terminal): New functions.
25490 (XTset_terminal_modes, XTreset_terminal_modes)
25491 (XTread_socket, x_connection_closed, x_term_init)
25492 (x_term_init, x_delete_display): Add terminal parameter.
25493 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25494 X connections.
25495
25496 * frame.c: Include termchar.h.
25497 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25498 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25499 (Qdisplay_environment_variable): New vars.
25500 (Fframep): Deal with output_initial.
25501 (Fframe-live-p): Doc fix.
25502 (Fwindow-system): New function.
25503 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25504 (make_terminal_frame): Don't create frames on a terminal that is
25505 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25506 (store_frame_param): Check for found_for_frame before calling XFRAME.
25507 (Fmake_terminal_frame): Handle NULL tty names correctly.
25508 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25509 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25510 frames to refer to a deleted frame in their 'environment parameter.
25511 (Fframe_with_environment): New function.
25512 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25513 (get_future_frame_param): New function.
25514 (Fmake_terminal_frame): Use it.
25515 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25516
25517 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25518 * sysdep.c (reset_sys_modes): Update for renames.
25519
25520 * keyboard.c (tty_read_avail_input): New function.
25521 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25522 (syms_of_keyboard): Defsubr them.
25523 (Fset_input_meta_mode, Fset_quit_char): New functions.
25524 (Fset_input_mode): Split to above functions.
25525 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25526 parameter. Use it in call to `read_char'.
25527 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25528 Set wrong_kboard_jmpbuf correctly in recursive calls.
25529 Use current_kboard to access Vkeyboard_translate_table.
25530 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25531 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25532 Update longjmp invocations. Remember the original current_kboard,
25533 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25534 changes it. Comment out unnecessary calls to
25535 `record_single_kboard_state' and `any_kboard_state'.
25536 Update recursive calls.
25537 (wrong_kboard_jmpbuf): Remove global variable.
25538 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25539 Handle deleted interrupted_kboards correctly; that is a legal
25540 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25541 and read_char calls. Abort if interrupted_kboard died in read_char.
25542 (any_kboard_state, single_kboard_state)
25543 (push_frame_kboard): Remove function.
25544 (pop_kboard): Switch out of single_kboard mode if the kboard has
25545 been deleted. Remove unused variable. Help debugging by not
25546 changing current_kboard unnecessarily. Set current_kboard to the
25547 kboard of the selected frame when the stored kboard object has
25548 been deleted before pop_kboard.
25549 (temporarily_switch_to_single_kboard): Change first parameter to a
25550 frame pointer. Throw an error when caller wants to change kboards
25551 while in single_kboard mode. Don't push_kboard if we weren't in
25552 single kboard state. Don't pop_kboard if we popped into any
25553 kboard state.
25554 (restore_kboard_configuration): Abort if pop_kboard changed the
25555 kboard in single_kboard mode. Call pop_kboard only after setting
25556 up single_kboard mode.
25557 (Frecursive_edit): Switch to single_kboard mode only in nested
25558 command loops.
25559 (cmd_error, command_loop, command_loop_1, timer_check):
25560 Comment out unnecessary call to `any_kboard_state' and
25561 `record_single_kboard_state'.
25562 (delete_kboard): Exit single_kboard mode if we have just deleted
25563 that kboard. Use FRAME_KBOARD.
25564 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25565 `fatal_error_signal'.
25566 (record_single_kboard_state): Don't push_kboard if we weren't in
25567 single kboard state. Don't pop_kboard if we popped into any
25568 kboard state.
25569 (push_frame_kboard): Rename to push_kboard.
25570 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25571 (read_avail_input): Read input from all terminals.
25572 (mark_kboards): Also mark Vkeyboard_translate_table.
25573 (kbd_buffer_store_event_hold): Simplify condition.
25574 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25575 (Vkeyboard_translate_table): Move to struct kboard.
25576 (init_kboard): Initialize Vkeyboard_translate_table.
25577 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25578 Vkeyboard_translate_table. Update doc strings. Update docs of
25579 local-function-key-map and function-key-map.
25580
25581 * terminal.c: New file.
25582
25583 * term.c: Include errno.h.
25584 (Vring_bell_function, device_list, initial_device)
25585 (next_device_id, ring_bell, update_begin, update_end)
25586 (set_terminal_window, cursor_to, raw_cursor_to)
25587 (clear_to_end, clear_frame, clear_end_of_line)
25588 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25589 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25590 (syms_of_term): Move their initialization to terminal.c.
25591 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25592 (Ftty_display_color_cells)
25593 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25594 (clear_tty_hooks, set_tty_hooks)
25595 (init_tty, maybe_fatal): New functions.
25596 (Ftty_type): Return nil if terminal is not on a tty instead of
25597 throwing an error. Doc update.
25598 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25599 Doc update. Initialize new subrs and variables.
25600 (delete_tty): Use terminal->deleted.
25601 (tty_set_terminal_modes): Rename from set_terminal_modes.
25602 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25603 (set_scroll_region): Rename to `tty_set_scroll_region'.
25604 (turn_on_insert): Rename to `tty_turn_on_insert'.
25605 (turn_off_insert): Rename to `tty_turn_off_insert'.
25606 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25607 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25608 (toggle_highligh): Rename to `tty_toggle_highlight'.
25609 (background_highlight): Rename to `tty_background_highlight'.
25610 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25611 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25612 (tty_set_scroll_region, tty_background_highlight)
25613 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25614 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25615 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25616 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25617 Add static modifier.
25618 (tty_reset_terminal_modes, tty_set_terminal_window)
25619 (tty_set_scroll_region, tty_background_highlight)
25620 (tty_highlight_if_desired, tty_cursor_to)
25621 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25622 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25623 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25624 renames.
25625
256262007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25627
25628 * keyboard.c: Qrtl is new.
25629 (parse_tool_bar_item): Handle :rtl keyword.
25630 (syms_of_keyboard): Intern :rtl keyword.
25631
25632 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25633
25634 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25635 so no Lisp code is executed.
25636 (file_for_image, find_rtl_image): New functions.
25637 (xg_get_image_for_pixmap): Use file_for_image.
25638 (update_frame_tool_bar): If direction is RTL, use RTL image if
25639 defined. Use Gtk stock images if defined.
25640
256412007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25642
25643 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25644 for nonexistent or zero-width glyph in composition glyph.
25645
256462007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25647
25648 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25649
25650 * xdisp.c (Finvisible_p): New function.
25651 (syms_of_xdisp): defsubr it.
25652
256532007-08-24 Juanma Barranquero <lekktu@gmail.com>
25654
25655 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25656 Doc fixes.
25657
256582007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25659
25660 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25661
256622007-08-24 Martin Rudalics <rudalics@gmx.at>
25663
25664 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25665 whether decoding has modified buffer contents.
25666
256672007-08-24 Jason Rumney <jasonr@gnu.org>
25668
25669 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25670 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25671 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25672 (init_svg_functions) [HAVE_NTGUI]: New function.
25673 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25674 (svg_load_image): Use them.
25675 (svg_load_image) [HAVE_NTGUI]: Implement background.
25676
256772007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25678
25679 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25680 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25681 (LIBX): Remove @RSVG_LIBS@.
25682 (LIBES): Add $(RSVG_LIBS).
25683
25684 * image.c (svg_load_image): Blend with specified background if exists.
25685 Use IMAGE_BACKGROUND. Add Mac OS Support.
25686
25687 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25688 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25689 Remove macros.
25690 [MAC_OSX] (socket_callback): Do nothing.
25691 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25692 ReceiveNextEvent.
25693 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25694 socket_callback.
25695 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25696
256972007-08-22 Glenn Morris <rgm@gnu.org>
25698
25699 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25700
257012007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25702
25703 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25704
25705 * image.c: Add support for SVG images. Some additional comments
25706 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25707 (svg_image_p): New function to test for SVG image.
25708 (svg_load): New function to load SVG image.
25709 (svg_load_image): New function, helper for svg_load.
25710 (Qsvg): New Lisp_object.
25711 (svg_keyword_index): New enum.
25712 (svg_format): New static `image_keyword' struct.
25713 (svg_type): New static `image_type' struct.
25714 (librsvg/rsvg.h): Include it.
25715
257162007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25717
25718 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25719
257202007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25721
25722 * lread.c (Qold_style_backquotes): New var.
25723 (syms_of_lread): Init and staticpro it.
25724 (load_warn_old_style_backquotes): New fun.
25725 (Fload): Use them to warn about old style backquotes.
25726 (end_of_file_error, Fload): Remove unused vars.
25727
25728 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25729
25730 * lread.c (Vold_style_backquotes): New var.
25731 (syms_of_lread): Init and export it to Elisp.
25732 (read1): Set it when we find an old-style (back)quote.
25733
257342007-08-22 Jason Rumney <jasonr@gnu.org>
25735
25736 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25737
257382007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25739
25740 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25741
257422007-08-19 Richard Stallman <rms@gnu.org>
25743
25744 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25745
257462007-08-19 Andreas Schwab <schwab@suse.de>
25747
25748 * alloc.c (pure): Round PURESIZE up.
25749
257502007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25751
25752 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25753 active frame.
25754
257552007-08-16 Richard Stallman <rms@gnu.org>
25756
25757 * eval.c (Fcommandp): Add parens to clarify.
25758
25759 * minibuf.c (Fall_completions): Use enum for type of table.
25760
25761 * emacs.c (USAGE2): Improve text.
25762
257632007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25764
25765 * term.c (tty_default_color_capabilities): Declare static
25766 variables in file scope, to avoid HPUX compiler problem.
25767
257682007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25769
25770 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25771 to gtk_toolbar_insert.
25772
257732007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25774
25775 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25776
25777 * insdel.c (reset_var_on_error): New fun.
25778 (signal_before_change, signal_after_change):
25779 Use it to reset (after|before)-change-functions to nil in case of error.
25780 Bind inhibit-modification-hooks to t.
25781 Don't bind (after|before)-change-functions to nil while they run.
25782
257832007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25784
25785 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25786 filling pixmap with stippled background.
25787
257882007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25789
25790 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25791 Don't use invisible frame as parent window for repositioning.
25792
257932007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25794
25795 * print.c (new_backquote_output): Rename from old_backquote_output.
25796 (print): Inverse its logic (according to its name) so as to match the
25797 behavior of new_backquote_flag in lread.c.
25798
257992007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25800
25801 * gmalloc.c (posix_memalign): New function.
25802
25803 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25804 ActivateControl/DeactivateControl here.
25805 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25806 frame-notice-user-settings is non-nil.
25807 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25808 for kEventParamFMFontStyle.
25809 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25810 mac_pass_command_to_system and mac_pass_control_to_system here.
25811 (XTread_socket): Call ActivateControl/DeactivateControl here.
25812 (XTread_socket) [TARGET_API_MAC_CARBON]:
25813 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25814 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25815 for window repositioning.
25816
258172007-08-08 Glenn Morris <rgm@gnu.org>
25818
25819 * Replace `iff' in doc-strings and comments.
25820
258212007-08-07 Chong Yidong <cyd@stupidchicken.com>
25822
25823 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25824
258252007-08-07 Martin Rudalics <rudalics@gmx.at>
25826
25827 * fileio.c (Finsert_file_contents): Run format-decode and
25828 after_insert_file_functions on entire buffer when REPLACE is
25829 non-nil and inhibit modification_hooks and point_motion_hooks.
25830 For consistency, run after_insert_file_functions iff something
25831 got inserted. Move signal_after_change and update_compositions
25832 after code running after_insert_file_functions. Make sure that
25833 undo_list doesn't record intermediate steps of the decoding process.
25834
258352007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25836
25837 * emacs.c (main)
25838 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25839 Call malloc_enable_thread on interactive startup.
25840
25841 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25842 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25843 [USE_PTHREAD]: Conditionalize with it.
25844 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25845 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25846 New functions.
25847
258482007-08-06 Chong Yidong <cyd@stupidchicken.com>
25849
25850 * xdisp.c (redisplay_window): When restoring original buffer
25851 position, make sure it is still valid.
25852
25853 * image.c (png_load): Ignore png-supplied background color.
25854
258552007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25856
25857 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25858 Use kCFAbsoluteTimeIntervalSince1970.
25859
25860 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25861 New variable.
25862 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25863 event loop should be quit.
25864 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25865 Quit dialog event loop if quit_dialog_event_loop is set.
25866
25867 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25868 (Selection): New typedef. Use instead of ScrapRef.
25869 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25870 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25871 (mac_clear_selection): Rename from clear_scrap.
25872 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25873 scrap_has_target_type. All uses changed.
25874 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25875 (mac_selection_has_target_p): New functions.
25876 (mac_put_selection_value): Rename from put_scrap_string.
25877 (mac_get_selection_value): Rename from get_scrap_string.
25878 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25879 (put_scrap_private_timestamp, scrap_has_target_type)
25880 (get_scrap_private_timestamp): Remove functions.
25881 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25882 (x_own_selection, x_get_local_selection):
25883 Use mac_valid_selection_value_p.
25884 (x_own_selection): Don't use put_scrap_private_timestamp.
25885 Record OWNERSHIP-INFO into Vselection_alist instead.
25886 (x_get_local_selection): Don't check type if request is local.
25887 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25888 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25889
258902007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25891
25892 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25893 add comment explaining why.
25894
258952007-08-03 Richard Stallman <rms@gnu.org>
25896
25897 * fileio.c (Fvisited_file_modtime): Use make_time.
25898
258992007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25900
25901 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25902 build.
25903
259042007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25905
25906 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25907
259082007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25909
25910 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25911
259122007-07-30 Richard Stallman <rms@gnu.org>
25913
25914 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25915
259162007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25917
25918 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25919
259202007-07-28 Nick Roberts <nickrob@snap.net.nz>
25921
25922 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25923 remote default-directory.
25924
25925 * buffer.c (mode-line-format): Update doc string.
25926
259272007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25928
25929 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25930 scroll bar gap.
25931 (x_scroll_bar_create): Set bar->fringe_extended_p.
25932 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25933 on frame edge. Check fringe background extension. Don't clear
25934 extended fringe background area.
25935
25936 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25937 (w32_fill_area): Enclose multiple statements with do ... while (0).
25938
25939 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25940 Extend fringe background to scroll bar gap.
25941 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25942 Set bar->fringe_extended_p.
25943 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25944 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25945 background extension. Don't clear extended fringe background area.
25946
25947 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25948 New member fringe_extended_p.
25949
259502007-07-25 Glenn Morris <rgm@gnu.org>
25951
25952 * Relicense all FSF files to GPLv3 or later.
25953
25954 * COPYING: Switch to GPLv3.
25955
259562007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25957
25958 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25959
25960 * data.c (Finteractive_form): Check for the presence of an
25961 `interactive-form' symbol property more thoroughly.
25962
25963 * data.c (Finteractive_form): Use an `interactive-form' property if
25964 present, analogous to the function-documentation property.
25965
259662007-07-24 Jason Rumney <jasonr@gnu.org>
25967
25968 * w32fns.c (x_real_positions): Get real position from OS instead of
25969 calculating it.
25970
259712007-07-23 Jason Rumney <jasonr@gnu.org>
25972
25973 * filelock.c (current_lock_owner): Allow for @ sign in username.
25974
259752007-07-22 Nick Roberts <nickrob@snap.net.nz>
25976
25977 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25978 remote default-directory.
25979
25980 * buffer.c (mode-line-format): Describe above case in doc string.
25981
259822007-07-20 Eli Zaretskii <eliz@gnu.org>
25983
25984 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25985 Define if not defined.
25986
259872007-07-18 Jason Rumney <jasonr@gnu.org>
25988
25989 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25990
259912007-07-18 Richard Stallman <rms@gnu.org>
25992
25993 * data.c (Fsetq_default): Doc fix.
25994
25995 * eval.c (Fsetq): Doc fix.
25996
259972007-07-18 Juanma Barranquero <lekktu@gmail.com>
25998
25999 * coding.c (Ffind_operation_coding_system):
26000 * eval.c (For, Fand): Doc fixes.
26001 Reported by Johan Bockgård.
26002
260032007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26004
26005 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26006
26007 * xterm.h: Declare x_ewmh_activate_frame.
26008
26009 * xterm.c (x_ewmh_activate_frame): New function.
26010 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26011
260122007-07-17 Martin Rudalics <rudalics@gmx.at>
26013
26014 * window.c (Fdisplay_buffer): If largest or LRU window is the
26015 only window, split it even if it is not eligible for splitting.
26016 This restores the original behavior broken by the 2007-07-15
26017 change.
26018
260192007-07-17 Glenn Morris <rgm@gnu.org>
26020
26021 * abbrev.c (abbrev_check_chars): New function.
26022 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26023 Call abbrev_check_chars to check abbrev characters are word
26024 constituents. Doc fix.
26025
260262007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26027
26028 * process.c (Fstart_process, Fmake_network_process)
26029 (read_process_output): Fix up last changes.
26030
260312007-07-16 Eli Zaretskii <eliz@gnu.org>
26032
26033 * makefile.w32-in (clean): Don't delete *~.
26034
260352007-07-16 Andreas Schwab <schwab@suse.de>
26036
26037 * window.c (Fdisplay_buffer): Use NILP.
26038 (Fset_window_scroll_bars): Likewise.
26039
260402007-07-15 Martin Rudalics <rudalics@gmx.at>
26041
26042 * window.c (window_min_size_2): New function.
26043 (window_min_size_1, size_window, Fdisplay_buffer)
26044 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26045 windows without mode- or header-lines when window-min-height is
26046 too small.
26047 (size_window): Reset nodelete_p after testing it, following an
26048 earlier note by Kim F. Storm.
26049 (display_buffer): Do not set split_height_threshold to twice the
26050 value of window_min_height to avoid changing the value of a
26051 customizable variable. Rather explicitly check whether the
26052 height of the window that shall be splitted is at least as large
26053 as split_height_threshold.
26054 (Fwindow_full_width_p): New defun.
26055 (syms_of_window): Defsubr it.
26056
26057 * window.h: Add EXFUN for Fwindow_full_width_p.
26058
260592007-07-14 Jason Rumney <jasonr@gnu.org>
26060
26061 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26062
260632007-07-14 Richard Stallman <rms@gnu.org>
26064
26065 * eval.c (maybe_call_debugger): New function.
26066 (find_handler_clause): Use maybe_call_debugger.
26067 Call it when the handler says `debug'.
26068 Eliminate DEBUGGER_VALUE_PTR.
26069 (Fsignal): Eliminate debugger_value.
26070 (Qdebug): New variable.
26071 (syms_of_eval): Initialize it.
26072
260732007-07-14 Juanma Barranquero <lekktu@gmail.com>
26074
26075 * eval.c (Fprogn):
26076 * keyboard.c (Ftrack_mouse):
26077 * print.c (Fwith_output_to_temp_buffer):
26078 * window.c (Fsave_window_excursion): Doc fix.
26079
260802007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26081
26082 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26083
260842007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26085
26086 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26087 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26088 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26089 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26090 Remove unused encoding_carryover.
26091 * process.c: Adjust all functions accordingly.
26092
260932007-07-12 Richard Stallman <rms@gnu.org>
26094
26095 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26096
260972007-07-11 Jason Rumney <jasonr@gnu.org>
26098
26099 * makefile.w32-in (LIBS): Include OLE32.
26100
26101 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26102 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26103
261042007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26105
26106 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26107 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26108 from a Lisp_Object into a bare pointer.
26109 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26110 Adjust the code correspondingly.
26111
26112 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26113
26114 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26115 (term_show_mouse_face): Remove unused var `j'.
26116 (handle_one_term_event): Remove unused vars `i' and `j'.
26117 Don't cast return value of ttyname since it's not necessary.
26118
261192007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26120
26121 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26122 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26123
26124 * fns.c (map_char_table): Use an array of int for `indices' rather than
26125 an array of Lisp_Objects (which are only ever integers anyway).
26126 (Fmap_char_table): Update caller.
26127 * lisp.h: Update prototype.
26128 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26129 * fontset.c (Ffontset_info):
26130 * casetab.c (set_case_table): Update callers.
26131
26132 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26133
26134 * keymap.c (struct accessible_keymaps_data)
26135 (struct where_is_internal_data): New structures.
26136 (accessible_keymaps_1, where_is_internal_1): Use them to change
26137 interface to adhere to the one used by map_keymap.
26138 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26139 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26140
26141 * keymap.h (map_keymap_function_t): More informative prototype.
26142
261432007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26144
26145 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26146 (looking_at_1): Don't change search_regs and last_thing_searched
26147 if `inhibit-changing-match-data' is non-nil.
26148 (string_match_1, search_buffer, set_search_regs): Likewise.
26149 (syms_of_search): Add Lisp level definition for
26150 `inhibit-changing-match-data' and set it to nil.
26151 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26152 start and end of the match, instead of using values in search_regs.
26153
261542007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26155
26156 * minibuf.c (Fcompleting_read): New value `confirm-only'
26157 for `require-match'.
26158
261592007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26160
26161 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26162 part of the 2007-06-27 change to syms_of_fileio.
26163
261642007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26165
26166 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26167 Check WINDOWP before using XWINDOW. Consolidate return statements.
26168
261692007-06-27 Richard Stallman <rms@gnu.org>
26170
26171 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26172
261732007-06-27 Juanma Barranquero <lekktu@gmail.com>
26174
26175 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26176
261772007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26178
26179 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26180 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26181 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26182 (_free_internal, memalign): Use them.
26183 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26184 Initialize to PTHREAD_MUTEX_INITIALIZER.
26185 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26186 (morecore_nolock): Rename from morecore. All uses changed.
26187 Use only nolock versions of internal allocation functions.
26188 (_malloc_internal_nolock, _realloc_internal_nolock)
26189 (_free_internal_nolock): New functions created from
26190 _malloc_internal, _realloc_internal, and _free_internal.
26191 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26192 Copy hook value to automatic variable before its use.
26193 (memalign): Copy hook value to automatic variable before its use.
26194
261952007-06-26 Kenichi Handa <handa@m17n.org>
26196
26197 * coding.c (Ffind_operation_coding_system): Docstring improved.
26198 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26199
262002007-06-25 David Kastrup <dak@gnu.org>
26201
26202 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26203 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26204 cater for additional parameter.
26205
26206 * keymap.h: Adjust number of parameters to `current-active-maps'.
26207
26208 * doc.c (Fsubstitute_command_keys): Adjust call of
26209 `current-active-maps'.
26210
262112007-06-25 David Kastrup <dak@gnu.org>
26212
26213 * callint.c (Fcall_interactively): Make the parsing of interactive
26214 specs somewhat more readable.
26215
262162007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26217
26218 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26219 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26220 if extended background has already been filled.
26221
262222007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26223
26224 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26225 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26226
26227 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26228 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26229 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26230 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26231 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26232 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26233 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26234 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26235 Run timers during dialog popup.
26236 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26237
262382007-06-21 Jason Rumney <jasonr@gnu.org>
26239
26240 * image.c (convert_mono_to_color_image): Swap fore and background.
26241
262422007-06-20 Jason Rumney <jasonr@gnu.org>
26243
26244 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26245 (w32_free_bdf_font): Unmap memory not handle.
26246
262472007-06-20 Sam Steingold <sds@gnu.org>
26248
26249 * gmalloc.c (__morecore): Fix the declaration to comply with the
26250 definition.
26251
262522007-06-20 Juanma Barranquero <lekktu@gmail.com>
26253
26254 * w32term.c (w32_delete_display): Remove leftover declaration.
26255 (w32_define_cursor, w32_initialize): Make static.
26256
26257 * w32.c (_wsa_errlist): Fix typo in error message.
26258 (init_environment): Ignore any environment variable from the
26259 registry having a null value.
26260
262612007-06-20 Glenn Morris <rgm@gnu.org>
26262
26263 * Makefile.in (LIBGIF): Default to -lgif.
26264
262652007-06-17 Jason Rumney <jasonr@gnu.org>
26266
26267 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26268 unicode strings.
26269
262702007-06-16 Juanma Barranquero <lekktu@gmail.com>
26271
26272 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26273 Fix typo in docstring.
26274
262752007-06-16 Eli Zaretskii <eliz@gnu.org>
26276
26277 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26278 and their keybindings.
26279
262802007-06-15 Chong Yidong <cyd@stupidchicken.com>
26281
26282 * composite.c (update_compositions): Fix last fix.
26283
262842007-06-14 Jason Rumney <jasonr@gnu.org>
26285
26286 * w32.c (get_process_times_fn): New function pointer.
26287 (globals_of_w32): Intialize it if present in kernel32.dll.
26288 (w32_get_internal_run_time): New function.
26289
26290 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26291
262922007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26293
26294 * composite.c (update_compositions): Check the validness of
26295 compositions.
26296
262972007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26298
26299 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26300 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26301
26302 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26303 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26304
26305 * macgui.h (USE_MAC_TOOLBAR): New define.
26306
26307 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26308 Return immediately unless popup is activated.
26309
26310 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26311 background to scroll bar gap.
26312 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26313 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26314 scroll bars on frame edge. Check fringe background extension.
26315 Don't clear extended fringe background area.
26316 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26317 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26318 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26319 [USE_MAC_TOOLBAR]: New macros.
26320 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26321 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26322 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26323 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26324 [USE_MAC_TOOLBAR]: New functions.
26325 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26326 manually if previous repositioning has failed.
26327 (mac_handle_keyboard_event): Use precomputed event kind.
26328 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26329 as tool bar item click. Handle mouse movement over tool bar items.
26330
26331 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26332 toolbar_win_gravity.
26333 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26334 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26335 Add externs.
26336
26337 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26338 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26339
263402007-06-14 Chong Yidong <cyd@stupidchicken.com>
26341
26342 * image.c (search_image_cache): Remove unused variable.
26343
263442007-06-13 Chong Yidong <cyd@stupidchicken.com>
26345
26346 * xfns.c, xmenu.c: Link to xaw3d if available.
26347
263482007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26349
26350 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26351 frame_foreground and frame_background.
26352
26353 * image.c (lookup_image): Save frame foreground and background colors.
26354 (search_image_cache): Check if saved and current frame colors match.
26355
263562007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26357
26358 * regex.c (regex_compile): Remove the `regnum' counter.
26359 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26360
263612007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26362
26363 * term.c: Include intervals.h to declare Fget_text_property.
26364
263652007-06-10 Jason Rumney <jasonr@gnu.org>
26366
26367 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26368
263692007-06-08 Juanma Barranquero <lekktu@gmail.com>
26370
26371 * callint.c (Fcall_interactively):
26372 * editfns.c (Fdelete_and_extract_region):
26373 * fileio.c (Fread_file_name):
26374 * fns.c (Fmapconcat):
26375 * keyboard.c (cmd_error_internal):
26376 * keymap.c (Fkey_description):
26377 * lread.c (openp):
26378 * minibuf.c (read_minibuf):
26379 * search.c (wordify):
26380 * sunfns.c (sel_read):
26381 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26382 * xfns.c (x_default_scroll_bar_color_parameter):
26383 * xmenu.c (menu_help_callback):
26384 * xselect.c (Fx_get_atom_name):
26385 * xterm.c (x_term_init): Use empty_unibyte_string.
26386
263872007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26388
26389 * alloc.c (init_strings): Initialize canonical empty strings.
26390 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26391 canonical empty string when the requested size is 0.
26392
26393 * emacs.c (empty_unibyte_string): Rename from empty_string.
26394 (empty_multibyte_string): New canonical empty string.
26395 (syms_of_emacs): Don't initialize empty_string.
26396
26397 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26398 string, if appropriate.
26399 (empty_unibyte_string, empty_multibyte_string): New externs.
26400 (empty_string): Remove extern.
26401
26402 * lread.c (syms_of_lread): Use empty_unibyte_string.
26403
264042007-06-07 Jason Rumney <jasonr@gnu.org>
26405
26406 * s/ms-w32.h: Don't define HAVE_TZNAME.
26407
26408 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26409
264102007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26411
26412 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26413
26414 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26415 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26416
26417 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26418 Don't call next handler.
26419 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26420 Remove argument. Install handler to application.
26421 (set_frame_menubar): Don't change deep_p.
26422 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26423 FRAME_OUTER_TO_INNER_DIFF_Y.
26424 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26425 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26426 [HAVE_DIALOGS]: New macros.
26427 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26428 Use them.
26429 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26430
26431 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26432 init_service_handler. All callers changed. Return OSStatus value.
26433
26434 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26435 All callers changed so as not to call SetPortWindowPort.
26436 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26437 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26438 mac_draw_string_common.
26439 (mac_draw_image_string_qd): Likewise.
26440 (mac_draw_string_common): Use them. Add INLINE.
26441 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26442 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26443 GetGlobalMouse.
26444 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26445 and FRAME_OUTER_TO_INNER_DIFF_Y.
26446 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26447 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26448 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26449 repositioning window to mac_handle_window_event.
26450 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26451 saving window location to mac_handle_window_event
26452 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26453 (install_menu_target_item_handler): Remove argument in extern.
26454 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26455 Also accept command events.
26456 (do_keystroke): New function created from XTread_socket.
26457 (init_command_handler): Remove functions.
26458 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26459 and save window location by kEventWindowShowing and kEventWindowHiding
26460 handlers here. Don't call next handler for window state change and
26461 focus events.
26462 (mac_handle_application_event, mac_handle_keyboard_event)
26463 [TARGET_API_MAC_CARBON]: New functions.
26464 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26465 kEventWindowShowing and kEventWindowHiding events. Move installation
26466 of mouse, font, text input and menu target item handlers to
26467 install_application_handler.
26468 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26469 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26470 New function.
26471 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26472 Register it.
26473 (XTread_socket) [TARGET_API_MAC_CARBON]:
26474 Consolidate SendEventToEventTarget calls.
26475 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26476 Move application activation handler to mac_handle_application_event.
26477 Move keyboard handler to mac_handle_keyboard_event.
26478 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26479 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26480 init_command_handler. Call install_application_handler.
26481
26482 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26483 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26484
264852007-06-07 Glenn Morris <rgm@gnu.org>
26486
26487 * emacs.c (main): Use `emacs-copyright' in --version output.
26488
264892007-06-06 Chong Yidong <cyd@stupidchicken.com>
26490
26491 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26492
264932007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26494
26495 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26496
26497 * macgui.h: Replace WindowPtr with WindowRef.
26498
26499 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26500 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26501 Replace ControlHandle with ControlRef.
26502 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26503
26504 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26505 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26506 Replace ControlHandle with ControlRef.
26507 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26508 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26509
26510 * macterm.h (struct scroll_bar): Rename member control_handle_low
26511 and control_handle_high to control_ref_low and control_ref_high.
26512 All uses changed.
26513 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26514 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26515 respectively. All uses changed.
26516 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26517 (install_window_handler, remove_window_handler): Replace WindowPtr
26518 with WindowRef in externs.
26519
265202007-06-05 Juanma Barranquero <lekktu@gmail.com>
26521
26522 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26523
265242007-06-03 Nick Roberts <nickrob@snap.net.nz>
26525
26526 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26527
26528 * frame.c (Fmouse_position, Fmouse_pixel_position):
26529 Condition on HAVE_GPM too.
26530
26531 * term.c (term_mouse_highlight): Remove unused variables.
26532 (Fterm_open_connection): Set gpm_zerobased to 1.
26533 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26534 Use zero based co-ordinates.
26535 (handle_one_term_event): Report a drag as mouse movement too.
26536
26537 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26538
265392007-06-03 Chong Yidong <cyd@stupidchicken.com>
26540
26541 * image.c (search_image_cache): New function. Require background
26542 color match if background color is unspecified in the image spec.
26543 (uncache_image, lookup_image): Use it.
26544
265452007-06-01 Juanma Barranquero <lekktu@gmail.com>
26546
26547 * window.c (Fshrink_window): Reflow docstring.
26548
265492007-06-02 Chong Yidong <cyd@stupidchicken.com>
26550
26551 * Version 22.1 released.
26552
265532007-06-01 Richard Stallman <rms@gnu.org>
26554
26555 * xfns.c (x_encode_text): Add GCPRO.
26556
265572007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26558
26559 * xfns.c (x_set_name_internal): Save encoded name before
26560 x_encode_text in case string data is relocated.
26561
265622007-05-31 Richard Stallman <rms@gnu.org>
26563
26564 * buffer.c (syms_of_buffer): Doc fix.
26565
265662007-05-30 Nick Roberts <nickrob@snap.net.nz>
26567
26568 * sysdep.c (init_sys_modes): Add rather than replace with
26569 O_NONBLOCK.
26570
26571 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26572 term_mouse_moveto.
26573
26574 * termhooks.h (term_mouse_moveto): New extern.
26575
26576 * term.c (mouse_face_window): Rename...
26577 (Qmouse_face_window): ...to this.
26578 (term_show_mouse_face, term_clear_mouse_face)
26579 (term_mouse_highlight): Use Qmouse_face_window.
26580 (term_mouse_moveto): New function.
26581 (term_mouse_position): Make it work.
26582 (syms_of_term): Uncomment assignment to mouse_position_hook.
26583 Staticpro Qmouse_face_window.
26584
265852007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26586
26587 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26588 around current_column call.
26589
265902007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26591
26592 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26593 * xdisp.c (next_element_from_buffer):
26594 * window.c (delete_window):
26595 * term.c (term_mouse_highlight):
26596 * msdos.c (getdefdir):
26597 * macterm.c (mac_create_bitmap_from_bitmap_data)
26598 (init_font_name_table):
26599 * fns.c (Fsxhash):
26600 * data.c (Fmake_local_variable):
26601 * ccl.c (ccl_driver): Likewise.
26602
266032007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26604
26605 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26606 Call mac_wakeup_from_rne on window size change.
26607
266082007-05-25 Chong Yidong <cyd@stupidchicken.com>
26609
26610 * image.c (uncache_image): Fix typo.
26611
266122007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26613
26614 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26615
266162007-05-22 Richard Stallman <rms@gnu.org>
26617
26618 * xterm.c (x_connection_closed): Remove NO_RETURN.
26619
266202007-05-22 Martin Rudalics <rudalics@gmx.at>
26621
26622 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26623
266242007-05-21 Chong Yidong <cyd@stupidchicken.com>
26625
26626 * image.c (uncache_image): New function.
26627 (Fimage_refresh): New function.
26628
266292007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26630
26631 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26632
266332007-05-20 Nick Roberts <nickrob@snap.net.nz>
26634
26635 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26636 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26637
266382007-05-20 Nick Roberts <nickrob@snap.net.nz>
26639
26640 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26641 conditional on [HAVE_GPM_H].
26642
266432007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26644
26645 * syntax.c (skip_chars): Update syntax-table only after we checked that
26646 the new location is valid.
26647
266482007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26649
26650 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26651 mac_get_window_bounds.
26652
266532007-05-20 Nick Roberts <nickrob@snap.net.nz>
26654
26655 * Makefile.in (LIBGPM): Allow it to be set from configure.
26656 If set then link Emacs with it.
26657
26658 * config.in: Regenerate.
26659
26660 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26661 New externs.
26662
26663 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26664 Include gpm.h.
26665 (handle_one_term_event, term_gpm): New externs.
26666
26667 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26668 and allow it to be interrupted by SIGIO.
26669
26670 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26671 (wait_reading_process_output): Wait on gpm_fd too.
26672 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26673 (add_gpm_wait_descriptor_called_flag): New variable.
26674 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26675
26676 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26677 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26678 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26679 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26680 (make_lispy_event): Add case GPM_CLICK_EVENT.
26681 (read_avail_input): Handle mouse input.
26682
26683 * term.c (write_glyphs_with_face): New function.
26684 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26685 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26686 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26687 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26688 (last_mouse_x, last_mouse_y): New variables.
26689 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26690 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26691 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26692 (Fterm_close_connection): New functions.
26693 (term_init): Initialise mouse_face_window.
26694
266952007-05-19 Chong Yidong <cyd@stupidchicken.com>
26696
26697 * xdisp.c (redisplay_window): If first window line is a
26698 continuation line, recompute the new window start instead of
26699 recentering.
26700
267012007-05-18 Glenn Morris <rgm@gnu.org>
26702
26703 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26704 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26705
267062007-05-17 Glenn Morris <rgm@gnu.org>
26707
26708 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26709
267102007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26711
26712 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26713 dead key repeat and up events.
26714
267152007-05-14 Chong Yidong <cyd@stupidchicken.com>
26716
26717 * image.c (pbm_load): Check image size for monochrome pbm.
26718
267192007-05-13 Chong Yidong <cyd@stupidchicken.com>
26720
26721 * xterm.c (XTread_socket): Revert last change.
26722
267232007-05-12 Chong Yidong <cyd@stupidchicken.com>
26724
26725 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26726
26727 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26728
267292007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26730
26731 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26732 mixup (YAILOM).
26733
267342007-05-07 Andreas Schwab <schwab@suse.de>
26735
26736 * keymap.c (Flookup_key): Fix typo in last change.
26737
267382007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26739
26740 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26741 mapping for unibyte strings.
26742
267432007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26744
26745 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26746 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26747
267482007-04-29 Richard Stallman <rms@gnu.org>
26749
26750 * insdel.c (replace_range): For undo, record insertion first.
26751
267522007-04-29 Andreas Schwab <schwab@suse.de>
26753
26754 * lisp.h (VECSIZE): Use OFFSETOF.
26755
267562007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26757
26758 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26759 disabled lines.
26760
267612007-04-28 Richard Stallman <rms@gnu.org>
26762
26763 * lread.c (read_escape): In a string, \s is always space.
26764
267652007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26766
26767 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26768
26769 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26770 submenu for menu bar items.
26771
26772See ChangeLog.10 for earlier changes.
26773
26774;; Local Variables:
26775;; coding: utf-8
26776;; add-log-time-zone-rule: t
aac0c6e3
MR
26777;; End:
26778
e3eb1dae 26779 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
26780
26781 This file is part of GNU Emacs.
26782
26783 GNU Emacs is free software: you can redistribute it and/or modify
26784 it under the terms of the GNU General Public License as published by
26785 the Free Software Foundation, either version 3 of the License, or
26786 (at your option) any later version.
26787
26788 GNU Emacs is distributed in the hope that it will be useful,
26789 but WITHOUT ANY WARRANTY; without even the implied warranty of
26790 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26791 GNU General Public License for more details.
26792
26793 You should have received a copy of the GNU General Public License
26794 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26795
26796;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40