src/cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
[bpt/emacs.git] / src / ChangeLog
1 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
2
3 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
4
5 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
6
7 * xml.c (parse_buffer): Renamed to parse_string(), since that's
8 what it does.
9 (parse_string): Return nil when the document can't be parsed.
10
11 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
12
13 * xterm.c (get_current_vm_state): New function.
14 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
15 want_fullscreen so set_wm_state calls are few (Bug#7013).
16 (x_handle_net_wm_state): Move code to get_current_vm_state and
17 call that function.
18
19 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
20
21 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
22
23 2010-09-14 Kenichi Handa <handa@m17n.org>
24
25 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
26 we may use designation or locking-shift.
27
28 2010-09-14 Kenichi Handa <handa@m17n.org>
29
30 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
31 sequence when the source is multibyte.
32
33 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
34
35 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
36 Don't make first argument optional. Doc fix.
37
38 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
39
40 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
41 parameters for the doc string.
42
43 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
44
45 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
46
47 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
48
49 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
50 (syms_of_fns): Don't defsubr Sy_or_n_p.
51 * lisp.h: Don't declare Fy_or_n_p.
52 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
53
54 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
55
56 * xml.c (Fxml_parse_buffer): New function to parse XML files.
57
58 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
59
60 * xml.c: New file.
61 (Fhtml_parse_buffer): New function to interface to the libxml2
62 html parsing function.
63
64 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
65
66 * biditype.h: Regenerate.
67
68 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
69
70 * nsimage.m (ns_load_image): Check argument types.
71
72 * image.c: Remove all uses of gcpro.
73 (xpm_load): Check all lisp types.
74 (pbm_load): Likewise.
75 (png_load): Likewise.
76 (jpeg_load): Likewise.
77 (tiff_load): Likewise.
78 (gif_load): Likewise.
79 (imagemagick_load_image): Likewise.
80 (imagemagick_load): Likewise.
81 (svg_load): Likewise.
82 (gs_load): Likewise.
83
84 2010-09-04 Eli Zaretskii <eliz@gnu.org>
85
86 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
87 try to reorder grapheme clusters, since LGSTRING should always
88 hold them in the logical order.
89 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
90 return glyph codes in the logical order.
91
92 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
93
94 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
95 (imagemagick_load_image): Fix type mismatch.
96 (Fimagemagick_types): Likewise. Doc fix.
97
98 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
99
100 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
101
102 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
103
104 * xselect.c: Remove declaration of cut-buffer objects and functions.
105 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
106 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
107 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
108 (Fx_rotate_cut_buffers_internal): Remove.
109 (syms_of_xselect): Remove defsubr of above.
110 Remove intern of QCUT_BUFFERn.
111
112 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
113
114 * cmds.c (Vblink_paren_function): Remove.
115 (internal_self_insert): Make it insert N chars at a time.
116 Don't call blink-paren-function.
117 (Fself_insert_command): Adjust accordingly.
118 (syms_of_cmds): Don't declare blink-paren-function.
119
120 2010-08-31 Kenichi Handa <handa@m17n.org>
121
122 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
123 characters.
124
125 * term.c (encode_terminal_code): Fix the previous change.
126 (produce_glyphs): Don't set it->char_to_display here.
127 Don't handle unibyte-display-via-language-environment here.
128 (produce_special_glyphs): Set temp_it.char_to_display before
129 calling produce_glyphs.
130
131 * xdisp.c (get_next_display_element): Set it->char_to_display
132 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
133 characters.
134 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
135 calling PRODUCE_GLYPHS.
136 (append_space_for_newline): Save and store it->char_to_display.
137 Set it->char_to_display before calling PRODUCE_GLYPHS.
138 (extend_face_to_end_of_line): Set it->char_to_display before
139 calling PRODUCE_GLYPHS.
140 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
141 character to its byte value.
142 (get_char_glyph_code): New function.
143 (produce_stretch_glyph): Set it2.char_to_display too before
144 calling x_produce_glyphs.
145 (x_produce_glyphs): Simplify by using the same code for ASCII and
146 non-ASCII characters. Don't set it->char_to_display here.
147 Don't handle unibyte-display-via-language-environment here. For a
148 character of no glyph, use font->space_width instead of FONT_WIDTH.
149
150 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
151
152 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
153
154 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
155
156 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
157
158 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
159
160 * marker.c (Fcopy_marker): Make the first arg optional.
161
162 2010-08-30 Kenichi Handa <handa@m17n.org>
163
164 * composite.c (composition_update_it): Fix computing of
165 cmp_it->width.
166
167 2010-08-29 Kenichi Handa <handa@m17n.org>
168
169 * term.c (encode_terminal_code): Encode byte chars to the
170 corresponding bytes.
171
172 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
173
174 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
175
176 2010-08-26 Kenichi Handa <handa@m17n.org>
177
178 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
179 on calling composition_compute_stop_pos.
180
181 2010-08-25 Kenichi Handa <handa@m17n.org>
182
183 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
184 :otf.
185
186 * composite.c (composition_compute_stop_pos): Don't break
187 composition at PT.
188 (composition_reseat_it): Likewise. Fix calculation of character
189 position starting a composition.
190 (Fcomposition_get_gstring): Don't limit the number of components
191 for automatic composition.
192
193 2010-08-25 Kenichi Handa <handa@m17n.org>
194
195 * composite.c (composition_compute_stop_pos): In forward search,
196 pay attention to the possibility that some character after ENDPOS
197 will be composed with charactrs before ENDPOS.
198
199 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
200
201 * keyboard.c (command_loop_1): Don't clobber primary selection
202 during handle-switch-frame (Bug#6872).
203
204 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
205
206 * dbusbind.c: Accept UNIX domain sockets as bus address.
207 (Fdbus_close_bus): New function.
208 (Vdbus_registered_buses): New variable.
209 (xd_initialize): Implement string as bus address.
210 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
211 (Fdbus_get_unique_name, Fdbus_call_method)
212 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
213 (Fdbus_method_error_internal, Fdbus_send_signal)
214 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
215 check. This is done in xd_initialize_bus. Adapt doc string, if
216 necessary.
217 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
218 Vdbus_registered_buses.
219 (Vdbus_registered_objects_table): Create hash.
220
221 2010-08-22 Juri Linkov <juri@jurta.org>
222
223 * keyboard.c (Fexecute_extended_command): Move reading a command name
224 with `completing-read' to a new Elisp function `read-extended-command'.
225 Call it to read a command to `function' (bug#5364, bug#5214).
226
227 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
228
229 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
230
231 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
232
233 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
234 instead of SAFE_ALLOCA.
235
236 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
237
238 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
239 (Bug#6214).
240
241 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
242
243 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
244
245 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
246
247 * doc.c (Fsnarf_documentation): Initialize skip_file before
248 build-files test.
249
250 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
251
252 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
253 New definitions.
254 (HAVE_TERMIO): Remove.
255
256 2010-08-22 Eli Zaretskii <eliz@gnu.org>
257
258 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
259
260 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
261 for w32.
262
263 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
264 it's done in nt/config.nt.
265
266 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
267
268 * unexcoff.c (report_error, make_hdr, write_segment)
269 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
270 Convert argument lists and prototypes to ANSI C.
271 (make_hdr, write_segment): Remove unused variables.
272 (unexec): Remove commented-out line. Initialize `new' to shut up
273 compiler warnings.
274
275 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
276
277 Simplify termio code.
278 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
279 HAVE_TERMIO code is obsolete.
280 Replace HAVE_TERMIOS conditionals with !DOS_NT.
281 * systty.h: Do not define HAVE_TCATTR.
282 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
283 Do not define EMACS_HAVE_TTY_PGRP. Only define
284 EMACS_GET_TTY_PGRP for !DOS_NT.
285 * sysdep.c: Include sysselect.h unconditionally. Do not include
286 sys/ioctl.h and termios.h, systty.h does it. Use
287 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
288 (init_baud_rate): Remove HAVE_TERMIO code.
289 (child_setup_tty): Remove HAVE_TERMIO code.
290 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
291 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
292 (new_ltchars, new_tchars): Remove, unused.
293 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
294 code. Remove special casing for __mips__, it was a no-op. Remove
295 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
296 (init_sys_modes): Remove HPUX special case.
297 * process.c: Include stdlib.h unconditionally. Do not include
298 fcntl.h, systty.h does it. Remove conditional code for
299 HAVE_SERIAL, it is always true.
300 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
301 always true when SIGNALS_VIA_CHARACTERS is true.
302 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
303 !WINDOWSNT means HAVE_TERMIOS.
304 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
305 conditional, which is true for all HAVE_TERMIOS systems.
306 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
307 instead of HAVE_TERMIOS.
308 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
309 EMACS_HAVE_TTY_PGRP.
310 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
311 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
312 anyway.
313
314 2010-08-21 Eli Zaretskii <eliz@gnu.org>
315
316 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
317 mirroring pixel positions.
318
319 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
320
321 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
322 write only.
323 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
324 malloc_sbrk_used, nothing uses them.
325
326 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
327 defined, unconditionally defined in lisp.h.
328
329 * term.c: Do not include <termios.h>, systty.h does it.
330
331 * s/unixware.h (HAVE_TCATTR):
332 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
333 systty.h defines it when HAVE_TERMIOS is defined.
334
335 2010-08-20 Eli Zaretskii <eliz@gnu.org>
336
337 * dispnew.c (buffer_posn_from_coords): Fix last change for text
338 terminals: add one-character offset for R2L lines.
339
340 * emacs.c <emacs_version>: Add a comment regarding
341 msdos/mainmake.v2's dependency on the syntax of this declaration.
342
343 2010-08-20 Eli Zaretskii <eliz@gnu.org>
344
345 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
346 position for R2L lines by mirroring the pixel position wrt the
347 text are box. Improve commentary.
348
349 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
350
351 * image.c (imagemagick_clear_image): Remove debugging output.
352
353 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
354
355 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
356 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
357 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
358 self-insert-face.
359 (syms_of_cmds): Initialize the new vars.
360
361 2010-08-19 Jason Rumney <jasonr@gnu.org>
362
363 * w32menu.c (set_frame_menubar): Remove call to undefined function.
364
365 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
366
367 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
368
369 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
370
371 2010-08-18 Eli Zaretskii <eliz@gnu.org>
372
373 * xterm.c (x_draw_bar_cursor):
374 * w32term.c (x_draw_bar_cursor): If the character under cursor is
375 R2L, draw the bar cursor on its right rather than on its left.
376
377 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
378
379 * eval.c (Fdefmacro): Only obey one declaration.
380
381 * casefiddle.c (casify_region): Setup gl_state.
382
383 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
384
385 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
386
387 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
388
389 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
390
391 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
392
393 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
394 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
395 QPRIMARY => NXPrimaryPboard.
396 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
397 NXPrimaryPboard => QPRIMARY.
398 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
399 NXSecondaryPboard = SecondarySelection.
400 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
401
402 2010-08-18 Joakim Verona <joakim@verona.se>
403
404 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
405 defined:
406 (imagemagick_image_p): New function to test for ImageMagic image.
407 (imagemagick_load): New function to load ImageMagick image.
408 (imagemagick_load_image): New function, helper for imagemagick_load.
409 (imagemagick-types): New function.
410 (Qimagemagick): New Lisp_object.
411 (imagemagick-render-type): New variable, decides which renderer to use.
412
413 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
414
415 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
416 is a string.
417
418 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
419
420 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
421 x_set_tool_bar_position handler.
422
423 2010-08-17 Eli Zaretskii <eliz@gnu.org>
424
425 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
426 x_set_tool_bar_position handler, needed to support changes from
427 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
428
429 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
430
431 * nsselect.m: include keyboard.h for QPRIMARY, remove its
432 declaration (Bug#6863).
433 (syms_of_nsselect): Don't intern QPRIMARY.
434
435 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
436
437 * keyboard.h (QPRIMARY): Declare (Bug#6864).
438
439 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
440
441 * keyboard.c (command_loop_1): Avoid setting selection twice,
442 since it's done in deactivate-mark as well.
443 (Vselect_active_regions): Change default to t. Replace `lazy'
444 with non-default value `only', meaning only set PRIMARY for
445 temporarily active regions.
446
447 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
448 select-active-regions.
449
450 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
451
452 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
453 isn't a string.
454
455 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
456
457 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
458
459 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
460
461 * keyboard.c (parse_tool_bar_item): malloc buf.
462 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
463 new_lbl (Bug#6855).
464
465 2010-08-14 Eli Zaretskii <eliz@gnu.org>
466
467 * xterm.c (x_draw_stretch_glyph_string):
468 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
469 the cursor on the right edge of the stretch glyph.
470
471 * xdisp.c (window_box_right_offset, window_box_right):
472 Fix commentary.
473
474 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
475 direction when point is inside a run of whitespace characters.
476
477 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
478
479 2010-08-14 Jason Rumney <jasonr@gnu.org>
480
481 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
482
483 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
484
485 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
486
487 2010-08-13 Jason Rumney <jasonr@gnu.org>
488
489 * w32menu.c (simple_dialog_show): Use unicode message box if available.
490 (MessageBoxW_Proc): New function typedef.
491 (unicode-message-box): New function pointer.
492 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
493
494 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
495
496 * frame.h (Qtool_bar_position): Declare.
497
498 * xfns.c (Fx_create_frame): Call x_default_parameter for
499 Qtool_bar_position.
500
501 2010-08-13 Eli Zaretskii <eliz@gnu.org>
502
503 * unexcoff.c: Remove the parts used when "emacs" is not defined.
504 (report_error, report_error_1): Ditto.
505 (write_segment): Remove "#if 0" unused code.
506 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
507 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
508 (start_of_text): Remove unused function (was used only if NO_REMAP
509 was NOT defined).
510
511 * msdos.c (IT_set_face): Fix format string to match argument
512 types.
513 (IT_write_glyphs, IT_note_mode_line_highlight)
514 (IT_set_frame_parameters): Remove unused variables.
515 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
516 (IT_set_terminal_modes): Disambiguate expression in if clause.
517 (Fmsdos_remember_default_colors): Return Qnil.
518 (IT_set_frame_parameters): Add parens to disambiguate boolean
519 expression for logging the cursor type to termscript.
520 (keyboard_layout_list, keypad_translate_map)
521 (grey_key_translate_map): Add braces in inner initializers.
522 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
523 (dos_rawgetc): Remove unused label.
524 (XMenuActivate): Add braces to remove ambiguous `else'.
525 (dos_ttraw): Always return a value.
526 (spawnve): Declare.
527 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
528
529 * dosfns.h (x_set_title): Declare.
530
531 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
532 Remove unused variables.
533
534 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
535 variables.
536 (init_dosfns): Declare get_lim_data.
537 (system_process_attributes): Declare Fget_internal_run_time.
538
539 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
540 list to be consistent with menu.h.
541
542 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
543 warnings due to mixing of "char *" and "const char *".
544
545 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
546
547 Introduce a new comment style "c" flag.
548 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
549 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
550 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
551 (syntax_prefix_flag_p): New function.
552 (Fstring_to_syntax): Understand new "c" flag.
553 (Finternal_describe_syntax_value): Recognize new flag; use the
554 SYNTAX_FLAGS_* macros.
555 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
556 comment style to accomodate the new styles.
557 (back_comment, forw_comment, Fforward_comment, scan_lists)
558 (scan_sexps_forward): Update code to obey the new comment style flag.
559
560 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
561
562 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
563
564 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
565
566 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
567 first.
568 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
569
570 * gtkutil.h (xg_check_special_colors): Declare.
571
572 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
573 (xg_create_frame_widgets): Connect theme name changes to
574 style_changed_cb.
575
576 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
577 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
578 (x_term_init): Use char[] display_opt and name_opt instead of
579 string literal. file is const char*.
580
581 * xsmfns.c (NOSPLASH_OPT): Change to char[].
582 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
583 props. Free them at the end.
584
585 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
586
587 * xrdb.c (get_system_app): Make path const and use char *p for
588 non-const char.
589
590 * xmenu.c (Fx_popup_dialog): error_name is const char*.
591 (xmenu_show): error parameter is const char **. pane_string is const
592 char *.
593 (button_names): Is const char *.
594 (xdialog_show): error_name and pane_string is const.
595
596 * process.h (synch_process_death): Is const char*.
597
598 * w32menu.c (w32_menu_show):
599 * nsmenu.m (ns_menu_show): error parameter is const char **.
600
601 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
602 is const char **.
603
604 * menu.c (Fx_popup_menu): error_name is const.
605
606 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
607 with unsigned char and XtPointer with void *.
608
609 * gtkutil.h: Replace widget_value with struct _widget_value.
610 (enum button_type, struct _widget_value): Remove and use the one from
611 keyboard.h.
612
613 * gtkutil.c (get_utf8_string): Always return an allocated string.
614 Parameter is const.
615 (create_dialog, xg_create_one_menuitem, create_menus)
616 (xg_item_label_same_p, xg_update_menu_item): Free result from
617 get_utf8_string.
618 (xg_separator_p, xg_item_label_same_p): label is const.
619
620 * font.h (font_open_by_name): Make name const.
621
622 * font.c (font_open_by_name): Make name const.
623
624 * floatfns.c (matherr): Use a const char* variable for x->name.
625
626 * emacs.c (main): Pass char[] to putenv instead of literal.
627
628 * callproc.c (synch_process_death): Make const.
629 (Fcall_process): Make signame const.
630
631 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
632 (addDisplayItemWithImage): Use const char*.
633
634 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
635 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
636
637 * nsfont.m (ns_descriptor_to_entity): Use const char*.
638
639 * keyboard.h (_widget_value): name, value and key are const char*.
640
641 * unexmacosx.c (unexec_error): Use const char *.
642
643 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
644
645 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
646 (font_parse_name, font_open_by_name):
647 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
648 (font_parse_name, font_open_by_name): Remove const.
649
650 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
651
652 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
653 definition.
654
655 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
656 * m/amdx86-64.h: Likewise.
657 * m/arm.h: Likewise.
658 * m/hp800.h: Likewise.
659 * m/ia64.h: Likewise.
660 * m/ibmrs6000.h: Likewise.
661 * m/ibms390.h: Likewise.
662 * m/intel386.h: Likewise.
663 * m/iris4d.h: Likewise.
664 * m/m68k.h: Likewise.
665 * m/macppc.h: Likewise.
666 * m/mips.h: Likewise.
667 * m/sh3.h: Likewise.
668 * m/sparc.h: Likewise.
669 * m/template.h: Likewise.
670 * m/vax.h: Likewise.
671 * m/xtensa.h: Likewise.
672 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
673 WORDS_BIG_ENDIAN.
674 * lisp.h: Likewise.
675 * md5.c: Likewise.
676 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
677
678 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
679
680 Use const char* instead of char*.
681 Reduce the number of warnings with -Wwrite-strings.
682 * xrdb.c (get_environ_db, get_system_name):
683 * unexelf.c (find_section):
684 * term.c (string_cost, string_cost_one_line, per_line_cost)
685 (get_named_tty, init_tty):
686 * sysdep.c (sys_subshell):
687 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
688 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
689 * search.c (Freplace_match):
690 * process.c (Fmake_network_process, send_process, init_process):
691 * lread.c (Fload, init_lread):
692 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
693 * keyboard.c (parse_tool_bar_item, struct event_head):
694 * gtkutil.h (xg_get_font_name):
695 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
696 (make_widget_for_menu_item, make_menu_item, create_menus)
697 (xg_make_tool_item):
698 * font.c (parse_matrix, font_parse_name):
699 * floatfns.c (rounding_driver, float_error_fn_name):
700 * filelock.c (get_boot_time_1, lock_file_1):
701 * fileio.c (barf_or_query_if_file_exists, check_writable):
702 * editfns.c (get_system_name, get_operating_system_release)
703 (Fencode_time, Fset_time_zone_rule):
704 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
705 * buffer.c (defvar_per_buffer): Use const.
706
707 2010-08-08 Kenichi Handa <handa@m17n.org>
708
709 * charset.c: Include <stdlib.h>.
710 (struct charset_sort_data): New struct.
711 (charset_compare): New function.
712 (Fsort_charsets): New function.
713 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
714
715 * coding.c (decode_coding_iso_2022): Fix checking of dimension
716 number in CTEXT extended segment.
717
718 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
719
720 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
721 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
722
723 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
724
725 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
726 (Fhash_table_size): Fix typos in docstrings.
727 (Fmake_hash_table): Doc fix.
728
729 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
730
731 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
732 Doc fix (bug#5625).
733
734 2010-08-08 Ken Brown <kbrown@cornell.edu>
735
736 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
737 the MSDOS definition.
738
739 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
740
741 Use const char* instead of char*.
742 * xterm.c (x_create_toolkit_scroll_bar):
743 * xfont.c (xfont_list_pattern):
744 * xfns.c (x_default_scroll_bar_color_parameter)
745 (xic_create_fontsetname, x_default_font_parameter)
746 (x_screen_planes):
747 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
748 (store_mode_line_string, decode_mode_spec, display_string):
749 * menu.c (digest_single_submenu):
750 * keymap.h (initial_define_key, initial_define_lispy_key):
751 * keymap.c (initial_define_key, initial_define_lispy_key):
752 * image.c (image_error, image_keyword):
753 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
754 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
755 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
756 (ftfont_list, ftfont_match):
757 * frame.c (frame_parm_table):
758 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
759 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
760 (font_add_log, font_deferred_log):
761 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
762 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
763 (font_add_log, font_deferred_log):
764 * emacs.c (argmatch):
765 * dispextern.h (struct it):
766 * coding.c (ENCODE_DESIGNATION):
767 * charset.c (define_charset_internal): Use const.
768
769 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
770
771 * xrdb.c: Remove include guard.
772 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
773 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
774 realloc->xrealloc instead of using #defines.
775
776 2010-08-08 Eli Zaretskii <eliz@gnu.org>
777
778 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
779 * editfns.c (Fline_beginning_position, Fline_end_position):
780 State in the doc strings that start and end of line are in the
781 logical order.
782
783 * xdisp.c (display_line): Move the handling of overlay arrow after
784 the call to find_row_edges. (Bug#6699)
785
786 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
787
788 * keyboard.c (command_loop_1):
789 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
790
791 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
792
793 * insdel.c (prepare_to_modify_buffer): Save active region text to
794 Vsaved_region_selection.
795
796 * xselect.c (QPRIMARY): Move to keyboard.c.
797
798 * keyboard.c (Vselect_active_regions): Move from simple.el.
799 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
800 (command_loop_1): Set window selection prior to deactivating the mark.
801
802 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
803
804 * alloc.c (lisp_malloc):
805 * buffer.c (set_buffer_internal, set_buffer_internal_1):
806 * charset.h (emacs_mule_charset):
807 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
808 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
809 (bitch_at_user):
810 * lisp.h (Fcheck_coding_system, Fget_text_property)
811 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
812 Remove duplicate declarations.
813
814 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
815
816 * process.c: Simplify include logic.
817
818 * keyboard.h (quit_char): Add declaration.
819 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
820 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
821 Add declarations.
822 * sysdep.c:
823 * w32.c: Remove the above declarations.
824
825 Remove extern declarations in .c files, .h files have them.
826 * xterm.c:
827 * xdisp.c:
828 * msdos.c:
829 * image.c:
830 * gtkutil.c:
831 * fileio.c:
832 * eval.c: Remove declarations.
833
834 * frame.c (frame_params): Make const.
835
836 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
837
838 * emacs.c (emacs_copyright, emacs_version): Make static.
839 (Vinitial_window_system, Vauto_save_list_file_name)
840 (Vinhibit_redisplay): Remove declarations.
841 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
842 for AIX.
843
844 Use const for some arrays and functions.
845 * xterm.h (xg_set_icon_from_xpm_data):
846 * xfns.c (xg_set_icon_from_xpm_data):
847 * term.c (fkeys):
848 * keyboard.c (lispy_accent_keys, lispy_function_keys)
849 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
850 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
851 (frame.c frame_parms):
852 * emacs-icon.h (gnu_xpm_bits):
853 * callint.c (callint_argfuns): Use const.
854
855 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
856
857 * sysdep.c: Move include term.h last of includes (Bug#6812).
858
859 2010-08-06 Eli Zaretskii <eliz@gnu.org>
860
861 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
862
863 * msdos.c (IT_display_cursor): Log cursor position on termscript.
864
865 * .gdbinit (pgx): Display the avoid_cursor_p flag.
866
867 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
868
869 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
870
871 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
872
873 * xterm.h (x_get_focus_frame): Declare.
874
875 * keyboard.h (poll_for_input_1): Unconditionally declare.
876
877 * nsterm.h (x_set_menu_bar_lines): Declare.
878
879 * window.c: Don't include menu.h, it depends on lots of other .h-files.
880
881 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
882
883 * window.c: Include menu.h.
884
885 * unexmacosx.c (print_region_list, print_regions)
886 (build_region_list, find_emacs_zone_regions)
887 (unexec_regions_merge, read_load_commands, dump_it)
888 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
889
890 * term.c: Check HAVE_SYS_IOCTL_H.
891
892 * sysdep.c: Check HAVE_TERM_H.
893
894 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
895
896 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
897 (ns_ring_bell, ns_defined_color, hide_hourglass)
898 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
899 Convert to ANSI C prototypes.
900 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
901 before code.
902
903 * nsterm.h : Include sysselect.h.
904 (x_sync, x_get_focus_frame, x_set_mouse_position)
905 (x_set_mouse_pixel_position, x_make_frame_visible)
906 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
907 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
908 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
909 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
910 Declare.
911
912 * nsmenu.m (popup_activated, name_is_separator)
913 (syms_of_nsmenu): Convert to ANSI C prototypes.
914 (runMenuAt): Prototypes and move declarations before code.
915
916 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
917
918 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
919 prototypes.
920
921 * nsfns.m (have_menus_p, ns_display_info_for_name)
922 (x_set_cursor_type, ns_appkit_version_str)
923 (ns_appkit_version_int, ns_do_applescript)
924 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
925 (syms_of_nsfns): Convert to ANSI C prototypes.
926
927 * menu.h (x_set_menu_bar_line): Declare.
928 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
929
930 * lisp.h (fmod_float): Declare.
931
932 * image.c (xpm_scan, xpm_make_color_table_v)
933 (xpm_put_color_table_v, xpm_get_color_table_v)
934 (xpm_make_color_table_h, xpm_put_color_table_h)
935 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
936 (xpm_load): Convert to ANSI C prototypes.
937
938 * emacs.c: Include nsterm.h if HAVE_NS.
939
940 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
941
942 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
943
944 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
945 subprocesses, only MSDOS does not define HAVE_SOCKETS.
946 (socket_options): Use const char* for name.
947
948 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
949
950 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
951
952 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
953 Don't declare xmalloc_widget_value and digest_single_submenu.
954
955 * w32font.c (Qlatin): Remove declaration.
956
957 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
958
959 * dired.c (compile_pattern): Restore declaration.
960
961 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
962
963 Remove extern declarations in .c files, .h files have them.
964 * data.c:
965 * dired.c:
966 * editfns.c:
967 * filelock.c:
968 * fns.c:
969 * font.c:
970 * fontset.c:
971 * frame.c:
972 * fringe.c:
973 * ftfont.c:
974 * gtkutil.c:
975 * indent.c:
976 * keyboard.c:
977 * keymap.c:
978 * lread.c:
979 * menu.c:
980 * print.c:
981 * search.c:
982 * sound.c:
983 * window.c:
984 * xdisp.c:
985 * xfaces.c:
986 * xfns.c:
987 * xfont.c:
988 * xftfont.c:
989 * xmenu.c:
990 * xterm.c: Remove declarations.
991
992 Cleanup syssignal.h.
993 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
994 (main_thread): Move down to remove #ifdef.
995 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
996 Remove conditional definition following unconditional ones.
997
998 * lisp.h: Remove HAVE_SHM code, unused.
999 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1000 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1001 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1002 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1003 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1004 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1005 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1006 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1007 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1008 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1009 (Qwindow_scroll_functions, Vafter_load_alist)
1010 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1011 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1012 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1013 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1014 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1015 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1016 (initial_argv, last_nonmenu_event, load_in_progress)
1017 (noninteractive_need_newline, scroll_margin): Add declarations.
1018
1019 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1020 declarations, menu.h has them.
1021 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1022 (Vinput_method_function, Qinput_method_function)
1023 (Qevent_symbol_element_mask, last_event_timestamp):
1024 * dispextern.h (Voverflow_newline_into_fringe):
1025 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1026 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1027 (syms_of_w32font, syms_of_nsfont):
1028 * fontset.h (find_font_encoding, Qlatin):
1029 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1030 (Vtool_bar_mode, set_frame_menubar):
1031 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1032 * xterm.h (Qx_gtk_map_stock):
1033 * keymap.h (meta_prefix_char): Add declarations.
1034
1035 * term.c: Remove dead code.
1036
1037 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1038 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1039 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1040 which is what was there before BSD_PGRPS was removed.
1041
1042 2010-08-05 Eli Zaretskii <eliz@gnu.org>
1043
1044 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1045
1046 * unexcoff.c: Renamed from unexec.c.
1047
1048 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1049
1050 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1051
1052 2010-08-03 Johan Bockgård <bojohan@gnu.org>
1053
1054 * data.c (Flocal_variable_p): Handle variable aliases correctly.
1055 (Bug#6744)
1056
1057 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1058
1059 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1060 to TRUE if depth of screen is < 16.
1061
1062 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1063 USE_GTK_TOOLTIP.
1064 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1065 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
1066 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
1067 USE_GTK_TOOLTIP.
1068 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1069
1070 * xterm.h (USE_GTK_TOOLTIP): New define.
1071 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1072
1073 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1074 to Control-D (Bug#6771).
1075
1076 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
1077
1078 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1079 Wording by Drew Adams <drew.adams@oracle.com>.
1080
1081 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1082
1083 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1084 ttip_lbl.
1085
1086 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1087 calling gtk_widget_queue_draw.
1088 (x_free_frame_resources): Call xg_free_frame_widgets.
1089
1090 * xfns.c (x_gtk_use_system_tooltips): New variable.
1091 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1092 new gtkutil tooltip functions to show the tooltip.
1093 (Fx_hide_tip): Call xg_hide_tooltip.
1094 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1095
1096 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1097 (xg_show_tooltip, xg_hide_tooltip): Declare.
1098
1099 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
1100 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1101 New functions.
1102 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1103 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1104 Remove code that is commented out.
1105
1106 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1107
1108 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1109
1110 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
1111
1112 * xselect.c (x_own_selection): Use list4.
1113
1114 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1115
1116 * buffer.c (Qwindow): Do not define, already defined in data.c.
1117 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1118
1119 2010-07-29 Chad Brown <yandros@mit.edu>
1120
1121 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1122 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1123 * config.in: Undef HAVE_DIRENT_H.
1124 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
1125 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1126
1127 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1128
1129 Rename s/usg5-4.h -> s/usg5-4-common.h.
1130 * s/usg5-4.h: Rename file to ...
1131 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1132 * s/unixware.h:
1133 * s/sol2-6.h:
1134 * s/irix6-5.h: Update includes accordingly.
1135
1136 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1137
1138 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1139
1140 * xterm.h (struct x_output): Add toolbar_top_height,
1141 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1142 Remove toolbar_height.
1143 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
1144 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1145 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1146 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1147
1148 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1149
1150 * xfns.c (x_set_tool_bar_position): New function.
1151 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1152 (x_frame_parm_handlers): Add x_set_tool_bar_position.
1153 (syms_of_xfns): If USE_GTK, provide move-toolbar.
1154
1155 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1156 and FRAME_TOOLBAR_LEFT_WIDTH.
1157
1158 * gtkutil.h (xg_change_toolbar_position): Declare.
1159
1160 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1161 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1162 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1163 (xg_create_frame_widgets): Create a hobox for placing widgets
1164 vertically. Use gtk_box_pack_start.
1165 (xg_height_or_width_changed): Renamed from xg_height_changed.
1166 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1167 (xg_update_frame_menubar, free_frame_menubar): Change to
1168 xg_height_or_width_changed.
1169 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1170 size correctly. Remove hardcoded 4, instead use handlebox size -
1171 toolbar size.
1172 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
1173 size correctly. Use handlebox size + toolbar size as additional size.
1174 (xg_pack_tool_bar): POS is a new parameter.
1175 Set orientation of tool bar based on pos.
1176 Only make handlebox_widget if NULL.
1177 Check if tool bar goes to vbox or hbox depending on pos.
1178 (xg_update_tool_bar_sizes): New function.
1179 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
1180 height, call xg_update_tool_bar_sizes instead.
1181 (free_frame_tool_bar): Remove from hbox or vbox depending on
1182 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1183 (xg_change_toolbar_position): New function.
1184
1185 * frame.h (struct frame): Add tool_bar_position.
1186 (Qbottom): Declare.
1187
1188 * frame.c (Qtool_bar_position): New variable.
1189 (make_frame): Set tool_bar_position to Qtop.
1190 (frame_parms): Add tool-bar-position.
1191 (x_report_frame_params): Store tool_bar_position.
1192 (x_set_fringe_width): Reset wm size hint after fringe changes.
1193
1194 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1195
1196 Make lisp_time_argument declaration work on all systems.
1197 * lisp.h (lisp_time_argument): Move declaration ...
1198 * systime.h (lisp_time_argument): ... here
1199 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1200
1201 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1202
1203 * vm-limit.c (POINTER): Add typedef for it.
1204 (start_of_data): Change return type from POINTER to char *.
1205
1206 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1207 HAVE_WINDOW_SYSTEM.
1208
1209 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1210
1211 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1212 Remove reference to __osf__, unused.
1213
1214 * mem-limits.h: Remove duplicated includes.
1215 (NULL): Remove definition, unused.
1216 (POINTER): Remove definition.
1217 (start_of_data): Use char* in prototype, as the function
1218 definition does.
1219
1220 Remove extern declarations from .c files, and them to .h files.
1221 * keyboard.h (Qhelp_echo, waiting_for_input)
1222 (input_available_clear_time, ignore_mouse_drag_p)
1223 (Vdouble_click_time, real_this_command, Vthis_original_command):
1224 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1225 (Voverriding_local_map_menu_flag):
1226 * lisp.h (Qinteractive_form, use_file_dialog)
1227 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1228 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1229 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1230 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1231 (Qfunction, debug_on_next_call, Qfield)
1232 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1233 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1234 (Qfile_directory_p, Qinsert_file_contents)
1235 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1236 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1237 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1238 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1239 (Qminibuffer_prompt)
1240 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1241 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1242 (gray_bitmap_bits, xic_create_fontsetname):
1243 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1244
1245 * xsmfns.c (Vuser_login_name):
1246 * xrdb.c (Vdouble_click_time):
1247 * xfaces.c (xic_create_fontsetname):
1248 * w32select.c (waiting_for_input):
1249 * print.c (minibuffer_auto_raise):
1250 * msdos.c (Qhelp_echo):
1251 * macros.c (real_this_command):
1252 * keymap.c (Voverriding_local_map):
1253 * xterm.c (poll_for_input_1, gray_bitmap_width)
1254 (gray_bitmap_height, gray_bitmap_bits;
1255 * xmenu.c ( Voverriding_local_map)
1256 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1257 (use_file_dialog, Xt_app_con):
1258 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1259 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1260 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1261 (Qtool_bar_lines, ignore_mouse_drag_p):
1262 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1263 (Qrear_nonsticky, nconc2):
1264 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1265 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1266 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1267 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1268 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1269 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1270 (gc_in_progress):
1271 * doc.c (Voverriding_local_map, Qremap):
1272 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1273 (Vcompletion_regexp_list):
1274 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1275 (Qcompletion_ignore_case):
1276 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1277 (Vhistory_length, Vthis_original_command, real_this_command)
1278 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1279 * image.c (Qrisky_local_variable):
1280 * fontset.c (QCname):
1281 * fns.c (minibuffer_auto_raise, QCname):
1282 * dispnew.c (char_ins_del_cost):
1283 * composite.c (font_fill_lglyph_metrics):
1284 * cmds.c (Qface, Vtranslation_table_for_input):
1285 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1286 * ccl.c (charset_unicode):
1287 * callproc.c (Vtemporary_file_directory):
1288 * buffer.c (emacs_strerror): Remove extern declarations.
1289
1290 * data.c (Qwindow): Make non-static, used from other files too.
1291 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1292
1293 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1294 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1295 * s/usg5-4.h (COFF):
1296 * s/template.h:
1297 * s/msdos.h (COFF, NO_REMAP):
1298 * s/ms-w32.h (NO_REMAP):
1299 * s/hpux10-20.h (NO_REMAP):
1300 * m/sparc.h (SEGMENT_MASK):
1301 * m/m68k.h (NO_REMAP):
1302 * m/intel386.h (SEGMENT_MASK):
1303 * m/arm.h (NO_REMAP):
1304 * m/alpha.h (COFF):
1305 * m/template.h: Remove references to unused defines.
1306
1307 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1308
1309 * xsettings.c (Ftool_bar_get_system_style): Also check for
1310 Qtext_image_horiz.
1311
1312 * xdisp.c (Qtext_image_horiz): Define.
1313 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
1314 to documentation of tool-bar-style.
1315
1316 * lisp.h (Qtext_image_horiz): Declare.
1317
1318 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1319 style text_image_horiz.
1320
1321 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1322
1323 * emacs.c (Fkill_emacs): Remove return statement.
1324
1325 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1326 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1327 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1328 local extern declarations.
1329
1330 * xmenu.c: Do not included lwlib.h, not needed.
1331
1332 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1333
1334 * process.c: Move definitions earlier to minimize #ifdefs.
1335
1336 * xterm.h (x_get_customization_string, x_load_resources)
1337 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1338 (x_check_errors, x_property_data_to_lisp, defined_color)
1339 (xic_set_xfontset, x_defined_color): Use const.
1340
1341 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1342 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1343
1344 * xselect.c (selection_data_to_lisp_data)
1345 (x_property_data_to_lisp):
1346 * xrdb.c (x_get_string_resource, file_p)
1347 (x_get_customization_string, magic_file_p, search_magic_path)
1348 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1349 (x_get_string_resource): Use const.
1350
1351 * xfns.c: Include xlwmenu.h when USE_LUCID.
1352 (x_defined_color, xic_set_xfontset): Use const.
1353 (Fx_hide_tip): Remove local extern declaration.
1354
1355 * xfaces.c (Qmouse_face): Remove declaration.
1356 (face_color_gray_p, tty_defined_color, defined_color)
1357 (face_color_gray_p, face_color_supported_p): Add const.
1358
1359 * xdisp.c (do_mouse_tracking): Remove declaration.
1360 (add_to_log): Use const.
1361
1362 * minibuf.c (Qmouse_face): Remove declaration.
1363
1364 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1365
1366 * keyboard.h (do_mouse_tracking): Add declaration.
1367
1368 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1369 (QCdata, QCtype, Qcenter): Remove declarations.
1370
1371 * frame.c (x_get_resource_string, x_get_string_resource)
1372 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1373 (x_default_parameter): Use const.
1374
1375 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1376 (QCheight, QCsize, QCname): Remove declarations.
1377
1378 * emacs.c (main): Remove local extern declaration.
1379
1380 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1381 declarations.
1382
1383 * dispnew.c: Remove duplicate #include <unistd.h>.
1384 (update_window, update_frame_1, init_display): Remove local extern
1385 declarations.
1386
1387 * dispextern.h (add_to_log): Remove declaration.
1388 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1389 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1390
1391 * dired.c (scmp): Add const.
1392 (directory_files_internal): Remove local extern declaration.
1393
1394 * data.c (Finteractive_form): Use const.
1395
1396 * composite.c (syms_of_composite): Remove local extern declarations.
1397
1398 * charset.c (add_to_log): Remove declaration.
1399
1400 * character.c (strwidth, parse_str_to_multibyte): Add const.
1401
1402 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1403
1404 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1405
1406 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
1407 (Lisp_Subr): Make doc and intspec constant.
1408 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1409 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1410 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1411 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1412 (display_arg): Add declarations.
1413
1414 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
1415
1416 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1417
1418 * window.c (Fwindow_height): Doc fix (bug#6518).
1419
1420 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
1421
1422 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1423
1424 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1425
1426 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1427 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1428 functions.
1429
1430 * frame.h (Qtty_color_mode): Add declaration.
1431
1432 * lisp.h (Ftop_level, Fexit_recursive_edit)
1433 (Fabort_recursive_edit): Mark as NO_RETURN.
1434
1435 2010-07-26 Kenichi Handa <handa@m17n.org>
1436
1437 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
1438 number of glyphs gets smaller than the original length. (Bug#6621)
1439
1440 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
1441
1442 * lread.c (unreadpure, mapatoms_1): Make static.
1443
1444 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
1445
1446 * terminfo.c (tparam): Fix prototype of tparm.
1447
1448 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1449
1450 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1451 find start of text segment.
1452 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1453 is defined.
1454
1455 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1456
1457 2010-07-25 Ken Brown <kbrown@cornell.edu>
1458
1459 * vm-limit.c (check_memory_limits): Fix previous change;
1460 accidentally reverted an earlier change.
1461
1462 2010-07-25 Ken Brown <kbrown@cornell.edu>
1463
1464 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1465 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1466
1467 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
1468
1469 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1470 * dired.c (opendir, readdir): Fix prototypes.
1471 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1472 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1473 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1474 (telldir): Remove declaration.
1475 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1476 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1477 * syssignal.h (strsignal): Fix prototype.
1478 * term.c (tparam): Fix prototype.
1479 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1480 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1481 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1482 and __morecore.
1483 * w32gui.h (XParseGeometry): Fix prototype.
1484 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1485 * w32term.c (my_set_focus): Declare inside #if 0.
1486 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1487 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1488 (drain_message_queue, get_next_msg, post_msg, parse_button)
1489 (ClipboardSequence_Proc): Fix prototypes.
1490 (wait_for_sync): Remove declaration.
1491
1492 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
1493
1494 * w32fns.c (w32_to_x_color): Remove, unused.
1495
1496 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1497
1498 * lisp.h: Remove leftover P_.
1499
1500 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1501
1502 * ecrt0.c, unexalpha.c: Remove files, unused.
1503
1504 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1505
1506 * cmds.c (internal_self_insert): Make static.
1507 * lisp.h (internal_self_insert): Remove declaration.
1508
1509 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
1510
1511 * alloc.c (free_float):
1512 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1513 * frame.c (delete_frame_handler):
1514 * ralloc.c (reorder_bloc):
1515 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1516 Remove unused static functions.
1517
1518 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1519 it is called only from NS code.
1520
1521 * w32term.c (my_set_focus): #ifdef away; it is called only from
1522 "#ifdef 0" code.
1523
1524 * w32fns.c (x_edge_detection):
1525 * xfaces.c (may_use_scalable_font_p):
1526 Remove obsolete static declarations.
1527
1528 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
1529
1530 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1531 (emacs_blocked_realloc, uninterrupt_malloc):
1532 * fringe.c (w32_reset_fringes):
1533 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1534 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1535 * sound.c (be2hs, do_play_sound):
1536 * vm-limit.c (get_lim_data, ret_lim_data):
1537 * w32term.c (x_free_frame_resources):
1538 * xfaces.c (x_create_gc, x_free_gc):
1539 Convert definitions to standard C.
1540
1541 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1542
1543 * eval.c (Feval, Ffuncall): Use the new names.
1544
1545 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1546 (DEFUN): Add braces around the union initialisation and use ## to
1547 specify the right union alternative and avoid a cast.
1548
1549 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
1550
1551 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1552
1553 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
1554
1555 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1556
1557 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1558
1559 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1560 is related to the menu bar (Bug#6499).
1561 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
1562
1563 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1564
1565 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1566
1567 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1568
1569 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1570 i.e. don't put back ButtonRelease (Bug#6608).
1571
1572 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1573 instead of Window. Call xg_event_is_for_menubar when
1574 USE_GTK (Bug#6499).
1575
1576 * gtkutil.h (xg_event_is_for_menubar): Declare.
1577
1578 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1579
1580 2010-07-16 Eli Zaretskii <eliz@gnu.org>
1581
1582 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1583 when it's the same as the old foreground. (Bug#6609)
1584
1585 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1586
1587 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1588 widget is non-null (Bug#6645).
1589
1590 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1591
1592 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1593 Convert old-style definition.
1594
1595 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1596 timestamp argument.
1597
1598 2010-07-15 Eli Zaretskii <eliz@gnu.org>
1599
1600 * fringe.c (update_window_fringes): Restore mistakenly reverted
1601 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1602
1603 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1604
1605 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1606 (SET_SAVED_KEY_EVENT): Remove (not used).
1607 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1608 remove size parameter.
1609 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1610 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1611 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1612 ButtonRelease.
1613 (x_set_window_size_1): scroll_bar_actual_width is always
1614 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
1615
1616 * xdisp.c (pending_menu_activation): Remove extern declaration.
1617 (prepare_menu_bars): Remove setting of pending_menu_activation.
1618
1619 * xmenu.c (pending_menu_activation): Remove.
1620 (x_activate_menubar): Set popup_activated_flag for Xt also.
1621 Remove setting of pending_menu_activation.
1622 (set_frame_menubar): Remove check of pending_menu_activation.
1623 Declare menubar_size before code. Correct spelling in comment.
1624
1625 2010-07-14 Kenichi Handa <handa@m17n.org>
1626
1627 * font.c (font_open_entity): Cancel previous change.
1628 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1629
1630 2010-07-13 Eli Zaretskii <eliz@gnu.org>
1631
1632 Remove subprocesses #ifdefs.
1633 * process.c <inhibit_sentinels>: Move to the common part.
1634 (Fwaiting_for_user_input_p): Move to the common part; return nil
1635 if async subprocesses aren't supported.
1636 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1637 MS-DOS. Remove "#ifdef subprocesses".
1638 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1639 (gettimeofday): Remove "#ifdef subprocesses".
1640 (wait_without_blocking): Remove function.
1641 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1642 Remove "#ifdef subprocesses".
1643 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1644 compiled on MS-DOS.
1645 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1646 wait_for_termination on MS-DOS.
1647 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1648 initialization of inhibit_sentinels.
1649 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1650 subprocesses" conditional.
1651 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1652 wait_for_termination, since `buffer' cannot be an integer when
1653 async subprocesses are not supported
1654 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1655 for ifdefing away the call to Fprocess_status.
1656
1657 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1658 away the entire body of the function.
1659
1660 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1661
1662 Remove subprocesses #ifdefs from term.c.
1663 * process.c (add_keyboard_wait_descriptor)
1664 (delete_keyboard_wait_descriptor): Move to common section, do
1665 nothing when subprocesses is not defined.
1666 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1667 Remove subprocesses #ifdefs.
1668
1669 Convert maybe_fatal to standard C.
1670 * lisp.h (verror): Declare.
1671 * eval.c (verror): New function containing the code from ...
1672 (error): ... this. Call verror.
1673 * term.c (vfatal): New function containing the code from ...
1674 (fatal): ... this. Call vfatal.
1675 (maybe_fatal): Convert to standard C, use variable number of
1676 arguments. Declare as non-return.
1677 (init_tty): Fix maybe_fatal call.
1678
1679 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1680
1681 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1682 (_scroll_bar_note_movement): Convert definitions to standard C.
1683 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1684 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1685
1686 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1687
1688 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1689 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1690 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1691 (xaw_jump_callback, xaw_scroll_callback)
1692 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1693 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1694 definitions to standard C.
1695 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1696 (popup_activate_callback, popup_deactivate_callback)
1697 (menu_highlight_callback, menubar_selection_callback)
1698 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1699 (free_frame_menubar, popup_selection_callback, as)
1700 (create_and_show_popup_menu, dialog_selection_callback)
1701 (create_and_show_dialog):
1702 * xfns.c (hack_wm_protocols, x_window):
1703 * xfaces.c (x_update_menu_appearance):
1704 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1705 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1706 (set_frame_size, update_wm_hints, setup_frame_gcs)
1707 (update_various_frame_slots, update_from_various_frame_slots)
1708 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1709 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1710 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1711
1712 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1713
1714 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
1715
1716 2010-07-12 Eli Zaretskii <eliz@gnu.org>
1717
1718 * process.c (setup_process_coding_systems): Move to the part
1719 shared by non-subprocesses systems, and make its body empty when
1720 subprocesses is not defined.
1721 (close_process_descs): Move to the part shared by non-subprocesses
1722 systems.
1723 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1724 ANSI C.
1725
1726 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1727
1728 * editfns.c (transpose_markers): Convert old-style definition.
1729 * emacs.c (abort, shut_down_emacs, fixup_locale)
1730 (synchronize_system_time_locale)
1731 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1732 * floatfns.c (extract_float, matherr, init_floatfns)
1733 (syms_of_floatfns): Likewise.
1734 * fns.c (make_hash_table): Likewise.
1735 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1736 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1737 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1738 (ftfont_variation_glyphs): Likewise.
1739 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1740 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1741 * lread.c (read_filtered_event): Likewise.
1742 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1743 * process.c (wait_reading_process_output): Likewise.
1744 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1745 * search.c (search_buffer, boyer_moore): Likewise.
1746 * syntax.c (scan_sexps_forward): Likewise.
1747 * xdisp.c (try_scrolling): Likewise.
1748 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1749 (face_at_string_position): Likewise.
1750 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1751 * xselect.c (x_get_window_property, receive_incremental_selection)
1752 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1753 Likewise.
1754 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1755
1756 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1757
1758 * callproc.c (child_setup): Remove subprocesses conditional.
1759 Remove code dealing with SET_EMACS_PRIORITY, unused.
1760
1761 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
1762 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1763
1764 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1765 (__do_global_dtors, __main): Use void in definition.
1766 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1767 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1768 the only users from ...
1769 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1770 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1771 (HAVE_VOLATILE): Remove, unused.
1772
1773 Convert more function definitions to standard C.
1774 * xdisp.c (window_box_edges, handle_single_display_spec)
1775 (display_string): Convert definition to standard C.
1776 * scroll.c (do_direct_scrolling, scrolling_1):
1777 * dispnew.c (allocate_matrices_for_frame_redisplay)
1778 (mirrored_line_dance):
1779 * coding.c (code_convert_string):
1780 * charset.c (map_charset_chars):
1781 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1782 (Fregister_ccl_program, Fregister_code_conversion_map):
1783 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1784 (head_table): Make static and const.
1785
1786 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1787
1788 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1789 (PROFILING_LDFLAGS): Set from substitution.
1790 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1791 CFLAGS last.
1792
1793 2010-07-12 Kenichi Handa <handa@m17n.org>
1794
1795 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1796 (shortlisp): Likewise.
1797
1798 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1799
1800 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1801 of FONT_ENTITY_INDEX.
1802 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1803 property, get the property value dynamically.
1804 (Ffont_put): Accept font-entity and font-object too.
1805 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1806 return value changed.
1807 (syms_of_font): Adjusted for the above change.
1808
1809 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1810
1811 * blockinput.h: Remove obsolete comment.
1812
1813 * lisp.h: Include <stddef.h>.
1814 (OFFSETOF): Don't define.
1815 (VECSIZE): Use offsetof instead of OFFSETOF.
1816 (PSEUDOVECSIZE): Likewise.
1817 * process.c (conv_sockaddr_to_lisp): Likewise.
1818 * alloc.c: Don't include <stddef.h>.
1819 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1820
1821 * process.c: Remove obsolete comment.
1822
1823 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
1824
1825 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1826
1827 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1828
1829 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1830 index, rindex.
1831 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1832 * editfns.c (Fuser_full_name, Fformat): Likewise.
1833 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1834 * fileio.c (Ffile_symlink_p): Likewise.
1835 * filelock.c (current_lock_owner): Likewise.
1836 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1837 * fontset.c (fontset_pattern_regexp): Likewise.
1838 * lread.c (read1): Likewise.
1839 * sysdep.c (init_system_name): Likewise.
1840 * xfns.c (select_visual): Likewise.
1841 * s/hpux10-20.h (index, rindex): Don't define.
1842 * s/ms-w32.h (index): Likewise.
1843 * s/usg5-4.h: Likewise.
1844
1845 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1846
1847 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1848 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1849 (egetenv): Likewise.
1850 * doprnt.c (doprnt): Likewise.
1851 * editfns.c (set_time_zone_rule, format2): Likewise.
1852 * emacs.c (decode_env_path): Likewise.
1853 * eval.c (signal_error, error): Likewise.
1854 * insdel.c (replace_range_2): Likewise.
1855 * keyboard.c (cmd_error_internal): Likewise.
1856 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1857 * print.c (write_string, write_string_1, print_error_message):
1858 Likewise.
1859 * vm-limit.c (warn_function, memory_warnings): Likewise.
1860 * xdisp.c (message1, message1_nolog, message_with_string)
1861 (vmessage, message, message_nolog): Likewise.
1862 * emacs.c: Remove duplicate declaration.
1863 * keyboard.h: Likewise.
1864 * lisp.h: Update prototypes.
1865
1866 * eval.c: Fix indentation problem.
1867
1868 * keyboard.c: Include "process.h"
1869
1870 * eval.c: Remove obsolete noinline declaration.
1871 * fns.c: Likewise.
1872
1873 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
1874
1875 * doprnt.c (doprnt): Take a va_list argument instead of count and
1876 pointer.
1877 * eval.c (error): Change to a standard-C variadic function.
1878 * xdisp.c (vmessage): Renamed from message, made static, and
1879 changed to take a va_list argument.
1880 (message): New variadic wrapper.
1881 (message_nolog): Now a variadic function, calling vmessage.
1882 * lisp.h: Include stdarg.h for va_list.
1883 (doprnt, error, message, message_nolog): Decls updated.
1884
1885 2010-07-11 Eli Zaretskii <eliz@gnu.org>
1886
1887 * process.c (syms_of_process) <delete-exited-processes>: Define
1888 even if !subprocesses.
1889 (delete_exited_processes): Ditto.
1890
1891 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1892 (delete_exited_processes): Don't define.
1893
1894 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
1895
1896 * frame.c (make_frame): Initialize menu_bar_lines and
1897 tool_bar_lines members.
1898 (make_initial_frame, make_terminal_frame): Initialize
1899 menu_bar_lines using value of menu-bar-mode.
1900
1901 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1902
1903 2010-07-10 Eli Zaretskii <eliz@gnu.org>
1904
1905 * process.c: Reshuffle #include's. Condition some of the global
1906 and static variables on `subprocesses'.
1907 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1908 Leave only one implementation.
1909 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1910 (kill_buffer_processes, Flist_system_processes)
1911 (Fprocess_attributes, init_process, syms_of_process): Unify the
1912 implementations for with subprocesses and without them.
1913
1914 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1915
1916 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1917 correct size for Motif.
1918 (free_frame_menubar): Call x_set_window_size to update frame size.
1919
1920 * xfns.c (x_window): Set borderWidth to 0 for pane and
1921 EmacsFrame. Frame size calculation is wrong otherwise.
1922
1923 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
1924
1925 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1926 allows to suppress errors when polling in Emacs' main loop.
1927 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1928 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1929 (Fdbus_method_error_internal, Fdbus_send_signal)
1930 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1931 (Fdbus_register_method): Use it. (Bug#6579)
1932
1933 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1934
1935 * alloc.c: Convert DEFUNs to standard C.
1936 * buffer.c:
1937 * bytecode.c:
1938 * callint.c:
1939 * callproc.c:
1940 * casefiddle.c:
1941 * casetab.c:
1942 * category.c:
1943 * character.c:
1944 * charset.c:
1945 * chartab.c:
1946 * cmds.c:
1947 * coding.c:
1948 * composite.c:
1949 * data.c:
1950 * dbusbind.c:
1951 * dired.c:
1952 * dispnew.c:
1953 * doc.c:
1954 * dosfns.c:
1955 * editfns.c:
1956 * emacs.c:
1957 * eval.c:
1958 * fileio.c:
1959 * filelock.c:
1960 * floatfns.c:
1961 * fns.c:
1962 * font.c:
1963 * fontset.c:
1964 * frame.c:
1965 * fringe.c:
1966 * image.c:
1967 * indent.c:
1968 * insdel.c:
1969 * keyboard.c:
1970 * keymap.c:
1971 * lread.c:
1972 * macros.c:
1973 * marker.c:
1974 * menu.c:
1975 * minibuf.c:
1976 * msdos.c:
1977 * nsfns.m:
1978 * nsmenu.m:
1979 * nsselect.m:
1980 * print.c:
1981 * process.c:
1982 * search.c:
1983 * sound.c:
1984 * syntax.c:
1985 * term.c:
1986 * terminal.c:
1987 * textprop.c:
1988 * undo.c:
1989 * w16select.c:
1990 * w32console.c:
1991 * w32fns.c:
1992 * w32font.c:
1993 * w32menu.c:
1994 * w32proc.c:
1995 * w32select.c:
1996 * window.c:
1997 * xdisp.c:
1998 * xfaces.c:
1999 * xfns.c:
2000 * xmenu.c:
2001 * xselect.c:
2002 * xsettings.c:
2003 * xsmfns.c: Likewise.
2004
2005 2010-07-08 Eli Zaretskii <eliz@gnu.org>
2006
2007 * process.c (kbd_is_on_hold, hold_keyboard_input)
2008 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2009
2010 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2011
2012 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2013 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2014 unless USE_LUCID.
2015
2016 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2017
2018 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2019 declaration.
2020
2021 Clean up include guards.
2022 * tparam.c: Remove include guards for config.h, string.h and code
2023 that assumes #ifndef emacs.
2024 * termcap.c:
2025 * unexalpha.c:
2026 * sysdep.c:
2027 * filemode.c:
2028 * filelock.c:
2029 * bidi.c: Likewise.
2030
2031 Remove prefix-args.c
2032 * prefix-args.c: Remove file.
2033 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2034 * Makefile.in (temacs${EXEEXT}): Remove references to
2035 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2036 (mostlyclean): Remove reference to prefix-args.
2037 (prefix-args): Remove.
2038
2039 Simplify cstart_of_data, start_of_code and related code.
2040 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2041 (start_of_data): Merge into start_of_data function.
2042 * sysdep.c (start_of_text): Remove. Move simplified versions of
2043 it in the only users: unexaix.c and unexec.c.
2044 (read_input_waiting): Remove local declaration of quit_char.
2045 (start, etext): Remove declarations.
2046 (start_of_data): Merge with the version in mem-limits.h and move
2047 to vm-limits.c.
2048 * vm-limit.c (start_of_data): Merged and simplified version of the
2049 code formerly in mem-limits.h and sysdep.c.
2050 * unexec.c (start): New declaration, moved from sysdep.c.
2051 (start_of_text): Simplified version of the code formerly in sysdep.c.
2052 * unexaix.c (start_of_text): Simplified version of the code
2053 formerly in sysdep.c.
2054 * m/alpha.h (HAVE_TEXT_START): Remove.
2055 (TEXT_START): Move ...
2056 * unexalpha.c (TEXT_START): ... here.
2057 * s/hpux10-20.h (TEXT_START): Remove.
2058 * s/darwin.h (TEXT_START):
2059 * m/mips.h (TEXT_START):
2060 * m/macppc.h (HAVE_TEXT_START):
2061 * m/m68k.h (TEXT_START):
2062 * m/iris4d.h (TEXT_START):
2063 * m/intel386.h (TEXT_START):
2064 * m/ibmrs6000.h (TEXT_START):
2065 * m/ia64.h (HAVE_TEXT_START):
2066 * s/msdos.h (TEXT_START): Likewise.
2067
2068 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2069
2070 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2071 (overrun_check_free, xstrdup, allocate_string)
2072 (allocate_string_data, compact_small_strings, Fmake_string)
2073 (make_unibyte_string, make_multibyte_string)
2074 (make_string_from_bytes, make_specified_string, make_float)
2075 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2076 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2077 memcpy, memmove, memset, memcmp.
2078 * atimer.c (start_atimer, set_alarm): Likewise.
2079 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2080 (mmap_realloc, init_buffer_once): Likewise.
2081 * callint.c (Fcall_interactively): Likewise.
2082 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2083 (getenv_internal_1): Likewise.
2084 * casefiddle.c (casify_object): Likewise.
2085 * ccl.c (ccl_driver): Likewise.
2086 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2087 * charset.c (load_charset_map_from_file)
2088 (load_charset_map_from_file, load_charset_map_from_vector)
2089 (Fdefine_charset_internal): Likewise.
2090 * cm.c (Wcm_clear): Likewise.
2091 * coding.c (decode_eol, decode_coding_object)
2092 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2093 * data.c (Faset): Likewise.
2094 * dired.c (directory_files_internal, file_name_completion_stat):
2095 Likewise.
2096 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2097 (clear_glyph_row, copy_row_except_pointers)
2098 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2099 (save_current_matrix, restore_current_matrix)
2100 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2101 (mirror_line_dance, scrolling_window): Likewise.
2102 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2103 Likewise.
2104 * doprnt.c (doprnt): Likewise.
2105 * editfns.c (Fuser_full_name, make_buffer_string_both)
2106 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2107 * emacs.c (sort_args): Likewise.
2108 * eval.c (Fapply, Ffuncall): Likewise.
2109 * fileio.c (Ffile_name_directory, make_temp_name)
2110 (Fexpand_file_name, search_embedded_absfilename)
2111 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2112 (auto_save_error): Likewise.
2113 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2114 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2115 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2116 (Fmake_hash_table): Likewise.
2117 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2118 * ftfont.c (ftfont_text_extents): Likewise.
2119 * getloadavg.c (getloadavg): Likewise.
2120 * image.c (define_image_type, make_image, make_image_cache)
2121 (x_create_x_image_and_pixmap, xbm_image_p)
2122 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2123 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2124 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2125 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2126 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2127 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2128 Likewise.
2129 * indent.c (scan_for_column, compute_motion): Likewise.
2130 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2131 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2132 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2133 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2134 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2135 (store_user_signal_events, menu_bar_items, tool_bar_items)
2136 (process_tool_bar_item, append_tool_bar_item)
2137 (read_char_minibuf_menu_prompt, read_key_sequence)
2138 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2139 Likewise.
2140 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2141 Likewise.
2142 * lisp.h (STRING_COPYIN): Likewise.
2143 * lread.c (Fload, read1, oblookup): Likewise.
2144 * msdos.c (Frecent_doskeys): Likewise.
2145 * nsfns.m (Fx_create_frame): Likewise.
2146 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2147 Likewise.
2148 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2149 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2150 Likewise.
2151 * nsmenu.m (ns_update_menubar): Likewise.
2152 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2153 * print.c (print_unwind, printchar, strout, print_string)
2154 (print_error_message): Likewise.
2155 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2156 (Fmake_network_process, Fnetwork_interface_list)
2157 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2158 (init_process): Likewise.
2159 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2160 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2161 Likewise.
2162 * scroll.c (do_scrolling, do_direct_scrolling)
2163 (scrolling_max_lines_saved): Likewise.
2164 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2165 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2166 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2167 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2168 (emacs_set_tty): Likewise.
2169 * term.c (encode_terminal_code, calculate_costs)
2170 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2171 Likewise.
2172 * termcap.c (tgetst1, gobble_line): Likewise.
2173 * termhooks.h (EVENT_INIT): Likewise.
2174 * tparam.c (tparam1): Likewise.
2175 * unexalpha.c (unexec): Likewise.
2176 * unexec.c (write_segment): Likewise.
2177 * unexmacosx.c (unexec_write_zero): Likewise.
2178 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2179 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2180 * w32font.c (w32font_list_family, w32font_text_extents)
2181 (w32font_list_internal, w32font_match_internal)
2182 (w32font_open_internal, compute_metrics, Fx_select_font):
2183 Likewise.
2184 * w32menu.c (set_frame_menubar, add_menu_item)
2185 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2186 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2187 * w32uniscribe.c (uniscribe_list_family): Likewise.
2188 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2189 * window.c (make_window, replace_window, set_window_buffer)
2190 (Fsplit_window): Likewise.
2191 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2192 (add_to_log, message3, x_consider_frame_title)
2193 (append_space_for_newline, extend_face_to_end_of_line)
2194 (decode_mode_spec_coding, init_glyph_string): Likewise.
2195 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2196 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2197 (face_attr_equal_p, make_realized_face, make_face_cache)
2198 (free_realized_faces, lookup_named_face, smaller_face)
2199 (face_with_height, lookup_derived_face)
2200 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2201 (Finternal_set_font_selection_order, realize_default_face)
2202 (compute_char_face, face_at_buffer_position)
2203 (face_for_overlay_string, face_at_string_position, merge_faces):
2204 Likewise.
2205 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2206 (Fx_window_property, x_create_tip_frame)
2207 (Fx_backspace_delete_keys_p): Likewise.
2208 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2209 (xfont_text_extents): Likewise.
2210 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2211 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2212 * xselect.c (x_queue_event, x_get_window_property)
2213 (receive_incremental_selection): Likewise.
2214 * xsmfns.c (x_session_check_input): Likewise.
2215 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2216 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2217 Likewise.
2218 * character.h (BCOPY_SHORT): Removed.
2219 * config.in: Regenerate.
2220 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2221 * emacs.c (main) [PROFILING]: Don't declare
2222 dump_opcode_frequencies.
2223 * lisp.h (safe_bcopy): Remove declaration.
2224 (memset) [!HAVE_MEMSET]: Declare.
2225 (memcpy) [!HAVE_MEMCPY]: Likewise.
2226 (memmove) [!HAVE_MEMMOVE]: Likewise.
2227 (memcmp) [!HAVE_MEMCMP]: Likewise.
2228 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2229 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2230 Don't define.
2231 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2232 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2233 (BCOPY_DOWNWARD_SAFE): Don't define.
2234 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2235 (memcpy) [!HAVE_MEMCPY]: Define.
2236 (memmove) [!HAVE_MEMMOVE]: Define.
2237 (memcmp) [!HAVE_MEMCMP]: Define.
2238
2239 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2240
2241 * process.c (kbd_is_on_hold): New variable.
2242 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2243 New functions.
2244 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2245 select on empty input mask.
2246 (init_process): Initialize kbd_is_on_hold to 0.
2247
2248 * process.h (hold_keyboard_input, unhold_keyboard_input)
2249 (kbd_on_hold_p): Declare.
2250
2251 * keyboard.c (input_available_signal): Declare.
2252 (kbd_buffer_nr_stored): New function.
2253 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2254 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2255 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2256 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2257 (tty_read_avail_input): If input is on hold, return.
2258 Don't read more that free slots in kbd_buffer (Bug#6571).
2259
2260 2010-07-07 Eli Zaretskii <eliz@gnu.org>
2261
2262 * msdos.h:
2263 * msdos.c:
2264 * dosfns.c:
2265 * w16select.c: Convert function definitions to ANSI C.
2266
2267 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2268 Remove unused prototypes.
2269
2270 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
2271
2272 * coding.c, sysdep.c: Convert some more functions to standard C.
2273
2274 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
2275
2276 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2277 (encode_coding_object): Use SPECPDL_INDEX.
2278 (syms_of_coding): Use DOS_NT.
2279
2280 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2281
2282 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2283
2284 Make the function member of Lisp_Subr use standard C prototypes.
2285 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2286 (DECL_ALIGN): Add a cast for the function.
2287 * eval.c (Feval, Ffuncall): Use the proper type for each type
2288 function call.
2289
2290 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
2291
2292 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2293 fringe face id, so face-remapping-alist works (Bug#6091).
2294
2295 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
2296
2297 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2298 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2299 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2300
2301 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2302
2303 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2304 * lisp.h: Declare x_get_keysym_name.
2305 * keyboard.c (modify_event_symbol): Don't declare
2306 x_get_keysym_name here.
2307
2308 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2309
2310 * ecrt0.c: Revert conversion to standard C.
2311
2312 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2313
2314 * vm-limit.c (memory_warnings):
2315 * keyboard.c (modify_event_symbol):
2316 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2317 (round2, emacs_rint):
2318 * process.c (send_process, old_sigpipe): Convert function
2319 definitions and declarations to standard C.
2320
2321 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
2322
2323 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2324 * xdisp.c: Convert function definitions to standard C.
2325
2326 * cm.c (cmputc): Arg C is now int, not char.
2327 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2328
2329 2010-07-05 James Cloos <cloos@jhcloos.com>
2330
2331 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2332
2333 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2334 _NET_WM_ICON_NAME atoms.
2335
2336 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2337 and _NET_WM_ICON_NAME properties, too, matching what is
2338 done in the Gtk+ case.
2339
2340 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2341
2342 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2343
2344 * xsmfns.c (SSDATA): New macro.
2345 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2346 passed to strlen/strcpy/strcat.
2347 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2348 7:th arg to XChangeProperty to (unsigned char *)
2349
2350 * xsettings.c (something_changedCB, parse_settings)
2351 (apply_xft_settings): Reformat prototype.
2352 (something_changedCB, init_gconf): Remove unused variable i.
2353 (read_settings): Remove unused variable long_len.
2354
2355 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2356 (xg_get_image_for_pixmap, create_dialog)
2357 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2358 (menuitem_highlight_callback, make_menu_item)
2359 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2360 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2361 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2362 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2363 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2364 (xg_tool_bar_item_expose_callback): Reformat prototype.
2365 (xg_update_menubar): GList *group => GSList *group.
2366 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2367 before use.
2368 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2369 to GTK_IMAGE (wimage).
2370
2371 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2372
2373 * atimer.c: Use "" instead of <> for local includes for
2374 consistency with the rest of the code.
2375
2376 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2377 * xrdb.c (get_system_name):
2378 * window.c (shrink_windows):
2379 * syntax.c (forw_comment):
2380 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2381 (ins_del_costs):
2382 * mem-limits.h (start_of_data):
2383 * lread.c (readevalloop):
2384 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2385 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2386 * frame.c (x_get_focus_frame):
2387 * floatfns.c (fmod_float):
2388 * fileio.c (choose_write_coding_system):
2389 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2390 (malloc_initialize_hook, sort_args, synchronize_locale):
2391 * doprnt.c (doprnt):
2392 * dired.c (compile_pattern):
2393 * data.c (fmod_float):
2394 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2395 (map_char_table_for_charset):
2396 * charset.c (define_charset_internal):
2397 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2398 to standard C.
2399
2400 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
2401 Stefan Monnier <monnier@iro.umontreal.ca>
2402
2403 * lread.c (read1): Fix up last change to not mess up `c'.
2404
2405 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2406
2407 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2408
2409 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2410
2411 Fix prototypes.
2412
2413 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
2414 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
2415 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2416 arg, as required by internal_condition_case_1.
2417 * print.c (strout): Use const char* for arg PTR.
2418 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2419 (analyse_first): Fix "const const".
2420 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
2421 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
2422 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
2423
2424 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2425
2426 * alloc.c: Convert function definitions to standard C.
2427 * atimer.c:
2428 * bidi.c:
2429 * bytecode.c:
2430 * callint.c:
2431 * callproc.c:
2432 * casefiddle.c:
2433 * casetab.c:
2434 * category.c:
2435 * ccl.c:
2436 * character.c:
2437 * charset.c:
2438 * chartab.c:
2439 * cmds.c:
2440 * coding.c:
2441 * composite.c:
2442 * data.c:
2443 * dbusbind.c:
2444 * dired.c:
2445 * dispnew.c:
2446 * doc.c:
2447 * doprnt.c:
2448 * ecrt0.c:
2449 * editfns.c:
2450 * fileio.c:
2451 * filelock.c:
2452 * filemode.c:
2453 * fns.c:
2454 * font.c:
2455 * fontset.c:
2456 * frame.c:
2457 * fringe.c:
2458 * ftfont.c:
2459 * ftxfont.c:
2460 * gtkutil.c:
2461 * indent.c:
2462 * insdel.c:
2463 * intervals.c:
2464 * keymap.c:
2465 * lread.c:
2466 * macros.c:
2467 * marker.c:
2468 * md5.c:
2469 * menu.c:
2470 * minibuf.c:
2471 * prefix-args.c:
2472 * print.c:
2473 * ralloc.c:
2474 * regex.c:
2475 * region-cache.c:
2476 * scroll.c:
2477 * search.c:
2478 * sound.c:
2479 * strftime.c:
2480 * syntax.c:
2481 * sysdep.c:
2482 * termcap.c:
2483 * terminal.c:
2484 * terminfo.c:
2485 * textprop.c:
2486 * tparam.c:
2487 * undo.c:
2488 * unexelf.c:
2489 * window.c:
2490 * xfaces.c:
2491 * xfns.c:
2492 * xfont.c:
2493 * xftfont.c:
2494 * xgselect.c:
2495 * xmenu.c:
2496 * xrdb.c:
2497 * xselect.c:
2498 * xsettings.c:
2499 * xsmfns.c:
2500 * xterm.c: Likewise.
2501
2502 2010-07-03 Eli Zaretskii <eliz@gnu.org>
2503
2504 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2505 frames other than the initial one. Fix reversal of colors when
2506 `reverse' is specified in the frame parameters. Call
2507 update_face_from_frame_parameter instead of
2508 internal-set-lisp-face-attribute. Initialize screen colors from
2509 initial_screen_colors[] when f->default_face_done_p is zero,
2510 instead of depending on being called with default-frame-alist as
2511 the alist argument.
2512
2513 * xfaces.c (update_face_from_frame_parameter): Move out of
2514 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2515 with HAVE_WINDOW_SYSTEM.
2516
2517 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2518 to menu-bar-mode, if not set in the frame parameters or in
2519 default-frame-alist.
2520
2521 * w32console.c (sys_tputs): Adjust argument list to prototype in
2522 term.c.
2523
2524 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
2525
2526 * lisp.h (memory_warnings): Fix prototype.
2527
2528 * cm.h (evalcost): Fix prototype.
2529
2530 * cm.c (evalcost): Fix arg type.
2531
2532 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2533
2534 * term.c (term_clear_mouse_face, Fidentity):
2535 * syssignal.h (signal_handler_t):
2536 * lisp.h (memory_warnings):
2537 * coding.h (preferred_coding_system):
2538 * cm.h (evalcost):
2539 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2540
2541 2010-07-02 Eli Zaretskii <eliz@gnu.org>
2542
2543 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2544 from prototypes.
2545
2546 * msdos.h (load_pixmap): Don't define away.
2547
2548 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2549
2550 * lisp.h:
2551 * atimer.h: Remove define for P_.
2552
2553 * alloc.c: Remove __P and P_ from .c and .m files.
2554 * atimer.c:
2555 * buffer.c:
2556 * callint.c:
2557 * category.c:
2558 * charset.c:
2559 * chartab.c:
2560 * cm.c:
2561 * coding.c:
2562 * composite.c:
2563 * data.c:
2564 * dired.c:
2565 * dispnew.c:
2566 * doc.c:
2567 * editfns.c:
2568 * emacs.c:
2569 * eval.c:
2570 * fileio.c:
2571 * filelock.c:
2572 * fns.c:
2573 * font.c:
2574 * fontset.c:
2575 * frame.c:
2576 * ftfont.c:
2577 * ftxfont.c:
2578 * gmalloc.c:
2579 * gtkutil.c:
2580 * image.c:
2581 * indent.c:
2582 * intervals.c:
2583 * keyboard.c:
2584 * keymap.c:
2585 * lread.c:
2586 * marker.c:
2587 * menu.c:
2588 * minibuf.c:
2589 * print.c:
2590 * process.c:
2591 * scroll.c:
2592 * search.c:
2593 * sound.c:
2594 * strftime.c:
2595 * syntax.c:
2596 * sysdep.c:
2597 * term.c:
2598 * terminal.c:
2599 * textprop.c:
2600 * unexalpha.c:
2601 * w32console.c:
2602 * w32fns.c:
2603 * w32font.c:
2604 * w32menu.c:
2605 * w32term.c:
2606 * w32uniscribe.c:
2607 * window.c:
2608 * xdisp.c:
2609 * xfaces.c:
2610 * xfns.c:
2611 * xfont.c:
2612 * xftfont.c:
2613 * xmenu.c:
2614 * xselect.c:
2615 * xterm.c: Likewise.
2616
2617 Remove P_ and __P macros.
2618 * atimer.h: Remove P_ and __P macros.
2619 * buffer.h:
2620 * category.h:
2621 * ccl.h:
2622 * character.h:
2623 * charset.h:
2624 * cm.h:
2625 * coding.h:
2626 * composite.h:
2627 * dispextern.h:
2628 * disptab.h:
2629 * dosfns.h:
2630 * font.h:
2631 * fontset.h:
2632 * frame.h:
2633 * gtkutil.h:
2634 * indent.h:
2635 * intervals.h:
2636 * keyboard.h:
2637 * keymap.h:
2638 * lisp.h:
2639 * macros.h:
2640 * md5.h:
2641 * menu.h:
2642 * msdos.h:
2643 * nsterm.h:
2644 * puresize.h:
2645 * region-cache.h:
2646 * syntax.h:
2647 * syssignal.h:
2648 * systime.h:
2649 * termhooks.h:
2650 * w32font.h:
2651 * w32term.h:
2652 * widget.h:
2653 * window.h:
2654 * xgselect.h:
2655 * xsettings.h:
2656 * xterm.h: Likewise.
2657
2658 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2659
2660 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2661
2662 Cleanup old code.
2663 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2664 * syssignal.h: Remove code for Lynx, not supported anymore.
2665 * vm-limit.c: Remove unused code the depends on emacs not being
2666 defined and NO_LIM_DATA being defined.
2667 * mem-limits.h: Remove dead code.
2668
2669 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2670
2671 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2672
2673 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2674 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2675
2676 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2677 parameters, they are already absolute.
2678
2679 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2680 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
2681
2682 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
2683
2684 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2685 Update FRAME_TOOLBAR_HEIGHT.
2686
2687 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2688 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
2689
2690 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
2691
2692 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2693 check default-frame-alist.
2694
2695 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2696
2697 * process.c (create_process): Avoid using invalid file descriptors.
2698
2699 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2700
2701 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2702
2703 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2704 Improve documentation. Return font regardless of use_system_font.
2705 (syms_of_xsettings): Improve documentation for font-use-system-font.
2706
2707 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
2708
2709 * xfaces.c (realize_face): Garbage the frame if a face is removed
2710 (Bug#6593).
2711
2712 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2713
2714 * keyboard.c: Remove duplicate <setjmp.h>.
2715 (read_key_sequence): Remove volatile qualifiers.
2716
2717 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2718
2719 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2720 (struct glyph_row): New members left_fringe_offset and
2721 right_fringe_offset.
2722
2723 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2724 specially.
2725 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2726 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2727
2728 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
2729 Take account of bitmap offset.
2730 (draw_window_fringes): Take account of window vscroll.
2731 (update_window_fringes): Likewise. Extend top-aligned top indicator
2732 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2733 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2734 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2735
2736 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2737
2738 * w32fns.c (Qtooltip): Declare.
2739 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2740
2741 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2742
2743 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2744 grab on just Press (Bug#6499).
2745
2746 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
2747
2748 * frame.c (Qtooltip): New var.
2749 (delete_frame): Use it. Fix faulty if statement. Don't update
2750 mode line for tooltip frames. Suggested by Martin Rudalics.
2751
2752 * xfns.c (x_create_tip_frame):
2753 * w32fns.c (x_create_tip_frame): Use it.
2754
2755 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
2756
2757 * xftfont.c (xftfont_open): Check font width one by one also when
2758 spacing is dual.
2759
2760 * ftfont.c (ftfont_open): Ditto.
2761
2762 2010-06-30 Glenn Morris <rgm@gnu.org>
2763
2764 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2765
2766 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2767
2768 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2769 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2770 * s/darwin.h (SYSTEM_MALLOC):
2771 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2772
2773 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2774
2775 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2776 (ns_get_screen): Don't assign integer to f.
2777 (Fx_display_color_cells): Declarations before statements.
2778
2779 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2780
2781 * xfns.c (x_default_font_parameter): Remove got_from_system
2782 (Bug#6526).
2783
2784 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2785 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2786 defines based on what configure finds.
2787
2788 * xterm.c (XTflash): Use gtk_widget_get_window.
2789 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2790 gtk_adjustment_get_page_size.
2791 (handle_one_xevent): Use gtk_widget_get_mapped.
2792 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2793 messages.
2794
2795 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2796
2797 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2798 HAVE_GTK_FILE_SELECTION_NEW.
2799
2800 * gtkutil.c (xg_display_open, xg_display_close): Remove
2801 HAVE_GTK_MULTIDISPLAY, it is always defined.
2802 (xg_display_open): Return type is void.
2803 (gtk_widget_set_has_window)
2804 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2805 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2806 (gtk_adjustment_set_page_increment)
2807 (gtk_adjustment_get_step_increment): #define these if not found
2808 by configure.
2809 (remove_submenu): New define based on Gtk+ version.
2810 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2811 gtk_widget_get_window.
2812 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2813 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2814 (create_dialog): Use gtk_dialog_get_action_area and
2815 gtk_dialog_get_content_area.
2816 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2817 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2818 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2819 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2820 g_object_ref and g_object_unref.
2821 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2822 gtk_widget_get_sensitive.
2823 (xg_update_submenu): Use remove_submenu.
2824 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2825 properties instead to get old x and y position.
2826 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2827 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2828 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
2829 (xg_get_tool_bar_widgets): New function.
2830 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2831 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2832 (toolbar_set_orientation): New #define based on if configure
2833 finds gtk_orientable_set_orientation.
2834 (xg_create_tool_bar): Call toolbar_set_orientation.
2835 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2836 instead of gtk_box_pack_start_defaults.
2837
2838 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
2839
2840 * cmds.c (Fdelete_backward_char): Move into Lisp.
2841
2842 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2843
2844 * s/freebsd.h (BSD4_2): Remove redundant definition.
2845 bsd-common.h defines it already.
2846
2847 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
2848
2849 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2850 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2851 tool-bar-mode, which are now set using these X resources at
2852 startup, to determine the defaults (Bug#2249).
2853
2854 * w32fns.c (Fx_create_frame):
2855 * nsfns.m (Fx_create_frame): Likewise.
2856
2857 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2858
2859 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
2860
2861 * gtkutil.c (xg_update_scrollbar_pos):
2862 Avoid C99 mid-block variable declaration.
2863
2864 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2865
2866 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2867
2868 * gtkutil.h (xg_show_scroll_bar): Remove.
2869
2870 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2871 if height is less than scroll bar min size.
2872 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2873
2874 * xfns.c (x_default_font_parameter): Try to open font from system
2875 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2876
2877 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
2878
2879 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2880
2881 2010-06-20 Eli Zaretskii <eliz@gnu.org>
2882
2883 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2884 most-positive-fixnum, be extra accurate when scrolling window
2885 start, to avoid missing the cursor line.
2886
2887 2010-06-19 Eli Zaretskii <eliz@gnu.org>
2888
2889 * xdisp.c (try_scrolling): Compute the limit for searching point
2890 in forward scroll from scroll_max, instead of an arbitrary limit
2891 of 10 screen lines. See
2892 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2893 and
2894 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2895 for details.
2896
2897 2010-06-16 Glenn Morris <rgm@gnu.org>
2898
2899 * editfns.c (Fbyte_to_string): Pacify compiler.
2900
2901 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2902
2903 * lread.c (read1): Phase out old-style backquotes a bit more.
2904
2905 2010-06-12 Eli Zaretskii <eliz@gnu.org>
2906
2907 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2908 bidimirror.h.
2909
2910 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2911
2912 * bidi.c (bidi_initialize): Remove explicit initialization of
2913 bidi_type_table; include biditype.h instead. Don't support
2914 entries whose second codepoint is zero. Initialize bidi_mirror_table.
2915 (bidi_mirror_char): Use bidi_mirror_table.
2916
2917 * biditype.h: New file.
2918
2919 * bidimirror.h: New file.
2920
2921 * window.c (syms_of_window): Doc fix (bug#6409).
2922
2923 2010-06-12 Romain Francoise <romain@orebokech.com>
2924
2925 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2926 ediff-hook.
2927
2928 2010-06-10 Glenn Morris <rgm@gnu.org>
2929
2930 * editfns.c (Fbyte_to_string): Pacify compiler.
2931
2932 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2933
2934 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2935
2936 * alloc.c (Fmake_byte_code): Don't access undefined argument
2937 (Bug#6517).
2938
2939 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
2940
2941 * xdisp.c (next_element_from_image): Ensure that after-strings are
2942 read the next time we hit handle_stop (Bug#1336).
2943
2944 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2945
2946 * lread.c (read1): Signal error if #s is not followed by paren.
2947
2948 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
2949
2950 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2951
2952 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2953
2954 2010-06-15 Glenn Morris <rgm@gnu.org>
2955
2956 * editfns.c (Fbyte_to_string): Pacify compiler.
2957
2958 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2959
2960 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2961 Check `object's type before accessing its guts.
2962
2963 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2964
2965 * s/usg5-4.h: Fix previous change.
2966 Suggested by Lawrence Mitchell <wence@gmx.li>
2967
2968 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2969
2970 * minibuf.c (Fall_completions): Add more checks.
2971
2972 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
2973
2974 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2975
2976 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2977
2978 * lread.c (X_OK): Remove, unused.
2979
2980 * dispnew.c: Remove obsolete comment.
2981
2982 Remove INCLUDED_FCNTL.
2983 * xterm.c (INCLUDED_FCNTL):
2984 * callproc.c (INCLUDED_FCNTL):
2985 * alloc.c (INCLUDED_FCNTL):
2986 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2987 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2988
2989 2010-06-07 Martin Rudalics <rudalics@gmx.at>
2990
2991 * window.c (Fselect_window): Move `record_buffer' up to the
2992 beginning of this function, so the buffer gets recorded
2993 even if the selected window does not change.
2994 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2995
2996 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
2997
2998 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2999 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3000
3001 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3002
3003 Remove BSTRING related code, all platforms define it.
3004 * s/usg5-4.h (BSTRING): Remove definition.
3005 * s/template.h (BSTRING):
3006 * s/msdos.h (BSTRING):
3007 * s/ms-w32.h (BSTRING):
3008 * s/hpux10-20.h (BSTRING):
3009 * s/gnu-linux.h (BSTRING):
3010 * s/darwin.h (BSTRING):
3011 * s/cygwin.h (BSTRING):
3012 * s/bsd-common.h (BSTRING):
3013 * s/aix4-2.h (BSTRING): Likewise.
3014 * sysdep.c: Remove code depending on BSTRING not being defined.
3015
3016 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
3017
3018 Remove obsolete macro BASE_LEADING_CODE_P.
3019 * character.h (BASE_LEADING_CODE_P): Remove.
3020 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3021 * buffer.c (Fset_buffer_multibyte):
3022 * indent.c (scan_for_column, compute_motion):
3023 * insdel.c (count_combining_before, count_combining_after):
3024 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3025
3026 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
3027
3028 Turn `directory-sep-char' into a noop.
3029
3030 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3031 (DIRECTORY_SEP): Define unconditionally.
3032
3033 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3034
3035 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3036 call dostounix_filename directly.
3037
3038 * fileio.c (CORRECT_DIR_SEPS): Remove.
3039 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3040 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3041 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3042 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3043
3044 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3045 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3046
3047 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3048
3049 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3050 (Bug#6346)
3051
3052 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
3053
3054 * ccl.c (Fccl_program_p): Fix typo in docstring.
3055
3056 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3057
3058 Move UNEXEC definition to autoconf.
3059 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3060 * s/sol2-10.h (UNEXEC):
3061 * s/irix6-5.h (UNEXEC):
3062 * s/hpux10-20.h (UNEXEC):
3063 * s/gnu-linux.h (UNEXEC):
3064 * s/darwin.h (UNEXEC):
3065 * s/cygwin.h (UNEXEC):
3066 * s/bsd-common.h (UNEXEC):
3067 * s/aix4-2.h (UNEXEC):
3068 * m/alpha.h (UNEXEC): Likewise.
3069 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3070
3071 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
3072
3073 Remove obsolete pre-unicode2 macros.
3074 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3075 * composite.c (composition_reseat_it):
3076 * data.c (Faset):
3077 * fns.c (Ffillarray):
3078 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3079 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3080
3081 2010-06-03 Juri Linkov <juri@jurta.org>
3082
3083 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3084 (Fswitch_to_buffer): Remove unused variable `err'.
3085
3086 2010-06-03 Glenn Morris <rgm@gnu.org>
3087
3088 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3089
3090 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3091 now that AH_BOTTOM does it.
3092
3093 * m/hp800.h (HAVE_ALLOCA):
3094 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3095
3096 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3097 Remove NOT_C_CODE tests, it is always true now.
3098
3099 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3100
3101 Fix config.h includes.
3102 * xsettings.c:
3103 * xgselect.c:
3104 * nsterm.m:
3105 * nsselect.m:
3106 * nsimage.m:
3107 * nsfont.m:
3108 * nsfns.m:
3109 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3110 other files do.
3111
3112 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3113
3114 * s/sol2-6.h: Remove obsolete comments.
3115
3116 Remove unnecessary alloca.h includes.
3117 * keymap.c: Do not include alloca.h, config.h does that.
3118 * sysdep.c: Likewise. Do not define fwrite, not used.
3119
3120 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3121
3122 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3123 the HAVE_TERMIO where it belongs (bug#6149).
3124
3125 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3126
3127 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3128 of bug#6305).
3129
3130 2010-05-30 Eli Zaretskii <eliz@gnu.org>
3131
3132 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3133 state is always cached (bug#6306).
3134
3135 2010-05-29 Eli Zaretskii <eliz@gnu.org>
3136
3137 Fix cursor motion in bidi-reordered continued lines.
3138 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3139 only after finding point's row. Fix the logic. Rewrite the loop
3140 over continuation lines in bidi-reordered buffers. Return
3141 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3142 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3143
3144 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
3145
3146 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3147
3148 2010-05-28 Kenichi Handa <handa@m17n.org>
3149
3150 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3151 Don't sheck SPEC if it is nil.
3152 (font_list_entities): Call font_delete_unmatched if
3153 Vface_ignored_fonts is non-nil. (Bug#6287)
3154
3155 2010-05-28 Glenn Morris <rgm@gnu.org>
3156
3157 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3158
3159 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
3160
3161 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3162 whether to trash.
3163 (internal_delete_file, Frename_file): Callers changed.
3164 (delete_by_moving_to_trash): Doc fix.
3165 (Fdelete_directory_internal): Don't move to trash.
3166
3167 * callproc.c (delete_temp_file):
3168 * buffer.c (Fkill_buffer): Callers changed.
3169
3170 * lisp.h: Update prototype.
3171
3172 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
3173
3174 * xdisp.c (redisplay_window): After redisplay, check if point is
3175 still valid before setting it (Bug#6177).
3176
3177 2010-05-27 Glenn Morris <rgm@gnu.org>
3178
3179 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3180 Convert comments to Makefile format.
3181
3182 * Makefile.in (bootstrap-clean): No more Makefile.c.
3183
3184 2010-05-26 Glenn Morris <rgm@gnu.org>
3185
3186 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3187 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3188
3189 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3190 Remove.
3191 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3192
3193 2010-05-26 Kenichi Handa <handa@m17n.org>
3194
3195 * composite.c (composition_compute_stop_pos): Fix condition for
3196 backward scanning.
3197
3198 2010-05-25 Glenn Morris <rgm@gnu.org>
3199
3200 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3201 Move before TEMACS_LDFLAGS.
3202 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3203 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3204
3205 * Makefile.in (NOT_C_CODE): No longer define.
3206 (config.h): No longer include.
3207
3208 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3209 variables it may reference.
3210
3211 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3212 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3213
3214 2010-05-25 Kenichi Handa <handa@m17n.org>
3215
3216 * dispextern.h (struct composition_it): New members rule_idx and
3217 charpos.
3218
3219 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3220 that the character positions of IT point the last character of the
3221 current grapheme cluster.
3222 (next_element_from_composition): Don't change character positions
3223 of IT.
3224 (append_composite_glyph): Set glyph->charpos to
3225 it->cmp_it.charpos.
3226
3227 * composite.c (autocmp_chars): Change the first argument to RULE,
3228 and try composition with RULE only.
3229 (composition_compute_stop_pos): Record the index number of the
3230 composition rule in CMP_IT->rule_idx.
3231 (composition_reseat_it): Call autocmp_chars repeatedly until the
3232 correct rule of the composition is found.
3233 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3234 is at the last character of the current grapheme cluster when
3235 CMP_IT->reversed_p is nonzero.
3236
3237 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3238
3239 * editfns.c (Fbyte_to_string): New function.
3240
3241 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3242
3243 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3244 Suggested by Masatake YAMATO <yamato@redhat.com>.
3245
3246 2010-05-23 Eli Zaretskii <eliz@gnu.org>
3247
3248 * dispextern.h (init_iterator): Sync prototype with changed definition.
3249
3250 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3251
3252 * s/netbsd.h: If terminfo is found, use it in preference to
3253 termcap. (Bug#6190) [Backport from trunk]
3254
3255 2010-05-19 Eli Zaretskii <eliz@gnu.org>
3256
3257 Redesign and reimplement bidi-aware edge positions of glyph rows.
3258
3259 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3260 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3261 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3262 and maxpos members instead of start.pos and end.pos, respectively.
3263
3264 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3265 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3266 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
3267 (try_window_reusing_current_matrix, try_window_id):
3268 Use ROW->minpos rather than ROW->start.pos.
3269 (init_from_display_pos, init_iterator): Use EMACS_INT for
3270 character and byte positions.
3271 (find_row_edges): Rename from find_row_end. Accept additional
3272 arguments for minimum and maximum buffer positions seen by
3273 display_line for this row. Don't use iterator to find the
3274 position following the maximum one; instead, increment the
3275 position found by display_line directly. Fix logic; eol_pos
3276 should be tested before the rest. Handle the case of characters
3277 delivered from display vector (bug#6036). Fix tests related to
3278 it->method. Handle the truncated_on_right_p rows.
3279 (RECORD_MAX_MIN_POS): New macro.
3280 (display_line): Use it to record the minimum and maximum buffer
3281 positions for glyphs in the row being assembled. Record the
3282 position of the newline that terminates the line. If word wrap is
3283 in effect, restore minimum and maximum positions seen up to the
3284 wrap point, when iterator returns to it.
3285 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3286 row and cursor not already at point. Restore original pre-bidi
3287 code for unidirectional buffers.
3288
3289 * dispnew.c (increment_row_positions, check_matrix_invariants):
3290 Increment and check row->start.pos and row->end.pos, in addition
3291 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3292
3293 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3294 Display truncated_on_left_p and truncated_on_right_p flags.
3295 Formatting fixes.
3296 (pmtxrows): Display the ordinal number of each row. Don't display
3297 rows beyond the last one.
3298
3299 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3300 it is not copied by bidi_copy_it.
3301
3302 2010-05-22 Eli Zaretskii <eliz@gnu.org>
3303
3304 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3305 (Bug#6237)
3306
3307 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
3308
3309 * image.c (Fimage_flush): Rename from image-refresh.
3310
3311 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
3312
3313 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3314 just one window.
3315
3316 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3317 (clear_image_cache): If the number of cached images is unusually
3318 large, decrease the cache eviction delay (Bug#6230).
3319
3320 2010-05-21 Glenn Morris <rgm@gnu.org>
3321
3322 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3323 Move these rules to ns.mk.
3324 * ns.mk: New file.
3325
3326 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3327
3328 * Makefile.in (CANNOT_DUMP): New, set by configure.
3329 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3330
3331 2010-05-20 Juri Linkov <juri@jurta.org>
3332
3333 * fileio.c (Fdelete_file): Change interative spec to use
3334 `read-file-name' like in `find-file-read-args' where the default
3335 value is `default-directory' instead of `buffer-file-name'.
3336 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3337
3338 2010-05-20 Kevin Ryde <user42@zip.com.au>
3339
3340 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3341 (Voverriding_terminal_local_map, Vsystem_key_alist)
3342 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3343
3344 2010-05-20 Glenn Morris <rgm@gnu.org>
3345
3346 * Makefile.in (DEPDIR): New constant.
3347 (DEPFLAGS): Set with configure, not cpp.
3348 (MKDEPDIR): New, set by configure.
3349 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3350 (clean): Use $DEPDIR.
3351 (deps_frag): Include from configure.
3352 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3353 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3354
3355 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3356 reallocation of the cache. (Bug#6210)
3357
3358 2010-05-19 Glenn Morris <rgm@gnu.org>
3359
3360 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3361
3362 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3363 (GNULIB_VAR): Remove.
3364 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3365
3366 * m/ibms390x.h (LINKER):
3367 * m/macppc.h (LINKER) [GNU_LINUX]:
3368 * s/aix4-2.h (ORDINARY_LINK):
3369 * s/cygwin.h (LINKER):
3370 * s/darwin.h (ORDINARY_LINK):
3371 * s/gnu.h (ORDINARY_LINK):
3372 * s/netbsd.h (LINKER):
3373 * s/usg5-4.h (ORDINARY_LINK):
3374 Move to configure.
3375
3376 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3377
3378 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
3379
3380 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3381 prevent stack overflow if number of arguments is too large
3382 (Bug#6214).
3383
3384 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
3385
3386 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3387
3388 2010-05-18 Glenn Morris <rgm@gnu.org>
3389
3390 * s/gnu-linux.h: Combine two conditionals.
3391
3392 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
3393 $(POST_ALLOC_OBJ).
3394
3395 * Makefile.in (RALLOC_OBJ): New, set by configure.
3396 (rallocobj): Replace with the previous variable.
3397 (otherobj): Use $RALLOC_OBJ.
3398
3399 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3400 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3401
3402 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3403 (gmallocobj, vmlimitobj): Replace with previous two variables.
3404 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3405
3406 2010-05-17 Glenn Morris <rgm@gnu.org>
3407
3408 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3409 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3410
3411 2010-05-16 Glenn Morris <rgm@gnu.org>
3412
3413 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3414
3415 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3416
3417 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3418 trailing "/".
3419
3420 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3421 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3422
3423 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3424 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3425 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3426 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3427 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3428
3429 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3430 Remove ${STARTFLAGS}, nothing ever sets it.
3431
3432 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3433
3434 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3435
3436 2010-05-16 Glenn Morris <rgm@gnu.org>
3437
3438 * Makefile.in (LIBX_BASE): Always define.
3439
3440 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3441
3442 * Makefile.in (LIBXT): Always define.
3443
3444 2010-05-15 Glenn Morris <rgm@gnu.org>
3445
3446 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
3447
3448 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3449 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3450
3451 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
3452
3453 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
3454 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3455
3456 * emacs.c (main): Initialize initial-environment and
3457 process-environment before generating from env, not after.
3458
3459 Handle --version reasonably in CANNOT_DUMP configuration.
3460 * emacs.c (emacs_version, emacs_copyright): New string variables.
3461 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3462 (syms_of_emacs): Defvar them, and initialize them from the C
3463 string variables.
3464 (main): If initialization hasn't been done, print initial version
3465 info from the C strings, instead of starting an interactive session.
3466
3467 2010-05-15 Eli Zaretskii <eliz@gnu.org>
3468
3469 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3470 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
3471 (bidi_paragraph_init): Remove redundant assertion that we are at
3472 the beginning of a line after call to bidi_find_paragraph_start.
3473
3474 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3475 (syms_of_xdisp): Defsubr it.
3476
3477 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3478
3479 * Makefile.in: Fix MSDOS-related comments.
3480
3481 2010-05-15 Glenn Morris <rgm@gnu.org>
3482
3483 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3484 (really-lwlib, really-oldXMenu): Always define.
3485 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3486
3487 * Makefile.in: Simplify cpp conditional.
3488
3489 * Makefile.in (${ns_appdir}): Simplify using umask.
3490
3491 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3492
3493 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3494
3495 * eval.c (specbind): Remove left-over duplicate test.
3496 Disallow let-binding frame-local vars. Add comment.
3497
3498 2010-05-14 Eli Zaretskii <eliz@gnu.org>
3499
3500 Make the cache of bidi iterator states dynamically allocated.
3501 * bidi.c (bidi_cache_shrink): New function.
3502 (bidi_init_it): Call it.
3503 (bidi_cache_iterator_state): Enlarge the cache if needed.
3504
3505 * bidi.c (bidi_move_to_visually_next): Rename from
3506 bidi_get_next_char_visually. All callers changed.
3507
3508 2010-05-14 Kenichi Handa <handa@m17n.org>
3509
3510 * dispextern.h (struct composition_it): New member reversed_p.
3511
3512 * composite.c (composition_compute_stop_pos): Search backward if
3513 ENDPOS < CHARPOS.
3514 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3515 Set CMP_IT->reversed_p.
3516 (composition_update_it): Pay attention to CMP_IT->reversed_p.
3517
3518 * xdisp.c (set_iterator_to_next):
3519 Call composition_compute_stop_pos with negative ENDPOS if we are
3520 scanning backward. Call composition_compute_stop_pos if scan
3521 direction is changed.
3522 (next_element_from_buffer): Call composition_compute_stop_pos with
3523 negative ENDPOS if we are scanning backward.
3524 (next_element_from_composition): Pay attention to
3525 IT->cmp_it.reversed_p.
3526
3527 2010-05-14 Kenichi Handa <handa@m17n.org>
3528
3529 * font.c (font_range): Return the range for the font found at first.
3530
3531 2010-05-14 Glenn Morris <rgm@gnu.org>
3532
3533 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3534
3535 * Makefile.in (mktime, X11, register): Move undefs to configure.
3536
3537 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3538 (MSDOS_X_OBJ): New variable.
3539 (MSDOS_SUPPORT_REAL): New constant.
3540 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3541 (obj): Use MSDOS_X_OBJ.
3542 (lisp): Use MSDOS_SUPPORT as a variable.
3543
3544 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3545 (GPM_MOUSE_SUPPORT): Now it's a constant.
3546 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3547 not cpp.
3548
3549 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
3550 (ns_appresdir): Remove, unused.
3551
3552 * Makefile.in (SHELL): Move outside cpp section.
3553
3554 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3555
3556 2010-05-13 Glenn Morris <rgm@gnu.org>
3557
3558 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3559 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3560
3561 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3562 HAVE_WINDOW_SYSTEM must be too.
3563
3564 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3565 (lisp): Remove WINNT_SUPPORT.
3566
3567 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3568 Let configure set these variables (to empty) in this case as well.
3569
3570 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3571 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3572
3573 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3574 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3575 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3576 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3577 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
3578 the values output by configure.
3579 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3580
3581 2010-05-12 Glenn Morris <rgm@gnu.org>
3582
3583 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3584 (LINKER_WAS_SPECIFIED): Remove.
3585
3586 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3587 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3588 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3589 * s/cygwin.h (LIB_GCC):
3590 * s/freebsd.h (LIB_GCC):
3591 * s/gnu-linux.h (LIB_GCC):
3592 * s/msdos.h (LIB_GCC):
3593 * s/netbsd.h (LIB_GCC):
3594 Move to configure.
3595
3596 2010-05-11 Karel Klic <kklic@redhat.com>
3597
3598 * ftfont.c: Fix incorrect parentheses of #if condition for
3599 definining M17N_FLT_USE_NEW_FEATURE.
3600
3601 2010-05-11 Glenn Morris <rgm@gnu.org>
3602
3603 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3604 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3605
3606 2010-05-10 Eli Zaretskii <eliz@gnu.org>
3607
3608 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3609 unibyte buffers. See
3610 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3611
3612 2010-05-10 Glenn Morris <rgm@gnu.org>
3613
3614 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3615 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3616 (LIBES): Use LIBS_SYSTEM as a variable.
3617 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3618 * s/aix4-2.h (LIBS_SYSTEM):
3619 * s/freebsd.h (LIBS_SYSTEM):
3620 * s/hpux10-20.h (LIBS_SYSTEM):
3621 * s/sol2-6.h (LIBS_SYSTEM):
3622 * s/unixware.h (LIBS_SYSTEM):
3623 Move to configure.
3624
3625 * s/aix4-2.h (MAIL_USE_LOCKF):
3626 * s/bsd-common.h (MAIL_USE_FLOCK):
3627 * s/darwin.h (MAIL_USE_FLOCK):
3628 * s/gnu-linux.h (MAIL_USE_FLOCK):
3629 * s/irix6-5.h (MAIL_USE_FLOCK):
3630 * s/template.h (MAIL_USE_FLOCK):
3631 Move to configure.
3632
3633 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
3634
3635 * Version 23.2 released.
3636
3637 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
3638
3639 * composite.c (autocmp_chars): Save point as marker before calling
3640 auto-composition-function (Bug#5984).
3641
3642 * lisp.h (restore_point_unwind): Add prototype.
3643
3644 * fileio.c (restore_point_unwind): Remove static attribute.
3645
3646 2010-05-08 Kenichi Handa <handa@m17n.org>
3647
3648 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3649 new feature of libotf and m17n-flt.
3650 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3651 Call OTF_check_features even if no specific feature is given.
3652 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3653 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3654 that OUT is NULL. Use OTF_drive_gsub_with_log and
3655 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3656 OTF_drive_gpos.
3657 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
3658 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3659 Setup mflt_enable_new_feature and mflt_try_otf.
3660
3661 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3662
3663 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3664
3665 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3666 box and toolbar (Bug #6139).
3667 (xg_create_tool_bar): Remove comment (Bug #6139).
3668 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3669 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3670
3671 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
3672
3673 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3674 Update dependencies.
3675
3676 2010-05-08 Eli Zaretskii <eliz@gnu.org>
3677
3678 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3679 R2L lines.
3680
3681 2010-05-08 Glenn Morris <rgm@gnu.org>
3682
3683 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3684
3685 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3686 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3687 (termcapobj): Replace with TERMCAP_OBJ.
3688 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3689 (LIBES): Use LIBS_TERMCAP as a variable.
3690
3691 * s/freebsd.h (osreldate.h): No longer include, since this file
3692 does not use __FreeBSD_version any more.
3693
3694 * s/aix4-2.h (TERMINFO):
3695 * s/cygwin.h (TERMINFO):
3696 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3697 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3698 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3699 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3700 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3701 * s/irix6-5.h (TERMINFO):
3702 * s/netbsd.h (LIBS_TERMCAP):
3703 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3704 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3705 * s/usg5-4.h (TERMINFO):
3706 Move to configure.
3707
3708 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3709
3710 * eval.c (unbind_to): Don't unbind a local binding into the global
3711 binding when the local binding disappeared. Inversely, don't unbind
3712 a global binding into a newly created local binding.
3713 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3714 can specify the frame to use, when applicable. Adjust callers.
3715
3716 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
3717 Stefan Monnier <monnier@iro.umontreal.ca>
3718
3719 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3720
3721 2010-05-07 Eli Zaretskii <eliz@gnu.org>
3722
3723 * w32fns.c: Include w32.h.
3724 (Fw32_shell_execute): Decode the error message before passing it
3725 to `error'. (Bug#6126)
3726
3727 * msdos.c (dos_set_window_size):
3728 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3729 instead of `XSYMBOL (foo)->value'.
3730
3731 2010-05-07 Eli Zaretskii <eliz@gnu.org>
3732
3733 Fix the MS-DOS build, broken by autoconfiscation.
3734
3735 * Makefile.in: Don't use Make-style comments past the "start of
3736 cpp stuff" line.
3737 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3738
3739 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3740 edited directly by msdos/sed1v2.inp).
3741
3742 2010-05-07 Glenn Morris <rgm@gnu.org>
3743
3744 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3745 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3746 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3747 move out of cpp section.
3748 * s/freebsd.h (LD_SWITCH_SYSTEM):
3749 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3750 * s/netbsd.h (LD_SWITCH_SYSTEM):
3751 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3752
3753 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3754
3755 Define LIB_STANDARD and START_FILES using autoconf.
3756 * s/usg5-4.h (LIB_STANDARD):
3757 * s/netbsd.h (START_FILES):
3758 * s/irix6-5.h (LIB_STANDARD):
3759 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3760 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3761 * s/freebsd.h (START_FILES):
3762 * s/darwin.h (START_FILES):
3763 * s/cygwin.h (START_FILES):
3764 * s/aix4-2.h (LIB_STANDARD):
3765 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3766 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3767 autoconf, not cpp.
3768
3769 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3770
3771 Remove NEED_BSDTTY and NEED_UNISTD_H.
3772 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3773 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3774 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3775 <sys/ptyio.h> and <unistd.h>.
3776
3777 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3778
3779 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3780 * s/gnu.h (START_FILES): Remove empty definition.
3781
3782 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3783
3784 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3785
3786 2010-05-06 Glenn Morris <rgm@gnu.org>
3787
3788 * Makefile.in (CPP, LN_S): Remove unused variables.
3789
3790 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3791
3792 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3793
3794 2010-05-05 Lawrence Mitchell <wence@gmx.li>
3795
3796 * m/sparc.h: Fix typo in earlier change.
3797
3798 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3799
3800 Misc tweaks.
3801 * eval.c (Fdefvaralias): Remove unintended nested if.
3802 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3803
3804 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
3805
3806 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3807
3808 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3809
3810 Remove BSD_PGRPS.
3811 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3812 * s/gnu-linux.h (BSD_PGRPS): Remove.
3813 * term.c (dissociate_if_controlling_tty):
3814 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3815 (init_sys_modes, reset_sys_modes):
3816 * emacs.c (main):
3817 * callproc.c (Fcall_process, child_setup): Remove code depending
3818 on BSD_PGRPS.
3819
3820 Remove POSIX_SIGNALS.
3821 * s/usg5-4.h (POSIX_SIGNALS):
3822 * s/netbsd.h (POSIX_SIGNALS):
3823 * s/msdos.h (POSIX_SIGNALS):
3824 * s/ms-w32.h (POSIX_SIGNALS):
3825 * s/hpux11.h (POSIX_SIGNALS):
3826 * s/gnu.h (POSIX_SIGNALS):
3827 * s/gnu-linux.h (POSIX_SIGNALS):
3828 * s/freebsd.h (POSIX_SIGNALS):
3829 * s/darwin.h (POSIX_SIGNALS):
3830 * s/cygwin.h (POSIX_SIGNALS):
3831 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3832 * s/unixware.h:
3833 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3834 * process.c (create_process):
3835 * syssignal.h:
3836 * sysdep.c (wait_for_termination, init_signals):
3837 * process.c (create_process):
3838 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3839 remove all code that assumes the contrary.
3840
3841 2010-05-04 Glenn Morris <rgm@gnu.org>
3842
3843 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3844 variable.
3845 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3846 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3847 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3848 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3849 LD_SWITCH_SYSTEM_tmp.
3850 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3851 New variables, set by configure.
3852
3853 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3854 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3855 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3856 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3857 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3858
3859 * s/aix4-2.h (C_SWITCH_SYSTEM):
3860 * m/alpha.h (C_SWITCH_MACHINE):
3861 Move to configure.in.
3862 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3863 New variables, set by configure.
3864 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3865 $c_switch_machine and $c_switch_system.
3866
3867 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3868
3869 * s/hpux10-20.h (LIB_STANDARD): New definition.
3870 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3871 on it, not used anymore.
3872
3873 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
3874
3875 * eval.c (internal_condition_case_n): Rename from
3876 internal_condition_case_2.
3877 (internal_condition_case_2): New function.
3878
3879 * xdisp.c (safe_call): Use internal_condition_case_n.
3880
3881 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3882 (internal_delete_file, Frename_file): Callers changed.
3883
3884 * buffer.c (Fkill_buffer):
3885 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3886
3887 * lisp.h: Update prototypes.
3888
3889 2010-05-03 Glenn Morris <rgm@gnu.org>
3890
3891 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3892 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3893 (LIBXT): Set with configure, not cpp.
3894 (LIBX): Remove.
3895 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3896
3897 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3898
3899 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3900 The FreeBSD is not needed, the default works, Solaris version is
3901 not needed, and the remaining case is not supported by configure.
3902
3903 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3904
3905 * xsmfns.c (CHDIR_OPT): New define.
3906 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3907 restarting emacs.
3908
3909 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3910 shut_down_emacs.
3911
3912 * emacs.c (USAGE1): Mention --chdir.
3913 (main): Handle --chdir.
3914 (standard_args): Add --chdir.
3915 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3916 #5552).
3917
3918 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3919
3920 Remove LD_SWITCH_MACHINE.
3921 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3922 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3923
3924 Clean up IRIX code.
3925 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3926 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3927
3928 Clean up AIX code.
3929 * m/ibmrs6000.inp: Remove file, unused.
3930 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3931 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3932 definition ...
3933 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3934
3935 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3936 unused.
3937
3938 2010-05-01 Eli Zaretskii <eliz@gnu.org>
3939
3940 Emulate POSIX_SIGNALS on MS-Windows.
3941
3942 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3943 (SIG_SETMASK, SIG_UNBLOCK): Define.
3944
3945 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3946 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3947 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3948
3949 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3950 New stubs.
3951
3952 Miscellaneous fixes of bidi display.
3953
3954 * xdisp.c (find_row_end): New function, refactored from display_line.
3955 (display_line): Use it.
3956 (extend_face_to_end_of_line): In almost-filled rows, extend only
3957 if the row is R2L and not continued.
3958 (display_line): Fix prepending of truncation glyphs to R2L rows.
3959 Preserve overlay and string info in row->end.
3960 (insert_left_trunc_glyphs): Support addition of left truncation
3961 glyphs to R2L rows.
3962 (set_cursor_from_row): Don't place cursor on the vertical border
3963 glyph between adjacent windows. Fix a crash when a display string
3964 is continued to the next line. Don't return zero if cursor was
3965 found by `cursor' property of a display string.
3966 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3967 test for that explicitly.
3968
3969 2010-05-01 Glenn Morris <rgm@gnu.org>
3970
3971 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3972 for clarity.
3973 (OTHER_OBJ): Remove.
3974 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3975 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3976
3977 2010-05-01 Karel Klíč <kklic@redhat.com>
3978
3979 * fileio.c (Ffile_selinux_context): Context functions may return null.
3980
3981 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3982
3983 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
3984
3985 2010-04-30 Glenn Morris <rgm@gnu.org>
3986
3987 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3988 (OTHER_OBJ): Define as a separate variable, for clarity.
3989
3990 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3991
3992 * xsettings.c: include limits.h and update file comment.
3993
3994 2010-04-30 Glenn Morris <rgm@gnu.org>
3995
3996 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3997 Set with configure, not cpp.
3998 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3999
4000 * Makefile.in (mallocobj): Remove.
4001 (otherobj): Simplify using @OTHER_OBJ@.
4002
4003 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4004 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4005 Don't bother making nsgui.h dependency platform-specific.
4006
4007 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4008
4009 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4010
4011 * process.c (read_process_output, exec_sentinel): Don't burp if the
4012 sentinel/filter kills the current buffer (bug#6060).
4013
4014 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
4015 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4016 Remove unused var `args'.
4017 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4018 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4019 * doc.c (store_function_docstring): Use XSETCAR.
4020
4021 2010-04-28 Glenn Morris <rgm@gnu.org>
4022
4023 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4024 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4025
4026 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4027
4028 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4029 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4030
4031 * Makefile.in (FONT_OBJ): New, set by configure.
4032 (FONT_DRIVERS): Use $FONT_OBJ.
4033
4034 * Makefile.in (LIBXMU): Set with configure, not cpp.
4035 * s/aix4-2.h (LIBXMU):
4036 * s/hpux10-20.h (LIBXMU):
4037 Remove definition, now set in configure.
4038
4039 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4040
4041 * m/amdx86-64.h [i386]: Move this test to configure.in.
4042
4043 2010-04-27 Glenn Morris <rgm@gnu.org>
4044
4045 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4046 * s/unixware.h (NEED_LIBW): Remove definition.
4047
4048 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4049 (TOOLKIT_LIBW): New, set by configure.
4050 (@X_TOOLKIT_TYPE@): No longer define it.
4051
4052 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4053 (MOTIF_LIBW): Set with configure, not cpp.
4054 * s/aix4-2.h (LIB_MOTIF):
4055 * s/gnu-linux.h (LIB_MOTIF):
4056 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4057
4058 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4059
4060 Reduce CPP usage.
4061 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4062 (obj): Use autoconf for unexec instead of cpp.
4063 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4064 definitions and undefs. Inline definitions in the only user.
4065 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
4066
4067 2010-04-27 Glenn Morris <rgm@gnu.org>
4068
4069 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4070 since the defaults (set by the system file) are fine in most cases.
4071 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4072 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4073 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4074 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4075 Remove definitions, since they are set correctly in s/gnu-linux.h.
4076 * s/freebsd.h (START_FILES, LIB_STANDARD):
4077 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4078 * s/hpux10-20.h (START_FILES):
4079 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4080 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4081
4082 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4083 (MOTIF_LIBW): Use $LIBXP.
4084 (otherobj): Use $WIDGET_OBJ.
4085
4086 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4087
4088 * Makefile.in (LIBS_MACHINE): Remove, unused.
4089
4090 Use autoconf instead of cpp for LIB_MATH.
4091 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4092 * s/cygwin.h (LIB_MATH): Likewise.
4093 * Makefile.in (LIB_MATH): Do not define with cpp.
4094 (LIBES): Use autoconf for LIB_MATH.
4095
4096 2010-04-26 Kenichi Handa <handa@m17n.org>
4097
4098 * composite.c (Ffind_composition_internal): Fix the return value
4099 for an automatic composition.
4100
4101 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4102
4103 Remove all NO_ARG_ARRAY uses.
4104 * fns.c (concat2, concat3, nconc2):
4105 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4106 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4107 * m/xtensa.h (NO_ARG_ARRAY):
4108 * m/template.h (NO_ARG_ARRAY):
4109 * m/sparc.h (NO_ARG_ARRAY):
4110 * m/sh3.h (NO_ARG_ARRAY):
4111 * m/mips.h (NO_ARG_ARRAY):
4112 * m/macppc.h (NO_ARG_ARRAY):
4113 * m/iris4d.h (NO_ARG_ARRAY):
4114 * m/intel386.h (NO_ARG_ARRAY):
4115 * m/ibms390x.h (NO_ARG_ARRAY):
4116 * m/ibms390.h (NO_ARG_ARRAY):
4117 * m/ibmrs6000.h (NO_ARG_ARRAY):
4118 * m/ia64.h (NO_ARG_ARRAY):
4119 * m/hp800.h (NO_ARG_ARRAY):
4120 * m/arm.h (NO_ARG_ARRAY):
4121 * m/amdx86-64.h (NO_ARG_ARRAY):
4122 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4123
4124 2010-04-25 Eli Zaretskii <eliz@gnu.org>
4125
4126 * xdisp.c (display_line): Don't assume 2nd call to
4127 get_next_display_element cannot return zero. (Bug#6030)
4128 (iterate_out_of_display_property): New function, body from pop_it.
4129 (pop_it): Use it.
4130
4131 2010-04-24 Glenn Morris <rgm@gnu.org>
4132
4133 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4134 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4135 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4136 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4137
4138 2010-04-24 Eli Zaretskii <eliz@gnu.org>
4139
4140 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4141 use `get_next_display_element' and `set_iterator_to_next' to
4142 advance to the next character, when looking for the character that
4143 begins the next row.
4144
4145 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
4146 definition of "struct Lisp_Symbol".
4147
4148 2010-04-24 Glenn Morris <rgm@gnu.org>
4149
4150 * Makefile.in (CRT_DIR): New variable, set by configure.
4151 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4152 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4153
4154 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4155
4156 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4157
4158 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4159
4160 Remove redundant flags.
4161 * s/freebsd.h (C_SWITCH_SYSTEM):
4162 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4163 * s/netbsd.h (C_SWITCH_SYSTEM):
4164 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4165 of these.
4166
4167 Simplify m/intel386.h.
4168 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4169 user: ecrt0.c.
4170 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4171 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4172 the only user: s/unixware.h.
4173 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4174 from m/intel386.h.
4175 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4176 moved here from m/intel386.h.
4177
4178 * m/mips.h: Remove #if 0 code.
4179
4180 2010-04-23 Eli Zaretskii <eliz@gnu.org>
4181
4182 Fix display of composed characters from L2R scripts in bidi buffers.
4183 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4184 After advancing IT past the composition, resync the bidi iterator
4185 with IT's position. (Bug#5977)
4186
4187 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4188
4189 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4190 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4191
4192 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4193
4194 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4195
4196 2010-04-23 Eli Zaretskii <eliz@gnu.org>
4197
4198 Support `display' text properties and overlay strings in bidi buffers.
4199 * xdisp.c (pop_it): When the stack is popped after displaying
4200 from a string, bidi-iterate to exit from the text portion covered
4201 by the `display' property or overlay. (Bug#5988, bug#5920)
4202
4203 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4204
4205 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4206 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4207
4208 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4209 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4210
4211 Simplify STARTFILES definition.
4212 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4213 relying on Makefile.in to define it.
4214 * s/cygwin.h (START_FILES): Likewise.
4215 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4216
4217 Clean up Solaris code.
4218 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4219 (LIB_MOTIF): Remove, configure takes care of this.
4220 (NOT_USING_MOTIF): Remove, unused.
4221 * xrdb.c: Remove #if 0-ed #include.
4222 (SYSV): Remove conditional for old SysV.
4223 * sysdep.c (closedir): Remove conditional code for Solaris,
4224 Solaris has closedir.
4225
4226 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4227
4228 * xsettings.c (read_and_apply_settings): Check if current_font is
4229 NULL before strcmp (Bug#6001).
4230
4231 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4232
4233 Clean up HP-UX files.
4234 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4235 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4236 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4237 * s/hpux10-20.h: ... to the only user, here.
4238
4239 2010-04-21 Eli Zaretskii <eliz@gnu.org>
4240
4241 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4242 use buffer-local values of paragraph-start and paragraph-separate.
4243 <paragraph_start_re, paragraph_separate_re>: Rename from
4244 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4245 (Bug#5992)
4246
4247 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4248
4249 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4250 current_tool_bar_style are new.
4251 (store_config_changed_event): Rename from store_font_changed_event.
4252 (XSETTINGS_TOOL_BAR_STYLE): New define.
4253 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4254 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4255 HAVE_XFT.
4256 (something_changedCB): store_font_changed_event is now
4257 store_config_changed_event.
4258 (parse_settings): Rename from parse_xft_settings. Read
4259 non-xft xsettings outside #ifdef HAVE_XFT.
4260 (read_settings): Renamed from read_xft_settings.
4261 (apply_xft_settings): Take current settings as parameter. Do not
4262 call read_(xft)_settings.
4263 (read_and_apply_settings): New function.
4264 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4265 read_and_apply_settings if there are settings to be read.
4266 (init_xsettings): Renamed from init_xfd_settings.
4267 Call read_and_apply_settings unconditionally.
4268 (xsettings_initialize): Call init_xsettings.
4269 (Ftool_bar_get_system_style): New function.
4270 (syms_of_xsettings): Define Qmonospace_font_name and
4271 Qtool_bar_style. Initialize current_tool_bar_style to nil.
4272 defsubr Stool_bar_get_system_style. Fprovide on
4273 dynamic-setting.
4274 Move misplaced HAVE_GCONF
4275
4276 * xsettings.h (Ftool_bar_get_system_style): Declare.
4277
4278 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4279 Qtext, Qboth, Qboth_horiz are new.
4280 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4281 Vtool_bar_style, tool_bar_max_label_size.
4282
4283 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4284
4285 * keyboard.c: QClabel is new.
4286 (parse_tool_bar_item): Take out QClabel from tool bar items.
4287 Try to construct a label if ther is no QClabel.
4288 (syms_of_keyboard): Intern :label as QClabel.
4289
4290 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4291 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4292 New.
4293
4294 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4295 dynamic-setting.el.
4296
4297 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4298 (xg_make_tool_item, xg_show_toolbar_item): New function.
4299 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4300 Call xg_make_tool_item to make a tool bar item.
4301 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4302
4303 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4304 into account for toolbars.
4305
4306 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4307
4308 * data.c (make_blv): Declarations before code (Bug#5993).
4309
4310 2010-04-21 Glenn Morris <rgm@gnu.org>
4311
4312 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4313 Define using autoconf, not cpp.
4314 (LIBXSM): New variable, set by autoconf.
4315 (LIBXT): Use $LIBXSM.
4316
4317 2010-04-21 Dan Nicolaescu <local_user@dannlt>
4318
4319 Remove NOMULTIPLEJOBS, unused.
4320 * s/template.h (NOMULTIPLEJOBS):
4321 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4322
4323 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4324 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4325 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4326 detects -znocombreloc and passes it to the linker
4327 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4328
4329 2010-04-21 Glenn Morris <rgm@gnu.org>
4330
4331 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4332
4333 2010-04-21 Karel Klíč <kklic@redhat.com>
4334
4335 * Makefile.in (LIBSELINUX_LIBS): New.
4336 (LIBES): Add $LIBSELINUX_LIBS.
4337 * eval.c, lisp.h (call7): New function.
4338 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4339 (Ffile_selinux_context, Fset_file_selinux_context):
4340 New functions.
4341 (Fcopy_file): New parameter preserve-selinux-context.
4342 (Frename_file): Preserve selinux context when renaming by copy-file.
4343
4344 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
4345 Eli Zaretskii <eliz@gnu.org>
4346
4347 Don't depend on cm.c or termcap.c on Windows, use stubs.
4348 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4349 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4350 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4351 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4352 (sys_tputs, sys_tgetstr): New stubs.
4353 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4354 (tputs, tgetstr): New; define to sys_*.
4355
4356 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
4357
4358 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4359
4360 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4361
4362 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4363 Just signal a warning rather than an error when inside a let.
4364 (Fmake_variable_frame_local): Add the same test.
4365
4366 * font.c (syms_of_font): Make the style table vars read-only.
4367
4368 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4369 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4370
4371 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4372
4373 2010-04-20 Eli Zaretskii <eliz@gnu.org>
4374
4375 Fix R2L paragraph display on TTY.
4376
4377 * xdisp.c (unproduce_glyphs): New function.
4378 (display_line): Use it when produced glyphs are discarded from R2L
4379 glyph rows.
4380 (append_composite_glyph): In R2L rows, prepend the glyph rather
4381 than appending it.
4382
4383 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4384 rather than append it. Set up the resolved_level and bidi_type
4385 attributes of the appended glyph.
4386 (produce_special_glyphs): Mirror the backslash continuation
4387 character in R2L lines.
4388
4389 Implement display of R2L paragraphs in GUI sessions.
4390
4391 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4392 append_stretch_glyph.
4393 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4394 off-by-one error in computing x at end of text in the row.
4395 (append_stretch_glyph): In reversed row, prepend the glyph rather
4396 than append it. Set resolved_level and bidi_type of the glyph.
4397 (extend_face_to_end_of_line): If the row is reversed, prepend a
4398 stretch glyph whose width is such that the rightmost glyph will be
4399 drawn at the right margin of the window. Fix off-by-one error on
4400 TTY frames in testing whether a line needs face extension. Fix
4401 face extension at ZV. If this is the last glyph row, use
4402 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4403 region face.
4404 (set_cursor_from_row, display_line): Use
4405 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4406 row->continuation_lines_width.
4407 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4408 are at ZV. Fixes a crash when reseated to ZV by
4409 try_window_reusing_current_matrix.
4410 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4411 which happens with R2L glyph rows. Fixes a crash when inserting a
4412 character at end of an R2L line.
4413 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4414 treat them as having zero-width characters. Improve comments.
4415 Don't reverse pos_before and pos_after for reversed glyph rows.
4416 Set cursor.x to negative value when the cursor might be on the
4417 left fringe.
4418 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4419 left fringe, not the right one.
4420 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4421 (erase_phys_cursor): For reversed cursor_row, support cursor on
4422 the left fringe.
4423
4424 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4425 of continuation indicators on the fringes.
4426 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4427 left fringe.
4428
4429 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4430 draw cursor on the left fringe.
4431
4432 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4433 cursor on the left fringe.
4434
4435 * dispnew.c (update_text_area): Handle reversed desired rows when
4436 the cursor is on the left fringe.
4437 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4438 below, not by 0, for when the cursor is on the left fringe.
4439
4440 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4441
4442 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4443 widget is a scrollbar.
4444
4445 2010-04-20 Kenichi Handa <handa@m17n.org>
4446
4447 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4448 only when the arg CHARSET_LIST is nil.
4449
4450 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4451
4452 Make variable forwarding explicit rather the using special values.
4453 Basically, this makes the structure of buffer-local values and object
4454 forwarding explicit in the type of Lisp_Symbols rather than use
4455 special Lisp_Objects for that. This tends to lead to slightly more
4456 verbose code, but is more C-like, simpler, and makes it easier to make
4457 sure we handled all cases, among other things by letting the compiler
4458 help us check it.
4459 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4460 Removing forwarding objects.
4461 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4462 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4463 explicit rather than hiding them inside Lisp_Object "values".
4464 (XFWDTYPE): New macro.
4465 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4466 (XBUFFER_LOCAL_VALUE): Remove.
4467 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4468 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4469 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4470 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4471 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4472 Remove the Lisp_Misc_* header.
4473 (struct Lisp_Buffer_Local_Value): Redefine.
4474 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4475 (struct Lisp_Misc_Any): Add filler to get the right size.
4476 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4477 Lisp_Intfwd.
4478 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4479 (DEFVAR_KBOARD): Allocate a forwarding object.
4480 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4481 (let_shadows_global_binding_p): New function.
4482 (union Lisp_Val_Fwd): New type.
4483 (make_blv): New function.
4484 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4485 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4486 (swap_in_symval_forwarding, find_symbol_value, Fset)
4487 (let_shadows_buffer_binding_p, set_internal, default_value)
4488 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4489 (Fkill_local_variable, Fmake_variable_frame_local)
4490 (Flocal_variable_p, Flocal_variable_if_set_p)
4491 (Fvariable_binding_locus):
4492 * xdisp.c (select_frame_for_redisplay):
4493 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4494 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4495 * frame.c (store_frame_param):
4496 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4497 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4498 value structure.
4499 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4500 (clone_per_buffer_values): Only adjust markers into the current buffer.
4501 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4502 (Fbuffer_local_value, set_buffer_internal_1)
4503 (swap_out_buffer_local_variables):
4504 Adapt to the new symbol value structure.
4505 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4506 (defvar_per_buffer): Take a new arg for the fwd object.
4507 (buffer_lisp_local_variables): Return a proper alist (different fix
4508 for bug#4138).
4509 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4510 (Fgarbage_collect): Don't handle buffer_defaults specially.
4511 (mark_object): Handle new symbol value structure rather than the old
4512 special Lisp_Misc_* objects.
4513 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4514 * term.c (set_tty_color_mode):
4515 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4516 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4517 a buffer_local_flags.
4518 * print.c (print_object): Get rid of impossible forwarding objects.
4519
4520 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4521
4522 * bidi.c (bidi_get_type, bidi_get_category)
4523 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
4524 (bidi_type_of_next_char, bidi_level_of_next_char):
4525 Declare static. Use `INLINE' rather than `inline'.
4526
4527 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
4528
4529 * dired.c (Ffile_attributes): Fix typo in docstring.
4530
4531 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4532
4533 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4534 NSInteger (Bug#5811).
4535
4536 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4537
4538 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4539 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4540
4541 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4542
4543 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4544
4545 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
4546
4547 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4548 terminal frames (Bug#5837).
4549
4550 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4551
4552 * .gdbinit (xsubchartable): New command.
4553
4554 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4555
4556 * xdisp.c (display_line): Don't write beyond the last glyph row in
4557 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
4558 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4559 and
4560 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4561
4562 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4563
4564 * alloc.c (Fpurecopy): Hash-cons if requested.
4565 (syms_of_alloc): Update purify-flag docstring.
4566
4567 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4568
4569 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4570 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4571
4572 2010-04-17 Eli Zaretskii <eliz@gnu.org>
4573
4574 Fix a crash when an NSM character is inserted at BEGV.
4575
4576 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4577 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4578 NEUTRAL_B or UNKNOWN_BT.
4579
4580 2010-04-16 Eli Zaretskii <eliz@gnu.org>
4581
4582 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4583 other rows with cursor unless they are different from this row and
4584 this row is part of a continued line. (Bug#5943)
4585
4586 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4587
4588 * s/freebsd.h: Restore osreldate.h include.
4589 Suggested by Naohiro Aota.
4590
4591 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4592
4593 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4594
4595 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4596
4597 * s/cygwin.h: Avoid linking against static libgcc.
4598
4599 2010-04-15 Juri Linkov <juri@jurta.org>
4600
4601 * window.c: Add Qscroll_command.
4602 Remove Vscroll_preserve_screen_position_commands.
4603 (window_scroll_pixel_based, window_scroll_line_based): Check the
4604 `scroll-command' property on the last command instead of searching
4605 the last command in Vscroll_preserve_screen_position_commands.
4606 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4607 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4608 (scroll-preserve-screen-position): Doc fix.
4609 (Vscroll_preserve_screen_position_commands): Remove variable.
4610
4611 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4612
4613 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4614
4615 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4616
4617 Reduce cpp use in Makefile.in.
4618 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4619 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4620 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4621 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4622 (CRT0_COMPILE): Remove, inline it in the only user.
4623
4624 2010-04-14 Juri Linkov <juri@jurta.org>
4625
4626 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4627 `scroll-up-command' and `M-v' from `scroll-down' to
4628 `scroll-down-command'.
4629
4630 2010-04-14 Juri Linkov <juri@jurta.org>
4631
4632 * window.c (Vscroll_preserve_screen_position_commands): New variable
4633 with the default value as the list of Qscroll_down and Qscroll_up.
4634 (window_scroll_pixel_based, window_scroll_line_based): Search the
4635 last command in the list Vscroll_preserve_screen_position_commands
4636 instead of comparing with Qscroll_up and Qscroll_down.
4637
4638 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4639
4640 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4641 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4642 does that.
4643
4644 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4645 to zero.
4646
4647 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4648
4649 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4650
4651 Try to solve the problem of spurious EOF chars in long lines of text
4652 sent to interactive subprocesses.
4653 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4654 (system_process_attributes): Remove unused var `ttotal'.
4655 * process.c (send_process): Don't bother breaking long line with EOF
4656 chars when talking to ttys any more.
4657 (wait_reading_process_output): Output a warning when called in such
4658 a way that it could block without being interruptible.
4659
4660 Try to detect file modification within the same second.
4661 * buffer.h (struct buffer): New field modtime_size.
4662 * buffer.c (reset_buffer): Initialize it.
4663 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4664 (Fverify_visited_file_modtime): Check it.
4665 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4666 (Fset_visited_file_modtime): Set (or clear) it.
4667
4668 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4669
4670 * process.c (status_notify): Remove unused var `ro'.
4671
4672 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4673
4674 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4675 more than one visual (Bug#5938).
4676
4677 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4678
4679 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4680 Undefine.
4681
4682 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4683
4684 Remove C_SWITCH_SYSTEM_TEMACS.
4685 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4686 (malloc, realloc, free): Use emacs, not temacs for conditional
4687 definition.
4688
4689 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4690 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4691
4692 Use autoconf, not cpp for some variables.
4693 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4694 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4695 (ALL_CFLAGS): Use them as make variables.
4696 (really-lwlib, really-oldXMenu): Do not pass them.
4697
4698 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4699
4700 * xmenu.c (apply_systemfont_to_dialog): New.
4701 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4702
4703 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4704
4705 * process.c (exec_sentinel): Preserve current-buffer.
4706
4707 * process.c (read_process_output): Move the save-current-buffer to
4708 apply to both the filter and the non-filter branches.
4709
4710 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4711
4712 * s/msdos.h (UNEXEC): New definition.
4713
4714 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4715
4716 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4717 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4718
4719 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4720 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4721 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4722 TRY_WINDOW_CHECK_MARGINS.
4723
4724 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
4725 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4726 width only when it is for padding.
4727
4728 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4729
4730 * xfns.c (Fx_show_tip): Call try_window in a loop until
4731 fonts_changed_p is zero (Bug#2423).
4732
4733 2010-04-08 Eli Zaretskii <eliz@gnu.org>
4734
4735 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4736 the end of TEXT_AREA. (Bug#5856)
4737
4738 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4739
4740 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4741 HAVE_GCONF.
4742
4743 2010-04-08 Eli Zaretskii <eliz@gnu.org>
4744
4745 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4746 prev.orig_type, for resolving type of NSM. (Bug#5858)
4747
4748 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4749
4750 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4751 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4752 in current_font.
4753 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
4754 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4755 New functions.
4756 (syms_of_xsettings): Initialize current_font.
4757 defsubr Sfont_get_system_normal_font.
4758
4759 * xsettings.h (Ffont_get_system_normal_font)
4760 (xsettings_get_system_normal_font): Declare.
4761
4762 * xfns.c (extern xlwmenu_default_font): Remove.
4763 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4764 to xlwmenu.c.
4765
4766 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4767 menu items in UTF-8.
4768
4769 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4770 (apply_systemfont_to_menu): New function.
4771 (set_frame_menubar, create_and_show_popup_menu): Call
4772 apply_systemfont_to_menu.
4773
4774 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4775
4776 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4777 FRAME_LINE_TO_PIXEL_Y.
4778
4779 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4780 pixelwidth/height.
4781
4782 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4783
4784 Simplify code for HP machines.
4785 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4786 for GNU_LINUX, not needed.
4787 (UNEXEC, NEED_BSDTTY): Move definitions...
4788 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4789
4790 * m/iris4d.h (UNEXEC): Move definition ...
4791 * s/irix6-5.h (UNEXEC): ... here.
4792
4793 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4794
4795 * xfns.c (set_machine_and_pid_properties): New function.
4796 (Fx_create_frame): Call set_machine_and_pid_properties.
4797
4798 2010-04-03 Eli Zaretskii <eliz@gnu.org>
4799
4800 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4801 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4802 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4803
4804 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4805 in this function. (Bug#5703)
4806
4807 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
4808
4809 * nsterm.h: Fix last change.
4810
4811 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4812
4813 * m/intel386.h (NO_REMAP): Move definition ...
4814 * s/msdos.h (NO_REMAP): ... here.
4815
4816 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4817
4818 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4819 used on those platforms.
4820
4821 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4822
4823 Remove extern errno declarations.
4824 * xterm.c:
4825 * xrdb.c:
4826 * w32term.c:
4827 * unexec.c:
4828 * unexaix.c:
4829 * sysdep.c:
4830 * process.c:
4831 * lread.c:
4832 * keyboard.c:
4833 * floatfns.c:
4834 * filelock.c:
4835 * fileio.c:
4836 * emacs.c (main):
4837 * ecrt0.c:
4838 * dispnew.c:
4839 * callproc.c:
4840 * buffer.c: Remove errno extern declarations.
4841 * s/netbsd.h (NEED_ERRNO): Remove.
4842
4843 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4844
4845 Remove all uses of LIBX11_SYSTEM.
4846 * Makefile.in (LIBX11_SYSTEM): Remove.
4847 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4848 instead.
4849
4850 2010-04-01 Eli Zaretskii <eliz@gnu.org>
4851
4852 Remove support for DJGPP v1.x (bug#5813).
4853
4854 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
4855 * s/msdos.h:
4856 * unexec.c (make_hdr, copy_text_and_data):
4857 * sysdep.c (wait_for_termination, sys_subshell):
4858 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
4859 (IT_set_terminal_modes, __write, _rename, gethostname)
4860 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4861 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4862 the value of __DJGPP__.
4863 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4864 compatibility code.
4865 * lread.c:
4866 * gmalloc.c (memalign):
4867 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4868 * emacs.c (main):
4869 * dosfns.c (init_dosfns):
4870 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4871
4872 2010-04-01 Eli Zaretskii <eliz@gnu.org>
4873
4874 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4875 string with `cursor' property comes from an `after-string'
4876 overlay. (Bug#5816)
4877
4878 2010-04-01 Glenn Morris <rgm@gnu.org>
4879
4880 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4881 Define as Makefile variables.
4882 (LIBX): Use above variables rather than directly using autoconf.
4883
4884 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4885
4886 Clean up BSD_SYSTEM use.
4887 * xterm.c:
4888 * process.c:
4889 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4890 for including <sys/ioctl.h>.
4891 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4892 code is only used for MSDOS.
4893
4894 2010-03-31 Juri Linkov <juri@jurta.org>
4895
4896 * image.c: Add `Qextension_data'.
4897 (syms_of_image): Initialize and staticpro `Qextension_data'.
4898 (Fimage_metadata): Rename from `Fimage_extension_data'.
4899 (gif_load): Put GIF extension data to the property
4900 `Qextension_data'.
4901
4902 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
4903
4904 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4905 * nsterm.h: Fix prototype.
4906
4907 2010-03-31 Eli Zaretskii <eliz@gnu.org>
4908
4909 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4910 trailing whitespace in right-to-left rows.
4911
4912 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4913
4914 Get rid of the direct_output optimizations.
4915 * keyboard.c (nonundocount): Remove extern declaration.
4916 (command_loop_1): Remove brittle optimisation for cheap and
4917 common operations.
4918 * xdisp.c (redisplay_internal): Don't bother checking
4919 redisplay_performed_directly_p any more.
4920 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4921 any more.
4922 * dispnew.c (redisplay_performed_directly_p)
4923 (direct_output_for_insert, direct_output_forward_char):
4924 * dispextern.h (redisplay_performed_directly_p)
4925 (direct_output_for_insert, direct_output_forward_char): Remove.
4926 * cmds.c (nonundocount): Make it static.
4927
4928 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
4929
4930 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4931
4932 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
4933
4934 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4935 invisible (Bug#5766).
4936
4937 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
4938
4939 * xdisp.c (x_consider_frame_title, update_window_cursor):
4940 Remove HAVE_NS conditionals.
4941 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
4942
4943 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4944 filename for the title.
4945 (ns_set_doc_edited): Do nothing if the selected window is a
4946 minibuffer window.
4947
4948 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4949 ns_set_doc_edited.
4950
4951 * nsterm.m: Remove unneeded prototype.
4952
4953 2010-03-31 Glenn Morris <rgm@gnu.org>
4954
4955 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4956 in the DOC file. (Bug#5336)
4957
4958 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
4959
4960 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4961
4962 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4963
4964 * window.c (keys_of_window): Remove redundant/overridden bindings.
4965
4966 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4967
4968 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4969 Restore original behavior when the iterator is not bidi_p.
4970
4971 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4972
4973 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4974
4975 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4976
4977 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4978 are outside the range of cached character positions.
4979
4980 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
4981
4982 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4983
4984 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4985
4986 Initial support for bidirectional editing.
4987
4988 * Makefile.in (obj): Include bidi.o.
4989 (bidi.o): New target.
4990
4991 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4992 ($(BLD)/bidi.$(O)): New target.
4993
4994 * bidi.c: New file.
4995
4996 * buffer.h (struct buffer): New members bidi_display_reordering
4997 and bidi_paragraph_direction.
4998
4999 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5000 and bidi_paragraph_direction.
5001 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5002 and bidi-paragraph-direction.
5003 (Fbuffer_swap_text): Swap the values of
5004 bidi_display_reordering and bidi_paragraph_direction.
5005
5006 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5007 (bidi_type_t, bidi_dir_t): New types.
5008 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5009 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5010 prev_stop, base_level_stop, and eol_pos.
5011 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5012 (IT_STACK_SIZE): Enlarge to 5.
5013 (struct glyph_row): New member reversed_p.
5014 <string_buffer_position>: Update prototype.
5015 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5016 glyph_row if bidi_it.paragraph_dir == R2L.
5017 (struct glyph): New members resolved_level and bidi_type.
5018
5019 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5020 processing or buffer's direction is right-to-left.
5021 (prepare_desired_row): Preserve the reversed_p flag.
5022 (row_equal_p): Compare the reversed_p attributes as well.
5023
5024 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5025 bidi_init_it and set it->paragraph_embedding from the current
5026 buffer's value of bidi_paragraph_direction.
5027 (reseat_1): Initialize bidi_it.first_elt.
5028 (set_iterator_to_next, next_element_from_buffer): Use the value of
5029 paragraph_embedding to determine the paragraph direction.
5030 (set_iterator_to_next): Under bidi reordering, call
5031 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5032 new_paragraph flag is set in the bidi iterator.
5033 (next_element_from_buffer): If bidi_it.first_elt is set,
5034 initialize paragraph direction and find the first character to
5035 display in the visual order. If reseated to a middle of a line,
5036 prime the bidi iterator starting at the line's beginning. Handle
5037 the situation where we overstepped stop_charpos due to
5038 non-linearity of the bidi iteration. Likewise for when we back up
5039 beyond the previous stop_charpos. When moving across stop_charpos,
5040 record it in prev_stop.
5041 (display_line): Set row->end and it->start for the next row to the
5042 next character in logical order. Always extend reversed_p rows to
5043 the end of line, even if they end at ZV. Copy the reversed_p flag
5044 to the next glyph row. Keep calling set_cursor_from_row for
5045 bidi-reordered rows even if we already have a possible candidate
5046 for cursor position. Set row_end after all the row's glyphs have
5047 been produced, by looping over the glyphs. Record the position
5048 after EOL in it->eol_pos, and use it to set end_pos of the last
5049 row produced for a continued line.
5050 <Qright_to_left, Qleft_to_right>: New variables.
5051 (syms_of_xdisp): Initialize and staticpro them.
5052 (string_buffer_position_lim): New function.
5053 (string_buffer_position): Most of code moved to
5054 string_buffer_position_lim. Last argument and return value are
5055 now EMACS_INT; all callers changed.
5056 (set_cursor_from_row): Rewritten to support bidirectional text and
5057 reversed glyph rows.
5058 (text_outside_line_unchanged_p, try_window_id): Disable
5059 optimizations if we are reordering bidirectional text and the
5060 paragraph direction can be affected by the change.
5061 (append_glyph, append_composite_glyph)
5062 (produce_image_glyph, append_stretch_glyph): Set the
5063 resolved_level and bidi_type members of each glyph.
5064 (append_glyph): If the glyph row is reversed, prepend the glyph
5065 rather than appending it.
5066 (handle_stop_backwards): New function.
5067 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5068 (reseat): call handle_stop_backwards to recompute prev_stop and
5069 base_level_stop for the new position.
5070 (handle_invisible_prop): Under bidi iteration, skip invisible text
5071 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5072 paragraph direction. Update IT->prev_stop after skipping
5073 invisible text.
5074 (move_it_in_display_line_to): New variables prev_method
5075 and prev_pos. Compare for strict equality in
5076 BUFFER_POS_REACHED_P.
5077 (try_cursor_movement): Examine all the candidate rows that occlude
5078 point, to return the best match. If rows are bidi-reordered
5079 and point moved backwards, back up to the row that is not a
5080 continuation line, and start looking for a suitable row from
5081 there.
5082
5083 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5084 rather than appending, if the glyph_row's reversed_p flag is set.
5085 Set the resolved_level and bidi_type members of each glyph.
5086
5087 * .gdbinit (pbiditype): New command.
5088 (pgx): Use it to display bidi level and type of the glyph.
5089 (pitx): Display some bidi information about the iterator.
5090 (prowlims, pmtxrows): New commands.
5091
5092 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5093
5094 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5095 * s/usg5-4.h (LIBS_DEBUG):
5096 * s/irix6-5.h (C_DEBUG_SWITCH):
5097 * s/gnu-linux.h (LIBS_DEBUG):
5098 * s/darwin.h (LIBS_DEBUG):
5099 * s/bsd-common.h (LIBS_DEBUG):
5100 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5101 * m/iris4d.h (LIBS_DEBUG):
5102 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5103
5104 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5105 (LIBS_DEBUG): Remove definition.
5106
5107 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
5108
5109 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5110 Windows.
5111
5112 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5113
5114 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5115 `connect' (Bug#5723).
5116
5117 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
5118
5119 * process.c (Fmake_network_process): Call `select' for interrupted
5120 `connect' rather than creating new socket (Bug#5173).
5121
5122 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
5123
5124 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5125
5126 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5127
5128 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5129
5130 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5131
5132 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5133 XLoadQueryFont.
5134
5135 2010-03-24 Kenichi Handa <handa@m17n.org>
5136
5137 * coding.c (decode_coding_ccl): Fix previous change for the
5138 multibyte case.
5139 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5140 case that the output buffer is fullfilled.
5141 (encode_coding): Setup ccl program here.
5142
5143 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5144
5145 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5146
5147 Simplify LIBS_MACHINE definitions.
5148 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5149 * m/iris4d.h (LIBS_MACHINE): Likewise.
5150 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5151 * s/aix4-2.h (LIBS_SYSTEM): ... here.
5152 * s/netbsd.h: Remove commented out code.
5153
5154 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5155
5156 Remove dead code dealing with POSIX_SIGNALS.
5157 * atimer.c (set_alarm): Remove dead code, all USG systems define
5158 POSIX_SIGNALS.
5159 * data.c (arith_error): Likewise.
5160 * keyboard.c (input_available_signal, handle_user_signal)
5161 (interrupt_signal): Likewise.
5162 * process.c (sigchld_handler): Likewise.
5163 (create_process): Remove if 0 code. Remove HPUX conditional when
5164 !defined (POSIX_SIGNALS), it cannot be true.
5165 * syssignal.h: Remove USG5_4 and USG conditionals when
5166 !POSIX_SIGNALS, they cannot be true.
5167
5168 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5169 NO_SOCK_SIGIO, not used anymore.
5170
5171 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5172
5173 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5174 support vax on BSDs.
5175
5176 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5177 * s/aix4-2.h (ORDINARY_LINK): ... here.
5178
5179 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5180
5181 * Makefile.in (abs_builddir): Define.
5182 (bootstrap_exe): Use it.
5183 (VPATH): Use $(srcdir) instead of @srcdir@.
5184
5185 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5186
5187 * Makefile.in (bootstrap_exe): Use an absolute name.
5188
5189 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5190
5191 Remove support for old GNU/Linux using libc version 5.
5192 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5193 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5194
5195 Consolidate redundant definitions in s/bsd-common.h.
5196 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5197 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5198 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5199 doing it in all files that include this one.
5200 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5201 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5202 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5203 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5204 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5205 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5206 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5207 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5208 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5209
5210 Consolidate redundant definitions.
5211 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5212 it's undefined in all files that include this one.
5213 (POSIX_SIGNALS): Define here instead of doing it in all files that
5214 include this one.
5215 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5216 (POSIX_SIGNALS): Do not define.
5217 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5218 (POSIX_SIGNALS): Do not define.
5219 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5220 (POSIX_SIGNALS): Do not define.
5221
5222 Remove support for old UNIX System V systems.
5223 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5224 * s/usg-5-4-2.h: Remove.
5225
5226 Remove support for Solaris on PPC and for old versions.
5227 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5228 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5229 that cancel each other.
5230 * s/sol2-3.h:
5231 * s/sol2-4.h:
5232 * s/sol2-5.h: Remove.
5233 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5234 (NO_REMAP): Remove, unused.
5235 (UNEXEC): Move definition ...
5236 * s/aix4-2.h (UNEXEC): ... here.
5237
5238 * s/openbsd.h: Remove support for non-ELF and for systems that do
5239 not support shared libraries.
5240 * s/netbsd.h:
5241 * s/freebsd.h: Likewise.
5242
5243 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5244
5245 Remove non-working support for lynxos 3.0.
5246 * s/lynxos.h: Remove file.
5247
5248 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5249 COFF_BSD_SYMBOLS, nothing defines it anymore.
5250
5251 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5252
5253 Remove obsolete uses of HAVE_SHM.
5254 * emacs.c (standard_args):
5255 (Fdump_emacs):
5256 (syms_of_emacs): Remove code depending on HAVE_SHM.
5257
5258 * alloc.c: Remove HAVE_SHM dependent definition.
5259
5260 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5261
5262 2010-03-18 Glenn Morris <rgm@gnu.org>
5263
5264 * emacs.c (USAGE4): Hard-code bug address.
5265 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5266 (bug_reporting_address): Remove.
5267 (main): Don't call bug_reporting_address.
5268
5269 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5270 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5271
5272 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
5273
5274 * xfns.c (Fx_create_frame):
5275 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5276 on left.
5277
5278 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5279
5280 * editfns.c (Fformat): Account for string precision when computing
5281 field width (Bug#5710).
5282
5283 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
5284
5285 * xfns.c (Fx_create_frame): Set default to Qright.
5286
5287 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5288 all window systems.
5289
5290 2010-03-12 Eli Zaretskii <eliz@gnu.org>
5291
5292 These changes remove termcap.c from the build on Posix platforms.
5293 * Makefile.in (termcapobj): Move termcap.o from here...
5294 (MSDOS_OBJ): ...to here.
5295 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5296 now identical to when LIBS_TERMCAP is defined.
5297
5298 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5299
5300 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5301
5302 * config.in: Regenerated. (See top-level ChangeLog.)
5303
5304 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
5305
5306 * Branch for 23.2.
5307
5308 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5309
5310 Cleanup setup of gl_state in various parts of the code.
5311 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5312 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5313 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5314 (skip_chars):
5315 * regex.c (regex_compile): Use it.
5316 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5317 it's now set in regex_compile when/if we need it.
5318
5319 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5320
5321 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5322 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5323 (QUIT): Use it to consolidate code and remove redundancy.
5324 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5325
5326 * regex.c (regex_compile): Setup gl_state as well.
5327
5328 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5329 (in_classes): Use CONSP before XCAR/XCDR.
5330
5331 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
5332
5333 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5334 definitions, so that keyboard macros are correctly handled
5335 (Bug#5481).
5336
5337 2010-03-02 Eli Zaretskii <eliz@gnu.org>
5338
5339 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5340 text that could be relocated inside the call to emacs_mule_char.
5341 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5342 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5343
5344 2010-03-02 Kenichi Handa <handa@m17n.org>
5345
5346 * character.c (parse_str_as_multibyte): Fix handling of the
5347 multibyte form of raw-bytes.
5348 (str_as_multibyte): Likewise.
5349
5350 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5351 form of raw-bytes.
5352
5353 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
5354
5355 * charset.c (load_charset_map_from_file)
5356 (load_charset_map_from_vector): Zero out allocated
5357 charset_map_entries before using them.
5358
5359 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5360
5361 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5362
5363 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
5364
5365 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5366 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
5367
5368 2010-02-26 Kenichi Handa <handa@m17n.org>
5369
5370 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5371
5372 * xdisp.c (reseat_to_string): Fix previous change.
5373
5374 2010-02-26 David Reitter <david.reitter@gmail.com>
5375
5376 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5377 Lisp_Object (Bug#4736).
5378
5379 2010-02-25 Kenichi Handa <handa@m17n.org>
5380
5381 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5382
5383 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5384
5385 * xterm.c (XTflash): Move declarations before statements.
5386
5387 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5388 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5389 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5390 (xg_create_tool_bar): Remove unused variables.
5391 (x_wm_set_size_hint): Move declarations before statements.
5392 (xg_create_frame_widgets): Remove variable grav.
5393
5394 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
5395
5396 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5397
5398 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5399
5400 * term.c (fatal): Add a final \n if needed (bug#5596).
5401
5402 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
5403
5404 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5405
5406 2010-02-18 Glenn Morris <rgm@gnu.org>
5407
5408 * callint.c (Finteractive): Doc fix.
5409
5410 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5411
5412 * coding.c (record_conversion_result):
5413 Handle CODING_RESULT_INSUFFICIENT_DST.
5414 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5415 memory allocation error.
5416
5417 2010-02-17 Kenichi Handa <handa@m17n.org>
5418
5419 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5420 Fix for the case that the output buffer is fullfilled.
5421 (decode_coding): Setup ccl program here. Keep looping when the
5422 decoder stopped because the output buffer is
5423 fullfilled (bug#5534).
5424
5425 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5426
5427 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5428
5429 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
5430 bug #5571.
5431 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
5432 overdrawn.
5433
5434 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5435
5436 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5437 doing_interact here.
5438 (ice_connection_closed): New function.
5439 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5440 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5441 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5442 returns I/O error.
5443 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5444 bug #5512.
5445
5446 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
5447
5448 * nsfont.m (nsfont_open): The system's value for the font descent
5449 is negative, so round it down to avoid clipping.
5450
5451 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
5452
5453 * charset.c (load_charset_map_from_file)
5454 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
5455 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
5456
5457 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
5458
5459 * charset.c (load_charset_map_from_file): Allocate large
5460 charset_map_entries structure on the heap rather than the stack.
5461 (Bug#5526).
5462
5463 2010-01-31 Kenichi Handa <handa@m17n.org>
5464
5465 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
5466 size in NAME is invalid, return -1 (Bug#5396).
5467
5468 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
5469
5470 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5471 <deactivated@gmail.com> (Bug#3605).
5472
5473 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
5474
5475 * fileio.c (Frename_file): Correctly rename symlinks to
5476 directories (Bug#5496).
5477
5478 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5479
5480 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5481
5482 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5483
5484 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5485
5486 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
5487
5488 * frame.c (DEFAULT_ROWS): Change default to 35.
5489
5490 * xfns.c (x_default_font_parameter): Change default XFT font to
5491 monospace-10 (Bug#3643).
5492
5493 2010-01-29 Eli Zaretskii <eliz@gnu.org>
5494
5495 * w32inevt.c (key_event): Remove unnecessary comparison of
5496 event->uChar.AsciiChar with 128.
5497
5498 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
5499
5500 * fileio.c (Frename_file): Fix last change (Bug#5487).
5501
5502 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5503
5504 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5505
5506 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5507
5508 * xfns.c (Fx_create_frame): Remove window size matching code from
5509 2010-01-15.
5510 (x_get_current_desktop, x_get_desktop_workarea): Remove.
5511
5512 2010-01-27 Jason Rumney <jasonr@gnu.org>
5513
5514 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
5515 (key_event): Use unicode for characters 128 and higher (Bug#4567).
5516
5517 2010-01-27 Kenichi Handa <handa@m17n.org>
5518
5519 * regex.c (analyse_first): Fix setting of fastmap for unibyte
5520 pattern string (Bug#4209).
5521
5522 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
5523
5524 * fileio.c (Frename_file): Call copy-directory and
5525 delete-directory for directories, in order to handle cross-device
5526 renaming (Bug#3353).
5527
5528 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5529
5530 * xfns.c (Fx_create_frame): If frame height is too big, try
5531 sizes 24 and 10. Bug #3643.
5532
5533 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5534
5535 Try and fix bug#788, hopefully for real this time.
5536 * keymap.c (shadow_lookup): Add `remap' arg.
5537 (describe_map, describe_vector): Update calls to shadow_lookup.
5538 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5539 `remapped' so this flag is applicable to `sequence'. Be careful to
5540 perform remapping during shadow_lookup check of remapped_sequences.
5541
5542 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5543
5544 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5545 png_check_sig, which has been removed in libpng 1.4.
5546
5547 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5548
5549 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5550 lacks this header file).
5551
5552 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5553
5554 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5555 as in Emacs 22.
5556
5557 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5558
5559 * lisp.h (make_pure_string): String pointer arg now points to const.
5560
5561 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5562 args now point to const.
5563
5564 2010-01-22 Eli Zaretskii <eliz@gnu.org>
5565
5566 * lread.c (Fload): Don't treat files without .elc extension as
5567 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5568 them. (bug#5303)
5569
5570 2010-01-20 Kenichi Handa <handa@m17n.org>
5571
5572 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5573 treat the source as actual byte sequence.
5574
5575 2010-01-19 Alan Mackenzie <acm@muc.de>
5576
5577 Fix spurious before-change-functions invocation from (insert ?\n).
5578 * textprop.c (set_text_properties): Rename parameter
5579 `signal_after_change_p' to `coherent_change_p', and make the
5580 invocation of `modify_region' conditional on it.
5581
5582 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5583
5584 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5585 for debug purpose.
5586 (syms_of_xsettings): Declare xft-settings.
5587
5588 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
5589
5590 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5591
5592 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5593
5594 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5595
5596 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
5597
5598 * emacs.c (standard_args): Adjust arg priorities to reflect how
5599 they are processed in startup.el.
5600
5601 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5602
5603 * Makefile.in (lisp, shortlisp): Update.
5604
5605 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5606
5607 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5608 code, link the new kboard into all_kboard before running Lisp code,
5609 and protect the new terminal with GCPRO (Bug#5365).
5610 (x_term_init): Remove unused var `atom'.
5611 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5612
5613 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5614
5615 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5616 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5617 to find out usable size of the desktop. Don't make frames larger than
5618 this. Bug #3643.
5619
5620 2010-01-15 Kenichi Handa <handa@m17n.org>
5621
5622 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5623
5624 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
5625
5626 * nsterm.m (Qnone): Define.
5627
5628 * nsfns.m (Qnone): Move definition to nsterm.m.
5629
5630 2010-01-14 Kenichi Handa <handa@m17n.org>
5631
5632 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5633 systems.
5634
5635 2010-01-14 Kenichi Handa <handa@m17n.org>
5636
5637 Make auto-composition work on all buffers even if they are
5638 fundamental mode.
5639
5640 * composite.c (Vauto_composition_mode): New variable.
5641 (composition_compute_stop_pos): Check Vauto_composition_mode
5642 instead of Vauto_composition_function.
5643 (composition_adjust_point, Ffind_composition_internal): Likewise.
5644 (syms_of_composite): Declare Lisp variable
5645 "auto-composition-mode" here.
5646
5647 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
5648
5649 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5650 during call to vendor-specific-keysyms (Bug#5365).
5651
5652 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5653
5654 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5655 Call SIGNAL_THREAD_CHECK (Bug#5333).
5656
5657 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5658 Call SIGNAL_THREAD_CHECK.
5659
5660 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5661
5662 Try to fix bug#5314. This is probably not the final word, tho.
5663 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5664 recent-auto-save-p as a side-effect.
5665 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5666 * buffer.c (Fkill_buffer, reset_buffer):
5667 * editfns.c (Fsubst_char_in_region):
5668 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5669 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5670
5671 2010-01-13 Kenichi Handa <handa@m17n.org>
5672
5673 Display buffer name, etc. in mode line by composing correctly.
5674
5675 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5676 STRING is not nil.
5677 (display_mode_element): Adjust for the change of
5678 decode_mode_spec and display_line.
5679 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5680 (display_string): Handle the case that STRING is non-null and
5681 LISP_STRING is not nil.
5682
5683 * xterm.c (x_draw_composite_glyph_string_foreground):
5684 Pay attention to s->face->overstrike.
5685
5686 * composite.c (composition_reseat_it): Don't check PT if STRING is
5687 non nil.
5688
5689 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5690
5691 * keyboard.c (read_char): Don't apply previous change when current
5692 buffer is unchanged by command execution.
5693
5694 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5695
5696 * keyboard.c (read_char): Return after executing from special map.
5697
5698 2010-01-12 Glenn Morris <rgm@gnu.org>
5699
5700 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5701 bug-gnu-emacs rather than emacs-pretest-bug.
5702
5703 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
5704
5705 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5706 initializing the Lisp variables that depend on them.
5707
5708 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5709
5710 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5711 Clear areas that will not be updated after change of menu bar lines.
5712 Clear the menu bar window's current matrix when the window gets empty.
5713
5714 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
5715
5716 * intervals.h, textprop.c (extend_property_ranges): Return value
5717 and args changed. Discard properties that begin at or after the
5718 new end (Bug#5306).
5719
5720 * editfns.c (Fformat): Caller changed.
5721
5722 * nsterm.m (ns_set_default_prefs): Delete function.
5723 (syms_of_nsterm): Initialize ns_command_modifier,
5724 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5725 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5726
5727 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5728 position (Bug#4040).
5729
5730 2010-01-09 Eli Zaretskii <eliz@gnu.org>
5731
5732 * editfns.c (Ffloat_time): Doc fix.
5733
5734 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5735
5736 * xfns.c (Fx_create_frame): Don't create frame larger than display
5737 by default bug#3643.
5738
5739 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5740
5741 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5742 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5743 windows above internal border.
5744
5745 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5746 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5747 windows above internal border.
5748
5749 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5750 tool bar windows specially.
5751
5752 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5753
5754 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5755 specially.
5756 (XTflash): Take account of menu bar height.
5757
5758 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5759 specially.
5760
5761 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5762
5763 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5764 also be true before we can return early (bug #5339).
5765
5766 2010-01-06 David Reitter <david.reitter@gmail.com>
5767
5768 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5769 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5770 (Bug#3233).
5771
5772 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5773
5774 * font.c (font_open_entity): Enable chache and call cached_font_ok
5775 for the driver if defined.
5776 (QCuser_spec): New symbol.
5777 (font_spec_from_name): Save name as user-spec.
5778 (font_load_for_lface): Keep user-spec instead of name.
5779 (font_open_by_name): Save name as user-spec.
5780 (syms_of_font): Initialize QCuser_spec.
5781 (font_clear_prop): Clear name if it exists in font (bug#5157).
5782
5783 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5784 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5785 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5786
5787 * font.h (struct font_driver): Add cached_font_ok.
5788
5789 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5790
5791 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5792
5793 * xterm.c (x_new_font): Move code for setting rows/cols before
5794 resizing ...
5795 (x_set_window_size): ... to here. Bug #2568.
5796
5797 * gtkutil.c (xg_clear_under_internal_border): New function.
5798 (xg_frame_resized, xg_frame_set_char_size):
5799 Call xg_clear_under_internal_border.
5800 (xg_update_scrollbar_pos): Clear under old scroll bar position.
5801
5802 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
5803
5804 * keyboard.c (read_key_sequence): Catch keyboard switch after
5805 making a new tty frame (Bug#5095).
5806
5807 2010-01-05 Kenichi Handa <handa@m17n.org>
5808
5809 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5810
5811 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5812
5813 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5814 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5815 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5816
5817 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
5818
5819 * dbusbind.c (xd_add_watch): Improve debug message.
5820 (xd_remove_watch): Improve debug message. If DATA is the session
5821 bus, unset D-Bus session environment.
5822 (Fdbus_init_bus): Pass the bus as argument to
5823 dbus_connection_set_watch_functions. (Bug#5283)
5824
5825 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
5826
5827 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5828
5829 * lread.c (syms_of_lread): Make it clearer that these are the
5830 names of loaded files (Bug#5068).
5831
5832 * eval.c (run_hook_with_args): Handle the case where the global
5833 value has the obsolete single-function form (Bug#5026).
5834
5835 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
5836
5837 * minibuf.c (Fall_completions): Minor optimization.
5838
5839 2009-12-26 Eli Zaretskii <eliz@gnu.org>
5840
5841 * .gdbinit (pgx): Fix display of composite glyphs.
5842 Display cmp.from and cmp.to as well.
5843 (pitx): Fix last change.
5844
5845 2009-12-25 Kenichi Handa <handa@m17n.org>
5846
5847 * composite.h (composition_adjust_point): Update prototype.
5848
5849 * composite.c (composition_reseat_it): Don't make a composition
5850 spanning over point.
5851 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5852 composable characters.
5853 (composition_adjust_point): New arg NEW_PT. Callers changed.
5854
5855 * keyboard.c (command_loop_1): Force redisplay if the last point
5856 was within a composition.
5857 (adjust_point_for_property): Don't adjust point for automatic
5858 composition when called after buffer modification.
5859
5860 2009-12-19 Eli Zaretskii <eliz@gnu.org>
5861
5862 * .gdbinit (pitx): Don't use enum names, use their values.
5863 Remove reference to non-existing value GET_FROM_COMPOSITION.
5864 (pgx): Don't use enum names, use their values.
5865 (pitmethod): New helper command.
5866 (pitx): Use it to display iteration method.
5867 (pgrowit): New command.
5868
5869 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5870
5871 Update dependencies in Makefile.in.
5872
5873 * Makefile.in (alloc.o): Depend on termhooks.h.
5874 (atimer.o): Depend on blockinput.h.
5875 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5876 and frame.h.
5877 (callint.o): Depend on systime.h, coding.h, and composite.h.
5878 (callproc.o): Depend on buffer.h.
5879 (casefiddle.o): Don't depend on charset.h.
5880 (casetab.o): Depend on character.h.
5881 (ccl.o): Depend on composite.h.
5882 (chartab.o): Depend on ccl.h.
5883 (cm.o): Depend on dispextern.h.
5884 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5885 (coding.o): Don't depend on $(INTERVALS_H).
5886 (composite.o): Don't depend on dispextern.h explicitly (it's in
5887 $(INTERVALS_H)). Depend on ccl.h.
5888 (data.o): Depend on systime.h, coding.h, composite.h,
5889 dispextern.h, font.h, and ccl.h.
5890 (dired.o): Depend on composite.h.
5891 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5892 composite.h (it's in $(INTERVALS_H)).
5893 (doc.o): Depend on systime.h, coding.h, and composite.h.
5894 (editfns.o): Don't depend explicitly on dispextern.h.
5895 (emacs.o): Depend on frame.h and coding.h.
5896 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5897 (fileio.o): Depend on frame.h and commands.h. Don't depend
5898 explicitly on dispextern.h.
5899 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5900 composite.h.
5901 (fns.o): Don't depend on termhooks.h.
5902 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5903 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5904 coding.h, $(INTERVALS_H), window.h, xterm.h.
5905 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5906 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5907 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5908 fontset.h, ccl.h, and ftfont.h.
5909 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5910 (gtkutil.o): Depend on dispextern.h and composite.h.
5911 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5912 termhooks.h, and ccl.h.
5913 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5914 (intervals.o): Depend on systime.h and coding.h.
5915 (keyboard.o): Depend on composite.h and coding.h.
5916 (keymap.o): Depend on coding.h and frame.h.
5917 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5918 (macros.o): Depend on systime.h, coding.h, and composite.h.
5919 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5920 and atimer.h.
5921 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5922 dispextern.h explicitly.
5923 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5924 Don't depend explicitly on dispextern.h and composite.h.
5925 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5926 (regex.o): Don't depend on charset.h.
5927 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5928 (search.o): Don't depend explicitly on composite.h.
5929 (sound.o): Depend on atimer.h and systime.h.
5930 (syntax.o): Don't depend explicitly on composite.h.
5931 (sysdep.o): Depend on coding.h and composite.h.
5932 (term.o): Depend on xterm.h and buffer.h.
5933 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5934 (textprop.o): Don't depend on dispextern.h explicitly.
5935 (undo.o): Depend on dispextern.h.
5936 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5937 dispextern.h and composite.h explicitly.
5938 (xdisp.o): Depend on ccl.h.
5939 (xfaces.o): Depend on coding.h and ccl.h.
5940 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5941 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5942 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5943 ftfont.h.
5944 (xgselect.o): New dependency.
5945 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5946 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5947 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5948 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5949 (xsmfns.o): Depend on frame.h and dispextern.h.
5950 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5951 sysselect.h.
5952
5953 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5954
5955 * font.c (Fclear_font_cache): Pass correct cache argument to
5956 font_clear_cache.
5957
5958 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5959
5960 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5961 twice.
5962
5963 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
5964
5965 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5966 calling file-remote-p. Reported by Jim Meyering.
5967
5968 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
5969
5970 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
5971 avoid compiler warnings. (Bug #5217)
5972
5973 2009-12-14 Kenichi Handa <handa@m17n.org>
5974
5975 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5976 in 8-bit encoding.
5977
5978 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
5979
5980 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5981 tooltip windows.
5982
5983 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5984
5985 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5986 Xatom_net_window_type.
5987
5988 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5989 Xatom_net_window_type.
5990
5991 * xterm.c (my_log_handler): New function.
5992 (x_term_init): Set my_log_handler as log handler during gtk_init
5993 so we can filter out buggy messages. (Bug #5120).
5994
5995 * xterm.c (xg_scroll_callback): Parameter list changed,
5996 use parameter GtkScrollType to determine scroll/line/page.
5997 Only allow dragging if a button < 4 is grabbed (bug #5177).
5998 (xg_end_scroll_callback): New function.
5999 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6000 xg_create_scroll_bar.
6001
6002 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6003 (scroll_end_callback): Remove.
6004 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6005 button-release-event. Replace value-changed event with change-value,
6006 bug #5177.
6007 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6008 bug #5177.
6009
6010 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6011 (xg_create_scroll_bar): Add GCallback end_callback.
6012
6013 * xftfont.c (QClcdfilter): New variable.
6014 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6015 (syms_of_xftfont): Initialize QClcdfilter.
6016
6017 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6018
6019 * xsettings.c (struct xsettings): Add member seen.
6020 (parse_xft_settings): Update member seen with what we have read.
6021 Return non-zero if Xft-settings have been parsed, 0 otherwise.
6022 (apply_xft_settings): Only update Xft settings with what member seen
6023 indicates as new.
6024
6025 2009-12-12 Eli Zaretskii <eliz@gnu.org>
6026
6027 * dispextern.h (struct text_pos): Use EMACS_INT.
6028 (struct glyph): Use EMACS_INT for charpos.
6029 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6030 region_beg_charpos, region_end_charpos,
6031 redisplay_end_trigger_charpos, and also for
6032 iterator_stack_entry.end_charpos and
6033 iterator_stack_entry.stop_charpos.
6034
6035 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6036
6037 * gtkutil.c (scroll_end_callback): New function (bug #5177).
6038 (xg_create_scroll_bar): Call scroll_end_callback on button release
6039 event (bug #5177).
6040 (xg_event_is_for_scrollbar): != replaced with ==.
6041
6042 2009-12-12 Kenichi Handa <handa@m17n.org>
6043
6044 * ftfont.c (struct ftfont_info): New member matrix.
6045 (ftfont_open): Setup xftfont_info->matrix.
6046 (MFLTFontFT): New member matrix.
6047 (FLOOR, CEIL, ROUND): New macros.
6048 (ftfont_get_metrics): Handle matrix transformation.
6049 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6050
6051 * xftfont.c (struct xftfont_info): New member matrix.
6052 (xftfont_open): Setup xftfont_info->matrix.
6053
6054 2009-12-10 Kenichi Handa <handa@m17n.org>
6055
6056 * xdisp.c (append_space_for_newline): Consider face-remapping.
6057
6058 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6059
6060 * xsettings.c: Include "keyboard.h".
6061
6062 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6063
6064 Fix implicit function declarations.
6065 * cmds.c: Include "frame.h".
6066 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6067 * frame.h: Move declaration of delete_frame outside of
6068 HAVE_WINDOW_SYSTEM.
6069
6070 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6071
6072 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6073
6074 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6075 GTK builds.
6076
6077 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6078
6079 * unexelf.c (unexec): Don't search for .data twice.
6080
6081 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
6082
6083 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6084 if push failed.
6085 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6086 of push_display_prop (Bug#5000).
6087
6088 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6089 value of font_list_entities (Bug#5085).
6090
6091 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
6092
6093 Fix `string-to-number' to deal consistently with integers and floats.
6094 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6095 trailing characters, not just whitespace.
6096 (read1): Pass new arg 0 to keep old behavior.
6097 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6098 trailing chars, as it is already done for integers. Doc fixes.
6099 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6100
6101 2009-12-04 Eli Zaretskii <eliz@gnu.org>
6102
6103 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6104 Delete unused enumeration value.
6105
6106 2009-12-03 Eli Zaretskii <eliz@gnu.org>
6107
6108 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6109
6110 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6111
6112 * process.c (Fmake_network_process): Fix up the tests for
6113 "connectionless socket", so they DTRT for seqpacket sockets as well.
6114
6115 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6116
6117 * process.c (Qseqpacket): New symbol.
6118 (HAVE_SEQPACKET): New macro.
6119 (Fmake_network_process): Accept new :type `seqpacket'.
6120 (init_process): Add `seqpacket' feature when applicable.
6121 (syms_of_process): Initialize Qseqpacket.
6122
6123 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6124
6125 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6126 if entity is Qnil.
6127
6128 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6129
6130 * print.c (print_preprocess): Preprocess the key_and_value table of
6131 hashtables, even tho they're "hidden" (bug#5082).
6132
6133 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6134
6135 * frame.c (frame_make_pointer_invisible)
6136 (frame_make_pointer_visible): Declare f before statements.
6137
6138 2009-11-28 Eli Zaretskii <eliz@gnu.org>
6139
6140 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6141 omitted dependencies on lisp.h.
6142
6143 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6144
6145 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6146 is NULL.
6147
6148 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6149
6150 * frame.c (frame_make_pointer_invisible)
6151 (frame_make_pointer_visible): Just return if there isn't any selected
6152 frame.
6153
6154 * search.c (simple_search): Remove warning by making *p const.
6155
6156 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6157
6158 * xdisp.c (power_letter): Remove duplicate const.
6159
6160 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6161
6162 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6163
6164 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
6165 defaults (bug #5025).
6166
6167 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6168
6169 * insdel.c (adjust_markers_for_delete): Move it in the
6170 right direction! (bug#4803)
6171
6172 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6173
6174 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6175
6176 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6177
6178 2009-11-24 Glenn Morris <rgm@gnu.org>
6179
6180 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6181
6182 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6183
6184 * Makefile.in: Must create deps for ecrt0.o in its rule.
6185
6186 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6187 because that is what Gtk+ font dialog understands.
6188
6189 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6190 of Fcopy_sequence.
6191 (font_open_by_name): Put name given into QCname for font-object returned.
6192
6193 * frame.c (x_set_font): Save original font name as frame parameter
6194 font-parameter.
6195
6196 * xsettings.c (set_default_xft_settings): New function.
6197 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6198 is found.
6199
6200 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6201
6202 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6203 searching backwards through multibyte buffer.
6204
6205 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6206
6207 * xterm.c: #include xgselect.h.
6208 (x_initialize): Call xgselect_initialize.
6209
6210 * xsettings.c (something_changedCB): C++ comments => C comments.
6211 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6212 does that now.
6213
6214 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6215 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6216 (scroll_bar_button_cb): Remove.
6217 (create_menus): C++ comments => C comments. Don't bind grab-notify
6218 event.
6219 (xg_create_scroll_bar): Don't bind button-press-event and
6220 button-release-event.
6221
6222 * process.c: Include xgselect.h if defined (USE_GTK) ||
6223 defined (HAVE_GCONF).
6224 (wait_reading_process_output): Call xg_select for the same condition.
6225
6226 * xgselect.c (xg_select): New function to better integrate with
6227 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6228
6229 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6230
6231 * Makefile.in (XOBJ): Add xgselect.o.
6232
6233 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6234
6235 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6236 Remove ignored second argument. All callers changed.
6237 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6238 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6239 * xdisp.c (string_char_and_length): Likewise.
6240
6241 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6242
6243 * xterm.c (x_new_font):
6244 * print.c (print_object):
6245 * cmds.c (Fself_insert_command): Move declarations before statements.
6246
6247 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6248
6249 * s/cygwin.h: Remove unneeded linker flags.
6250
6251 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6252
6253 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6254
6255 * xsettings.h: Declare xsettings_get_system_font.
6256
6257 * xsettings.c (xsettings_get_system_font): New function.
6258 (init_gconf): No use initiating gconf unless we have Xft also.
6259 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6260 HAVE_GCONF.
6261
6262 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6263 add a blank entry so it doesn't collapse into nothing.
6264
6265 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6266
6267 * lread.c (Funintern): Comment out last change.
6268
6269 2009-11-19 Richard Stallman <rms@gnu.org>
6270
6271 * lread.c (Funintern): Error if symbol is t or nil.
6272
6273 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6274
6275 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6276 representation of Lisp integers.
6277 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6278
6279 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6280
6281 * lisp.h: Remove declaration of Ffont_get_system_font.
6282 * xfns.c: Move include of "xsettings.h".
6283 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6284
6285 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6286
6287 * xsettings.c (something_changedCB, Ffont_get_system_font):
6288 Check use_system_font.
6289 (syms_of_xsettings): DEFVAR font-use-system-font.
6290
6291 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6292
6293 * xfns.c (x_default_font_parameter): Remove dead assignment.
6294
6295 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6296
6297 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6298
6299 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
6300 not have FC_LCD_*. #define them if not there.
6301
6302 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
6303
6304 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6305
6306 * xterm.c (handle_one_xevent): Call xft_settings_event for
6307 ClientMessage, PropertyNotify and DestroyNotify.
6308 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6309 Call xsettings_initialize.
6310
6311 * xftfont.c (xftfont_fix_match): New function.
6312 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6313 Call xftfont_fix_match after XftFontMatch.
6314
6315 * xfont.c (xfont_driver): Initialize all members.
6316
6317 * xfns.c (x_default_font_parameter):
6318 Try font from Ffont_get_system_font.
6319 Do not get font from x_default_parameter if we got one from
6320 Ffont_get_system_font.
6321 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
6322
6323 * w32font.c (w32font_driver): Initialize all members.
6324
6325 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6326
6327 * lisp.h: Declare syms_of_xsettings.
6328
6329 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6330 Handle CONFIG_CHANGED_EVENT.
6331
6332 * ftfont.c (ftfont_filter_properties): New function.
6333
6334 * frame.c (x_set_font): Remove unused variable lval.
6335
6336 * font.h (struct font_driver): Add filter_properties.
6337
6338 * font.c (font_put_extra): Don't return if val is nil, it means
6339 boolean option is off.
6340 (font_parse_fcname): Collect all extra properties in extra_props
6341 and call filter_properties for all drivers with extra_props and
6342 font as parameter.
6343 (font_open_entity): Do not use cache, it does not pick up new
6344 fontconfig settings like hinting.
6345 (font_load_for_lface): If spec had a name in it, store it in entity.
6346
6347 * emacs.c (main): Call syms_of_xsettings.
6348
6349 * config.in: HAVE_GCONF is new.
6350
6351 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6352 xsettings.o is new.
6353
6354 2009-11-17 Kenichi Handa <handa@m17n.org>
6355
6356 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6357 back to the default font in case that no suitable font is found.
6358
6359 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6360
6361 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6362 Suggested by Chad Brown <yandros@mit.edu>.
6363 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6364
6365 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6366
6367 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6368
6369 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6370
6371 * Makefile.in: Ignore errors from mkdir when creating deps directory.
6372
6373 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6374
6375 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6376 has a parent.
6377
6378 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
6379 dependency files in deps/. Include those files into Makefile.
6380
6381 * config.in: Generated (AUTO_DEPEND).
6382
6383 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
6384
6385 * dbusbind.c (Vdbus_registered_objects_table): Rename from
6386 Vdbus_registered_functions_table, because it contains also
6387 properties. Fix docstring.
6388 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
6389
6390 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6391
6392 * alloc.c (mark_object): Don't reprocess marked strings.
6393 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6394 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6395
6396 2009-11-13 Kenichi Handa <handa@m17n.org>
6397
6398 * category.c (word_boundary_p): Adjust for the change of the
6399 semantics of Vword_combining_categories.
6400 (Vword_combining_categories): Describe the slight change of the
6401 semantics.
6402
6403 2009-11-13 Eli Zaretskii <eliz@gnu.org>
6404
6405 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6406
6407 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6408
6409 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6410
6411 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6412
6413 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
6414
6415 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6416
6417 2009-11-11 David Reitter <david.reitter@gmail.com>
6418
6419 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6420 variables to fix 2009-11-09 change.
6421
6422 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6423
6424 * process.c (ifflag_def): Make flag_sym constant.
6425 (Fnetwork_interface_info): Use a constant pointer.
6426 (ifflag_table):
6427 * xfns.c (cursor_bits):
6428 * xdisp.c (power_letter):
6429 * termcap.c (speeds, esctab):
6430 * sysdep.c (baud_convert):
6431 * keyboard.c (lispy_accent_codes, modifier_names):
6432 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6433 (jpeg_format, tiff_format, gif_format, svg_format)
6434 (interlace_start, interlace_increment, gs_format):
6435 * gtkutil.c (separator_names):
6436 * fringe.c (swap_nibble):
6437 * fns.c (base64_value_to_char, base64_char_to_value):
6438 * fileio.c (make_temp_name_tbl):
6439 * coding.c (suffixes): Make constant.
6440
6441 * frame.c (make_initial_frame):
6442 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6443 build_string.
6444 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6445
6446 * s/freebsd.h:
6447 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6448
6449 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6450 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6451
6452 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6453 * xterm.c (syms_of_xterm):
6454 * xfaces.c (syms_of_xfaces):
6455 * xdisp.c (syms_of_xdisp):
6456 * lread.c (syms_of_lread):
6457 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6458 build_string.
6459
6460 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6461
6462 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6463
6464 * fns.c (Fplist_get): Merge the active and the commented out code.
6465
6466 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6467
6468 * keyboard.h: Declare timer_check.
6469
6470 * keyboard.c (timer_check_2): New function that does what the old
6471 timer_check did.
6472 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6473 returned, i.e. don't return -1 with timers pending.
6474
6475 * process.c: Remove extern declaration of timer_check.
6476
6477 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6478 even if timer_check returned -1.
6479
6480 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6481 xg_dialog_data.
6482 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6483 the event loop.
6484 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6485 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6486 Destroy the dialog after xg_dialog_run.
6487
6488 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6489
6490 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6491
6492 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6493
6494 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6495
6496 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
6497
6498 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6499
6500 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6501
6502 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6503 w32menu.c, and nsmenu.m.
6504 Simplify the obsolete case where position is nil.
6505 (cleanup_popup_menu): New function, moved from nsmenu.m.
6506 (struct skp): Remove slot `notreal'.
6507 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6508 adjust callers.
6509 (single_menu_item): Adjust call to parse_menu_item.
6510 (syms_of_menu): Defsubr x-popup-menu.
6511 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6512 (keymap_panes): Don't export any more.
6513 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6514 (xmenu_show): Declare.
6515 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6516 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6517 * keyboard.h (parse_menu_item): Update declaration.
6518 * xmenu.c (Fx_popup_menu): Remove.
6519 (syms_of_xmenu): Don't defsubr x-popup-menu.
6520 * w32menu.c (Fx_popup_menu): Remove.
6521 (syms_of_w32menu): Don't defsubr x-popup-menu.
6522 * nsmenu.m (cleanup_popup_menu): Remove.
6523 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6524 moved to menu.c's Fx_popup_menu.
6525 (Fx_popup_menu): Remove.
6526 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6527 menu_items (it's done in menu.c already).
6528
6529 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6530
6531 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6532 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6533
6534 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
6535
6536 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
6537 xmenu_show. Hide any tooltip before opening a menu.
6538 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6539 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6540
6541 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6542
6543 Let integers use up 2 tags to give them one extra bit and thus double
6544 their range.
6545 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6546 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6547 New macros.
6548 (enum Lisp_Type): Use them. Give explicit values.
6549 (Lisp_Type_Limit): Remove.
6550 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6551 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6552 Pay attention to USE_2_TAGS_FOR_INTS.
6553 (INTEGERP): Use LISP_INT_TAG_P.
6554 * fns.c (internal_equal): Simplify the default case.
6555 (sxhash): Use case_Lisp_Int.
6556 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6557 any more.
6558 (Ftype_of): Use case_Lisp_Int.
6559 (store_symval_forwarding): Take into account the fact that Ints can
6560 now have more than one tag.
6561 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
6562 (buffer_slot_type_mismatch):
6563 * xfaces.c (face_attr_equal_p):
6564 * print.c (print_object):
6565 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6566 Use case_Lisp_Int.
6567
6568 2009-11-06 Eli Zaretskii <eliz@gnu.org>
6569
6570 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6571
6572 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6573 warning.
6574
6575 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6576
6577 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6578
6579 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6580
6581 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6582 ButtonPressRelease and MotionNotify (bug#4870).
6583
6584 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6585
6586 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6587
6588 * xterm.c (syms_of_xterm):
6589 * xselect.c (syms_of_xselect):
6590 * xmenu.c (syms_of_xmenu):
6591 * xfns.c (syms_of_xfns):
6592 * xfaces.c (syms_of_xfaces):
6593 * xdisp.c (syms_of_xdisp):
6594 * window.c (syms_of_window):
6595 * w32fns.c (syms_of_w32fns):
6596 * undo.c (syms_of_undo):
6597 * textprop.c (syms_of_textprop):
6598 * terminal.c (syms_of_terminal):
6599 * syntax.c (syms_of_syntax):
6600 * sound.c (syms_of_sound):
6601 * search.c (syms_of_search):
6602 * print.c (syms_of_print):
6603 * minibuf.c (syms_of_minibuf):
6604 * macros.c (syms_of_macros):
6605 * keymap.c (syms_of_keymap, initial_define_key)
6606 (initial_define_lispy_key):
6607 * keyboard.c (syms_of_keyboard):
6608 * insdel.c (syms_of_insdel):
6609 * image.c (syms_of_image):
6610 * fringe.c (syms_of_fringe):
6611 * frame.c (syms_of_frame):
6612 * fontset.c (syms_of_fontset):
6613 * fns.c (syms_of_fns):
6614 * fns.c (syms_of_fns):
6615 * fileio.c (syms_of_fileio):
6616 * fileio.c (syms_of_fileio):
6617 * eval.c (syms_of_eval):
6618 * doc.c (syms_of_doc):
6619 * dispnew.c (syms_of_display):
6620 * dired.c (syms_of_dired):
6621 * dbusbind.c (syms_of_dbusbind):
6622 * data.c (syms_of_data):
6623 * composite.c (syms_of_composite):
6624 * coding.c (syms_of_coding):
6625 * cmds.c (syms_of_cmds):
6626 * charset.c (define_charset_internal, syms_of_character):
6627 * ccl.c (syms_of_ccl):
6628 * category.c (syms_of_category, init_category_once):
6629 * casetab.c (syms_of_casetab):
6630 * casefiddle.c (syms_of_casefiddle):
6631 * callint.c (syms_of_callint):
6632 * bytecode.c (syms_of_bytecode):
6633 * buffer.c (keys_of_buffer, syms_of_buffer):
6634 * alloc.c (syms_of_alloc):
6635 * process.c (syms_of_process, init_process):
6636 * lread.c (syms_of_lread, init_obarray):
6637 * font.c (build_style_table):
6638 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6639 intern_c_string, calls to make_pure_string with
6640 make_pure_c_string. Use pure_cons instead of Fcons.
6641
6642 * process.c (socket_options): Make it const.
6643 (set_socket_option, init_process): Use a const pointer.
6644
6645 * lread.c (intern_c_string): New function.
6646 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6647 (defvar_int): Uset it. Make the name const char*.
6648
6649 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6650 (defvar_int): Update prototypes.
6651 (DEFUN, EXFUN): Support for prototypes is now required.
6652 (intern_c_string): New prototype.
6653 (struct Lisp_Subr): Make symbol_name constant.
6654
6655 * font.c (struct table_entry): Remove unused member. Make NAMES
6656 constant.
6657 (weight_table, slant_table, width_table): Make constant.
6658
6659 * emacs.c (struct standard_args): Make name and longname constant.
6660
6661 * character.h (DEFSYM): Use intern_c_string.
6662
6663 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6664
6665 * alloc.c (make_pure_c_string): New function.
6666
6667 * eval.c (Fautoload): Purecopy all arguments.
6668
6669 2009-11-05 Kenichi Handa <handa@m17n.org>
6670
6671 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6672 the buffer in case of replace.
6673
6674 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6675
6676 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6677
6678 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6679
6680 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6681 when applicable (bug#4851).
6682
6683 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6684 (P_): Support for prototypes is now required.
6685
6686 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
6687
6688 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6689 (Bug#4827).
6690
6691 2009-10-30 Eli Zaretskii <eliz@gnu.org>
6692
6693 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
6694
6695 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6696
6697 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6698
6699 * lread.c (Fload): Purecopy the file name when building
6700 Vpreloaded_file_list.
6701
6702 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6703
6704 * w32fns.c (syms_of_w32fns): Change default value of
6705 w32-scroll-lock-modifier to nil. (Bug#2827)
6706
6707 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
6708
6709 * minibuf.c (Fall_completions): Fix typos in docstring.
6710
6711 2009-10-26 Andreas Schwab <schwab@redhat.com>
6712
6713 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6714
6715 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
6716
6717 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6718 For delta < 0, skip check that only makes sense when the mini-window
6719 is going to be enlarged. (Bug#4534)
6720
6721 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
6722
6723 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6724 string in menu maps (Bug#4471).
6725
6726 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
6727
6728 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6729 FRAME_NS_VIEW on terminal frames (Bug#4765).
6730
6731 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6732
6733 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6734 DBUS_TYPE_UINTnn separately to get proper sign extension.
6735
6736 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6737 can properly handle unsigned types.
6738 (make_uid, make_gid): Remove.
6739
6740 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6741 types again.
6742
6743 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
6744 (system_process_attributes): Likewise.
6745
6746 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6747
6748 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6749
6750 * eval.c (Fautoload): Purecopy the filename. Simplify.
6751
6752 * category.c (Fdefine_category): Purecopy docstring.
6753
6754 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6755
6756 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6757
6758 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6759
6760 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
6761
6762 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6763 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6764 (Bug#4775).
6765
6766 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6767
6768 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6769 (init_fileio_once):
6770 * lisp.h (init_fileio_once): Remove.
6771 * emacs.c (main): Don't call init_fileio_once.
6772
6773 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6774
6775 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6776
6777 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6778
6779 * doprnt.c (doprnt): Fix overflow check.
6780
6781 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6782
6783 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6784
6785 * xterm.h (x_wait_for_event): Declare it.
6786
6787 * xterm.c (pending_event_wait): New variable.
6788 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6789 see pending_event_wait.eventtype.
6790 (handle_one_xevent): Don't change gravity when parent changes.
6791 (x_new_font): Call change_frame_size with new rows/columns before we
6792 try to resize the frame.
6793 (x_wait_for_event): New function.
6794 (x_set_window_size_1): Don't change gravity unless change_gravity
6795 is set.
6796 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6797 don't change frame size, instead wait for the ConfigureNotify.
6798 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6799 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6800 (x_initialize): Initialize pending_event_wait.
6801
6802 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6803 size.
6804
6805 * widget.c (EmacsFrameSetValues): Add comment.
6806 (EmacsFrameSetCharSize): Just call x_set_window_size.
6807
6808 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6809 x_wait_for_event.
6810 (flush_and_sync): Remove again.
6811 (xg_get_font_name): Suggest monospace if no previous font is known.
6812
6813 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6814
6815 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
6816 8th bit, since that only made sense in the ASCII world (bug#4751).
6817
6818 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6819
6820 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6821 processing pending events when event is filtered for input method.
6822 (Bug#3681)
6823
6824 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
6825
6826 * fns.c: Add #endif accidentally removed in previous change.
6827
6828 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6829
6830 * fns.c: Remove code for unsupported system: MAC_OS.
6831 * image.c: Likewise. Include setjmp.h.
6832
6833 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6834
6835 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6836 pixel -1 (bug #4742).
6837
6838 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6839
6840 * process.c (create_pty): Remove conditionals for no longer
6841 supported systems: UNIPLUS and RTU.
6842
6843 * xterm.c:
6844 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6845
6846 * alloc.c: Do not define struct catchtag.
6847 * eval.c: Move struct catchtag definition ...
6848 * lisp.h: ... here.
6849
6850 * image.c: Move png.h #include earlier to avoid warnings.
6851
6852 * xterm.c:
6853 * xsmfns.c:
6854 * xselect.c:
6855 * xrdb.c:
6856 * xmenu.c:
6857 * xftfont.c:
6858 * xfont.c:
6859 * xfns.c:
6860 * xfaces.c:
6861 * xdisp.c:
6862 * window.c:
6863 * widget.c:
6864 * w32xfns.c:
6865 * w32uniscribe.c:
6866 * w32term.c:
6867 * w32select.c:
6868 * w32reg.c:
6869 * w32proc.c:
6870 * w32menu.c:
6871 * w32inevt.c:
6872 * w32heap.c:
6873 * w32font.c:
6874 * w32fns.c:
6875 * w32console.c:
6876 * w32.c:
6877 * w16select.c:
6878 * vm-limit.c:
6879 * unexsol.c:
6880 * unexec.c:
6881 * unexcw.c:
6882 * unexaix.c:
6883 * undo.c:
6884 * tparam.c:
6885 * textprop.c:
6886 * terminfo.c:
6887 * terminal.c:
6888 * termcap.c:
6889 * term.c:
6890 * syntax.c:
6891 * sound.c:
6892 * sheap.c:
6893 * search.c:
6894 * scroll.c:
6895 * region-cache.c:
6896 * regex.c:
6897 * ralloc.c:
6898 * process.c:
6899 * print.c:
6900 * nsterm.m:
6901 * nsselect.m:
6902 * nsmenu.m:
6903 * nsimage.m:
6904 * nsfont.m:
6905 * nsfns.m:
6906 * msdos.c:
6907 * minibuf.c:
6908 * menu.c:
6909 * marker.c:
6910 * macros.c:
6911 * keymap.c:
6912 * keyboard.c:
6913 * intervals.c:
6914 * insdel.c:
6915 * indent.c:
6916 * gtkutil.c:
6917 * ftxfont.c:
6918 * ftfont.c:
6919 * fringe.c:
6920 * frame.c:
6921 * fontset.c:
6922 * font.c:
6923 * fns.c:
6924 * floatfns.c:
6925 * filelock.c:
6926 * fileio.c:
6927 * emacs.c:
6928 * editfns.c:
6929 * dosfns.c:
6930 * doprnt.c:
6931 * doc.c:
6932 * dispnew.c:
6933 * dired.c:
6934 * dbusbind.c:
6935 * data.c:
6936 * composite.c:
6937 * coding.c:
6938 * cmds.c:
6939 * cm.c:
6940 * chartab.c:
6941 * charset.c:
6942 * character.c:
6943 * ccl.c:
6944 * category.c:
6945 * casetab.c:
6946 * casefiddle.c:
6947 * callproc.c:
6948 * callint.c:
6949 * bytecode.c:
6950 * buffer.c:
6951 * atimer.c: Include setjmp.h. (Bug#4643)
6952
6953 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6954
6955 Remove leftover table unibyte_to_multibyte_table.
6956 * character.c (unibyte_to_multibyte_table): Remove.
6957 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6958 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6959 * character.h (UNIBYTE_TO_CHAR): New macro.
6960 (MAKE_CHAR_MULTIBYTE): Use it.
6961 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6962 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6963 (message_dolog, set_message_1):
6964 * search.c (Freplace_match):
6965 * editfns.c (Fcompare_buffer_substrings):
6966 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6967 (concat):
6968 * insdel.c (copy_text, count_size_as_multibyte):
6969 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6970 * term.c (produce_glyphs):
6971 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6972 * regex.c (RE_CHAR_TO_MULTIBYTE):
6973 * cmds.c (internal_self_insert):
6974 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6975
6976 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6977
6978 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6979
6980 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6981
6982 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
6983
6984 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6985
6986 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6987
6988 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6989 still needed under Tiger.
6990
6991 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6992
6993 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6994 __Apple__.
6995
6996 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6997
6998 2009-10-15 Kenichi Handa <handa@m17n.org>
6999
7000 * print.c (print_object): Escape a symbol like "2E10" too.
7001
7002 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
7003
7004 Cleanups and changes for 64-bit compile under Snow Leopard.
7005 Based on suggestions by Erik Charlebois.
7006
7007 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7008
7009 * nsfont.m (ns_char_width): Replace deprecated call.
7010 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7011 cast argument.
7012 (nsfont_open): Use ns_char_width() everywhere.
7013 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
7014
7015 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7016
7017 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7018 where appropriate.
7019
7020 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7021 where appropriate.
7022 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7023 Use stringWithUTF8String.
7024 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7025
7026 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7027 Add formal protocol mention to inheritance.
7028 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7029
7030 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7031 Fix printf format.
7032 (ns_query_color): Use CGFloat where appropriate.
7033 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
7034 (EmacsScroller-mouseDown:): Use long format in printf, and cast
7035 argument.
7036
7037 * config.in (NS_HAVE_NSINTEGER): Drop.
7038
7039 * dbusbind.c (dbus-method-return-internal)
7040 (dbus-method-error-internal): Use long format in printf, and cast
7041 argument.
7042
7043 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7044 in printf, and cast argument.
7045
7046 * process.c (list_processes_1): Use long format in printf, and
7047 cast argument.
7048
7049 2009-10-11 Glenn Morris <rgm@gnu.org>
7050
7051 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7052
7053 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7054
7055 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7056 menu bar with a small width so it doesn't enlarge the frame.
7057
7058 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
7059
7060 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7061
7062 2009-10-06 Glenn Morris <rgm@gnu.org>
7063
7064 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7065 SOME_MACHINE_LISP (this enters indirectly via DOC).
7066
7067 2009-10-05 Eli Zaretskii <eliz@gnu.org>
7068
7069 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7070
7071 2009-10-04 Eli Zaretskii <eliz@gnu.org>
7072
7073 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7074 Doc fix.
7075
7076 2009-10-03 Martin Rudalics <rudalics@gmx.at>
7077
7078 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7079
7080 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
7081
7082 * lisp.h (Qdelete_directory_internal): Remove, because it is not
7083 used anymore outside fileio.c.
7084
7085 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7086
7087 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
7088
7089 * lisp.h (Qdelete_directory_internal):
7090 Declare, instead of Qdelete_directory.
7091
7092 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7093
7094 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7095
7096 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7097
7098 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
7099
7100 * fileio.c (Fdelete_directory_internal): Rename from
7101 Fdelete_directory. It is not a command anymore. It has no file
7102 name handler.
7103
7104 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7105
7106 * xdisp.c (get_next_display_element): Use an enum in last change.
7107
7108 2009-09-28 Kenichi Handa <handa@m17n.org>
7109
7110 * xdisp.c (get_next_display_element): Pay attention to
7111 unibyte_display_via_language_environment in handling
7112 Vnobreak_char_display.
7113
7114 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7115
7116 * nsterm.h (ns_app_name): New extern variable.
7117
7118 * nsterm.m (ns_app_name): New variable.
7119 (ns_term_init): Set and use it.
7120 (ns_term_shutdown): Use it.
7121
7122 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7123 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7124
7125 * nsfns.m (ns_set_name_iconic, ns_set_name)
7126 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7127 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7128
7129 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7130 Remove double-casting in client_data comparison.
7131
7132 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7133
7134 * keyboard.c (make_lispy_event): Remember last wheel direction.
7135 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7136
7137 2009-09-26 Glenn Morris <rgm@gnu.org>
7138
7139 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7140 internal.elc. Add term/pc-win.elc.
7141 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7142 term/x-win.elc.
7143 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7144 term/w32-win.elc.
7145 (NS_SUPPORT): New.
7146 (lisp): Add NS_SUPPORT.
7147 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7148
7149 2009-09-25 David Reitter <david.reitter@gmail.com>
7150
7151 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7152 on Mac OS X 10.6+ (bug#4513).
7153
7154 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
7155
7156 * frame.c (xrdb_get_resource): Return nil for empty string resources;
7157 some parts of Emacs code (like font selection) don't grok them.
7158 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
7159
7160 2009-09-24 Andreas Schwab <schwab@redhat.com>
7161
7162 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7163
7164 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
7165
7166 * dired.c (Fdirectory_files): Fix typo in docstring.
7167
7168 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7169
7170 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7171 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7172 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7173 under GNUstep.
7174 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7175
7176 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7177 glyph advancement.
7178
7179 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7180
7181 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
7182 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
7183
7184 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7185 deleted (bug #4492).
7186
7187 * nsfont.m (Vns_reg_to_script): New lisp variable.
7188 (syms_of_nsfont): Declare it.
7189 (ns_registry_to_script): New function.
7190 (ns_get_req_script): Call it.
7191 (ns_findfonts): Don't give up on non-unicode registry.
7192
7193 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7194
7195 2009-09-20 Tom Tromey <tromey@redhat.com>
7196
7197 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7198 batch mode (bug#4228).
7199
7200 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
7201
7202 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
7203 carefully. (Bug #4339)
7204
7205 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
7206
7207 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
7208
7209 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7210
7211 * emacs.c (inhibit_x_resources): Update doc string for NS.
7212 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
7213 legacy code for -NXHost. Fix error printf in daemon case.
7214
7215 * nsterm.h (ns_no_defaults): Remove.
7216
7217 * nsterm.m (ns_no_defaults): Remove.
7218 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7219 (ns_use_qd_smoothing): Remove legacy variable.
7220 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7221 don't update the NSWindow itself.
7222 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
7223 state detection and store user rect ourselves. (Bug #3581)
7224
7225 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7226 ns_use_qd_smoothing.
7227
7228 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7229 platform versions. Drop support for emacs-20-style face specs.
7230 (x-close-connection): Drop PSFlush() under OS X.
7231 (x-focus-frame): Activate the app first. (Bug #4180)
7232
7233 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
7234
7235 * emacs.c (inhibit_x_resources): New variable.
7236 (main) [HAVE_NS]: Don't process --quick command line option.
7237 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7238
7239 * lisp.h (inhibit_x_resources): Declare it extern.
7240
7241 * w32reg.c (x_get_string_resource):
7242 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7243
7244 2009-09-17 Eli Zaretskii <eliz@gnu.org>
7245
7246 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7247 Add lisp/term/internal.elc.
7248
7249 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7250
7251 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7252 (bug#4461).
7253
7254 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7255
7256 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7257
7258 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7259 (OBJECTS_MACHINE): Remove, unused.
7260
7261 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7262
7263 * frame.c (x_get_resource_string): Remove unused.
7264
7265 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7266
7267 * xterm.c (x_new_font): Call change_frame_size before calling
7268 x_set_window_size, in case frame size won't change.
7269
7270 * frame.c (x_set_font): Remove dead code.
7271
7272 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7273
7274 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7275
7276 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7277
7278 * lread.c (Fload): Don't output a message after loading an obsolete
7279 package any more (done in Lisp now).
7280
7281 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
7282
7283 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7284
7285 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7286
7287 * keymap.c (Fwhere_is_internal): Use nconc2.
7288
7289 2009-09-11 Alan Mackenzie <acm@muc.de>
7290
7291 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7292 batch mode.
7293
7294 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7295
7296 * xdisp.c (display_mode_element): Detect cycles.
7297
7298 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7299
7300 * keymap.c (where_is_internal): Don't erroneously return nil right after
7301 filling the cache.
7302 (where_is_internal_1): Fix up typo.
7303
7304 2009-09-11 Glenn Morris <rgm@gnu.org>
7305
7306 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7307 share a common doc-string.
7308
7309 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7310
7311 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7312 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7313
7314 * keymap.c (QCadvertised_binding): New constant.
7315 (syms_of_keymap): Initialize it.
7316 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7317 if applicable.
7318
7319 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7320
7321 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7322 (parse_menu_item): Streamline since bindings are recomputed all the
7323 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7324 more and don't support lmenu's menu-alias any more either.
7325
7326 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7327 (where_is_internal): Strip it down to only traverse the keymaps.
7328 Move the cache handling from Fwhere_is_internal to here.
7329 (Fwhere_is_internal): Move the handling of remapping and the choice of
7330 the best binding from where_is_internal to here.
7331 Unify the cached/noncached paths, so remapping is also handled
7332 correctly when the cache is used, and so the cache can be used to
7333 speed up remap-handling when applicable.
7334 Give preference to non-remapped bindings.
7335 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7336 non-remapped bindings.
7337 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7338 command remapping.
7339
7340 * xdisp.c (display_mode_element): Move list length limit from 50 to
7341 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7342
7343 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
7344
7345 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7346
7347 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7348
7349 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7350 (Bug#4334)
7351
7352 * keymap.c (where_is_internal): Filter out shadowed remappings.
7353 Assume that where_is_internal returns unshadowed bindings to simplify
7354 the code and get rid of the gotos. Use ASIZE.
7355
7356 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7357
7358 * xterm.c (x_focus_changed): If we get a focusout and pointer
7359 is invisible, make it visible.
7360
7361 * xterm.h: Remove condition for declaration of
7362 x_*_window_to_frame.
7363
7364 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7365
7366 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7367 initial terminal as well.
7368
7369 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7370
7371 * xterm.h: Rename x_non_menubar_window_to_frame to
7372 x_menubar_window_to_frame.
7373
7374 * xterm.c: Remove declarations also in xterm.h.
7375 (XTmouse_position): Do not return valid positions
7376 for clicks in the menubar and the toolbar for Gtk+.
7377
7378 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7379 if the widget for the event has the same top level as a frame,
7380 return the frame.
7381 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7382 internal windows, bug #4122.
7383 (x_non_menubar_window_to_frame): Remove.
7384
7385 2009-09-02 Glenn Morris <rgm@gnu.org>
7386
7387 * buffer.c (default-major-mode): Move most of the doc from here...
7388 (major-mode): ... to here.
7389
7390 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
7391
7392 * process.c (wait_reading_process_output): Keep the descriptor
7393 when pty is used by a non-child process, e.g., in I/O buffer of
7394 GDB this allows inferior to be restarted.
7395
7396 2009-08-29 Eli Zaretskii <eliz@gnu.org>
7397
7398 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7399 both branches into one.
7400
7401 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7402
7403 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7404 (main): Use enable-multibyte-characters rather than
7405 default-enable-multibyte-characters. Output a warning message when
7406 running a unibyte session.
7407
7408 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7409
7410 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7411 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7412 (copy_data_segment): Also copy __program_vars section.
7413 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7414 (dump_it) [LC_DYLD_INFO]: Use it.
7415
7416 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7417
7418 2009-08-28 Eli Zaretskii <eliz@gnu.org>
7419
7420 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7421 $(SRC)/buildobj.h.
7422 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7423 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7424 $(SRC)/buildobj.h.
7425 (clean): Add buildobj.h.
7426
7427 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7428
7429 * print.c (print_object): Set escapeflag to 1 when printing
7430 hashtable keys and values.
7431
7432 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7433
7434 * lread.c (read_integer): Use doubles (and potentially return a float
7435 number) as we do in string-to-number.
7436 (read1): Use strtol to read integers, signal errors on strtol's
7437 overflow and use floats if strtol's output is too large for
7438 Elisp integers.
7439
7440 2009-08-27 Eli Zaretskii <eliz@gnu.org>
7441
7442 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7443 (make-buildobj-SH): Fix last change.
7444 (SRC): Move to before where it's first used.
7445
7446 2009-08-27 Kenichi Handa <handa@m17n.org>
7447
7448 * process.c (send_process): Use encode_coding_object instead of
7449 encode_coding_string to perform eol-conversion even if the string
7450 is unibyte.
7451
7452 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7453 character.
7454
7455 * cmds.c (Fself_insert_command): Avoid unnecessay
7456 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
7457
7458 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7459
7460 * callproc.c (Fcall_process): Remove always true #if.
7461
7462 * lisp.h: Replace #if 0 code for checking with text pointing to
7463 the --enable-checking configure flag.
7464
7465 * emacs.c (main): Mention the --enable-profiling configure flag
7466 instead of using CFLAGS.
7467
7468 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
7469
7470 * Makefile.in (buildobj.h): New target.
7471 (doc.o): Depend on it.
7472 (temacs${EXEEXT}): Don't generate buildobj.lst.
7473 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7474 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7475 ($(BLD)/doc.$(O)): Depend on it.
7476 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7477 provided by Eli Zaretskii.)
7478 ($(TEMACS)): Don't generate buildobj.lst.
7479 * doc.c: Include buildobj.h.
7480 (buildobj): New static variable.
7481 (Fsnarf_documentation): Use it, instead of opening and reading
7482 buildobj.lst.
7483
7484 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
7485
7486 * dbusbind.c (Fdbus_call_method)
7487 (Fdbus_call_method_asynchronously): Use English numeric format for
7488 timeout values in doc string.
7489
7490 2009-08-25 Kenichi Handa <handa@m17n.org>
7491
7492 * alloc.c (mark_char_table): New function.
7493 (mark_object): Use mark_char_table for a char-table.
7494
7495 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7496 (CHAR_TABLE_REF): Use it.
7497
7498 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
7499
7500 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7501 before invoking the newly build emacs to check for load-path
7502 shadowing.
7503
7504 2009-08-22 Glenn Morris <rgm@gnu.org>
7505
7506 * Makefile.in (bootstrap_exe): New variable.
7507 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7508 Use ${bootstrap_exe}.
7509
7510 2009-08-22 Eli Zaretskii <eliz@gnu.org>
7511
7512 * coding.h (encode_coding_string): Don't encode unibyte strings.
7513 (Bug#4047)
7514
7515 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
7516
7517 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7518
7519 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7520 intended as hotfix only.
7521 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7522
7523 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7524
7525 * nsterm.m (ns_get_color): Update documentation properly for last
7526 change, and clean up loose ends in the code left by it. Fix
7527 longstanding bug with 16-bit hex parsing, and add support for
7528 yet another X11 format (rgb:r/g/b) for compatibility.
7529 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7530 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7531
7532 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7533
7534 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7535
7536 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
7537
7538 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7539 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7540 (xd_initialize, xd_pending_messages): Check, whether
7541 $DBUS_SESSION_BUS_ADDRESS is set.
7542
7543 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7544
7545 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7546
7547 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7548
7549 2009-08-20 Glenn Morris <rgm@gnu.org>
7550
7551 * emacs.c (system-type): Doc fix.
7552
7553 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7554
7555 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7556 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7557
7558 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
7559
7560 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7561 New functions.
7562 (xd_initialize): Revert change from 2009-08-16.
7563
7564 2009-08-18 Kenichi Handa <handa@m17n.org>
7565
7566 * fontset.c (Ffontset_font): If a nil element is found in a
7567 font-group vector, return nil.
7568
7569 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
7570
7571 * process.c (status_notify): Don't perform redisplay.
7572 (Fdelete_process, list_processes_1, process_send_signal):
7573 Expliticly perform redisplay.
7574 (wait_reading_process_output): Always check process status, but
7575 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7576
7577 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
7578
7579 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
7580 (XFLOAT_INIT): New macro for storing a float value.
7581 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7582 * fns.c (sxhash): Copy out the value of a float in order to
7583 examine its bytes.
7584 * dbusbind.c (xd_append_arg): Likewise.
7585
7586 * emacs.c (main): Don't call syms_of_data twice.
7587
7588 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
7589
7590 * dbusbind.c (xd_initialize): Add connection file descriptor to
7591 input_wait_mask, in order to let select() detect, whether a new
7592 message has been arrived.
7593 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
7594
7595 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
7596
7597 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7598 New functions.
7599
7600 * lisp.h (xd_pending_messages): Declare.
7601
7602 * keyboard.c (readable_events): Call xd_pending_messages.
7603
7604 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
7605
7606 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
7607
7608 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7609
7610 * buffer.c (set_buffer_internal_1)
7611 (swap_out_buffer_local_variables): Check for unbound local
7612 variables (Bug#4138).
7613
7614 2009-08-14 Eli Zaretskii <eliz@gnu.org>
7615
7616 * process.c (create_pty): Fix last change.
7617
7618 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
7619
7620 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7621 (xbm_load_image): Caller changed.
7622 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
7623
7624 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
7625
7626 * process.c (create_pty): New function.
7627 (Fstart_process): Use it to allow Emacs to just associate a pty
7628 with the buffer. See associated change in gdb-mi.el.
7629 (list_processes_1): Deal with no program name.
7630 (start_process_unwind): Use pid == -2 to mean no process.
7631
7632 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7633
7634 * cmds.c (nonundocount): New global variable.
7635 (keys_of_cmds): Initialize it.
7636 (Fself_insert_command): Use it to combine upto 20 sequential chars
7637 into a single undo entry, just like the Qself_insert_command code in
7638 keyboard.c does.
7639 Call frame_make_pointer_invisible, also like the Qself_insert_command
7640 code in keyboard.c does.
7641 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7642 than its own local replacement for it.
7643
7644 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
7645
7646 * fns.c (concat): Don't re-set string length to its current value.
7647
7648 * coding.h (decode_coding_string, encode_coding_string):
7649 Use SBYTES macro.
7650
7651 * doprnt.c (doprnt_lisp): Delete unused function.
7652 (doprnt): Merge with doprnt1, discarding lispstrings code.
7653 * lisp.h (doprnt_lisp): Don't declare.
7654
7655 2009-08-07 Juri Linkov <juri@jurta.org>
7656
7657 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7658
7659 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7660
7661 * print.c (syms_of_print): Undo previous change.
7662
7663 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7664
7665 * lread.c (read1, syms_of_lread): Read hashtables back from the
7666 readable format.
7667
7668 * print.c (print_preprocess, print_object): Print hashtables fully
7669 and readably.
7670 (syms_of_print): Provide 'hashtable-print-readable.
7671
7672 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7673
7674 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7675 no family set.
7676 (nsfont_open): Handle case when entity has no family.
7677
7678 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7679
7680 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7681 element, not a list, for match case.
7682
7683 2009-07-28 Kenichi Handa <handa@m17n.org>
7684
7685 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7686 rigidly.
7687
7688 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7689 font_parse_xlfd. Check font properties more rigidly.
7690
7691 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7692
7693 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7694 bsd-common.h.
7695
7696 2009-07-27 Kenichi Handa <handa@m17n.org>
7697
7698 * xfaces.c (face_with_height): Call font_clear_prop.
7699
7700 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
7701
7702 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7703
7704 * xterm.c (x_term_init): Use Qx.
7705
7706 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7707
7708 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
7709 (ns_get_color): Revert 2009-07-16 change.
7710
7711 2009-07-25 Eli Zaretskii <eliz@gnu.org>
7712
7713 * lread.c (syms_of_lread) <force_load_messages>: New variable.
7714 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
7715
7716 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
7717
7718 * coding.h (decode_coding_string, encode_coding_string):
7719 Use SCHARS macro.
7720
7721 * lread.c: Rewrite 2009-07-21 changes.
7722 (load_depth): Delete.
7723 (Qload_in_progress): New variable.
7724 (load_unwind): Don't reference load_depth or load_in_progress.
7725 (Fload): Likewise; specbind Qload_in_progress instead.
7726 (init_lread): Don't initialize load_depth.
7727 (syms_of_lread): Initialize and protect Qload_in_progress.
7728
7729 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7730
7731 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7732
7733 2009-07-23 Yavor Doganov <yavor@gnu.org>
7734
7735 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7736
7737 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7738
7739 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7740 Bugs 3792, 3720, 2402.
7741 (ns_lookup_indexed_color): Check for bad index.
7742 (ns_index_color): Init unused slot to 0.
7743 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7744 Bug 3714, possibly 3082.
7745
7746 2009-07-22 Jason Rumney <jasonr@gnu.org>
7747
7748 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7749 Position IME window at cursor (Bug#2570).
7750 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7751 (globals_of_w32fns): Dynamically load functions required above.
7752
7753 * w32term.c (w32_draw_window_cursor): Send message to reposition
7754 any IME window.
7755
7756 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
7757
7758 * fileio.c: Revert 2009-07-16 changes.
7759 (Vauto_save_include_big_deletions): New variable.
7760 (Fdo_auto_save): Disable auto-save only if
7761 auto-save-include-big-deletions is nil.
7762
7763 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
7764
7765 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7766 the overflowed pixels into account (Bug#3879).
7767
7768 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
7769
7770 * lread.c (load_depth): New variable.
7771 (Fload, load_unwind, init_lread): Set it to the load recursion
7772 depth; set load_in_progress as a simple boolean based on the
7773 current load_depth. (Bug#3892)
7774
7775 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7776
7777 * nsfont.m (ns_has_attribute): Remove.
7778 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7779
7780 2009-07-18 Juri Linkov <juri@jurta.org>
7781
7782 * process.c (Fset_process_query_on_exit_flag): Mention killing
7783 a buffer in docstring.
7784
7785 2009-07-17 Kenichi Handa <handa@m17n.org>
7786
7787 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7788
7789 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7790
7791 * nsfns.m (Fns_set_alpha): Remove function.
7792 (syms_of_nsfns): Don't defsubr it.
7793
7794 * nsterm.m (ns_get_color): Remove incompatible color formats.
7795 (ns_color_to_lisp): Generate #rrggbb color format string.
7796
7797 2009-07-16 Richard Stallman <rms@gnu.org>
7798
7799 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7800 (Fset_buffer_auto_saved): Handle save_length = -2.
7801
7802 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
7803
7804 * xterm.c (Qx_gtk_map_stock): New var.
7805
7806 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7807 of calling intern each time.
7808
7809 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7810
7811 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7812 does tiling.
7813
7814 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7815
7816 2009-07-14 Kenichi Handa <handa@m17n.org>
7817
7818 * font.c (font_vconcat_entity_vectors): New function.
7819 (struct font_sort_data): New member font_driver_preference.
7820 (font_compare): Check font_driver_preference.
7821 (font_sort_entities): The format of the first argument changed.
7822 (font_delete_unmatched): Likewise.
7823 (font_list_entities): The return type changed.
7824 (font_select_entity): The format of the second argument changed.
7825 (font_find_for_lface): Adjuste for the above changes.
7826 Don't suppress the checking of C even if the repertory supports it.
7827 (Flist_fonts): Adjust for the above changes.
7828
7829 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7830 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
7831 Reject a font who has adstyle property that is different from a
7832 langname derived from registry property.
7833 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
7834
7835 2009-07-13 Eli Zaretskii <eliz@gnu.org>
7836
7837 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7838 local copy of dirfilename.
7839
7840 2009-07-13 Kenichi Handa <handa@m17n.org>
7841
7842 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7843 against max_char.
7844
7845 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7846 calling XSYMBOL (sym).
7847
7848 2009-07-11 Eli Zaretskii <eliz@gnu.org>
7849
7850 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7851 New function.
7852 (directory_files_internal) [WINDOWSNT]:
7853 Bind w32-get-true-file-attributes to either t or nil, depending whether
7854 the filesystem of the directory is fast or slow.
7855
7856 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7857 file name.
7858 (is_slow_fs): New function.
7859 (stat): Use it to determine whether to issue more system calls to
7860 get accurate file attributes, when w32-get-true-file-attributes is
7861 `local'.
7862
7863 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7864
7865 * xfns.c (Fx_select_font): Remember last font selected in
7866 x_last_font_name and use that the next time. Also try the frame
7867 parameter font-parameter as default to the font dialog.
7868
7869 2009-07-10 Kenichi Handa <handa@m17n.org>
7870
7871 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7872
7873 2009-07-09 Eli Zaretskii <eliz@gnu.org>
7874
7875 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
7876
7877 * w32.c (stat): Treat UNC file names as residing on remote
7878 drives. (Bug#3542)
7879
7880 2009-07-09 Kenichi Handa <handa@m17n.org>
7881
7882 * fontset.c (fontset_find_font): Fix previous change.
7883
7884 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
7885
7886 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7887 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7888 error flag.
7889
7890 2009-07-08 Kenichi Handa <handa@m17n.org>
7891
7892 * fontset.c (fontset_find_font): Fix the logic of handling
7893 charset_matched.
7894 (font_for_char): Delete unused var.
7895 (generate_ascii_font_name): Delete it.
7896
7897 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7898
7899 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7900 (encode_coding_sjis): Fix the code range check.
7901
7902 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
7903
7904 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7905 (Fexpand_file_name): Copy string data properly (Bug#3772).
7906
7907 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7908
7909 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7910 first MapNotify.
7911
7912 2009-07-07 Kenichi Handa <handa@m17n.org>
7913
7914 * character.h (unibyte_has_multibyte_table): Delete extern.
7915 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7916
7917 * charset.c (Fset_charset_priority): Update charset_unibyte.
7918 (syms_of_charset): Initialize charset_unibyte.
7919
7920 * character.c (unibyte_has_multibyte_table): Delete it.
7921 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7922 charset_unibyte.
7923 (multibyte_char_to_unibyte_safe): Likewise.
7924 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7925
7926 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
7927 (x_produce_glyphs): Likewise.
7928
7929 * .gdbinit (xcharset): Fix the treating $arg0.
7930
7931 2009-07-04 Eli Zaretskii <eliz@gnu.org>
7932
7933 Emulation of `getloadavg' on MS-Windows.
7934 * w32.c: Include float.h.
7935 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7936 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7937 (get_native_system_info, get_system_times): New functions.
7938 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7939 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7940 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7941 g_b_init_get_system_times, and num_of_processors.
7942
7943 2009-07-03 Jason Rumney <jasonr@gnu.org>
7944
7945 * w32term.c (w32_initialize): Use standard types.
7946
7947 2009-07-03 Eli Zaretskii <eliz@gnu.org>
7948
7949 * dired.c (Ffile_attributes): Decode user and group names by the
7950 locale's encoding. (Bug#3443)
7951
7952 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7953
7954 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7955 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7956
7957 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7958
7959 * term.c (init_tty): Remove spurious #ifdef.
7960
7961 * m/mips.h: Mention this file is also used for netbsd.
7962 * m/pmax.h: Remove file.
7963
7964 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7965
7966 * xterm.h (struct x_display_info): Add invisible_cursor.
7967 (struct x_output): Add current_cursor.
7968
7969 * xterm.c (XTtoggle_invisible_pointer): New function.
7970 (x_define_frame_cursor): Don't define cursor if invisible or the
7971 same as before. Set current_cursor.
7972 (x_create_terminal): Set toggle_invisible_pointer_hook.
7973
7974 * xfns.c (make_invisible_cursor): New function.
7975 (x_set_mouse_color): Call make_invisible_cursor.
7976 Set current_cursor.
7977 (x_window): Set current_cursor.
7978
7979 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7980
7981 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7982 inserting a character.
7983 (read_avail_input): Call frame_make_pointer_visible.
7984
7985 * frame.c (Vmake_pointer_invisible): New variable.
7986 (frame_make_pointer_invisible, frame_make_pointer_visible):
7987 New functions.
7988 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7989
7990 * frame.h: Declare frame_make_pointer_invisible and
7991 frame_make_pointer_visible.
7992 (struct frame): Add pointer_invisible.
7993
7994 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7995
7996 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7997 frame isn't visible.
7998 (xg_frame_resized): If width/height is -1, get size of window
7999 from X server.
8000
8001 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8002 for MapNotify.
8003
8004 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
8005 here or call change_frame_size. Just call flush_and_sync.
8006 (flush_and_sync): Reintroduce.
8007
8008 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
8009
8010 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
8011
8012 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8013 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8014
8015 * frame.h: Declare Qsticky.
8016
8017 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8018
8019 * nsfns.m (ns_frame_parm_handlers): Ditto.
8020
8021 * frame.c: Declare Qsticky.
8022 (frame_parms): Add sticky.
8023
8024 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8025
8026 * xterm.h: Declare x_set_sticky.
8027
8028 * xterm.c (x_set_sticky): New function.
8029
8030 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8031 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8032 xg_tool_bar_proxy_help_callback.
8033
8034 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8035
8036 * frame.c: Qmaximized is new.
8037 (x_set_frame_parameters): Do not handle fullscreen specially.
8038 Only set width and height if explicitly set.
8039 (x_set_fullscreen): Handle Qmaximized.
8040 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8041 (syms_of_frame): Initialize Qmaximized.
8042
8043 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8044 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
8045
8046 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
8047 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8048 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
8049 set gravity to NorthWestGravity when USE_GTK.
8050 (set_wm_state): New function.
8051 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
8052 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8053 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
8054 or the case when no window manager is running. That means remove calls
8055 to x_real_positions and x_fullscreen_adjust.
8056
8057 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8058 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8059 flush_and_sync.
8060 (xg_height_changed): New function.
8061 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
8062 and gtk_window_set_policy. Set frame gravity after parsing the
8063 geometry string.
8064 (xg_update_frame_menubar, free_frame_menubar)
8065 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8066 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8067 Remove calls to xg_frame_set_char_size.
8068
8069 2009-07-01 Kenichi Handa <handa@m17n.org>
8070
8071 * keyboard.c (decode_keyboard_code): New function.
8072 (tty_read_avail_input): Decode the input bytes if necessary.
8073
8074 * coding.c (setup_coding_system):
8075 Initialize coding->carryover_bytes to 0.
8076 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8077 use Qno_conversion.
8078
8079 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8080
8081 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8082
8083 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
8084
8085 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
8086
8087 2009-06-30 Jason Rumney <jasonr@gnu.org>
8088
8089 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8090 is already loaded.
8091 Set user model ID if supported (bug#1849).
8092
8093 2009-06-29 Jim Meyering <meyering@redhat.com>
8094
8095 Remove useless if-before-xfree test.
8096 * nsfont.m (nsfont_close): Remove useless test.
8097 * term.c (delete_tty): Likewise.
8098 * w32.c (system_process_attributes): Likewise.
8099 * w32font.c (w32font_close): Likewise.
8100 * xfaces.c (x_free_gc): Likewise.
8101 * xselect.c (buffer): Likewise.
8102
8103 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8104
8105 * process.c (send_process): Keep decoded string in a local
8106 variable and protect it from GC. (Bug#3521)
8107
8108 2009-06-28 Eli Zaretskii <eliz@gnu.org>
8109
8110 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8111 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8112
8113 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
8114
8115 * xdisp.c (start_display, handle_face_prop)
8116 (move_it_vertically_backward, cursor_row_fully_visible_p)
8117 (redisplay_window, try_window_id, produce_image_glyph):
8118 Delete some #ifdef-ed out code chunks that are now obsolete.
8119
8120 * xterm.c (x_update_window_begin, x_new_focus_frame)
8121 (x_scroll_bar_handle_click, handle_one_xevent)
8122 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8123 (x_make_frame_visible, x_make_frame_invisible)
8124 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8125 code chunks that are now obsolete.
8126
8127 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
8128
8129 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8130 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8131 for hours, when optimzation is enabled.
8132 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8133 (xd_read_message): Make them static.
8134
8135 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8136
8137 * term.c (turn_on_face): Allow simultaneously bold and dim
8138 terminal faces (Bug#3530).
8139
8140 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
8141
8142 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8143
8144 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8145 truncation glyphs (Bug#3686).
8146
8147 2009-06-27 Glenn Morris <rgm@gnu.org>
8148
8149 * m/pmax.h: Restore file, with only netbsd portions.
8150
8151 2009-06-26 David Reitter <david.reitter@gmail.com>
8152
8153 * nsterm.m (keydown): Avoid infinite loop.
8154
8155 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8156
8157 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8158 the arg FORCE_SYMBOL.
8159
8160 2009-06-25 Kenichi Handa <handa@m17n.org>
8161
8162 * fontset.c (fontset_find_font): When a usable rfont_def is found
8163 in a fallback font-group, make it the first element of the group.
8164
8165 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
8166
8167 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8168
8169 2009-06-24 Kenichi Handa <handa@m17n.org>
8170
8171 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8172 set for C.
8173 (fontset_font): Record the availability of a font for C both in
8174 the realized fontsets of the current one and the default one.
8175
8176 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8177
8178 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8179 conditional, it is always defined on AIX.
8180
8181 2009-06-23 Miles Bader <miles@gnu.org>
8182
8183 * window.c (Vrecenter_redisplay): New variable.
8184 (syms_of_window): Initialize it.
8185 (Qtty): New extern declaration.
8186 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8187
8188 2009-06-23 Jim Meyering <meyering@redhat.com>
8189
8190 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8191 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
8192 pointer dereferences are guaranteed to be valid.
8193
8194 2009-06-23 Kenichi Handa <handa@m17n.org>
8195
8196 * emacs.c (main): Call init_font ().
8197
8198 * font.h (Vfont_log): Extern it.
8199 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8200
8201 * font.c (font_sort_entities, font_list_entities)
8202 (font_matching_entity, font_open_entity)
8203 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8204 (Vfont_log): Delete static.
8205 (font_log_env_checked): Delete this variable.
8206 (font_add_log): Don't check font_log_env_checked.
8207 (font_deferred_log): Check Vfont_log.
8208 (init_font): New function.
8209
8210 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8211
8212 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8213
8214 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8215
8216 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8217
8218 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8219 (face_for_char): Don't call font_deferred_log here.
8220 (font_for_char): Likewise.
8221
8222 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
8223
8224 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8225 rather than its background_width for drawing the overline and
8226 underline (Bug#489).
8227
8228 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8229 rather than its background_width for drawing the overline and
8230 underline (Bug#489).
8231 (xg_default_icon_file): New variable.
8232 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8233 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
8234
8235 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8236 (load_overlay_strings): Remove externs.
8237 (fast_find_position): Function deleted.
8238 (mouse_face_from_buffer_pos): New function, based on
8239 fast_find_position. Correctly handle before-strings,
8240 display-strings, and after-strings (Bug#1220).
8241 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8242
8243 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
8244
8245 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
8246 (move_it_in_display_line_to, move_it_in_display_line_to)
8247 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8248
8249 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
8250
8251 * Branch for 23.1.
8252
8253 2009-06-21 Jason Rumney <jasonr@gnu.org>
8254
8255 * w32term.c (keyboard_codepage): New static variable.
8256 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8257 (w32_read_socket) [WM_CHAR]: Use it to decode character
8258 input (bug#3237).
8259 (w32_initialize): Initialize it.
8260 (codepage_for_locale): New function.
8261
8262 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
8263
8264 * process.c (status_message): Pass Faset index argument as a lisp
8265 object, so as to work with USE_LISP_UNION_TYPE.
8266
8267 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8268
8269 * coding.c (Ffind_coding_systems_region_internal):
8270 Cache checked characters.
8271
8272 2009-06-18 Kenichi Handa <handa@m17n.org>
8273
8274 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
8275
8276 2009-06-18 Andreas Schwab <aschwab@redhat.com>
8277
8278 * xdisp.c (redisplay_internal): Check that the frame is still
8279 live after redisplay of its windows.
8280 (redisplay_windows): Check that the window is still live.
8281
8282 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8283
8284 * coding.c (detect_coding_utf_16): Fix previous change.
8285
8286 2009-06-16 Kenichi Handa <handa@m17n.org>
8287
8288 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8289 UTF-16 by checking the dispersion of Eth and Oth bytes.
8290
8291 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8292
8293 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8294
8295 2009-06-15 Kenichi Handa <handa@m17n.org>
8296
8297 * process.c (status_message): Fix previous change. Be sure to
8298 decode a localized string.
8299
8300 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8301
8302 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8303 add comment explaining why.
8304
8305 2009-06-14 Sidney Markowitz <sidney@sidney.com>
8306
8307 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
8308
8309 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8310
8311 * nsfont.m (ns_attribute_value): Remove.
8312 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8313 (ns_has_attribute): Shrink the normal range.
8314 (ns_findfonts): Don't worry about requested spec in determining
8315 need for synthItal.
8316 (ns_get_covering_families): Retain scriptToFamilies.
8317
8318 2009-06-14 Seiji Zenitani <zenitani@mac.com>
8319
8320 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8321
8322 2009-06-11 Kenichi Handa <handa@m17n.org>
8323
8324 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8325 overhang for the static composition case.
8326
8327 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8328
8329 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8330 overhang for the automatic composition case.
8331
8332 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8333 composition case.
8334
8335 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
8336
8337 * xdisp.c (get_next_display_element): When handling wrap-prefix
8338 and line-prefix, treat \n as a control character (bug#3502).
8339
8340 2009-06-10 Kenichi Handa <handa@m17n.org>
8341
8342 * font.c (font_parse_family_registry): Fix for one-char foundry.
8343 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8344
8345 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8346
8347 * process.c (status_message): Fix handling of multibyte signal
8348 string (Bug#3499).
8349
8350 2009-06-09 Jim Meyering <meyering@redhat.com>
8351
8352 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8353 color name is missing.
8354
8355 2009-06-09 Kenichi Handa <handa@m17n.org>
8356
8357 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8358 FROM-CODE and TO-CODE are codepoints of CHARSET.
8359
8360 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8361
8362 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8363
8364 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8365
8366 Changes to support :script/:lang/:otf in NS font driver.
8367 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8368 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8369 indicate not part of font driver interface, and change callers.
8370 (ns_get_family): Remove pointless null check.
8371 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8372 ns_spec_to_descriptor, ns_descriptor_to_entity.
8373 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8374 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8375 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8376 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8377 (ns_get_req_script, ns_accumulate_script_ranges)
8378 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8379 New functions.
8380 (nsfont_list, nsfont_match): Use ns_findfonts.
8381 (nsfont_open): Use font descriptor instead of traits.
8382 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8383 (dump_glyphstring): Rename to ns_dump_glyphstring.
8384
8385 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8386
8387 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8388
8389 * fontset.c (fontset_from_font): Remove NS-specific code.
8390
8391 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
8392
8393 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8394 nonactive windows.
8395
8396 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
8397
8398 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
8399
8400 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8401
8402 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8403
8404 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
8405
8406 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8407 account for the overflowing of newlines into the last glyph on the
8408 display line (Bug#3482).
8409
8410 2009-06-05 David Reitter <david.reitter@gmail.com>
8411
8412 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8413 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
8414 Fns_selection_exists_p, Fns_selection_owner_p.
8415
8416 2009-06-03 Jason Rumney <jasonr@gnu.org>
8417
8418 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8419 available. (Bug#3379)
8420
8421 2009-05-29 Kenichi Handa <handa@m17n.org>
8422
8423 * coding.c (get_translation_table):
8424 Check Venable_character_translation.
8425
8426 2009-05-26 David Reitter <david.reitter@gmail.com>
8427
8428 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8429 (x_make_frame_visible): Move frame to front rather than calling
8430 ns_raise_frame().
8431 (keyDown:): Do not swallow events that aren't re-sent if frame
8432 isn't key window.
8433 (drawRect:): Do not set visibility/iconified flags because
8434 drawRect may be called by NSView even if the frame is hidden.
8435
8436 * nsfns.m (Fx_create_frame): Follow other ports in
8437 determining visibility; default to t. Ensure async_visible is set.
8438
8439 2009-05-23 Eli Zaretskii <eliz@gnu.org>
8440
8441 * dired.c (Ffile_attributes): Doc fix.
8442
8443 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
8444
8445 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8446
8447 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8448
8449 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8450 and xfont_scratch_props.
8451 (syms_of_xfont): Do it here instead.
8452 (xfont_find_ccl_program): Delete, unused.
8453 (xfont_open): Delete unused var `i'.
8454
8455 2009-05-21 Kenichi Handa <handa@m17n.org>
8456
8457 * fontset.c (Qlatin): Don't make it static.
8458
8459 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8460 New functions.
8461 (xfont_scripts_cache, xfont_scratch_props): New variables.
8462 (Qlatin, Vscalable_fonts_allowed): Extern it.
8463 (xfont_list_pattern): Argument changed. Callers changed.
8464 Check Vscalable_fonts_allowed. Check the support of a script.
8465 (xfont_list): Don't reject a font spec with :script property.
8466 (xfont_has_char): Fix setting of encoding.
8467 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8468 xfont_scratch_props.
8469
8470 2009-05-19 Kenichi Handa <handa@m17n.org>
8471
8472 * font.c (font_sort_entities): Rename from font_sort_entites.
8473 Callers changed.
8474
8475 2009-05-18 Kenichi Handa <handa@m17n.org>
8476
8477 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8478
8479 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8480
8481 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8482 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8483
8484 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8485
8486 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8487 (x_delete_terminal): Dissociate resource database from display and
8488 then call XrmDestroyDatabase before closing display.
8489
8490 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8491
8492 * nsterm.m (ns_read_socket): Remove unused variable.
8493 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8494 whether selected frame is viable before raising it (based on patch
8495 by David Reitter), and improve commentary.
8496 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
8497
8498 2009-05-15 Kenichi Handa <handa@m17n.org>
8499
8500 * font.c (Ffont_spec): Check arguments.
8501
8502 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
8503
8504 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8505 weight when testing attributes (Bug#3282).
8506
8507 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8508
8509 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8510 what we expect to get in the next ConfigureNotify event.
8511
8512 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8513 before Xft one (Bug#1696).
8514
8515 2009-05-07 David Reitter <david.reitter@gmail.com>
8516
8517 * nsfns.m (Fx_display_planes): Compute bitplanes using
8518 NSBitsPerPixelFromDepth (Bug#3207).
8519
8520 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
8521
8522 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8523
8524 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
8525
8526 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8527
8528 2009-05-07 David Reitter <david.reitter@gmail.com>
8529
8530 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8531 Respect mouse face background.
8532
8533 2009-05-07 David Reitter <david.reitter@gmail.com>
8534
8535 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8536 Mouse movement/highlight: bracket drawing operations
8537 in ns_update_begin and ns_update_end.
8538
8539 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8540
8541 * nsfns.m (ns_get_screen): Rewrite.
8542 Don't presume selected-frame is of type `ns'.
8543
8544 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8545 all drivers.
8546
8547 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8548
8549 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8550
8551 * keyboard.h (add_user_signal): Fix typo in extern.
8552
8553 * lisp.h (add_user_signal): Remove extern.
8554
8555 * unexelf.c (unexec): Consider a section to precede the .bss section
8556 if its addresses overlap that of .bss.
8557 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8558 instead of dumping process.
8559
8560 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8561
8562 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8563
8564 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8565
8566 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8567
8568 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8569
8570 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8571 any statements.
8572
8573 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8574
8575 * process.c (read_process_output): Make sure the current buffer is
8576 always restored.
8577
8578 * coding.c (record_conversion_result): Don't modify
8579 Vlast_code_conversion_error for successful result.
8580 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8581
8582 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8583
8584 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
8585 (load_charset_map): Remove unnecessary code.
8586
8587 2009-04-30 David Reitter <david.reitter@gmail.com>
8588
8589 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
8590 through f24.
8591
8592 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
8593
8594 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8595
8596 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8597 face_at_buffer_position.
8598 (face_before_or_after_it_pos, get_next_display_element)
8599 (note_mouse_highlight): Update face_at_buffer_position call.
8600
8601 * term.c (term_mouse_highlight):
8602 * msdos.c (IT_note_mouse_highlight):
8603 * fontset.c (Finternal_char_font):
8604 * font.c (font_at, font_range): Update face_at_buffer_position call.
8605
8606 * dispextern.h (face_at_buffer_position): Update prototype.
8607
8608 2009-04-30 Kenichi Handa <handa@m17n.org>
8609
8610 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
8611
8612 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8613
8614 * callproc.c (Fcall_process): Fix GC protection. Make sure
8615 current buffer is always restored.
8616
8617 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8618
8619 * atimer.c (init_atimer): Also clear stopped_atimers.
8620
8621 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8622
8623 * process.c (create_process): Clean up merger residues of
8624 2008-07-17 change.
8625
8626 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
8627
8628 * lread.c (Vread_circle): New variable.
8629 (read1): Disable recursive read if Vread_circle is nil.
8630
8631 2009-04-29 Kenichi Handa <handa@m17n.org>
8632
8633 * fontset.h (set_default_ascii_font): Delete extern.
8634
8635 * fontset.c (set_default_ascii_font): Delete this unused function.
8636
8637 * frame.c (x_set_font): When ARG is a font-object, check if the
8638 font-object matches with the ASCII font-spec of the frame's
8639 fontset. If not, create a new fontset for the frame. (Bug #3075)
8640
8641 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8642
8643 * fns.c (Flocale_info): Protect vector from GC during decoding.
8644
8645 * process.c (Fstart_process): Protect argv strings from GC during
8646 encoding.
8647
8648 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8649
8650 * sysdep.c: Include <ctype.h>.
8651
8652 2009-04-27 David Reitter <david.reitter@gmail.com>
8653
8654 * nsfont.m (nsfont_open): Remove unused variable shrink.
8655 Remove commented-out code.
8656
8657 2009-04-26 Johan Bockgård <bojohan@gnu.org>
8658
8659 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8660
8661 2009-04-25 Jason Rumney <jasonr@gnu.org>
8662
8663 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8664
8665 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8666
8667 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8668 Swap bytes in short integer if fringe bitmap width > 8.
8669
8670 2009-04-23 Kenichi Handa <handa@m17n.org>
8671
8672 * xfaces.c (Fx_list_fonts): If a font size is specified in
8673 PATTERN, set it in returned scalable fonts.
8674
8675 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
8676
8677 * keyboard.c (Fset_input_meta_mode): Doc fix.
8678
8679 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8680
8681 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
8682
8683 * coding.c (Fterminal_coding_system): Doc fix.
8684
8685 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8686 (Fx_display_pixel_height, Fx_display_planes)
8687 (Fx_display_color_cells, Fx_server_max_request_size)
8688 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8689 (Fx_display_mm_height, Fx_display_mm_width)
8690 (Fx_display_backing_store, Fx_display_visual_class)
8691 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8692 Doc fixes, replacing "terminal id" with "terminal object".
8693 (check_x_display_info): Handle terminal objects instead of
8694 terminal ids.
8695
8696 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8697 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
8698 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8699 Doc fixes, replacing "terminal id" with "terminal object".
8700
8701 2009-04-21 Kenichi Handa <handa@m17n.org>
8702
8703 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
8704 (font_score): Check AVGWIDTH too.
8705
8706 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8707 worst case.
8708 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8709 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
8710
8711 2009-04-19 Jason Rumney <jasonr@gnu.org>
8712
8713 The following changes fix Bug#3005 for wide glyphs on each platform,
8714 without reintroducing Bug#1258 for stretch glyphs.
8715
8716 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8717 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8718 get_phys_cursor_geometry.
8719
8720 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
8721 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8722 using get_phys_cursor_geometry.
8723
8724 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8725 correctly calculated.
8726
8727 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8728
8729 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8730 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
8731 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8732 is deprecated.
8733
8734 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8735
8736 * font.c (font_put_frame_data): Use xfree instead of free.
8737
8738 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
8739
8740 * w32font.c (Qja, Qko): Remove declarations.
8741 (syms_of_w32font): Don't DEFSYM them.
8742
8743 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
8744
8745 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8746
8747 * font.h (Qja, Qko): Extern them.
8748
8749 * ftfont.c (Qja, Qko): Remove declarations.
8750
8751 * xfont.c (Qja, Qko): Remove declarations.
8752
8753 2009-04-17 Kenichi Handa <handa@m17n.org>
8754
8755 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8756 string from a vector to handle Latin-1 characters correctly.
8757
8758 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8759 entity even if the cache hits.
8760
8761 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8762
8763 * search.c (boyer_moore): Use zero as marker value for a possible
8764 match instead of depending on overflow behavior. (Bug#2844)
8765
8766 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8767 * lisp.h: Adjust prototypes.
8768
8769 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
8770
8771 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8772 change (Bug#3003).
8773
8774 2009-04-16 Kenichi Handa <handa@m17n.org>
8775
8776 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
8777
8778 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8779 adstyle.
8780
8781 * ftfont.c (Qja, Qko): Don't make them static.
8782 (enum ftfont_cache_for): New enum.
8783 (fc_charset_table): Undo the previous change.
8784 (ftfont_get_latin1_charset): Delete it.
8785 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8786 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
8787 non-scarable font, try to get AVERAGE_WIDTH.
8788 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8789 Change ft_face_cache from a list of a hash-table. Don't check
8790 `ja' and `ko' adstyle here.
8791 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8792 FTFONT_CACHE_FOR_CHARET.
8793 (ftfont_get_charset): Undo the previous change.
8794 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
8795 (ftfont_close): Likewise.
8796 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8797
8798 * font.c (font_sort_entites): Change the meaning of the arg
8799 BEST-ONLY. Don't optimize for VEC of lenght 1.
8800 (font_select_entity): Just return the value of font_sort_entites.
8801
8802 * xfaces.c (merge_face_vectors): Reflect font properties in
8803 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8804 font_clear_prop if a face attribute doesn't change.
8805
8806 * charset.h (charset_ksc5601): Extern it.
8807
8808 * charset.c (charset_ksc5601): New variable.
8809 (Fdefine_charset_internal): Set charset_ksc5601.
8810 (init_charset_once): Initialize charset_ksc5601 to -1.
8811
8812 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8813
8814 * fileio.c (history_delete_duplicates): Remove unused declaration.
8815
8816 * callint.c (history_delete_duplicates): New declaration.
8817 (Fcall_interactively): Remove command history duplicates when
8818 history_delete_duplicates is true.
8819
8820 2009-04-14 Eli Zaretskii <eliz@gnu.org>
8821
8822 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8823
8824 2009-04-14 Kenichi Handa <handa@m17n.org>
8825
8826 * font.c (Ffont_info): Fix docstring. Fix the second element of
8827 the returned value (bug#2949).
8828
8829 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
8830
8831 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8832
8833 2009-04-14 Kenichi Handa <handa@m17n.org>
8834
8835 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8836 encoding charset is ascii_compatible.
8837
8838 * charset.c (Fdefine_charset_internal): Make charset
8839 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8840 code_offset is 0, and covers all ASCII characters.
8841
8842 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8843
8844 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8845 (ns_string_to_pasteboard_internal):
8846 * nsmenu.m (process_dialog):
8847 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8848 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8849 * lisp.h (Fx_load_color_file): Declare.
8850
8851 2009-04-13 Kenichi Handa <handa@m17n.org>
8852
8853 * font.c (font_delete_unmatched): Preserve the order of list elements.
8854 (font_select_entity): Suppress the code to optimize for the same
8855 kind of fonts.
8856 (font_load_for_lface): Get a font that supports at least ASCII
8857 characters.
8858
8859 * ftfont.c (Qja, Qko): New variables.
8860 (fc_charset_table): Delete uniquifier data for iso8859-1.
8861 (ftfont_get_latin1_charset): New function.
8862 (get_adstyle_property): New function.
8863 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8864 bitmap fonts.
8865 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8866 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8867 `ko' or `ja'.
8868 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
8869 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
8870 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8871 property.
8872 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8873 (syms_of_ftfont): DEFSYM Qja and Qko.
8874
8875 2009-04-09 Kenichi Handa <handa@m17n.org>
8876
8877 * charset.c (map_charset_chars): For a charset of `superset'
8878 method, fix calculation of code range.
8879
8880 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8881 from the list of extra properties.
8882 (font_clear_prop): Be sure to delete `:name' font property.
8883
8884 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8885
8886 * dispnew.c (redraw_overlapping_rows): Fix detection of
8887 overlapping for topmost and bottommost rows.
8888
8889 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
8890
8891 2009-04-06 Jason Rumney <jasonr@gnu.org>
8892
8893 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8894
8895 2009-04-06 Kenichi Handa <handa@m17n.org>
8896
8897 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8898
8899 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8900
8901 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8902
8903 * ftfont.c (ftfont_open): Fix checking of the return value of
8904 FT_Load_Char. Fix setting font->underline_thickness.
8905
8906 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
8907
8908 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8909 (Fterminal_parameters, Fterminal_parameter)
8910 (Fset_terminal_parameter): In doc string, refer to terminal
8911 objects rather than terminal ids.
8912
8913 2009-04-04 Eli Zaretskii <eliz@gnu.org>
8914
8915 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8916 ret_lim_data. (Bug#2867)
8917
8918 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
8919
8920 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8921 so they don't get wider than the window, matching 2006-01-23
8922 change to the partner function in xdisp.c (Bug#2800).
8923
8924 2009-04-03 Kenichi Handa <handa@m17n.org>
8925
8926 * print.c (print_object): Make each lowest sub_char_table start a
8927 new line (Bug#2866).
8928
8929 2009-04-02 Kenichi Handa <handa@m17n.org>
8930
8931 * fontset.c (fontset_font): Record no-font when a fontset
8932 explicitly tells not to try another font-specs.
8933
8934 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8935
8936 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8937
8938 2009-03-30 Kenichi Handa <handa@m17n.org>
8939
8940 * fontset.c (fontset_from_font): Specify only registry in a
8941 font-spec for all characters supported by that registry.
8942
8943 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8944 even if HAVE_M17N_FLT is not defined.
8945
8946 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8947
8948 * ftfont.c: Conditionalize prototyping and use of
8949 ftfont_variation_glyphs.
8950
8951 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8952
8953 * frame.c (delete_frame): Work around compiler bug.
8954
8955 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8956 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8957 Some more EMACS_INT.
8958 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8959
8960 * xdisp.c (dump_glyph): Fix typo.
8961
8962 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8963 (adjust_markers_gap_motion, adjust_markers_for_delete)
8964 (adjust_markers_for_insert, adjust_point)
8965 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8966 (make_gap, copy_text, count_size_as_multibyte, insert)
8967 (insert_and_inherit, insert_before_markers)
8968 (insert_before_markers_and_inherit, insert_1)
8969 (count_combining_before, count_combining_after, insert_1_both)
8970 (insert_from_string, insert_from_string_before_markers)
8971 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8972 (insert_from_buffer_1, adjust_after_replace)
8973 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8974 (replace_range_2, del_range, del_range_1, del_range_byte)
8975 (del_range_both, del_range_2, modify_region)
8976 (prepare_to_modify_buffer, signal_before_change)
8977 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8978 for buffer positions and sizes.
8979 * lisp.h: Adjust prototypes accordingly.
8980
8981 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8982 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8983 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8984
8985 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8986
8987 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8988
8989 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8990 lines and columns so we keep the same pixel height and width.
8991
8992 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8993 the property _NET_WM_STATE has changed.
8994 (x_handle_net_wm_state): New function to update frame parameter
8995 fullscreen.
8996 (x_term_init): Initialize atoms for _NET_WM_STATE.
8997
8998 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8999
9000 2009-03-27 Kevin Ryde <user42@zip.com.au>
9001
9002 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9003 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9004 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9005 (Fgpm_mouse_stop): Pass that new parameter.
9006 * termhooks.h (close_gpm): Adjust prototype.
9007
9008 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9009
9010 * lisp.h (Fx_focus_frame): Declare.
9011
9012 * callint.c (Fcall_interactively): For '^' just delegate the work to
9013 handle-shift-selection.
9014 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9015
9016 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
9017
9018 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9019
9020 * data.c (Qinteractive_form): New variable.
9021 (Finteractive_form): Use it.
9022
9023 * eval.c (Fcommandp): Use Qinteractive_form.
9024
9025 2009-03-24 Jason Rumney <jasonr@gnu.org>
9026
9027 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9028 Calculate total size precisely. Decode environment variables
9029 before substituting. (Bug#38)
9030
9031 2009-03-24 Kenichi Handa <handa@m17n.org>
9032
9033 * font.c (find_font_encoding): Return Qnil for unsupported
9034 encoding (Bug#2722).
9035
9036 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9037
9038 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9039 that gdpy is set.
9040
9041 2009-03-22 Alan Mackenzie <acm@muc.de>
9042
9043 * callint.c (Finteractive): Clarify the doc string - even
9044 promptless elements need \n separators.
9045
9046 2009-03-22 Jason Rumney <jasonr@gnu.org>
9047
9048 * w32term.c (syms_of_w32term): Doc fix for
9049 x-use-underline-position-properties.
9050
9051 2009-03-21 Eli Zaretskii <eliz@gnu.org>
9052
9053 * w32.c (getpwuid): Change argument type to unsigned.
9054 (struct w32_id): Change type of `rid' member to unsigned.
9055 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9056 argument ID to unsigned. All callers changed.
9057 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9058
9059 2009-03-20 Eli Zaretskii <eliz@gnu.org>
9060
9061 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9062 negative, produce a float value.
9063
9064 * dired.c (make_uid, make_gid): New functions.
9065 (Ffile_attributes): Use them to avoid negative UID and GID.
9066
9067 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
9068
9069 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9070 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9071 Fix typos in docstrings.
9072
9073 2009-03-19 Kenichi Handa <handa@m17n.org>
9074
9075 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
9076 changed, use font_load_for_lface to get a new font object.
9077 Call free_realized_fontset after handling ASCII font change.
9078
9079 * frame.c (x_set_font): Handle the case that ARG is a cons.
9080
9081 2009-03-19 Glenn Morris <rgm@gnu.org>
9082
9083 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9084
9085 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
9086
9087 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9088
9089 2009-03-19 Kenichi Handa <handa@m17n.org>
9090
9091 * charset.c (load_charset_map_from_file): When a mapfile can't be
9092 loaded, signal an error.
9093
9094 2009-03-18 Eli Zaretskii <eliz@gnu.org>
9095
9096 * dired.c (Ffile_attributes): Make sure UID and GID are always
9097 positive, even if the value is too large for a positive EMACS_INT.
9098 Doc fix.
9099
9100 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9101
9102 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9103
9104 * xmenu.c (xdialog_show): Move Fredisplay call ...
9105 (Fx_popup_dialog): ... here.
9106
9107 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9108
9109 * dired.c (file_name_completion): Disable the first optimization just
9110 installed, since it is not implemented correctly.
9111
9112 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9113
9114 * dired.c (file_name_completion): Check completion-ignored-extensions
9115 only if the entry can affect bestmatch.
9116 Stop the search early, as Ftry_completion already does.
9117
9118 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
9119
9120 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
9121
9122 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
9123
9124 * keyboard.c (parse_menu_item): Don't display remappings as menu
9125 equivalent bindings (Bug#788).
9126
9127 2009-03-15 Jason Rumney <jasonr@gnu.org>
9128
9129 * w32term.h (WM_EMACS_PAINT): New message.
9130 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9131 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9132 before passing to lisp thread. (Bug#950)
9133
9134 2009-03-14 David Reitter <david.reitter@gmail.com>
9135
9136 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9137 variable as it was never reset.
9138 (ns_term_init): Remove initialization of Lisp-settable defaults
9139 and ns_expand_space.
9140 (-setPanelFromDefaultValues): Remove ns_expand_space.
9141 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9142 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
9143 i.e. no additional spacing, similar to Carbon port.
9144
9145 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9146 * nsfns.m (ns-popup-prefs-panel): Remove.
9147
9148 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9149
9150 * sound.c (alsa_configure): Remove call to deprecated
9151 snd_pcm_sw_params_set_xfer_align.
9152
9153 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
9154
9155 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9156 after clicking in a detached tool bar.
9157 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9158
9159 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9160
9161 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9162 int/Lisp_Object mixup).
9163
9164 2009-03-13 Kenichi Handa <handa@m17n.org>
9165
9166 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
9167 Handle NAME nil and t correctly. Callers changed.
9168 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9169 (set_fontset_font): Change ARG to a vector. Handle range_list in
9170 ARG correctly.
9171 (Fset_fontset_font): Fix the case that TARGET is both a script
9172 name and charset name. Adjust the arg to set_fontset_font for
9173 the above change.
9174 (fontset_from_font): Fix previous change.
9175 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
9176 entry. If FONTSET is the default fontset, don't set the extra
9177 slot of the returning char-table.
9178
9179 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
9180
9181 * nsfns.m (Fx_close_connection): Doc fix.
9182 (Fns_do_applescript): Reflow docstring.
9183 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9184 (Fx_display_pixel_width, Fx_display_pixel_height)
9185 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9186 Fix typos in docstrings.
9187 (Fns_set_alpha): Fix typos in error messages.
9188
9189 2009-03-12 David Reitter <david.reitter@gmail.com>
9190
9191 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
9192 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9193 were used for such events.
9194
9195 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9196 (toggleToolbar, performDragOperation, runHelp): Use it.
9197
9198 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
9199 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9200
9201 2009-03-11 Kenichi Handa <handa@m17n.org>
9202
9203 * font.h (font_open_by_spec): Extern it.
9204
9205 * font.c (font_open_by_spec): New function.
9206 (font_open_by_name): Use font_open_by_spec.
9207
9208 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9209 fontset of the frame.
9210
9211 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9212 modify the default font of frames that use this fontset.
9213 (num_auto_fontsets): New variable.
9214 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9215 name. Be sure to set FONTSET_ASCII to the correct font name.
9216 (update_auto_fontset_alist): New function.
9217
9218 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
9219
9220 * makefile.w32-in: Update dependencies.
9221
9222 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9223
9224 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9225
9226 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9227
9228 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9229
9230 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
9231
9232 * lread.c (Feval_buffer): Doc fix.
9233
9234 2009-03-09 Kenichi Handa <handa@m17n.org>
9235
9236 * charset.c (Qfile_name_handler_alist): Extern it.
9237 (load_charset_map_from_file): Temporarily bind
9238 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9239
9240 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
9241
9242 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9243 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
9244
9245 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9246
9247 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9248 (x_set_window_size): Change back to calculated method of setting
9249 toolbar height under Cocoa. (Bug#2546)
9250 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9251 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9252
9253 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9254
9255 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9256 accelerator in parens under GNUstep.
9257
9258 2009-03-06 Kenichi Handa <handa@m17n.org>
9259
9260 These changes are to detect incorrect composition sequence without
9261 looking ahead the source. (Bug#2370)
9262
9263 * coding.h: Include "composite.h".
9264 (enum compisition_state): New enum.
9265 (struct compisition_status): New struct.
9266 (struct iso_2022_spec): New member cmp_status.
9267 (struct emacs_mule_spec): New struct.
9268 (struct coding_system): New members ctext_extended_segment_len and
9269 embedded_utf_8. Change the union member
9270 spec.emacs_mule_full_support to spec.emacs_mule.
9271
9272 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9273 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
9274 (MAX_ANNOTATION_LENGTH): Define to 5.
9275 (ADD_COMPOSITION_DATA): New arg nbytes.
9276 (emacs_mule_char): New arg cmp_status.
9277 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9278 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9279 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9280 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9281 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9282 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9283 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9284 (EMACS_MULE_COMPOSITION_END): New macro.
9285 (emacs_mule_finish_composition): New function.
9286 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9287 (decode_coding_emacs_mule): Avoid long looking ahead while
9288 handling composition.
9289 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9290 (ENCODE_COMPOSITION_RULE): New macro.
9291 (finish_composition): New function.
9292 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9293 (DECODE_COMPOSITION_START): New implementation.
9294 (DECODE_COMPOSITION_END): Likewise.
9295 (STORE_COMPOSITION_RULE): New macro.
9296 (decode_coding_iso_2022): Avoid long looking ahead while handling
9297 composition, CTEXT extended segment, and embedded UTF-8.
9298 (setup_coding_system): For a coding of type iso-2022, reset
9299 CODING_ISO_EXTSEGMENT_LEN (coding) and
9300 CODING_ISO_EMBEDDED_UTF_8 (coding).
9301 (get_translation): Delete arguments last_block, from_nchars,
9302 to_nchars. Callers changed.
9303 (produce_chars): Don't modify charbuf. Adjusted for the change of
9304 get_translation.
9305 (produce_composition): Adjust for the new annotation sequence.
9306 (handle_composition_annotation): Likewise.
9307 (consume_chars): Adjust for the change of get_translation.
9308
9309 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9310
9311 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
9312
9313 2009-03-05 Kenichi Handa <handa@m17n.org>
9314
9315 * font.c (font_select_entity): New function.
9316 (font_find_for_lface): Use font_select_entity to select a font.
9317
9318 * fontset.c (fontset_find_font): If a font found without
9319 restricting to the characters C doesn't support C, try to find a
9320 font with C restriction.
9321
9322 2009-03-04 Nikolaj Schumacher <me@nschum.de>
9323
9324 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
9325
9326 2009-03-04 Jason Rumney <jasonr@gnu.org>
9327
9328 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
9329 characters that have already been read. (Bug#2569)
9330
9331 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9332 Log an error message if check_image_size failed.
9333 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
9334 (gs_load): Mention max-image-size in size error message. (Bug#2560)
9335
9336 2009-03-02 Eli Zaretskii <eliz@gnu.org>
9337
9338 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9339 when decoding process output.
9340
9341 2009-03-01 Richard M Stallman <rms@gnu.org>
9342
9343 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9344
9345 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9346
9347 2009-02-28 Eli Zaretskii <eliz@gnu.org>
9348
9349 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9350 (decode_coding_emacs_mule, decode_coding_iso_2022)
9351 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9352 (decode_coding_raw_text, decode_coding_charset)
9353 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9354 Honor inhibit-eol-conversion. (Bug #2186)
9355
9356 2009-02-28 Jason Rumney <jasonr@gnu.org>
9357
9358 * coding.c (detect_coding_charset): If not checking latin extra,
9359 fail on characters between 0x80 and 0xA0. (Bug#2354)
9360
9361 2009-02-28 Eli Zaretskii <eliz@gnu.org>
9362
9363 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
9364 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
9365
9366 2009-02-27 Glenn Morris <rgm@gnu.org>
9367
9368 * callint.c (Finteractive): Doc fix.
9369
9370 2009-02-27 Kenichi Handa <handa@m17n.org>
9371
9372 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9373
9374 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
9375
9376 * font.c (font_style_to_value): Set value for unknown symbols to
9377 100 instead of 255.
9378 (weight_table, slant_table, width_table): Treat "unspecified" as
9379 the default value.
9380
9381 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
9382
9383 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9384
9385 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
9386
9387 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9388 error as soon as a recursive load is detected.
9389
9390 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9391
9392 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9393 before caching.
9394
9395 2009-02-24 Kenichi Handa <handa@m17n.org>
9396
9397 * fontset.c (fontset_find_font): Fix the condition for checking
9398 unavailable font.
9399
9400 2009-02-24 Glenn Morris <rgm@gnu.org>
9401
9402 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9403 whitespace that confuses documentation.
9404
9405 2009-02-23 Miles Bader <miles@gnu.org>
9406
9407 * process.c (Flist_system_processes, Fprocess_attributes)
9408 (syms_of_process): Rename `system-process-attributes' to
9409 `process-attributes'.
9410
9411 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9412
9413 * coding.h (struct coding_system): Make safe_charsets a pointer to
9414 unsigned char.
9415 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9416 being 255.
9417 (SAFE_CHARSET_P): Likewise.
9418 (setup_iso_safe_charsets): Properly setup safe_charsets.
9419 (Fdefine_coding_system_internal): Likewise.
9420 (setup_coding_system): Likewise. Remove unneeded casts.
9421 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9422 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9423 unneeded casts.
9424
9425 * insdel.c (del_range_2): Don't modify gap contents when called
9426 from decode_coding_object. (Bug#1809)
9427
9428 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
9429
9430 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9431 Qfont_object.
9432 (Ftype_of): Recognize font objects.
9433
9434 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9435
9436 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9437 moved to data.c.
9438
9439 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9440
9441 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9442 async_iconified. Based on a patch by Christian Lynbech
9443 <christian.lynbech@tieto.com>.
9444 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9445
9446 2009-02-20 Glenn Morris <rgm@gnu.org>
9447
9448 * syntax.c (Fskip_chars_forward): Fix doc typo.
9449
9450 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
9451
9452 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9453
9454 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
9455
9456 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9457
9458 2009-02-19 Kenichi Handa <handa@m17n.org>
9459
9460 * coding.c (detect_coding): Preserve coding->mode.
9461 Don't overflow coding->carryover. (Bug#2370)
9462
9463 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9464
9465 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9466
9467 2009-02-18 Kenichi Handa <handa@m17n.org>
9468
9469 * font.c (font_check_otf_features): Fix handling of `nil' element.
9470 (Ffont_spec): Describe :lang and :otf in the docstring.
9471
9472 2009-02-16 Andreas Schwab <schwab@suse.de>
9473
9474 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9475 string.
9476
9477 2009-02-16 Kenichi Handa <handa@m17n.org>
9478
9479 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
9480 (Bug#1723)
9481
9482 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
9483
9484 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
9485
9486 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9487 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9488
9489 2009-02-14 Eli Zaretskii <eliz@gnu.org>
9490
9491 * msdos.c (MAX_SCREEN_BUF): New macro.
9492 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9493 Encode the entire run of glyphs sharing the same face, instead of
9494 doing that one glyph at a time (fixes a bug with displaying
9495 double-size characters).
9496
9497 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9498
9499 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9500
9501 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9502 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
9503 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
9504
9505 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
9506 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
9507
9508 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9509
9510 * keyboard.c (adjust_point_for_property): Allow stopping between two
9511 invisible areas.
9512
9513 2009-02-12 Jason Rumney <jasonr@gnu.org>
9514
9515 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9516 (add_font_entity_to_list): Call check_face_name even when family
9517 is unspecified.
9518
9519 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9520 Release DC when finished. Use NULL window to refer to desktop.
9521 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
9522
9523 * w32font.c (add_font_entity_to_list): Fix check for substituted
9524 raster fonts. (Bug#2219)
9525
9526 2009-02-12 Kenichi Handa <handa@m17n.org>
9527
9528 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9529 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9530 (autocmp_chars): Use fast_looking_at. Don't compose more
9531 characters than MAX_COMPOSITION_COMPONENTS.
9532 (find_automatic_composition): While looking forward and backward,
9533 check static composition. Fix where to stop looking forward.
9534 (composition_adjust_point): Fix checking of static composition.
9535 (Fcomposition_get_gstring): Pay attention to
9536 MAX_COMPOSITION_COMPONENTS.
9537
9538 * lisp.h (fast_looking_at): Extern it.
9539
9540 * search.c (fast_looking_at): New function.
9541
9542 * term.c (encode_terminal_code): Adjust for the change of
9543 <struct glyph>.u.cmp.to.
9544 (append_composite_glyph): Likewise.
9545
9546 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
9547 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9548 composition.
9549 (append_composite_glyph): Adjust for the change of
9550 <strcut glyph>.u.cmp.to.
9551
9552 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
9553
9554 * casetab.c (init_casetab_once):
9555 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9556 * font.c (font_update_lface):
9557 * fontset.c (Fnew_fontset):
9558 * ftfont.c (ftfont_drive_otf):
9559 * xfont.c (xfont_open):
9560 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9561
9562 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9563
9564 * fileio.c (Fwrite_region): !NILP -> CONSP.
9565
9566 2009-02-10 Andreas Schwab <schwab@suse.de>
9567
9568 * process.c (send_process): Properly relocate pointer into data
9569 when using encoded data. (Bug#2272)
9570
9571 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9572
9573 * coding.c (detect_coding_charset): Fix previous change.
9574
9575 2009-02-08 Jason Rumney <jasonr@gnu.org>
9576
9577 * w32fns.c (w32_hide_hourglass): Handle case where frame
9578 disappeared while hourglass was displayed. (Bug #2193)
9579
9580 2009-02-07 Andreas Schwab <schwab@suse.de>
9581
9582 * unexelf.c (unexec): Fix error message.
9583
9584 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9585
9586 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
9587 when modal window is active. (Bug #2152)
9588 (applicationShouldTerminate:): Remove now-unneeded while loop
9589 around NSRunAlertPanel.
9590
9591 * nsmenu.m (popupSession): New file-global variable.
9592 (pop_down_menu): End the popupSession before closing dialog.
9593 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9594 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9595 don't query NSApp for events (just sleep instead).
9596
9597 2009-02-07 Eli Zaretskii <eliz@gnu.org>
9598
9599 * coding.c (syms_of_coding) <translation-table-for-input>:
9600 Modify doc string to discourage use for character code unification.
9601
9602 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9603
9604 * atimer.c (run_timers): Update pending_atimers.
9605
9606 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
9607
9608 * image.c (svg_load_image): Fix last change.
9609
9610 * xfns.c (Fx_create_frame): Signal an error if no font is
9611 found (Bug#2147).
9612
9613 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
9614
9615 * character.c (syms_of_character) <script-representative-chars>:
9616 Fix typo in docstring.
9617
9618 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9619
9620 * nsmenu.m (pop_down_menu): New function.
9621 (ns_popup_dialog): Call it on unwind.
9622 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9623 call timer_check() (Bug#2154).
9624 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9625 handling_signal is set.
9626 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9627
9628 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
9629
9630 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9631
9632 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9633
9634 * keyboard.c (poll_for_input_1, handle_async_input):
9635 Set handling_signal under HAVE_NS.
9636
9637 2009-02-04 Glenn Morris <rgm@gnu.org>
9638
9639 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9640
9641 2009-02-04 Kenichi Handa <handa@m17n.org>
9642
9643 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9644
9645 * charset.c (Fchar_charset): New optional arg restriction.
9646
9647 * coding.h (coding_system_charset_list): Extern it.
9648
9649 * coding.c (coding_system_charset_list): New function.
9650
9651 * composite.c: Include coding.h and termhooks.h.
9652 (composition_gstring_p): Fix for the terminal case.
9653 (composition_gstring_width): Likewise.
9654 (fill_gstring_body): Likewise.
9655 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9656 the frame.
9657 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9658 is within a composition.
9659 (Fcomposition_get_gstring): Fix the terminal case.
9660
9661 * term.c (encode_terminal_code): Fix handling of composition.
9662 (produce_composite_glyph): For static composition, get pixel_width
9663 from struct composition.
9664
9665 2009-02-02 Andreas Schwab <schwab@suse.de>
9666
9667 * unexelf.c (unexec): Handle unaligned bss offset.
9668
9669 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9670
9671 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9672 XT,w32read_socket changes to ns_read_socket.
9673
9674 * keyboard.c (handle_interrupt): Don't call
9675 quit_throw_to_read_char() under NS.
9676
9677 * blockinput.h: Remove NS-specific code.
9678
9679 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9680
9681 * dispnew.c (window_change_signal): Don't try to get the size of a
9682 suspended tty frame.
9683 * term.c (Fresume_tty): Resize if the size has changed while the
9684 tty was suspended.
9685
9686 * alloc.c (mark_stack): Properly conditionalize previous change.
9687
9688 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
9689
9690 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9691 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9692 Remove; this code is not used on Windows.
9693
9694 2009-01-30 Eli Zaretskii <eliz@gnu.org>
9695
9696 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9697 EOLs that also has stray ^M characters.
9698
9699 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
9700
9701 * atimer.c (run_timers, alarm_signal_handler):
9702 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9703 * w32inevt.c (w32_console_read_socket):
9704 * w32term.c (w32_read_socket):
9705 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9706
9707 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
9708
9709 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9710 Initialize it as a relative filename pattern.
9711 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9712 (Fcall_process_region): Simplify temp file creation using
9713 temporary-file-directory.
9714
9715 2009-01-29 Eli Zaretskii <eliz@gnu.org>
9716
9717 * msdos.c: Rename pending_signals to msdos_pending_signals.
9718 (sig_suspender, sigprocmask): Adjust.
9719
9720 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
9721
9722 * keyboard.c (pending_signals): New var.
9723 (poll_for_input, input_available_signal, init_keyboard): Set it.
9724 (process_pending_signals): New function.
9725
9726 * lisp.h (QUIT): Check pending_signals instead of
9727 interrupt_input_pending. Use process_pending_signals.
9728
9729 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
9730
9731 * process.c (wait_reading_process_output): Use process_pending_signals.
9732
9733 * sysdep.c (emacs_write): Use process_pending_signals.
9734
9735 * xterm.c (XTread_socket): Update pending_signals.
9736
9737 * w32term.c (w32_read_socket): Update pending_signals.
9738
9739 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9740
9741 2009-01-29 Kenichi Handa <handa@m17n.org>
9742
9743 * xftfont.c (xftfont_has_char): New function.
9744 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9745
9746 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9747
9748 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9749 under GNUstep.
9750 (ns_query_color): New declaration.
9751
9752 * nsterm.m (ns_confirm_quit): New variable.
9753 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9754 (EmacsApp-applicationShouldTerminate:): Use it.
9755 (EmacsPrefsController): Let user set it.
9756 (ns_query_color): New function.
9757 (ns_defined_color): Use it.
9758 (ns_initialize): Drop.
9759 (ns_term_init): Add two lines from ns_initialize(), and set
9760 input_interrupt_mode to nil.
9761
9762 * image.c (svg_load_image): Don't right-shift background RGB when
9763 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
9764
9765 2009-01-28 Kenichi Handa <handa@m17n.org>
9766
9767 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
9768 (fontset_get_font_group): Remember that no font-group is specified
9769 for C.
9770
9771 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
9772
9773 * fns.c (concat): Check for string overflow (bug#1787).
9774
9775 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9776 Quadruple undo limits (bug#1501).
9777
9778 2009-01-27 Kenichi Handa <handa@m17n.org>
9779
9780 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9781 directly use GT_Get_Char_index.
9782
9783 * xftfont.c (struct xftfont_info): New member `index'.
9784
9785 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
9786 (Ffontset_font): Adjust for the change of fontset entry.
9787
9788 2009-01-26 Kenichi Handa <handa@m17n.org>
9789
9790 * fontset.c (fontset_find_font): Fix handling of non-cons return
9791 value of fontset_get_font_group.
9792 (fontset_font): Revert last change.
9793
9794 2009-01-26 Jason Rumney <jasonr@gnu.org>
9795
9796 * w32font.c (w32font_list_internal): Return quickly if registry is
9797 unknown. Simplify final return.
9798 (add_font_entity_to_list): Break complex logic down into more
9799 manageable chunks. Move unknown registry check to
9800 w32font_list_internal.
9801
9802 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9803
9804 Changes to remove Feval calls from GUI under NS.
9805
9806 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9807 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
9808 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9809
9810 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9811 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9812 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9813 instead of NON_ASCII_KEYSTROKE_EVENT.
9814 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9815 (EmacsApp-applicationShouldTerminate:): Query user.
9816 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9817 instead of Feval.
9818
9819 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9820
9821 * keyboard.c (kbd_buffer_get_event): Check for it.
9822 (keys_of_keyboard): Define lispy keys for
9823 ns-put/unput-working-text.
9824
9825 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9826 versions.
9827 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9828
9829 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
9830
9831 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
9832 setting current_buffer directly. (Bug#2044)
9833
9834 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
9835
9836 * fontset.c (fontset_font): If we know there is no font, don't do
9837 any work. (Bug#1952, bug#1990).
9838
9839 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
9840
9841 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9842
9843 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
9844 (ns_no_defaults): New declaration.
9845 (main): Use it.
9846
9847 * nsterm.h (ns_no_defaults): New declaration.
9848
9849 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
9850
9851 * nsterm.m (ns_no_defaults): New variable.
9852 (ns_initialize): Don't read defaults when ns_no_defaults.
9853 (EmacsView-readSelectionFromPasteboard:)
9854 (writeSelectionToPasteboard:types:): New stubbed-out methods for
9855 NSServicesRequests protocol. (Bug#1435)
9856 (ns_dumpglyphs_stretch): New function.
9857 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
9858 of 2008-11-15 to other terms. (Bug#615)
9859
9860 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9861
9862 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9863
9864 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9865 call for Sparc64.
9866
9867 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9868
9869 * nsfns.m:
9870 * nsgui.h:
9871 * nsmenu.m:
9872 * nsselect.m:
9873 * nsterm.h:
9874 * nsterm.m: Remove '23' comments that indicated code added during
9875 update from emacs-20 -> emacs-23.
9876
9877 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9878
9879 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
9880 ns_alternate_modifier. (Bug#1217)
9881
9882 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9883 Display all shortcuts, including those w/o super modifier.
9884
9885 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9886
9887 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
9888
9889 * fileio.c (Vwrite_region_post_annotation_function)
9890 (Vwrite_region_annotation_buffers): New vars.
9891 (build_annotations_unwind): Just reset
9892 Vwrite_region_annotation_buffers.
9893 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9894 Call write-region-post-annotation-function.
9895 (build_annotations): Add to Vwrite_region_annotation_buffers if
9896 buffer changes.
9897
9898 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9899
9900 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9901 Tiger.
9902 * nsfns.m (ns_do_applescript):
9903 Conditionalize typeUTF16ExternalRepresentation on Tiger.
9904
9905 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9906
9907 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9908
9909 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9910
9911 * nsmenu.m (NSMENUPROFILE): Change #if style.
9912
9913 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9914
9915 * nsterm.m (x_set_frame_alpha): Add prototype.
9916 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9917 handle Ctrl-tab. (Bug#1841)
9918 (ns_get_color): Use unsigned long long for scanned hex string value.
9919 (ns_term_shutdown): Abort on non SIGTERM signals.
9920 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
9921 (EmacsPrefsController-setPanelFromDefaultValues): New function.
9922 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
9923 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
9924 (ns_defined_color): Fix settings of the XColor variable fields:
9925 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
9926
9927 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
9928 DPI. (Bug#1316)
9929 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9930 values in onTiger section.
9931
9932 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
9933
9934 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9935 Check return value of font_spec_from_name.
9936 (Fx_list_fonts): Doc fix. (Bug#1951)
9937
9938 * font.c (font_spec_from_name): Return Qnil if font name could not
9939 be parsed.
9940 (font_parse_name): Treat a `?' character as part of an XLFD.
9941
9942 * fns.c (Fsubstring): Doc fix.
9943
9944 2009-01-19 Kenichi Handa <handa@m17n.org>
9945
9946 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
9947 (ftfont_list): Likewise.
9948
9949 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
9950
9951 * dbusbind.c (Fdbus_register_signal):
9952 * process.c (conv_sockaddr_to_lisp):
9953 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9954
9955 * callproc.c (Fgetenv_internal): Doc fix.
9956
9957 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
9958
9959 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9960 it is not even used.
9961
9962 2009-01-16 Glenn Morris <rgm@gnu.org>
9963
9964 * font.c (Ffont_variation_glyphs): Silence compiler.
9965
9966 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
9967
9968 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9969 Reported by David Robinow <drobinow@gmail.com>.
9970
9971 2009-01-15 Kenichi Handa <handa@m17n.org>
9972
9973 * coding.c (detect_coding_system): Fix handling of null_byte_found.
9974
9975 2009-01-14 Jason Rumney <jasonr@gnu.org>
9976
9977 * frame.c (x_set_font): Always store a font to the font parameter,
9978 never a fontset. (Bug#1562)
9979
9980 2009-01-14 Kenichi Handa <handa@m17n.org>
9981
9982 * coding.c (TWO_MORE_BYTES): New macro.
9983 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
9984
9985 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
9986
9987 * font.c (font_clear_prop): If clearing the family, clear the font
9988 width index too.
9989
9990 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
9991
9992 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
9993
9994 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9995 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9996 functions, use sizeof.
9997
9998 2009-01-12 Martin Rudalics <rudalics@gmx.at>
9999
10000 * keyboard.c (read_char): Fix case where last_nonmenu_event
10001 returned a bad value with submenus. (Bug#447)
10002
10003 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
10004
10005 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10006 family, clear the font width index too.
10007
10008 2009-01-11 Jason Rumney <jasonr@gnu.org>
10009
10010 * keyboard.c (cmd_error_internal): Exit when errors occur before
10011 frame creation and not in daemon mode. (Bug#1836)
10012
10013 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
10014
10015 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10016 of a display vector, backtrack.
10017 (try_window_reusing_current_matrix): Check glyph type before
10018 referencing charpos member.
10019
10020 2009-01-10 Eli Zaretskii <eliz@gnu.org>
10021
10022 Fix Bug #876:
10023
10024 * coding.c (inhibit_null_byte_detection): New variable.
10025 (detect_coding, detect_coding_system): Don't pay attention to null
10026 bytes if inhibit_null_byte_detection is non-zero.
10027 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
10028 <inhibit-iso-escape-detection>: Doc fix.
10029
10030 2009-01-09 Jason Rumney <jasonr@gnu.org>
10031
10032 * w32font.c (add_font_entity_to_list): Don't report unknown
10033 Windows charset as any unrecognized registry. (Bug#1548)
10034 Only report Unicode Plane 2 fonts as unicode-sip.
10035
10036 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
10037
10038 * xfaces.c (Fx_font_family_list): Delete function.
10039 Move compatibility version to faces.el.
10040
10041 * font.c (Ffont_family_list): Return a list of strings, not symbols.
10042
10043 2009-01-09 Martin Rudalics <rudalics@gmx.at>
10044
10045 * frame.c (x_set_frame_parameters): Remember requested value for
10046 fullscreen before it's reset by the parameter handler.
10047
10048 2009-01-09 Glenn Morris <rgm@gnu.org>
10049
10050 * keyboard.c (last_command_char): For clarity, rename to...
10051 (last_command_event): ... and update all users.
10052 (last_input_char): For clarity, rename to...
10053 (last_input_event): ... and update all users.
10054 (last-command-char, last-input-char): Move to subr.el as aliases.
10055 * cmds.c, commands.h: Update for last_command_char rename.
10056
10057 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
10058
10059 * font.c (font_open_for_lface): Handle unspecified height attribute.
10060
10061 2009-01-08 Jason Rumney <jasonr@gnu.org>
10062
10063 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10064 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10065 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10066 Don't declare.
10067 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
10068 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10069
10070 2009-01-07 Kenichi Handa <handa@m17n.org>
10071
10072 * fileio.c (Finsert_file_contents): In the case of replace,
10073 remember the coding system used for decoding in
10074 coding_system (Bug#1039).
10075
10076 * coding.c (decode_coding_utf_8): Check byte_after_cr before
10077 breaking the loop. (Bug#870)
10078 (decode_coding_utf_16, decode_coding_emacs_mule)
10079 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10080 (decode_coding_charset): Likewise.
10081
10082 2009-01-05 Martin Rudalics <rudalics@gmx.at>
10083
10084 * frame.c (x_set_frame_parameters): Make sure height (width) get
10085 applied when fullwidth (fullheight) is set. (Bug#1522)
10086
10087 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
10088
10089 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10090 (utc_base): Declare as ULONGLONG, not long double.
10091 (convert_time_raw): Delete.
10092 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10093 (initialize_utc_base): New function.
10094 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10095 (convert_from_time_t): Use initialize_utc_base; compute result with
10096 64-bit arithmetic.
10097 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10098
10099 2009-01-03 Eli Zaretskii <eliz@gnu.org>
10100
10101 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
10102 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10103 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10104 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10105 [!subprocesses]: Define.
10106 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10107 (Flist_system_processes, Fsystem_process_attributes)
10108 [!subprocesses]: Call list_system_processes and
10109 system_process_attributes instead of returning Qnil.
10110
10111 * dosfns.c (system_process_attributes, list_system_processes):
10112 New functions.
10113
10114 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10115
10116 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10117 Don't use the default (no-op) implementation.
10118
10119 2009-01-03 Jason Rumney <jasonr@gnu.org>
10120
10121 * keyboard.c (parse_modifiers_uncached): Wheel events are
10122 clicks (bug#687).
10123
10124 * w32term.c (x_query_colors, x_query_color): New functions.
10125
10126 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10127 (svg_load_image): Cast returned pointers from dynamically loaded
10128 functions. Eliminate W32 specific code.
10129
10130 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10131
10132 * nsfns.m (x_set_foreground_color, x_set_background_color)
10133 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10134 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10135 x_ prefix instead of ns_. Update references.
10136 (syms_of_nsfns): Add a FIXME comment.
10137
10138 * nsterm.m (x_set_cursor_type): New prototype.
10139 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10140
10141 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10142 for Solaris instead of incorrectly providing Qutime and Qcutime.
10143
10144 2009-01-02 Eli Zaretskii <eliz@gnu.org>
10145
10146 * w32.c (process_times): Compute sum of utime and stime.
10147 (system_process_attributes): Add Qtime to the alist.
10148
10149 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10150 and add them to the alist.
10151
10152 * process.c (top level) <Qtime, Qctime>: New variables.
10153 (syms_of_process): staticpro them.
10154 (Fsystem_process_attributes): Add their documentation to the doc
10155 string.
10156
10157 * process.h: Declare Qtime and Qctime.
10158
10159 2009-01-02 Jason Rumney <jasonr@gnu.org>
10160
10161 * image.c (Qgobject): New symbol.
10162 (syms_of_image): Initialize it.
10163 (init_svg_functions): Load some functions from gobject library.
10164
10165 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10166
10167 * frame.c (make_terminal_frame): Remove redundant code and useless
10168 block.
10169
10170 2009-01-01 Andreas Schwab <schwab@suse.de>
10171
10172 * process.c (conv_sockaddr_to_lisp): Add workaround for
10173 getsockname bug on BSD.
10174
10175 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
10176
10177 * xfns.c (x_create_tip_frame): Set border width of the X window.
10178
10179 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
10180
10181 2009-01-01 Jason Rumney <jasonr@gnu.org>
10182
10183 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
10184 Don't block input, as per earlier xterm.c changes.
10185
10186 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10187
10188 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10189 (ns_appkit_version_int): New function.
10190 (x-server-version): Use ns_appkit_version_int and follow 21+
10191 convention of returning 3 integers.
10192
10193 2008-12-30 Kenichi Handa <handa@m17n.org>
10194
10195 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10196 (CHAR_SURROGATE_PAIR_P): New macro.
10197
10198 * font.h (struct font_driver): New member get_variation_glyphs.
10199
10200 * font.c (font_range): Don't require a font for a variation selector.
10201 (Ffont_variation_glyphs): New function.
10202 (syms_of_font): Defsubr it.
10203
10204 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10205 ftfont_variation_glyphs.
10206 (setup_otf_gstring): New function.
10207 (ftfont_drive_otf): Use it.
10208 (ftfont_shape_by_flt): Handle variation selector.
10209 (ftfont_variation_glyphs): New function.
10210
10211 2008-12-30 Martin Rudalics <rudalics@gmx.at>
10212
10213 * frame.c (Vemacs_iconified): Remove.
10214
10215 2008-12-30 Jason Rumney <jasonr@gnu.org>
10216
10217 * frame.c (store_frame_param, x_get_arg): Enable newer code on
10218 WINDOWSNT too, as related changes have already been synced. (Bug#117)
10219
10220 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
10221
10222 * indent.c (Fvertical_motion): Don't advance iterator if we have
10223 reseated to the desired position.
10224
10225 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10226 checking for pos match.
10227
10228 2008-12-30 Kenichi Handa <handa@m17n.org>
10229
10230 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10231 just get the low 8-bit of the code.
10232
10233 * font.c (font_intern_prop): Validate str as multibyte.
10234
10235 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10236
10237 * dispextern.h (struct face): Move lface and hash from the middle
10238 of bitfields.
10239
10240 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10241
10242 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10243
10244 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10245 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10246 instead of intervals.h.
10247
10248 2008-12-26 Andreas Schwab <schwab@suse.de>
10249
10250 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10251 cons.
10252
10253 2008-12-26 Martin Rudalics <rudalics@gmx.at>
10254
10255 * textprop.c (Qminibuffer_prompt): New variable.
10256 (syms_of_textprop): Initialize it.
10257 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10258 in minibuffer-prompt face. (Bug#1662)
10259
10260 2008-12-25 Jason Rumney <jasonr@gnu.org>
10261
10262 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10263
10264 2008-12-24 Jason Rumney <jasonr@gnu.org>
10265
10266 * ralloc.c (r_alloc_reset_variable): New function.
10267
10268 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
10269 record of what points where. (Bug#716)
10270
10271 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10272
10273 * minibuf.c (read_minibuf): Follow the non-interactive case when
10274 running as a daemon, before detaching.
10275
10276 2008-12-22 Andreas Schwab <schwab@suse.de>
10277
10278 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10279 * gtkutil.c (free_widget_value): Use xfree instead of free.
10280
10281 2008-12-22 Martin Rudalics <rudalics@gmx.at>
10282
10283 * frame.c (delete_frame): New function derived from
10284 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10285 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10286 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10287 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10288 * frame.h: Extern delete_frame.
10289 * window.c (window_loop):
10290 * terminal.c (delete_terminal):
10291 * xterm.c (x_connection_closed):
10292 * xfns.c (Fx_hide_tip):
10293 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
10294
10295 2008-12-21 Jason Rumney <jasonr@gnu.org>
10296
10297 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10298 when character maps to .notdef character.
10299
10300 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10301
10302 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10303
10304 2008-12-20 Jason Rumney <jasonr@gnu.org>
10305
10306 * frame.c (Fmake_terminal_frame): Raise an error when called from
10307 a graphical frame on Windows. (Bug#1325)
10308
10309 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10310
10311 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10312
10313 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
10314
10315 * minibuf.c (Fread_buffer): Doc fix.
10316
10317 2008-12-20 Jason Rumney <jasonr@gnu.org>
10318
10319 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
10320 server name in UNC paths. (Bug#719)
10321
10322 * coding.c (decode_coding): Clear chars_at_source flag when using
10323 charbuf. (Bug#1035)
10324
10325 2008-12-19 Daniel Engeler <engeler@gmail.com>
10326
10327 * sysdep.c (serial_configure): Fix typo.
10328
10329 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10330
10331 * sysdep.c: Include alloca.h.
10332 (system_process_attributes): Add implementation for Solaris.
10333
10334 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
10335
10336 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10337
10338 Reorganize implementation of Flist_system_processes and
10339 Fsystem_process_attributes. No functional changes.
10340 * process.c: Don't #include pwd.h, grp.h and limits.h.
10341 (Flist_system_processes): Just call list_system_processes.
10342 (Fsystem_process_attributes): Just call system_process_attributes.
10343 (procfs_list_system_processes, time_from_jiffies)
10344 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10345 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10346
10347 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10348 (list_system_processes): Rename from
10349 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10350 Provide a do nothing implementation.
10351 (system_process_attributes): Rename from
10352 procfs_list_system_processes.
10353 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10354 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
10355
10356 * w32.c (list_system_processes): Rename from
10357 w32_list_system_processes.
10358 (system_process_attributes): Rename from
10359 w32_system_process_attributes.
10360
10361 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10362
10363 * process.h (w32_list_system_processes)
10364 (w32_system_process_attributes): Remove.
10365 (list_system_processes, system_process_attributes):
10366 New prototypes.
10367
10368 2008-12-19 Kenichi Handa <handa@m17n.org>
10369
10370 * xfont.c (xfont_decode_coding_xlfd): New function.
10371 (xfont_encode_coding_xlfd): New function.
10372 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10373 (xfont_list): Decode and encode XLFD by iso-8859-1.
10374 (xfont_match): Likewise.
10375 (xfont_list_family): Likewise.
10376 (xfont_open): Likewise.
10377
10378 * ftfont.c (ftfont_open): Generate a multibyte string if given
10379 names are utf-8.
10380
10381 * xftfont.c (xftfont_open): Generate a multibyte string if given
10382 names are utf-8.
10383
10384 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10385
10386 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10387 changed.
10388 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10389 clicked on a detached tool bar button.
10390
10391 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10392
10393 * emacs.c (main): Print and error and exit when no data is read
10394 from the pipe.
10395
10396 2008-12-17 Jason Rumney <jasonr@gnu.org>
10397
10398 * w32font.c (w32font_has_char): Always return -1.
10399
10400 2008-12-16 Kenichi Handa <handa@m17n.org>
10401
10402 * font.c (font_open_entity): Fix previous change.
10403
10404 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10405
10406 * process.c: Include <limits.h>.
10407
10408 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
10409
10410 * font.c (font_update_drivers): Fix mistake in reconstructing the
10411 driver list.
10412
10413 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
10414
10415 * font.c (font_clear_cache): Fix format of font cache data.
10416
10417 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
10418
10419 * xftfont.c (xftfont_open): Free Xft font pattern if
10420 XftFontOpenPattern fails.
10421
10422 * xterm.c (x_free_frame_resources): Remove extraneous call to
10423 free_frame_faces.
10424
10425 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10426
10427 * xterm.c (x_delete_display): Move xim_close_dpy call to
10428 x_delete_terminal.
10429 (x_delete_terminal): Call xim_close_dpy.
10430
10431 2008-12-13 Jason Rumney <jasonr@gnu.org>
10432
10433 * w32font.c (intern_font_name): New function.
10434 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10435 (w32font_open_internal, Fx_select_font): Decode font name.
10436 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10437
10438 * w32font.h (intern_font_name): Declare new function.
10439
10440 * w32uniscribe.c (add_opentype_font_name_to_list):
10441 Use intern_font_name.
10442
10443 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10444
10445 * frame.c (Fdelete_frame): Call free_font_driver_list.
10446
10447 * font.c (free_font_driver_list): Implement missing function.
10448
10449 * w32term.c (w32_term_init): Don't initialize the image cache
10450 here; it will be done in init_frame_faces.
10451
10452 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10453 (struct x_display_info): Remove unused member null_pixel. New
10454 member xim_callback_data.
10455
10456 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10457 (xim_initialize): Save pointer to callback function data.
10458 (xim_close_dpy): Free callback function data. Call XCloseIM,
10459 reverting 2008-11-04 change by David Smith.
10460 (x_term_init): Don't initialize the image cache here; it will be
10461 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10462 (x_delete_display): Free x_dnd_atoms member.
10463
10464 2008-12-13 Kenichi Handa <handa@m17n.org>
10465
10466 * font.c (font_rescale_ratio): Moved from xfaces.c.
10467 Argument type changed. Handle a font-spec too.
10468 (font_score): Check Vface_font_rescale_alist.
10469 (font_open_entity): Likewise. (Bug#1547)
10470
10471 * xfaces.c (font_rescale_ratio): Moved to font.c.
10472
10473 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10474
10475 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10476
10477 2008-12-12 Jason Rumney <jasonr@gnu.org>
10478
10479 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10480 Vwindow_system_version to the real w32 major version.
10481
10482 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10483
10484 * term.c (init_tty): Move setting the terminal name before the
10485 potential user: maybe_fatal.
10486
10487 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
10488
10489 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10490 all callers changed. Call free_frame_faces to free the face cache.
10491
10492 2008-12-11 Jason Rumney <jasonr@gnu.org>
10493
10494 * w32font.c (fill_in_logfont): Don't assume symbol script means
10495 SYMBOL_CHARSET. (Bug#547)
10496
10497 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
10498 size for surrogates. (Bug#1096, bug#872)
10499
10500 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10501
10502 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10503
10504 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10505
10506 * process.c (Fsystem_process_attributes, syms_of_process):
10507 Fix typo in name of Ssystem_process_attributes.
10508 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10509
10510 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10511
10512 * syntax.c (Fmodify_syntax_entry): Doc fix.
10513
10514 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
10515
10516 * font.c (Ffont_spec): Move usage to end of docstring.
10517
10518 2008-12-10 Jason Rumney <jasonr@gnu.org>
10519
10520 * w32font.c (Qcham): New symbol.
10521 (font_supported_scripts): Add cham, and comments for other new
10522 scripts in bitfield from OpenType spec.
10523 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10524 contain characters beyond the bmp.
10525
10526 2008-12-10 Kenichi Handa <handa@m17n.org>
10527
10528 * ftfont.c (fc_charset_table): Add "unicode-sip".
10529 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
10530 Qunicode_sip.
10531
10532 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
10533
10534 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10535 (Fcoding_system_put): Use QCdefault_char.
10536 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10537
10538 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
10539
10540 * xftfont.c (syms_of_xftfont): Fix typo.
10541
10542 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
10543
10544 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10545
10546 * emacs.c (main): Close daemon_pipe on exec.
10547
10548 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
10549
10550 * termchar.h (struct tty): New members termcap_term_buffer and
10551 termcap_strings_buffer.
10552
10553 * term.c (encode_terminal_code): Free any previous memory blocks
10554 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
10555 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10556 All callers changed.
10557 (init_tty): Store termcap data and string buffers in new struct
10558 tty members termcap_term_buffer and termcap_strings_buffer.
10559 (delete_tty): Free them.
10560 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
10561
10562 2008-12-07 Seiji Zenitani <zenitani@mac.com>
10563
10564 * nsfns.m (ns_set_background_color): Remove code duplication.
10565 It was a substitute for face-transparency on OS X 10.3.
10566
10567 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
10568
10569 * coding.c (make_conversion_work_buffer): Disable buffer
10570 modification hooks in the work buffer.
10571
10572 2008-12-05 Eli Zaretskii <eliz@gnu.org>
10573
10574 * process.c (procfs_system_process_attributes): If `nread' has a
10575 negative value, assign zero to it.
10576
10577 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
10578
10579 * eval.c (Vdebug_on_error): Doc fix.
10580
10581 2008-12-05 Kenichi Handa <handa@m17n.org>
10582
10583 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10584 second character is a combining character.
10585
10586 2008-12-05 Eli Zaretskii <eliz@gnu.org>
10587
10588 * process.c (procfs_system_process_attributes): Don't use cmd,
10589 cmdsize, and q without initializing them first.
10590
10591 2008-12-04 Jason Rumney <jasonr@gnu.org>
10592
10593 * w32font.c (w32font_draw): Initialize orig_clip before getting
10594 it, and delete it when finished.
10595
10596 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10597
10598 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10599 case when running as a daemon before detaching.
10600
10601 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
10602
10603 * w32.c (init_environment): Don't unload library shell32.dll.
10604
10605 2008-12-03 Kenichi Handa <handa@m17n.org>
10606
10607 * font.c (font_at): Set `multibyte' at first.
10608
10609 * coding.c (decode_coding_charset): Check type of an element of
10610 vector VALIDS.
10611 (encode_coding_emacs_mule): Be sure to set `code'.
10612
10613 * fontset.c (face_for_char): Handle invalid charset property correctly.
10614 (font_for_char): Likewise.
10615
10616 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
10617
10618 * font.c (Fopen_font): Compute pixel size correctly.
10619 (font_update_lface): Handle fonts with corrupted size specs,
10620 i.e. non-int and non-float.
10621
10622 * ftfont.c (ftfont_match): Initialize entity variable.
10623 (ftfont_resolve_generic_family): Avoid using uninitialized var.
10624 (ftfont_list_family): Initialize list var earlier.
10625
10626 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10627
10628 * xterm.c (x_draw_glyph_string): Fall back on
10629 underline_minimum_offset for underline position.
10630
10631 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10632
10633 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10634
10635 * character.c (c_string_width): Specify the type for LEN.
10636
10637 2008-12-03 Kenichi Handa <handa@m17n.org>
10638
10639 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
10640 (decode_coding_utf_8): Likewise.
10641 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
10642 (produce_chars): Initialize consumed_chars to 0.
10643
10644 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
10645
10646 * keyboard.c (make_lispy_position): Only use PT if the selected
10647 window is current.
10648
10649 2008-12-02 Andreas Schwab <schwab@suse.de>
10650
10651 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10652
10653 * doprnt.c (doprnt1): Fix size of charbuf.
10654
10655 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
10656
10657 * keyboard.c (timer_check): Revert last change.
10658
10659 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
10660
10661 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10662
10663 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
10664
10665 * makefile.w32-in: Update dependencies.
10666 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10667
10668 2008-12-01 Andreas Schwab <schwab@suse.de>
10669
10670 * font.c (register_font_driver): Use xmalloc.
10671 (font_put_frame_data): Likewise.
10672
10673 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
10674
10675 * xfaces.c (realize_x_face): Make abort condition clearer.
10676
10677 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10678
10679 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
10680
10681 * keyboard.c (timer_check): After a timer runs, ensure that the
10682 selected window's buffer is current.
10683
10684 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
10685
10686 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10687 It was accidentally restored by the Unicode merge.
10688
10689 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10690
10691 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
10692
10693 * w32proc.c: Include "coding.h".
10694 (Fw32_short_file_name): Encode filename passed to Windows API.
10695 (Fw32_long_file_name): Encode filename passed to Windows API and
10696 decode back the result. (Bug#1433)
10697
10698 2008-11-29 Kenichi Handa <handa@m17n.org>
10699
10700 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10701 not before accessing it.
10702
10703 * charset.c (Fdefine_charset_internal): After calculating
10704 min_char, max_char, and fastmap, copy the charset structure again.
10705 (encode_char): Fix the previous change.
10706
10707 2008-11-28 Seiji Zenitani <zenitani@mac.com>
10708
10709 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10710
10711 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10712
10713 * nsterm.m (x_set_frame_alpha): New function.
10714
10715 2008-11-27 Eli Zaretskii <eliz@gnu.org>
10716
10717 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10718
10719 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
10720
10721 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10722 pointer to check_face_name.
10723
10724 2008-11-27 Kenichi Handa <handa@m17n.org>
10725
10726 * category.h (SET_CATEGORY_SET): Call set_category_set.
10727 (set_category_set): Extern it.
10728
10729 * category.c (hash_get_category_set): New function.
10730 (Fmodify_category_entry): Adjusted for the change of
10731 char_table_ref_and_range. Call hash_get_category_set to get a
10732 category set to store in the table.
10733
10734 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10735 Funify_charset.
10736
10737 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
10738 (DECODE_CHAR): Check if the decoder vector is ready.
10739 (ENCODE_CHAR): Check if the encoder char-table is ready.
10740 (maybe_unify_char): Extern it.
10741
10742 * charset.c (Vchar_unified_charset_table): Delete it.
10743 (inhibit_load_charset_map): New variable.
10744 (temp_charset_work): New variable.
10745 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10746 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10747 New macros.
10748 (load_charset_map): Meaning of control_flag changed. If
10749 inhibit_load_charset_map is nonzero, setup a table in
10750 temp_charset_work.
10751 (load_charset): New argument control_flag.
10752 (map_charset_for_dump): New function.
10753 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10754 map_charset_for_dump.
10755 (Fdefine_charset_internal): If the charset method is MAP, load
10756 mapping tables by calling load_charset.
10757 (Funify_charset): Don't load a mapping table but directly set
10758 Vchar_unify_table.
10759 (maybe_unify_char): New function.
10760 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10761 Handle the case of inhibit_load_charset_map being nonzero.
10762 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10763 Handle the case of inhibit_load_charset_map being nonzero.
10764 (Fclear_charset_maps): Just free temp_charset_work.
10765 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10766 variable.
10767
10768 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10769 change of char_table_ref_and_range.
10770 (char_table_ref_and_range): Change the meaning of argument FROM
10771 and TO. Now the caller must provide initial values for *FROM
10772 and *TO.
10773
10774 * fontset.c (fontset_add): Adjusted for the change of
10775 char_table_ref_and_range.
10776 (fontset_get_font_group): Likewise.
10777 (Ffontset_info): Likewise.
10778
10779 * keymap.c (describe_vector): Adjusted for the change of
10780 char_table_ref_and_range. For char-table, put boundary between
10781 non-ASCII and 8-bit characters.
10782
10783 * print.c (print_object): For bool-vector, delete unnecessary
10784 check of ASCII_BYTE_P.
10785
10786 2008-11-26 Jason Rumney <jasonr@gnu.org>
10787
10788 * w32font.c (w32font_open_internal): Don't include external
10789 leading in font height. (Bug#879)
10790
10791 2008-11-26 Glenn Morris <rgm@gnu.org>
10792
10793 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10794 redefinition with ifdef. (Bug#1383)
10795
10796 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10797
10798 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10799
10800 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10801
10802 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10803 New EmacsView methods.
10804 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10805 Fixes bug #1048,1357,1414.
10806
10807 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10808
10809 Fix bug #1362.
10810 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10811 is not an indexed color.
10812 * nsterm.m (free_indexed_color): Add argument checking.
10813 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10814
10815 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
10816
10817 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10818 Document confirm-after-completion value for
10819 minibuffer-completion-confirm.
10820
10821 2008-11-24 Jason Rumney <jasonr@gnu.org>
10822
10823 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10824 warning.
10825
10826 2008-11-23 Jason Rumney <jasonr@gnu.org>
10827
10828 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10829 restored before returning.
10830
10831 * w32font.c (check_face_name): New function.
10832 (add_font_entity_to_list): Use it to filter out common substituted
10833 fonts. (Bug#642)
10834
10835 2008-11-22 Martin Rudalics <rudalics@gmx.at>
10836
10837 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10838 confirm-nonexistent-file-or-buffer in doc-string.
10839
10840 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10841
10842 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10843 Fix copy/paste typo. Add checks.
10844
10845 2008-11-21 Kenichi Handa <handa@m17n.org>
10846
10847 * coding.c (detect_coding_iso_2022): Reject invalid composition
10848 sequence.
10849 (DECODE_COMPOSITION_START): If the current source is the last
10850 block, and the current composition doesn't end, regard this
10851 sequence as invalid.
10852 (decode_coding_iso_2022): Handle invalid composition sequence.
10853
10854 2008-11-20 Martin Rudalics <rudalics@gmx.at>
10855
10856 * window.c (coordinates_in_window): Don't return
10857 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10858 line when the window is not the rightmost one. (Bug#1372)
10859
10860 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10861
10862 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10863
10864 2008-11-15 Eli Zaretskii <eliz@gnu.org>
10865
10866 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10867 and bright_bg if noninteractive is non-zero.
10868
10869 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10870
10871 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10872 x_draw_glyph_string_background.
10873
10874 * w32term.c (x_draw_glyph_string): Likewise.
10875
10876 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
10877
10878 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10879 the next glyph string once past the overhang width.
10880
10881 * nsterm.m (ns_draw_glyph_string): Likewise.
10882
10883 * w32term.c (x_draw_glyph_string): Likewise.
10884
10885 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10886
10887 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10888 double file close.
10889
10890 2008-11-14 Martin Rudalics <rudalics@gmx.at>
10891
10892 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10893 dedicated status of window before attempting to display another
10894 buffer in it.
10895
10896 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
10897
10898 * msdos.c (Fmsdos_long_file_names):
10899 (syms_of_msdos) <dos-unsupported-char-glyph>:
10900 * dosfns.c (Fint86): Fix typos in docstrings.
10901
10902 2008-11-14 Eli Zaretskii <eliz@gnu.org>
10903
10904 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10905
10906 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10907
10908 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10909
10910 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10911
10912 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10913
10914 * frame.h: Negative alpha means "don't touch".
10915
10916 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10917
10918 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10919
10920 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10921
10922 * hftctl.c:
10923 * chpdef.h:
10924 * acldef.h: Remove files used only for systems no longer supported.
10925
10926 * Makefile.in: Fix .o alphabetical ordering.
10927 (hftctl.o): Remove dependency, file removed.
10928 (keymap.o, print.o): Depend on charset.h.
10929
10930 2008-11-10 Kenichi Handa <handa@m17n.org>
10931
10932 * character.c (Fget_byte): Fix and make it faster for unibyte target.
10933
10934 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
10935
10936 * dired.c (file_name_completion): If completion_ignore_case is
10937 enabled, ignore case when checking completion-regexp-list.
10938
10939 2008-11-08 Eli Zaretskii <eliz@gnu.org>
10940
10941 * vm-limit.c (get_lim_data): Fix last change.
10942
10943 2008-11-08 Kenichi Handa <handa@m17n.org>
10944
10945 * character.c (Fget_byte): New function.
10946 (syms_of_character): Defsubr Fget_byte.
10947
10948 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
10949
10950 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10951 cursor position is valid after scrolling.
10952
10953 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
10954
10955 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10956
10957 2008-11-06 Glenn Morris <rgm@gnu.org>
10958
10959 * xterm.c (handle_one_xevent): Don't let popup menus cause
10960 mouse-autoselect-window related window switching. (Bug#1261)
10961
10962 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10963
10964 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10965
10966 2008-11-04 Andreas Schwab <schwab@suse.de>
10967
10968 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10969
10970 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
10971
10972 * xfns.c (Fx_wm_set_size_hint): New function.
10973
10974 2008-11-03 Martin Rudalics <rudalics@gmx.at>
10975
10976 * textprop.c (Fprevious_single_char_property_change): Return 0
10977 when there's no change in a string. (Bug#1301)
10978
10979 2008-11-02 Martin Rudalics <rudalics@gmx.at>
10980
10981 * frame.c (do_switch_frame): New argument NORECORD passed to
10982 Fselect_window.
10983 (Fselect_frame): New argument NORECORD passed to
10984 do_switch_frame.
10985 (Fset_frame_selected_window): New argument NORECORD passed to
10986 Fselect_frame.
10987 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10988 in call of do_switch_frame.
10989 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10990 Handle NORECORD argument in call of Fselect_frame.
10991 * lisp.h (do_switch_frame, Fselect_frame)
10992 (Fset_frame_selected_window): Adjust declarations.
10993 * window.c (select_frame_norecord): New function.
10994 (run_window_configuration_change_hook): Use it and call
10995 Fselect_frame with NORECORD set.
10996 (Fselect_window): Pass NORECORD to Fselect_frame.
10997 (Fset_window_configuration): Handle NORECORD argument in call of
10998 do_switch_frame.
10999 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11000 Fset_frame_selected_window.
11001 * keyboard.c (command_loop_1): Handle NORECORD in call of
11002 Fselect_frame (currently ifdefd).
11003
11004 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11005
11006 * emacs.c (USAGE2): Untabify.
11007
11008 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11009
11010 * composite.c (fill_gstring_header): Fix copy/paste typo.
11011
11012 2008-10-31 Martin Rudalics <rudalics@gmx.at>
11013
11014 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11015 (Fother_window): Rename argument and rewrite doc-string.
11016 (select_window_norecord): Fix return value. (Bug#1276)
11017
11018 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
11019
11020 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11021 new frames overriding foreground for tooltips. Based on similar patch
11022 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11023
11024 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
11025
11026 * emacs.c (Fdaemon_initialized): Initialize nfd.
11027
11028 2008-10-29 Martin Rudalics <rudalics@gmx.at>
11029
11030 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11031 (Fwindow_text_height): Clarify doc-strings.
11032 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11033 doc-string of window-scroll-functions.
11034
11035 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11036
11037 * category.c (syms_of_category): Fix typo in docstring.
11038
11039 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
11040
11041 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11042 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11043 Fix typos in docstrings.
11044
11045 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11046
11047 * emacs.c (daemon_pipe): Make non-static.
11048 (IS_DAEMON): Move definition ...
11049 * lisp.h (IS_DAEMON): ... here.
11050 (daemon_pipe): Declare.
11051 (is_daemon): Remove.
11052 * dispnew.c (init_display): Use IS_DAEMON.
11053
11054 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11055
11056 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11057 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11058
11059 * emacs.c (is_daemon): Remove.
11060 (main): Don't set is_daemon.
11061 (IS_DAEMON): New macro.
11062 (Fdaemonp, Fdaemon_initialized): Use it.
11063 (Fdaemon_initialized): Write a char into the pipe to make sure the
11064 parent exits.
11065 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11066
11067 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
11068
11069 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11070 over-sized glyph, draw it with the default glyph width.
11071
11072 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11073 glyph, draw it with the default glyph width.
11074
11075 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11076 glyph, draw it with the default glyph width.
11077
11078 * xdisp.c (try_scrolling): When computing the distance from the
11079 scroll margin to PT, try moving some distance past the window
11080 bottom before giving up.
11081
11082 2008-10-27 Martin Rudalics <rudalics@gmx.at>
11083
11084 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11085 (Fset_window_buffer): Explain in doc-string that a window can be
11086 "strongly" dedicated to its buffer.
11087
11088 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11089
11090 * emacs.c (daemon_name): New variable.
11091 (main): Deal with --daemon=SERVER_NAME.
11092 (Fdaemonp): Return a name if one was passed to --daemon.
11093
11094 2008-10-26 Romain Francoise <romain@orebokech.com>
11095
11096 * emacs.c (daemon_pipe): New variable.
11097 (main): Create a pipe before forking, make the parent exit only after
11098 the child has closed its end of the pipe. Move closing the
11099 descriptors ...
11100 (Fdaemon_initialized): ... here. New function.
11101
11102 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11103
11104 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11105 the previous unoptimized table.
11106
11107 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11108 the distinction between non-nil and non-t value of `dedicated'.
11109
11110 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
11111
11112 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
11113 read_char_minibuf_menu_text is large enough to hold the menu string.
11114
11115 2008-10-25 Martin Rudalics <rudalics@gmx.at>
11116
11117 * window.c (Fget_buffer_window, Fdelete_windows_on)
11118 (Freplace_buffer_in_windows): Make buffer argument optional and
11119 rename to buffer_or_name.
11120
11121 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
11122
11123 * xdisp.c (handle_single_display_spec, handle_display_prop):
11124 Undo 2005-05-16 change.
11125 (handle_stop): Pop iterator if it's loaded with an empty string.
11126 (get_overlay_strings_1): Don't save iterator if it's loaded with
11127 an empty string (bug#1201).
11128
11129 2008-10-24 Kenichi Handa <handa@m17n.org>
11130
11131 * ftfont.c (ftfont_otf_features): Fix previous change.
11132 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11133 calling ftfont_otf_features.
11134
11135 2008-10-24 Kenichi Handa <handa@m17n.org>
11136
11137 * font.c (font_match_p): Fix for the case that a vector of
11138 characters is in script-representative-chars.
11139
11140 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
11141
11142 * dbusbind.c (xd_in_read_queued_messages): New variable.
11143 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
11144 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11145 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
11146 macro. (Bug#1186)
11147
11148 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
11149
11150 * s/sol2-10.h: New file.
11151
11152 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
11153
11154 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11155 poor beast has survived 9+ years and the jump from xterm.c!).
11156
11157 2008-10-23 Martin Rudalics <rudalics@gmx.at>
11158
11159 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11160 Reword doc-string.
11161 (Fbury_buffer): In doc-string say what happens to the buffer's window.
11162
11163 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
11164
11165 * character.c (syms_of_character) <script-representative-chars>:
11166 <unicode-category-table>: Doc fixes.
11167
11168 2008-10-23 Noah Friedman <friedman@splode.com>
11169
11170 * coding.c (make_conversion_work_buffer): Check that
11171 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11172 Fget_buffer_create.
11173
11174 2008-10-23 Kenichi Handa <handa@m17n.org>
11175
11176 * font.c (font_add_log): Check the values of extra properties.
11177
11178 2008-10-22 Martin Rudalics <rudalics@gmx.at>
11179
11180 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11181 Reword doc-string.
11182 (Fset_window_parameter): Use NILP.
11183 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
11184 (Frecenter): Use "selected" instead of "current" window in doc-strings.
11185
11186 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
11187
11188 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11189
11190 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11191
11192 * nsfns.m (ns_appkit_version): New function.
11193 (x-server-version): Use it.
11194 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11195 (x-server-vendor): Don't check_ns().
11196
11197 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11198
11199 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
11200
11201 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11202 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11203
11204 2008-10-22 Kenichi Handa <handa@m17n.org>
11205
11206 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11207 scripts.
11208
11209 * category.c (word_boundary_p): Check scripts instead of charset.
11210 Handle nil value in word-separating-categories and
11211 word-combining-categories.
11212 (syms_of_category): Fix docstrings of word-separating-categories
11213 and word-combining-categories.
11214
11215 2008-10-21 Eli Zaretskii <eliz@gnu.org>
11216
11217 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11218 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11219
11220 2008-10-21 Martin Rudalics <rudalics@gmx.at>
11221
11222 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11223 Rename arg "buffer" to "buffer_or_name".
11224 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11225 it optional.
11226 (no_switch_window): Remove since the return value is not used.
11227 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
11228 Consider window as dedicated when Fwindow_dedicated_p returns a
11229 non-nil value.
11230 * lisp.h: Remove prototype for no_switch_window.
11231
11232 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11233
11234 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
11235 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
11236
11237 2008-10-21 Kenichi Handa <handa@m17n.org>
11238
11239 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11240 check Vlatin_extra_code_table.
11241
11242 2008-10-20 Eli Zaretskii <eliz@gnu.org>
11243
11244 * fileio.c (Fset_file_modes): Doc fix.
11245
11246 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
11247
11248 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11249 in arrays.
11250
11251 2008-10-19 Martin Rudalics <rudalics@gmx.at>
11252
11253 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11254 Mention kill-buffer in doc-string.
11255 (Fset_window_buffer): Reinsert tem check removed in last commit.
11256 (Fenlarge_window, Fshrink_window): Have argument names and
11257 doc-string follow Elisp manual more closely.
11258
11259 2008-10-18 Eli Zaretskii <eliz@gnu.org>
11260
11261 * fileio.c (Fset_file_modes): Doc fix.
11262
11263 2008-10-18 Martin Rudalics <rudalics@gmx.at>
11264
11265 * window.c (Fwindow_width, Fset_window_start)
11266 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
11267 (Fdelete_windows_on, Freplace_buffer_in_windows):
11268 Make doc-strings follow code and Elisp manual more closely.
11269 (Fwindow_dedicated_p): Make window argument optional.
11270 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11271 (Fset_window_buffer): Respect any non-nil dedicated value for
11272 window. Rename "buffer" argument to "buffer_or_name".
11273
11274 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
11275
11276 * m/sh3.h: New file, machine description for SuperH.
11277
11278 2008-10-17 Martin Rudalics <rudalics@gmx.at>
11279
11280 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11281
11282 2008-10-17 Kenichi Handa <handa@m17n.org>
11283
11284 * ftfont.c (ftfont_otf_features): Fix indexing
11285 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11286
11287 2008-10-16 Magnus Henoch <mange@freemail.hu>
11288
11289 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11290 (Fdbus_call_method_asynchronously): Ditto.
11291 This change makes C-h f display the argument list.
11292
11293 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
11294
11295 * fileio.c (Fexpand_file_name): Doc fix.
11296
11297 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11298 of :foreground and :background equivalent to unspecified (20.x
11299 compatibility).
11300
11301 2008-10-15 Eli Zaretskii <eliz@gnu.org>
11302
11303 * buffer.c (syms_of_buffer): Doc fix.
11304
11305 2008-10-14 Kenichi Handa <handa@m17n.org>
11306
11307 * font.c (font_clear_prop): When clearing font width, clear the
11308 average width field too.
11309
11310 2008-10-12 Andreas Schwab <schwab@suse.de>
11311
11312 * ftfont.c (ftfont_shape_by_flt): Make static.
11313 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11314
11315 * font.c: Don't include <m17n-flt.h>.
11316
11317 2008-10-10 Eli Zaretskii <eliz@gnu.org>
11318
11319 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11320
11321 2008-10-09 Eli Zaretskii <eliz@gnu.org>
11322
11323 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11324 away code.
11325
11326 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
11327
11328 * dispnew.c (update_text_area): Avoid looping due to large glyph
11329 overhangs (bug#1070).
11330
11331 2008-10-09 Kenichi Handa <handa@m17n.org>
11332
11333 * fontset.c (face_for_char): If face->fontset is negative, just
11334 return ascii_face.
11335
11336 * font.c (font_delete_unmatched): Fix previous change.
11337 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
11338
11339 2008-10-09 Martin Rudalics <rudalics@gmx.at>
11340
11341 * frame.c (Fraise_frame): On text-only terminals select frame in
11342 order to make it visible. (Bug#1061)
11343
11344 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
11345
11346 * fontset.c (fontset_find_font): Check frame validity.
11347
11348 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
11349
11350 * gtkutil.c (xg_display_open): Reset default display if none exists.
11351 (xg_display_close): Allow Emacs to close all displays (bug#985).
11352
11353 2008-10-06 Andreas Schwab <schwab@suse.de>
11354
11355 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
11356
11357 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
11358
11359 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
11360
11361 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
11362
11363 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11364 during initialization.
11365
11366 2008-10-04 Eli Zaretskii <eliz@gnu.org>
11367
11368 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11369 whole thing on MSDOS frames as well as on a TTY.
11370
11371 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11372 well as for TTY.
11373 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11374 well as on a TTY.
11375
11376 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11377 as well as for TTY.
11378
11379 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11380
11381 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11382 MSDOS frames as well.
11383
11384 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11385
11386 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11387 correct arguments.
11388 * menu.c (find_and_return_menu_selection): Add cast.
11389
11390 2008-10-03 Glenn Morris <rgm@gnu.org>
11391
11392 * emacs.c (USAGE1): Add --daemon.
11393
11394 2008-10-02 Eli Zaretskii <eliz@gnu.org>
11395
11396 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11397 100, so it's in percents as advertised.
11398
11399 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11400
11401 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11402 (ns_output.current_cursor, ns_output.desired_cursor)
11403 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11404 (FRAME_NEW_CURSOR_COLOR): Remove.
11405
11406 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
11407 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
11408 enumeration (HOLLOW_BOX_CURSOR, etc.).
11409
11410 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11411 (draw_window_cursor): Simplify code.
11412 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11413 Don't change cursor type. In latter, call rehighlight instead of doing
11414 updates manually.
11415 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11416 Use core Emacs cursor types.
11417
11418 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
11419
11420 2008-10-02 Martin Rudalics <rudalics@gmx.at>
11421
11422 * process.c (Faccept_process_output): Fix doc-string.
11423
11424 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11425
11426 * gmalloc.c (__sbrk): Also define for uClibc.
11427
11428 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11429 for uClibc.
11430
11431 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11432
11433 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11434 styles.
11435 (nsfont_open): Reenable the cache.
11436
11437 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11438
11439 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11440 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11441
11442 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11443
11444 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11445 a suspended terminal.
11446
11447 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
11448
11449 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11450
11451 2008-09-30 Eli Zaretskii <eliz@gnu.org>
11452
11453 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11454
11455 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
11456
11457 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11458 in a continued line coincides with a line beginning.
11459
11460 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11461
11462 * nsfont.m (nsfont_trait_distance): Fix bug.
11463 (nsfont_list): Return a list rather than a vector (syncs with Handa
11464 changes of 2008-05-14).
11465 (nsfont_open): Improve logging.
11466
11467 2008-09-29 Andreas Schwab <schwab@suse.de>
11468
11469 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11470
11471 2008-09-28 Martin Rudalics <rudalics@gmx.at>
11472
11473 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11474 name as char-resolve-modifiers.
11475 Reported by: Markus Triska <markus.triska@gmx.at>
11476
11477 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11478
11479 * dispnew.c (init_display): Return earlier when running as a daemon.
11480
11481 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11482
11483 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11484
11485 2008-09-27 Eli Zaretskii <eliz@gnu.org>
11486
11487 * composite.c (Fcomposition_get_gstring)
11488 (Fcompose_region_internal, Fcompose_string_internal)
11489 (Ffind_composition_internal): Doc fix.
11490 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11491 (syms_of_composite) <auto-composition-function>: Doc fix.
11492 (syms_of_composite) <composition-function-table>: Doc fix.
11493
11494 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
11495
11496 * search.c (wordify): New argument for lax word-ends.
11497 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11498
11499 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11500
11501 * lisp.h (is_daemon): Declare.
11502 * dispnew.c (init_display): Do not try to initialize the terminal
11503 when running as a daemon.
11504
11505 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
11506
11507 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11508 x_display_pixel_height.
11509
11510 2008-09-22 Martin Rudalics <rudalics@gmx.at>
11511
11512 * undo.c (record_point): Don't call Fundo_boundary for first
11513 change. (Bug#731)
11514
11515 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
11516
11517 * emacs.c (Fdaemonp): Doc fix.
11518
11519 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11520
11521 * emacs.c (main): Place #ifdef in the proper place.
11522
11523 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11524
11525 * emacs.c (standard_args): Add --daemon.
11526 (main): Disconnect from the terminal when --daemon is passed.
11527 (is_daemon): New variable.
11528 (Fdaemonp): New function.
11529 (syms_of_emacs): Defsubr it.
11530
11531 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
11532
11533 * xdisp.c (get_next_display_element): Handle string display
11534 correctly when checking for the end of a box run.
11535
11536 2008-09-20 Glenn Morris <rgm@gnu.org>
11537
11538 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11539 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11540 (Frename_file): Avoid copying to trash if a rename involves
11541 a delete. (Bug#964).
11542
11543 2008-09-20 Eli Zaretskii <eliz@gnu.org>
11544
11545 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11546 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11547 frames as well as termcap frames.
11548 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11549 get_named_tty.
11550
11551 2008-09-19 Eli Zaretskii <eliz@gnu.org>
11552
11553 * process.c (procfs_system_process_attributes): Fix cmdline in
11554 case /proc/PID/cmdline is empty.
11555
11556 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11557 x_display_pixel_height.
11558
11559 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
11560
11561 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11562
11563 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11564 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11565
11566 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11567
11568 * dispextern.h (struct it): Move line_wrap away from the middle of
11569 bitfields. Move voffset in struct iterator_stack_entry after the
11570 bitfields. Move tab_width near after another short.
11571
11572 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11573
11574 * frame.h (struct frame): Move alpha from the middle of bitfields.
11575
11576 * window.h (struct window): Move frozen_window_start_p after the
11577 rest of the bitfields to reduce padding.
11578
11579 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
11580
11581 * xterm.h (x_display_info): Remove `height' and `width' members.
11582
11583 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11584
11585 * w32term.h (w32_display_info): Remove `height', `width',
11586 `height_in', and `width_in' members.
11587
11588 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11589 New functions.
11590 (x_calc_absolute_position): Use them.
11591 (x_term_init): Omit removed `height' and `width' members.
11592
11593 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11594 New functions.
11595 (w32_read_socket, x_calc_absolute_position): Use them.
11596 (w32_initialize_display_info, w32_term_init): Omit removed members
11597 of w32_display_info.
11598
11599 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11600 New functions.
11601 (ns_initialize_display_info): Omit removed members of ns_display_info.
11602
11603 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11604 New functions.
11605 (x_calc_absolute_position): Use them.
11606 (x_term_init): Omit removed `height' and `width' members.
11607
11608 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11609 (compute_tip_xy):
11610 * frame.c (x_fullscreen_adjust):
11611 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11612 x_display_pixel_width.
11613
11614 2008-09-18 Kenichi Handa <handa@m17n.org>
11615
11616 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11617 (composition_compute_stop_pos): Fix handling of static composition.
11618 (Fcomposition_get_gstring): Check FROM and TO at first.
11619
11620 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11621
11622 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
11623 mixup (YAILOM).
11624
11625 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
11626
11627 * indent.c (Fvertical_motion): Use position reported by iterator
11628 instead of PT for determining screen motion (bug#943).
11629
11630 2008-09-17 Romain Francoise <romain@orebokech.com>
11631
11632 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11633
11634 2008-09-17 Kenichi Handa <handa@m17n.org>
11635
11636 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11637
11638 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11639 if necessary.
11640
11641 2008-09-16 Kenichi Handa <handa@m17n.org>
11642
11643 * coding.c (make_conversion_work_buffer): Avoid calling
11644 Fget_buffer_create if it is not necessary.
11645
11646 2008-09-15 Martin Rudalics <rudalics@gmx.at>
11647
11648 * window.c (Fselect_window): Don't update window_select_count and
11649 use_time when norecord is not nil.
11650
11651 2008-09-14 Kenichi Handa <handa@m17n.org>
11652
11653 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11654 specpdl_ptr.
11655
11656 2008-09-12 Kenichi Handa <handa@m17n.org>
11657
11658 * indent.c (scan_for_column): Don't handle automatic composition
11659 if the current buffer is not associated with a window.
11660
11661 * composite.c (composition_reseat_it): If the current buffer is
11662 not associated with a window, ignore the automatic composition.
11663 (find_automatic_composition): Likewise.
11664
11665 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11666
11667 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11668 (Fgpm_mouse_stop): Use it.
11669 * termhooks.h (close_gpm): Declare.
11670 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11671 connection if Gpm_GetEvent fails.
11672
11673 * window.c (set_window_buffer): Always preserve current-buffer.
11674
11675 2008-09-12 Glenn Morris <rgm@gnu.org>
11676
11677 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11678
11679 2008-09-11 Glenn Morris <rgm@gnu.org>
11680
11681 * charset.c (charset-map-path): Doc fix.
11682
11683 2008-09-10 Kenichi Handa <handa@m17n.org>
11684
11685 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11686
11687 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11688 compose a grapheme cluster with the preceding base glyph.
11689
11690 * composite.c (composition_compute_stop_pos): Fix previous change.
11691 Reset cmp_it->id to -1 at first.
11692
11693 2008-09-10 Glenn Morris <rgm@gnu.org>
11694
11695 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11696
11697 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
11698
11699 * keyboard.c (read_key_sequence): Reapply translation maps when
11700 switching keyboards.
11701
11702 2008-09-09 Kenichi Handa <handa@m17n.org>
11703
11704 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11705 characters.
11706
11707 * composite.c (FORWARD_CHAR): Fix calculation
11708 of (POSITION).pos_byte.
11709 (composition_compute_stop_pos): Limit the search of composition to
11710 at most 500 characters ahead. If we reach the limit or find a
11711 newline, set cmp_it->ch to -2 and return 0.
11712 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11713
11714 2008-09-08 Kenichi Handa <handa@m17n.org>
11715
11716 * indent.c (Fvertical_motion): Be sure to set
11717 it_overshoot_expected if it.cmp_it.id is non-negative.
11718
11719 2008-09-07 Andreas Schwab <schwab@suse.de>
11720
11721 * callproc.c (Fcall_process): Don't hold references to string data
11722 across garbage collection. Move initialisation of new_argv down
11723 to avoid compiler bug.
11724
11725 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11726
11727 * process.c (Fsystem_process_attributes): Doc fix.
11728
11729 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
11730
11731 * callproc.c (Fcall_process): Canonicalize current directory name.
11732
11733 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11734 iterator advances to the next line if the current line ends in a
11735 continued tab.
11736
11737 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11738
11739 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11740 member to point to cmp_from.
11741
11742 * xdisp.c: Doc fix for references to gidx data member.
11743
11744 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11745
11746 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11747
11748 2008-09-07 Kenichi Handa <handa@m17n.org>
11749
11750 * composite.c (FORWARD_CHAR): Check STOP after
11751 incrementing (POSITION).pos.
11752
11753 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11754
11755 * process.c (Fsystem_process_attributes): Doc fix.
11756
11757 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
11758
11759 * keyboard.c (Ftop_level): Doc fix.
11760
11761 2008-09-06 Eli Zaretskii <eliz@gnu.org>
11762
11763 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11764 minibuffer, don't let lower part of menu invade the echo area.
11765
11766 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11767 "char *q" to access menu text and advance through it. Revert the
11768 change that displayed ">" instead of ASCII character 0x10.
11769
11770 2008-09-05 Eli Zaretskii <eliz@gnu.org>
11771
11772 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11773 toggle boxes and radio buttons on MS-DOS as well.
11774
11775 2008-09-05 Kenichi Handa <handa@m17n.org>
11776
11777 * composite.c (autocmp_chars): Check lookback count.
11778 (composition_compute_stop_pos): Set cmp_it->lookback.
11779 (composition_reseat_it): Check lookback count.
11780 (struct position_record): New struct.
11781 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11782 (find_automatic_composition): New function.
11783 (composition_adjust_point): Use find_automatic_composition.
11784
11785 * dispextern.h (struct composition_it): New member lookback.
11786
11787 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
11788
11789 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11790 if moving by a single line.
11791
11792 2008-09-02 Andreas Schwab <schwab@suse.de>
11793
11794 * xterm.c (x_delete_display): Fix merge error.
11795
11796 * fileio.c (Fexpand_file_name): Remove unused variables.
11797
11798 2008-09-02 Eli Zaretskii <eliz@gnu.org>
11799
11800 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11801 storage on all platforms, not just on DOS_NT.
11802
11803 2008-09-02 Jason Rumney <jasonr@gnu.org>
11804
11805 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11806 Ensure mouse is not grabbed after menu is finished.
11807
11808 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
11809
11810 * xfaces.c (Finternal_set_alternative_font_family_alist)
11811 (Finternal_set_alternative_font_registry_alist): Properly copy
11812 entire alist structure.
11813
11814 2008-09-01 Kenichi Handa <handa@m17n.org>
11815
11816 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
11817 representative chars of the script is a vector.
11818 (ftfont_list): Handle the case where the representative chars of
11819 the script is a vector.
11820
11821 * character.c (syms_of_character): Docstring of
11822 script-representative-chars fixed.
11823
11824 2008-08-31 Eli Zaretskii <eliz@gnu.org>
11825
11826 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11827 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11828 the menu. Allocate larger buffer for `text', to account for
11829 possible ^C characters.
11830
11831 2008-08-31 Martin Rudalics <rudalics@gmx.at>
11832
11833 * xdisp.c (prepare_menu_bars): Don't call
11834 Vwindow_size_change_functions with arg Qt.
11835
11836 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11837
11838 * font.h (font_range):
11839 * fileio.c (report_file_error):
11840 * composite.c (composition_update_it): Yet another int/Lisp_Object
11841 mixup (YAILOM).
11842
11843 2008-08-30 Glenn Morris <rgm@gnu.org>
11844
11845 * data.c (Fmake_variable_frame_local): Doc fix.
11846
11847 * frame.c (Fmodify_frame_parameters): Doc fix.
11848
11849 2008-08-30 Eli Zaretskii <eliz@gnu.org>
11850
11851 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11852 needed by GetTokenInformation.
11853 (w32_system_process_attributes): Check return values of all system
11854 APIs.
11855
11856 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11857 only when the state changes.
11858 (IT_update_begin, IT_update_end): Add termscript trace.
11859
11860 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11861 clipboard is unavailable. Set dst to NULL if it doesn't point to
11862 malloc'ed data.
11863 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11864 passing random values to xfree.
11865
11866 * dispnew.c (init_display): Set `tty's association in frame's
11867 parameters alist to the name of the terminal device, if that is known.
11868
11869 2008-08-29 Jason Rumney <jasonr@gnu.org>
11870
11871 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11872
11873 2008-08-29 Eli Zaretskii <eliz@gnu.org>
11874
11875 * composite.c (fill_gstring_body): Avoid compiler warnings.
11876
11877 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11878 LGLYPH_SET_CODE to avoid compiler warnings.
11879
11880 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
11881
11882 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11883
11884 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11885 LGLYPH_SET_CODE.
11886
11887 2008-08-29 Kenichi Handa <handa@m17n.org>
11888
11889 * fileio.c (report_file_error): Don't downcase the first character
11890 of errstring if it is still unibyte.
11891
11892 2008-08-29 Kenichi Handa <handa@m17n.org>
11893
11894 These changes are to re-implement the automatic composition so
11895 that it doesn't use text properties.
11896
11897 * Makefile.in (ftfont.o): Depend on composite.h.
11898 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11899
11900 * character.h (Vunicode_category_table): Extern it.
11901
11902 * character.c (Vunicode_category_table): New variable.
11903 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11904
11905 * chartab.c (optimize_sub_char_table): Perform more greedy
11906 optimization.
11907
11908 * composite.h (enum composition_method):
11909 Delete COMPOSITION_WITH_GLYPH_STRING.
11910 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11911 (Vcomposition_function_table): Extern it.
11912 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11913 (composition_gstring_put_cache, composition_gstring_from_id)
11914 (composition_gstring_p, composition_gstring_width)
11915 (composition_compute_stop_pos, composition_reseat_it)
11916 (composition_update_it, composition_adjust_point): Extern them.
11917 (Fcomposition_get_gstring): EXFUN it.
11918
11919 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
11920 (Vcomposition_function_table)
11921 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
11922 (gstring_hash_table, gstring_work, gstring_work_headers):
11923 New variables.
11924 (gstring_lookup_cache, composition_gstring_put_cache)
11925 (composition_gstring_from_id, composition_gstring_p)
11926 (composition_gstring_width, fill_gstring_header)
11927 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11928 (composition_reseat_it, composition_update_it)
11929 (composition_adjust_point, Fcomposition_get_gstring): New functions.
11930 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11931 and gstring_work_headers. DEFVAR_LISP composition-function-table.
11932 Defsubr composition_get_gstring.
11933
11934 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11935 cmp_id.
11936 (struct glyph_string): Delete the member gidx. New members
11937 cmp_id, cmp_from, and cmp_to.
11938 (enum it_method): Delete GET_FROM_COMPOSITION.
11939 (struct composition_it): New struct.
11940 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11941 Delete c, len, cmp_id, cmp_len in u.comp.
11942
11943 * font.h (enum lgstring_indices): Delete it.
11944 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
11945 (enum lglyph_indices): Likewise.
11946 (font_range): Adjust extern.
11947 (font_fill_lglyph_metrics): Extern it.
11948
11949 * font.c (QCf): New variable.
11950 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11951 (font_prepare_composition): Delete this function.
11952 (font_range): Type and arguments changed.
11953 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11954 (font_fill_lglyph_metrics): New function.
11955 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
11956 (syms_of_font): DEFSYM QCf. Delete defsubr for
11957 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11958 Defsubr Sfont_shape_gstring.
11959
11960 * fontset.h (font_for_char): Extern it.
11961
11962 * fontset.c (font_for_char): New function.
11963
11964 * ftfont.c: Include composite.h.
11965 (ftfont_resolve_generic_family): Add langset "en" to pattern.
11966 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11967
11968 * indent.c: Include composite.h and dispextern.h.
11969 (check_composition): Delete this function.
11970 (scan_for_column): Handle composition by
11971 composition_compute_stop_pos, composition_reseat_it, and
11972 composition_update_it.
11973 (compute_motion): Likewise.
11974 (Fvertical_motion): Fix checking of composition.
11975
11976 * keyboard.c (adjust_point_for_property): Check composition by
11977 composition_adjust_point.
11978
11979 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
11980 struct glyph_string.
11981
11982 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11983 (append_composite_glyph): Adjust for the change of struct it and
11984 struct glyph.
11985 (produce_composite_glyph): Likewise.
11986
11987 * w32term.c (x_draw_composite_glyph_string_foreground):
11988 Adjust for the change of struct glyph_string.
11989 (x_draw_glyph_string): Likewise.
11990
11991 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11992 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11993
11994 * xdisp.c: Include font.h.
11995 (it_props): Delete the entry for Qauto_composed.
11996 (init_iterator): Initialize it->cmp_it.id to -1.
11997 (compute_stop_pos): Call composition_compute_stop_pos.
11998 (face_before_or_after_it_pos): Adjust for the change of struct it.
11999 (handle_auto_composed_prop): Delete it.
12000 (handle_composition_prop): Handle only static composition.
12001 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12002 from xassert. Initialize it->cmp_it.stop_pos.
12003 (push_it): Adjust for the change of struct it.
12004 (pop_it): Likewise.
12005 (get_next_element): Delete next_element_from_composition.
12006 (CHAR_COMPOSED_P): New macro.
12007 (get_next_display_element): For automatic composition, get a face
12008 from the font in the glyph-string.
12009 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
12010 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
12011 (next_element_from_string): Check if the character at the current
12012 position is composed by CHAR_COMPOSED_P.
12013 (next_element_from_buffer): Likewise.
12014 (next_element_from_composition): Adjust for the change of struct it.
12015 Update it->cmp_it.
12016 (dump_glyph): Adjust for the change of struct glyph.
12017 (fill_composite_glyph_string): Adjust for the change of struct
12018 it and struct glyph. Don't handle automatic composition here.
12019 (fill_gstring_glyph_string): New function.
12020 (x_get_glyph_overhangs): Handle automatic composition.
12021 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
12022 (BUILD_GSTRING_GLYPH_STRING): New macro.
12023 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12024 automatic composition.
12025 (append_composite_glyph): Adjust for the change of struct it and
12026 struct glyph.
12027 (x_produce_glyphs): Adjust for the change of struct it.
12028
12029 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12030 the change of struct glyph_string.
12031 (x_draw_glyph_string): Likewise.
12032
12033 2008-08-29 Glenn Morris <rgm@gnu.org>
12034
12035 * buffer.c (word-wrap): Doc fix.
12036 * xdisp.c (truncate-partial-width-windows): Doc fix.
12037 Increase default to 50.
12038
12039 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
12040
12041 * xdisp.c (update_tool_bar_unwind): New function.
12042 (update_tool_bar): Temporarily set selected frame before building
12043 tool-bar items.
12044
12045 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
12046
12047 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12048 snprintf, respectively.
12049 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12050
12051 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
12052
12053 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12054 LDFLAGS to GNUstep CC invocation.
12055
12056 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
12057
12058 * indent.c (Fvertical_motion): Revert last change. Handle the
12059 general case where we are moving forward, and PT spans multiple
12060 screen lines.
12061
12062 * eval.c (find_handler_clause): Temporarily increase
12063 max-lisp-eval-depth while printing the backtrace buffer, to
12064 guarantee that help-mode code can run.
12065
12066 2008-08-27 Eli Zaretskii <eliz@gnu.org>
12067
12068 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12069 colors under -rv.
12070 (IT_set_frame_parameters): Don't swap foreground and background
12071 colors if `(reverse . t)' is present in the frame properties.
12072 (internal_terminal_init): Call init_frame_faces only for the
12073 initial frame.
12074
12075 2008-08-27 Andreas Schwab <schwab@suse.de>
12076
12077 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12078
12079 2008-08-27 Andreas Schwab <schwab@suse.de>
12080
12081 * search.c (search_buffer): Set char_base to zero only at the end.
12082
12083 2008-08-27 Kenichi Handa <handa@m17n.org>
12084
12085 * fileio.c (report_file_error): Fix handling of multibyte error string.
12086
12087 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12088
12089 * xterm.c (x_term_init): Temporarily hide the partially
12090 initialized terminal while calling vendor-specific-keysyms.
12091
12092 2008-08-26 Eli Zaretskii <eliz@gnu.org>
12093
12094 * msdos.c (internal_terminal_init): Most initializations done only
12095 once, especially initial_screen_colors[] and termscript open.
12096
12097 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
12098
12099 * eval.c (Fcondition_case): Doc fix.
12100
12101 * widgetprv.h (EmacsFramePart): Change font member to the new font
12102 struct.
12103
12104 * widget.c: Include character.h and font.h for XSETFONT.
12105 (setup_frame_gcs): Compute X font id from font struct, just once.
12106
12107 2008-08-26 Eli Zaretskii <eliz@gnu.org>
12108
12109 * term.c (get_named_tty): Fix last change.
12110
12111 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
12112
12113 * indent.c (Fvertical_motion): If moving forward starting from a
12114 multi-line string, move the iterator to the last line of that string.
12115
12116 2008-08-25 Eli Zaretskii <eliz@gnu.org>
12117
12118 * frame.c (do_switch_frame): Mark previously displayed frame as
12119 obscured for FRAME_MSDOS_P frames as well.
12120
12121 2008-08-24 Eli Zaretskii <eliz@gnu.org>
12122
12123 * frame.c (make_terminal_frame): Initialize f->terminal,
12124 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12125 Set the top frame to newly created frame.
12126 (Fmake_terminal_frame): Reuse the_only_display_info.
12127
12128 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12129 estimating available memory.
12130
12131 2008-08-23 David Reitter <david.reitter@gmail.com>
12132
12133 * nsterm.m (ns_draw_window_cursor): Don't call
12134 NSDisableScreenUpdates and NSEnableScreenUpdates on
12135 non-NS_IMPL_COCOA systems.
12136
12137 2008-08-23 Andreas Schwab <schwab@suse.de>
12138
12139 * process.c (procfs_system_process_attributes): Fix use of
12140 uninitialized variables.
12141
12142 2008-08-23 Eli Zaretskii <eliz@gnu.org>
12143
12144 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12145
12146 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12147 calling tty-set-up-initial-frame-faces.
12148
12149 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12150 Allow MSDOS frames along with X frames.
12151
12152 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12153 addition to output_termcap.
12154
12155 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12156
12157 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12158 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12159 highlight.
12160
12161 * process.c [!subprocesses]: Define QCname.
12162 (syms_of_process): Intern and staticpro it.
12163
12164 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
12165 Adjust for changes in encoding/decoding routines.
12166 Use encode_coding_object and decode_coding_object instead of
12167 encode_coding and decode_coding.
12168
12169 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
12170
12171 * dosfns.c: Include frame.h before termhooks.h.
12172 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12173 variable termscript.
12174
12175 * s/msdos.h (USER_FULL_NAME): Define.
12176 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12177
12178 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12179 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12180 pw->pw_gecos.
12181
12182 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12183 SELECTED_FRAME as additional (1st) argument.
12184 (tty_read_avail_input): Handle output_msdos_raw in
12185 addition to output_termcap.
12186
12187 * msdos.c: Include frame.h before termhooks.h.
12188 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12189 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12190 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12191 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12192 (IT_set_terminal_modes, IT_reset_terminal_modes)
12193 (IT_set_frame_parameters): Use tty->termscript instead of a global
12194 variable termscript.
12195 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12196 global variable terminal_coding. Don't refer to
12197 Vnonascii_translation_table.
12198 (internal_terminal_init): Set Vwindow_system in current_kboard.
12199 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12200 Announce date and time of session start, if termscript is open.
12201 Don't zero out the_only_display_info (it is done in
12202 term.c:init_tty). Open termscript only of not already open.
12203 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
12204 here instead of dos_ttraw. Don't initialize display if this is an
12205 initial tty. Don't set FRAME_FONT.
12206 (Vwindow_system_version): Bump to 23.
12207 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12208 is available, set up mouse_position_hook.
12209 (dos_ttraw, IT_set_terminal_modes): If called with initial
12210 terminal, do nothing.
12211 (IT_set_frame_parameters): Handle the Qtty_type frame
12212 parameter by calling internal_terminal_init.
12213 (dos_set_window_size, show_mouse_face)
12214 (clear_mouse_face, IT_note_mode_line_highlight)
12215 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12216 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12217 (initialize_msdos_display): New function.
12218 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12219 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12220 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12221 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
12222 Accept additional argument: a pointer to a frame. Update all callers.
12223 (request_sigio, unrequest_sigio): Don't define, now defined on
12224 sysdep.c.
12225 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12226
12227 * term.c [MSDOS]: Include msdos.h.
12228 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12229 conditional to DOS_NT. Allow only one call to this function in a
12230 session. Don't allocate a new struct tty_display_info; instead,
12231 reuse the_only_display_info. Call get_tty_size to get screen
12232 dimensions. Call init_baud_rate to set bad_rate.
12233 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12234 (Fsuspend_tty) [MSDOS]: Don't close input and output.
12235 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
12236 (get_tty_terminal, get_named_tty, Ftty_type)
12237 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12238 output_termcap.
12239 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12240 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
12241 only when subprocesses are supported.
12242
12243 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12244 f->output_data.x.
12245 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12246 terminal devices.
12247
12248 * msdos.h: Remove definition of struct x_display_info and struct
12249 x_output.
12250 (FRAME_FONT): Use output_data.tty.
12251 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
12252 (struct x_display_info): Rename from display_info. Update all users in
12253 msdos.c.
12254 (struct x_output): Remove background_pixel and foreground_pixel.
12255 (the_only_display_info): Rename from the_only_x_display.
12256 (dos_ttraw): Update prototype.
12257
12258 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12259 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12260
12261 2008-08-23 Jason Rumney <jasonr@gnu.org>
12262
12263 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12264 (fn_TIFFSetDirectory): New library function used.
12265 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12266 (tiff_load): Use :index to select among multiple images. Set count
12267 property when multiple images exist.
12268 (gif_format): Use :index, not :image.
12269
12270 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
12271
12272 * xdisp.c (try_scrolling): Check INT_MAX instead of
12273 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12274 to obtain INT_MAX.
12275
12276 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12277
12278 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12279
12280 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12281
12282 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12283 GNUstep library location.
12284
12285 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
12286
12287 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12288 before using it.
12289
12290 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12291
12292 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12293
12294 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12295 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12296 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12297 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12298 (EmacsApp-cursor_blink_handler): Remove declaration.
12299 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12300 match 01 Feb 2008 changes in xterm.c.
12301 (ns_read_socket): Add cast to avoid warning.
12302 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12303 GNUstep.
12304
12305 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
12306
12307 * xselect.c (x_get_foreign_selection): Return nil if desired
12308 selection could not be obtained, instead of signalling an error.
12309
12310 2008-08-20 David Reitter <david.reitter@gmail.com>
12311
12312 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12313 * nsterm.m: Remove ns-specific code for cursor blinking.
12314 (ns_draw_window_cursor): Clear cursor properly rather than
12315 redrawing the area. Respect width of bar cursors.
12316 These changes enable the use of generic blink-cursor-mode and
12317 generic cursor types in NS and support smooth cursor movements (do
12318 not blink off after command).
12319 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12320 Nextstep, too.
12321
12322 2008-08-19 Kenichi Handa <handa@m17n.org>
12323
12324 * font.c (Vfont_log_deferred): New variable.
12325 (font_add_log): Check Vfont_log_deferred.
12326 (font_deferred_log): New function.
12327
12328 * font.h (font_deferred_log): Extern it.
12329
12330 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12331 for sorting.
12332 (face_for_char): Use deferred log.
12333
12334 2008-08-18 Kenichi Handa <handa@m17n.org>
12335
12336 * fontset.c (face_for_char): Add font log.
12337
12338 * font.c (font_add_log): Add the font properties :script, :lang,
12339 and :otf in the log.
12340
12341 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
12342
12343 * xdisp.c: Remove dead code.
12344 (handle_invisible_prop, next_overlay_string): Defer call to
12345 setup_for_ellipsis.
12346 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12347
12348 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
12349
12350 * xfaces.c (lookup_derived_face): Properly handle possible zero
12351 return value of get_lface_attributes.
12352 (merge_faces): Don't tell lookup_derived_face to signal an error
12353 if face is not found.
12354
12355 * dired.c (Fdirectory_files): Doc fix.
12356
12357 * process.c (make_process): Initialize kill_without_query struct
12358 member.
12359
12360 2008-08-15 Eli Zaretskii <eliz@gnu.org>
12361
12362 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12363 Alternative calculation of totphys for Visual Studio 6.
12364
12365 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12366
12367 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12368 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12369 All users changed.
12370 (stat): Only root directory passed to GetDriveType. Allow RAM
12371 disk as well as local fixed disk when w32-get-true-file-attributes
12372 is set to `local'.
12373 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12374 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12375 (w32_cached_id, w32_add_to_cache): New functions.
12376 (get_name_and_id): Look account names in the cache before calling
12377 lookup_account_sid.
12378 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12379 New initialization flags.
12380 (globals_of_w32): Initialize them to zero.
12381 (w32_system_process_attributes): Use w32_cached_id and
12382 w32_add_to_cache.
12383
12384 2008-08-14 Lawrence Mitchell <wence@gmx.li>
12385
12386 * lread.c (Fread_char, Fread_char_exclusive): If no character
12387 event is read before timeout is reached, return nil, rather than
12388 converting to a number.
12389
12390 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
12391
12392 * fns.c (use_dialog_box): Doc fix.
12393
12394 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12395 on OS X.
12396
12397 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
12398
12399 * frame.c (Qns_parse_geometry): New var.
12400 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12401
12402 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
12403
12404 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12405 space character in calculating tabs.
12406
12407 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12408
12409 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12410
12411 2008-08-10 Glenn Morris <rgm@gnu.org>
12412
12413 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12414 silence gcc "limited range of data type" warnings in some
12415 make_fixnum_or_float calls.
12416
12417 2008-08-09 Eli Zaretskii <eliz@gnu.org>
12418
12419 * w32.c (w32_system_process_attributes): If the process does not
12420 exist, return nil.
12421
12422 * w32.c: Include thelp32.h, psapi.h and coding.h.
12423 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12424 declarations.
12425 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12426 (Process32Next_Proc): New typedefs.
12427 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12428 (g_b_init_process32_next, g_b_init_open_thread_token)
12429 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12430 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12431 (g_b_init_get_process_working_set_size)
12432 (g_b_init_global_memory_status_ex): New static variables.
12433 (globals_of_w32): Initialize them.
12434 (create_toolhelp32_snapshot, process32_first, process32_next)
12435 (open_thread_token, impersonate_self, revert_to_self)
12436 (get_process_memory_info, get_process_working_set_size)
12437 (global_memory_status, global_memory_status_ex): New wrapper
12438 functions.
12439 (w32_list_system_processes, w32_system_process_attributes)
12440 (enable_privilege, restore_privilege, ltime, process_times):
12441 New functions.
12442 (convert_time_raw): New function.
12443 (convert_time): Remove conversion of FILETIME into time in 100
12444 nsec units, call convert_time_raw instead.
12445
12446 * process.h (w32_list_system_processes, w32_system_process_attributes):
12447 Add prototypes.
12448 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12449 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12450 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12451 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12452
12453 * process.c (Fsystem_process_attributes): Doc fix.
12454
12455 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
12456
12457 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12458 a continued multi-char glyph; if so, advance to the actual glyph.
12459
12460 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12461
12462 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12463
12464 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12465 (.m.o): Use it.
12466 * config.in: Regenerate.
12467
12468 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
12469
12470 * xdisp.c (redisplay_window): Revert last change.
12471 (try_window): Check bottom scroll margin too.
12472
12473 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12474
12475 * config.in: Regenerate.
12476
12477 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12478 -list-load-path-shadows'.
12479 (nsgui.h): Reduce number of things depending on it.
12480
12481 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
12482
12483 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12484 instead of window-end which does the wrong thing at eob.
12485 (try_cursor_movement): Minor optimization.
12486 (redisplay_window): If scroll margin is defined, don't assume
12487 window doesn't need scrolling.
12488
12489 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12490
12491 * config.in: Regenerate.
12492
12493 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12494 (mostlyclean): Don't delete *.d under NS.
12495
12496 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12497
12498 2008-08-06 Kenichi Handa <handa@m17n.org>
12499
12500 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12501
12502 2008-08-06 Andreas Schwab <schwab@suse.de>
12503
12504 * config.in: Regenerate.
12505
12506 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
12507
12508 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12509 forcing a window start.
12510
12511 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12512 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12513
12514 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12515
12516 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12517 argument.
12518
12519 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
12520
12521 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12522 <scroll-down-aggressively, before-change-functions>:
12523 <after-change-functions>: Reflow docstrings.
12524
12525 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12526 Ken Raeburn <raeburn@gnu.org>
12527
12528 Dock menu customization, based on a patch by Ken Raeburn, plus some
12529 other fixes.
12530 * nsmenu.m (dockMenu): New variable.
12531 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12532
12533 * nsterm.h (dockMenu): Declare.
12534
12535 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12536 (ns_term_init): Initialize dockMenu.
12537 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12538 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12539 left.
12540
12541 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12542
12543 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
12544
12545 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12546
12547 * config.in: Regenerate.
12548
12549 2008-08-04 Seiji Zenitani <zenitani@mac.com>
12550
12551 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12552
12553 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
12554
12555 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12556
12557 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12558
12559 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12560
12561 * keyboard.h: Comment an #endif.
12562
12563 * lisp.h (have_menus_p): Adjust comment.
12564
12565 * menu.c (find_and_return_menu_selection): Fix comparison with
12566 client_data.
12567
12568 * nsmenu.m (popup_activated_flag): New variable.
12569 (popup_activated): New function.
12570 (menu-or-popup-active-p): New exported lisp definition.
12571 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12572 when popup done.
12573 (ns_popup_dialog): Set popup_activated_flag.
12574
12575 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12576 version for GNUstep (handled by conditional typedef in nsterm.m).
12577 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12578 in rgb.txt).
12579
12580 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12581
12582 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12583
12584 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12585
12586 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12587 shortcircuit if popup_activated like GTK and X toolkit.
12588
12589 * m/inter386.h: Change DARWIN to DARWIN_OS.
12590
12591 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12592 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12593 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12594 comment on NO_SOCK_SIGIO.
12595
12596 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
12597
12598 * nsterm.m (windowDidResize): Remove stopModal call.
12599
12600 2008-08-03 Andreas Schwab <schwab@suse.de>
12601
12602 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12603 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12604
12605 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
12606
12607 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12608 Don't use uninitialized pointer variable when using getrlimit.
12609
12610 2008-08-02 Jason Rumney <jasonr@gnu.org>
12611
12612 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12613
12614 2008-08-02 Eli Zaretskii <eliz@gnu.org>
12615
12616 * alloc.c (NSTATICS): Bump to 0x640.
12617
12618 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12619
12620 * lisp.h: Add prototype for directory_files_internal.
12621
12622 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12623 New functions.
12624 (syms_of_process): Defsubr them. Add initializations for various
12625 Q* symbols used in procfs_system_process_attributes.
12626 (procfs_list_system_processes, procfs_system_process_attributes)
12627 [HAVE_PROCFS]: New functions.
12628 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12629 (procfs_get_total_memory): New functions.
12630
12631 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
12632
12633 * xfaces.c (Fx_load_color_file): Fix previous change;
12634 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12635
12636 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
12637
12638 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12639
12640 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12641
12642 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12643
12644 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
12645
12646 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12647
12648 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12649 define NSApplicationDelegateReplySuccess.
12650 (EmacsView -converstationIdentifier): Use long instead of
12651 NSInteger for GNUstep, since it doesn't have NSInteger.
12652
12653 * xmenu.c: Revert last change.
12654
12655 * keyboard.h: Fix last change.
12656
12657 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
12658
12659 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12660 on Windows.
12661
12662 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12663
12664 Warning clearing and clean-up in NS port.
12665 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12666 Add prototypes.
12667 * nsgui.h (FACE_DEFAULT): Remove, unused.
12668 (XGCValues): Change colors to unsigned long.
12669 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12670 nsterm.m.
12671 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12672 (ns_list_fonts): Remove, unused.
12673 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12674 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12675 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12676 (nsfont_draw): Compare face colors to 0, not nil.
12677 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12678 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12679 (-addSubmenuWithTitle:): Use NSMenuItem class.
12680 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12681 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12682 (ns_clip_to_row): Make gc arg a BOOL.
12683 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12684 ns_clip_to_row() call.
12685 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12686 used). Cast FRAME_FONT assignments.
12687 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12688 (ns_string_to_lispmod): Change arg to const char.
12689 (ns_term_init): Use NSMenuItem class.
12690 (EmacsApp -openFile:): Move to different section of file.
12691 (EmacsApp -application:openFiles:): Don't return a value, call
12692 -replyToOpenOrPrint:.
12693 (EmacsView -keyDown:): Fix up cast.
12694 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12695 (EmacsView -menuDown:): Cast tag in call to
12696 find_and_call_menu_selection().
12697 (ns_list_fonts): Remove, unused.
12698 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12699 (ns_fontname_to_xlfd): Make static.
12700 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12701 Remove prototypes (now in keyboard.h).
12702 (next_menubar_widget_id): Remove, unused.
12703 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12704 Remove prototypes (now in keyboard.h).
12705 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12706
12707 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12708
12709 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12710 (floatfns.o): Depend on syssignal.h.
12711 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12712
12713 * systty.h: Fix previous change that removed BSD_TERMIOS.
12714 Add comments to #ifdefs.
12715
12716 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12717
12718 * w32fns.c (w32-load-color-file): Remove.
12719 (x-open-connection): Use renamed Fx_load_color_file.
12720 * xfaces.c (x-load-color-file): Add.
12721 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12722 Emacs.clr.
12723 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12724
12725 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
12726
12727 * dbusbind.c (Fdbus_call_method_asynchronously)
12728 (Fdbus_method_error_internal): New defuns.
12729 (xd_read_message): Handle also reply messages.
12730 (Vdbus_registered_functions_table): Extend docstring.
12731
12732 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
12733
12734 * keyboard.c (gobble_input): Fix previous change.
12735
12736 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12737
12738 * bitmaps/README:
12739 * xfns.c:
12740 * termcap.c:
12741 * term.c:
12742 * syswait.h:
12743 * systty.h:
12744 * systime.h:
12745 * syssignal.h:
12746 * sysdep.c:
12747 * process.h:
12748 * process.c:
12749 * print.c:
12750 * ndir.h:
12751 * lread.c:
12752 * keyboard.c:
12753 * getpagesize.h:
12754 * floatfns.c:
12755 * fileio.c:
12756 * emacs.c:
12757 * doc.c:
12758 * dispnew.c:
12759 * dired.c:
12760 * data.c:
12761 * callproc.c:
12762 * buffer.c:
12763 * README:
12764 * Makefile.in:
12765 * s/template.h:
12766 * s/msdos.h:
12767 * m/vax.h: Remove VMS support.
12768 * s/vms.h:
12769 * vlimit.h:
12770 * uaf.h:
12771 * temacs.opt:
12772 * param.h:
12773 * ioctl.h: Remove file.
12774
12775 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12776
12777 * s/ms-w32.h (MULTI_KBOARD): Remove.
12778 * xterm.c:
12779 * xselect.c:
12780 * xfns.c:
12781 * window.c:
12782 * w32term.c:
12783 * w32fns.c:
12784 * terminal.c:
12785 * termhooks.h:
12786 * term.c:
12787 * sysdep.c:
12788 * keyboard.h:
12789 * keyboard.c:
12790 * frame.h:
12791 * frame.c:
12792 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12793 * config.in: Regenerate.
12794
12795 2008-07-30 Jason Rumney <jasonr@gnu.org>
12796
12797 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12798
12799 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12800 (w32font_open_internal): Get unicode version of textmetrics.
12801 Don't enable or disable glyph indices here.
12802 (w32font_open): Disable use of glyph indices.
12803
12804 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12805
12806 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
12807
12808 * minibuf.c (Vread_buffer_function): Doc fix.
12809
12810 2008-07-30 John Paul Wallington <jpw@pobox.com>
12811
12812 * minibuf.c (read_buffer_completion_ignore_case): New var.
12813 (Fread_buffer): Use it.
12814
12815 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12816
12817 * systty.h (sensemode): Remove empty #if. Remove reference to
12818 BSD_TERMIOS, unused.
12819
12820 * sysdep.c: Remove reference to DGUX.
12821 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12822
12823 * config.in: Regenerate.
12824
12825 2008-07-30 Jason Rumney <jasonr@gnu.org>
12826
12827 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12828
12829 2008-07-29 Jason Rumney <jasonr@gnu.org>
12830
12831 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12832 is populated.
12833 (uniscribe_encode_char): Always use uniscribe.
12834 Avoid using context if cache is populated.
12835
12836 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12837
12838 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12839 open menu.
12840
12841 * gtkutil.c (menu_nav_ended): Remove.
12842 (create_menus): Remove signal connect for menu_nav_ended.
12843
12844 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
12845
12846 * xdisp.c (redisplay_window): Check return value of
12847 compute_window_start_on_continuation_line before forcing a window
12848 start.
12849
12850 2008-07-28 Jason Rumney <jasonr@gnu.org>
12851
12852 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12853
12854 * w32term.c (w32_enable_unicode_output, cleartype_active):
12855 Remove obsolete display options.
12856 (x_draw_glyph_string_background): Don't use old cleartype_active
12857 workaround.
12858 (w32_initialize): Remove cleartype_active initialization.
12859 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12860
12861 2008-07-28 Andreas Schwab <schwab@suse.de>
12862
12863 * lisp.h (init_weak_hash_tables, syms_of_font)
12864 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12865 (remove_hash_entry): Don't declare.
12866 * eval.c (maybe_call_debugger): Make static and move before use.
12867 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12868 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12869 * xterm.h (x_set_frame_alpha): Declare.
12870
12871 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12872
12873 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12874 (create_menus): Connect selection-done to menu_nav_ended.
12875
12876 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12877
12878 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12879 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12880 parameter with read of 'alpha' one.
12881 (Qns_frame_parameter): Remove.
12882 * nsselect.m (selection-coding-system)
12883 (next-selection-coding-system, Vselection_coding_system)
12884 (Vnext_selection_coding_system): Drop.
12885
12886 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12887
12888 * nsfns.m (do-applescript, do_applescript): Rename to
12889 ns-do-applescript, ns_do_applescript, and move within file.
12890
12891 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12892
12893 Remove support for Mac Carbon.
12894 * mactoolbox.c:
12895 * macterm.h:
12896 * macterm.c:
12897 * macselect.c:
12898 * macmenu.c:
12899 * macgui.h:
12900 * macfns.c:
12901 * mac.c: Remove file.
12902 * s/darwin.h:
12903 * m/intel386.h:
12904 * xfaces.c:
12905 * xdisp.c:
12906 * window.c:
12907 * tparam.c:
12908 * termhooks.h:
12909 * termcap.c:
12910 * term.c:
12911 * syssignal.h:
12912 * sysselect.h:
12913 * sysdep.c:
12914 * process.c:
12915 * lread.c:
12916 * lisp.h:
12917 * keyboard.c:
12918 * image.c:
12919 * fringe.c:
12920 * frame.h:
12921 * frame.c:
12922 * fontset.c:
12923 * font.h:
12924 * font.c:
12925 * fns.c:
12926 * fileio.c:
12927 * emacs.c:
12928 * dispnew.c:
12929 * dispextern.h:
12930 * config.in:
12931 * atimer.c:
12932 * Makefile.in: Remove code for Carbon.
12933
12934 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12935
12936 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12937
12938 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12939
12940 * macterm.h (kCGBitmapByteOrder32Host): New define for
12941 non-universal SDKs.
12942
12943 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12944 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12945
12946 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12947 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12948
12949 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12950
12951 * w32inevt.c: Include dispextern.h.
12952
12953 2008-07-26 Andreas Schwab <schwab@suse.de>
12954
12955 * print.c (print_object): Fix off-by-one in last change.
12956
12957 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
12958
12959 * term.c (syms_of_term): Don't initialize default_orig_pair,
12960 default_set_foreground and default_set_background on Windows.
12961
12962 2008-07-25 Jason Rumney <jasonr@gnu.org>
12963
12964 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12965 ScriptItemize. Clean up return value checking. Remove unused
12966 variables.
12967 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12968 shaping engine.
12969
12970 * w32font.c (w32font_has_char): Handle the case where we can't
12971 determine the script for a character.
12972
12973 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
12974
12975 * term.c (syms_of_term): Initialize default_orig_pair,
12976 default_set_foreground, and default_set_background.
12977
12978 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12979 clash (bug#86).
12980 (getloadavg): Callers changed.
12981
12982 * image.c (svg_load_image): Fix last change.
12983 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12984 image size is valid. Use g_object_unref instead of deprecated
12985 rsvg_handle_free to free rsvg handle.
12986 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12987
12988 2008-07-25 Jason Rumney <jasonr@gnu.org>
12989
12990 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12991 surrogates before looking up glyph index.
12992 (w32font_text_extents): Encode as surrogates if falling back to
12993 functions that need UTF-16 wide chars.
12994
12995 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12996 BMP as surrogates before looking up glyph index.
12997
12998 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
12999
13000 * image.c (svg_load_image): Check for failure in return value of
13001 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13002
13003 2008-07-25 Jason Rumney <jasonr@gnu.org>
13004
13005 * w32font.c (Fx_select_font): Reverse sense of second arg.
13006
13007 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13008
13009 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13010 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13011
13012 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13013 (PURESIZE): Use it.
13014
13015 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13016
13017 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13018 * m/alpha.h (TEXT_END):
13019 * m/ibmrs6000.h (TEXT_END):
13020 * m/macppc.h (TEXT_END):
13021 * s/darwin.h (TEXT_END):
13022 * s/msdos.h (TEXT_END): Remove, unused.
13023 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13024 * s/cygwin.h: Remove comment.
13025
13026 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13027 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13028 * m/intel386.h (DOT_GLOBAL_START):
13029 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13030 (USG): Remove, file not used on USG platforms.
13031
13032 * Makefile.in (HAVE_X11): Remove empty #else.
13033
13034 2008-07-24 Andreas Schwab <schwab@suse.de>
13035
13036 * fileio.c (Finsert_file_contents): Properly adjust undo list
13037 after format conversion.
13038
13039 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13040
13041 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13042 (menu_nav_ended): Remove.
13043 (create_menus): Remove signal connect for menu_nav_ended.
13044 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13045 create_menus.
13046 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13047
13048 2008-07-23 Jason Rumney <jasonr@gnu.org>
13049
13050 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13051 with opened font.
13052 (w32font_open): Set font type to gdi.
13053
13054 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13055
13056 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13057
13058 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13059 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13060 defines it.
13061 * unexec.c (ADDR_CORRECT): Define unconditionally.
13062
13063 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13064
13065 * unexec.c: Remove code depending on !COFF and USG, the file is
13066 not used for such systems.
13067
13068 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13069 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13070 (LD_SWITCH_SYSTEM_1): Remove, update users.
13071
13072 * s/darwin.h (DATA_END):
13073 * m/intel386.h (DATA_END):
13074 * m/ibmrs6000.h (DATA_END):
13075 * m/alpha.h (DATA_END): Remove, unused.
13076
13077 * config.in: Regenerate.
13078 * s/ms-w32.h (subprocesses): Define unconditionally.
13079 * s/template.h (subprocesses): Update comment.
13080 * s/vms.h (subprocesses):
13081 * s/usg5-4.h (subprocesses):
13082 * s/hpux10-20.h (subprocesses):
13083 * s/gnu-linux.h (subprocesses):
13084 * s/cygwin.h (subprocesses):
13085 * s/bsd-common.h (subprocesses):
13086 * s/aix4-2.h (subprocesses):
13087 * s/darwin.h (subprocesses): Do not define, defined by default now.
13088
13089 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13090 Remove all references.
13091 (temacs): Add GNUstep specific ld flags.
13092
13093 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13094 similarly to what X does.
13095
13096 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13097
13098 * nsfns.m (x-list-fonts): Remove.
13099 (syms_of_nsfns): Drop the x-list-fonts declaration.
13100 * nsterm.m: Get rid of remaining "//" comments.
13101
13102 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
13103
13104 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13105
13106 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13107 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13108 (Fns_own_selection_internal, Fx_disown_selection_internal)
13109 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13110
13111 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13112 ... */' style of docstrings. Doc fixes.
13113
13114 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13115
13116 * terminfo.c (UP, BC, PC): Undo previous change.
13117
13118 * nsfns.m: Rename ns prefixed functions/variables to the
13119 corresponding x versions. Update references.
13120
13121 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13122
13123 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13124
13125 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13126
13127 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13128 Remove forwarding functions.
13129 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13130 non-static.
13131 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13132 non-static.
13133 (ns_frame_parm_handlers): Use the new names.
13134 (syms_of_nsfns): Move to the end of file.
13135
13136 * nsterm.m (syms_of_nsterm): Move to the end of file.
13137
13138 * dispnew.c (init_display): Remove code for X10.
13139
13140 2008-07-22 Jason Rumney <jasonr@gnu.org>
13141
13142 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13143 bare drive.
13144
13145 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13146
13147 * nsterm.m (syms_of_nsterm): Remove debugging println.
13148
13149 2008-07-22 David Reitter <david.reitter@gmail.com>
13150
13151 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13152 Carbon implementation of the same functionality: execute arbitrary
13153 AppleScript code.
13154
13155 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13156
13157 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13158 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13159 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13160 (Fx_display_mm_height, Fx_display_mm_width)
13161 (Fx_display_backing_store, Fx_display_visual_class)
13162 (Fx_display_save_under, Fx_open_connection)
13163 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13164 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13165 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13166 (Fx_display_pixel_width, Fx_display_pixel_height)
13167 (Fx_display_usable_bounds, Fx_display_planes)
13168 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13169 ... */' style of docstrings.
13170
13171 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13172
13173 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13174 on this platform.
13175 (mips):
13176 * m/iris4d.h (mips): Do not define.
13177 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13178
13179 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13180
13181 * image.c:
13182 * nsfns.m:
13183 * nsselect.m:
13184 * nsterm.h:
13185 * nsterm.m: Rename ns prefixed functions/variables to the
13186 corresponding x versions. Update references.
13187
13188 * m/ibms390x.h (NO_REMAP): Do not undefine.
13189
13190 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13191
13192 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
13193
13194 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13195 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13196 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13197 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13198 (Fns_display_mm_height, Fns_display_mm_width)
13199 (Fns_display_backing_store, Fns_display_visual_class)
13200 (Fns_display_save_under, Fns_open_connection)
13201 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13202 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13203 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13204 (Fns_display_pixel_width, Fns_display_pixel_height)
13205 (Fns_display_usable_bounds, Fx_display_planes)
13206 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13207
13208 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13209
13210 * print.c (print_object): Check print_depth before searching for
13211 circularities.
13212
13213 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
13214
13215 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13216 only sprintf.
13217
13218 2008-07-21 Kenichi Handa <handa@m17n.org>
13219
13220 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13221
13222 2008-07-20 Andreas Schwab <schwab@suse.de>
13223
13224 * syntax.c (find_start_pos, find_start_value)
13225 (find_start_value_byte, find_start_begv, find_defun_start)
13226 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13227
13228 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13229
13230 * s/sol2-3.h: Insert contents of s/sol2.h.
13231 (LD_SWITCH_SYSTEM): Remove redundant definition.
13232 * s/sol2.h: Remove, unused.
13233
13234 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13235
13236 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13237
13238 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13239
13240 * Makefile.in (ns_appdir): Fix typo in find command.
13241
13242 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13243
13244 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13245
13246 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13247 added not supported anymore.
13248
13249 * s/usg5-4-2.h (LIBS_SYSTEM):
13250 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13251
13252 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13253 * s/lynxos.h (GETPGRP_NO_ARG):
13254 * s/hpux10-20.h (NO_SIOCTL_H):
13255 * s/gnu.h (GETPGRP_NO_ARG):
13256 * s/gnu-linux.h (NO_SIOCTL_H):
13257 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13258 * s/cygwin.h (GETPGRP_NO_ARG):
13259 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13260 (C_DEBUG_SWITCH): Remove duplicate definition.
13261
13262 * m/ibms390.h: Remove boilerplate comments.
13263
13264 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13265
13266 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13267 (wait_reading_process_output): Remove code for SunOS, platform not
13268 supported anymore. Use SOLARIS2 instead of sun.
13269
13270 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13271
13272 * font.c (font_open_by_name): Under NS, default lface height to zero.
13273 (font_open_for_lface): Under NS, set size based on frame fontsize.
13274 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13275 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13276
13277 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13278
13279 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13280 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13281 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13282 YES/NO.
13283 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13284 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13285 * Makefile.in (clean): Clear out build destination dir.
13286
13287 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13288
13289 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13290 xterm, xselect.
13291 * lisp.h: Remove declaration of hash_remove.
13292 * nsgui.h: Remove redefinitions of hash_remove.
13293 * fns.c (hash_remove): Rename to hash_remove_from_table.
13294
13295 2008-07-19 Seiji Zenitani <zenitani@mac.com>
13296
13297 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13298 strdup() the family UTF8String before modifying it.
13299
13300 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13301
13302 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13303 NS_FACE_BACKGROUND with 0 instead of nil.
13304 * nsfont.m (nsfont_draw): Same.
13305
13306 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
13307
13308 * nsfns.m (ns_set_background_color): Fix crash.
13309
13310 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
13311
13312 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13313
13314 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13315
13316 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13317
13318 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13319
13320 * gtkutil.c: Include <config.h> instead of "config.h".
13321
13322 * lisp.h (Foverlay_buffer): Add EXFUN.
13323
13324 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13325 child process to complete child_setup. Undo 2005-09-21 change.
13326
13327 * s/darwin.h: Mention setsid after vfork.
13328
13329 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13330
13331 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13332 Depend on macgui.h.
13333
13334 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13335 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13336
13337 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13338 and f19.
13339 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13340
13341 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13342 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13343 Remove enumerators.
13344
13345 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13346 Check if FACE_FROM_ID returns NULL.
13347
13348 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13349
13350 * w32inevt.c (change_frame_size): Remove extern declaration.
13351 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13352 change_frame_size.
13353
13354 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13355
13356 * getloadavg.c: Revert last change (2008-07-15).
13357
13358 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13359
13360 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
13361 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
13362 from configure.
13363
13364 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13365
13366 * s/sol2.h:
13367 * s/sol2-4.h: Reorganize conditionals.
13368
13369 * ecrt0.c: Remove code depending on m68000, not used anymore.
13370
13371 * fns.c (hash_remove): Make static.
13372 * lisp.h (hash_remove): Don't prototype.
13373
13374 * m/ibmrs6000.h:
13375 * m/ibms390x.h:
13376 * m/macppc.h: Remove boilerplate comments.
13377
13378 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13379 Solaris, which does not need them.
13380
13381 * m/vax.h: Remove comments about unsupported systems.
13382
13383 * s/darwin.h: Reorganize ifdefs.
13384
13385 2008-07-17 Andreas Schwab <schwab@suse.de>
13386
13387 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13388
13389 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13390
13391 Use SDATA. Follow coding convention of placing operators at
13392 beginning of next line rather than end of previous line, and placing
13393 spaces around infix operators.
13394
13395 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13396 in case it was defined already.
13397 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13398 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13399 ns_default.
13400 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13401 Lisp_Objects.
13402 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13403 (ns_defined_color, ns_color_to_lisp): Declare.
13404 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13405 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13406 it's accepted even with USE_LISP_UNION_TYPE.
13407 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13408 (update_frame_tool_bar): Remove apparently obsolete tests for
13409 non-integerness of f->tool_bar_lines.
13410 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13411 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13412 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13413 (nsfont_open): Don't confuse NULL for Qnil.
13414 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13415 * menu.h (find_and_call_menu_selection):
13416 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13417 (find_and_return_menu_selection): Always return something.
13418 * frame.h: Include dispextern.h for Display_Info.
13419 (display_x_get_resource): Declare.
13420
13421 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13422
13423 * syntax.c: Remove stdio.h include accidentally introduced in
13424 Emacs.app commit.
13425 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13426 NS_IMPL_COCOA.
13427 * keyboard.c (handle_async_input, input_available_signal): Remove
13428 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13429
13430 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13431
13432 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13433 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13434 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13435 Use SDATA.
13436
13437 * keymap.c: Remove all NS-specific code.
13438 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13439 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13440 where_is_preferred_modifier, return a different value depending on how
13441 preferred is the binding.
13442 (where_is_internal): Adjust accordingly.
13443 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13444 Adjust to new preferred_sequence_p.
13445 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13446 * keyboard.c (parse_solitary_modifier): Not static any more.
13447 * keyboard.h (parse_solitary_modifier): Declare.
13448
13449 2008-07-16 Andreas Schwab <schwab@suse.de>
13450
13451 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13452 of easymenu.
13453
13454 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
13455
13456 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13457 that we don't move off the line.
13458
13459 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13460
13461 * keyboard.c (Qsuper): Remove.
13462 (parse_menu_item): Don't call where_is_internal specially for NS.
13463
13464 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13465
13466 * s/gnu-linux.h: Remove boilerplate comments.
13467
13468 * m/alpha.h (__ELF__): Consolidate conditions.
13469
13470 * m/m68k.h (linux): Use GNU_LINUX instead.
13471 Remove boilerplate comments.
13472
13473 * m/intel386.h: Undo refactoring from previous change.
13474 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13475 too, remove dead code.
13476 (linux): Use GNU_LINUX instead.
13477
13478 2008-07-16 Jason Rumney <jasonr@gnu.org>
13479
13480 * w32gui.h: Repeat 26 June changes lost by last change.
13481
13482 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13483
13484 * systty.h: Remove code for Aix on 386, unsupported platform.
13485
13486 * s/ms-w32.h: Remove boilerplate comments.
13487 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13488
13489 * s/gnu-linux.h (TERM): Remove support.
13490 (HAVE_SYSVIPC): Remove, unused.
13491 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13492 for this system.
13493
13494 * process.c: Remove support for IRIS, unused.
13495 Remove support for TERM, not relevant anymore.
13496
13497 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13498 used with the definition.
13499
13500 * s/aix4-2.h (static): Do not undef.
13501
13502 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13503 only used on Aix.
13504 (HAVE_SYSVIPC): Remove, unused.
13505
13506 * m/hp800.h (CANNOT_DUMP): Do not undef.
13507
13508 * m/alpha.h: Fix comment.
13509
13510 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13511 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13512 used by this configuration.
13513 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13514 * unexec.c: Remove code depending on HPUX and
13515 USG_SHARED_LIBRARIES, not used with this file. Remove code
13516 depending on IRIS, unused. Remove if 0-ed code.
13517
13518 * s/template.h: Remove comments about static.
13519
13520 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13521 Remove if 0-ed code.
13522 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13523 were the same as the default.
13524 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13525 Remove boilerplate comments.
13526 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13527 (HAVE_SYSVIPC): Remove, unused.
13528 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13529
13530 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13531 Remove boilerplate comments.
13532 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13533 Remove boilerplate comments.
13534 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13535 Remove boilerplate comments.
13536 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13537
13538 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13539 USG systems which do not use DATA_SEG_BITS.
13540 Refactor code. Remove boilerplate comments.
13541
13542 * m/ibms390.h:
13543 * m/m68k.h:
13544 * s/bsd-common.h:
13545 * s/cygwin.h:
13546 * s/darwin.h:
13547 * s/freebsd.h:
13548 * s/gnu.h:
13549 * s/msdos.h: Remove boilerplate comments.
13550
13551 * m/iris4d.h: Remove boilerplate comments and code for systems that
13552 do not use this file.
13553 (IRIS_4D): Remove, unused.
13554
13555 * m/mips.h: Remove boilerplate comments and code for systems that
13556 do not use this file.
13557 (SIGN_EXTEND_CHAR):
13558 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13559 * unexmips.c: Remove file, unused.
13560
13561 * editfns.c (Fuser_full_name): Replace the only use of
13562 USER_FULL_NAME with its value.
13563 * config.in: Regenerate.
13564
13565 2008-07-16 David Reitter <david.reitter@gmail.com>
13566
13567 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13568 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13569
13570 2008-07-16 Glenn Morris <rgm@gnu.org>
13571
13572 * emacs.c (system-type): Doc fix.
13573
13574 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13575
13576 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13577 If the cache doesn't work, let's fix it, rather than work around it.
13578
13579 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13580
13581 * Makefile.in: Correct additions for nsfont.o in last commit.
13582 * nsfont.m: New file (forgot last commit).
13583
13584 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13585
13586 * callproc.c (set_initial_environment): Initialize
13587 Vprocess_environment under CANNOT_DUMP (fixes crash when
13588 batch-compiling for bootstrap).
13589
13590 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13591 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13592
13593 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13594 CANNOT_DUMP case -- fix crash due to different init order.
13595
13596 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13597
13598 Changes and additions for NeXTstep windowing system (Cocoa and
13599 GNUstep) support.
13600
13601 * Makefile.in:
13602 * config.in: Support defines and build commands for NS port.
13603 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13604 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13605 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13606 windowing.
13607 (struct face): Add synth_ital field.
13608 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13609 (init_display): Initialize Vinitial_window_system to "ns" when so
13610 compiled.
13611 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13612 (display_arg): Use under NS.
13613 (main): Under NS, allocate autorelease pool and handle command line
13614 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13615 (standard_args): Add NS-specific args.
13616 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13617 * font.c (DEFAULT_ENCODING): New variable.
13618 (font_find_for_lface): Use it.
13619 (syms_of_font): Load syms_of_nsfont under NS.
13620 * font.h: Declare nsfont_driver when compiled under NS.
13621 * fontset.c: When compiling under NS, include nsterm.h.
13622 (fontset_from_font): Autoconstruct fontset under NS.
13623 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13624 symbol, document and use it.
13625 (do_switch_frame): When for_deletion under Cocoa, add
13626 Fraise_frame(Qnil).
13627 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13628 (x_get_arg): Allow "yes" and "no" as boolean values.
13629 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13630 Qright under Cocoa.
13631 (focus-follows-mouse): Default to 0 under NS.
13632 * frame.h (enum output_method): Add output_ns.
13633 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13634 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13635 (FRAME_WINDOW_P): NS-specific definition.
13636 * fringe.c (max_used_fringe_bitmap): Make public.
13637 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13638 (getloadavg): Use NeXT code under descendant OS's.
13639 * image.c (includes and header section, x_create_bitmap_from_data)
13640 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13641 (image_background_transparent, x_clear_image_1)
13642 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13643 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13644 (x_to_xcolors, x_from_xcolors, x_disable_image)
13645 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13646 other GUIs, including XPM support using code originally written for
13647 Carbon GUI.
13648 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13649 using NS API.
13650 (image_ascent): Use font metrics macros instead of direct struct field
13651 access.
13652 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13653 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13654 Also, handle NS as GTK for menu bar purposes.
13655 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13656 toolkit where they differ.
13657 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13658 use cachelist, still needed under NS.
13659 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13660 (struct widget_value): Define it here for menu.c.
13661 * keymap.c (includes): Include modifier internals.
13662 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13663 NS.
13664 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13665 support for preferring sequences using certain modifiers, specified by
13666 the FIRSTONLY argument.
13667 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13668 under NS GNUstep implementation.
13669 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13670 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13671 * menu.c: Include nsterm.h under NS.
13672 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13673 (free_menubar_widget_tree_value, update_submenu_strings)
13674 (find_and_call_menu_selection): Treat NS as X and NT.
13675 (find_and_return_menu_selection): New function, used for popup menus.
13676 * nsgui.h:
13677 * nsterm.h:
13678 * nsfns.m:
13679 * nsimage.m:
13680 * nsmenu.m:
13681 * nsselect.m:
13682 * nsterm.m: New files.
13683 * process.c (wait_reading_process_output): Under NS, call ns_select()
13684 instead of plain select().
13685 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13686 beginning of buffer.
13687 * sysselect.h (init_process): Rename when compiling under Cocoa to
13688 avoid name conflict.
13689 * termhooks.h (display_info): Add ns_display_info to union.
13690 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13691 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13692 COCOA environment.
13693 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13694 unexec() signature. (Note, this will dump, but the resulting file
13695 crashes; unexosx is used instead; keeping around for reference and
13696 possible aid in getting dump working under GNUstep.)
13697 * w32gui.h (button_type, widget_value): Remove definitions (now in
13698 keyboard.h).
13699 * window.c: Include nsterm.h when compiling under NS.
13700 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13701 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13702 other GUI windowing systems.
13703 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13704 GTK.
13705 (x_consider_frame_title): Under NS, set icon type and frame
13706 modified-state indicator; use ns_set_name_as_filename() when using
13707 formatted title.
13708 (update_window_cursor): Make public when compiling under NS.
13709 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13710 (hourglass_atimer, Vhourglass_delay
13711 * xfaces.c (header section, init_frame_faces, clear_font_table)
13712 (defined_color, unload_color, x_face_list_fonts)
13713 (prepare_face_for_display): Add NS support parallel to other GUIs.
13714 Emulate GCs like other non-X GUIs.
13715 (split_font_name): Don't lowercase font name under NS.
13716 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13717 under NS.
13718 * s/darwin.h: Add support for compilation under NS.
13719
13720 2008-07-15 Jason Rumney <jasonr@gnu.org>
13721
13722 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13723 (w32_show_hourglass): Rename from show_hourglass.
13724 (w32_hide_hourglass): Rename from hide_hourglass.
13725 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13726 (Vhourglass_delay): Declare extern.
13727 (hourglass_started): Remove.
13728
13729 * xdisp.c (Vhourglass_delay): Remove static.
13730 (hourglass_started, start_hourglass, cancel_hourglass):
13731 Don't include these versions on WINDOWSNT.
13732
13733 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13734
13735 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13736 variables (formerly in xfns.c).
13737 (show_hourglass, hide_hourglass): New prototypes (same).
13738 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13739 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13740 in xfns.c).
13741 (syms_of_xdisp): Declare/initialize display-hourglass,
13742 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13743 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13744 formerly in xfns.c.
13745 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13746 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13747 (start_hourglass, cancel_hourglass): Remove.
13748 (show_hourglass, hide_hourglass): Remove prototypes and static
13749 modifiers.
13750 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13751 hourglass_atimer, hourglass_shown_p declaration/initialization.
13752 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13753 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13754 (start_hourglass, cancel_hourglass): Remove.
13755 (show_hourglass, hide_hourglass): Remove prototypes and static
13756 modifiers.
13757 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13758 hourglass_atimer, hourglass_shown_p declaration/initialization.
13759 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13760 (DEFAULT_HOURGLASS_DELAY): Remove.
13761 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13762 hourglass_shown_p declaration/initialization.
13763
13764 2008-07-14 Jason Rumney <jasonr@gnu.org>
13765
13766 * w32fns.c (w32_get_arg): Remove wrapper function.
13767 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13768 directly.
13769 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13770
13771 2008-07-14 Kenichi Handa <handa@m17n.org>
13772
13773 * xfont.c (xfont_open): Add workaround for X's bug.
13774
13775 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13776
13777 * fontset.c: Include <stdio.h> unconditionally.
13778
13779 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
13780
13781 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13782 for filtering.
13783
13784 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13785
13786 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13787
13788 * m/macppc.h:
13789 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13790
13791 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
13792 (SPECIAL_EMACS_INT):
13793 * m/ia64.h (SPECIAL_EMACS_INT):
13794 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13795 * s/gnu.h (NLIST_STRUCT):
13796 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13797 * s/gnu-linux.h (LINUX):
13798 * s/msdos.h (HAVE_FACES):
13799 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13800
13801 * systty.h:
13802 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13803 anymore.
13804
13805 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13806
13807 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13808 always defined as int.
13809
13810 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13811 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13812 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13813 * s/freebsd.h (HAVE_WAIT_HEADER):
13814 * s/bsd-common.h (HAVE_UNION_WAIT):
13815 * s/aix4-2.h (HAVE_WAIT_HEADER):
13816 * m/mips.h (HAVE_UNION_WAIT):
13817 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13818 (COFF, static): Do not define, they are undefined later in the file.
13819
13820 * process.c (update_status): Don't use a union.
13821 (status_convert):
13822 (sigchld_handler): Use int instead of WAITTYPE.
13823
13824 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
13825
13826 * indent.c (Fvertical_motion): Restore hscroll before moving to
13827 goal column.
13828
13829 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13830
13831 * lisp.h: Remove left over code.
13832
13833 2008-07-11 Andreas Schwab <schwab@suse.de>
13834
13835 * lisp.h: Fix logic in last change.
13836
13837 * menu.h: New file.
13838 * menu.c: Include it.
13839 * xmenu.c: Likewise.
13840 * Makefile.in: Update dependencies.
13841
13842 2008-07-11 Kenichi Handa <handa@m17n.org>
13843
13844 * fontset.c (fontset_from_font): Cancel the previous change.
13845
13846 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13847
13848 * lisp.h:
13849 * w32heap.c:
13850 * emacs.c:
13851 * alloc.c: Replace all references of NO_UNION_TYPE with
13852 USE_LISP_UNION_TYPE.
13853
13854 * m/xtensa.h (NO_UNION_TYPE):
13855 * m/vax.h (NO_UNION_TYPE):
13856 * m/template.h (NO_UNION_TYPE):
13857 * m/sparc.h (NO_UNION_TYPE):
13858 * m/mips.h (NO_UNION_TYPE):
13859 * m/macppc.h (NO_UNION_TYPE):
13860 * m/m68k.h (NO_UNION_TYPE):
13861 * m/iris4d.h (NO_UNION_TYPE):
13862 * m/intel386.h (NO_UNION_TYPE):
13863 * m/ibms390x.h (NO_UNION_TYPE):
13864 * m/ibms390.h (NO_UNION_TYPE):
13865 * m/ibmrs6000.h (NO_UNION_TYPE):
13866 * m/ia64.h (NO_UNION_TYPE):
13867 * m/hp800.h (NO_UNION_TYPE):
13868 * m/arm.h (NO_UNION_TYPE):
13869 * m/amdx86-64.h (NO_UNION_TYPE):
13870 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13871 defining it the same.
13872
13873 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
13874
13875 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13876
13877 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13878
13879 * fileio.c:
13880 * sysdep.c:
13881 * systty.h:
13882 * m/ibmrs6000.h:
13883 * m/iris4d.h:
13884 * s/aix4-2.h:
13885 * s/freebsd.h:
13886 * s/gnu-linux.h:
13887 * s/hpux10-20.h:
13888 * s/hpux11.h:
13889 * s/netbsd.h:
13890 * s/sol2-3.h:
13891 * s/sol2-4.h:
13892 * s/sol2.h:
13893 * s/usg5-4.h:
13894 * s/vms.h: Remove references to unused variables.
13895
13896 2008-07-10 Andreas Schwab <schwab@suse.de>
13897
13898 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13899 pattern before matching the generic family.
13900
13901 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13902
13903 * unexec.c:
13904 * s/vms.h:
13905 * s/usg5-4-2.h:
13906 * s/sol2-5.h:
13907 * s/freebsd.h:
13908 * s/darwin.h: Remove dead code.
13909
13910 * m/template.h:
13911 * m/sparc.h:
13912 * m/mips.h:
13913 * m/m68k.h:
13914 * m/iris4d.h:
13915 * m/intel386.h:
13916 * m/ibms390x.h:
13917 * m/ibms390.h:
13918 * m/ia64.h:
13919 * m/hp800.h:
13920 * m/arm.h:
13921 * m/amdx86-64.h: Remove dead code and references to unused
13922 and compiler defined symbols.
13923
13924 * unexmips.c:
13925 * unexelf.c: Remove references to desupported systems.
13926
13927 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13928
13929 * m/powermac.h: Remove boilerplate comments.
13930 (NO_REMAP): Remove unused definition.
13931
13932 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13933 define them.
13934
13935 2008-07-10 Kenichi Handa <handa@m17n.org>
13936
13937 * xfont.c (xfont_open): Log the reason of failure.
13938
13939 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13940
13941 * fontset.c (fontset_get_font_group):
13942 * font.c (font_check_otf): Specify argument types.
13943
13944 2008-07-09 Kenichi Handa <handa@m17n.org>
13945
13946 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13947 non-ASCII char is found.
13948
13949 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13950 (reorder_font_vector): Change the arg preferred_family to font.
13951 Prefer the spec matching with font.
13952 (fontset_get_font_group): New function.
13953 (fontset_find_font): Change the format of an element of a realized
13954 fontset. Use fontset_get_font_group.
13955 (fontset_font): Try the current fontset, the default fontset, the
13956 fallbacks of the current fontset, and the fallbacks of the default
13957 fontset in this order.
13958 (face_for_char): Delete the shortcut to use the current font.
13959 (fontset_from_font): Don't set fonts for Latin in the fontset.
13960
13961 * font.h (font_make_object, font_match_p): Adjust prototypes.
13962
13963 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13964
13965 * font.c (font_make_object): New arg entity and pixelsize.
13966 (font_check_otf_features, font_check_otf): New functions.
13967 (font_match_p): Check :lang, :script, and :otf properties.
13968
13969 * xfont.c (xfont_open): Adjust it for the change of
13970 font_make_object.
13971 (xfont_text_extents): Fix initial setting of metrics.
13972
13973 * ftfont.c (struct ftfont_info): New member index, delete member
13974 fc_charset_idx. Make the member order compatible with struct
13975 xftfont_info.
13976 (fc_charset_table): Change charset names to registry names.
13977 (ftfont_pattern_entity): Delete the args registry and
13978 fc_charset_idx. Change the value of :font-entity property
13979 to (FONTNAME . INDEX). Always set :registry property to
13980 `iso10646-1'.
13981 (struct ftfont_cache_data): New struct.
13982 (ftfont_lookup_cache): New arg for_face.
13983 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13984 (ftfont_driver): Set the member otf_capability.
13985 (ftfont_get_charset): Adjust it for the change of
13986 fc_charset_table.
13987 (OTF_TAG_SYM): New macro.
13988 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13989 for the change of fc_charset_table.
13990 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13991 ftfont_pattern_entity. Add FC_INDEX to objset.
13992 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13993 and ftfont_pattern_entity.
13994 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13995 font_make_object, struct ftfont_info.
13996 (ftfont_has_char): Use ftfont_get_fc_charset.
13997 (ftfont_otf_features, ftfont_otf_capability): New functions.
13998 (ftfont_shape): Use ftfont_get_otf.
13999 (ftfont_text_extents): Fix initial setting of metrics.
14000
14001 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14002 member order compatible with struct ftfont_info.
14003 (xftfont_open): Add FC_CHARSET to the pattern. Set
14004 xftfont_info->ft_size. Don't unlock the face. Check BDF
14005 properties if appropriate.
14006 (xftfont_close): Unlock the face.
14007 (xftfont_anchor_point, xftfont_shape): Deleted.
14008 (syms_of_xftfont): Don't set members anchor_point and shape of
14009 xftfont_driver.
14010
14011 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14012 font_make_object.
14013
14014 * w32font.c (w32font_open): Adjust it for the change of
14015 font_make_object.
14016 (w32font_open_internal): Don't set properties of font_object here.
14017
14018 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
14019
14020 * macfns.c (x_create_tip_frame):
14021 * w32fns.c (x_create_tip_frame):
14022 * xfns.c (x_create_tip_frame): Pass parameter argument to
14023 face-set-after-frame-default.
14024
14025 * xfaces.c (Finternal_merge_in_global_face): Save merged
14026 attributes for the default face back into the face vector.
14027
14028 2008-07-08 Andreas Schwab <schwab@suse.de>
14029
14030 * fontset.h: Declare fontset_from_font. Don't declare
14031 new_fontset_from_font and fontset_from_font_name.
14032 * xterm.c: Include "fontset.h".
14033 * Makefile.in (xterm.o): Update dependencies.
14034
14035 2008-07-08 Glenn Morris <rgm@gnu.org>
14036
14037 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14038 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14039
14040 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
14041
14042 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14043 (x_set_frame_parameters): Don't bind it.
14044
14045 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
14046
14047 * w32fns.c (map_w32_filename): Declare extern.
14048
14049 2008-07-07 Jason Rumney <jasonr@gnu.org>
14050
14051 * w32term.c (WS_EX_LAYERED): Define if not already.
14052
14053 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
14054
14055 * xfaces.c (set_font_frame_param): Don't try to set the font
14056 parameter if it is still unspecified in the lface.
14057
14058 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
14059
14060 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14061 face if it didn't already exist.
14062
14063 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14064
14065 2008-07-05 Andreas Schwab <schwab@suse.de>
14066
14067 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14068
14069 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
14070
14071 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14072 word-wrapping.
14073 (IT_DISPLAYING_WHITESPACE): New macro.
14074 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14075 when word-wrapping. Simplify word-wrapping logic. Use correct
14076 pixel positions when saving copies of the iterator.
14077 (display_line): Use proper wrap point if the last character on a
14078 line was preceded by whitespace.
14079
14080 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14081
14082 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14083
14084 2008-07-04 Kenichi Handa <handa@m17n.org>
14085
14086 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14087
14088 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14089
14090 2008-07-02 Jason Rumney <jasonr@gnu.org>
14091
14092 * xfns.c (syms_of_xfns): Only define x-select-font when both
14093 HAVE_FREETYPE and USE_GTK.
14094
14095 * xdisp.c (next_element_from_display_vector): Move assignment out
14096 of if statement.
14097
14098 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14099
14100 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14101
14102 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14103 (syms_of_fileio): Initialize and export them.
14104 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14105
14106 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14107 (Fsystem_move_file_to_trash): New function.
14108 (syms_of_w32fns): Export it to lisp.
14109
14110 2008-07-01 Jason Rumney <jasonr@gnu.org>
14111
14112 * w32font.c (w32font_text_extents): Don't count overhang as part
14113 of width.
14114
14115 2008-06-30 Miles Bader <miles@gnu.org>
14116
14117 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14118 Add `avoid_cursor_p' field.
14119
14120 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14121 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14122 (append_glyph, append_composite_glyph, produce_image_glyph)
14123 (append_stretch_glyph): Initialize avoid_cursor_p.
14124 (get_it_property): Rename from `get_line_height_property'.
14125 (x_produce_glyphs): Use get_it_property.
14126 (handle_line_prefix, push_display_prop): New functions.
14127 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14128 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14129 New variables.
14130 (syms_of_xdisp): Initialize them.
14131
14132 2008-06-30 Kenichi Handa <handa@m17n.org>
14133
14134 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14135 XftDefaultSubstitute (they are called in XftFontMatch).
14136 (xftfont_open): Fix args to ftfont_font_format.
14137
14138 * ftfont.c (fc_charset_table): New member lang.
14139 (ftfont_resolve_generic_family): New arg pattern.
14140 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
14141 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14142 (ftfont_open): Fix args to ftfont_font_format.
14143 (ftfont_font_format): New arg filename.
14144
14145 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
14146
14147 * xfaces.c (Finternal_merge_in_global_face): If default face was
14148 modified, realize it again. Update the font face attribute.
14149
14150 2008-06-29 Jason Rumney <jasonr@gnu.org>
14151
14152 * w32term.c (x_set_frame_alpha): Fix logic.
14153
14154 2008-06-29 Kenichi Handa <handa@m17n.org>
14155
14156 * fontset.c (Finternal_char_font): Return font-object instead of
14157 font-name.
14158
14159 * composite.c (get_composition_id): Fix the width calculation for TAB.
14160
14161 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14162
14163 * indent.c (Fvertical_motion): Properly handle float column arg.
14164
14165 2008-06-28 Jason Rumney <jasonr@gnu.org>
14166
14167 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14168 (pfnSetLayeredWindowAttributes): New function pointer.
14169 (w32_initialize): Initialize it when supported.
14170 (x_set_frame_alpha): New function.
14171
14172 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14173 (w32_frame_parm_handlers): Set alpha handler.
14174
14175 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14176
14177 2008-06-27 Jason Rumney <jasonr@gnu.org>
14178
14179 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14180 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14181 (w32_to_x_charset, x_to_w32_charset)
14182 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14183 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14184 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14185 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14186 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14187 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14188 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14189 (Qw32_charset_unicode): Remove.
14190 (syms_of_w32fns): Update for above changes.
14191
14192 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14193 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14194 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14195 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14196 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14197 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14198 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14199 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14200 (syms_of_w32font): Update for above changes.
14201
14202 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14203
14204 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14205 removed #if.
14206 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14207
14208 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
14209 Eli Zaretskii <eliz@gnu.org>
14210
14211 * makefile.w32-in (LOCAL_FLAGS):
14212 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14213
14214 * sysdep.c (_spawnlp, _getpid):
14215 Declare with explicit _cdecl instead of _CRTAPI1.
14216
14217 * editfns.c (Fget_internal_run_time):
14218 Check for WINDOWSNT with #ifdef, not #if.
14219
14220 2008-06-26 Jason Rumney <jasonr@gnu.org>
14221
14222 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14223
14224 * w32term.c (x_draw_glyph_string_foreground)
14225 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14226 Use FONT_HANDLE macro.
14227 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14228
14229 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14230 (uniscribe_encode_char): Use FONT_HANDLE macro.
14231
14232 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14233 (w32font_text_extents): Use precast w32_font.
14234 (w32font_close): Free cached metrics.
14235 (w32font_open_internal): Allocate space for name on stack.
14236
14237 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
14238
14239 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14240
14241 2008-06-26 Jason Rumney <jasonr@gnu.org>
14242
14243 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14244 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14245
14246 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
14247
14248 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14249
14250 2008-06-26 Jason Rumney <jasonr@gnu.org>
14251
14252 * w32bdf.c, w32bdf.h: Remove obsolete files.
14253
14254 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14255
14256 * w32gui.h: Don't include w32bdf.h.
14257 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14258 Remove obsolete font support.
14259
14260 * w32font.h (struct w32font_info): Remove compat_w32_font.
14261 Add hfont member.
14262 (FONT_COMPAT): Remove obsolete macro.
14263
14264 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14265 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14266 (w32font_open_internal): Remove compat code. Set new hfont member.
14267 (Fx_select_font): Use new hfont member.
14268
14269 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14270 (uniscribe_encode_char): Use new hfont member.
14271
14272 * w32term.c (x_draw_glyph_string_foreground)
14273 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14274 (x_draw_glyph_string): Use metrics in w32font_info.
14275
14276 2008-06-26 Kenichi Handa <handa@m17n.org>
14277
14278 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14279
14280 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14281
14282 * unexnext.c:
14283 * m/ews4800.h:
14284 * m/hp9000s300.h:
14285 * m/ibm370aix.h:
14286 * m/mips-siemens.h:
14287 * m/ncr386.h:
14288 * m/next.h:
14289 * m/pmax.h:
14290 * m/powerpcle.h:
14291 * m/tandem-s2.h:
14292 * s/386bsd.h:
14293 * s/bsd386.h:
14294 * s/bsd4-1.h:
14295 * s/bsd4-2.h:
14296 * s/bsdos2-1.h:
14297 * s/bsdos2.h:
14298 * s/bsdos3.h:
14299 * s/bsdos4.h:
14300 * s/nextstep.h:
14301 * s/ultrix4-3.h:
14302 * s/usg5-0.h:
14303 * s/usg5-2-2.h:
14304 * s/usg5-2.h:
14305 * s/usg5-4-3.h:
14306 * s/ux4800.h:
14307 * s/uxpds.h:
14308 * s/uxpv.h: Remove support for obsolete systems.
14309 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
14310 Remove, insert contents in s/hpux10-20.h.
14311 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14312 Remove, insert contents in s/aix4-2.h.
14313 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14314 * s/bsd4-3.h: Rename to ...
14315 * s/bsd-common.h: ... this.
14316 * data.c:
14317 * doc.c:
14318 * ecrt0.c:
14319 * emacs.c:
14320 * fileio.c:
14321 * floatfns.c:
14322 * keyboard.c:
14323 * mem-limits.h:
14324 * print.c:
14325 * process.c:
14326 * sysdep.c:
14327 * syssignal.h:
14328 * systty.h:
14329 * syswait.h:
14330 * term.c:
14331 * unexec.c:
14332 * unexelf.c:
14333 * unexhp9k800.c:
14334 * m/hp800.h:
14335 * m/ibmrs6000.h:
14336 * m/mips.h:
14337 * m/vax.h:
14338 * s/darwin.h:
14339 * s/freebsd.h:
14340 * s/gnu.h:
14341 * s/ms-w32.h:
14342 * s/msdos.h:
14343 * s/netbsd.h:
14344 * s/template.h: Remove references to obsolete variables.
14345
14346 * Makefile.in: Add dependencies for all unexec files.
14347 (admindir): Remove unused variable.
14348 (UNEXEC_SRC): Remove references.
14349
14350 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
14351
14352 * xfns.c (x_default_font_parameter): If Xft is available, first
14353 try Monospace-12 for the default font.
14354
14355 2008-06-25 Jason Rumney <jasonr@gnu.org>
14356
14357 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14358
14359 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14360
14361 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14362
14363 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14364
14365 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
14366
14367 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14368 <scroll-conservatively>: Fix typo in docstring.
14369
14370 * xselect.c (Fx_send_client_event): Doc fix.
14371
14372 2008-06-25 Kenichi Handa <handa@m17n.org>
14373
14374 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14375
14376 * font.c (font_parse_fcname): Remove unused variables.
14377 (font_sort_entites): Delete the arg SPEC. Caller changed.
14378 Fix for the case of ! best_only.
14379 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14380
14381 * lisp.h (Fstring_to_unibyte): EXFUN it.
14382
14383 * character.h (str_to_unibyte): Extern it.
14384
14385 * character.c (str_to_unibyte): New function.
14386
14387 * fns.c (Fstring_to_unibyte): New function.
14388 (syms_of_fns): Defsubr it.
14389
14390 2008-06-24 Kenichi Handa <handa@m17n.org>
14391
14392 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14393 DPI too.
14394 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14395
14396 2008-06-24 Andreas Schwab <schwab@suse.de>
14397
14398 * Makefile.in (${lispsource}loaddefs.el): Rename from
14399 ../lisp/loaddefs.el.
14400 (bootstrap-clean): Do what distclean does but don't remove
14401 Makefile.
14402 (distclean): Depend on bootstrap-clean and remove Makefile.
14403
14404 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
14405
14406 * buffer.h (struct buffer): New member word_wrap.
14407
14408 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14409 word-wrap.
14410 (init_buffer_once): Initialize them.
14411
14412 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14413 line_wrap enum possessing three possible values.
14414
14415 * termopts.h: Replace truncate_partial_width_windows with
14416 Vtruncate_partial_width_windows.
14417
14418 * dispnew.c (direct_output_for_insert): Avoid direct output when
14419 inserting a space with word wrap on.
14420
14421 * indent.c (compute_motion): Obey integer values of
14422 truncate-partial-width-windows.
14423
14424 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14425 replacing truncate_partial_width_windows.
14426 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14427 truncate only if the window width is below that integer.
14428 (start_display, resize_mini_window, produce_stretch_glyph)
14429 (display_string, move_it_in_display_line_to): Use line_wrap.
14430 (back_to_previous_visible_line_start, reseat_1): Reset
14431 string_from_display_prop_p.
14432 (display_line): Extend default face to end of line when wrapping.
14433
14434 2008-06-24 Kim F. Storm <storm@cua.dk>
14435
14436 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14437 to wrap continued lines at word boundaries.
14438
14439 2008-06-24 Jason Rumney <jasonr@gnu.org>
14440
14441 * font.c (Ffont_face_attributes): Multiply pixel size before point
14442 conversion to avoid multiplying rounding error.
14443
14444 2008-06-23 Jason Rumney <jasonr@gnu.org>
14445
14446 * w32term.c (x_draw_glyph_string_background)
14447 (x_draw_glyph_string): Remove old bdf font code.
14448
14449 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14450
14451 2008-06-22 Kenichi Handa <handa@m17n.org>
14452
14453 * font.c (font_find_for_lface): Try the adstyle specified in
14454 the property of LFACE_FONT of LFACE (if any).
14455
14456 2008-06-21 Seiji Zenitani <zenitani@mac.com>
14457 Ryo Yoshitake <ryo@shiftmode.net>
14458
14459 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14460
14461 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14462
14463 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14464 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14465 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14466 (witness-emacs): Remove.
14467 (lisp, shortlisp): Move loaddefs.el earlier.
14468 (mostlyclean): Forget about witness-emacs.
14469
14470 2008-06-22 Glenn Morris <rgm@gnu.org>
14471
14472 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14473 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14474
14475 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14476
14477 * Makefile.in (PRECOMP): Remove.
14478 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14479 (witness-emacs): Run `compile-first'.
14480 (.el.elc): Use the new compile-onefile target.
14481
14482 2008-06-21 Kenichi Handa <handa@m17n.org>
14483
14484 * xftfont.c (xftfont_open): Handle QCembolden only when
14485 FC_EMBOLDEN is defined.
14486
14487 2008-06-21 Andreas Schwab <schwab@suse.de>
14488
14489 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14490 (.el.elc): Likewise.
14491
14492 2008-06-21 Miles Bader <miles@gnu.org>
14493
14494 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14495 build dir, not the lisp source dir.
14496
14497 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14498
14499 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14500 (bootstrapclean): Remove.
14501 (.el.elc): New rule.
14502 (PRECOMP): New var.
14503 (../lisp/subdirs.el): Remove.
14504 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14505 (witness-emacs): New target.
14506 (mostlyclean): Remove witness-emacs as well.
14507 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14508 Add witness-emacs dependency.
14509
14510 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
14511
14512 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14513 defined by the font.
14514
14515 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14516
14517 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14518 (bootstrap-clean): New target that keeps TAGS around.
14519 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14520 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14521
14522 2008-06-20 Jason Rumney <jasonr@gnu.org>
14523
14524 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14525 Remove obsolete font code.
14526
14527 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14528 to determine language support.
14529
14530 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14531
14532 * sysdep.c (cfsetspeed): New fun extracted from the code.
14533 (cfmakeraw): Move before first use.
14534
14535 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14536
14537 * sysdep.c (cfmakeraw): Provide fallback implementation.
14538 (serial_configure): Provide fallback implementation of cfsetspeed.
14539
14540 2008-06-20 Kenichi Handa <handa@m17n.org>
14541
14542 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14543 the pattern.
14544
14545 * fontset.c (fontset_from_font): Copy font_spec before changing
14546 the elements.
14547
14548 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14549
14550 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14551
14552 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14553 for explicit `font' parameters.
14554
14555 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14556
14557 2008-06-19 Kenichi Handa <handa@m17n.org>
14558
14559 * frame.c: Include <ctype.h>.
14560 (x_set_font_backend): Allow spacing characters in the X resource
14561 for FontBackend.
14562
14563 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14564
14565 * w32fns.c, xfns.c (Qfont_param): New var.
14566 (syms_of_w32fns): Initialize it.
14567 (x_default_font_parameter): Record explicit `font' into
14568 `font-parameter'.
14569
14570 2008-06-18 Kenichi Handa <handa@m17n.org>
14571
14572 * font.c (font_parse_xlfd): Fix previous change.
14573 (font_parse_fcname): Don't use :fc-unknown-spec.
14574 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14575 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14576 (font_add_log): Prepend the driver name to the resulting fonts.
14577
14578 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14579 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14580 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14581
14582 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14583 (QCembolden): New variables.
14584 (syms_of_xftfont): DEFSYM them.
14585 (xftfont_open): Call XftFontMatch. Don't trust the result of
14586 XftTextExtents8 if the pixel_size is less than 5.
14587
14588 2008-06-18 Andreas Schwab <schwab@suse.de>
14589
14590 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14591 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14592
14593 2008-06-18 Jason Rumney <jasonr@gnu.org>
14594
14595 * w32font.c (w32font_list, w32font_match): Add logging.
14596
14597 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14598
14599 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
14600
14601 * font.c (font_parse_fcname): Store divider characters for
14602 unknown-spec list. For known key symbols, intern using correct
14603 symbol name.
14604
14605 2008-06-17 Kenichi Handa <handa@m17n.org>
14606
14607 * xfaces.c (realize_default_face): If the frame is not on window
14608 system, set the fontset of face to nil.
14609
14610 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14611
14612 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14613
14614 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
14615
14616 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14617 (build_font_name_from_vector): Delete externs.
14618
14619 * xfaces.c (struct font_name): Don't declare.
14620
14621 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14622
14623 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14624
14625 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
14626
14627 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14628
14629 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
14630
14631 * font.c (Ffont_spec): Fix usage in docstring.
14632 (Ffont_face_attributes): Doc fix.
14633
14634 2008-06-16 Andreas Schwab <schwab@suse.de>
14635
14636 * font.c (Ffont_face_attributes): Fix definition.
14637
14638 2008-06-16 Jason Rumney <jasonr@gnu.org>
14639
14640 * font.h (font_style_symbolic_from_value): Remove.
14641
14642 * font.c (font_style_symbolic_from_value): Remove.
14643 (font_style_symbolic): Revert to pre 2008-06-13 version.
14644
14645 * w32font.c (w32_to_fc_weight): New function.
14646 (w32font_full_name, logfont_to_fcname): Use it.
14647
14648 2008-06-16 Kenichi Handa <handa@m17n.org>
14649
14650 * font.c (font_check_object): Delete it.
14651 (font_clear_cache): Check if a font-object is alive.
14652 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14653 font-object to nil.
14654 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14655 (font_at): Don't call font_check_object.
14656 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14657
14658 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14659
14660 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14661
14662 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
14663
14664 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14665
14666 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
14667
14668 * font.c (font_parse_fcname): Only one decimal point.
14669 (font_unparse_fcname): Handle data in family and foundry indices
14670 as symbols, not strings.
14671 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14672
14673 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14674
14675 * font.h (font_unparse_gtkname): Add prototype.
14676
14677 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14678
14679 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14680
14681 2008-06-15 Andreas Schwab <schwab@suse.de>
14682
14683 * font.c (font_update_drivers): Fix crash when no drivers match.
14684
14685 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14686
14687 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14688 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14689
14690 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14691
14692 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14693
14694 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14695
14696 * process.c (Fserial_process_configure, Fprocess_send_eof):
14697 Use EQ to compare Lisp_Objects.
14698
14699 2008-06-13 Jason Rumney <jasonr@gnu.org>
14700
14701 * w32fns.c (Fw32_select_font): Remove old font API function.
14702
14703 * w32font.c (logfont_to_fcname): New function.
14704 (Fx_select_font): New font dialog function compatible with
14705 GTK/fontconfig version.
14706
14707 * font.c (font_style_symbolic_from_value): New function.
14708 (font_style_symbolic): Use it.
14709
14710 * font.h (font_style_symbolic_from_value): Declare new function.
14711
14712 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
14713
14714 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14715 <font-width-table>: Fix typos in docstrings.
14716
14717 2008-06-13 Daniel Engeler <engeler@gmail.com>
14718
14719 These changes add serial port access.
14720 * process.c: Add HAVE_SERIAL.
14721 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14722 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14723 (list_processes_1, select_wrapper, Fstop_process)
14724 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14725 (status_notify): Modify to handle serial processes.
14726 [HAVE_SERIAL] (Fserial_process_configure)
14727 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14728 New functions.
14729 * process.h (struct Lisp_Process): Add `type'.
14730 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14731 New functions.
14732 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14733 serial ports.
14734 (serial_open, serial_configure): New functions.
14735 * w32.h: Add FILE_SERIAL.
14736 (struct _child_process): Add ovl_read, ovl_write.
14737
14738 2008-06-13 Kenichi Handa <handa@m17n.org>
14739
14740 * dispextern.h (enum lface_attribute_index): New member
14741 LFACE_FOUNDRY_INDEX.
14742
14743 * font.c (font_score): Delete arg alternate_families. Check only
14744 weight, slant, width, and size. Ignore the difference of alias
14745 style symbols.
14746 (font_sort_entites): Adjust for the above change. Reflect the
14747 order of font-driver to scores.
14748 (font_list_entities): Don't check alternate_familes here.
14749 (font_clear_prop): Handle foundry.
14750 (font_update_lface): Don't parse "foundry-family" form here.
14751 Handle FONT_FOUNDRY_INDEX.
14752 (font_find_for_lface): Likewise. Handle alternate families here.
14753 If registry is nil, try iso8859-1 and ascii-0.
14754 (font_open_for_lface): Pay attention to size in ENTITY.
14755 (font_open_by_name): Simplify by calling font_load_for_lface.
14756 (free_font_driver_list): Delete it.
14757 (font_update_drivers): Preserve the order of backends.
14758 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14759 of font_score and font_sort_entites.
14760 (font_update_sort_order): Likewise.
14761
14762 * xfaces.c (LFACE_FOUNDRY): New macro.
14763 (check_lface_attrs): Check foundry.
14764 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14765 (merge_face_vectors): Check foundry.
14766 (merge_face_ref): Likewise.
14767 (Finternal_set_lisp_face_attribute): Likewise.
14768 (x_update_menu_appearance): Likewise.
14769 (Finternal_get_lisp_face_attribute): Likewise.
14770 (lface_hash): Likewise.
14771 (lface_same_font_attributes_p): Likewise.
14772 (x_supports_face_attributes_p): Likewise.
14773 (tty_supports_face_attributes_p): Likewise.
14774 (Finternal_set_alternative_font_family_alist): Intern strings.
14775 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14776 (realize_default_face): Set LFACE_FOUNDRY (lface).
14777
14778 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14779 font-driver at first.
14780
14781 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14782
14783 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14784
14785 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14786
14787 2008-06-12 Jim Meyering <meyering@redhat.com>
14788
14789 Make unexec_free handle NULL the same way free does.
14790 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14791
14792 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14793
14794 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14795 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14796 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14797 (WEAK_ALIAS): Simplify.
14798 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14799 when searching a unibyte buffer.
14800
14801 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
14802
14803 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14804
14805 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
14806
14807 * w32font.c: Include ctype.h.
14808
14809 2008-06-11 Jason Rumney <jasonr@gnu.org>
14810
14811 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14812 misreported as space.
14813 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14814 as aliases for registry iso10646-1.
14815
14816 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14817
14818 * buffer.c (clone_per_buffer_values): Skip `name'.
14819
14820 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
14821
14822 * font.c (font_parse_fcname): Fix last change; accept decimal
14823 points in font size.
14824
14825 2008-06-10 Jason Rumney <jasonr@gnu.org>
14826
14827 * w32uniscribe.c (add_opentype_font_name_to_list):
14828 Skip non unicode fonts.
14829
14830 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
14831
14832 * xfns.c (Fx_font_dialog): New function.
14833
14834 * gtkutil.c (xg_dialog_response_cb): Rename from
14835 xg_file_response_callback.
14836 (pop_down_dialog): Rename from pop_down_file_dialog.
14837 (xg_get_file_name): Callers changed.
14838 (xg_get_font_name): New function.
14839
14840 * gtkutil.h (xg_get_font_name): Insert prototype.
14841
14842 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14843
14844 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14845 x_underline_minimum_display_offset.
14846 (syms_of_xdisp): Declare it here rather than in xterm.c.
14847 * dispextern.h (underline_minimum_offset): Declare it.
14848 * w32term.c (x_draw_glyph_string): Use it.
14849 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14850 (syms_of_xterm): Don't declare it any more.
14851 (x_draw_glyph_string): Adjust to the new name.
14852
14853 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
14854
14855 * xterm.c (x_underline_minimum_display_offset): New var.
14856 (x_draw_glyph_string): Use it.
14857 (syms_of_xterm): Declare it.
14858
14859 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
14860
14861 * font.c (font_parse_fcname): Accept GTK-style font names too.
14862
14863 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14864
14865 * dired.c (file_name_completion): Don't return t if the match is exact
14866 but with different capitalization.
14867 * minibuf.c (Ftry_completion): Simplify.
14868
14869 * window.c (Vwindow_point_insertion_type): New var.
14870 (set_window_buffer): Use it.
14871 (syms_of_window): Init and export it to Lisp.
14872
14873 2008-06-10 Kenichi Handa <handa@m17n.org>
14874
14875 * font.h (font_intern_prop): Prototype adjusted.
14876
14877 * font.c (font_intern_prop): New arg force_symbol.
14878 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14879 Adjust for the change of font_intern_prop.
14880
14881 * ftfont.c (ftfont_pattern_entity):
14882 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14883 (w32_registry):
14884 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14885 the change of font_intern_prop.
14886
14887 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
14888
14889 * w32menu.c (digest_single_submenu): Declare extern.
14890
14891 2008-06-09 Jason Rumney <jasonr@gnu.org>
14892
14893 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14894
14895 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14896 (parse_single_submenu): Remove.
14897 (digest_single_submenu): Remove.
14898 (syms_of_w32menu): Don't initialise variables that have moved
14899 to menu.c.
14900 (set_frame_menubar): Sync with version in xmenu.c.
14901 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14902
14903 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14904 Make static again.
14905
14906 2008-06-09 Jason Rumney <jasonr@gnu.org>
14907
14908 Changes to w32 files related to the move of common menu code
14909 to menu.c on 2008-06-08 by Chong Yidong.
14910
14911 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14912 defs to w32gui.h.
14913 (single_keymap_panes, push_menu_item, push_menu_pane):
14914 Make globally visible.
14915
14916 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14917 (local_free, malloc_widget_value, free_widget_value)
14918 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14919 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14920 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14921 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14922 (menu_items, menu_items_allocated, menu_items_used)
14923 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14924 (init_menu_items, finish_menu_items, discard_menu_items)
14925 (grow_menu_items, push_submenu_start, push_submenu_end)
14926 (push_left_right_boundary, push_menu_pane, push_menu_item)
14927 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14928 (free_menubar_widget_tree_value, parse_single_submenu)
14929 (update_submenu_strings): Remove functions.
14930 (xmalloc_widget_value): Remove and declare extern.
14931
14932 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14933 (OBJ1): Build it.
14934
14935 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14936 (local_heap, local_alloc, local_free, malloc_widget_value)
14937 (free_widget_value): Define here.
14938
14939 2008-06-09 Kenichi Handa <handa@m17n.org>
14940
14941 * font.h (Qascii_0): Extern it.
14942
14943 * font.c (Qascii_0): New variable.
14944 (syms_of_font): DEFSYM it.
14945 (font_open_by_name): If the registry "iso8859-1" fails, try also
14946 "ascii-0".
14947
14948 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14949
14950 2008-06-08 Kenichi Handa <handa@m17n.org>
14951
14952 * .gdbinit (xfont): New command.
14953
14954 2008-06-08 Andreas Schwab <schwab@suse.de>
14955
14956 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14957 * Makefile.in (menu.o): Update dependencies.
14958
14959 * Makefile.in (obj): Always add menu.o.
14960 * emacs.c (main): Always call syms_of_menu.
14961 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14962
14963 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
14964
14965 * Makefile.in: Compile menu.c.
14966
14967 * lisp.h: Declare syms_of_menu.
14968
14969 * emacs.c (main): Call syms_of_menu.
14970
14971 * keyboard.h: Relocate platform-independent menu definitions from
14972 xmenu.c.
14973
14974 * menu.c: New file. Relocate platform-independent menu
14975 definitions from xmenu.c. Suggested by Adrian Robert.
14976
14977 * xmenu.c: Remove platform-independent menu definitions.
14978 (menu_items, menu_items_inuse, menu_items_allocated)
14979 (menu_items_used, menu_items_n_panes)
14980 (menu_items_submenu_depth): Move to keyboard.h.
14981 (init_menu_items, finish_menu_items, unuse_menu_items)
14982 (discard_menu_items, restore_menu_items, save_menu_items)
14983 (grow_menu_items, push_submenu_start, push_submenu_end)
14984 (push_left_right_boundary, push_menu_pane, push_menu_item)
14985 (keymap_panes, single_keymap_panes, single_menu_item)
14986 (list_of_panes, list_of_items, find_and_call_menu_selection)
14987 (xmalloc_widget_value, free_menubar_widget_value_tree)
14988 (parse_single_submenu, digest_single_submenu)
14989 (update_submenu_strings): Move to menu.c.
14990
14991 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14992
14993 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14994
14995 2008-06-06 Miles Bader <miles@gnu.org>
14996
14997 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14998 face, not frame default.
14999
15000 2008-06-05 Martin Rudalics <rudalics@gmx.at>
15001
15002 * window.c (pop_up_windows, pop_up_frames)
15003 (display_buffer_reuse_frames, Vpop_up_frame_function)
15004 (Vdisplay_buffer_function, Veven_window_heights)
15005 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15006 (Vspecial_display_function, Vsame_window_buffer_names)
15007 (Vsame_window_regexps, split_height_threshold)
15008 (Vsplit_window_preferred_function): Move those vars to window.el.
15009 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15010 (Fdisplay_buffer): Move those functions to window.el.
15011 (syms_of_window): Remove corresponding declarations.
15012 (display_buffer): New function.
15013 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15014 * dispnew.c (Flast_nonminibuf_frame): New function.
15015 * buffer.c (Fpop_to_buffer): Move to window.el.
15016
15017 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15018
15019 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15020
15021 2008-06-05 Kenichi Handa <handa@m17n.org>
15022
15023 * coding.c (detect_coding): Fix previous change.
15024 (detect_coding_system): Likewise.
15025
15026 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15027
15028 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15029
15030 * keymap.c (Vminibuffer_local_filename_must_match_map):
15031 Rename from Vminibuffer_local_must_match_filename_map.
15032 (syms_of_keymap):
15033 * minibuf.c (Fcompleting_read): Adjust accordingly.
15034 * commands.h: Rename declaration as well.
15035
15036 2008-06-05 Kenichi Handa <handa@m17n.org>
15037
15038 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15039 family name.
15040 (Ffont_put): Likewise.
15041
15042 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15043 current font-spec.
15044
15045 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15046 is unspecified.
15047
15048 * xfaces.c (realize_x_face): If the font-related face attributes
15049 are the same as those of default face, realize a new fontset from
15050 default->fontset.
15051 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15052
15053 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15054
15055 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15056 (move_it_in_display_line): New wrapper.
15057
15058 * window.c (window_scroll_pixel_based_preserve_x)
15059 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15060 (window_scroll_pixel_based, window_scroll_line_based):
15061 Use them to preserve column positions.
15062 (syms_of_window): Initialize them.
15063
15064 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15065 (HPOS . VPOS) pair.
15066
15067 * dispextern.h (move_it_in_display_line): Declare.
15068
15069 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
15070
15071 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15072 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15073 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15074
15075 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
15076
15077 * window.c (Fset_window_parameter): Doc fix.
15078 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15079
15080 2008-06-04 Joakim Verona <joakim@verona.se>
15081
15082 * window.h (struct window): Add new member window_parameters.
15083
15084 * window.c (Fwindow_parameters, Fwindow_parameter)
15085 (Fset_window_parameter): New defuns.
15086 (syms_of_window): Defsubr the new defuns.
15087 (make_window): Initialize window_parameters to nil.
15088
15089 2008-06-04 John Paul Wallington <jpw@pobox.com>
15090
15091 * eval.c (Fdefmacro): Doc fix.
15092
15093 2008-06-04 Kenichi Handa <handa@m17n.org>
15094
15095 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15096 Be sure to call setup_coding_system when we find a proper coding system.
15097 (detect_coding_system): Fix handling of coding->head_ascii.
15098
15099 2008-06-03 Andreas Schwab <schwab@suse.de>
15100
15101 * font.c (font_prop_validate_spacing): Fix last change.
15102
15103 2008-06-03 Kenichi Handa <handa@m17n.org>
15104
15105 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15106 (font_parse_fcname): Fix handling of unknown key.
15107
15108 * xfont.c (xfont_list): Try an alias.
15109
15110 * charset.c (char_charset): Return NULL if the arg charset_list is
15111 specified and C doesn't belong to any of them.
15112
15113 2008-06-02 Chip Coldwell <coldwell@redhat.com>
15114
15115 * font.c (font_pixel_size): Don't take cdr of an integer.
15116
15117 2008-06-02 Jim Meyering <meyering@redhat.com>
15118
15119 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15120 * alloc.c (xfree): Return right away for a NULL arg.
15121 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15122 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15123 * mac.c (create_apple_event_from_event_ref): Likewise.
15124 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15125 Likewise.
15126 * doprnt.c (doprnt1): Likewise.
15127 * frame.c (frame): Likewise.
15128 * keyboard.c (wipe_kboard): Likewise.
15129 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15130 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15131 * term.c (tty_default_color_capabilities, maybe_fatal)
15132 (delete_tty): Likewise.
15133 * w16select.c (string): Likewise.
15134 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15135 * w32bdf.c (w32_free_bdf_font): Likewise.
15136 * w32fns.c (w32_unload_font): Likewise.
15137 * w32font.c (w32font_close): Likewise.
15138 * window.c (size_window): Likewise.
15139 * xselect.c (receive_incremental_selection): Likewise.
15140 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15141 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15142 * w32.c (stat): Likewise.
15143
15144 Remove useless if-before-free tests.
15145 * editfns.c (Fset_time_zone_rule): Likewise.
15146 * lread.c (nosuffix): Likewise.
15147 * ralloc.c (get_bloc): Likewise.
15148 * regex.c (reg_free): Likewise.
15149 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15150 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15151 * xsmfns.c (smc_save_yourself_CB): Likewise.
15152
15153 2008-06-02 Kenichi Handa <handa@m17n.org>
15154
15155 * font.c (font_find_for_lface): Handle float font size.
15156 (font_open_for_lface): Likewise.
15157
15158 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15159 comparing the properties.
15160
15161 2008-06-01 Jason Rumney <jasonr@gnu.org>
15162
15163 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15164 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15165 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15166 Don't add empty script list.
15167 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15168
15169 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15170
15171 * Makefile.in (dot, dotdot): Remove, update users.
15172 ".." has been used elsewhere in the file for a long time.
15173 (LIBXT_STATIC): Remove conditional based on unused variable.
15174
15175 2008-06-01 Miles Bader <miles@gnu.org>
15176
15177 * xfaces.c (Vface_remapping_alist): New variable.
15178 (syms_of_xfaces): Initialize it.
15179 (enum named_merge_point_kind): New type.
15180 (struct named_merge_point): Add `named_merge_point_kind' field.
15181 (push_named_merge_point): Make cycle detection respect different
15182 named-merge-point kinds.
15183 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15184 Remove face-name alias resolution.
15185 (lface_from_face_name): New definition using
15186 `lface_from_face_name_no_resolve'.
15187 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15188 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15189 (get_lface_attributes): New definition that layers face-remapping on
15190 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15191 (lookup_basic_face): New function.
15192 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15193 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15194 `get_lface_attributes'.
15195 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15196 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15197 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15198
15199 * xdisp.c (init_iterator): Pass base_face_id through
15200 `lookup_basic_face' when we actually use it as a face-id.
15201 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15202 DEFAULT_FACE_ID.
15203
15204 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15205 lookup the initial face-id.
15206
15207 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15208
15209 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
15210
15211 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15212 (Fremove_text_properties): Fix typos in docstrings.
15213
15214 2008-05-31 Kenichi Handa <handa@m17n.org>
15215
15216 * font.c (font_list_entities): Fix the car part of data to be
15217 stored in the cache.
15218
15219 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15220
15221 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15222
15223 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15224 Add a `test' argument so another predicate than `equal' can be used.
15225 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15226 (map_char_table): Remove unused vars `c' and `i'.
15227 * lisp.h (Foptimize_char_table): Adjust declaration.
15228 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15229
15230 2008-05-30 Kenichi Handa <handa@m17n.org>
15231
15232 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15233 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15234 defined.
15235
15236 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15237
15238 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15239 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15240 frame-local settings for the same variable.
15241
15242 2008-05-30 Kenichi Handa <handa@m17n.org>
15243
15244 * fontset.c (Ffont_info): Move to font.c.
15245 (syms_of_fontset): Delete defsubr of Sfont_info.
15246
15247 * font.c (font_style_to_value, font_score): Delete casting of the
15248 args to xstcasecmp.
15249 (register_font_driver): Increment num_font_drivers only when
15250 registering the driver globally.
15251 (Ffont_info): Move from fontset.c. Handle a font object too.
15252 (syms_of_font): Defsubr Sfont_info.
15253
15254 2008-05-29 Kenichi Handa <handa@m17n.org>
15255
15256 * coding.h (enum define_coding_utf8_arg_index): New enum.
15257 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15258 coding_attr_utf_bom.
15259 (enum utf_bom_type): Rename from utf_16_bom_type.
15260 (struct utf_16_spec): Adjust for the above change.
15261 (struct coding_system): Add utf_8_bom in `spec' union.
15262
15263 * coding.c (CODING_UTF_8_BOM): New macro.
15264 (enum coding_category): Delete coding_category_utf_8, add
15265 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15266 coding_category_utf_8_sig.
15267 (CATEGORY_MASK_UTF_8): Delete it.
15268 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15269 (CATEGORY_MASK_UTF_8_SIG): New macros.
15270 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15271 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15272 CATEGORY_MASK_UTF_8_SIG.
15273 (CATEGORY_MASK_UTF_8): New macro.
15274 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15275 (detect_coding_utf_8): Check BOM.
15276 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15277 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15278 (encode_coding_utf_16): Likewise.
15279 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15280 (detect_coding, detect_coding_system): Handle utf-8-auto.
15281 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15282 (syms_of_coding): Fix setting up of Vcoding_category_table.
15283
15284 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15285
15286 * process.c (Faccept_process_output): If `millisec' is non-nil,
15287 `seconds' default to 0.
15288 (wait_reading_process_output): Also return non-nil if we read output
15289 from a non-running process.
15290
15291 2008-05-29 Jason Rumney <jasonr@gnu.org>
15292
15293 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15294 `raster' specified.
15295 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15296 in the uniscribe backend, but disallow any font that has no
15297 unicode subrange support.
15298
15299 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
15300
15301 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15302 Fix typos in docstrings.
15303
15304 2008-05-29 Kenichi Handa <handa@m17n.org>
15305
15306 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15307 (Fx_family_fonts): Set frame correctly.
15308
15309 2008-05-28 Jason Rumney <jasonr@gnu.org>
15310
15311 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15312
15313 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15314
15315 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15316 calling build_annotations.
15317
15318 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
15319
15320 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15321 (Fencode_coding_string):
15322 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15323 <latin-extra-code-table>: Fix typos in docstrings.
15324 (syms_of_coding) <coding-system-alist>: Doc fix.
15325 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15326
15327 2008-05-28 Kenichi Handa <handa@m17n.org>
15328
15329 * fontset.c (Ffont_info): Don't call font_close_object.
15330
15331 * font.c (font_parse_family_registry): Use Ffont_put to validate
15332 foundry and family.
15333 (font_delete_unmatched): Don't check spacing.
15334 (font_list_entities): Add spacing to the spec to list fonts.
15335
15336 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15337 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15338
15339 * coding.c (encode_coding_raw_text): Fix previous change.
15340 (encode_coding_object): When the dst_object is a buffer and is
15341 different from src_object, move gap to PT.
15342
15343 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
15344
15345 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15346
15347 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15348
15349 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15350 all branches. Compute it differently.
15351
15352 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15353
15354 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
15355
15356 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15357 into "else if () ... else ...".
15358
15359 2008-05-27 Jason Rumney <jasonr@gnu.org>
15360
15361 * w32font.c (w32font_open_internal): Determine if glyph indices
15362 are likely to work here.
15363
15364 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
15365
15366 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15367 draw overlap glyphs with appropriate highlighting.
15368
15369 2008-05-27 Kenichi Handa <handa@m17n.org>
15370
15371 * xfont.c (xfont_open): Fix calculation of font->average_width.
15372
15373 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15374
15375 * casefiddle.c (casify_object): Try to guess better whether the
15376 argument is a byte or a char.
15377
15378 2008-05-26 Andreas Schwab <schwab@suse.de>
15379
15380 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15381 Always send multiples of format size.
15382
15383 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15384
15385 2008-05-26 Jason Rumney <jasonr@gnu.org>
15386
15387 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15388 (compute_metrics): Don't set failure if we just cleared the cache.
15389 (w32_weight_table): Remove unused variable.
15390 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15391 backwards compatibility.
15392
15393 2008-05-25 Kenichi Handa <handa@m17n.org>
15394
15395 * w32term.c (x_draw_glyph_string):
15396 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15397
15398 * xfaces.c: Delete unused function prototypes.
15399 (xstrlwr, font_frame): Delete them.
15400 (clear_face_cache): Delete unused variable.
15401
15402 * xftfont.c (xftfont_open): Delete unused variable.
15403 If underline_thickness is not 1, adjust underline_position.
15404
15405 * ftxfont.c (ftxfont_open): Delete unused variable.
15406
15407 * fontset.c (face_for_char): Optimize for the case of no charset
15408 property.
15409
15410 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15411 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15412 (otf_open, font_otf_capability, generate_otf_features)
15413 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15414 Comment out by surrounding "#if 0" and "#endif" for the moment.
15415 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15416 (syms_of_font): Codes for accessing above commented out.
15417
15418 2008-05-24 Eli Zaretskii <eliz@gnu.org>
15419
15420 * w32proc.c: Include dispextern.h.
15421
15422 * w32.c: Include dispextern.h.
15423
15424 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
15425
15426 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15427 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15428 Fix typos in docstrings.
15429
15430 2008-05-23 Jason Rumney <jasonr@gnu.org>
15431
15432 * xsmfns.c: Remove includes that are already included by config.h.
15433
15434 2008-05-23 Kenichi Handa <handa@m17n.org>
15435
15436 * charset.c (Qemacs, charset_emacs): New variables.
15437 (char_charset): Fix for non-Unicode characters.
15438 (syms_of_charset): Define charset_emacs.
15439
15440 * w32term.c (x_draw_glyph_string): Be sure to update
15441 s->underline_thickness and s->underline_position. Be sure to draw
15442 underline within the current line area.
15443
15444 * xterm.c (x_draw_glyph_string): Be sure to update
15445 s->underline_thickness and s->underline_position. Be sure to draw
15446 underline within the current line area.
15447
15448 * fontset.c: Delete unused variables and add casting for char *
15449 throughout the file.
15450 (fontset_font): Try the fallback fonts of the current fontset
15451 before consulting the default fontset.
15452
15453 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15454
15455 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15456
15457 2008-05-22 Jason Rumney <jasonr@gnu.org>
15458
15459 * font.c: Don't include strings.h.
15460
15461 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15462
15463 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15464 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15465 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15466 to call xstrcasecmp.
15467
15468 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15469
15470 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15471
15472 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15473
15474 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15475
15476 2008-05-22 Kenichi Handa <handa@m17n.org>
15477
15478 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15479
15480 * font.c (font_prop_validate_style): Adjust for the format
15481 change of font_style_table.
15482
15483 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15484 two args.
15485
15486 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15487 two args.
15488
15489 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15490
15491 * minibuf.c (keys_of_minibuf): Delete.
15492 * lisp.h (keys_of_minibuf): Delete.
15493 * emacs.c (main): Don't call keys_of_minibuf.
15494
15495 2008-05-22 Kenichi Handa <handa@m17n.org>
15496
15497 * ftfont.c (ftfont_resolve_generic_family): Rename from
15498 ftfont_list_generic_family. Return a single family for each
15499 generic family.
15500 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15501 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15502 Call font_add_log.
15503 (ftfont_match): Call font_add_log.
15504
15505 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15506 (FONT_DEBUG): Define it.
15507 (font_add_log): Extern it.
15508 (font_assert): Rename from xassert.
15509
15510 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15511 (xfont_list_family): Call font_add_log.
15512 (xfont_match): Likewise.
15513 (memq_no_quit): Delete.
15514
15515 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15516 call of Ffont_xlfd_name.
15517
15518 * xfaces.c (struct table_entry, slant_table, weight_table)
15519 (swidth_table): Move to font.c.
15520
15521 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15522 xassert are changed to font_assert. Delete many unused variables.
15523 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15524 New variables.
15525 (struct table_entry): Move from xfaces.c and modified.
15526 (weight_table, slant_table, width_table): Move from xfaces.c and
15527 contents adjusted for the change of struct table_entry.
15528 (font_style_to_value, font_style_symbolic): Adjust for the
15529 format change of font_style_table.
15530 (font_parse_family_registry): Don't overwrite existing foundry and
15531 family of font_spec.
15532 (font_score): Fix calculation of diff for sizes.
15533 (font_sort_entites): Call font_add_log.
15534 (font_delete_unmatched): Return a newly created list.
15535 (font_list_entities): Fix previous change. Call font_add_log.
15536 (font_matching_entity, font_open_entity, font_close_entity):
15537 Call font_add_log.
15538 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15539 (Finternal_set_font_style_table): Delete.
15540 (BUILD_STYLE_TABLE): New macro.
15541 (build_style_table): New function.
15542 (Vfont_log, font_log_env_checked): New variables.
15543 (font_add_log): New function.
15544 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15545 Declare Lisp variables "font-weight-table", "font-slant-table",
15546 "font-width-table", and "font-log". Initialize font_style_table.
15547
15548 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15549
15550 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15551
15552 2008-05-21 Seiji Zenitani <zenitani@mac.com>
15553 Ryo Yoshitake <ryo@shiftmode.net>
15554
15555 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15556 (Vframe_alpha_lower_limit): New variable.
15557 (x_set_alpha): New function.
15558
15559 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15560
15561 * xfns.c (x-create-frame, Qalpha):
15562 Initialize the frame parameter `alpha'.
15563 * xterm.c (OPAQUE, OPACITY): New.
15564 (x_set_frame_alpha): New function.
15565 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15566
15567 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15568 * w32fns.c (w32_frame_parm_handlers): Likewise.
15569
15570 2008-05-20 Jason Rumney <jasonr@gnu.org>
15571
15572 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15573 truetype fonts to opentype list.
15574
15575 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
15576
15577 * fontset.c (Ffontset_info): Doc fix.
15578 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15579 <ignore-relative-composition>: Fix typos in docstrings.
15580
15581 * font.c (syms-of-font) <font-encoding-alist>:
15582 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15583 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15584 (Ffont_otf_alternates): Doc fixes.
15585
15586 2008-05-20 Kenichi Handa <handa@m17n.org>
15587
15588 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15589 font.h through out the file.
15590 (FONT_DRIVERS): Rename from FONTOBJ.
15591 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15592 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15593
15594 * emacs.c (main): Call syms_of_font unconditionally.
15595
15596 * font.h (find_font_encoding): Extern it.
15597
15598 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15599 fontset.c.
15600 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
15601 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15602 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15603 only when HAVE_WINDOW_SYSTEM is defined.
15604 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15605 when HAVE_WINDOW_SYSTEM is defined.
15606
15607 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15608 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15609
15610 * xfaces.c: Include font.h unconditionally.
15611 (merge_face_ref, merge_face_vectors)
15612 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15613
15614 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15615
15616 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15617 indirect_variable.
15618 * eval.c (lisp_indirect_variable): New fun.
15619 (Fuser_variable_p): Use it.
15620
15621 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15622
15623 * lisp.h (indirect_variable):
15624 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15625 Use Lisp_Symbol pointers rather than Lisp_Object.
15626 Adjust callers.
15627 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15628 To this end, change calling-convention.
15629
15630 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15631 if some non-hidden buffers are selected by string&pred.
15632
15633 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
15634
15635 * process.c (wait_reading_process_output): Always check status
15636 when in batch mode.
15637
15638 2008-05-19 Kenichi Handa <handa@m17n.org>
15639
15640 * font.c (font_list_entities): Fix handling of cache.
15641 (font_matching_entity): Likewise.
15642
15643 * ftfont.c (cs_iso8859_1): Delete.
15644 (ft_face_cache): New variable.
15645 (struct ftfont_info): New member fc_charset_idx.
15646 (ftfont_build_basic_charsets): Delete.
15647 (fc_charset_table): New variable.
15648 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15649 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15650 Callers changed.
15651 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15652 (ftfont_spec_pattern): New argument fc_charset_idx.
15653 Check registry more rigidly. Change callers.
15654 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15655 change of :font-entity property of the font.
15656
15657 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15658 property of the font.
15659
15660 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
15661
15662 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15663 (Funencodable_char_position, Fcheck_coding_systems_region)
15664 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15665 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15666 (Ffind_operation_coding_system, Fset_coding_system_priority)
15667 (Fcoding_system_eol_type): Doc fixes.
15668
15669 2008-05-17 Glenn Morris <rgm@gnu.org>
15670
15671 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15672
15673 2008-05-16 Eli Zaretskii <eliz@gnu.org>
15674
15675 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15676 and st_gid.
15677
15678 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15679 HAVE_WINDOW_SYSTEM is not defined.
15680
15681 * xfaces.c (merge_face_ref, merge_face_vectors)
15682 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15683 HAVE_WINDOW_SYSTEM is defined.
15684 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15685
15686 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15687
15688 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15689
15690 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15691
15692 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15693
15694 2008-05-15 Kenichi Handa <handa@m17n.org>
15695
15696 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15697 preference.
15698
15699 2008-05-15 Glenn Morris <rgm@gnu.org>
15700
15701 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15702
15703 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
15704
15705 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15706 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15707
15708 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15709
15710 2008-05-15 Kenichi Handa <handa@m17n.org>
15711
15712 * ftfont.c (ftfont_list): Downcase family name to check generic
15713 families.
15714
15715 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15716 font-spec for QCfont value.
15717
15718 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15719 buffer. Check the return value of it.
15720
15721 2008-05-14 Jason Rumney <jasonr@gnu.org>
15722
15723 * w32term.c (w32_get_glyph_overhangs): Remove.
15724 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15725
15726 2008-05-14 Kenichi Handa <handa@m17n.org>
15727
15728 * font.c (font_prop_validate): Make nil a valid value.
15729 (font_clear_cache): Check if the cached vector of entities is nil
15730 or not.
15731
15732 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15733
15734 * emacs.c (main_thread): Conditionalize on
15735 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15736 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15737
15738 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15739 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15740 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15741
15742 2008-05-14 Kenichi Handa <handa@m17n.org>
15743
15744 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15745 has no corresponding coding system.
15746
15747 2008-05-14 Jason Rumney <jasonr@gnu.org>
15748
15749 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15750
15751 * w32font.h (w32font_open_internal): Update declaration.
15752
15753 * w32font.c (w32font_open_internal): Change last argument from
15754 w32font_info struct to font object. Fill in font object from
15755 font_entity. Get Outline metrics if possible. Use them to
15756 calculate underline position and thickness. Use xlfd name as name
15757 property. Don't set codepage.
15758 (w32font_open): Pass font_object to w32font_open_internal. Don't
15759 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15760 (w32font_draw): Use s->font.
15761 (clear_cached_metrics): Don't clear non-existent blocks.
15762
15763 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15764 font was not found.
15765 (x_draw_glyph_string): Use underline position and thickness from font.
15766
15767 * w32uniscribe.c (uniscribe_open): Pass font_object to
15768 w32font_open_internal.
15769
15770 2008-05-14 Kenichi Handa <handa@m17n.org>
15771
15772 These changes are to delete all legacy font-handling codes, and
15773 make Emacs use only font-backends.
15774
15775 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15776 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15777
15778 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15779
15780 * charset.h (Vcharset_non_preferred_head)
15781 (Vcurrent_iso639_language): Extern them.
15782
15783 * charset.c (Vcharset_non_preferred_head): New variable.
15784 (Vcurrent_iso639_language): New variable.
15785 (syms_of_charset): Declare it as a Lisp variable.
15786 (char_charset): Don't check non preferred charsets. As a last
15787 resort, return charset_unicode.
15788 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15789
15790 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15791 conditionals. Don't check enable_font_backend. Delete all codes
15792 used only when USE_FONT_BACKEND is not defined.
15793
15794 * dispextern.h (struct glyph_string): Change type of `font' to
15795 `struct font *'.
15796 (struct glyph_string): New member underline_position and
15797 underline_thickness.
15798 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15799 (struct face): Change type of `font' to `struct font *'. Remove
15800 members `font_name', `font_info_id'.
15801 (per_char_metric, encode_char): Delete externs.
15802 (calc_pixel_width_or_height): Adjust the prototype.
15803
15804 * emacs.c (enable_font_backend): Delete extern.
15805 (main): Don't set enable_font_backend. Don't check the command
15806 line argument "-disable-font-backend".
15807
15808 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15809 (enum font_property_index): New members FONT_DPI_INDEX,
15810 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15811 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15812 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15813 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15814 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15815 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15816 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15817 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15818 (struct font_spec, struct font_entity): New structs.
15819 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15820 (struct font): Many members from old "struct font_info" moved to
15821 here. Members font and entity deleted.
15822 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15823 the new font-related objects.
15824 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15825 (CHECK_FONT_GET_OBJECT): Likewise.
15826 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15827 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15828 (struct font_driver): New members case_sensitive anc check. Type
15829 of the member list and open changed.
15830 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15831 (font_symbolic_width, font_find_object, font_get_spec)
15832 (font_set_lface_from_name): Delete extern.
15833 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15834
15835 * font.c: Include <strings.h>.
15836 (enable_font_backend): Delete it.
15837 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15838 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15839 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15840 (null_string): Delete it.
15841 (null_vector): Make it static.
15842 (font_family_alist): Delete it.
15843 (Qnormal): Extern it.
15844 (QCextra, QClanguage): Delete it.
15845 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15846 (font_make_spec, font_make_entity, font_make_object)
15847 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15848 the string. Callers changed.
15849 (font_pixel_size): Adjusted for the format change of font-related
15850 objects.
15851 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15852 (font_style_to_value, font_style_symbolic): New function.
15853 (build_font_family_alist): Delete it.
15854 (font_registry_charsets): Use Fassoc_string instead of
15855 assq_no_quit.
15856 (font_prop_validate_symbol): Don't return null_string.
15857 (font_prop_validate_style): Adjusted for the change of
15858 style-related values in a font vector.
15859 (font_property_table): Delete entries for QClanguage and
15860 QCantialias, add entries for QCavgwidth.
15861 (get_font_prop_index): Delete the 2nd argument FROM.
15862 (font_prop_validate): Arguments changed.
15863 (font_put_extra): Adjusted for the change of font-related objects.
15864 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15865 (font_parse_fcname, font_unparse_fcname)
15866 (font_prepare_composition): Likewise.
15867 (font_parse_family_registry): Renamed from font_merge_old_spec.
15868 (otf_open): Delete the 1st arg entity.
15869 (font_otf_capability): Adjusted for the above change.
15870 (font_score): New arg alternate_families. Adjusted for the change
15871 of font-related objects.
15872 (font_sort_entites): New arg best_only.
15873 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15874 Delete them.
15875 (font_match_p): Check alternate families.
15876 (font_find_object): Delete it.
15877 (font_check_object): New function.
15878 (font_clear_cache): Adjusted for the change of font-related objects.
15879 (font_delete_unmatched): New arg.
15880 (font_list_entities): Call font_driver->list with a spec that
15881 doesn't specify style-related properties.
15882 (font_matching_entity): Arguments changed. Caller changed.
15883 (font_open_entity): Adjusted for the change of font-related objects.
15884 (font_close_object, font_has_char, font_encode_char)
15885 (font_get_name, font_get_spec): Likewise.
15886 (font_spec_from_name, font_clear_prop, font_update_lface):
15887 New functions.
15888 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15889 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15890 (font_at): Adjusted for the change of font-related objects.
15891 (font_range): New function.
15892 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15893 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15894 (Fcopy_font_spec, Fmerge_font_spec): New function.
15895 (Ffont_family_list): Renamed from list-families.
15896 (Finternal_set_font_style_table): Arguments changed.
15897 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15898 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15899 change of font-related objects.
15900 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15901
15902 * fontset.h (struct font_info): Delete it. Most members go to
15903 struct font.
15904 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15905 (enum FONT_SPEC_INDEX): Delete it.
15906 (font_info, list_fonts_func, load_font_func, query_font_func)
15907 (set_frame_fontset_func, find_ccl_program_func)
15908 (get_font_repertory_func, new_fontset_from_font_name): Delete
15909 externs.
15910 (fontset_from_font_name): Extern it.
15911 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15912 (FONT_INFO_FROM_FACE): Deleted.
15913 (face_for_font): Adjust prototype.
15914
15915 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15916 conditionals. Don't check enable_font_backend. Delete all codes
15917 used only when USE_FONT_BACKEND is not defined.
15918 (get_font_info_func, list_font_func, load_font_func)
15919 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15920 (get_font_repertory_func): Delete them.
15921 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15922 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15923 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15924 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15925 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15926 (fontset_compare_rfontdef): New function.
15927 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15928 rfont-defs by qsort. Adjusted for the change of font-group vector.
15929 (load_font_get_repertory): Deleted.
15930 (fontset_find_font): Use new macros to ref/set elements of
15931 font-def and rfont-def.
15932 (fontset_font): Fix the timing of remembering that no font for C.
15933 (free_face_fontset): Do nothing if the face has no fontset.
15934 (face_suitable_for_char_p): Use new macros to ref/set elements of
15935 rfont-def.
15936 (face_for_char): Likewise. Call face_for_char with font_object.
15937 (fs_load_font): Delete. Delete #pragma surrounding it.
15938 (fs_query_fontset): Use strcasecmp instead of strcmp.
15939 (generate_ascii_font_name): Adjusted for the format change of
15940 font-spec.
15941 (Fset_fontset_font): Likewise. Use new macros to set elements of
15942 font-def.
15943 (Fnew_fontset): Use font_unparse_xlfd to generate
15944 FONTSET_ASCII (fontset).
15945 (new_fontset_from_font_name): Deleted.
15946 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15947 a fontset is already created for the font. FIx updating of
15948 Vfontset_alias_alist.
15949 (fontset_ascii_font): Deleted.
15950 (Ffont_info): Adjusted for the format change of font-spec.
15951 (Finternal_char_font): Likewise.
15952 (Ffontset_info): Likewise.
15953 (syms_of_fontset): Don't check load_font_func.
15954
15955 * fns.c (internal_equal): Handle PREV_FONT.
15956
15957 * frame.h: Delete USE_FONT_BACKEND conditional.
15958
15959 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15960 conditionals. Don't check enable_font_backend. Delete all codes
15961 used only when USE_FONT_BACKEND is not defined.
15962 (x_set_font): Call x_new_font, not x_new_fontset2.
15963 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15964 already set for the frame.
15965
15966 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15967 a font-entity by font_make_entity. Use font_intern_prop instead
15968 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15969 font property. If a font is scalable, set avgwidth property to 0.
15970 Set font-entity property by font_put_extra.
15971 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15972 (ffont_driver): Adjusted for the change of struct font_driver.
15973 (ftfont_spec_pattern): New function.
15974 (ftfont_list): Return a list, not vector.
15975 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15976 (ftfont_list_family): Don't downcase names.
15977 (ftfont_free_entity): Deleted.
15978 (ftfont_open): Return a font-object. Adjusted for the change of
15979 struct font. Get underline_thickness and underline_position from
15980 font property. Don't update dpyinfo->smallest_font_height and
15981 dpyinfo->smallest_char_width.
15982 (ftfont_close): Don't free `struct font'.
15983 (ftfont_has_char): Adjusted for the format change of font-entity.
15984 (ftfont_encode_char, ftfont_text_extents): Likewise.
15985
15986 * ftxfont.c (ftxfont_list): Return a list, not vector.
15987 (ftxfont_open): Return a font-object. Adjusted for the change of
15988 struct font. Get underline_thickness and underline_position from
15989 font property. Don't update dpyinfo->smallest_font_height and
15990 dpyinfo->smallest_char_width.
15991 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15992 (ftxfont_draw): Adjusted for the change of struct font.
15993
15994 * image.c (image_ascent): Don't include "charset.h". Include
15995 "character.h" and "font.h".
15996
15997 * lisp.h (enum pvec_type): New member PREV_FONT.
15998 (Fassoc_string): EXFUN it.
15999
16000 * print.c: Include font.h.
16001 (print_object): Handle font-related objects.
16002
16003 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16004 conditionals. Don't check enable_font_backend. Delete all codes
16005 used only when USE_FONT_BACKEND is not defined.
16006 (handle_auto_composed_prop): Do nothing if it->f is not on a
16007 window system. Check how many following characters can be
16008 displayed by the same font.
16009 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16010 'struct font *'.
16011 (get_char_face_and_encoding): Assign the whole encoding task to
16012 the `encode-char' method of a font driver.
16013 (fill_composite_glyph_string): Adjusted for the change of `struct
16014 face' and `struct glyph_string'.
16015 (fill_glyph_string): Likewise.
16016 (get_per_char_metric): Arguments changed.
16017 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16018 and `struct glyph_string'.
16019 (produce_stretch_glyph, calc_line_height_property)
16020 (x_produce_glyphs): Likewise.
16021
16022 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16023 conditionals. Don't check enable_font_backend. Delete all codes
16024 used only when USE_FONT_BACKEND is not defined. Use
16025 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16026 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16027 (Qp): Extern them.
16028 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16029 Deleted.
16030 (struct font_name): Deleted.
16031 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16032 (compare_fonts_by_sort_order): New function.
16033 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16034 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16035 Deleted.
16036 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16037 compare_fonts_by_sort_order.
16038 (Fx_font_family_list): Call Ffont_family_list.
16039 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16040 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16041 (face_symbolic_slant, face_symbolic_swidth)
16042 (split_font_name_into_vector, build_font_name_from_vector)
16043 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16044 (font_rescale_ratio, split_font_name, build_font_name)
16045 (free_font_names, sort_fonts, x_face_list_fonts)
16046 (face_font_available_p, sorted_font_list, cmp_font_names)
16047 (font_list_1, concat_font_list, font_list, remove_duplicates):
16048 Deleted.
16049 (Fx_list_fonts): Use Ffont_list.
16050 (LFACE_AVGWIDTH): Deleted.
16051 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16052 by FONTP.
16053 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16054 (set_lface_from_font_name): Delete it.
16055 (set_lface_from_font): Renamed from
16056 set_lface_from_font_and_fontset. Caller changed. Don't set
16057 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16058 for face.
16059 (merge_face_vectors): Copy font-spec if necessary.
16060 Clear properties of the font-spec if necessary.
16061 (merge_face_ref): Clear properties of the font-spec if necessary.
16062 (Finternal_set_lisp_face_attribute): Likewise.
16063 (set_font_frame_param): Use font_load_for_lface to load a
16064 font-object, and call Fmodify_frame_parameters with it.
16065 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16066 font name by Ffont_xlfd_name.
16067 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16068 QCslant, and QCwidth.
16069 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16070 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16071 Compare fonts by EQ.
16072 (lookup_non_ascii_face): Deleted.
16073 (face_for_font): The 2nd argument changed.
16074 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16075 Check atomic font properties by case insensitive.
16076 (realize_non_ascii_face): Set face->overstrike correctly.
16077 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16078 (dump_realized_face): Get font name from
16079 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16080
16081 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16082 conditionals. Don't check enable_font_backend. Delete all codes
16083 used only when USE_FONT_BACKEND is not defined.
16084 (xic_create_xfontset): Original code deleted and renamed from
16085 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16086 (x_make_gc): Don't set GCFont in GCs.
16087 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16088 opened by "fixed".
16089 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16090 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16091 get_font_repertory_func.
16092
16093 * xfont.c: Include <stdlib.h> and "ccl.h".
16094 (struct xfont_info): New structure.
16095 (xfont_query_font): Deleted.
16096 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16097 moved from xterm.c.
16098 (xfont_driver): Adjusted for the change of struct font_driver.
16099 (compare_font_names): New function.
16100 (xfont_list_pattern): Sort font names case insensitively. Make
16101 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16102 (xfont_list): Return a list, not vector.
16103 (xfont_match): If the font doesn't have QCname property, generate
16104 a name from the other font properties.
16105 (xfont_open): Return a font-object. Adjusted for the change of
16106 struct font. Get underline_thickness and underline_position from
16107 font property. Don't update dpyinfo->smallest_font_height and
16108 dpyinfo->smallest_char_width.
16109 (xfont_close): Don't free struct font.
16110 (xfont_prepare_face): Adjusted for the change of struct font.
16111 (xfont_done_face): Deleted.
16112 (xfont_has_char): Adjusted for the change of struct font.
16113 (xfont_encode_char, xfont_draw): Likewise.
16114 (xfont_check): New function.
16115
16116 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16117 callback function.
16118 (xftfont_match): Adjusted for the format change of font-entity.
16119 (xftfont_open): Adjusted for the format change of font-entity and
16120 font-object. Adjusted for the change of struct font. Return a
16121 font-object. Don't update dpyinfo->smallest_font_height and
16122 dpyinfo->smallest_char_width.
16123 (xftfont_close): Block input while calling XftFontClose.
16124 (xftfont_prepare_face): Don't block input while calling
16125 xftfont_get_colors. Adjusted for the change of struct font.
16126 (xftfont_shape): Return value of error case fixed.
16127
16128 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16129
16130 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16131 conditionals.
16132 (FONT_WIDTH): Return (f)->max_width.
16133 (struct x_display_info): Delete member `font'.
16134 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16135 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16136 (struct x_output): Change type of `font' to `struct font *'.
16137
16138 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16139 conditionals. Don't check enable_font_backend. Delete all codes
16140 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16141 (x_per_char_metric, x_encode_char): Deleted.
16142 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16143 (x_compute_glyph_string_overhangs): Adjusted for the change of
16144 `struct face'.
16145 (x_draw_glyph_string_foreground)
16146 (x_draw_composite_glyph_string_foreground): Likewise.
16147 (x_draw_glyph_string): Likewise. Use font->underline_position and
16148 font->underline_thickness.
16149 (x_new_font): Renamed from x_new_fontset2.
16150 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16151 (x_check_font): Call `check' method of a font driver.
16152 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16153 (x_query_font, x_get_font_repertory): Deleted.
16154 (x_find_ccl_program): Renamed and moved to xfont.c.
16155 (x_redisplay_interface): Adjusted for the change of `struct
16156 redisplay_interface'.
16157
16158 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16159 conditionals. Don't check enable_font_backend. Delete all codes
16160 used only when USE_FONT_BACKEND is not defined. Surround non-used
16161 code by "#ifdef OLD_FONT" and "endif".
16162 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16163
16164 * w32font.h (struct w32font_info): New member.
16165 (FONT_COMPAT): New macro.
16166 (w32font_open_internal): Prototype adjusted.
16167
16168 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16169 OLD_FONT" and "endif".
16170
16171 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16172 conditionals. Don't check enable_font_backend. Delete all codes
16173 used only when USE_FONT_BACKEND is not defined.
16174 (w32font_open): Return a font-object. Make a font-object by
16175 font_make_object. Adjusted for the change of struct w32font_info.
16176 (w32font_close): Don't free struct font. Adjusted for the change
16177 of struct w32font_info.
16178 (w32font_encode_char, w32font_text_extents, w32font_draw):
16179 Adjusted for the change of struct w32font_info.
16180 (w32font_draw): Likewise.
16181 (w32font_list_internal): Return a list, not vector.
16182 (w32font_open_internal): Change the 4th arg to font-object.
16183 Adjusted for the change of struct w32font_info and font-object format.
16184 (add_font_name_to_list): Don't downcase names.
16185 (w32_enumfont_pattern_entity): Make a font-entity by
16186 font_make_entity. Adjusted for the format change of font-entity.
16187 Use FONT_SET_STYLE to set a style-related font property. If a
16188 font is scalable, set avgwidth property to 0. Set font-entity
16189 property by font_put_extra.
16190 (font_matches_spec): Adjusted for the format change of font-entity.
16191 (w32_weight_table, w32_decode_weight): New variables.
16192 (w32_encode_weight): New function.
16193 (fill_in_logfont): Adjusted for the format change of font-spec.
16194 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16195 weight value.
16196 (w32font_driver): Adjusted for the change of struct font_driver.
16197
16198 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16199 conditionals. Don't check enable_font_backend. Surround non-used
16200 code by "#ifdef OLD_FONT" and "endif".
16201 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16202 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16203
16204 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16205 conditionals. Don't check enable_font_backend. Delete all codes
16206 used only when USE_FONT_BACKEND is not defined. Surround non-used
16207 code by "#ifdef OLD_FONT" and "endif".
16208
16209 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16210 (uniscribe_open): Return value changed to font-object.
16211 Adjusted for the format change of font-object.
16212 (uniscribe_otf_capability): Adjusted for the change of struct font.
16213 (add_opentype_font_name_to_list): Don't downcase names.
16214 (uniscribe_font_driver): Adjusted for the change of struct
16215 font_driver.
16216
16217 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
16218
16219 * dispnew.c (update_frame_1): Check if tty output is still valid
16220 before flushing it.
16221
16222 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16223
16224 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16225 to Gtk+ menus.
16226
16227 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16228
16229 * dired.c (file_name_completion): Tweak the code so as to always do it
16230 in a single pass. Tighten the scope of some variables.
16231
16232 * dired.c (Qdefault_directory): New var.
16233 (file_name_completion): Use it instead of Fexpand_file_name.
16234 (syms_of_dired): Initialize it.
16235
16236 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16237
16238 * fileio.c (double_dollars): Remove dead code.
16239
16240 2008-05-10 Eli Zaretskii <eliz@gnu.org>
16241
16242 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16243 Mention w32-get-true-file-attributes in doc string.
16244
16245 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16246
16247 2008-05-09 Glenn Morris <rgm@gnu.org>
16248
16249 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16250 2008-04-23.
16251
16252 2008-05-09 Eli Zaretskii <eliz@gnu.org>
16253
16254 Support for reporting owner and group of each file on MS-Windows:
16255 * dired.c (stat_uname, stat_gname): New functions, with special
16256 implementation for w32.
16257 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16258
16259 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16260 (dflt_group_name): New static variable.
16261 (dflt_group): Rename from the_group.
16262 (init_user_info): Init dflt_group fields. Get user's group name
16263 from LookupAccountSid.
16264 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16265 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16266 New initialization states.
16267 (globals_of_w32): Initialize them to zero. Initialize the default
16268 group name to "None".
16269 (GetFileSecurity_Name): New global var, the name of the function
16270 to call for GetFileSecurity.
16271 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16272 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16273 (get_file_security, get_security_descriptor_owner)
16274 (get_security_descriptor_group, is_valid_sid)
16275 (get_file_security_desc, get_rid, get_name_and_id)
16276 (get_file_owner_and_group): New functions.
16277 (stat): Use get_file_security_desc and get_file_owner_and_group to
16278 report the owner and primary group of each file. Don't ignore the
16279 high 32 bits of file's size, now that st_size is 64-bit wide.
16280 Fix test when to get true file attributes.
16281 (init_user_info): Use get_rid instead of equivalent inline code.
16282 (fstat): Don't ignore the high 32 bits of file's size.
16283
16284 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
16285
16286 * image.c (png_load): Use correct bit-depth for setting background
16287 color.
16288
16289 2008-05-08 Eli Zaretskii <eliz@gnu.org>
16290
16291 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16292 epa-hook.elc.
16293
16294 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
16295
16296 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16297
16298 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16299
16300 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16301 because the original parameters are in pure storage now.
16302 (mac_window): Remove unused params. Update callers.
16303
16304 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16305
16306 * lread.c (substitute_object_recurse): Use lower-level primitives.
16307 Don't signal errors when traversing sub-char-tables.
16308 Don't loop over all the possible characters when traversing char-tables.
16309
16310 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16311 just like we do in print.c.
16312
16313 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16314
16315 * minibuf.c (Ftry_completion): Remove code left over from when we used
16316 scmp instead of Fcompare_strings.
16317
16318 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
16319
16320 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16321
16322 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16323
16324 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16325 Create bitmap context in native byte order.
16326
16327 * macterm.c (XDrawLine)
16328 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16329 context in native byte order.
16330
16331 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16332
16333 * config.in: Regenerate.
16334
16335 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16336 New definitions for Image I/O support.
16337 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16338 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16339 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16340 (mac_data_provider_release_data, image_load_image_io)
16341 [USE_MAC_IMAGE_IO]: New functions.
16342 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16343 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16344 (init_image_func_pointer) [MAC_OSX]: Remove function.
16345 (image_load_quartz2d) [MAC_OSX]: Check availability of
16346 CGImageCreateWithPNGDataProvider at compile time.
16347 Use lowercase `false' for boolean constant.
16348 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16349 Use image_load_image_io.
16350 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16351 Don't check MyCGImageCreateWithPNGDataProvider.
16352 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16353 Don't call init_image_func_pointer.
16354
16355 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16356
16357 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16358 Make variable non-static.
16359 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16360 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16361
16362 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16363 (RED_FROM_ULONG): Mask off higher bits.
16364 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16365
16366 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16367 Include AvailabilityMacros.h.
16368 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16369 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16370
16371 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16372
16373 * chartab.c (Fset_char_table_range): If range is t, really set all
16374 chars to that value.
16375
16376 2008-05-03 Eli Zaretskii <eliz@gnu.org>
16377
16378 * dired.c (Ffile_attributes): Don't allow the device number become
16379 negative.
16380
16381 2008-05-02 Daiki Ueno <ueno@unixuser.org>
16382
16383 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16384
16385 2008-05-02 Juri Linkov <juri@jurta.org>
16386
16387 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16388 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16389 DEFAULT argument as a list of default values in docstrings.
16390
16391 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
16392
16393 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16394
16395 2008-05-01 Martin Rudalics <rudalics@gmx.at>
16396
16397 * dispnew.c (change_frame_size_1): Preserve small windows when
16398 shrinking frames by calling set_window_height|width with third
16399 arg 2.
16400
16401 * window.h (struct window): Replace field too_small_ok by field
16402 resize_proportionally.
16403
16404 * window.c (make_window): Initialize resize_proportionally.
16405 (enlarge_window): Temporarily set resize_proportionally to make
16406 sure that shrink_windows does scale the window proportionally.
16407 (shrink_windows): When window has resize_proportionally set try
16408 to shrink it proportionally by stealing from other windows.
16409 (struct saved_window, Fset_window_configuration)
16410 (compare_window_configurations): Handle resize_proportionally.
16411 (WINDOW_TOTAL_SIZE): New macro.
16412 (window_min_size, shrink_windows, size_window): Use it.
16413 (check_min_window_sizes): Remove. Invalid values of
16414 window-min-height|width are handled by window_min_size_2 now.
16415 (size_window, Fsplit_window, enlarge_window)
16416 (adjust_window_trailing_edge, grow_mini_window): Don't call
16417 check_min_window_sizes.
16418 (window_min_size_2, window_min_size_1, window_min_size):
16419 New argument safe_p for retrieving "safe" minimum sizes.
16420 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16421 (adjust_window_trailing_edge, grow_mini_window):
16422 Adjust arguments of window_min_size... functions.
16423 (shrink_windows): Argument min_size removed. New argument
16424 safe_p allows shrinking windows to their safe minimum sizes.
16425 Calculate minimum size and decide whether a window shall be
16426 deleted for each window individually.
16427 (size_window): When nodelete_p equals 2, tell shrink_windows to
16428 delete windows only if their new minimum size is no more safe.
16429 (shrink_window_lowest_first): Call window_min_size_1 to make
16430 sure to preserve modeline of bottom-most window when resizing
16431 the minibuffer.
16432 (Fset_window_configuration, Fcurrent_window_configuration)
16433 (compare_window_configurations): Do not handle
16434 window-min-height|width any more.
16435 (syms_of_window): Clarify window-min-height|width doc-strings.
16436
16437 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16438
16439 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16440 some more. Copy some of the code from Ftry_completions.
16441 Remove special case code that dates back to initial revision when the
16442 slash was only added when necessary and that can't trigger nowadays.
16443
16444 2008-04-27 Kenichi Handa <handa@m17n.org>
16445
16446 * font.c (font_prop_validate): Signal `error' instead of `font'.
16447
16448 2008-04-29 Jason Rumney <jasonr@gnu.org>
16449
16450 * w32fns.c (Fw32_battery_status): New defun.
16451 (syms_of_w32fns): Defsubr it.
16452
16453 2008-04-28 Andreas Schwab <schwab@suse.de>
16454
16455 * dired.c (file_name_completion): Fix another mixing of encoded
16456 and decoded names.
16457
16458 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
16459
16460 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16461
16462 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
16463
16464 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16465
16466 2008-04-27 Andreas Schwab <schwab@suse.de>
16467
16468 * dired.c (file_name_completion): Fix inappropriate mixing of
16469 encoded and decoded names.
16470
16471 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16472
16473 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16474
16475 2008-04-26 Eli Zaretskii <eliz@gnu.org>
16476
16477 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16478 2008-03-31, it's not needed anymore with `struct stat' definition
16479 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16480 for the same reasons.
16481
16482 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16483
16484 * m/sparc.h: Additional redefinitions for GNU/Linux.
16485
16486 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16487
16488 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16489 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16490 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16491 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16492 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16493 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16494 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16495 Likewise.
16496
16497 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16498 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16499 (mac_ax_number_of_characters): Add externs.
16500 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16501 [USE_MAC_TSM]: Likewise.
16502 (mac_handle_text_input_event) [MAC_OSX]:
16503 Handle kEventTextInputOffsetToPos for no active input area case.
16504 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16505 (mac_handle_document_access_event)
16506 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16507 (install_application_handler) [MAC_OSX]: Register handlers for
16508 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16509 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16510 Register mac_handle_document_access_event.
16511
16512 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16513 Make functions non-static.
16514
16515 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16516
16517 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16518 (read_file_name_completion_ignore_case, insert_default_directory)
16519 (Qdefault_directory): Move to minibuffer.el.
16520 (Fread_file_name): Call the new `read-file-name' instead.
16521
16522 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16523
16524 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16525 Make function non-static.
16526 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16527 Remove function.
16528 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16529 Move to mactoolbox.c.
16530 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16531
16532 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16533 (mac_rect_make): New macro.
16534
16535 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16536 instead of float.
16537 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16538 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16539 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16540 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16541 CGRectMake.
16542 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16543 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16544 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16545 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16546 instead of WindowRef in argument type.
16547 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16548 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16549 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16550 instead of DISPLAY. All uses changed.
16551 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16552 (x_calc_absolute_position): Simplify so as not to use
16553 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16554
16555 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16556 instead of WindowRef in argument type.
16557 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16558 [TARGET_API_MAC_CARBON]: Remove externs.
16559 (create_apple_event, mac_event_parameters_to_lisp)
16560 [TARGET_API_MAC_CARBON]: Add externs.
16561
16562 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16563 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16564 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16565 is clicked.
16566 (x_activate_menubar): Remove extern for saved_menu_event_location.
16567 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16568 Move from mac.c.
16569
16570 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16571
16572 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16573 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16574
16575 2008-04-23 Jason Rumney <jasonr@gnu.org>
16576
16577 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16578 attributes only for local files.
16579
16580 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16581 default to Qlocal.
16582
16583 2008-04-22 Juri Linkov <juri@jurta.org>
16584
16585 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16586 read-buffer-to-switch instead of using the letter "B".
16587
16588 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16589
16590 * fileio.c (Qdefault_directory): New variable.
16591 (Fread_file_name): Use it to pass `dir' to the completion functions.
16592
16593 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
16594
16595 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16596
16597 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16598
16599 * keyboard.c (Vpre_help_message): Remove.
16600 (show_help_echo): Remove default C code.
16601
16602 * dired.c (directory_files_internal, file_name_completion):
16603 Only call ENCODE_FILE if the string is indeed decoded.
16604
16605 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16606
16607 * Makefile.in (TOOLKIT_DEFINES): Remove.
16608 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16609
16610 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16611
16612 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16613 (mactoolbox.o): New target.
16614
16615 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16616 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16617
16618 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16619 Use mac_set_frame_window_background instead of XSetWindowBackground.
16620 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16621 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16622 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16623 instead of SetWindowTitleWithCFString.
16624 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16625 Move function to mactoolbox.c.
16626 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16627 Use mac_set_window_modified instead of SetWindowModified.
16628 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16629 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16630 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16631 FrontNonFloatingWindow. Use mac_activate_window instead of
16632 ActivateWindow. Use mac_active_non_floating_window instead of
16633 ActiveNonFloatingWindow.
16634 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16635 Use mac_show_hourglass and mac_hide_hourglass.
16636 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16637 instead of GetGlobalMouse.
16638 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16639 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16640 Use mac_bring_window_to_front instead of BringToFront.
16641 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16642 mactoolbox.c.
16643 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16644 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16645 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16646 mactoolbox.c.
16647
16648 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16649 (XtPointer): Move typedef from macmenu.c.
16650 (enum button_type): Move enum from macmenu.c.
16651 (widget_value): Move typedef from macmenu.c.
16652 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16653 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16654 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16655 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16656 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16657 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16658 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16659 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16660 (Selection): Move typedef from macselect.c.
16661 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16662 macterm.c.
16663 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16664 (mac_is_window_collapsed, mac_bring_window_to_front)
16665 (mac_send_window_behind, mac_hide_window, mac_show_window)
16666 (mac_collapse_window, mac_front_non_floating_window)
16667 (mac_active_non_floating_window, mac_activate_window)
16668 (mac_move_window_structure, mac_move_window, mac_size_window)
16669 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16670
16671 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16672 (enum mac_menu_kind): Move enum to mactoolbox.c.
16673 (min_menu_id): Move variable to mactoolbox.c.
16674 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16675 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16676 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16677 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16678 [TARGET_API_MAC_CARBON]: Likewise.
16679 (XtPointer): Move typedef to macgui.h.
16680 (enum button_type): Move enum to macgui.h.
16681 (widget_value): Move typedef to macgui.h.
16682 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16683 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16684 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16685 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16686 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16687 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16688 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16689 (popup_activated_flag): Make variable non-static.
16690 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16691 (add_menu_item, fill_menu, dispose_menus):
16692 Move functions to mactoolbox.c.
16693 (restore_show_help_function, menu_target_item_handler)
16694 (install_menu_target_item_handler, mac_handle_dialog_event)
16695 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16696 [TARGET_API_MAC_CARBON]: Likewise.
16697 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16698 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16699 (find_and_call_menu_selection, name_is_separator): Make function
16700 non-static.
16701 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16702 to mactoolbox.c.
16703 (set_frame_menubar): Don't call install_menu_quit_handler.
16704 (menu_item_selection): New variable.
16705 (mac_menu_show): Use create_and_show_popup_menu.
16706 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16707 selection but set variable menu_item_selection. All uses changed.
16708 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16709 Call install_menu_quit_handler. Move to mactoolbox.c.
16710
16711 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16712 (Selection): Move typedef to macgui.h.
16713 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16714 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16715 Make variables non-static.
16716 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16717 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16718 Make functions non-static.
16719 (Vmac_service_selection) [MAC_OSX]: Likewise.
16720 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16721 (mac_valid_selection_target_p, mac_clear_selection)
16722 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16723 (mac_put_selection_value, mac_selection_has_target_p)
16724 (mac_get_selection_value, mac_get_selection_target_list)
16725 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16726 Move functions to mactoolbox.c.
16727 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16728 Likewise.
16729 (copy_scrap_flavor_data, mac_handle_service_event)
16730 (install_service_handler) [MAC_OSX]: Likewise.
16731 (syms_of_macselect) <Vmac_dnd_known_types>:
16732 Use mac_dnd_default_known_types.
16733
16734 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16735 Move to mactoolbox.c.
16736 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16737 (Fx_selection_owner_p): Add EXFUN.
16738 (install_window_handler, remove_window_handler, XSetWindowBackground):
16739 Remove externs.
16740 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16741 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16742 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16743 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16744 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16745 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16746 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16747 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16748 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16749 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16750 (mac_valid_selection_target_p, mac_clear_selection)
16751 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16752 (mac_put_selection_value, mac_selection_has_target_p)
16753 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16754 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16755 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16756 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16757 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16758 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16759 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16760 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16761 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16762
16763 * mactoolbox.c: New file.
16764
16765 2008-04-18 Jason Rumney <jasonr@gnu.org>
16766
16767 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16768
16769 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16770
16771 * character.c (Fmultibyte_char_to_unibyte):
16772 Return latin1 chars unchanged.
16773
16774 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16775 relocated if it points to `name'.
16776
16777 2008-04-17 Kenichi Handa <handa@m17n.org>
16778
16779 * data.c (Faset): Allow setting a multibyte character in an
16780 ASCII-only unibyte string.
16781
16782 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16783
16784 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16785
16786 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16787 done in config.h.
16788
16789 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
16790
16791 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16792 (Fchar_direction): Add usage in the docstring.
16793
16794 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
16795
16796 * keyboard.c (read_key_sequence): Remove always-true checks.
16797
16798 2008-04-14 Jason Rumney <jasonr@gnu.org>
16799
16800 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16801 compatibility struct, for better underline positioning.
16802
16803 2008-04-13 David Hansen <david.hansen@gmx.net>
16804
16805 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16806 string.
16807
16808 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16809
16810 * m/hp800.h (XUINT, XSET): Remove.
16811
16812 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
16813
16814 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16815 previous change.
16816
16817 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16818
16819 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16820 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16821
16822 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16823
16824 * keymap.h (map_keymap_canonical): Declare.
16825 * xmenu.c (single_keymap_panes): Use it.
16826
16827 2008-04-11 Glenn Morris <rgm@gnu.org>
16828
16829 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16830 set the target's value to that of the alias.
16831
16832 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16833
16834 * term.c (set_tty_color_mode): Left over typo.
16835
16836 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
16837
16838 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16839 only after check for file name handler functions. Signal, when
16840 native functionality is not supported.
16841 (syms_of_fileio): Declare it unconditionally.
16842
16843 2008-04-10 Jason Rumney <jasonr@gnu.org>
16844
16845 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16846 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16847
16848 * w32.c (logon_network_drive): Also logon to remote drives that
16849 are mapped to drive letters.
16850
16851 2008-04-10 Glenn Morris <rgm@gnu.org>
16852
16853 * xdisp.c (truncate-partial-width-windows): Doc fix.
16854
16855 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16856
16857 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16858 Move functions to minibuffer.el.
16859 (syms_of_fileio): Don't declare them.
16860
16861 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16862
16863 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16864 (syms_of_minibuf): Remove its initialization.
16865
16866 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16867
16868 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
16869
16870 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16871
16872 2008-04-09 Jason Rumney <jasonr@gnu.org>
16873
16874 * makefile.w32-in (distclean): Delete makefile too.
16875 (maintainer-clean): New target.
16876
16877 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16878
16879 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16880 for new font backend and composite cases.
16881
16882 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16883
16884 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16885 Most of the code moved to run_timers.
16886 (do_pending_atimers): Call run_timers.
16887 (run_timers): New function.
16888
16889 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16890 run atimers.
16891
16892 * process.c (wait_reading_process_output): The same as above.
16893
16894 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16895
16896 * minibuf.c (last_exact_completion): Remove variable.
16897 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16898 (complete_and_exit_1, complete_and_exit_2)
16899 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16900 (Fdisplay_completion_list, display_completion_list_1)
16901 (Fminibuffer_completion_help, Fself_insert_and_exit)
16902 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16903 minibuffer.el.
16904 (syms_of_minibuf): Remove corresponding initializations.
16905
16906 * keyboard.c (Qdeactivate_mark): New var.
16907 (command_loop_1): Use it to call `deactivate-mark'.
16908 (syms_of_keyboard): Initialize it.
16909
16910 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16911 to another frame.
16912 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16913 Don't call set_tty_color_mode.
16914 (store_frame_param): Reset previous_frame rather than call
16915 set_tty_color_mode.
16916 * term.c (set_tty_color_mode): Rewrite.
16917 * dispextern.h (set_tty_color_mode): New type.
16918 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16919
16920 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16921
16922 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16923 for generic chars, which do not exist any more in emacs-unicode.
16924
16925 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
16926
16927 * coding.c (detect_coding_emacs_mule)
16928 (Ffind_operation_coding_system): Fix typo.
16929
16930 2008-04-08 Jason Rumney <jasonr@gnu.org>
16931
16932 * w32uniscribe.c (SNAME): Extract only symbol name.
16933
16934 * w32font.h (struct w32_metric_cache): New struct.
16935 (w32font_info): Use it.
16936 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16937 (CACHE_BLOCKSIZE): New constants.
16938
16939 * w32font.c (Qja, Qko, Qzh): New symbols.
16940 (syms_of_w32font): Initialise them.
16941 (font_matches_spec): Use them to filter by language.
16942 (recompute_cached_metrics): Remove function.
16943 (compute_metrics, clear_cached_metrics): New functions.
16944 (w32font_encode_char): Use them to manage metric cache.
16945 (w32font_text_extents): Cache metrics for all glyphs on demand.
16946 Delay converting glyph indices to WORD until needed.
16947 (w32font_open_internal): Initialize metric cache to empty.
16948 (registry_to_w32_charset): Charset should always be a symbol.
16949 (fill_in_logfont, list_all_matching_fonts): Family should
16950 always be a symbol.
16951
16952 2008-04-06 Jason Rumney <jasonr@gnu.org>
16953
16954 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16955 Give up if glyph indices not supported. Use uniscribe obtained
16956 ABC widths for individual metrics. Map glyph clusters back to
16957 characters using fClusterStart flag. Return number of glyphs
16958 produced, not chars processed.
16959 (uniscribe_shape): Map char at FROM to current glyph.
16960
16961 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16962
16963 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16964 Use SetMenuItemHierarchicalMenu.
16965
16966 2008-04-05 Jason Rumney <jasonr@gnu.org>
16967
16968 * image.c (pbm_load): Allow color values up to 65535.
16969 Throw an error if max_color_idx is outside the supported range.
16970 Report an error when image size is invalid.
16971 Read two bytes at a time when raw images have max_color_idx above 255.
16972
16973 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16974
16975 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16976 append "CCL: Quitted" when the CCL program is quitted.
16977 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16978
16979 * ccl.h (struct ccl_program): New member quit_silently.
16980
16981 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
16982
16983 * search.c (compile_pattern_1): Treat non-nil and non-string of
16984 search-spaces-regexp as nil.
16985
16986 * minibuf.c (Fassoc_string): Tweak docstring.
16987
16988 2008-04-05 Eli Zaretskii <eliz@gnu.org>
16989
16990 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16991 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16992 2008-03-14 to force inode be positive.
16993
16994 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16995 _S_* ones, since we now use our own sys/stat.h.
16996 (stat, fstat): Don't mangle the inode number.
16997 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16998
16999 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17000
17001 * frame.h (struct frame): Give one more bit to `visible' since we use
17002 values larger than 1 to indicate obscured frames on ttys.
17003
17004 * keymap.c (Qkeymap_canonicalize): New var.
17005 (Fmap_keymap_internal): New fun.
17006 (describe_map): Use keymap-canonicalize.
17007
17008 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17009 (Fundo_boundary): Set them.
17010 (syms_of_undo): Initialize them.
17011 (record_point): Use them instead of last_point_position*.
17012 (last_undo_buffer): Change type.
17013
17014 2008-04-04 Jason Rumney <jasonr@gnu.org>
17015
17016 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17017 (recompute_cached_metrics): Don't set ascent and descent per char.
17018
17019 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17020 (uniscribe_check_otf): Add GC protection before consing.
17021 Rearrange loop for counting features.
17022
17023 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17024
17025 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17026 buffer with byte-size of source buffer.
17027
17028 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
17029
17030 * callint.c (Fcall_interactively): Handle temporary region even
17031 when shift-select-mode is off.
17032
17033 2008-04-03 Jason Rumney <jasonr@gnu.org>
17034
17035 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17036
17037 2008-04-03 Kenichi Handa <handa@m17n.org>
17038
17039 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17040 (CATEGORY_MASK_UTF_16): Likewise.
17041 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17042 binary file.
17043 (detect_coding): Add null-byte detection for a binary file.
17044 (detect_coding_system): Likewise.
17045
17046 2008-04-03 Jason Rumney <jasonr@gnu.org>
17047
17048 * w32uniscribe.c: New file.
17049
17050 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17051
17052 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17053
17054 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17055 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17056 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17057 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17058 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17059 (Qphonetic): New symbols.
17060 (syms_of_w32font): Initialize them.
17061 (font_supported_scripts): Use them.
17062 (w32font_list_family): List all charsets.
17063 (w32font_text_extents, recompute_cached_metrics): Fix metric
17064 calculations.
17065 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17066 Give opentype fonts their own format.
17067 (font_matches_spec): New arguments backend and logfont.
17068 Handle :otf spec for uniscribe backend.
17069 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17070 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17071
17072 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17073 font backend.
17074 (globals_of_w32fns): Initialize uniscribe font backend.
17075
17076 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17077 dependencies.
17078 (w32uniscribe.$(O)): New file to build.
17079 (FONT_OBJ): Include w32uniscribe.$(O).
17080 (LIBS): Add uniscribe libraries.
17081
17082 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17083
17084 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
17085
17086 * callint.c (Vshift_select_mode): New var.
17087 (Finteractive): Document new ^ spec.
17088 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17089 is present.
17090
17091 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17092 (command_loop_1): Avoid running the direct display versions of
17093 forward-char and backward-char if shift-selection may occur.
17094 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17095 shift-translation takes place.
17096
17097 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17098 avoid clobbering by define-minor-mode.
17099
17100 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17101 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17102
17103 * syntax.c (Fforward_word): Add ^ interactive spec.
17104
17105 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17106 (Fscroll_right): Add ^ interactive spec.
17107
17108 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17109
17110 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17111
17112 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17113
17114 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17115
17116 2008-03-31 Juri Linkov <juri@jurta.org>
17117
17118 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17119
17120 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17121
17122 * gtkutil.c (xg_set_geometry): Fix indentation.
17123 (xg_resize_outer_widget): Remove.
17124 (x_wm_size_hint_off): Fix indentation.
17125 (xg_frame_set_char_size): Call flush_and_sync after
17126 gtk_window_resize.
17127 (x_wm_set_size_hint): Pass NULL as geometry window to
17128 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17129 Add menu bar and tool bar height to base height.
17130 (xg_update_frame_menubar, free_frame_menubar)
17131 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17132 (update_frame_tool_bar, free_frame_tool_bar):
17133 Change xg_resize_outer_widget to xg_frame_set_char_size.
17134
17135 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
17136
17137 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17138 (Fdbus_call_method): New parameter TIMEOUT.
17139 (dbus-send-signal): Optimize UNGCPRO call.
17140
17141 2008-03-29 Juri Linkov <juri@jurta.org>
17142
17143 * window.c (Fdisplay_buffer): Move call to
17144 Vsplit_window_preferred_function out of conditions that check
17145 if window is eligible for vertical splitting.
17146 When Vsplit_window_preferred_function is non-nil, call it and use
17147 its non-nil return value as window. Otherwise, continue doing
17148 vertical splitting using Fsplit_window with arg horflag=nil.
17149 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17150 default value from `split-window' to nil.
17151
17152 2008-03-29 Juri Linkov <juri@jurta.org>
17153
17154 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17155 for interactive code letters 'b' and 'B'.
17156
17157 2008-03-29 Eli Zaretskii <eliz@gnu.org>
17158
17159 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17160 multibyte string.
17161
17162 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17163
17164 * keyboard.c (pending_funcalls): New var.
17165 (timer_check): Run it.
17166 (syms_of_keyboard): Initialize it.
17167 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17168 (Vdelete_terminal_functions): New vars.
17169 (syms_of_terminal): Initialize them.
17170 (Fdelete_terminal): Run delete-terminal-functions.
17171 * xdisp.c (safe_eval): Rewrite.
17172 (safe_call2): New fun.
17173 * frame.c (Qdelete_frame_functions): New var.
17174 (syms_of_frame): Initialize it.
17175 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17176 * lisp.h (safe_call2, pending_funcalls): Declare.
17177
17178 2008-03-28 Andreas Schwab <schwab@suse.de>
17179
17180 * indent.c (Fmove_to_column): Move declaration before statements.
17181
17182 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17183
17184 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17185 (struct frame): Use bit fields for boolean vars.
17186
17187 * process.c (server_accept_connection): Simplify naming.
17188 (emacs_get_tty_pgrp): Use SDATA.
17189
17190 * coding.c (decode_coding_object): Fix last change.
17191
17192 2008-03-27 Jason Rumney <jasonr@gnu.org>
17193
17194 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17195
17196 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17197
17198 * charset.c (Fdefine_charset_internal): Change the way of
17199 registering charsets in Vcharset_order_list.
17200 (syms_of_charset): Make the charset `eight-bit' supplementary.
17201
17202 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17203
17204 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17205 operations, to avoid having the difference between pointers
17206 overflow.
17207
17208 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17209
17210 * indent.c (check_display_width): New fun.
17211 (scan_for_column): Use it.
17212
17213 * data.c (syms_of_data): Mark most-positive-fixnum and
17214 most-negative-fixnum as constants.
17215
17216 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17217
17218 * indent.c (scan_for_column): Extract from current_column_1.
17219 Merge with the same code from Fmove_to_column.
17220 (current_column_1, Fmove_to_column): Use it.
17221
17222 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17223
17224 * keymap.c (map_keymap_internal): New fun.
17225 (map_keymap): Use it.
17226 (Fmap_keymap_internal): New fun.
17227 (Fmap_keymap): Remove left-out test from before make_save_value.
17228
17229 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17230
17231 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17232 Use XCAR/XCDR.
17233
17234 * process.h (struct Lisp_Process): Remove filter_multibyte.
17235 * process.c (QCfilter_multibyte): Remove.
17236 (setup_process_coding_systems): Don't use filter_multibyte.
17237 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17238 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17239 (Fset_process_filter_multibyte): Change the coding-system to
17240 approximate the previous behavior.
17241 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17242 coding-system.
17243
17244 * coding.c (decode_coding_object): When not decoding into a buffer,
17245 obey the coding system's preference of (uni|multi)byte.
17246
17247 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17248
17249 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17250 every char is changed and has a different byte-length.
17251 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17252 Fix int -> EMACS_INT.
17253
17254 2008-03-23 David Hansen <david.hansen@gmx.net>
17255
17256 * dbusbind.c (xd_read_message): Remove extra copying of message
17257 strings. Check for NULL `interface' or `member'.
17258
17259 2008-03-22 Eli Zaretskii <eliz@gnu.org>
17260
17261 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17262 cFileName a file name that includes `?' characters, use the 8+3
17263 alias in cAlternateFileName instead.
17264
17265 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17266
17267 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17268
17269 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17270
17271 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17272 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17273 work on current_buffer only instead (that was already the case
17274 for some of the code anyway).
17275 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17276 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17277 (SET_PT, SET_PT_BOTH): Adjust.
17278 * intervals.h (set_point, temp_set_point, set_point_both)
17279 (temp_set_point_both): Remove redundant declarations.
17280
17281 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17282
17283 * fileio.c (Finsert_file_contents):
17284 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17285 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17286 when buffer != current_buffer anyway.
17287
17288 2008-03-20 Andreas Schwab <schwab@suse.de>
17289
17290 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17291 as default.
17292
17293 2008-03-19 Jason Rumney <jasonr@gnu.org>
17294
17295 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17296 (syms_of_w32fns): Initialize them.
17297 (HOURGLASS_ID): New constant.
17298 (x_window_to_frame): Don't check hourglass_window.
17299 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17300 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17301 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17302 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17303 Only change the cursor if hourglass is not active.
17304 (Fx_create_frame): Initialize frame's current_cursor.
17305 (hourglass_atimer): Remove.
17306 (hourglass_started): New function.
17307 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17308 (show_hourglass): Adapt to w32, changing argument to frame.
17309
17310 * w32term.h (struct w32_output): Remove hourglass_window.
17311 Add current_cursor.
17312
17313 * eval.c (call_debugger, Fsignal):
17314 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17315 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17316 (Fexecute_extended_command, cancel_hourglass_unwind):
17317 * minibuf.c (read_minibuf):
17318 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17319
17320 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17321
17322 * window.c (run_funs): New fun.
17323 (run_window_configuration_change_hook): Use it to run the buffer-local
17324 and the global part of the hook.
17325
17326 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17327 (unwind_format_mode_line): Restore selected window.
17328 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17329
17330 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17331
17332 * editfns.c (Fchar_equal): Check they are valid characters.
17333
17334 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17335
17336 2008-03-17 Andreas Schwab <schwab@suse.de>
17337
17338 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17339 against a charset.
17340
17341 * lisp.h (Fbuffer_list): Declare.
17342
17343 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
17344
17345 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17346 handlebox_widget is != 0.
17347
17348 2008-03-16 Juri Linkov <juri@jurta.org>
17349
17350 * callint.c (Fcall_interactively): For interactive code letters
17351 'b' and 'B' put the buffer list into the list of default "future"
17352 values of the minibuffer.
17353
17354 2008-03-16 Andreas Schwab <schwab@suse.de>
17355
17356 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17357 modifiers.
17358
17359 * regex.c (re_match_2_internal): Correct matching of a charset
17360 against latin-1 characters.
17361
17362 2008-03-16 Kenichi Handa <handa@m17n.org>
17363
17364 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17365 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17366 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17367 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17368 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17369 CHAR_STRING_ADVANCE.
17370 (produce_chars): Fix for the case that the source and the
17371 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17372 instead of CHAR_STRING_ADVANCE.
17373 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17374 STRING_CHAR_ADVANCE.
17375
17376 2008-03-15 Andreas Schwab <schwab@suse.de>
17377
17378 * regex.c (re_match_2_internal): Correct matching of eight bit
17379 characters in unibyte strings.
17380
17381 2008-03-15 Martin Rudalics <rudalics@gmx.at>
17382
17383 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17384 at end of range when it coincides with the end of the buffer.
17385
17386 2008-03-14 Eli Zaretskii <eliz@gnu.org>
17387
17388 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17389
17390 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17391
17392 2008-03-14 Jason Rumney <jasonr@gnu.org>
17393
17394 * editfns.c (initial_tz): New variable.
17395 (syms_of_editfns): Initialize it.
17396 (Fset_time_zone_rule): Set it when first called.
17397 Use it when TZSTRING is nil.
17398
17399 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17400 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17401 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17402 (globals_of_w32fns): Initialize them.
17403 (compute_tip_xy): Use them to position tooltips.
17404
17405 2008-03-14 Glenn Morris <rgm@gnu.org>
17406
17407 * emacs.c (main): Revert previous change.
17408 (standard_args): Revert -internal-script back to -scriptload,
17409 and remove the long-option form.
17410
17411 2008-03-13 Glenn Morris <rgm@gnu.org>
17412
17413 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17414 Remove option -enable-font-backend.
17415
17416 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17417
17418 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17419
17420 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17421
17422 * xterm.c (x_connection_closed): For GTK: If this is the last
17423 terminal just exit without closing the display.
17424
17425 2008-03-11 Jason Rumney <jasonr@gnu.org>
17426
17427 * w32font.c (w32font_full_name): Use floor to round.
17428
17429 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
17430
17431 * sound.c (alsa_configure): Declare vol at beginning of block.
17432
17433 * fontset.c (Ffontset_info): Remove extra semicolon.
17434
17435 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17436
17437 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17438 size of resulting string.
17439
17440 2008-03-10 Jason Rumney <jasonr@gnu.org>
17441
17442 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17443
17444 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17445
17446 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17447 Don't pretend as if characters with display property haven't been
17448 consumed for string-replacing-string case.
17449
17450 2008-03-08 Kim F. Storm <storm@cua.dk>
17451
17452 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17453 (get_next_display_element, next_element_from_string)
17454 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17455
17456 2008-03-08 Andreas Schwab <schwab@suse.de>
17457
17458 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17459
17460 2008-03-06 Jason Rumney <jasonr@gnu.org>
17461
17462 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17463 when charset not specified. Only translate ANSI to unicode when
17464 font_type is truetype.
17465 (w32font_coverage_ok): New function.
17466 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17467
17468 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17469
17470 * lread.c (Fread_char): Resolve modifiers.
17471 (Fread_char_exclusive): Likewise.
17472
17473 * character.c (char_resolve_modifier_mask): New function.
17474 (char_string): Use char_resolve_modifier_mask.
17475 (Fchar_resolve_modifiers): New function.
17476 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17477 function.
17478
17479 2008-03-04 Jason Rumney <jasonr@gnu.org>
17480
17481 * makefile.w32-in: Always include w32font.c in the build.
17482 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17483
17484 2008-03-04 Andreas Schwab <schwab@suse.de>
17485
17486 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17487 (versionclean): Likewise.
17488
17489 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
17490
17491 * .cvsignore: Add oo.
17492
17493 2008-03-03 Andreas Schwab <schwab@suse.de>
17494
17495 * coding.c (decode_coding_object): Inhibit gap shrinking while
17496 decoding in place.
17497
17498 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17499
17500 * w32term.c: Remove unused include "gnu.h".
17501 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17502
17503 * gnu.h: Rename to ...
17504 * emacs-icon.h: ... this.
17505 * xterm.c: Use emacs-icon.h instead of gnu.h.
17506 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17507
17508 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
17509
17510 * w32font.c: Include math.h.
17511
17512 2008-03-03 Jason Rumney <jasonr@gnu.org>
17513
17514 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17515 Compute options separately.
17516 (w32font_open_internal): Set glyph_idx before caching metrics.
17517
17518 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17519 Define if system headers don't.
17520 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17521 (w32font_encode_char): Don't declare here.
17522
17523 * w32font.c (Quniscribe, QCformat): New symbols.
17524 (syms_of_w32font): Define them.
17525 (w32font_has_char): Indicate uncertainty.
17526 (w32font_encode_char): Encode as glyph point. Make static.
17527 (recompute_cached_metrics): New function.
17528 (w32font_open_internal): Use it. Set font to use glyph points
17529 initially. Set format based on type of font.
17530 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17531 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17532 on it. Set format based on information available here.
17533 (add_font_entity_to_list): Identify backend based on opentype_only.
17534
17535 2008-03-02 Andreas Schwab <schwab@suse.de>
17536
17537 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17538
17539 * coding.c (decode_coding_big5, produce_chars):
17540 Fix typos in last change.
17541
17542 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17543
17544 * gnu.h: New icon.
17545
17546 2008-03-02 Kenichi Handa <handa@m17n.org>
17547
17548 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17549 `dos', don't decode '\r' if that is the last in the source.
17550 (decode_coding_utf_16, decode_coding_emacs_mule)
17551 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17552 (decode_coding_raw_text, decode_coding_charset): Likewise.
17553 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17554
17555 2008-03-01 Jason Rumney <jasonr@gnu.org>
17556
17557 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17558
17559 2008-03-01 Kim F. Storm <storm@cua.dk>
17560
17561 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17562
17563 2008-03-01 Jason Rumney <jasonr@gnu.org>
17564
17565 * w32font.c (w32font_full_name): New function.
17566 (w32font_open_internal): Use it.
17567
17568 2008-03-01 Kim F. Storm <storm@cua.dk>
17569
17570 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17571
17572 2008-03-01 Jason Rumney <jasonr@gnu.org>
17573
17574 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17575
17576 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17577
17578 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17579 xg_frame_resized when the event is for the edit widget.
17580
17581 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17582
17583 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17584 set_char_size.
17585 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17586 operations on widgets here. Just set frame size if needed.
17587 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17588 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17589 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17590 the whole frame.
17591 (xg_create_tool_bar): Move attachment of the tool bar to
17592 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17593 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17594
17595 2008-03-01 Jason Rumney <jasonr@gnu.org>
17596
17597 * w32fns.c (w32_msg_pump): Disable debug code.
17598
17599 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17600
17601 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17602
17603 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
17604
17605 * xdisp.c (next_overlay_string): Don't set
17606 overlay_strings_at_end_processed_p if we're currently reading from
17607 a display string.
17608
17609 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17610
17611 * xdisp.c (get_overlay_strings_1): Fix typo.
17612
17613 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
17614
17615 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17616
17617 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17618
17619 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17620
17621 * xdisp.c (display_mode_element): Cancel the previous change.
17622 (decode_mode_spec): Likewise.
17623 (handle_auto_composed_prop): Don't make composition if it->string
17624 is a string.
17625
17626 2008-02-27 Kim F. Storm <storm@cua.dk>
17627
17628 * lisp.h (GLYPH): Change type from int to struct with separate char
17629 and face_id members.
17630 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17631 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17632 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17633 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17634 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17635 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17636 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17637 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17638 handle new Lisp glyph code encoding, either an integer or a cons.
17639
17640 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17641 (GLYPH_ALIAS): Delete.
17642 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17643 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17644 (GLYPH_FROM_CHAR): Replace macro by ...
17645 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17646
17647 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17648 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17649 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17650 (GLYPH_INVALID_P): New macro.
17651 (spec_glyph_lookup_face): Update prototype.
17652
17653 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17654 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17655 new glyph code encoding.
17656 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17657 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17658
17659 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17660 Adapt to new glyph type and new glyph code encoding.
17661
17662 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17663
17664 * indent.c (current_column, current_column_1, Fmove_to_column)
17665 (compute_motion): Adapt to new glyph code encoding.
17666
17667 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17668
17669 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
17670
17671 * process.c (wait_reading_process_output): Check for window
17672 changes caused by timers.
17673 Suggested by Johan Bockgård.
17674
17675 2008-02-27 Glenn Morris <rgm@gnu.org>
17676
17677 * emacs.c (USAGE1): Add `--disable-font-backend'.
17678
17679 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17680
17681 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17682 is made to the buffer.
17683
17684 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17685
17686 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17687 (face_at_string_position):
17688 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17689 (face_at_string_position):
17690 * xdisp.c (display_string, next_overlay_change):
17691 * buffer.h (overlays_at):
17692 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17693 Update callers.
17694
17695 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
17696
17697 * editfns.c (Fformat): Doc fix.
17698
17699 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
17700
17701 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17702 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17703 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17704
17705 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17706
17707 * buffer.c (Fbuffer_swap_text): New function.
17708 (syms_of_buffer): Defsubr it.
17709
17710 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
17711
17712 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17713
17714 2008-02-25 Jason Rumney <jasonr@gnu.org>
17715
17716 * w32font.c (w32font_draw): Draw one character at a time when padding.
17717
17718 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17719
17720 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17721 Handle a nil arg. Use run_window_configuration_change_hook.
17722 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17723 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17724 Use run_window_configuration_change_hook.
17725
17726 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17727
17728 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17729 1-pixel width.
17730
17731 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17732
17733 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17734 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17735 if the glyph in the font is zero pixel with.
17736
17737 * dispextern.h (struct glyph_string): New member padding_p.
17738
17739 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17740
17741 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17742
17743 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17744
17745 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17746
17747 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17748
17749 2008-02-25 Jason Rumney <jasonr@gnu.org>
17750
17751 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17752
17753 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17754
17755 Allow fine-grained image-cache flushing.
17756 * dispextern.h (struct image): Add `dependencies' field.
17757 (clear_image_caches): Change arg to Lisp_Object.
17758 * image.c (make_image): Initialize `dependencies' field.
17759 (clear_image_cache): Change arg to allow fine-grained flushing.
17760 Perform the flush even if image-cache-eviction-delay is nil.
17761 (clear_image_caches): Change arg to Lisp_Object.
17762 (Fclear_image_cache): Expand meaning of the argument.
17763 (mark_image): Mark `dependencies' field.
17764 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17765 (lface_hash): Use XHASH rather than XFASTINT.
17766 (face_at_buffer_position): Fix int -> EMACS_INT position.
17767 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17768 (select_frame_for_redisplay): Remove code duplication.
17769 (redisplay_internal): Adapt arg to call to clear_image_caches.
17770
17771 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17772
17773 * s/vms4-0.h:
17774 * s/vms4-2.h:
17775 * s/vms4-4.h:
17776 * s/vms5-5.h: Remove, unused.
17777
17778 * s/irix5-2.h:
17779 * s/irix6-0.h:
17780 * s/riscos5.h:
17781 * s/mach-bsd4-3.h:
17782 * m/mips4.h: Remove files for obsolete systems.
17783
17784 * Makefile.in:
17785 * filelock.c:
17786 * unexmips.c:
17787 * m/hp9000s300.h:
17788 * m/iris4d.h:
17789 * s/aix3-1.h:
17790 * s/hpux.h:
17791 * s/msdos.h:
17792 * s/usg5-0.h:
17793 * s/usg5-2-2.h:
17794 * s/usg5-2.h:
17795 * s/usg5-3.h: Remove references to obsolete variables.
17796
17797 * s/irix5-0.h: Remove, move all the contents ...
17798 * s/irix6-5.h: ... here. Simplify.
17799 * config.in: Regenerate.
17800
17801 2008-02-24 Jason Rumney <jasonr@gnu.org>
17802
17803 * w32term.c (x_draw_glyph_string_background): Clear the background
17804 manually when cleartype is in use.
17805 (x_draw_glyph_string_foreground): Draw text transparently when
17806 cleartype is in use.
17807
17808 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17809 a font into it unless we have to.
17810
17811 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17812
17813 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17814 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
17815
17816 2008-02-18 Jason Rumney <jasonr@gnu.org>
17817
17818 * w32fns.c (Fw32_shell_execute): Encode parameters.
17819
17820 2008-02-09 Eli Zaretskii <eliz@gnu.org>
17821
17822 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17823
17824 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
17825
17826 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17827
17828 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17829
17830 * xterm.c (x_set_offset): Don't change the gravity if
17831 CHANGE_GRAVITY is -1.
17832
17833 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
17834
17835 * fileio.c (auto_save_error_occurred): New var.
17836 (auto_save_error): Set it.
17837 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17838 error occurred.
17839
17840 2008-02-23 Eli Zaretskii <eliz@gnu.org>
17841
17842 * w32.c (globals_of_w32): Add initializations for
17843 g_b_init_get_sid_sub_authority and
17844 g_b_init_get_sid_sub_authority_count.
17845
17846 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17847
17848 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17849 (font_parse_xlfd): Use them for sanity check.
17850 (Finternal_set_font_style_table): Make sure the table is bijective.
17851
17852 Consolidate the image_cache to the terminal struct.
17853 * termhooks.h (P_): Remove redundant def.
17854 (struct terminal): New field `image_cache'.
17855 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17856 of FRAME_X_IMAGE_CACHE.
17857 * xterm.h (struct x_display_info): Remove image_cache field.
17858 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17859 * w32term.h (struct w32_display_info): Remove image_cache field.
17860 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17861 * macterm.h (struct mac_display_info): Remove image_cache field.
17862 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17863 * xterm.c (x_term_init):
17864 * w32term.c (w32_term_init):
17865 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17866 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17867 Remove declarations.
17868 (clear_image_caches, mark_image_cache): New declarations.
17869 * xfaces.c (clear_face_cache):
17870 * xdisp.c (redisplay_internal): Use clear_image_caches.
17871 * image.c (clear_image_cache): Don't check that a frame is on
17872 a window-system before checking if it shares the same cache.
17873 (clear_image_caches): New function.
17874 (Fclear_image_cache): Use it.
17875 (mark_image): Move from allo.c.
17876 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17877 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17878 (mark_object): Don't call mark_image_cache for frames.
17879 (mark_terminals): Call mark_image_cache.
17880
17881 * lisp.h (Fdelete_terminal): Declare.
17882
17883 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17884 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17885 wrong_type_argument.
17886
17887 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17888
17889 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17890 malayalam.el, and tamil.el. Add sinhala.el.
17891
17892 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17893
17894 * xterm.c (x_connection_closed): Consolidate identical tests.
17895 (x_delete_terminal): Don't crash if called via x_connection_closed.
17896
17897 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17898
17899 * xdisp.c (decode_mode_spec): New arg string.
17900 (display_mode_element): Adjust for the above change.
17901
17902 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17903
17904 * callint.c (Fcall_interactively): Use AREF.
17905
17906 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17907
17908 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17909
17910 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17911
17912 * xfns.c (Fx_show_tip): Set string to " " if empty.
17913
17914 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17915
17916 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17917 with Qt.
17918
17919 2008-02-17 Kenichi Handa <handa@m17n.org>
17920
17921 * ftfont.c (ftfont_shape): Return Lispy number.
17922
17923 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17924 for GCs.
17925 (Finternal_set_font_selection_order): Call font_update_sort_order
17926 only when enable_font_backend is set.
17927 (realize_x_face): Set face->font_info to that of default face only
17928 when enable_font_backend is set.
17929
17930 * xdisp.c (handle_composition_prop): Set it->c to the fist
17931 character of the composed region.
17932 (fill_composite_glyph_string): Set base_face->font_info to
17933 s->font_info. Get a face for ascii from base_face->ascii_face.
17934 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17935 with a face already decided.
17936 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17937 non-negative.
17938 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17939 call font_prepare_composition unconditionally.
17940
17941 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17942
17943 * xterm.h (struct x_display_info): New member font.
17944
17945 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17946 (x_set_mouse_face_gc, x_new_font): Likewise.
17947 (x_term_init): Setup display_info->font.
17948 (x_delete_terminal): Free display_info->font.
17949
17950 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17951
17952 * ftxfont.c (ftxfont_default_fid): Delete it.
17953 (ftxfont_open): Set xfont->fid to 0.
17954 (ftxfont_end_for_frame): Clear data specific to the frame and the
17955 font-driver.
17956
17957 * xftfont.c (xftfont_default_fid): Delete it.
17958 (xftfont_open): Set xfont->fid to 0.
17959
17960 * fontset.c (FONTSET_OBJLIST): New macro.
17961 (fontset_find_font): Update font-object list of the fontset.
17962 (free_realized_fontset): New function.
17963 (free_face_fontset): Call free_realized_fontset.
17964 (Ffont_info): Call font_close_object only when enable_font_backend
17965 is set.
17966
17967 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17968 [HAVE_NTGUI]: Include w32term.h.
17969 [MAC_OS]: Include macterm.ch.
17970 (font_otf_ValueRecord): Use make_number.
17971 (font_finish_cache): Fix handling of reference count.
17972 (font_clear_cache): Update num_fonts.
17973 (font_open_entity): Update smallest_char_width and
17974 smallest_font_height of the frame.
17975 (font_close_object): Update num_fonts.
17976 (Fclear_font_cache): Fix finding the target cache data.
17977
17978 2008-02-16 Glenn Morris <rgm@gnu.org>
17979
17980 * fontset.c (Finternal_char_font): Fix compilation warning.
17981
17982 2008-02-16 Eli Zaretskii <eliz@gnu.org>
17983
17984 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17985 instead of char arrays. Enlarge the size of array passed to
17986 get_token_information.
17987
17988 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17989 warnings.
17990
17991 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17992
17993 * .gdbinit: Don't set `args', it breaks gdb --args.
17994
17995 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17996
17997 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17998 within a narrowed buffer.
17999
18000 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18001
18002 * coding.c (decode_coding_object, encode_coding_object):
18003 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18004
18005 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18006
18007 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18008 hardcoding 1.
18009 (detect_coding_system):
18010 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18011 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18012 * insdel.c (insert_from_gap):
18013 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18014 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18015 (string_to_multibyte):
18016 * character.c (chars_in_text, multibyte_chars_in_text):
18017 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18018
18019 * character.h (FETCH_STRING_CHAR_ADVANCE)
18020 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18021 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18022 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18023
18024 * casefiddle.c (casify_region): Only call after-change and composition
18025 functions on the part of the region that was changed.
18026
18027 * keyboard.c (read_avail_input):
18028 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18029
18030 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18031
18032 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18033 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18034
18035 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
18036
18037 * w32menu.c (push_submenu_start, push_submenu_end)
18038 (push_left_right_boundary, push_menu_pane, push_menu_item):
18039 * keyboard.c (read_key_sequence): Don't pass args with side effects
18040 to AREF, it fails when compiling with -DENABLE_CHECKING.
18041
18042 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18043
18044 * Makefile.in (${lispsource}international/charprop.el):
18045 Delete this target.
18046
18047 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18048 emacs-unicode-2.
18049
18050 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18051
18052 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18053
18054 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18055
18056 * frame.c (Qnoelisp): New symbol.
18057 (syms_of_frame): Initialize it.
18058 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18059 harmless Elisp code, from a strong `force' from x_connection_closed.
18060 * frame.h (Qnoelisp): Declare.
18061 * xterm.c (x_connection_closed): Pass `noelisp'.
18062
18063 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18064 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18065 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18066 rather than `int' for the type of `type'.
18067
18068 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18069
18070 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18071
18072 * Makefile.in (GNUC): Remove support for gcc-1.x.
18073
18074 2008-02-10 Richard Stallman <rms@gnu.org>
18075
18076 * lisp.h (ASET): Use AREF, not ASLOT.
18077
18078 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18079
18080 * lisp.h (ASET): Check bounds.
18081
18082 2008-02-10 Glenn Morris <rgm@gnu.org>
18083
18084 * buffer.c (mode-name): Doc fix.
18085
18086 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18087
18088 * Makefile.in:
18089 * emacs.c:
18090 * gmalloc.c:
18091 * keyboard.c:
18092 * lisp.h:
18093 * m/ibm370aix.h:
18094 * process.c:
18095 * regex.c:
18096 * s/hpux.h:
18097 * sysdep.c:
18098 * sysselect.h:
18099 * systty.h:
18100 * unexec.c:
18101 * w32term.c:
18102 * xsmfns.c:
18103 * xterm.c: Remove code that deals with obsolete variables.
18104
18105 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18106
18107 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18108 nothing else needs it anymore.
18109
18110 2008-02-09 Eli Zaretskii <eliz@gnu.org>
18111
18112 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18113 instead of unibyte_char_to_multibyte.
18114
18115 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18116
18117 * s/gnu-linux.h: Remove commented out code.
18118
18119 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18120
18121 * Makefile.in: Update what RMS says about using autoconf.
18122 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18123 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18124 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18125 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18126
18127 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18128
18129 * keymap.c (Fkey_description): Move side effect outside of macro call.
18130
18131 * xfaces.c (Finternal_make_lisp_face):
18132 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18133
18134 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18135 (syms_of_fontset): Use ASET.
18136
18137 * fns.c (concat): Move side effect outside of macro call.
18138 (hash_clear): Use ASET.
18139
18140 2008-02-08 Richard Stallman <rms@gnu.org>
18141
18142 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18143 If FORCE, and frame has a surrogate minibuffer for another frame,
18144 delete the other frame first.
18145
18146 2008-02-07 Timo Savola <timo.savola@iki.fi>
18147
18148 * xterm.c (x_detect_focus_change): Handle embed client message.
18149 (handle_one_xevent): Ditto.
18150 (handle_one_xevent): If embedded and we get a button press/release,
18151 request focus.
18152 (xembed_set_info, xembed_send_message): New functions.
18153 (x_make_frame_visible): Call xembed_set_info if embedded.
18154 (x_make_frame_invisible): Call xembed_set_info if embedded.
18155 (x_term_init): Initialize Xatom_XEMBED.
18156 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18157 (x_iconify_frame): Ditto.
18158
18159 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18160 (enum xembed_info, enum xembed_message, enum xembed_focus)
18161 (enum xembed_modifier, enum xembed_accelerator): New.
18162 (xembed_set_info, xembed_send_message): Declare.
18163 (FRAME_X_EMBEDDED_P): New.
18164
18165 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18166 gtk_plug_new.
18167
18168 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18169 window ID of a frame.
18170 (x_window): Reparent frame if embedded.
18171 (Fx_create_frame): Don't set border width if embedded.
18172
18173 * emacs.c (USAGE3): Add --parent-id.
18174 (standard_args): Ditto.
18175
18176 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18177
18178 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18179
18180 2008-02-07 Jim Meyering <meyering@redhat.com>
18181
18182 Use "do...while (0)", not "if (1)...else" in macro definitions.
18183 The latter provokes a warning from gcc about the empty else, when
18184 followed by ";". Also, without that trailing semicolon, it would
18185 silently swallow up any following statement.
18186 * syntax.h (SETUP_SYNTAX_TABLE)
18187 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18188 * buffer.h (DECODE_POSITION): Likewise.
18189 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18190 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18191 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18192 (FETCH_CHAR_ADVANCE): Likewise.
18193 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18194
18195 2008-02-07 Jim Meyering <meyering@redhat.com>
18196
18197 * lread.c [lint]: Don't include <sys/inode.h>.
18198
18199 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18200
18201 * xselect.c (x_handle_dnd_message):
18202 * xmenu.c (digest_single_submenu, xmenu_show):
18203 * xdisp.c (with_echo_area_buffer_unwind_data)
18204 (format_mode_line_unwind_data, unwind_format_mode_line)
18205 (display_menu_bar):
18206 * eval.c (Ffetch_bytecode):
18207 * doc.c (store_function_docstring):
18208 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18209 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18210 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18211
18212 2008-02-07 Kenichi Handa <handa@m17n.org>
18213
18214 * ftxfont.c (ftxfont_open): Don't set
18215 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18216
18217 * ftfont.c (ftfont_open): Fix previous change.
18218
18219 2008-02-06 Jason Rumney <jasonr@gnu.org>
18220
18221 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18222 Use cached metrics for ASCII characters.
18223 (w32font_open_internal): Don't set font's owning_frame.
18224 Cache metrics for ASCII characters.
18225
18226 * w32font.h (struct w32font_info): Add ascii_metrics.
18227 Remove owning_frame.
18228
18229 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18230
18231 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18232 to negative value.
18233
18234 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18235
18236 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18237
18238 * charset.c (syms_of_charset): Set QCtest and Qeq.
18239
18240 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18241
18242 * process.c (Fstart_process):
18243 * callproc.c (Fcall_process): Handle the case where
18244 Funhandled_file_name_directory returns nil.
18245
18246 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18247 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18248 * font.c (check_gstring): Use them and AREF to access the vector before
18249 we know it's really a gstring.
18250 (Ffont_shape_text): Fix typo.
18251 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
18252
18253 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18254 Declare.
18255
18256 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18257
18258 2008-02-05 Jason Rumney <jasonr@gnu.org>
18259
18260 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18261 Set smallest_font_height and smallest_char_width in display info.
18262
18263 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18264
18265 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18266
18267 2008-02-05 Miles Bader <miles@gnu.org>
18268
18269 * xfaces.c (get_lface_attributes, merge_named_face)
18270 (lookup_named_face, lookup_derived_face, realize_named_face):
18271 Revert 2008-02-01 change by cyd@stupidchicken.com.
18272
18273 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18274
18275 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18276 fallback fonts.
18277 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18278
18279 2008-02-04 Jason Rumney <jasonr@gnu.org>
18280
18281 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18282 set full_name.
18283 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18284
18285 2008-02-03 Jason Rumney <jasonr@gnu.org>
18286
18287 * makefile.w32-in (OBJ1): Include font.o here.
18288 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18289
18290 2008-02-02 Jason Rumney <jasonr@gnu.org>
18291
18292 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18293
18294 2008-02-01 Jason Rumney <jasonr@gnu.org>
18295
18296 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18297
18298 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18299
18300 2008-02-01 Andreas Schwab <schwab@suse.de>
18301
18302 * Makefile.in (shortlisp, lisp): Update for rename of
18303 ../lisp/language/myanmar.el.
18304
18305 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
18306
18307 * xfaces.c (get_lface_attributes): Delete function.
18308 (merge_named_face, lookup_named_face, lookup_derived_face)
18309 (realize_named_face): Call lface_from_face_name directly, and use
18310 the fact that merge_face_vectors does not alter its FROM argument.
18311
18312 2008-02-01 Jason Rumney <jasonr@gnu.org>
18313
18314 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18315 input in the default locale. Handle non-Unicode multibyte input.
18316
18317 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18318
18319 * fontset.c (reorder_font_vector): Exclude nil elements from the
18320 font group. Don't try multiple fonts.
18321 (fontset_font): Adjust for the above change.
18322 (Finternal_char_font): Return nil if the found font doesn't
18323 contain the character ch.
18324
18325 * Makefile.in (lisp, shortlisp): Add cham.el.
18326
18327 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18328
18329 * font.h (FONTP): Make it return 1 also for a font-object.
18330
18331 * .gdbinit (xfontset): New function.
18332
18333 * font.c (font_find_for_lface): Check if the character C is
18334 supported or not only for the first font.
18335
18336 * fontset.c (reorder_font_vector): Fix typo.
18337 (fontset_find_font): Don't add a font-spec specifying a script.
18338 Use 0 (not Qt) for the indication of empty font-group. Change the
18339 format of RFONT-DEF. Return Qt if no font in the font-group
18340 support the character.
18341 (fontset_font): Adjust for the above change. If no font was
18342 found the character, remember that.
18343 (face_for_char): Adjust for the change of RFONT-DEF.
18344 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18345 no font for the target.
18346 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18347
18348 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18349
18350 * font.c (font_load_for_face): Handle the case that the font in
18351 face->lface is a string.
18352
18353 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18354
18355 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18356
18357 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18358
18359 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18360 Fix previous change. If the frame is not on a window system,
18361 signal an error.
18362
18363 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18364
18365 * coding.c (decode_coding_object, encode_coding_object): Adjust
18366 marker positions after conversion.
18367
18368 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18369
18370 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18371
18372 * font.c (font_find_for_lface): Fix the handling of the return
18373 value of font_has_char.
18374 (Ffont_shape_text): Fix previous change.
18375
18376 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18377 (fontset_ref_and_range): Delete it.
18378 (fontset_find_font): Call char_table_ref_and_range instead of
18379 FONTSET_REF_AND_RANGE.
18380 (make_fontset): Don't setup font groups of Latin here.
18381 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18382 (new_fontset_from_font): Make the specified font the default for
18383 all Latin characters.
18384
18385 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18386
18387 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18388 is on a window system before accessing the fontset of the frame.
18389
18390 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18391
18392 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18393
18394 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18395 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18396
18397 * font.c (Ffont_shape_text): If the font driver doesn't have a
18398 shaper function, make zero-width glyphs to have at least one-pixel
18399 width. Fix setting of `to' field of glyphs.
18400
18401 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18402
18403 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18404 glyphs.
18405
18406 * font.h (struct font_driver): Improve docstring of member `shape'.
18407
18408 2008-02-01 Kenichi Handa <handa@m17n.org>
18409
18410 * composite.c (syms_of_composite): Fix docstring of
18411 auto-composition-function.
18412
18413 * font.h (LGLYPH_SIZE): New macro.
18414
18415 * font.c (Ffont_fill_gstring): Stop filling when a character not
18416 supported by the font is found.
18417 (Ffont_shape_text): When a shape callback function returns nil,
18418 try at most two more times with larger gstring.
18419 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18420
18421 * xdisp.c (handle_auto_composed_prop): Change the argument to
18422 auto-composition-function.
18423
18424 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18425 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18426 Lispy glyph and store it in the lgstring.
18427
18428 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18429
18430 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18431
18432 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18433
18434 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18435
18436 * fontset.c (Vfont_encoding_charset_alist): New variable.
18437 (syms_of_fontset): DEFVAR it.
18438 (reorder_font_vector, fontset_find_font): Optimize for the case of
18439 no need of reordering.
18440 (face_for_char): Map the charset property by
18441 Vfont_encoding_charset_alist.
18442
18443 2008-02-01 Jason Rumney <jasonr@gnu.org>
18444
18445 * w32font.c (logfonts_match): Don't check adstyle here.
18446 (font_matches_spec): Check here against physical font instead.
18447 (add_font_entity_to_list): Avoid some substitutions.
18448
18449 * font.c (font_parse_fcname): Default weight and slant to normal.
18450 (font_score): Prefer normal fonts if weight or slant unspecified.
18451 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18452 match freetype scores.
18453
18454 2008-02-01 Jason Rumney <jasonr@gnu.org>
18455
18456 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18457 font, as it may have been deleted.
18458 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18459 most common hyphenless variation.
18460 (logfonts_match): Check generic family.
18461 (font_matches_spec): Don't check generic family here.
18462 (fill_in_logfont): Set generic family based on adstyle.
18463
18464 * w32font.h (w32font_get_cache): Update declaration.
18465
18466 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18467
18468 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18469
18470 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18471 If none of the new drivers are available, call font_update_drivers
18472 with the old drivers.
18473
18474 * w32font.c (w32font_get_cache): Adjust the argument type.
18475
18476 * xfont.c (xfont_get_cache): Adjust the argument type.
18477
18478 * font.h (struct font_driver): Change argument type of get_cache.
18479
18480 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18481
18482 * font.c (Ffont_get): Fix arguments to Fassoc.
18483 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18484 (font_clear_cache): New function.
18485 (font_list_entities, font_matching_entity): Use font_get_cache.
18486 (font_update_drivers): Call font_clear_cache when finishing a driver.
18487
18488 * fontset.c (fontset_find_font): Fix previous change.
18489
18490 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18491
18492 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18493 dpyinfo->font_table.
18494 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18495 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18496
18497 * font.c (font_at): Handle the case that the arg C is negative.
18498 Handle the unibyte case.
18499 (Ffont_at): Call font_at with the arg C -1.
18500
18501 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18502 the position here, and call font_at with the arg C -1.
18503 Don't check the range of the existing composition at the point.
18504
18505 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18506
18507 * fontset.c (fontset_add): New args charset_id and family.
18508 Change caller.
18509 (load_font_get_repertory, fontset_find_font): Assume that
18510 font_spec is always a font-spec object.
18511 (Fset_fontset_font): Always store a font-spec object in a fontset.
18512
18513 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18514 instead of get_property_and_range.
18515
18516 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18517
18518 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18519 (xftfont_open): Don't keep locking face.
18520 (xftfont_close): Don't unlock face.
18521 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18522
18523 * fontset.c (fontset_find_font): Don't prefer a font of
18524 supplementary charset.
18525
18526 2008-02-01 Kenichi Handa <handa@m17n.org>
18527
18528 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18529 script, langsys_tag to langsys, new member script.
18530 (OTF_TAG_STR): Terminate by '\0'.
18531 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
18532 listing to the script specified in that property. Fix arg to
18533 OTF_check_features.
18534
18535 2008-02-01 Jason Rumney <jasonr@gnu.org>
18536
18537 * w32font.h: New file.
18538
18539 * w32font.c: Include it.
18540 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18541 (w32font_open): Set owning_frame.
18542 (w32font_text_extents): Use owning_frame.
18543 (struct font_callback_data): Add opentype_only field.
18544 (add_font_entity_to_list): Use it to filter fonts.
18545 Don't check against full name.
18546 (w32font_list_internal): New function.
18547 (w32font_list): Use it.
18548 (w32font_match_internal): New function.
18549 (w32font_match): Use it.
18550 (w32font_open_internal): New function.
18551 (w32font_open): Use it.
18552 (w32font_get_cache, w32font_close, w32font_has_char)
18553 (w32font_encode_char, w32font_text_extents, w32font_draw):
18554 Make non-static.
18555
18556 * makefile.w32-in (w32font.o): Depend on w32font.h.
18557
18558 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18559
18560 * charset.c (Fdefine_charset_internal): Record a supplementary
18561 charset at the tail of Vcharset_order_list.
18562
18563 * font.c (Ffont_shape_text): Fix the return value.
18564
18565 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18566
18567 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18568
18569 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18570
18571 * ftfont.c (struct OpenTypeSpec): New struct.
18572 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18573 (ftfont_get_open_type_spec): New function.
18574 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18575
18576 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18577
18578 2008-02-01 Jason Rumney <jasonr@gnu.org>
18579
18580 * w32font.c (add_font_entity_to_list): Compare only the beginning
18581 of full name.
18582
18583 2008-02-01 Kenichi Handa <handa@m17n.org>
18584
18585 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18586 Never return HANDLED_RECOMPUTE_PROPS.
18587
18588 2008-02-01 Kenichi Handa <handa@m17n.org>
18589
18590 * font.c (font_gstring_produce): Delete it.
18591
18592 * composite.h (COMPOSITION_METHOD):
18593 Handle COMPOSITION_WITH_GLYPH_STRING.
18594
18595 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18596
18597 * xfont.c (Qx): Delete.
18598 (syms_of_xfont): Don't initialize Qx.
18599
18600 * composite.h (enum composition_method):
18601 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18602
18603 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18604
18605 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18606 (choose_face_font): Accept new form of font-spec.
18607
18608 * frame.h (font_driver_list): Declare it unconditionally.
18609 (struct frame): Define members font_driver_list and font_data_list
18610 unconditionally.
18611
18612 * fontset.c: Include "font.h" unconditionally.
18613 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18614 (Fset_fontset_font): Accept a font-spec object.
18615
18616 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18617 PIXEL_SIZE part a wild card.
18618
18619 * dispextern.h (struct glyph_string): Define members clip and
18620 num_clips unconditionally.
18621 (struct face): Define members font_info and extra unconditionally.
18622
18623 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18624 ftfont_info only when HAVE_LIBOTF is defined.
18625
18626 2008-02-01 Andreas Schwab <schwab@suse.de>
18627
18628 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18629 and end.
18630
18631 2008-02-01 Jason Rumney <jasonr@gnu.org>
18632
18633 * w32font.c (w32font_driver): Add new fields.
18634
18635 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18636
18637 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18638 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18639 (LIBES): Add @M17N_FLT_CFLAGS@.
18640
18641 * composite.c (compose_text): Don't treat the new style
18642 composition specially.
18643
18644 * emacs.c (main): Call syms_of_font unconditionally.
18645
18646 * font.h (FONT_ENTITY_NOT_LOADABLE)
18647 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18648 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18649 (struct font_driver): New member shape.
18650 (font_registry_charsets): Extern it.
18651 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18652 (font_otf_capability, font_drive_otf): Delete their externs.
18653
18654 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18655 (font_charset_alist, font_registry_charsets): Move from xfont.c
18656 and rename.
18657 (font_prop_validate_otf): New function.
18658 (font_property_table): Register it for QCotf.
18659 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18660 (font_drive_otf): Delete.
18661 (font_prepare_composition): New arg F. Adjust for the change of
18662 lispy gstring.
18663 (font_find_for_lface): New arg C.
18664 (font_load_for_face): Adjust for the change of font_find_for_lface.
18665 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18666 lispy gstring.
18667 (Ffont_shape_text): New function.
18668 (Fopen_font): If the font size is not given, use 12-pixel.
18669 (Ffont_at): New arg STRING.
18670 (syms_of_font): Initalize font_charset_alist.
18671 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18672 conditionally.
18673
18674 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18675 fonts of the same font-spec. Change the format of RFONT-DEF.
18676 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18677 Adjust for the change of RFONT-DEF.
18678 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18679
18680 * ftfont.h: New file.
18681
18682 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18683 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18684 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18685 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18686 font_otf_capability and font_drive_otf, set ftfont_shape.
18687 (ftfont_list): Adjust for the change of :otf property value.
18688 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18689 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18690 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18691 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18692 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18693 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18694
18695 * w32term.c (x_draw_composite_glyph_string_foreground):
18696 Adjust for the change of lispy gstring.
18697
18698 * xdisp.c (handle_composition_prop): Adjust for the change of
18699 lispy gstring. Call a function for auto-composition with the
18700 third arg it->window.
18701 (fill_composite_glyph_string): Adjust for the change of lispy string.
18702 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18703
18704 * xfaces.c (set_font_frame_param): Adjust for the change of
18705 font_find_for_lface.
18706
18707 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18708 (xfont_registry_charsets): Likewise. Change caller.
18709 (syms_of_xfont): Don't handle x_font_charset_alist.
18710
18711 * xftfont.c: Include "ftfont.h".
18712 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18713 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18714 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18715 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18716 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18717 Set xftfont_driver.shape to xftfont_shape.
18718
18719 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18720 the change of lispy gstring.
18721
18722 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18723
18724 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18725
18726 2008-02-01 Jason Rumney <jasonr@gnu.org>
18727
18728 * w32font.c (w32font_draw): Fill background manually.
18729
18730 2008-02-01 Jason Rumney <jasonr@gnu.org>
18731
18732 * font.c (Qfontp): Remove unused symbol.
18733 (QCantialias): New symbol.
18734 (syms_of_font): Define it.
18735 (font_property_table): Set a validator for QCantialias.
18736
18737 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18738 Define if not already.
18739 (QCfamily): Share with xfaces.c.
18740 (Qstandard, Qsubpixel, Qnatural): New symbols.
18741 (syms_of_w32font): Define them. Don't define QCfamily here.
18742 (w32_antialias_type, lispy_antialias_type): New functions.
18743 (w32_enumfont_pattern_entity): New arg requested_font.
18744 Set antialias parameter if non-default was requested.
18745 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18746
18747 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18748
18749 * lread.c (read1): Undo the previous change.
18750
18751 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18752
18753 * frame.c (Fdelete_frame): Call font_update_drivers only when
18754 USE_FONT_BACKEND is defined.
18755
18756 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18757
18758 * font.h (struct font_bitmap): New member bits_per_pixel.
18759 (struct font_driver): New members start_for_frame and end_for_frame.
18760 (struct font_data_list): New struct.
18761 (font_put_frame_data, font_get_frame_data): Extern them.
18762
18763 * frame.h (struct frame): New member font_data_list.
18764
18765 * font.c (font_update_drivers): Call driver->start_for_frame and
18766 driver->end_for_frame at proper timings.
18767 (font_put_frame_data, font_get_frame_data): New functions.
18768 (Ffont_spec): Add usage in the docstring.
18769
18770 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18771 (Fdelete_frame): Call font_update_drivers.
18772
18773 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18774 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18775 (xftfont_get_xft_draw): New function.
18776 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18777 (xftfont_end_for_frame): New function.
18778 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18779
18780 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18781 Change argument. Cache GCs in the per-frame data.
18782 (struct ftxfont_frame_data): New struct.
18783 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18784 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18785 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18786 (ftxfont_end_for_frame): New function.
18787 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18788
18789 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18790
18791 2008-02-01 Kenichi Handa <handa@m17n.org>
18792
18793 * xselect.c (Vselection_coding_system)
18794 (Vnext_selection_coding_system): Delete them.
18795 (syms_of_xselect): Don't declare selection-coding-system and
18796 next-selection-coding-system. They are declared in select.el.
18797
18798 2008-02-01 Jason Rumney <jasonr@gnu.org>
18799
18800 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18801
18802 * w32fns.c: Include imm.h.
18803 (get_composition_string_fn, get_ime_context_fn): New optional
18804 system functions.
18805 (globals_of_w32fns): Load them from imm32.dll.
18806 (ignore_ime_char): New flag.
18807 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18808 WM_IME_ENDCOMPOSITION messages.
18809
18810 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18811 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18812
18813 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18814
18815 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18816 (READCHAR_REPORT_MULTIBYTE): New macro.
18817 (readchar): New 2nd arg MULTIBYTE.
18818 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18819 Make symbol's name multibyte according to the multibyteness of the
18820 source.
18821
18822 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18823
18824 * xfaces.c (face_for_overlay_string): Call lookup_face with
18825 correct arguments (fix of synching with the trunk).
18826
18827 2008-02-01 Kenichi Handa <handa@m17n.org>
18828
18829 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18830 (font_prop_validate_non_neg, font_prop_validate_spacing):
18831 Delete argument prop_index.
18832 (font_property_table): Change arguments to validater. Change Callers.
18833 (font_lispy_object): Delete.
18834 (font_at): Use font_find_object instead fo font_lispy_object.
18835
18836 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18837
18838 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18839 and file names.
18840
18841 2008-02-01 Jason Rumney <jasonr@gnu.org>
18842
18843 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18844 (font_matches_spec): Remove debug output.
18845 (add_font_entity_to_list): Avoid using substituted fonts.
18846
18847 2008-02-01 Jason Rumney <jasonr@gnu.org>
18848
18849 * doc.c (Fsnarf_documentation):
18850 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18851
18852 2008-02-01 Miles Bader <miles@gnu.org>
18853
18854 * dispextern.h (struct glyph_row): Only define "clip" field if
18855 HAVE_WINDOW_SYSTEM is defined.
18856
18857 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18858
18859 Fix up multi-tty merge.
18860
18861 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18862 and indentation.
18863
18864 * xfaces.c (free_realized_face, clear_face_gcs):
18865 Include font_done_for_face in the input_blocked section, just in case.
18866
18867 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18868 (get_char_face_and_encoding): Undo last change and remove the *other*
18869 duplicate definition (i.e. keep the one that's better scoped and that
18870 includes code for the font-backend).
18871
18872 * terminal.c (create_terminal): Default keyboard_coding to
18873 `no-conversion' and terminal_coding to `undecided'.
18874
18875 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18876
18877 * fontset.c (free_realized_fontsets): Check that the table entry does
18878 contain a fontset before trying to compare it to `base'.
18879
18880 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18881 syms_of_charset, and syms_of_coding earlier because init_window_once
18882 now needs Vcoding_system_hash_table to be setup.
18883
18884 * coding.h (default_buffer_file_coding): Remove.
18885
18886 * coding.c (default_buffer_file_coding): Remove.
18887 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18888 than ->symbol, and use the terminal-local coding system.
18889 (syms_of_coding): Don't setup the coding-systems that are not
18890 terminal-local.
18891 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18892
18893 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18894 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18895
18896 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18897 in chartab.c and were re-added here by mistake.
18898 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18899
18900 * doc.c (Fsnarf_documentation):
18901 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18902 src to etc.
18903
18904 * ChangeLog.10: Add mistakenly removed entry.
18905
18906 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18907
18908 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18909
18910 2008-02-01 Miles Bader <miles@gnu.org>
18911
18912 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18913 Add extra args to FACE_FOR_CHAR.
18914
18915 2008-02-01 Kenichi Handa <handa@m17n.org>
18916
18917 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18918 in sequence.
18919
18920 * chartab.c (map_sub_char_table, map_char_table): If the range
18921 contains just one character, call the function with that character
18922 even if the depth is not 3.
18923
18924 2008-02-01 Jason Rumney <jasonr@gnu.org>
18925
18926 * w32font.c (w32font_text_extents): Calculate metrics for the
18927 whole string.
18928
18929 2008-02-01 Jason Rumney <jasonr@gnu.org>
18930
18931 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18932
18933 2008-02-01 Jason Rumney <jasonr@gnu.org>
18934
18935 * w32term.c (x_set_glyph_string_clipping): Use
18936 get_glyph_string_clip_rects.
18937 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18938 Adjust for the change of struct glyph_string.
18939
18940 * w32font.c (w32font_draw): Do clipping here.
18941
18942 2008-02-01 Kenichi Handa <handa@m17n.org>
18943
18944 * xftfont.c (xftfont_draw): Adjust for the change of struct
18945 glyph_string.
18946
18947 * xterm.c (x_set_glyph_string_clipping): Use
18948 get_glyph_string_clip_rects.
18949 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18950 Adjust for the change of struct glyph_string.
18951
18952 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18953 the resulting clip(s}.
18954 (expose_overlaps): Add arg r. Change callers. Set it to
18955 row->clip temporarily.
18956 (expose_window): Redraw rows overlapping the exposed area.
18957
18958 * dispextern.h (struct glyph_row): New member clip.
18959 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18960 clip_height, new member clip, and num_clips.
18961
18962 2008-02-01 Kenichi Handa <handa@m17n.org>
18963
18964 * data.c (Fchar_or_string_p): Fix docstring.
18965
18966 2008-02-01 Kenichi Handa <handa@m17n.org>
18967
18968 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18969 create a temporary XftDraw object.
18970
18971 2008-02-01 Kenichi Handa <handa@m17n.org>
18972
18973 * font.c (Ffontp): Fix docstring.
18974
18975 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18976 strong evidence of ISO-2022.
18977
18978 2008-02-01 Kenichi Handa <handa@m17n.org>
18979
18980 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18981 SYNTAX_ENTRY_FOLLOW_PARENT.
18982
18983 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18984
18985 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18986 its type.
18987 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18988 Update to the new type of weak_hash_tables and next_weak.
18989
18990 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18991 a plain C pointer to Lisp_Hash_Table.
18992
18993 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18994 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18995 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18996 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18997 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18998 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18999 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19000 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19001 (GC_EQ): Remove since they've been identical to their non-GC_
19002 alter-egos ever since the markbit was eradicated.
19003
19004 * alloc.c:
19005 * buffer.c:
19006 * buffer.h:
19007 * data.c:
19008 * fileio.c:
19009 * filelock.c:
19010 * fns.c:
19011 * frame.h:
19012 * lisp.h:
19013 * macterm.c:
19014 * print.c:
19015 * process.c:
19016 * w32fns.c:
19017 * w32menu.c:
19018 * w32term.c:
19019 * xfns.c:
19020 * xmenu.c:
19021 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19022
19023 2008-02-01 Kenichi Handa <handa@m17n.org>
19024
19025 * chartab.c (map_sub_char_table): Make it work for the top-level
19026 char-table. Fix handling of parent char-table.
19027 (map_char_table): Adjust for the above change.
19028
19029 2008-02-01 Jason Rumney <jasonr@gnu.org>
19030
19031 * w32font.c (Qgdi): Rename from Qw32.
19032
19033 2008-02-01 Jason Rumney <jasonr@gnu.org>
19034
19035 * w32bdf.c (get_quoted_string): Make function static.
19036
19037 2008-02-01 Kenichi Handa <handa@m17n.org>
19038
19039 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19040 bigger ascent and descent than those of the font, use them as
19041 font's ascent and descent.
19042
19043 2008-02-01 Kenichi Handa <handa@m17n.org>
19044
19045 * Makefile.in (${lispsource}international/charprop.el): Move this
19046 target within "#ifdef HAVE_UNIDATA" and "#endif".
19047
19048 2008-02-01 Kenichi Handa <handa@m17n.org>
19049
19050 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19051 (shortlisp): Add ../lisp/language/tai-viet.el.
19052
19053 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
19054
19055 * Makefile.in (${lispsource}international/charprop.el): Depend on
19056 temacs${EXEEXT}.
19057
19058 2008-02-01 Jason Rumney <jasonr@gnu.org>
19059
19060 * w32font.c (w32font_close): Delete the GDI font object.
19061
19062 * w32menu.c: Include character.h.
19063
19064 * w32proc.c: Likewise.
19065
19066 * w32select.c: Likewise.
19067
19068 * makefile.w32-in (w32proc.o): Depend on character.h.
19069
19070 2008-02-01 Jason Rumney <jasonr@gnu.org>
19071
19072 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19073
19074 * w32menu.c (syms_of_w32menu): Likewise.
19075
19076 * w32proc.c (syms_of_ntproc): Likewise.
19077
19078 * w32select.c (syms_of_w32select): Likewise.
19079
19080 * w32term.c (syms_of_w32term): Likewise.
19081
19082 2008-02-01 Jason Rumney <jasonr@gnu.org>
19083
19084 * w32font.c (w32font_draw): Delete brush after using it.
19085
19086 2008-02-01 Jason Rumney <jasonr@gnu.org>
19087
19088 * w32font.c (w32font_open): Don't set font_idx.
19089 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19090 to font settings.
19091 (w32font_draw): Fill background explicitly.
19092
19093 2008-02-01 Jason Rumney <jasonr@gnu.org>
19094
19095 * w32term.c (w32_initialize): Don't call w32font_initialize.
19096
19097 * w32font.c (w32font_info): Remove subranges.
19098 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19099 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19100 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19101 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19102 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19103 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19104 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19105 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19106 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19107 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19108 New symbols.
19109 (font_callback_data): New struct.
19110 (w32font_list, w32font_match): Use it.
19111 (w32font_open): Don't populate subranges.
19112 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19113 (w32font_encode_char): Always return unicode code-point as-is.
19114 (w32font_text_extents): Supply a transformation matrix to
19115 GetGlyphOutline. Never look up by glyph index. Avoid looping
19116 twice. Use unicode version of GetTexExtentPoint32 instead of
19117 glyph index version.
19118 (set_fonts_frame): Remove.
19119 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19120 set frame parameter. Use backward compatible fake foundries.
19121 Save generic family in extra slot under QCfamily. Make width slot
19122 constant. Save QCspacing value. Save list of scripts instead of
19123 binary subranges.
19124 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19125 (add_font_entity_to_list): Use font_callback_data struct. Filter
19126 unwanted fonts.
19127 (add_one_font_entity_to_list): Use font_callback_data struct.
19128 (w32_registry): Default to iso10646_1.
19129 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19130 string font registries. Don't fill in font name if it is a generic
19131 family name, fill family instead. Use spacing, family and script
19132 extra info to fill pitch, family and charset fields.
19133 (list_all_matching_fonts): Use font_callback_data struct.
19134 (unicode_range_for_char): Remove.
19135 (font_supported_scripts): New function.
19136 (w32font_initialize): Remove.
19137 (syms_of_w32font): Update which symbols are defined.
19138
19139 2008-02-01 Jason Rumney <jasonr@gnu.org>
19140
19141 * font.c (font_pixel_size): Reverse assq_no_quit args.
19142
19143 * w32term.h (FONT_WIDTH): Report max width, not average.
19144 (FONT_MAX_WIDTH): Remove.
19145 (FONT_AVG_WIDTH): New macro.
19146
19147 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19148 redefinition of FONT_WIDTH.
19149
19150 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19151 (w32_cache_char_metrics): Use FONT_WIDTH.
19152
19153 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19154
19155 2008-02-01 Jason Rumney <jasonr@gnu.org>
19156
19157 * w32font.c (w32font_open): Make lfHeight negative.
19158
19159 * w32fns.c (x_default_font_parameter): Use new style font name.
19160 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19161
19162 2008-02-01 Jason Rumney <jasonr@gnu.org>
19163
19164 * w32font.c (QCsubranges): New symbol.
19165 (w32font_open, w32font_has_char): Get subranges from subproperty
19166 of extra.
19167 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19168 (syms_of_w32font): Define :subranges symbol.
19169
19170 * font.c (font_put_extra): Expose externally.
19171
19172 * font.h (font_put_extra): Move declaration from font.c.
19173
19174 * font.c (Ffont_get): Use font driver to determine otf capability.
19175 (adjust_anchor): Check if driver defines anchor_point before using.
19176
19177 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19178 (w32font_draw): Use options.
19179 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19180 Fix detection of truetype fonts.
19181 (registry_to_w32_charset): Handle charsets other than iso8859-1
19182 expressed as lisp symbols.
19183 (w32_registry): Express charset as lisp symbol.
19184 (fill_in_logfont): Reverse pixel and point height logic.
19185 Don't set width here. Set quality to default.
19186
19187 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19188 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19189
19190 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19191 Remove redundant loop and allocation.
19192
19193 * makefile.w32-in (font.o, w32font.o): New objects.
19194 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19195 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19196
19197 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19198 STORE_XCHARB a valid l-value.
19199
19200 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19201 calculations for non-Truetype fonts.
19202 (x_draw_glyph_string): Sync with xterm.c.
19203 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19204 Remove redundant code.
19205 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19206
19207 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19208 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19209
19210 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19211 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19212
19213 * w32font.c: New file for w32 font backend.
19214
19215 2008-02-01 Kenichi Handa <handa@m17n.org>
19216
19217 * term.c: Don't include "buffer.h" twice.
19218
19219 2008-02-01 Kenichi Handa <handa@m17n.org>
19220
19221 * character.c (Funibyte_string): New function.
19222 (syms_of_character): Defsubr it.
19223
19224 2008-02-01 Jason Rumney <jasonr@gnu.org>
19225
19226 * w32term.c [USE_FONT_BACKEND]:
19227 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19228 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19229 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19230 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19231 (x_free_frame_resources): Sync with xterm.c.
19232
19233 2008-02-01 Andreas Schwab <schwab@suse.de>
19234
19235 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19236 char-table size.
19237
19238 2008-02-01 Kenichi Handa <handa@m17n.org>
19239
19240 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19241
19242 2008-02-01 Kenichi Handa <handa@m17n.org>
19243
19244 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19245 font_otf_gpos, add font_drive_otf.
19246
19247 * fontset.c (fontset_find_font): Pay attention to font size
19248 specified for a font.
19249 (reorder_font_vector): Check contents of font_def.
19250
19251 * font.c (struct otf_list): Delete it.
19252 (otf_list): Make it a lisp variable.
19253 (otf_open): Use lispy otf_list.
19254 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19255 (check_otf_features): New function.
19256 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19257 New functions.
19258 (font_drive_otf): New function merging font_otf_gsub and
19259 font_otf_gpos.
19260 (font_open_for_lface): New arg spec. Change argument order.
19261 (font_load_for_face): Adjust for the change of font_open_for_lface.
19262 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19263 Ffont_otf_gpos.
19264 (syms_of_font): Staticpro otf_list. Delete defsubr of
19265 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19266
19267 * xfaces.c (set_font_frame_param): Adjust for the change of
19268 font_open_for_lface.
19269
19270 * font.h (font_open_for_lface): Adjust prototype.
19271 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19272 member otf_drive.
19273 (font_otf_gsub, font_otf_gpos): Delete externs.
19274 (font_drive_otf): Extern it.
19275
19276 2008-02-01 Kenichi Handa <handa@m17n.org>
19277
19278 * font.c (font_at): If the window W is not on a window system,
19279 return Qnil.
19280
19281 * coding.c (produce_chars, encode_coding): Don't call
19282 insert_from_gap if no characters to produce.
19283
19284 2008-02-01 Kenichi Handa <handa@m17n.org>
19285
19286 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19287 Fclear_face_cache.
19288
19289 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19290
19291 2008-02-01 Miles Bader <miles@gnu.org>
19292
19293 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19294 Parse "--disable-font-backend" option.
19295 (standard_args): Add "--disable-font-backend" option.
19296
19297 2008-02-01 Kenichi Handa <handa@m17n.org>
19298
19299 * fontset.c (fontset_find_font): New function.
19300 (fontset_font): Use fontset_find_font.
19301 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19302 Register the specified font for all Latin characters.
19303 (new_fontset_from_font): Register the specified font for all Latin
19304 characters.
19305 (dump_fontset): For a realized fontset, include the base fontset
19306 name in the returned vector.
19307
19308 2008-02-01 Kenichi Handa <handa@m17n.org>
19309
19310 * character.h (CHAR_STRING): Cast C to unsigned on calling
19311 char_string.
19312
19313 * character.c (char_string): Type of arg C changed to unsigned.
19314 Signal an error if C is an invalid character code.
19315
19316 * editfns.c (general_insert_function, Fchar_to_string):
19317 Use CHARACTERP, not INTEGERP.
19318
19319 2008-02-01 Kenichi Handa <handa@m17n.org>
19320
19321 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19322 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19323
19324 * regex.c (analyse_first): Fix for multibyte characters in "case
19325 charset:" and "case categoryspec:".
19326
19327 2008-02-01 Andreas Schwab <schwab@suse.de>
19328
19329 * Makefile.in (LIBES): Move standard libraries to the end.
19330
19331 2008-02-01 Kenichi Handa <handa@m17n.org>
19332
19333 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19334 nonzero, don't shrink the buffer nextb.
19335
19336 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19337
19338 * coding.c (coding_alloc_by_making_gap): New arg offset.
19339 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19340 offset.
19341 (decode_coding_iso_2022): Update coding->safe_charsets.
19342 (decode_coding_gap): Temporarily set
19343 current_buffer->text->inhibit_shrinking to 1.
19344
19345 2008-02-01 Kenichi Handa <handa@m17n.org>
19346
19347 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19348 indexing into elements of s->cmp and s->char2b.
19349
19350 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
19351
19352 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19353
19354 2008-02-01 Kenichi Handa <handa@m17n.org>
19355
19356 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19357 target_multibyte instead of multibyte.
19358 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19359 (bcmp_translate): Change the argument name from multibyte to
19360 target_multibyte.
19361
19362 2008-02-01 Kenichi Handa <handa@m17n.org>
19363
19364 These changes are to compile a regexp into a pattern that can be
19365 used both for multibyte and unibyte targets.
19366
19367 * Makefile.in (search.o): Depend on charset.h.
19368
19369 * character.c (multibyte_char_to_unibyte_safe): New function.
19370
19371 * search.c: Include "charset.h".
19372 (compile_pattern_1): Delete argument multibyte. Don't set
19373 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19374 (compile_pattern): Don't compare cp->buf.target_multibyte.
19375 Compare cp->buf.charset_unibyte.
19376 (compile_pattern): Set cp->buf.target_multibyte.
19377
19378 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19379
19380 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19381
19382 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19383 multibyte. Change callers.
19384 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19385 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19386 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19387 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19388 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19389 (regex_compile): Make the compiled pattern usable both for
19390 multibyte and unibyte targets.
19391 (analyse_first): Make the fastmap usable both for multibyte and
19392 unibyte targets.
19393 (TRANSLATE_VIA_MULTIBYTE): Delete.
19394 (re_match_2_internal): Pay attention to the case that the
19395 multibyteness of bufp and target may be different.
19396
19397 2008-02-01 Kenichi Handa <handa@m17n.org>
19398
19399 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19400 empty box occupy at least one column width.
19401
19402 2008-02-01 Miles Bader <miles@gnu.org>
19403
19404 * Makefile.in: Remove redundant HAVE_XFT clause.
19405
19406 2008-02-01 Kenichi Handa <handa@m17n.org>
19407
19408 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19409
19410 2008-02-01 Kenichi Handa <handa@m17n.org>
19411
19412 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19413 being nil.
19414
19415 2008-02-01 Kenichi Handa <handa@m17n.org>
19416
19417 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19418
19419 2008-02-01 Kenichi Handa <handa@m17n.org>
19420
19421 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19422
19423 2008-02-01 Kenichi Handa <handa@m17n.org>
19424
19425 * search.c (simple_search): Fix previous change.
19426
19427 2008-02-01 Kenichi Handa <handa@m17n.org>
19428
19429 * xftfont.c (ftfont_font_format): Extern declaration.
19430
19431 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19432
19433 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19434 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19435
19436 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19437 (ftfont_font_format): Fix previous change.
19438
19439 * font.h (Ffont_xlfd_name): EXFUN it.
19440
19441 * font.c (font_parse_xlfd): Fix the array size of `f'.
19442 (register_font_driver): Use EQ to compare driver->type.
19443
19444 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19445 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19446 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19447
19448 2008-02-01 Kenichi Handa <handa@m17n.org>
19449
19450 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19451 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19452
19453 2008-02-01 Kenichi Handa <handa@m17n.org>
19454
19455 * xfont.c (xfont_open): Set font->format.
19456
19457 * xftfont.c (xftfont_open): Set font->format.
19458
19459 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19460 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19461 (ftfont_open): Set font->format.
19462 (ftfont_font_format): New function.
19463
19464 * font.h (struct font): New member format.
19465
19466 * font.c (Qopentype): New variable.
19467 (syms_of_font): Defsym it.
19468 (Fquery_font): Change the format of the last element of the return
19469 value.
19470
19471 2008-02-01 Kenichi Handa <handa@m17n.org>
19472
19473 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19474 last resort.
19475
19476 2008-02-01 Kenichi Handa <handa@m17n.org>
19477
19478 * coding.c (detect_coding_charset): Fix detection of multi-byte
19479 charset.
19480
19481 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19482
19483 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19484
19485 2008-02-01 Kenichi Handa <handa@m17n.org>
19486
19487 * xdisp.c (get_next_display_element): Set it->face_id for the
19488 first component of a composition.
19489 (x_produce_glyphs): Check if the font is changed or not for composition.
19490
19491 2008-02-01 Kenichi Handa <handa@m17n.org>
19492
19493 * fontset.c (Qlatin): New variable.
19494 (syms_of_fontset): Define it as a lisp symbol.
19495 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19496
19497 2008-02-01 Kenichi Handa <handa@m17n.org>
19498
19499 * font.c (font_unparse_fcname): Pay attention to the case that
19500 some of font property is a null string.
19501
19502 2008-02-01 Kenichi Handa <handa@m17n.org>
19503
19504 * term.c: Include "composite.h".
19505 (encode_terminal_code): Output all components of composition.
19506 Check the size of encode_terminal_src.
19507 (produce_glyphs): For composition, call produce_composite_glyph.
19508 (append_composite_glyph, produce_composite_glyph): New functions.
19509
19510 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19511 is not found, get font_info from the current ascii face.
19512
19513 2008-02-01 Kenichi Handa <handa@m17n.org>
19514
19515 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19516 buffer-file-name to Qnil before calling insert_from_buffer.
19517
19518 * font.c (font_unparse_fcname): Pay attention to the case that
19519 foundry is a null string.
19520
19521 2008-02-01 Kenichi Handa <handa@m17n.org>
19522
19523 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19524
19525 * font.c (Qunicode_sip): New variable.
19526 (syms_of_font): Declare it as a Lisp symbol.
19527
19528 * font.h (Qunicode_sip): Extern it.
19529
19530 2008-02-01 Kenichi Handa <handa@m17n.org>
19531
19532 * composite.c (get_composition_id): Pay attention to TAB component.
19533
19534 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19535 TAB. Adjust for the change of s->char2b which always points to
19536 the first element of allocated memory.
19537
19538 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19539
19540 * xdisp.c (handle_composition_prop): Set it->c to the first
19541 non-TAB component.
19542 (fill_composite_glyph_string): Change argument.
19543 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19544 (x_produce_glyphs): Fix handling of left/right padding.
19545
19546 2008-02-01 Kenichi Handa <handa@m17n.org>
19547
19548 * coding.c (detect_coding_system): Fix for handling off
19549 inhibit_iso_escape_detection. Fix for the case that no coding
19550 system is defined for a specific coding category.
19551
19552 2008-02-01 Kenichi Handa <handa@m17n.org>
19553
19554 * font.c (font_matching_entity): Delete unused local var.
19555
19556 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19557 opening a font.
19558
19559 * fileio.c (Finsert_file_contents): On recovering a file, assume
19560 Unix-like eol.
19561 (choose_write_coding_system): On auto-saving a file, force
19562 Unix-like eol.
19563
19564 * coding.c (setup_coding_system): Fix setting of
19565 coding->common_flags based on eol_type.
19566 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19567 inherit from it.
19568
19569 2008-02-01 Kenichi Handa <handa@m17n.org>
19570
19571 * alloc.c (NSTATICS): Increas to 0x600.
19572
19573 2008-02-01 Kenichi Handa <handa@m17n.org>
19574
19575 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19576 (ftfont_list): Don't check :name property.
19577 (ftfont_match): New function.
19578 (ftfont_pattern_entity): If the pattern doesn't contain
19579 FC_SPACING, don't assume FC_MONO.
19580
19581 * font.h (struct font_driver): New member `match'.
19582 (font_update_drivers): Adjust prototype.
19583
19584 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19585 property of FONT.
19586 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19587 them unconditionally.
19588 (font_matching_entity): New function.
19589 (font_open_by_name): Try font_matching_entity if exact match is
19590 not found.
19591 (font_update_drivers): Delete the arg FONT. Return a list of
19592 actually used backends. Don't free faces, font caches here.
19593 Don't store data in frame parameters. Don't call x_set_font.
19594 (Ffont_spec): Store :name property as is.
19595 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19596 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19597 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19598 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19599 Call font->driver->otf_gsub instead of font_otf_gsub.
19600
19601 * frame.c (x_set_font_backend): Do more works that were done in
19602 font_update_drivers before.
19603
19604 * xfont.c (xfont_match): New function.
19605 (xfont_driver): Set xfont_driver.match to xfont_match.
19606 (xfont_draw): Set font in GC if necessary.
19607
19608 * ftxfont.c (ftxfont_match): New function.
19609 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19610
19611 * xftfont.c (xftfont_match): New function.
19612 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19613
19614 2008-02-01 Kenichi Handa <handa@m17n.org>
19615
19616 * font.h (struct font): New member scalable.
19617 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19618 (font_otf_gsub): Adjust prototype.
19619
19620 * font.c (font_otf_capability): Fix handling of the default langsys.
19621 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19622 Check the contents of SPEC.
19623 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19624 (check_gstring): New function.
19625 (REPLACEMENT_CHARACTER): New macro.
19626 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19627 glyph codes of GSTRING.
19628 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19629 (font_prepare_composition): Set cmp->glyph_len.
19630 (font_open_entity): Set font->scalable.
19631 (Ffont_get): Handle :otf property.
19632 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19633 functions.
19634 (Fquery_font): Use font->font.full_name.
19635 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19636 Sfont_otf_alternates.
19637
19638 * ftfont.c (ftfont_open): Set font->font.full_name and
19639 font->font.name properly. Fix calculation of font->font.height
19640 and font->min_width.
19641
19642 * ftxfont.c (ftxfont_create_gcs): New function.
19643 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19644 (ftxfont_draw_backgrond): Fix filling region.
19645 (ftxfont_default_fid): New function.
19646 (ftxfont_open): Set xfont->fid to the return value of
19647 ftxfont_default_fid.
19648 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19649 (ftxfont_done_face): Free only GCs that are created by
19650 ftxfont_create_gcs.
19651 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19652
19653 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19654 Clip to src->width, etc (not src->clip_XXX).
19655
19656 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19657 FontBackend frame parameter.
19658
19659 2008-02-01 Kenichi Handa <handa@m17n.org>
19660
19661 * font.h (struct font_driver_list): New member `on'.
19662 (Fclear_font_cache): EXFUN it.
19663 (font_update_drivers): Extern it.
19664
19665 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19666 (font_list_entities): Check driver_list->on.
19667 (register_font_driver): Initalize `on' member to 0.
19668 (font_update_drivers): New function.
19669 (Fclear_font_cache): Check driver_list->on.
19670
19671 * frame.h (Qfont_backend): Extern it.
19672 (x_set_font_backend): Extern it.
19673
19674 * frame.c (Qfont_backend): New variable.
19675 (frame_parms): New element for font-backend.
19676 (x_set_font_backend): New function.
19677
19678 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19679 FontBackend frame parameter.
19680 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19681 x_set_font_backend.
19682
19683 * xfont.c (xfont_list): Don't try listing by :name property if the
19684 name is not for XLFD.
19685
19686 2008-02-01 Kenichi Handa <handa@m17n.org>
19687
19688 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19689 (LGLYPH_SET_TO): New macros.
19690 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19691 element of G is vector or not.
19692 (font_at): Extern it.
19693
19694 * font.c: Include window.h.
19695 (font_lispy_object): New function.
19696 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19697 end of valid glyph.
19698 (font_close_object): Fix getting (struct font *).
19699 (font_at): New function.
19700 (Ffont_get): If FONT is a font-object, get entity from it.
19701 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19702 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19703 range check.
19704 (Ffont_at): New function.
19705 (syms_of_font): Defsubr Sfont_at.
19706
19707 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19708 before the entry for Qcomposition.
19709 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19710 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19711 the font in gstring.
19712 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19713 LGLYPH_FORM (g) to detect the end of valid glyph.
19714 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19715 we are composing with gstring.
19716
19717 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19718 Check if adjustment is vector or not.
19719
19720 * Makefile.in (font.o): Make it depends on window.h.
19721
19722 2008-02-01 Kenichi Handa <handa@m17n.org>
19723
19724 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19725 adjustment is vector or not.
19726
19727 2008-02-01 Miles Bader <miles@gnu.org>
19728
19729 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19730
19731 2008-02-01 Kenichi Handa <handa@m17n.org>
19732
19733 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19734 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19735 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19736
19737 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19738 (DEVICE_DELTA): Fix typo.
19739 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19740 LGLYPH format.
19741
19742 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19743 the change of LGLYPH format.
19744
19745 2008-02-01 Kenichi Handa <handa@m17n.org>
19746
19747 * ftfont.c (ftfont_list): Fix typo.
19748 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19749
19750 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19751
19752 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19753
19754 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19755 xftface_info is non-NULL.
19756
19757 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19758
19759 * ftfont.c (ftfont_list): Move misplaced #endif.
19760
19761 2008-02-01 Kenichi Handa <handa@m17n.org>
19762
19763 * ftfont.c (ftfont_list): Pay attention to the case that
19764 FC_CAPABILITY is not defined.
19765
19766 2008-02-01 Kenichi Handa <handa@m17n.org>
19767
19768 * xftfont.c (xftfont_open): Set charset related members to -1.
19769
19770 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19771 QCname.
19772 (ftfont_open): Set charset related members to -1.
19773
19774 * fontset.c (Votf_script_alist): New variable.
19775 (syms_of_fontset): Initialize it.
19776 (fontset_font): Delete unused variable.
19777
19778 * fontset.h (Votf_script_alist): Extern it.
19779
19780 * font.c (font_find_for_lface): Optimize code.
19781
19782 * font.h (font_close_object, font_merge_old_spec): Extern them.
19783
19784 2008-02-01 Kenichi Handa <handa@m17n.org>
19785
19786 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19787 (syms_of_font): Initialize them.
19788 (font_pixel_size): Allow float value in dpi.
19789 (font_prop_validate_type): Delete.
19790 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19791 Change caller.
19792 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19793 (font_prop_validate_extra): Delete.
19794 (font_prop_validate_spacing): New function.
19795 (font_property_table): Add elements for all known properties.
19796 (get_font_prop_index): Rename from check_font_prop_name. New
19797 argument FROM. Change caller.
19798 (font_prop_validate): Validate all known properties.
19799 (font_put_extra): Delete argument force. Change caller.
19800 (font_expand_wildcards): Make it static. Fix the way of shrinking
19801 the possible range.
19802 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19803 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19804 Change caller.
19805 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19806 (font_parse_fcname): Delete argument merge. Fix parsing of point
19807 size. Don't validate properties values here. Change caller.
19808 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19809 (font_open_by_name): Delete unused variable.
19810 (Ffont_spec): Likewise. Validate property values.
19811 (Ffont_match_p): New function.
19812
19813 * font.h (QCscalable): Extern it.
19814 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19815
19816 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19817
19818 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19819 (xfont_list_pattern): New function.
19820 (xfont_list): Use xfont_list_pattern.
19821
19822 2008-02-01 Kenichi Handa <handa@m17n.org>
19823
19824 * font.h (Flist_fonts): EXFUN it.
19825
19826 2008-02-01 Jason Rumney <jasonr@gnu.org>
19827
19828 * w32term.c (w32_initialize): Add back smoothing_type and
19829 smoothing_enabled definitions.
19830
19831 2008-02-01 Kenichi Handa <handa@m17n.org>
19832
19833 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19834 s->face->font on determining underline position.
19835
19836 2008-02-01 Kenichi Handa <handa@m17n.org>
19837
19838 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19839 (font_has_char): Accept font-object too.
19840 (font_find_for_lface): Try at first with a size specified in face.
19841
19842 2008-02-01 Kenichi Handa <handa@m17n.org>
19843
19844 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19845 font_open_by_name.
19846
19847 2008-02-01 Kenichi Handa <handa@m17n.org>
19848
19849 * font.h (QCspacing, QCdpi): Extern them.
19850 (enum font_spacing): New enum.
19851 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19852
19853 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19854 (QCspacing, QCdpi): New variables.
19855 (syms_of_font): Initialize them.
19856 (font_pixel_size): New function.
19857 (font_put_extra): New function.
19858 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19859 in FONT_EXTRA.
19860 (font_parse_fcname): Handle enumerated values (e.g. bold).
19861 Fix handling font size. Add QCname property that contains only
19862 unknown properties.
19863 (font_score): Change argument. Change caller. Pay attention to
19864 FONT_PIXEL_SIZE_QUANTUM.
19865 (font_sort_entites, font_list_entities, font_find_for_lface)
19866 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19867 (Ffont_spec): Add QCname property that contains only unknown properties.
19868
19869 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19870 include weight in listing pattern, instead check weight of each
19871 listed font. Don't include scalable in pattern. Pay attention to
19872 FONT_PIXEL_SIZE_QUANTUM.
19873
19874 2008-02-01 Kenichi Handa <handa@m17n.org>
19875
19876 * font.c (font_parse_fcname): Fix parsing of point-size.
19877 (font_unparse_fcname): Produce symbolic names for style properties.
19878 (font_list_entities): Handle float size correctly.
19879 (font_open_by_name): Prefer `normal' property values if the name
19880 doesn't specify them.
19881
19882 * fontset.c (Finternal_char_font): Use font_get_name, not
19883 Ffont_xlfd_name.
19884
19885 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19886 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19887 pattern. Don't force scalable.
19888
19889 * xftfont.c (xftfont_open): For generating a name, start from
19890 96-byte buffer.
19891
19892 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19893
19894 * frame.h (x_new_fontset2): Fix prototype.
19895
19896 2008-02-01 Kenichi Handa <handa@m17n.org>
19897
19898 * font.h (struct font_driver): Delete member parse_name.
19899 (font_match_p, font_get_spec, font_parse_fcname)
19900 (font_unparse_fcname): Extern them.
19901 (font_get_name): Adjust prototype.
19902
19903 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19904 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19905 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19906 unnecessary checks for weight, slant, and swidth.
19907 (font_parse_fcname): New function.
19908 (font_unparse_fcname): New function.
19909 (font_parse_name): New function.
19910 (font_match_p): New function.
19911 (font_get_name): Change return value to Lisp string.
19912 (font_get_spec): New function.
19913 (Qunspecified, Qignore_defface): Don't extern them.
19914 (font_find_for_lface): Assume that LFACE is fully specified.
19915 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19916 object, use it for FACE.
19917 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19918 driver->parse_name.
19919 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19920
19921 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19922 prototype.
19923
19924 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19925 argument F. Don't call Fnew_fontset. Instead, directly call
19926 make_fontset.
19927
19928 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19929
19930 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19931 of x_new_fontset2.
19932
19933 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19934 (Qsans__serif): New variables.
19935 (ftfont_generic_family_list): New variable.
19936 (syms_of_ftfont): Initialize the above variables.
19937 (ftfont_pattern_entity): Delete argument NAME.
19938 (ftfont_list_generic_family): New function.
19939 (ftfont_parse_name): Delete this function.
19940 (ftfont_list): Try generic family only when FcFontList found no font.
19941 (ftfont_list_family): Fix args to FcObjectSetBuild.
19942
19943 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19944 object in attrs[LFACE_FONT_INDEX].
19945 (set_lface_from_font_name): Cancel all changes for font-backend.
19946 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19947 function.
19948 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19949 font object in QCfont attribute.
19950 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19951 (realize_default_face) [USE_FONT_BACKEND]: Call
19952 set_lface_from_font_and_fontset.
19953
19954 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19955 "fixed", and signal error here if no suitable font was found.
19956
19957 * xfont.c (xfont_parse_name): Delete this function.
19958
19959 * xftfont.c (xftfont_open): Change coding style of error
19960 handling. Generate fontconfig's fontname pattern.
19961
19962 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19963 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19964
19965 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19966 Both args FONTSET and FONT_OBJECT must be existing ones.
19967
19968 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19969
19970 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19971
19972 2008-02-01 Kenichi Handa <handa@m17n.org>
19973
19974 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19975
19976 * font.h (struct font): Fix typo.
19977
19978 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19979 XLFD_XXX_INDEX.
19980 (enum xlfd_field_mask): New enum.
19981 (intern_font_field): Changed argument. Change caller. If digits
19982 are followed by non-digits, return a symbol.
19983 (font_expand_wildcards): New function.
19984 (font_parse_xlfd): Fix wildcard handling.
19985 (Ffont_spec): If :name is specified, reflect the info in the other
19986 properties.
19987
19988 * ftfont.c (ftfont_pattern_entity): Fix typo.
19989 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19990 locale.
19991
19992 2008-02-01 Kenichi Handa <handa@m17n.org>
19993
19994 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19995
19996 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19997 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19998 registry doesn't specify encoding part.
19999 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20000 (font_open_by_name): At first try parsing the name.
20001 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20002 as Lisp symbols.
20003
20004 * fontset.c (reorder_font_vector): Pay attention to the case that
20005 the 3rd element of font_def is nil.
20006 (fontset_font): For the default fontset, append one more fontset
20007 elements for a script-based font specification. Don't add script
20008 attribute on finding a font.
20009 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20010 font name.
20011 (fontset_ascii_font): If a font can't be opened, return nil.
20012
20013 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20014 (ftfont_pattern_entity): New function.
20015 (ftfont_get_cache): Assume that freetype_font_cache is already
20016 initialized.
20017 (ftfont_list): Handle the case that a file is specified in font
20018 name. Use ftfont_pattern_entity to generate entities.
20019 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20020 (syms_of_ftfont): Initialize freetype_font_cache.
20021
20022 * xftfont.c (xftfont_open): Make the font name fontconfig's
20023 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20024 (xftfont_close): Free font->font.name if not NULL.
20025
20026 * xfont.c (xfont_list): If script is specified for a font, return
20027 null_vector.
20028 (xfont_list_family): Declare argument type.
20029
20030 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20031 name, set LFACE_FONT (lface) to nil.
20032
20033 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20034 return Qnil.
20035
20036 2008-02-01 Kenichi Handa <handa@m17n.org>
20037
20038 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20039 (standard_args): Add "-enable-font-backend".
20040
20041 2008-02-01 Kenichi Handa <handa@m17n.org>
20042
20043 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20044 (struct xftdraw_list, xftdraw_list): Delete them.
20045 (register_xftdraw, check_xftdraw): Delete them.
20046 (xftfont_prepare_face): Don't call register_xftdraw.
20047 (xftfont_done_face): Don't call check_xftdraw.
20048 (xftfont_draw): Get background color only when with_background is
20049 nonzero.
20050
20051 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20052
20053 2008-02-01 Kenichi Handa <handa@m17n.org>
20054
20055 These changes are for the new font handling codes.
20056
20057 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20058 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20059 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20060 (FONTSRC, FONTOBJ): New variables.
20061 (obj): Add $(FONTOBJ).
20062 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20063 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20064 @LIBOTF_LIBS@.
20065 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20066 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20067
20068 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20069
20070 * character.h (Vscript_representative_chars): Extern it.
20071
20072 * character.c (Vscript_representative_chars): New variable.
20073 (syms_of_character): Declare it as a Lisp variable.
20074
20075 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20076 enable_font_backend is nonzero, accept the composition method
20077 COMPOSITION_WITH_GLYPH_STRING.
20078
20079 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20080 enumeration COMPOSITION_WITH_GLYPH_STRING.
20081
20082 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20083 members clip_x, clip_y, clip_width, and clip_height.
20084 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20085
20086 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20087 --enable-font-backend. Call syms_of_font.
20088
20089 * fns.c (assoc_no_quit): New function.
20090
20091 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20092 (face_for_font, new_fontset_from_font)
20093 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20094
20095 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20096 (fontset_font, fontset_ascii, face_for_char)
20097 (make_fontset_for_ascii_face, Ffont_info)
20098 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20099 is nonzero, use font-backend mechanism.
20100 (find_font_encoding): Make it non-static.
20101 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20102 New functions.
20103
20104 * frame.h (struct frame): New members resx and resy.
20105 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20106 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20107
20108 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20109 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20110
20111 * lisp.h (assoc_no_quit): Extern it.
20112
20113 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20114 Through out the file, use FONT_INFO_FROM_FACE instead of
20115 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20116 rif->per_char_metric.
20117 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20118 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20119 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20120 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20121 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20122 nonzero, use font-backend mechanism.
20123 (get_per_char_metric): New function.
20124
20125 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20126 (set_lface_from_font_name)
20127 (set_font_frame_param, free_realized_face)
20128 (prepare_face_for_display, clear_face_gcs)
20129 (Finternal_set_font_selection_order, realize_x_face)
20130 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20131 font-backend mechanism.
20132 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20133 (load_face_font) [USE_FONT_BACKEND]: Abort.
20134 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20135 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20136
20137 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20138 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20139 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20140 nonzero, register all available font drivers. Call
20141 x_default_font_parameter for deciding a font.
20142 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20143
20144 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20145 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20146 (x_set_glyph_string_clipping_exactly)
20147 (x_compute_glyph_string_overhangs)
20148 (x_draw_glyph_string_foreground)
20149 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20150 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20151 enable_font_backend is nonzero, use font-backend mechanism.
20152 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20153
20154 2008-02-01 Kenichi Handa <handa@m17n.org>
20155
20156 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20157 system_eol_type.
20158 (syms_of_coding): Initialize system_eol_type.
20159
20160 * process.c (Fset_process_coding_system): Inherit system's eol
20161 format if necessary.
20162
20163 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20164
20165 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20166
20167 2008-02-01 Kenichi Handa <handa@m17n.org>
20168
20169 * coding.c (decode_eol): Pay attention to buffer relocation in
20170 del_range_2.
20171 (decode_coding): Call decode_eol before restoring undo_list.
20172
20173 2008-02-01 Kenichi Handa <handa@m17n.org>
20174
20175 * charset.c (Fdefine_charset_internal): Fix setting of
20176 emacs_mule_bytes.
20177
20178 2008-02-01 Kenichi Handa <handa@m17n.org>
20179
20180 * keyboard.c (read_char): Check if C is a character or not before
20181 looking up Vkeyboard_translate_table.
20182
20183 2008-02-01 Kenichi Handa <handa@m17n.org>
20184
20185 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20186 condition to terminate the loop.
20187
20188 2008-02-01 Kenichi Handa <handa@m17n.org>
20189
20190 * coding.c (produce_composition): Compare charbuf[i] instead of
20191 args[i] against 0.
20192 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20193
20194 2008-02-01 Kenichi Handa <handa@m17n.org>
20195
20196 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20197 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20198 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20199 detect_coding.
20200 (emacs_mule_char): Handle old style (Emacs 20) component character
20201 of a composition.
20202 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20203 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20204 composition rule.
20205 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20206
20207 2008-02-01 Kenichi Handa <handa@m17n.org>
20208
20209 * coding.c (encode_coding_ccl): Allocate destination dynamically
20210 when necessary.
20211
20212 2008-02-01 Kenichi Handa <handa@m17n.org>
20213
20214 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20215 the loop. When quitted, show a proper error message.
20216
20217 2008-02-01 Kenichi Handa <handa@m17n.org>
20218
20219 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20220 src->clip_head and src->clip_tail temporarily instead of src->hl.
20221
20222 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20223 character sequence.
20224 (Fccl_execute_on_string): Use ASET, not XSET.
20225
20226 2008-02-01 Kenichi Handa <handa@m17n.org>
20227
20228 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20229
20230 2008-02-01 Kenichi Handa <handa@m17n.org>
20231
20232 * coding.c (decode_coding): Fix the condition of terminating the
20233 decoding loop.
20234
20235 2008-02-01 Kenichi Handa <handa@m17n.org>
20236
20237 * data.c (Faset): On setting a character bigger than 255 in a
20238 unibyte string, signal an error instead of make the string multibyte.
20239
20240 2008-02-01 Kenichi Handa <handa@m17n.org>
20241
20242 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20243 made by a mapping table.
20244
20245 2008-02-01 Kenichi Handa <handa@m17n.org>
20246
20247 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20248 not.
20249 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20250 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20251
20252 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20253 s->face is NULL or not.
20254
20255 2008-02-01 Kenichi Handa <handa@m17n.org>
20256
20257 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20258 (x_draw_glyph_string): Fix drawing of right_overhang and
20259 left_overhang around/on cursor.
20260
20261 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20262
20263 2008-02-01 Kenichi Handa <handa@m17n.org>
20264
20265 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20266
20267 2008-02-01 Kenichi Handa <handa@m17n.org>
20268
20269 * coding.c (Fdefine_coding_system_internal)
20270 (Fdefine_coding_system_alias): Avoid a duplicated element in
20271 Vcoding_system_alist.
20272
20273 2008-02-01 Kenichi Handa <handa@m17n.org>
20274
20275 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20276
20277 * coding.c (Qcoding_system_define_form): New variable.
20278 (syms_of_coding): Intern and staticpro it.
20279 (Fcoding_system_p): Check Qcoding_system_define_form.
20280 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20281
20282 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20283 Fcoding_system_p.
20284 (CHECK_CODING_SYSTEM): If ID is not available, call
20285 Fcheck_coding_system.
20286 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20287 Try also Fcheck_coding_system.
20288
20289 2008-02-01 Kenichi Handa <handa@m17n.org>
20290
20291 * coding.c (code_conversion_restore): GCPRO arg.
20292
20293 2008-02-01 Kenichi Handa <handa@m17n.org>
20294
20295 * character.c (lisp_string_width): Check multibyteness of STRING.
20296
20297 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20298
20299 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20300 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20301 (decode_mac_font_name): Use decode_coding_c_string instead of
20302 decode_coding.
20303 (x_load_font): Initialize fontp->fontset to -1. Set
20304 fontp->encoding_type.
20305
20306 2008-02-01 Kenichi Handa <handa@m17n.org>
20307
20308 * search.c (search_buffer): Give up BM search on case-fold-search
20309 if one of a target character has a case-equivalence of different
20310 byte length even if that target charcter is an ASCII.
20311 (simple_search): Fix calculation of byte length of matched text.
20312 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20313
20314 2008-02-01 Kenichi Handa <handa@m17n.org>
20315
20316 * coding.c (decode_coding): Fix handling of invalid bytes.
20317
20318 2008-02-01 Kenichi Handa <handa@m17n.org>
20319
20320 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20321 Unicode characters.
20322
20323 2008-02-01 Kenichi Handa <handa@m17n.org>
20324
20325 * coding.c (encode_coding_object): If a pre-write-conversion
20326 function makes a new buffer, kill it.
20327
20328 2008-02-01 Kenichi Handa <handa@m17n.org>
20329
20330 * coding.c (QCascii_compatible_p): New variable.
20331 (syms_of_coding): Initialize it.
20332 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20333 calling string_char.
20334 (record_conversion_result): Add `default:' case.
20335 (coding_charset_list): Delete unused variable `coding_type'.
20336 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20337 property in the plist of the coding system.
20338 (Fcoding_system_put): Check QCascii_compatible_p.
20339
20340 2008-02-01 Miles Bader <miles@gnu.org>
20341
20342 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20343 removed calculation of frame `f', as it's now used.
20344
20345 2008-02-01 Kenichi Handa <handa@m17n.org>
20346
20347 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20348 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20349 (UNIDATA): New variable.
20350 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20351 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20352 $(RUN_TEMACS) unconditionally.
20353
20354 2008-02-01 Kenichi Handa <handa@m17n.org>
20355
20356 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20357 (admindir): New variable.
20358 ($(lispsource)international/charprop.el): New target.
20359
20360 2008-02-01 Miles Bader <miles@gnu.org>
20361
20362 * character.c (chars-in-region): Remove obsolete function.
20363 (syms_of_character): Remove its initialization.
20364
20365 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20366
20367 * w32select.c (validate_coding_system)
20368 (setup_windows_coding_system): New functions.
20369 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20370 setup_windows_coding_system.
20371 (setup_config, Fw32_get_clipboard_data): Use
20372 validate_coding_system.
20373 (Fx_selection_exists): Move call to setup_config to a place
20374 where signals are allowed.
20375
20376 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20377 (Fcheck_coding_system): Add declarations.
20378
20379 2008-02-01 Kenichi Handa <handa@m17n.org>
20380
20381 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20382
20383 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20384
20385 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20386 string as the second argument for x_new_fontset.
20387
20388 2008-02-01 Kenichi Handa <handa@m17n.org>
20389
20390 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20391 (encode_coding_object): Use safe_call instead of call2.
20392
20393 2008-02-01 Kenichi Handa <handa@m17n.org>
20394
20395 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20396
20397 * Makefile.in (lisp): Include charprop.el.
20398
20399 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20400
20401 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20402 Not sure if it's unnecessary.
20403
20404 2008-02-01 Steven Tamm <steventamm@mac.com>
20405
20406 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20407 some possibly unnecessary fontset checking code that crashed
20408 when creating a new frame.
20409
20410 2008-02-01 Kenichi Handa <handa@m17n.org>
20411
20412 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20413 lookup_face.
20414
20415 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20416
20417 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20418
20419 2008-02-01 Kenichi Handa <handa@m17n.org>
20420
20421 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20422 (coding_charset_list): New function.
20423
20424 * coding.h (coding_charset_list): Extern it.
20425
20426 2008-02-01 Kenichi Handa <handa@m17n.org>
20427
20428 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20429 concatenation of family and registry.
20430
20431 2008-02-01 Kenichi Handa <handa@m17n.org>
20432
20433 * character.h (BYTE8_STRING): Fix typo.
20434
20435 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20436 string to multibyte (sync to HEAD).
20437
20438 * casefiddle.c (casify_region): Handle changes in byte-length
20439 using replace_range_2 (sync to HEAD).
20440
20441 2008-02-01 Andreas Schwab <schwab@suse.de>
20442
20443 * chartab.c (map_char_table): GCPRO table and arg.
20444
20445 2008-02-01 Kenichi Handa <handa@m17n.org>
20446
20447 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20448 already at limit.
20449
20450 2008-02-01 Kenichi Handa <handa@m17n.org>
20451
20452 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20453 instead of fast_c_string_match_ignore_case.
20454 (find_font_encoding): Change argument to Lisp_Object. Use
20455 fast_string_match_ignore_case instead of
20456 fast_c_string_match_ignore_case. Change caller.
20457
20458 2008-02-01 Kenichi Handa <handa@m17n.org>
20459
20460 * xdisp.c (get_next_display_element): In unibyte case, decide to
20461 display in octal form by checking a character by
20462 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20463
20464 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20465
20466 * character.c (unibyte_has_multibyte_table): New variable.
20467
20468 * character.h (unibyte_has_multibyte_table): Extern it.
20469 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20470
20471 2008-02-01 Kenichi Handa <handa@m17n.org>
20472
20473 * coding.c (encode_coding_iso_2022): Fix handling of charset
20474 annotation.
20475
20476 2008-02-01 Kenichi Handa <handa@m17n.org>
20477
20478 * coding.c (setup_coding_system): If coding_system is nil, use
20479 Qundecided.
20480 (Fterminal_coding_system): Return nil if terminal coding system is
20481 `undecided'.
20482 (syms_of_coding): Define coding-system `undecided' here. Setup
20483 terminal_coding as `undecided'.
20484
20485 2008-02-01 Kenichi Handa <handa@m17n.org>
20486
20487 * xdisp.c (message_dolog, set_message_1): Call
20488 unibyte_char_to_multibyte with arg type int.
20489
20490 * lread.c (read1): Fix reading of a char-table.
20491
20492 * print.c (print_object): Include sub char-table in circularities
20493 detection.
20494
20495 2008-02-01 Kenichi Handa <handa@m17n.org>
20496
20497 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20498 Append the found sequences in car of ARGS instead of prepending.
20499
20500 2008-02-01 Kenichi Handa <handa@m17n.org>
20501
20502 * fileio.c (report_file_error): Make a unibyte string from
20503 strerror (errorno).
20504 (Fsubstitute_in_file_name): Fix the arg to
20505 unibyte_char_to_multibyte. It is evaluated twice.
20506
20507 2008-02-01 Kenichi Handa <handa@m17n.org>
20508
20509 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20510
20511 2008-02-01 Kenichi Handa <handa@m17n.org>
20512
20513 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20514 BOM is not found.
20515 (detect_coding, detect_coding_system): Optimization for ISO-2022
20516 when no 8-bit data is found.
20517
20518 2008-02-01 Jason Rumney <jasonr@gnu.org>
20519
20520 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20521
20522 2008-02-01 Kenichi Handa <handa@m17n.org>
20523
20524 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20525 CHARS.
20526
20527 2008-02-01 Steven Tamm <steventamm@mac.com>
20528
20529 * macterm.c (mac_encode_char): Add charset argument and update
20530 to use encoding_type.
20531 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20532 switch to pure fontset.
20533 (decode_mac_font_name): Temporarily remove decoding.
20534 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20535 (x_load_font): Temporarily remove encoding.
20536
20537 2008-02-01 Kenichi Handa <handa@m17n.org>
20538
20539 * xfaces.c (Fface_font): If frame is not on a window system,
20540 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20541 refer to face->font.
20542 (split_font_name_into_vector, build_font_name_from_vector)
20543 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20544 when HAVE_WINDOW_SYSTEM is defined.
20545
20546 2008-02-01 Kenichi Handa <handa@m17n.org>
20547
20548 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20549 (x_produce_glyphs): Fix setting of members of cmp in case
20550 cmp->glyph_len is zero.
20551
20552 * fontset.c (Fset_fontset_font): Fix docstring.
20553 (Ffontset_info): Make it backward compatible. New arg ALL.
20554
20555 2008-02-01 Kim F. Storm <storm@cua.dk>
20556
20557 * process.c (read_process_output): Grow decoding_buf when needed;
20558 this could cause a crash in allocate_string and compact_small_strings.
20559
20560 2008-02-01 Kenichi Handa <handa@m17n.org>
20561
20562 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20563
20564 2008-02-01 Kenichi Handa <handa@m17n.org>
20565
20566 * coding.c (setup_coding_system): Set coding->common_flags
20567 correctly for raw-text.
20568 (consume_chars): On encoding unibyte text by raw-text, don't check
20569 multibyte form.
20570 (encode_coding): On encoding by raw-text, never use translation tables.
20571
20572 * fileio.c (e_write): Short cut for the case of no encoding.
20573
20574 2008-02-01 Kenichi Handa <handa@m17n.org>
20575
20576 * coding.c (detect_coding, detect_coding_system): Delete unused
20577 variables.
20578
20579 2008-02-01 Kenichi Handa <handa@m17n.org>
20580
20581 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20582 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20583
20584 2008-02-01 Kenichi Handa <handa@m17n.org>
20585
20586 * coding.c (Ffind_coding_systems_region_internal): Include
20587 raw-text and no-conversion in the result.
20588
20589 2008-02-01 Kenichi Handa <handa@m17n.org>
20590
20591 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20592 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20593 FONT_DEF.
20594 (font_def_arg, add_arg, from_arg, to_arg): New args.
20595 (set_fontset_font): Change argument.
20596 (Fset_fontset_font): Fix for the case that TARGET is a script
20597 name and charset name.
20598 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20599
20600 2008-02-01 Kenichi Handa <handa@m17n.org>
20601
20602 * fontset.c (fontset_font): Rename from fontset_face. Change return
20603 value.
20604 (face_suitable_for_char_p, face_for_char): Adjust for the change
20605 of fontset_font.
20606 (make_fontset_for_ascii_face): Fix setting of the fontset element
20607 for ASCII.
20608 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20609 to get a font name.
20610 (Ffontset_info): Adjust for the change of fontset_font.
20611
20612 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20613
20614 * character.h (LEADING_CODE_LATIN_1_MIN)
20615 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20616
20617 2008-02-01 Kenichi Handa <handa@m17n.org>
20618
20619 * editfns.c (check_translation): New function.
20620 (Ftranslate_region_internal): Handle M:N mapping.
20621
20622 2008-02-01 Kenichi Handa <handa@m17n.org>
20623
20624 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20625
20626 2008-02-01 Kenichi Handa <handa@m17n.org>
20627
20628 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20629 goto invalid_code.
20630 (decode_coding_iso_2022): Fix handling of invalid designation.
20631
20632 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20633 after calling code_conversion_save.
20634
20635 2008-02-01 Kenichi Handa <handa@m17n.org>
20636
20637 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20638
20639 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20640
20641 * fontset.c: Include "intervals.h".
20642 (fontset_face): Fix comparing of Lisp_Objects.
20643 (free_face_fontset, new_fontset_from_font_name): Fix
20644 Lisp_Object/int mixup.
20645
20646 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20647
20648 * coding.c: Add many prototypes for static functions.
20649 (get_translation_table): Allow max_lookup to be NULL.
20650 (decode_coding, Ffind_coding_systems_region_internal)
20651 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20652 get_translation_table with max_lookup NULL.
20653
20654 2008-02-01 Kenichi Handa <handa@m17n.org>
20655
20656 * coding.c (get_translation_table): Declare it as Lisp_Object.
20657 (LOOKUP_TRANSLATION_TABLE): New macro.
20658 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20659 instead of CHAR_TABLE_REF.
20660
20661 2008-02-01 Kenichi Handa <handa@m17n.org>
20662
20663 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20664 annotation data format.
20665 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20666 Change arguments FROM and TO to single argument NCHARS. Change caller.
20667 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20668 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20669 (decode_coding_ccl, decode_coding_charset): Pay attention to
20670 coding->charbuf_used.
20671 (get_translation): New function.
20672 (produce_chars): New arguments translation_table and last_block.
20673 Translate characters here. Return number of carryover chars.
20674 Change caller.
20675 (produce_composition): New argument pos. Change caller.
20676 Adjust for the change of annotation data format.
20677 (produce_charset, produce_annotation): Likewise.
20678 (decode_coding, encode_coding): Don't call translate_chars.
20679 (consume_chars): New arg translation_table. Change caller.
20680 (translate_chars): Delete.
20681 (syms_of_coding): Make translation-table's number of extra slots 2.
20682
20683 2008-02-01 Kenichi Handa <handa@m17n.org>
20684
20685 * search.c (simple_search): Fix setting this_pos_byte in backward
20686 search.
20687
20688 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20689 byte sequence.
20690 (detect_coding_ccl): Fix setting of the variable valids.
20691
20692 2008-02-01 Kenichi Handa <handa@m17n.org>
20693
20694 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20695
20696 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20697
20698 * editfns.c (Ftranslate_region_internal): Rename from
20699 Ftranslate_region. Accept a char-table in TABLE.
20700 (syms_of_editfns): Defsubr Stranslate_region_internal.
20701
20702 * xfaces.c (set_lface_from_font_name): If a font is specified for
20703 a frame, generate a fontset from the font.
20704 (build_scalable_font_name): If the scalable font is requested for
20705 a specific size, don't change that size.
20706 (try_font_list): Try a scalable font also in the case that a
20707 pattern string is specified.
20708
20709 2008-02-01 Kenichi Handa <handa@m17n.org>
20710
20711 * xfaces.c (Fface_font): New optional arg CHARACTER.
20712
20713 2008-02-01 Kenichi Handa <handa@m17n.org>
20714
20715 * charset.h (CHARSET_OFFSET): New macro.
20716
20717 2008-02-01 Kenichi Handa <handa@m17n.org>
20718
20719 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20720
20721 * fontset.c (fontset_face): Handle the case that repertory is a
20722 char-table.
20723 (find_font_encoding): Return nil for unknown encoding.
20724 (Fset_fontset_font): Ignore a font of unknown encoding.
20725
20726 2008-02-01 Kenichi Handa <handa@m17n.org>
20727
20728 * keymap.c (describe_vector): Handle default value of a char table.
20729
20730 * fontset.c (fontset_face): Handle fallback fonts correctly.
20731 (Ffontset_info): Return infomation about fallback fonts.
20732
20733 2008-02-01 Kenichi Handa <handa@m17n.org>
20734
20735 * fontset.c (FONTSET_DEFAULT): New macro.
20736 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20737 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20738 the case that it is nil.
20739 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20740 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20741
20742 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20743 subset or superset.
20744
20745 2008-02-01 Kenichi Handa <handa@m17n.org>
20746
20747 * emacs.c (main): Call init_charset after syms_of_XXX.
20748
20749 * charset.c (Vcharset_map_directory): Delete.
20750 (Vcharset_map_path): New variable.
20751 (load_charset_map_from_file): Use Vcharset_map_path instead.
20752 (init_charset): Initialize Vcharset_map_path.
20753 (syms_of_charset): Delete declaration of "charset-map-directory",
20754 add declaration of "charset-map-path".
20755
20756 2008-02-01 Kenichi Handa <handa@m17n.org>
20757
20758 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20759 ASCII only string.
20760
20761 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20762
20763 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20764 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20765
20766 2008-02-01 Kenichi Handa <handa@m17n.org>
20767
20768 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20769
20770 * coding.c (QCmnemonic, QCdefalut_char)
20771 (QCdecode_translation_table, QCencode_translation_table)
20772 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20773 (get_translation_table): Return a list of translation tables if
20774 necessary.
20775 (decode_coding): Call get_translation_table with ENCODEP 0.
20776 (char_encodable_p): If translation_table is non-nil, always call
20777 translate_char.
20778 (Fdefine_coding_system_internal): Accept list of translation
20779 tables as :encode-translation-table and :decode-translation-table.
20780 (Fcoding_system_put): New function.
20781 (syms_of_coding): Declare new symbols. Defsubr
20782 Scoding_system_put.
20783 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20784 typically JISX0212.
20785
20786 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20787 when the charset is superset type.
20788
20789 * character.c (translate_char): Accept list of translation tables.
20790
20791 2008-02-01 Kenichi Handa <handa@m17n.org>
20792
20793 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20794 (CODING_ATTR_TRANS_TBL): New macro.
20795
20796 * coding.c (get_translation_table): New function.
20797 (translate_chars): Fix the bug of skipping annotation data.
20798 (decode_coding, encode_coding): Utilize get_translation_table.
20799 (char_encodable_p, Funencodable_char_position): Translate char if
20800 necessary.
20801 (Ffind_coding_systems_region_internal)
20802 (Fcheck_coding_systems_region): Setup translation table for encode
20803 in a coding system attribute vector in advance.
20804 (Fdefine_coding_system_internal): Allow a symbol as translation
20805 table. For shift-jis type coding system, allow 4th charset.
20806
20807 2008-02-01 Kenichi Handa <handa@m17n.org>
20808
20809 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20810
20811 * xdisp.c (get_next_display_element): Pass -1 as POS to
20812 FACE_FOR_CHAR if displaying a C-string.
20813
20814 2008-02-01 Kenichi Handa <handa@m17n.org>
20815
20816 * composite.c (get_composition_id): Handle xoff and yoff in a
20817 composition rule.
20818
20819 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20820 (struct composition): New member lbearing and rbearing.
20821
20822 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20823 (x_get_glyph_overhangs): Handle a composition glyph.
20824 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20825
20826 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20827 composition glyph.
20828
20829 2008-02-01 Kenichi Handa <handa@m17n.org>
20830
20831 * print.c: Include charset.h.
20832 (Vprint_charset_text_property): New variable.
20833 (Qdefault): Extern it.
20834 (PRINT_STRING_NON_CHARSET_FOUND)
20835 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20836 (print_check_string_result): New variable.
20837 (print_check_string_charset_prop): New function.
20838 (print_prune_charset_plist): New variable.
20839 (print_prune_string_charset): New function.
20840 (print_object): Call print_prune_string_charset if
20841 Vprint_charset_text_property is not t.
20842 (print_interval): Print nothing if interval->plist is nil.
20843 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20844 variable. Init and staticpro print_prune_charset_plist.
20845
20846 2008-02-01 Kenichi Handa <handa@m17n.org>
20847
20848 * fontset.c (new_fontset_from_font_name): Use the specified font
20849 for all characters in the new fontset.
20850
20851 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20852 OBJECT args.
20853
20854 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20855 OBJECT args for composition too.
20856
20857 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20858 OBJECT args.
20859
20860 2008-02-01 Kenichi Handa <handa@m17n.org>
20861
20862 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20863
20864 * fontset.c (reorder_font_vector): Adjust for the change of
20865 FONT_DEF format.
20866 (fontset_face): New arg id. Change caller.
20867 (face_for_char): New args pos and object.
20868 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20869 (fs_query_fontset): Check NAME by Fassoc too.
20870 (Fset_fontset_font): Allow non-XLFD font name.
20871 (Ffontset_info): Adjust for the change of FONT_DEF format.
20872
20873 * fontset.h (face_for_char): Adjust prototype.
20874
20875 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20876 (append_space, extend_face_to_end_of_line)
20877 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20878 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20879
20880 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20881 POS and OBJECT args.
20882
20883 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20884 POS and OBJECT args.
20885
20886 2008-02-01 Jason Rumney <jasonr@gnu.org>
20887
20888 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20889 of GlobalAlloc'ed memory.
20890
20891 2008-02-01 Kenichi Handa <handa@m17n.org>
20892
20893 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20894
20895 * charset.h (charset_table_used): Delete extern.
20896
20897 * charset.c (charset_table_used): Make it static.
20898 (map_charset_chars): Fix args to c_function with.
20899
20900 * chartab.c (map_sub_char_table_for_charset): Fix args to
20901 c_function with.
20902
20903 * coding.h (enum coding_result_code): Delete
20904 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20905
20906 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20907 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20908 (Vlast_code_conversion_error): New variables.
20909 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20910 (ONE_MORE_BYTE): Record error if any instead of signaling an
20911 error. If non-ASCII multibyte char is found, return the negative
20912 value of the code. All callers changed to check it.
20913 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20914 (record_conversion_result): New function. Change all codes setting
20915 coding->result to call this function.
20916 (detect_coding_utf_8, decode_coding_utf_8)
20917 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20918 Don't use the local variable incomplete.
20919 (emacs_mule_char): Change the second arg to `const'.
20920 (decode_coding): Fix of flushing out unprocessed data.
20921 (make_conversion_work_buffer): Fix making of a work buffer.
20922 (decode_coding_object): Return coding->dst_object.
20923
20924 * fontset.c (set_fontset_font): Fix args.
20925
20926 * lisp.h (CHARACTERBITS): Define as 22.
20927
20928 * process.c (send_process): Be sure to set coding->src_multibyte.
20929
20930 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20931
20932 2008-02-01 Kenichi Handa <handa@m17n.org>
20933
20934 * xdisp.c (handle_auto_composed_prop): Give limit to
20935 Fnext_single_char_property_change.
20936
20937 2008-02-01 Kenichi Handa <handa@m17n.org>
20938
20939 * composite.c (syms_of_composite): Don't make the composition hash
20940 table weak.
20941
20942 * fontset.c (Fset_fontset_font): Fix docstring.
20943
20944 * lisp.h (detect_coding_system): Adjust prototype.
20945
20946 * fileio.c (kill_workbuf_unwind): Delete this function.
20947 (Finsert_file_contents): Adjust the call of detect_coding_system.
20948 Get conversion_buffer by code_conversion_save. Use the macro
20949 CODING_MAY_REQUIRE_DECODING. After decoding, update
20950 coding_system.
20951
20952 * coding.h (make_conversion_work_buffer): Delete extern.
20953 (code_conversion_save): Extern it.
20954
20955 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20956 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20957 (decode_coding_utf_8): Don't do eol converion.
20958 (detect_coding_utf_16): Check coding->src_chars, not
20959 coding->src_bytes. Add heuristics for those that have no signature.
20960 (decode_coding_emacs_mule, decode_coding_iso_2022)
20961 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20962 Don't do eol converion.
20963 (adjust_coding_eol_type): Return a new coding system.
20964 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20965 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20966 each change.
20967 (decode_coding): Pay attention to undo_list. Do eol conversion for
20968 all types of coding-systems (if necessary).
20969 (Vcode_conversion_work_buf_list): Delete it.
20970 (Vcode_conversion_reused_workbuf): Rename from
20971 Vcode_conversion_reused_work_buf.
20972 (Vcode_conversion_workbuf_name): New variable.
20973 (reused_workbuf_in_use): New variable.
20974 (make_conversion_work_buffer): Delete the arg DEPTH.
20975 (code_conversion_restore): Change argument to cons.
20976 (code_conversion_save): Delete the argument BUFFER. Change callers.
20977 (detect_coding_system): New argument src_chars. Change callers.
20978 Fix for utf-16 detection.
20979 (init_coding_once): Don't use ISO_carriage_return.
20980 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20981 reused_workbuf_in_use.
20982
20983 2008-02-01 Kenichi Handa <handa@m17n.org>
20984
20985 * keymap.c (store_in_keymap): Pay attention to the case that idx
20986 is a cons specifying a character range.
20987
20988 2008-02-01 Kenichi Handa <handa@m17n.org>
20989
20990 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20991 HANDLED_RECOMPUTE_PROPS.
20992
20993 * coding.c (Fdefine_coding_system_internal): Fix checking of
20994 ascii compatibility.
20995
20996 2008-02-01 Kenichi Handa <handa@m17n.org>
20997
20998 * charset.c (find_charsets_in_text): Delete unused locale variable.
20999 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21000
21001 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21002 Resync charset_list to Vemacs_mule_charset_list.
21003
21004 * keymap.c (store_in_keymap): Pay attention to the case that idx
21005 is a cons specifying a character range.
21006
21007 2008-02-01 Kenichi Handa <handa@m17n.org>
21008
21009 * composite.c (update_compositions): Bind inhibit-read-only, etc
21010 to t before calling remove-list-of-text-properties.
21011
21012 * print.c (print_object): Always print ASCII chars as is.
21013
21014 2008-02-01 Kenichi Handa <handa@m17n.org>
21015
21016 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21017
21018 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21019 is a char table.
21020
21021 2008-02-01 Kenichi Handa <handa@m17n.org>
21022
21023 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21024
21025 2008-02-01 Kenichi Handa <handa@m17n.org>
21026
21027 * xfaces.c (set_lface_from_font_name): Fix for the case that
21028 FONTNAME is not fontset name.
21029
21030 2008-02-01 Kenichi Handa <handa@m17n.org>
21031
21032 * fns.c (base64_encode_1): Fix previous change.
21033
21034 2008-02-01 Kenichi Handa <handa@m17n.org>
21035
21036 * fontset.c (set_fontset_font): New function.
21037 (Fset_fontset_font): If a font is specified for a charset, use
21038 map_charset_chars to store the font spec in a fontset.
21039
21040 2008-02-01 Kenichi Handa <handa@m17n.org>
21041
21042 * fontset.c (fontset_face): Create a fallback fontset on demand.
21043 (make_fontset): Don't create a fallback fontset here.
21044 (free_face_fontset): Free a fallback fontset (if any) too.
21045 (n_auto_fontsets): Delete this variable.
21046 (auto_fontset_alist): New variable.
21047 (new_fontset_from_font_name): Check auto_fontset_alist.
21048 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21049 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21050 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21051 Defsubr Sfontset_list_all.
21052
21053 2008-02-01 Kenichi Handa <handa@m17n.org>
21054
21055 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21056
21057 2008-02-01 Kenichi Handa <handa@m17n.org>
21058
21059 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21060
21061 2008-02-01 Kenichi Handa <handa@m17n.org>
21062
21063 * editfns.c (Fgoto_char): Fix docstring.
21064
21065 2008-02-01 Kenichi Handa <handa@m17n.org>
21066
21067 * insdel.c (insert_from_gap): Adjust intervals correctly.
21068
21069 2008-02-01 Jason Rumney <jasonr@gnu.org>
21070
21071 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21072 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21073 (w32_initialize): Try to load it.
21074 (x_get_font_repertory): Use it if available.
21075 (w32_encode_char): Add shortcut for unicode output.
21076
21077 * w32fns.c (w32_load_system_font): Default charset to -1.
21078 (x_to_w32_charset): Match all fonts for unicode.
21079 (w32_to_x_charset): New parameter matching. Don't return partial
21080 or wildcard charsets.
21081 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21082 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21083 (w32_to_x_font): Match charset to real charset.
21084 (enum_font_cb2): Always list unicode versions.
21085
21086 * makefile.w32-in (temacs): Increase EMHEAP.
21087
21088 2008-02-01 Jason Rumney <jasonr@gnu.org>
21089
21090 * w32term.c (w32_encode_char): New charset parameter.
21091 font_info.encoding becomes encoding_type.
21092 (x_get_font_repertory): New function. Warning: stub only!
21093 (x_new_font): Return quickly if font already set.
21094 (x_new_fontset): fontsetname parameter is Lisp_Object.
21095 Use new fs_query_fontset. Try new_fontset_from_font_name.
21096 Use fontset_name for return value.
21097
21098 * w32term.h: Declare x_get_font_repertory.
21099
21100 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21101 place of find_charset_in_text. Use encode_coding_object in place
21102 of encode_coding.
21103 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21104 decode_coding.
21105
21106 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21107 of x_new_fontset.
21108 (w32_load_system_font): Initialize charset as unicode.
21109 font_info.encoding becomes encoding_type.
21110 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21111 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21112 (syms_of_w32fns): Set get_font_repertory_func.
21113
21114 * w32console.c: Include character.h. Use terminal_encode_buffer
21115 from term.c.
21116 (write_glyphs): Use new version of encode_terminal_code. Use
21117 encode_coding_object in place of encode_coding.
21118
21119 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21120 encoding becomes encoding_type.
21121
21122 * term.c (terminal_encode_buffer): Make externally visible.
21123
21124 * makefile.w32-in: Add character.h dependancies.
21125 (character.o, chartab.o): New targets.
21126
21127 2008-02-01 Kenichi Handa <handa@m17n.org>
21128
21129 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21130 CODING_ID_EOL_TYPE.
21131
21132 2008-02-01 Andreas Schwab <schwab@suse.de>
21133
21134 * coding.c (produce_chars): Revert last change.
21135
21136 2008-02-01 Kenichi Handa <handa@m17n.org>
21137
21138 * charset.h (charset_unicode): Extern it.
21139
21140 * charset.c (string_xstring_p): Check by (C >= 0x100).
21141 (find_charsets_in_text): Change format of the arc CHARSETS. New
21142 arg MULTIBYTE.
21143 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21144 change of find_charsets_in_text.
21145 (Fsplit_char): Fix doc. Never return unknown.
21146
21147 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21148
21149 * coding.c (Fdefine_coding_system_alias): Update
21150 Vcoding_system_list.
21151
21152 * fontset.c (load_font_get_repertory): Pay attention to the case
21153 that ENCODING of a font is specified by a char-table.
21154
21155 * xterm.c (x_get_font_repertory): Handle the case that the
21156 encoding of font is other than Unicode.
21157
21158 2008-02-01 Kenichi Handa <handa@m17n.org>
21159
21160 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21161 if a character is encodable by the terminal coding system. If
21162 not, produces proper number of `?'s. Update
21163 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21164 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21165
21166 2008-02-01 Kenichi Handa <handa@m17n.org>
21167
21168 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21169 variables.
21170 (encode_terminal_code): Change argument. Encode multiple
21171 characters at once. Store the result of encoding in
21172 terminal_encode_buffer.
21173 (write_glyphs, insert_glyphs): Adjust for the change of
21174 encode_terminal_code.
21175 (term_init): Initialize terminal_encode_buffer and
21176 terminal_encode_buf_size.
21177
21178 * coding.c (consume_chars): If coding->src_object is nil, don't
21179 check annotation.
21180
21181 2008-02-01 Kenichi Handa <handa@m17n.org>
21182
21183 * character.c (char_string): Use ASCII_CHAR_P instead of
21184 SINGLE_BYTE_CHAR_P.
21185
21186 2008-02-01 Kenichi Handa <handa@m17n.org>
21187
21188 * xdisp.c (handle_auto_composed_prop): Check if the last
21189 characters of auto-composed region is newly composed with the
21190 following characters.
21191 (handle_composition_prop): Fix checking of point being inside
21192 composition.
21193
21194 2008-02-01 Kenichi Handa <handa@m17n.org>
21195
21196 * fns.c (concat): Don't change multibyteness of the result by
21197 concatenating an 8-bit character.
21198
21199 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21200 multibyteness of the result when newelt is an 8-bit character.
21201
21202 2008-02-01 Dave Love <fx@gnu.org>
21203
21204 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21205 EMACS_INT.
21206
21207 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21208
21209 * xfaces.c (face_numeric_value): Declare dim size_t.
21210 (Finternal_lisp_face_equal_p): Remove unused f.
21211
21212 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21213 (MATRIX_ROW): Remove unused vars.
21214 (draw_glyphs, x_insert_glyphs, fast_find_position)
21215 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21216 byte/char counts.
21217
21218 * regex.c (regex_compile): Remove unused var.
21219
21220 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21221
21222 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21223 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21224
21225 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21226
21227 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21228
21229 * fileio.c (Fwrite_region): Remove unused var.
21230
21231 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21232 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21233
21234 * composite.c (Fremove_list_of_text_properties): Declare.
21235
21236 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21237 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21238 (coding_inherit_eol_type): Remove unused attrs.
21239 (detect_coding): Cast arg of detect_eol.
21240
21241 * charset.c (syms_of_charset): Remove unused var p.
21242 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21243 byte/char counts.
21244
21245 * casetab.c (set_case_table): Remove unused var.
21246
21247 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21248 unused vars.
21249
21250 2008-02-01 Dave Love <fx@gnu.org>
21251
21252 * xterm.c (x_bitmap_mask): Declare.
21253
21254 2008-02-01 Dave Love <fx@gnu.org>
21255
21256 * xterm.c (x_term_init): Fix type error.
21257
21258 * lisp.h: Add Funibyte_char_to_multibyte.
21259
21260 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21261 (Fset_coding_system_priority): Doc fix.
21262
21263 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21264
21265 * indent.c (check_composition): Make start and end EMACS_INT.
21266
21267 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21268
21269 * xdisp.c (handle_composition_prop, check_point_in_composition):
21270 Make buffer positions EMACS_INT.
21271
21272 * composite.c (find_composition, run_composition_function)
21273 (update_compositions, Ffind_composition_internal): Make buffer
21274 positions EMACS_INT.
21275
21276 * composite.h (find_composition, update_compositions): Make
21277 position args EMACS_INT.
21278
21279 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21280
21281 * intervals.c (get_property_and_range):
21282 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21283
21284 * unexalpha.c: Don't include varargs.h.
21285
21286 2008-02-01 Dave Love <fx@gnu.org>
21287
21288 * coding.h (ENCODE_UTF_8): New.
21289
21290 * Makefile.in (gtkutil.o): Depend on coding.h.
21291
21292 * coding.c (Fset_coding_system_priority): Doc fix.
21293
21294 2008-02-01 Kenichi Handa <handa@m17n.org>
21295
21296 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21297 the case of auto saving.
21298
21299 2008-02-01 Andreas Schwab <schwab@suse.de>
21300
21301 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21302 `range' from GC.
21303
21304 2008-02-01 Kenichi Handa <handa@m17n.org>
21305
21306 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21307
21308 2008-02-01 Kenichi Handa <handa@m17n.org>
21309
21310 * fileio.c (choose_write_coding_system): Return a decided coding system.
21311 (Fwrite_region): Set Vlast_coding_system_used to the return value
21312 of choose_write_coding_system.
21313
21314 2008-02-01 Kenichi Handa <handa@m17n.org>
21315
21316 * charset.c (Fset_charset_priority): Pay attention to duplicated
21317 arguments.
21318
21319 * coding.c (QCcategory): New variable.
21320 (syms_of_coding): Defsym it. Set all elements of
21321 Vcoding_category_table and their symbol values.
21322 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21323 coding-category-XXX, and coding-category-list.
21324 (Fdefine_coding_system_internal): Add category in the plist.
21325
21326 2008-02-01 Kenichi Handa <handa@m17n.org>
21327
21328 * callproc.c (Fcall_process): Handle carryover correctly.
21329
21330 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21331 (raw_text_coding_system): Check NILP (coding_system).
21332 (coding_inherit_eol_type): Check NILP (coding_system) and
21333 NILP (parent).
21334 (consume_chars): Fix for the case of raw-text.
21335
21336 * process.c (read_process_output): Handle carryover correctly.
21337
21338 2008-02-01 Dave Love <fx@gnu.org>
21339
21340 * regex.c (re_search_2): Fix last change.
21341
21342 2008-02-01 Kenichi Handa <handa@m17n.org>
21343
21344 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21345 target_multibyte. Even in a unibyte case, return a converted
21346 multibyte char.
21347 (GET_CHAR_AFTER): New macro.
21348 (PATFETCH): Translate via multibyte char.
21349 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21350 (SETUP_MULTIBYTE_RANGE): New macro.
21351 (regex_compile): Setup compiled code so that its multibyteness
21352 matches that of a target. Fix the handling of "[X-YZ]" using
21353 SETUP_MULTIBYTE_RANGE.
21354 (analyse_first) <charset>: For filling fastmap for all multibyte
21355 characters, don't check by BASE_LEADING_CODE_P.
21356 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21357 the same as RE_MULTIBYTE_P (bufp) now.
21358 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21359 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21360 (TRANSLATE_VIA_MULTIBYTE): New macro.
21361 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21362 It is the same as RE_MULTIBYTE_P (bufp) now.
21363 <exactn>: Translate via multibyte.
21364 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21365 translate it.
21366 <charset, charset_not>: Fetch a character by
21367 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21368 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21369 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21370 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21371 by GET_CHAR_AFTER.
21372 (bcmp_translate): Likewise.
21373
21374 * search.c (compile_pattern): Check the member target_multibyte,
21375 not the member multibyte of buf.
21376
21377 * lread.c (read1): While reading a string, set force_singlebyte
21378 and force_multibyte correctly.
21379
21380 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21381 up of unibyte_to_multibyte_table.
21382
21383 2008-02-01 Kenichi Handa <handa@m17n.org>
21384
21385 * coding.c (setup_coding_system): If coding has
21386 post-read-conversion or pre-write-conversion, set
21387 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21388 respectively.
21389 (decode_coding_gap): Run post-read-conversion if any.
21390
21391 * fileio.c (Finsert_file_contents): Even if we read into a
21392 unibyte buffer, check if we must decode the result or not.
21393
21394 2008-02-01 Kenichi Handa <handa@m17n.org>
21395
21396 * coding.c (make_conversion_work_buffer): Change the work buffer
21397 name to the same one as that of Emacs 21.
21398
21399 2008-02-01 Kenichi Handa <handa@m17n.org>
21400
21401 * coding.h (make_conversion_work_buffer): Adjust prototype.
21402 (code_conversion_restore): Don't extern it.
21403
21404 * coding.c (detected_mask): Delete unused variable.
21405 (decode_coding_iso_2022): Pay attention to the byte sequence of
21406 CTEXT extended segment, and retain those bytes as is.
21407 (decode_coding_ccl): Delete unused variable `valids'.
21408 (setup_coding_system): Delete unused variable `category'.
21409 (consume_chars): Delete unused variable `category'. Make it work
21410 for non-multibyte case.
21411 (make_conversion_work_buffer): Change argument.
21412 (saved_coding): Delete unused variable.
21413 (code_conversion_restore): Don't check saved_coding->destination.
21414 (code_conversion_save): New function.
21415 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21416 instead of record_unwind_protect.
21417 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21418 (detect_coding_system): Delete unused variable `mask'.
21419 (Fdefine_coding_system_internal): Delete unused variable id.
21420
21421 * fileio.c (kill_workbuf_unwind): New function.
21422 (Finsert_file_contents): On replacing, call
21423 make_conversion_work_buffer with correct args, and call
21424 record_unwind_protect with the first arg kill_workbuf_unwind.
21425
21426 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21427
21428 2008-02-01 Kenichi Handa <handa@m17n.org>
21429
21430 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21431 (fontset_add): Fix for the case that TO is less than TO1.
21432 (Ffontset_info): Don't use fallback fontset on checking the
21433 default fontset.
21434 (dump_fontset): New function for debugging.
21435
21436 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21437 coding_type is Qcharset.
21438
21439 2008-02-01 Kenichi Handa <handa@m17n.org>
21440
21441 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21442 (map_char_table): Don't inherit the value from the parent on
21443 initializing VAL. Adjust for the above change.
21444
21445 2008-02-01 Kenichi Handa <handa@m17n.org>
21446
21447 * coding.c (Qsignature, Qendian): Delete these variables.
21448 (syms_of_coding): Don't initialize them.
21449 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21450 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21451 detect_info->found.
21452 (decode_coding_utf_16): Don't detect BOM here.
21453 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21454 is NOT utf_16_without_bom.
21455 (setup_coding_system): For a coding system of type utf-16, check
21456 if the attribute :endian is Qbig or not (not nil or not), and set
21457 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21458 (detect_coding): If coding type is utf-16 and BOM detection is
21459 required, detect it.
21460 (Fdefine_coding_system_internal): For a coding system of type
21461 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21462
21463 2008-02-01 Kenichi Handa <handa@m17n.org>
21464
21465 * coding.c (coding_set_source): Fix for the case that the current
21466 buffer is different from coding->src_object.
21467 (decode_coding_object): Don't use the conversion work buffer if
21468 DST_OBJECT is a buffer.
21469
21470 2008-02-01 Dave Love <fx@gnu.org>
21471
21472 * lread.c (read_emacs_mule_char) [len==2]: Index
21473 emacs_mule_charset correctly.
21474
21475 2008-02-01 Dave Love <fx@gnu.org>
21476
21477 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21478 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21479 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21480 treated specially.)
21481 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21482 (detected_mask): Remove Big5 bits.
21483
21484 2008-02-01 Kenichi Handa <handa@m17n.org>
21485
21486 The following changes are to make the font rescaling facility
21487 compatible with Emacs 21.
21488
21489 * xfaces.c (Vface_font_rescale_alist): Rename from
21490 Vface_resizing_fonts.
21491 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21492 (font_rescale_ratio): Rename from font_resizing_ratio.
21493 (split_font_name): Set font->rescale_ratio.
21494 (better_font_p): Pay attention to font->rescale_ratio.
21495 (build_scalable_font_name): Likewise. Change RESX, and RESY
21496 fields.
21497 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21498
21499 2008-02-01 Kenichi Handa <handa@m17n.org>
21500
21501 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21502 (Qutf_16_le): Remove these variables.
21503 (syms_of_coding): Don't DEFSYM them.
21504 (decode_coding_utf_16): Fix handling of BOM.
21505 (encode_coding_utf_16): Fix handling of BOM.
21506
21507 2008-02-01 Kenichi Handa <handa@m17n.org>
21508
21509 * fileio.c (Finsert_file_contents): On replacing, before decoding
21510 the file into the work buffer, set point of the work buffer to the end.
21511
21512 2008-02-01 Dave Love <fx@gnu.org>
21513
21514 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21515
21516 2008-02-01 Dave Love <fx@gnu.org>
21517
21518 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21519 and fix C types.
21520
21521 2008-02-01 Kenichi Handa <handa@m17n.org>
21522
21523 * xdisp.c (SKIP_GLYPHS): New macro.
21524 (set_cursor_from_row): Pay attention to string display properties.
21525
21526 * category.c (copy_category_entry): Fix for the case that RANGE
21527 is an integer.
21528
21529 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21530
21531 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21532
21533 2008-02-01 Kenichi Handa <handa@m17n.org>
21534
21535 * charset.c (Fcharset_id_internal): New function.
21536 (syms_of_charset): Defsubr it.
21537
21538 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21539 with the last arg charset_list acquired from coding.
21540 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21541 the attribute coding_attr_ccl_valids.
21542
21543 * coding.h (enum define_coding_ccl_arg_index): Set the first
21544 member coding_arg_ccl_decoder to coding_arg_max.
21545
21546 * ccl.h (ccl_driver): Adjust prototype.
21547
21548 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21549 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
21550 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
21551 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21552 last arg Qnil.
21553
21554 2008-02-01 Kenichi Handa <handa@m17n.org>
21555
21556 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21557 call encode_char.
21558
21559 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21560
21561 2008-02-01 Dave Love <fx@gnu.org>
21562
21563 * composite.c (syms_of_composite): Make composition_hash_table weak.
21564
21565 2008-02-01 Kenichi Handa <handa@m17n.org>
21566
21567 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21568 (font_name_registry): Don't extern them.
21569 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21570
21571 * fontset.h (Qfontset): Don't extern it.
21572 (new_fontset_from_font_name): Extern it.
21573
21574 * fontset.c: Give 8 extra slots to fontset objects.
21575 (Qfontset_info): New variable.
21576 (syms_of_fontset): Defsym it.
21577 (FONTSET_FALLBACK): New macro.
21578 (fontset_face): Try also the default fontset.
21579 (make_fontset): Realize a fallback fontset from the default fontset.
21580 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21581 using split_font_name_into_vector and build_font_name_from_vector.
21582 (Fset_fontset_font): Access the elements of font_spec by enum
21583 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21584 name by using split_font_name_into_vector.
21585 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21586 generate a proper font name from the fontset name. Update
21587 Vfontset_alias_alist.
21588 (n_auto_fontsets): New variable.
21589 (new_fontset_from_font_name): New function.
21590 (Ffont_info): Store the information about fonts generated from the
21591 default fontset in the first extra slot of the returned char-table.
21592
21593 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21594 (font_name_registry): Delete function.
21595 (split_font_name_into_vector): New function.
21596 (build_font_name_from_vector): New function.
21597 (font_list): The argument REGISTRY is now a list of registry names.
21598 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21599 specifies an explicit font name, return the name as is. Make a
21600 list of registy names.
21601
21602 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21603 of x_new_fontset.
21604 (Fx_create_frame): Don't call x_new_fontset here. Just use
21605 x_list_fonts to check the existence of fonts.
21606
21607 * xterm.h (x_new_fontset): Adjust prototype.
21608
21609 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21610 string. Use new_fontset_from_font_name to create a fontset from a
21611 font name.
21612
21613 2008-02-01 Kenichi Handa <handa@m17n.org>
21614
21615 * syntax.c (Vfind_word_boundary_function_table): New name for
21616 Vnext_word_boundary_function_table.
21617 (find-word-boundary-function-table): New name for
21618 next-word-boundary-function-table.
21619
21620 2008-02-01 Dave Love <fx@gnu.org>
21621
21622 * Makefile.in: Fix some dependencies.
21623
21624 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21625 set it to nil before returning.
21626
21627 * composite.c (update_compositions): Fix type error.
21628
21629 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21630
21631 2008-02-01 Kenichi Handa <handa@m17n.org>
21632
21633 * xterm.c (x_new_font): Optimize for the case that the font is
21634 already set for the frame.
21635
21636 2008-02-01 Kenichi Handa <handa@m17n.org>
21637
21638 * chartab.c (char_table_ascii): Check if the char table contents
21639 is sub-char-table or not.
21640 (char_table_set, char_table_set_range): Fix argument to
21641 char_table_ascii.
21642
21643 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21644 (detect_coding_utf_8, detect_coding_utf_16)
21645 (detect_coding_emacs_mule, detect_coding_iso_2022)
21646 (detect_coding_sjis, detect_coding_big5)
21647 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21648 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21649 sequence is valid in this coding system. Change callers.
21650 (MAX_ANNOTATION_LENGTH): New macro.
21651 (ADD_ANNOTATION_DATA): New macro.
21652 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21653 ADD_ANNOTATION_DATA. Change the format of annotation data.
21654 (ADD_CHARSET_DATA): New macro.
21655 (emacs_mule_char): New argument ID. Change callers.
21656 (decode_coding_emacs_mule, decode_coding_iso_2022)
21657 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21658 Produce charset annotation data in coding->charbuf.
21659 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21660 to charset annotation data in coding->charbuf.
21661 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21662 coding->common_flags if the coding system is iso-2022 based and
21663 uses designation.
21664 (produce_composition): Adjust for the new annotation data format.
21665 (produce_charset): New function.
21666 (produce_annotation): Handle charset annotation.
21667 (handle_composition_annotation, handle_charset_annotation): New
21668 functions.
21669 (consume_chars): Handle charset annotation. Utilize the above two
21670 functions.
21671 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21672 buffer, get the deleted text as a string and set
21673 coding->src_object to that string.
21674 (detect_coding, detect_coding_system): Use the new struct
21675 coding_detection_info.
21676
21677 * coding.h (struct coding_detection_info): New structure.
21678 (struct coding_system): Adjust prototype of the member `detector'.
21679 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21680
21681 2008-02-01 Kenichi Handa <handa@m17n.org>
21682
21683 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21684
21685 2008-02-01 Dave Love <fx@gnu.org>
21686
21687 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21688 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21689 to new local and nullify apropos_accumulate before returning.
21690 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21691
21692 2008-02-01 Kenichi Handa <handa@m17n.org>
21693
21694 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21695 correctly.
21696
21697 2008-02-01 Dave Love <fx@gnu.org>
21698
21699 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21700
21701 2008-02-01 Kenichi Handa <handa@m17n.org>
21702
21703 The following changes are to make character composition happen
21704 automatically on displaying.
21705
21706 * Makefile.in (lisp, shortlisp): Add composite.elc.
21707
21708 * composite.h (Qauto_composed, Vauto_composition_function)
21709 (Qauto_composition_function): Extern them.
21710
21711 * composite.c (Vcomposition_function_table)
21712 (Qcomposition_function_table): Delete variables.
21713 (Qauto_composed, Vauto_composition_function)
21714 (Qauto_composition_function): New variables.
21715 (run_composition_function): Don't call
21716 compose-chars-after-function.
21717 (update_compositions): Clear `auto-composed' text property.
21718 (compose_chars_in_text): Delete this function.
21719 (syms_of_composite): Staticpro Qauto_composed and
21720 Qauto_composition_function. Declare Vauto_composition_function as
21721 a Lisp variable.
21722
21723 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21724
21725 * xdisp.c (it_props): Add an entry for Qauto_composed.
21726 (handle_auto_composed_prop): New function.
21727
21728 * xselect.c (selection_data_to_lisp_data): Don't call
21729 compose_chars_in_text.
21730
21731 2008-02-01 Dave Love <fx@gnu.org>
21732
21733 * keyboard.c (read_char): Modify checking around use of
21734 Vkeyboard_translate_table.
21735
21736 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21737 and fix C types.
21738
21739 2008-02-01 Kenichi Handa <handa@m17n.org>
21740
21741 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21742 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21743 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21744 the case that the last byte is '\r' correctly.
21745 (decode_coding): Flush out the unprocessed data correctly.
21746 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21747
21748 2008-02-01 Dave Love <fx@gnu.org>
21749
21750 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21751 Add XK_ISO... case.
21752 (xaw_scroll_callback): Revert last change.
21753
21754 2008-02-01 Kenichi Handa <handa@m17n.org>
21755
21756 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21757
21758 2008-02-01 Kenichi Handa <handa@m17n.org>
21759
21760 * xfaces.c (Vface_resizing_fonts): New variable.
21761 (struct font_name): New member `resizing_ratio'.
21762 (font_resizing_ratio): New function.
21763 (split_font_name): Set font->resizing_ratio.
21764 (better_font_p): Pay attention to font->resizing_ratio.
21765 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21766 RESX, and RESY fields.
21767 (try_alternative_families): Try scalable fonts if
21768 Vscalable_fonts_allowed is not Qt.
21769 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21770
21771 2008-02-01 Dave Love <fx@gnu.org>
21772
21773 * xterm.c (xaw_scroll_callback): Cast correctly.
21774
21775 2008-02-01 Dave Love <fx@gnu.org>
21776
21777 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21778 (lispy_kana_keys): Comment out.
21779 (make_lispy_event) [XK_kana_A]: Comment out.
21780
21781 * xterm.c (xaw_scroll_callback): Cast call_data.
21782 (XTread_socket): Deal with ASCII keysyms.
21783 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21784
21785 2008-02-01 Dave Love <fx@gnu.org>
21786
21787 * xterm.c (Vx_keysym_table): New.
21788 (syms_of_xterm): Initialize it.
21789 (XTread_socket): Use it.
21790 From head: Eliminate incorrect optimization that tried to avoid
21791 decoding the output of X*LookupString.
21792 (x_get_font_repertory): Delete charset declaration.
21793
21794 2008-02-01 Kenichi Handa <handa@m17n.org>
21795
21796 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21797 return 0.
21798 (Fdefine_coding_system_internal): Setup
21799 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21800
21801 2008-02-01 Dave Love <fx@gnu.org>
21802
21803 * coding.c (Fcheck_coding_system): Doc fix.
21804
21805 * editfns.c (Finsert_byte): Return a proper value.
21806
21807 2008-02-01 Kenichi Handa <handa@m17n.org>
21808
21809 * coding.c (decode_coding): Fix args to translate_chars. Pay
21810 attention to Vstandard_translation_table_for_decode.
21811 (encode_coding): Fix args to translate_chars. Pay attention to
21812 Vstandard_translation_table_for_encode.
21813
21814 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21815 SINGLE_BYTE_CHAR_P.
21816
21817 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21818 not by SINGLE_BYTE_CHAR_P.
21819
21820 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21821 SINGLE_BYTE_CHAR_P.
21822
21823 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21824 SINGLE_BYTE_CHAR_P.
21825
21826 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21827 by SINGLE_BYTE_CHAR_P.
21828
21829 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21830 SINGLE_BYTE_CHAR_P.
21831
21832 2008-02-01 Dave Love <fx@gnu.org>
21833
21834 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21835
21836 2008-02-01 Dave Love <fx@gnu.org>
21837
21838 * fns.c (Flanginfo): Fix typo.
21839
21840 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21841
21842 2008-02-01 Kenichi Handa <handa@m17n.org>
21843
21844 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21845 (detect_coding_emacs_mule, detect_coding_iso_2022)
21846 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21847 incomplete byte sequence. Don't update *mask when correctly detected.
21848 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21849 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21850 (detect_coding, detect_coding_system): Adjust for the changes above.
21851
21852 2008-02-01 Kenichi Handa <handa@m17n.org>
21853
21854 * character.c (char_string): Rename from
21855 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21856 (string_char): Rename from string_char.
21857
21858 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21859 if C is greater than MAX_3_BYTE_CHAR.
21860 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21861 string_char instead of string_char_with_unification.
21862
21863 2008-02-01 Dave Love <fx@gnu.org>
21864
21865 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21866
21867 2008-02-01 Kenichi Handa <handa@m17n.org>
21868
21869 * keymap.c (push_key_description): Pay attention to force_multibyte.
21870
21871 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21872
21873 2008-02-01 Dave Love <fx@gnu.org>
21874
21875 * charset.c (define_charset_internal): Rename `supprementary'.
21876
21877 * Makefile.in (lisp, shortlisp): Remove latin-N.
21878
21879 2008-02-01 Dave Love <fx@gnu.org>
21880
21881 * xfns.c (x_window, x_window): Use use_xim.
21882
21883 * xterm.c (use_xim): Initialize.
21884 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21885 (x_term_init): Maybe set use_xim.
21886
21887 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21888
21889 2008-02-01 Kenichi Handa <handa@m17n.org>
21890
21891 * search.c (search_buffer): Fix case-fold-search of multibyte
21892 characters.
21893 (boyer_moore): Rename the last argument to char_high_bits.
21894
21895 2008-02-01 Kenichi Handa <handa@m17n.org>
21896
21897 * xdisp.c (display_string): Fix for the case of zero width glyph.
21898
21899 * xfns.c (x_set_font): Change the error message of the case that
21900 x_new_fontset returns Qt.
21901
21902 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21903 (Finternal_set_lisp_face_attribute): Use signal_error for the
21904 error of invalid fontset.
21905
21906 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21907 fontset, return Qt.
21908
21909 2008-02-01 Dave Love <fx@gnu.org>
21910
21911 * unexelf.c (unexec): Make .got handling not SGI-specific.
21912
21913 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21914
21915 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21916
21917 * keyboard.c (read_key_sequence): Fix type error.
21918
21919 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21920 type error.
21921
21922 * fontset.c (fontset_add): Return Lisp_Object.
21923
21924 2008-02-01 Dave Love <fx@gnu.org>
21925
21926 * charset.h (charset_ordered_list_tick): Declare extern.
21927
21928 2008-02-01 Kenichi Handa <handa@m17n.org>
21929
21930 The following changes (and some of 2008-02-01 changes of mine) are
21931 for handling syntax, category, and case conversion for unibyte
21932 characters by converting them to multibyte on the fly. With these
21933 changes, we don't have to setup syntax and case tables for unibyte
21934 characters in each language environment.
21935
21936 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21937 multibyte if necessary.
21938
21939 * bytecode.c (Fbyte_code): Likewise.
21940
21941 * character.h (LEADING_CODE_LATIN_1_MIN)
21942 (LEADING_CODE_LATIN_1_MAX): New macros.
21943 (unibyte_to_multibyte_table): Extern it.
21944 (unibyte_char_to_multibyte): New macro.
21945 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21946 (CHAR_LEADING_CODE): New macro.
21947 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21948
21949 * character.c (unibyte_to_multibyte_table): New variable.
21950 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21951 (multibyte_char_to_unibyte): If C is an eight-bit character,
21952 convert it to the corresponding byte value.
21953
21954 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21955 not 1, signals an error. Update the elements of
21956 unibyte_to_multibyte_table.
21957 (init_charset_once): Initialize unibyte_to_multibyte_table.
21958 (syms_of_charset): Define the charset `iso-8859-1'.
21959
21960 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21961 as is without converting it to unibyte. In a unibyte buffer,
21962 convert C to multibyte before checking the syntax.
21963
21964 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21965
21966 * minibuf.c (Fminibuffer_complete_word): Use the macro
21967 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21968
21969 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21970
21971 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21972 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21973 that is zero, convert an eight-bit char to multibyte.
21974 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21975 non-emacs case.
21976 (PATFETCH): Convert an eight-bit char to multibyte.
21977 (HANDLE_UNIBYTE_RANGE): New macro.
21978 (regex_compile): Setup the compiled pattern for multibyte chars
21979 even if the given regex string is unibyte. Use PATFETCH_RAW
21980 instead of PATFETCH in many places. To handle `charset'
21981 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21982 only for ASCII chars.
21983 (analyse_first) <exactn>: Simplify because the compiled pattern
21984 is multibyte.
21985 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21986 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21987 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21988 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21989 multibyte always 1.
21990 (re_search_2): In emacs, set the locale variable multibyte to 1,
21991 otherwise to 0. New local variable target_multibyte. Check it
21992 to decide the multibyteness of STR1 and STR2. If
21993 target_multibyte is zero, convert unibyte chars to multibyte
21994 before translating and checking fastmap.
21995 (TARGET_CHAR_AND_LENGTH): New macro.
21996 (re_match_2_internal): In emacs, set the locale variable multibyte
21997 to 1, otherwise to 0. New local variable target_multibyte. Check
21998 it to decide the multibyteness of STR1 and STR2. Use
21999 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22000 <charset, charset_not>: If multibyte is nonzero, check fastmap
22001 only for ASCII chars. Call bcmp_translate with
22002 target_multibyte, not with multibyte.
22003 <begline>: Declare the local variable C as `unsigned'.
22004 (bcmp_translate): Change the last arg name to target_multibyte.
22005
22006 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22007 the regexp pattern and the matching target. Set cp->buf.multibyte
22008 to the multibyteness of the regexp pattern. Set
22009 cp->but.target_multibyte to the multibyteness of the matching target.
22010 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22011 FETCH_STRING_CHAR_ADVANCE.
22012 (Freplace_match): Convert unibyte chars to multibyte.
22013
22014 * syntax.c (char_quoted, back_comment, scan_words)
22015 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22016 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22017 unibyte chars to multibyte.
22018 (skip_chars): Delete the arg syntaxp, and move the code for
22019 handling syntaxes to skip_syntaxes. Change callers.
22020 Fix the case that the multibyteness of STRING and the current
22021 buffer doesn't match.
22022 (skip_syntaxes): New function.
22023 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22024 SINGLE_BYTE_CHAR_P.
22025
22026 2008-02-01 Kenichi Handa <handa@m17n.org>
22027
22028 * xfaces.c (QCfontset): New variable.
22029 (LFACE_FONTSET): New macro.
22030 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22031 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22032 (Finternal_set_lisp_face_attribute)
22033 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22034 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22035 check also LFACE_FONTSET_INDEX.
22036 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22037 attrs[LFACE_FONT_INDEX].
22038 (syms_of_xfaces): Intern and staticpro QCfontset.
22039
22040 * dispextern.h (enum lface_attribute_index): New member
22041 LFACE_FONTSET_INDEX.
22042
22043 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22044
22045 2008-02-01 Kenichi Handa <handa@m17n.org>
22046
22047 * coding.c (coding_set_destination): Fix coding->destination for
22048 the case converting a region.
22049 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22050 (encode_coding_object): Fix coding->dst_pos and
22051 coding->dst_pos_byte for the case converting a region.
22052
22053 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22054
22055 * character.h (BYTE8_STRING): New macro.
22056
22057 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22058
22059 2008-02-01 Kenichi Handa <handa@m17n.org>
22060
22061 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22062 characters by octal form.
22063
22064 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22065
22066 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22067 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22068 _fetch_multibyte_char_len.
22069 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22070
22071 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22072
22073 * casefiddle.c (casify_object): Simplify. Handle the case that
22074 the case conversion change the byte length.
22075 (casify_region): Likewise.
22076
22077 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22078
22079 * character.c (_fetch_multibyte_char_len): Delete this variable.
22080 (syms_of_character): Setup Vprintable_chars.
22081
22082 * editfns.c (Fchar_equal): Fix for the unibyte case.
22083 (Finsert_byte): New function.
22084 (syms_of_editfns): Defsubr it.
22085
22086 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22087 of direct code 0x3ffff.
22088
22089 * search.c (Freplace_match): Fix for the unibyte case.
22090
22091 2008-02-01 Kenichi Handa <handa@m17n.org>
22092
22093 * lread.c (safe_to_load_p): Fix the logic.
22094
22095 * syntax.c (scan_words): Don't treat characters belonging to
22096 different scripts as constituting a word.
22097
22098 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22099
22100 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22101
22102 * emacs.c (main): In the case of --unibyte, instead of aborting on
22103 finding non-empty buffer, make it unibyte.
22104
22105 2008-02-01 Kenichi Handa <handa@m17n.org>
22106
22107 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22108 to create a fontset.
22109
22110 2008-02-01 Dave Love <fx@gnu.org>
22111
22112 * character.c (Funibyte_char_to_multibyte): Doc fix.
22113
22114 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22115
22116 2008-02-01 Kenichi Handa <handa@m17n.org>
22117
22118 * fontset.c (fontset_add): Make the type `int'.
22119 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22120
22121 * character.c (unibyte_char_to_multibyte)
22122 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22123 charset_unibyte, not charset_primary.
22124
22125 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22126
22127 * charset.c (charset_unibyte): Rename from charset_primary.
22128 (Funibyte_charset): Rename from Fprimary_charset.
22129 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22130 (syms_of_charset): Adjust for the above changes.
22131
22132 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22133 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22134 it->multibyte_p is zero.
22135
22136 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22137 Delete extern.
22138
22139 2008-02-01 Kenichi Handa <handa@m17n.org>
22140
22141 * coding.c (Fdefine_coding_system_internal): Fix category setting
22142 for a coding system of type iso-2022.
22143
22144 2008-02-01 Kenichi Handa <handa@m17n.org>
22145
22146 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22147
22148 2008-02-01 Kenichi Handa <handa@m17n.org>
22149
22150 * syntax.c (Vnext_word_boundary_function_table): New variable.
22151 (next-word-boundary-function-table): Declare it as a Lisp variable
22152 in syms_of_syntax.
22153 (scan_words): Call functions in Vnext_word_boundary_function_table
22154 if any.
22155
22156 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22157
22158 * fontset.c (fs_load_font): If fontp->charset is not negative,
22159 return fontp without setting its members.
22160
22161 2008-02-01 Dave Love <fx@gnu.org>
22162
22163 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22164
22165 * m/sparc.h (HAVE_ALLOCA): Delete.
22166
22167 * s/irix6-5.h: Don't include strings.h.
22168 (bcopy, bzero, bcmp): Don't undef.
22169
22170 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22171
22172 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22173 (TIOCSIGSEND): Don't test IRIX6.
22174 (bcopy, bzero, bcmp): Define conditionally.
22175
22176 2008-02-01 Kenichi Handa <handa@m17n.org>
22177
22178 * buffer.c (Qas, Qmake, Qto): New variables.
22179 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22180 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22181
22182 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22183 we are inserting a process output into a multibyte buffer.
22184
22185 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22186 multibyte_char_to_unibyte.
22187
22188 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22189 by the primary charset, make it eight-bit char.
22190 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22191
22192 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22193 (charset_8_bit__control, charset_8_bit_graphic)
22194 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22195 (define_charset_internal): New function.
22196 (syms_of_charset): Call define_charset_internal for pre-defined
22197 charsets.
22198
22199 * charset.h (charset_8_bit): Extern it.
22200
22201 * coding.c (make_conversion_work_buffer): Adjust for the change
22202 of Fset_buffer_multibyte.
22203 (encode_coding_raw_text): Increment p0 in the loop.
22204
22205 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22206
22207 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22208 for the change of Fset_buffer_multibyte.
22209
22210 * fns.c (Fstring_to_multibyte): New function.
22211 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22212
22213 2008-02-01 Dave Love <fx@gnu.org>
22214
22215 * xfns.c (x_put_x_image): Declare args.
22216
22217 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22218 (try_font_list): Declare an arg.
22219
22220 * xdisp.c (message2_nolog, set_message): Declare an arg.
22221
22222 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22223
22224 * syntax.c (scan_sexps_forward): Declare an arg.
22225
22226 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22227 Declare an arg.
22228
22229 * lisp.h (Fnew_fontset): Declare.
22230
22231 * keymap.c (push_key_description): Call CHARACTERP correctly.
22232
22233 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22234 (face_for_char): Delete unused vars.
22235 (Fset_fontset_font): Doc fix. Delete unused vars.
22236
22237 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22238
22239 * composite.c (update_compositions): Declare arg.
22240
22241 * cm.c (calccost, cmgoto): Declare args.
22242
22243 * charset.c: Remove `emacs' conditional. Doc fixes.
22244 (map_char_table_for_charset): Declare.
22245
22246 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22247
22248 * ccl.c: Remove `emacs' conditional.
22249
22250 2008-02-01 Kenichi Handa <handa@m17n.org>
22251
22252 The following changes are to allow specifying multiple font
22253 patterns for a character range (specified by script or charset).
22254
22255 * Makefile.in (abbrev.o): Depend on syntax.h.
22256 (xfaces.o): Depend on charset.h.
22257
22258 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22259 SINGLE_BYTE_CHAR_P.
22260
22261 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22262
22263 * character.h (Vchar_script_table): Extern it.
22264
22265 * character.c (Vscript_alist): Delete.
22266 (Vchar_script_table, Qchar_script_table): New variable.
22267 (syms_of_character): Declare Vchar_script_table as a lisp variable
22268 and initialize it.
22269
22270 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22271 have property char-table-extra-slots, make no extra slot.
22272
22273 * dispextern.h (struct face): Delete member `charset'.
22274 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22275 SINGLE_BYTE_CHAR_P.
22276 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22277 Add prototypes.
22278 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22279 (generate_ascii_font_name): Rename from generate_ascii_font.
22280
22281 * fontset.h (get_font_repertory_func): New prototype.
22282 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22283 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22284
22285 * fontset.c (Qprepend, Qappend): New variables.
22286 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22287 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22288 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22289 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22290 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22291 (load_font_get_repertory): New functions.
22292 (fontset_set): Delete.
22293 (fontset_face): New arg FACE. Return face ID, not face.
22294 Complete re-write to handle new fontset structure. Change caller.
22295 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22296 (face_for_char): Don't call lookup_face.
22297 (make_fontset_for_ascii_face): New arg FACE.
22298 (fs_load_font): New arg CHARSET_ID. Don't check
22299 Vfont_encoding_alist here.
22300 (find_font_encoding): New function.
22301 (list_fontsets): Use STRINGP, not ! NILP.
22302 (accumulate_script_ranges): New function.
22303 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22304 re-written to handle new fontset structure.
22305 (Ffontset_font): Return a copy of element.
22306 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22307 docstring of font-encoding-alist.
22308
22309 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22310 (Fset_fotset_font): Fix arguments to 5.
22311
22312 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22313
22314 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22315 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22316 (highlight_trailing_whitespace): Adjust for the change of
22317 lookup_named_face.
22318
22319 * xfaces.c: Include charset.h.
22320 (load_face_font): Delete argument C. Change caller.
22321 (generate_ascii_font_name): Rename from generate_ascii_font.
22322 (font_name_registry): New function.
22323 (cache_face): Store ascii faces before non-ascii faces in buckets.
22324 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22325 Lookup only ascii faces.
22326 (lookup_non_ascii_face): New function.
22327 (lookup_named_face): Delete argument C. Change caller.
22328 (lookup_derived_face): Delete argument C. Change caller.
22329 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22330 a string, just call font_list with it.
22331 (choose_face_font): Delete arguments FACE and C. New arg
22332 FONT_SPEC. Change caller.
22333 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22334 Change caller.
22335 (realize_non_ascii_face): New function.
22336 (realize_x_face): Call load_face_font here.
22337 (realize_tty_face): Delete argument C. Change caller.
22338 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22339 get a face ID.
22340 (dump_realized_face): Don't print charset of FACE.
22341
22342 * xfns.c (x_set_font): Always call x_new_fontset and
22343 store_frame_parameter.
22344 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22345 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22346
22347 * xterm.h (x_get_font_repertory): Extern it.
22348
22349 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22350 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22351 it->multibyte_p is zero.
22352 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22353 (x_new_fontset): If FONTSETNAME doesn't match any existing
22354 fontsets, create a new one.
22355 (x_get_font_repertory): New function.
22356
22357 2008-02-01 Kenichi Handa <handa@m17n.org>
22358
22359 * coding.c (Ffind_coding_systems_region_internal): Detect an
22360 ASCII only string correctly.
22361
22362 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22363 version is 0.
22364
22365 2008-02-01 Kenichi Handa <handa@m17n.org>
22366
22367 * lread.c: Include "coding.h".
22368 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22369 (load_each_byte, unread_char): New variables.
22370 (readchar_backlog): Delete.
22371 (readchar): Return a character unless load_each_byte is nonzero.
22372 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22373 cons. If unread_char is not -1, simply return it.
22374 (unreadchar): Handle the case that readcharfun is
22375 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22376 (read_multibyte): Delete.
22377 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22378 (read_emacs_mule_char): New functions.
22379 (Fload): Even if the file doesn't have the extension ".elc", if
22380 safe_to_load_p returns a positive version number, assume that the
22381 file contains bytecompiled code. If the version is less than 22,
22382 load the file while decoding multibyte sequences by emacs-mule.
22383 (readevalloop): Don't use readchar_backlog.
22384 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22385 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22386 (read_escape): Delete the arg BYTEREP.
22387 (read1): Set load_each_byte to 1 temporarily while handling
22388 #@NUMBER. Don't call read_multibyte.
22389 (read_vector): Call Fread with a cons. If readcharfun is
22390 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22391 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22392 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22393 and Qload_force_doc_strings.
22394
22395 2008-02-01 Kenichi Handa <handa@m17n.org>
22396
22397 * xdisp.c (face_before_or_after_it_pos): Call
22398 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22399
22400 2008-02-01 Kenichi Handa <handa@m17n.org>
22401
22402 * character.h (TRAILING_CODE_P): New macro.
22403 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22404 (string_char_with_unification): Fix prototype.
22405 (Vscript_alist): Extern it.
22406
22407 * character.c (Vscript_alist): New variable.
22408 (string_char_with_unification, str_as_unibyte)
22409 (string_escape_byte8): Add `const' to local variables.
22410 (syms_of_character): Declare script-alist as a Lisp variable.
22411
22412 * charset.h (Vcharset_ordered_list): Extern it.
22413 (charset_ordered_list_tick): Extern it.
22414 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22415 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22416 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22417 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22418 (Funify_charset): Adjust for the change of Funify_charset.
22419
22420 * charset.c (charset_ordered_list_tick): New variable.
22421 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22422 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
22423 deunify instead of unify a charset.
22424 (string_xstring_p): Add `const' to local variables.
22425 (find_charsets_in_text): Add `const' to arguments and local variables.
22426 (encode_char): Adjust for the change of Funify_charset. Fix
22427 detecting of invalid code.
22428 (Fset_charset_priority): Increment charset_ordered_list_tick.
22429 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22430 and TO_CODE.
22431
22432 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22433 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22434 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22435 (decode_coding_ccl, consume_chars)
22436 (Ffind_coding_systems_region_internal)
22437 (Fcheck_coding_systems_region): Add `const' to local variables.
22438
22439 * print.c (print_object): Use octal form for printing the
22440 contents of a bool vector.
22441
22442 2008-02-01 Dave Love <fx@gnu.org>
22443
22444 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22445 <version == 20>: Refuse to load.
22446
22447 2008-02-01 Dave Love <fx@gnu.org>
22448
22449 * fns.c: Move coding.h.
22450 (Qcodeset, Qdays, Qmonths): New.
22451 (concat): Use CHARACTERP instead of INTEGERP.
22452 (Flocale_codeset): Delete.
22453 (Flanginfo): New function.
22454 (syms_of_fns): Change accordingly.
22455
22456 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22457
22458 2008-02-01 Dave Love <fx@gnu.org>
22459
22460 * casetab.c (init_casetab_once, init_casetab_once): Fix
22461 CHAR_TABLE_SET call.
22462
22463 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22464
22465 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22466
22467 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22468 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22469 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22470
22471 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22472
22473 * coding.c (ENCODE_DESIGNATION, decode_eol)
22474 (make_conversion_work_buffer, code_conversion_restore)
22475 (Fdefine_coding_system_internal): Convert Lisp types.
22476 (code_conversion_restore): Use EQ, not ==.
22477 (Fencode_coding_string): Fix code_convert_string call.
22478
22479 * coding.h (code_convert_region): Fix prototype.
22480
22481 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22482
22483 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22484 (Ffontset_info): Convert Lisp types.
22485
22486 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22487
22488 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22489
22490 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22491
22492 * chartab.c: Include "...h", not <...h> in some cases.
22493
22494 * callproc.c (Fcall_process): Remove unused variables.
22495
22496 2008-02-01 Dave Love <fx@gnu.org>
22497
22498 * coding.c (Fset_coding_system_priority): Allow null arg list.
22499
22500 2008-02-01 Dave Love <fx@gnu.org>
22501
22502 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22503 (Fself_insert_and_exit): Use CHARACTERP.
22504
22505 * callproc.c (Fcall_process): Remove unused vars.
22506
22507 * xterm.c (XTread_socket): Add extra dead keysyms.
22508
22509 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22510
22511 * dispextern.h: Remove prototypes for redraw_frame,
22512 redraw_garbaged_frames.
22513
22514 * cmds.c (Fself_insert_command): Use CHARACTERP.
22515
22516 * chartab.c (make_sub_char_table): Remove unused var.
22517 (Fset_char_table_default, Fmap_char_table): Doc fix.
22518
22519 * keymap.c (access_keymap): Remove generic char code.
22520 (push_key_description): Use CHARACTERP.
22521
22522 2008-02-01 Dave Love <fx@gnu.org>
22523
22524 * charset.c: Doc fixes.
22525 (Funify_charset): Extra checking.
22526
22527 2008-02-01 Dave Love <fx@gnu.org>
22528
22529 * lread.c: Remove some unused variables.
22530 (safe_to_load_p): If safe, return the magic number version byte.
22531 (Fload): Maybe use load-with-code-conversion.
22532
22533 2008-02-01 Kenichi Handa <handa@m17n.org>
22534
22535 * category.c (Fmodify_category_entry): Don't modify the contents
22536 of category_set for characters out of the range. Avoid
22537 unnecessary modification.
22538
22539 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22540 Vchar_unify_table. The default value of the table is now nil.
22541
22542 * character.c (syms_of_character): Setup Vchar_width_table for
22543 eight-bit-control and raw-byte chars.
22544
22545 * charset.h (enum define_charset_arg_index): Delete
22546 charset_arg_parents and add charset_arg_subset and
22547 charset_arg_superset.
22548 (enum charset_attr_index): Delete charset_parents and add
22549 charset_subset and charset_superset.
22550 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22551 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22552 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22553 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22554 (CHARSET_SUPERSET): New macros.
22555 (charset_work): Extern it.
22556 (ENCODE_CHAR): Use charset_work.
22557 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22558 (map_charset_chars): Extern it.
22559
22560 * charset.c (load_charset_map): Set the default value of encoder
22561 and deunifier char-tables to nil.
22562 (map_charset_chars): Change argument. Change callers. Use
22563 map_char_table_for_charset instead of map_char_table.
22564 (Fmap_charset_chars): New optional args from_code and to_code.
22565 (Fdefine_charset_internal): Adjust for the change of
22566 `define-charset' (:parents -> :subset or :superset).
22567 (charset_work): New variable.
22568 (encode_char, syms_of_charset): Adjust for the change of
22569 Fdefine_charset_internal.
22570 (Ffind_charset_string): Setup the vector `charsets' correctly.
22571
22572 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22573 the previous change.
22574 (char_table_ref_and_range): Adjust for the above change.
22575 (map_sub_char_table_for_charset): New function.
22576 (map_char_table_for_charset): New function.
22577
22578 * keymap.c (describe_vector): Handle a char-table directly here.
22579 (describe_char_table): Delete.
22580
22581 * lisp.h (map_charset_chars): Delete.
22582
22583 2008-02-01 Dave Love <fx@gnu.org>
22584
22585 * fns.c (count_combining): Comment out (unused).
22586 (Flocale_codeset): New.
22587 (syms_of_fns): Defsubr it.
22588
22589 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22590 (size_t): Remove.
22591
22592 2008-02-01 Dave Love <fx@gnu.org>
22593
22594 * Makefile.in (chartab.o): Depend on charset.h.
22595
22596 2008-02-01 Kenichi Handa <handa@m17n.org>
22597
22598 * character.c (syms_of_character): Set the default value of
22599 Vprintable_chars to Qnil.
22600
22601 2008-02-01 Dave Love <fx@gnu.org>
22602
22603 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22604
22605 2008-02-01 Kenichi Handa <handa@m17n.org>
22606
22607 * charset.c (load_charset_map): Handle the case that from < to
22608 correctly.
22609
22610 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22611 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22612 Pay attention to raw-8-bit chars.
22613
22614 2008-02-01 Kenichi Handa <handa@m17n.org>
22615
22616 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22617 It is not bytecompiled now.
22618
22619 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22620 (charset_jisx0208): New variables.
22621 (Fdefine_charset_internal): Setup them if appropriate.
22622 (init_charset_once): Initialize them to -1.
22623
22624 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22625 (charset_jisx0208): Extern them.
22626
22627 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22628 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22629 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22630 (setup_iso_safe_charsets): Fix arguments to Fassq.
22631 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22632 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22633 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22634 (encode_coding_iso_2022): Change the 1st arg to
22635 ENCODE_ISO_CHARACTER to a variable.
22636
22637 2008-02-01 Kenichi Handa <handa@m17n.org>
22638
22639 * charset.h (enum define_charset_arg_index): New enums
22640 charset_arg_min_code and charset_arg_max_code.
22641 (struct charset): New member char_index_offset.
22642
22643 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22644 Take charset->char_index_offset into account.
22645 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22646 args[charset_arg_max_code]. Setup charset.char_index_offset.
22647 (syms_of_charset): Fix args to Fdefine_charset_internal.
22648
22649 2008-02-01 Dave Love <fx@gnu.org>
22650
22651 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22652
22653 2008-02-01 Dave Love <fx@gnu.org>
22654
22655 * coding.c: Doc fixes.
22656 (Fcoding_system_aliases): Fix return value.
22657 (Qmac): Remove (duplicated) definition.
22658
22659 2008-02-01 Dave Love <fx@gnu.org>
22660
22661 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22662 New functions.
22663
22664 * character.c (Fstring): Doc fix.
22665
22666 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22667
22668 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
22669 (font-encoding-alist): Doc fix.
22670
22671 2008-02-01 Dave Love <fx@gnu.org>
22672
22673 * term.c (costs_set): Declare static, non-initialized for pcc.
22674 (encode_terminal_code): Remove unused var.
22675
22676 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22677 for K&R.
22678
22679 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22680
22681 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22682 (suffixes): Move out of make_subsidiaries for K&R.
22683
22684 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22685
22686 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22687
22688 2008-02-01 Dave Love <fx@gnu.org>
22689
22690 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22691
22692 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22693
22694 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
22695
22696 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22697
22698 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22699
22700 2008-02-01 Kenichi Handa <handa@m17n.org>
22701
22702 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22703 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22704
22705 2008-02-01 Kenichi Handa <handa@m17n.org>
22706
22707 * coding.c (decode_coding_charset): Adjust for the change of
22708 Fdefine_coding_system_internal.
22709 (Fdefine_coding_system_internal): For a coding system of
22710 `charset' type, store a list of charset IDs in
22711 `charset_attr_charset_valids' element of coding attributes.
22712
22713 2008-02-01 Kenichi Handa <handa@m17n.org>
22714
22715 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22716 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22717 caller. Handle 2-byte and 3-byte charsets correctly.
22718 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22719 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22720 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22721 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22722 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22723 sequence.
22724 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22725 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22726 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22727 and alt&rule composition.
22728 (decode_coding_iso_2022): Handle composition correctly.
22729 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22730
22731 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22732 re-defining a charset. If the charset has :emacs-mule-id, setup
22733 emacs_mule_bytes.
22734 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22735
22736 2008-02-01 Kenichi Handa <handa@m17n.org>
22737
22738 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22739 (encode_coding_big5, encode_coding_charset): If coding requires safe
22740 encoding, produce a character specified by
22741 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22742
22743 2008-02-01 Dave Love <fx@gnu.org>
22744
22745 * xterm.c (XSetIMValues): Declare.
22746
22747 * process.c: Conditionally include sys/wait.h, pty.h.
22748
22749 * print.c (print_object): Fix print format for 64-bit systems.
22750
22751 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22752
22753 * buffer.c (emacs_strerror): Declare.
22754
22755 * fontset.c (Fclear_face_cache): Declare.
22756 (accumulate_font_info): Comment-out (unused).
22757 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22758 variables.
22759
22760 * character.h (string_escape_byte8): Declare.
22761
22762 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22763 unused vars.
22764 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22765 (Fmap_charset_chars): Doc fix.
22766
22767 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22768 (Fset_coding_system_priority, Fset_coding_system_priority)
22769 (Fdefine_coding_system_internal): Doc fix.
22770
22771 2008-02-01 Dave Love <fx@gnu.org>
22772
22773 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22774
22775 2008-02-01 Kenichi Handa <handa@m17n.org>
22776
22777 * character.c (string_escape_byte8): Make multibyte string with
22778 correct size.
22779
22780 * charset.c (Fmake_char): Delete unnecessary code.
22781
22782 2008-02-01 Kenichi Handa <handa@m17n.org>
22783
22784 * xfns.c (x_encode_text): Allocate coding.destination here, and
22785 call encode_coding_object with dst_object Qnil.
22786
22787 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22788 multibyte form correctly.
22789
22790 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22791 against Vfont_encoding_alist.
22792
22793 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22794 handling of charset list.
22795 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22796 (decode_coding_object): Move point to coding->dst_pos before
22797 calling post-read-conversion function.
22798 (encode_coding_object): Give correct arguments to
22799 pre-write-conversion. Ignore the return value of
22800 pre-write-conversion function. Pay attention to the case that
22801 pre-write-conversion changes the current buffer. If dst_object is
22802 Qt, even if coding->src_bytes is zero, allocate at least one byte
22803 to coding->destination.
22804
22805 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22806
22807 * charset.c (Fmake_char): Make it more backward compatible.
22808 (Fmap_charset_chars): Fix docstring.
22809
22810 2008-02-01 Dave Love <fx@gnu.org>
22811
22812 * coding.c: Doc fixes.
22813 (Fdefine_coding_system_alias): Use names, not symbols, in
22814 coding-system-alist.
22815
22816 2008-02-01 Kenichi Handa <handa@m17n.org>
22817
22818 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22819 of calling free_realized_face.
22820
22821 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
22822
22823 * charset.c (read_hex): Don't treat SPC as a comment starter.
22824 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22825 (Fdecode_char): Fix typo.
22826
22827 2008-02-01 Kenichi Handa <handa@m17n.org>
22828
22829 * charset.h (struct charset): New member `code_space_mask'.
22830
22831 * coding.c (coding_set_source): Delete the local variable beg_byte.
22832 (encode_coding_charset, Fdefine_coding_system_internal):
22833 Delete the local variable charset.
22834 (Fdefine_coding_system_internal): Setup
22835 attrs[coding_attr_charset_valids] correctly.
22836
22837 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22838 member to check if CODE is valid or not.
22839 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22840 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22841 is within the range of charset->min_code and carset->max_code.
22842
22843 2008-02-01 Dave Love <fx@gnu.org>
22844
22845 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22846
22847 * dispextern.h (generate_ascii_font): Fix return type.
22848
22849 * xfaces.c (generate_ascii_font): Fix arg declaration.
22850
22851 * coding.c (coding_inherit_eol_type)
22852 (Fset_terminal_coding_system_internal)
22853 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22854
22855 2008-02-01 Kenichi Handa <handa@m17n.org>
22856
22857 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22858 multiple charsets correctly.
22859
22860 2008-02-01 Kenichi Handa <handa@m17n.org>
22861
22862 * search.c (boyer_moore): Fix handling of multibyte character
22863 translation.
22864
22865 * xdisp.c (display_mode_element): When the variable `elt' is
22866 changed, update `this' and `lisp_string'.
22867
22868 2008-02-01 Kenichi Handa <handa@m17n.org>
22869
22870 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22871
22872 * callproc.c (Fcall_process): Be sure to give the current buffer
22873 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22874
22875 * charset.c (struct charset_map_entries): New struct.
22876 (load_charset_map): Rename from parse_charset_map. New args
22877 entries and n_entries. Change caller.
22878 (load_charset_map_from_file): Rename from load_charset_map.
22879 Change caller. New arg control_flag. Call load_charset_map at
22880 the tail.
22881 (load_charset_map_from_vector): New function.
22882 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22883 (encode_char): If the charset is compact, change a character index
22884 to a code point.
22885
22886 * coding.c (coding_alloc_by_making_gap): Check the case that the
22887 source and destination are the same correctly.
22888 (decode_coding_raw_text): Set coding->consumed_char and
22889 coding->consumed to 0.
22890 (produce_chars): If coding->chars_at_source is nonzero, update
22891 coding->consumed_char and coding->consumed before calling
22892 alloc_destination.
22893 (Fdefine_coding_system_alias): Register ALIAS in
22894 Vcoding_system_alist.
22895 (syms_of_coding): Define `no-conversion' coding system at the tail.
22896
22897 * fileio.c (Finsert_file_contents): Set coding_system instead of
22898 val. If the current buffer is multibyte, always call
22899 decode_coding_gap.
22900
22901 * xfaces.c (try_font_list): Give higher priority to fontset's
22902 family than face's family.
22903
22904 2008-02-01 Kenichi Handa <handa@m17n.org>
22905
22906 * callproc.c (Fcall_process): Be sure to give the current buffer
22907 to decode_coding_c_string.
22908
22909 * xfaces.c (try_font_list): Give a family specified in a fontset
22910 higher priority than a family specified in a face.
22911
22912 2008-02-01 Kenichi Handa <handa@m17n.org>
22913
22914 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22915 Fix arguments to insert_from_buffer.
22916
22917 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22918
22919 2008-02-01 Kenichi Handa <handa@m17n.org>
22920
22921 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22922 (decode_coding_gap): Set coding->dst_multibyte correctly.
22923
22924 2008-02-01 Kenichi Handa <handa@m17n.org>
22925
22926 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22927 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22928 (encode_coding_utf_16): Substitute coding->default_char for
22929 non-Unicode characters.
22930 (decode_coding): Don't call record_insert here.
22931 (setup_coding_system): Initialize `surrogate' of
22932 coding->spec.utf_16 to 0.
22933 (EMIT_ONE_BYTE): Fix for multibyte case.
22934
22935 * insdel.c (insert_from_gap): Call record_insert.
22936
22937 2008-02-01 Kenichi Handa <handa@m17n.org>
22938
22939 * casefiddle.c (casify_region): Fix multibyte case.
22940
22941 * character.c (c_string_width): Add return type `int'.
22942 (char_string_with_unification): Delete arg ADVANCED.
22943
22944 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22945 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22946 (CHAR_STRING_ADVANCE): Make it do-while statement.
22947
22948 * chartab.c (sub_char_table_set_range): Optimize for the case
22949 DEPTH == 3. Add workaround code for a GCC optimization bug.
22950
22951 * charset.c (parse_charset_map): Remove an unused variable.
22952
22953 * coding.c: Delete unused variables.
22954
22955 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22956 earlier. If inserted is zero and the coding system doesn't
22957 require flushing, don't call decode_coding_gap.
22958
22959 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22960
22961 2008-02-01 Kenichi Handa <handa@m17n.org>
22962
22963 The following changes are for using Unicode as an internal
22964 character model, and use UTF-8 format for buffer/string
22965 representation.
22966
22967 * .gdbinit (xchartable): Adjust for the change of char table structure.
22968 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22969
22970 * Makefile.in (obj): Add character.o and chartab.o.
22971 (lisp, shortlisp): Remove utf-8.elc.
22972 (*.o): For many files, change dependency on charset.h to
22973 character.h, and add dependency on character.h.
22974 (character.o, chartab.o): New targets.
22975
22976 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22977 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22978 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22979 of "charset.h".
22980
22981 * dired.c, filelock.c: Include "character.h".
22982
22983 * alloc.c: Include "character.h" instead of "charset.h".
22984 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22985 (syms_of_alloc): Remove defsubr for Smake_char_table.
22986
22987 * buffer.c: Include "character.h" instead of "charset.h", don't
22988 include "coding.h".
22989 (Fset_buffer_multibyte): Adjust for UTF-8.
22990
22991 * buffer.h: EXFUN Fbuffer_live_p.
22992
22993 * callproc.c: Include "character.h" instead of "charset.h".
22994 (Fcall_process): Big change for the new code-conversion APIs.
22995
22996 * casetab.c: Include "character.h" instead of "charset.h".
22997 (set_canon, set_identity, shuffle): Adjust for the new
22998 map_char_table spec.
22999 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23000 accessing the char table structure.
23001
23002 * chartab.c: New file that implements char table.
23003
23004 * category.c: Include "character.h".
23005 (copy_category_entry): New function.
23006 (copy_category_table): Call map_char_table and copy_category_entry.
23007 (Fmake_category_table): Initialize all top-level slots.
23008 (char_category_set): New function.
23009 (modify_lower_category_set): Delete.
23010 (Fmodify_category_entry): Call char_table_ref_and_range.
23011
23012 * category.h (CATEGORY_SET): Just call char_category_set.
23013
23014 * ccl.c: Include "character.h".
23015 (Qccl, Qcclp): New variables.
23016 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23017 it's less than 256.
23018 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23019 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23020 and DST type.
23021 (ccl_driver): Change types of argument, adjust code accordingly.
23022 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23023 ccl_driver.
23024 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23025
23026 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23027 New members src_multibyte, dst_multibyte, consumed, and produced.
23028 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23029 (CODING_SPEC_CCL_PROGRAM): New macro.
23030 (ccl_driver): Update prototype.
23031 (Qccl, Qcclp, Fccl_program_p): Extern them.
23032 (CHECK_CCL_PROGRAM): New macro.
23033
23034 * character.c, character.h, chartab.c: New files.
23035
23036 * charset.c: Mostly re-written. Move character and multibyte sequence
23037 handling codes to character.c.
23038
23039 * charset.h: Mostly re-written. Move character and multibyte sequence
23040 handling codes to character.h.
23041
23042 * coding.c, coding.h: Mostly re-written.
23043
23044 * composite.c: Include "character.h" instead of "charset.h".
23045 (CHAR_WIDTH): Move to character.h.
23046 (HASH_KEY, HASH_VALUE): Delete.
23047
23048 * composite.h (enum composition_method): Change order of enumeration
23049 symbols.
23050
23051 * data.c: Include "character.h" instead of "charset.h".
23052 (Faref): Call CHAR_TABLE_REF for a char table.
23053 (Faset): Call CHAR_TABLE_SET for a char table.
23054
23055 * dispextern.h (free_realized_face, check_face_attribytes)
23056 (generate_ascii_font): Extern them.
23057 (free_realized_multibyte_face): Delete extern.
23058
23059 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23060 table structure.
23061
23062 * editfns.c: Include "character.h" instead of "charset.h".
23063 (Fchar_to_string): Always call CHAR_STRING.
23064
23065 * emacs.c (main): Call init_charset_once, init_charset,
23066 syms_of_chartab, and syms_of_character.
23067
23068 * fileio.c: Include "character.h" instead of "charset.h".
23069 (Finsert_file_contents): Big change for the new code-conversion API.
23070 (choose_write_coding_system, Fwrite_region): Likewise.
23071 (build_annotations_2): Delete.
23072 (e_write): Big change for the new code-conversion API.
23073
23074 * fns.c: Include "character.h" instead of "charset.h".
23075 (copy_sub_char_table): Move to chartab.c.
23076 (Fcopy_sequence): Call copy_char_table for a char table.
23077 (concat): Delete codes calling count_multibyte.
23078 (string_char_to_byte, string_byte_to_char): Adjust for the new
23079 multibyte form.
23080 (internal_equal): Adjust for the change of char table structure.
23081 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23082 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23083 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23084 (char_table_translate, optimize_sub_char_table)
23085 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23086 chartab.c.
23087 (char_table_ref_and_index): Delete.
23088 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23089 (Fmd5): Call preferred_coding_system instead of accessing
23090 Vcoding_category_list. Adjust for the new code-conversion API.
23091 (syms_of_fns): Move defsubr for char table related functions to
23092 chartab.c.
23093
23094 * fontset.c: Mostly re-written.
23095
23096 * fontset.h (struct font_info): Change type of the member encoding_type.
23097 (enum FONT_SPEC_INDEX): New enum.
23098 (fontset_font_pattern, fs_load_font): Update prototype.
23099 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23100
23101 * indent.c: Include "character.h" instead of "charset.h".
23102 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23103
23104 * insdel.c: Include "character.h" instead of "charset.h".
23105 (copy_text): Don't refer to Vnonascii_translation_table.
23106 (insert_from_gap): New function.
23107
23108 * keyboard.c: Include "character.h" instead of "charset.h".
23109 (command_loop_1): Never call direct_output_forward_char before
23110 a non-ASCII character.
23111 (read_char): If Vkeyboard_translate_table is a char table, always
23112 translate a character.
23113
23114 * keymap.c: Include "character.h".
23115 (store_in_keymap): Handle the case that IDX is a cons.
23116 (Fdefine_key): Handle the case that KEY is a cons and the car part
23117 is also a cons (range).
23118 (push_key_description): Adjust for the new character code.
23119 (describe_vector): Call describe_char_table for a char table.
23120 (describe_char_table): New function.
23121
23122 * keymap.h (describe_char_table): Extern it.
23123
23124 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23125 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23126 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23127 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23128 Delete.
23129 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23130 structure.
23131 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23132 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23133 (CHARTAB_SIZE_BITS_3): New macros.
23134 (chartab_size): Extern it.
23135 (struct Lisp_Char_Table): Re-design.
23136 (struct Lisp_Sub_Char_Table): New structure.
23137 (HASH_KEY, HASH_VALUE): Move from fns.c.
23138 (CHARACTERBITS): Define as 22.
23139 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23140 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23141 (GC_SUB_CHAR_TABLE_P): New macro.
23142 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23143 (code_convert_string_norecord): Deleted extern.
23144 (init_character_once, syms_of_character, init_charset)
23145 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23146
23147 * lread.c: Include "character.h".
23148 (read_multibyte): New arg NBYTES.
23149 (read_escape): Change the meaning of returned *BYTEREP.
23150 (to_multibyte): Delete.
23151 (read1): Adjust the handling of char table and string.
23152
23153 * print.c: Include "character.h" instead of "charset.h".
23154 (print_string): Convert 8-bit raw bytes to octal form by
23155 string_escape_byte8.
23156 (print_object): Adjust for the new multibyte form. Print 8-bit
23157 raw bytes always in octal form. Handle sub char table correctly.
23158
23159 * process.c: Include "character.h" instead of "charset.h".
23160 (read_process_output, send_process): Adjust for the new
23161 code-conversion API.
23162
23163 * puresize.h (BASE_PURESIZE): Increase.
23164
23165 * regex.c: Include "character.h" instead of "charset.h".
23166 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23167 (regex_compile): Accept a range whose starting and ending
23168 character have different leading bytes.
23169 (analyse_first): Adjust for the above change.
23170
23171 * search.c: Include "character.h" instead of "charset.h".
23172 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23173 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23174
23175 * syntax.c: Include "character.h" instead of "charset.h".
23176 (syntax_parent_lookup): Delete.
23177 (Fmodify_syntax_entry): Accept a cons as CHAR.
23178 (skip_chars): Adjust for the new multibyte form.
23179 (init_syntax_once): Call char_table_set_range instead of directly
23180 accessing the structure of a char table.
23181
23182 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23183 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23184 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23185 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23186
23187 * term.c: Include "buffer.h" and "character.h".
23188 (encode_terminal_code, write_glyphs): Adjust for the new
23189 code-conversion API.
23190 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23191
23192 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23193
23194 * xdisp.c: Include "character.h".
23195 (get_next_display_element): Adjust for the new multibyte form.
23196 (disp_char_vector): Adjust for the new char table structure.
23197 (decode_mode_spec_coding): Adjust for the new structure of
23198 coding system.
23199 (decode_mode_spec): Adjust for the new code-conversion API.
23200
23201 * xfaces.c: Include "character.h" instead of "charset.h".
23202 (load_face_font): Adjust for the change of choose_face_font and
23203 FS_LOAD_FONT.
23204 (generate_ascii_font): New function.
23205 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23206 (set_font_frame_param): Adjust for the change of choose_face_font.
23207 (free_realized_face): Make it public.
23208 (free_realized_faces_for_fontset): Rename from
23209 free_realized_multibyte_face. Free also faces realized for ASCII.
23210 (choose_face_font): Change arguments. Adjust for the change of
23211 fontset_font_pattern and FS_LOAD_FONT.
23212
23213 * xfns.c: Include "character.h".
23214 (x_encode_text): Adjust for the new code-conversion API.
23215
23216 * xselect.c: Don't include "charset.h".
23217 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23218
23219 * xterm.c: Include "character.h".
23220 (x_encode_char): New argument CHARSET. Change caller.
23221 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23222 Call ENCODE_CHAR instead of SPLIT_CHAR.
23223 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23224 CHAR_WIDTH instead of CHARSET_WIDTH.
23225 (XTread_socket): Adjust for the new code-conversion API.
23226 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23227 (x_load_font): Adjust for the change of struct font.
23228
23229 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23230
23231 * xfaces.c (face_at_buffer_position): Remove unused vars.
23232
23233 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23234
23235 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23236 Fix overflow checking.
23237
23238 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23239
23240 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23241 Cancel previous change.
23242
23243 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23244
23245 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23246 ccl->eight_bit_control. Fix check for buffer overflow.
23247 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23248 (ccl_driver): Initialize extra_bytes to 0.
23249
23250 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23251
23252 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23253 return it ORed with ctrl_modifier.
23254
23255 2008-01-29 Miles Bader <miles@gnu.org>
23256
23257 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23258
23259 2008-01-28 Jason Rumney <jasonr@gnu.org>
23260
23261 * w32.c (stat): Don't double check for networked drive.
23262
23263 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23264
23265 * window.c (run_window_configuration_change_hook): New function.
23266 Code extracted from set_window_buffer. Set the selected frame.
23267 (set_window_buffer): Use it.
23268 * window.h (run_window_configuration_change_hook): Declare.
23269 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23270
23271 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23272
23273 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23274
23275 * Makefile.in: Remove references to unused macros.
23276
23277 2008-01-26 Eli Zaretskii <eliz@gnu.org>
23278
23279 * w32.c (g_b_init_get_sid_sub_authority)
23280 (g_b_init_get_sid_sub_authority_count): New static variables.
23281 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23282 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23283 (init_user_info): Use them to retrieve uid and gid.
23284 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23285 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23286 st_uid and st_gid of the file.
23287
23288 2008-01-26 Jason Rumney <jasonr@gnu.org>
23289
23290 * w32.c (logon_network_drive): New function.
23291 (stat): Use it.
23292
23293 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
23294
23295 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23296 invisible text covered with an ellipsis.
23297
23298 2008-01-25 Richard Stallman <rms@gnu.org>
23299
23300 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23301 jump back to beginning. Move some other initializations after that.
23302 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23303 New variables.
23304 (syms_of_xdisp): Init them.
23305
23306 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23307
23308 * buffer.c (reset_buffer_local_variables):
23309 Implement `permanent-local-hook'.
23310 (Qpermanent_local_hook): New variable.
23311 (syms_of_buffer): Init and staticpro it.
23312
23313 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
23314
23315 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23316
23317 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23318
23319 * fns.c (Fclrhash): Return TABLE.
23320
23321 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23322
23323 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23324 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23325 is set even without positional changes.
23326 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23327
23328 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23329
23330 2008-01-23 Jason Rumney <jasonr@gnu.org>
23331
23332 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23333
23334 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23335 the unicode range available in MULE by locale-coding-system.
23336 Improve dbcs lead byte detection. Set event timestamp and modifiers
23337 earlier.
23338
23339 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23340
23341 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23342 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23343 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23344 when used on child processes.
23345
23346 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
23347
23348 * dbusbind.c (Fdbus_method_return_internal): Rename from
23349 Fdbus_method_return.
23350 (Fdbus_unregister_object): Move to dbus.el.
23351 (Fdbus_call_method, Fdbus_method_return_internal)
23352 (Fdbus_send_signal): Improve debug messages.
23353
23354 2008-01-20 Martin Rudalics <rudalics@gmx.at>
23355
23356 * undo.c (undo_inhibit_record_point): New variable.
23357 (syms_of_undo): Initialize it.
23358 (record_point): Don't record point when undo_inhibit_record_point
23359 is set.
23360
23361 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23362
23363 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23364
23365 * xdisp.c (Qauto_hscroll_mode): New var.
23366 (syms_of_xdisp): Initialize it.
23367 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23368 window's buffer.
23369 (hscroll_windows): Don't check automatic_hscrolling_p here.
23370
23371 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23372 vscroll if we're setting window-buffer to the value it already has.
23373
23374 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23375
23376 * m/intel386.h: Remove references to XENIX.
23377
23378 2008-01-17 Andreas Schwab <schwab@suse.de>
23379
23380 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23381 instead of HAVE_X86_64_LIB64_DIR.
23382 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23383
23384 2008-01-17 Glenn Morris <rgm@gnu.org>
23385
23386 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23387 to HAVE_X86_64_LIB64_DIR.
23388
23389 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23390
23391 * s/irix3-3.h:
23392 * s/irix4-0.h:
23393 * s/386-ix.h:
23394 * s/domain.h:
23395 * s/hpux9-x11r4.h:
23396 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23397
23398 * sysdep.c: Remove code containing references to symbols defined
23399 by unsupported systems.
23400
23401 2008-01-16 Glenn Morris <rgm@gnu.org>
23402
23403 * coding.c (select-safe-coding-system-function): Doc fix.
23404
23405 2008-01-15 Glenn Morris <rgm@gnu.org>
23406
23407 * config.in: Revert 2008-01-13 change: this is a generated file.
23408
23409 2008-01-13 Tom Tromey <tromey@redhat.com>
23410
23411 * lisp.h: Fix typo.
23412
23413 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23414
23415 * m/sequent-ptx.h:
23416 * m/sequent.h:
23417 * s/ptx.h:
23418 * s/ptx4-2.h:
23419 * s/ptx4.h: Remove files for systems no longer supported.
23420
23421 * callproc.c (Fcall_process): Fix previous change.
23422
23423 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23424
23425 * unexsunos4.c: Remove file, system not supported anymore.
23426
23427 * m/mips.h:
23428 * m/intel386.h:
23429 * callproc.c:
23430 * config.in:
23431 * ecrt0.c:
23432 * emacs.c:
23433 * fileio.c:
23434 * frame.c:
23435 * getpagesize.h:
23436 * keyboard.c:
23437 * lread.c:
23438 * process.c:
23439 * puresize.h:
23440 * sysdep.c:
23441 * systty.h:
23442 * syswait.h:
23443 * unexec.c:
23444 * xdisp.c:
23445 * alloc.c: Remove code containing references to symbols defined by
23446 unsupported systems.
23447
23448 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23449
23450 * coding.c (detect_coding_mask): Fix previous change.
23451
23452 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23453
23454 * coding.c (detect_coding_iso2022): New arg
23455 latin_extra_code_state. Allow Latin extra codes only
23456 when *latin_extra_code_state is nonzero.
23457 (detect_coding_mask): If there is a NULL byte, detect the encoding
23458 as UTF-16 or binary. If Latin extra codes exist, detect the
23459 encoding as ISO-2022 only when there's no other proper encoding is
23460 found.
23461
23462 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23463
23464 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23465 #ifdef MAC_OS.
23466
23467 2008-01-08 Richard Stallman <rms@gnu.org>
23468
23469 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23470
23471 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
23472
23473 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23474 menu bar in parentheses.
23475
23476 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23477
23478 * m/7300.h:
23479 * m/acorn.h:
23480 * m/alliant-2800.h:
23481 * m/alliant.h:
23482 * m/alliant1.h:
23483 * m/alliant4.h:
23484 * m/altos.h:
23485 * m/amdahl.h:
23486 * m/apollo.h:
23487 * m/att3b.h:
23488 * m/aviion-intel.h:
23489 * m/aviion.h:
23490 * m/celerity.h:
23491 * m/clipper.h:
23492 * m/cnvrgnt.h:
23493 * m/convex.h:
23494 * m/cydra5.h:
23495 * m/delta88k.h:
23496 * m/dpx2.h:
23497 * m/dual.h:
23498 * m/elxsi.h:
23499 * m/f301.h:
23500 * m/gould-np1.h:
23501 * m/gould.h:
23502 * m/i860.h:
23503 * m/ibmps2-aix.h:
23504 * m/ibmrt-aix.h:
23505 * m/ibmrt.h:
23506 * m/irist.h:
23507 * m/is386.h:
23508 * m/isi-ov.h:
23509 * m/mega68.h:
23510 * m/mg1.h:
23511 * m/news-r6.h:
23512 * m/news-risc.h:
23513 * m/news.h:
23514 * m/nh3000.h:
23515 * m/nh4000.h:
23516 * m/ns16000.h:
23517 * m/ns32000.h:
23518 * m/nu.h:
23519 * m/orion.h:
23520 * m/orion105.h:
23521 * m/paragon.h:
23522 * m/pfa50.h:
23523 * m/plexus.h:
23524 * m/pyramid.h:
23525 * m/pyrmips.h:
23526 * m/sh3el.h:
23527 * m/sps7.h:
23528 * m/sr2k.h:
23529 * m/stride.h:
23530 * m/sun1.h:
23531 * m/sun2.h:
23532 * m/sun3-68881.h:
23533 * m/sun3-fpa.h:
23534 * m/sun3-soft.h:
23535 * m/sun3.h:
23536 * m/sun386.h:
23537 * m/symmetry.h:
23538 * m/tad68k.h:
23539 * m/tahoe.h:
23540 * m/targon31.h:
23541 * m/tek4300.h:
23542 * m/tekxd88.h:
23543 * m/tower32.h:
23544 * m/tower32v3.h:
23545 * m/ustation.h:
23546 * m/wicat.h:
23547 * m/xps100.h:
23548 * s/cxux.h:
23549 * s/cxux7.h:
23550 * s/dgux.h:
23551 * s/dgux4.h:
23552 * s/dgux5-4-3.h:
23553 * s/dgux5-4r2.h:
23554 * s/esix.h:
23555 * s/esix5r4.h:
23556 * s/hiuxmpp.h:
23557 * s/hiuxwe2.h:
23558 * s/iris3-5.h:
23559 * s/iris3-6.h:
23560 * s/isc2-2.h:
23561 * s/isc3-0.h:
23562 * s/isc4-0.h:
23563 * s/isc4-1.h:
23564 * s/newsos5.h:
23565 * s/newsos6.h:
23566 * s/osf1.h:
23567 * s/osf5-0.h:
23568 * s/riscix1-1.h:
23569 * s/riscix12.h:
23570 * s/sco4.h:
23571 * s/sco5.h:
23572 * s/sunos4-0.h:
23573 * s/sunos4-1.h:
23574 * s/sunos413.h:
23575 * s/sunos4shr.h:
23576 * s/umax.h:
23577 * s/unipl5-2.h:
23578 * s/xenix.h:
23579 * cxux-crt0.s:
23580 * unexapollo.c:
23581 * unexconvex.c:
23582 * unexenix.c:
23583 * unexsni.c: Remove files for systems no longer supported.
23584
23585 * m/intel386.h: Remove references to unsupported systems.
23586
23587 * w32.c (get_emacs_configuration): Remove reference to i860.
23588
23589 * sysdep.c: Remove dead code.
23590
23591 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23592
23593 * s/rtu.h:
23594 * m/masscomp.h: Remove files. Platform is obsolete.
23595
23596 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
23597
23598 * dbusbind.c (Fdbus_method_return): New function.
23599 (xd_read_message): Add the serial number to the event.
23600 (Fdbus_register_method): Activate the function.
23601
23602 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23603
23604 * keyboard.c (read_key_sequence): Fix typo.
23605
23606 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
23607
23608 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23609 (xd_signature, xd_append_arg): Handle element type detection for
23610 empty arrays.
23611 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23612 SDATA () calls; this must be solved more general.
23613 (Fdbus_register_signal): Use SBYTES instead of strlen.
23614
23615 2008-01-03 Magnus Henoch <magnus@zemdatav>
23616
23617 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23618 unsigned int for byte values (necessary for big-endian platform).
23619 (Fdbus_call_method): Handle the case of no returned arguments.
23620
23621 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23622
23623 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23624
23625 2007-12-31 Magnus Henoch <mange@freemail.hu>
23626
23627 * dbusbind.c (xd_signature): Signature of variant is just "v".
23628
23629 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
23630
23631 * dbusbind.c: Fix several errors and compiler warnings.
23632 Reported by Tom Tromey <tromey@redhat.com>.
23633 (XD_ERROR, XD_DEBUG_MESSAGE)
23634 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23635 (xd_append_arg): Part for basic D-Bus types rewritten.
23636 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23637 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23638 appropriate.
23639 (xd_read_message): Return Qnil. Don't signal an error; it is not
23640 useful during event reading.
23641 (Fdbus_register_signal): Signal an error if the check for
23642 FUNCTIONP fails.
23643 (Fdbus_register_method): New function. The implementation is not
23644 complete, the call of the function signals an error therefore.
23645 (Fdbus_unregister_object): New function, renamed from
23646 Fdbus_unregister_signal. The initial check signals an error, if
23647 the object is not well formed.
23648
23649 2007-12-30 Richard Stallman <rms@gnu.org>
23650
23651 * textprop.c (get_char_property_and_overlay):
23652 Signal error if POSITION is out of range in a buffer.
23653
23654 2007-12-29 Martin Rudalics <rudalics@gmx.at>
23655
23656 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23657 because the original parameters are in pure storage now.
23658
23659 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23660
23661 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23662
23663 2007-12-22 Eli Zaretskii <eliz@gnu.org>
23664
23665 * callint.c (syms_of_callint) <command-history>: Add reference to
23666 history-length in the doc string.
23667
23668 2007-12-17 Jason Rumney <jasonr@gnu.org>
23669
23670 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23671 before passing as wParam.
23672
23673 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
23674
23675 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23676 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23677 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23678 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23679 as number.
23680 (Fdbus_call_method): Fix docstring.
23681
23682 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
23683
23684 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23685 New macros.
23686 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23687 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23688 Simplify.
23689 (xd_signature): New function.
23690 (xd_append_arg): Compute also signatures. Major rewrite.
23691 (xd_retrieve_arg): Make debug messages friendly.
23692 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23693 Check for signatures of arguments.
23694
23695 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
23696
23697 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23698 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23699 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23700 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23701 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23702 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23703 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23704 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23705 (xd_retrieve_value): Remove. Functionality included in ...
23706 (xd_append_arg): New function.
23707 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23708
23709 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
23710
23711 * dbusbind.c (top): Include <stdio.h>.
23712 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23713 dbus_message_new_method_call and dbus_message_new_signal.
23714 (Fdbus_register_signal): Rename unique_name to uname.
23715 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23716 non-existing unique name. Fix typos in matching rule. Return an
23717 object which is useful in Fdbus_unregister_signal.
23718 (Fdbus_unregister_signal): Reimplementation, in order to remove
23719 only the corresponding entry.
23720 (Vdbus_registered_functions_table): Change the order of entries.
23721 Apply these changes in xd_read_message and Fdbus_register_signal.
23722
23723 2007-12-16 Andreas Schwab <schwab@suse.de>
23724
23725 * fileio.c (Finsert_file_contents): Fix overflow check to not
23726 depend on undefined integer overflow.
23727
23728 2007-12-14 Jason Rumney <jasonr@gnu.org>
23729
23730 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23731 for characters above 127.
23732
23733 2007-12-13 Jason Rumney <jasonr@gnu.org>
23734
23735 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23736 before dereferencing array.
23737 (lookup_vk_code): Remove zero comparison.
23738
23739 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
23740
23741 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23742 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23743 Use `unsigned int' instead of `uint'.
23744 (xd_read_message, Fdbus_register_signal): Split expressions into
23745 multiple lines before operators "&&" and "||", according to the
23746 GNU Coding Standards.
23747
23748 2007-12-14 Eli Zaretskii <eliz@gnu.org>
23749
23750 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23751
23752 2007-12-12 Juri Linkov <juri@jurta.org>
23753
23754 * buffer.c (Frename_buffer): In interactive spec replace
23755 `read-buffer' with `read-string' that uses `buffer-name-history'
23756 as history, and the current buffer's name as default.
23757
23758 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23759
23760 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23761 manipulating the backtrace manually.
23762 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23763 (struct backtrace, backtrace_list): Remove.
23764 (command_loop_1): Remove dead var `no_direct'.
23765
23766 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23767 preserve non-built-in buffer-local variables.
23768 (Fkill_all_local_variables): Don't re-create&re-set permanent
23769 buffer-local variables.
23770
23771 2007-12-09 Juri Linkov <juri@jurta.org>
23772
23773 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23774 Lisp code that uses `read-buffer' with current buffer as default.
23775
23776 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
23777
23778 * dbusbind.c (xd_read_message): Generate an event for every
23779 registered handler. There might be several handlers registered
23780 for the same signal.
23781 (Fdbus_register_signal): Don't overwrite a registration for the
23782 same signal. Add a new registration if handlers are different.
23783 (Vdbus_registered_functions_table): Rework doc string.
23784
23785 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
23786
23787 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23788 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23789 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23790 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23791 Unify argument lists.
23792 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23793 arguments and hash table keys. Use unique name for service.
23794 (Fdbus_unregister_signal): Remove checks.
23795 (Vdbus_registered_functions_table): Fix doc string.
23796
23797 2007-12-05 Magnus Henoch <mange@freemail.hu>
23798
23799 * process.c (make_process): Initialize pty_flag to 0.
23800
23801 2007-12-05 Jason Rumney <jasonr@gnu.org>
23802
23803 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23804 specified XBMs.
23805
23806 2007-12-05 Richard Stallman <rms@gnu.org>
23807
23808 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23809
23810 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23811
23812 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23813 New variable.
23814 (mac_try_close_socket) [MAC_OSX]: New function.
23815 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23816 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23817
23818 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23819 Use mac_try_close_socket.
23820
23821 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23822
23823 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23824 reloc_base.
23825 (copy_dysymtab): Compute relocation base here.
23826 (rebase_reloc_address) [__ppc64__]: New function.
23827 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23828 changed.
23829
23830 2007-12-05 Jason Rumney <jasonr@gnu.org>
23831
23832 * w32proc.c (sys_spawnve): Quote args with wildcards.
23833
23834 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23835
23836 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23837 __objc_* sections.
23838 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23839
23840 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
23841
23842 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23843 Move check for Vdbus_registered_functions_table to
23844 xd_read_queued_messages.
23845 (xd_read_queued_messages): Protect xd_read_message calls by
23846 internal_condition_case_1.
23847
23848 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
23849
23850 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23851 Qdbus_system_bus and Qdbus_session_bus, respectively.
23852 (Vdbus_intern_symbols): Remove.
23853 (Vdbus_registered_functions_table): New hash table.
23854 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23855 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23856 Rewrite in order to manage registered functions by hash table
23857 Vdbus_registered_functions_table.
23858
23859 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23860
23861 * xterm.c: Update URL to Window Manager Specification in comment.
23862
23863 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
23864
23865 * config.in (HAVE_DBUS): Add.
23866
23867 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23868 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23869 (obj): Add $(DBUS_OBJ).
23870 (LIBES): Add $(DBUS_LIBS).
23871 (dbusbind.o): New target.
23872
23873 * dbusbind.c: New file.
23874
23875 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23876
23877 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23878 (Qdbus_event): New Lisp symbol.
23879 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23880 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
23881 (keys_of_keyboard): Define dbus-event.
23882
23883 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23884
23885 2007-12-01 Richard Stallman <rms@gnu.org>
23886
23887 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23888
23889 2007-11-30 Jason Rumney <jasonr@gnu.org>
23890
23891 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23892 (w32con_reset_terminal_modes): Clear screen buffer.
23893 (w32_face_attributes): Don't use color indexes that are out of range.
23894 Only reverse the default colors.
23895
23896 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23897 WINDOWSNT.
23898
23899 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23900
23901 2007-11-29 Jason Rumney <jasonr@gnu.org>
23902
23903 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23904 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23905 if the terminal colors are initialized.
23906 (unspecified_fg, unspecified_bg): Remove unused declarations.
23907
23908 2007-11-29 Andreas Schwab <schwab@suse.de>
23909
23910 * keyboard.c (apply_modifiers): Fix typo.
23911
23912 2007-11-29 Richard Stallman <rms@gnu.org>
23913
23914 * keymap.c (Fcurrent_local_map): Doc fix.
23915
23916 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23917
23918 * s/gnu-kfreebsd.h: New file.
23919
23920 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23921
23922 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23923 Don't cast redundantly.
23924
23925 * keyboard.c (KEY_TO_CHAR): New macro.
23926 (parse_modifiers, apply_modifiers): Accept integer arguments.
23927 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23928 for chars and symbol keys.
23929 After doing such remapping, apply function-key-map again.
23930
23931 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23932
23933 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23934 compiled anymore.
23935
23936 2007-11-26 Andreas Schwab <schwab@suse.de>
23937
23938 * process.c (list_processes_1): Fix indentation level of the
23939 command column.
23940
23941 2007-11-23 Andreas Schwab <schwab@suse.de>
23942
23943 * editfns.c (Fformat): Handle %c specially since it requires the
23944 argument to be of type int.
23945
23946 2007-11-23 Markus Triska <markus.triska@gmx.at>
23947
23948 * emacs.c (main): Call init_editfns before init_process, since
23949 init_process sets Vprocess_connection_type depending on OS release.
23950
23951 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23952
23953 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23954 (find_symbol_value): Use do_symval_forwarding.
23955
23956 * data.c (set_internal): Set the value in the `cons-cell' (for
23957 Buffer_Local_values) not only for frame-local variables.
23958
23959 2007-11-22 Andreas Schwab <schwab@suse.de>
23960
23961 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23962 values to sprintf.
23963 * keymap.c (Fsingle_key_description): Likewise.
23964 * print.c (print_object): Likewise.
23965
23966 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23967
23968 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23969 file for image is nil.
23970
23971 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23972
23973 * term.c: Include stdarg.h.
23974 (fatal): Implement using varargs.
23975 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23976
23977 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23978
23979 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23980 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23981 Update call to buffer_slot_type_mismatch.
23982 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23983 (buffer_slot_type_mismatch): Update.
23984 * buffer.c (buffer_local_types): Remove.
23985 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23986 (defvar_per_buffer): Set the type in the buffer_objfwd.
23987
23988 2007-11-21 Jason Rumney <jasonr@gnu.org>
23989
23990 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23991 CreateFileMapping returns NULL on failure.
23992
23993 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23994
23995 * search.c (Fset_match_data): Remove the `evaporate' feature.
23996 (unwind_set_match_data): Don't use the `evaporate' feature.
23997
23998 2007-11-21 Jason Rumney <jasonr@gnu.org>
23999
24000 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24001
24002 * w32console.c (w32con_write_glyphs): Remove unused variables.
24003
24004 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24005
24006 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24007
24008 * s/darwin.h (MULTI_KBOARD): Remove.
24009
24010 * macfns.c (x_create_tip_frame, Fx_create_frame)
24011 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24012
24013 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24014
24015 * buffer.c (Fbuffer_local_value): Remove redundant test.
24016 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24017 than in `current-buffer' to match the comment.
24018 Do the swap using swap_in_global_binding.
24019
24020 * data.c (store_symval_forwarding, set_internal):
24021 * eval.c (specbind): Remove dead code.
24022
24023 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24024 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24025 Since we do not want to see internal Lisp_*fwd objects here.
24026
24027 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24028
24029 * sysdep.c (init_system_name): Use getaddrinfo if available.
24030
24031 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24032 (x_scroll_bar_note_movement): start, end, with, height in struct
24033 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24034
24035 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24036
24037 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24038
24039 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24040
24041 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24042 This undoes Richard's change of 14-Oct-2002.
24043
24044 * alloc.c (allocate_other_vector):
24045 * lisp.h (allocate_other_vector): Remove.
24046
24047 * window.c (struct save_window_data): Move non-lisp data to the end
24048 and make it `int' rather than Lisp_Object.
24049 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24050 Done wrap/unwrap integer values.
24051 (Fset_window_configuration, compare_window_configurations):
24052 Update use of fields to their new types.
24053
24054 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24055 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24056 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24057 (SET_SCROLL_BAR_X_WINDOW): Remove.
24058 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24059 Access the new x_window field directly.
24060 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24061 Don't wrap/unwrap integers into Lisp_Objects.
24062 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24063 (x_scroll_bar_report_motion):
24064 Don't wrap/unwrap integers into Lisp_Objects.
24065 (x_term_init): Use SDATA.
24066 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24067 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24068 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24069 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24070 * xfns.c (x_set_background_color):
24071 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24072 Access the new x_window field directly.
24073
24074 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24075 (allocate_pseudovector): Make non-static.
24076
24077 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24078 (allocate_pseudovector): Declare.
24079 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24080
24081 2007-11-15 Andreas Schwab <schwab@suse.de>
24082
24083 * editfns.c (Fformat): Correctly format EMACS_INT values.
24084 Also take precision into account when formatting an integer.
24085
24086 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24087
24088 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24089
24090 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24091 (syms_of_keyboard): Defsubr it.
24092
24093 * data.c (swap_in_global_binding): Fix longstanding bug where
24094 store_symval_forwarding was not called with the right second argument,
24095 thus causing objfwd-ing from being dropped.
24096
24097 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
24098
24099 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24100 (Fx_display_pixel_height, Fx_display_planes)
24101 (Fx_display_color_cells, Fx_server_max_request_size)
24102 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24103 (Fx_display_visual_class, Fx_display_save_under):
24104 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24105 (Fx_display_pixel_height, Fx_display_planes)
24106 (Fx_display_color_cells, Fx_server_max_request_size)
24107 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24108 (Fx_display_mm_height, Fx_display_mm_width)
24109 (Fx_display_backing_store, Fx_display_visual_class)
24110 (Fw32_select_font, Fx_display_save_under):
24111 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24112 (Fx_display_pixel_height, Fx_display_planes)
24113 (Fx_display_color_cells, Fx_server_max_request_size)
24114 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24115 (Fx_display_save_under): Fix typos in docstrings.
24116
24117 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
24118
24119 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24120 corresponding to deleted entries; they are an implementation detail.
24121 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24122 Remove variables.
24123 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24124 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24125 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24126 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24127 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24128 (Fw32_define_rgb_color, Fw32_load_color_file)
24129 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24130 Fix typos in docstrings.
24131 (Fx_server_version): Reflow docstring.
24132 (Fw32_shell_execute): Doc fixes.
24133
24134 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
24135
24136 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24137 if w32_parse_hot_key returned nil.
24138
24139 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24140
24141 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24142
24143 2007-11-09 Jason Rumney <jasonr@gnu.org>
24144
24145 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24146
24147 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24148
24149 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24150 Remove W32_SCROLL_BAR_CLICK_EVENT.
24151
24152 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24153 Add MULTIMEDIA_KEY_EVENT.
24154
24155 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24156 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24157 (make_lispy_event) [WINDOWSNT]: Use it to translate
24158 MULTIMEDIA_KEY_EVENT.
24159
24160 * w32term.h (WM_APPCOMMAND): Define if not already.
24161 (GET_APPCOMMAND_LPARAM): Likewise.
24162
24163 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24164 WM_APPCOMMAND.
24165
24166 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24167 (syms_of_w32fns): Export and initialize it.
24168 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24169
24170 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
24171
24172 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24173 twice.
24174
24175 * xdisp.c (handle_face_prop): Fix last change.
24176
24177 2007-11-09 Richard Stallman <rms@gnu.org>
24178
24179 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24180 not just for after-strings and before-strings.
24181 Call face_for_overlay_string and pass the overlay to it.
24182 (handle_display_prop): Determine whether property came from an overlay.
24183 Pass OVERLAY arg to handle_single_display_spec.
24184 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24185 (load_overlay_strings): Fill in it->string_overlays.
24186 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24187
24188 * xfaces.c (face_for_overlay_string): Function renamed from
24189 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24190
24191 * dispextern.h (struct it): New elt string_overlays.
24192 New elt from_overlay, also in stack.
24193 Rearrange a few elements.
24194 (face_for_overlay_string): Decl renamed from
24195 face_at_buffer_position_no_overlays, and add argument.
24196
24197 2007-11-09 Richard Stallman <rms@gnu.org>
24198
24199 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24200 to get the base face for an overlay string.
24201
24202 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24203
24204 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24205
24206 * xdisp.c (handle_stop): Move some code out of loop.
24207
24208 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24209
24210 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24211 Fix conversion from Lisp object to ATSUFontID.
24212
24213 2007-11-09 Jason Rumney <jasonr@gnu.org>
24214
24215 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24216
24217 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24218
24219 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24220 Don't assume regions are aligned to page boundary.
24221 (print_load_command_name): Add LC_UUID if defined.
24222
24223 2007-11-09 Richard Stallman <rms@gnu.org>
24224
24225 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24226
24227 2007-11-07 Jason Rumney <jasonr@gnu.org>
24228
24229 * s/windows95.h: Remove.
24230
24231 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24232
24233 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24234 abort with a message on unhandled store_type values.
24235
24236 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24237
24238 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24239 Remove HAVE_X11R5 and HAVE_X11R4.
24240
24241 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24242
24243 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24244
24245 2007-11-01 Johan Bockgård <bojohan@gnu.org>
24246
24247 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24248 Don't set s->stippled_p here, since it has already been set by
24249 x_set_glyph_string_gc from x_draw_glyph_string.
24250
24251 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24252
24253 * sunfns.c: Remove file.
24254
24255 * m/sun386.h:
24256 * m/sun2.h:
24257 * m/sparc.h: Remove Sun windows code.
24258
24259 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24260
24261 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24262 (init_keyboard): Set current_kboard's window-system to nil.
24263 (tty_read_avail_input): Typo.
24264 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24265
24266 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24267
24268 * s/usg5-4.h:
24269 * s/usg5-3.h:
24270 * s/ptx.h:
24271 * m/is386.h:
24272 * m/ibmps2-aix.h:
24273 * Makefile.in: Remove all mentions of X10.
24274
24275 * dispnew.c (syms_of_display): Don't mention version 10.
24276
24277 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
24278
24279 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24280 ($(BLD)/abbrev.$(O)): Remove.
24281
24282 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24283
24284 Rewrite abbrev.c in Elisp.
24285 * image.c (Qcount): Don't declare as extern.
24286 (syms_of_image): Initialize and staticpro `Qcount'.
24287 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24288 * emacs.c (main): Don't call syms_of_abbrev.
24289 * Makefile.in (obj): Remove abbrev.o.
24290 (abbrev.o): Remove.
24291 * abbrev.c: Remove.
24292
24293 2007-10-26 Martin Rudalics <rudalics@gmx.at>
24294
24295 * window.c (window_min_size_2): Don't count header-line.
24296
24297 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24298
24299 * frame.h (struct frame): Move all bit fields after the first bit
24300 field to take advantage of the available space. Group all the
24301 chars together to reduce wasted space due to padding.
24302
24303 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
24304
24305 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24306
24307 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24308 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24309 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24310 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24311 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24312 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24313 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24314 (last_marked, mark_object_loop_halt): Make static.
24315
24316 * frame.c (syms_of_frame) <delete-frame-functions>:
24317 Fix typo in docstring.
24318
24319 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
24320
24321 * w32.c (init_environment): Fix tiny memory leak.
24322 (w32_get_resource): Remove unused variable `ok'.
24323
24324 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24325
24326 Make `window-system' into a keyboard-local variable (rather than
24327 frame-local as done originally by multi-tty).
24328
24329 * keyboard.h (struct kboard): Add Vwindow_system.
24330 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24331 (mark_kboards): Mark Vwindow_system.
24332
24333 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24334 (init_display): Don't set the obsolete `window-system' frame-param.
24335
24336 * xterm.c (x_term_init):
24337 * w32term.c (w32_create_terminal):
24338 * term.c (init_tty): Set Vwindow_system.
24339 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24340 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24341
24342 * xfns.c (Fx_create_frame, x_create_tip_frame):
24343 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24344 * macfns.c (Fx_create_frame):
24345 Don't set the obsolete `window-system' frame-param.
24346
24347 * frame.h (Qwindow_system): Remove.
24348 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24349 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24350
24351 2007-10-24 Richard Stallman <rms@gnu.org>
24352
24353 * frame.c (x_figure_window_size): For fullscreen case,
24354 set USPosition | PPosition without clobbering rest of window_prompting.
24355
24356 * keyboard.c (Fcurrent_idle_time): Doc fix.
24357
24358 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24359
24360 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24361
24362 * process.c (unwind_request_sigio): Only define if __ultrix__.
24363
24364 * callproc.c (child_setup): Remove spurious *.
24365
24366 * lisp.h (Fget_text_property): Declare.
24367 (have_menus_p): Declare it here rather than in sys-dep header files.
24368 * macterm.h (have_menus_p):
24369 * msdos.h (have_menus_p):
24370 * xterm.h (have_menus_p): Remove.
24371
24372 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24373 (Fmake_variable_frame_local): Just check the variable's const-ness
24374 rather than checking nil or t.
24375
24376 2007-10-22 Jason Rumney <jasonr@gnu.org>
24377
24378 * w32fns.c: Include math.h.
24379 (w32_abort): Declaration moved to nt/config.nt.
24380
24381 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24382 (abort): Redefinition moved to nt/config.nt.
24383
24384 * m/windowsnt.h: Remove.
24385
24386 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
24387
24388 * emacs.c (Fdump_emacs): Fix typo in message.
24389 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24390 <installation-directory>: Reflow docstring.
24391
24392 2007-10-22 Juri Linkov <juri@jurta.org>
24393
24394 * minibuf.c: Allow minibuffer default to be a list of default values.
24395 With empty input use the first element of this list as returned default.
24396 (string_to_object)
24397 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24398 (read_minibuf): If defalt is cons, set histstring to its car.
24399 (Fread_string): If default_value is cons, set val to its car.
24400 (Fread_buffer): If def is cons, use its car.
24401 (Fcompleting_read): If defalt is cons, set val to its car.
24402
24403 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
24404
24405 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24406
24407 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
24408
24409 * doc.c (Fdocumentation): Check for advice in all cases.
24410
24411 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
24412
24413 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24414
24415 2007-10-19 Richard Stallman <rms@gnu.org>
24416
24417 * doc.c (Fdocumentation): Check for and handle an advised function.
24418
24419 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
24420
24421 * process.c (Fset_process_filter): Doc fix.
24422
24423 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24424
24425 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24426 which caused key-translation-map to applied repeatedly (thus breaking
24427 double-mode).
24428
24429 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24430
24431 * xselect.c (x_own_selection, x_handle_selection_clear)
24432 (x_clear_frame_selections):
24433 * w32menu.c (list_of_panes, list_of_items):
24434 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24435 * textprop.c (validate_plist, interval_has_all_properties)
24436 (interval_has_some_properties, interval_has_some_properties_list)
24437 (add_properties, text_property_list):
24438 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24439 * minibuf.c (Fassoc_string):
24440 * macselect.c (x_own_selection, x_clear_frame_selections)
24441 (Fx_disown_selection_internal):
24442 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24443 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24444
24445 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
24446
24447 * process.c: Link to libs for calling res_init() if available.
24448 (Fmake_network_process): Call res_init() before getaddrinfo or
24449 gethostbyname, if possible.
24450
24451 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24452
24453 * lread.c (read1): Set pvectype for char_tables.
24454
24455 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24456 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24457 Add type checks.
24458 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24459
24460 * alloc.c (free_misc): Use XMISCTYPE.
24461 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24462
24463 2007-10-17 Glenn Morris <rgm@gnu.org>
24464
24465 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24466 (syms_of_minibuf): Add Qcompletion_ignore_case.
24467 * dired.c (Qcompletion_ignore_case): Change to external.
24468 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24469 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24470 (Fread_file_name): Use it rather than intern'ing.
24471
24472 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24473 (Fread_coding_system): Ignore case of user input.
24474
24475 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24476
24477 * xdisp.c (handle_display_prop): Ignore display specs after
24478 replacing one when string text is being replaced.
24479 (handle_single_display_spec): Pretend as if characters with display
24480 property haven't been consumed only when buffer text is being replaced.
24481
24482 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24483
24484 * xfns.c (Fx_create_frame, Fx_display_list):
24485 * window.c (window_fixed_size_p, enlarge_window)
24486 (shrink_window_lowest_first):
24487 * macterm.c (init_font_name_table):
24488 * macfns.c (Fx_create_frame, Fx_display_list):
24489 * lread.c (close_load_descs):
24490 * keyboard.c (read_char_x_menu_prompt):
24491 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24492 * coding.c (code_convert_region_unwind): Test the type of an object
24493 rather than just !NILP before extracting data from it.
24494
24495 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24496
24497 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24498 (XMISCANY): New macro.
24499 (XMISCTYPE): Use it.
24500 (struct Lisp_Misc_Any): New type.
24501 (union Lisp_Misc): Use it.
24502 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24503 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24504 (find_symbol_value, set_internal, default_value, Fset_default)
24505 (Fmake_variable_buffer_local, Fmake_local_variable)
24506 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24507 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24508 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24509 * alloc.c (allocate_buffer): Set the size and tag.
24510 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24511 Use XMISCANY.
24512 (die): Follow the GNU convention for error messages.
24513 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24514 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24515 tag any more.
24516 (set_buffer_internal_1):
24517 * frame.c (store_frame_param):
24518 * eval.c (specbind):
24519 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24520
24521 * doc.c (Fsnarf_documentation): Simplify.
24522
24523 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
24524
24525 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24526 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24527
24528 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24529
24530 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24531
24532 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
24533
24534 * eval.c (do_autoload): Don't save autoloads.
24535
24536 * data.c (Ffset): Save autoload of the function being set.
24537
24538 2007-10-07 John Paul Wallington <jpw@pobox.com>
24539
24540 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24541 parameter before setting up faces.
24542
24543 2007-10-13 Eli Zaretskii <eliz@gnu.org>
24544
24545 * ccl.c (Fregister_code_conversion_map):
24546 * keyboard.c (append_tool_bar_item): Reformat last change.
24547
24548 * lisp.h (eabs): Rename from `abs'. All callers changed.
24549
24550 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24551
24552 * buffer.c (add_overlay_mod_hooklist):
24553 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24554 * fontset.c (make_fontset):
24555 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24556 (append_tool_bar_item):
24557 * macmenu.c (grow_menu_items):
24558 * w32menu.c (grow_menu_items):
24559 * xmenu.c (grow_menu_items): Use larger_vector.
24560
24561 2007-10-13 Eli Zaretskii <eliz@gnu.org>
24562
24563 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24564 selected frame'' on MSDOS).
24565
24566 2007-10-12 Martin Rudalics <rudalics@gmx.at>
24567
24568 * frame.c (Qexplicit_name): New variable.
24569 (x_report_frame_params): Report it in parameter alist.
24570 (syms_of_frame): Intern and staticpro it.
24571
24572 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24573
24574 * macfns.c (x_create_tip_frame): Set terminal for frame.
24575
24576 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24577
24578 * frame.c (Qenvironment): Remove.
24579 (syms_of_frame) <Qenvironment>: Don't initialize.
24580 (Fdelete_frame): Don't treat the `environment' param specially.
24581 * frame.h (Qenvironment): Don't declare.
24582 * callproc.c (set_initial_environment): Don't set unused frame param.
24583
24584 * frame.c (Fframe_with_environment): Remove.
24585 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24586
24587 * lisp.h (Fframe_with_environment): Don't declare.
24588
24589 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
24590
24591 * indent.c (indent_tabs_mode, last_known_column)
24592 (last_known_column_modified): Make static.
24593 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24594
24595 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24596
24597 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24598
24599 2007-10-09 Jason Rumney <jasonr@gnu.org>
24600
24601 * w32term.c (x_set_window_size): Disable code that attempts to tell
24602 Lisp code about a size change before it actually happens.
24603
24604 2007-10-09 Richard Stallman <rms@gnu.org>
24605
24606 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24607 return HANDLED_RETURN.
24608
24609 2007-10-08 Martin Rudalics <rudalics@gmx.at>
24610
24611 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24612 when there's an unread command event.
24613
24614 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24615 window autoselection act appropriately when leaving selected frame.
24616 (syms_of_frame): Initialize focus_follows_mouse.
24617 * frame.h (focus_follows_mouse): Extern it.
24618 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24619 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24620 * msdos.c (dos_rawgetc): Likewise.
24621 * w32term.c (w32_read_socket): Likewise.
24622 * xterm.c (handle_one_xevent): Likewise.
24623 * xdisp.c (syms_of_xdisp): In doc-string of
24624 mouse-autoselect-window mention focus-follows-mouse.
24625
24626 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24627
24628 * macterm.c (mac_load_query_font): Fix missing return value.
24629 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24630 Add BLOCK_INPUT.
24631
24632 2007-10-08 Richard Stallman <rms@gnu.org>
24633
24634 * xdisp.c (get_window_cursor_type): Implement documented behavior
24635 for cursor-in-non-selected-windows = t.
24636
24637 2007-10-08 Jason Rumney <jasonr@gnu.org>
24638
24639 * w32.c (w32_get_resource): Always close registry keys.
24640
24641 2007-10-08 Jason Rumney <jasonr@gnu.org>
24642
24643 * makefile.w32-in (LIBS): Add COMCTL32.
24644
24645 * w32fns.c (globals_of_w32fns): Init common controls.
24646
24647 2007-10-08 Richard Stallman <rms@gnu.org>
24648
24649 * image.c (our_memory_buffer): Rename from omfib_buffer.
24650
24651 2007-10-08 Richard Stallman <rms@gnu.org>
24652
24653 * buffer.c (Foverlays_at): Doc fix.
24654
24655 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24656
24657 * fns.c (Fplist_put): Preserve uneven tail data.
24658
24659 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24660
24661 * termhooks.h (enum event_kind): Remove trailing comma.
24662
24663 * frame.h (enum): Remove trailing comma.
24664
24665 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24666
24667 * w32proc.c (delete_child): Don't terminate threads of zombies.
24668
24669 2007-10-08 Martin Rudalics <rudalics@gmx.at>
24670
24671 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24672
24673 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24674 last-repeatable-command.
24675 (init_kboard): Initialize Vlast_repeatable_command.
24676 (command_loop_1): Set it to real_this_command unless that was
24677 bound to an input event.
24678 (mark_kboards): Mark it.
24679
24680 2007-10-08 Richard Stallman <rms@gnu.org>
24681
24682 * eval.c (condition-case): Doc fix.
24683
24684 2007-10-08 Masatake YAMATO <jet@gyve.org>
24685
24686 * xfaces.c (tty_supports_face_attributes_p): Fix code
24687 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24688 was copied and not edited.
24689
24690 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24691
24692 Add new `input-decode-map' keymap and use it for terminal
24693 escape sequences.
24694 * keyboard.h (struct kboard): Add Vinput_decode_map.
24695 Remove Vlocal_key_translation_map.
24696 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24697 (init_kboard): Init input-decode-map.
24698 Replace local-key-translation-map back with key-translation-map.
24699 (syms_of_keyboard): Declare input-decode-map.
24700 Remove local-key-translation-map. Update docstrings.
24701 (mark_kboards): Mark Vinput_decode_map.
24702 Don't mark Vlocal_key_translation_map.
24703 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24704 Replace local-key-translation-map back with key-translation-map.
24705 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24706 Bind in input-decode-map rather than function-key-map.
24707
24708 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24709 This was made redundant by the previous introduction of XSETPVECTYPE.
24710
24711 2007-10-09 Richard Stallman <rms@gnu.org>
24712
24713 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24714
24715 2007-09-29 Richard Stallman <rms@gnu.org>
24716
24717 * eval.c (internal_condition_case_2, internal_condition_case_1)
24718 (internal_condition_case): Reenable abort if x_catching_errors ()
24719 to see if that really happens and why.
24720
24721 2007-10-06 Andreas Schwab <schwab@suse.de>
24722
24723 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24724
24725 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
24726
24727 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24728
24729 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24730
24731 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24732
24733 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24734
24735 * window.h (struct window):
24736 * window.c (struct save_window_data, struct saved_window):
24737 * termhooks.h (struct terminal):
24738 * process.h (struct Lisp_Process):
24739 * frame.h (struct frame):
24740 * buffer.h (struct buffer):
24741 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24742 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24743 The size field of (pseudo)vectors is now unsigned.
24744 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24745
24746 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24747 Turn `count' into an integer.
24748
24749 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24750 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24751 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24752 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24753 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24754
24755 * alloc.c (allocate_pseudovector): New fun.
24756 (ALLOCATE_PSEUDOVECTOR): New macro.
24757 (allocate_window, allocate_terminal, allocate_frame)
24758 (allocate_process): Use it.
24759 (mark_vectorlike): New function.
24760 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24761 (mark_terminals): Use it.
24762 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24763 (Fmake_byte_code): Use XSETPVECTYPE.
24764
24765 * frame.c (Fframe_parameters): Minor simplification.
24766
24767 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24768
24769 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24770
24771 * buffer.c (Fget_buffer_create, init_buffer_once):
24772 * lread.c (defsubr):
24773 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24774
24775 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24776 defined differently in the m/*.h files.
24777 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24778 (XSETPVECTYPE): New macro.
24779 (XSETPSEUDOVECTOR): Use it.
24780
24781 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24782 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24783
24784 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24785 * lread.c (defvar_per_buffer):
24786 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24787
24788 * window.c (candidate_window_p): Only consider as visible frames that
24789 are on the same terminal.
24790
24791 * m/ibms390x.h (MARKBIT): Remove unused macro.
24792
24793 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
24794
24795 * lread.c (Fload): Fix typo in docstring.
24796
24797 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24798
24799 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24800 of a non-zero value can't yield zero.
24801
24802 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24803
24804 * term.c (term_clear_mouse_face, term_mouse_highlight)
24805 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24806
24807 * print.c (safe_debug_print): Use XHASH.
24808
24809 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24810 Lisp elements such as tags.
24811 (XHASH): New macro.
24812 (EQ): Use it.
24813 (SREF, SSET, STRING_COPYIN): Use SDATA.
24814 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24815
24816 * alloc.c (mark_terminal): Remove left-over declaration.
24817 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24818 (allocate_vectorlike): Remove type argument. Adjust callers.
24819 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24820 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24821
24822 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24823 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24824 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24825 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24826 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24827 Use them.
24828
24829 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24830 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24831 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24832
24833 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24834
24835 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24836 loaded by default.
24837
24838 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24839
24840 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24841 on this tty.
24842 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24843
24844 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24845 Update all users.
24846 (handle_one_term_event): Use Gpm_DrawPointer.
24847 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24848 Signal errors instead of returning nil. Always return nil.
24849 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24850 Make it a noop if gpm-mouse was not activated.
24851 (syms_of_term): Update names.
24852
24853 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24854
24855 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24856 (init_sys_modes): Check that gpm_tty is the current tty.
24857
24858 * alloc.c (allocate_terminal): Set the vector size to only count the
24859 lisp fields. Initialize those to nil.
24860 (mark_object): Don't treat terminals specially.
24861 (mark_terminal): Remove.
24862 (mark_terminals): Use mark_object instead.
24863
24864 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24865 the GC to the beginning.
24866
24867 * indent.h:
24868 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24869
24870 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24871
24872 2007-09-25 Jason Rumney <jasonr@gnu.org>
24873
24874 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24875
24876 * w32console.c (create_w32cons_output): Remove.
24877
24878 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24879
24880 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24881 (reset_sys_modes): Use reset_terminal_modes_hook.
24882
24883 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24884
24885 * eval.c (do_autoload): Don't output any message.
24886
24887 2007-09-24 Juri Linkov <juri@jurta.org>
24888
24889 * emacs.c (standard_args): Change priority of "--no-splash"
24890 from 40 to 3. Add "--no-desktop" with the same priority.
24891
24892 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24893
24894 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24895 and optimize the case where they are all 1.
24896
24897 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
24898
24899 * lisp.h (abs): Define if not defined.
24900 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24901 Don't define `abs', since it's defined in lisp.h.
24902
24903 2007-09-22 Eli Zaretskii <eliz@gnu.org>
24904
24905 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24906 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24907 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24908 (init_tty): Use DEV_TTY instead of "/dev/tty".
24909 [WINDOWSNT]: No need to protect from NAME arg being null.
24910
24911 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24912
24913 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24914 up the tty state.
24915
24916 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24917
24918 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24919 (gpm_tty): Change its type.
24920 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24921 (gpm_tty): Change its type and initialize it.
24922 (Fterm_open_connection): Check the frame is indeed a tty.
24923 Use the new gpm_tty.
24924 (Fterm_close_connection): Use the new gpm_tty.
24925 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24926 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24927
24928 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
24929
24930 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24931 underline_color, to draw strike-through.
24932
24933 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24934
24935 * lisp.h (allocate_terminal): Declare.
24936
24937 * window.c (candidate_window_p): Consider frames that are being placed
24938 by the user as somewhere between visible and iconified.
24939 (window_loop): Prefer windows on the current frame.
24940 (Fselect_window): Move the use of select-frame to the beginning so we
24941 can just delegate all the work (it'll call us back anyway).
24942
24943 * frame.c (Qdisplay_environment_variable):
24944 * frame.h (Qdisplay_environment_variable): Delete.
24945
24946 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24947 of the first arg, since that value may be a union.
24948
24949 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24950 parameter rather than Qdisplay_environment_variable. If all else
24951 fails, look for DISPLAY in initial-environment.
24952
24953 2007-09-21 Glenn Morris <rgm@gnu.org>
24954
24955 * Makefile.in (emacstool): Remove target.
24956 (lisp, shortlisp): Remove termdev.elc.
24957
24958 2007-09-21 Markus Triska <markus.triska@gmx.at>
24959
24960 * xterm.c (x_delete_display): Compile session management conditionally.
24961
24962 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24963
24964 * callproc.c (getenv_internal_1): New function.
24965 (getenv_internal): Use it.
24966 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24967
24968 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24969 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24970 (Fset_terminal_parameter): Work with dead terminals as well.
24971 (Fmodify_terminal_parameters): Remove.
24972
24973 * terminal.c (get_terminal): Handle terminals.
24974 Make sure the terminal returned is live.
24975 (create_terminal): Use allocate_terminal.
24976 (mark_terminals): Move to alloc.c.
24977 (delete_terminal): Use terminal->name as liveness status.
24978 NULL out fields after freeing their contents.
24979 Don't deallocate the object.
24980 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24981 rather than an int.
24982 (Fterminal_live_p): Accept non-integer arguments.
24983 (Fterminal_list): Return terminal objects rather than an ints.
24984
24985 * alloc.c (enum mem_type): New member for `terminal' objects.
24986 (allocate_terminal): New function.
24987 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24988 Handle terminals.
24989 (mark_terminal): New fun.
24990 (mark_terminals): Move from terminal.c.
24991
24992 * term.c (get_tty_terminal): Don't treat output_initial specially.
24993 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24994 (delete_tty): Use terminal->name as liveness status.
24995
24996 * termhooks.h (struct terminal): Make it into a pseudovector.
24997 Remove `deleted' replaced by checking `name's nullness.
24998
24999 * print.c (print_object): Handle terminals.
25000
25001 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25002 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25003
25004 * frame.c (make_terminal_frame):
25005 * keyboard.c (tty_read_avail_input):
25006 * w32term.c (x_delete_terminal):
25007 * xfns.c (Fx_create_frame, x_create_tip_frame):
25008 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25009
25010 2007-09-20 Glenn Morris <rgm@gnu.org>
25011
25012 * process.c (Fmake_network_process): Doc fix.
25013
25014 2007-09-19 Jason Rumney <jasonr@gnu.org>
25015
25016 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25017
25018 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25019
25020 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25021 Fix a C warning regarding variable constness.
25022
25023 * xterm.c (handle_one_xevent): Fix a C warning.
25024
25025 2007-09-18 Jason Rumney <jasonr@gnu.org>
25026
25027 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25028
25029 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25030
25031 * gtkutil.c (gdpy_def): New variable.
25032 (xg_initialize): Initialize gdpy_def.
25033 (xg_display_close): If no other display exists, set gdpy_def to a
25034 new connection.
25035
25036 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25037
25038 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25039 when we have no file name for the icon.
25040 (xg_tool_bar_expose_callback): Remove.
25041 (xg_create_tool_bar): Don't connect expose signal to
25042 xg_tool_bar_expose_callback.
25043 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25044
25045 2007-09-16 Andreas Schwab <schwab@suse.de>
25046
25047 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25048 values instead of zapping them.
25049
25050 2007-09-14 Glenn Morris <rgm@gnu.org>
25051
25052 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25053 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25054 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25055 scope and rename to omfib_buffer for clarity.
25056 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25057
25058 2007-09-14 Kenichi Handa <handa@m17n.org>
25059
25060 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25061
25062 2007-09-13 Jason Rumney <jasonr@gnu.org>
25063
25064 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25065
25066 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25067
25068 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25069 (mac_term_init): Call here instead, passing rif.
25070
25071 2007-09-13 Glenn Morris <rgm@gnu.org>
25072
25073 * s/hpux.h: No longer define `static' as nothing.
25074
25075 2007-09-13 Johan Bockgård <bojohan@gnu.org>
25076
25077 * callint.c (Fcall_interactively): Remove unused var `fun'.
25078
25079 2007-09-12 Romain Francoise <romain@orebokech.com>
25080
25081 * window.c (prefer_window_split_horizontally, display_buffer):
25082 Revert 2007-09-08 change.
25083
25084 2007-09-12 Glenn Morris <rgm@gnu.org>
25085
25086 * alloca.c: Remove file.
25087 * Makefile.in (alloca): Do not undef.
25088 (allocaobj, alloca.o): Remove.
25089 (otherobj): Remove allocaobj.
25090 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25091 * regex.c (C_ALLOCA): Remove all references and code that was only
25092 used when this was defined.
25093 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25094 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25095 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25096
25097 * Makefile.in (SOURCES, unlock, relock): Delete.
25098
25099 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25100 (menu_grab_callback): All uses changed.
25101
25102 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25103 (x_reply_selection_request): All uses changed.
25104
25105 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25106
25107 * lread.c (load_warn_old_style_backquotes): Change message to look
25108 better when it appears in the middle of byte-compiler messages.
25109
25110 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25111
25112 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25113
25114 * xterm.c (x_create_terminal): Add comment.
25115
25116 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25117
25118 2007-09-10 Richard Stallman <rms@gnu.org>
25119
25120 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25121
25122 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25123
25124 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25125 (DEFUN): Document `intspec', use it instead of `prompt'.
25126
25127 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25128
25129 * data.c (Finteractive_form): If the interactive specification starts
25130 with a `(', use it as a Lisp form.
25131
25132 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25133 name and file modes.
25134
25135 * callint.c (Fcall_interactively): Comment fixes.
25136
25137 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25138
25139 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25140 and compiled functions.
25141
25142 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25143
25144 * window.c (prefer_window_split_horizontally): New variable.
25145 (display_buffer): Consider splitting window horizontally depending
25146 on prefer_window_split_horizontally.
25147
25148 2007-09-08 Eli Zaretskii <eliz@gnu.org>
25149
25150 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25151
25152 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25153
25154 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25155
25156 * frame.c (x_set_frame_parameters): Check number is positive before
25157 using XFASTINT.
25158
25159 * window.c (freeze_window_start): Don't presume selected_window holds
25160 a window object.
25161 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25162
25163 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25164
25165 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25166
25167 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25168
25169 * window.c (Vsplit_window_preferred_function): New var.
25170 (Fdisplay_buffer): Use it.
25171 (syms_of_window): Export, and initialize it.
25172
25173 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25174
25175 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25176
25177 2007-09-06 Glenn Morris <rgm@gnu.org>
25178
25179 * gtkutil.c (menu_grab_callback) <cnt>:
25180 * xselect.c (x_reply_selection_request) <cnt>: Move static
25181 variable to file scope.
25182
25183 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25184
25185 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25186 consistent values of selected_frame and selected_window.
25187
25188 2007-09-04 Jason Rumney <jasonr@gnu.org>
25189
25190 * w32console.c (initialize_w32_display): Zero unused hooks.
25191
25192 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25193
25194 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25195 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25196
25197 2007-09-04 Jason Rumney <jasonr@gnu.org>
25198
25199 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25200 in w32console.c. Set up input. Remove XXX comments that have been
25201 confirmed as correct.
25202
25203 * s/ms-w32.h (MULTI_KBOARD): Define.
25204
25205 * w32console.c (one_and_only_w32cons): Remove.
25206 (initialize_w32_display): Take terminal argument.
25207
25208 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25209 initialize_w32_display.
25210 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25211
25212 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25213
25214 * keyboard.c (discard_mouse_events): Discard it.
25215 (make_lispy_event): Translate it to a lisp event.
25216 (lispy_wheel_names): Add wheel-left and right events.
25217 (syms_of_keyboard): Enlarge wheel_syms.
25218
25219 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25220 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25221
25222 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25223
25224 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25225 from WM_MOUSEHWHEEL.
25226 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25227
25228 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25229 terminal.
25230
25231 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25232 keyboard for the terminal.
25233
25234 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25235
25236 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25237 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25238 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25239 and resume-tty-function to resume-tty-hook.
25240 (Fsuspend_tty, Fresume_tty): Use new names.
25241
25242 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25243
25244 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25245 if it starts with "n:".
25246
25247 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25248
25249 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25250
25251 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25252
25253 * frame.h:
25254 * frame.c (Qterm_environment_variable): Remove.
25255 (syms_of_frame): Don't init and staticpro it.
25256
25257 * callproc.c (getenv_internal): Remove special case for $TERM.
25258
25259 * callproc.c (Vinitial_environment): New variable.
25260 (set_initial_environment): Initialize it.
25261 (syms_of_callproc): Declare it.
25262 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25263 TERM under which a process runs is never related to the TERM in which
25264 Emacs is running.
25265
25266 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25267
25268 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25269 * s/darwin.h: ... do it here.
25270
25271 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25272
25273 * lisp.h (set_initial_environment): Rename from set_global_environment.
25274
25275 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25276 removed by mistake on the multi-tty branch.
25277
25278 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25279 (Fmodify_frame_parameters): Return a value.
25280
25281 * image.c (png_load): Comment-out var only used in commented-out code.
25282
25283 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25284 before passing it to mark_object.
25285
25286 * xfaces.c (internal_resolve_face_name): Return a value.
25287 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25288
25289 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25290 (x_icon): Comment-out var only used in commented-out code.
25291
25292 2007-08-29 Romain Francoise <romain@orebokech.com>
25293
25294 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25295 QUIT hasn't been provided.
25296
25297 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25298
25299 * callproc.c (child_setup, getenv_internal): Use the
25300 display-environment-variable and term-environment-variable frame params.
25301 (set_initial_environment): Initialise Vprocess_environment.
25302
25303 * config.in: Disable multi-keyboard support on a mac.
25304
25305 * frame.c (Qterm_environment_variable)
25306 (Qdisplay_environment_variable): New variables.
25307 (syms_of_frame): Intern and staticpro them.
25308 (Fmake_terminal_frame): Disable output method test.
25309
25310 * frame.h: Declare them here.
25311
25312 * macfns.c (x_set_mouse_color): Get rif from the frame.
25313 (x_set_tool_bar_lines): Don't use updating_frame.
25314 (mac_window): Add 2 new parameters for consistency with other systems.
25315 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25316 frame parameters following what is done in X11 and w32. Don't use
25317 FRAME_MAC_DISPLAY_INFO.
25318 (Fx_open_connection, start_hourglass): Remove window-system check.
25319 (x_create_tip_frame): Get the keyboard from the terminal.
25320
25321 * macmenu.c: Reorder includes.
25322 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25323
25324 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25325 terminal parameter.
25326 (x_clear_frame): Add a frame parameter.
25327 (note_mouse_movement): Get rif from the frame.
25328 (mac_term_init): Initialize the terminal.
25329 (mac_initialize): Make static and move terminal initialization ...
25330 (mac_create_terminal): ... to this new function.
25331
25332 * macterm.h (struct mac_display_info): Add terminal.
25333 (mac_initialize): Delete declaration.
25334
25335 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25336
25337 * sysdep.c: Comment out text after #endif.
25338
25339 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25340 is defined. Better initialize ttys in windows. Use terminal
25341 specific mouse_position_hook.
25342
25343 * termhooks.h (union display_info): Add mac_display_info.
25344
25345 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25346 Set the default minibuffer frame, window_system and the rest of the
25347 frame parameters following what is done in X11.
25348
25349 * w32term.c (w32_initialize): Make static.
25350
25351 * xselect.c (x_handle_selection_clear): Only access
25352 terminal->kboard when MULTI_KBOARD is defined.
25353
25354 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25355 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25356
25357 2007-08-29 Jason Rumney <jasonr@gnu.org>
25358
25359 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25360 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25361
25362 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25363 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25364
25365 * keyboard.c (restore_kboard_configuration): Only define when
25366 MULTI_KBOARD defined.
25367
25368 * makefile.w32-in: Update dependancies from Makefile.in.
25369 (OBJ1): Add terminal.$(O)
25370
25371 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25372 Don't define function body.
25373 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25374
25375 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25376
25377 * w32.c (request_sigio, unrequest_sigio): Remove.
25378
25379 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25380 (w32con_clear_frame, w32con_clear_end_of_line)
25381 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25382 (w32con_delete_glyphs, w32con_set_terminal_window)
25383 (scroll_line, w32_sys_ring_bell): Add frame arg.
25384 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25385 Add terminal arg.
25386 (PICK_FRAME): Remove.
25387 (w32con_write_glyphs): Use frame specific terminal coding.
25388 (one_and_only_w32cons): New global variable.
25389 (initialize_w32_display): Use it for storing hooks.
25390 (create_w32cons_output): New function.
25391
25392 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25393 arg a frame.
25394
25395 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25396 Set window_system.
25397 (x_set_tool_bar_lines): Don't use updating_frame.
25398 (Fx_create_frame): Set terminal and ref count.
25399 (Fx_open_connection): Remove window-system check.
25400
25401 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25402
25403 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25404 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25405 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25406 Add frame arg.
25407 (x_delete_terminal, w32_create_terminal): New functions.
25408 (w32_term_init): Create a terminal.
25409 (w32_initialize): Move terminal specific initialization to
25410 w32_create_terminal.
25411
25412 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25413 (w32_clear_rect, w32_clear_area): Use background from frame.
25414 (w32_display_info): Add terminal.
25415 (w32_sys_ring_bell, x_delete_display): Declare here.
25416
25417 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25418
25419 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25420
25421 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25422
25423 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25424 Fix get_named_tty calls for the controlling tty.
25425
25426 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25427
25428 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
25429
25430 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25431
25432 * term.c (tty_insert_glyphs): Add missing first parameter.
25433
25434 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25435
25436 * buffer.c (Fbuffer_list, Fbury_buffer):
25437 Take frame->buried_buffer_list into account.
25438
25439 * cm.c (current_tty): New variable, for cmputc().
25440 (cmputc): Use it.
25441 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25442 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25443 (cmgoto): Add tty parameter. Pass it on to calccost().
25444 Use emacs_tputs() instead of tputs().
25445
25446 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25447 tputs().
25448 (current_tty): New variable, for cmputc().
25449 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25450
25451 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25452 (internal_condition_case, internal_condition_case_1)
25453 (internal_condition_case_2): Don't abort when x_catching_errors.
25454
25455 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25456 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25457 prevent crashes caused by bogus longjmps in read_char.
25458
25459 * keymap.h (Fset_keymap_parent): Add EXFUN.
25460
25461 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25462 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25463 Remove redundant definition.
25464
25465 * macfns.c (x_set_mouse_color, x_make_gc):
25466 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25467
25468 * w32term.c (x_free_frame_resources):
25469 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25470 (w32_initialize): Use the accessor macros for terminal characteristics.
25471
25472 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25473 Use the accessor macros for terminal characteristics.
25474 * msdos.c (internal_terminal_init): Use the accessor macros for
25475 terminal characteristics.
25476 (ScreenVisualBell, internal_terminal_init):
25477 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25478
25479 * termopts.h (no_redraw_on_reenter): Declare.
25480
25481 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25482 (mark_terminals, mark_ttys): Declare.
25483 (Fgarbage_collect): Call them.
25484 (mark_object): Mark buried_buffer_list.
25485
25486 * prefix-args.c: Include stdlib.h for exit.
25487
25488 * syssignal.h: Add comment.
25489
25490 * indent.c: Include stdio.h.
25491
25492 * window.h (Vinitial_window_system): Declare.
25493 (Vwindow_system): Delete declaration.
25494
25495 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25496
25497 * image.c (lookup_image): Don't initialize `c' until the xasserts
25498 have been run.
25499
25500 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25501 FRAME_FOREGROUND_PIXEL.
25502
25503 * print.c (print_preprocess): Don't lose print_depth levels while
25504 iterating.
25505
25506 * widget.c (update_from_various_frame_slots):
25507 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25508
25509 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25510 frames.
25511 (window_internal_height): Remove bogus make_number call.
25512 (init_window_once): Call make_terminal_frame with two zero parameters.
25513
25514 * fileio.c (Fread_file_name): Update comment.
25515
25516 * callint.c (Fcall_interactively):
25517 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25518 Make sure it is correctly unwound.
25519
25520 * xsmfns.c (x_session_close): New function.
25521
25522 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25523 Delete declarations.
25524
25525 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25526 (x_output): Remove background_pixel and foreground_pixel fields.
25527 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25528 (x_delete_device, x_session_close): Declare.
25529
25530 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25531 (read_filtered_event): Call `read_char' with a local
25532 `wrong_kboard_jmpbuf'.
25533
25534 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25535 Don't call single_kboard_state. Use FRAME_RIF.
25536
25537 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25538 systems.
25539
25540 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25541 (Fframe_with_environment, Fset_input_meta_mode)
25542 (Fset_quit_char): EXFUN.
25543 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25544 (init_sys_modes, reset_sys_modes): Update prototypes.
25545 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25546
25547 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25548 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25549 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25550 Delete declarations.
25551 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25552 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25553 New declarations.
25554
25555 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25556 already does that during init_display(). Call syms_of_keymap
25557 before syms_of_keyboard. Call `syms_of_terminal'.
25558 Call set_initial_environment, not set_process_environment.
25559 (shut_down_emacs): Call reset_all_sys_modes() instead of
25560 reset_sys_modes().
25561
25562 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25563 (internal_resolve_face_name, resolve_face_name_error): New functions.
25564 (resolve_face_name): Protect against loops and errors thrown by Fget.
25565 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25566 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25567
25568 * scroll.c: Replace CURTTY() with local variables throughout the
25569 file (where applicable).
25570 (calculate_scrolling, calculate_direct_scrolling)
25571 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25572 characteristics.
25573
25574 * keymap.c (Vfunction_key_map): Remove.
25575 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25576 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25577 (Vkey_translation_map): Remove.
25578 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25579 (Fdescribe_buffer_bindings)
25580 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25581 Update for terminal-local key-translation-map.
25582
25583 * Makefile.in (callproc.o): Update dependencies.
25584 (lisp, shortlisp): Add termdev.elc.
25585 (obj): Add terminal.o.
25586 (terminal.o): Add dependencies.
25587 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25588 (data.o, fns.o): Add termhooks.h dependency.
25589 (SOME_MACHINE_LISP): Add dnd.elc.
25590 (minibuf.o): Fix typo.
25591 Update dependencies.
25592
25593 * data.c (do_symval_forwarding, store_symval_forwarding)
25594 (find_symbol_value): Use the selected frame's keyboard, not
25595 current_kboard.
25596
25597 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25598 Vwindow_system.
25599
25600 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25601 Fmenu_bar_open.
25602 (syms_of_xmenu): Update defsubr.
25603 (mouse_position_for_popup, Fx_popup_menu)
25604 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25605 (set_frame_menubar, free_frame_menubar)
25606 (create_and_show_popup_menu, xmenu_show)
25607 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25608 an X frame.
25609
25610 * xselect.c (x_own_selection): Abort if not an X frame.
25611 (some_frame_on_display): Check if it is an X frame.
25612 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25613
25614 * coding.c: Include frame.h and termhooks.h.
25615 (terminal_coding, keyboard_coding): Delete.
25616 (Fset_terminal_coding_system_internal)
25617 (Fset_keyboard_coding_system_internal)
25618 (Fkeyboard_coding_system)
25619 (Fterminal_coding_system): Add a terminal parameter.
25620 Get terminal_coding from the terminal.
25621 (init_coding_once): Don't call setup_coding_system here.
25622
25623 * dispextern.h (set_scroll_region, turn_off_insert)
25624 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25625 (tty_clear_end_of_line, tty_setup_colors)
25626 (delete_tty, updating_frame)
25627 (produce_special_glyphs, produce_glyphs, write_glyphs)
25628 (insert_glyphs): Remove.
25629 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25630 (tty_turn_off_highlight, get_tty_size): Add declaration.
25631 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25632
25633 * frame.h (enum output_method): Add output_initial.
25634 (struct x_output): Delete.
25635 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25636 Access foreground_pixel and background_pixel directly from the frame.
25637 (tty_display): Delete.
25638 (struct frame): Add buried_buffer_list, foreground_pixel,
25639 background_pixel and terminal. Delete kboard.
25640 (union output_data): Add tty.
25641 (FRAME_KBOARD): Get the kboard from the terminal.
25642 (FRAME_INITIAL_P): New macro.
25643 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25644 (Qterm_environment_variable, Qdisplay_environment_variable)
25645 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25646 New declarations.
25647
25648 * termchar.h (tty_output, tty_display_info): New structures.
25649 (tty_list): Declare.
25650 (FRAME_TTY, CURTTY): New macros.
25651 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25652 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25653 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25654 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25655
25656 * callproc.c: Include frame.h and termhooks.h, for terminal
25657 parameters.
25658 (add_env): New function.
25659 (child_setup): Use it.
25660 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25661 (getenv_internal): Fix get_terminal_param call.
25662 (Fgetenv_internal, egetenv): Update doc.
25663 (syms_of_callproc): Initialize Vprocess_environment to nil.
25664 Register and initialize them. Remove obsolete defvars. Update doc
25665 strings.
25666 (child_setup): Handle Vlocal_environment_variables.
25667 (getenv_internal): Add terminal parameter.
25668 Handle Vlocal_environment_variables.
25669 (Fgetenv_internal): Add terminal parameter.
25670 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25671 environment in a frame (not terminal) parameter. Update doc strings.
25672 (set_initial_environment): Rename from set_global_environment.
25673 Store Emacs environment in initial frame parameter.
25674
25675 * xdisp.c (redisplay_internal): Update references to
25676 `previous_terminal_frame'.
25677 (display_mode_line, Fformat_mode_line): Replace calls to
25678 `push_frame_kboard' with `push_kboard'.
25679 (get_glyph_string_clip_rects): Add extra parentheses and
25680 braces to prevent compiler warnings.
25681 (calc_pixel_width_or_height): Add xassert to check that the
25682 frame is alive. Don't call `lookup_image' on a termcap frame.
25683 (message2_nolog, message3_nolog, redisplay_internal)
25684 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25685 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25686 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25687 (Fx_display_pixel_width, Fx_display_pixel_height)
25688 (Fx_display_planes, Fx_display_color_cells)
25689 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25690 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25691 (Fx_display_backing_store, Fx_display_visual_class)
25692 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25693 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25694
25695 * xfns.c (x_set_foreground_color x_set_background_color)
25696 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25697 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25698 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25699 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25700 terminal that is being deleted.
25701 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25702 frame parameter, and make sure it overrides any user-supplied setting.
25703 (Fx_close_connection, Fx_synchronize): Unify argument names with
25704 the rest of the DEFUNs.
25705
25706 * dispnew.c (Fsend_string_to_terminal): Update call to
25707 `get_tty_terminal'.
25708 (Fredraw_frame, Fsend_string_to_terminal)
25709 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25710 FRAME_TERMCAP_P and FRAME_TTY.
25711 (window_change_signal): Don't believe width/height values that are
25712 impossibly small.
25713 (Vinitial_window_system): Rename from Vwindow_system.
25714 (termscript, Wcm, rif): Delete.
25715
25716 * termhooks.h (struct terminal): New struct containing the
25717 previously global text display hooks and new members NAME,
25718 DELETED and PARAM_ALIST.
25719 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25720 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25721 (FRAME_RIF): New macros.
25722 (get_terminal_param, get_device): New declarations.
25723 (termscript): Delete declaration.
25724
25725 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25726 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25727 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25728 FRAME_FOREGROUND_PIXEL.
25729 (x_fully_uncatch_errors): Disable definition.
25730 (x_scroll_bar_expose): Fix reference to foreground pixel.
25731 (XTread_socket): Disable loop on all X displays.
25732 (x_delete_terminal): Don't set terminal->deleted and let
25733 delete_terminal delete the frames on the terminal.
25734 (x_delete_display): Doc update to reflect changes in
25735 delete_terminal.
25736 (x_display_info) <terminal>: Move member earlier in the struct.
25737 (deleting_tty): Remove old variable.
25738 (Fsuspend_tty): Call clear_tty_hooks.
25739 (Fresume_tty, init_tty): Call set_tty_hooks.
25740 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25741 errors on X frames.
25742 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25743 (handle_one_xevent): Initialize `f' to NULL.
25744 (x_delete_terminal, x_create_terminal): New functions.
25745 (XTset_terminal_modes, XTreset_terminal_modes)
25746 (XTread_socket, x_connection_closed, x_term_init)
25747 (x_term_init, x_delete_display): Add terminal parameter.
25748 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25749 X connections.
25750
25751 * frame.c: Include termchar.h.
25752 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25753 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25754 (Qdisplay_environment_variable): New vars.
25755 (Fframep): Deal with output_initial.
25756 (Fframe-live-p): Doc fix.
25757 (Fwindow-system): New function.
25758 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25759 (make_terminal_frame): Don't create frames on a terminal that is
25760 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25761 (store_frame_param): Check for found_for_frame before calling XFRAME.
25762 (Fmake_terminal_frame): Handle NULL tty names correctly.
25763 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25764 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25765 frames to refer to a deleted frame in their 'environment parameter.
25766 (Fframe_with_environment): New function.
25767 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25768 (get_future_frame_param): New function.
25769 (Fmake_terminal_frame): Use it.
25770 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25771
25772 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25773 * sysdep.c (reset_sys_modes): Update for renames.
25774
25775 * keyboard.c (tty_read_avail_input): New function.
25776 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25777 (syms_of_keyboard): Defsubr them.
25778 (Fset_input_meta_mode, Fset_quit_char): New functions.
25779 (Fset_input_mode): Split to above functions.
25780 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25781 parameter. Use it in call to `read_char'.
25782 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25783 Set wrong_kboard_jmpbuf correctly in recursive calls.
25784 Use current_kboard to access Vkeyboard_translate_table.
25785 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25786 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25787 Update longjmp invocations. Remember the original current_kboard,
25788 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25789 changes it. Comment out unnecessary calls to
25790 `record_single_kboard_state' and `any_kboard_state'.
25791 Update recursive calls.
25792 (wrong_kboard_jmpbuf): Remove global variable.
25793 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25794 Handle deleted interrupted_kboards correctly; that is a legal
25795 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25796 and read_char calls. Abort if interrupted_kboard died in read_char.
25797 (any_kboard_state, single_kboard_state)
25798 (push_frame_kboard): Remove function.
25799 (pop_kboard): Switch out of single_kboard mode if the kboard has
25800 been deleted. Remove unused variable. Help debugging by not
25801 changing current_kboard unnecessarily. Set current_kboard to the
25802 kboard of the selected frame when the stored kboard object has
25803 been deleted before pop_kboard.
25804 (temporarily_switch_to_single_kboard): Change first parameter to a
25805 frame pointer. Throw an error when caller wants to change kboards
25806 while in single_kboard mode. Don't push_kboard if we weren't in
25807 single kboard state. Don't pop_kboard if we popped into any
25808 kboard state.
25809 (restore_kboard_configuration): Abort if pop_kboard changed the
25810 kboard in single_kboard mode. Call pop_kboard only after setting
25811 up single_kboard mode.
25812 (Frecursive_edit): Switch to single_kboard mode only in nested
25813 command loops.
25814 (cmd_error, command_loop, command_loop_1, timer_check):
25815 Comment out unnecessary call to `any_kboard_state' and
25816 `record_single_kboard_state'.
25817 (delete_kboard): Exit single_kboard mode if we have just deleted
25818 that kboard. Use FRAME_KBOARD.
25819 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25820 `fatal_error_signal'.
25821 (record_single_kboard_state): Don't push_kboard if we weren't in
25822 single kboard state. Don't pop_kboard if we popped into any
25823 kboard state.
25824 (push_frame_kboard): Rename to push_kboard.
25825 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25826 (read_avail_input): Read input from all terminals.
25827 (mark_kboards): Also mark Vkeyboard_translate_table.
25828 (kbd_buffer_store_event_hold): Simplify condition.
25829 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25830 (Vkeyboard_translate_table): Move to struct kboard.
25831 (init_kboard): Initialize Vkeyboard_translate_table.
25832 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25833 Vkeyboard_translate_table. Update doc strings. Update docs of
25834 local-function-key-map and function-key-map.
25835
25836 * terminal.c: New file.
25837
25838 * term.c: Include errno.h.
25839 (Vring_bell_function, device_list, initial_device)
25840 (next_device_id, ring_bell, update_begin, update_end)
25841 (set_terminal_window, cursor_to, raw_cursor_to)
25842 (clear_to_end, clear_frame, clear_end_of_line)
25843 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25844 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25845 (syms_of_term): Move their initialization to terminal.c.
25846 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25847 (Ftty_display_color_cells)
25848 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25849 (clear_tty_hooks, set_tty_hooks)
25850 (init_tty, maybe_fatal): New functions.
25851 (Ftty_type): Return nil if terminal is not on a tty instead of
25852 throwing an error. Doc update.
25853 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25854 Doc update. Initialize new subrs and variables.
25855 (delete_tty): Use terminal->deleted.
25856 (tty_set_terminal_modes): Rename from set_terminal_modes.
25857 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25858 (set_scroll_region): Rename to `tty_set_scroll_region'.
25859 (turn_on_insert): Rename to `tty_turn_on_insert'.
25860 (turn_off_insert): Rename to `tty_turn_off_insert'.
25861 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25862 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25863 (toggle_highligh): Rename to `tty_toggle_highlight'.
25864 (background_highlight): Rename to `tty_background_highlight'.
25865 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25866 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25867 (tty_set_scroll_region, tty_background_highlight)
25868 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25869 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25870 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25871 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25872 Add static modifier.
25873 (tty_reset_terminal_modes, tty_set_terminal_window)
25874 (tty_set_scroll_region, tty_background_highlight)
25875 (tty_highlight_if_desired, tty_cursor_to)
25876 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25877 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25878 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25879 renames.
25880
25881 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25882
25883 * keyboard.c: Qrtl is new.
25884 (parse_tool_bar_item): Handle :rtl keyword.
25885 (syms_of_keyboard): Intern :rtl keyword.
25886
25887 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25888
25889 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25890 so no Lisp code is executed.
25891 (file_for_image, find_rtl_image): New functions.
25892 (xg_get_image_for_pixmap): Use file_for_image.
25893 (update_frame_tool_bar): If direction is RTL, use RTL image if
25894 defined. Use Gtk stock images if defined.
25895
25896 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25897
25898 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25899 for nonexistent or zero-width glyph in composition glyph.
25900
25901 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25902
25903 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25904
25905 * xdisp.c (Finvisible_p): New function.
25906 (syms_of_xdisp): defsubr it.
25907
25908 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
25909
25910 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25911 Doc fixes.
25912
25913 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25914
25915 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25916
25917 2007-08-24 Martin Rudalics <rudalics@gmx.at>
25918
25919 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25920 whether decoding has modified buffer contents.
25921
25922 2007-08-24 Jason Rumney <jasonr@gnu.org>
25923
25924 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25925 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25926 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25927 (init_svg_functions) [HAVE_NTGUI]: New function.
25928 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25929 (svg_load_image): Use them.
25930 (svg_load_image) [HAVE_NTGUI]: Implement background.
25931
25932 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25933
25934 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25935 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25936 (LIBX): Remove @RSVG_LIBS@.
25937 (LIBES): Add $(RSVG_LIBS).
25938
25939 * image.c (svg_load_image): Blend with specified background if exists.
25940 Use IMAGE_BACKGROUND. Add Mac OS Support.
25941
25942 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25943 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25944 Remove macros.
25945 [MAC_OSX] (socket_callback): Do nothing.
25946 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25947 ReceiveNextEvent.
25948 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25949 socket_callback.
25950 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25951
25952 2007-08-22 Glenn Morris <rgm@gnu.org>
25953
25954 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25955
25956 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25957
25958 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25959
25960 * image.c: Add support for SVG images. Some additional comments
25961 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25962 (svg_image_p): New function to test for SVG image.
25963 (svg_load): New function to load SVG image.
25964 (svg_load_image): New function, helper for svg_load.
25965 (Qsvg): New Lisp_object.
25966 (svg_keyword_index): New enum.
25967 (svg_format): New static `image_keyword' struct.
25968 (svg_type): New static `image_type' struct.
25969 (librsvg/rsvg.h): Include it.
25970
25971 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25972
25973 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25974
25975 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25976
25977 * lread.c (Qold_style_backquotes): New var.
25978 (syms_of_lread): Init and staticpro it.
25979 (load_warn_old_style_backquotes): New fun.
25980 (Fload): Use them to warn about old style backquotes.
25981 (end_of_file_error, Fload): Remove unused vars.
25982
25983 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25984
25985 * lread.c (Vold_style_backquotes): New var.
25986 (syms_of_lread): Init and export it to Elisp.
25987 (read1): Set it when we find an old-style (back)quote.
25988
25989 2007-08-22 Jason Rumney <jasonr@gnu.org>
25990
25991 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25992
25993 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25994
25995 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25996
25997 2007-08-19 Richard Stallman <rms@gnu.org>
25998
25999 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26000
26001 2007-08-19 Andreas Schwab <schwab@suse.de>
26002
26003 * alloc.c (pure): Round PURESIZE up.
26004
26005 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26006
26007 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26008 active frame.
26009
26010 2007-08-16 Richard Stallman <rms@gnu.org>
26011
26012 * eval.c (Fcommandp): Add parens to clarify.
26013
26014 * minibuf.c (Fall_completions): Use enum for type of table.
26015
26016 * emacs.c (USAGE2): Improve text.
26017
26018 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26019
26020 * term.c (tty_default_color_capabilities): Declare static
26021 variables in file scope, to avoid HPUX compiler problem.
26022
26023 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26024
26025 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26026 to gtk_toolbar_insert.
26027
26028 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26029
26030 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26031
26032 * insdel.c (reset_var_on_error): New fun.
26033 (signal_before_change, signal_after_change):
26034 Use it to reset (after|before)-change-functions to nil in case of error.
26035 Bind inhibit-modification-hooks to t.
26036 Don't bind (after|before)-change-functions to nil while they run.
26037
26038 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26039
26040 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26041 filling pixmap with stippled background.
26042
26043 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26044
26045 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26046 Don't use invisible frame as parent window for repositioning.
26047
26048 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26049
26050 * print.c (new_backquote_output): Rename from old_backquote_output.
26051 (print): Inverse its logic (according to its name) so as to match the
26052 behavior of new_backquote_flag in lread.c.
26053
26054 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26055
26056 * gmalloc.c (posix_memalign): New function.
26057
26058 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26059 ActivateControl/DeactivateControl here.
26060 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26061 frame-notice-user-settings is non-nil.
26062 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26063 for kEventParamFMFontStyle.
26064 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26065 mac_pass_command_to_system and mac_pass_control_to_system here.
26066 (XTread_socket): Call ActivateControl/DeactivateControl here.
26067 (XTread_socket) [TARGET_API_MAC_CARBON]:
26068 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26069 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26070 for window repositioning.
26071
26072 2007-08-08 Glenn Morris <rgm@gnu.org>
26073
26074 * Replace `iff' in doc-strings and comments.
26075
26076 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
26077
26078 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26079
26080 2007-08-07 Martin Rudalics <rudalics@gmx.at>
26081
26082 * fileio.c (Finsert_file_contents): Run format-decode and
26083 after_insert_file_functions on entire buffer when REPLACE is
26084 non-nil and inhibit modification_hooks and point_motion_hooks.
26085 For consistency, run after_insert_file_functions iff something
26086 got inserted. Move signal_after_change and update_compositions
26087 after code running after_insert_file_functions. Make sure that
26088 undo_list doesn't record intermediate steps of the decoding process.
26089
26090 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26091
26092 * emacs.c (main)
26093 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26094 Call malloc_enable_thread on interactive startup.
26095
26096 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26097 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26098 [USE_PTHREAD]: Conditionalize with it.
26099 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26100 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26101 New functions.
26102
26103 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
26104
26105 * xdisp.c (redisplay_window): When restoring original buffer
26106 position, make sure it is still valid.
26107
26108 * image.c (png_load): Ignore png-supplied background color.
26109
26110 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26111
26112 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26113 Use kCFAbsoluteTimeIntervalSince1970.
26114
26115 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26116 New variable.
26117 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26118 event loop should be quit.
26119 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26120 Quit dialog event loop if quit_dialog_event_loop is set.
26121
26122 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26123 (Selection): New typedef. Use instead of ScrapRef.
26124 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26125 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26126 (mac_clear_selection): Rename from clear_scrap.
26127 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26128 scrap_has_target_type. All uses changed.
26129 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26130 (mac_selection_has_target_p): New functions.
26131 (mac_put_selection_value): Rename from put_scrap_string.
26132 (mac_get_selection_value): Rename from get_scrap_string.
26133 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26134 (put_scrap_private_timestamp, scrap_has_target_type)
26135 (get_scrap_private_timestamp): Remove functions.
26136 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26137 (x_own_selection, x_get_local_selection):
26138 Use mac_valid_selection_value_p.
26139 (x_own_selection): Don't use put_scrap_private_timestamp.
26140 Record OWNERSHIP-INFO into Vselection_alist instead.
26141 (x_get_local_selection): Don't check type if request is local.
26142 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26143 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26144
26145 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26146
26147 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26148 add comment explaining why.
26149
26150 2007-08-03 Richard Stallman <rms@gnu.org>
26151
26152 * fileio.c (Fvisited_file_modtime): Use make_time.
26153
26154 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26155
26156 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26157 build.
26158
26159 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26160
26161 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26162
26163 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26164
26165 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26166
26167 2007-07-30 Richard Stallman <rms@gnu.org>
26168
26169 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26170
26171 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26172
26173 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26174
26175 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
26176
26177 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26178 remote default-directory.
26179
26180 * buffer.c (mode-line-format): Update doc string.
26181
26182 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26183
26184 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26185 scroll bar gap.
26186 (x_scroll_bar_create): Set bar->fringe_extended_p.
26187 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26188 on frame edge. Check fringe background extension. Don't clear
26189 extended fringe background area.
26190
26191 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26192 (w32_fill_area): Enclose multiple statements with do ... while (0).
26193
26194 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26195 Extend fringe background to scroll bar gap.
26196 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26197 Set bar->fringe_extended_p.
26198 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26199 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26200 background extension. Don't clear extended fringe background area.
26201
26202 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26203 New member fringe_extended_p.
26204
26205 2007-07-25 Glenn Morris <rgm@gnu.org>
26206
26207 * Relicense all FSF files to GPLv3 or later.
26208
26209 * COPYING: Switch to GPLv3.
26210
26211 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26212
26213 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26214
26215 * data.c (Finteractive_form): Check for the presence of an
26216 `interactive-form' symbol property more thoroughly.
26217
26218 * data.c (Finteractive_form): Use an `interactive-form' property if
26219 present, analogous to the function-documentation property.
26220
26221 2007-07-24 Jason Rumney <jasonr@gnu.org>
26222
26223 * w32fns.c (x_real_positions): Get real position from OS instead of
26224 calculating it.
26225
26226 2007-07-23 Jason Rumney <jasonr@gnu.org>
26227
26228 * filelock.c (current_lock_owner): Allow for @ sign in username.
26229
26230 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
26231
26232 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26233 remote default-directory.
26234
26235 * buffer.c (mode-line-format): Describe above case in doc string.
26236
26237 2007-07-20 Eli Zaretskii <eliz@gnu.org>
26238
26239 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26240 Define if not defined.
26241
26242 2007-07-18 Jason Rumney <jasonr@gnu.org>
26243
26244 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26245
26246 2007-07-18 Richard Stallman <rms@gnu.org>
26247
26248 * data.c (Fsetq_default): Doc fix.
26249
26250 * eval.c (Fsetq): Doc fix.
26251
26252 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
26253
26254 * coding.c (Ffind_operation_coding_system):
26255 * eval.c (For, Fand): Doc fixes.
26256 Reported by Johan Bockgård.
26257
26258 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26259
26260 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26261
26262 * xterm.h: Declare x_ewmh_activate_frame.
26263
26264 * xterm.c (x_ewmh_activate_frame): New function.
26265 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26266
26267 2007-07-17 Martin Rudalics <rudalics@gmx.at>
26268
26269 * window.c (Fdisplay_buffer): If largest or LRU window is the
26270 only window, split it even if it is not eligible for splitting.
26271 This restores the original behavior broken by the 2007-07-15
26272 change.
26273
26274 2007-07-17 Glenn Morris <rgm@gnu.org>
26275
26276 * abbrev.c (abbrev_check_chars): New function.
26277 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26278 Call abbrev_check_chars to check abbrev characters are word
26279 constituents. Doc fix.
26280
26281 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26282
26283 * process.c (Fstart_process, Fmake_network_process)
26284 (read_process_output): Fix up last changes.
26285
26286 2007-07-16 Eli Zaretskii <eliz@gnu.org>
26287
26288 * makefile.w32-in (clean): Don't delete *~.
26289
26290 2007-07-16 Andreas Schwab <schwab@suse.de>
26291
26292 * window.c (Fdisplay_buffer): Use NILP.
26293 (Fset_window_scroll_bars): Likewise.
26294
26295 2007-07-15 Martin Rudalics <rudalics@gmx.at>
26296
26297 * window.c (window_min_size_2): New function.
26298 (window_min_size_1, size_window, Fdisplay_buffer)
26299 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26300 windows without mode- or header-lines when window-min-height is
26301 too small.
26302 (size_window): Reset nodelete_p after testing it, following an
26303 earlier note by Kim F. Storm.
26304 (display_buffer): Do not set split_height_threshold to twice the
26305 value of window_min_height to avoid changing the value of a
26306 customizable variable. Rather explicitly check whether the
26307 height of the window that shall be splitted is at least as large
26308 as split_height_threshold.
26309 (Fwindow_full_width_p): New defun.
26310 (syms_of_window): Defsubr it.
26311
26312 * window.h: Add EXFUN for Fwindow_full_width_p.
26313
26314 2007-07-14 Jason Rumney <jasonr@gnu.org>
26315
26316 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26317
26318 2007-07-14 Richard Stallman <rms@gnu.org>
26319
26320 * eval.c (maybe_call_debugger): New function.
26321 (find_handler_clause): Use maybe_call_debugger.
26322 Call it when the handler says `debug'.
26323 Eliminate DEBUGGER_VALUE_PTR.
26324 (Fsignal): Eliminate debugger_value.
26325 (Qdebug): New variable.
26326 (syms_of_eval): Initialize it.
26327
26328 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
26329
26330 * eval.c (Fprogn):
26331 * keyboard.c (Ftrack_mouse):
26332 * print.c (Fwith_output_to_temp_buffer):
26333 * window.c (Fsave_window_excursion): Doc fix.
26334
26335 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26336
26337 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26338
26339 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26340
26341 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26342 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26343 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26344 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26345 Remove unused encoding_carryover.
26346 * process.c: Adjust all functions accordingly.
26347
26348 2007-07-12 Richard Stallman <rms@gnu.org>
26349
26350 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26351
26352 2007-07-11 Jason Rumney <jasonr@gnu.org>
26353
26354 * makefile.w32-in (LIBS): Include OLE32.
26355
26356 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26357 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26358
26359 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26360
26361 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26362 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26363 from a Lisp_Object into a bare pointer.
26364 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26365 Adjust the code correspondingly.
26366
26367 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26368
26369 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26370 (term_show_mouse_face): Remove unused var `j'.
26371 (handle_one_term_event): Remove unused vars `i' and `j'.
26372 Don't cast return value of ttyname since it's not necessary.
26373
26374 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26375
26376 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26377 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26378
26379 * fns.c (map_char_table): Use an array of int for `indices' rather than
26380 an array of Lisp_Objects (which are only ever integers anyway).
26381 (Fmap_char_table): Update caller.
26382 * lisp.h: Update prototype.
26383 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26384 * fontset.c (Ffontset_info):
26385 * casetab.c (set_case_table): Update callers.
26386
26387 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26388
26389 * keymap.c (struct accessible_keymaps_data)
26390 (struct where_is_internal_data): New structures.
26391 (accessible_keymaps_1, where_is_internal_1): Use them to change
26392 interface to adhere to the one used by map_keymap.
26393 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26394 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26395
26396 * keymap.h (map_keymap_function_t): More informative prototype.
26397
26398 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26399
26400 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26401 (looking_at_1): Don't change search_regs and last_thing_searched
26402 if `inhibit-changing-match-data' is non-nil.
26403 (string_match_1, search_buffer, set_search_regs): Likewise.
26404 (syms_of_search): Add Lisp level definition for
26405 `inhibit-changing-match-data' and set it to nil.
26406 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26407 start and end of the match, instead of using values in search_regs.
26408
26409 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26410
26411 * minibuf.c (Fcompleting_read): New value `confirm-only'
26412 for `require-match'.
26413
26414 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26415
26416 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26417 part of the 2007-06-27 change to syms_of_fileio.
26418
26419 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26420
26421 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26422 Check WINDOWP before using XWINDOW. Consolidate return statements.
26423
26424 2007-06-27 Richard Stallman <rms@gnu.org>
26425
26426 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26427
26428 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
26429
26430 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26431
26432 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26433
26434 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26435 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26436 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26437 (_free_internal, memalign): Use them.
26438 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26439 Initialize to PTHREAD_MUTEX_INITIALIZER.
26440 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26441 (morecore_nolock): Rename from morecore. All uses changed.
26442 Use only nolock versions of internal allocation functions.
26443 (_malloc_internal_nolock, _realloc_internal_nolock)
26444 (_free_internal_nolock): New functions created from
26445 _malloc_internal, _realloc_internal, and _free_internal.
26446 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26447 Copy hook value to automatic variable before its use.
26448 (memalign): Copy hook value to automatic variable before its use.
26449
26450 2007-06-26 Kenichi Handa <handa@m17n.org>
26451
26452 * coding.c (Ffind_operation_coding_system): Docstring improved.
26453 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26454
26455 2007-06-25 David Kastrup <dak@gnu.org>
26456
26457 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26458 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26459 cater for additional parameter.
26460
26461 * keymap.h: Adjust number of parameters to `current-active-maps'.
26462
26463 * doc.c (Fsubstitute_command_keys): Adjust call of
26464 `current-active-maps'.
26465
26466 2007-06-25 David Kastrup <dak@gnu.org>
26467
26468 * callint.c (Fcall_interactively): Make the parsing of interactive
26469 specs somewhat more readable.
26470
26471 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26472
26473 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26474 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26475 if extended background has already been filled.
26476
26477 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26478
26479 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26480 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26481
26482 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26483 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26484 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26485 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26486 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26487 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26488 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26489 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26490 Run timers during dialog popup.
26491 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26492
26493 2007-06-21 Jason Rumney <jasonr@gnu.org>
26494
26495 * image.c (convert_mono_to_color_image): Swap fore and background.
26496
26497 2007-06-20 Jason Rumney <jasonr@gnu.org>
26498
26499 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26500 (w32_free_bdf_font): Unmap memory not handle.
26501
26502 2007-06-20 Sam Steingold <sds@gnu.org>
26503
26504 * gmalloc.c (__morecore): Fix the declaration to comply with the
26505 definition.
26506
26507 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
26508
26509 * w32term.c (w32_delete_display): Remove leftover declaration.
26510 (w32_define_cursor, w32_initialize): Make static.
26511
26512 * w32.c (_wsa_errlist): Fix typo in error message.
26513 (init_environment): Ignore any environment variable from the
26514 registry having a null value.
26515
26516 2007-06-20 Glenn Morris <rgm@gnu.org>
26517
26518 * Makefile.in (LIBGIF): Default to -lgif.
26519
26520 2007-06-17 Jason Rumney <jasonr@gnu.org>
26521
26522 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26523 unicode strings.
26524
26525 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
26526
26527 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26528 Fix typo in docstring.
26529
26530 2007-06-16 Eli Zaretskii <eliz@gnu.org>
26531
26532 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26533 and their keybindings.
26534
26535 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
26536
26537 * composite.c (update_compositions): Fix last fix.
26538
26539 2007-06-14 Jason Rumney <jasonr@gnu.org>
26540
26541 * w32.c (get_process_times_fn): New function pointer.
26542 (globals_of_w32): Intialize it if present in kernel32.dll.
26543 (w32_get_internal_run_time): New function.
26544
26545 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26546
26547 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26548
26549 * composite.c (update_compositions): Check the validness of
26550 compositions.
26551
26552 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26553
26554 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26555 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26556
26557 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26558 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26559
26560 * macgui.h (USE_MAC_TOOLBAR): New define.
26561
26562 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26563 Return immediately unless popup is activated.
26564
26565 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26566 background to scroll bar gap.
26567 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26568 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26569 scroll bars on frame edge. Check fringe background extension.
26570 Don't clear extended fringe background area.
26571 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26572 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26573 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26574 [USE_MAC_TOOLBAR]: New macros.
26575 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26576 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26577 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26578 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26579 [USE_MAC_TOOLBAR]: New functions.
26580 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26581 manually if previous repositioning has failed.
26582 (mac_handle_keyboard_event): Use precomputed event kind.
26583 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26584 as tool bar item click. Handle mouse movement over tool bar items.
26585
26586 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26587 toolbar_win_gravity.
26588 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26589 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26590 Add externs.
26591
26592 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26593 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26594
26595 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
26596
26597 * image.c (search_image_cache): Remove unused variable.
26598
26599 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
26600
26601 * xfns.c, xmenu.c: Link to xaw3d if available.
26602
26603 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26604
26605 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26606 frame_foreground and frame_background.
26607
26608 * image.c (lookup_image): Save frame foreground and background colors.
26609 (search_image_cache): Check if saved and current frame colors match.
26610
26611 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26612
26613 * regex.c (regex_compile): Remove the `regnum' counter.
26614 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26615
26616 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26617
26618 * term.c: Include intervals.h to declare Fget_text_property.
26619
26620 2007-06-10 Jason Rumney <jasonr@gnu.org>
26621
26622 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26623
26624 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
26625
26626 * callint.c (Fcall_interactively):
26627 * editfns.c (Fdelete_and_extract_region):
26628 * fileio.c (Fread_file_name):
26629 * fns.c (Fmapconcat):
26630 * keyboard.c (cmd_error_internal):
26631 * keymap.c (Fkey_description):
26632 * lread.c (openp):
26633 * minibuf.c (read_minibuf):
26634 * search.c (wordify):
26635 * sunfns.c (sel_read):
26636 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26637 * xfns.c (x_default_scroll_bar_color_parameter):
26638 * xmenu.c (menu_help_callback):
26639 * xselect.c (Fx_get_atom_name):
26640 * xterm.c (x_term_init): Use empty_unibyte_string.
26641
26642 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26643
26644 * alloc.c (init_strings): Initialize canonical empty strings.
26645 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26646 canonical empty string when the requested size is 0.
26647
26648 * emacs.c (empty_unibyte_string): Rename from empty_string.
26649 (empty_multibyte_string): New canonical empty string.
26650 (syms_of_emacs): Don't initialize empty_string.
26651
26652 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26653 string, if appropriate.
26654 (empty_unibyte_string, empty_multibyte_string): New externs.
26655 (empty_string): Remove extern.
26656
26657 * lread.c (syms_of_lread): Use empty_unibyte_string.
26658
26659 2007-06-07 Jason Rumney <jasonr@gnu.org>
26660
26661 * s/ms-w32.h: Don't define HAVE_TZNAME.
26662
26663 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26664
26665 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26666
26667 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26668
26669 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26670 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26671
26672 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26673 Don't call next handler.
26674 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26675 Remove argument. Install handler to application.
26676 (set_frame_menubar): Don't change deep_p.
26677 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26678 FRAME_OUTER_TO_INNER_DIFF_Y.
26679 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26680 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26681 [HAVE_DIALOGS]: New macros.
26682 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26683 Use them.
26684 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26685
26686 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26687 init_service_handler. All callers changed. Return OSStatus value.
26688
26689 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26690 All callers changed so as not to call SetPortWindowPort.
26691 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26692 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26693 mac_draw_string_common.
26694 (mac_draw_image_string_qd): Likewise.
26695 (mac_draw_string_common): Use them. Add INLINE.
26696 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26697 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26698 GetGlobalMouse.
26699 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26700 and FRAME_OUTER_TO_INNER_DIFF_Y.
26701 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26702 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26703 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26704 repositioning window to mac_handle_window_event.
26705 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26706 saving window location to mac_handle_window_event
26707 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26708 (install_menu_target_item_handler): Remove argument in extern.
26709 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26710 Also accept command events.
26711 (do_keystroke): New function created from XTread_socket.
26712 (init_command_handler): Remove functions.
26713 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26714 and save window location by kEventWindowShowing and kEventWindowHiding
26715 handlers here. Don't call next handler for window state change and
26716 focus events.
26717 (mac_handle_application_event, mac_handle_keyboard_event)
26718 [TARGET_API_MAC_CARBON]: New functions.
26719 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26720 kEventWindowShowing and kEventWindowHiding events. Move installation
26721 of mouse, font, text input and menu target item handlers to
26722 install_application_handler.
26723 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26724 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26725 New function.
26726 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26727 Register it.
26728 (XTread_socket) [TARGET_API_MAC_CARBON]:
26729 Consolidate SendEventToEventTarget calls.
26730 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26731 Move application activation handler to mac_handle_application_event.
26732 Move keyboard handler to mac_handle_keyboard_event.
26733 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26734 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26735 init_command_handler. Call install_application_handler.
26736
26737 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26738 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26739
26740 2007-06-07 Glenn Morris <rgm@gnu.org>
26741
26742 * emacs.c (main): Use `emacs-copyright' in --version output.
26743
26744 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
26745
26746 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26747
26748 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26749
26750 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26751
26752 * macgui.h: Replace WindowPtr with WindowRef.
26753
26754 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26755 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26756 Replace ControlHandle with ControlRef.
26757 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26758
26759 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26760 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26761 Replace ControlHandle with ControlRef.
26762 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26763 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26764
26765 * macterm.h (struct scroll_bar): Rename member control_handle_low
26766 and control_handle_high to control_ref_low and control_ref_high.
26767 All uses changed.
26768 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26769 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26770 respectively. All uses changed.
26771 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26772 (install_window_handler, remove_window_handler): Replace WindowPtr
26773 with WindowRef in externs.
26774
26775 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
26776
26777 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26778
26779 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
26780
26781 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26782
26783 * frame.c (Fmouse_position, Fmouse_pixel_position):
26784 Condition on HAVE_GPM too.
26785
26786 * term.c (term_mouse_highlight): Remove unused variables.
26787 (Fterm_open_connection): Set gpm_zerobased to 1.
26788 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26789 Use zero based co-ordinates.
26790 (handle_one_term_event): Report a drag as mouse movement too.
26791
26792 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26793
26794 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
26795
26796 * image.c (search_image_cache): New function. Require background
26797 color match if background color is unspecified in the image spec.
26798 (uncache_image, lookup_image): Use it.
26799
26800 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
26801
26802 * window.c (Fshrink_window): Reflow docstring.
26803
26804 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
26805
26806 * Version 22.1 released.
26807
26808 2007-06-01 Richard Stallman <rms@gnu.org>
26809
26810 * xfns.c (x_encode_text): Add GCPRO.
26811
26812 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26813
26814 * xfns.c (x_set_name_internal): Save encoded name before
26815 x_encode_text in case string data is relocated.
26816
26817 2007-05-31 Richard Stallman <rms@gnu.org>
26818
26819 * buffer.c (syms_of_buffer): Doc fix.
26820
26821 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
26822
26823 * sysdep.c (init_sys_modes): Add rather than replace with
26824 O_NONBLOCK.
26825
26826 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26827 term_mouse_moveto.
26828
26829 * termhooks.h (term_mouse_moveto): New extern.
26830
26831 * term.c (mouse_face_window): Rename...
26832 (Qmouse_face_window): ...to this.
26833 (term_show_mouse_face, term_clear_mouse_face)
26834 (term_mouse_highlight): Use Qmouse_face_window.
26835 (term_mouse_moveto): New function.
26836 (term_mouse_position): Make it work.
26837 (syms_of_term): Uncomment assignment to mouse_position_hook.
26838 Staticpro Qmouse_face_window.
26839
26840 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26841
26842 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26843 around current_column call.
26844
26845 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26846
26847 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26848 * xdisp.c (next_element_from_buffer):
26849 * window.c (delete_window):
26850 * term.c (term_mouse_highlight):
26851 * msdos.c (getdefdir):
26852 * macterm.c (mac_create_bitmap_from_bitmap_data)
26853 (init_font_name_table):
26854 * fns.c (Fsxhash):
26855 * data.c (Fmake_local_variable):
26856 * ccl.c (ccl_driver): Likewise.
26857
26858 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26859
26860 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26861 Call mac_wakeup_from_rne on window size change.
26862
26863 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
26864
26865 * image.c (uncache_image): Fix typo.
26866
26867 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26868
26869 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26870
26871 2007-05-22 Richard Stallman <rms@gnu.org>
26872
26873 * xterm.c (x_connection_closed): Remove NO_RETURN.
26874
26875 2007-05-22 Martin Rudalics <rudalics@gmx.at>
26876
26877 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26878
26879 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
26880
26881 * image.c (uncache_image): New function.
26882 (Fimage_refresh): New function.
26883
26884 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26885
26886 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26887
26888 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26889
26890 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26891 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26892
26893 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26894
26895 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26896 conditional on [HAVE_GPM_H].
26897
26898 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26899
26900 * syntax.c (skip_chars): Update syntax-table only after we checked that
26901 the new location is valid.
26902
26903 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26904
26905 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26906 mac_get_window_bounds.
26907
26908 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26909
26910 * Makefile.in (LIBGPM): Allow it to be set from configure.
26911 If set then link Emacs with it.
26912
26913 * config.in: Regenerate.
26914
26915 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26916 New externs.
26917
26918 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26919 Include gpm.h.
26920 (handle_one_term_event, term_gpm): New externs.
26921
26922 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26923 and allow it to be interrupted by SIGIO.
26924
26925 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26926 (wait_reading_process_output): Wait on gpm_fd too.
26927 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26928 (add_gpm_wait_descriptor_called_flag): New variable.
26929 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26930
26931 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26932 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26933 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26934 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26935 (make_lispy_event): Add case GPM_CLICK_EVENT.
26936 (read_avail_input): Handle mouse input.
26937
26938 * term.c (write_glyphs_with_face): New function.
26939 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26940 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26941 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26942 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26943 (last_mouse_x, last_mouse_y): New variables.
26944 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26945 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26946 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26947 (Fterm_close_connection): New functions.
26948 (term_init): Initialise mouse_face_window.
26949
26950 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
26951
26952 * xdisp.c (redisplay_window): If first window line is a
26953 continuation line, recompute the new window start instead of
26954 recentering.
26955
26956 2007-05-18 Glenn Morris <rgm@gnu.org>
26957
26958 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26959 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26960
26961 2007-05-17 Glenn Morris <rgm@gnu.org>
26962
26963 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26964
26965 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26966
26967 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26968 dead key repeat and up events.
26969
26970 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
26971
26972 * image.c (pbm_load): Check image size for monochrome pbm.
26973
26974 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
26975
26976 * xterm.c (XTread_socket): Revert last change.
26977
26978 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
26979
26980 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26981
26982 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26983
26984 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26985
26986 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26987 mixup (YAILOM).
26988
26989 2007-05-07 Andreas Schwab <schwab@suse.de>
26990
26991 * keymap.c (Flookup_key): Fix typo in last change.
26992
26993 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26994
26995 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26996 mapping for unibyte strings.
26997
26998 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26999
27000 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27001 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27002
27003 2007-04-29 Richard Stallman <rms@gnu.org>
27004
27005 * insdel.c (replace_range): For undo, record insertion first.
27006
27007 2007-04-29 Andreas Schwab <schwab@suse.de>
27008
27009 * lisp.h (VECSIZE): Use OFFSETOF.
27010
27011 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27012
27013 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27014 disabled lines.
27015
27016 2007-04-28 Richard Stallman <rms@gnu.org>
27017
27018 * lread.c (read_escape): In a string, \s is always space.
27019
27020 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27021
27022 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27023
27024 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27025 submenu for menu bar items.
27026
27027 See ChangeLog.10 for earlier changes.
27028
27029 ;; Local Variables:
27030 ;; coding: utf-8
27031 ;; add-log-time-zone-rule: t
27032 ;; End:
27033
27034 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
27035
27036 This file is part of GNU Emacs.
27037
27038 GNU Emacs is free software: you can redistribute it and/or modify
27039 it under the terms of the GNU General Public License as published by
27040 the Free Software Foundation, either version 3 of the License, or
27041 (at your option) any later version.
27042
27043 GNU Emacs is distributed in the hope that it will be useful,
27044 but WITHOUT ANY WARRANTY; without even the implied warranty of
27045 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27046 GNU General Public License for more details.
27047
27048 You should have received a copy of the GNU General Public License
27049 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27050
27051 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40