* lisp/net/rcirc.el (rcirc-server-commands, rcirc-client-commands)
[bpt/emacs.git] / src / ChangeLog
CommitLineData
381408e2
LMI
12010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * xml.c (Fxml_parse_buffer): New function to parse XML files.
4
52010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
6
7 * xml.c: New file.
8 (Fhtml_parse_buffer): New function to interface to the libxml2
9 html parsing function.
10
733946e7
JB
112010-09-05 Juanma Barranquero <lekktu@gmail.com>
12
13 * biditype.h: Regenerate.
14
7574650a
AS
152010-09-04 Andreas Schwab <schwab@linux-m68k.org>
16
17 * nsimage.m (ns_load_image): Check argument types.
18
19 * image.c: Remove all uses of gcpro.
20 (xpm_load): Check all lisp types.
21 (pbm_load): Likewise.
22 (png_load): Likewise.
23 (jpeg_load): Likewise.
24 (tiff_load): Likewise.
25 (gif_load): Likewise.
26 (imagemagick_load_image): Likewise.
27 (imagemagick_load): Likewise.
28 (svg_load): Likewise.
29 (gs_load): Likewise.
30
6e6b8e25
EZ
312010-09-04 Eli Zaretskii <eliz@gnu.org>
32
33 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
34 try to reorder grapheme clusters, since LGSTRING should always
35 hold them in the logical order.
36 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
37 return glyph codes in the logical order.
38
dbfe4532
AS
392010-09-04 Andreas Schwab <schwab@linux-m68k.org>
40
41 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 42 (imagemagick_load_image): Fix type mismatch.
5e5992c2 43 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 44
6d7cc563
JD
452010-09-02 Jan Djärv <jan.h.d@swipnet.se>
46
47 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
48
49 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
50
51 * xselect.c: Remove declaration of cut-buffer objects and functions.
52 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
53 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
54 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
55 (Fx_rotate_cut_buffers_internal): Remove.
56 (syms_of_xselect): Remove defsubr of above.
57 Remove intern of QCUT_BUFFERn.
58
8f4e9110
SM
592010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
60
61 * cmds.c (Vblink_paren_function): Remove.
62 (internal_self_insert): Make it insert N chars at a time.
63 Don't call blink-paren-function.
64 (Fself_insert_command): Adjust accordingly.
65 (syms_of_cmds): Don't declare blink-paren-function.
66
d419e1d9
KH
672010-08-31 Kenichi Handa <handa@m17n.org>
68
69 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
70 characters.
71
72 * term.c (encode_terminal_code): Fix the previous change.
73 (produce_glyphs): Don't set it->char_to_display here. Don't
74 handle unibyte-display-via-language-environment here.
75 (produce_special_glyphs): Set temp_it.char_to_display before
76 calling produce_glyphs.
77
78 * xdisp.c (get_next_display_element): Set it->char_to_display
79 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
80 characters.
81 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
82 calling PRODUCE_GLYPHS.
83 (append_space_for_newline): Save and store it->char_to_display.
84 Set it->char_to_display before calling PRODUCE_GLYPHS.
85 (extend_face_to_end_of_line): Set it->char_to_display before
86 calling PRODUCE_GLYPHS.
87 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
88 character to its byte value.
89 (get_char_glyph_code): New function.
90 (produce_stretch_glyph): Set it2.char_to_display too before
91 calling x_produce_glyphs.
92 (x_produce_glyphs): Simplify by using the same code for ASCII and
93 non-ASCII characters. Don't set it->char_to_display here. Don't
94 handle unibyte-display-via-language-environment here. For a
95 charater of no glyph, use font->space_width instead of FONT_WIDTH.
96
b819f760
SM
972010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
98
99 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
100
07fa68a7
CY
1012010-08-31 Chong Yidong <cyd@stupidchicken.com>
102
103 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
104
cd196f12
SM
1052010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
106
107 * marker.c (Fcopy_marker): Make the first arg optional.
108
49a752bb
KH
1092010-08-30 Kenichi Handa <handa@m17n.org>
110
111 * composite.c (composition_update_it): Fix computing of
112 cmp_it->width.
113
769ae9e1
KH
1142010-08-29 Kenichi Handa <handa@m17n.org>
115
9e69cb05
KH
116 * term.c (encode_terminal_code): Encode byte chars to the
117 correspnding bytes.
118
4520b858
J
1192010-08-29 Jan Djärv <jan.h.d@swipnet.se>
120
121 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
122
fe50eb41
KH
1232010-08-26 Kenichi Handa <handa@m17n.org>
124
125 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
126 on calling composition_compute_stop_pos.
127
f6aa6ec6
KH
1282010-08-25 Kenichi Handa <handa@m17n.org>
129
9dfdbc0a
KH
130 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
131 :otf.
132
f6aa6ec6
KH
133 * composite.c (composition_compute_stop_pos): Don't break
134 composition at PT.
135 (composition_reseat_it): Likewise. Fix calculation of character
136 position starting a composition.
137 (Fcomposition_get_gstring): Don't limit the number of components
138 for automatic composition.
139
ff94e32c
KH
1402010-08-25 Kenichi Handa <handa@m17n.org>
141
142 * composite.c (composition_compute_stop_pos): In forward search,
143 pay attention to the possibility that some character after ENDPOS
144 will be composed with charactrs before ENDPOS.
145
1c409d0b
CY
1462010-08-24 Chong Yidong <cyd@stupidchicken.com>
147
148 * keyboard.c (command_loop_1): Don't clobber primary selection
149 during handle-switch-frame (Bug#6872).
150
0c372655
MA
1512010-08-23 Michael Albinus <michael.albinus@gmx.de>
152
153 * dbusbind.c: Accept UNIX domain sockets as bus address.
154 (Fdbus_close_bus): New function.
155 (Vdbus_registered_buses): New variable.
156 (xd_initialize): Implement string as bus address.
157 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
158 (Fdbus_get_unique_name, Fdbus_call_method)
159 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
160 (Fdbus_method_error_internal, Fdbus_send_signal)
161 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
162 check. This is done in xd_initialize_bus. Adapt doc string, if
163 necessary.
164 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
165 Vdbus_registered_buses.
166 (Vdbus_registered_objects_table): Create hash.
167
7133b7ee
JL
1682010-08-22 Juri Linkov <juri@jurta.org>
169
170 * keyboard.c (Fexecute_extended_command): Move reading a command name
171 with `completing-read' to a new Elisp function `read-extended-command'.
172 Call it to read a command to `function' (bug#5364, bug#5214).
173
198a7a97
CY
1742010-08-22 Chong Yidong <cyd@stupidchicken.com>
175
176 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
177
b0126eac 1782010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
179
180 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
181 instead of SAFE_ALLOCA.
182
b0126eac 1832010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
184
185 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
186 (Bug#6214).
187
b0126eac 1882010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
189
190 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
191
b0126eac
CY
1922010-08-22 Jan Djärv <jan.h.d@swipnet.se>
193
194 * doc.c (Fsnarf_documentation): Initialize skip_file before
195 build-files test.
196
692f3ddc 1972010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 198
692f3ddc
JB
199 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
200 New definitions.
b0126eac
CY
201 (HAVE_TERMIO): Remove.
202
5f2f0bc1
EZ
2032010-08-22 Eli Zaretskii <eliz@gnu.org>
204
b613941b
EZ
205 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
206
a583bbef
EZ
207 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
208 for w32.
209
210 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
211 it's done in nt/config.nt.
212
213 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
214
5f2f0bc1
EZ
215 * unexcoff.c (report_error, make_hdr, write_segment)
216 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
217 Convert argument lists and prototypes to ANSI C.
218 (make_hdr, write_segment): Remove unused variables.
219 (unexec): Remove commented-out line. Initialize `new' to shut up
220 compiler warnings.
221
a7ebc409
DN
2222010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
223
224 Simplify termio code.
225 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
226 HAVE_TERMIO code is obsolete.
227 Replace HAVE_TERMIOS conditionals with !DOS_NT.
228 * systty.h: Do not define HAVE_TCATTR.
229 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
230 Do not define EMACS_HAVE_TTY_PGRP. Only define
231 EMACS_GET_TTY_PGRP for !DOS_NT.
232 * sysdep.c: Include sysselect.h unconditionally. Do not include
233 sys/ioctl.h and termios.h, systty.h does it. Use
234 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
235 (init_baud_rate): Remove HAVE_TERMIO code.
236 (child_setup_tty): Remove HAVE_TERMIO code.
237 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
238 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
239 (new_ltchars, new_tchars): Remove, unused.
240 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
241 code. Remove special casing for __mips__, it was a no-op. Remove
242 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
243 (init_sys_modes): Remove HPUX special case.
244 * process.c: Include stdlib.h unconditionally. Do not include
245 fcntl.h, systty.h does it. Remove conditional code for
246 HAVE_SERIAL, it is always true.
247 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
248 always true when SIGNALS_VIA_CHARACTERS is true.
249 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
250 !WINDOWSNT means HAVE_TERMIOS.
251 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
252 conditional, which is true for all HAVE_TERMIOS systems.
253 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
254 instead of HAVE_TERMIOS.
255 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
256 EMACS_HAVE_TTY_PGRP.
257 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
258 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
259 anyway.
260
40629f17
EZ
2612010-08-21 Eli Zaretskii <eliz@gnu.org>
262
263 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
264 mirroring pixel positions.
265
d931da8c
DN
2662010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
267
b5c76d0c
DN
268 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
269 write only.
270 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
271 malloc_sbrk_used, nothing uses them.
272
74815588
DN
273 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
274 defined, unconditionally defined in lisp.h.
275
f5817d1c
DN
276 * term.c: Do not include <termios.h>, systty.h does it.
277
d931da8c
DN
278 * s/unixware.h (HAVE_TCATTR):
279 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
280 systty.h defines it when HAVE_TERMIOS is defined.
281
ff2de6d2 2822010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 283
b43c883c 284 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 285 terminals: add one-character offset for R2L lines.
b43c883c 286
491a1546
EZ
287 * emacs.c <emacs_version>: Add a comment regarding
288 msdos/mainmake.v2's dependency on the syntax of this declaration.
289
2396cbba
EZ
2902010-08-20 Eli Zaretskii <eliz@gnu.org>
291
292 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
293 position for R2L lines by mirroring the pixel position wrt the
294 text are box. Improve commentary.
295
7df6150a
AS
2962010-08-20 Andreas Schwab <schwab@linux-m68k.org>
297
298 * image.c (imagemagick_clear_image): Remove debugging output.
299
a2e5caf7
SM
3002010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
301
302 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
303 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
304 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
305 self-insert-face.
306 (syms_of_cmds): Initialize the new vars.
307
20d60baf
JR
3082010-08-19 Jason Rumney <jasonr@gnu.org>
309
cc477da7
JR
310 * w32menu.c (set_frame_menubar): Remove call to undefined function.
311
20d60baf
JR
312 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
313
2c0ac867
J
3142010-08-19 Jan Djärv <jan.h.d@swipnet.se>
315
316 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
317
93352106
EZ
3182010-08-18 Eli Zaretskii <eliz@gnu.org>
319
320 * xterm.c (x_draw_bar_cursor):
321 * w32term.c (x_draw_bar_cursor): If the character under cursor is
322 R2L, draw the bar cursor on its right rather than on its left.
323
c785836d
SM
3242010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
325
0193499f
SM
326 * eval.c (Fdefmacro): Only obey one declaration.
327
c785836d
SM
328 * casefiddle.c (casify_region): Setup gl_state.
329
9cb728a5
J
3302010-08-18 Jan Djärv <jan.h.d@swipnet.se>
331
332 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
333
e1e18511
J
3342010-08-18 Jan Djärv <jan.h.d@swipnet.se>
335
336 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
337
64cb6c78
J
3382010-08-18 David De La Harpe Golden <david@harpegolden.net>
339
340 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
341 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
342 QPRIMARY => NXPrimaryPboard.
343 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
344 NXPrimaryPboard => QPRIMARY.
345 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
346 NXSecondaryPboard = SecondarySelection.
347 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
348
0c9b8993
GM
3492010-08-18 Joakim Verona <joakim@verona.se>
350
351 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
352 defined:
353 (imagemagick_image_p): New function to test for ImageMagic image.
354 (imagemagick_load): New function to load ImageMagick image.
355 (imagemagick_load_image): New function, helper for imagemagick_load.
356 (imagemagick-types): New function.
357 (Qimagemagick): New Lisp_object.
358 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 359
c3554f68
SM
3602010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
361
362 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
363 is a string.
364
1ff2e434
J
3652010-08-17 Jan Djärv <jan.h.d@swipnet.se>
366
367 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
368 x_set_tool_bar_position handler.
369
0cc56427
EZ
3702010-08-17 Eli Zaretskii <eliz@gnu.org>
371
372 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
373 x_set_tool_bar_position handler, needed to support changes from
374 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
375
e45a249b
JD
3762010-08-16 Jan Djärv <jan.h.d@swipnet.se>
377
921242c6
J
378 * nsselect.m: include keyboard.h for QPRIMARY, remove its
379 declaration (Bug#6863).
573d150b 380 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 381
e45a249b
JD
382 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
383
384 * keyboard.h (QPRIMARY): Declare (Bug#6864).
385
7c23dd44
CY
3862010-08-16 Chong Yidong <cyd@stupidchicken.com>
387
388 * keyboard.c (command_loop_1): Avoid setting selection twice,
389 since it's done in deactivate-mark as well.
390 (Vselect_active_regions): Change default to t. Replace `lazy'
391 with non-default value `only', meaning only set PRIMARY for
392 temporarily active regions.
393
394 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
395 select-active-regions.
396
0005830c
J
3972010-08-15 Jan Djärv <jan.h.d@swipnet.se>
398
399 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
400 isn't a string.
401
603dfc72
AS
4022010-08-15 Andreas Schwab <schwab@linux-m68k.org>
403
404 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
405
c25ce9d0
J
4062010-08-15 Jan Djärv <jan.h.d@swipnet.se>
407
c3554f68
SM
408 * keyboard.c (parse_tool_bar_item): malloc buf.
409 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
410 new_lbl (Bug#6855).
c25ce9d0 411
5872c762
EZ
4122010-08-14 Eli Zaretskii <eliz@gnu.org>
413
b236615c
EZ
414 * xterm.c (x_draw_stretch_glyph_string):
415 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
416 the cursor on the right edge of the stretch glyph.
417
c3554f68
SM
418 * xdisp.c (window_box_right_offset, window_box_right):
419 Fix commentary.
b236615c 420
5872c762
EZ
421 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
422 direction when point is inside a run of whitespace characters.
423
424 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
425
e66f9a1b
JR
4262010-08-14 Jason Rumney <jasonr@gnu.org>
427
428 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
429
79d6f59e
CY
4302010-08-14 Chong Yidong <cyd@stupidchicken.com>
431
432 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
433
1c9b4129
JR
4342010-08-13 Jason Rumney <jasonr@gnu.org>
435
436 * w32menu.c (simple_dialog_show): Use unicode message box if available.
437 (MessageBoxW_Proc): New function typedef.
438 (unicode-message-box): New function pointer.
439 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
440
2b4e6277
J
4412010-08-13 Jan Djärv <jan.h.d@swipnet.se>
442
443 * frame.h (Qtool_bar_position): Declare.
444
445 * xfns.c (Fx_create_frame): Call x_default_parameter for
446 Qtool_bar_position.
447
94c97d85
EZ
4482010-08-13 Eli Zaretskii <eliz@gnu.org>
449
8ee81892
EZ
450 * unexcoff.c: Remove the parts used when "emacs" is not defined.
451 (report_error, report_error_1): Ditto.
452 (write_segment): Remove "#if 0" unused code.
453 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
454 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
455 (start_of_text): Remove unused function (was used only if NO_REMAP
456 was NOT defined).
457
891ef8f7
EZ
458 * msdos.c (IT_set_face): Fix format string to match argument
459 types.
460 (IT_write_glyphs, IT_note_mode_line_highlight)
461 (IT_set_frame_parameters): Remove unused variables.
462 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
463 (IT_set_terminal_modes): Disambiguate expression in if clause.
464 (Fmsdos_remember_default_colors): Return Qnil.
465 (IT_set_frame_parameters): Add parens to disambiguate boolean
466 expression for logging the cursor type to termscript.
467 (keyboard_layout_list, keypad_translate_map)
468 (grey_key_translate_map): Add braces in inner initializers.
469 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
470 (dos_rawgetc): Remove unused label.
471 (XMenuActivate): Add braces to remove ambiguous `else'.
472 (dos_ttraw): Always return a value.
473 (spawnve): Declare.
474 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
475
476 * dosfns.h (x_set_title): Declare.
477
478 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
479 Remove unused variables.
480
481 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
482 variables.
483 (init_dosfns): Declare get_lim_data.
484 (system_process_attributes): Declare Fget_internal_run_time.
485
38e41e0e
EZ
486 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
487 list to be consistent with menu.h.
488
94c97d85
EZ
489 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
490 warnings due to mixing of "char *" and "const char *".
491
c5683ceb
SM
4922010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
493
494 Introduce a new comment style "c" flag.
495 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
496 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
497 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
498 (syntax_prefix_flag_p): New function.
499 (Fstring_to_syntax): Understand new "c" flag.
500 (Finternal_describe_syntax_value): Recognize new flag; use the
501 SYNTAX_FLAGS_* macros.
502 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
503 comment style to accomodate the new styles.
504 (back_comment, forw_comment, Fforward_comment, scan_lists)
505 (scan_sexps_forward): Update code to obey the new comment style flag.
506
507 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
508
509 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
510
7aee76f4
J
5112010-08-11 Jan Djärv <jan.h.d@swipnet.se>
512
3a46642b
J
513 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
514 first.
94dff98f 515 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
516
517 * gtkutil.h (xg_check_special_colors): Declare.
518
519 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
520 (xg_create_frame_widgets): Connect theme name changes to
521 style_changed_cb.
522
42ca4633
J
523 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
524 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
525 (x_term_init): Use char[] display_opt and name_opt instead of
526 string literal. file is const char*.
527
528 * xsmfns.c (NOSPLASH_OPT): Change to char[].
529 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
530 props. Free them at the end.
531
532 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
533
c5683ceb
SM
534 * xrdb.c (get_system_app): Make path const and use char *p for
535 non-const char.
42ca4633
J
536
537 * xmenu.c (Fx_popup_dialog): error_name is const char*.
538 (xmenu_show): error parameter is const char **. pane_string is const
539 char *.
540 (button_names): Is const char *.
541 (xdialog_show): error_name and pane_string is const.
542
543 * process.h (synch_process_death): Is const char*.
544
545 * w32menu.c (w32_menu_show):
546 * nsmenu.m (ns_menu_show): error parameter is const char **.
547
548 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
549 is const char **.
550
551 * menu.c (Fx_popup_menu): error_name is const.
552
553 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
554 with unsigned char and XtPointer with void *.
555
556 * gtkutil.h: Replace widget_value with struct _widget_value.
557 (enum button_type, struct _widget_value): Remove and use the one from
558 keyboard.h.
559
560 * gtkutil.c (get_utf8_string): Always return an allocated string.
561 Parameter is const.
562 (create_dialog, xg_create_one_menuitem, create_menus)
563 (xg_item_label_same_p, xg_update_menu_item): Free result from
564 get_utf8_string.
565 (xg_separator_p, xg_item_label_same_p): label is const.
566
567 * font.h (font_open_by_name): Make name const.
568
569 * font.c (font_open_by_name): Make name const.
570
571 * floatfns.c (matherr): Use a const char* variable for x->name.
572
573 * emacs.c (main): Pass char[] to putenv instead of literal.
574
575 * callproc.c (synch_process_death): Make const.
576 (Fcall_process): Make signame const.
577
9c5bd55a
J
578 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
579 (addDisplayItemWithImage): Use const char*.
580
581 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
582 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
583
584 * nsfont.m (ns_descriptor_to_entity): Use const char*.
585
586 * keyboard.h (_widget_value): name, value and key are const char*.
587
7aee76f4
J
588 * unexmacosx.c (unexec_error): Use const char *.
589
09d93395
DN
5902010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
591
592 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 593 (font_parse_name, font_open_by_name):
09d93395 594 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 595 (font_parse_name, font_open_by_name): Remove const.
09d93395 596
671d409f
AS
5972010-08-09 Andreas Schwab <schwab@linux-m68k.org>
598
599 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
600 definition.
601
602 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
603 * m/amdx86-64.h: Likewise.
604 * m/arm.h: Likewise.
605 * m/hp800.h: Likewise.
606 * m/ia64.h: Likewise.
607 * m/ibmrs6000.h: Likewise.
608 * m/ibms390.h: Likewise.
609 * m/intel386.h: Likewise.
610 * m/iris4d.h: Likewise.
611 * m/m68k.h: Likewise.
612 * m/macppc.h: Likewise.
613 * m/mips.h: Likewise.
614 * m/sh3.h: Likewise.
615 * m/sparc.h: Likewise.
616 * m/template.h: Likewise.
617 * m/vax.h: Likewise.
618 * m/xtensa.h: Likewise.
619 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
620 WORDS_BIG_ENDIAN.
621 * lisp.h: Likewise.
622 * md5.c: Likewise.
623 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
624
8ea90aa3
DN
6252010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
626
627 Use const char* instead of char*.
628 Reduce the number of warnings with -Wwrite-strings.
629 * xrdb.c (get_environ_db, get_system_name):
630 * unexelf.c (find_section):
631 * term.c (string_cost, string_cost_one_line, per_line_cost)
632 (get_named_tty, init_tty):
633 * sysdep.c (sys_subshell):
634 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
635 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
636 * search.c (Freplace_match):
637 * process.c (Fmake_network_process, send_process, init_process):
638 * lread.c (Fload, init_lread):
639 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
640 * keyboard.c (parse_tool_bar_item, struct event_head):
641 * gtkutil.h (xg_get_font_name):
642 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
643 (make_widget_for_menu_item, make_menu_item, create_menus)
644 (xg_make_tool_item):
645 * font.c (parse_matrix, font_parse_name):
646 * floatfns.c (rounding_driver, float_error_fn_name):
647 * filelock.c (get_boot_time_1, lock_file_1):
648 * fileio.c (barf_or_query_if_file_exists, check_writable):
649 * editfns.c (get_system_name, get_operating_system_release)
650 (Fencode_time, Fset_time_zone_rule):
651 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
652 * buffer.c (defvar_per_buffer): Use const.
653
7815fe19 6542010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 655
692f3ddc 656 * charset.c: Include <stdlib.h>.
7a84eee5
KH
657 (struct charset_sort_data): New struct.
658 (charset_compare): New function.
692f3ddc 659 (Fsort_charsets): New function.
7a84eee5
KH
660 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
661
662 * coding.c (decode_coding_iso_2022): Fix checking of dimension
663 number in CTEXT extended segment.
664
7815fe19 6652010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
666
667 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
668 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
669
7815fe19 6702010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
671
672 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
673 (Fhash_table_size): Fix typos in docstrings.
674 (Fmake_hash_table): Doc fix.
675
7815fe19 6762010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
677
678 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
679 Doc fix (bug#5625).
680
7815fe19 6812010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
682
683 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
684 the MSDOS definition.
685
1b6d8cf0
DN
6862010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
687
675e2c69
DN
688 Use const char* instead of char*.
689 * xterm.c (x_create_toolkit_scroll_bar):
690 * xfont.c (xfont_list_pattern):
691 * xfns.c (x_default_scroll_bar_color_parameter)
692 (xic_create_fontsetname, x_default_font_parameter)
693 (x_screen_planes):
694 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
695 (store_mode_line_string, decode_mode_spec, display_string):
696 * menu.c (digest_single_submenu):
697 * keymap.h (initial_define_key, initial_define_lispy_key):
698 * keymap.c (initial_define_key, initial_define_lispy_key):
699 * image.c (image_error, image_keyword):
700 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
701 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
702 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
703 (ftfont_list, ftfont_match):
704 * frame.c (frame_parm_table):
705 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
706 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
707 (font_add_log, font_deferred_log):
708 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
709 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
710 (font_add_log, font_deferred_log):
711 * emacs.c (argmatch):
712 * dispextern.h (struct it):
713 * coding.c (ENCODE_DESIGNATION):
714 * charset.c (define_charset_internal): Use const.
715
25717ca1
DN
716 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
717
c5683ceb
SM
718 * xrdb.c: Remove include guard.
719 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
720 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
721 realloc->xrealloc instead of using #defines.
722
efb41e21
EZ
7232010-08-08 Eli Zaretskii <eliz@gnu.org>
724
cd21226d 725 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
726 * editfns.c (Fline_beginning_position, Fline_end_position):
727 State in the doc strings that start and end of line are in the
728 logical order.
cd21226d 729
efb41e21
EZ
730 * xdisp.c (display_line): Move the handling of overlay arrow after
731 the call to find_row_edges. (Bug#6699)
732
746812d9
CY
7332010-08-07 Chong Yidong <cyd@stupidchicken.com>
734
735 * keyboard.c (command_loop_1):
736 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
737
9852377f
CY
7382010-08-07 Chong Yidong <cyd@stupidchicken.com>
739
740 * insdel.c (prepare_to_modify_buffer): Save active region text to
741 Vsaved_region_selection.
742
743 * xselect.c (QPRIMARY): Move to keyboard.c.
744
745 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
746 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
747 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 748
0e9c8657
JB
7492010-08-07 Juanma Barranquero <lekktu@gmail.com>
750
751 * alloc.c (lisp_malloc):
752 * buffer.c (set_buffer_internal, set_buffer_internal_1):
753 * charset.h (emacs_mule_charset):
754 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
755 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
756 (bitch_at_user):
757 * lisp.h (Fcheck_coding_system, Fget_text_property)
758 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
759 Remove duplicate declarations.
760
648801d1
DN
7612010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
762
32bc6709
DN
763 * process.c: Simplify include logic.
764
3ef1d108
DN
765 * keyboard.h (quit_char): Add declaration.
766 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
767 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
768 Add declarations.
3ef1d108
DN
769 * sysdep.c:
770 * w32.c: Remove the above declarations.
771
97ec208f
DN
772 Remove extern declarations in .c files, .h files have them.
773 * xterm.c:
774 * xdisp.c:
97ec208f
DN
775 * msdos.c:
776 * image.c:
777 * gtkutil.c:
778 * fileio.c:
779 * eval.c: Remove declarations.
780
94eed851
DN
781 * frame.c (frame_params): Make const.
782
36e053eb
DN
783 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
784
0e843971
DN
785 * emacs.c (emacs_copyright, emacs_version): Make static.
786 (Vinitial_window_system, Vauto_save_list_file_name)
787 (Vinhibit_redisplay): Remove declarations.
788 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
789 for AIX.
790
648801d1
DN
791 Use const for some arrays and functions.
792 * xterm.h (xg_set_icon_from_xpm_data):
793 * xfns.c (xg_set_icon_from_xpm_data):
794 * term.c (fkeys):
795 * keyboard.c (lispy_accent_keys, lispy_function_keys)
796 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
797 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
798 (frame.c frame_parms):
799 * emacs-icon.h (gnu_xpm_bits):
800 * callint.c (callint_argfuns): Use const.
801
8646d999
J
8022010-08-06 Jan Djärv <jan.h.d@swipnet.se>
803
804 * sysdep.c: Move include term.h last of includes (Bug#6812).
805
cb4545ad
EZ
8062010-08-06 Eli Zaretskii <eliz@gnu.org>
807
808 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
809
810 * msdos.c (IT_display_cursor): Log cursor position on termscript.
811
812 * .gdbinit (pgx): Display the avoid_cursor_p flag.
813
da7e2be6
JB
8142010-08-06 Juanma Barranquero <lekktu@gmail.com>
815
816 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
817
3d608a86
J
8182010-08-06 Jan Djärv <jan.h.d@swipnet.se>
819
7908fb60
J
820 * xterm.h (x_get_focus_frame): Declare.
821
822 * keyboard.h (poll_for_input_1): Unconditionally declare.
823
4094bf36
J
824 * nsterm.h (x_set_menu_bar_lines): Declare.
825
826 * window.c: Don't include menu.h, it depends on lots of other .h-files.
827
3d608a86
J
828 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
829
830 * window.c: Include menu.h.
831
832 * unexmacosx.c (print_region_list, print_regions)
833 (build_region_list, find_emacs_zone_regions)
834 (unexec_regions_merge, read_load_commands, dump_it)
835 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
836
837 * term.c: Check HAVE_SYS_IOCTL_H.
838
686b968e 839 * sysdep.c: Check HAVE_TERM_H.
3d608a86 840
686b968e 841 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
842
843 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
844 (ns_ring_bell, ns_defined_color, hide_hourglass)
845 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
846 Convert to ANSI C prototypes.
847 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
848 before code.
849
850 * nsterm.h : Include sysselect.h.
851 (x_sync, x_get_focus_frame, x_set_mouse_position)
852 (x_set_mouse_pixel_position, x_make_frame_visible)
853 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
854 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
855 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
856 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 857 Declare.
3d608a86
J
858
859 * nsmenu.m (popup_activated, name_is_separator)
860 (syms_of_nsmenu): Convert to ANSI C prototypes.
861 (runMenuAt): Prototypes and move declarations before code.
862
863 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
864
865 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
866 prototypes.
867
868 * nsfns.m (have_menus_p, ns_display_info_for_name)
869 (x_set_cursor_type, ns_appkit_version_str)
870 (ns_appkit_version_int, ns_do_applescript)
871 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
872 (syms_of_nsfns): Convert to ANSI C prototypes.
873
874 * menu.h (x_set_menu_bar_line): Declare.
875 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
876
877 * lisp.h (fmod_float): Declare.
878
879 * image.c (xpm_scan, xpm_make_color_table_v)
880 (xpm_put_color_table_v, xpm_get_color_table_v)
881 (xpm_make_color_table_h, xpm_put_color_table_h)
882 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
883 (xpm_load): Convert to ANSI C prototypes.
884
885 * emacs.c: Include nsterm.h if HAVE_NS.
886
887 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
888
fce70521
DN
8892010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
890
891 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
892 subprocesses, only MSDOS does not define HAVE_SOCKETS.
893 (socket_options): Use const char* for name.
894
a11889ab
JB
8952010-08-06 Juanma Barranquero <lekktu@gmail.com>
896
897 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
898
899 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
900 Don't declare xmalloc_widget_value and digest_single_submenu.
901
902 * w32font.c (Qlatin): Remove declaration.
903
904 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
905
c95b508f 906 * dired.c (compile_pattern): Restore declaration.
a11889ab 907
6254cdda
DN
9082010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
909
04bab72c
DN
910 Remove extern declarations in .c files, .h files have them.
911 * data.c:
912 * dired.c:
913 * editfns.c:
914 * filelock.c:
915 * fns.c:
916 * font.c:
917 * fontset.c:
918 * frame.c:
919 * fringe.c:
920 * ftfont.c:
921 * gtkutil.c:
922 * indent.c:
923 * keyboard.c:
924 * keymap.c:
925 * lread.c:
926 * menu.c:
927 * print.c:
928 * search.c:
929 * sound.c:
930 * window.c:
931 * xdisp.c:
932 * xfaces.c:
933 * xfns.c:
934 * xfont.c:
935 * xftfont.c:
936 * xmenu.c:
937 * xterm.c: Remove declarations.
938
dff94ed5
DN
939 Cleanup syssignal.h.
940 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
941 (main_thread): Move down to remove #ifdef.
942 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
943 Remove conditional definition following unconditional ones.
944
99f3388e
DN
945 * lisp.h: Remove HAVE_SHM code, unused.
946 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
947 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
948 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
949 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
950 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
951 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
952 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
953 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
954 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
955 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
956 (Qwindow_scroll_functions, Vafter_load_alist)
957 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
958 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
959 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
960 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
961 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
962 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
963 (initial_argv, last_nonmenu_event, load_in_progress)
964 (noninteractive_need_newline, scroll_margin): Add declarations.
965
966 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
967 declarations, menu.h has them.
968 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
969 (Vinput_method_function, Qinput_method_function)
970 (Qevent_symbol_element_mask, last_event_timestamp):
971 * dispextern.h (Voverflow_newline_into_fringe):
972 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
973 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
974 (syms_of_w32font, syms_of_nsfont):
975 * fontset.h (find_font_encoding, Qlatin):
976 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
977 (Vtool_bar_mode, set_frame_menubar):
978 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
979 * xterm.h (Qx_gtk_map_stock):
980 * keymap.h (meta_prefix_char): Add declarations.
981
9f5dd6f2
DN
982 * term.c: Remove dead code.
983
6254cdda
DN
984 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
985 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
986 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
987 which is what was there before BSD_PGRPS was removed.
988
29cf3e20
EZ
9892010-08-05 Eli Zaretskii <eliz@gnu.org>
990
991 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
992
993 * unexcoff.c: Renamed from unexec.c.
994
aaa0a19a
SM
9952010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
996
997 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
998
8d1d9587
JB
9992010-08-03 Johan Bockgård <bojohan@gnu.org>
1000
1001 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 1002 (Bug#6744)
8d1d9587 1003
9a747ba6
JD
10042010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1005
4d464ae4
JD
1006 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1007 to TRUE if depth of screen is < 16.
1008
ac01763e
JD
1009 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1010 USE_GTK_TOOLTIP.
e0d62a9b
JB
1011 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1012 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 1013 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
1014 USE_GTK_TOOLTIP.
1015 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1016
1017 * xterm.h (USE_GTK_TOOLTIP): New define.
1018 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1019
9a747ba6
JD
1020 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1021 to Control-D (Bug#6771).
1022
7b0815ba
JB
10232010-08-02 Juanma Barranquero <lekktu@gmail.com>
1024
1025 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1026 Wording by Drew Adams <drew.adams@oracle.com>.
1027
aa1859f5
J
10282010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1029
1030 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1031 ttip_lbl.
1032
1033 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1034 calling gtk_widget_queue_draw.
1035 (x_free_frame_resources): Call xg_free_frame_widgets.
1036
1037 * xfns.c (x_gtk_use_system_tooltips): New variable.
1038 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1039 new gtkutil tooltip functions to show the tooltip.
1040 (Fx_hide_tip): Call xg_hide_tooltip.
1041 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1042
1043 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1044 (xg_show_tooltip, xg_hide_tooltip): Declare.
1045
1046 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
1047 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1048 New functions.
aa1859f5
J
1049 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1050 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1051 Remove code that is commented out.
1052
76417ef4
SM
10532010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1054
1055 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1056
16041401
CY
10572010-07-31 Chong Yidong <cyd@stupidchicken.com>
1058
1059 * xselect.c (x_own_selection): Use list4.
1060
2c09a58f
DN
10612010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1062
1063 * buffer.c (Qwindow): Do not define, already defined in data.c.
1064 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1065
59df9fdd 10662010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 1067
59df9fdd
JB
1068 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1069 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1070 * config.in: Undef HAVE_DIRENT_H.
1c97e857 1071 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 1072 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 1073
1b231651
DN
10742010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1075
1076 Rename s/usg5-4.h -> s/usg5-4-common.h.
1077 * s/usg5-4.h: Rename file to ...
1078 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1079 * s/unixware.h:
1080 * s/sol2-6.h:
1081 * s/irix6-5.h: Update includes accordingly.
1082
bfeabdc3
JD
10832010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1084
2ebf1083
J
1085 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1086
bfeabdc3 1087 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
1088 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1089 Remove toolbar_height.
1090 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
1091 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1092 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1093 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1094
1095 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1096
1097 * xfns.c (x_set_tool_bar_position): New function.
1098 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1099 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 1100 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
1101
1102 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1103 and FRAME_TOOLBAR_LEFT_WIDTH.
1104
1105 * gtkutil.h (xg_change_toolbar_position): Declare.
1106
1107 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1108 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1109 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1110 (xg_create_frame_widgets): Create a hobox for placing widgets
1111 vertically. Use gtk_box_pack_start.
1112 (xg_height_or_width_changed): Renamed from xg_height_changed.
1113 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1114 (xg_update_frame_menubar, free_frame_menubar): Change to
1115 xg_height_or_width_changed.
1116 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1117 size correctly. Remove hardcoded 4, instead use handlebox size -
1118 toolbar size.
1119 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 1120 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
1121 (xg_pack_tool_bar): POS is a new parameter.
1122 Set orientation of tool bar based on pos.
1123 Only make handlebox_widget if NULL.
1124 Check if tool bar goes to vbox or hbox depending on pos.
1125 (xg_update_tool_bar_sizes): New function.
686b968e 1126 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
1127 height, call xg_update_tool_bar_sizes instead.
1128 (free_frame_tool_bar): Remove from hbox or vbox depending on
1129 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1130 (xg_change_toolbar_position): New function.
1131
1132 * frame.h (struct frame): Add tool_bar_position.
1133 (Qbottom): Declare.
1134
1135 * frame.c (Qtool_bar_position): New variable.
1136 (make_frame): Set tool_bar_position to Qtop.
1137 (frame_parms): Add tool-bar-position.
1138 (x_report_frame_params): Store tool_bar_position.
1139 (x_set_fringe_width): Reset wm size hint after fringe changes.
1140
26469a38
DN
11412010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1142
1143 Make lisp_time_argument declaration work on all systems.
1144 * lisp.h (lisp_time_argument): Move declaration ...
1145 * systime.h (lisp_time_argument): ... here
1146 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1147
8848b728
JD
11482010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1149
1150 * vm-limit.c (POINTER): Add typedef for it.
1151 (start_of_data): Change return type from POINTER to char *.
1152
1153 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1154 HAVE_WINDOW_SYSTEM.
1155
76fd1ee9
DN
11562010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1157
0441987e
DN
1158 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1159 Remove reference to __osf__, unused.
1160
56a000c7
DN
1161 * mem-limits.h: Remove duplicated includes.
1162 (NULL): Remove definition, unused.
1163 (POINTER): Remove definition.
1164 (start_of_data): Use char* in prototype, as the function
1165 definition does.
1166
e6cba650
DN
1167 Remove extern declarations from .c files, and them to .h files.
1168 * keyboard.h (Qhelp_echo, waiting_for_input)
1169 (input_available_clear_time, ignore_mouse_drag_p)
1170 (Vdouble_click_time, real_this_command, Vthis_original_command):
1171 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1172 (Voverriding_local_map_menu_flag):
1173 * lisp.h (Qinteractive_form, use_file_dialog)
1174 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1175 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1176 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1177 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1178 (Qfunction, debug_on_next_call, Qfield)
1179 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1180 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1181 (Qfile_directory_p, Qinsert_file_contents)
1182 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1183 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1184 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1185 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1186 (Qminibuffer_prompt)
1187 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1188 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1189 (gray_bitmap_bits, xic_create_fontsetname):
1190 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1191
1192 * xsmfns.c (Vuser_login_name):
1193 * xrdb.c (Vdouble_click_time):
1194 * xfaces.c (xic_create_fontsetname):
1195 * w32select.c (waiting_for_input):
1196 * print.c (minibuffer_auto_raise):
1197 * msdos.c (Qhelp_echo):
1198 * macros.c (real_this_command):
1199 * keymap.c (Voverriding_local_map):
1200 * xterm.c (poll_for_input_1, gray_bitmap_width)
1201 (gray_bitmap_height, gray_bitmap_bits;
1202 * xmenu.c ( Voverriding_local_map)
1203 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1204 (use_file_dialog, Xt_app_con):
1205 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1206 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1207 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1208 (Qtool_bar_lines, ignore_mouse_drag_p):
1209 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1210 (Qrear_nonsticky, nconc2):
1211 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1212 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1213 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1214 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1215 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1216 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1217 (gc_in_progress):
1218 * doc.c (Voverriding_local_map, Qremap):
1219 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1220 (Vcompletion_regexp_list):
1221 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1222 (Qcompletion_ignore_case):
1223 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1224 (Vhistory_length, Vthis_original_command, real_this_command)
1225 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1226 * image.c (Qrisky_local_variable):
1227 * fontset.c (QCname):
1228 * fns.c (minibuffer_auto_raise, QCname):
1229 * dispnew.c (char_ins_del_cost):
1230 * composite.c (font_fill_lglyph_metrics):
1231 * cmds.c (Qface, Vtranslation_table_for_input):
1232 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1233 * ccl.c (charset_unicode):
1234 * callproc.c (Vtemporary_file_directory):
1235 * buffer.c (emacs_strerror): Remove extern declarations.
1236
1237 * data.c (Qwindow): Make non-static, used from other files too.
1238 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1239
76fd1ee9
DN
1240 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1241 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1242 * s/usg5-4.h (COFF):
1243 * s/template.h:
1244 * s/msdos.h (COFF, NO_REMAP):
1245 * s/ms-w32.h (NO_REMAP):
1246 * s/hpux10-20.h (NO_REMAP):
1247 * m/sparc.h (SEGMENT_MASK):
1248 * m/m68k.h (NO_REMAP):
1249 * m/intel386.h (SEGMENT_MASK):
1250 * m/arm.h (NO_REMAP):
1251 * m/alpha.h (COFF):
1252 * m/template.h: Remove references to unused defines.
1253
8a52f00a
JD
12542010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1255
1256 * xsettings.c (Ftool_bar_get_system_style): Also check for
1257 Qtext_image_horiz.
1258
1259 * xdisp.c (Qtext_image_horiz): Define.
1260 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 1261 to documentation of tool-bar-style.
8a52f00a
JD
1262
1263 * lisp.h (Qtext_image_horiz): Declare.
1264
1265 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1266 style text_image_horiz.
1267
89dc303e
DN
12682010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1269
60799703
DN
1270 * emacs.c (Fkill_emacs): Remove return statement.
1271
37254dc1
DN
1272 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1273 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1274 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1275 local extern declarations.
1276
71c7345a
DN
1277 * xmenu.c: Do not included lwlib.h, not needed.
1278
6ba577cb
DN
1279 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1280
fdb183d6
DN
1281 * process.c: Move definitions earlier to minimize #ifdefs.
1282
1283 * xterm.h (x_get_customization_string, x_load_resources)
1284 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1285 (x_check_errors, x_property_data_to_lisp, defined_color)
1286 (xic_set_xfontset, x_defined_color): Use const.
1287
1288 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1289 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1290
1291 * xselect.c (selection_data_to_lisp_data)
1292 (x_property_data_to_lisp):
1293 * xrdb.c (x_get_string_resource, file_p)
1294 (x_get_customization_string, magic_file_p, search_magic_path)
1295 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1296 (x_get_string_resource): Use const.
1297
1298 * xfns.c: Include xlwmenu.h when USE_LUCID.
1299 (x_defined_color, xic_set_xfontset): Use const.
1300 (Fx_hide_tip): Remove local extern declaration.
1301
1302 * xfaces.c (Qmouse_face): Remove declaration.
1303 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 1304 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
1305
1306 * xdisp.c (do_mouse_tracking): Remove declaration.
1307 (add_to_log): Use const.
1308
1309 * minibuf.c (Qmouse_face): Remove declaration.
1310
1311 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1312
1313 * keyboard.h (do_mouse_tracking): Add declaration.
1314
1315 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1316 (QCdata, QCtype, Qcenter): Remove declarations.
1317
1318 * frame.c (x_get_resource_string, x_get_string_resource)
1319 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1320 (x_default_parameter): Use const.
1321
1322 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1323 (QCheight, QCsize, QCname): Remove declarations.
1324
1325 * emacs.c (main): Remove local extern declaration.
1326
1327 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1328 declarations.
1329
1330 * dispnew.c: Remove duplicate #include <unistd.h>.
1331 (update_window, update_frame_1, init_display): Remove local extern
1332 declarations.
1333
1334 * dispextern.h (add_to_log): Remove declaration.
1335 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1336 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1337
1338 * dired.c (scmp): Add const.
1339 (directory_files_internal): Remove local extern declaration.
1340
1341 * data.c (Finteractive_form): Use const.
1342
1343 * composite.c (syms_of_composite): Remove local extern declarations.
1344
1345 * charset.c (add_to_log): Remove declaration.
1346
1347 * character.c (strwidth, parse_str_to_multibyte): Add const.
1348
1349 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1350
1351 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1352
89dc303e 1353 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
1354 (Lisp_Subr): Make doc and intspec constant.
1355 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1356 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1357 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1358 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1359 (display_arg): Add declarations.
89dc303e 1360
0ed082fe 13612010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
1362
1363 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1364
0ed082fe
JB
1365 * window.c (Fwindow_height): Doc fix (bug#6518).
1366
13672010-07-27 Juanma Barranquero <lekktu@gmail.com>
1368
1369 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1370
ccaf0336
DN
13712010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1372
977105dc
DN
1373 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1374 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1375 functions.
1376
f5ada890
DN
1377 * frame.h (Qtty_color_mode): Add declaration.
1378
ccaf0336
DN
1379 * lisp.h (Ftop_level, Fexit_recursive_edit)
1380 (Fabort_recursive_edit): Mark as NO_RETURN.
1381
dfe3c90f
KH
13822010-07-26 Kenichi Handa <handa@m17n.org>
1383
1384 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 1385 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 1386
7d383292
JB
13872010-07-26 Juanma Barranquero <lekktu@gmail.com>
1388
1389 * lread.c (unreadpure, mapatoms_1): Make static.
1390
da31e629
JB
13912010-07-25 Juanma Barranquero <lekktu@gmail.com>
1392
1393 * terminfo.c (tparam): Fix prototype of tparm.
1394
7bfa6d77
AS
13952010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1396
dcc19aac
AS
1397 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1398 find start of text segment.
1399 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1400 is defined.
1401
7bfa6d77
AS
1402 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1403
63f9a672
KB
14042010-07-25 Ken Brown <kbrown@cornell.edu>
1405
1406 * vm-limit.c (check_memory_limits): Fix previous change;
1407 accidentally reverted an earlier change.
1408
24933075
KB
14092010-07-25 Ken Brown <kbrown@cornell.edu>
1410
1411 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1412 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1413
361358ea
JB
14142010-07-25 Juanma Barranquero <lekktu@gmail.com>
1415
1416 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1417 * dired.c (opendir, readdir): Fix prototypes.
1418 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1419 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1420 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1421 (telldir): Remove declaration.
1422 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1423 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1424 * syssignal.h (strsignal): Fix prototype.
1425 * term.c (tparam): Fix prototype.
1426 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1427 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1428 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1429 and __morecore.
1430 * w32gui.h (XParseGeometry): Fix prototype.
1431 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1432 * w32term.c (my_set_focus): Declare inside #if 0.
1433 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1434 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1435 (drain_message_queue, get_next_msg, post_msg, parse_button)
1436 (ClipboardSequence_Proc): Fix prototypes.
1437 (wait_for_sync): Remove declaration.
1438
630b9592
JB
14392010-07-24 Juanma Barranquero <lekktu@gmail.com>
1440
1441 * w32fns.c (w32_to_x_color): Remove, unused.
1442
6a0d6611
AS
14432010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1444
1445 * lisp.h: Remove leftover P_.
1446
4e8608ff
DN
14472010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1448
1449 * ecrt0.c, unexalpha.c: Remove files, unused.
1450
c8197983
AS
14512010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1452
1453 * cmds.c (internal_self_insert): Make static.
1454 * lisp.h (internal_self_insert): Remove declaration.
1455
97b372d7
JB
14562010-07-23 Juanma Barranquero <lekktu@gmail.com>
1457
33ac0414
JB
1458 * alloc.c (free_float):
1459 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1460 * frame.c (delete_frame_handler):
1461 * ralloc.c (reorder_bloc):
1462 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1463 Remove unused static functions.
1464
94da8397
JB
1465 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1466 it is called only from NS code.
1467
2e6c8532
JB
1468 * w32term.c (my_set_focus): #ifdef away; it is called only from
1469 "#ifdef 0" code.
1470
97b372d7
JB
1471 * w32fns.c (x_edge_detection):
1472 * xfaces.c (may_use_scalable_font_p):
1473 Remove obsolete static declarations.
1474
7c3320d8
JB
14752010-07-20 Juanma Barranquero <lekktu@gmail.com>
1476
1477 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1478 (emacs_blocked_realloc, uninterrupt_malloc):
1479 * fringe.c (w32_reset_fringes):
1480 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1481 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1482 * sound.c (be2hs, do_play_sound):
1483 * vm-limit.c (get_lim_data, ret_lim_data):
1484 * w32term.c (x_free_frame_resources):
1485 * xfaces.c (x_create_gc, x_free_gc):
1486 Convert definitions to standard C.
1487
d5273788
SM
14882010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1489
1490 * eval.c (Feval, Ffuncall): Use the new names.
1491
1492 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1493 (DEFUN): Add braces around the union initialisation and use ## to
1494 specify the right union alternative and avoid a cast.
1495
8d16a259
JB
14962010-07-18 Juanma Barranquero <lekktu@gmail.com>
1497
1498 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1499
3b8eff32
CY
15002010-07-17 Chong Yidong <cyd@stupidchicken.com>
1501
1502 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1503
499322ce
J
15042010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1505
1506 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1507 is related to the menu bar (Bug#6499).
a628ad9d 1508 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 1509
f6003da5 15102010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
1511
1512 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1513
1514 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1515
1516 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1517 i.e. don't put back ButtonRelease (Bug#6608).
1518
1519 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1520 instead of Window. Call xg_event_is_for_menubar when
1521 USE_GTK (Bug#6499).
1522
1523 * gtkutil.h (xg_event_is_for_menubar): Declare.
1524
1525 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1526
f6003da5 15272010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
1528
1529 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1530 when it's the same as the old foreground. (Bug#6609)
1531
23243f29
J
15322010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1533
1534 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1535 widget is non-null (Bug#6645).
1536
2b23d2a6
AS
15372010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1538
01b564ff
AS
1539 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1540 Convert old-style definition.
1541
2b23d2a6
AS
1542 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1543 timestamp argument.
1544
c4affd2c
EZ
15452010-07-15 Eli Zaretskii <eliz@gnu.org>
1546
1547 * fringe.c (update_window_fringes): Restore mistakenly reverted
1548 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1549
cf28cebc
J
15502010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1551
1552 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1553 (SET_SAVED_KEY_EVENT): Remove (not used).
1554 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1555 remove size parameter.
1556 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1557 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1558 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1559 ButtonRelease.
6b2c4bd9
J
1560 (x_set_window_size_1): scroll_bar_actual_width is always
1561 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
1562
1563 * xdisp.c (pending_menu_activation): Remove extern declaration.
1564 (prepare_menu_bars): Remove setting of pending_menu_activation.
1565
1566 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
1567 (x_activate_menubar): Set popup_activated_flag for Xt also.
1568 Remove setting of pending_menu_activation.
cf28cebc
J
1569 (set_frame_menubar): Remove check of pending_menu_activation.
1570 Declare menubar_size before code. Correct spelling in comment.
1571
f6c1c771
KH
15722010-07-14 Kenichi Handa <handa@m17n.org>
1573
1574 * font.c (font_open_entity): Cancel previous change.
1575 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1576
20477505
EZ
15772010-07-13 Eli Zaretskii <eliz@gnu.org>
1578
77defa9a
EZ
1579 Remove subprocesses #ifdefs.
1580 * process.c <inhibit_sentinels>: Move to the common part.
1581 (Fwaiting_for_user_input_p): Move to the common part; return nil
1582 if async subprocesses aren't supported.
1583 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1584 MS-DOS. Remove "#ifdef subprocesses".
1585 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1586 (gettimeofday): Remove "#ifdef subprocesses".
1587 (wait_without_blocking): Remove function.
1588 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1589 Remove "#ifdef subprocesses".
1590 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1591 compiled on MS-DOS.
1592 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1593 wait_for_termination on MS-DOS.
1594 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1595 initialization of inhibit_sentinels.
1596 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1597 subprocesses" conditional.
1598 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1599 wait_for_termination, since `buffer' cannot be an integer when
1600 async subprocesses are not supported
1601 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1602 for ifdefing away the call to Fprocess_status.
1603
20477505
EZ
1604 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1605 away the entire body of the function.
1606
b3ffc17c
DN
16072010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1608
01faa934
DN
1609 Remove subprocesses #ifdefs from term.c.
1610 * process.c (add_keyboard_wait_descriptor)
1611 (delete_keyboard_wait_descriptor): Move to common section, do
1612 nothing when subprocesses is not defined.
a628ad9d
JB
1613 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1614 Remove subprocesses #ifdefs.
01faa934 1615
b3ffc17c
DN
1616 Convert maybe_fatal to standard C.
1617 * lisp.h (verror): Declare.
1618 * eval.c (verror): New function containing the code from ...
1619 (error): ... this. Call verror.
1620 * term.c (vfatal): New function containing the code from ...
1621 (fatal): ... this. Call vfatal.
1622 (maybe_fatal): Convert to standard C, use variable number of
1623 arguments. Declare as non-return.
1624 (init_tty): Fix maybe_fatal call.
1625
0521f580
DN
16262010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1627
1628 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1629 (_scroll_bar_note_movement): Convert definitions to standard C.
1630 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1631 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1632
ebd15611
DN
16332010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1634
1635 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1636 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1637 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1638 (xaw_jump_callback, xaw_scroll_callback)
1639 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1640 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1641 definitions to standard C.
1642 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1643 (popup_activate_callback, popup_deactivate_callback)
1644 (menu_highlight_callback, menubar_selection_callback)
1645 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1646 (free_frame_menubar, popup_selection_callback, as)
1647 (create_and_show_popup_menu, dialog_selection_callback)
1648 (create_and_show_dialog):
1649 * xfns.c (hack_wm_protocols, x_window):
1650 * xfaces.c (x_update_menu_appearance):
1651 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1652 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1653 (set_frame_size, update_wm_hints, setup_frame_gcs)
1654 (update_various_frame_slots, update_from_various_frame_slots)
1655 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1656 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1657 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1658
de06a2dd
AS
16592010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1660
a628ad9d 1661 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 1662
fc549af9
EZ
16632010-07-12 Eli Zaretskii <eliz@gnu.org>
1664
1665 * process.c (setup_process_coding_systems): Move to the part
1666 shared by non-subprocesses systems, and make its body empty when
1667 subprocesses is not defined.
1668 (close_process_descs): Move to the part shared by non-subprocesses
1669 systems.
1408902e
EZ
1670 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1671 ANSI C.
fc549af9 1672
d5a3eaaf
AS
16732010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1674
1675 * editfns.c (transpose_markers): Convert old-style definition.
1676 * emacs.c (abort, shut_down_emacs, fixup_locale)
1677 (synchronize_system_time_locale)
1678 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1679 * floatfns.c (extract_float, matherr, init_floatfns)
1680 (syms_of_floatfns): Likewise.
1681 * fns.c (make_hash_table): Likewise.
1682 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1683 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1684 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1685 (ftfont_variation_glyphs): Likewise.
1686 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1687 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1688 * lread.c (read_filtered_event): Likewise.
1689 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1690 * process.c (wait_reading_process_output): Likewise.
1691 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1692 * search.c (search_buffer, boyer_moore): Likewise.
1693 * syntax.c (scan_sexps_forward): Likewise.
1694 * xdisp.c (try_scrolling): Likewise.
1695 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1696 (face_at_string_position): Likewise.
1697 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1698 * xselect.c (x_get_window_property, receive_incremental_selection)
1699 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1700 Likewise.
1701 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1702
6f704c76
DN
17032010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1704
ded80a25
DN
1705 * callproc.c (child_setup): Remove subprocesses conditional.
1706 Remove code dealing with SET_EMACS_PRIORITY, unused.
1707
49d937f4 1708 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
1709 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1710
1711 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1712 (__do_global_dtors, __main): Use void in definition.
1713 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1714 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1715 the only users from ...
1716 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1717 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1718 (HAVE_VOLATILE): Remove, unused.
1719
6f704c76
DN
1720 Convert more function definitions to standard C.
1721 * xdisp.c (window_box_edges, handle_single_display_spec)
1722 (display_string): Convert definition to standard C.
1723 * scroll.c (do_direct_scrolling, scrolling_1):
1724 * dispnew.c (allocate_matrices_for_frame_redisplay)
1725 (mirrored_line_dance):
1726 * coding.c (code_convert_string):
1727 * charset.c (map_charset_chars):
1728 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1729 (Fregister_ccl_program, Fregister_code_conversion_map):
1730 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1731 (head_table): Make static and const.
1732
e6cfa7c3
AS
17332010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1734
1735 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1736 (PROFILING_LDFLAGS): Set from substitution.
1737 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1738 CFLAGS last.
1739
892dd565
KH
17402010-07-12 Kenichi Handa <handa@m17n.org>
1741
6f2cdcd1
KH
1742 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1743 (shortlisp): Likewise.
1744
892dd565
KH
1745 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1746
1747 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1748 of FONT_ENTITY_INDEX.
1749 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1750 property, get the property value dynamically.
1751 (Ffont_put): Accept font-entity and font-object too.
1752 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1753 return value changed.
1754 (syms_of_font): Adjusted for the above change.
1755
ae96d47a
AS
17562010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1757
c8fc18ee
AS
1758 * blockinput.h: Remove obsolete comment.
1759
89887d67
AS
1760 * lisp.h: Include <stddef.h>.
1761 (OFFSETOF): Don't define.
1762 (VECSIZE): Use offsetof instead of OFFSETOF.
1763 (PSEUDOVECSIZE): Likewise.
1764 * process.c (conv_sockaddr_to_lisp): Likewise.
1765 * alloc.c: Don't include <stddef.h>.
1766 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1767
ae96d47a
AS
1768 * process.c: Remove obsolete comment.
1769
635c0aa1
CY
17702010-07-11 Chong Yidong <cyd@stupidchicken.com>
1771
1772 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1773
a64df650
AS
17742010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1775
8966b757
AS
1776 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1777 index, rindex.
1778 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1779 * editfns.c (Fuser_full_name, Fformat): Likewise.
1780 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1781 * fileio.c (Ffile_symlink_p): Likewise.
1782 * filelock.c (current_lock_owner): Likewise.
1783 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1784 * fontset.c (fontset_pattern_regexp): Likewise.
1785 * lread.c (read1): Likewise.
1786 * sysdep.c (init_system_name): Likewise.
1787 * xfns.c (select_visual): Likewise.
1788 * s/hpux10-20.h (index, rindex): Don't define.
1789 * s/ms-w32.h (index): Likewise.
1790 * s/usg5-4.h: Likewise.
1791
cf237e27
AS
1792 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1793
a8fe7202
AS
1794 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1795 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1796 (egetenv): Likewise.
1797 * doprnt.c (doprnt): Likewise.
1798 * editfns.c (set_time_zone_rule, format2): Likewise.
1799 * emacs.c (decode_env_path): Likewise.
1800 * eval.c (signal_error, error): Likewise.
1801 * insdel.c (replace_range_2): Likewise.
1802 * keyboard.c (cmd_error_internal): Likewise.
1803 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1804 * print.c (write_string, write_string_1, print_error_message):
1805 Likewise.
1806 * vm-limit.c (warn_function, memory_warnings): Likewise.
1807 * xdisp.c (message1, message1_nolog, message_with_string)
1808 (vmessage, message, message_nolog): Likewise.
1809 * emacs.c: Remove duplicate declaration.
1810 * keyboard.h: Likewise.
1811 * lisp.h: Update prototypes.
1812
bb8e180f
AS
1813 * eval.c: Fix indentation problem.
1814
83380e65
AS
1815 * keyboard.c: Include "process.h"
1816
a64df650
AS
1817 * eval.c: Remove obsolete noinline declaration.
1818 * fns.c: Likewise.
1819
6a8033e1
KR
18202010-07-11 Ken Raeburn <raeburn@raeburn.org>
1821
1822 * doprnt.c (doprnt): Take a va_list argument instead of count and
1823 pointer.
1824 * eval.c (error): Change to a standard-C variadic function.
1825 * xdisp.c (vmessage): Renamed from message, made static, and
1826 changed to take a va_list argument.
1827 (message): New variadic wrapper.
1828 (message_nolog): Now a variadic function, calling vmessage.
1829 * lisp.h: Include stdarg.h for va_list.
1830 (doprnt, error, message, message_nolog): Decls updated.
1831
462aa963
EZ
18322010-07-11 Eli Zaretskii <eliz@gnu.org>
1833
1834 * process.c (syms_of_process) <delete-exited-processes>: Define
1835 even if !subprocesses.
1836 (delete_exited_processes): Ditto.
1837
1838 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1839 (delete_exited_processes): Don't define.
1840
48104462
CY
18412010-07-10 Chong Yidong <cyd@stupidchicken.com>
1842
1843 * frame.c (make_frame): Initialize menu_bar_lines and
1844 tool_bar_lines members.
1845 (make_initial_frame, make_terminal_frame): Initialize
1846 menu_bar_lines using value of menu-bar-mode.
1847
1848 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1849
f388c88a
EZ
18502010-07-10 Eli Zaretskii <eliz@gnu.org>
1851
1852 * process.c: Reshuffle #include's. Condition some of the global
1853 and static variables on `subprocesses'.
1854 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1855 Leave only one implementation.
1856 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1857 (kill_buffer_processes, Flist_system_processes)
1858 (Fprocess_attributes, init_process, syms_of_process): Unify the
1859 implementations for with subprocesses and without them.
1860
723f5a07
J
18612010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1862
1863 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1864 correct size for Motif.
1865 (free_frame_menubar): Call x_set_window_size to update frame size.
1866
1867 * xfns.c (x_window): Set borderWidth to 0 for pane and
1868 EmacsFrame. Frame size calculation is wrong otherwise.
1869
2536a4b7
MA
18702010-07-09 Michael Albinus <michael.albinus@gmx.de>
1871
1872 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1873 allows to suppress errors when polling in Emacs' main loop.
1874 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1875 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1876 (Fdbus_method_error_internal, Fdbus_send_signal)
1877 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1878 (Fdbus_register_method): Use it. (Bug#6579)
1879
5842a27b
DN
18802010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1881
1882 * alloc.c: Convert DEFUNs to standard C.
1883 * buffer.c:
1884 * bytecode.c:
1885 * callint.c:
1886 * callproc.c:
1887 * casefiddle.c:
1888 * casetab.c:
1889 * category.c:
1890 * character.c:
1891 * charset.c:
1892 * chartab.c:
1893 * cmds.c:
1894 * coding.c:
1895 * composite.c:
1896 * data.c:
1897 * dbusbind.c:
1898 * dired.c:
1899 * dispnew.c:
1900 * doc.c:
1901 * dosfns.c:
1902 * editfns.c:
1903 * emacs.c:
1904 * eval.c:
1905 * fileio.c:
1906 * filelock.c:
1907 * floatfns.c:
1908 * fns.c:
1909 * font.c:
1910 * fontset.c:
1911 * frame.c:
1912 * fringe.c:
1913 * image.c:
1914 * indent.c:
1915 * insdel.c:
1916 * keyboard.c:
1917 * keymap.c:
1918 * lread.c:
1919 * macros.c:
1920 * marker.c:
1921 * menu.c:
1922 * minibuf.c:
1923 * msdos.c:
1924 * nsfns.m:
1925 * nsmenu.m:
1926 * nsselect.m:
1927 * print.c:
1928 * process.c:
1929 * search.c:
1930 * sound.c:
1931 * syntax.c:
1932 * term.c:
1933 * terminal.c:
1934 * textprop.c:
1935 * undo.c:
1936 * w16select.c:
1937 * w32console.c:
1938 * w32fns.c:
1939 * w32font.c:
1940 * w32menu.c:
1941 * w32proc.c:
1942 * w32select.c:
1943 * window.c:
1944 * xdisp.c:
1945 * xfaces.c:
1946 * xfns.c:
1947 * xmenu.c:
1948 * xselect.c:
1949 * xsettings.c:
1950 * xsmfns.c: Likewise.
1951
d568829b
EZ
19522010-07-08 Eli Zaretskii <eliz@gnu.org>
1953
1954 * process.c (kbd_is_on_hold, hold_keyboard_input)
1955 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1956
52214050
J
19572010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1958
1959 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1960 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1961 unless USE_LUCID.
1962
313d9eb2
DN
19632010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1964
a628ad9d
JB
1965 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1966 declaration.
d8825aa3 1967
295d0d8f
DN
1968 Clean up include guards.
1969 * tparam.c: Remove include guards for config.h, string.h and code
1970 that assumes #ifndef emacs.
1971 * termcap.c:
1972 * unexalpha.c:
1973 * sysdep.c:
1974 * filemode.c:
1975 * filelock.c:
1976 * bidi.c: Likewise.
1977
49d9e6b0
DN
1978 Remove prefix-args.c
1979 * prefix-args.c: Remove file.
1980 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1981 * Makefile.in (temacs${EXEEXT}): Remove references to
1982 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1983 (mostlyclean): Remove reference to prefix-args.
1984 (prefix-args): Remove.
1985
313d9eb2
DN
1986 Simplify cstart_of_data, start_of_code and related code.
1987 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1988 (start_of_data): Merge into start_of_data function.
1989 * sysdep.c (start_of_text): Remove. Move simplified versions of
1990 it in the only users: unexaix.c and unexec.c.
1991 (read_input_waiting): Remove local declaration of quit_char.
1992 (start, etext): Remove declarations.
1993 (start_of_data): Merge with the version in mem-limits.h and move
1994 to vm-limits.c.
1995 * vm-limit.c (start_of_data): Merged and simplified version of the
1996 code formerly in mem-limits.h and sysdep.c.
1997 * unexec.c (start): New declaration, moved from sysdep.c.
1998 (start_of_text): Simplified version of the code formerly in sysdep.c.
1999 * unexaix.c (start_of_text): Simplified version of the code
2000 formerly in sysdep.c.
2001 * m/alpha.h (HAVE_TEXT_START): Remove.
2002 (TEXT_START): Move ...
2003 * unexalpha.c (TEXT_START): ... here.
2004 * s/hpux10-20.h (TEXT_START): Remove.
2005 * s/darwin.h (TEXT_START):
2006 * m/mips.h (TEXT_START):
2007 * m/macppc.h (HAVE_TEXT_START):
2008 * m/m68k.h (TEXT_START):
2009 * m/iris4d.h (TEXT_START):
2010 * m/intel386.h (TEXT_START):
2011 * m/ibmrs6000.h (TEXT_START):
2012 * m/ia64.h (HAVE_TEXT_START):
2013 * s/msdos.h (TEXT_START): Likewise.
2014
72af86bd
AS
20152010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2016
2017 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2018 (overrun_check_free, xstrdup, allocate_string)
2019 (allocate_string_data, compact_small_strings, Fmake_string)
2020 (make_unibyte_string, make_multibyte_string)
2021 (make_string_from_bytes, make_specified_string, make_float)
2022 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2023 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2024 memcpy, memmove, memset, memcmp.
2025 * atimer.c (start_atimer, set_alarm): Likewise.
2026 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2027 (mmap_realloc, init_buffer_once): Likewise.
2028 * callint.c (Fcall_interactively): Likewise.
2029 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2030 (getenv_internal_1): Likewise.
2031 * casefiddle.c (casify_object): Likewise.
2032 * ccl.c (ccl_driver): Likewise.
2033 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2034 * charset.c (load_charset_map_from_file)
2035 (load_charset_map_from_file, load_charset_map_from_vector)
2036 (Fdefine_charset_internal): Likewise.
2037 * cm.c (Wcm_clear): Likewise.
2038 * coding.c (decode_eol, decode_coding_object)
2039 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2040 * data.c (Faset): Likewise.
2041 * dired.c (directory_files_internal, file_name_completion_stat):
2042 Likewise.
2043 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2044 (clear_glyph_row, copy_row_except_pointers)
2045 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2046 (save_current_matrix, restore_current_matrix)
2047 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2048 (mirror_line_dance, scrolling_window): Likewise.
2049 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2050 Likewise.
2051 * doprnt.c (doprnt): Likewise.
2052 * editfns.c (Fuser_full_name, make_buffer_string_both)
2053 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2054 * emacs.c (sort_args): Likewise.
2055 * eval.c (Fapply, Ffuncall): Likewise.
2056 * fileio.c (Ffile_name_directory, make_temp_name)
2057 (Fexpand_file_name, search_embedded_absfilename)
2058 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2059 (auto_save_error): Likewise.
2060 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2061 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2062 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2063 (Fmake_hash_table): Likewise.
2064 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2065 * ftfont.c (ftfont_text_extents): Likewise.
2066 * getloadavg.c (getloadavg): Likewise.
2067 * image.c (define_image_type, make_image, make_image_cache)
2068 (x_create_x_image_and_pixmap, xbm_image_p)
2069 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2070 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2071 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2072 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2073 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2074 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2075 Likewise.
2076 * indent.c (scan_for_column, compute_motion): Likewise.
2077 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2078 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2079 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2080 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2081 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2082 (store_user_signal_events, menu_bar_items, tool_bar_items)
2083 (process_tool_bar_item, append_tool_bar_item)
2084 (read_char_minibuf_menu_prompt, read_key_sequence)
2085 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2086 Likewise.
2087 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2088 Likewise.
2089 * lisp.h (STRING_COPYIN): Likewise.
2090 * lread.c (Fload, read1, oblookup): Likewise.
2091 * msdos.c (Frecent_doskeys): Likewise.
2092 * nsfns.m (Fx_create_frame): Likewise.
2093 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2094 Likewise.
2095 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2096 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2097 Likewise.
2098 * nsmenu.m (ns_update_menubar): Likewise.
2099 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2100 * print.c (print_unwind, printchar, strout, print_string)
2101 (print_error_message): Likewise.
2102 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2103 (Fmake_network_process, Fnetwork_interface_list)
2104 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2105 (init_process): Likewise.
2106 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2107 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2108 Likewise.
2109 * scroll.c (do_scrolling, do_direct_scrolling)
2110 (scrolling_max_lines_saved): Likewise.
2111 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2112 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2113 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2114 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2115 (emacs_set_tty): Likewise.
2116 * term.c (encode_terminal_code, calculate_costs)
2117 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2118 Likewise.
2119 * termcap.c (tgetst1, gobble_line): Likewise.
2120 * termhooks.h (EVENT_INIT): Likewise.
2121 * tparam.c (tparam1): Likewise.
2122 * unexalpha.c (unexec): Likewise.
2123 * unexec.c (write_segment): Likewise.
2124 * unexmacosx.c (unexec_write_zero): Likewise.
2125 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2126 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2127 * w32font.c (w32font_list_family, w32font_text_extents)
2128 (w32font_list_internal, w32font_match_internal)
2129 (w32font_open_internal, compute_metrics, Fx_select_font):
2130 Likewise.
2131 * w32menu.c (set_frame_menubar, add_menu_item)
2132 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2133 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2134 * w32uniscribe.c (uniscribe_list_family): Likewise.
2135 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2136 * window.c (make_window, replace_window, set_window_buffer)
2137 (Fsplit_window): Likewise.
2138 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2139 (add_to_log, message3, x_consider_frame_title)
2140 (append_space_for_newline, extend_face_to_end_of_line)
2141 (decode_mode_spec_coding, init_glyph_string): Likewise.
2142 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2143 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2144 (face_attr_equal_p, make_realized_face, make_face_cache)
2145 (free_realized_faces, lookup_named_face, smaller_face)
2146 (face_with_height, lookup_derived_face)
2147 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2148 (Finternal_set_font_selection_order, realize_default_face)
2149 (compute_char_face, face_at_buffer_position)
2150 (face_for_overlay_string, face_at_string_position, merge_faces):
2151 Likewise.
2152 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2153 (Fx_window_property, x_create_tip_frame)
2154 (Fx_backspace_delete_keys_p): Likewise.
2155 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2156 (xfont_text_extents): Likewise.
2157 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2158 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2159 * xselect.c (x_queue_event, x_get_window_property)
2160 (receive_incremental_selection): Likewise.
2161 * xsmfns.c (x_session_check_input): Likewise.
2162 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2163 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2164 Likewise.
2165 * character.h (BCOPY_SHORT): Removed.
2166 * config.in: Regenerate.
2167 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2168 * emacs.c (main) [PROFILING]: Don't declare
2169 dump_opcode_frequencies.
2170 * lisp.h (safe_bcopy): Remove declaration.
2171 (memset) [!HAVE_MEMSET]: Declare.
2172 (memcpy) [!HAVE_MEMCPY]: Likewise.
2173 (memmove) [!HAVE_MEMMOVE]: Likewise.
2174 (memcmp) [!HAVE_MEMCMP]: Likewise.
2175 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2176 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2177 Don't define.
2178 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2179 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2180 (BCOPY_DOWNWARD_SAFE): Don't define.
2181 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2182 (memcpy) [!HAVE_MEMCPY]: Define.
2183 (memmove) [!HAVE_MEMMOVE]: Define.
2184 (memcmp) [!HAVE_MEMCMP]: Define.
2185
cb768704
J
21862010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2187
2188 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
2189 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2190 New functions.
cb768704
J
2191 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2192 select on empty input mask.
2193 (init_process): Initialize kbd_is_on_hold to 0.
2194
2195 * process.h (hold_keyboard_input, unhold_keyboard_input)
2196 (kbd_on_hold_p): Declare.
2197
2198 * keyboard.c (input_available_signal): Declare.
2199 (kbd_buffer_nr_stored): New function.
2200 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2201 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2202 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2203 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2204 (tty_read_avail_input): If input is on hold, return.
2205 Don't read more that free slots in kbd_buffer (Bug#6571).
2206
3a8ce822
EZ
22072010-07-07 Eli Zaretskii <eliz@gnu.org>
2208
2209 * msdos.h:
2210 * msdos.c:
2211 * dosfns.c:
2212 * w16select.c: Convert function definitions to ANSI C.
2213
a628ad9d
JB
2214 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2215 Remove unused prototypes.
3a8ce822 2216
cf84bb53
JB
22172010-07-07 Juanma Barranquero <lekktu@gmail.com>
2218
2219 * coding.c, sysdep.c: Convert some more functions to standard C.
2220
1a4990fb
JB
22212010-07-07 Juanma Barranquero <lekktu@gmail.com>
2222
2223 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2224 (encode_coding_object): Use SPECPDL_INDEX.
2225 (syms_of_coding): Use DOS_NT.
2226
c0f2f16b
DN
22272010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2228
48fb6855
DN
2229 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2230
c0f2f16b
DN
2231 Make the function member of Lisp_Subr use standard C prototypes.
2232 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2233 (DECL_ALIGN): Add a cast for the function.
2234 * eval.c (Feval, Ffuncall): Use the proper type for each type
2235 function call.
2236
67aecef9
CY
22372010-07-06 Chong Yidong <cyd@stupidchicken.com>
2238
2239 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2240 fringe face id, so face-remapping-alist works (Bug#6091).
2241
b56ceb92
JB
22422010-07-06 Juanma Barranquero <lekktu@gmail.com>
2243
2244 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2245 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2246 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2247
7af07b96
AS
22482010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2249
2250 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2251 * lisp.h: Declare x_get_keysym_name.
2252 * keyboard.c (modify_event_symbol): Don't declare
2253 x_get_keysym_name here.
2254
69e24e34
DN
22552010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2256
2257 * ecrt0.c: Revert conversion to standard C.
2258
d3da34e0 22592010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
2260
2261 * vm-limit.c (memory_warnings):
2262 * keyboard.c (modify_event_symbol):
2263 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2264 (round2, emacs_rint):
2265 * process.c (send_process, old_sigpipe): Convert function
2266 definitions and declarations to standard C.
2267
22682010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
2269
2270 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2271 * xdisp.c: Convert function definitions to standard C.
2272
2273 * cm.c (cmputc): Arg C is now int, not char.
2274 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2275
00be444c
J
22762010-07-05 James Cloos <cloos@jhcloos.com>
2277
2278 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2279
2280 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2281 _NET_WM_ICON_NAME atoms.
2282
2283 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2284 and _NET_WM_ICON_NAME properties, too, matching what is
2285 done in the Gtk+ case.
2286
e4c8d29a
J
22872010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2288
ff919460
J
2289 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2290
e4c8d29a
J
2291 * xsmfns.c (SSDATA): New macro.
2292 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2293 passed to strlen/strcpy/strcat.
2294 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2295 7:th arg to XChangeProperty to (unsigned char *)
2296
2297 * xsettings.c (something_changedCB, parse_settings)
2298 (apply_xft_settings): Reformat prototype.
2299 (something_changedCB, init_gconf): Remove unused variable i.
2300 (read_settings): Remove unused variable long_len.
2301
2302 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2303 (xg_get_image_for_pixmap, create_dialog)
2304 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2305 (menuitem_highlight_callback, make_menu_item)
2306 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2307 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2308 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2309 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2310 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2311 (xg_tool_bar_item_expose_callback): Reformat prototype.
2312 (xg_update_menubar): GList *group => GSList *group.
2313 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2314 before use.
2315 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2316 to GTK_IMAGE (wimage).
2317
dd4c5104
DN
23182010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2319
898b4c5c
DN
2320 * atimer.c: Use "" instead of <> for local includes for
2321 consistency with the rest of the code.
2322
dd4c5104
DN
2323 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2324 * xrdb.c (get_system_name):
2325 * window.c (shrink_windows):
2326 * syntax.c (forw_comment):
2327 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2328 (ins_del_costs):
2329 * mem-limits.h (start_of_data):
2330 * lread.c (readevalloop):
2331 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2332 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2333 * frame.c (x_get_focus_frame):
2334 * floatfns.c (fmod_float):
2335 * fileio.c (choose_write_coding_system):
2336 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2337 (malloc_initialize_hook, sort_args, synchronize_locale):
2338 * doprnt.c (doprnt):
2339 * dired.c (compile_pattern):
2340 * data.c (fmod_float):
2341 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2342 (map_char_table_for_charset):
2343 * charset.c (define_charset_internal):
2344 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2345 to standard C.
2346
9a39b306 23472010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 2348 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
2349
2350 * lread.c (read1): Fix up last change to not mess up `c'.
2351
e6cb2cbb
JB
23522010-07-04 Juanma Barranquero <lekktu@gmail.com>
2353
2354 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2355
438105ed
JB
23562010-07-04 Juanma Barranquero <lekktu@gmail.com>
2357
2358 Fix prototypes.
2359
e5447b22 2360 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 2361 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
2362 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2363 arg, as required by internal_condition_case_1.
dcc7404b 2364 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
2365 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2366 (analyse_first): Fix "const const".
e5447b22 2367 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 2368 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 2369 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 2370
971de7fb
DN
23712010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2372
2373 * alloc.c: Convert function definitions to standard C.
2374 * atimer.c:
2375 * bidi.c:
2376 * bytecode.c:
2377 * callint.c:
2378 * callproc.c:
2379 * casefiddle.c:
2380 * casetab.c:
2381 * category.c:
2382 * ccl.c:
2383 * character.c:
2384 * charset.c:
2385 * chartab.c:
2386 * cmds.c:
2387 * coding.c:
2388 * composite.c:
2389 * data.c:
2390 * dbusbind.c:
2391 * dired.c:
2392 * dispnew.c:
2393 * doc.c:
2394 * doprnt.c:
2395 * ecrt0.c:
2396 * editfns.c:
2397 * fileio.c:
2398 * filelock.c:
2399 * filemode.c:
2400 * fns.c:
2401 * font.c:
2402 * fontset.c:
2403 * frame.c:
2404 * fringe.c:
2405 * ftfont.c:
2406 * ftxfont.c:
2407 * gtkutil.c:
2408 * indent.c:
2409 * insdel.c:
2410 * intervals.c:
2411 * keymap.c:
2412 * lread.c:
2413 * macros.c:
2414 * marker.c:
2415 * md5.c:
2416 * menu.c:
2417 * minibuf.c:
2418 * prefix-args.c:
2419 * print.c:
2420 * ralloc.c:
2421 * regex.c:
2422 * region-cache.c:
2423 * scroll.c:
2424 * search.c:
2425 * sound.c:
2426 * strftime.c:
2427 * syntax.c:
2428 * sysdep.c:
2429 * termcap.c:
2430 * terminal.c:
2431 * terminfo.c:
2432 * textprop.c:
2433 * tparam.c:
2434 * undo.c:
2435 * unexelf.c:
2436 * window.c:
2437 * xfaces.c:
2438 * xfns.c:
2439 * xfont.c:
2440 * xftfont.c:
2441 * xgselect.c:
2442 * xmenu.c:
2443 * xrdb.c:
2444 * xselect.c:
2445 * xsettings.c:
2446 * xsmfns.c:
2447 * xterm.c: Likewise.
2448
ae492bec
EZ
24492010-07-03 Eli Zaretskii <eliz@gnu.org>
2450
76ea4cc9
EZ
2451 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2452 frames other than the initial one. Fix reversal of colors when
2453 `reverse' is specified in the frame parameters. Call
2454 update_face_from_frame_parameter instead of
2455 internal-set-lisp-face-attribute. Initialize screen colors from
2456 initial_screen_colors[] when f->default_face_done_p is zero,
2457 instead of depending on being called with default-frame-alist as
2458 the alist argument.
2459
2460 * xfaces.c (update_face_from_frame_parameter): Move out of
2461 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2462 with HAVE_WINDOW_SYSTEM.
2463
1e6255ae
EZ
2464 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2465 to menu-bar-mode, if not set in the frame parameters or in
2466 default-frame-alist.
2467
ae492bec
EZ
2468 * w32console.c (sys_tputs): Adjust argument list to prototype in
2469 term.c.
2470
3a35a84c
JB
24712010-07-03 Juanma Barranquero <lekktu@gmail.com>
2472
2473 * lisp.h (memory_warnings): Fix prototype.
2474
2475 * cm.h (evalcost): Fix prototype.
2476
2477 * cm.c (evalcost): Fix arg type.
2478
c532d349
DN
24792010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2480
2481 * term.c (term_clear_mouse_face, Fidentity):
2482 * syssignal.h (signal_handler_t):
2483 * lisp.h (memory_warnings):
2484 * coding.h (preferred_coding_system):
2485 * cm.h (evalcost):
2486 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2487
c0b36d46
EZ
24882010-07-02 Eli Zaretskii <eliz@gnu.org>
2489
2490 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2491 from prototypes.
2492
2493 * msdos.h (load_pixmap): Don't define away.
2494
383e0970
J
24952010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2496
f57e2426
J
2497 * lisp.h:
2498 * atimer.h: Remove define for P_.
2499
2500 * alloc.c: Remove __P and P_ from .c and .m files.
2501 * atimer.c:
2502 * buffer.c:
2503 * callint.c:
2504 * category.c:
2505 * charset.c:
2506 * chartab.c:
2507 * cm.c:
2508 * coding.c:
2509 * composite.c:
2510 * data.c:
2511 * dired.c:
2512 * dispnew.c:
2513 * doc.c:
2514 * editfns.c:
2515 * emacs.c:
2516 * eval.c:
2517 * fileio.c:
2518 * filelock.c:
2519 * fns.c:
2520 * font.c:
2521 * fontset.c:
2522 * frame.c:
2523 * ftfont.c:
2524 * ftxfont.c:
2525 * gmalloc.c:
2526 * gtkutil.c:
2527 * image.c:
2528 * indent.c:
2529 * intervals.c:
2530 * keyboard.c:
2531 * keymap.c:
2532 * lread.c:
2533 * marker.c:
2534 * menu.c:
2535 * minibuf.c:
2536 * print.c:
2537 * process.c:
2538 * scroll.c:
2539 * search.c:
2540 * sound.c:
2541 * strftime.c:
2542 * syntax.c:
2543 * sysdep.c:
2544 * term.c:
2545 * terminal.c:
2546 * textprop.c:
2547 * unexalpha.c:
2548 * w32console.c:
2549 * w32fns.c:
2550 * w32font.c:
2551 * w32menu.c:
2552 * w32term.c:
2553 * w32uniscribe.c:
2554 * window.c:
2555 * xdisp.c:
2556 * xfaces.c:
2557 * xfns.c:
2558 * xfont.c:
2559 * xftfont.c:
2560 * xmenu.c:
2561 * xselect.c:
2562 * xterm.c: Likewise.
2563
383e0970 2564 Remove P_ and __P macros.
f57e2426
J
2565 * atimer.h: Remove P_ and __P macros.
2566 * buffer.h:
383e0970
J
2567 * category.h:
2568 * ccl.h:
2569 * character.h:
2570 * charset.h:
2571 * cm.h:
2572 * coding.h:
2573 * composite.h:
2574 * dispextern.h:
2575 * disptab.h:
9e892c8d 2576 * dosfns.h:
383e0970
J
2577 * font.h:
2578 * fontset.h:
2579 * frame.h:
2580 * gtkutil.h:
2581 * indent.h:
2582 * intervals.h:
2583 * keyboard.h:
2584 * keymap.h:
2585 * lisp.h:
2586 * macros.h:
2587 * md5.h:
2588 * menu.h:
2589 * msdos.h:
2590 * nsterm.h:
2591 * puresize.h:
2592 * region-cache.h:
2593 * syntax.h:
2594 * syssignal.h:
2595 * systime.h:
2596 * termhooks.h:
9e892c8d 2597 * w32font.h:
383e0970
J
2598 * w32term.h:
2599 * widget.h:
2600 * window.h:
2601 * xgselect.h:
2602 * xsettings.h:
2603 * xterm.h: Likewise.
2604
98601119
DN
26052010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2606
d9170db5
DN
2607 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2608
98601119
DN
2609 Cleanup old code.
2610 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2611 * syssignal.h: Remove code for Lynx, not supported anymore.
2612 * vm-limit.c: Remove unused code the depends on emacs not being
2613 defined and NO_LIM_DATA being defined.
2614 * mem-limits.h: Remove dead code.
2615
1f984e12
J
26162010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2617
c49d071a
J
2618 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2619
9d5405ec
J
2620 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2621 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2622
7a18115b
J
2623 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2624 parameters, they are already absolute.
2625
a628ad9d
JB
2626 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2627 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 2628
a628ad9d 2629 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 2630
a628ad9d
JB
2631 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2632 Update FRAME_TOOLBAR_HEIGHT.
581a8100 2633
a628ad9d
JB
2634 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2635 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 2636
c1ef4455
CY
26372010-06-30 Chong Yidong <cyd@stupidchicken.com>
2638
2639 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2640 check default-frame-alist.
2641
ce8f5a9a
AS
26422010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2643
2644 * process.c (create_process): Avoid using invalid file descriptors.
2645
2646 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2647
bf935339
J
26482010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2649
2650 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2651 Improve documentation. Return font regardless of use_system_font.
2652 (syms_of_xsettings): Improve documentation for font-use-system-font.
2653
7c33a057
CY
26542010-07-10 Chong Yidong <cyd@stupidchicken.com>
2655
2ec1b5ee
CY
2656 * xfaces.c (realize_face): Garbage the frame if a face is removed
2657 (Bug#6593).
2658
26592010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2660
2661 * keyboard.c: Remove duplicate <setjmp.h>.
2662 (read_key_sequence): Remove volatile qualifiers.
2663
26642010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2665
2666 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2667 (struct glyph_row): New members left_fringe_offset and
2668 right_fringe_offset.
2669
2670 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2671 specially.
2672 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2673 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2674
2675 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 2676 Take account of bitmap offset.
2ec1b5ee
CY
2677 (draw_window_fringes): Take account of window vscroll.
2678 (update_window_fringes): Likewise. Extend top-aligned top indicator
2679 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2680 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2681 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2682
26832010-07-04 Juanma Barranquero <lekktu@gmail.com>
2684
2685 * w32fns.c (Qtooltip): Declare.
2686 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2687
26882010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2689
2690 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2691 grab on just Press (Bug#6499).
2692
26932010-07-02 Chong Yidong <cyd@stupidchicken.com>
2694
2695 * frame.c (Qtooltip): New var.
2696 (delete_frame): Use it. Fix faulty if statement. Don't update
2697 mode line for tooltip frames. Suggested by Martin Rudalics.
2698
2699 * xfns.c (x_create_tip_frame):
2700 * w32fns.c (x_create_tip_frame): Use it.
2701
27022010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
2703
2704 * xftfont.c (xftfont_open): Check font width one by one also when
2705 spacing is dual.
2706
2707 * ftfont.c (ftfont_open): Ditto.
2708
6259c2ec
GM
27092010-06-30 Glenn Morris <rgm@gnu.org>
2710
a46007e9
GM
2711 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2712
6259c2ec
GM
2713 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2714
2715 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2716 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2717 * s/darwin.h (SYSTEM_MALLOC):
2718 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2719
5d1d3d04
J
27202010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2721
2722 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2723 (ns_get_screen): Don't assign integer to f.
2724 (Fx_display_color_cells): Declarations before statements.
2725
e547b051
J
27262010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2727
5fc8e5bc
J
2728 * xfns.c (x_default_font_parameter): Remove got_from_system
2729 (Bug#6526).
2730
e547b051
J
2731 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2732 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2733 defines based on what configure finds.
2734
2735 * xterm.c (XTflash): Use gtk_widget_get_window.
2736 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2737 gtk_adjustment_get_page_size.
2738 (handle_one_xevent): Use gtk_widget_get_mapped.
2739 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2740 messages.
2741
2742 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2743
2744 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2745 HAVE_GTK_FILE_SELECTION_NEW.
2746
2747 * gtkutil.c (xg_display_open, xg_display_close): Remove
2748 HAVE_GTK_MULTIDISPLAY, it is always defined.
2749 (xg_display_open): Return type is void.
2750 (gtk_widget_set_has_window)
2751 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2752 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2753 (gtk_adjustment_set_page_increment)
2754 (gtk_adjustment_get_step_increment): #define these if not found
2755 by configure.
2756 (remove_submenu): New define based on Gtk+ version.
2757 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2758 gtk_widget_get_window.
2759 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2760 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2761 (create_dialog): Use gtk_dialog_get_action_area and
2762 gtk_dialog_get_content_area.
2763 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2764 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2765 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2766 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2767 g_object_ref and g_object_unref.
2768 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2769 gtk_widget_get_sensitive.
2770 (xg_update_submenu): Use remove_submenu.
2771 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2772 properties instead to get old x and y position.
2773 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2774 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 2775 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
2776 (xg_get_tool_bar_widgets): New function.
2777 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2778 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2779 (toolbar_set_orientation): New #define based on if configure
2780 finds gtk_orientable_set_orientation.
2781 (xg_create_tool_bar): Call toolbar_set_orientation.
2782 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2783 instead of gtk_box_pack_start_defaults.
2784
b9229673
CY
27852010-06-28 Chong Yidong <cyd@stupidchicken.com>
2786
2787 * cmds.c (Fdelete_backward_char): Move into Lisp.
2788
bbc803b0
DN
27892010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2790
2791 * s/freebsd.h (BSD4_2): Remove redundant definition.
2792 bsd-common.h defines it already.
2793
6431f2e6
CY
27942010-06-27 Chong Yidong <cyd@stupidchicken.com>
2795
2796 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2797 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2798 tool-bar-mode, which are now set using these X resources at
2799 startup, to determine the defaults (Bug#2249).
2800
2801 * w32fns.c (Fx_create_frame):
2802 * nsfns.m (Fx_create_frame): Likewise.
2803
2804 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2805
8c079ebb
JB
28062010-06-24 Juanma Barranquero <lekktu@gmail.com>
2807
2808 * gtkutil.c (xg_update_scrollbar_pos):
2809 Avoid C99 mid-block variable declaration.
2810
e9b7ab96
JD
28112010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2812
bc869eca
JD
2813 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2814
2b7e356a 2815 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2816
2817 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2818 if height is less than scroll bar min size.
2819 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2820
e9b7ab96
JD
2821 * xfns.c (x_default_font_parameter): Try to open font from system
2822 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2823
a628ad9d 28242010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2825
2826 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2827
70c4cfbb
EZ
28282010-06-20 Eli Zaretskii <eliz@gnu.org>
2829
2830 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2831 most-positive-fixnum, be extra accurate when scrolling window
2832 start, to avoid missing the cursor line.
2833
ad5a12b5
EZ
28342010-06-19 Eli Zaretskii <eliz@gnu.org>
2835
2836 * xdisp.c (try_scrolling): Compute the limit for searching point
2837 in forward scroll from scroll_max, instead of an arbitrary limit
2838 of 10 screen lines. See
2839 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2840 and
2841 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2842 for details.
2843
2a64315a 28442010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2845
2846 * editfns.c (Fbyte_to_string): Pacify compiler.
2847
288cf4e9
SM
28482010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2849
2850 * lread.c (read1): Phase out old-style backquotes a bit more.
2851
6e6e5760
EZ
28522010-06-12 Eli Zaretskii <eliz@gnu.org>
2853
cbc4fd20
EZ
2854 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2855 bidimirror.h.
2856
2857 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2858
317fbf33
EZ
2859 * bidi.c (bidi_initialize): Remove explicit initialization of
2860 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 2861 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 2862 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
2863
2864 * biditype.h: New file.
2865
cbc4fd20
EZ
2866 * bidimirror.h: New file.
2867
6e6e5760
EZ
2868 * window.c (syms_of_window): Doc fix (bug#6409).
2869
4176cba2
RF
28702010-06-12 Romain Francoise <romain@orebokech.com>
2871
2872 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2873 ediff-hook.
2874
cb4bfcb5
GM
28752010-06-10 Glenn Morris <rgm@gnu.org>
2876
64c60c2f
GM
2877 * editfns.c (Fbyte_to_string): Pacify compiler.
2878
cb4bfcb5
GM
2879 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2880
2ec1b5ee
CY
28812010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2882
2883 * alloc.c (Fmake_byte_code): Don't access undefined argument
2884 (Bug#6517).
2885
28862010-06-25 Chong Yidong <cyd@stupidchicken.com>
2887
2888 * xdisp.c (next_element_from_image): Ensure that after-strings are
2889 read the next time we hit handle_stop (Bug#1336).
2890
28912010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2892
2893 * lread.c (read1): Signal error if #s is not followed by paren.
2894
28952010-06-19 Chong Yidong <cyd@stupidchicken.com>
2896
2897 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2898
2899 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2900
29012010-06-15 Glenn Morris <rgm@gnu.org>
2902
2903 * editfns.c (Fbyte_to_string): Pacify compiler.
2904
e454a4a3
SM
29052010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2906
2907 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2908 Check `object's type before accessing its guts.
2909
c1b1acc2
DN
29102010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2911
2912 * s/usg5-4.h: Fix previous change.
2913 Suggested by Lawrence Mitchell <wence@gmx.li>
2914
657d4c0b
AS
29152010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2916
2917 * minibuf.c (Fall_completions): Add more checks.
2918
9b27fd9f
JB
29192010-06-08 Juanma Barranquero <lekktu@gmail.com>
2920
2921 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2922
a99ebb40
DN
29232010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2924
d7c5d87d
DN
2925 * lread.c (X_OK): Remove, unused.
2926
0263a941
DN
2927 * dispnew.c: Remove obsolete comment.
2928
a99ebb40
DN
2929 Remove INCLUDED_FCNTL.
2930 * xterm.c (INCLUDED_FCNTL):
2931 * callproc.c (INCLUDED_FCNTL):
2932 * alloc.c (INCLUDED_FCNTL):
2933 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2934 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2935
13b5221f
MR
29362010-06-07 Martin Rudalics <rudalics@gmx.at>
2937
2938 * window.c (Fselect_window): Move `record_buffer' up to the
2939 beginning of this function, so the buffer gets recorded
2940 even if the selected window does not change.
2941 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2942
5220357f
JB
29432010-06-07 Juanma Barranquero <lekktu@gmail.com>
2944
2945 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2946 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2947
3085237c
DN
29482010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2949
2950 Remove BSTRING related code, all platforms define it.
2951 * s/usg5-4.h (BSTRING): Remove definition.
2952 * s/template.h (BSTRING):
2953 * s/msdos.h (BSTRING):
2954 * s/ms-w32.h (BSTRING):
2955 * s/hpux10-20.h (BSTRING):
2956 * s/gnu-linux.h (BSTRING):
2957 * s/darwin.h (BSTRING):
2958 * s/cygwin.h (BSTRING):
2959 * s/bsd-common.h (BSTRING):
2960 * s/aix4-2.h (BSTRING): Likewise.
2961 * sysdep.c: Remove code depending on BSTRING not being defined.
2962
409f2919
JB
29632010-06-05 Juanma Barranquero <lekktu@gmail.com>
2964
2965 Remove obsolete macro BASE_LEADING_CODE_P.
2966 * character.h (BASE_LEADING_CODE_P): Remove.
2967 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2968 * buffer.c (Fset_buffer_multibyte):
2969 * indent.c (scan_for_column, compute_motion):
2970 * insdel.c (count_combining_before, count_combining_after):
2971 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2972
087fc47a
JB
29732010-06-04 Juanma Barranquero <lekktu@gmail.com>
2974
2975 Turn `directory-sep-char' into a noop.
2976
2977 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2978 (DIRECTORY_SEP): Define unconditionally.
2979
2980 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2981
2982 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2983 call dostounix_filename directly.
2984
2985 * fileio.c (CORRECT_DIR_SEPS): Remove.
2986 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2987 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2988 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2989 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2990
2991 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2992 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2993
0eb7675e
AS
29942010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2995
a628ad9d
JB
2996 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2997 (Bug#6346)
0eb7675e 2998
78edd3b7
JB
29992010-06-03 Juanma Barranquero <lekktu@gmail.com>
3000
3001 * ccl.c (Fccl_program_p): Fix typo in docstring.
3002
eb697db5
DN
30032010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3004
3005 Move UNEXEC definition to autoconf.
3006 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3007 * s/sol2-10.h (UNEXEC):
3008 * s/irix6-5.h (UNEXEC):
3009 * s/hpux10-20.h (UNEXEC):
3010 * s/gnu-linux.h (UNEXEC):
3011 * s/darwin.h (UNEXEC):
3012 * s/cygwin.h (UNEXEC):
3013 * s/bsd-common.h (UNEXEC):
3014 * s/aix4-2.h (UNEXEC):
3015 * m/alpha.h (UNEXEC): Likewise.
3016 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3017
aa3830c4
JB
30182010-06-03 Juanma Barranquero <lekktu@gmail.com>
3019
3020 Remove obsolete pre-unicode2 macros.
3021 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3022 * composite.c (composition_reseat_it):
3023 * data.c (Faset):
3024 * fns.c (Ffillarray):
3025 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3026 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3027
d234d13e
JL
30282010-06-03 Juri Linkov <juri@jurta.org>
3029
3030 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3031 (Fswitch_to_buffer): Remove unused variable `err'.
3032
0d4bcf4d
GM
30332010-06-03 Glenn Morris <rgm@gnu.org>
3034
e23dc1e2
GM
3035 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3036
05b09564
GM
3037 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3038 now that AH_BOTTOM does it.
3039
824e2978
GM
3040 * m/hp800.h (HAVE_ALLOCA):
3041 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3042
0d4bcf4d
GM
3043 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3044 Remove NOT_C_CODE tests, it is always true now.
3045
c55d2abf
DN
30462010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3047
08a494a3
DN
3048 Fix config.h includes.
3049 * xsettings.c:
3050 * xgselect.c:
3051 * nsterm.m:
3052 * nsselect.m:
3053 * nsimage.m:
3054 * nsfont.m:
3055 * nsfns.m:
3056 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3057 other files do.
3058
75934b1d
DN
3059 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3060
9f32a766
DN
3061 * s/sol2-6.h: Remove obsolete comments.
3062
c55d2abf
DN
3063 Remove unnecessary alloca.h includes.
3064 * keymap.c: Do not include alloca.h, config.h does that.
3065 * sysdep.c: Likewise. Do not define fwrite, not used.
3066
06ac62b4
SM
30672010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3068
3069 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3070 the HAVE_TERMIO where it belongs (bug#6149).
3071
1ab8293c
SM
30722010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3073
3074 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3075 of bug#6305).
3076
6dcfd253
EZ
30772010-05-30 Eli Zaretskii <eliz@gnu.org>
3078
3079 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3080 state is always cached (bug#6306).
3081
6d26bbb2
EZ
30822010-05-29 Eli Zaretskii <eliz@gnu.org>
3083
06fa4a23
EZ
3084 Fix cursor motion in bidi-reordered continued lines.
3085 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3086 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
3087 over continuation lines in bidi-reordered buffers. Return
3088 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3089 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3090
f5783df3
MA
30912010-05-28 Michael Albinus <michael.albinus@gmx.de>
3092
3093 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3094
7d56b2dd
KH
30952010-05-28 Kenichi Handa <handa@m17n.org>
3096
3097 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3098 Don't sheck SPEC if it is nil.
3099 (font_list_entities): Call font_delete_unmatched if
b925d231 3100 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 3101
e58d4ff7
GM
31022010-05-28 Glenn Morris <rgm@gnu.org>
3103
3104 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3105
f1a5d776
CY
31062010-05-27 Chong Yidong <cyd@stupidchicken.com>
3107
3108 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3109 whether to trash.
3110 (internal_delete_file, Frename_file): Callers changed.
3111 (delete_by_moving_to_trash): Doc fix.
3112 (Fdelete_directory_internal): Don't move to trash.
3113
3114 * callproc.c (delete_temp_file):
3115 * buffer.c (Fkill_buffer): Callers changed.
3116
3117 * lisp.h: Update prototype.
3118
f44a59e6
CY
31192010-05-27 Chong Yidong <cyd@stupidchicken.com>
3120
3121 * xdisp.c (redisplay_window): After redisplay, check if point is
3122 still valid before setting it (Bug#6177).
3123
81ac4f35
GM
31242010-05-27 Glenn Morris <rgm@gnu.org>
3125
3126 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3127 Convert comments to Makefile format.
3128
3129 * Makefile.in (bootstrap-clean): No more Makefile.c.
3130
ccd89fb3
GM
31312010-05-26 Glenn Morris <rgm@gnu.org>
3132
90278cb6
GM
3133 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3134 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3135
ccd89fb3
GM
3136 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3137 Remove.
3138 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3139
b7050583
KH
31402010-05-26 Kenichi Handa <handa@m17n.org>
3141
3142 * composite.c (composition_compute_stop_pos): Fix condition for
3143 backward scanning.
3144
e5458003
GM
31452010-05-25 Glenn Morris <rgm@gnu.org>
3146
c345fe90
GM
3147 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3148 Move before TEMACS_LDFLAGS.
3149 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3150 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3151
2e0689ab
GM
3152 * Makefile.in (NOT_C_CODE): No longer define.
3153 (config.h): No longer include.
3154
8009a5e8
GM
3155 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3156 variables it may reference.
3157
e5458003
GM
3158 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3159 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3160
10f72a37
KH
31612010-05-25 Kenichi Handa <handa@m17n.org>
3162
3163 * dispextern.h (struct composition_it): New members rule_idx and
3164 charpos.
3165
3166 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3167 that the character positions of IT point the last character of the
3168 current grapheme cluster.
3169 (next_element_from_composition): Don't change character positions
3170 of IT.
3171 (append_composite_glyph): Set glyph->charpos to
3172 it->cmp_it.charpos.
3173
3174 * composite.c (autocmp_chars): Change the first argument to RULE,
3175 and try composition with RULE only.
3176 (composition_compute_stop_pos): Record the index number of the
3177 composition rule in CMP_IT->rule_idx.
3178 (composition_reseat_it): Call autocmp_chars repeatedly until the
3179 correct rule of the composition is found.
3180 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3181 is at the last character of the current grapheme cluster when
3182 CMP_IT->reversed_p is nonzero.
3183
171eda53 31842010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 3185
171eda53
SM
3186 * editfns.c (Fbyte_to_string): New function.
3187
66a9f7f4
SM
31882010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3189
3190 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3191 Suggested by Masatake YAMATO <yamato@redhat.com>.
3192
d8c315d1
EZ
31932010-05-23 Eli Zaretskii <eliz@gnu.org>
3194
171eda53 3195 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 3196
f5b416d2 31972010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3198
3199 * s/netbsd.h: If terminfo is found, use it in preference to
3200 termcap. (Bug#6190) [Backport from trunk]
3201
0416466c
EZ
32022010-05-19 Eli Zaretskii <eliz@gnu.org>
3203
11117830 3204 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
3205
3206 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3207 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3208 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3209 and maxpos members instead of start.pos and end.pos, respectively.
3210
3211 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3212 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3213 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
3214 (try_window_reusing_current_matrix, try_window_id):
3215 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
3216 (init_from_display_pos, init_iterator): Use EMACS_INT for
3217 character and byte positions.
66a9f7f4 3218 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
3219 arguments for minimum and maximum buffer positions seen by
3220 display_line for this row. Don't use iterator to find the
3221 position following the maximum one; instead, increment the
11117830
EZ
3222 position found by display_line directly. Fix logic; eol_pos
3223 should be tested before the rest. Handle the case of characters
3224 delivered from display vector (bug#6036). Fix tests related to
3225 it->method. Handle the truncated_on_right_p rows.
3226 (RECORD_MAX_MIN_POS): New macro.
3227 (display_line): Use it to record the minimum and maximum buffer
3228 positions for glyphs in the row being assembled. Record the
3229 position of the newline that terminates the line. If word wrap is
3230 in effect, restore minimum and maximum positions seen up to the
3231 wrap point, when iterator returns to it.
3232 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3233 row and cursor not already at point. Restore original pre-bidi
3234 code for unidirectional buffers.
d36fe237
EZ
3235
3236 * dispnew.c (increment_row_positions, check_matrix_invariants):
3237 Increment and check row->start.pos and row->end.pos, in addition
3238 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3239
11117830
EZ
3240 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3241 Display truncated_on_left_p and truncated_on_right_p flags.
3242 Formatting fixes.
3243 (pmtxrows): Display the ordinal number of each row. Don't display
3244 rows beyond the last one.
3245
3246 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3247 it is not copied by bidi_copy_it.
3248
6e83d800
EZ
32492010-05-22 Eli Zaretskii <eliz@gnu.org>
3250
3251 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3252 (Bug#6237)
3253
110683ad
CY
32542010-05-22 Chong Yidong <cyd@stupidchicken.com>
3255
3256 * image.c (Fimage_flush): Rename from image-refresh.
3257
98fe5161
CY
32582010-05-21 Chong Yidong <cyd@stupidchicken.com>
3259
3260 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3261 just one window.
3262
3263 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3264 (clear_image_cache): If the number of cached images is unusually
3265 large, decrease the cache eviction delay (Bug#6230).
3266
e8752c66
GM
32672010-05-21 Glenn Morris <rgm@gnu.org>
3268
66dbf213
GM
3269 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3270 Move these rules to ns.mk.
3271 * ns.mk: New file.
3272
04384b2d
GM
3273 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3274
e8752c66
GM
3275 * Makefile.in (CANNOT_DUMP): New, set by configure.
3276 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3277
2e2bbddb
JL
32782010-05-20 Juri Linkov <juri@jurta.org>
3279
3280 * fileio.c (Fdelete_file): Change interative spec to use
3281 `read-file-name' like in `find-file-read-args' where the default
3282 value is `default-directory' instead of `buffer-file-name'.
3283 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3284
31c4aaf6
KR
32852010-05-20 Kevin Ryde <user42@zip.com.au>
3286
3287 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3288 (Voverriding_terminal_local_map, Vsystem_key_alist)
3289 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3290
9d5cf9b6
GM
32912010-05-20 Glenn Morris <rgm@gnu.org>
3292
3293 * Makefile.in (DEPDIR): New constant.
3294 (DEPFLAGS): Set with configure, not cpp.
3295 (MKDEPDIR): New, set by configure.
3296 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3297 (clean): Use $DEPDIR.
3298 (deps_frag): Include from configure.
3299 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3300 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3301
ead6f8f5
EZ
3302 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3303 reallocation of the cache. (Bug#6210)
3304
7f34aec3
GM
33052010-05-19 Glenn Morris <rgm@gnu.org>
3306
d494e8f2
GM
3307 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3308
c1d0dcfd
GM
3309 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3310 (GNULIB_VAR): Remove.
3311 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3312
3313 * m/ibms390x.h (LINKER):
3314 * m/macppc.h (LINKER) [GNU_LINUX]:
3315 * s/aix4-2.h (ORDINARY_LINK):
3316 * s/cygwin.h (LINKER):
3317 * s/darwin.h (ORDINARY_LINK):
3318 * s/gnu.h (ORDINARY_LINK):
3319 * s/netbsd.h (LINKER):
3320 * s/usg5-4.h (ORDINARY_LINK):
3321 Move to configure.
3322
7f34aec3
GM
3323 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3324
754790b6
CY
33252010-05-18 Chong Yidong <cyd@stupidchicken.com>
3326
3327 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3328 prevent stack overflow if number of arguments is too large
3329 (Bug#6214).
3330
161e44d1
JB
33312010-05-18 Juanma Barranquero <lekktu@gmail.com>
3332
3333 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3334
be4ff9da
GM
33352010-05-18 Glenn Morris <rgm@gnu.org>
3336
9539dc5d
GM
3337 * s/gnu-linux.h: Combine two conditionals.
3338
3339 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
3340 $(POST_ALLOC_OBJ).
3341
40dc6bf4
GM
3342 * Makefile.in (RALLOC_OBJ): New, set by configure.
3343 (rallocobj): Replace with the previous variable.
3344 (otherobj): Use $RALLOC_OBJ.
3345
3346 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3347 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3348
be4ff9da
GM
3349 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3350 (gmallocobj, vmlimitobj): Replace with previous two variables.
3351 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3352
16455a85
GM
33532010-05-17 Glenn Morris <rgm@gnu.org>
3354
3355 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3356 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3357
5fdb7468
GM
33582010-05-16 Glenn Morris <rgm@gnu.org>
3359
7ca1f3f9
GM
3360 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3361
7541dad5
GM
3362 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3363
da53fab9
GM
3364 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3365 trailing "/".
3366
b02a6645
GM
3367 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3368 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3369
8877ca0f
GM
3370 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3371 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3372 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3373 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3374 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3375
5fdb7468
GM
3376 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3377 Remove ${STARTFLAGS}, nothing ever sets it.
3378
95adb4b1
DN
33792010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3380
3381 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3382
676b6304
GM
33832010-05-16 Glenn Morris <rgm@gnu.org>
3384
9beab9ce
GM
3385 * Makefile.in (LIBX_BASE): Always define.
3386
8a95f0e7
GM
3387 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3388
676b6304
GM
3389 * Makefile.in (LIBXT): Always define.
3390
6e546d18
GM
33912010-05-15 Glenn Morris <rgm@gnu.org>
3392
4235ca47 3393 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 3394
6e546d18
GM
3395 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3396 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3397
8c5ff6dd
KR
33982010-05-15 Ken Raeburn <raeburn@raeburn.org>
3399
560bb7ae 3400 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
3401 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3402
8b4eb796
KR
3403 * emacs.c (main): Initialize initial-environment and
3404 process-environment before generating from env, not after.
3405
8c5ff6dd
KR
3406 Handle --version reasonably in CANNOT_DUMP configuration.
3407 * emacs.c (emacs_version, emacs_copyright): New string variables.
3408 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3409 (syms_of_emacs): Defvar them, and initialize them from the C
3410 string variables.
3411 (main): If initialization hasn't been done, print initial version
3412 info from the C strings, instead of starting an interactive session.
3413
dbd3f723
EZ
34142010-05-15 Eli Zaretskii <eliz@gnu.org>
3415
d20e1419
EZ
3416 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3417 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
3418 (bidi_paragraph_init): Remove redundant assertion that we are at
3419 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
3420
3421 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3422 (syms_of_xdisp): Defsubr it.
3423
d36fe237
EZ
3424 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3425
dbd3f723
EZ
3426 * Makefile.in: Fix MSDOS-related comments.
3427
02be533b
GM
34282010-05-15 Glenn Morris <rgm@gnu.org>
3429
1a82cca9
GM
3430 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3431 (really-lwlib, really-oldXMenu): Always define.
3432 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3433
3df7b338
GM
3434 * Makefile.in: Simplify cpp conditional.
3435
2b5f541b
GM
3436 * Makefile.in (${ns_appdir}): Simplify using umask.
3437
02be533b
GM
3438 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3439
4e2db1fe
SM
34402010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3441
3442 * eval.c (specbind): Remove left-over duplicate test.
3443 Disallow let-binding frame-local vars. Add comment.
3444
4b292a22
EZ
34452010-05-14 Eli Zaretskii <eliz@gnu.org>
3446
2fe72643 3447 Make the cache of bidi iterator states dynamically allocated.
1edbd309 3448 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
3449 (bidi_init_it): Call it.
3450 (bidi_cache_iterator_state): Enlarge the cache if needed.
3451
4e2db1fe 3452 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
3453 bidi_get_next_char_visually. All callers changed.
3454
82ebc97b
KH
34552010-05-14 Kenichi Handa <handa@m17n.org>
3456
3457 * dispextern.h (struct composition_it): New member reversed_p.
3458
3459 * composite.c (composition_compute_stop_pos): Search backward if
3460 ENDPOS < CHARPOS.
3461 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3462 Set CMP_IT->reversed_p.
b4b6e17e 3463 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 3464
4e2db1fe
SM
3465 * xdisp.c (set_iterator_to_next):
3466 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
3467 scanning backward. Call composition_compute_stop_pos if scan
3468 direction is changed.
3469 (next_element_from_buffer): Call composition_compute_stop_pos with
3470 negative ENDPOS if we are scanning backward.
3471 (next_element_from_composition): Pay attention to
3472 IT->cmp_it.reversed_p.
3473
0e5d7800
KH
34742010-05-14 Kenichi Handa <handa@m17n.org>
3475
560bb7ae 3476 * font.c (font_range): Return the range for the font found at first.
0e5d7800 3477
cb027b32
GM
34782010-05-14 Glenn Morris <rgm@gnu.org>
3479
177b0288
GM
3480 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3481
fbc00890
GM
3482 * Makefile.in (mktime, X11, register): Move undefs to configure.
3483
f14d1dfd
GM
3484 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3485 (MSDOS_X_OBJ): New variable.
3486 (MSDOS_SUPPORT_REAL): New constant.
3487 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3488 (obj): Use MSDOS_X_OBJ.
3489 (lisp): Use MSDOS_SUPPORT as a variable.
3490
11842bd8
GM
3491 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3492 (GPM_MOUSE_SUPPORT): Now it's a constant.
3493 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3494 not cpp.
3495
489d31a4 3496 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 3497 (ns_appresdir): Remove, unused.
e20f1f07 3498
489d31a4
GM
3499 * Makefile.in (SHELL): Move outside cpp section.
3500
cb027b32
GM
3501 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3502
5a903aa9
GM
35032010-05-13 Glenn Morris <rgm@gnu.org>
3504
3369c79f
GM
3505 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3506 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3507
d5e982a6
GM
3508 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3509 HAVE_WINDOW_SYSTEM must be too.
3510
6192e163
GM
3511 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3512 (lisp): Remove WINNT_SUPPORT.
3513
472c5d6b
GM
3514 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3515 Let configure set these variables (to empty) in this case as well.
3516
0116466b
GM
3517 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3518 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3519
5a903aa9
GM
3520 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3521 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3522 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3523 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3524 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 3525 the values output by configure.
5a903aa9
GM
3526 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3527
1a0d7c06
GM
35282010-05-12 Glenn Morris <rgm@gnu.org>
3529
b5457f14
GM
3530 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3531 (LINKER_WAS_SPECIFIED): Remove.
3532
1a0d7c06
GM
3533 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3534 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3535 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3536 * s/cygwin.h (LIB_GCC):
3537 * s/freebsd.h (LIB_GCC):
3538 * s/gnu-linux.h (LIB_GCC):
3539 * s/msdos.h (LIB_GCC):
3540 * s/netbsd.h (LIB_GCC):
3541 Move to configure.
3542
3ffd4615 35432010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
3544
3545 * ftfont.c: Fix incorrect parentheses of #if condition for
3546 definining M17N_FLT_USE_NEW_FEATURE.
3547
acddf8ae
GM
35482010-05-11 Glenn Morris <rgm@gnu.org>
3549
3550 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3551 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3552
ae5e04fa
EZ
35532010-05-10 Eli Zaretskii <eliz@gnu.org>
3554
3555 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3556 unibyte buffers. See
3557 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3558
7490175b
GM
35592010-05-10 Glenn Morris <rgm@gnu.org>
3560
97efb629
GM
3561 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3562 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3563 (LIBES): Use LIBS_SYSTEM as a variable.
3564 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3565 * s/aix4-2.h (LIBS_SYSTEM):
3566 * s/freebsd.h (LIBS_SYSTEM):
3567 * s/hpux10-20.h (LIBS_SYSTEM):
3568 * s/sol2-6.h (LIBS_SYSTEM):
3569 * s/unixware.h (LIBS_SYSTEM):
3570 Move to configure.
3571
7490175b
GM
3572 * s/aix4-2.h (MAIL_USE_LOCKF):
3573 * s/bsd-common.h (MAIL_USE_FLOCK):
3574 * s/darwin.h (MAIL_USE_FLOCK):
3575 * s/gnu-linux.h (MAIL_USE_FLOCK):
3576 * s/irix6-5.h (MAIL_USE_FLOCK):
3577 * s/template.h (MAIL_USE_FLOCK):
3578 Move to configure.
3579
0235128c 35802010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
3581
3582 * Version 23.2 released.
3583
0235128c 35842010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
3585
3586 * composite.c (autocmp_chars): Save point as marker before calling
3587 auto-composition-function (Bug#5984).
3588
3589 * lisp.h (restore_point_unwind): Add prototype.
3590
3591 * fileio.c (restore_point_unwind): Remove static attribute.
3592
0235128c 35932010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
3594
3595 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3596 new feature of libotf and m17n-flt.
0235128c
SM
3597 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3598 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
3599 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3600 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3601 that OUT is NULL. Use OTF_drive_gsub_with_log and
3602 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3603 OTF_drive_gpos.
3604 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
3605 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3606 Setup mflt_enable_new_feature and mflt_try_otf.
3607
4721152c
J
36082010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3609
3610 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3611
3612 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3613 box and toolbar (Bug #6139).
3614 (xg_create_tool_bar): Remove comment (Bug #6139).
3615 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3616 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3617
ee0a16cf
JB
36182010-05-08 Juanma Barranquero <lekktu@gmail.com>
3619
3620 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3621 Update dependencies.
3622
96d79611
EZ
36232010-05-08 Eli Zaretskii <eliz@gnu.org>
3624
3625 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3626 R2L lines.
3627
40c17879
GM
36282010-05-08 Glenn Morris <rgm@gnu.org>
3629
7b42b29f
GM
3630 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3631
40c17879
GM
3632 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3633 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3634 (termcapobj): Replace with TERMCAP_OBJ.
3635 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3636 (LIBES): Use LIBS_TERMCAP as a variable.
3637
3638 * s/freebsd.h (osreldate.h): No longer include, since this file
3639 does not use __FreeBSD_version any more.
3640
3641 * s/aix4-2.h (TERMINFO):
3642 * s/cygwin.h (TERMINFO):
3643 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3644 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3645 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3646 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3647 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3648 * s/irix6-5.h (TERMINFO):
3649 * s/netbsd.h (LIBS_TERMCAP):
3650 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3651 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3652 * s/usg5-4.h (TERMINFO):
3653 Move to configure.
3654
94b612ad
SM
36552010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3656
3657 * eval.c (unbind_to): Don't unbind a local binding into the global
3658 binding when the local binding disappeared. Inversely, don't unbind
3659 a global binding into a newly created local binding.
3660 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3661 can specify the frame to use, when applicable. Adjust callers.
3662
15e12598 36632010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 3664 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
3665
3666 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3667
f724825e
EZ
36682010-05-07 Eli Zaretskii <eliz@gnu.org>
3669
5cba3209
EZ
3670 * w32fns.c: Include w32.h.
3671 (Fw32_shell_execute): Decode the error message before passing it
3672 to `error'. (Bug#6126)
3673
d16bdfc3
EZ
3674 * msdos.c (dos_set_window_size):
3675 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3676 instead of `XSYMBOL (foo)->value'.
3677
59d93e87
EZ
36782010-05-07 Eli Zaretskii <eliz@gnu.org>
3679
9fdec8bc
EZ
3680 Fix the MS-DOS build, broken by autoconfiscation.
3681
3682 * Makefile.in: Don't use Make-style comments past the "start of
3683 cpp stuff" line.
3684 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3685
3686 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3687 edited directly by msdos/sed1v2.inp).
f724825e 3688
2f86b22b
GM
36892010-05-07 Glenn Morris <rgm@gnu.org>
3690
3691 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3692 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3693 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3694 move out of cpp section.
3695 * s/freebsd.h (LD_SWITCH_SYSTEM):
3696 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3697 * s/netbsd.h (LD_SWITCH_SYSTEM):
3698 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3699
49ebbd65
DN
37002010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3701
3702 Define LIB_STANDARD and START_FILES using autoconf.
3703 * s/usg5-4.h (LIB_STANDARD):
3704 * s/netbsd.h (START_FILES):
3705 * s/irix6-5.h (LIB_STANDARD):
3706 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3707 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3708 * s/freebsd.h (START_FILES):
3709 * s/darwin.h (START_FILES):
3710 * s/cygwin.h (START_FILES):
3711 * s/aix4-2.h (LIB_STANDARD):
3712 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3713 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3714 autoconf, not cpp.
3715
d43c06d6
DN
37162010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3717
28823648
DN
3718 Remove NEED_BSDTTY and NEED_UNISTD_H.
3719 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3720 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3721 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3722 <sys/ptyio.h> and <unistd.h>.
3723
aca00430
DN
3724 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3725
d43c06d6
DN
3726 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3727 * s/gnu.h (START_FILES): Remove empty definition.
3728
3e56b11d
JD
37292010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3730
3731 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3732
e3cf0cde
GM
37332010-05-06 Glenn Morris <rgm@gnu.org>
3734
3735 * Makefile.in (CPP, LN_S): Remove unused variables.
3736
774b9a60
SM
37372010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3738
3739 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3740
4ab92842
LM
37412010-05-05 Lawrence Mitchell <wence@gmx.li>
3742
3743 * m/sparc.h: Fix typo in earlier change.
3744
178f2507
SM
37452010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3746
3747 Misc tweaks.
3748 * eval.c (Fdefvaralias): Remove unintended nested if.
3749 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3750
80f00217 37512010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
3752
3753 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3754
ef03a4e6
DN
37552010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3756
58eb6cf0
DN
3757 Remove BSD_PGRPS.
3758 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3759 * s/gnu-linux.h (BSD_PGRPS): Remove.
3760 * term.c (dissociate_if_controlling_tty):
3761 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3762 (init_sys_modes, reset_sys_modes):
3763 * emacs.c (main):
3764 * callproc.c (Fcall_process, child_setup): Remove code depending
3765 on BSD_PGRPS.
3766
ef03a4e6
DN
3767 Remove POSIX_SIGNALS.
3768 * s/usg5-4.h (POSIX_SIGNALS):
3769 * s/netbsd.h (POSIX_SIGNALS):
3770 * s/msdos.h (POSIX_SIGNALS):
3771 * s/ms-w32.h (POSIX_SIGNALS):
3772 * s/hpux11.h (POSIX_SIGNALS):
3773 * s/gnu.h (POSIX_SIGNALS):
3774 * s/gnu-linux.h (POSIX_SIGNALS):
3775 * s/freebsd.h (POSIX_SIGNALS):
3776 * s/darwin.h (POSIX_SIGNALS):
3777 * s/cygwin.h (POSIX_SIGNALS):
3778 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3779 * s/unixware.h:
3780 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3781 * process.c (create_process):
3782 * syssignal.h:
3783 * sysdep.c (wait_for_termination, init_signals):
3784 * process.c (create_process):
3785 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3786 remove all code that assumes the contrary.
3787
49628785
GM
37882010-05-04 Glenn Morris <rgm@gnu.org>
3789
27a2cdfc
GM
3790 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3791 variable.
3792 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3793 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3794 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3795 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3796 LD_SWITCH_SYSTEM_tmp.
3797 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3798 New variables, set by configure.
3799
eb21eab5
GM
3800 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3801 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3802 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3803 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3804 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3805
49628785
GM
3806 * s/aix4-2.h (C_SWITCH_SYSTEM):
3807 * m/alpha.h (C_SWITCH_MACHINE):
3808 Move to configure.in.
3809 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3810 New variables, set by configure.
3811 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3812 $c_switch_machine and $c_switch_system.
3813
7dff330b
DN
38142010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3815
3816 * s/hpux10-20.h (LIB_STANDARD): New definition.
3817 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3818 on it, not used anymore.
3819
53967e09
CY
38202010-05-03 Chong Yidong <cyd@stupidchicken.com>
3821
3822 * eval.c (internal_condition_case_n): Rename from
3823 internal_condition_case_2.
3824 (internal_condition_case_2): New function.
3825
3826 * xdisp.c (safe_call): Use internal_condition_case_n.
3827
3828 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3829 (internal_delete_file, Frename_file): Callers changed.
3830
3831 * buffer.c (Fkill_buffer):
3832 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3833
3834 * lisp.h: Update prototypes.
3835
3dee6fdb
GM
38362010-05-03 Glenn Morris <rgm@gnu.org>
3837
3838 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3839 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3840 (LIBXT): Set with configure, not cpp.
3841 (LIBX): Remove.
3842 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3843
a101e0fb
DN
38442010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3845
3846 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3847 The FreeBSD is not needed, the default works, Solaris version is
3848 not needed, and the remaining case is not supported by configure.
3849
f63d0028
JD
38502010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3851
3852 * xsmfns.c (CHDIR_OPT): New define.
3853 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3854 restarting emacs.
3855
3856 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3857 shut_down_emacs.
3858
3859 * emacs.c (USAGE1): Mention --chdir.
3860 (main): Handle --chdir.
3861 (standard_args): Add --chdir.
3862 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3863 #5552).
3864
e4814a9f
DN
38652010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3866
cd03c74a
DN
3867 Remove LD_SWITCH_MACHINE.
3868 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3869 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3870
c3a398a1
DN
3871 Clean up IRIX code.
3872 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3873 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3874
87e7285c
DN
3875 Clean up AIX code.
3876 * m/ibmrs6000.inp: Remove file, unused.
3877 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3878 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3879 definition ...
3880 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3881
80f00217
JB
3882 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3883 unused.
e4814a9f 3884
59ca28de
EZ
38852010-05-01 Eli Zaretskii <eliz@gnu.org>
3886
197daef4
EZ
3887 Emulate POSIX_SIGNALS on MS-Windows.
3888
3889 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3890 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
3891
3892 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3893 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3894 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3895
80f00217
JB
3896 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3897 New stubs.
197daef4 3898
af7c7572
EZ
3899 Miscellaneous fixes of bidi display.
3900
59ca28de
EZ
3901 * xdisp.c (find_row_end): New function, refactored from display_line.
3902 (display_line): Use it.
017ea819
EZ
3903 (extend_face_to_end_of_line): In almost-filled rows, extend only
3904 if the row is R2L and not continued.
166e930d 3905 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 3906 Preserve overlay and string info in row->end.
166e930d
EZ
3907 (insert_left_trunc_glyphs): Support addition of left truncation
3908 glyphs to R2L rows.
b47e0dcf 3909 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
3910 glyph between adjacent windows. Fix a crash when a display string
3911 is continued to the next line. Don't return zero if cursor was
3912 found by `cursor' property of a display string.
b47e0dcf
EZ
3913 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3914 test for that explicitly.
59ca28de 3915
7acac9f4
GM
39162010-05-01 Glenn Morris <rgm@gnu.org>
3917
3918 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3919 for clarity.
3920 (OTHER_OBJ): Remove.
3921 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3922 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3923
45841e65
KK
39242010-05-01 Karel Klíč <kklic@redhat.com>
3925
3926 * fileio.c (Ffile_selinux_context): Context functions may return null.
3927
afc61943
DN
39282010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3929
80f00217 3930 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 3931
5a1bb006
GM
39322010-04-30 Glenn Morris <rgm@gnu.org>
3933
3934 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3935 (OTHER_OBJ): Define as a separate variable, for clarity.
3936
210af043
J
39372010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3938
3939 * xsettings.c: include limits.h and update file comment.
3940
0a7df391
GM
39412010-04-30 Glenn Morris <rgm@gnu.org>
3942
d5096f16
GM
3943 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3944 Set with configure, not cpp.
3945 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3946
7eb1ac33
GM
3947 * Makefile.in (mallocobj): Remove.
3948 (otherobj): Simplify using @OTHER_OBJ@.
3949
517d086b
GM
3950 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3951 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3952 Don't bother making nsgui.h dependency platform-specific.
3953
0a7df391
GM
3954 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3955
d6d23852
SM
39562010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3957
d2630aef
SM
3958 * process.c (read_process_output, exec_sentinel): Don't burp if the
3959 sentinel/filter kills the current buffer (bug#6060).
3960
f9dddf52 3961 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
3962 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3963 Remove unused var `args'.
3964 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3965 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3966 * doc.c (store_function_docstring): Use XSETCAR.
3967
f1e3642a
GM
39682010-04-28 Glenn Morris <rgm@gnu.org>
3969
faf535f8
GM
3970 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3971 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3972
c40f9449
GM
3973 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3974
658f86ca
GM
3975 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3976 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3977
bc0b5f61
GM
3978 * Makefile.in (FONT_OBJ): New, set by configure.
3979 (FONT_DRIVERS): Use $FONT_OBJ.
3980
294c50a0
GM
3981 * Makefile.in (LIBXMU): Set with configure, not cpp.
3982 * s/aix4-2.h (LIBXMU):
3983 * s/hpux10-20.h (LIBXMU):
3984 Remove definition, now set in configure.
3985
e6ec4e99
GM
3986 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3987
f1e3642a
GM
3988 * m/amdx86-64.h [i386]: Move this test to configure.in.
3989
c6ea2936
GM
39902010-04-27 Glenn Morris <rgm@gnu.org>
3991
8fdac2c3
GM
3992 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3993 * s/unixware.h (NEED_LIBW): Remove definition.
3994
986fb647
GM
3995 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3996 (TOOLKIT_LIBW): New, set by configure.
3997 (@X_TOOLKIT_TYPE@): No longer define it.
3998
c6ea2936
GM
3999 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4000 (MOTIF_LIBW): Set with configure, not cpp.
4001 * s/aix4-2.h (LIB_MOTIF):
4002 * s/gnu-linux.h (LIB_MOTIF):
4003 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4004
aaa36002
DN
40052010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4006
4007 Reduce CPP usage.
4008 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4009 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
4010 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4011 definitions and undefs. Inline definitions in the only user.
4012 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 4013
b678dd8b
GM
40142010-04-27 Glenn Morris <rgm@gnu.org>
4015
76cda504
GM
4016 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4017 since the defaults (set by the system file) are fine in most cases.
4018 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4019 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4020 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4021 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4022 Remove definitions, since they are set correctly in s/gnu-linux.h.
4023 * s/freebsd.h (START_FILES, LIB_STANDARD):
4024 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4025 * s/hpux10-20.h (START_FILES):
4026 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4027 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4028
b678dd8b
GM
4029 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4030 (MOTIF_LIBW): Use $LIBXP.
4031 (otherobj): Use $WIDGET_OBJ.
4032
9452ded1
DN
40332010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4034
7e10844c
DN
4035 * Makefile.in (LIBS_MACHINE): Remove, unused.
4036
9452ded1
DN
4037 Use autoconf instead of cpp for LIB_MATH.
4038 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4039 * s/cygwin.h (LIB_MATH): Likewise.
4040 * Makefile.in (LIB_MATH): Do not define with cpp.
4041 (LIBES): Use autoconf for LIB_MATH.
4042
fcebfc6a
KH
40432010-04-26 Kenichi Handa <handa@m17n.org>
4044
4045 * composite.c (Ffind_composition_internal): Fix the return value
4046 for an automatic composition.
4047
39e2ad1b
DN
40482010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4049
4050 Remove all NO_ARG_ARRAY uses.
4051 * fns.c (concat2, concat3, nconc2):
4052 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4053 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4054 * m/xtensa.h (NO_ARG_ARRAY):
4055 * m/template.h (NO_ARG_ARRAY):
4056 * m/sparc.h (NO_ARG_ARRAY):
4057 * m/sh3.h (NO_ARG_ARRAY):
4058 * m/mips.h (NO_ARG_ARRAY):
4059 * m/macppc.h (NO_ARG_ARRAY):
4060 * m/iris4d.h (NO_ARG_ARRAY):
4061 * m/intel386.h (NO_ARG_ARRAY):
4062 * m/ibms390x.h (NO_ARG_ARRAY):
4063 * m/ibms390.h (NO_ARG_ARRAY):
4064 * m/ibmrs6000.h (NO_ARG_ARRAY):
4065 * m/ia64.h (NO_ARG_ARRAY):
4066 * m/hp800.h (NO_ARG_ARRAY):
4067 * m/arm.h (NO_ARG_ARRAY):
4068 * m/amdx86-64.h (NO_ARG_ARRAY):
4069 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4070
adf4f59c
EZ
40712010-04-25 Eli Zaretskii <eliz@gnu.org>
4072
6bdf5d65
EZ
4073 * xdisp.c (display_line): Don't assume 2nd call to
4074 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
4075 (iterate_out_of_display_property): New function, body from pop_it.
4076 (pop_it): Use it.
adf4f59c 4077
dfbbda83
GM
40782010-04-24 Glenn Morris <rgm@gnu.org>
4079
4080 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4081 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4082 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4083 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4084
2d4018aa
EZ
40852010-04-24 Eli Zaretskii <eliz@gnu.org>
4086
a49884a6
EZ
4087 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4088 use `get_next_display_element' and `set_iterator_to_next' to
4089 advance to the next character, when looking for the character that
4090 begins the next row.
4091
76db6fcc 4092 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
4093 definition of "struct Lisp_Symbol".
4094
70eab5c1
GM
40952010-04-24 Glenn Morris <rgm@gnu.org>
4096
4097 * Makefile.in (CRT_DIR): New variable, set by configure.
4098 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4099 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4100
1ad4cc3d
DN
41012010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4102
e769f484
DN
4103 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4104
4196ff33
DN
4105 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4106
879b0ee4
DN
4107 Remove redundant flags.
4108 * s/freebsd.h (C_SWITCH_SYSTEM):
4109 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4110 * s/netbsd.h (C_SWITCH_SYSTEM):
4111 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4112 of these.
4113
03cbbcb8
DN
4114 Simplify m/intel386.h.
4115 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4116 user: ecrt0.c.
4117 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4118 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4119 the only user: s/unixware.h.
4120 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4121 from m/intel386.h.
4122 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4123 moved here from m/intel386.h.
4124
1ad4cc3d
DN
4125 * m/mips.h: Remove #if 0 code.
4126
8785b888
EZ
41272010-04-23 Eli Zaretskii <eliz@gnu.org>
4128
728588cc
EZ
4129 Fix display of composed characters from L2R scripts in bidi buffers.
4130 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4131 After advancing IT past the composition, resync the bidi iterator
4132 with IT's position. (Bug#5977)
4133
a63f80b4
DN
41342010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4135
4136 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4137 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4138
ff5dec5c
SM
41392010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4140
4141 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4142
8785b888
EZ
41432010-04-23 Eli Zaretskii <eliz@gnu.org>
4144
58ccf243 4145 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
4146 * xdisp.c (pop_it): When the stack is popped after displaying
4147 from a string, bidi-iterate to exit from the text portion covered
4148 by the `display' property or overlay. (Bug#5988, bug#5920)
4149
feeb1604
DN
41502010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4151
8e324eb6
DN
4152 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4153 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4154
809fcaba
DN
4155 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4156 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4157
ed710380
DN
4158 Simplify STARTFILES definition.
4159 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4160 relying on Makefile.in to define it.
4161 * s/cygwin.h (START_FILES): Likewise.
4162 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4163
feeb1604
DN
4164 Clean up Solaris code.
4165 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4166 (LIB_MOTIF): Remove, configure takes care of this.
4167 (NOT_USING_MOTIF): Remove, unused.
4168 * xrdb.c: Remove #if 0-ed #include.
4169 (SYSV): Remove conditional for old SysV.
4170 * sysdep.c (closedir): Remove conditional code for Solaris,
4171 Solaris has closedir.
4172
a0d0b563
JD
41732010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4174
4175 * xsettings.c (read_and_apply_settings): Check if current_font is
4176 NULL before strcmp (Bug#6001).
4177
56bae7c7
DN
41782010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4179
4180 Clean up HP-UX files.
4181 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4182 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4183 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4184 * s/hpux10-20.h: ... to the only user, here.
4185
372b7a95
EZ
41862010-04-21 Eli Zaretskii <eliz@gnu.org>
4187
4188 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4189 use buffer-local values of paragraph-start and paragraph-separate.
4190 <paragraph_start_re, paragraph_separate_re>: Rename from
4191 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4192 (Bug#5992)
4193
f904c0f9
JD
41942010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4195
4196 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4197 current_tool_bar_style are new.
4198 (store_config_changed_event): Rename from store_font_changed_event.
4199 (XSETTINGS_TOOL_BAR_STYLE): New define.
4200 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4201 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4202 HAVE_XFT.
4203 (something_changedCB): store_font_changed_event is now
c4cc8b9a 4204 store_config_changed_event.
f904c0f9
JD
4205 (parse_settings): Rename from parse_xft_settings. Read
4206 non-xft xsettings outside #ifdef HAVE_XFT.
4207 (read_settings): Renamed from read_xft_settings.
4208 (apply_xft_settings): Take current settings as parameter. Do not
4209 call read_(xft)_settings.
4210 (read_and_apply_settings): New function.
4211 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4212 read_and_apply_settings if there are settings to be read.
4213 (init_xsettings): Renamed from init_xfd_settings.
4214 Call read_and_apply_settings unconditionally.
4215 (xsettings_initialize): Call init_xsettings.
4216 (Ftool_bar_get_system_style): New function.
4217 (syms_of_xsettings): Define Qmonospace_font_name and
4218 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 4219 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 4220 dynamic-setting.
31a01b90 4221 Move misplaced HAVE_GCONF
f904c0f9
JD
4222
4223 * xsettings.h (Ftool_bar_get_system_style): Declare.
4224
4225 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4226 Qtext, Qboth, Qboth_horiz are new.
4227 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4228 Vtool_bar_style, tool_bar_max_label_size.
4229
4230 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4231
4232 * keyboard.c: QClabel is new.
4233 (parse_tool_bar_item): Take out QClabel from tool bar items.
4234 Try to construct a label if ther is no QClabel.
4235 (syms_of_keyboard): Intern :label as QClabel.
4236
4237 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4238 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4239 New.
4240
4241 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4242 dynamic-setting.el.
4243
4244 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4245 (xg_make_tool_item, xg_show_toolbar_item): New function.
4246 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4247 Call xg_make_tool_item to make a tool bar item.
4248 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4249
4250 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4251 into account for toolbars.
4252
c632dfda
JD
42532010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4254
4255 * data.c (make_blv): Declarations before code (Bug#5993).
4256
10efe302
GM
42572010-04-21 Glenn Morris <rgm@gnu.org>
4258
4259 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4260 Define using autoconf, not cpp.
4261 (LIBXSM): New variable, set by autoconf.
4262 (LIBXT): Use $LIBXSM.
4263
4285ac5a
DN
42642010-04-21 Dan Nicolaescu <local_user@dannlt>
4265
3ec759e7
DN
4266 Remove NOMULTIPLEJOBS, unused.
4267 * s/template.h (NOMULTIPLEJOBS):
4268 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4269
4285ac5a
DN
4270 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4271 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4272 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4273 detects -znocombreloc and passes it to the linker
4274 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4275
2807228d
GM
42762010-04-21 Glenn Morris <rgm@gnu.org>
4277
4278 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4279
574c05e2
KK
42802010-04-21 Karel Klíč <kklic@redhat.com>
4281
4282 * Makefile.in (LIBSELINUX_LIBS): New.
4283 (LIBES): Add $LIBSELINUX_LIBS.
4284 * eval.c, lisp.h (call7): New function.
4285 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4286 (Ffile_selinux_context, Fset_file_selinux_context):
4287 New functions.
4288 (Fcopy_file): New parameter preserve-selinux-context.
4289 (Frename_file): Preserve selinux context when renaming by copy-file.
4290
91eac4bb 42912010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 4292 Eli Zaretskii <eliz@gnu.org>
91eac4bb 4293
50426a04
JB
4294 Don't depend on cm.c or termcap.c on Windows, use stubs.
4295 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4296 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4297 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4298 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4299 (sys_tputs, sys_tgetstr): New stubs.
4300 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4301 (tputs, tgetstr): New; define to sys_*.
91eac4bb 4302
938efb77
JB
43032010-04-20 Juanma Barranquero <lekktu@gmail.com>
4304
4305 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4306
b4bf28b7
SM
43072010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4308
8b1e1112
SM
4309 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4310 Just signal a warning rather than an error when inside a let.
4311 (Fmake_variable_frame_local): Add the same test.
4312
933ac235
SM
4313 * font.c (syms_of_font): Make the style table vars read-only.
4314
b4bf28b7
SM
4315 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4316 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4317
4318 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4319
93d68d0c
EZ
43202010-04-20 Eli Zaretskii <eliz@gnu.org>
4321
4322 Fix R2L paragraph display on TTY.
4323
4324 * xdisp.c (unproduce_glyphs): New function.
4325 (display_line): Use it when produced glyphs are discarded from R2L
4326 glyph rows.
4327 (append_composite_glyph): In R2L rows, prepend the glyph rather
4328 than appending it.
4329
4330 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4331 rather than append it. Set up the resolved_level and bidi_type
4332 attributes of the appended glyph.
283ccc18
EZ
4333 (produce_special_glyphs): Mirror the backslash continuation
4334 character in R2L lines.
93d68d0c 4335
283ccc18 4336 Implement display of R2L paragraphs in GUI sessions.
26cdf528 4337
283ccc18
EZ
4338 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4339 append_stretch_glyph.
4340 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4341 off-by-one error in computing x at end of text in the row.
4342 (append_stretch_glyph): In reversed row, prepend the glyph rather
4343 than append it. Set resolved_level and bidi_type of the glyph.
4344 (extend_face_to_end_of_line): If the row is reversed, prepend a
4345 stretch glyph whose width is such that the rightmost glyph will be
4346 drawn at the right margin of the window. Fix off-by-one error on
4347 TTY frames in testing whether a line needs face extension. Fix
4348 face extension at ZV. If this is the last glyph row, use
4349 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4350 region face.
4351 (set_cursor_from_row, display_line): Use
26cdf528
EZ
4352 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4353 row->continuation_lines_width.
283ccc18
EZ
4354 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4355 are at ZV. Fixes a crash when reseated to ZV by
4356 try_window_reusing_current_matrix.
45903529
EZ
4357 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4358 which happens with R2L glyph rows. Fixes a crash when inserting a
4359 character at end of an R2L line.
283ccc18
EZ
4360 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4361 treat them as having zero-width characters. Improve comments.
4362 Don't reverse pos_before and pos_after for reversed glyph rows.
4363 Set cursor.x to negative value when the cursor might be on the
4364 left fringe.
4365 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4366 left fringe, not the right one.
f951a506
EZ
4367 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4368 (erase_phys_cursor): For reversed cursor_row, support cursor on
4369 the left fringe.
4370
283ccc18
EZ
4371 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4372 of continuation indicators on the fringes.
4373 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4374 left fringe.
4375
f951a506
EZ
4376 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4377 draw cursor on the left fringe.
4378
4379 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4380 cursor on the left fringe.
4381
f951a506
EZ
4382 * dispnew.c (update_text_area): Handle reversed desired rows when
4383 the cursor is on the left fringe.
4384 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4385 below, not by 0, for when the cursor is on the left fringe.
4386
3bb49aaf
JD
43872010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4388
4389 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4390 widget is a scrollbar.
4391
c0be27fd
KH
43922010-04-20 Kenichi Handa <handa@m17n.org>
4393
4394 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4395 only when the arg CHARSET_LIST is nil.
4396
ce5b453a
SM
43972010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4398
4399 Make variable forwarding explicit rather the using special values.
4400 Basically, this makes the structure of buffer-local values and object
4401 forwarding explicit in the type of Lisp_Symbols rather than use
4402 special Lisp_Objects for that. This tends to lead to slightly more
4403 verbose code, but is more C-like, simpler, and makes it easier to make
4404 sure we handled all cases, among other things by letting the compiler
4405 help us check it.
4406 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4407 Removing forwarding objects.
4408 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4409 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4410 explicit rather than hiding them inside Lisp_Object "values".
4411 (XFWDTYPE): New macro.
4412 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4413 (XBUFFER_LOCAL_VALUE): Remove.
4414 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4415 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4416 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4417 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4418 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4419 Remove the Lisp_Misc_* header.
4420 (struct Lisp_Buffer_Local_Value): Redefine.
4421 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4422 (struct Lisp_Misc_Any): Add filler to get the right size.
4423 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4424 Lisp_Intfwd.
4425 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4426 (DEFVAR_KBOARD): Allocate a forwarding object.
4427 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4428 (let_shadows_global_binding_p): New function.
4429 (union Lisp_Val_Fwd): New type.
4430 (make_blv): New function.
4431 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4432 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4433 (swap_in_symval_forwarding, find_symbol_value, Fset)
4434 (let_shadows_buffer_binding_p, set_internal, default_value)
4435 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4436 (Fkill_local_variable, Fmake_variable_frame_local)
4437 (Flocal_variable_p, Flocal_variable_if_set_p)
4438 (Fvariable_binding_locus):
4439 * xdisp.c (select_frame_for_redisplay):
4440 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4441 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4442 * frame.c (store_frame_param):
4443 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4444 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4445 value structure.
4446 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4447 (clone_per_buffer_values): Only adjust markers into the current buffer.
4448 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4449 (Fbuffer_local_value, set_buffer_internal_1)
4450 (swap_out_buffer_local_variables):
4451 Adapt to the new symbol value structure.
4452 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4453 (defvar_per_buffer): Take a new arg for the fwd object.
4454 (buffer_lisp_local_variables): Return a proper alist (different fix
4455 for bug#4138).
4456 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4457 (Fgarbage_collect): Don't handle buffer_defaults specially.
4458 (mark_object): Handle new symbol value structure rather than the old
4459 special Lisp_Misc_* objects.
4460 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4461 * term.c (set_tty_color_mode):
4462 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4463 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4464 a buffer_local_flags.
4465 * print.c (print_object): Get rid of impossible forwarding objects.
4466
fd3998ff
EZ
44672010-04-19 Eli Zaretskii <eliz@gnu.org>
4468
4469 * bidi.c (bidi_get_type, bidi_get_category)
4470 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
4471 (bidi_type_of_next_char, bidi_level_of_next_char):
4472 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 4473
e42cd1a7
JB
44742010-04-19 Juanma Barranquero <lekktu@gmail.com>
4475
4476 * dired.c (Ffile_attributes): Fix typo in docstring.
4477
6e104790 44782010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
4479
4480 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4481 NSInteger (Bug#5811).
4482
6e104790 44832010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
4484
4485 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4486 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4487
6e104790 44882010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
4489
4490 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4491
6e104790
SM
44922010-04-19 Chong Yidong <cyd@stupidchicken.com>
4493
4494 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4495 terminal frames (Bug#5837).
4496
37dcfea0
EZ
44972010-04-19 Eli Zaretskii <eliz@gnu.org>
4498
d1da276f
EZ
4499 * .gdbinit (xsubchartable): New command.
4500
37dcfea0
EZ
45012010-04-19 Eli Zaretskii <eliz@gnu.org>
4502
4503 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 4504 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
4505 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4506 and
4507 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4508
e9515805
SM
45092010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4510
4511 * alloc.c (Fpurecopy): Hash-cons if requested.
4512 (syms_of_alloc): Update purify-flag docstring.
4513
22aa44a8
JD
45142010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4515
4516 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4517 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4518
ebb5722e
EZ
45192010-04-17 Eli Zaretskii <eliz@gnu.org>
4520
4521 Fix a crash when an NSM character is inserted at BEGV.
4522
4523 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4524 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4525 NEUTRAL_B or UNKNOWN_BT.
4526
0f4442ef
EZ
45272010-04-16 Eli Zaretskii <eliz@gnu.org>
4528
4529 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4530 other rows with cursor unless they are different from this row and
4531 this row is part of a continued line. (Bug#5943)
4532
7d4e45f8
DN
45332010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4534
4535 * s/freebsd.h: Restore osreldate.h include.
4536 Suggested by Naohiro Aota.
4537
5ba5ec85
J
45382010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4539
4540 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4541
20af301d
CY
45422010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4543
4544 * s/cygwin.h: Avoid linking against static libgcc.
4545
a4b000fb
JL
45462010-04-15 Juri Linkov <juri@jurta.org>
4547
4548 * window.c: Add Qscroll_command.
4549 Remove Vscroll_preserve_screen_position_commands.
4550 (window_scroll_pixel_based, window_scroll_line_based): Check the
4551 `scroll-command' property on the last command instead of searching
4552 the last command in Vscroll_preserve_screen_position_commands.
4553 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4554 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4555 (scroll-preserve-screen-position): Doc fix.
4556 (Vscroll_preserve_screen_position_commands): Remove variable.
4557
bc319ba4
DN
45582010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4559
6bb24457
DN
4560 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4561
19d4c244
DN
45622010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4563
4564 Reduce cpp use in Makefile.in.
4565 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4566 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4567 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4568 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4569 (CRT0_COMPILE): Remove, inline it in the only user.
4570
32129746
JL
45712010-04-14 Juri Linkov <juri@jurta.org>
4572
4573 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4574 `scroll-up-command' and `M-v' from `scroll-down' to
4575 `scroll-down-command'.
4576
9013a7f8
JL
45772010-04-14 Juri Linkov <juri@jurta.org>
4578
4579 * window.c (Vscroll_preserve_screen_position_commands): New variable
4580 with the default value as the list of Qscroll_down and Qscroll_up.
4581 (window_scroll_pixel_based, window_scroll_line_based): Search the
4582 last command in the list Vscroll_preserve_screen_position_commands
4583 instead of comparing with Qscroll_up and Qscroll_down.
4584
4bef8d26
JD
45852010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4586
92848133
JD
4587 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4588 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4589 does that.
4590
4bef8d26
JD
4591 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4592 to zero.
4593
58b963f7
SM
45942010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4595
84164a0d
SM
4596 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4597
2b0a91e7
SM
4598 Try to solve the problem of spurious EOF chars in long lines of text
4599 sent to interactive subprocesses.
4600 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4601 (system_process_attributes): Remove unused var `ttotal'.
4602 * process.c (send_process): Don't bother breaking long line with EOF
4603 chars when talking to ttys any more.
4604 (wait_reading_process_output): Output a warning when called in such
4605 a way that it could block without being interruptible.
4606
58b963f7
SM
4607 Try to detect file modification within the same second.
4608 * buffer.h (struct buffer): New field modtime_size.
4609 * buffer.c (reset_buffer): Initialize it.
4610 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4611 (Fverify_visited_file_modtime): Check it.
4612 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4613 (Fset_visited_file_modtime): Set (or clear) it.
4614
01f5787b
SM
46152010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4616
4617 * process.c (status_notify): Remove unused var `ro'.
4618
83725342
JD
46192010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4620
4621 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4622 more than one visual (Bug#5938).
4623
b9465836
DN
46242010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4625
50426a04
JB
4626 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4627 Undefine.
b9465836 4628
8d9c8ece
DN
46292010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4630
b1f52161
DN
4631 Remove C_SWITCH_SYSTEM_TEMACS.
4632 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4633 (malloc, realloc, free): Use emacs, not temacs for conditional
4634 definition.
4635
4636 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4637 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4638
8d9c8ece
DN
4639 Use autoconf, not cpp for some variables.
4640 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4641 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4642 (ALL_CFLAGS): Use them as make variables.
4643 (really-lwlib, really-oldXMenu): Do not pass them.
4644
1ecb2d3f
JD
46452010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4646
4647 * xmenu.c (apply_systemfont_to_dialog): New.
4648 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4649
3a4fa2f2
SM
46502010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4651
97e53006
SM
4652 * process.c (exec_sentinel): Preserve current-buffer.
4653
3a4fa2f2
SM
4654 * process.c (read_process_output): Move the save-current-buffer to
4655 apply to both the filter and the non-filter branches.
4656
88df7221
DN
46572010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4658
4659 * s/msdos.h (UNEXEC): New definition.
4660
5634ff85
YM
46612010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4662
6eff5c3d
YM
4663 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4664 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4665
4666 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4667 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4668 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4669 TRY_WINDOW_CHECK_MARGINS.
4670
4671 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
4672 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4673 width only when it is for padding.
5634ff85 4674
b13aef54
J
46752010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4676
4677 * xfns.c (Fx_show_tip): Call try_window in a loop until
4678 fonts_changed_p is zero (Bug#2423).
4679
21d28484
EZ
46802010-04-08 Eli Zaretskii <eliz@gnu.org>
4681
4682 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4683 the end of TEXT_AREA. (Bug#5856)
4684
0269ef77
JD
46852010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4686
4687 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4688 HAVE_GCONF.
4689
5930fe97
EZ
46902010-04-08 Eli Zaretskii <eliz@gnu.org>
4691
4692 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4693 prev.orig_type, for resolving type of NSM. (Bug#5858)
4694
99852628
JD
46952010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4696
4697 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4698 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4699 in current_font.
4700 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
4701 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4702 New functions.
4703 (syms_of_xsettings): Initialize current_font.
4704 defsubr Sfont_get_system_normal_font.
99852628 4705
686b968e
JB
4706 * xsettings.h (Ffont_get_system_normal_font)
4707 (xsettings_get_system_normal_font): Declare.
99852628
JD
4708
4709 * xfns.c (extern xlwmenu_default_font): Remove.
4710 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4711 to xlwmenu.c.
4712
4713 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4714 menu items in UTF-8.
4715
4716 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4717 (apply_systemfont_to_menu): New function.
4718 (set_frame_menubar, create_and_show_popup_menu): Call
4719 apply_systemfont_to_menu.
4720
7fc874c4
J
47212010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4722
4723 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4724 FRAME_LINE_TO_PIXEL_Y.
4725
4726 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4727 pixelwidth/height.
4728
863bf481
DN
47292010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4730
5e5a3b92
DN
4731 Simplify code for HP machines.
4732 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4733 for GNU_LINUX, not needed.
4734 (UNEXEC, NEED_BSDTTY): Move definitions...
4735 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4736
863bf481
DN
4737 * m/iris4d.h (UNEXEC): Move definition ...
4738 * s/irix6-5.h (UNEXEC): ... here.
4739
3e6bec3b
JD
47402010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4741
4742 * xfns.c (set_machine_and_pid_properties): New function.
4743 (Fx_create_frame): Call set_machine_and_pid_properties.
4744
2912322b
SM
47452010-04-03 Eli Zaretskii <eliz@gnu.org>
4746
1502b819
EZ
4747 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4748 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4749 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4750
2912322b
SM
4751 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4752 in this function. (Bug#5703)
4753
47542010-04-03 Chong Yidong <cyd@stupidchicken.com>
4755
4756 * nsterm.h: Fix last change.
4757
c435b432
DN
47582010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4759
a568f507
DN
4760 * m/intel386.h (NO_REMAP): Move definition ...
4761 * s/msdos.h (NO_REMAP): ... here.
4762
4cd9f6c2
DN
4763 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4764
c435b432
DN
4765 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4766 used on those platforms.
4767
42a2c622
DN
47682010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4769
4770 Remove extern errno declarations.
4771 * xterm.c:
4772 * xrdb.c:
4773 * w32term.c:
4774 * unexec.c:
4775 * unexaix.c:
4776 * sysdep.c:
4777 * process.c:
4778 * lread.c:
4779 * keyboard.c:
4780 * floatfns.c:
4781 * filelock.c:
4782 * fileio.c:
4783 * emacs.c (main):
4784 * ecrt0.c:
4785 * dispnew.c:
4786 * callproc.c:
4787 * buffer.c: Remove errno extern declarations.
4788 * s/netbsd.h (NEED_ERRNO): Remove.
4789
8224f93d
DN
47902010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4791
4792 Remove all uses of LIBX11_SYSTEM.
4793 * Makefile.in (LIBX11_SYSTEM): Remove.
4794 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4795 instead.
4796
814062c7
EZ
47972010-04-01 Eli Zaretskii <eliz@gnu.org>
4798
ed68db4d
EZ
4799 Remove support for DJGPP v1.x (bug#5813).
4800
4801 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
4802 * s/msdos.h:
4803 * unexec.c (make_hdr, copy_text_and_data):
4804 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4805 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4806 (IT_set_terminal_modes, __write, _rename, gethostname)
4807 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4808 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4809 the value of __DJGPP__.
ed68db4d
EZ
4810 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4811 compatibility code.
8224f93d
DN
4812 * lread.c:
4813 * gmalloc.c (memalign):
4814 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4815 * emacs.c (main):
4816 * dosfns.c (init_dosfns):
ed68db4d
EZ
4817 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4818
52f4d8d5
EZ
48192010-04-01 Eli Zaretskii <eliz@gnu.org>
4820
814062c7
EZ
4821 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4822 string with `cursor' property comes from an `after-string'
4823 overlay. (Bug#5816)
4824
0dc2e11d
GM
48252010-04-01 Glenn Morris <rgm@gnu.org>
4826
4827 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4828 Define as Makefile variables.
4829 (LIBX): Use above variables rather than directly using autoconf.
4830
1d29df59
DN
48312010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4832
4833 Clean up BSD_SYSTEM use.
4834 * xterm.c:
4835 * process.c:
4836 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4837 for including <sys/ioctl.h>.
4838 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4839 code is only used for MSDOS.
4840
1546c559
JL
48412010-03-31 Juri Linkov <juri@jurta.org>
4842
4843 * image.c: Add `Qextension_data'.
4844 (syms_of_image): Initialize and staticpro `Qextension_data'.
4845 (Fimage_metadata): Rename from `Fimage_extension_data'.
4846 (gif_load): Put GIF extension data to the property
4847 `Qextension_data'.
4848
6521c534
CY
48492010-03-31 Chong Yidong <cyd@stupidchicken.com>
4850
4851 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4852 * nsterm.h: Fix prototype.
4853
52c30783
EZ
48542010-03-31 Eli Zaretskii <eliz@gnu.org>
4855
4856 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4857 trailing whitespace in right-to-left rows.
4858
855a0da7
SM
48592010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4860
4861 Get rid of the direct_output optimizations.
4862 * keyboard.c (nonundocount): Remove extern declaration.
4863 (command_loop_1): Remove brittle optimisation for cheap and
4864 common operations.
4865 * xdisp.c (redisplay_internal): Don't bother checking
4866 redisplay_performed_directly_p any more.
4867 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4868 any more.
4869 * dispnew.c (redisplay_performed_directly_p)
4870 (direct_output_for_insert, direct_output_forward_char):
4871 * dispextern.h (redisplay_performed_directly_p)
4872 (direct_output_for_insert, direct_output_forward_char): Remove.
4873 * cmds.c (nonundocount): Make it static.
4874
85738751 48752010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
4876
4877 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4878
85738751 48792010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
4880
4881 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4882 invisible (Bug#5766).
4883
85738751 48842010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 4885
855a0da7
SM
4886 * xdisp.c (x_consider_frame_title, update_window_cursor):
4887 Remove HAVE_NS conditionals.
194d44e7 4888 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
4889
4890 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4891 filename for the title.
4892 (ns_set_doc_edited): Do nothing if the selected window is a
4893 minibuffer window.
4894
4895 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4896 ns_set_doc_edited.
4897
4898 * nsterm.m: Remove unneeded prototype.
4899
85738751 49002010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
4901
4902 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4903 in the DOC file. (Bug#5336)
4904
85738751 49052010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
4906
4907 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4908
75d1428c
SM
49092010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4910
4911 * window.c (keys_of_window): Remove redundant/overridden bindings.
4912
82043cfb
EZ
49132010-03-30 Eli Zaretskii <eliz@gnu.org>
4914
4915 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4916 Restore original behavior when the iterator is not bidi_p.
4917
b5dd0ae7
DN
49182010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4919
4920 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4921
bd924a5d
EZ
49222010-03-30 Eli Zaretskii <eliz@gnu.org>
4923
4924 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4925 are outside the range of cached character positions.
4926
3580374b
JB
49272010-03-30 Juanma Barranquero <lekktu@gmail.com>
4928
4929 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4930
a7b02820
EZ
49312010-03-30 Eli Zaretskii <eliz@gnu.org>
4932
4933 Initial support for bidirectional editing.
4934
4935 * Makefile.in (obj): Include bidi.o.
4936 (bidi.o): New target.
4937
4938 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4939 ($(BLD)/bidi.$(O)): New target.
4940
4941 * bidi.c: New file.
4942
4943 * buffer.h (struct buffer): New members bidi_display_reordering
4944 and bidi_paragraph_direction.
4945
4946 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4947 and bidi_paragraph_direction.
4948 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4949 and bidi-paragraph-direction.
4950 (Fbuffer_swap_text): Swap the values of
4951 bidi_display_reordering and bidi_paragraph_direction.
4952
4953 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4954 (bidi_type_t, bidi_dir_t): New types.
4955 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4956 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4957 prev_stop, base_level_stop, and eol_pos.
4958 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4959 (IT_STACK_SIZE): Enlarge to 5.
4960 (struct glyph_row): New member reversed_p.
4961 <string_buffer_position>: Update prototype.
4962 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4963 glyph_row if bidi_it.paragraph_dir == R2L.
4964 (struct glyph): New members resolved_level and bidi_type.
4965
4966 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4967 processing or buffer's direction is right-to-left.
4968 (prepare_desired_row): Preserve the reversed_p flag.
4969 (row_equal_p): Compare the reversed_p attributes as well.
4970
4971 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4972 bidi_init_it and set it->paragraph_embedding from the current
4973 buffer's value of bidi_paragraph_direction.
4974 (reseat_1): Initialize bidi_it.first_elt.
4975 (set_iterator_to_next, next_element_from_buffer): Use the value of
4976 paragraph_embedding to determine the paragraph direction.
4977 (set_iterator_to_next): Under bidi reordering, call
4978 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4979 new_paragraph flag is set in the bidi iterator.
4980 (next_element_from_buffer): If bidi_it.first_elt is set,
4981 initialize paragraph direction and find the first character to
4982 display in the visual order. If reseated to a middle of a line,
4983 prime the bidi iterator starting at the line's beginning. Handle
4984 the situation where we overstepped stop_charpos due to
4985 non-linearity of the bidi iteration. Likewise for when we back up
4986 beyond the previous stop_charpos. When moving across stop_charpos,
4987 record it in prev_stop.
4988 (display_line): Set row->end and it->start for the next row to the
4989 next character in logical order. Always extend reversed_p rows to
4990 the end of line, even if they end at ZV. Copy the reversed_p flag
4991 to the next glyph row. Keep calling set_cursor_from_row for
4992 bidi-reordered rows even if we already have a possible candidate
4993 for cursor position. Set row_end after all the row's glyphs have
4994 been produced, by looping over the glyphs. Record the position
4995 after EOL in it->eol_pos, and use it to set end_pos of the last
4996 row produced for a continued line.
4997 <Qright_to_left, Qleft_to_right>: New variables.
4998 (syms_of_xdisp): Initialize and staticpro them.
4999 (string_buffer_position_lim): New function.
5000 (string_buffer_position): Most of code moved to
5001 string_buffer_position_lim. Last argument and return value are
5002 now EMACS_INT; all callers changed.
5003 (set_cursor_from_row): Rewritten to support bidirectional text and
5004 reversed glyph rows.
5005 (text_outside_line_unchanged_p, try_window_id): Disable
5006 optimizations if we are reordering bidirectional text and the
5007 paragraph direction can be affected by the change.
5008 (append_glyph, append_composite_glyph)
5009 (produce_image_glyph, append_stretch_glyph): Set the
5010 resolved_level and bidi_type members of each glyph.
5011 (append_glyph): If the glyph row is reversed, prepend the glyph
5012 rather than appending it.
5013 (handle_stop_backwards): New function.
5014 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5015 (reseat): call handle_stop_backwards to recompute prev_stop and
5016 base_level_stop for the new position.
5017 (handle_invisible_prop): Under bidi iteration, skip invisible text
5018 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5019 paragraph direction. Update IT->prev_stop after skipping
5020 invisible text.
5021 (move_it_in_display_line_to): New variables prev_method
5022 and prev_pos. Compare for strict equality in
5023 BUFFER_POS_REACHED_P.
5024 (try_cursor_movement): Examine all the candidate rows that occlude
5025 point, to return the best match. If rows are bidi-reordered
5026 and point moved backwards, back up to the row that is not a
5027 continuation line, and start looking for a suitable row from
5028 there.
5029
5030 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5031 rather than appending, if the glyph_row's reversed_p flag is set.
5032 Set the resolved_level and bidi_type members of each glyph.
5033
5034 * .gdbinit (pbiditype): New command.
5035 (pgx): Use it to display bidi level and type of the glyph.
5036 (pitx): Display some bidi information about the iterator.
5037 (prowlims, pmtxrows): New commands.
5038
32a8894e
DN
50392010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5040
5041 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5042 * s/usg5-4.h (LIBS_DEBUG):
5043 * s/irix6-5.h (C_DEBUG_SWITCH):
5044 * s/gnu-linux.h (LIBS_DEBUG):
5045 * s/darwin.h (LIBS_DEBUG):
5046 * s/bsd-common.h (LIBS_DEBUG):
5047 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5048 * m/iris4d.h (LIBS_DEBUG):
5049 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5050
5051 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5052 (LIBS_DEBUG): Remove definition.
5053
649dbf36
CY
50542010-03-27 Chong Yidong <cyd@stupidchicken.com>
5055
5056 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5057 Windows.
5058
cad4261f
YM
50592010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5060
5061 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5062 `connect' (Bug#5723).
5063
cd591dbc
HE
50642010-03-25 Helmut Eller <eller.helmut@gmail.com>
5065
5066 * process.c (Fmake_network_process): Call `select' for interrupted
5067 `connect' rather than creating new socket (Bug#5173).
5068
e867cb5d 50692010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
5070
5071 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5072
5073 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5074
5075 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5076
e867cb5d 50772010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
5078
5079 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5080 XLoadQueryFont.
5081
e867cb5d 50822010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
5083
5084 * coding.c (decode_coding_ccl): Fix previous change for the
5085 multibyte case.
fb608df3
KH
5086 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5087 case that the output buffer is fullfilled.
5088 (encode_coding): Setup ccl program here.
fbdc1721 5089
5845f0ed
DN
50902010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5091
814fb708
DN
5092 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5093
5845f0ed
DN
5094 Simplify LIBS_MACHINE definitions.
5095 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5096 * m/iris4d.h (LIBS_MACHINE): Likewise.
5097 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5098 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 5099 * s/netbsd.h: Remove commented out code.
5845f0ed 5100
b7064064
DN
51012010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5102
df7734b2
DN
5103 Remove dead code dealing with POSIX_SIGNALS.
5104 * atimer.c (set_alarm): Remove dead code, all USG systems define
5105 POSIX_SIGNALS.
5106 * data.c (arith_error): Likewise.
5107 * keyboard.c (input_available_signal, handle_user_signal)
5108 (interrupt_signal): Likewise.
5109 * process.c (sigchld_handler): Likewise.
5110 (create_process): Remove if 0 code. Remove HPUX conditional when
5111 !defined (POSIX_SIGNALS), it cannot be true.
5112 * syssignal.h: Remove USG5_4 and USG conditionals when
5113 !POSIX_SIGNALS, they cannot be true.
5114
b7064064
DN
5115 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5116 NO_SOCK_SIGIO, not used anymore.
5117
55da5ee3
DN
51182010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5119
0be96e3a
DN
5120 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5121 support vax on BSDs.
5122
55da5ee3
DN
5123 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5124 * s/aix4-2.h (ORDINARY_LINK): ... here.
5125
c0282183
AS
51262010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5127
82c3d67a
AS
5128 * Makefile.in (abs_builddir): Define.
5129 (bootstrap_exe): Use it.
5130 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 5131
3613edce
SM
51322010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5133
5134 * Makefile.in (bootstrap_exe): Use an absolute name.
5135
7f110ddc
DN
51362010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5137
22e87574
DN
5138 Remove support for old GNU/Linux using libc version 5.
5139 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5140 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5141
05a670e6
DN
5142 Consolidate redundant definitions in s/bsd-common.h.
5143 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5144 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5145 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5146 doing it in all files that include this one.
5147 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5148 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5149 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5150 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5151 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5152 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5153 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5154 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5155 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5156
2968f561
DN
5157 Consolidate redundant definitions.
5158 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5159 it's undefined in all files that include this one.
5160 (POSIX_SIGNALS): Define here instead of doing it in all files that
5161 include this one.
5162 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5163 (POSIX_SIGNALS): Do not define.
5164 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5165 (POSIX_SIGNALS): Do not define.
5166 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5167 (POSIX_SIGNALS): Do not define.
5168
15d25dc0
DN
5169 Remove support for old UNIX System V systems.
5170 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5171 * s/usg-5-4-2.h: Remove.
5172
07e339e4
DN
5173 Remove support for Solaris on PPC and for old versions.
5174 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5175 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5176 that cancel each other.
5177 * s/sol2-3.h:
5178 * s/sol2-4.h:
5179 * s/sol2-5.h: Remove.
5180 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5181 (NO_REMAP): Remove, unused.
5182 (UNEXEC): Move definition ...
5183 * s/aix4-2.h (UNEXEC): ... here.
5184
7f110ddc
DN
5185 * s/openbsd.h: Remove support for non-ELF and for systems that do
5186 not support shared libraries.
5187 * s/netbsd.h:
5188 * s/freebsd.h: Likewise.
5189
605f35cd
DN
51902010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5191
5192 Remove non-working support for lynxos 3.0.
5193 * s/lynxos.h: Remove file.
5194
5195 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5196 COFF_BSD_SYMBOLS, nothing defines it anymore.
5197
aed71cf4
DN
51982010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5199
5200 Remove obsolete uses of HAVE_SHM.
5201 * emacs.c (standard_args):
5202 (Fdump_emacs):
5203 (syms_of_emacs): Remove code depending on HAVE_SHM.
5204
5205 * alloc.c: Remove HAVE_SHM dependent definition.
5206
5207 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5208
aded53ff
GM
52092010-03-18 Glenn Morris <rgm@gnu.org>
5210
17284745
GM
5211 * emacs.c (USAGE4): Hard-code bug address.
5212 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5213 (bug_reporting_address): Remove.
5214 (main): Don't call bug_reporting_address.
5215
aded53ff
GM
5216 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5217 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5218
303500aa
CY
52192010-03-15 Chong Yidong <cyd@stupidchicken.com>
5220
5221 * xfns.c (Fx_create_frame):
5222 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5223 on left.
5224
cef3058f
CY
52252010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5226
5227 * editfns.c (Fformat): Account for string precision when computing
5228 field width (Bug#5710).
5229
a647d59d
CY
52302010-03-12 Chong Yidong <cyd@stupidchicken.com>
5231
4fa42018
CY
5232 * xfns.c (Fx_create_frame): Set default to Qright.
5233
a647d59d
CY
5234 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5235 all window systems.
5236
6da23aaa
EZ
52372010-03-12 Eli Zaretskii <eliz@gnu.org>
5238
a96f6398 5239 These changes remove termcap.c from the build on Posix platforms.
83d02def 5240 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
5241 (MSDOS_OBJ): ...to here.
5242 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5243 now identical to when LIBS_TERMCAP is defined.
5244
5245 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5246
5247 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5248
a96f6398 5249 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 5250
288f9fc0
CY
52512010-03-10 Chong Yidong <cyd@stupidchicken.com>
5252
5253 * Branch for 23.2.
5254
d48cd3f4
SM
52552010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5256
5257 Cleanup setup of gl_state in various parts of the code.
5258 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5259 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5260 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5261 (skip_chars):
5262 * regex.c (regex_compile): Use it.
5263 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5264 it's now set in regex_compile when/if we need it.
5265
618db430
SM
52662010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5267
c0335e02
SM
5268 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5269 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5270 (QUIT): Use it to consolidate code and remove redundancy.
5271 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5272
254c06a8
SM
5273 * regex.c (regex_compile): Setup gl_state as well.
5274
618db430
SM
5275 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5276 (in_classes): Use CONSP before XCAR/XCDR.
5277
233f0c9f
CY
52782010-03-03 Chong Yidong <cyd@stupidchicken.com>
5279
5280 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5281 definitions, so that keyboard macros are correctly handled
5282 (Bug#5481).
5283
75f80e63
EZ
52842010-03-02 Eli Zaretskii <eliz@gnu.org>
5285
5286 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5287 text that could be relocated inside the call to emacs_mule_char.
5288 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5289 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5290
dcfb9bc4
KH
52912010-03-02 Kenichi Handa <handa@m17n.org>
5292
fc9a17bc
KH
5293 * character.c (parse_str_as_multibyte): Fix handling of the
5294 multibyte form of raw-bytes.
5295 (str_as_multibyte): Likewise.
5296
dcfb9bc4
KH
5297 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5298 form of raw-bytes.
5299
412c01b6
CY
53002010-02-28 Chong Yidong <cyd@stupidchicken.com>
5301
5302 * charset.c (load_charset_map_from_file)
5303 (load_charset_map_from_vector): Zero out allocated
5304 charset_map_entries before using them.
5305
df7e1ea0
AS
53062010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5307
5308 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5309
fe69a722
CY
53102010-02-27 Chong Yidong <cyd@stupidchicken.com>
5311
4ed28cf4
CY
5312 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5313 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 5314
7379cfce
KH
53152010-02-26 Kenichi Handa <handa@m17n.org>
5316
f88cc4d6
KH
5317 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5318
7379cfce
KH
5319 * xdisp.c (reseat_to_string): Fix previous change.
5320
cf2fdcfb
CY
53212010-02-26 David Reitter <david.reitter@gmail.com>
5322
5323 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5324 Lisp_Object (Bug#4736).
5325
cc6c7c75
KH
53262010-02-25 Kenichi Handa <handa@m17n.org>
5327
5328 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5329
32e737d7
JD
53302010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5331
5332 * xterm.c (XTflash): Move declarations before statements.
5333
5334 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5335 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5336 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5337 (xg_create_tool_bar): Remove unused variables.
5338 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 5339 (xg_create_frame_widgets): Remove variable grav.
32e737d7 5340
676cae9f
CY
53412010-02-21 Chong Yidong <cyd@stupidchicken.com>
5342
5343 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5344
886cc2b8
SM
53452010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5346
5347 * term.c (fatal): Add a final \n if needed (bug#5596).
5348
ddb2d8e2
CY
53492010-02-18 Chong Yidong <cyd@stupidchicken.com>
5350
5351 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5352
2a4f8d3d
GM
53532010-02-18 Glenn Morris <rgm@gnu.org>
5354
5355 * callint.c (Finteractive): Doc fix.
5356
ebaf11b6
KH
53572010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5358
886cc2b8
SM
5359 * coding.c (record_conversion_result):
5360 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
5361 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5362 memory allocation error.
5363
d0396581
KH
53642010-02-17 Kenichi Handa <handa@m17n.org>
5365
886cc2b8
SM
5366 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5367 Fix for the case that the output buffer is fullfilled.
d0396581
KH
5368 (decode_coding): Setup ccl program here. Keep looping when the
5369 decoder stopped because the output buffer is
5370 fullfilled (bug#5534).
5371
5372 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5373
98599f74
JD
53742010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5375
471e4f04 5376 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 5377 bug #5571.
886cc2b8 5378 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 5379 overdrawn.
98599f74 5380
182659ae
JD
53812010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5382
5383 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5384 doing_interact here.
5385 (ice_connection_closed): New function.
5386 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5387 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5388 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5389 returns I/O error.
5390 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5391 bug #5512.
5392
9be32c4e 53932010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
5394
5395 * nsfont.m (nsfont_open): The system's value for the font descent
5396 is negative, so round it down to avoid clipping.
5397
a2f3eb19
CY
53982010-02-06 Chong Yidong <cyd@stupidchicken.com>
5399
5400 * charset.c (load_charset_map_from_file)
5401 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 5402 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 5403
3088147c
CY
54042010-02-05 Chong Yidong <cyd@stupidchicken.com>
5405
5406 * charset.c (load_charset_map_from_file): Allocate large
5407 charset_map_entries structure on the heap rather than the stack.
5408 (Bug#5526).
5409
b57d9029
KH
54102010-01-31 Kenichi Handa <handa@m17n.org>
5411
5412 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 5413 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 5414
c67d885b
CY
54152010-01-31 Chong Yidong <cyd@stupidchicken.com>
5416
5417 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5418 <deactivated@gmail.com> (Bug#3605).
5419
8fab2362
CY
54202010-01-31 David De La Harpe Golden <david@harpegolden.net>
5421
5422 * fileio.c (Frename_file): Correctly rename symlinks to
5423 directories (Bug#5496).
5424
cb2a62f2
CY
54252010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5426
5427 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5428
944c7a26
AS
54292010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5430
5431 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5432
c024ac08
CY
54332010-01-29 Chong Yidong <cyd@stupidchicken.com>
5434
5435 * frame.c (DEFAULT_ROWS): Change default to 35.
5436
5437 * xfns.c (x_default_font_parameter): Change default XFT font to
5438 monospace-10 (Bug#3643).
5439
af93af83
EZ
54402010-01-29 Eli Zaretskii <eliz@gnu.org>
5441
5442 * w32inevt.c (key_event): Remove unnecessary comparison of
5443 event->uChar.AsciiChar with 128.
5444
ca0eb708
CY
54452010-01-28 Chong Yidong <cyd@stupidchicken.com>
5446
b242dbfc
CY
5447 * fileio.c (Frename_file): Fix last change (Bug#5487).
5448
ca0eb708
CY
5449 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5450
5451 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5452
45d45af5
JD
54532010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5454
5455 * xfns.c (Fx_create_frame): Remove window size matching code from
5456 2010-01-15.
a73f9c9d 5457 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 5458
7e233730
JR
54592010-01-27 Jason Rumney <jasonr@gnu.org>
5460
5461 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 5462 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 5463
86e893e3
KH
54642010-01-27 Kenichi Handa <handa@m17n.org>
5465
5466 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 5467 pattern string (Bug#4209).
86e893e3 5468
8719abec
CY
54692010-01-27 David De La Harpe Golden <david@harpegolden.net>
5470
5471 * fileio.c (Frename_file): Call copy-directory and
5472 delete-directory for directories, in order to handle cross-device
5473 renaming (Bug#3353).
5474
844794c8
JD
54752010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5476
aa3e13b5 5477 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 5478 sizes 24 and 10. Bug #3643.
844794c8 5479
bd4b5750
SM
54802010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5481
8dc1adf6 5482 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
5483 * keymap.c (shadow_lookup): Add `remap' arg.
5484 (describe_map, describe_vector): Update calls to shadow_lookup.
5485 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5486 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
5487 perform remapping during shadow_lookup check of remapped_sequences.
5488
285d07e2
CY
54892010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5490
5491 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5492 png_check_sig, which has been removed in libpng 1.4.
5493
c6d09b8d
CY
54942010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5495
5496 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5497 lacks this header file).
5498
3d782998
YM
54992010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5500
5501 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5502 as in Emacs 22.
5503
2aff7c53
YM
55042010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5505
5506 * lisp.h (make_pure_string): String pointer arg now points to const.
5507
5508 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5509 args now point to const.
5510
74327f7a
EZ
55112010-01-22 Eli Zaretskii <eliz@gnu.org>
5512
5513 * lread.c (Fload): Don't treat files without .elc extension as
5514 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5515 them. (bug#5303)
5516
4d1e6632
KH
55172010-01-20 Kenichi Handa <handa@m17n.org>
5518
5519 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5520 treat the source as actual byte sequence.
5521
1fdede8f
AM
55222010-01-19 Alan Mackenzie <acm@muc.de>
5523
5524 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 5525 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
5526 `signal_after_change_p' to `coherent_change_p', and make the
5527 invocation of `modify_region' conditional on it.
5528
67477f30
JD
55292010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5530
5531 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5532 for debug purpose.
5533 (syms_of_xsettings): Declare xft-settings.
5534
244b023e
CY
55352010-01-18 Chong Yidong <cyd@stupidchicken.com>
5536
5537 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5538
617364fe
CY
55392010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5540
5541 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5542
4fe22cdf
CY
55432010-01-16 Chong Yidong <cyd@stupidchicken.com>
5544
5545 * emacs.c (standard_args): Adjust arg priorities to reflect how
5546 they are processed in startup.el.
5547
e118d2be
AS
55482010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5549
5550 * Makefile.in (lisp, shortlisp): Update.
5551
523ae620
SM
55522010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5553
5554 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5555 code, link the new kboard into all_kboard before running Lisp code,
5556 and protect the new terminal with GCPRO (Bug#5365).
5557 (x_term_init): Remove unused var `atom'.
5558 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5559
f0d13888
JD
55602010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5561
5562 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5563 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5564 to find out usable size of the desktop. Don't make frames larger than
ac146f82 5565 this. Bug #3643.
f0d13888 5566
cc320f07
KH
55672010-01-15 Kenichi Handa <handa@m17n.org>
5568
5569 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5570
7ffdf101
CY
55712010-01-15 Chong Yidong <cyd@stupidchicken.com>
5572
5573 * nsterm.m (Qnone): Define.
5574
5575 * nsfns.m (Qnone): Move definition to nsterm.m.
5576
d12bd917
KH
55772010-01-14 Kenichi Handa <handa@m17n.org>
5578
5579 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5580 systems.
5581
d9a7c140
KH
55822010-01-14 Kenichi Handa <handa@m17n.org>
5583
5584 Make auto-composition work on all buffers even if they are
5585 fundamental mode.
5586
5587 * composite.c (Vauto_composition_mode): New variable.
5588 (composition_compute_stop_pos): Check Vauto_composition_mode
5589 instead of Vauto_composition_function.
5590 (composition_adjust_point, Ffind_composition_internal): Likewise.
5591 (syms_of_composite): Declare Lisp variable
5592 "auto-composition-mode" here.
5593
63286bb2
CY
55942010-01-13 Chong Yidong <cyd@stupidchicken.com>
5595
5596 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5597 during call to vendor-specific-keysyms (Bug#5365).
5598
c2623ee7
YM
55992010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5600
5601 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5602 Call SIGNAL_THREAD_CHECK (Bug#5333).
5603
5604 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5605 Call SIGNAL_THREAD_CHECK.
5606
0b5397c2
SM
56072010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5608
5609 Try to fix bug#5314. This is probably not the final word, tho.
5610 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5611 recent-auto-save-p as a side-effect.
5612 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5613 * buffer.c (Fkill_buffer, reset_buffer):
5614 * editfns.c (Fsubst_char_in_region):
5615 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5616 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5617
dc954cb2
KH
56182010-01-13 Kenichi Handa <handa@m17n.org>
5619
5620 Display buffer name, etc. in mode line by composing correctly.
5621
5622 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5623 STRING is not nil.
0b5397c2 5624 (display_mode_element): Adjust for the change of
dc954cb2
KH
5625 decode_mode_spec and display_line.
5626 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5627 (display_string): Handle the case that STRING is non-null and
5628 LISP_STRING is not nil.
5629
0b5397c2
SM
5630 * xterm.c (x_draw_composite_glyph_string_foreground):
5631 Pay attention to s->face->overstrike.
dc954cb2
KH
5632
5633 * composite.c (composition_reseat_it): Don't check PT if STRING is
5634 non nil.
5635
4a00eaca
YM
56362010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5637
5638 * keyboard.c (read_char): Don't apply previous change when current
5639 buffer is unchanged by command execution.
5640
60abb287
JD
56412010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5642
5643 * keyboard.c (read_char): Return after executing from special map.
5644
893db5bc
GM
56452010-01-12 Glenn Morris <rgm@gnu.org>
5646
5647 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5648 bug-gnu-emacs rather than emacs-pretest-bug.
5649
4d03ece0
CY
56502010-01-11 Chong Yidong <cyd@stupidchicken.com>
5651
5652 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5653 initializing the Lisp variables that depend on them.
5654
1df47e38
YM
56552010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5656
5657 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5658 Clear areas that will not be updated after change of menu bar lines.
5659 Clear the menu bar window's current matrix when the window gets empty.
5660
2f1c6384
CY
56612010-01-09 Chong Yidong <cyd@stupidchicken.com>
5662
e398c61c
CY
5663 * intervals.h, textprop.c (extend_property_ranges): Return value
5664 and args changed. Discard properties that begin at or after the
5665 new end (Bug#5306).
5666
5667 * editfns.c (Fformat): Caller changed.
5668
e5a29a10
CY
5669 * nsterm.m (ns_set_default_prefs): Delete function.
5670 (syms_of_nsterm): Initialize ns_command_modifier,
5671 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5672 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5673
2f1c6384
CY
5674 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5675 position (Bug#4040).
5676
d427a9fa
EZ
56772010-01-09 Eli Zaretskii <eliz@gnu.org>
5678
5679 * editfns.c (Ffloat_time): Doc fix.
5680
21b9df2f
JD
56812010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5682
5683 * xfns.c (Fx_create_frame): Don't create frame larger than display
5684 by default bug#3643.
5685
4b00d3b1
YM
56862010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5687
5688 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5689 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5690 windows above internal border.
5691
5692 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5693 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5694 windows above internal border.
5695
5696 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5697 tool bar windows specially.
5698
5699 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5700
5701 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5702 specially.
5703 (XTflash): Take account of menu bar height.
5704
5705 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5706 specially.
5707
5075d853
JD
57082010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5709
ac146f82 5710 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
5711 also be true before we can return early (bug #5339).
5712
474217c8
CY
57132010-01-06 David Reitter <david.reitter@gmail.com>
5714
5715 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5716 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5717 (Bug#3233).
5718
c0e6d47d
JD
57192010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5720
d0cf45b7
JD
5721 * font.c (font_open_entity): Enable chache and call cached_font_ok
5722 for the driver if defined.
5723 (QCuser_spec): New symbol.
5724 (font_spec_from_name): Save name as user-spec.
5725 (font_load_for_lface): Keep user-spec instead of name.
5726 (font_open_by_name): Save name as user-spec.
5727 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 5728 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
5729
5730 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5731 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5732 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5733
5734 * font.h (struct font_driver): Add cached_font_ok.
5735
c0e6d47d
JD
5736 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5737
7c583cd8
JD
57382010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5739
5740 * xterm.c (x_new_font): Move code for setting rows/cols before
5741 resizing ...
ac146f82 5742 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
5743
5744 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
5745 (xg_frame_resized, xg_frame_set_char_size):
5746 Call xg_clear_under_internal_border.
7c583cd8 5747 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 5748
03f77f0a
CY
57492010-01-05 Chong Yidong <cyd@stupidchicken.com>
5750
5751 * keyboard.c (read_key_sequence): Catch keyboard switch after
5752 making a new tty frame (Bug#5095).
5753
2a1ef5be
KH
57542010-01-05 Kenichi Handa <handa@m17n.org>
5755
5756 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5757
e3eb1dae
SM
57582010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5759
5760 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5761 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5762 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5763
777013f2
MA
57642010-01-03 Michael Albinus <michael.albinus@gmx.de>
5765
5766 * dbusbind.c (xd_add_watch): Improve debug message.
5767 (xd_remove_watch): Improve debug message. If DATA is the session
5768 bus, unset D-Bus session environment.
5769 (Fdbus_init_bus): Pass the bus as argument to
5770 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 5771
8932b1c2
CY
57722010-01-01 Chong Yidong <cyd@stupidchicken.com>
5773
87231e2c
CY
5774 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5775
4801c5fa
CY
5776 * lread.c (syms_of_lread): Make it clearer that these are the
5777 names of loaded files (Bug#5068).
5778
8932b1c2
CY
5779 * eval.c (run_hook_with_args): Handle the case where the global
5780 value has the obsolete single-function form (Bug#5026).
5781
11e3c684
CY
57822009-12-27 Chong Yidong <cyd@stupidchicken.com>
5783
5784 * minibuf.c (Fall_completions): Minor optimization.
5785
5b28ce35
EZ
57862009-12-26 Eli Zaretskii <eliz@gnu.org>
5787
5ce6e4f4
JB
5788 * .gdbinit (pgx): Fix display of composite glyphs.
5789 Display cmp.from and cmp.to as well.
5790 (pitx): Fix last change.
5b28ce35 5791
bcffff46
KH
57922009-12-25 Kenichi Handa <handa@m17n.org>
5793
5794 * composite.h (composition_adjust_point): Update prototype.
5795
5796 * composite.c (composition_reseat_it): Don't make a composition
5797 spanning over point.
5798 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5799 composable characters.
5800 (composition_adjust_point): New arg NEW_PT. Callers changed.
5801
5802 * keyboard.c (command_loop_1): Force redisplay if the last point
5803 was within a composition.
5804 (adjust_point_for_property): Don't adjust point for automatic
5805 composition when called after buffer modification.
5806
3f670e9a
EZ
58072009-12-19 Eli Zaretskii <eliz@gnu.org>
5808
5ce6e4f4
JB
5809 * .gdbinit (pitx): Don't use enum names, use their values.
5810 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5811 (pgx): Don't use enum names, use their values.
5812 (pitmethod): New helper command.
5813 (pitx): Use it to display iteration method.
5814 (pgrowit): New command.
5815
ad903955
EZ
5816 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5817
3f670e9a
EZ
5818 Update dependencies in Makefile.in.
5819
5820 * Makefile.in (alloc.o): Depend on termhooks.h.
5821 (atimer.o): Depend on blockinput.h.
5822 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5823 and frame.h.
5824 (callint.o): Depend on systime.h, coding.h, and composite.h.
5825 (callproc.o): Depend on buffer.h.
5826 (casefiddle.o): Don't depend on charset.h.
5827 (casetab.o): Depend on character.h.
5828 (ccl.o): Depend on composite.h.
5829 (chartab.o): Depend on ccl.h.
5830 (cm.o): Depend on dispextern.h.
5831 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5832 (coding.o): Don't depend on $(INTERVALS_H).
5833 (composite.o): Don't depend on dispextern.h explicitly (it's in
5834 $(INTERVALS_H)). Depend on ccl.h.
5835 (data.o): Depend on systime.h, coding.h, composite.h,
5836 dispextern.h, font.h, and ccl.h.
5837 (dired.o): Depend on composite.h.
5838 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5839 composite.h (it's in $(INTERVALS_H)).
5840 (doc.o): Depend on systime.h, coding.h, and composite.h.
5841 (editfns.o): Don't depend explicitly on dispextern.h.
5842 (emacs.o): Depend on frame.h and coding.h.
5843 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5844 (fileio.o): Depend on frame.h and commands.h. Don't depend
5845 explicitly on dispextern.h.
5846 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5847 composite.h.
5848 (fns.o): Don't depend on termhooks.h.
5849 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5850 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5851 coding.h, $(INTERVALS_H), window.h, xterm.h.
5852 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5853 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5854 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5855 fontset.h, ccl.h, and ftfont.h.
5856 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5857 (gtkutil.o): Depend on dispextern.h and composite.h.
5858 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5859 termhooks.h, and ccl.h.
5860 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5861 (intervals.o): Depend on systime.h and coding.h.
5862 (keyboard.o): Depend on composite.h and coding.h.
5863 (keymap.o): Depend on coding.h and frame.h.
5864 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5865 (macros.o): Depend on systime.h, coding.h, and composite.h.
5866 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5867 and atimer.h.
5868 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5869 dispextern.h explicitly.
0b5397c2
SM
5870 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5871 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
5872 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5873 (regex.o): Don't depend on charset.h.
5874 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5875 (search.o): Don't depend explicitly on composite.h.
5876 (sound.o): Depend on atimer.h and systime.h.
5877 (syntax.o): Don't depend explicitly on composite.h.
5878 (sysdep.o): Depend on coding.h and composite.h.
5879 (term.o): Depend on xterm.h and buffer.h.
5880 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5881 (textprop.o): Don't depend on dispextern.h explicitly.
5882 (undo.o): Depend on dispextern.h.
5883 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5884 dispextern.h and composite.h explicitly.
5885 (xdisp.o): Depend on ccl.h.
5886 (xfaces.o): Depend on coding.h and ccl.h.
5887 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5888 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5889 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5890 ftfont.h.
5891 (xgselect.o): New dependency.
5892 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5893 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5894 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5895 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5896 (xsmfns.o): Depend on frame.h and dispextern.h.
5897 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5898 sysselect.h.
5899
7a6f7fea
AS
59002009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5901
5902 * font.c (Fclear_font_cache): Pass correct cache argument to
5903 font_clear_cache.
5904
f4c21026
AS
59052009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5906
5907 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5908 twice.
5909
f7ab0997
CY
59102009-12-15 Chong Yidong <cyd@stupidchicken.com>
5911
5912 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5913 calling file-remote-p. Reported by Jim Meyering.
5914
fa8e045a
MA
59152009-12-15 Michael Albinus <michael.albinus@gmx.de>
5916
5917 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 5918 avoid compiler warnings. (Bug #5217)
fa8e045a 5919
a63dba42
KH
59202009-12-14 Kenichi Handa <handa@m17n.org>
5921
5922 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5923 in 8-bit encoding.
5924
5ce6e4f4 59252009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
5926
5927 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5928 tooltip windows.
5929
223e5fc6
JD
59302009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5931
36acb2a7
JD
5932 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5933 Xatom_net_window_type.
5934
5935 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5936 Xatom_net_window_type.
5937
b8f00677
JD
5938 * xterm.c (my_log_handler): New function.
5939 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 5940 so we can filter out buggy messages. (Bug #5120).
b8f00677 5941
e5f0bc9a
JD
5942 * xterm.c (xg_scroll_callback): Parameter list changed,
5943 use parameter GtkScrollType to determine scroll/line/page.
5944 Only allow dragging if a button < 4 is grabbed (bug #5177).
5945 (xg_end_scroll_callback): New function.
5946 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5947 xg_create_scroll_bar.
5948
5949 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5950 (scroll_end_callback): Remove.
5951 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5952 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 5953 bug #5177.
e5f0bc9a
JD
5954 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5955 bug #5177.
5956
5957 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5958 (xg_create_scroll_bar): Add GCallback end_callback.
5959
223e5fc6
JD
5960 * xftfont.c (QClcdfilter): New variable.
5961 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5962 (syms_of_xftfont): Initialize QClcdfilter.
5963
3c055b77
JD
59642009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5965
5966 * xsettings.c (struct xsettings): Add member seen.
5967 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 5968 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
5969 (apply_xft_settings): Only update Xft settings with what member seen
5970 indicates as new.
5971
05fe33ff
EZ
59722009-12-12 Eli Zaretskii <eliz@gnu.org>
5973
c4cc8b9a 5974 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
5975 (struct glyph): Use EMACS_INT for charpos.
5976 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5977 region_beg_charpos, region_end_charpos,
5978 redisplay_end_trigger_charpos, and also for
5979 iterator_stack_entry.end_charpos and
5980 iterator_stack_entry.stop_charpos.
5981
e8d7886a
JD
59822009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5983
5ce6e4f4 5984 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
5985 (xg_create_scroll_bar): Call scroll_end_callback on button release
5986 event (bug #5177).
5987 (xg_event_is_for_scrollbar): != replaced with ==.
5988
d0db2ec8
KH
59892009-12-12 Kenichi Handa <handa@m17n.org>
5990
5991 * ftfont.c (struct ftfont_info): New member matrix.
5992 (ftfont_open): Setup xftfont_info->matrix.
5993 (MFLTFontFT): New member matrix.
5994 (FLOOR, CEIL, ROUND): New macros.
5995 (ftfont_get_metrics): Handle matrix transformation.
5996 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5997
5998 * xftfont.c (struct xftfont_info): New member matrix.
5999 (xftfont_open): Setup xftfont_info->matrix.
6000
60012009-12-10 Kenichi Handa <handa@m17n.org>
6002
6003 * xdisp.c (append_space_for_newline): Consider face-remapping.
6004
2cc7b62f
AS
60052009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6006
b87dd913
AS
6007 * xsettings.c: Include "keyboard.h".
6008
eba5eb94
AS
6009 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6010
2cc7b62f
AS
6011 Fix implicit function declarations.
6012 * cmds.c: Include "frame.h".
6013 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6014 * frame.h: Move declaration of delete_frame outside of
6015 HAVE_WINDOW_SYSTEM.
6016
a4ef73c8
CY
60172009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6018
6019 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6020
6021 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6022 GTK builds.
6023
944a300c
AS
60242009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6025
6026 * unexelf.c (unexec): Don't search for .data twice.
6027
022eef62
CY
60282009-12-05 Chong Yidong <cyd@stupidchicken.com>
6029
426ac949
CY
6030 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6031 if push failed.
6032 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6033 of push_display_prop (Bug#5000).
6034
022eef62
CY
6035 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6036 value of font_list_entities (Bug#5085).
6037
be95bee9
JB
60382009-12-04 Juanma Barranquero <lekktu@gmail.com>
6039
6040 Fix `string-to-number' to deal consistently with integers and floats.
6041 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6042 trailing characters, not just whitespace.
6043 (read1): Pass new arg 0 to keep old behavior.
6044 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6045 trailing chars, as it is already done for integers. Doc fixes.
6046 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6047
24c2d7ce
EZ
60482009-12-04 Eli Zaretskii <eliz@gnu.org>
6049
0b5397c2
SM
6050 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6051 Delete unused enumeration value.
24c2d7ce 6052
7e694795
EZ
60532009-12-03 Eli Zaretskii <eliz@gnu.org>
6054
6055 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6056
84b31826
SM
60572009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6058
6059 * process.c (Fmake_network_process): Fix up the tests for
6060 "connectionless socket", so they DTRT for seqpacket sockets as well.
6061
f00c449b
SM
60622009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6063
6064 * process.c (Qseqpacket): New symbol.
6065 (HAVE_SEQPACKET): New macro.
6066 (Fmake_network_process): Accept new :type `seqpacket'.
6067 (init_process): Add `seqpacket' feature when applicable.
6068 (syms_of_process): Initialize Qseqpacket.
6069
8096a0ff
YM
60702009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6071
6072 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6073 if entity is Qnil.
6074
3e0de07f
SM
60752009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6076
6077 * print.c (print_preprocess): Preprocess the key_and_value table of
6078 hashtables, even tho they're "hidden" (bug#5082).
6079
abeafb2a
JD
60802009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6081
6082 * frame.c (frame_make_pointer_invisible)
6083 (frame_make_pointer_visible): Declare f before statements.
6084
4bf47195
EZ
60852009-11-28 Eli Zaretskii <eliz@gnu.org>
6086
6087 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6088 omitted dependencies on lisp.h.
6089
c525b3f2
JD
60902009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6091
ece2d4ed
JD
6092 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6093 is NULL.
6094
6095 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6096
6097 * frame.c (frame_make_pointer_invisible)
3e0de07f 6098 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
6099 frame.
6100
c525b3f2
JD
6101 * search.c (simple_search): Remove warning by making *p const.
6102
2f00e299
DN
61032009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6104
6105 * xdisp.c (power_letter): Remove duplicate const.
6106
084b049b
JD
61072009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6108
a1fadc6f
JD
6109 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6110
5ce6e4f4 6111 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
6112 defaults (bug #5025).
6113
28259cac
SM
61142009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6115
6116 * insdel.c (adjust_markers_for_delete): Move it in the
6117 right direction! (bug#4803)
6118
e8e14166
YM
61192009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6120
6121 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6122
6123 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6124
86677b58
GM
61252009-11-24 Glenn Morris <rgm@gnu.org>
6126
6127 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6128
581e51e8
JD
61292009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6130
cfc86c7a
JD
6131 * Makefile.in: Must create deps for ecrt0.o in its rule.
6132
581e51e8
JD
6133 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6134 because that is what Gtk+ font dialog understands.
6135
6136 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6137 of Fcopy_sequence.
6138 (font_open_by_name): Put name given into QCname for font-object returned.
6139
6140 * frame.c (x_set_font): Save original font name as frame parameter
6141 font-parameter.
6142
6143 * xsettings.c (set_default_xft_settings): New function.
6144 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6145 is found.
6146
8b264ecb
AS
61472009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6148
6149 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6150 searching backwards through multibyte buffer.
6151
872870b2
JD
61522009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6153
6154 * xterm.c: #include xgselect.h.
6155 (x_initialize): Call xgselect_initialize.
6156
6157 * xsettings.c (something_changedCB): C++ comments => C comments.
6158 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6159 does that now.
6160
6161 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6162 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6163 (scroll_bar_button_cb): Remove.
5ce6e4f4 6164 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
6165 event.
6166 (xg_create_scroll_bar): Don't bind button-press-event and
6167 button-release-event.
6168
6169 * process.c: Include xgselect.h if defined (USE_GTK) ||
6170 defined (HAVE_GCONF).
6171 (wait_reading_process_output): Call xg_select for the same condition.
6172
6173 * xgselect.c (xg_select): New function to better integrate with
6174 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6175
6176 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6177
6178 * Makefile.in (XOBJ): Add xgselect.o.
6179
62a6e103
AS
61802009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6181
0b5397c2
SM
6182 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6183 Remove ignored second argument. All callers changed.
62a6e103
AS
6184 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6185 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6186 * xdisp.c (string_char_and_length): Likewise.
6187
b0ca0f33
DN
61882009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6189
6190 * xterm.c (x_new_font):
6191 * print.c (print_object):
6192 * cmds.c (Fself_insert_command): Move declarations before statements.
6193
dd5a6279
CY
61942009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6195
6196 * s/cygwin.h: Remove unneeded linker flags.
6197
4a8e097d
JD
61982009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6199
0d1d0d26
JD
6200 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6201
6202 * xsettings.h: Declare xsettings_get_system_font.
6203
6204 * xsettings.c (xsettings_get_system_font): New function.
6205 (init_gconf): No use initiating gconf unless we have Xft also.
6206 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6207 HAVE_GCONF.
6208
4a8e097d
JD
6209 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6210 add a blank entry so it doesn't collapse into nothing.
6211
8ab1650e
SM
62122009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6213
6214 * lread.c (Funintern): Comment out last change.
6215
82c602f0
RS
62162009-11-19 Richard Stallman <rms@gnu.org>
6217
6218 * lread.c (Funintern): Error if symbol is t or nil.
6219
87e32266
SM
62202009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6221
6222 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6223 representation of Lisp integers.
6224 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6225
1b9ac145
AS
62262009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6227
6228 * lisp.h: Remove declaration of Ffont_get_system_font.
6229 * xfns.c: Move include of "xsettings.h".
6230 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6231
dfb3c4c6
JD
62322009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6233
87e32266
SM
6234 * xsettings.c (something_changedCB, Ffont_get_system_font):
6235 Check use_system_font.
dfb3c4c6
JD
6236 (syms_of_xsettings): DEFVAR font-use-system-font.
6237
9370c1d8
AS
62382009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6239
25fe851a
AS
6240 * xfns.c (x_default_font_parameter): Remove dead assignment.
6241
9370c1d8
AS
6242 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6243
637fa988
JD
62442009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6245
87e32266 6246 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 6247 not have FC_LCD_*. #define them if not there.
a6eb20d8 6248
87e32266 6249 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 6250
637fa988
JD
6251 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6252
6253 * xterm.c (handle_one_xevent): Call xft_settings_event for
6254 ClientMessage, PropertyNotify and DestroyNotify.
6255 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6256 Call xsettings_initialize.
6257
6258 * xftfont.c (xftfont_fix_match): New function.
6259 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6260 Call xftfont_fix_match after XftFontMatch.
6261
6262 * xfont.c (xfont_driver): Initialize all members.
6263
87e32266
SM
6264 * xfns.c (x_default_font_parameter):
6265 Try font from Ffont_get_system_font.
637fa988
JD
6266 Do not get font from x_default_parameter if we got one from
6267 Ffont_get_system_font.
87e32266 6268 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
6269
6270 * w32font.c (w32font_driver): Initialize all members.
6271
6272 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6273
6274 * lisp.h: Declare syms_of_xsettings.
6275
87e32266
SM
6276 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6277 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
6278
6279 * ftfont.c (ftfont_filter_properties): New function.
6280
6281 * frame.c (x_set_font): Remove unused variable lval.
6282
87e32266 6283 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
6284
6285 * font.c (font_put_extra): Don't return if val is nil, it means
6286 boolean option is off.
6287 (font_parse_fcname): Collect all extra properties in extra_props
6288 and call filter_properties for all drivers with extra_props and
6289 font as parameter.
87e32266
SM
6290 (font_open_entity): Do not use cache, it does not pick up new
6291 fontconfig settings like hinting.
637fa988
JD
6292 (font_load_for_lface): If spec had a name in it, store it in entity.
6293
a73f9c9d 6294 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
6295
6296 * config.in: HAVE_GCONF is new.
6297
6298 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6299 xsettings.o is new.
6300
5a942932
KH
63012009-11-17 Kenichi Handa <handa@m17n.org>
6302
6303 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6304 back to the default font in case that no suitable font is found.
6305
b7c7a4d1
SM
63062009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6307
6308 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6309 Suggested by Chad Brown <yandros@mit.edu>.
6310 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6311
072f1e39
JD
63122009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6313
6314 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6315
5d1e70a2
AS
63162009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6317
87e32266 6318 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 6319
a53cfbe5
JD
63202009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6321
473a99b7
JD
6322 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6323 has a parent.
6324
a53cfbe5 6325 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 6326 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
6327
6328 * config.in: Generated (AUTO_DEPEND).
6329
f04bb9b2
MA
63302009-11-13 Michael Albinus <michael.albinus@gmx.de>
6331
b7c7a4d1 6332 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
6333 Vdbus_registered_functions_table, because it contains also
6334 properties. Fix docstring.
b7c7a4d1 6335 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 6336
8f11f7ec
SM
63372009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6338
6339 * alloc.c (mark_object): Don't reprocess marked strings.
6340 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6341 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6342
8a605fe8
KH
63432009-11-13 Kenichi Handa <handa@m17n.org>
6344
8f11f7ec 6345 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
6346 semantics of Vword_combining_categories.
6347 (Vword_combining_categories): Describe the slight change of the
6348 semantics.
6349
241c4680
EZ
63502009-11-13 Eli Zaretskii <eliz@gnu.org>
6351
6352 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6353
6354 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6355
5d58e44c
SM
63562009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6357
6358 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6359
5e13f9d3
JB
63602009-11-12 Juanma Barranquero <lekktu@gmail.com>
6361
6362 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6363
cf54c754
DR
63642009-11-11 David Reitter <david.reitter@gmail.com>
6365
6366 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6367 variables to fix 2009-11-09 change.
6368
a4ada374
DN
63692009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6370
91433552
DN
6371 * process.c (ifflag_def): Make flag_sym constant.
6372 (Fnetwork_interface_info): Use a constant pointer.
6373 (ifflag_table):
6374 * xfns.c (cursor_bits):
6375 * xdisp.c (power_letter):
6376 * termcap.c (speeds, esctab):
6377 * sysdep.c (baud_convert):
6378 * keyboard.c (lispy_accent_codes, modifier_names):
6379 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6380 (jpeg_format, tiff_format, gif_format, svg_format)
6381 (interlace_start, interlace_increment, gs_format):
6382 * gtkutil.c (separator_names):
6383 * fringe.c (swap_nibble):
6384 * fns.c (base64_value_to_char, base64_char_to_value):
6385 * fileio.c (make_temp_name_tbl):
6386 * coding.c (suffixes): Make constant.
6387
f4265f6c
DN
6388 * frame.c (make_initial_frame):
6389 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6390 build_string.
6391 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6392
04420943
DN
6393 * s/freebsd.h:
6394 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6395
0a5d24ae
DN
6396 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6397 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6398
a4ada374
DN
6399 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6400 * xterm.c (syms_of_xterm):
6401 * xfaces.c (syms_of_xfaces):
6402 * xdisp.c (syms_of_xdisp):
6403 * lread.c (syms_of_lread):
6404 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6405 build_string.
91433552 6406
a4ada374
DN
6407 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6408
af98fc7f
SM
64092009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6410
8ab1650e 6411 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 6412
e90292a9
JD
64132009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6414
6415 * keyboard.h: Declare timer_check.
6416
6417 * keyboard.c (timer_check_2): New function that does what the old
6418 timer_check did.
6419 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6420 returned, i.e. don't return -1 with timers pending.
6421
6422 * process.c: Remove extern declaration of timer_check.
6423
6424 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6425 even if timer_check returned -1.
6426
af98fc7f
SM
6427 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6428 xg_dialog_data.
e90292a9
JD
6429 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6430 the event loop.
6431 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6432 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6433 Destroy the dialog after xg_dialog_run.
6434
045b83c0
SM
64352009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6436
6437 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6438
1fb99a3a
JD
64392009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6440
6441 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6442
04e452cb
JB
64432009-11-09 Juanma Barranquero <lekktu@gmail.com>
6444
6445 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6446
ef7417fd
SM
64472009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6448
6449 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6450 w32menu.c, and nsmenu.m.
6451 Simplify the obsolete case where position is nil.
6452 (cleanup_popup_menu): New function, moved from nsmenu.m.
6453 (struct skp): Remove slot `notreal'.
6454 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6455 adjust callers.
6456 (single_menu_item): Adjust call to parse_menu_item.
6457 (syms_of_menu): Defsubr x-popup-menu.
6458 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6459 (keymap_panes): Don't export any more.
6460 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6461 (xmenu_show): Declare.
6462 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6463 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6464 * keyboard.h (parse_menu_item): Update declaration.
6465 * xmenu.c (Fx_popup_menu): Remove.
6466 (syms_of_xmenu): Don't defsubr x-popup-menu.
6467 * w32menu.c (Fx_popup_menu): Remove.
6468 (syms_of_w32menu): Don't defsubr x-popup-menu.
6469 * nsmenu.m (cleanup_popup_menu): Remove.
6470 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6471 moved to menu.c's Fx_popup_menu.
6472 (Fx_popup_menu): Remove.
6473 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6474 menu_items (it's done in menu.c already).
6475
424d6179
SM
64762009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6477
6478 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6479 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6480
c0df13a6 64812009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
6482
6483 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 6484 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
6485 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6486 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6487
2de9f71c
SM
64882009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6489
6490 Let integers use up 2 tags to give them one extra bit and thus double
6491 their range.
6492 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6493 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6494 New macros.
6495 (enum Lisp_Type): Use them. Give explicit values.
6496 (Lisp_Type_Limit): Remove.
6497 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6498 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6499 Pay attention to USE_2_TAGS_FOR_INTS.
6500 (INTEGERP): Use LISP_INT_TAG_P.
6501 * fns.c (internal_equal): Simplify the default case.
6502 (sxhash): Use case_Lisp_Int.
6503 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6504 any more.
6505 (Ftype_of): Use case_Lisp_Int.
6506 (store_symval_forwarding): Take into account the fact that Ints can
6507 now have more than one tag.
6508 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 6509 (buffer_slot_type_mismatch):
2de9f71c
SM
6510 * xfaces.c (face_attr_equal_p):
6511 * print.c (print_object):
6512 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6513 Use case_Lisp_Int.
6514
323637a2
EZ
65152009-11-06 Eli Zaretskii <eliz@gnu.org>
6516
7ac65b38
EZ
6517 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6518
323637a2
EZ
6519 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6520 warning.
6521
e511451f
JD
65222009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6523
6524 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6525
6526 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6527
6528 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6529 ButtonPressRelease and MotionNotify (bug#4870).
6530
5e2327cf
DN
65312009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6532
5adc433e
DN
6533 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6534
d67b4f80
DN
6535 * xterm.c (syms_of_xterm):
6536 * xselect.c (syms_of_xselect):
6537 * xmenu.c (syms_of_xmenu):
6538 * xfns.c (syms_of_xfns):
6539 * xfaces.c (syms_of_xfaces):
6540 * xdisp.c (syms_of_xdisp):
6541 * window.c (syms_of_window):
6542 * w32fns.c (syms_of_w32fns):
6543 * undo.c (syms_of_undo):
6544 * textprop.c (syms_of_textprop):
6545 * terminal.c (syms_of_terminal):
6546 * syntax.c (syms_of_syntax):
6547 * sound.c (syms_of_sound):
6548 * search.c (syms_of_search):
6549 * print.c (syms_of_print):
6550 * minibuf.c (syms_of_minibuf):
6551 * macros.c (syms_of_macros):
6552 * keymap.c (syms_of_keymap, initial_define_key)
6553 (initial_define_lispy_key):
6554 * keyboard.c (syms_of_keyboard):
6555 * insdel.c (syms_of_insdel):
6556 * image.c (syms_of_image):
6557 * fringe.c (syms_of_fringe):
6558 * frame.c (syms_of_frame):
6559 * fontset.c (syms_of_fontset):
6560 * fns.c (syms_of_fns):
6561 * fns.c (syms_of_fns):
6562 * fileio.c (syms_of_fileio):
6563 * fileio.c (syms_of_fileio):
6564 * eval.c (syms_of_eval):
6565 * doc.c (syms_of_doc):
6566 * dispnew.c (syms_of_display):
6567 * dired.c (syms_of_dired):
6568 * dbusbind.c (syms_of_dbusbind):
6569 * data.c (syms_of_data):
6570 * composite.c (syms_of_composite):
6571 * coding.c (syms_of_coding):
6572 * cmds.c (syms_of_cmds):
6573 * charset.c (define_charset_internal, syms_of_character):
6574 * ccl.c (syms_of_ccl):
6575 * category.c (syms_of_category, init_category_once):
6576 * casetab.c (syms_of_casetab):
6577 * casefiddle.c (syms_of_casefiddle):
6578 * callint.c (syms_of_callint):
6579 * bytecode.c (syms_of_bytecode):
6580 * buffer.c (keys_of_buffer, syms_of_buffer):
6581 * alloc.c (syms_of_alloc):
6582 * process.c (syms_of_process, init_process):
6583 * lread.c (syms_of_lread, init_obarray):
6584 * font.c (build_style_table):
6585 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6586 intern_c_string, calls to make_pure_string with
6587 make_pure_c_string. Use pure_cons instead of Fcons.
6588
5e2327cf
DN
6589 * process.c (socket_options): Make it const.
6590 (set_socket_option, init_process): Use a const pointer.
6591
6592 * lread.c (intern_c_string): New function.
6593 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6594 (defvar_int): Uset it. Make the name const char*.
6595
6596 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6597 (defvar_int): Update prototypes.
6598 (DEFUN, EXFUN): Support for prototypes is now required.
6599 (intern_c_string): New prototype.
6600 (struct Lisp_Subr): Make symbol_name constant.
6601
6602 * font.c (struct table_entry): Remove unused member. Make NAMES
6603 constant.
6604 (weight_table, slant_table, width_table): Make constant.
6605
6606 * emacs.c (struct standard_args): Make name and longname constant.
6607
6608 * character.h (DEFSYM): Use intern_c_string.
6609
a56eaaef
DN
66102009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6611
6612 * alloc.c (make_pure_c_string): New function.
6613
6614 * eval.c (Fautoload): Purecopy all arguments.
6615
f6a07420
KH
66162009-11-05 Kenichi Handa <handa@m17n.org>
6617
6618 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6619 the buffer in case of replace.
6620
5d28d4b1
DN
66212009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6622
6623 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6624
b349d111
SM
66252009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6626
d528b1ce
SM
6627 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6628 when applicable (bug#4851).
6629
b349d111
SM
6630 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6631 (P_): Support for prototypes is now required.
6632
c38eb027
CY
66332009-10-31 Chong Yidong <cyd@stupidchicken.com>
6634
6635 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6636 (Bug#4827).
6637
0405f8d9
EZ
66382009-10-30 Eli Zaretskii <eliz@gnu.org>
6639
d528b1ce 6640 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 6641
ca0a881a
DN
66422009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6643
6644 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6645
d528b1ce
SM
6646 * lread.c (Fload): Purecopy the file name when building
6647 Vpreloaded_file_list.
ca0a881a 6648
47e0e0e4
JR
66492009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6650
6651 * w32fns.c (syms_of_w32fns): Change default value of
6652 w32-scroll-lock-modifier to nil. (Bug#2827)
6653
057bce6f
JB
66542009-10-26 Juanma Barranquero <lekktu@gmail.com>
6655
782a943e 6656 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 6657
242bc74c
AS
66582009-10-26 Andreas Schwab <schwab@redhat.com>
6659
6660 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6661
522d013a
JB
66622009-10-26 Juanma Barranquero <lekktu@gmail.com>
6663
6664 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6665 For delta < 0, skip check that only makes sense when the mini-window
6666 is going to be enlarged. (Bug#4534)
6667
18060980
CY
66682009-10-25 Chong Yidong <cyd@stupidchicken.com>
6669
6670 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6671 string in menu maps (Bug#4471).
6672
fec8f0fe
CY
66732009-10-24 Chong Yidong <cyd@stupidchicken.com>
6674
6675 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6676 FRAME_NS_VIEW on terminal frames (Bug#4765).
6677
10d66ec0
AS
66782009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6679
1cae01f7
AS
6680 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6681 DBUS_TYPE_UINTnn separately to get proper sign extension.
6682
58a12889
AS
6683 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6684 can properly handle unsigned types.
d528b1ce 6685 (make_uid, make_gid): Remove.
58a12889 6686
987c9327
AS
6687 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6688 types again.
6689
522d013a 6690 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
6691 (system_process_attributes): Likewise.
6692
905a9ed3
DN
66932009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6694
6695 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6696
6697 * eval.c (Fautoload): Purecopy the filename. Simplify.
6698
6699 * category.c (Fdefine_category): Purecopy docstring.
6700
a599b3e8
AS
67012009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6702
7b792fc9
AS
6703 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6704
a599b3e8
AS
6705 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6706
b35ac83e
CY
67072009-10-23 Chong Yidong <cyd@stupidchicken.com>
6708
6709 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6710 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6711 (Bug#4775).
6712
e8903e00
SM
67132009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6714
6715 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6716 (init_fileio_once):
6717 * lisp.h (init_fileio_once): Remove.
6718 * emacs.c (main): Don't call init_fileio_once.
6719
8f43cbf3
DN
67202009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6721
6722 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6723
26898943
AS
67242009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6725
6726 * doprnt.c (doprnt): Fix overflow check.
6727
5c646d5a
JD
67282009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6729
3132a7ea
JD
6730 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6731
5c646d5a
JD
6732 * xterm.h (x_wait_for_event): Declare it.
6733
6734 * xterm.c (pending_event_wait): New variable.
6735 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6736 see pending_event_wait.eventtype.
6737 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
6738 (x_new_font): Call change_frame_size with new rows/columns before we
6739 try to resize the frame.
5c646d5a 6740 (x_wait_for_event): New function.
d528b1ce
SM
6741 (x_set_window_size_1): Don't change gravity unless change_gravity
6742 is set.
5c646d5a
JD
6743 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6744 don't change frame size, instead wait for the ConfigureNotify.
6745 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6746 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6747 (x_initialize): Initialize pending_event_wait.
6748
6749 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6750 size.
6751
6752 * widget.c (EmacsFrameSetValues): Add comment.
6753 (EmacsFrameSetCharSize): Just call x_set_window_size.
6754
6755 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6756 x_wait_for_event.
d528b1ce 6757 (flush_and_sync): Remove again.
5c646d5a
JD
6758 (xg_get_font_name): Suggest monospace if no previous font is known.
6759
e9c1637d
SM
67602009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6761
6762 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 6763 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 6764
5a72cccb
YM
67652009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6766
6767 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6768 processing pending events when event is filtered for input method.
ab04798f 6769 (Bug#3681)
5a72cccb 6770
2629aa37
JB
67712009-10-20 Juanma Barranquero <lekktu@gmail.com>
6772
6773 * fns.c: Add #endif accidentally removed in previous change.
6774
c3417a74
DN
67752009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6776
6777 * fns.c: Remove code for unsupported system: MAC_OS.
6778 * image.c: Likewise. Include setjmp.h.
6779
9685cef2
JD
67802009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6781
6782 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6783 pixel -1 (bug #4742).
6784
d7306fe6
DN
67852009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6786
019d2c4c
DN
6787 * process.c (create_pty): Remove conditionals for no longer
6788 supported systems: UNIPLUS and RTU.
6789
ee6bacd4
DN
6790 * xterm.c:
6791 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6792
d7306fe6
DN
6793 * alloc.c: Do not define struct catchtag.
6794 * eval.c: Move struct catchtag definition ...
6795 * lisp.h: ... here.
6796
6797 * image.c: Move png.h #include earlier to avoid warnings.
6798
6799 * xterm.c:
6800 * xsmfns.c:
6801 * xselect.c:
6802 * xrdb.c:
6803 * xmenu.c:
6804 * xftfont.c:
6805 * xfont.c:
6806 * xfns.c:
6807 * xfaces.c:
6808 * xdisp.c:
6809 * window.c:
6810 * widget.c:
6811 * w32xfns.c:
6812 * w32uniscribe.c:
6813 * w32term.c:
6814 * w32select.c:
6815 * w32reg.c:
6816 * w32proc.c:
6817 * w32menu.c:
6818 * w32inevt.c:
6819 * w32heap.c:
6820 * w32font.c:
6821 * w32fns.c:
6822 * w32console.c:
6823 * w32.c:
6824 * w16select.c:
6825 * vm-limit.c:
6826 * unexsol.c:
6827 * unexec.c:
6828 * unexcw.c:
6829 * unexaix.c:
6830 * undo.c:
6831 * tparam.c:
6832 * textprop.c:
6833 * terminfo.c:
6834 * terminal.c:
6835 * termcap.c:
6836 * term.c:
6837 * syntax.c:
6838 * sound.c:
6839 * sheap.c:
6840 * search.c:
6841 * scroll.c:
6842 * region-cache.c:
6843 * regex.c:
6844 * ralloc.c:
6845 * process.c:
6846 * print.c:
b024548b
DN
6847 * nsterm.m:
6848 * nsselect.m:
6849 * nsmenu.m:
6850 * nsimage.m:
6851 * nsfont.m:
6852 * nsfns.m:
d7306fe6
DN
6853 * msdos.c:
6854 * minibuf.c:
6855 * menu.c:
6856 * marker.c:
6857 * macros.c:
6858 * keymap.c:
6859 * keyboard.c:
6860 * intervals.c:
6861 * insdel.c:
6862 * indent.c:
6863 * gtkutil.c:
6864 * ftxfont.c:
6865 * ftfont.c:
6866 * fringe.c:
6867 * frame.c:
6868 * fontset.c:
6869 * font.c:
6870 * fns.c:
6871 * floatfns.c:
6872 * filelock.c:
6873 * fileio.c:
6874 * emacs.c:
6875 * editfns.c:
6876 * dosfns.c:
6877 * doprnt.c:
6878 * doc.c:
6879 * dispnew.c:
6880 * dired.c:
6881 * dbusbind.c:
6882 * data.c:
6883 * composite.c:
6884 * coding.c:
6885 * cmds.c:
6886 * cm.c:
6887 * chartab.c:
6888 * charset.c:
6889 * character.c:
6890 * ccl.c:
6891 * category.c:
6892 * casetab.c:
6893 * casefiddle.c:
6894 * callproc.c:
6895 * callint.c:
6896 * bytecode.c:
6897 * buffer.c:
6898 * atimer.c: Include setjmp.h. (Bug#4643)
6899
fd5f21e6
SM
69002009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6901
4c0354d7
SM
6902 Remove leftover table unibyte_to_multibyte_table.
6903 * character.c (unibyte_to_multibyte_table): Remove.
6904 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6905 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6906 * character.h (UNIBYTE_TO_CHAR): New macro.
6907 (MAKE_CHAR_MULTIBYTE): Use it.
6908 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6909 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6910 (message_dolog, set_message_1):
6911 * search.c (Freplace_match):
6912 * editfns.c (Fcompare_buffer_substrings):
6913 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6914 (concat):
6915 * insdel.c (copy_text, count_size_as_multibyte):
6916 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6917 * term.c (produce_glyphs):
6918 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6919 * regex.c (RE_CHAR_TO_MULTIBYTE):
6920 * cmds.c (internal_self_insert):
6921 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6922
fd5f21e6
SM
6923 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6924
4418646e
DN
69252009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6926
6927 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6928
35f5c1d2
JB
69292009-10-16 Juanma Barranquero <lekktu@gmail.com>
6930
6931 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6932
a0cd8f6b
AR
69332009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6934
6935 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6936 still needed under Tiger.
6937
6938 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6939
6940 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6941 __Apple__.
6942
6943 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6944
01a8d3fa
KH
69452009-10-15 Kenichi Handa <handa@m17n.org>
6946
6947 * print.c (print_object): Escape a symbol like "2E10" too.
6948
bf6c75c9 69492009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
6950
6951 Cleanups and changes for 64-bit compile under Snow Leopard.
6952 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
6953
6954 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6955
c5959062 6956 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
6957 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6958 cast argument.
6959 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 6960 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
6961
6962 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6963
6964 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6965 where appropriate.
6966
6967 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6968 where appropriate.
6e4780c5
JB
6969 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6970 Use stringWithUTF8String.
bf6c75c9
AR
6971 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6972
6e4780c5
JB
6973 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6974 Add formal protocol mention to inheritance.
bf6c75c9
AR
6975 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6976
6e4780c5
JB
6977 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6978 Fix printf format.
bf6c75c9
AR
6979 (ns_query_color): Use CGFloat where appropriate.
6980 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 6981 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
6982 argument.
6983
3d87f118
AR
6984 * config.in (NS_HAVE_NSINTEGER): Drop.
6985
a95c8102
AR
6986 * dbusbind.c (dbus-method-return-internal)
6987 (dbus-method-error-internal): Use long format in printf, and cast
6988 argument.
6989
6990 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6991 in printf, and cast argument.
6992
6873acca 6993 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6994 cast argument.
6995
9ec6f100
GM
69962009-10-11 Glenn Morris <rgm@gnu.org>
6997
6998 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6999
5be883cd
JD
70002009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7001
7002 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7003 menu bar with a small width so it doesn't enlarge the frame.
7004
d7a39b51
JB
70052009-10-08 Juanma Barranquero <lekktu@gmail.com>
7006
7007 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7008
0c2b6f8e
GM
70092009-10-06 Glenn Morris <rgm@gnu.org>
7010
7011 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7012 SOME_MACHINE_LISP (this enters indirectly via DOC).
7013
e02131a2
EZ
70142009-10-05 Eli Zaretskii <eliz@gnu.org>
7015
7016 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7017
b4744254
EZ
70182009-10-04 Eli Zaretskii <eliz@gnu.org>
7019
7020 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7021 Doc fix.
7022
dbf64827
JB
70232009-10-03 Martin Rudalics <rudalics@gmx.at>
7024
7025 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7026
e9a0aef8
MA
70272009-10-02 Michael Albinus <michael.albinus@gmx.de>
7028
d528b1ce 7029 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
7030 used anymore outside fileio.c.
7031
7032 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7033
64eb2b56
JB
70342009-10-01 Juanma Barranquero <lekktu@gmail.com>
7035
7036 * lisp.h (Qdelete_directory_internal):
7037 Declare, instead of Qdelete_directory.
7038
7039 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7040
9d28c33e
SM
70412009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7042
7043 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7044
9d8f3bd9
MA
70452009-10-01 Michael Albinus <michael.albinus@gmx.de>
7046
9d28c33e 7047 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
7048 Fdelete_directory. It is not a command anymore. It has no file
7049 name handler.
7050
9694740b
SM
70512009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7052
7053 * xdisp.c (get_next_display_element): Use an enum in last change.
7054
748e162f
KH
70552009-09-28 Kenichi Handa <handa@m17n.org>
7056
9694740b 7057 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
7058 unibyte_display_via_language_environment in handling
7059 Vnobreak_char_display.
7060
17efd58d
AR
70612009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7062
7063 * nsterm.h (ns_app_name): New extern variable.
7064
7065 * nsterm.m (ns_app_name): New variable.
7066 (ns_term_init): Set and use it.
7067 (ns_term_shutdown): Use it.
7068
7069 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7070 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7071
7072 * nsfns.m (ns_set_name_iconic, ns_set_name)
7073 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7074 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7075
9694740b
SM
7076 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7077 Remove double-casting in client_data comparison.
31c2d412 7078
3208cb35
YM
70792009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7080
7081 * keyboard.c (make_lispy_event): Remember last wheel direction.
7082 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7083
b7d552d6
GM
70842009-09-26 Glenn Morris <rgm@gnu.org>
7085
7086 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7087 internal.elc. Add term/pc-win.elc.
7088 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7089 term/x-win.elc.
7090 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7091 term/w32-win.elc.
7092 (NS_SUPPORT): New.
7093 (lisp): Add NS_SUPPORT.
7094 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7095
4ff670a8
DR
70962009-09-25 David Reitter <david.reitter@gmail.com>
7097
7098 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7099 on Mac OS X 10.6+ (bug#4513).
7100
feabfb6c
JB
71012009-09-24 Juanma Barranquero <lekktu@gmail.com>
7102
7103 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
7104 some parts of Emacs code (like font selection) don't grok them.
7105 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 7106
de59072a
AS
71072009-09-24 Andreas Schwab <schwab@redhat.com>
7108
7109 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7110
a489517b
JB
71112009-09-24 Juanma Barranquero <lekktu@gmail.com>
7112
7113 * dired.c (Fdirectory_files): Fix typo in docstring.
7114
0592970c
AR
71152009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7116
7117 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7118 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7119 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7120 under GNUstep.
7121 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7122
7123 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7124 glyph advancement.
7125
48e8a88b
AR
71262009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7127
7128 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 7129 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
7130
7131 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7132 deleted (bug #4492).
7133
e14f0a78
AR
7134 * nsfont.m (Vns_reg_to_script): New lisp variable.
7135 (syms_of_nsfont): Declare it.
7136 (ns_registry_to_script): New function.
7137 (ns_get_req_script): Call it.
7138 (ns_findfonts): Don't give up on non-unicode registry.
7139
7140 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7141
5b650faa
SM
71422009-09-20 Tom Tromey <tromey@redhat.com>
7143
7144 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7145 batch mode (bug#4228).
7146
a489517b 71472009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
7148
7149 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 7150 carefully. (Bug #4339)
0bae4e09 7151
fcfe06f3
CY
71522009-09-18 Chong Yidong <cyd@stupidchicken.com>
7153
d798ba87 7154 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 7155
31642728
AR
71562009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7157
7158 * emacs.c (inhibit_x_resources): Update doc string for NS.
7159 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 7160 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
7161
7162 * nsterm.h (ns_no_defaults): Remove.
7163
7164 * nsterm.m (ns_no_defaults): Remove.
7165 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7166 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
7167 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7168 don't update the NSWindow itself.
7169 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 7170 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
7171
7172 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7173 ns_use_qd_smoothing.
7174
7175 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7176 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 7177 (x-close-connection): Drop PSFlush() under OS X.
a489517b 7178 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 7179
8686ac71
JB
71802009-09-17 Juanma Barranquero <lekktu@gmail.com>
7181
7182 * emacs.c (inhibit_x_resources): New variable.
7183 (main) [HAVE_NS]: Don't process --quick command line option.
7184 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7185
7186 * lisp.h (inhibit_x_resources): Declare it extern.
7187
7188 * w32reg.c (x_get_string_resource):
7189 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7190
e227ba05
EZ
71912009-09-17 Eli Zaretskii <eliz@gnu.org>
7192
362654a6
JB
7193 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7194 Add lisp/term/internal.elc.
e227ba05 7195
742d40e8
SM
71962009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7197
7198 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7199 (bug#4461).
7200
005bd5a2
DN
72012009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7202
7203 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7204
7205 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7206 (OBJECTS_MACHINE): Remove, unused.
7207
f9af9719
SM
72082009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7209
7210 * frame.c (x_get_resource_string): Remove unused.
7211
0307c7d2
JD
72122009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7213
7214 * xterm.c (x_new_font): Call change_frame_size before calling
7215 x_set_window_size, in case frame size won't change.
7216
7217 * frame.c (x_set_font): Remove dead code.
7218
428b13d6
SM
72192009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7220
7221 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7222
5766c380
SM
72232009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7224
7225 * lread.c (Fload): Don't output a message after loading an obsolete
7226 package any more (done in Lisp now).
7227
2fd0161b
CY
72282009-09-12 Chong Yidong <cyd@stupidchicken.com>
7229
7230 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7231
bc5e75b6
SM
72322009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7233
7234 * keymap.c (Fwhere_is_internal): Use nconc2.
7235
c31c985e
AM
72362009-09-11 Alan Mackenzie <acm@muc.de>
7237
7238 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7239 batch mode.
7240
78012bd2
AS
72412009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7242
7243 * xdisp.c (display_mode_element): Detect cycles.
7244
9d889332
SM
72452009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7246
7247 * keymap.c (where_is_internal): Don't erroneously return nil right after
7248 filling the cache.
7249 (where_is_internal_1): Fix up typo.
7250
7ab5d780
GM
72512009-09-11 Glenn Morris <rgm@gnu.org>
7252
7253 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7254 share a common doc-string.
7255
5238a749
SM
72562009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7257
66d77eda
SM
7258 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7259 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7260
5238a749
SM
7261 * keymap.c (QCadvertised_binding): New constant.
7262 (syms_of_keymap): Initialize it.
7263 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7264 if applicable.
7265
19f48442
SM
72662009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7267
50d4ba39
SM
7268 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7269 (parse_menu_item): Streamline since bindings are recomputed all the
7270 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7271 more and don't support lmenu's menu-alias any more either.
7272
a88a5372
SM
7273 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7274 (where_is_internal): Strip it down to only traverse the keymaps.
7275 Move the cache handling from Fwhere_is_internal to here.
7276 (Fwhere_is_internal): Move the handling of remapping and the choice of
7277 the best binding from where_is_internal to here.
7278 Unify the cached/noncached paths, so remapping is also handled
7279 correctly when the cache is used, and so the cache can be used to
7280 speed up remap-handling when applicable.
7281 Give preference to non-remapped bindings.
7282 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7283 non-remapped bindings.
7284 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7285 command remapping.
7286
19f48442
SM
7287 * xdisp.c (display_mode_element): Move list length limit from 50 to
7288 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7289
599498c3 72902009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
7291
7292 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7293
f9b7b5ac
SM
72942009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7295
a53af587
JB
7296 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7297 (Bug#4334)
7298
f9b7b5ac
SM
7299 * keymap.c (where_is_internal): Filter out shadowed remappings.
7300 Assume that where_is_internal returns unshadowed bindings to simplify
7301 the code and get rid of the gotos. Use ASIZE.
7302
04f4b72d
JD
73032009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7304
4da146f2
JD
7305 * xterm.c (x_focus_changed): If we get a focusout and pointer
7306 is invisible, make it visible.
7307
04f4b72d
JD
7308 * xterm.h: Remove condition for declaration of
7309 x_*_window_to_frame.
7310
7cef7ce3
SM
73112009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7312
7313 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7314 initial terminal as well.
7315
a54fa5b7
JD
73162009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7317
7318 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 7319 x_menubar_window_to_frame.
a54fa5b7 7320
50426a04 7321 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
7322 (XTmouse_position): Do not return valid positions
7323 for clicks in the menubar and the toolbar for Gtk+.
7324
7325 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7326 if the widget for the event has the same top level as a frame,
7327 return the frame.
7328 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7329 internal windows, bug #4122.
7330 (x_non_menubar_window_to_frame): Remove.
7331
5a021dd0
GM
73322009-09-02 Glenn Morris <rgm@gnu.org>
7333
7334 * buffer.c (default-major-mode): Move most of the doc from here...
7335 (major-mode): ... to here.
7336
548fe2f3
NR
73372009-08-30 Nick Roberts <nickrob@snap.net.nz>
7338
7339 * process.c (wait_reading_process_output): Keep the descriptor
7340 when pty is used by a non-child process, e.g., in I/O buffer of
7341 GDB this allows inferior to be restarted.
7342
e0840eef
EZ
73432009-08-29 Eli Zaretskii <eliz@gnu.org>
7344
7345 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7346 both branches into one.
7347
82e98df4
SM
73482009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7349
7350 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7351 (main): Use enable-multibyte-characters rather than
7352 default-enable-multibyte-characters. Output a warning message when
7353 running a unibyte session.
7354
890617cb
YM
73552009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7356
7357 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7358 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7359 (copy_data_segment): Also copy __program_vars section.
7360 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7361 (dump_it) [LC_DYLD_INFO]: Use it.
7362
7363 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7364
e7adeadc
EZ
73652009-08-28 Eli Zaretskii <eliz@gnu.org>
7366
7367 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7368 $(SRC)/buildobj.h.
7369 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7370 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7371 $(SRC)/buildobj.h.
7372 (clean): Add buildobj.h.
7373
3ed8bbdc
TZ
73742009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7375
7376 * print.c (print_object): Set escapeflag to 1 when printing
7377 hashtable keys and values.
7378
155a6764
SM
73792009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7380
7381 * lread.c (read_integer): Use doubles (and potentially return a float
7382 number) as we do in string-to-number.
7383 (read1): Use strtol to read integers, signal errors on strtol's
7384 overflow and use floats if strtol's output is too large for
7385 Elisp integers.
7386
877610de
EZ
73872009-08-27 Eli Zaretskii <eliz@gnu.org>
7388
7389 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7390 (make-buildobj-SH): Fix last change.
7391 (SRC): Move to before where it's first used.
7392
ef73e7be
KH
73932009-08-27 Kenichi Handa <handa@m17n.org>
7394
550c8289
KH
7395 * process.c (send_process): Use encode_coding_object instead of
7396 encode_coding_string to perform eol-conversion even if the string
7397 is unibyte.
7398
60afa08d
KH
7399 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7400 character.
7401
ef73e7be 7402 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 7403 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 7404
7b3a82d7
DN
74052009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7406
5654bf63
DN
7407 * callproc.c (Fcall_process): Remove always true #if.
7408
7b3a82d7
DN
7409 * lisp.h: Replace #if 0 code for checking with text pointing to
7410 the --enable-checking configure flag.
7411
7412 * emacs.c (main): Mention the --enable-profiling configure flag
7413 instead of using CFLAGS.
7414
878bde49
KR
74152009-08-26 Ken Raeburn <raeburn@raeburn.org>
7416
7417 * Makefile.in (buildobj.h): New target.
7418 (doc.o): Depend on it.
7419 (temacs${EXEEXT}): Don't generate buildobj.lst.
7420 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7421 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7422 ($(BLD)/doc.$(O)): Depend on it.
7423 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7424 provided by Eli Zaretskii.)
7425 ($(TEMACS)): Don't generate buildobj.lst.
7426 * doc.c: Include buildobj.h.
7427 (buildobj): New static variable.
7428 (Fsnarf_documentation): Use it, instead of opening and reading
7429 buildobj.lst.
7430
1574224c
MA
74312009-08-25 Michael Albinus <michael.albinus@gmx.de>
7432
7433 * dbusbind.c (Fdbus_call_method)
7434 (Fdbus_call_method_asynchronously): Use English numeric format for
7435 timeout values in doc string.
7436
d9da2f45
KH
74372009-08-25 Kenichi Handa <handa@m17n.org>
7438
ef73e7be
KH
7439 * alloc.c (mark_char_table): New function.
7440 (mark_object): Use mark_char_table for a char-table.
7441
d9da2f45
KH
7442 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7443 (CHAR_TABLE_REF): Use it.
7444
c8edcc01
KR
74452009-08-23 Ken Raeburn <raeburn@raeburn.org>
7446
7447 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7448 before invoking the newly build emacs to check for load-path
7449 shadowing.
7450
7763401b
GM
74512009-08-22 Glenn Morris <rgm@gnu.org>
7452
7453 * Makefile.in (bootstrap_exe): New variable.
7454 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7455 Use ${bootstrap_exe}.
7456
729eadda
EZ
74572009-08-22 Eli Zaretskii <eliz@gnu.org>
7458
7459 * coding.h (encode_coding_string): Don't encode unibyte strings.
7460 (Bug#4047)
7461
eb4c6ace
MA
74622009-08-22 Michael Albinus <michael.albinus@gmx.de>
7463
7464 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7465
7466 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7467 intended as hotfix only.
7468 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7469
36e34d1b
AR
74702009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7471
7472 * nsterm.m (ns_get_color): Update documentation properly for last
7473 change, and clean up loose ends in the code left by it. Fix
7474 longstanding bug with 16-bit hex parsing, and add support for
7475 yet another X11 format (rgb:r/g/b) for compatibility.
7476 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7477 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7478
f983eb8a
SM
74792009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7480
7481 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7482
3f56d3c6
MA
74832009-08-20 Michael Albinus <michael.albinus@gmx.de>
7484
7485 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7486 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7487 (xd_initialize, xd_pending_messages): Check, whether
7488 $DBUS_SESSION_BUS_ADDRESS is set.
7489
fb641d68
YM
74902009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7491
7492 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7493
7494 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7495
cf59a374
GM
74962009-08-20 Glenn Morris <rgm@gnu.org>
7497
7498 * emacs.c (system-type): Doc fix.
7499
1373f3be
SM
75002009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7501
7502 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7503 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7504
058ed861
MA
75052009-08-18 Michael Albinus <michael.albinus@gmx.de>
7506
1373f3be
SM
7507 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7508 New functions.
058ed861
MA
7509 (xd_initialize): Revert change from 2009-08-16.
7510
563a866e 75112009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
7512
7513 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 7514 font-group vector, return nil.
5fc05db0 7515
e42bdf01
CY
75162009-08-17 Chong Yidong <cyd@stupidchicken.com>
7517
7518 * process.c (status_notify): Don't perform redisplay.
7519 (Fdelete_process, list_processes_1, process_send_signal):
7520 Expliticly perform redisplay.
7521 (wait_reading_process_output): Always check process status, but
7522 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7523
4230ab74
KR
75242009-08-17 Ken Raeburn <raeburn@raeburn.org>
7525
1373f3be 7526 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
7527 (XFLOAT_INIT): New macro for storing a float value.
7528 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7529 * fns.c (sxhash): Copy out the value of a float in order to
7530 examine its bytes.
7531 * dbusbind.c (xd_append_arg): Likewise.
7532
4230ab74
KR
7533 * emacs.c (main): Don't call syms_of_data twice.
7534
a0645cdd
MA
75352009-08-16 Michael Albinus <michael.albinus@gmx.de>
7536
7537 * dbusbind.c (xd_initialize): Add connection file descriptor to
7538 input_wait_mask, in order to let select() detect, whether a new
7539 message has been arrived.
ca4f31ea 7540 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 7541
485db0ba
MA
75422009-08-15 Michael Albinus <michael.albinus@gmx.de>
7543
1373f3be
SM
7544 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7545 New functions.
485db0ba
MA
7546
7547 * lisp.h (xd_pending_messages): Declare.
7548
7549 * keyboard.c (readable_events): Call xd_pending_messages.
7550
b5b98ff4
CY
75512009-08-15 Chong Yidong <cyd@stupidchicken.com>
7552
1373f3be 7553 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 7554
f8354c6e
CY
7555 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7556
b5b98ff4
CY
7557 * buffer.c (set_buffer_internal_1)
7558 (swap_out_buffer_local_variables): Check for unbound local
7559 variables (Bug#4138).
7560
8b9fc636
EZ
75612009-08-14 Eli Zaretskii <eliz@gnu.org>
7562
7563 * process.c (create_pty): Fix last change.
7564
ce959360
CY
75652009-08-13 Chong Yidong <cyd@stupidchicken.com>
7566
7567 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7568 (xbm_load_image): Caller changed.
64b807c9 7569 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 7570
c7baf7e9
NR
75712009-08-13 Nick Roberts <nickrob@snap.net.nz>
7572
7573 * process.c (create_pty): New function.
7574 (Fstart_process): Use it to allow Emacs to just associate a pty
7575 with the buffer. See associated change in gdb-mi.el.
7576 (list_processes_1): Deal with no program name.
7577 (start_process_unwind): Use pid == -2 to mean no process.
7578
1ac9108a
SM
75792009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7580
7581 * cmds.c (nonundocount): New global variable.
7582 (keys_of_cmds): Initialize it.
7583 (Fself_insert_command): Use it to combine upto 20 sequential chars
7584 into a single undo entry, just like the Qself_insert_command code in
7585 keyboard.c does.
7586 Call frame_make_pointer_invisible, also like the Qself_insert_command
7587 code in keyboard.c does.
7588 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7589 than its own local replacement for it.
7590
e267324c
KR
75912009-08-10 Ken Raeburn <raeburn@raeburn.org>
7592
1ac9108a 7593 * fns.c (concat): Don't re-set string length to its current value.
77437343 7594
1ac9108a
SM
7595 * coding.h (decode_coding_string, encode_coding_string):
7596 Use SBYTES macro.
f0bed503 7597
1ac9108a 7598 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
7599 (doprnt): Merge with doprnt1, discarding lispstrings code.
7600 * lisp.h (doprnt_lisp): Don't declare.
7601
416e006d
JL
76022009-08-07 Juri Linkov <juri@jurta.org>
7603
7604 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7605
6f7d5780
DN
76062009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7607
7608 * print.c (syms_of_print): Undo previous change.
7609
f19a0f5b
TZ
76102009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7611
7612 * lread.c (read1, syms_of_lread): Read hashtables back from the
7613 readable format.
7614
7615 * print.c (print_preprocess, print_object): Print hashtables fully
7616 and readably.
7617 (syms_of_print): Provide 'hashtable-print-readable.
7618
b9173dc2
AR
76192009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7620
7621 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7622 no family set.
7623 (nsfont_open): Handle case when entity has no family.
7624
1586503c
AR
76252009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7626
7627 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7628 element, not a list, for match case.
7629
087048cd
KH
76302009-07-28 Kenichi Handa <handa@m17n.org>
7631
7632 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7633 rigidly.
7634
7635 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7636 font_parse_xlfd. Check font properties more rigidly.
7637
780c2506
DN
76382009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7639
31fd7c5c
JB
7640 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7641 bsd-common.h.
780c2506 7642
a8c0cc18
KH
76432009-07-27 Kenichi Handa <handa@m17n.org>
7644
7645 * xfaces.c (face_with_height): Call font_clear_prop.
7646
4fbe2306
CY
76472009-07-26 Chong Yidong <cyd@stupidchicken.com>
7648
111d9af3
CY
7649 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7650
7651 * xterm.c (x_term_init): Use Qx.
7652
4fbe2306
CY
7653 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7654
1ac9108a 7655 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
7656 (ns_get_color): Revert 2009-07-16 change.
7657
beb0b7f9
EZ
76582009-07-25 Eli Zaretskii <eliz@gnu.org>
7659
7660 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 7661 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 7662
2baf5e76
KR
76632009-07-25 Ken Raeburn <raeburn@raeburn.org>
7664
1ac9108a
SM
7665 * coding.h (decode_coding_string, encode_coding_string):
7666 Use SCHARS macro.
8890e5f5 7667
2baf5e76 7668 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 7669 (load_depth): Delete.
2baf5e76
KR
7670 (Qload_in_progress): New variable.
7671 (load_unwind): Don't reference load_depth or load_in_progress.
7672 (Fload): Likewise; specbind Qload_in_progress instead.
7673 (init_lread): Don't initialize load_depth.
7674 (syms_of_lread): Initialize and protect Qload_in_progress.
7675
1395c6f5
AR
76762009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7677
7678 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7679
4e2f36cf
AR
76802009-07-23 Yavor Doganov <yavor@gnu.org>
7681
7682 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7683
5dd9a6f7
AR
76842009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7685
7686 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
7687 Bugs 3792, 3720, 2402.
7688 (ns_lookup_indexed_color): Check for bad index.
7689 (ns_index_color): Init unused slot to 0.
7690 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7691 Bug 3714, possibly 3082.
5dd9a6f7 7692
c902b920
JR
76932009-07-22 Jason Rumney <jasonr@gnu.org>
7694
1ac9108a
SM
7695 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7696 Position IME window at cursor (Bug#2570).
c902b920
JR
7697 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7698 (globals_of_w32fns): Dynamically load functions required above.
7699
7700 * w32term.c (w32_draw_window_cursor): Send message to reposition
7701 any IME window.
7702
090101cf
CY
77032009-07-21 Chong Yidong <cyd@stupidchicken.com>
7704
7705 * fileio.c: Revert 2009-07-16 changes.
7706 (Vauto_save_include_big_deletions): New variable.
7707 (Fdo_auto_save): Disable auto-save only if
7708 auto-save-include-big-deletions is nil.
7709
e6583e3d
CY
77102009-07-21 Chong Yidong <cyd@stupidchicken.com>
7711
7712 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7713 the overflowed pixels into account (Bug#3879).
7714
ece435a5
KR
77152009-07-21 Ken Raeburn <raeburn@raeburn.org>
7716
7717 * lread.c (load_depth): New variable.
7718 (Fload, load_unwind, init_lread): Set it to the load recursion
7719 depth; set load_in_progress as a simple boolean based on the
7720 current load_depth. (Bug#3892)
7721
40b2d973
AR
77222009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7723
7724 * nsfont.m (ns_has_attribute): Remove.
7725 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7726
10be7e0d
JL
77272009-07-18 Juri Linkov <juri@jurta.org>
7728
7729 * process.c (Fset_process_query_on_exit_flag): Mention killing
7730 a buffer in docstring.
7731
fa055055
KH
77322009-07-17 Kenichi Handa <handa@m17n.org>
7733
7734 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7735
042f7b69
YM
77362009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7737
7738 * nsfns.m (Fns_set_alpha): Remove function.
7739 (syms_of_nsfns): Don't defsubr it.
7740
7741 * nsterm.m (ns_get_color): Remove incompatible color formats.
7742 (ns_color_to_lisp): Generate #rrggbb color format string.
7743
4be941e3
RS
77442009-07-16 Richard Stallman <rms@gnu.org>
7745
7746 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7747 (Fset_buffer_auto_saved): Handle save_length = -2.
7748
4e6b227d
CY
77492009-07-16 Chong Yidong <cyd@stupidchicken.com>
7750
7751 * xterm.c (Qx_gtk_map_stock): New var.
7752
7753 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7754 of calling intern each time.
7755
a1856973
YM
77562009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7757
7758 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7759 does tiling.
7760
7761 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7762
497e54d8
KH
77632009-07-14 Kenichi Handa <handa@m17n.org>
7764
72d36834
KH
7765 * font.c (font_vconcat_entity_vectors): New function.
7766 (struct font_sort_data): New member font_driver_preference.
7767 (font_compare): Check font_driver_preference.
7768 (font_sort_entities): The format of the first argument changed.
7769 (font_delete_unmatched): Likewise.
7770 (font_list_entities): The return type changed.
7771 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
7772 (font_find_for_lface): Adjuste for the above changes.
7773 Don't suppress the checking of C even if the repertory supports it.
7774 (Flist_fonts): Adjust for the above changes.
72d36834 7775
1ac9108a
SM
7776 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7777 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
7778 Reject a font who has adstyle property that is different from a
7779 langname derived from registry property.
1ac9108a 7780 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 7781
b6046155
EZ
77822009-07-13 Eli Zaretskii <eliz@gnu.org>
7783
7784 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7785 local copy of dirfilename.
7786
fb6b6049
KH
77872009-07-13 Kenichi Handa <handa@m17n.org>
7788
e2402a5e
KH
7789 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7790 against max_char.
7791
fb6b6049
KH
7792 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7793 calling XSYMBOL (sym).
7794
65156807
EZ
77952009-07-11 Eli Zaretskii <eliz@gnu.org>
7796
1ac9108a
SM
7797 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7798 New function.
7799 (directory_files_internal) [WINDOWSNT]:
7800 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
7801 the filesystem of the directory is fast or slow.
7802
7803 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7804 file name.
7805 (is_slow_fs): New function.
7806 (stat): Use it to determine whether to issue more system calls to
7807 get accurate file attributes, when w32-get-true-file-attributes is
7808 `local'.
7809
e0ab5fcf
JD
78102009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7811
7812 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7813 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7814 parameter font-parameter as default to the font dialog.
7815
784ceded
KH
78162009-07-10 Kenichi Handa <handa@m17n.org>
7817
7818 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7819
fb8edc0b
EZ
78202009-07-09 Eli Zaretskii <eliz@gnu.org>
7821
1ac9108a 7822 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7823
fb8edc0b
EZ
7824 * w32.c (stat): Treat UNC file names as residing on remote
7825 drives. (Bug#3542)
7826
635c75b1
KH
78272009-07-09 Kenichi Handa <handa@m17n.org>
7828
7829 * fontset.c (fontset_find_font): Fix previous change.
7830
c1d5ce94
MA
78312009-07-08 Michael Albinus <michael.albinus@gmx.de>
7832
7833 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7834 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7835 error flag.
7836
edb61b39
KH
78372009-07-08 Kenichi Handa <handa@m17n.org>
7838
374bf7e4
KH
7839 * fontset.c (fontset_find_font): Fix the logic of handling
7840 charset_matched.
7841 (font_for_char): Delete unused var.
7842 (generate_ascii_font_name): Delete it.
7843
edb61b39
KH
7844 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7845
7846 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7847 (encode_coding_sjis): Fix the code range check.
7848
0f3f018c
CY
78492009-07-07 Chong Yidong <cyd@stupidchicken.com>
7850
7851 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7852 (Fexpand_file_name): Copy string data properly (Bug#3772).
7853
fcaf6f3a
JD
78542009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7855
7856 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7857 first MapNotify.
7858
6809ca75
KH
78592009-07-07 Kenichi Handa <handa@m17n.org>
7860
7861 * character.h (unibyte_has_multibyte_table): Delete extern.
7862 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7863
7864 * charset.c (Fset_charset_priority): Update charset_unibyte.
7865 (syms_of_charset): Initialize charset_unibyte.
7866
7867 * character.c (unibyte_has_multibyte_table): Delete it.
7868 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7869 charset_unibyte.
7870 (multibyte_char_to_unibyte_safe): Likewise.
7871 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7872
1ac9108a 7873 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
7874 (x_produce_glyphs): Likewise.
7875
7876 * .gdbinit (xcharset): Fix the treating $arg0.
7877
ad9e2d54
EZ
78782009-07-04 Eli Zaretskii <eliz@gnu.org>
7879
7880 Emulation of `getloadavg' on MS-Windows.
50426a04 7881 * w32.c: Include float.h.
ad9e2d54
EZ
7882 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7883 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7884 (get_native_system_info, get_system_times): New functions.
7885 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7886 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7887 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7888 g_b_init_get_system_times, and num_of_processors.
7889
0a3472c7
JR
78902009-07-03 Jason Rumney <jasonr@gnu.org>
7891
7892 * w32term.c (w32_initialize): Use standard types.
7893
80904120
EZ
78942009-07-03 Eli Zaretskii <eliz@gnu.org>
7895
7896 * dired.c (Ffile_attributes): Decode user and group names by the
7897 locale's encoding. (Bug#3443)
7898
6978862d
DN
78992009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7900
f8d23104
DN
7901 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7902 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7903
7904 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7905
7906 * term.c (init_tty): Remove spurious #ifdef.
7907
6978862d
DN
7908 * m/mips.h: Mention this file is also used for netbsd.
7909 * m/pmax.h: Remove file.
7910
e044e4fc
JD
79112009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7912
7913 * xterm.h (struct x_display_info): Add invisible_cursor.
7914 (struct x_output): Add current_cursor.
7915
7916 * xterm.c (XTtoggle_invisible_pointer): New function.
7917 (x_define_frame_cursor): Don't define cursor if invisible or the
7918 same as before. Set current_cursor.
7919 (x_create_terminal): Set toggle_invisible_pointer_hook.
7920
7921 * xfns.c (make_invisible_cursor): New function.
7922 (x_set_mouse_color): Call make_invisible_cursor.
7923 Set current_cursor.
7924 (x_window): Set current_cursor.
7925
7926 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7927
7928 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7929 inserting a character.
7930 (read_avail_input): Call frame_make_pointer_visible.
7931
7932 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
7933 (frame_make_pointer_invisible, frame_make_pointer_visible):
7934 New functions.
e044e4fc
JD
7935 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7936
7937 * frame.h: Declare frame_make_pointer_invisible and
7938 frame_make_pointer_visible.
7939 (struct frame): Add pointer_invisible.
7940
574c8efa
JD
79412009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7942
7b507248
JD
7943 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7944 frame isn't visible.
7945 (xg_frame_resized): If width/height is -1, get size of window
7946 from X server.
7947
7948 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7949 for MapNotify.
7950
835bdaa7 7951 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 7952 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 7953 (flush_and_sync): Reintroduce.
574c8efa 7954
3f1c6666 79552009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 7956
31fd7c5c 7957 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
7958
7959 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7960 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7961
7962 * frame.h: Declare Qsticky.
7963
cad9ef74
JD
7964 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7965
7966 * nsfns.m (ns_frame_parm_handlers): Ditto.
7967
7968 * frame.c: Declare Qsticky.
7969 (frame_parms): Add sticky.
7970
7971 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7972
7973 * xterm.h: Declare x_set_sticky.
7974
7975 * xterm.c (x_set_sticky): New function.
7976
69b16610
JD
7977 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7978 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7979 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
7980
7981 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7982
7983 * frame.c: Qmaximized is new.
7984 (x_set_frame_parameters): Do not handle fullscreen specially.
7985 Only set width and height if explicitly set.
7986 (x_set_fullscreen): Handle Qmaximized.
7987 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7988 (syms_of_frame): Initialize Qmaximized.
7989
1ac9108a
SM
7990 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7991 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
7992
7993 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7994 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7995 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7996 set gravity to NorthWestGravity when USE_GTK.
7997 (set_wm_state): New function.
31fd7c5c 7998 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7999 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8000 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 8001 or the case when no window manager is running. That means remove calls
3f1c6666
JD
8002 to x_real_positions and x_fullscreen_adjust.
8003
8004 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8005 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8006 flush_and_sync.
8007 (xg_height_changed): New function.
8008 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
8009 and gtk_window_set_policy. Set frame gravity after parsing the
8010 geometry string.
3f1c6666
JD
8011 (xg_update_frame_menubar, free_frame_menubar)
8012 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8013 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8014 Remove calls to xg_frame_set_char_size.
8015
fd503d99
KH
80162009-07-01 Kenichi Handa <handa@m17n.org>
8017
8018 * keyboard.c (decode_keyboard_code): New function.
8019 (tty_read_avail_input): Decode the input bytes if necessary.
8020
1ac9108a
SM
8021 * coding.c (setup_coding_system):
8022 Initialize coding->carryover_bytes to 0.
fd503d99
KH
8023 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8024 use Qno_conversion.
8025
24ed93fb
YM
80262009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8027
8028 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8029
99061dfc
CY
80302009-06-30 Chong Yidong <cyd@stupidchicken.com>
8031
1ac9108a 8032 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 8033
ff90fbde
JR
80342009-06-30 Jason Rumney <jasonr@gnu.org>
8035
8036 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8037 is already loaded.
8038 Set user model ID if supported (bug#1849).
8039
5f445726
JM
80402009-06-29 Jim Meyering <meyering@redhat.com>
8041
8042 Remove useless if-before-xfree test.
8043 * nsfont.m (nsfont_close): Remove useless test.
8044 * term.c (delete_tty): Likewise.
8045 * w32.c (system_process_attributes): Likewise.
8046 * w32font.c (w32font_close): Likewise.
8047 * xfaces.c (x_free_gc): Likewise.
8048 * xselect.c (buffer): Likewise.
8049
b9607587
AS
80502009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8051
8052 * process.c (send_process): Keep decoded string in a local
8053 variable and protect it from GC. (Bug#3521)
8054
89ba96f4
EZ
80552009-06-28 Eli Zaretskii <eliz@gnu.org>
8056
8057 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8058 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8059
098a1589
CY
80602009-06-28 Chong Yidong <cyd@stupidchicken.com>
8061
485422be
CY
8062 * xdisp.c (start_display, handle_face_prop)
8063 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
8064 (redisplay_window, try_window_id, produce_image_glyph):
8065 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 8066
098a1589
CY
8067 * xterm.c (x_update_window_begin, x_new_focus_frame)
8068 (x_scroll_bar_handle_click, handle_one_xevent)
8069 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8070 (x_make_frame_visible, x_make_frame_invisible)
8071 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8072 code chunks that are now obsolete.
8073
78c38319
MA
80742009-06-28 Michael Albinus <michael.albinus@gmx.de>
8075
8076 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8077 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8078 for hours, when optimzation is enabled.
8079 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8080 (xd_read_message): Make them static.
8081
4189ed40
CY
80822009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8083
8084 * term.c (turn_on_face): Allow simultaneously bold and dim
8085 terminal faces (Bug#3530).
8086
cd9b5e16
CY
80872009-06-27 Chong Yidong <cyd@stupidchicken.com>
8088
4e23bedb
CY
8089 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8090
cd9b5e16
CY
8091 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8092 truncation glyphs (Bug#3686).
8093
07cc3c35
GM
80942009-06-27 Glenn Morris <rgm@gnu.org>
8095
8096 * m/pmax.h: Restore file, with only netbsd portions.
8097
31fd7c5c 80982009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 8099
cd9b5e16 8100 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 8101
42d4a64f
KH
81022009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8103
8104 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8105 the arg FORCE_SYMBOL.
8106
930fe55b 81072009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
8108
8109 * fontset.c (fontset_find_font): When a usable rfont_def is found
8110 in a fallback font-group, make it the first element of the group.
8111
57ebc3fd
CY
81122009-06-24 Chong Yidong <cyd@stupidchicken.com>
8113
8114 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8115
f084f942
KH
81162009-06-24 Kenichi Handa <handa@m17n.org>
8117
8118 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8119 set for C.
8120 (fontset_font): Record the availability of a font for C both in
8121 the realized fontsets of the current one and the default one.
8122
2f686c87
DN
81232009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8124
8125 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8126 conditional, it is always defined on AIX.
8127
666e158e
MB
81282009-06-23 Miles Bader <miles@gnu.org>
8129
8130 * window.c (Vrecenter_redisplay): New variable.
8131 (syms_of_window): Initialize it.
8132 (Qtty): New extern declaration.
8133 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8134
c6da7cd2
JM
81352009-06-23 Jim Meyering <meyering@redhat.com>
8136
1ac9108a
SM
8137 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8138 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 8139 pointer dereferences are guaranteed to be valid.
c6da7cd2 8140
678dca3d
KH
81412009-06-23 Kenichi Handa <handa@m17n.org>
8142
74d75424
KH
8143 * emacs.c (main): Call init_font ().
8144
8145 * font.h (Vfont_log): Extern it.
8146 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8147
8148 * font.c (font_sort_entities, font_list_entities)
8149 (font_matching_entity, font_open_entity)
8150 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8151 (Vfont_log): Delete static.
8152 (font_log_env_checked): Delete this variable.
8153 (font_add_log): Don't check font_log_env_checked.
8154 (font_deferred_log): Check Vfont_log.
8155 (init_font): New function.
8156
678dca3d
KH
8157 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8158
8159 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8160
8161 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8162
8163 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8164
8165 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8166 (face_for_char): Don't call font_deferred_log here.
8167 (font_for_char): Likewise.
8168
8a668709
CY
81692009-06-22 Chong Yidong <cyd@stupidchicken.com>
8170
9a01ee33
CY
8171 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8172 rather than its background_width for drawing the overline and
8173 underline (Bug#489).
8174
8175 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8176 rather than its background_width for drawing the overline and
8177 underline (Bug#489).
ec7c9926
CY
8178 (xg_default_icon_file): New variable.
8179 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8180 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 8181
8a668709
CY
8182 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8183 (load_overlay_strings): Remove externs.
8184 (fast_find_position): Function deleted.
8185 (mouse_face_from_buffer_pos): New function, based on
8186 fast_find_position. Correctly handle before-strings,
8187 display-strings, and after-strings (Bug#1220).
8188 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8189
4d4c02d8
CY
81902009-06-21 Chong Yidong <cyd@stupidchicken.com>
8191
1ac9108a 8192 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
8193 (move_it_in_display_line_to, move_it_in_display_line_to)
8194 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8195
70243478
CY
81962009-06-21 Chong Yidong <cyd@stupidchicken.com>
8197
8198 * Branch for 23.1.
8199
13087e59
JR
82002009-06-21 Jason Rumney <jasonr@gnu.org>
8201
8202 * w32term.c (keyboard_codepage): New static variable.
8203 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8204 (w32_read_socket) [WM_CHAR]: Use it to decode character
8205 input (bug#3237).
8206 (w32_initialize): Initialize it.
8207 (codepage_for_locale): New function.
8208
4735b74e
KR
82092009-06-20 Ken Raeburn <raeburn@raeburn.org>
8210
8211 * process.c (status_message): Pass Faset index argument as a lisp
8212 object, so as to work with USE_LISP_UNION_TYPE.
8213
0e727afa
YM
82142009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8215
8216 * coding.c (Ffind_coding_systems_region_internal):
8217 Cache checked characters.
8218
cf299835
KH
82192009-06-18 Kenichi Handa <handa@m17n.org>
8220
1ac9108a 8221 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 8222
90f20d94
AS
82232009-06-18 Andreas Schwab <aschwab@redhat.com>
8224
8225 * xdisp.c (redisplay_internal): Check that the frame is still
8226 live after redisplay of its windows.
8227 (redisplay_windows): Check that the window is still live.
8228
7f1faf1c
KH
82292009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8230
8231 * coding.c (detect_coding_utf_16): Fix previous change.
8232
cc13543e
KH
82332009-06-16 Kenichi Handa <handa@m17n.org>
8234
8235 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8236 UTF-16 by checking the dispersion of Eth and Oth bytes.
8237
977b85f4
AS
82382009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8239
8240 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8241
66bd43d1
KH
82422009-06-15 Kenichi Handa <handa@m17n.org>
8243
8244 * process.c (status_message): Fix previous change. Be sure to
8245 decode a localized string.
8246
cb5ca9c5
YM
82472009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8248
8249 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8250 add comment explaining why.
8251
ec7709ba 82522009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 8253
ec7709ba 8254 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 8255
4b7f335c
AR
82562009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8257
8258 * nsfont.m (ns_attribute_value): Remove.
8259 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8260 (ns_has_attribute): Shrink the normal range.
8261 (ns_findfonts): Don't worry about requested spec in determining
8262 need for synthItal.
e41820ee 8263 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 8264
73b26103
SZ
82652009-06-14 Seiji Zenitani <zenitani@mac.com>
8266
8267 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8268
5753e4da
KH
82692009-06-11 Kenichi Handa <handa@m17n.org>
8270
8271 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8272 overhang for the static composition case.
8273
3561b671
KH
82742009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8275
5753e4da
KH
8276 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8277 overhang for the automatic composition case.
8278
3561b671
KH
8279 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8280 composition case.
8281
852bbd41
CY
82822009-06-10 Chong Yidong <cyd@stupidchicken.com>
8283
8284 * xdisp.c (get_next_display_element): When handling wrap-prefix
8285 and line-prefix, treat \n as a control character (bug#3502).
8286
9903d1e6
KH
82872009-06-10 Kenichi Handa <handa@m17n.org>
8288
8289 * font.c (font_parse_family_registry): Fix for one-char foundry.
8290 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8291
0bcbaaaa
CY
82922009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8293
8294 * process.c (status_message): Fix handling of multibyte signal
8295 string (Bug#3499).
8296
40aa3f13
JM
82972009-06-09 Jim Meyering <meyering@redhat.com>
8298
1f80c7e2
CY
8299 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8300 color name is missing.
40aa3f13 8301
72d51285
KH
83022009-06-09 Kenichi Handa <handa@m17n.org>
8303
8304 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8305 FROM-CODE and TO-CODE are codepoints of CHARSET.
8306
c1d04d84
AR
83072009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8308
8309 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8310
83112009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8312
8313 Changes to support :script/:lang/:otf in NS font driver.
8314 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8315 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8316 indicate not part of font driver interface, and change callers.
8317 (ns_get_family): Remove pointless null check.
8318 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8319 ns_spec_to_descriptor, ns_descriptor_to_entity.
8320 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8321 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8322 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8323 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8324 (ns_get_req_script, ns_accumulate_script_ranges)
8325 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8326 New functions.
8327 (nsfont_list, nsfont_match): Use ns_findfonts.
8328 (nsfont_open): Use font descriptor instead of traits.
8329 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8330 (dump_glyphstring): Rename to ns_dump_glyphstring.
8331
c7eb9816
AR
8332 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8333
c1d04d84
AR
8334 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8335
8336 * fontset.c (fontset_from_font): Remove NS-specific code.
8337
ec7709ba 83382009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
8339
8340 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8341 nonactive windows.
8342
31fd7c5c 83432009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 8344
1ac9108a 8345 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 8346
68852c13 83472009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
8348
8349 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8350
6756cd1d
CY
83512009-06-07 Chong Yidong <cyd@stupidchicken.com>
8352
8353 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8354 account for the overflowing of newlines into the last glyph on the
8355 display line (Bug#3482).
8356
28bf482a
DR
83572009-06-05 David Reitter <david.reitter@gmail.com>
8358
ec7709ba
JB
8359 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8360 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
8361 Fns_selection_exists_p, Fns_selection_owner_p.
8362
fdb55376
JR
83632009-06-03 Jason Rumney <jasonr@gnu.org>
8364
8365 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8366 available. (Bug#3379)
8367
05129fbe
KH
83682009-05-29 Kenichi Handa <handa@m17n.org>
8369
1ac9108a
SM
8370 * coding.c (get_translation_table):
8371 Check Venable_character_translation.
05129fbe 8372
ec7709ba 83732009-05-26 David Reitter <david.reitter@gmail.com>
15891144 8374
ec7709ba
JB
8375 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8376 (x_make_frame_visible): Move frame to front rather than calling
15891144 8377 ns_raise_frame().
ec7709ba 8378 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 8379 isn't key window.
ec7709ba 8380 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
8381 drawRect may be called by NSView even if the frame is hidden.
8382
ec7709ba
JB
8383 * nsfns.m (Fx_create_frame): Follow other ports in
8384 determining visibility; default to t. Ensure async_visible is set.
15891144 8385
21f73755
EZ
83862009-05-23 Eli Zaretskii <eliz@gnu.org>
8387
8388 * dired.c (Ffile_attributes): Doc fix.
8389
34001e41
CY
83902009-05-22 Chong Yidong <cyd@stupidchicken.com>
8391
8392 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8393
46306a17
SM
83942009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8395
8396 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8397 and xfont_scratch_props.
8398 (syms_of_xfont): Do it here instead.
8399 (xfont_find_ccl_program): Delete, unused.
8400 (xfont_open): Delete unused var `i'.
8401
ef6e0694
KH
84022009-05-21 Kenichi Handa <handa@m17n.org>
8403
8404 * fontset.c (Qlatin): Don't make it static.
8405
46306a17
SM
8406 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8407 New functions.
ef6e0694
KH
8408 (xfont_scripts_cache, xfont_scratch_props): New variables.
8409 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
8410 (xfont_list_pattern): Argument changed. Callers changed.
8411 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
8412 (xfont_list): Don't reject a font spec with :script property.
8413 (xfont_has_char): Fix setting of encoding.
8414 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8415 xfont_scratch_props.
8416
84172009-05-19 Kenichi Handa <handa@m17n.org>
8418
46306a17 8419 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
8420 Callers changed.
8421
84222009-05-18 Kenichi Handa <handa@m17n.org>
8423
8424 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8425
ac71ced7
SM
84262009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8427
8428 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8429 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8430
1c6d1051
YM
84312009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8432
8433 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8434 (x_delete_terminal): Dissociate resource database from display and
8435 then call XrmDestroyDatabase before closing display.
8436
9b9b779c
AR
84372009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8438
8439 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
8440 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8441 whether selected frame is viable before raising it (based on patch
8442 by David Reitter), and improve commentary.
8443 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 8444
cccd42d5
KH
84452009-05-15 Kenichi Handa <handa@m17n.org>
8446
8447 * font.c (Ffont_spec): Check arguments.
8448
337fbd17
CY
84492009-05-14 Chong Yidong <cyd@stupidchicken.com>
8450
8451 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8452 weight when testing attributes (Bug#3282).
8453
47a6002f
JD
84542009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8455
8456 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8457 what we expect to get in the next ConfigureNotify event.
8458
9cb363db
YM
8459 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8460 before Xft one (Bug#1696).
8461
b9126609
CY
84622009-05-07 David Reitter <david.reitter@gmail.com>
8463
8464 * nsfns.m (Fx_display_planes): Compute bitplanes using
8465 NSBitsPerPixelFromDepth (Bug#3207).
8466
27a69fd9
CY
84672009-05-10 Chong Yidong <cyd@stupidchicken.com>
8468
8469 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8470
00f37552
TTN
84712009-05-10 Ulrich Mueller <ulm@gentoo.org>
8472
8473 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8474
2d82a920
DR
84752009-05-07 David Reitter <david.reitter@gmail.com>
8476
ec7709ba
JB
8477 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8478 Respect mouse face background.
2d82a920 8479
46b0d52d
DR
84802009-05-07 David Reitter <david.reitter@gmail.com>
8481
ec7709ba
JB
8482 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8483 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
8484 in ns_update_begin and ns_update_end.
8485
ce1b23bb
SM
84862009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8487
5996e1b7
SM
8488 * nsfns.m (ns_get_screen): Rewrite.
8489 Don't presume selected-frame is of type `ns'.
8490
ba98e3a0
SM
8491 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8492 all drivers.
8493
ce1b23bb
SM
8494 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8495
bcda200f
YM
84962009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8497
8498 * keyboard.h (add_user_signal): Fix typo in extern.
8499
8500 * lisp.h (add_user_signal): Remove extern.
8501
8502 * unexelf.c (unexec): Consider a section to precede the .bss section
8503 if its addresses overlap that of .bss.
8504 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8505 instead of dumping process.
8506
864660a2
SM
85072009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8508
8509 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8510
50da4e56
SM
85112009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8512
8513 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8514
51520a1a
DN
85152009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8516
8517 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8518 any statements.
8519
409ea3a1
AS
85202009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8521
59c4c60f
AS
8522 * process.c (read_process_output): Make sure the current buffer is
8523 always restored.
8524
409ea3a1
AS
8525 * coding.c (record_conversion_result): Don't modify
8526 Vlast_code_conversion_error for successful result.
8527 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8528
56f00ed2
KH
85292009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8530
8531 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 8532 (load_charset_map): Remove unnecessary code.
56f00ed2 8533
4491c9d2
DR
85342009-04-30 David Reitter <david.reitter@gmail.com>
8535
35f5b128 8536 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
8537 through f24.
8538
6970f632
CY
85392009-04-30 Chong Yidong <cyd@stupidchicken.com>
8540
8541 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8542
8543 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8544 face_at_buffer_position.
8545 (face_before_or_after_it_pos, get_next_display_element)
8546 (note_mouse_highlight): Update face_at_buffer_position call.
8547
8548 * term.c (term_mouse_highlight):
8549 * msdos.c (IT_note_mouse_highlight):
8550 * fontset.c (Finternal_char_font):
35f5b128 8551 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
8552
8553 * dispextern.h (face_at_buffer_position): Update prototype.
8554
0c616f63
KH
85552009-04-30 Kenichi Handa <handa@m17n.org>
8556
35f5b128 8557 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 8558
ad3aaf33
AS
85592009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8560
8561 * callproc.c (Fcall_process): Fix GC protection. Make sure
8562 current buffer is always restored.
8563
c3c963a0
YM
85642009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8565
8566 * atimer.c (init_atimer): Also clear stopped_atimers.
8567
8568 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8569
7e3386cb
YM
8570 * process.c (create_process): Clean up merger residues of
8571 2008-07-17 change.
8572
91f68422
CY
85732009-04-29 Ulrich Mueller <ulm@gentoo.org>
8574
8575 * lread.c (Vread_circle): New variable.
8576 (read1): Disable recursive read if Vread_circle is nil.
8577
24b34550
KH
85782009-04-29 Kenichi Handa <handa@m17n.org>
8579
8580 * fontset.h (set_default_ascii_font): Delete extern.
8581
8582 * fontset.c (set_default_ascii_font): Delete this unused function.
8583
8584 * frame.c (x_set_font): When ARG is a font-object, check if the
8585 font-object matches with the ASCII font-spec of the frame's
9c358bda 8586 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 8587
77bf07e1
AS
85882009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8589
8590 * fns.c (Flocale_info): Protect vector from GC during decoding.
8591
8592 * process.c (Fstart_process): Protect argv strings from GC during
8593 encoding.
8594
2c55aacf
AS
85952009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8596
8597 * sysdep.c: Include <ctype.h>.
8598
b892d3c9
DR
85992009-04-27 David Reitter <david.reitter@gmail.com>
8600
35f5b128 8601 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
8602 Remove commented-out code.
8603
9d0644c4
JB
86042009-04-26 Johan Bockgård <bojohan@gnu.org>
8605
8606 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8607
b7053016
JR
86082009-04-25 Jason Rumney <jasonr@gnu.org>
8609
8610 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8611
4e8231f3
YM
86122009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8613
8614 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8615 Swap bytes in short integer if fringe bitmap width > 8.
8616
493dcf2c
KH
86172009-04-23 Kenichi Handa <handa@m17n.org>
8618
8619 * xfaces.c (Fx_list_fonts): If a font size is specified in
8620 PATTERN, set it in returned scalable fonts.
8621
401e9e57
CY
86222009-04-22 Chong Yidong <cyd@stupidchicken.com>
8623
708e05dc
CY
8624 * keyboard.c (Fset_input_meta_mode): Doc fix.
8625
8626 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8627
1ac9108a 8628 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
8629
8630 * coding.c (Fterminal_coding_system): Doc fix.
8631
8632 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8633 (Fx_display_pixel_height, Fx_display_planes)
8634 (Fx_display_color_cells, Fx_server_max_request_size)
8635 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8636 (Fx_display_mm_height, Fx_display_mm_width)
8637 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
8638 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8639 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
8640 (check_x_display_info): Handle terminal objects instead of
8641 terminal ids.
8642
401e9e57
CY
8643 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8644 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
8645 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8646 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 8647
df80c7f0
KH
86482009-04-21 Kenichi Handa <handa@m17n.org>
8649
5a8f12af 8650 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 8651 (font_score): Check AVGWIDTH too.
908567ef 8652
df80c7f0
KH
8653 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8654 worst case.
1ac9108a
SM
8655 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8656 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 8657
705af33f
JR
86582009-04-19 Jason Rumney <jasonr@gnu.org>
8659
8660 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 8661 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
8662
8663 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8664 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8665 get_phys_cursor_geometry.
8666
b71ac3dd 8667 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
8668 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8669 using get_phys_cursor_geometry.
8670
8671 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8672 correctly calculated.
8673
dc2933eb
JD
86742009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8675
1ac9108a
SM
8676 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8677 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
8678 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8679 is deprecated.
8680
973e7849
AS
86812009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8682
8683 * font.c (font_put_frame_data): Use xfree instead of free.
8684
314d66f4
JB
86852009-04-17 Juanma Barranquero <lekktu@gmail.com>
8686
8687 * w32font.c (Qja, Qko): Remove declarations.
8688 (syms_of_w32font): Don't DEFSYM them.
8689
cf702558
CY
86902009-04-17 Chong Yidong <cyd@stupidchicken.com>
8691
8692 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8693
8694 * font.h (Qja, Qko): Extern them.
8695
8696 * ftfont.c (Qja, Qko): Remove declarations.
8697
8698 * xfont.c (Qja, Qko): Remove declarations.
8699
b50504f5
KH
87002009-04-17 Kenichi Handa <handa@m17n.org>
8701
bde25748
KH
8702 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8703 string from a vector to handle Latin-1 characters correctly.
8704
b50504f5
KH
8705 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8706 entity even if the cache hits.
8707
f4646fff
AS
87082009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8709
8710 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 8711 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 8712
e7deaab0
AS
8713 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8714 * lisp.h: Adjust prototypes.
8715
0a0e7d49
CY
87162009-04-16 Chong Yidong <cyd@stupidchicken.com>
8717
8718 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8719 change (Bug#3003).
8720
3c908a57
KH
87212009-04-16 Kenichi Handa <handa@m17n.org>
8722
1ac9108a 8723 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
8724
8725 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8726 adstyle.
8727
8728 * ftfont.c (Qja, Qko): Don't make them static.
8729 (enum ftfont_cache_for): New enum.
8730 (fc_charset_table): Undo the previous change.
8731 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
8732 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8733 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
8734 non-scarable font, try to get AVERAGE_WIDTH.
8735 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8736 Change ft_face_cache from a list of a hash-table. Don't check
8737 `ja' and `ko' adstyle here.
8738 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8739 FTFONT_CACHE_FOR_CHARET.
8740 (ftfont_get_charset): Undo the previous change.
1ac9108a 8741 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
8742 (ftfont_close): Likewise.
8743 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8744
8745 * font.c (font_sort_entites): Change the meaning of the arg
8746 BEST-ONLY. Don't optimize for VEC of lenght 1.
8747 (font_select_entity): Just return the value of font_sort_entites.
8748
8749 * xfaces.c (merge_face_vectors): Reflect font properties in
8750 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8751 font_clear_prop if a face attribute doesn't change.
8752
3c908a57
KH
8753 * charset.h (charset_ksc5601): Extern it.
8754
8755 * charset.c (charset_ksc5601): New variable.
8756 (Fdefine_charset_internal): Set charset_ksc5601.
8757 (init_charset_once): Initialize charset_ksc5601 to -1.
8758
d65859c3
DN
87592009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8760
8761 * fileio.c (history_delete_duplicates): Remove unused declaration.
8762
8763 * callint.c (history_delete_duplicates): New declaration.
8764 (Fcall_interactively): Remove command history duplicates when
8765 history_delete_duplicates is true.
8766
3ba010e5
EZ
87672009-04-14 Eli Zaretskii <eliz@gnu.org>
8768
8769 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8770
06f19b91
KH
87712009-04-14 Kenichi Handa <handa@m17n.org>
8772
8773 * font.c (Ffont_info): Fix docstring. Fix the second element of
8774 the returned value (bug#2949).
8775
2cce8bfc
CY
87762009-04-14 Chong Yidong <cyd@stupidchicken.com>
8777
8778 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8779
d156542d
KH
87802009-04-14 Kenichi Handa <handa@m17n.org>
8781
8782 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8783 encoding charset is ascii_compatible.
8784
8785 * charset.c (Fdefine_charset_internal): Make charset
8786 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8787 code_offset is 0, and covers all ASCII characters.
8788
86fa089e
SM
87892009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8790
8791 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8792 (ns_string_to_pasteboard_internal):
8793 * nsmenu.m (process_dialog):
8794 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8795 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8796 * lisp.h (Fx_load_color_file): Declare.
8797
a8a3728b
KH
87982009-04-13 Kenichi Handa <handa@m17n.org>
8799
1ac9108a 8800 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
8801 (font_select_entity): Suppress the code to optimize for the same
8802 kind of fonts.
8803 (font_load_for_lface): Get a font that supports at least ASCII
8804 characters.
8805
8806 * ftfont.c (Qja, Qko): New variables.
8807 (fc_charset_table): Delete uniquifier data for iso8859-1.
8808 (ftfont_get_latin1_charset): New function.
8809 (get_adstyle_property): New function.
8810 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8811 bitmap fonts.
8812 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8813 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8814 `ko' or `ja'.
8815 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8816 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8817 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8818 property.
8819 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8820 (syms_of_ftfont): DEFSYM Qja and Qko.
8821
483670b5
KH
88222009-04-09 Kenichi Handa <handa@m17n.org>
8823
12b55765
KH
8824 * charset.c (map_charset_chars): For a charset of `superset'
8825 method, fix calculation of code range.
8826
483670b5
KH
8827 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8828 from the list of extra properties.
8829 (font_clear_prop): Be sure to delete `:name' font property.
8830
57d3b93b
KH
88312009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8832
b4b2c2ca
YM
8833 * dispnew.c (redraw_overlapping_rows): Fix detection of
8834 overlapping for topmost and bottommost rows.
8835
1ac9108a 8836 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8837
472c3609
JR
88382009-04-06 Jason Rumney <jasonr@gnu.org>
8839
8840 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8841
ab193662
KH
88422009-04-06 Kenichi Handa <handa@m17n.org>
8843
8844 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8845
8846 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8847
0c26f026
KH
88482009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8849
8850 * ftfont.c (ftfont_open): Fix checking of the return value of
8851 FT_Load_Char. Fix setting font->underline_thickness.
8852
e173bbce
CY
88532009-04-04 Chong Yidong <cyd@stupidchicken.com>
8854
8855 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8856 (Fterminal_parameters, Fterminal_parameter)
8857 (Fset_terminal_parameter): In doc string, refer to terminal
8858 objects rather than terminal ids.
8859
693a2698
EZ
88602009-04-04 Eli Zaretskii <eliz@gnu.org>
8861
8862 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8863 ret_lim_data. (Bug#2867)
8864
d5221487
CY
88652009-04-03 Chong Yidong <cyd@stupidchicken.com>
8866
8867 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8868 so they don't get wider than the window, matching 2006-01-23
8869 change to the partner function in xdisp.c (Bug#2800).
8870
223509a3
KH
88712009-04-03 Kenichi Handa <handa@m17n.org>
8872
8873 * print.c (print_object): Make each lowest sub_char_table start a
8874 new line (Bug#2866).
8875
74fcd0b1
KH
88762009-04-02 Kenichi Handa <handa@m17n.org>
8877
8878 * fontset.c (fontset_font): Record no-font when a fontset
8879 explicitly tells not to try another font-specs.
8880
c542407d
SM
88812009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8882
8883 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8884
e3869731
KH
88852009-03-30 Kenichi Handa <handa@m17n.org>
8886
d8d2f142
KH
8887 * fontset.c (fontset_from_font): Specify only registry in a
8888 font-spec for all characters supported by that registry.
8889
e3869731
KH
8890 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8891 even if HAVE_M17N_FLT is not defined.
8892
5da5f805
CY
88932009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8894
8895 * ftfont.c: Conditionalize prototyping and use of
8896 ftfont_variation_glyphs.
8897
ab226c50
SM
88982009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8899
9628fed7
SM
8900 * frame.c (delete_frame): Work around compiler bug.
8901
8902 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8903 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8904 Some more EMACS_INT.
8905 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8906
8907 * xdisp.c (dump_glyph): Fix typo.
8908
ae19ba7c
SM
8909 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8910 (adjust_markers_gap_motion, adjust_markers_for_delete)
8911 (adjust_markers_for_insert, adjust_point)
8912 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8913 (make_gap, copy_text, count_size_as_multibyte, insert)
8914 (insert_and_inherit, insert_before_markers)
8915 (insert_before_markers_and_inherit, insert_1)
8916 (count_combining_before, count_combining_after, insert_1_both)
8917 (insert_from_string, insert_from_string_before_markers)
8918 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8919 (insert_from_buffer_1, adjust_after_replace)
8920 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8921 (replace_range_2, del_range, del_range_1, del_range_byte)
8922 (del_range_both, del_range_2, modify_region)
8923 (prepare_to_modify_buffer, signal_before_change)
8924 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8925 for buffer positions and sizes.
8926 * lisp.h: Adjust prototypes accordingly.
8927
8928 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8929 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8930 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8931
ab226c50
SM
8932 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8933
46dfb8fb
JD
89342009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8935
8936 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8937 lines and columns so we keep the same pixel height and width.
8938
8939 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8940 the property _NET_WM_STATE has changed.
46dfb8fb
JD
8941 (x_handle_net_wm_state): New function to update frame parameter
8942 fullscreen.
8943 (x_term_init): Initialize atoms for _NET_WM_STATE.
8944
8945 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8946
d347e494
SM
89472009-03-27 Kevin Ryde <user42@zip.com.au>
8948
8949 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8950 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8951 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8952 (Fgpm_mouse_stop): Pass that new parameter.
8953 * termhooks.h (close_gpm): Adjust prototype.
8954
84db11d6
SM
89552009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8956
c95a5008
SM
8957 * lisp.h (Fx_focus_frame): Declare.
8958
84db11d6
SM
8959 * callint.c (Fcall_interactively): For '^' just delegate the work to
8960 handle-shift-selection.
8961 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8962
0a1958d6
CY
89632009-03-24 Chong Yidong <cyd@stupidchicken.com>
8964
0bfdff23
CY
8965 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8966
0a1958d6
CY
8967 * data.c (Qinteractive_form): New variable.
8968 (Finteractive_form): Use it.
8969
8970 * eval.c (Fcommandp): Use Qinteractive_form.
8971
58aec0d6
JR
89722009-03-24 Jason Rumney <jasonr@gnu.org>
8973
8974 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8975 Calculate total size precisely. Decode environment variables
8976 before substituting. (Bug#38)
8977
553dd618
KH
89782009-03-24 Kenichi Handa <handa@m17n.org>
8979
8980 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 8981 encoding (Bug#2722).
553dd618 8982
c39ea606
JD
89832009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8984
8985 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8986 that gdpy is set.
8987
bc9b2b5e
AM
89882009-03-22 Alan Mackenzie <acm@muc.de>
8989
8990 * callint.c (Finteractive): Clarify the doc string - even
8991 promptless elements need \n separators.
8992
9f995a76
JR
89932009-03-22 Jason Rumney <jasonr@gnu.org>
8994
8995 * w32term.c (syms_of_w32term): Doc fix for
8996 x-use-underline-position-properties.
8997
22749e9a
EZ
89982009-03-21 Eli Zaretskii <eliz@gnu.org>
8999
9000 * w32.c (getpwuid): Change argument type to unsigned.
9001 (struct w32_id): Change type of `rid' member to unsigned.
9002 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9003 argument ID to unsigned. All callers changed.
9004 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9005
e00553bf
EZ
90062009-03-20 Eli Zaretskii <eliz@gnu.org>
9007
9008 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9009 negative, produce a float value.
9010
9011 * dired.c (make_uid, make_gid): New functions.
9012 (Ffile_attributes): Use them to avoid negative UID and GID.
9013
f761d6b6
JB
90142009-03-20 Juanma Barranquero <lekktu@gmail.com>
9015
9016 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9017 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9018 Fix typos in docstrings.
9019
d507f8d7
KH
90202009-03-19 Kenichi Handa <handa@m17n.org>
9021
9022 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
9023 changed, use font_load_for_lface to get a new font object.
9024 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
9025
9026 * frame.c (x_set_font): Handle the case that ARG is a cons.
9027
c68845e0
GM
90282009-03-19 Glenn Morris <rgm@gnu.org>
9029
9030 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9031
bfa49dd1
CY
90322009-03-19 Chong Yidong <cyd@stupidchicken.com>
9033
9034 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9035
8458d4c1
KH
90362009-03-19 Kenichi Handa <handa@m17n.org>
9037
9038 * charset.c (load_charset_map_from_file): When a mapfile can't be
9039 loaded, signal an error.
9040
78e7d1fe
EZ
90412009-03-18 Eli Zaretskii <eliz@gnu.org>
9042
9043 * dired.c (Ffile_attributes): Make sure UID and GID are always
9044 positive, even if the value is too large for a positive EMACS_INT.
9045 Doc fix.
9046
9047 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9048
5da9fdfa
YM
90492009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9050
9051 * xmenu.c (xdialog_show): Move Fredisplay call ...
9052 (Fx_popup_dialog): ... here.
9053
7519c40d
SM
90542009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9055
9056 * dired.c (file_name_completion): Disable the first optimization just
9057 installed, since it is not implemented correctly.
9058
2cd298e2
SM
90592009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9060
9061 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 9062 only if the entry can affect bestmatch.
2cd298e2
SM
9063 Stop the search early, as Ftry_completion already does.
9064
48d37adf
CY
90652009-03-17 Chong Yidong <cyd@stupidchicken.com>
9066
e10c9c93 9067 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 9068
9286b16a
CY
90692009-03-15 Chong Yidong <cyd@stupidchicken.com>
9070
9071 * keyboard.c (parse_menu_item): Don't display remappings as menu
9072 equivalent bindings (Bug#788).
9073
f7b146dc
JR
90742009-03-15 Jason Rumney <jasonr@gnu.org>
9075
9076 * w32term.h (WM_EMACS_PAINT): New message.
9077 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9078 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9079 before passing to lisp thread. (Bug#950)
9080
f761d6b6 90812009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 9082
d93f9575
CY
9083 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9084 variable as it was never reset.
9085 (ns_term_init): Remove initialization of Lisp-settable defaults
9086 and ns_expand_space.
9087 (-setPanelFromDefaultValues): Remove ns_expand_space.
9088 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9089 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
9090 i.e. no additional spacing, similar to Carbon port.
9091
d93f9575
CY
9092 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9093 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 9094
305018ec
JD
90952009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9096
9097 * sound.c (alsa_configure): Remove call to deprecated
9098 snd_pcm_sw_params_set_xfer_align.
9099
f761d6b6 91002009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
9101
9102 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9103 after clicking in a detached tool bar.
9104 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9105
46e722a9
SM
91062009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9107
348db3dd
SM
9108 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9109 int/Lisp_Object mixup).
46e722a9 9110
a3d16f39
KH
91112009-03-13 Kenichi Handa <handa@m17n.org>
9112
9113 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 9114 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
9115 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9116 (set_fontset_font): Change ARG to a vector. Handle range_list in
9117 ARG correctly.
9118 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 9119 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
9120 the above change.
9121 (fontset_from_font): Fix previous change.
fe24f56a 9122 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
9123 entry. If FONTSET is the default fontset, don't set the extra
9124 slot of the returning char-table.
9125
b066e6b6
JB
91262009-03-12 Juanma Barranquero <lekktu@gmail.com>
9127
9128 * nsfns.m (Fx_close_connection): Doc fix.
9129 (Fns_do_applescript): Reflow docstring.
9130 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9131 (Fx_display_pixel_width, Fx_display_pixel_height)
9132 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9133 Fix typos in docstrings.
9134 (Fns_set_alpha): Fix typos in error messages.
9135
d472514e 91362009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 9137
d472514e 9138 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
9139 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9140 were used for such events.
9141
d472514e
JB
9142 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9143 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 9144
d472514e 9145 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
9146 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9147
fb930676
KH
91482009-03-11 Kenichi Handa <handa@m17n.org>
9149
ff85581a
KH
9150 * font.h (font_open_by_spec): Extern it.
9151
c50b7e98
KH
9152 * font.c (font_open_by_spec): New function.
9153 (font_open_by_name): Use font_open_by_spec.
9154
fb930676
KH
9155 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9156 fontset of the frame.
9157
9158 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9159 modify the default font of frames that use this fontset.
9160 (num_auto_fontsets): New variable.
9161 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9162 name. Be sure to set FONTSET_ASCII to the correct font name.
9163 (update_auto_fontset_alist): New function.
9164
df4e8455
JB
91652009-03-11 Juanma Barranquero <lekktu@gmail.com>
9166
9167 * makefile.w32-in: Update dependencies.
9168
0a375797
AR
91692009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9170
9171 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9172
61313fa3
SM
91732009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9174
9175 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9176
b55103fb
CY
91772009-03-10 Chong Yidong <cyd@stupidchicken.com>
9178
9179 * lread.c (Feval_buffer): Doc fix.
9180
dde2559c
KH
91812009-03-09 Kenichi Handa <handa@m17n.org>
9182
9183 * charset.c (Qfile_name_handler_alist): Extern it.
9184 (load_charset_map_from_file): Temporarily bind
9185 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9186
df4e8455 91872009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 9188
47f588bb
GM
9189 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9190 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 9191
4ddf94bd
AR
91922009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9193
4c9bdfc2
AR
9194 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9195 (x_set_window_size): Change back to calculated method of setting
9196 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
9197 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9198 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9199
fe41ae9e
AR
9200 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9201
4c9bdfc2
AR
9202 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9203 accelerator in parens under GNUstep.
9204
825d0875
KH
92052009-03-06 Kenichi Handa <handa@m17n.org>
9206
9207 These changes are to detect incorrect composition sequence without
f3b3be74 9208 looking ahead the source. (Bug#2370)
825d0875
KH
9209
9210 * coding.h: Include "composite.h".
9211 (enum compisition_state): New enum.
9212 (struct compisition_status): New struct.
9213 (struct iso_2022_spec): New member cmp_status.
9214 (struct emacs_mule_spec): New struct.
9215 (struct coding_system): New members ctext_extended_segment_len and
9216 embedded_utf_8. Change the union member
9217 spec.emacs_mule_full_support to spec.emacs_mule.
9218
9219 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9220 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 9221 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
9222 (ADD_COMPOSITION_DATA): New arg nbytes.
9223 (emacs_mule_char): New arg cmp_status.
9224 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9225 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9226 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9227 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9228 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9229 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9230 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9231 (EMACS_MULE_COMPOSITION_END): New macro.
9232 (emacs_mule_finish_composition): New function.
9233 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9234 (decode_coding_emacs_mule): Avoid long looking ahead while
9235 handling composition.
9236 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9237 (ENCODE_COMPOSITION_RULE): New macro.
9238 (finish_composition): New function.
9239 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9240 (DECODE_COMPOSITION_START): New implementation.
9241 (DECODE_COMPOSITION_END): Likewise.
9242 (STORE_COMPOSITION_RULE): New macro.
9243 (decode_coding_iso_2022): Avoid long looking ahead while handling
9244 composition, CTEXT extended segment, and embedded UTF-8.
9245 (setup_coding_system): For a coding of type iso-2022, reset
9246 CODING_ISO_EXTSEGMENT_LEN (coding) and
9247 CODING_ISO_EMBEDDED_UTF_8 (coding).
9248 (get_translation): Delete arguments last_block, from_nchars,
9249 to_nchars. Callers changed.
9250 (produce_chars): Don't modify charbuf. Adjusted for the change of
9251 get_translation.
98a326f7 9252 (produce_composition): Adjust for the new annotation sequence.
825d0875 9253 (handle_composition_annotation): Likewise.
98a326f7 9254 (consume_chars): Adjust for the change of get_translation.
825d0875 9255
ccbc4452
AR
92562009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9257
4ddf94bd 9258 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 9259
988a7ddb
KH
92602009-03-05 Kenichi Handa <handa@m17n.org>
9261
9262 * font.c (font_select_entity): New function.
9263 (font_find_for_lface): Use font_select_entity to select a font.
9264
9265 * fontset.c (fontset_find_font): If a font found without
a8a3728b 9266 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
9267 font with C restriction.
9268
98a326f7 92692009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 9270
be1bce46 9271 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 9272
10ea2b82
JR
92732009-03-04 Jason Rumney <jasonr@gnu.org>
9274
2c93b248 9275 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 9276 characters that have already been read. (Bug#2569)
2c93b248 9277
10ea2b82
JR
9278 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9279 Log an error message if check_image_size failed.
9280 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 9281 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 9282
71a0c011
EZ
92832009-03-02 Eli Zaretskii <eliz@gnu.org>
9284
9285 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9286 when decoding process output.
9287
2f63bba8
RS
92882009-03-01 Richard M Stallman <rms@gnu.org>
9289
9290 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9291
9292 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9293
0a9564cb
EZ
92942009-02-28 Eli Zaretskii <eliz@gnu.org>
9295
9296 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9297 (decode_coding_emacs_mule, decode_coding_iso_2022)
9298 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9299 (decode_coding_raw_text, decode_coding_charset)
9300 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9301 Honor inhibit-eol-conversion. (Bug #2186)
9302
449148b3
JR
93032009-02-28 Jason Rumney <jasonr@gnu.org>
9304
9305 * coding.c (detect_coding_charset): If not checking latin extra,
9306 fail on characters between 0x80 and 0xA0. (Bug#2354)
9307
a4aee864
EZ
93082009-02-28 Eli Zaretskii <eliz@gnu.org>
9309
9310 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 9311 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 9312
d88bee5a
GM
93132009-02-27 Glenn Morris <rgm@gnu.org>
9314
9315 * callint.c (Finteractive): Doc fix.
9316
a808f22d
KH
93172009-02-27 Kenichi Handa <handa@m17n.org>
9318
9319 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9320
caf8d60c
CY
93212009-02-27 Chong Yidong <cyd@stupidchicken.com>
9322
9323 * font.c (font_style_to_value): Set value for unknown symbols to
9324 100 instead of 255.
b61137ea
CY
9325 (weight_table, slant_table, width_table): Treat "unspecified" as
9326 the default value.
caf8d60c 9327
1a0de25c
JB
93282009-02-26 Juanma Barranquero <lekktu@gmail.com>
9329
9330 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9331
8fc45744
JB
93322009-02-25 Juanma Barranquero <lekktu@gmail.com>
9333
107bd7d1
JB
9334 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9335 error as soon as a recursive load is detected.
8fc45744 9336
f097e223
AR
93372009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9338
9339 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9340 before caching.
9341
8810a12f
KH
93422009-02-24 Kenichi Handa <handa@m17n.org>
9343
9344 * fontset.c (fontset_find_font): Fix the condition for checking
9345 unavailable font.
9346
2c7d1565
GM
93472009-02-24 Glenn Morris <rgm@gnu.org>
9348
9349 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9350 whitespace that confuses documentation.
9351
a20878b6
MB
93522009-02-23 Miles Bader <miles@gnu.org>
9353
9354 * process.c (Flist_system_processes, Fprocess_attributes)
9355 (syms_of_process): Rename `system-process-attributes' to
9356 `process-attributes'.
9357
b3b58c01
AS
93582009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9359
1b3b981b
AS
9360 * coding.h (struct coding_system): Make safe_charsets a pointer to
9361 unsigned char.
9362 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9363 being 255.
9364 (SAFE_CHARSET_P): Likewise.
9365 (setup_iso_safe_charsets): Properly setup safe_charsets.
9366 (Fdefine_coding_system_internal): Likewise.
9367 (setup_coding_system): Likewise. Remove unneeded casts.
9368 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9369 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9370 unneeded casts.
9371
b3b58c01
AS
9372 * insdel.c (del_range_2): Don't modify gap contents when called
9373 from decode_coding_object. (Bug#1809)
9374
0b6f228c
CY
93752009-02-21 Chong Yidong <cyd@stupidchicken.com>
9376
9377 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9378 Qfont_object.
9379 (Ftype_of): Recognize font objects.
9380
9381 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9382
9383 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9384 moved to data.c.
9385
52f8870b
AR
93862009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9387
9388 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9389 async_iconified. Based on a patch by Christian Lynbech
9390 <christian.lynbech@tieto.com>.
9391 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9392
7087d5e9
GM
93932009-02-20 Glenn Morris <rgm@gnu.org>
9394
9395 * syntax.c (Fskip_chars_forward): Fix doc typo.
9396
41d2ceef
CY
93972009-02-20 Chong Yidong <cyd@stupidchicken.com>
9398
9399 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9400
1a3b7ca6
CY
94012009-02-19 Chong Yidong <cyd@stupidchicken.com>
9402
9403 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9404
73cce38d
KH
94052009-02-19 Kenichi Handa <handa@m17n.org>
9406
9407 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 9408 Don't overflow coding->carryover. (Bug#2370)
73cce38d 9409
a51092ee
DN
94102009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9411
9412 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9413
c423ecca
KH
94142009-02-18 Kenichi Handa <handa@m17n.org>
9415
9416 * font.c (font_check_otf_features): Fix handling of `nil' element.
9417 (Ffont_spec): Describe :lang and :otf in the docstring.
9418
4c1958f4
AS
94192009-02-16 Andreas Schwab <schwab@suse.de>
9420
9421 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9422 string.
9423
5704f39a
KH
94242009-02-16 Kenichi Handa <handa@m17n.org>
9425
9426 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 9427 (Bug#1723)
5704f39a 9428
8f0085aa
CY
94292009-02-14 Chong Yidong <cyd@stupidchicken.com>
9430
a057d86a 9431 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
9432
9433 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9434 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9435
aff01dd9
EZ
94362009-02-14 Eli Zaretskii <eliz@gnu.org>
9437
9438 * msdos.c (MAX_SCREEN_BUF): New macro.
9439 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9440 Encode the entire run of glyphs sharing the same face, instead of
9441 doing that one glyph at a time (fixes a bug with displaying
9442 double-size characters).
9443
ba301db3
AR
94442009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9445
9446 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9447
9448 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9449 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 9450 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
9451
9452 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 9453 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 9454
51d861de
SM
94552009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9456
ac146f82 9457 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
9458 invisible areas.
9459
7fed8996
JR
94602009-02-12 Jason Rumney <jasonr@gnu.org>
9461
631ea4fb
JR
9462 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9463 (add_font_entity_to_list): Call check_face_name even when family
9464 is unspecified.
9465
cb4a3e42
JR
9466 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9467 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 9468 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 9469
7fed8996 9470 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 9471 raster fonts. (Bug#2219)
7fed8996 9472
895416e3
KH
94732009-02-12 Kenichi Handa <handa@m17n.org>
9474
9475 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9476 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9477 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 9478 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9479 (find_automatic_composition): While looking forward and backward,
9480 check static composition. Fix where to stop looking forward.
9481 (composition_adjust_point): Fix checking of static composition.
9482 (Fcomposition_get_gstring): Pay attention to
1dacf998 9483 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9484
9485 * lisp.h (fast_looking_at): Extern it.
9486
9487 * search.c (fast_looking_at): New function.
9488
51d861de 9489 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
9490 <struct glyph>.u.cmp.to.
9491 (append_composite_glyph): Likewise.
9492
51d861de 9493 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
9494 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9495 composition.
51d861de 9496 (append_composite_glyph): Adjust for the change of
895416e3
KH
9497 <strcut glyph>.u.cmp.to.
9498
8510724d
JB
94992009-02-11 Juanma Barranquero <lekktu@gmail.com>
9500
9501 * casetab.c (init_casetab_once):
9502 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9503 * font.c (font_update_lface):
9504 * fontset.c (Fnew_fontset):
9505 * ftfont.c (ftfont_drive_otf):
9506 * xfont.c (xfont_open):
9507 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9508
294fa707
SM
95092009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9510
9511 * fileio.c (Fwrite_region): !NILP -> CONSP.
9512
b5bfebec
AS
95132009-02-10 Andreas Schwab <schwab@suse.de>
9514
9515 * process.c (send_process): Properly relocate pointer into data
adab88bd 9516 when using encoded data. (Bug#2272)
b5bfebec 9517
cb84a2be
KH
95182009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9519
9520 * coding.c (detect_coding_charset): Fix previous change.
9521
89e09428
JR
95222009-02-08 Jason Rumney <jasonr@gnu.org>
9523
9524 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 9525 disappeared while hourglass was displayed. (Bug #2193)
89e09428 9526
4470a277
AS
95272009-02-07 Andreas Schwab <schwab@suse.de>
9528
9529 * unexelf.c (unexec): Fix error message.
9530
3175b12a
AR
95312009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9532
9533 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 9534 when modal window is active. (Bug #2152)
3175b12a
AR
9535 (applicationShouldTerminate:): Remove now-unneeded while loop
9536 around NSRunAlertPanel.
9537
9538 * nsmenu.m (popupSession): New file-global variable.
9539 (pop_down_menu): End the popupSession before closing dialog.
9540 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9541 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9542 don't query NSApp for events (just sleep instead).
9543
8434d0b8
EZ
95442009-02-07 Eli Zaretskii <eliz@gnu.org>
9545
51d861de
SM
9546 * coding.c (syms_of_coding) <translation-table-for-input>:
9547 Modify doc string to discourage use for character code unification.
8434d0b8 9548
aa82edfd
CY
95492009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9550
9551 * atimer.c (run_timers): Update pending_atimers.
9552
2d283c7c
CY
95532009-02-06 Chong Yidong <cyd@stupidchicken.com>
9554
eb306cab
CY
9555 * image.c (svg_load_image): Fix last change.
9556
2d283c7c
CY
9557 * xfns.c (Fx_create_frame): Signal an error if no font is
9558 found (Bug#2147).
9559
4d8e170e
JB
95602009-02-05 Juanma Barranquero <lekktu@gmail.com>
9561
9562 * character.c (syms_of_character) <script-representative-chars>:
9563 Fix typo in docstring.
9564
c96169a0
AR
95652009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9566
9567 * nsmenu.m (pop_down_menu): New function.
9568 (ns_popup_dialog): Call it on unwind.
9569 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9570 call timer_check() (Bug#2154).
9571 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9572 handling_signal is set.
9573 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9574
31fd7c5c 9575 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
9576
9577 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9578
9579 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9580
51d861de
SM
9581 * keyboard.c (poll_for_input_1, handle_async_input):
9582 Set handling_signal under HAVE_NS.
c96169a0 9583
aacd8ba1
GM
95842009-02-04 Glenn Morris <rgm@gnu.org>
9585
9586 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9587
4cb75c4b
KH
95882009-02-04 Kenichi Handa <handa@m17n.org>
9589
9590 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9591
9592 * charset.c (Fchar_charset): New optional arg restriction.
9593
9594 * coding.h (coding_system_charset_list): Extern it.
9595
9596 * coding.c (coding_system_charset_list): New function.
9597
9598 * composite.c: Include coding.h and termhooks.h.
9599 (composition_gstring_p): Fix for the terminal case.
9600 (composition_gstring_width): Likewise.
9601 (fill_gstring_body): Likewise.
9602 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9603 the frame.
9604 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9605 is within a composition.
867d4bb3 9606 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
9607
9608 * term.c (encode_terminal_code): Fix handling of composition.
9609 (produce_composite_glyph): For static composition, get pixel_width
9610 from struct composition.
9611
826ba17e
AS
96122009-02-02 Andreas Schwab <schwab@suse.de>
9613
9614 * unexelf.c (unexec): Handle unaligned bss offset.
9615
8ad093db
AR
96162009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9617
9618 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9619 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 9620
8ad093db
AR
9621 * keyboard.c (handle_interrupt): Don't call
9622 quit_throw_to_read_char() under NS.
d0a76a6e 9623
8ad093db
AR
9624 * blockinput.h: Remove NS-specific code.
9625
4d18a7a2
DN
96262009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9627
db878925
DN
9628 * dispnew.c (window_change_signal): Don't try to get the size of a
9629 suspended tty frame.
9630 * term.c (Fresume_tty): Resize if the size has changed while the
9631 tty was suspended.
9632
4d18a7a2
DN
9633 * alloc.c (mark_stack): Properly conditionalize previous change.
9634
8984df7c
JB
96352009-01-30 Juanma Barranquero <lekktu@gmail.com>
9636
9637 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9638 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9639 Remove; this code is not used on Windows.
9640
75f4f1ac
EZ
96412009-01-30 Eli Zaretskii <eliz@gnu.org>
9642
9643 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9644 EOLs that also has stray ^M characters.
9645
07a1e794
JB
96462009-01-30 Juanma Barranquero <lekktu@gmail.com>
9647
9648 * atimer.c (run_timers, alarm_signal_handler):
9649 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9650 * w32inevt.c (w32_console_read_socket):
9651 * w32term.c (w32_read_socket):
9652 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9653
a8b11cc9
CY
96542009-01-30 Chong Yidong <cyd@stupidchicken.com>
9655
9656 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9657 Initialize it as a relative filename pattern.
9658 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9659 (Fcall_process_region): Simplify temp file creation using
9660 temporary-file-directory.
9661
c279587b
EZ
96622009-01-29 Eli Zaretskii <eliz@gnu.org>
9663
9664 * msdos.c: Rename pending_signals to msdos_pending_signals.
9665 (sig_suspender, sigprocmask): Adjust.
9666
a8fe3242
CY
96672009-01-29 Chong Yidong <cyd@stupidchicken.com>
9668
9669 * keyboard.c (pending_signals): New var.
9670 (poll_for_input, input_available_signal, init_keyboard): Set it.
9671 (process_pending_signals): New function.
9672
9673 * lisp.h (QUIT): Check pending_signals instead of
9674 interrupt_input_pending. Use process_pending_signals.
9675
51d861de 9676 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 9677
51d861de 9678 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
9679
9680 * sysdep.c (emacs_write): Use process_pending_signals.
9681
9682 * xterm.c (XTread_socket): Update pending_signals.
9683
9684 * w32term.c (w32_read_socket): Update pending_signals.
9685
9686 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9687
6570a1c4
KH
96882009-01-29 Kenichi Handa <handa@m17n.org>
9689
9690 * xftfont.c (xftfont_has_char): New function.
9691 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9692
d72a4afa
AR
96932009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9694
9695 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9696 under GNUstep.
9697 (ns_query_color): New declaration.
9698
9699 * nsterm.m (ns_confirm_quit): New variable.
9700 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9701 (EmacsApp-applicationShouldTerminate:): Use it.
9702 (EmacsPrefsController): Let user set it.
9703 (ns_query_color): New function.
9704 (ns_defined_color): Use it.
9705 (ns_initialize): Drop.
9706 (ns_term_init): Add two lines from ns_initialize(), and set
9707 input_interrupt_mode to nil.
9708
9709 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 9710 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 9711
9fe78804
KH
97122009-01-28 Kenichi Handa <handa@m17n.org>
9713
9714 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
9715 (fontset_get_font_group): Remember that no font-group is specified
9716 for C.
9fe78804 9717
fa57de36
CY
97182009-01-27 Chong Yidong <cyd@stupidchicken.com>
9719
930600e9
CY
9720 * fns.c (concat): Check for string overflow (bug#1787).
9721
fa57de36
CY
9722 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9723 Quadruple undo limits (bug#1501).
9724
7179ce7b
KH
97252009-01-27 Kenichi Handa <handa@m17n.org>
9726
9727 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9728 directly use GT_Get_Char_index.
9729
9730 * xftfont.c (struct xftfont_info): New member `index'.
9731
9732 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 9733 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 9734
5be8fcc0
CY
97352009-01-26 Kenichi Handa <handa@m17n.org>
9736
9737 * fontset.c (fontset_find_font): Fix handling of non-cons return
9738 value of fontset_get_font_group.
9739 (fontset_font): Revert last change.
9740
19ae3e61
JR
97412009-01-26 Jason Rumney <jasonr@gnu.org>
9742
9743 * w32font.c (w32font_list_internal): Return quickly if registry is
9744 unknown. Simplify final return.
9745 (add_font_entity_to_list): Break complex logic down into more
9746 manageable chunks. Move unknown registry check to
9747 w32font_list_internal.
9748
8612b71a
AR
97492009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9750
9751 Changes to remove Feval calls from GUI under NS.
9752
d8038940
JB
9753 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9754 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
9755 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9756
9757 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9758 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9759 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9760 instead of NON_ASCII_KEYSTROKE_EVENT.
9761 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9762 (EmacsApp-applicationShouldTerminate:): Query user.
9763 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9764 instead of Feval.
9765
9766 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9767
9768 * keyboard.c (kbd_buffer_get_event): Check for it.
9769 (keys_of_keyboard): Define lispy keys for
9770 ns-put/unput-working-text.
9771
9772 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9773 versions.
9774 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9775
6288ae55
CY
97762009-01-25 Chong Yidong <cyd@stupidchicken.com>
9777
9778 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 9779 setting current_buffer directly. (Bug#2044)
6288ae55 9780
289e7f8f
CY
97812009-01-24 Chong Yidong <cyd@stupidchicken.com>
9782
5ce87308 9783 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 9784 any work. (Bug#1952, bug#1990).
5ce87308 9785
64cc3cf6 9786 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 9787
b3243e6f
AR
97882009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9789
9790 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
9791 (ns_no_defaults): New declaration.
9792 (main): Use it.
e0d2e69a 9793
d900b2af 9794 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 9795
d900b2af 9796 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 9797
d900b2af
AR
9798 * nsterm.m (ns_no_defaults): New variable.
9799 (ns_initialize): Don't read defaults when ns_no_defaults.
9800 (EmacsView-readSelectionFromPasteboard:)
9801 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 9802 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
9803 (ns_dumpglyphs_stretch): New function.
9804 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9805 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9806
e0d2e69a
AR
9807 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9808
3ac71f5d
CY
98092009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9810
9811 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9812 call for Sparc64.
9813
3fe53a83
AR
98142009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9815
9816 * nsfns.m:
9817 * nsgui.h:
9818 * nsmenu.m:
9819 * nsselect.m:
9820 * nsterm.h:
9821 * nsterm.m: Remove '23' comments that indicated code added during
9822 update from emacs-20 -> emacs-23.
9823
10f87c6f 98242009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9825
9826 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9827 ns_alternate_modifier. (Bug#1217)
a3b53a85 9828
c7cef62d
AR
9829 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9830 Display all shortcuts, including those w/o super modifier.
9831
575fb8bd
AR
9832 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9833
918b848b
CY
98342009-01-22 Chong Yidong <cyd@stupidchicken.com>
9835
9836 * fileio.c (Vwrite_region_post_annotation_function)
9837 (Vwrite_region_annotation_buffers): New vars.
9838 (build_annotations_unwind): Just reset
9839 Vwrite_region_annotation_buffers.
9840 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9841 Call write-region-post-annotation-function.
9842 (build_annotations): Add to Vwrite_region_annotation_buffers if
9843 buffer changes.
9844
a39e2539
AR
98452009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9846
9847 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9848 Tiger.
51d861de
SM
9849 * nsfns.m (ns_do_applescript):
9850 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9851
35ed44db
AR
98522009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9853
9854 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9855
cbe0b5bf
AR
98562009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9857
9858 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 9859
6049d3a0
AR
9860 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9861
9862 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
9863 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9864 handle Ctrl-tab. (Bug#1841)
9865 (ns_get_color): Use unsigned long long for scanned hex string value.
9866 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 9867 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 9868 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 9869 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 9870 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 9871 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 9872 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 9873
d3810c21 9874 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 9875 DPI. (Bug#1316)
d3810c21
AR
9876 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9877 values in onTiger section.
4c7077c3 9878
e301e634
CY
98792009-01-19 Chong Yidong <cyd@stupidchicken.com>
9880
7f82490b
CY
9881 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9882 Check return value of font_spec_from_name.
64cc3cf6 9883 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
9884
9885 * font.c (font_spec_from_name): Return Qnil if font name could not
9886 be parsed.
9887 (font_parse_name): Treat a `?' character as part of an XLFD.
9888
e301e634
CY
9889 * fns.c (Fsubstring): Doc fix.
9890
1c0db158
KH
98912009-01-19 Kenichi Handa <handa@m17n.org>
9892
51d861de 9893 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
9894 (ftfont_list): Likewise.
9895
acf20901
JB
98962009-01-18 Juanma Barranquero <lekktu@gmail.com>
9897
fff4e459
JB
9898 * dbusbind.c (Fdbus_register_signal):
9899 * process.c (conv_sockaddr_to_lisp):
9900 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9901
acf20901
JB
9902 * callproc.c (Fgetenv_internal): Doc fix.
9903
e7abcdfb
CY
99042009-01-16 Chong Yidong <cyd@stupidchicken.com>
9905
9906 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9907 it is not even used.
9908
b60861e6
GM
99092009-01-16 Glenn Morris <rgm@gnu.org>
9910
9911 * font.c (Ffont_variation_glyphs): Silence compiler.
9912
8db52afe
JB
99132009-01-15 Juanma Barranquero <lekktu@gmail.com>
9914
9915 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9916 Reported by David Robinow <drobinow@gmail.com>.
9917
4cddb209
KH
99182009-01-15 Kenichi Handa <handa@m17n.org>
9919
51d861de 9920 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 9921
f247f67b
JR
99222009-01-14 Jason Rumney <jasonr@gnu.org>
9923
9924 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 9925 never a fontset. (Bug#1562)
f247f67b 9926
f56a4450
KH
99272009-01-14 Kenichi Handa <handa@m17n.org>
9928
9929 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 9930 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 9931
4e99855e
CY
99322009-01-13 Chong Yidong <cyd@stupidchicken.com>
9933
9934 * font.c (font_clear_prop): If clearing the family, clear the font
9935 width index too.
9936
fff4e459 9937 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 9938
24f01470
JB
99392009-01-12 Juanma Barranquero <lekktu@gmail.com>
9940
9941 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9942 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9943 functions, use sizeof.
9944
a41240a3
MR
99452009-01-12 Martin Rudalics <rudalics@gmx.at>
9946
9947 * keyboard.c (read_char): Fix case where last_nonmenu_event
9948 returned a bad value with submenus. (Bug#447)
9949
944636b8
CY
99502009-01-12 Chong Yidong <cyd@stupidchicken.com>
9951
9952 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9953 family, clear the font width index too.
9954
0dad7c6f
JR
99552009-01-11 Jason Rumney <jasonr@gnu.org>
9956
9957 * keyboard.c (cmd_error_internal): Exit when errors occur before
9958 frame creation and not in daemon mode. (Bug#1836)
9959
7c2363af
CY
99602009-01-10 Chong Yidong <cyd@stupidchicken.com>
9961
9962 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9963 of a display vector, backtrack.
9964 (try_window_reusing_current_matrix): Check glyph type before
9965 referencing charpos member.
9966
97b1b294
EZ
99672009-01-10 Eli Zaretskii <eliz@gnu.org>
9968
9969 Fix Bug #876:
9970
9971 * coding.c (inhibit_null_byte_detection): New variable.
9972 (detect_coding, detect_coding_system): Don't pay attention to null
9973 bytes if inhibit_null_byte_detection is non-zero.
51d861de 9974 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
9975 <inhibit-iso-escape-detection>: Doc fix.
9976
4624b6e3
JR
99772009-01-09 Jason Rumney <jasonr@gnu.org>
9978
9979 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 9980 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
9981 Only report Unicode Plane 2 fonts as unicode-sip.
9982
323b840c
CY
99832009-01-09 Chong Yidong <cyd@stupidchicken.com>
9984
51d861de
SM
9985 * xfaces.c (Fx_font_family_list): Delete function.
9986 Move compatibility version to faces.el.
323b840c 9987
51d861de 9988 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 9989
eba7400d
MR
99902009-01-09 Martin Rudalics <rudalics@gmx.at>
9991
9992 * frame.c (x_set_frame_parameters): Remember requested value for
9993 fullscreen before it's reset by the parameter handler.
9994
4b09796d
GM
99952009-01-09 Glenn Morris <rgm@gnu.org>
9996
9997 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9998 (last_command_event): ... and update all users.
4b09796d
GM
9999 (last_input_char): For clarity, rename to...
10000 (last_input_event): ... and update all users.
10001 (last-command-char, last-input-char): Move to subr.el as aliases.
10002 * cmds.c, commands.h: Update for last_command_char rename.
10003
14ccea62
CY
100042009-01-08 Chong Yidong <cyd@stupidchicken.com>
10005
51d861de 10006 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 10007
5f004711
JR
100082009-01-08 Jason Rumney <jasonr@gnu.org>
10009
10010 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10011 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10012 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10013 Don't declare.
fff4e459 10014 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
10015 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10016
b71f6f73
KH
100172009-01-07 Kenichi Handa <handa@m17n.org>
10018
50b06221 10019 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 10020 remember the coding system used for decoding in
50b06221
KH
10021 coding_system (Bug#1039).
10022
b71f6f73 10023 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 10024 breaking the loop. (Bug#870)
b71f6f73
KH
10025 (decode_coding_utf_16, decode_coding_emacs_mule)
10026 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10027 (decode_coding_charset): Likewise.
10028
56f668f7
MR
100292009-01-05 Martin Rudalics <rudalics@gmx.at>
10030
10031 * frame.c (x_set_frame_parameters): Make sure height (width) get
10032 applied when fullwidth (fullheight) is set. (Bug#1522)
10033
5da9424d
JB
100342009-01-04 Juanma Barranquero <lekktu@gmail.com>
10035
10036 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10037 (utc_base): Declare as ULONGLONG, not long double.
10038 (convert_time_raw): Delete.
10039 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10040 (initialize_utc_base): New function.
10041 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10042 (convert_from_time_t): Use initialize_utc_base; compute result with
10043 64-bit arithmetic.
10044 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10045
c4605e09
EZ
100462009-01-03 Eli Zaretskii <eliz@gnu.org>
10047
9acef61c 10048 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
10049 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10050 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10051 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10052 [!subprocesses]: Define.
10053 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10054 (Flist_system_processes, Fsystem_process_attributes)
10055 [!subprocesses]: Call list_system_processes and
10056 system_process_attributes instead of returning Qnil.
10057
9acef61c
JB
10058 * dosfns.c (system_process_attributes, list_system_processes):
10059 New functions.
c4605e09
EZ
10060
10061 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10062
10063 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10064 Don't use the default (no-op) implementation.
10065
8b7d0a16
JR
100662009-01-03 Jason Rumney <jasonr@gnu.org>
10067
a6d46bc1
JR
10068 * keyboard.c (parse_modifiers_uncached): Wheel events are
10069 clicks (bug#687).
10070
8b7d0a16
JR
10071 * w32term.c (x_query_colors, x_query_color): New functions.
10072
10073 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10074 (svg_load_image): Cast returned pointers from dynamically loaded
10075 functions. Eliminate W32 specific code.
10076
bfe11752
DN
100772009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10078
89e2438a
DN
10079 * nsfns.m (x_set_foreground_color, x_set_background_color)
10080 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10081 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10082 x_ prefix instead of ns_. Update references.
10083 (syms_of_nsfns): Add a FIXME comment.
10084
10085 * nsterm.m (x_set_cursor_type): New prototype.
10086 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10087
bfe11752
DN
10088 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10089 for Solaris instead of incorrectly providing Qutime and Qcutime.
10090
031da700
EZ
100912009-01-02 Eli Zaretskii <eliz@gnu.org>
10092
10093 * w32.c (process_times): Compute sum of utime and stime.
10094 (system_process_attributes): Add Qtime to the alist.
10095
10096 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10097 and add them to the alist.
10098
10099 * process.c (top level) <Qtime, Qctime>: New variables.
10100 (syms_of_process): staticpro them.
10101 (Fsystem_process_attributes): Add their documentation to the doc
10102 string.
10103
10104 * process.h: Declare Qtime and Qctime.
10105
df23bf08
JR
101062009-01-02 Jason Rumney <jasonr@gnu.org>
10107
9acef61c 10108 * image.c (Qgobject): New symbol.
df23bf08
JR
10109 (syms_of_image): Initialize it.
10110 (init_svg_functions): Load some functions from gobject library.
10111
5bbdf7aa
DN
101122009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10113
10114 * frame.c (make_terminal_frame): Remove redundant code and useless
10115 block.
10116
63136da6
AS
101172009-01-01 Andreas Schwab <schwab@suse.de>
10118
10119 * process.c (conv_sockaddr_to_lisp): Add workaround for
10120 getsockname bug on BSD.
10121
9ef69046
CY
101222009-01-01 Chong Yidong <cyd@stupidchicken.com>
10123
d6fafbe0
CY
10124 * xfns.c (x_create_tip_frame): Set border width of the X window.
10125
51d861de 10126 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 10127
f9c34147
JR
101282009-01-01 Jason Rumney <jasonr@gnu.org>
10129
9acef61c 10130 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
10131 Don't block input, as per earlier xterm.c changes.
10132
f5497e45
AR
101332008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10134
10135 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10136 (ns_appkit_version_int): New function.
10137 (x-server-version): Use ns_appkit_version_int and follow 21+
10138 convention of returning 3 integers.
10139
c19cab20
KH
101402008-12-30 Kenichi Handa <handa@m17n.org>
10141
10142 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10143 (CHAR_SURROGATE_PAIR_P): New macro.
10144
10145 * font.h (struct font_driver): New member get_variation_glyphs.
10146
9acef61c 10147 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
10148 (Ffont_variation_glyphs): New function.
10149 (syms_of_font): Defsubr it.
10150
10151 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10152 ftfont_variation_glyphs.
10153 (setup_otf_gstring): New function.
10154 (ftfont_drive_otf): Use it.
10155 (ftfont_shape_by_flt): Handle variation selector.
10156 (ftfont_variation_glyphs): New function.
10157
28cd591f
MR
101582008-12-30 Martin Rudalics <rudalics@gmx.at>
10159
10160 * frame.c (Vemacs_iconified): Remove.
10161
7f714baf
JR
101622008-12-30 Jason Rumney <jasonr@gnu.org>
10163
10164 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 10165 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 10166
9d2d22ab
CY
101672008-12-30 Chong Yidong <cyd@stupidchicken.com>
10168
10169 * indent.c (Fvertical_motion): Don't advance iterator if we have
10170 reseated to the desired position.
10171
10172 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10173 checking for pos match.
10174
545312c2
KH
101752008-12-30 Kenichi Handa <handa@m17n.org>
10176
1ede3eb6
KH
10177 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10178 just get the low 8-bit of the code.
10179
545312c2
KH
10180 * font.c (font_intern_prop): Validate str as multibyte.
10181
bd7bbf29
DN
101822008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10183
31e0750e
DN
10184 * dispextern.h (struct face): Move lface and hash from the middle
10185 of bitfields.
10186
bd7bbf29
DN
10187 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10188
b5672e7c
DN
101892008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10190
10191 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10192 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10193 instead of intervals.h.
10194
d704470f
AS
101952008-12-26 Andreas Schwab <schwab@suse.de>
10196
10197 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10198 cons.
10199
54b33868
MR
102002008-12-26 Martin Rudalics <rudalics@gmx.at>
10201
10202 * textprop.c (Qminibuffer_prompt): New variable.
10203 (syms_of_textprop): Initialize it.
10204 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10205 in minibuffer-prompt face. (Bug#1662)
10206
40b615d6
JR
102072008-12-25 Jason Rumney <jasonr@gnu.org>
10208
10209 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10210
baae5c2d
JR
102112008-12-24 Jason Rumney <jasonr@gnu.org>
10212
10213 * ralloc.c (r_alloc_reset_variable): New function.
10214
10215 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 10216 record of what points where. (Bug#716)
baae5c2d 10217
a9051c88
DN
102182008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10219
10220 * minibuf.c (read_minibuf): Follow the non-interactive case when
10221 running as a daemon, before detaching.
10222
8b146312
AS
102232008-12-22 Andreas Schwab <schwab@suse.de>
10224
10225 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10226 * gtkutil.c (free_widget_value): Use xfree instead of free.
10227
56f2de10
MR
102282008-12-22 Martin Rudalics <rudalics@gmx.at>
10229
10230 * frame.c (delete_frame): New function derived from
10231 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10232 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10233 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10234 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10235 * frame.h: Extern delete_frame.
10236 * window.c (window_loop):
10237 * terminal.c (delete_terminal):
10238 * xterm.c (x_connection_closed):
10239 * xfns.c (Fx_hide_tip):
9acef61c 10240 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 10241
1fc200d6
JR
102422008-12-21 Jason Rumney <jasonr@gnu.org>
10243
10244 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10245 when character maps to .notdef character.
10246
5e252df2
SM
102472008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10248
10249 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10250
99b72cc4
JR
102512008-12-20 Jason Rumney <jasonr@gnu.org>
10252
10253 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 10254 a graphical frame on Windows. (Bug#1325)
99b72cc4 10255
acc49a52
JD
102562008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10257
10258 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10259
6ea15123
CY
102602008-12-20 Chong Yidong <cyd@stupidchicken.com>
10261
10262 * minibuf.c (Fread_buffer): Doc fix.
10263
b2dab6c8
JR
102642008-12-20 Jason Rumney <jasonr@gnu.org>
10265
54ea0c87 10266 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 10267 server name in UNC paths. (Bug#719)
54ea0c87 10268
b2dab6c8 10269 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 10270 charbuf. (Bug#1035)
b2dab6c8 10271
6d1921be
DN
102722008-12-19 Daniel Engeler <engeler@gmail.com>
10273
10274 * sysdep.c (serial_configure): Fix typo.
10275
53934c98
DN
102762008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10277
10278 * sysdep.c: Include alloca.h.
f4f634e8
DN
10279 (system_process_attributes): Add implementation for Solaris.
10280
10281 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 10282
06e111a6
DN
102832008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10284
10285 Reorganize implementation of Flist_system_processes and
10286 Fsystem_process_attributes. No functional changes.
10287 * process.c: Don't #include pwd.h, grp.h and limits.h.
10288 (Flist_system_processes): Just call list_system_processes.
10289 (Fsystem_process_attributes): Just call system_process_attributes.
10290 (procfs_list_system_processes, time_from_jiffies)
10291 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10292 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10293
10294 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10295 (list_system_processes): Rename from
10296 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10297 Provide a do nothing implementation.
10298 (system_process_attributes): Rename from
10299 procfs_list_system_processes.
10300 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 10301 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
10302
10303 * w32.c (list_system_processes): Rename from
10304 w32_list_system_processes.
10305 (system_process_attributes): Rename from
10306 w32_system_process_attributes.
10307
10308 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10309
10310 * process.h (w32_list_system_processes)
10311 (w32_system_process_attributes): Remove.
362654a6
JB
10312 (list_system_processes, system_process_attributes):
10313 New prototypes.
06e111a6 10314
6a705b23
KH
103152008-12-19 Kenichi Handa <handa@m17n.org>
10316
10317 * xfont.c (xfont_decode_coding_xlfd): New function.
10318 (xfont_encode_coding_xlfd): New function.
10319 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10320 (xfont_list): Decode and encode XLFD by iso-8859-1.
10321 (xfont_match): Likewise.
10322 (xfont_list_family): Likewise.
10323 (xfont_open): Likewise.
10324
d66c0241 10325 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
10326 names are utf-8.
10327
d66c0241 10328 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
10329 names are utf-8.
10330
5a130941
JD
103312008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10332
10333 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10334 changed.
bfd20325
JD
10335 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10336 clicked on a detached tool bar button.
5a130941 10337
fd95644b
DN
103382008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10339
10340 * emacs.c (main): Print and error and exit when no data is read
10341 from the pipe.
10342
e6eee6ae
JR
103432008-12-17 Jason Rumney <jasonr@gnu.org>
10344
10345 * w32font.c (w32font_has_char): Always return -1.
10346
a35dd56b
KH
103472008-12-16 Kenichi Handa <handa@m17n.org>
10348
10349 * font.c (font_open_entity): Fix previous change.
10350
0e3635c2
DN
103512008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10352
10353 * process.c: Include <limits.h>.
10354
d4835507 103552008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
10356
10357 * font.c (font_update_drivers): Fix mistake in reconstructing the
10358 driver list.
10359
103602008-12-16 Chong Yidong <cyd@stupidchicken.com>
10361
10362 * font.c (font_clear_cache): Fix format of font cache data.
10363
e2cbc401
CY
103642008-12-15 Chong Yidong <cyd@stupidchicken.com>
10365
10366 * xftfont.c (xftfont_open): Free Xft font pattern if
10367 XftFontOpenPattern fails.
10368
10369 * xterm.c (x_free_frame_resources): Remove extraneous call to
10370 free_frame_faces.
10371
b131d535
CY
103722008-12-13 Chong Yidong <cyd@stupidchicken.com>
10373
10374 * xterm.c (x_delete_display): Move xim_close_dpy call to
10375 x_delete_terminal.
10376 (x_delete_terminal): Call xim_close_dpy.
10377
e6df5336
JR
103782008-12-13 Jason Rumney <jasonr@gnu.org>
10379
10380 * w32font.c (intern_font_name): New function.
10381 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10382 (w32font_open_internal, Fx_select_font): Decode font name.
10383 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10384
10385 * w32font.h (intern_font_name): Declare new function.
10386
10387 * w32uniscribe.c (add_opentype_font_name_to_list):
10388 Use intern_font_name.
10389
20d68145
CY
103902008-12-13 Chong Yidong <cyd@stupidchicken.com>
10391
9f2554de
CY
10392 * frame.c (Fdelete_frame): Call free_font_driver_list.
10393
3d9bec9a
CY
10394 * font.c (free_font_driver_list): Implement missing function.
10395
20d68145
CY
10396 * w32term.c (w32_term_init): Don't initialize the image cache
10397 here; it will be done in init_frame_faces.
10398
10399 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10400 (struct x_display_info): Remove unused member null_pixel. New
10401 member xim_callback_data.
10402
10403 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10404 (xim_initialize): Save pointer to callback function data.
10405 (xim_close_dpy): Free callback function data. Call XCloseIM,
10406 reverting 2008-11-04 change by David Smith.
10407 (x_term_init): Don't initialize the image cache here; it will be
10408 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10409 (x_delete_display): Free x_dnd_atoms member.
10410
96f9306b
KH
104112008-12-13 Kenichi Handa <handa@m17n.org>
10412
6dec9044
JB
10413 * font.c (font_rescale_ratio): Moved from xfaces.c.
10414 Argument type changed. Handle a font-spec too.
96f9306b 10415 (font_score): Check Vface_font_rescale_alist.
6dec9044 10416 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
10417
10418 * xfaces.c (font_rescale_ratio): Moved to font.c.
10419
8d5b4964
CY
104202008-12-13 Chong Yidong <cyd@stupidchicken.com>
10421
10422 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10423
e6df5336
JR
104242008-12-12 Jason Rumney <jasonr@gnu.org>
10425
10426 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10427 Vwindow_system_version to the real w32 major version.
10428
97c6058a
DN
104292008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10430
10431 * term.c (init_tty): Move setting the terminal name before the
10432 potential user: maybe_fatal.
10433
ec4e88d7
CY
104342008-12-11 Chong Yidong <cyd@stupidchicken.com>
10435
d4835507
JB
10436 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10437 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 10438
b4233ec9
JR
104392008-12-11 Jason Rumney <jasonr@gnu.org>
10440
8ec71e23 10441 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 10442 SYMBOL_CHARSET. (Bug#547)
8ec71e23 10443
b4233ec9 10444 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 10445 size for surrogates. (Bug#1096, bug#872)
b4233ec9 10446
011a0143
JB
104472008-12-11 Juanma Barranquero <lekktu@gmail.com>
10448
10449 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10450
3c309f34
JB
104512008-12-11 Juanma Barranquero <lekktu@gmail.com>
10452
10453 * process.c (Fsystem_process_attributes, syms_of_process):
10454 Fix typo in name of Ssystem_process_attributes.
10455 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10456
fedc6ab5
JB
104572008-12-11 Juanma Barranquero <lekktu@gmail.com>
10458
10459 * syntax.c (Fmodify_syntax_entry): Doc fix.
10460
ba3de0e8
JB
104612008-12-10 Juanma Barranquero <lekktu@gmail.com>
10462
10463 * font.c (Ffont_spec): Move usage to end of docstring.
10464
174f1c74
JR
104652008-12-10 Jason Rumney <jasonr@gnu.org>
10466
10467 * w32font.c (Qcham): New symbol.
10468 (font_supported_scripts): Add cham, and comments for other new
10469 scripts in bitfield from OpenType spec.
9d32f818
JR
10470 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10471 contain characters beyond the bmp.
174f1c74 10472
7b649478
KH
104732008-12-10 Kenichi Handa <handa@m17n.org>
10474
10475 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 10476 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
10477 Qunicode_sip.
10478
2133e2d1
JB
104792008-12-10 Juanma Barranquero <lekktu@gmail.com>
10480
10481 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10482 (Fcoding_system_put): Use QCdefault_char.
10483 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10484
9af886ee
CY
104852008-12-09 Chong Yidong <cyd@stupidchicken.com>
10486
74d819eb
CY
10487 * xftfont.c (syms_of_xftfont): Fix typo.
10488
4ccfa1c0 10489 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 10490
7c19d3ae
DN
104912008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10492
10493 * emacs.c (main): Close daemon_pipe on exec.
10494
567826bb
CY
104952008-12-08 Chong Yidong <cyd@stupidchicken.com>
10496
10497 * termchar.h (struct tty): New members termcap_term_buffer and
10498 termcap_strings_buffer.
10499
10500 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 10501 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
10502 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10503 All callers changed.
10504 (init_tty): Store termcap data and string buffers in new struct
10505 tty members termcap_term_buffer and termcap_strings_buffer.
10506 (delete_tty): Free them.
4ccfa1c0 10507 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 10508
aa96c42b
SZ
105092008-12-07 Seiji Zenitani <zenitani@mac.com>
10510
10511 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 10512 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 10513
b7e1d896
CY
105142008-12-06 Chong Yidong <cyd@stupidchicken.com>
10515
10516 * coding.c (make_conversion_work_buffer): Disable buffer
10517 modification hooks in the work buffer.
10518
b5ec91a5
EZ
105192008-12-05 Eli Zaretskii <eliz@gnu.org>
10520
10521 * process.c (procfs_system_process_attributes): If `nread' has a
10522 negative value, assign zero to it.
10523
a5d2a52b
CY
105242008-12-05 Chong Yidong <cyd@stupidchicken.com>
10525
68c5540b 10526 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 10527
7bf1bb21
KH
105282008-12-05 Kenichi Handa <handa@m17n.org>
10529
10530 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10531 second character is a combining character.
10532
2fdc7d00
EZ
105332008-12-05 Eli Zaretskii <eliz@gnu.org>
10534
10535 * process.c (procfs_system_process_attributes): Don't use cmd,
10536 cmdsize, and q without initializing them first.
10537
bf6bfba8
JR
105382008-12-04 Jason Rumney <jasonr@gnu.org>
10539
10540 * w32font.c (w32font_draw): Initialize orig_clip before getting
10541 it, and delete it when finished.
10542
a3b1a468
DN
105432008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10544
10545 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10546 case when running as a daemon before detaching.
10547
8b8be8eb
JB
105482008-12-03 Juanma Barranquero <lekktu@gmail.com>
10549
805f2638 10550 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 10551
b1bde622
KH
105522008-12-03 Kenichi Handa <handa@m17n.org>
10553
e500c47d
KH
10554 * font.c (font_at): Set `multibyte' at first.
10555
ca516334
KH
10556 * coding.c (decode_coding_charset): Check type of an element of
10557 vector VALIDS.
7bf1bb21 10558 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 10559
4ccfa1c0 10560 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
10561 (font_for_char): Likewise.
10562
1e5ecd37
CY
105632008-12-03 Chong Yidong <cyd@stupidchicken.com>
10564
d5b01609 10565 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
10566 (font_update_lface): Handle fonts with corrupted size specs,
10567 i.e. non-int and non-float.
d5b01609 10568
11e3a6e4 10569 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 10570 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 10571 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 10572
ab06788b
CY
10573 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10574
1e5ecd37 10575 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 10576 underline_minimum_offset for underline position.
1e5ecd37 10577
63c125ab
DN
105782008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10579
10580 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10581
10582 * character.c (c_string_width): Specify the type for LEN.
10583
3a8406e1
KH
105842008-12-03 Kenichi Handa <handa@m17n.org>
10585
4ccfa1c0 10586 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 10587 (decode_coding_utf_8): Likewise.
4ccfa1c0 10588 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 10589 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 10590
651df7d9
CY
105912008-12-02 Chong Yidong <cyd@stupidchicken.com>
10592
10593 * keyboard.c (make_lispy_position): Only use PT if the selected
10594 window is current.
10595
1f625c6c
AS
105962008-12-02 Andreas Schwab <schwab@suse.de>
10597
f7741ce9
AS
10598 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10599
1f625c6c
AS
10600 * doprnt.c (doprnt1): Fix size of charbuf.
10601
92bc2678
CY
106022008-12-02 Chong Yidong <cyd@stupidchicken.com>
10603
10604 * keyboard.c (timer_check): Revert last change.
10605
93b9e8cc
JB
106062008-12-02 Juanma Barranquero <lekktu@gmail.com>
10607
10608 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10609
fd7a37d5
JB
106102008-12-01 Juanma Barranquero <lekktu@gmail.com>
10611
10612 * makefile.w32-in: Update dependencies.
10613 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10614
c115043b
AS
106152008-12-01 Andreas Schwab <schwab@suse.de>
10616
10617 * font.c (register_font_driver): Use xmalloc.
10618 (font_put_frame_data): Likewise.
10619
f5668d2a
CY
106202008-12-01 Chong Yidong <cyd@stupidchicken.com>
10621
860d96be
CY
10622 * xfaces.c (realize_x_face): Make abort condition clearer.
10623
f5668d2a
CY
10624 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10625
379c17e7
CY
106262008-11-30 Chong Yidong <cyd@stupidchicken.com>
10627
10628 * keyboard.c (timer_check): After a timer runs, ensure that the
10629 selected window's buffer is current.
10630
35f36d65
JB
106312008-11-30 Juanma Barranquero <lekktu@gmail.com>
10632
f952c61c
JB
10633 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10634 It was accidentally restored by the Unicode merge.
10635
35f36d65
JB
10636 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10637
b23077df
JB
106382008-11-29 Juanma Barranquero <lekktu@gmail.com>
10639
10640 * w32proc.c: Include "coding.h".
10641 (Fw32_short_file_name): Encode filename passed to Windows API.
10642 (Fw32_long_file_name): Encode filename passed to Windows API and
10643 decode back the result. (Bug#1433)
10644
b8ebe9dd
KH
106452008-11-29 Kenichi Handa <handa@m17n.org>
10646
8cc53f96
KH
10647 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10648 not before accessing it.
10649
b8ebe9dd
KH
10650 * charset.c (Fdefine_charset_internal): After calculating
10651 min_char, max_char, and fastmap, copy the charset structure again.
10652 (encode_char): Fix the previous change.
10653
59bc82c0
SZ
106542008-11-28 Seiji Zenitani <zenitani@mac.com>
10655
10656 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10657
10658 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10659
10660 * nsterm.m (x_set_frame_alpha): New function.
10661
32247e3d
EZ
106622008-11-27 Eli Zaretskii <eliz@gnu.org>
10663
10664 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10665
b003e5ff
JB
106662008-11-27 Juanma Barranquero <lekktu@gmail.com>
10667
10668 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10669 pointer to check_face_name.
10670
708550f5
KH
106712008-11-27 Kenichi Handa <handa@m17n.org>
10672
10673 * category.h (SET_CATEGORY_SET): Call set_category_set.
10674 (set_category_set): Extern it.
10675
10676 * category.c (hash_get_category_set): New function.
10677 (Fmodify_category_entry): Adjusted for the change of
10678 char_table_ref_and_range. Call hash_get_category_set to get a
10679 category set to store in the table.
10680
10681 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10682 Funify_charset.
10683
2ae37cf0 10684 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
10685 (DECODE_CHAR): Check if the decoder vector is ready.
10686 (ENCODE_CHAR): Check if the encoder char-table is ready.
10687 (maybe_unify_char): Extern it.
10688
10689 * charset.c (Vchar_unified_charset_table): Delete it.
10690 (inhibit_load_charset_map): New variable.
10691 (temp_charset_work): New variable.
10692 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10693 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10694 New macros.
10695 (load_charset_map): Meaning of control_flag changed. If
10696 inhibit_load_charset_map is nonzero, setup a table in
10697 temp_charset_work.
10698 (load_charset): New argument control_flag.
10699 (map_charset_for_dump): New function.
10700 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10701 map_charset_for_dump.
10702 (Fdefine_charset_internal): If the charset method is MAP, load
10703 mapping tables by calling load_charset.
10704 (Funify_charset): Don't load a mapping table but directly set
10705 Vchar_unify_table.
10706 (maybe_unify_char): New function.
10707 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10708 Handle the case of inhibit_load_charset_map being nonzero.
10709 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10710 Handle the case of inhibit_load_charset_map being nonzero.
10711 (Fclear_charset_maps): Just free temp_charset_work.
10712 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10713 variable.
10714
10715 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10716 change of char_table_ref_and_range.
10717 (char_table_ref_and_range): Change the meaning of argument FROM
10718 and TO. Now the caller must provide initial values for *FROM
10719 and *TO.
10720
10721 * fontset.c (fontset_add): Adjusted for the change of
10722 char_table_ref_and_range.
10723 (fontset_get_font_group): Likewise.
10724 (Ffontset_info): Likewise.
10725
10726 * keymap.c (describe_vector): Adjusted for the change of
10727 char_table_ref_and_range. For char-table, put boundary between
10728 non-ASCII and 8-bit characters.
10729
10730 * print.c (print_object): For bool-vector, delete unnecessary
10731 check of ASCII_BYTE_P.
10732
9196133b
JR
107332008-11-26 Jason Rumney <jasonr@gnu.org>
10734
10735 * w32font.c (w32font_open_internal): Don't include external
9acef61c 10736 leading in font height. (Bug#879)
9196133b 10737
9f688acf
GM
107382008-11-26 Glenn Morris <rgm@gnu.org>
10739
10740 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10741 redefinition with ifdef. (Bug#1383)
10742
90d19aff
AR
107432008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10744
10745 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10746
4ccfa1c0 107472008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
10748
10749 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10750 New EmacsView methods.
10751 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10752 Fixes bug #1048,1357,1414.
10753
107542008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10755
10756 Fix bug #1362.
10757 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10758 is not an indexed color.
10759 * nsterm.m (free_indexed_color): Add argument checking.
10760 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10761
e7d5ecb3
CY
107622008-11-24 Chong Yidong <cyd@stupidchicken.com>
10763
10764 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10765 Document confirm-after-completion value for
10766 minibuffer-completion-confirm.
10767
c285743c
JR
107682008-11-24 Jason Rumney <jasonr@gnu.org>
10769
10770 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10771 warning.
10772
b0857706
JR
107732008-11-23 Jason Rumney <jasonr@gnu.org>
10774
10775 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10776 restored before returning.
10777
10778 * w32font.c (check_face_name): New function.
10779 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 10780 fonts. (Bug#642)
b0857706 10781
ee50ff07
MR
107822008-11-22 Martin Rudalics <rudalics@gmx.at>
10783
10784 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10785 confirm-nonexistent-file-or-buffer in doc-string.
10786
b8ff72fa
SM
107872008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10788
10789 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10790 Fix copy/paste typo. Add checks.
10791
cee53ed4
KH
107922008-11-21 Kenichi Handa <handa@m17n.org>
10793
10794 * coding.c (detect_coding_iso_2022): Reject invalid composition
10795 sequence.
10796 (DECODE_COMPOSITION_START): If the current source is the last
10797 block, and the current composition doesn't end, regard this
10798 sequence as invalid.
10799 (decode_coding_iso_2022): Handle invalid composition sequence.
10800
f6ef1e65
MR
108012008-11-20 Martin Rudalics <rudalics@gmx.at>
10802
10803 * window.c (coordinates_in_window): Don't return
10804 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10805 line when the window is not the rightmost one. (Bug#1372)
10806
e08b1705
MR
108072008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10808
10809 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10810
ad98e89f
EZ
108112008-11-15 Eli Zaretskii <eliz@gnu.org>
10812
10813 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10814 and bright_bg if noninteractive is non-zero.
10815
fb098a4b
CY
108162008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10817
10818 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10819 x_draw_glyph_string_background.
10820
10821 * w32term.c (x_draw_glyph_string): Likewise.
10822
ce952b6e
CY
108232008-11-15 Chong Yidong <cyd@stupidchicken.com>
10824
10825 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10826 the next glyph string once past the overhang width.
10827
10828 * nsterm.m (ns_draw_glyph_string): Likewise.
10829
10830 * w32term.c (x_draw_glyph_string): Likewise.
10831
26ea7079
CY
108322008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10833
10834 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10835 double file close.
10836
1c33c906
MR
108372008-11-14 Martin Rudalics <rudalics@gmx.at>
10838
10839 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10840 dedicated status of window before attempting to display another
10841 buffer in it.
10842
8fc29035
JB
108432008-11-14 Juanma Barranquero <lekktu@gmail.com>
10844
10845 * msdos.c (Fmsdos_long_file_names):
10846 (syms_of_msdos) <dos-unsupported-char-glyph>:
10847 * dosfns.c (Fint86): Fix typos in docstrings.
10848
55fb4286
EZ
108492008-11-14 Eli Zaretskii <eliz@gnu.org>
10850
10851 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10852
3fda0315
KY
108532008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10854
10855 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10856
7e849c17
CY
108572008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10858
10859 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10860
10861 * frame.h: Negative alpha means "don't touch".
10862
10863 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10864
10865 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10866
b9fd67bd
DN
108672008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10868
10869 * hftctl.c:
10870 * chpdef.h:
10871 * acldef.h: Remove files used only for systems no longer supported.
10872
10873 * Makefile.in: Fix .o alphabetical ordering.
10874 (hftctl.o): Remove dependency, file removed.
10875 (keymap.o, print.o): Depend on charset.h.
10876
d5998e03
KH
108772008-11-10 Kenichi Handa <handa@m17n.org>
10878
2ae37cf0 10879 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 10880
be70e183
CY
108812008-11-08 Chong Yidong <cyd@stupidchicken.com>
10882
10883 * dired.c (file_name_completion): If completion_ignore_case is
10884 enabled, ignore case when checking completion-regexp-list.
10885
7cf94eac
EZ
108862008-11-08 Eli Zaretskii <eliz@gnu.org>
10887
10888 * vm-limit.c (get_lim_data): Fix last change.
10889
ee107a89
KH
108902008-11-08 Kenichi Handa <handa@m17n.org>
10891
10892 * character.c (Fget_byte): New function.
10893 (syms_of_character): Defsubr Fget_byte.
10894
5fd15622
CY
108952008-11-07 Chong Yidong <cyd@stupidchicken.com>
10896
10897 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10898 cursor position is valid after scrolling.
10899
13d62fad
JB
109002008-11-06 Juanma Barranquero <lekktu@gmail.com>
10901
10902 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10903
a1dd2936
GM
109042008-11-06 Glenn Morris <rgm@gnu.org>
10905
10906 * xterm.c (handle_one_xevent): Don't let popup menus cause
10907 mouse-autoselect-window related window switching. (Bug#1261)
10908
860cd236
CY
109092008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10910
10911 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10912
653a3150
AS
109132008-11-04 Andreas Schwab <schwab@suse.de>
10914
10915 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10916
870f5cac
CY
109172008-11-03 Chong Yidong <cyd@stupidchicken.com>
10918
10919 * xfns.c (Fx_wm_set_size_hint): New function.
10920
1e02f3cb
MR
109212008-11-03 Martin Rudalics <rudalics@gmx.at>
10922
10923 * textprop.c (Fprevious_single_char_property_change): Return 0
10924 when there's no change in a string. (Bug#1301)
10925
e630dfc6
MR
109262008-11-02 Martin Rudalics <rudalics@gmx.at>
10927
10928 * frame.c (do_switch_frame): New argument NORECORD passed to
10929 Fselect_window.
10930 (Fselect_frame): New argument NORECORD passed to
10931 do_switch_frame.
10932 (Fset_frame_selected_window): New argument NORECORD passed to
10933 Fselect_frame.
10934 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10935 in call of do_switch_frame.
10936 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10937 Handle NORECORD argument in call of Fselect_frame.
10938 * lisp.h (do_switch_frame, Fselect_frame)
10939 (Fset_frame_selected_window): Adjust declarations.
10940 * window.c (select_frame_norecord): New function.
10941 (run_window_configuration_change_hook): Use it and call
10942 Fselect_frame with NORECORD set.
10943 (Fselect_window): Pass NORECORD to Fselect_frame.
10944 (Fset_window_configuration): Handle NORECORD argument in call of
10945 do_switch_frame.
10946 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10947 Fset_frame_selected_window.
10948 * keyboard.c (command_loop_1): Handle NORECORD in call of
10949 Fselect_frame (currently ifdefd).
10950
9020b223
GM
109512008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10952
10953 * emacs.c (USAGE2): Untabify.
10954
793ffee8
SM
109552008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10956
10957 * composite.c (fill_gstring_header): Fix copy/paste typo.
10958
ab6d1131
MR
109592008-10-31 Martin Rudalics <rudalics@gmx.at>
10960
10961 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10962 (Fother_window): Rename argument and rewrite doc-string.
10963 (select_window_norecord): Fix return value. (Bug#1276)
10964
601a9cf1
JB
109652008-10-30 Juanma Barranquero <lekktu@gmail.com>
10966
10967 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10968 new frames overriding foreground for tooltips. Based on similar patch
10969 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10970
813b0652
CY
109712008-10-29 Chong Yidong <cyd@stupidchicken.com>
10972
10973 * emacs.c (Fdaemon_initialized): Initialize nfd.
10974
4414f58f
MR
109752008-10-29 Martin Rudalics <rudalics@gmx.at>
10976
10977 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10978 (Fwindow_text_height): Clarify doc-strings.
10979 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10980 doc-string of window-scroll-functions.
10981
ecdcaa09
RS
109822008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10983
10984 * category.c (syms_of_category): Fix typo in docstring.
10985
23fe745a
JB
109862008-10-28 Juanma Barranquero <lekktu@gmail.com>
10987
10988 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10989 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10990 Fix typos in docstrings.
10991
ff808935
DN
109922008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10993
10994 * emacs.c (daemon_pipe): Make non-static.
10995 (IS_DAEMON): Move definition ...
10996 * lisp.h (IS_DAEMON): ... here.
10997 (daemon_pipe): Declare.
10998 (is_daemon): Remove.
10999 * dispnew.c (init_display): Use IS_DAEMON.
11000
fc012771
SM
110012008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11002
11003 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11004 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11005
11006 * emacs.c (is_daemon): Remove.
11007 (main): Don't set is_daemon.
11008 (IS_DAEMON): New macro.
11009 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 11010 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
11011 parent exits.
11012 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11013
d8bdbe6f
CY
110142008-10-27 Chong Yidong <cyd@stupidchicken.com>
11015
d1a072bf
CY
11016 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11017 over-sized glyph, draw it with the default glyph width.
11018
e2e325aa
CY
11019 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11020 glyph, draw it with the default glyph width.
11021
11022 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11023 glyph, draw it with the default glyph width.
11024
d8bdbe6f
CY
11025 * xdisp.c (try_scrolling): When computing the distance from the
11026 scroll margin to PT, try moving some distance past the window
11027 bottom before giving up.
11028
7bfac547
MR
110292008-10-27 Martin Rudalics <rudalics@gmx.at>
11030
11031 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11032 (Fset_window_buffer): Explain in doc-string that a window can be
11033 "strongly" dedicated to its buffer.
11034
4ff029f6
DN
110352008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11036
11037 * emacs.c (daemon_name): New variable.
11038 (main): Deal with --daemon=SERVER_NAME.
11039 (Fdaemonp): Return a name if one was passed to --daemon.
11040
5790ef40
DN
110412008-10-26 Romain Francoise <romain@orebokech.com>
11042
f9bd0df9 11043 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
11044 (main): Create a pipe before forking, make the parent exit only after
11045 the child has closed its end of the pipe. Move closing the
11046 descriptors ...
11047 (Fdaemon_initialized): ... here. New function.
11048
f5385255
SM
110492008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11050
4d632321
SM
11051 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11052 the previous unoptimized table.
11053
f5385255
SM
11054 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11055 the distinction between non-nil and non-t value of `dedicated'.
11056
6c56a0f3
CY
110572008-10-25 Chong Yidong <cyd@stupidchicken.com>
11058
11059 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 11060 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 11061
fec89261
MR
110622008-10-25 Martin Rudalics <rudalics@gmx.at>
11063
11064 * window.c (Fget_buffer_window, Fdelete_windows_on)
11065 (Freplace_buffer_in_windows): Make buffer argument optional and
11066 rename to buffer_or_name.
11067
34fcddd0
CY
110682008-10-24 Chong Yidong <cyd@stupidchicken.com>
11069
f5385255
SM
11070 * xdisp.c (handle_single_display_spec, handle_display_prop):
11071 Undo 2005-05-16 change.
34fcddd0
CY
11072 (handle_stop): Pop iterator if it's loaded with an empty string.
11073 (get_overlay_strings_1): Don't save iterator if it's loaded with
11074 an empty string (bug#1201).
11075
064766f2
KH
110762008-10-24 Kenichi Handa <handa@m17n.org>
11077
11078 * ftfont.c (ftfont_otf_features): Fix previous change.
11079 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11080 calling ftfont_otf_features.
11081
f9bd0df9 110822008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
11083
11084 * font.c (font_match_p): Fix for the case that a vector of
11085 characters is in script-representative-chars.
11086
1dae9197
MA
110872008-10-24 Michael Albinus <michael.albinus@gmx.de>
11088
11089 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 11090 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
11091 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11092 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 11093 macro. (Bug#1186)
1dae9197 11094
f9bd0df9 110952008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
11096
11097 * s/sol2-10.h: New file.
11098
878a4584
JB
110992008-10-23 Juanma Barranquero <lekktu@gmail.com>
11100
11101 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11102 poor beast has survived 9+ years and the jump from xterm.c!).
11103
cd265ca6
MR
111042008-10-23 Martin Rudalics <rudalics@gmx.at>
11105
11106 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11107 Reword doc-string.
f5385255 11108 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 11109
472a4dc9
JB
111102008-10-23 Juanma Barranquero <lekktu@gmail.com>
11111
11112 * character.c (syms_of_character) <script-representative-chars>:
11113 <unicode-category-table>: Doc fixes.
11114
159bd5a2
NF
111152008-10-23 Noah Friedman <friedman@splode.com>
11116
11117 * coding.c (make_conversion_work_buffer): Check that
11118 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11119 Fget_buffer_create.
11120
49f9c344
KH
111212008-10-23 Kenichi Handa <handa@m17n.org>
11122
11123 * font.c (font_add_log): Check the values of extra properties.
11124
12bb3111
MR
111252008-10-22 Martin Rudalics <rudalics@gmx.at>
11126
11127 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11128 Reword doc-string.
11129 (Fset_window_parameter): Use NILP.
11130 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 11131 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 11132
bbeb4e99
JB
111332008-10-22 Juanma Barranquero <lekktu@gmail.com>
11134
11135 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11136
111372008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
11138
11139 * nsfns.m (ns_appkit_version): New function.
11140 (x-server-version): Use it.
11141 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11142 (x-server-vendor): Don't check_ns().
11143
11144 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11145
a9b555d3
JB
111462008-10-22 Juanma Barranquero <lekktu@gmail.com>
11147
11148 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11149 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11150
4626499f
KH
111512008-10-22 Kenichi Handa <handa@m17n.org>
11152
e3681952
KH
11153 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11154 scripts.
11155
4626499f
KH
11156 * category.c (word_boundary_p): Check scripts instead of charset.
11157 Handle nil value in word-separating-categories and
11158 word-combining-categories.
11159 (syms_of_category): Fix docstrings of word-separating-categories
11160 and word-combining-categories.
11161
1560f91a
EZ
111622008-10-21 Eli Zaretskii <eliz@gnu.org>
11163
11164 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11165 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11166
f4668441
MR
111672008-10-21 Martin Rudalics <rudalics@gmx.at>
11168
11169 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11170 Rename arg "buffer" to "buffer_or_name".
11171 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11172 it optional.
11173 (no_switch_window): Remove since the return value is not used.
a9b555d3 11174 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
11175 Consider window as dedicated when Fwindow_dedicated_p returns a
11176 non-nil value.
11177 * lisp.h: Remove prototype for no_switch_window.
11178
fd75ddb2
JD
111792008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11180
11181 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 11182 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 11183
07295713
KH
111842008-10-21 Kenichi Handa <handa@m17n.org>
11185
11186 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11187 check Vlatin_extra_code_table.
11188
712adc82
EZ
111892008-10-20 Eli Zaretskii <eliz@gnu.org>
11190
11191 * fileio.c (Fset_file_modes): Doc fix.
11192
f549eb0b
MA
111932008-10-19 Michael Albinus <michael.albinus@gmx.de>
11194
11195 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11196 in arrays.
11197
aac0c6e3
MR
111982008-10-19 Martin Rudalics <rudalics@gmx.at>
11199
11200 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11201 Mention kill-buffer in doc-string.
11202 (Fset_window_buffer): Reinsert tem check removed in last commit.
11203 (Fenlarge_window, Fshrink_window): Have argument names and
11204 doc-string follow Elisp manual more closely.
11205
112062008-10-18 Eli Zaretskii <eliz@gnu.org>
11207
11208 * fileio.c (Fset_file_modes): Doc fix.
11209
112102008-10-18 Martin Rudalics <rudalics@gmx.at>
11211
11212 * window.c (Fwindow_width, Fset_window_start)
11213 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
11214 (Fdelete_windows_on, Freplace_buffer_in_windows):
11215 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
11216 (Fwindow_dedicated_p): Make window argument optional.
11217 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11218 (Fset_window_buffer): Respect any non-nil dedicated value for
11219 window. Rename "buffer" argument to "buffer_or_name".
11220
112212008-10-18 Ulrich Mueller <ulm@gentoo.org>
11222
11223 * m/sh3.h: New file, machine description for SuperH.
11224
112252008-10-17 Martin Rudalics <rudalics@gmx.at>
11226
11227 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11228
112292008-10-17 Kenichi Handa <handa@m17n.org>
11230
11231 * ftfont.c (ftfont_otf_features): Fix indexing
11232 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11233
112342008-10-16 Magnus Henoch <mange@freemail.hu>
11235
11236 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11237 (Fdbus_call_method_asynchronously): Ditto.
11238 This change makes C-h f display the argument list.
11239
112402008-10-16 Chong Yidong <cyd@stupidchicken.com>
11241
11242 * fileio.c (Fexpand_file_name): Doc fix.
11243
11244 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11245 of :foreground and :background equivalent to unspecified (20.x
11246 compatibility).
11247
112482008-10-15 Eli Zaretskii <eliz@gnu.org>
11249
11250 * buffer.c (syms_of_buffer): Doc fix.
11251
112522008-10-14 Kenichi Handa <handa@m17n.org>
11253
11254 * font.c (font_clear_prop): When clearing font width, clear the
11255 average width field too.
11256
112572008-10-12 Andreas Schwab <schwab@suse.de>
11258
11259 * ftfont.c (ftfont_shape_by_flt): Make static.
11260 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11261
11262 * font.c: Don't include <m17n-flt.h>.
11263
112642008-10-10 Eli Zaretskii <eliz@gnu.org>
11265
11266 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11267
112682008-10-09 Eli Zaretskii <eliz@gnu.org>
11269
11270 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11271 away code.
11272
112732008-10-09 Chong Yidong <cyd@stupidchicken.com>
11274
11275 * dispnew.c (update_text_area): Avoid looping due to large glyph
11276 overhangs (bug#1070).
11277
112782008-10-09 Kenichi Handa <handa@m17n.org>
11279
11280 * fontset.c (face_for_char): If face->fontset is negative, just
11281 return ascii_face.
11282
f5385255
SM
11283 * font.c (font_delete_unmatched): Fix previous change.
11284 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
11285
112862008-10-09 Martin Rudalics <rudalics@gmx.at>
11287
11288 * frame.c (Fraise_frame): On text-only terminals select frame in
11289 order to make it visible. (Bug#1061)
11290
112912008-10-08 Chong Yidong <cyd@stupidchicken.com>
11292
11293 * fontset.c (fontset_find_font): Check frame validity.
11294
112952008-10-07 Chong Yidong <cyd@stupidchicken.com>
11296
a9b555d3 11297 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
11298 (xg_display_close): Allow Emacs to close all displays (bug#985).
11299
113002008-10-06 Andreas Schwab <schwab@suse.de>
11301
f5385255 11302 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
11303
113042008-10-06 Chong Yidong <cyd@stupidchicken.com>
11305
f5385255 11306 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 11307
a9b555d3 11308 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
11309
11310 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11311 during initialization.
11312
113132008-10-04 Eli Zaretskii <eliz@gnu.org>
11314
11315 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11316 whole thing on MSDOS frames as well as on a TTY.
11317
11318 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11319 well as for TTY.
11320 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11321 well as on a TTY.
11322
11323 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11324 as well as for TTY.
11325
11326 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11327
11328 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11329 MSDOS frames as well.
11330
113312008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11332
11333 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11334 correct arguments.
b71ac3dd 11335 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
11336
113372008-10-03 Glenn Morris <rgm@gnu.org>
11338
11339 * emacs.c (USAGE1): Add --daemon.
11340
113412008-10-02 Eli Zaretskii <eliz@gnu.org>
11342
11343 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11344 100, so it's in percents as advertised.
11345
113462008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11347
11348 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11349 (ns_output.current_cursor, ns_output.desired_cursor)
11350 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11351 (FRAME_NEW_CURSOR_COLOR): Remove.
11352
11353 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 11354 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
11355 enumeration (HOLLOW_BOX_CURSOR, etc.).
11356
11357 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11358 (draw_window_cursor): Simplify code.
f5385255
SM
11359 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11360 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 11361 updates manually.
a9b555d3
JB
11362 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11363 Use core Emacs cursor types.
aac0c6e3 11364
b8ff72fa 11365 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
11366
113672008-10-02 Martin Rudalics <rudalics@gmx.at>
11368
11369 * process.c (Faccept_process_output): Fix doc-string.
11370
113712008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11372
11373 * gmalloc.c (__sbrk): Also define for uClibc.
11374
11375 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11376 for uClibc.
11377
113782008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11379
11380 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11381 styles.
11382 (nsfont_open): Reenable the cache.
11383
113842008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11385
11386 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11387 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11388
113892008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11390
11391 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11392 a suspended terminal.
11393
113942008-09-30 Michael Albinus <michael.albinus@gmx.de>
11395
11396 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11397
113982008-09-30 Eli Zaretskii <eliz@gnu.org>
11399
11400 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11401
114022008-09-30 Chong Yidong <cyd@stupidchicken.com>
11403
11404 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11405 in a continued line coincides with a line beginning.
11406
114072008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11408
11409 * nsfont.m (nsfont_trait_distance): Fix bug.
11410 (nsfont_list): Return a list rather than a vector (syncs with Handa
11411 changes of 2008-05-14).
11412 (nsfont_open): Improve logging.
11413
114142008-09-29 Andreas Schwab <schwab@suse.de>
11415
11416 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11417
114182008-09-28 Martin Rudalics <rudalics@gmx.at>
11419
11420 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11421 name as char-resolve-modifiers.
11422 Reported by: Markus Triska <markus.triska@gmx.at>
11423
114242008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11425
11426 * dispnew.c (init_display): Return earlier when running as a daemon.
11427
114282008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11429
11430 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11431
114322008-09-27 Eli Zaretskii <eliz@gnu.org>
11433
11434 * composite.c (Fcomposition_get_gstring)
11435 (Fcompose_region_internal, Fcompose_string_internal)
11436 (Ffind_composition_internal): Doc fix.
11437 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11438 (syms_of_composite) <auto-composition-function>: Doc fix.
11439 (syms_of_composite) <composition-function-table>: Doc fix.
11440
114412008-09-25 Chong Yidong <cyd@stupidchicken.com>
11442
11443 * search.c (wordify): New argument for lax word-ends.
11444 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11445
114462008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11447
11448 * lisp.h (is_daemon): Declare.
11449 * dispnew.c (init_display): Do not try to initialize the terminal
11450 when running as a daemon.
11451
114522008-09-22 Chong Yidong <cyd@stupidchicken.com>
11453
11454 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11455 x_display_pixel_height.
11456
114572008-09-22 Martin Rudalics <rudalics@gmx.at>
11458
11459 * undo.c (record_point): Don't call Fundo_boundary for first
11460 change. (Bug#731)
11461
114622008-09-22 Juanma Barranquero <lekktu@gmail.com>
11463
11464 * emacs.c (Fdaemonp): Doc fix.
11465
114662008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11467
11468 * emacs.c (main): Place #ifdef in the proper place.
11469
114702008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11471
11472 * emacs.c (standard_args): Add --daemon.
11473 (main): Disconnect from the terminal when --daemon is passed.
11474 (is_daemon): New variable.
11475 (Fdaemonp): New function.
11476 (syms_of_emacs): Defsubr it.
11477
114782008-09-20 Chong Yidong <cyd@stupidchicken.com>
11479
11480 * xdisp.c (get_next_display_element): Handle string display
11481 correctly when checking for the end of a box run.
11482
114832008-09-20 Glenn Morris <rgm@gnu.org>
11484
11485 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11486 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11487 (Frename_file): Avoid copying to trash if a rename involves
11488 a delete. (Bug#964).
11489
114902008-09-20 Eli Zaretskii <eliz@gnu.org>
11491
11492 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11493 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11494 frames as well as termcap frames.
11495 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11496 get_named_tty.
11497
114982008-09-19 Eli Zaretskii <eliz@gnu.org>
11499
11500 * process.c (procfs_system_process_attributes): Fix cmdline in
11501 case /proc/PID/cmdline is empty.
11502
11503 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11504 x_display_pixel_height.
11505
115062008-09-19 Juanma Barranquero <lekktu@gmail.com>
11507
11508 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11509
11510 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11511 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11512
115132008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11514
11515 * dispextern.h (struct it): Move line_wrap away from the middle of
11516 bitfields. Move voffset in struct iterator_stack_entry after the
11517 bitfields. Move tab_width near after another short.
11518
115192008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11520
11521 * frame.h (struct frame): Move alpha from the middle of bitfields.
11522
11523 * window.h (struct window): Move frozen_window_start_p after the
11524 rest of the bitfields to reduce padding.
11525
115262008-09-18 Chong Yidong <cyd@stupidchicken.com>
11527
11528 * xterm.h (x_display_info): Remove `height' and `width' members.
11529
11530 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11531
11532 * w32term.h (w32_display_info): Remove `height', `width',
11533 `height_in', and `width_in' members.
11534
b8ff72fa
SM
11535 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11536 New functions.
aac0c6e3
MR
11537 (x_calc_absolute_position): Use them.
11538 (x_term_init): Omit removed `height' and `width' members.
11539
b8ff72fa
SM
11540 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11541 New functions.
aac0c6e3
MR
11542 (w32_read_socket, x_calc_absolute_position): Use them.
11543 (w32_initialize_display_info, w32_term_init): Omit removed members
11544 of w32_display_info.
11545
b8ff72fa
SM
11546 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11547 New functions.
11548 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 11549
b8ff72fa
SM
11550 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11551 New functions.
aac0c6e3
MR
11552 (x_calc_absolute_position): Use them.
11553 (x_term_init): Omit removed `height' and `width' members.
11554
11555 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
11556 (compute_tip_xy):
11557 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
11558 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11559 x_display_pixel_width.
11560
115612008-09-18 Kenichi Handa <handa@m17n.org>
11562
11563 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11564 (composition_compute_stop_pos): Fix handling of static composition.
11565 (Fcomposition_get_gstring): Check FROM and TO at first.
11566
115672008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11568
46e722a9 11569 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
11570 mixup (YAILOM).
11571
115722008-09-17 Chong Yidong <cyd@stupidchicken.com>
11573
11574 * indent.c (Fvertical_motion): Use position reported by iterator
11575 instead of PT for determining screen motion (bug#943).
11576
115772008-09-17 Romain Francoise <romain@orebokech.com>
11578
11579 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11580
115812008-09-17 Kenichi Handa <handa@m17n.org>
11582
11583 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11584
11585 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11586 if necessary.
11587
115882008-09-16 Kenichi Handa <handa@m17n.org>
11589
11590 * coding.c (make_conversion_work_buffer): Avoid calling
11591 Fget_buffer_create if it is not necessary.
11592
115932008-09-15 Martin Rudalics <rudalics@gmx.at>
11594
11595 * window.c (Fselect_window): Don't update window_select_count and
11596 use_time when norecord is not nil.
11597
115982008-09-14 Kenichi Handa <handa@m17n.org>
11599
11600 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11601 specpdl_ptr.
11602
116032008-09-12 Kenichi Handa <handa@m17n.org>
11604
11605 * indent.c (scan_for_column): Don't handle automatic composition
11606 if the current buffer is not associated with a window.
11607
11608 * composite.c (composition_reseat_it): If the current buffer is
11609 not associated with a window, ignore the automatic composition.
11610 (find_automatic_composition): Likewise.
11611
116122008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11613
11614 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11615 (Fgpm_mouse_stop): Use it.
11616 * termhooks.h (close_gpm): Declare.
11617 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11618 connection if Gpm_GetEvent fails.
11619
11620 * window.c (set_window_buffer): Always preserve current-buffer.
11621
116222008-09-12 Glenn Morris <rgm@gnu.org>
11623
11624 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11625
116262008-09-11 Glenn Morris <rgm@gnu.org>
11627
11628 * charset.c (charset-map-path): Doc fix.
11629
116302008-09-10 Kenichi Handa <handa@m17n.org>
11631
11632 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11633
11634 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11635 compose a grapheme cluster with the preceding base glyph.
11636
11637 * composite.c (composition_compute_stop_pos): Fix previous change.
11638 Reset cmp_it->id to -1 at first.
11639
116402008-09-10 Glenn Morris <rgm@gnu.org>
11641
11642 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11643
116442008-09-09 Chong Yidong <cyd@stupidchicken.com>
11645
11646 * keyboard.c (read_key_sequence): Reapply translation maps when
11647 switching keyboards.
11648
116492008-09-09 Kenichi Handa <handa@m17n.org>
11650
11651 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11652 characters.
11653
11654 * composite.c (FORWARD_CHAR): Fix calculation
11655 of (POSITION).pos_byte.
11656 (composition_compute_stop_pos): Limit the search of composition to
11657 at most 500 characters ahead. If we reach the limit or find a
11658 newline, set cmp_it->ch to -2 and return 0.
11659 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11660
116612008-09-08 Kenichi Handa <handa@m17n.org>
11662
11663 * indent.c (Fvertical_motion): Be sure to set
11664 it_overshoot_expected if it.cmp_it.id is non-negative.
11665
116662008-09-07 Andreas Schwab <schwab@suse.de>
11667
11668 * callproc.c (Fcall_process): Don't hold references to string data
11669 across garbage collection. Move initialisation of new_argv down
11670 to avoid compiler bug.
11671
116722008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11673
11674 * process.c (Fsystem_process_attributes): Doc fix.
11675
116762008-09-07 Chong Yidong <cyd@stupidchicken.com>
11677
11678 * callproc.c (Fcall_process): Canonicalize current directory name.
11679
11680 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11681 iterator advances to the next line if the current line ends in a
11682 continued tab.
11683
116842008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11685
11686 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11687 member to point to cmp_from.
11688
11689 * xdisp.c: Doc fix for references to gidx data member.
11690
116912008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11692
11693 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11694
116952008-09-07 Kenichi Handa <handa@m17n.org>
11696
11697 * composite.c (FORWARD_CHAR): Check STOP after
11698 incrementing (POSITION).pos.
11699
117002008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11701
11702 * process.c (Fsystem_process_attributes): Doc fix.
11703
117042008-09-06 Chong Yidong <cyd@stupidchicken.com>
11705
11706 * keyboard.c (Ftop_level): Doc fix.
11707
117082008-09-06 Eli Zaretskii <eliz@gnu.org>
11709
11710 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11711 minibuffer, don't let lower part of menu invade the echo area.
11712
11713 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11714 "char *q" to access menu text and advance through it. Revert the
11715 change that displayed ">" instead of ASCII character 0x10.
11716
117172008-09-05 Eli Zaretskii <eliz@gnu.org>
11718
11719 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11720 toggle boxes and radio buttons on MS-DOS as well.
11721
117222008-09-05 Kenichi Handa <handa@m17n.org>
11723
11724 * composite.c (autocmp_chars): Check lookback count.
11725 (composition_compute_stop_pos): Set cmp_it->lookback.
11726 (composition_reseat_it): Check lookback count.
11727 (struct position_record): New struct.
11728 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11729 (find_automatic_composition): New function.
11730 (composition_adjust_point): Use find_automatic_composition.
11731
11732 * dispextern.h (struct composition_it): New member lookback.
11733
117342008-09-02 Chong Yidong <cyd@stupidchicken.com>
11735
11736 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11737 if moving by a single line.
11738
117392008-09-02 Andreas Schwab <schwab@suse.de>
11740
11741 * xterm.c (x_delete_display): Fix merge error.
11742
11743 * fileio.c (Fexpand_file_name): Remove unused variables.
11744
117452008-09-02 Eli Zaretskii <eliz@gnu.org>
11746
11747 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11748 storage on all platforms, not just on DOS_NT.
11749
117502008-09-02 Jason Rumney <jasonr@gnu.org>
11751
b8ff72fa
SM
11752 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11753 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
11754
117552008-09-01 Chong Yidong <cyd@stupidchicken.com>
11756
11757 * xfaces.c (Finternal_set_alternative_font_family_alist)
11758 (Finternal_set_alternative_font_registry_alist): Properly copy
11759 entire alist structure.
11760
117612008-09-01 Kenichi Handa <handa@m17n.org>
11762
d66c0241 11763 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 11764 representative chars of the script is a vector.
d66c0241
JB
11765 (ftfont_list): Handle the case where the representative chars of
11766 the script is a vector.
aac0c6e3
MR
11767
11768 * character.c (syms_of_character): Docstring of
11769 script-representative-chars fixed.
11770
117712008-08-31 Eli Zaretskii <eliz@gnu.org>
11772
11773 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11774 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11775 the menu. Allocate larger buffer for `text', to account for
11776 possible ^C characters.
11777
117782008-08-31 Martin Rudalics <rudalics@gmx.at>
11779
11780 * xdisp.c (prepare_menu_bars): Don't call
11781 Vwindow_size_change_functions with arg Qt.
11782
117832008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11784
11785 * font.h (font_range):
11786 * fileio.c (report_file_error):
46e722a9
SM
11787 * composite.c (composition_update_it): Yet another int/Lisp_Object
11788 mixup (YAILOM).
aac0c6e3
MR
11789
117902008-08-30 Glenn Morris <rgm@gnu.org>
11791
11792 * data.c (Fmake_variable_frame_local): Doc fix.
11793
11794 * frame.c (Fmodify_frame_parameters): Doc fix.
11795
117962008-08-30 Eli Zaretskii <eliz@gnu.org>
11797
11798 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11799 needed by GetTokenInformation.
11800 (w32_system_process_attributes): Check return values of all system
11801 APIs.
11802
11803 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11804 only when the state changes.
11805 (IT_update_begin, IT_update_end): Add termscript trace.
11806
11807 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11808 clipboard is unavailable. Set dst to NULL if it doesn't point to
11809 malloc'ed data.
11810 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11811 passing random values to xfree.
11812
11813 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11814 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11815
118162008-08-29 Jason Rumney <jasonr@gnu.org>
11817
11818 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11819
118202008-08-29 Eli Zaretskii <eliz@gnu.org>
11821
11822 * composite.c (fill_gstring_body): Avoid compiler warnings.
11823
11824 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11825 LGLYPH_SET_CODE to avoid compiler warnings.
11826
2ae37cf0 11827 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11828
11829 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11830
11831 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11832 LGLYPH_SET_CODE.
11833
118342008-08-29 Kenichi Handa <handa@m17n.org>
11835
11836 * fileio.c (report_file_error): Don't downcase the first character
11837 of errstring if it is still unibyte.
11838
118392008-08-29 Kenichi Handa <handa@m17n.org>
11840
11841 These changes are to re-implement the automatic composition so
11842 that it doesn't use text properties.
11843
11844 * Makefile.in (ftfont.o): Depend on composite.h.
11845 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11846
11847 * character.h (Vunicode_category_table): Extern it.
11848
11849 * character.c (Vunicode_category_table): New variable.
11850 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11851
11852 * chartab.c (optimize_sub_char_table): Perform more greedy
11853 optimization.
11854
b8ff72fa
SM
11855 * composite.h (enum composition_method):
11856 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
11857 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11858 (Vcomposition_function_table): Extern it.
11859 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11860 (composition_gstring_put_cache, composition_gstring_from_id)
11861 (composition_gstring_p, composition_gstring_width)
11862 (composition_compute_stop_pos, composition_reseat_it)
11863 (composition_update_it, composition_adjust_point): Extern them.
11864 (Fcomposition_get_gstring): EXFUN it.
11865
d66c0241 11866 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
11867 (Vcomposition_function_table)
11868 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
11869 (gstring_hash_table, gstring_work, gstring_work_headers):
11870 New variables.
aac0c6e3
MR
11871 (gstring_lookup_cache, composition_gstring_put_cache)
11872 (composition_gstring_from_id, composition_gstring_p)
11873 (composition_gstring_width, fill_gstring_header)
11874 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11875 (composition_reseat_it, composition_update_it)
b8ff72fa 11876 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
11877 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11878 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 11879 Defsubr composition_get_gstring.
aac0c6e3
MR
11880
11881 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11882 cmp_id.
11883 (struct glyph_string): Delete the member gidx. New members
11884 cmp_id, cmp_from, and cmp_to.
11885 (enum it_method): Delete GET_FROM_COMPOSITION.
11886 (struct composition_it): New struct.
11887 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11888 Delete c, len, cmp_id, cmp_len in u.comp.
11889
11890 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 11891 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 11892 (enum lglyph_indices): Likewise.
b8ff72fa 11893 (font_range): Adjust extern.
aac0c6e3
MR
11894 (font_fill_lglyph_metrics): Extern it.
11895
11896 * font.c (QCf): New variable.
11897 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11898 (font_prepare_composition): Delete this function.
11899 (font_range): Type and arguments changed.
11900 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11901 (font_fill_lglyph_metrics): New function.
b8ff72fa 11902 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 11903 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
11904 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11905 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
11906
11907 * fontset.h (font_for_char): Extern it.
11908
11909 * fontset.c (font_for_char): New function.
11910
11911 * ftfont.c: Include composite.h.
11912 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 11913 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
11914
11915 * indent.c: Include composite.h and dispextern.h.
11916 (check_composition): Delete this function.
11917 (scan_for_column): Handle composition by
11918 composition_compute_stop_pos, composition_reseat_it, and
11919 composition_update_it.
11920 (compute_motion): Likewise.
11921 (Fvertical_motion): Fix checking of composition.
11922
11923 * keyboard.c (adjust_point_for_property): Check composition by
11924 composition_adjust_point.
11925
b8ff72fa 11926 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
11927 struct glyph_string.
11928
b8ff72fa
SM
11929 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11930 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
11931 struct glyph.
11932 (produce_composite_glyph): Likewise.
11933
b8ff72fa
SM
11934 * w32term.c (x_draw_composite_glyph_string_foreground):
11935 Adjust for the change of struct glyph_string.
aac0c6e3
MR
11936 (x_draw_glyph_string): Likewise.
11937
11938 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11939 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11940
11941 * xdisp.c: Include font.h.
11942 (it_props): Delete the entry for Qauto_composed.
11943 (init_iterator): Initialize it->cmp_it.id to -1.
11944 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 11945 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
11946 (handle_auto_composed_prop): Delete it.
11947 (handle_composition_prop): Handle only static composition.
11948 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11949 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 11950 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
11951 (pop_it): Likewise.
11952 (get_next_element): Delete next_element_from_composition.
11953 (CHAR_COMPOSED_P): New macro.
11954 (get_next_display_element): For automatic composition, get a face
11955 from the font in the glyph-string.
11956 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 11957 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
11958 (next_element_from_string): Check if the character at the current
11959 position is composed by CHAR_COMPOSED_P.
11960 (next_element_from_buffer): Likewise.
d66c0241
JB
11961 (next_element_from_composition): Adjust for the change of struct it.
11962 Update it->cmp_it.
b8ff72fa
SM
11963 (dump_glyph): Adjust for the change of struct glyph.
11964 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
11965 it and struct glyph. Don't handle automatic composition here.
11966 (fill_gstring_glyph_string): New function.
11967 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 11968 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
11969 (BUILD_GSTRING_GLYPH_STRING): New macro.
11970 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11971 automatic composition.
b8ff72fa 11972 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 11973 struct glyph.
b8ff72fa 11974 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 11975
b8ff72fa 11976 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
11977 the change of struct glyph_string.
11978 (x_draw_glyph_string): Likewise.
11979
119802008-08-29 Glenn Morris <rgm@gnu.org>
11981
11982 * buffer.c (word-wrap): Doc fix.
11983 * xdisp.c (truncate-partial-width-windows): Doc fix.
11984 Increase default to 50.
11985
119862008-08-29 Chong Yidong <cyd@stupidchicken.com>
11987
11988 * xdisp.c (update_tool_bar_unwind): New function.
11989 (update_tool_bar): Temporarily set selected frame before building
11990 tool-bar items.
11991
119922008-08-28 Michael Albinus <michael.albinus@gmx.de>
11993
11994 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11995 snprintf, respectively.
11996 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11997
119982008-08-28 Chong Yidong <cyd@stupidchicken.com>
11999
12000 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12001 LDFLAGS to GNUstep CC invocation.
12002
120032008-08-27 Chong Yidong <cyd@stupidchicken.com>
12004
12005 * indent.c (Fvertical_motion): Revert last change. Handle the
12006 general case where we are moving forward, and PT spans multiple
12007 screen lines.
12008
12009 * eval.c (find_handler_clause): Temporarily increase
12010 max-lisp-eval-depth while printing the backtrace buffer, to
12011 guarantee that help-mode code can run.
12012
120132008-08-27 Eli Zaretskii <eliz@gnu.org>
12014
12015 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12016 colors under -rv.
12017 (IT_set_frame_parameters): Don't swap foreground and background
12018 colors if `(reverse . t)' is present in the frame properties.
12019 (internal_terminal_init): Call init_frame_faces only for the
12020 initial frame.
12021
120222008-08-27 Andreas Schwab <schwab@suse.de>
12023
12024 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12025
120262008-08-27 Andreas Schwab <schwab@suse.de>
12027
12028 * search.c (search_buffer): Set char_base to zero only at the end.
12029
120302008-08-27 Kenichi Handa <handa@m17n.org>
12031
b8ff72fa 12032 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
12033
120342008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12035
12036 * xterm.c (x_term_init): Temporarily hide the partially
12037 initialized terminal while calling vendor-specific-keysyms.
12038
120392008-08-26 Eli Zaretskii <eliz@gnu.org>
12040
12041 * msdos.c (internal_terminal_init): Most initializations done only
12042 once, especially initial_screen_colors[] and termscript open.
12043
120442008-08-26 Chong Yidong <cyd@stupidchicken.com>
12045
12046 * eval.c (Fcondition_case): Doc fix.
12047
12048 * widgetprv.h (EmacsFramePart): Change font member to the new font
12049 struct.
12050
12051 * widget.c: Include character.h and font.h for XSETFONT.
12052 (setup_frame_gcs): Compute X font id from font struct, just once.
12053
120542008-08-26 Eli Zaretskii <eliz@gnu.org>
12055
12056 * term.c (get_named_tty): Fix last change.
12057
120582008-08-26 Chong Yidong <cyd@stupidchicken.com>
12059
12060 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 12061 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
12062
120632008-08-25 Eli Zaretskii <eliz@gnu.org>
12064
12065 * frame.c (do_switch_frame): Mark previously displayed frame as
12066 obscured for FRAME_MSDOS_P frames as well.
12067
120682008-08-24 Eli Zaretskii <eliz@gnu.org>
12069
12070 * frame.c (make_terminal_frame): Initialize f->terminal,
12071 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12072 Set the top frame to newly created frame.
12073 (Fmake_terminal_frame): Reuse the_only_display_info.
12074
12075 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12076 estimating available memory.
12077
b97439ce 120782008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
12079
12080 * nsterm.m (ns_draw_window_cursor): Don't call
12081 NSDisableScreenUpdates and NSEnableScreenUpdates on
12082 non-NS_IMPL_COCOA systems.
12083
120842008-08-23 Andreas Schwab <schwab@suse.de>
12085
12086 * process.c (procfs_system_process_attributes): Fix use of
12087 uninitialized variables.
12088
120892008-08-23 Eli Zaretskii <eliz@gnu.org>
12090
12091 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12092
12093 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12094 calling tty-set-up-initial-frame-faces.
12095
b8ff72fa
SM
12096 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12097 Allow MSDOS frames along with X frames.
aac0c6e3
MR
12098
12099 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12100 addition to output_termcap.
12101
12102 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12103
12104 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12105 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12106 highlight.
12107
12108 * process.c [!subprocesses]: Define QCname.
12109 (syms_of_process): Intern and staticpro it.
12110
12111 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
12112 Adjust for changes in encoding/decoding routines.
12113 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
12114 encode_coding and decode_coding.
12115
b8ff72fa 12116 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
12117
12118 * dosfns.c: Include frame.h before termhooks.h.
12119 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12120 variable termscript.
12121
12122 * s/msdos.h (USER_FULL_NAME): Define.
12123 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12124
12125 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12126 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12127 pw->pw_gecos.
12128
12129 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12130 SELECTED_FRAME as additional (1st) argument.
12131 (tty_read_avail_input): Handle output_msdos_raw in
12132 addition to output_termcap.
12133
12134 * msdos.c: Include frame.h before termhooks.h.
12135 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12136 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12137 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12138 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12139 (IT_set_terminal_modes, IT_reset_terminal_modes)
12140 (IT_set_frame_parameters): Use tty->termscript instead of a global
12141 variable termscript.
12142 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12143 global variable terminal_coding. Don't refer to
12144 Vnonascii_translation_table.
12145 (internal_terminal_init): Set Vwindow_system in current_kboard.
12146 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12147 Announce date and time of session start, if termscript is open.
12148 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
12149 term.c:init_tty). Open termscript only of not already open.
12150 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
12151 here instead of dos_ttraw. Don't initialize display if this is an
12152 initial tty. Don't set FRAME_FONT.
12153 (Vwindow_system_version): Bump to 23.
12154 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12155 is available, set up mouse_position_hook.
12156 (dos_ttraw, IT_set_terminal_modes): If called with initial
12157 terminal, do nothing.
12158 (IT_set_frame_parameters): Handle the Qtty_type frame
12159 parameter by calling internal_terminal_init.
12160 (dos_set_window_size, show_mouse_face)
12161 (clear_mouse_face, IT_note_mode_line_highlight)
12162 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12163 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12164 (initialize_msdos_display): New function.
12165 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12166 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12167 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12168 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 12169 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
12170 (request_sigio, unrequest_sigio): Don't define, now defined on
12171 sysdep.c.
12172 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12173
12174 * term.c [MSDOS]: Include msdos.h.
12175 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12176 conditional to DOS_NT. Allow only one call to this function in a
12177 session. Don't allocate a new struct tty_display_info; instead,
12178 reuse the_only_display_info. Call get_tty_size to get screen
12179 dimensions. Call init_baud_rate to set bad_rate.
12180 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12181 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 12182 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
12183 (get_tty_terminal, get_named_tty, Ftty_type)
12184 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12185 output_termcap.
b8ff72fa
SM
12186 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12187 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 12188 only when subprocesses are supported.
aac0c6e3
MR
12189
12190 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12191 f->output_data.x.
12192 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12193 terminal devices.
12194
5582fbc7 12195 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
12196 x_output.
12197 (FRAME_FONT): Use output_data.tty.
12198 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
12199 (struct x_display_info): Rename from display_info. Update all users in
12200 msdos.c.
aac0c6e3 12201 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 12202 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
12203 (dos_ttraw): Update prototype.
12204
12205 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12206 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12207
122082008-08-23 Jason Rumney <jasonr@gnu.org>
12209
12210 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12211 (fn_TIFFSetDirectory): New library function used.
12212 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12213 (tiff_load): Use :index to select among multiple images. Set count
12214 property when multiple images exist.
12215 (gif_format): Use :index, not :image.
12216
122172008-08-23 Chong Yidong <cyd@stupidchicken.com>
12218
12219 * xdisp.c (try_scrolling): Check INT_MAX instead of
12220 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12221 to obtain INT_MAX.
12222
122232008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12224
12225 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12226
122272008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12228
12229 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12230 GNUstep library location.
12231
122322008-08-21 Chong Yidong <cyd@stupidchicken.com>
12233
12234 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12235 before using it.
12236
12237 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12238
122392008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12240
12241 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12242 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12243 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12244 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12245 (EmacsApp-cursor_blink_handler): Remove declaration.
12246 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12247 match 01 Feb 2008 changes in xterm.c.
12248 (ns_read_socket): Add cast to avoid warning.
12249 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12250 GNUstep.
12251
122522008-08-20 Chong Yidong <cyd@stupidchicken.com>
12253
12254 * xselect.c (x_get_foreign_selection): Return nil if desired
12255 selection could not be obtained, instead of signalling an error.
12256
122572008-08-20 David Reitter <david.reitter@gmail.com>
12258
12259 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12260 * nsterm.m: Remove ns-specific code for cursor blinking.
12261 (ns_draw_window_cursor): Clear cursor properly rather than
12262 redrawing the area. Respect width of bar cursors.
12263 These changes enable the use of generic blink-cursor-mode and
12264 generic cursor types in NS and support smooth cursor movements (do
12265 not blink off after command).
12266 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12267 Nextstep, too.
12268
122692008-08-19 Kenichi Handa <handa@m17n.org>
12270
12271 * font.c (Vfont_log_deferred): New variable.
12272 (font_add_log): Check Vfont_log_deferred.
12273 (font_deferred_log): New function.
12274
12275 * font.h (font_deferred_log): Extern it.
12276
12277 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12278 for sorting.
12279 (face_for_char): Use deferred log.
12280
122812008-08-18 Kenichi Handa <handa@m17n.org>
12282
12283 * fontset.c (face_for_char): Add font log.
12284
12285 * font.c (font_add_log): Add the font properties :script, :lang,
12286 and :otf in the log.
12287
122882008-08-17 Chong Yidong <cyd@stupidchicken.com>
12289
12290 * xdisp.c: Remove dead code.
12291 (handle_invisible_prop, next_overlay_string): Defer call to
12292 setup_for_ellipsis.
12293 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12294
122952008-08-15 Chong Yidong <cyd@stupidchicken.com>
12296
12297 * xfaces.c (lookup_derived_face): Properly handle possible zero
12298 return value of get_lface_attributes.
12299 (merge_faces): Don't tell lookup_derived_face to signal an error
12300 if face is not found.
12301
12302 * dired.c (Fdirectory_files): Doc fix.
12303
12304 * process.c (make_process): Initialize kill_without_query struct
12305 member.
12306
123072008-08-15 Eli Zaretskii <eliz@gnu.org>
12308
12309 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12310 Alternative calculation of totphys for Visual Studio 6.
12311
12312 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12313
12314 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12315 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12316 All users changed.
12317 (stat): Only root directory passed to GetDriveType. Allow RAM
12318 disk as well as local fixed disk when w32-get-true-file-attributes
12319 is set to `local'.
12320 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12321 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12322 (w32_cached_id, w32_add_to_cache): New functions.
12323 (get_name_and_id): Look account names in the cache before calling
12324 lookup_account_sid.
12325 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12326 New initialization flags.
12327 (globals_of_w32): Initialize them to zero.
12328 (w32_system_process_attributes): Use w32_cached_id and
12329 w32_add_to_cache.
12330
123312008-08-14 Lawrence Mitchell <wence@gmx.li>
12332
12333 * lread.c (Fread_char, Fread_char_exclusive): If no character
12334 event is read before timeout is reached, return nil, rather than
12335 converting to a number.
12336
123372008-08-14 Chong Yidong <cyd@stupidchicken.com>
12338
12339 * fns.c (use_dialog_box): Doc fix.
12340
12341 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12342 on OS X.
12343
123442008-08-13 Chong Yidong <cyd@stupidchicken.com>
12345
12346 * frame.c (Qns_parse_geometry): New var.
12347 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12348
123492008-08-11 Chong Yidong <cyd@stupidchicken.com>
12350
12351 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12352 space character in calculating tabs.
12353
123542008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12355
12356 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12357
123582008-08-10 Glenn Morris <rgm@gnu.org>
12359
12360 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12361 silence gcc "limited range of data type" warnings in some
12362 make_fixnum_or_float calls.
12363
123642008-08-09 Eli Zaretskii <eliz@gnu.org>
12365
12366 * w32.c (w32_system_process_attributes): If the process does not
12367 exist, return nil.
12368
12369 * w32.c: Include thelp32.h, psapi.h and coding.h.
12370 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12371 declarations.
12372 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12373 (Process32Next_Proc): New typedefs.
12374 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12375 (g_b_init_process32_next, g_b_init_open_thread_token)
12376 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12377 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12378 (g_b_init_get_process_working_set_size)
12379 (g_b_init_global_memory_status_ex): New static variables.
12380 (globals_of_w32): Initialize them.
12381 (create_toolhelp32_snapshot, process32_first, process32_next)
12382 (open_thread_token, impersonate_self, revert_to_self)
12383 (get_process_memory_info, get_process_working_set_size)
12384 (global_memory_status, global_memory_status_ex): New wrapper
12385 functions.
12386 (w32_list_system_processes, w32_system_process_attributes)
12387 (enable_privilege, restore_privilege, ltime, process_times):
12388 New functions.
12389 (convert_time_raw): New function.
12390 (convert_time): Remove conversion of FILETIME into time in 100
12391 nsec units, call convert_time_raw instead.
12392
12393 * process.h (w32_list_system_processes, w32_system_process_attributes):
12394 Add prototypes.
12395 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12396 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12397 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12398 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12399
12400 * process.c (Fsystem_process_attributes): Doc fix.
12401
124022008-08-08 Chong Yidong <cyd@stupidchicken.com>
12403
12404 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12405 a continued multi-char glyph; if so, advance to the actual glyph.
12406
124072008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12408
12409 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12410
12411 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12412 (.m.o): Use it.
12413 * config.in: Regenerate.
12414
124152008-08-07 Chong Yidong <cyd@stupidchicken.com>
12416
12417 * xdisp.c (redisplay_window): Revert last change.
12418 (try_window): Check bottom scroll margin too.
12419
124202008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12421
12422 * config.in: Regenerate.
12423
12424 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12425 -list-load-path-shadows'.
12426 (nsgui.h): Reduce number of things depending on it.
12427
124282008-08-06 Chong Yidong <cyd@stupidchicken.com>
12429
12430 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12431 instead of window-end which does the wrong thing at eob.
12432 (try_cursor_movement): Minor optimization.
12433 (redisplay_window): If scroll margin is defined, don't assume
12434 window doesn't need scrolling.
12435
124362008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12437
12438 * config.in: Regenerate.
12439
12440 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12441 (mostlyclean): Don't delete *.d under NS.
12442
12443 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12444
124452008-08-06 Kenichi Handa <handa@m17n.org>
12446
12447 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12448
124492008-08-06 Andreas Schwab <schwab@suse.de>
12450
12451 * config.in: Regenerate.
12452
124532008-08-05 Chong Yidong <cyd@stupidchicken.com>
12454
12455 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12456 forcing a window start.
12457
12458 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12459 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12460
124612008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12462
12463 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12464 argument.
12465
124662008-08-05 Juanma Barranquero <lekktu@gmail.com>
12467
12468 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12469 <scroll-down-aggressively, before-change-functions>:
12470 <after-change-functions>: Reflow docstrings.
12471
124722008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 12473 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
12474
12475 Dock menu customization, based on a patch by Ken Raeburn, plus some
12476 other fixes.
12477 * nsmenu.m (dockMenu): New variable.
12478 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12479
12480 * nsterm.h (dockMenu): Declare.
12481
12482 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12483 (ns_term_init): Initialize dockMenu.
12484 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12485 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12486 left.
12487
12488 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12489
124902008-08-04 Chong Yidong <cyd@stupidchicken.com>
12491
12492 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12493
12494 * config.in: Regenerate.
12495
124962008-08-04 Seiji Zenitani <zenitani@mac.com>
12497
12498 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12499
125002008-08-04 Chong Yidong <cyd@stupidchicken.com>
12501
12502 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12503
125042008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12505
12506 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12507
12508 * keyboard.h: Comment an #endif.
12509
12510 * lisp.h (have_menus_p): Adjust comment.
12511
12512 * menu.c (find_and_return_menu_selection): Fix comparison with
12513 client_data.
12514
12515 * nsmenu.m (popup_activated_flag): New variable.
12516 (popup_activated): New function.
12517 (menu-or-popup-active-p): New exported lisp definition.
12518 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12519 when popup done.
12520 (ns_popup_dialog): Set popup_activated_flag.
12521
12522 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12523 version for GNUstep (handled by conditional typedef in nsterm.m).
12524 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12525 in rgb.txt).
12526
12527 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12528
12529 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12530
12531 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12532
12533 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12534 shortcircuit if popup_activated like GTK and X toolkit.
12535
12536 * m/inter386.h: Change DARWIN to DARWIN_OS.
12537
12538 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12539 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12540 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12541 comment on NO_SOCK_SIGIO.
12542
125432008-08-03 Chong Yidong <cyd@stupidchicken.com>
12544
12545 * nsterm.m (windowDidResize): Remove stopModal call.
12546
125472008-08-03 Andreas Schwab <schwab@suse.de>
12548
12549 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12550 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12551
125522008-08-02 Chong Yidong <cyd@stupidchicken.com>
12553
12554 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12555 Don't use uninitialized pointer variable when using getrlimit.
12556
125572008-08-02 Jason Rumney <jasonr@gnu.org>
12558
12559 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12560
125612008-08-02 Eli Zaretskii <eliz@gnu.org>
12562
12563 * alloc.c (NSTATICS): Bump to 0x640.
12564
12565 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12566
12567 * lisp.h: Add prototype for directory_files_internal.
12568
12569 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12570 New functions.
12571 (syms_of_process): Defsubr them. Add initializations for various
12572 Q* symbols used in procfs_system_process_attributes.
12573 (procfs_list_system_processes, procfs_system_process_attributes)
12574 [HAVE_PROCFS]: New functions.
12575 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12576 (procfs_get_total_memory): New functions.
12577
125782008-08-01 Juanma Barranquero <lekktu@gmail.com>
12579
12580 * xfaces.c (Fx_load_color_file): Fix previous change;
12581 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12582
125832008-08-01 Michael Albinus <michael.albinus@gmx.de>
12584
12585 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12586
125872008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12588
12589 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12590
125912008-08-01 Chong Yidong <cyd@stupidchicken.com>
12592
12593 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12594
12595 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12596 define NSApplicationDelegateReplySuccess.
12597 (EmacsView -converstationIdentifier): Use long instead of
12598 NSInteger for GNUstep, since it doesn't have NSInteger.
12599
12600 * xmenu.c: Revert last change.
12601
12602 * keyboard.h: Fix last change.
12603
126042008-08-01 Juanma Barranquero <lekktu@gmail.com>
12605
12606 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12607 on Windows.
12608
126092008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12610
12611 Warning clearing and clean-up in NS port.
12612 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12613 Add prototypes.
12614 * nsgui.h (FACE_DEFAULT): Remove, unused.
12615 (XGCValues): Change colors to unsigned long.
12616 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12617 nsterm.m.
12618 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12619 (ns_list_fonts): Remove, unused.
12620 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12621 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12622 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12623 (nsfont_draw): Compare face colors to 0, not nil.
12624 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12625 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12626 (-addSubmenuWithTitle:): Use NSMenuItem class.
12627 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12628 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12629 (ns_clip_to_row): Make gc arg a BOOL.
12630 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12631 ns_clip_to_row() call.
12632 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12633 used). Cast FRAME_FONT assignments.
12634 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12635 (ns_string_to_lispmod): Change arg to const char.
12636 (ns_term_init): Use NSMenuItem class.
12637 (EmacsApp -openFile:): Move to different section of file.
12638 (EmacsApp -application:openFiles:): Don't return a value, call
12639 -replyToOpenOrPrint:.
12640 (EmacsView -keyDown:): Fix up cast.
12641 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12642 (EmacsView -menuDown:): Cast tag in call to
12643 find_and_call_menu_selection().
12644 (ns_list_fonts): Remove, unused.
12645 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12646 (ns_fontname_to_xlfd): Make static.
12647 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12648 Remove prototypes (now in keyboard.h).
12649 (next_menubar_widget_id): Remove, unused.
12650 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12651 Remove prototypes (now in keyboard.h).
12652 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12653
126542008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12655
12656 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12657 (floatfns.o): Depend on syssignal.h.
12658 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12659
12660 * systty.h: Fix previous change that removed BSD_TERMIOS.
12661 Add comments to #ifdefs.
12662
126632008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12664
12665 * w32fns.c (w32-load-color-file): Remove.
12666 (x-open-connection): Use renamed Fx_load_color_file.
12667 * xfaces.c (x-load-color-file): Add.
12668 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12669 Emacs.clr.
12670 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12671
126722008-07-31 Michael Albinus <michael.albinus@gmx.de>
12673
12674 * dbusbind.c (Fdbus_call_method_asynchronously)
12675 (Fdbus_method_error_internal): New defuns.
12676 (xd_read_message): Handle also reply messages.
12677 (Vdbus_registered_functions_table): Extend docstring.
12678
126792008-07-31 Juanma Barranquero <lekktu@gmail.com>
12680
12681 * keyboard.c (gobble_input): Fix previous change.
12682
126832008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12684
12685 * bitmaps/README:
12686 * xfns.c:
12687 * termcap.c:
12688 * term.c:
12689 * syswait.h:
12690 * systty.h:
12691 * systime.h:
12692 * syssignal.h:
12693 * sysdep.c:
12694 * process.h:
12695 * process.c:
12696 * print.c:
12697 * ndir.h:
12698 * lread.c:
12699 * keyboard.c:
12700 * getpagesize.h:
12701 * floatfns.c:
12702 * fileio.c:
12703 * emacs.c:
12704 * doc.c:
12705 * dispnew.c:
12706 * dired.c:
12707 * data.c:
12708 * callproc.c:
12709 * buffer.c:
12710 * README:
12711 * Makefile.in:
12712 * s/template.h:
12713 * s/msdos.h:
12714 * m/vax.h: Remove VMS support.
12715 * s/vms.h:
12716 * vlimit.h:
12717 * uaf.h:
12718 * temacs.opt:
12719 * param.h:
12720 * ioctl.h: Remove file.
12721
127222008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12723
12724 * s/ms-w32.h (MULTI_KBOARD): Remove.
12725 * xterm.c:
12726 * xselect.c:
12727 * xfns.c:
12728 * window.c:
12729 * w32term.c:
12730 * w32fns.c:
12731 * terminal.c:
12732 * termhooks.h:
12733 * term.c:
12734 * sysdep.c:
12735 * keyboard.h:
12736 * keyboard.c:
12737 * frame.h:
12738 * frame.c:
12739 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12740 * config.in: Regenerate.
12741
127422008-07-30 Jason Rumney <jasonr@gnu.org>
12743
12744 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12745
12746 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12747 (w32font_open_internal): Get unicode version of textmetrics.
12748 Don't enable or disable glyph indices here.
12749 (w32font_open): Disable use of glyph indices.
12750
12751 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12752
127532008-07-30 Chong Yidong <cyd@stupidchicken.com>
12754
12755 * minibuf.c (Vread_buffer_function): Doc fix.
12756
127572008-07-30 John Paul Wallington <jpw@pobox.com>
12758
12759 * minibuf.c (read_buffer_completion_ignore_case): New var.
12760 (Fread_buffer): Use it.
12761
127622008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12763
12764 * systty.h (sensemode): Remove empty #if. Remove reference to
12765 BSD_TERMIOS, unused.
12766
12767 * sysdep.c: Remove reference to DGUX.
12768 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12769
12770 * config.in: Regenerate.
12771
127722008-07-30 Jason Rumney <jasonr@gnu.org>
12773
12774 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12775
127762008-07-29 Jason Rumney <jasonr@gnu.org>
12777
12778 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12779 is populated.
12780 (uniscribe_encode_char): Always use uniscribe.
12781 Avoid using context if cache is populated.
12782
127832008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12784
12785 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12786 open menu.
12787
12788 * gtkutil.c (menu_nav_ended): Remove.
12789 (create_menus): Remove signal connect for menu_nav_ended.
12790
127912008-07-28 Chong Yidong <cyd@stupidchicken.com>
12792
12793 * xdisp.c (redisplay_window): Check return value of
12794 compute_window_start_on_continuation_line before forcing a window
12795 start.
12796
127972008-07-28 Jason Rumney <jasonr@gnu.org>
12798
12799 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12800
12801 * w32term.c (w32_enable_unicode_output, cleartype_active):
12802 Remove obsolete display options.
12803 (x_draw_glyph_string_background): Don't use old cleartype_active
12804 workaround.
12805 (w32_initialize): Remove cleartype_active initialization.
12806 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12807
128082008-07-28 Andreas Schwab <schwab@suse.de>
12809
12810 * lisp.h (init_weak_hash_tables, syms_of_font)
12811 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12812 (remove_hash_entry): Don't declare.
12813 * eval.c (maybe_call_debugger): Make static and move before use.
12814 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12815 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12816 * xterm.h (x_set_frame_alpha): Declare.
12817
128182008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12819
12820 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12821 (create_menus): Connect selection-done to menu_nav_ended.
12822
128232008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12824
12825 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12826 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12827 parameter with read of 'alpha' one.
12828 (Qns_frame_parameter): Remove.
5582fbc7 12829 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12830 (next-selection-coding-system, Vselection_coding_system)
12831 (Vnext_selection_coding_system): Drop.
12832
128332008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12834
12835 * nsfns.m (do-applescript, do_applescript): Rename to
12836 ns-do-applescript, ns_do_applescript, and move within file.
12837
128382008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12839
12840 Remove support for Mac Carbon.
12841 * mactoolbox.c:
12842 * macterm.h:
12843 * macterm.c:
12844 * macselect.c:
12845 * macmenu.c:
12846 * macgui.h:
12847 * macfns.c:
12848 * mac.c: Remove file.
12849 * s/darwin.h:
12850 * m/intel386.h:
12851 * xfaces.c:
12852 * xdisp.c:
12853 * window.c:
12854 * tparam.c:
12855 * termhooks.h:
12856 * termcap.c:
12857 * term.c:
12858 * syssignal.h:
12859 * sysselect.h:
12860 * sysdep.c:
12861 * process.c:
12862 * lread.c:
12863 * lisp.h:
12864 * keyboard.c:
12865 * image.c:
12866 * fringe.c:
12867 * frame.h:
12868 * frame.c:
12869 * fontset.c:
12870 * font.h:
12871 * font.c:
12872 * fns.c:
12873 * fileio.c:
12874 * emacs.c:
12875 * dispnew.c:
12876 * dispextern.h:
12877 * config.in:
12878 * atimer.c:
2ae37cf0 12879 * Makefile.in: Remove code for Carbon.
aac0c6e3 12880
f0131492 128812008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12882
12883 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12884
128852008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12886
12887 * macterm.h (kCGBitmapByteOrder32Host): New define for
12888 non-universal SDKs.
12889
12890 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12891 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12892
12893 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12894 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12895
128962008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12897
12898 * w32inevt.c: Include dispextern.h.
12899
129002008-07-26 Andreas Schwab <schwab@suse.de>
12901
12902 * print.c (print_object): Fix off-by-one in last change.
12903
129042008-07-25 Juanma Barranquero <lekktu@gmail.com>
12905
12906 * term.c (syms_of_term): Don't initialize default_orig_pair,
12907 default_set_foreground and default_set_background on Windows.
12908
129092008-07-25 Jason Rumney <jasonr@gnu.org>
12910
12911 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12912 ScriptItemize. Clean up return value checking. Remove unused
12913 variables.
12914 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12915 shaping engine.
12916
12917 * w32font.c (w32font_has_char): Handle the case where we can't
12918 determine the script for a character.
12919
129202008-07-25 Chong Yidong <cyd@stupidchicken.com>
12921
12922 * term.c (syms_of_term): Initialize default_orig_pair,
12923 default_set_foreground, and default_set_background.
12924
12925 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12926 clash (bug#86).
12927 (getloadavg): Callers changed.
12928
12929 * image.c (svg_load_image): Fix last change.
12930 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12931 image size is valid. Use g_object_unref instead of deprecated
12932 rsvg_handle_free to free rsvg handle.
12933 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12934
129352008-07-25 Jason Rumney <jasonr@gnu.org>
12936
12937 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12938 surrogates before looking up glyph index.
12939 (w32font_text_extents): Encode as surrogates if falling back to
12940 functions that need UTF-16 wide chars.
12941
12942 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12943 BMP as surrogates before looking up glyph index.
12944
129452008-07-25 Chong Yidong <cyd@stupidchicken.com>
12946
12947 * image.c (svg_load_image): Check for failure in return value of
12948 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12949
129502008-07-25 Jason Rumney <jasonr@gnu.org>
12951
12952 * w32font.c (Fx_select_font): Reverse sense of second arg.
12953
129542008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12955
12956 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12957 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12958
12959 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12960 (PURESIZE): Use it.
12961
129622008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12963
12964 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12965 * m/alpha.h (TEXT_END):
12966 * m/ibmrs6000.h (TEXT_END):
12967 * m/macppc.h (TEXT_END):
12968 * s/darwin.h (TEXT_END):
12969 * s/msdos.h (TEXT_END): Remove, unused.
12970 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12971 * s/cygwin.h: Remove comment.
12972
12973 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12974 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12975 * m/intel386.h (DOT_GLOBAL_START):
12976 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12977 (USG): Remove, file not used on USG platforms.
12978
12979 * Makefile.in (HAVE_X11): Remove empty #else.
12980
129812008-07-24 Andreas Schwab <schwab@suse.de>
12982
12983 * fileio.c (Finsert_file_contents): Properly adjust undo list
12984 after format conversion.
12985
129862008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12987
12988 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12989 (menu_nav_ended): Remove.
12990 (create_menus): Remove signal connect for menu_nav_ended.
12991 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12992 create_menus.
12993 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12994
129952008-07-23 Jason Rumney <jasonr@gnu.org>
12996
12997 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12998 with opened font.
12999 (w32font_open): Set font type to gdi.
13000
13001 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13002
130032008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13004
13005 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13006 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13007 defines it.
13008 * unexec.c (ADDR_CORRECT): Define unconditionally.
13009
13010 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13011
13012 * unexec.c: Remove code depending on !COFF and USG, the file is
13013 not used for such systems.
13014
13015 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13016 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13017 (LD_SWITCH_SYSTEM_1): Remove, update users.
13018
13019 * s/darwin.h (DATA_END):
13020 * m/intel386.h (DATA_END):
13021 * m/ibmrs6000.h (DATA_END):
13022 * m/alpha.h (DATA_END): Remove, unused.
13023
13024 * config.in: Regenerate.
13025 * s/ms-w32.h (subprocesses): Define unconditionally.
13026 * s/template.h (subprocesses): Update comment.
13027 * s/vms.h (subprocesses):
13028 * s/usg5-4.h (subprocesses):
13029 * s/hpux10-20.h (subprocesses):
13030 * s/gnu-linux.h (subprocesses):
13031 * s/cygwin.h (subprocesses):
13032 * s/bsd-common.h (subprocesses):
13033 * s/aix4-2.h (subprocesses):
13034 * s/darwin.h (subprocesses): Do not define, defined by default now.
13035
13036 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13037 Remove all references.
13038 (temacs): Add GNUstep specific ld flags.
13039
13040 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13041 similarly to what X does.
13042
130432008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13044
13045 * nsfns.m (x-list-fonts): Remove.
13046 (syms_of_nsfns): Drop the x-list-fonts declaration.
13047 * nsterm.m: Get rid of remaining "//" comments.
13048
130492008-07-22 Chong Yidong <cyd@stupidchicken.com>
13050
13051 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13052
13053 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13054 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13055 (Fns_own_selection_internal, Fx_disown_selection_internal)
13056 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13057
13058 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13059 ... */' style of docstrings. Doc fixes.
13060
130612008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13062
13063 * terminfo.c (UP, BC, PC): Undo previous change.
13064
13065 * nsfns.m: Rename ns prefixed functions/variables to the
13066 corresponding x versions. Update references.
13067
130682008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13069
13070 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13071
130722008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13073
13074 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13075 Remove forwarding functions.
13076 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13077 non-static.
13078 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13079 non-static.
13080 (ns_frame_parm_handlers): Use the new names.
13081 (syms_of_nsfns): Move to the end of file.
13082
13083 * nsterm.m (syms_of_nsterm): Move to the end of file.
13084
13085 * dispnew.c (init_display): Remove code for X10.
13086
130872008-07-22 Jason Rumney <jasonr@gnu.org>
13088
13089 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13090 bare drive.
13091
130922008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13093
13094 * nsterm.m (syms_of_nsterm): Remove debugging println.
13095
130962008-07-22 David Reitter <david.reitter@gmail.com>
13097
13098 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13099 Carbon implementation of the same functionality: execute arbitrary
13100 AppleScript code.
13101
131022008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13103
13104 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13105 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13106 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13107 (Fx_display_mm_height, Fx_display_mm_width)
13108 (Fx_display_backing_store, Fx_display_visual_class)
13109 (Fx_display_save_under, Fx_open_connection)
13110 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13111 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13112 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13113 (Fx_display_pixel_width, Fx_display_pixel_height)
13114 (Fx_display_usable_bounds, Fx_display_planes)
13115 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13116 ... */' style of docstrings.
13117
131182008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13119
13120 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13121 on this platform.
13122 (mips):
13123 * m/iris4d.h (mips): Do not define.
13124 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13125
13126 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13127
13128 * image.c:
13129 * nsfns.m:
13130 * nsselect.m:
13131 * nsterm.h:
13132 * nsterm.m: Rename ns prefixed functions/variables to the
13133 corresponding x versions. Update references.
13134
13135 * m/ibms390x.h (NO_REMAP): Do not undefine.
13136
13137 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13138
131392008-07-21 Chong Yidong <cyd@stupidchicken.com>
13140
13141 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13142 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13143 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13144 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13145 (Fns_display_mm_height, Fns_display_mm_width)
13146 (Fns_display_backing_store, Fns_display_visual_class)
13147 (Fns_display_save_under, Fns_open_connection)
13148 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13149 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13150 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13151 (Fns_display_pixel_width, Fns_display_pixel_height)
13152 (Fns_display_usable_bounds, Fx_display_planes)
13153 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13154
131552008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13156
13157 * print.c (print_object): Check print_depth before searching for
13158 circularities.
13159
131602008-07-21 Michael Albinus <michael.albinus@gmx.de>
13161
13162 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13163 only sprintf.
13164
131652008-07-21 Kenichi Handa <handa@m17n.org>
13166
13167 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13168
131692008-07-20 Andreas Schwab <schwab@suse.de>
13170
13171 * syntax.c (find_start_pos, find_start_value)
13172 (find_start_value_byte, find_start_begv, find_defun_start)
13173 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13174
131752008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13176
13177 * s/sol2-3.h: Insert contents of s/sol2.h.
13178 (LD_SWITCH_SYSTEM): Remove redundant definition.
13179 * s/sol2.h: Remove, unused.
13180
131812008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13182
13183 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13184
131852008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13186
13187 * Makefile.in (ns_appdir): Fix typo in find command.
13188
131892008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13190
13191 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13192
13193 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13194 added not supported anymore.
13195
13196 * s/usg5-4-2.h (LIBS_SYSTEM):
13197 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13198
13199 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13200 * s/lynxos.h (GETPGRP_NO_ARG):
13201 * s/hpux10-20.h (NO_SIOCTL_H):
13202 * s/gnu.h (GETPGRP_NO_ARG):
13203 * s/gnu-linux.h (NO_SIOCTL_H):
13204 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13205 * s/cygwin.h (GETPGRP_NO_ARG):
13206 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13207 (C_DEBUG_SWITCH): Remove duplicate definition.
13208
13209 * m/ibms390.h: Remove boilerplate comments.
13210
13211 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13212
13213 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13214 (wait_reading_process_output): Remove code for SunOS, platform not
13215 supported anymore. Use SOLARIS2 instead of sun.
13216
132172008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13218
13219 * font.c (font_open_by_name): Under NS, default lface height to zero.
13220 (font_open_for_lface): Under NS, set size based on frame fontsize.
13221 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13222 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13223
132242008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13225
13226 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13227 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13228 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13229 YES/NO.
13230 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13231 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13232 * Makefile.in (clean): Clear out build destination dir.
13233
132342008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13235
13236 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13237 xterm, xselect.
13238 * lisp.h: Remove declaration of hash_remove.
13239 * nsgui.h: Remove redefinitions of hash_remove.
13240 * fns.c (hash_remove): Rename to hash_remove_from_table.
13241
132422008-07-19 Seiji Zenitani <zenitani@mac.com>
13243
13244 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13245 strdup() the family UTF8String before modifying it.
13246
132472008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13248
13249 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13250 NS_FACE_BACKGROUND with 0 instead of nil.
13251 * nsfont.m (nsfont_draw): Same.
13252
132532008-07-19 Chong Yidong <cyd@stupidchicken.com>
13254
13255 * nsfns.m (ns_set_background_color): Fix crash.
13256
132572008-07-18 Chong Yidong <cyd@stupidchicken.com>
13258
13259 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13260
132612008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13262
13263 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13264
132652008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13266
13267 * gtkutil.c: Include <config.h> instead of "config.h".
13268
13269 * lisp.h (Foverlay_buffer): Add EXFUN.
13270
13271 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13272 child process to complete child_setup. Undo 2005-09-21 change.
13273
13274 * s/darwin.h: Mention setsid after vfork.
13275
132762008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13277
13278 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13279 Depend on macgui.h.
13280
13281 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13282 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13283
13284 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13285 and f19.
13286 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13287
13288 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13289 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13290 Remove enumerators.
13291
13292 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13293 Check if FACE_FROM_ID returns NULL.
13294
132952008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13296
13297 * w32inevt.c (change_frame_size): Remove extern declaration.
13298 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13299 change_frame_size.
13300
133012008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13302
13303 * getloadavg.c: Revert last change (2008-07-15).
13304
133052008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13306
13307 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 13308 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
13309 from configure.
13310
133112008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13312
13313 * s/sol2.h:
13314 * s/sol2-4.h: Reorganize conditionals.
13315
13316 * ecrt0.c: Remove code depending on m68000, not used anymore.
13317
13318 * fns.c (hash_remove): Make static.
13319 * lisp.h (hash_remove): Don't prototype.
13320
13321 * m/ibmrs6000.h:
13322 * m/ibms390x.h:
13323 * m/macppc.h: Remove boilerplate comments.
13324
13325 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13326 Solaris, which does not need them.
13327
13328 * m/vax.h: Remove comments about unsupported systems.
13329
13330 * s/darwin.h: Reorganize ifdefs.
13331
133322008-07-17 Andreas Schwab <schwab@suse.de>
13333
13334 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13335
133362008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13337
13338 Use SDATA. Follow coding convention of placing operators at
13339 beginning of next line rather than end of previous line, and placing
13340 spaces around infix operators.
13341
13342 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13343 in case it was defined already.
13344 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13345 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13346 ns_default.
13347 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13348 Lisp_Objects.
13349 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13350 (ns_defined_color, ns_color_to_lisp): Declare.
13351 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13352 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13353 it's accepted even with USE_LISP_UNION_TYPE.
13354 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13355 (update_frame_tool_bar): Remove apparently obsolete tests for
13356 non-integerness of f->tool_bar_lines.
13357 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13358 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13359 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13360 (nsfont_open): Don't confuse NULL for Qnil.
13361 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13362 * menu.h (find_and_call_menu_selection):
13363 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13364 (find_and_return_menu_selection): Always return something.
13365 * frame.h: Include dispextern.h for Display_Info.
13366 (display_x_get_resource): Declare.
13367
133682008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13369
13370 * syntax.c: Remove stdio.h include accidentally introduced in
13371 Emacs.app commit.
13372 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13373 NS_IMPL_COCOA.
13374 * keyboard.c (handle_async_input, input_available_signal): Remove
13375 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13376
133772008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13378
13379 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13380 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13381 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13382 Use SDATA.
13383
13384 * keymap.c: Remove all NS-specific code.
13385 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13386 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13387 where_is_preferred_modifier, return a different value depending on how
13388 preferred is the binding.
13389 (where_is_internal): Adjust accordingly.
13390 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13391 Adjust to new preferred_sequence_p.
13392 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13393 * keyboard.c (parse_solitary_modifier): Not static any more.
13394 * keyboard.h (parse_solitary_modifier): Declare.
13395
133962008-07-16 Andreas Schwab <schwab@suse.de>
13397
13398 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13399 of easymenu.
13400
134012008-07-16 Chong Yidong <cyd@stupidchicken.com>
13402
13403 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13404 that we don't move off the line.
13405
134062008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13407
13408 * keyboard.c (Qsuper): Remove.
13409 (parse_menu_item): Don't call where_is_internal specially for NS.
13410
134112008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13412
13413 * s/gnu-linux.h: Remove boilerplate comments.
13414
13415 * m/alpha.h (__ELF__): Consolidate conditions.
13416
13417 * m/m68k.h (linux): Use GNU_LINUX instead.
13418 Remove boilerplate comments.
13419
13420 * m/intel386.h: Undo refactoring from previous change.
13421 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13422 too, remove dead code.
13423 (linux): Use GNU_LINUX instead.
13424
134252008-07-16 Jason Rumney <jasonr@gnu.org>
13426
13427 * w32gui.h: Repeat 26 June changes lost by last change.
13428
134292008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13430
13431 * systty.h: Remove code for Aix on 386, unsupported platform.
13432
13433 * s/ms-w32.h: Remove boilerplate comments.
13434 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13435
13436 * s/gnu-linux.h (TERM): Remove support.
13437 (HAVE_SYSVIPC): Remove, unused.
13438 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13439 for this system.
13440
13441 * process.c: Remove support for IRIS, unused.
13442 Remove support for TERM, not relevant anymore.
13443
13444 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13445 used with the definition.
13446
13447 * s/aix4-2.h (static): Do not undef.
13448
13449 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13450 only used on Aix.
13451 (HAVE_SYSVIPC): Remove, unused.
13452
13453 * m/hp800.h (CANNOT_DUMP): Do not undef.
13454
13455 * m/alpha.h: Fix comment.
13456
13457 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13458 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13459 used by this configuration.
13460 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13461 * unexec.c: Remove code depending on HPUX and
13462 USG_SHARED_LIBRARIES, not used with this file. Remove code
13463 depending on IRIS, unused. Remove if 0-ed code.
13464
13465 * s/template.h: Remove comments about static.
13466
13467 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13468 Remove if 0-ed code.
13469 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13470 were the same as the default.
13471 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13472 Remove boilerplate comments.
13473 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13474 (HAVE_SYSVIPC): Remove, unused.
13475 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13476
13477 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13478 Remove boilerplate comments.
13479 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13480 Remove boilerplate comments.
13481 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13482 Remove boilerplate comments.
13483 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13484
13485 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13486 USG systems which do not use DATA_SEG_BITS.
13487 Refactor code. Remove boilerplate comments.
13488
13489 * m/ibms390.h:
13490 * m/m68k.h:
13491 * s/bsd-common.h:
13492 * s/cygwin.h:
13493 * s/darwin.h:
13494 * s/freebsd.h:
13495 * s/gnu.h:
13496 * s/msdos.h: Remove boilerplate comments.
13497
13498 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 13499 do not use this file.
aac0c6e3
MR
13500 (IRIS_4D): Remove, unused.
13501
13502 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 13503 do not use this file.
aac0c6e3
MR
13504 (SIGN_EXTEND_CHAR):
13505 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13506 * unexmips.c: Remove file, unused.
13507
13508 * editfns.c (Fuser_full_name): Replace the only use of
13509 USER_FULL_NAME with its value.
13510 * config.in: Regenerate.
13511
135122008-07-16 David Reitter <david.reitter@gmail.com>
13513
13514 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13515 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13516
135172008-07-16 Glenn Morris <rgm@gnu.org>
13518
13519 * emacs.c (system-type): Doc fix.
13520
135212008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13522
13523 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13524 If the cache doesn't work, let's fix it, rather than work around it.
13525
135262008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13527
13528 * Makefile.in: Correct additions for nsfont.o in last commit.
13529 * nsfont.m: New file (forgot last commit).
13530
135312008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13532
13533 * callproc.c (set_initial_environment): Initialize
13534 Vprocess_environment under CANNOT_DUMP (fixes crash when
13535 batch-compiling for bootstrap).
13536
135372008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 13538 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 13539
c4cc8b9a
JB
13540 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13541 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
13542
135432008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13544
13545 Changes and additions for NeXTstep windowing system (Cocoa and
13546 GNUstep) support.
13547
13548 * Makefile.in:
13549 * config.in: Support defines and build commands for NS port.
13550 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13551 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13552 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13553 windowing.
13554 (struct face): Add synth_ital field.
13555 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13556 (init_display): Initialize Vinitial_window_system to "ns" when so
13557 compiled.
13558 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13559 (display_arg): Use under NS.
13560 (main): Under NS, allocate autorelease pool and handle command line
13561 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13562 (standard_args): Add NS-specific args.
13563 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13564 * font.c (DEFAULT_ENCODING): New variable.
13565 (font_find_for_lface): Use it.
13566 (syms_of_font): Load syms_of_nsfont under NS.
13567 * font.h: Declare nsfont_driver when compiled under NS.
13568 * fontset.c: When compiling under NS, include nsterm.h.
13569 (fontset_from_font): Autoconstruct fontset under NS.
13570 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13571 symbol, document and use it.
13572 (do_switch_frame): When for_deletion under Cocoa, add
13573 Fraise_frame(Qnil).
13574 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13575 (x_get_arg): Allow "yes" and "no" as boolean values.
13576 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13577 Qright under Cocoa.
13578 (focus-follows-mouse): Default to 0 under NS.
13579 * frame.h (enum output_method): Add output_ns.
13580 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13581 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13582 (FRAME_WINDOW_P): NS-specific definition.
13583 * fringe.c (max_used_fringe_bitmap): Make public.
13584 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13585 (getloadavg): Use NeXT code under descendant OS's.
13586 * image.c (includes and header section, x_create_bitmap_from_data)
13587 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13588 (image_background_transparent, x_clear_image_1)
13589 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13590 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13591 (x_to_xcolors, x_from_xcolors, x_disable_image)
13592 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13593 other GUIs, including XPM support using code originally written for
13594 Carbon GUI.
13595 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13596 using NS API.
13597 (image_ascent): Use font metrics macros instead of direct struct field
13598 access.
13599 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13600 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13601 Also, handle NS as GTK for menu bar purposes.
13602 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13603 toolkit where they differ.
13604 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13605 use cachelist, still needed under NS.
13606 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13607 (struct widget_value): Define it here for menu.c.
13608 * keymap.c (includes): Include modifier internals.
13609 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13610 NS.
13611 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13612 support for preferring sequences using certain modifiers, specified by
13613 the FIRSTONLY argument.
13614 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13615 under NS GNUstep implementation.
13616 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13617 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13618 * menu.c: Include nsterm.h under NS.
13619 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13620 (free_menubar_widget_tree_value, update_submenu_strings)
13621 (find_and_call_menu_selection): Treat NS as X and NT.
13622 (find_and_return_menu_selection): New function, used for popup menus.
13623 * nsgui.h:
13624 * nsterm.h:
13625 * nsfns.m:
13626 * nsimage.m:
13627 * nsmenu.m:
13628 * nsselect.m:
13629 * nsterm.m: New files.
13630 * process.c (wait_reading_process_output): Under NS, call ns_select()
13631 instead of plain select().
13632 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13633 beginning of buffer.
13634 * sysselect.h (init_process): Rename when compiling under Cocoa to
13635 avoid name conflict.
13636 * termhooks.h (display_info): Add ns_display_info to union.
13637 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13638 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13639 COCOA environment.
13640 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13641 unexec() signature. (Note, this will dump, but the resulting file
13642 crashes; unexosx is used instead; keeping around for reference and
13643 possible aid in getting dump working under GNUstep.)
13644 * w32gui.h (button_type, widget_value): Remove definitions (now in
13645 keyboard.h).
13646 * window.c: Include nsterm.h when compiling under NS.
13647 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13648 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13649 other GUI windowing systems.
13650 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13651 GTK.
13652 (x_consider_frame_title): Under NS, set icon type and frame
13653 modified-state indicator; use ns_set_name_as_filename() when using
13654 formatted title.
13655 (update_window_cursor): Make public when compiling under NS.
13656 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13657 (hourglass_atimer, Vhourglass_delay
13658 * xfaces.c (header section, init_frame_faces, clear_font_table)
13659 (defined_color, unload_color, x_face_list_fonts)
13660 (prepare_face_for_display): Add NS support parallel to other GUIs.
13661 Emulate GCs like other non-X GUIs.
13662 (split_font_name): Don't lowercase font name under NS.
13663 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13664 under NS.
13665 * s/darwin.h: Add support for compilation under NS.
13666
136672008-07-15 Jason Rumney <jasonr@gnu.org>
13668
13669 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13670 (w32_show_hourglass): Rename from show_hourglass.
13671 (w32_hide_hourglass): Rename from hide_hourglass.
13672 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13673 (Vhourglass_delay): Declare extern.
13674 (hourglass_started): Remove.
13675
13676 * xdisp.c (Vhourglass_delay): Remove static.
13677 (hourglass_started, start_hourglass, cancel_hourglass):
13678 Don't include these versions on WINDOWSNT.
13679
136802008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13681
13682 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13683 variables (formerly in xfns.c).
13684 (show_hourglass, hide_hourglass): New prototypes (same).
13685 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13686 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13687 in xfns.c).
13688 (syms_of_xdisp): Declare/initialize display-hourglass,
13689 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13690 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13691 formerly in xfns.c.
13692 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13693 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13694 (start_hourglass, cancel_hourglass): Remove.
13695 (show_hourglass, hide_hourglass): Remove prototypes and static
13696 modifiers.
13697 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13698 hourglass_atimer, hourglass_shown_p declaration/initialization.
13699 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13700 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13701 (start_hourglass, cancel_hourglass): Remove.
13702 (show_hourglass, hide_hourglass): Remove prototypes and static
13703 modifiers.
13704 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13705 hourglass_atimer, hourglass_shown_p declaration/initialization.
13706 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13707 (DEFAULT_HOURGLASS_DELAY): Remove.
13708 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13709 hourglass_shown_p declaration/initialization.
13710
137112008-07-14 Jason Rumney <jasonr@gnu.org>
13712
13713 * w32fns.c (w32_get_arg): Remove wrapper function.
13714 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13715 directly.
13716 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13717
137182008-07-14 Kenichi Handa <handa@m17n.org>
13719
13720 * xfont.c (xfont_open): Add workaround for X's bug.
13721
137222008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13723
13724 * fontset.c: Include <stdio.h> unconditionally.
13725
137262008-07-13 Michael Albinus <michael.albinus@gmx.de>
13727
13728 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13729 for filtering.
13730
137312008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13732
13733 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13734
13735 * m/macppc.h:
13736 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13737
c4cc8b9a 13738 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
13739 (SPECIAL_EMACS_INT):
13740 * m/ia64.h (SPECIAL_EMACS_INT):
13741 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13742 * s/gnu.h (NLIST_STRUCT):
13743 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13744 * s/gnu-linux.h (LINUX):
13745 * s/msdos.h (HAVE_FACES):
13746 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13747
13748 * systty.h:
13749 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13750 anymore.
13751
137522008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13753
13754 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13755 always defined as int.
13756
13757 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13758 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13759 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13760 * s/freebsd.h (HAVE_WAIT_HEADER):
13761 * s/bsd-common.h (HAVE_UNION_WAIT):
13762 * s/aix4-2.h (HAVE_WAIT_HEADER):
13763 * m/mips.h (HAVE_UNION_WAIT):
13764 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13765 (COFF, static): Do not define, they are undefined later in the file.
13766
13767 * process.c (update_status): Don't use a union.
13768 (status_convert):
13769 (sigchld_handler): Use int instead of WAITTYPE.
13770
137712008-07-12 Chong Yidong <cyd@stupidchicken.com>
13772
13773 * indent.c (Fvertical_motion): Restore hscroll before moving to
13774 goal column.
13775
137762008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13777
13778 * lisp.h: Remove left over code.
13779
137802008-07-11 Andreas Schwab <schwab@suse.de>
13781
13782 * lisp.h: Fix logic in last change.
13783
13784 * menu.h: New file.
13785 * menu.c: Include it.
13786 * xmenu.c: Likewise.
13787 * Makefile.in: Update dependencies.
13788
137892008-07-11 Kenichi Handa <handa@m17n.org>
13790
13791 * fontset.c (fontset_from_font): Cancel the previous change.
13792
137932008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13794
13795 * lisp.h:
13796 * w32heap.c:
13797 * emacs.c:
13798 * alloc.c: Replace all references of NO_UNION_TYPE with
13799 USE_LISP_UNION_TYPE.
13800
13801 * m/xtensa.h (NO_UNION_TYPE):
13802 * m/vax.h (NO_UNION_TYPE):
13803 * m/template.h (NO_UNION_TYPE):
13804 * m/sparc.h (NO_UNION_TYPE):
13805 * m/mips.h (NO_UNION_TYPE):
13806 * m/macppc.h (NO_UNION_TYPE):
13807 * m/m68k.h (NO_UNION_TYPE):
13808 * m/iris4d.h (NO_UNION_TYPE):
13809 * m/intel386.h (NO_UNION_TYPE):
13810 * m/ibms390x.h (NO_UNION_TYPE):
13811 * m/ibms390.h (NO_UNION_TYPE):
13812 * m/ibmrs6000.h (NO_UNION_TYPE):
13813 * m/ia64.h (NO_UNION_TYPE):
13814 * m/hp800.h (NO_UNION_TYPE):
13815 * m/arm.h (NO_UNION_TYPE):
13816 * m/amdx86-64.h (NO_UNION_TYPE):
13817 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13818 defining it the same.
13819
138202008-07-10 Chong Yidong <cyd@stupidchicken.com>
13821
13822 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13823
138242008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13825
13826 * fileio.c:
50426a04 13827 * sysdep.c:
aac0c6e3
MR
13828 * systty.h:
13829 * m/ibmrs6000.h:
13830 * m/iris4d.h:
13831 * s/aix4-2.h:
13832 * s/freebsd.h:
13833 * s/gnu-linux.h:
13834 * s/hpux10-20.h:
13835 * s/hpux11.h:
13836 * s/netbsd.h:
13837 * s/sol2-3.h:
13838 * s/sol2-4.h:
13839 * s/sol2.h:
13840 * s/usg5-4.h:
13841 * s/vms.h: Remove references to unused variables.
13842
138432008-07-10 Andreas Schwab <schwab@suse.de>
13844
13845 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13846 pattern before matching the generic family.
13847
138482008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13849
13850 * unexec.c:
13851 * s/vms.h:
13852 * s/usg5-4-2.h:
13853 * s/sol2-5.h:
13854 * s/freebsd.h:
13855 * s/darwin.h: Remove dead code.
13856
13857 * m/template.h:
13858 * m/sparc.h:
13859 * m/mips.h:
13860 * m/m68k.h:
13861 * m/iris4d.h:
13862 * m/intel386.h:
13863 * m/ibms390x.h:
13864 * m/ibms390.h:
13865 * m/ia64.h:
13866 * m/hp800.h:
13867 * m/arm.h:
13868 * m/amdx86-64.h: Remove dead code and references to unused
13869 and compiler defined symbols.
13870
13871 * unexmips.c:
13872 * unexelf.c: Remove references to desupported systems.
13873
13874 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13875
13876 * m/powermac.h: Remove boilerplate comments.
13877 (NO_REMAP): Remove unused definition.
13878
13879 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13880 define them.
13881
138822008-07-10 Kenichi Handa <handa@m17n.org>
13883
13884 * xfont.c (xfont_open): Log the reason of failure.
13885
138862008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13887
13888 * fontset.c (fontset_get_font_group):
13889 * font.c (font_check_otf): Specify argument types.
13890
138912008-07-09 Kenichi Handa <handa@m17n.org>
13892
13893 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13894 non-ASCII char is found.
13895
13896 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13897 (reorder_font_vector): Change the arg preferred_family to font.
13898 Prefer the spec matching with font.
13899 (fontset_get_font_group): New function.
13900 (fontset_find_font): Change the format of an element of a realized
13901 fontset. Use fontset_get_font_group.
13902 (fontset_font): Try the current fontset, the default fontset, the
13903 fallbacks of the current fontset, and the fallbacks of the default
13904 fontset in this order.
13905 (face_for_char): Delete the shortcut to use the current font.
13906 (fontset_from_font): Don't set fonts for Latin in the fontset.
13907
13908 * font.h (font_make_object, font_match_p): Adjust prototypes.
13909
13910 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13911
13912 * font.c (font_make_object): New arg entity and pixelsize.
13913 (font_check_otf_features, font_check_otf): New functions.
13914 (font_match_p): Check :lang, :script, and :otf properties.
13915
13916 * xfont.c (xfont_open): Adjust it for the change of
13917 font_make_object.
13918 (xfont_text_extents): Fix initial setting of metrics.
13919
13920 * ftfont.c (struct ftfont_info): New member index, delete member
13921 fc_charset_idx. Make the member order compatible with struct
13922 xftfont_info.
13923 (fc_charset_table): Change charset names to registry names.
13924 (ftfont_pattern_entity): Delete the args registry and
13925 fc_charset_idx. Change the value of :font-entity property
13926 to (FONTNAME . INDEX). Always set :registry property to
13927 `iso10646-1'.
13928 (struct ftfont_cache_data): New struct.
13929 (ftfont_lookup_cache): New arg for_face.
13930 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13931 (ftfont_driver): Set the member otf_capability.
13932 (ftfont_get_charset): Adjust it for the change of
13933 fc_charset_table.
13934 (OTF_TAG_SYM): New macro.
13935 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13936 for the change of fc_charset_table.
13937 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13938 ftfont_pattern_entity. Add FC_INDEX to objset.
13939 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13940 and ftfont_pattern_entity.
13941 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13942 font_make_object, struct ftfont_info.
13943 (ftfont_has_char): Use ftfont_get_fc_charset.
13944 (ftfont_otf_features, ftfont_otf_capability): New functions.
13945 (ftfont_shape): Use ftfont_get_otf.
13946 (ftfont_text_extents): Fix initial setting of metrics.
13947
13948 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13949 member order compatible with struct ftfont_info.
13950 (xftfont_open): Add FC_CHARSET to the pattern. Set
13951 xftfont_info->ft_size. Don't unlock the face. Check BDF
13952 properties if appropriate.
13953 (xftfont_close): Unlock the face.
13954 (xftfont_anchor_point, xftfont_shape): Deleted.
13955 (syms_of_xftfont): Don't set members anchor_point and shape of
13956 xftfont_driver.
13957
13958 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13959 font_make_object.
13960
13961 * w32font.c (w32font_open): Adjust it for the change of
13962 font_make_object.
13963 (w32font_open_internal): Don't set properties of font_object here.
13964
139652008-07-08 Chong Yidong <cyd@stupidchicken.com>
13966
13967 * macfns.c (x_create_tip_frame):
13968 * w32fns.c (x_create_tip_frame):
13969 * xfns.c (x_create_tip_frame): Pass parameter argument to
13970 face-set-after-frame-default.
13971
13972 * xfaces.c (Finternal_merge_in_global_face): Save merged
13973 attributes for the default face back into the face vector.
13974
139752008-07-08 Andreas Schwab <schwab@suse.de>
13976
13977 * fontset.h: Declare fontset_from_font. Don't declare
13978 new_fontset_from_font and fontset_from_font_name.
13979 * xterm.c: Include "fontset.h".
13980 * Makefile.in (xterm.o): Update dependencies.
13981
139822008-07-08 Glenn Morris <rgm@gnu.org>
13983
13984 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13985 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13986
139872008-07-07 Chong Yidong <cyd@stupidchicken.com>
13988
13989 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13990 (x_set_frame_parameters): Don't bind it.
13991
139922008-07-07 Juanma Barranquero <lekktu@gmail.com>
13993
13994 * w32fns.c (map_w32_filename): Declare extern.
13995
139962008-07-07 Jason Rumney <jasonr@gnu.org>
13997
13998 * w32term.c (WS_EX_LAYERED): Define if not already.
13999
140002008-07-06 Chong Yidong <cyd@stupidchicken.com>
14001
14002 * xfaces.c (set_font_frame_param): Don't try to set the font
14003 parameter if it is still unspecified in the lface.
14004
140052008-07-05 Chong Yidong <cyd@stupidchicken.com>
14006
14007 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14008 face if it didn't already exist.
14009
14010 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14011
140122008-07-05 Andreas Schwab <schwab@suse.de>
14013
14014 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14015
140162008-07-05 Chong Yidong <cyd@stupidchicken.com>
14017
14018 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14019 word-wrapping.
14020 (IT_DISPLAYING_WHITESPACE): New macro.
14021 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14022 when word-wrapping. Simplify word-wrapping logic. Use correct
14023 pixel positions when saving copies of the iterator.
14024 (display_line): Use proper wrap point if the last character on a
14025 line was preceded by whitespace.
14026
140272008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14028
14029 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14030
140312008-07-04 Kenichi Handa <handa@m17n.org>
14032
14033 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14034
14035 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14036
140372008-07-02 Jason Rumney <jasonr@gnu.org>
14038
14039 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 14040 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
14041
14042 * xdisp.c (next_element_from_display_vector): Move assignment out
14043 of if statement.
14044
140452008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14046
14047 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14048
14049 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14050 (syms_of_fileio): Initialize and export them.
14051 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14052
14053 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14054 (Fsystem_move_file_to_trash): New function.
14055 (syms_of_w32fns): Export it to lisp.
14056
140572008-07-01 Jason Rumney <jasonr@gnu.org>
14058
14059 * w32font.c (w32font_text_extents): Don't count overhang as part
14060 of width.
14061
140622008-06-30 Miles Bader <miles@gnu.org>
14063
14064 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14065 Add `avoid_cursor_p' field.
14066
14067 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14068 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14069 (append_glyph, append_composite_glyph, produce_image_glyph)
14070 (append_stretch_glyph): Initialize avoid_cursor_p.
14071 (get_it_property): Rename from `get_line_height_property'.
14072 (x_produce_glyphs): Use get_it_property.
14073 (handle_line_prefix, push_display_prop): New functions.
14074 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14075 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14076 New variables.
14077 (syms_of_xdisp): Initialize them.
14078
140792008-06-30 Kenichi Handa <handa@m17n.org>
14080
14081 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14082 XftDefaultSubstitute (they are called in XftFontMatch).
14083 (xftfont_open): Fix args to ftfont_font_format.
14084
14085 * ftfont.c (fc_charset_table): New member lang.
14086 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 14087 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
14088 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14089 (ftfont_open): Fix args to ftfont_font_format.
14090 (ftfont_font_format): New arg filename.
14091
140922008-06-30 Chong Yidong <cyd@stupidchicken.com>
14093
14094 * xfaces.c (Finternal_merge_in_global_face): If default face was
14095 modified, realize it again. Update the font face attribute.
14096
140972008-06-29 Jason Rumney <jasonr@gnu.org>
14098
14099 * w32term.c (x_set_frame_alpha): Fix logic.
14100
141012008-06-29 Kenichi Handa <handa@m17n.org>
14102
14103 * fontset.c (Finternal_char_font): Return font-object instead of
14104 font-name.
14105
14106 * composite.c (get_composition_id): Fix the width calculation for TAB.
14107
141082008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14109
14110 * indent.c (Fvertical_motion): Properly handle float column arg.
14111
141122008-06-28 Jason Rumney <jasonr@gnu.org>
14113
14114 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14115 (pfnSetLayeredWindowAttributes): New function pointer.
14116 (w32_initialize): Initialize it when supported.
14117 (x_set_frame_alpha): New function.
14118
14119 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14120 (w32_frame_parm_handlers): Set alpha handler.
14121
14122 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14123
141242008-06-27 Jason Rumney <jasonr@gnu.org>
14125
14126 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14127 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14128 (w32_to_x_charset, x_to_w32_charset)
14129 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14130 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14131 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14132 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14133 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14134 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14135 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14136 (Qw32_charset_unicode): Remove.
14137 (syms_of_w32fns): Update for above changes.
14138
14139 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14140 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14141 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14142 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14143 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14144 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14145 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14146 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14147 (syms_of_w32font): Update for above changes.
14148
141492008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14150
14151 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14152 removed #if.
14153 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14154
141552008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 14156 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
14157
14158 * makefile.w32-in (LOCAL_FLAGS):
14159 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14160
14161 * sysdep.c (_spawnlp, _getpid):
14162 Declare with explicit _cdecl instead of _CRTAPI1.
14163
14164 * editfns.c (Fget_internal_run_time):
14165 Check for WINDOWSNT with #ifdef, not #if.
14166
141672008-06-26 Jason Rumney <jasonr@gnu.org>
14168
14169 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14170
14171 * w32term.c (x_draw_glyph_string_foreground)
14172 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14173 Use FONT_HANDLE macro.
14174 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14175
14176 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14177 (uniscribe_encode_char): Use FONT_HANDLE macro.
14178
14179 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14180 (w32font_text_extents): Use precast w32_font.
14181 (w32font_close): Free cached metrics.
14182 (w32font_open_internal): Allocate space for name on stack.
14183
141842008-06-26 Chong Yidong <cyd@stupidchicken.com>
14185
14186 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14187
141882008-06-26 Jason Rumney <jasonr@gnu.org>
14189
14190 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14191 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14192
141932008-06-26 Juanma Barranquero <lekktu@gmail.com>
14194
14195 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14196
141972008-06-26 Jason Rumney <jasonr@gnu.org>
14198
14199 * w32bdf.c, w32bdf.h: Remove obsolete files.
14200
14201 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14202
14203 * w32gui.h: Don't include w32bdf.h.
14204 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14205 Remove obsolete font support.
14206
14207 * w32font.h (struct w32font_info): Remove compat_w32_font.
14208 Add hfont member.
14209 (FONT_COMPAT): Remove obsolete macro.
14210
14211 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14212 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14213 (w32font_open_internal): Remove compat code. Set new hfont member.
14214 (Fx_select_font): Use new hfont member.
14215
14216 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14217 (uniscribe_encode_char): Use new hfont member.
14218
14219 * w32term.c (x_draw_glyph_string_foreground)
14220 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14221 (x_draw_glyph_string): Use metrics in w32font_info.
14222
142232008-06-26 Kenichi Handa <handa@m17n.org>
14224
14225 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14226
142272008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14228
14229 * unexnext.c:
14230 * m/ews4800.h:
14231 * m/hp9000s300.h:
14232 * m/ibm370aix.h:
14233 * m/mips-siemens.h:
14234 * m/ncr386.h:
14235 * m/next.h:
14236 * m/pmax.h:
14237 * m/powerpcle.h:
14238 * m/tandem-s2.h:
14239 * s/386bsd.h:
14240 * s/bsd386.h:
14241 * s/bsd4-1.h:
14242 * s/bsd4-2.h:
14243 * s/bsdos2-1.h:
14244 * s/bsdos2.h:
14245 * s/bsdos3.h:
14246 * s/bsdos4.h:
14247 * s/nextstep.h:
14248 * s/ultrix4-3.h:
14249 * s/usg5-0.h:
14250 * s/usg5-2-2.h:
14251 * s/usg5-2.h:
14252 * s/usg5-4-3.h:
14253 * s/ux4800.h:
14254 * s/uxpds.h:
14255 * s/uxpv.h: Remove support for obsolete systems.
14256 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 14257 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
14258 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14259 Remove, insert contents in s/aix4-2.h.
14260 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14261 * s/bsd4-3.h: Rename to ...
14262 * s/bsd-common.h: ... this.
14263 * data.c:
14264 * doc.c:
14265 * ecrt0.c:
14266 * emacs.c:
14267 * fileio.c:
14268 * floatfns.c:
14269 * keyboard.c:
14270 * mem-limits.h:
14271 * print.c:
14272 * process.c:
14273 * sysdep.c:
14274 * syssignal.h:
14275 * systty.h:
14276 * syswait.h:
14277 * term.c:
14278 * unexec.c:
14279 * unexelf.c:
14280 * unexhp9k800.c:
14281 * m/hp800.h:
14282 * m/ibmrs6000.h:
14283 * m/mips.h:
14284 * m/vax.h:
14285 * s/darwin.h:
14286 * s/freebsd.h:
14287 * s/gnu.h:
14288 * s/ms-w32.h:
14289 * s/msdos.h:
14290 * s/netbsd.h:
14291 * s/template.h: Remove references to obsolete variables.
14292
14293 * Makefile.in: Add dependencies for all unexec files.
14294 (admindir): Remove unused variable.
14295 (UNEXEC_SRC): Remove references.
14296
142972008-06-25 Chong Yidong <cyd@stupidchicken.com>
14298
14299 * xfns.c (x_default_font_parameter): If Xft is available, first
14300 try Monospace-12 for the default font.
14301
143022008-06-25 Jason Rumney <jasonr@gnu.org>
14303
14304 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14305
143062008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14307
14308 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14309
14310 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14311
143122008-06-25 Juanma Barranquero <lekktu@gmail.com>
14313
14314 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14315 <scroll-conservatively>: Fix typo in docstring.
14316
14317 * xselect.c (Fx_send_client_event): Doc fix.
14318
143192008-06-25 Kenichi Handa <handa@m17n.org>
14320
14321 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14322
14323 * font.c (font_parse_fcname): Remove unused variables.
14324 (font_sort_entites): Delete the arg SPEC. Caller changed.
14325 Fix for the case of ! best_only.
14326 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14327
14328 * lisp.h (Fstring_to_unibyte): EXFUN it.
14329
14330 * character.h (str_to_unibyte): Extern it.
14331
14332 * character.c (str_to_unibyte): New function.
14333
14334 * fns.c (Fstring_to_unibyte): New function.
14335 (syms_of_fns): Defsubr it.
14336
143372008-06-24 Kenichi Handa <handa@m17n.org>
14338
14339 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14340 DPI too.
14341 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14342
143432008-06-24 Andreas Schwab <schwab@suse.de>
14344
14345 * Makefile.in (${lispsource}loaddefs.el): Rename from
14346 ../lisp/loaddefs.el.
14347 (bootstrap-clean): Do what distclean does but don't remove
14348 Makefile.
14349 (distclean): Depend on bootstrap-clean and remove Makefile.
14350
143512008-06-24 Chong Yidong <cyd@stupidchicken.com>
14352
14353 * buffer.h (struct buffer): New member word_wrap.
14354
14355 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14356 word-wrap.
14357 (init_buffer_once): Initialize them.
14358
14359 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14360 line_wrap enum possessing three possible values.
14361
14362 * termopts.h: Replace truncate_partial_width_windows with
14363 Vtruncate_partial_width_windows.
14364
14365 * dispnew.c (direct_output_for_insert): Avoid direct output when
14366 inserting a space with word wrap on.
14367
14368 * indent.c (compute_motion): Obey integer values of
14369 truncate-partial-width-windows.
14370
14371 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14372 replacing truncate_partial_width_windows.
14373 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14374 truncate only if the window width is below that integer.
14375 (start_display, resize_mini_window, produce_stretch_glyph)
14376 (display_string, move_it_in_display_line_to): Use line_wrap.
14377 (back_to_previous_visible_line_start, reseat_1): Reset
14378 string_from_display_prop_p.
14379 (display_line): Extend default face to end of line when wrapping.
14380
143812008-06-24 Kim F. Storm <storm@cua.dk>
14382
14383 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14384 to wrap continued lines at word boundaries.
14385
143862008-06-24 Jason Rumney <jasonr@gnu.org>
14387
14388 * font.c (Ffont_face_attributes): Multiply pixel size before point
14389 conversion to avoid multiplying rounding error.
14390
143912008-06-23 Jason Rumney <jasonr@gnu.org>
14392
14393 * w32term.c (x_draw_glyph_string_background)
14394 (x_draw_glyph_string): Remove old bdf font code.
14395
14396 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14397
143982008-06-22 Kenichi Handa <handa@m17n.org>
14399
14400 * font.c (font_find_for_lface): Try the adstyle specified in
14401 the property of LFACE_FONT of LFACE (if any).
14402
144032008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14404 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14405
14406 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14407
144082008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14409
14410 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14411 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14412 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14413 (witness-emacs): Remove.
14414 (lisp, shortlisp): Move loaddefs.el earlier.
14415 (mostlyclean): Forget about witness-emacs.
14416
144172008-06-22 Glenn Morris <rgm@gnu.org>
14418
14419 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14420 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14421
144222008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14423
14424 * Makefile.in (PRECOMP): Remove.
14425 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14426 (witness-emacs): Run `compile-first'.
14427 (.el.elc): Use the new compile-onefile target.
14428
144292008-06-21 Kenichi Handa <handa@m17n.org>
14430
14431 * xftfont.c (xftfont_open): Handle QCembolden only when
14432 FC_EMBOLDEN is defined.
14433
144342008-06-21 Andreas Schwab <schwab@suse.de>
14435
14436 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14437 (.el.elc): Likewise.
14438
144392008-06-21 Miles Bader <miles@gnu.org>
14440
14441 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14442 build dir, not the lisp source dir.
14443
144442008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14445
14446 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14447 (bootstrapclean): Remove.
14448 (.el.elc): New rule.
14449 (PRECOMP): New var.
14450 (../lisp/subdirs.el): Remove.
14451 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14452 (witness-emacs): New target.
14453 (mostlyclean): Remove witness-emacs as well.
14454 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14455 Add witness-emacs dependency.
14456
144572008-06-20 Chong Yidong <cyd@stupidchicken.com>
14458
14459 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14460 defined by the font.
14461
144622008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14463
14464 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14465 (bootstrap-clean): New target that keeps TAGS around.
14466 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14467 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14468
144692008-06-20 Jason Rumney <jasonr@gnu.org>
14470
14471 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14472 Remove obsolete font code.
14473
14474 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14475 to determine language support.
14476
144772008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14478
14479 * sysdep.c (cfsetspeed): New fun extracted from the code.
14480 (cfmakeraw): Move before first use.
14481
144822008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14483
14484 * sysdep.c (cfmakeraw): Provide fallback implementation.
14485 (serial_configure): Provide fallback implementation of cfsetspeed.
14486
144872008-06-20 Kenichi Handa <handa@m17n.org>
14488
14489 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14490 the pattern.
14491
14492 * fontset.c (fontset_from_font): Copy font_spec before changing
14493 the elements.
14494
14495 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14496
144972008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14498
14499 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14500 for explicit `font' parameters.
14501
14502 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14503
145042008-06-19 Kenichi Handa <handa@m17n.org>
14505
14506 * frame.c: Include <ctype.h>.
14507 (x_set_font_backend): Allow spacing characters in the X resource
14508 for FontBackend.
14509
145102008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14511
14512 * w32fns.c, xfns.c (Qfont_param): New var.
14513 (syms_of_w32fns): Initialize it.
14514 (x_default_font_parameter): Record explicit `font' into
14515 `font-parameter'.
14516
145172008-06-18 Kenichi Handa <handa@m17n.org>
14518
14519 * font.c (font_parse_xlfd): Fix previous change.
14520 (font_parse_fcname): Don't use :fc-unknown-spec.
14521 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14522 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14523 (font_add_log): Prepend the driver name to the resulting fonts.
14524
14525 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14526 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14527 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14528
14529 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14530 (QCembolden): New variables.
14531 (syms_of_xftfont): DEFSYM them.
14532 (xftfont_open): Call XftFontMatch. Don't trust the result of
14533 XftTextExtents8 if the pixel_size is less than 5.
14534
145352008-06-18 Andreas Schwab <schwab@suse.de>
14536
14537 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14538 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14539
145402008-06-18 Jason Rumney <jasonr@gnu.org>
14541
14542 * w32font.c (w32font_list, w32font_match): Add logging.
14543
14544 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14545
145462008-06-17 Chong Yidong <cyd@stupidchicken.com>
14547
14548 * font.c (font_parse_fcname): Store divider characters for
14549 unknown-spec list. For known key symbols, intern using correct
14550 symbol name.
14551
145522008-06-17 Kenichi Handa <handa@m17n.org>
14553
14554 * xfaces.c (realize_default_face): If the frame is not on window
14555 system, set the fontset of face to nil.
14556
145572008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14558
14559 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14560
145612008-06-16 Juanma Barranquero <lekktu@gmail.com>
14562
14563 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14564 (build_font_name_from_vector): Delete externs.
14565
14566 * xfaces.c (struct font_name): Don't declare.
14567
145682008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14569
14570 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14571
145722008-06-16 Chong Yidong <cyd@stupidchicken.com>
14573
14574 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14575
145762008-06-16 Juanma Barranquero <lekktu@gmail.com>
14577
14578 * font.c (Ffont_spec): Fix usage in docstring.
14579 (Ffont_face_attributes): Doc fix.
14580
145812008-06-16 Andreas Schwab <schwab@suse.de>
14582
14583 * font.c (Ffont_face_attributes): Fix definition.
14584
145852008-06-16 Jason Rumney <jasonr@gnu.org>
14586
14587 * font.h (font_style_symbolic_from_value): Remove.
14588
14589 * font.c (font_style_symbolic_from_value): Remove.
14590 (font_style_symbolic): Revert to pre 2008-06-13 version.
14591
14592 * w32font.c (w32_to_fc_weight): New function.
14593 (w32font_full_name, logfont_to_fcname): Use it.
14594
145952008-06-16 Kenichi Handa <handa@m17n.org>
14596
14597 * font.c (font_check_object): Delete it.
14598 (font_clear_cache): Check if a font-object is alive.
14599 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14600 font-object to nil.
14601 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14602 (font_at): Don't call font_check_object.
14603 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14604
146052008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14606
14607 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14608
146092008-06-16 Chong Yidong <cyd@stupidchicken.com>
14610
14611 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14612
146132008-06-15 Chong Yidong <cyd@stupidchicken.com>
14614
14615 * font.c (font_parse_fcname): Only one decimal point.
14616 (font_unparse_fcname): Handle data in family and foundry indices
14617 as symbols, not strings.
14618 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14619
14620 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14621
14622 * font.h (font_unparse_gtkname): Add prototype.
14623
146242008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14625
14626 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14627
146282008-06-15 Andreas Schwab <schwab@suse.de>
14629
14630 * font.c (font_update_drivers): Fix crash when no drivers match.
14631
146322008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14633
14634 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14635 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14636
146372008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14638
14639 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14640
146412008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14642
14643 * process.c (Fserial_process_configure, Fprocess_send_eof):
14644 Use EQ to compare Lisp_Objects.
14645
146462008-06-13 Jason Rumney <jasonr@gnu.org>
14647
14648 * w32fns.c (Fw32_select_font): Remove old font API function.
14649
14650 * w32font.c (logfont_to_fcname): New function.
14651 (Fx_select_font): New font dialog function compatible with
14652 GTK/fontconfig version.
14653
14654 * font.c (font_style_symbolic_from_value): New function.
14655 (font_style_symbolic): Use it.
14656
14657 * font.h (font_style_symbolic_from_value): Declare new function.
14658
146592008-06-13 Juanma Barranquero <lekktu@gmail.com>
14660
14661 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14662 <font-width-table>: Fix typos in docstrings.
14663
146642008-06-13 Daniel Engeler <engeler@gmail.com>
14665
14666 These changes add serial port access.
14667 * process.c: Add HAVE_SERIAL.
14668 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14669 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14670 (list_processes_1, select_wrapper, Fstop_process)
14671 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14672 (status_notify): Modify to handle serial processes.
14673 [HAVE_SERIAL] (Fserial_process_configure)
14674 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14675 New functions.
14676 * process.h (struct Lisp_Process): Add `type'.
14677 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14678 New functions.
14679 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14680 serial ports.
b71ac3dd 14681 (serial_open, serial_configure): New functions.
aac0c6e3
MR
14682 * w32.h: Add FILE_SERIAL.
14683 (struct _child_process): Add ovl_read, ovl_write.
14684
146852008-06-13 Kenichi Handa <handa@m17n.org>
14686
14687 * dispextern.h (enum lface_attribute_index): New member
14688 LFACE_FOUNDRY_INDEX.
14689
14690 * font.c (font_score): Delete arg alternate_families. Check only
14691 weight, slant, width, and size. Ignore the difference of alias
14692 style symbols.
14693 (font_sort_entites): Adjust for the above change. Reflect the
14694 order of font-driver to scores.
14695 (font_list_entities): Don't check alternate_familes here.
14696 (font_clear_prop): Handle foundry.
14697 (font_update_lface): Don't parse "foundry-family" form here.
14698 Handle FONT_FOUNDRY_INDEX.
14699 (font_find_for_lface): Likewise. Handle alternate families here.
14700 If registry is nil, try iso8859-1 and ascii-0.
14701 (font_open_for_lface): Pay attention to size in ENTITY.
14702 (font_open_by_name): Simplify by calling font_load_for_lface.
14703 (free_font_driver_list): Delete it.
14704 (font_update_drivers): Preserve the order of backends.
14705 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14706 of font_score and font_sort_entites.
14707 (font_update_sort_order): Likewise.
14708
14709 * xfaces.c (LFACE_FOUNDRY): New macro.
14710 (check_lface_attrs): Check foundry.
14711 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14712 (merge_face_vectors): Check foundry.
14713 (merge_face_ref): Likewise.
14714 (Finternal_set_lisp_face_attribute): Likewise.
14715 (x_update_menu_appearance): Likewise.
14716 (Finternal_get_lisp_face_attribute): Likewise.
14717 (lface_hash): Likewise.
14718 (lface_same_font_attributes_p): Likewise.
14719 (x_supports_face_attributes_p): Likewise.
14720 (tty_supports_face_attributes_p): Likewise.
14721 (Finternal_set_alternative_font_family_alist): Intern strings.
14722 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14723 (realize_default_face): Set LFACE_FOUNDRY (lface).
14724
14725 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14726 font-driver at first.
14727
14728 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14729
147302008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14731
14732 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14733
147342008-06-12 Jim Meyering <meyering@redhat.com>
14735
14736 Make unexec_free handle NULL the same way free does.
14737 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14738
147392008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14740
14741 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14742 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14743 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14744 (WEAK_ALIAS): Simplify.
14745 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14746 when searching a unibyte buffer.
14747
147482008-06-12 Chong Yidong <cyd@stupidchicken.com>
14749
14750 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14751
147522008-06-12 Juanma Barranquero <lekktu@gmail.com>
14753
14754 * w32font.c: Include ctype.h.
14755
147562008-06-11 Jason Rumney <jasonr@gnu.org>
14757
14758 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14759 misreported as space.
14760 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14761 as aliases for registry iso10646-1.
14762
147632008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14764
14765 * buffer.c (clone_per_buffer_values): Skip `name'.
14766
147672008-06-11 Chong Yidong <cyd@stupidchicken.com>
14768
14769 * font.c (font_parse_fcname): Fix last change; accept decimal
14770 points in font size.
14771
147722008-06-10 Jason Rumney <jasonr@gnu.org>
14773
14774 * w32uniscribe.c (add_opentype_font_name_to_list):
14775 Skip non unicode fonts.
14776
147772008-06-10 Chong Yidong <cyd@stupidchicken.com>
14778
14779 * xfns.c (Fx_font_dialog): New function.
14780
14781 * gtkutil.c (xg_dialog_response_cb): Rename from
14782 xg_file_response_callback.
14783 (pop_down_dialog): Rename from pop_down_file_dialog.
14784 (xg_get_file_name): Callers changed.
14785 (xg_get_font_name): New function.
14786
14787 * gtkutil.h (xg_get_font_name): Insert prototype.
14788
147892008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14790
14791 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14792 x_underline_minimum_display_offset.
14793 (syms_of_xdisp): Declare it here rather than in xterm.c.
14794 * dispextern.h (underline_minimum_offset): Declare it.
14795 * w32term.c (x_draw_glyph_string): Use it.
14796 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14797 (syms_of_xterm): Don't declare it any more.
14798 (x_draw_glyph_string): Adjust to the new name.
14799
8719abec 148002008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
14801
14802 * xterm.c (x_underline_minimum_display_offset): New var.
14803 (x_draw_glyph_string): Use it.
14804 (syms_of_xterm): Declare it.
14805
148062008-06-10 Chong Yidong <cyd@stupidchicken.com>
14807
14808 * font.c (font_parse_fcname): Accept GTK-style font names too.
14809
148102008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14811
14812 * dired.c (file_name_completion): Don't return t if the match is exact
14813 but with different capitalization.
14814 * minibuf.c (Ftry_completion): Simplify.
14815
14816 * window.c (Vwindow_point_insertion_type): New var.
14817 (set_window_buffer): Use it.
14818 (syms_of_window): Init and export it to Lisp.
14819
148202008-06-10 Kenichi Handa <handa@m17n.org>
14821
14822 * font.h (font_intern_prop): Prototype adjusted.
14823
14824 * font.c (font_intern_prop): New arg force_symbol.
14825 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14826 Adjust for the change of font_intern_prop.
14827
14828 * ftfont.c (ftfont_pattern_entity):
14829 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14830 (w32_registry):
14831 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14832 the change of font_intern_prop.
14833
148342008-06-09 Juanma Barranquero <lekktu@gmail.com>
14835
14836 * w32menu.c (digest_single_submenu): Declare extern.
14837
148382008-06-09 Jason Rumney <jasonr@gnu.org>
14839
14840 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14841
14842 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14843 (parse_single_submenu): Remove.
14844 (digest_single_submenu): Remove.
14845 (syms_of_w32menu): Don't initialise variables that have moved
14846 to menu.c.
14847 (set_frame_menubar): Sync with version in xmenu.c.
14848 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14849
14850 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14851 Make static again.
14852
148532008-06-09 Jason Rumney <jasonr@gnu.org>
14854
14855 Changes to w32 files related to the move of common menu code
14856 to menu.c on 2008-06-08 by Chong Yidong.
14857
14858 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14859 defs to w32gui.h.
14860 (single_keymap_panes, push_menu_item, push_menu_pane):
14861 Make globally visible.
14862
14863 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14864 (local_free, malloc_widget_value, free_widget_value)
14865 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14866 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14867 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14868 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14869 (menu_items, menu_items_allocated, menu_items_used)
14870 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14871 (init_menu_items, finish_menu_items, discard_menu_items)
14872 (grow_menu_items, push_submenu_start, push_submenu_end)
14873 (push_left_right_boundary, push_menu_pane, push_menu_item)
14874 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14875 (free_menubar_widget_tree_value, parse_single_submenu)
14876 (update_submenu_strings): Remove functions.
14877 (xmalloc_widget_value): Remove and declare extern.
14878
14879 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14880 (OBJ1): Build it.
14881
14882 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14883 (local_heap, local_alloc, local_free, malloc_widget_value)
14884 (free_widget_value): Define here.
14885
148862008-06-09 Kenichi Handa <handa@m17n.org>
14887
14888 * font.h (Qascii_0): Extern it.
14889
14890 * font.c (Qascii_0): New variable.
14891 (syms_of_font): DEFSYM it.
14892 (font_open_by_name): If the registry "iso8859-1" fails, try also
14893 "ascii-0".
14894
14895 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14896
148972008-06-08 Kenichi Handa <handa@m17n.org>
14898
14899 * .gdbinit (xfont): New command.
14900
149012008-06-08 Andreas Schwab <schwab@suse.de>
14902
14903 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14904 * Makefile.in (menu.o): Update dependencies.
14905
14906 * Makefile.in (obj): Always add menu.o.
14907 * emacs.c (main): Always call syms_of_menu.
14908 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14909
149102008-06-08 Chong Yidong <cyd@stupidchicken.com>
14911
14912 * Makefile.in: Compile menu.c.
14913
14914 * lisp.h: Declare syms_of_menu.
14915
14916 * emacs.c (main): Call syms_of_menu.
14917
14918 * keyboard.h: Relocate platform-independent menu definitions from
14919 xmenu.c.
14920
14921 * menu.c: New file. Relocate platform-independent menu
14922 definitions from xmenu.c. Suggested by Adrian Robert.
14923
14924 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 14925 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
14926 (menu_items_used, menu_items_n_panes)
14927 (menu_items_submenu_depth): Move to keyboard.h.
14928 (init_menu_items, finish_menu_items, unuse_menu_items)
14929 (discard_menu_items, restore_menu_items, save_menu_items)
14930 (grow_menu_items, push_submenu_start, push_submenu_end)
14931 (push_left_right_boundary, push_menu_pane, push_menu_item)
14932 (keymap_panes, single_keymap_panes, single_menu_item)
14933 (list_of_panes, list_of_items, find_and_call_menu_selection)
14934 (xmalloc_widget_value, free_menubar_widget_value_tree)
14935 (parse_single_submenu, digest_single_submenu)
14936 (update_submenu_strings): Move to menu.c.
14937
149382008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14939
14940 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14941
149422008-06-06 Miles Bader <miles@gnu.org>
14943
14944 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14945 face, not frame default.
14946
149472008-06-05 Martin Rudalics <rudalics@gmx.at>
14948
14949 * window.c (pop_up_windows, pop_up_frames)
14950 (display_buffer_reuse_frames, Vpop_up_frame_function)
14951 (Vdisplay_buffer_function, Veven_window_heights)
14952 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14953 (Vspecial_display_function, Vsame_window_buffer_names)
14954 (Vsame_window_regexps, split_height_threshold)
14955 (Vsplit_window_preferred_function): Move those vars to window.el.
14956 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14957 (Fdisplay_buffer): Move those functions to window.el.
14958 (syms_of_window): Remove corresponding declarations.
14959 (display_buffer): New function.
14960 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14961 * dispnew.c (Flast_nonminibuf_frame): New function.
14962 * buffer.c (Fpop_to_buffer): Move to window.el.
14963
149642008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14965
14966 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14967
149682008-06-05 Kenichi Handa <handa@m17n.org>
14969
14970 * coding.c (detect_coding): Fix previous change.
14971 (detect_coding_system): Likewise.
14972
149732008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14974
14975 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14976
14977 * keymap.c (Vminibuffer_local_filename_must_match_map):
14978 Rename from Vminibuffer_local_must_match_filename_map.
14979 (syms_of_keymap):
14980 * minibuf.c (Fcompleting_read): Adjust accordingly.
14981 * commands.h: Rename declaration as well.
14982
149832008-06-05 Kenichi Handa <handa@m17n.org>
14984
14985 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14986 family name.
14987 (Ffont_put): Likewise.
14988
14989 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14990 current font-spec.
14991
14992 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14993 is unspecified.
14994
14995 * xfaces.c (realize_x_face): If the font-related face attributes
14996 are the same as those of default face, realize a new fontset from
14997 default->fontset.
14998 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14999
150002008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15001
15002 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15003 (move_it_in_display_line): New wrapper.
15004
15005 * window.c (window_scroll_pixel_based_preserve_x)
15006 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15007 (window_scroll_pixel_based, window_scroll_line_based):
15008 Use them to preserve column positions.
15009 (syms_of_window): Initialize them.
15010
15011 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15012 (HPOS . VPOS) pair.
15013
15014 * dispextern.h (move_it_in_display_line): Declare.
15015
150162008-06-05 Juanma Barranquero <lekktu@gmail.com>
15017
15018 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15019 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15020 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15021
150222008-06-04 Juanma Barranquero <lekktu@gmail.com>
15023
15024 * window.c (Fset_window_parameter): Doc fix.
15025 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15026
150272008-06-04 Joakim Verona <joakim@verona.se>
15028
15029 * window.h (struct window): Add new member window_parameters.
15030
15031 * window.c (Fwindow_parameters, Fwindow_parameter)
15032 (Fset_window_parameter): New defuns.
15033 (syms_of_window): Defsubr the new defuns.
15034 (make_window): Initialize window_parameters to nil.
15035
150362008-06-04 John Paul Wallington <jpw@pobox.com>
15037
15038 * eval.c (Fdefmacro): Doc fix.
15039
150402008-06-04 Kenichi Handa <handa@m17n.org>
15041
15042 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15043 Be sure to call setup_coding_system when we find a proper coding system.
15044 (detect_coding_system): Fix handling of coding->head_ascii.
15045
150462008-06-03 Andreas Schwab <schwab@suse.de>
15047
15048 * font.c (font_prop_validate_spacing): Fix last change.
15049
150502008-06-03 Kenichi Handa <handa@m17n.org>
15051
15052 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15053 (font_parse_fcname): Fix handling of unknown key.
15054
15055 * xfont.c (xfont_list): Try an alias.
15056
15057 * charset.c (char_charset): Return NULL if the arg charset_list is
15058 specified and C doesn't belong to any of them.
15059
150602008-06-02 Chip Coldwell <coldwell@redhat.com>
15061
15062 * font.c (font_pixel_size): Don't take cdr of an integer.
15063
150642008-06-02 Jim Meyering <meyering@redhat.com>
15065
15066 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15067 * alloc.c (xfree): Return right away for a NULL arg.
15068 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15069 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15070 * mac.c (create_apple_event_from_event_ref): Likewise.
15071 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15072 Likewise.
15073 * doprnt.c (doprnt1): Likewise.
15074 * frame.c (frame): Likewise.
15075 * keyboard.c (wipe_kboard): Likewise.
15076 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15077 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15078 * term.c (tty_default_color_capabilities, maybe_fatal)
15079 (delete_tty): Likewise.
15080 * w16select.c (string): Likewise.
15081 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15082 * w32bdf.c (w32_free_bdf_font): Likewise.
15083 * w32fns.c (w32_unload_font): Likewise.
15084 * w32font.c (w32font_close): Likewise.
15085 * window.c (size_window): Likewise.
15086 * xselect.c (receive_incremental_selection): Likewise.
15087 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15088 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15089 * w32.c (stat): Likewise.
15090
15091 Remove useless if-before-free tests.
15092 * editfns.c (Fset_time_zone_rule): Likewise.
15093 * lread.c (nosuffix): Likewise.
15094 * ralloc.c (get_bloc): Likewise.
15095 * regex.c (reg_free): Likewise.
15096 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15097 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15098 * xsmfns.c (smc_save_yourself_CB): Likewise.
15099
151002008-06-02 Kenichi Handa <handa@m17n.org>
15101
15102 * font.c (font_find_for_lface): Handle float font size.
15103 (font_open_for_lface): Likewise.
15104
15105 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15106 comparing the properties.
15107
151082008-06-01 Jason Rumney <jasonr@gnu.org>
15109
15110 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15111 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15112 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15113 Don't add empty script list.
15114 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15115
151162008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15117
15118 * Makefile.in (dot, dotdot): Remove, update users.
15119 ".." has been used elsewhere in the file for a long time.
15120 (LIBXT_STATIC): Remove conditional based on unused variable.
15121
151222008-06-01 Miles Bader <miles@gnu.org>
15123
15124 * xfaces.c (Vface_remapping_alist): New variable.
15125 (syms_of_xfaces): Initialize it.
15126 (enum named_merge_point_kind): New type.
15127 (struct named_merge_point): Add `named_merge_point_kind' field.
15128 (push_named_merge_point): Make cycle detection respect different
15129 named-merge-point kinds.
15130 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15131 Remove face-name alias resolution.
15132 (lface_from_face_name): New definition using
15133 `lface_from_face_name_no_resolve'.
15134 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15135 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15136 (get_lface_attributes): New definition that layers face-remapping on
15137 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15138 (lookup_basic_face): New function.
15139 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15140 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15141 `get_lface_attributes'.
15142 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15143 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15144 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15145
15146 * xdisp.c (init_iterator): Pass base_face_id through
15147 `lookup_basic_face' when we actually use it as a face-id.
15148 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15149 DEFAULT_FACE_ID.
15150
15151 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15152 lookup the initial face-id.
15153
15154 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15155
151562008-06-01 Juanma Barranquero <lekktu@gmail.com>
15157
15158 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15159 (Fremove_text_properties): Fix typos in docstrings.
15160
151612008-05-31 Kenichi Handa <handa@m17n.org>
15162
15163 * font.c (font_list_entities): Fix the car part of data to be
15164 stored in the cache.
15165
15166 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15167
151682008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15169
15170 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15171 Add a `test' argument so another predicate than `equal' can be used.
15172 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15173 (map_char_table): Remove unused vars `c' and `i'.
15174 * lisp.h (Foptimize_char_table): Adjust declaration.
15175 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15176
151772008-05-30 Kenichi Handa <handa@m17n.org>
15178
15179 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15180 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15181 defined.
15182
151832008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15184
15185 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15186 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15187 frame-local settings for the same variable.
15188
151892008-05-30 Kenichi Handa <handa@m17n.org>
15190
15191 * fontset.c (Ffont_info): Move to font.c.
15192 (syms_of_fontset): Delete defsubr of Sfont_info.
15193
15194 * font.c (font_style_to_value, font_score): Delete casting of the
15195 args to xstcasecmp.
15196 (register_font_driver): Increment num_font_drivers only when
15197 registering the driver globally.
15198 (Ffont_info): Move from fontset.c. Handle a font object too.
15199 (syms_of_font): Defsubr Sfont_info.
15200
152012008-05-29 Kenichi Handa <handa@m17n.org>
15202
15203 * coding.h (enum define_coding_utf8_arg_index): New enum.
15204 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15205 coding_attr_utf_bom.
15206 (enum utf_bom_type): Rename from utf_16_bom_type.
15207 (struct utf_16_spec): Adjust for the above change.
15208 (struct coding_system): Add utf_8_bom in `spec' union.
15209
15210 * coding.c (CODING_UTF_8_BOM): New macro.
15211 (enum coding_category): Delete coding_category_utf_8, add
15212 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15213 coding_category_utf_8_sig.
15214 (CATEGORY_MASK_UTF_8): Delete it.
15215 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15216 (CATEGORY_MASK_UTF_8_SIG): New macros.
15217 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15218 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15219 CATEGORY_MASK_UTF_8_SIG.
15220 (CATEGORY_MASK_UTF_8): New macro.
15221 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15222 (detect_coding_utf_8): Check BOM.
15223 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15224 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15225 (encode_coding_utf_16): Likewise.
15226 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15227 (detect_coding, detect_coding_system): Handle utf-8-auto.
15228 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15229 (syms_of_coding): Fix setting up of Vcoding_category_table.
15230
152312008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15232
15233 * process.c (Faccept_process_output): If `millisec' is non-nil,
15234 `seconds' default to 0.
15235 (wait_reading_process_output): Also return non-nil if we read output
15236 from a non-running process.
15237
152382008-05-29 Jason Rumney <jasonr@gnu.org>
15239
15240 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15241 `raster' specified.
15242 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15243 in the uniscribe backend, but disallow any font that has no
15244 unicode subrange support.
15245
152462008-05-29 Juanma Barranquero <lekktu@gmail.com>
15247
15248 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15249 Fix typos in docstrings.
15250
152512008-05-29 Kenichi Handa <handa@m17n.org>
15252
15253 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15254 (Fx_family_fonts): Set frame correctly.
15255
152562008-05-28 Jason Rumney <jasonr@gnu.org>
15257
15258 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15259
152602008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15261
15262 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15263 calling build_annotations.
15264
152652008-05-28 Juanma Barranquero <lekktu@gmail.com>
15266
15267 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15268 (Fencode_coding_string):
15269 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15270 <latin-extra-code-table>: Fix typos in docstrings.
15271 (syms_of_coding) <coding-system-alist>: Doc fix.
15272 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15273
152742008-05-28 Kenichi Handa <handa@m17n.org>
15275
15276 * fontset.c (Ffont_info): Don't call font_close_object.
15277
15278 * font.c (font_parse_family_registry): Use Ffont_put to validate
15279 foundry and family.
15280 (font_delete_unmatched): Don't check spacing.
15281 (font_list_entities): Add spacing to the spec to list fonts.
15282
15283 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15284 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15285
15286 * coding.c (encode_coding_raw_text): Fix previous change.
15287 (encode_coding_object): When the dst_object is a buffer and is
15288 different from src_object, move gap to PT.
15289
152902008-05-27 Chong Yidong <cyd@stupidchicken.com>
15291
15292 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15293
152942008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15295
15296 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15297 all branches. Compute it differently.
15298
15299 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15300
153012008-05-27 Juanma Barranquero <lekktu@gmail.com>
15302
15303 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15304 into "else if () ... else ...".
15305
153062008-05-27 Jason Rumney <jasonr@gnu.org>
15307
15308 * w32font.c (w32font_open_internal): Determine if glyph indices
15309 are likely to work here.
15310
153112008-05-27 Chong Yidong <cyd@stupidchicken.com>
15312
15313 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15314 draw overlap glyphs with appropriate highlighting.
15315
153162008-05-27 Kenichi Handa <handa@m17n.org>
15317
15318 * xfont.c (xfont_open): Fix calculation of font->average_width.
15319
153202008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15321
15322 * casefiddle.c (casify_object): Try to guess better whether the
15323 argument is a byte or a char.
15324
153252008-05-26 Andreas Schwab <schwab@suse.de>
15326
15327 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15328 Always send multiples of format size.
15329
15330 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15331
153322008-05-26 Jason Rumney <jasonr@gnu.org>
15333
15334 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15335 (compute_metrics): Don't set failure if we just cleared the cache.
15336 (w32_weight_table): Remove unused variable.
15337 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15338 backwards compatibility.
15339
153402008-05-25 Kenichi Handa <handa@m17n.org>
15341
15342 * w32term.c (x_draw_glyph_string):
15343 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15344
15345 * xfaces.c: Delete unused function prototypes.
15346 (xstrlwr, font_frame): Delete them.
15347 (clear_face_cache): Delete unused variable.
15348
15349 * xftfont.c (xftfont_open): Delete unused variable.
15350 If underline_thickness is not 1, adjust underline_position.
15351
15352 * ftxfont.c (ftxfont_open): Delete unused variable.
15353
15354 * fontset.c (face_for_char): Optimize for the case of no charset
15355 property.
15356
15357 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15358 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15359 (otf_open, font_otf_capability, generate_otf_features)
15360 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15361 Comment out by surrounding "#if 0" and "#endif" for the moment.
15362 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15363 (syms_of_font): Codes for accessing above commented out.
15364
153652008-05-24 Eli Zaretskii <eliz@gnu.org>
15366
15367 * w32proc.c: Include dispextern.h.
15368
15369 * w32.c: Include dispextern.h.
15370
153712008-05-23 Juanma Barranquero <lekktu@gmail.com>
15372
15373 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15374 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15375 Fix typos in docstrings.
15376
153772008-05-23 Jason Rumney <jasonr@gnu.org>
15378
15379 * xsmfns.c: Remove includes that are already included by config.h.
15380
153812008-05-23 Kenichi Handa <handa@m17n.org>
15382
15383 * charset.c (Qemacs, charset_emacs): New variables.
15384 (char_charset): Fix for non-Unicode characters.
15385 (syms_of_charset): Define charset_emacs.
15386
15387 * w32term.c (x_draw_glyph_string): Be sure to update
15388 s->underline_thickness and s->underline_position. Be sure to draw
15389 underline within the current line area.
15390
15391 * xterm.c (x_draw_glyph_string): Be sure to update
15392 s->underline_thickness and s->underline_position. Be sure to draw
15393 underline within the current line area.
15394
15395 * fontset.c: Delete unused variables and add casting for char *
15396 throughout the file.
15397 (fontset_font): Try the fallback fonts of the current fontset
15398 before consulting the default fontset.
15399
15400 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15401
15402 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15403
154042008-05-22 Jason Rumney <jasonr@gnu.org>
15405
15406 * font.c: Don't include strings.h.
15407
15408 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15409
15410 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15411 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15412 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15413 to call xstrcasecmp.
15414
15415 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15416
15417 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15418
15419 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15420
15421 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15422
154232008-05-22 Kenichi Handa <handa@m17n.org>
15424
15425 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15426
15427 * font.c (font_prop_validate_style): Adjust for the format
15428 change of font_style_table.
15429
15430 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15431 two args.
15432
15433 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15434 two args.
15435
154362008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15437
15438 * minibuf.c (keys_of_minibuf): Delete.
15439 * lisp.h (keys_of_minibuf): Delete.
15440 * emacs.c (main): Don't call keys_of_minibuf.
15441
154422008-05-22 Kenichi Handa <handa@m17n.org>
15443
15444 * ftfont.c (ftfont_resolve_generic_family): Rename from
15445 ftfont_list_generic_family. Return a single family for each
15446 generic family.
15447 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15448 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15449 Call font_add_log.
15450 (ftfont_match): Call font_add_log.
15451
15452 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15453 (FONT_DEBUG): Define it.
15454 (font_add_log): Extern it.
15455 (font_assert): Rename from xassert.
15456
15457 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15458 (xfont_list_family): Call font_add_log.
15459 (xfont_match): Likewise.
15460 (memq_no_quit): Delete.
15461
15462 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15463 call of Ffont_xlfd_name.
15464
15465 * xfaces.c (struct table_entry, slant_table, weight_table)
15466 (swidth_table): Move to font.c.
15467
15468 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15469 xassert are changed to font_assert. Delete many unused variables.
15470 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15471 New variables.
15472 (struct table_entry): Move from xfaces.c and modified.
15473 (weight_table, slant_table, width_table): Move from xfaces.c and
15474 contents adjusted for the change of struct table_entry.
15475 (font_style_to_value, font_style_symbolic): Adjust for the
15476 format change of font_style_table.
15477 (font_parse_family_registry): Don't overwrite existing foundry and
15478 family of font_spec.
15479 (font_score): Fix calculation of diff for sizes.
15480 (font_sort_entites): Call font_add_log.
15481 (font_delete_unmatched): Return a newly created list.
15482 (font_list_entities): Fix previous change. Call font_add_log.
15483 (font_matching_entity, font_open_entity, font_close_entity):
15484 Call font_add_log.
15485 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15486 (Finternal_set_font_style_table): Delete.
15487 (BUILD_STYLE_TABLE): New macro.
15488 (build_style_table): New function.
15489 (Vfont_log, font_log_env_checked): New variables.
15490 (font_add_log): New function.
15491 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15492 Declare Lisp variables "font-weight-table", "font-slant-table",
15493 "font-width-table", and "font-log". Initialize font_style_table.
15494
154952008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15496
15497 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15498
154992008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15500 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15501
15502 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15503 (Vframe_alpha_lower_limit): New variable.
15504 (x_set_alpha): New function.
15505
15506 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15507
15508 * xfns.c (x-create-frame, Qalpha):
15509 Initialize the frame parameter `alpha'.
15510 * xterm.c (OPAQUE, OPACITY): New.
15511 (x_set_frame_alpha): New function.
15512 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15513
15514 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15515 * w32fns.c (w32_frame_parm_handlers): Likewise.
15516
155172008-05-20 Jason Rumney <jasonr@gnu.org>
15518
15519 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15520 truetype fonts to opentype list.
15521
155222008-05-20 Juanma Barranquero <lekktu@gmail.com>
15523
15524 * fontset.c (Ffontset_info): Doc fix.
15525 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15526 <ignore-relative-composition>: Fix typos in docstrings.
15527
15528 * font.c (syms-of-font) <font-encoding-alist>:
15529 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15530 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15531 (Ffont_otf_alternates): Doc fixes.
15532
155332008-05-20 Kenichi Handa <handa@m17n.org>
15534
15535 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15536 font.h through out the file.
15537 (FONT_DRIVERS): Rename from FONTOBJ.
15538 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15539 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15540
15541 * emacs.c (main): Call syms_of_font unconditionally.
15542
15543 * font.h (find_font_encoding): Extern it.
15544
15545 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15546 fontset.c.
194d44e7 15547 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
15548 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15549 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15550 only when HAVE_WINDOW_SYSTEM is defined.
15551 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15552 when HAVE_WINDOW_SYSTEM is defined.
15553
15554 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15555 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15556
15557 * xfaces.c: Include font.h unconditionally.
15558 (merge_face_ref, merge_face_vectors)
15559 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15560
155612008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15562
15563 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15564 indirect_variable.
15565 * eval.c (lisp_indirect_variable): New fun.
15566 (Fuser_variable_p): Use it.
15567
155682008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15569
15570 * lisp.h (indirect_variable):
15571 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15572 Use Lisp_Symbol pointers rather than Lisp_Object.
15573 Adjust callers.
15574 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15575 To this end, change calling-convention.
15576
15577 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15578 if some non-hidden buffers are selected by string&pred.
15579
155802008-05-19 Chong Yidong <cyd@stupidchicken.com>
15581
15582 * process.c (wait_reading_process_output): Always check status
15583 when in batch mode.
15584
155852008-05-19 Kenichi Handa <handa@m17n.org>
15586
15587 * font.c (font_list_entities): Fix handling of cache.
15588 (font_matching_entity): Likewise.
15589
15590 * ftfont.c (cs_iso8859_1): Delete.
15591 (ft_face_cache): New variable.
15592 (struct ftfont_info): New member fc_charset_idx.
15593 (ftfont_build_basic_charsets): Delete.
15594 (fc_charset_table): New variable.
15595 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15596 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15597 Callers changed.
15598 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15599 (ftfont_spec_pattern): New argument fc_charset_idx.
15600 Check registry more rigidly. Change callers.
15601 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15602 change of :font-entity property of the font.
15603
15604 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15605 property of the font.
15606
156072008-05-18 Juanma Barranquero <lekktu@gmail.com>
15608
15609 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15610 (Funencodable_char_position, Fcheck_coding_systems_region)
15611 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15612 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15613 (Ffind_operation_coding_system, Fset_coding_system_priority)
15614 (Fcoding_system_eol_type): Doc fixes.
15615
156162008-05-17 Glenn Morris <rgm@gnu.org>
15617
15618 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15619
156202008-05-16 Eli Zaretskii <eliz@gnu.org>
15621
15622 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15623 and st_gid.
15624
15625 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15626 HAVE_WINDOW_SYSTEM is not defined.
15627
15628 * xfaces.c (merge_face_ref, merge_face_vectors)
15629 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15630 HAVE_WINDOW_SYSTEM is defined.
15631 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15632
156332008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15634
15635 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15636
156372008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15638
15639 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15640
156412008-05-15 Kenichi Handa <handa@m17n.org>
15642
15643 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15644 preference.
15645
156462008-05-15 Glenn Morris <rgm@gnu.org>
15647
15648 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15649
156502008-05-15 Chong Yidong <cyd@stupidchicken.com>
15651
15652 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15653 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15654
15655 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15656
156572008-05-15 Kenichi Handa <handa@m17n.org>
15658
15659 * ftfont.c (ftfont_list): Downcase family name to check generic
15660 families.
15661
15662 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15663 font-spec for QCfont value.
15664
15665 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15666 buffer. Check the return value of it.
15667
156682008-05-14 Jason Rumney <jasonr@gnu.org>
15669
15670 * w32term.c (w32_get_glyph_overhangs): Remove.
15671 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15672
156732008-05-14 Kenichi Handa <handa@m17n.org>
15674
15675 * font.c (font_prop_validate): Make nil a valid value.
15676 (font_clear_cache): Check if the cached vector of entities is nil
15677 or not.
15678
156792008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15680
15681 * emacs.c (main_thread): Conditionalize on
15682 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15683 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15684
15685 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15686 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15687 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15688
156892008-05-14 Kenichi Handa <handa@m17n.org>
15690
15691 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15692 has no corresponding coding system.
15693
156942008-05-14 Jason Rumney <jasonr@gnu.org>
15695
15696 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15697
15698 * w32font.h (w32font_open_internal): Update declaration.
15699
15700 * w32font.c (w32font_open_internal): Change last argument from
15701 w32font_info struct to font object. Fill in font object from
15702 font_entity. Get Outline metrics if possible. Use them to
15703 calculate underline position and thickness. Use xlfd name as name
15704 property. Don't set codepage.
15705 (w32font_open): Pass font_object to w32font_open_internal. Don't
15706 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15707 (w32font_draw): Use s->font.
15708 (clear_cached_metrics): Don't clear non-existent blocks.
15709
15710 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15711 font was not found.
15712 (x_draw_glyph_string): Use underline position and thickness from font.
15713
15714 * w32uniscribe.c (uniscribe_open): Pass font_object to
15715 w32font_open_internal.
15716
157172008-05-14 Kenichi Handa <handa@m17n.org>
15718
15719 These changes are to delete all legacy font-handling codes, and
15720 make Emacs use only font-backends.
15721
15722 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15723 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15724
15725 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15726
15727 * charset.h (Vcharset_non_preferred_head)
15728 (Vcurrent_iso639_language): Extern them.
15729
15730 * charset.c (Vcharset_non_preferred_head): New variable.
15731 (Vcurrent_iso639_language): New variable.
15732 (syms_of_charset): Declare it as a Lisp variable.
15733 (char_charset): Don't check non preferred charsets. As a last
15734 resort, return charset_unicode.
15735 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15736
15737 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15738 conditionals. Don't check enable_font_backend. Delete all codes
15739 used only when USE_FONT_BACKEND is not defined.
15740
15741 * dispextern.h (struct glyph_string): Change type of `font' to
15742 `struct font *'.
15743 (struct glyph_string): New member underline_position and
15744 underline_thickness.
15745 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15746 (struct face): Change type of `font' to `struct font *'. Remove
15747 members `font_name', `font_info_id'.
15748 (per_char_metric, encode_char): Delete externs.
15749 (calc_pixel_width_or_height): Adjust the prototype.
15750
15751 * emacs.c (enable_font_backend): Delete extern.
15752 (main): Don't set enable_font_backend. Don't check the command
15753 line argument "-disable-font-backend".
15754
15755 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15756 (enum font_property_index): New members FONT_DPI_INDEX,
15757 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15758 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15759 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15760 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15761 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15762 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15763 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15764 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15765 (struct font_spec, struct font_entity): New structs.
15766 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15767 (struct font): Many members from old "struct font_info" moved to
15768 here. Members font and entity deleted.
15769 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15770 the new font-related objects.
15771 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15772 (CHECK_FONT_GET_OBJECT): Likewise.
15773 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15774 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15775 (struct font_driver): New members case_sensitive anc check. Type
15776 of the member list and open changed.
15777 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15778 (font_symbolic_width, font_find_object, font_get_spec)
15779 (font_set_lface_from_name): Delete extern.
15780 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15781
15782 * font.c: Include <strings.h>.
15783 (enable_font_backend): Delete it.
15784 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15785 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15786 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15787 (null_string): Delete it.
15788 (null_vector): Make it static.
15789 (font_family_alist): Delete it.
15790 (Qnormal): Extern it.
15791 (QCextra, QClanguage): Delete it.
15792 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15793 (font_make_spec, font_make_entity, font_make_object)
15794 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15795 the string. Callers changed.
15796 (font_pixel_size): Adjusted for the format change of font-related
15797 objects.
15798 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15799 (font_style_to_value, font_style_symbolic): New function.
15800 (build_font_family_alist): Delete it.
15801 (font_registry_charsets): Use Fassoc_string instead of
15802 assq_no_quit.
15803 (font_prop_validate_symbol): Don't return null_string.
15804 (font_prop_validate_style): Adjusted for the change of
15805 style-related values in a font vector.
15806 (font_property_table): Delete entries for QClanguage and
15807 QCantialias, add entries for QCavgwidth.
15808 (get_font_prop_index): Delete the 2nd argument FROM.
15809 (font_prop_validate): Arguments changed.
15810 (font_put_extra): Adjusted for the change of font-related objects.
15811 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15812 (font_parse_fcname, font_unparse_fcname)
15813 (font_prepare_composition): Likewise.
15814 (font_parse_family_registry): Renamed from font_merge_old_spec.
15815 (otf_open): Delete the 1st arg entity.
15816 (font_otf_capability): Adjusted for the above change.
15817 (font_score): New arg alternate_families. Adjusted for the change
15818 of font-related objects.
15819 (font_sort_entites): New arg best_only.
15820 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15821 Delete them.
15822 (font_match_p): Check alternate families.
15823 (font_find_object): Delete it.
15824 (font_check_object): New function.
15825 (font_clear_cache): Adjusted for the change of font-related objects.
15826 (font_delete_unmatched): New arg.
15827 (font_list_entities): Call font_driver->list with a spec that
15828 doesn't specify style-related properties.
15829 (font_matching_entity): Arguments changed. Caller changed.
15830 (font_open_entity): Adjusted for the change of font-related objects.
15831 (font_close_object, font_has_char, font_encode_char)
15832 (font_get_name, font_get_spec): Likewise.
15833 (font_spec_from_name, font_clear_prop, font_update_lface):
15834 New functions.
15835 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15836 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15837 (font_at): Adjusted for the change of font-related objects.
15838 (font_range): New function.
15839 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15840 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15841 (Fcopy_font_spec, Fmerge_font_spec): New function.
15842 (Ffont_family_list): Renamed from list-families.
15843 (Finternal_set_font_style_table): Arguments changed.
15844 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15845 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15846 change of font-related objects.
15847 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15848
15849 * fontset.h (struct font_info): Delete it. Most members go to
15850 struct font.
15851 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15852 (enum FONT_SPEC_INDEX): Delete it.
15853 (font_info, list_fonts_func, load_font_func, query_font_func)
15854 (set_frame_fontset_func, find_ccl_program_func)
15855 (get_font_repertory_func, new_fontset_from_font_name): Delete
15856 externs.
15857 (fontset_from_font_name): Extern it.
15858 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15859 (FONT_INFO_FROM_FACE): Deleted.
15860 (face_for_font): Adjust prototype.
15861
15862 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15863 conditionals. Don't check enable_font_backend. Delete all codes
15864 used only when USE_FONT_BACKEND is not defined.
15865 (get_font_info_func, list_font_func, load_font_func)
15866 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15867 (get_font_repertory_func): Delete them.
15868 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15869 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15870 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15871 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15872 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15873 (fontset_compare_rfontdef): New function.
15874 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15875 rfont-defs by qsort. Adjusted for the change of font-group vector.
15876 (load_font_get_repertory): Deleted.
15877 (fontset_find_font): Use new macros to ref/set elements of
15878 font-def and rfont-def.
15879 (fontset_font): Fix the timing of remembering that no font for C.
15880 (free_face_fontset): Do nothing if the face has no fontset.
15881 (face_suitable_for_char_p): Use new macros to ref/set elements of
15882 rfont-def.
15883 (face_for_char): Likewise. Call face_for_char with font_object.
15884 (fs_load_font): Delete. Delete #pragma surrounding it.
15885 (fs_query_fontset): Use strcasecmp instead of strcmp.
15886 (generate_ascii_font_name): Adjusted for the format change of
15887 font-spec.
15888 (Fset_fontset_font): Likewise. Use new macros to set elements of
15889 font-def.
15890 (Fnew_fontset): Use font_unparse_xlfd to generate
15891 FONTSET_ASCII (fontset).
15892 (new_fontset_from_font_name): Deleted.
15893 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15894 a fontset is already created for the font. FIx updating of
15895 Vfontset_alias_alist.
15896 (fontset_ascii_font): Deleted.
15897 (Ffont_info): Adjusted for the format change of font-spec.
15898 (Finternal_char_font): Likewise.
15899 (Ffontset_info): Likewise.
15900 (syms_of_fontset): Don't check load_font_func.
15901
15902 * fns.c (internal_equal): Handle PREV_FONT.
15903
15904 * frame.h: Delete USE_FONT_BACKEND conditional.
15905
15906 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15907 conditionals. Don't check enable_font_backend. Delete all codes
15908 used only when USE_FONT_BACKEND is not defined.
15909 (x_set_font): Call x_new_font, not x_new_fontset2.
15910 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15911 already set for the frame.
15912
15913 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15914 a font-entity by font_make_entity. Use font_intern_prop instead
15915 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15916 font property. If a font is scalable, set avgwidth property to 0.
15917 Set font-entity property by font_put_extra.
15918 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15919 (ffont_driver): Adjusted for the change of struct font_driver.
15920 (ftfont_spec_pattern): New function.
15921 (ftfont_list): Return a list, not vector.
15922 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15923 (ftfont_list_family): Don't downcase names.
15924 (ftfont_free_entity): Deleted.
15925 (ftfont_open): Return a font-object. Adjusted for the change of
15926 struct font. Get underline_thickness and underline_position from
15927 font property. Don't update dpyinfo->smallest_font_height and
15928 dpyinfo->smallest_char_width.
15929 (ftfont_close): Don't free `struct font'.
15930 (ftfont_has_char): Adjusted for the format change of font-entity.
15931 (ftfont_encode_char, ftfont_text_extents): Likewise.
15932
15933 * ftxfont.c (ftxfont_list): Return a list, not vector.
15934 (ftxfont_open): Return a font-object. Adjusted for the change of
15935 struct font. Get underline_thickness and underline_position from
15936 font property. Don't update dpyinfo->smallest_font_height and
15937 dpyinfo->smallest_char_width.
15938 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15939 (ftxfont_draw): Adjusted for the change of struct font.
15940
15941 * image.c (image_ascent): Don't include "charset.h". Include
15942 "character.h" and "font.h".
15943
15944 * lisp.h (enum pvec_type): New member PREV_FONT.
15945 (Fassoc_string): EXFUN it.
15946
15947 * print.c: Include font.h.
15948 (print_object): Handle font-related objects.
15949
15950 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15951 conditionals. Don't check enable_font_backend. Delete all codes
15952 used only when USE_FONT_BACKEND is not defined.
15953 (handle_auto_composed_prop): Do nothing if it->f is not on a
15954 window system. Check how many following characters can be
15955 displayed by the same font.
15956 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15957 'struct font *'.
15958 (get_char_face_and_encoding): Assign the whole encoding task to
15959 the `encode-char' method of a font driver.
15960 (fill_composite_glyph_string): Adjusted for the change of `struct
15961 face' and `struct glyph_string'.
15962 (fill_glyph_string): Likewise.
15963 (get_per_char_metric): Arguments changed.
15964 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15965 and `struct glyph_string'.
15966 (produce_stretch_glyph, calc_line_height_property)
15967 (x_produce_glyphs): Likewise.
15968
15969 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15970 conditionals. Don't check enable_font_backend. Delete all codes
15971 used only when USE_FONT_BACKEND is not defined. Use
15972 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15973 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15974 (Qp): Extern them.
15975 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15976 Deleted.
15977 (struct font_name): Deleted.
15978 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15979 (compare_fonts_by_sort_order): New function.
15980 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15981 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15982 Deleted.
15983 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15984 compare_fonts_by_sort_order.
15985 (Fx_font_family_list): Call Ffont_family_list.
15986 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15987 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15988 (face_symbolic_slant, face_symbolic_swidth)
15989 (split_font_name_into_vector, build_font_name_from_vector)
15990 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15991 (font_rescale_ratio, split_font_name, build_font_name)
15992 (free_font_names, sort_fonts, x_face_list_fonts)
15993 (face_font_available_p, sorted_font_list, cmp_font_names)
15994 (font_list_1, concat_font_list, font_list, remove_duplicates):
15995 Deleted.
15996 (Fx_list_fonts): Use Ffont_list.
15997 (LFACE_AVGWIDTH): Deleted.
15998 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15999 by FONTP.
16000 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16001 (set_lface_from_font_name): Delete it.
16002 (set_lface_from_font): Renamed from
16003 set_lface_from_font_and_fontset. Caller changed. Don't set
16004 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16005 for face.
16006 (merge_face_vectors): Copy font-spec if necessary.
16007 Clear properties of the font-spec if necessary.
16008 (merge_face_ref): Clear properties of the font-spec if necessary.
16009 (Finternal_set_lisp_face_attribute): Likewise.
16010 (set_font_frame_param): Use font_load_for_lface to load a
16011 font-object, and call Fmodify_frame_parameters with it.
16012 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16013 font name by Ffont_xlfd_name.
16014 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16015 QCslant, and QCwidth.
16016 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16017 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16018 Compare fonts by EQ.
16019 (lookup_non_ascii_face): Deleted.
16020 (face_for_font): The 2nd argument changed.
16021 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16022 Check atomic font properties by case insensitive.
16023 (realize_non_ascii_face): Set face->overstrike correctly.
16024 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16025 (dump_realized_face): Get font name from
16026 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16027
16028 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16029 conditionals. Don't check enable_font_backend. Delete all codes
16030 used only when USE_FONT_BACKEND is not defined.
16031 (xic_create_xfontset): Original code deleted and renamed from
16032 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16033 (x_make_gc): Don't set GCFont in GCs.
16034 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16035 opened by "fixed".
16036 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16037 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16038 get_font_repertory_func.
16039
16040 * xfont.c: Include <stdlib.h> and "ccl.h".
16041 (struct xfont_info): New structure.
16042 (xfont_query_font): Deleted.
16043 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16044 moved from xterm.c.
16045 (xfont_driver): Adjusted for the change of struct font_driver.
16046 (compare_font_names): New function.
16047 (xfont_list_pattern): Sort font names case insensitively. Make
16048 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16049 (xfont_list): Return a list, not vector.
16050 (xfont_match): If the font doesn't have QCname property, generate
16051 a name from the other font properties.
16052 (xfont_open): Return a font-object. Adjusted for the change of
16053 struct font. Get underline_thickness and underline_position from
16054 font property. Don't update dpyinfo->smallest_font_height and
16055 dpyinfo->smallest_char_width.
16056 (xfont_close): Don't free struct font.
16057 (xfont_prepare_face): Adjusted for the change of struct font.
16058 (xfont_done_face): Deleted.
16059 (xfont_has_char): Adjusted for the change of struct font.
16060 (xfont_encode_char, xfont_draw): Likewise.
16061 (xfont_check): New function.
16062
16063 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16064 callback function.
16065 (xftfont_match): Adjusted for the format change of font-entity.
16066 (xftfont_open): Adjusted for the format change of font-entity and
16067 font-object. Adjusted for the change of struct font. Return a
16068 font-object. Don't update dpyinfo->smallest_font_height and
16069 dpyinfo->smallest_char_width.
16070 (xftfont_close): Block input while calling XftFontClose.
16071 (xftfont_prepare_face): Don't block input while calling
16072 xftfont_get_colors. Adjusted for the change of struct font.
16073 (xftfont_shape): Return value of error case fixed.
16074
16075 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16076
16077 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16078 conditionals.
16079 (FONT_WIDTH): Return (f)->max_width.
16080 (struct x_display_info): Delete member `font'.
16081 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16082 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16083 (struct x_output): Change type of `font' to `struct font *'.
16084
16085 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16086 conditionals. Don't check enable_font_backend. Delete all codes
16087 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16088 (x_per_char_metric, x_encode_char): Deleted.
16089 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16090 (x_compute_glyph_string_overhangs): Adjusted for the change of
16091 `struct face'.
16092 (x_draw_glyph_string_foreground)
16093 (x_draw_composite_glyph_string_foreground): Likewise.
16094 (x_draw_glyph_string): Likewise. Use font->underline_position and
16095 font->underline_thickness.
16096 (x_new_font): Renamed from x_new_fontset2.
16097 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16098 (x_check_font): Call `check' method of a font driver.
16099 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16100 (x_query_font, x_get_font_repertory): Deleted.
16101 (x_find_ccl_program): Renamed and moved to xfont.c.
16102 (x_redisplay_interface): Adjusted for the change of `struct
16103 redisplay_interface'.
16104
16105 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16106 conditionals. Don't check enable_font_backend. Delete all codes
16107 used only when USE_FONT_BACKEND is not defined. Surround non-used
16108 code by "#ifdef OLD_FONT" and "endif".
16109 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16110
16111 * w32font.h (struct w32font_info): New member.
16112 (FONT_COMPAT): New macro.
16113 (w32font_open_internal): Prototype adjusted.
16114
16115 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16116 OLD_FONT" and "endif".
16117
16118 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16119 conditionals. Don't check enable_font_backend. Delete all codes
16120 used only when USE_FONT_BACKEND is not defined.
16121 (w32font_open): Return a font-object. Make a font-object by
16122 font_make_object. Adjusted for the change of struct w32font_info.
16123 (w32font_close): Don't free struct font. Adjusted for the change
16124 of struct w32font_info.
16125 (w32font_encode_char, w32font_text_extents, w32font_draw):
16126 Adjusted for the change of struct w32font_info.
16127 (w32font_draw): Likewise.
16128 (w32font_list_internal): Return a list, not vector.
16129 (w32font_open_internal): Change the 4th arg to font-object.
16130 Adjusted for the change of struct w32font_info and font-object format.
16131 (add_font_name_to_list): Don't downcase names.
16132 (w32_enumfont_pattern_entity): Make a font-entity by
16133 font_make_entity. Adjusted for the format change of font-entity.
16134 Use FONT_SET_STYLE to set a style-related font property. If a
16135 font is scalable, set avgwidth property to 0. Set font-entity
16136 property by font_put_extra.
16137 (font_matches_spec): Adjusted for the format change of font-entity.
16138 (w32_weight_table, w32_decode_weight): New variables.
16139 (w32_encode_weight): New function.
16140 (fill_in_logfont): Adjusted for the format change of font-spec.
16141 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16142 weight value.
16143 (w32font_driver): Adjusted for the change of struct font_driver.
16144
16145 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16146 conditionals. Don't check enable_font_backend. Surround non-used
16147 code by "#ifdef OLD_FONT" and "endif".
16148 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16149 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16150
16151 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16152 conditionals. Don't check enable_font_backend. Delete all codes
16153 used only when USE_FONT_BACKEND is not defined. Surround non-used
16154 code by "#ifdef OLD_FONT" and "endif".
16155
16156 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16157 (uniscribe_open): Return value changed to font-object.
16158 Adjusted for the format change of font-object.
16159 (uniscribe_otf_capability): Adjusted for the change of struct font.
16160 (add_opentype_font_name_to_list): Don't downcase names.
16161 (uniscribe_font_driver): Adjusted for the change of struct
16162 font_driver.
16163
161642008-05-13 Chong Yidong <cyd@stupidchicken.com>
16165
16166 * dispnew.c (update_frame_1): Check if tty output is still valid
16167 before flushing it.
16168
161692008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16170
16171 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16172 to Gtk+ menus.
16173
161742008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16175
16176 * dired.c (file_name_completion): Tweak the code so as to always do it
16177 in a single pass. Tighten the scope of some variables.
16178
16179 * dired.c (Qdefault_directory): New var.
16180 (file_name_completion): Use it instead of Fexpand_file_name.
16181 (syms_of_dired): Initialize it.
16182
161832008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16184
16185 * fileio.c (double_dollars): Remove dead code.
16186
161872008-05-10 Eli Zaretskii <eliz@gnu.org>
16188
16189 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16190 Mention w32-get-true-file-attributes in doc string.
16191
16192 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16193
161942008-05-09 Glenn Morris <rgm@gnu.org>
16195
16196 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16197 2008-04-23.
16198
161992008-05-09 Eli Zaretskii <eliz@gnu.org>
16200
16201 Support for reporting owner and group of each file on MS-Windows:
16202 * dired.c (stat_uname, stat_gname): New functions, with special
16203 implementation for w32.
16204 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16205
16206 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16207 (dflt_group_name): New static variable.
16208 (dflt_group): Rename from the_group.
16209 (init_user_info): Init dflt_group fields. Get user's group name
16210 from LookupAccountSid.
16211 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16212 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16213 New initialization states.
16214 (globals_of_w32): Initialize them to zero. Initialize the default
16215 group name to "None".
16216 (GetFileSecurity_Name): New global var, the name of the function
16217 to call for GetFileSecurity.
16218 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16219 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16220 (get_file_security, get_security_descriptor_owner)
16221 (get_security_descriptor_group, is_valid_sid)
16222 (get_file_security_desc, get_rid, get_name_and_id)
16223 (get_file_owner_and_group): New functions.
16224 (stat): Use get_file_security_desc and get_file_owner_and_group to
16225 report the owner and primary group of each file. Don't ignore the
16226 high 32 bits of file's size, now that st_size is 64-bit wide.
16227 Fix test when to get true file attributes.
16228 (init_user_info): Use get_rid instead of equivalent inline code.
16229 (fstat): Don't ignore the high 32 bits of file's size.
16230
162312008-05-09 Chong Yidong <cyd@stupidchicken.com>
16232
16233 * image.c (png_load): Use correct bit-depth for setting background
16234 color.
16235
162362008-05-08 Eli Zaretskii <eliz@gnu.org>
16237
16238 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16239 epa-hook.elc.
16240
162412008-05-08 Juanma Barranquero <lekktu@gmail.com>
16242
16243 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16244
162452008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16246
16247 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16248 because the original parameters are in pure storage now.
16249 (mac_window): Remove unused params. Update callers.
16250
162512008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16252
16253 * lread.c (substitute_object_recurse): Use lower-level primitives.
16254 Don't signal errors when traversing sub-char-tables.
16255 Don't loop over all the possible characters when traversing char-tables.
16256
16257 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16258 just like we do in print.c.
16259
162602008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16261
16262 * minibuf.c (Ftry_completion): Remove code left over from when we used
16263 scmp instead of Fcompare_strings.
16264
162652008-05-04 Juanma Barranquero <lekktu@gmail.com>
16266
16267 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16268
162692008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16270
16271 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16272 Create bitmap context in native byte order.
16273
16274 * macterm.c (XDrawLine)
16275 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16276 context in native byte order.
16277
162782008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16279
16280 * config.in: Regenerate.
16281
16282 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16283 New definitions for Image I/O support.
16284 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16285 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16286 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16287 (mac_data_provider_release_data, image_load_image_io)
16288 [USE_MAC_IMAGE_IO]: New functions.
16289 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16290 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16291 (init_image_func_pointer) [MAC_OSX]: Remove function.
16292 (image_load_quartz2d) [MAC_OSX]: Check availability of
16293 CGImageCreateWithPNGDataProvider at compile time.
16294 Use lowercase `false' for boolean constant.
16295 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16296 Use image_load_image_io.
16297 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16298 Don't check MyCGImageCreateWithPNGDataProvider.
16299 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16300 Don't call init_image_func_pointer.
16301
16302 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16303
16304 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16305 Make variable non-static.
16306 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16307 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16308
16309 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16310 (RED_FROM_ULONG): Mask off higher bits.
16311 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16312
16313 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16314 Include AvailabilityMacros.h.
16315 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16316 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16317
163182008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16319
16320 * chartab.c (Fset_char_table_range): If range is t, really set all
16321 chars to that value.
16322
163232008-05-03 Eli Zaretskii <eliz@gnu.org>
16324
16325 * dired.c (Ffile_attributes): Don't allow the device number become
16326 negative.
16327
163282008-05-02 Daiki Ueno <ueno@unixuser.org>
16329
16330 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16331
163322008-05-02 Juri Linkov <juri@jurta.org>
16333
16334 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16335 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16336 DEFAULT argument as a list of default values in docstrings.
16337
163382008-05-01 Chong Yidong <cyd@stupidchicken.com>
16339
16340 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16341
163422008-05-01 Martin Rudalics <rudalics@gmx.at>
16343
16344 * dispnew.c (change_frame_size_1): Preserve small windows when
16345 shrinking frames by calling set_window_height|width with third
16346 arg 2.
16347
16348 * window.h (struct window): Replace field too_small_ok by field
16349 resize_proportionally.
16350
16351 * window.c (make_window): Initialize resize_proportionally.
16352 (enlarge_window): Temporarily set resize_proportionally to make
16353 sure that shrink_windows does scale the window proportionally.
16354 (shrink_windows): When window has resize_proportionally set try
16355 to shrink it proportionally by stealing from other windows.
16356 (struct saved_window, Fset_window_configuration)
16357 (compare_window_configurations): Handle resize_proportionally.
16358 (WINDOW_TOTAL_SIZE): New macro.
16359 (window_min_size, shrink_windows, size_window): Use it.
16360 (check_min_window_sizes): Remove. Invalid values of
16361 window-min-height|width are handled by window_min_size_2 now.
16362 (size_window, Fsplit_window, enlarge_window)
16363 (adjust_window_trailing_edge, grow_mini_window): Don't call
16364 check_min_window_sizes.
16365 (window_min_size_2, window_min_size_1, window_min_size):
16366 New argument safe_p for retrieving "safe" minimum sizes.
16367 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16368 (adjust_window_trailing_edge, grow_mini_window):
16369 Adjust arguments of window_min_size... functions.
16370 (shrink_windows): Argument min_size removed. New argument
16371 safe_p allows shrinking windows to their safe minimum sizes.
16372 Calculate minimum size and decide whether a window shall be
16373 deleted for each window individually.
16374 (size_window): When nodelete_p equals 2, tell shrink_windows to
16375 delete windows only if their new minimum size is no more safe.
16376 (shrink_window_lowest_first): Call window_min_size_1 to make
16377 sure to preserve modeline of bottom-most window when resizing
16378 the minibuffer.
16379 (Fset_window_configuration, Fcurrent_window_configuration)
16380 (compare_window_configurations): Do not handle
16381 window-min-height|width any more.
16382 (syms_of_window): Clarify window-min-height|width doc-strings.
16383
163842008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16385
16386 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16387 some more. Copy some of the code from Ftry_completions.
16388 Remove special case code that dates back to initial revision when the
16389 slash was only added when necessary and that can't trigger nowadays.
16390
163912008-04-27 Kenichi Handa <handa@m17n.org>
16392
16393 * font.c (font_prop_validate): Signal `error' instead of `font'.
16394
163952008-04-29 Jason Rumney <jasonr@gnu.org>
16396
16397 * w32fns.c (Fw32_battery_status): New defun.
16398 (syms_of_w32fns): Defsubr it.
16399
164002008-04-28 Andreas Schwab <schwab@suse.de>
16401
16402 * dired.c (file_name_completion): Fix another mixing of encoded
16403 and decoded names.
16404
164052008-04-28 Juanma Barranquero <lekktu@gmail.com>
16406
16407 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16408
164092008-04-27 Juanma Barranquero <lekktu@gmail.com>
16410
16411 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16412
164132008-04-27 Andreas Schwab <schwab@suse.de>
16414
16415 * dired.c (file_name_completion): Fix inappropriate mixing of
16416 encoded and decoded names.
16417
16418 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16419
16420 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16421
164222008-04-26 Eli Zaretskii <eliz@gnu.org>
16423
16424 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16425 2008-03-31, it's not needed anymore with `struct stat' definition
16426 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16427 for the same reasons.
16428
164292008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16430
16431 * m/sparc.h: Additional redefinitions for GNU/Linux.
16432
164332008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16434
16435 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16436 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16437 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16438 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16439 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16440 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16441 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16442 Likewise.
16443
16444 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16445 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16446 (mac_ax_number_of_characters): Add externs.
16447 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16448 [USE_MAC_TSM]: Likewise.
16449 (mac_handle_text_input_event) [MAC_OSX]:
16450 Handle kEventTextInputOffsetToPos for no active input area case.
16451 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16452 (mac_handle_document_access_event)
16453 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16454 (install_application_handler) [MAC_OSX]: Register handlers for
16455 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16456 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16457 Register mac_handle_document_access_event.
16458
16459 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16460 Make functions non-static.
16461
164622008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16463
16464 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16465 (read_file_name_completion_ignore_case, insert_default_directory)
16466 (Qdefault_directory): Move to minibuffer.el.
16467 (Fread_file_name): Call the new `read-file-name' instead.
16468
164692008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16470
16471 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16472 Make function non-static.
16473 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16474 Remove function.
16475 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16476 Move to mactoolbox.c.
16477 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16478
16479 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16480 (mac_rect_make): New macro.
16481
16482 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16483 instead of float.
16484 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16485 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16486 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16487 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16488 CGRectMake.
16489 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16490 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16491 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16492 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16493 instead of WindowRef in argument type.
16494 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16495 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16496 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16497 instead of DISPLAY. All uses changed.
16498 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16499 (x_calc_absolute_position): Simplify so as not to use
16500 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16501
16502 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16503 instead of WindowRef in argument type.
16504 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16505 [TARGET_API_MAC_CARBON]: Remove externs.
16506 (create_apple_event, mac_event_parameters_to_lisp)
16507 [TARGET_API_MAC_CARBON]: Add externs.
16508
16509 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16510 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16511 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16512 is clicked.
16513 (x_activate_menubar): Remove extern for saved_menu_event_location.
16514 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16515 Move from mac.c.
16516
165172008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16518
16519 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16520 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16521
165222008-04-23 Jason Rumney <jasonr@gnu.org>
16523
16524 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16525 attributes only for local files.
16526
16527 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16528 default to Qlocal.
16529
165302008-04-22 Juri Linkov <juri@jurta.org>
16531
16532 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16533 read-buffer-to-switch instead of using the letter "B".
16534
165352008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16536
16537 * fileio.c (Qdefault_directory): New variable.
16538 (Fread_file_name): Use it to pass `dir' to the completion functions.
16539
165402008-04-20 Chong Yidong <cyd@stupidchicken.com>
16541
16542 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16543
165442008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16545
16546 * keyboard.c (Vpre_help_message): Remove.
16547 (show_help_echo): Remove default C code.
16548
16549 * dired.c (directory_files_internal, file_name_completion):
16550 Only call ENCODE_FILE if the string is indeed decoded.
16551
165522008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16553
16554 * Makefile.in (TOOLKIT_DEFINES): Remove.
16555 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16556
165572008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16558
16559 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16560 (mactoolbox.o): New target.
16561
16562 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16563 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16564
16565 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16566 Use mac_set_frame_window_background instead of XSetWindowBackground.
16567 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16568 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16569 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16570 instead of SetWindowTitleWithCFString.
16571 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16572 Move function to mactoolbox.c.
16573 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16574 Use mac_set_window_modified instead of SetWindowModified.
16575 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16576 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16577 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16578 FrontNonFloatingWindow. Use mac_activate_window instead of
16579 ActivateWindow. Use mac_active_non_floating_window instead of
16580 ActiveNonFloatingWindow.
16581 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16582 Use mac_show_hourglass and mac_hide_hourglass.
16583 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16584 instead of GetGlobalMouse.
16585 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16586 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16587 Use mac_bring_window_to_front instead of BringToFront.
16588 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16589 mactoolbox.c.
16590 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16591 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16592 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16593 mactoolbox.c.
16594
16595 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16596 (XtPointer): Move typedef from macmenu.c.
16597 (enum button_type): Move enum from macmenu.c.
16598 (widget_value): Move typedef from macmenu.c.
16599 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16600 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16601 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16602 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16603 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16604 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16605 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16606 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16607 (Selection): Move typedef from macselect.c.
16608 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16609 macterm.c.
16610 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16611 (mac_is_window_collapsed, mac_bring_window_to_front)
16612 (mac_send_window_behind, mac_hide_window, mac_show_window)
16613 (mac_collapse_window, mac_front_non_floating_window)
16614 (mac_active_non_floating_window, mac_activate_window)
16615 (mac_move_window_structure, mac_move_window, mac_size_window)
16616 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16617
16618 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16619 (enum mac_menu_kind): Move enum to mactoolbox.c.
16620 (min_menu_id): Move variable to mactoolbox.c.
16621 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16622 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16623 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16624 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16625 [TARGET_API_MAC_CARBON]: Likewise.
16626 (XtPointer): Move typedef to macgui.h.
16627 (enum button_type): Move enum to macgui.h.
16628 (widget_value): Move typedef to macgui.h.
16629 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16630 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16631 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16632 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16633 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16634 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16635 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16636 (popup_activated_flag): Make variable non-static.
16637 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16638 (add_menu_item, fill_menu, dispose_menus):
16639 Move functions to mactoolbox.c.
16640 (restore_show_help_function, menu_target_item_handler)
16641 (install_menu_target_item_handler, mac_handle_dialog_event)
16642 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16643 [TARGET_API_MAC_CARBON]: Likewise.
16644 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16645 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16646 (find_and_call_menu_selection, name_is_separator): Make function
16647 non-static.
16648 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16649 to mactoolbox.c.
16650 (set_frame_menubar): Don't call install_menu_quit_handler.
16651 (menu_item_selection): New variable.
16652 (mac_menu_show): Use create_and_show_popup_menu.
16653 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16654 selection but set variable menu_item_selection. All uses changed.
16655 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16656 Call install_menu_quit_handler. Move to mactoolbox.c.
16657
16658 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16659 (Selection): Move typedef to macgui.h.
16660 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16661 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16662 Make variables non-static.
16663 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16664 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16665 Make functions non-static.
16666 (Vmac_service_selection) [MAC_OSX]: Likewise.
16667 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16668 (mac_valid_selection_target_p, mac_clear_selection)
16669 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16670 (mac_put_selection_value, mac_selection_has_target_p)
16671 (mac_get_selection_value, mac_get_selection_target_list)
16672 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16673 Move functions to mactoolbox.c.
16674 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16675 Likewise.
16676 (copy_scrap_flavor_data, mac_handle_service_event)
16677 (install_service_handler) [MAC_OSX]: Likewise.
16678 (syms_of_macselect) <Vmac_dnd_known_types>:
16679 Use mac_dnd_default_known_types.
16680
16681 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16682 Move to mactoolbox.c.
16683 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16684 (Fx_selection_owner_p): Add EXFUN.
16685 (install_window_handler, remove_window_handler, XSetWindowBackground):
16686 Remove externs.
16687 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16688 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16689 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16690 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16691 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16692 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16693 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16694 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16695 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16696 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16697 (mac_valid_selection_target_p, mac_clear_selection)
16698 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16699 (mac_put_selection_value, mac_selection_has_target_p)
16700 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16701 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16702 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16703 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16704 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16705 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16706 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16707 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16708 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16709
16710 * mactoolbox.c: New file.
16711
167122008-04-18 Jason Rumney <jasonr@gnu.org>
16713
16714 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16715
167162008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16717
16718 * character.c (Fmultibyte_char_to_unibyte):
16719 Return latin1 chars unchanged.
16720
16721 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16722 relocated if it points to `name'.
16723
167242008-04-17 Kenichi Handa <handa@m17n.org>
16725
16726 * data.c (Faset): Allow setting a multibyte character in an
16727 ASCII-only unibyte string.
16728
16729 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16730
167312008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16732
16733 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16734 done in config.h.
16735
167362008-04-16 Juanma Barranquero <lekktu@gmail.com>
16737
16738 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16739 (Fchar_direction): Add usage in the docstring.
16740
167412008-04-15 Chong Yidong <cyd@stupidchicken.com>
16742
16743 * keyboard.c (read_key_sequence): Remove always-true checks.
16744
167452008-04-14 Jason Rumney <jasonr@gnu.org>
16746
16747 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16748 compatibility struct, for better underline positioning.
16749
167502008-04-13 David Hansen <david.hansen@gmx.net>
16751
16752 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16753 string.
16754
167552008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16756
16757 * m/hp800.h (XUINT, XSET): Remove.
16758
167592008-04-12 Juanma Barranquero <lekktu@gmail.com>
16760
16761 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16762 previous change.
16763
167642008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16765
16766 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16767 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16768
167692008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16770
16771 * keymap.h (map_keymap_canonical): Declare.
16772 * xmenu.c (single_keymap_panes): Use it.
16773
167742008-04-11 Glenn Morris <rgm@gnu.org>
16775
16776 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16777 set the target's value to that of the alias.
16778
167792008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16780
16781 * term.c (set_tty_color_mode): Left over typo.
16782
167832008-04-10 Michael Albinus <michael.albinus@gmx.de>
16784
16785 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16786 only after check for file name handler functions. Signal, when
16787 native functionality is not supported.
16788 (syms_of_fileio): Declare it unconditionally.
16789
167902008-04-10 Jason Rumney <jasonr@gnu.org>
16791
16792 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16793 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16794
16795 * w32.c (logon_network_drive): Also logon to remote drives that
16796 are mapped to drive letters.
16797
167982008-04-10 Glenn Morris <rgm@gnu.org>
16799
16800 * xdisp.c (truncate-partial-width-windows): Doc fix.
16801
168022008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16803
16804 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16805 Move functions to minibuffer.el.
16806 (syms_of_fileio): Don't declare them.
16807
168082008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16809
16810 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16811 (syms_of_minibuf): Remove its initialization.
16812
16813 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16814
168152008-04-09 Juanma Barranquero <lekktu@gmail.com>
16816
16817 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16818
168192008-04-09 Jason Rumney <jasonr@gnu.org>
16820
16821 * makefile.w32-in (distclean): Delete makefile too.
16822 (maintainer-clean): New target.
16823
16824 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16825
16826 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16827 for new font backend and composite cases.
16828
168292008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16830
16831 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16832 Most of the code moved to run_timers.
16833 (do_pending_atimers): Call run_timers.
16834 (run_timers): New function.
16835
16836 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16837 run atimers.
16838
16839 * process.c (wait_reading_process_output): The same as above.
16840
168412008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16842
16843 * minibuf.c (last_exact_completion): Remove variable.
16844 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16845 (complete_and_exit_1, complete_and_exit_2)
16846 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16847 (Fdisplay_completion_list, display_completion_list_1)
16848 (Fminibuffer_completion_help, Fself_insert_and_exit)
16849 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16850 minibuffer.el.
16851 (syms_of_minibuf): Remove corresponding initializations.
16852
16853 * keyboard.c (Qdeactivate_mark): New var.
16854 (command_loop_1): Use it to call `deactivate-mark'.
16855 (syms_of_keyboard): Initialize it.
16856
16857 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16858 to another frame.
16859 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16860 Don't call set_tty_color_mode.
16861 (store_frame_param): Reset previous_frame rather than call
16862 set_tty_color_mode.
16863 * term.c (set_tty_color_mode): Rewrite.
16864 * dispextern.h (set_tty_color_mode): New type.
16865 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16866
168672008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16868
16869 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16870 for generic chars, which do not exist any more in emacs-unicode.
16871
168722008-04-08 Michael Albinus <michael.albinus@gmx.de>
16873
16874 * coding.c (detect_coding_emacs_mule)
16875 (Ffind_operation_coding_system): Fix typo.
16876
168772008-04-08 Jason Rumney <jasonr@gnu.org>
16878
16879 * w32uniscribe.c (SNAME): Extract only symbol name.
16880
16881 * w32font.h (struct w32_metric_cache): New struct.
16882 (w32font_info): Use it.
16883 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16884 (CACHE_BLOCKSIZE): New constants.
16885
16886 * w32font.c (Qja, Qko, Qzh): New symbols.
16887 (syms_of_w32font): Initialise them.
16888 (font_matches_spec): Use them to filter by language.
16889 (recompute_cached_metrics): Remove function.
16890 (compute_metrics, clear_cached_metrics): New functions.
16891 (w32font_encode_char): Use them to manage metric cache.
16892 (w32font_text_extents): Cache metrics for all glyphs on demand.
16893 Delay converting glyph indices to WORD until needed.
16894 (w32font_open_internal): Initialize metric cache to empty.
16895 (registry_to_w32_charset): Charset should always be a symbol.
16896 (fill_in_logfont, list_all_matching_fonts): Family should
16897 always be a symbol.
16898
168992008-04-06 Jason Rumney <jasonr@gnu.org>
16900
16901 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16902 Give up if glyph indices not supported. Use uniscribe obtained
16903 ABC widths for individual metrics. Map glyph clusters back to
16904 characters using fClusterStart flag. Return number of glyphs
16905 produced, not chars processed.
16906 (uniscribe_shape): Map char at FROM to current glyph.
16907
169082008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16909
16910 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16911 Use SetMenuItemHierarchicalMenu.
16912
169132008-04-05 Jason Rumney <jasonr@gnu.org>
16914
16915 * image.c (pbm_load): Allow color values up to 65535.
16916 Throw an error if max_color_idx is outside the supported range.
16917 Report an error when image size is invalid.
16918 Read two bytes at a time when raw images have max_color_idx above 255.
16919
aac0c6e3
MR
169202008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16921
16922 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16923 append "CCL: Quitted" when the CCL program is quitted.
16924 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16925
16926 * ccl.h (struct ccl_program): New member quit_silently.
16927
169282008-04-05 Chong Yidong <cyd@stupidchicken.com>
16929
16930 * search.c (compile_pattern_1): Treat non-nil and non-string of
16931 search-spaces-regexp as nil.
16932
16933 * minibuf.c (Fassoc_string): Tweak docstring.
16934
169352008-04-05 Eli Zaretskii <eliz@gnu.org>
16936
16937 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16938 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16939 2008-03-14 to force inode be positive.
16940
16941 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16942 _S_* ones, since we now use our own sys/stat.h.
16943 (stat, fstat): Don't mangle the inode number.
16944 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16945
169462008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16947
16948 * frame.h (struct frame): Give one more bit to `visible' since we use
16949 values larger than 1 to indicate obscured frames on ttys.
16950
16951 * keymap.c (Qkeymap_canonicalize): New var.
16952 (Fmap_keymap_internal): New fun.
16953 (describe_map): Use keymap-canonicalize.
16954
16955 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16956 (Fundo_boundary): Set them.
16957 (syms_of_undo): Initialize them.
16958 (record_point): Use them instead of last_point_position*.
16959 (last_undo_buffer): Change type.
16960
169612008-04-04 Jason Rumney <jasonr@gnu.org>
16962
16963 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16964 (recompute_cached_metrics): Don't set ascent and descent per char.
16965
16966 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16967 (uniscribe_check_otf): Add GC protection before consing.
16968 Rearrange loop for counting features.
16969
169702008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16971
16972 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16973 buffer with byte-size of source buffer.
16974
169752008-04-03 Chong Yidong <cyd@stupidchicken.com>
16976
16977 * callint.c (Fcall_interactively): Handle temporary region even
16978 when shift-select-mode is off.
16979
169802008-04-03 Jason Rumney <jasonr@gnu.org>
16981
16982 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16983
169842008-04-03 Kenichi Handa <handa@m17n.org>
16985
16986 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16987 (CATEGORY_MASK_UTF_16): Likewise.
16988 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16989 binary file.
16990 (detect_coding): Add null-byte detection for a binary file.
16991 (detect_coding_system): Likewise.
16992
169932008-04-03 Jason Rumney <jasonr@gnu.org>
16994
16995 * w32uniscribe.c: New file.
16996
16997 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16998
16999 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17000
17001 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17002 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17003 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17004 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17005 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17006 (Qphonetic): New symbols.
17007 (syms_of_w32font): Initialize them.
17008 (font_supported_scripts): Use them.
17009 (w32font_list_family): List all charsets.
17010 (w32font_text_extents, recompute_cached_metrics): Fix metric
17011 calculations.
17012 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17013 Give opentype fonts their own format.
17014 (font_matches_spec): New arguments backend and logfont.
17015 Handle :otf spec for uniscribe backend.
17016 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17017 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17018
17019 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17020 font backend.
17021 (globals_of_w32fns): Initialize uniscribe font backend.
17022
17023 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17024 dependencies.
17025 (w32uniscribe.$(O)): New file to build.
17026 (FONT_OBJ): Include w32uniscribe.$(O).
17027 (LIBS): Add uniscribe libraries.
17028
17029 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17030
170312008-04-02 Chong Yidong <cyd@stupidchicken.com>
17032
17033 * callint.c (Vshift_select_mode): New var.
17034 (Finteractive): Document new ^ spec.
17035 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17036 is present.
17037
17038 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17039 (command_loop_1): Avoid running the direct display versions of
17040 forward-char and backward-char if shift-selection may occur.
17041 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17042 shift-translation takes place.
17043
17044 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17045 avoid clobbering by define-minor-mode.
17046
17047 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17048 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17049
17050 * syntax.c (Fforward_word): Add ^ interactive spec.
17051
17052 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17053 (Fscroll_right): Add ^ interactive spec.
17054
170552008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17056
17057 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17058
17059 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17060
17061 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17062
170632008-03-31 Juri Linkov <juri@jurta.org>
17064
17065 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17066
170672008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17068
17069 * gtkutil.c (xg_set_geometry): Fix indentation.
17070 (xg_resize_outer_widget): Remove.
17071 (x_wm_size_hint_off): Fix indentation.
17072 (xg_frame_set_char_size): Call flush_and_sync after
17073 gtk_window_resize.
17074 (x_wm_set_size_hint): Pass NULL as geometry window to
17075 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17076 Add menu bar and tool bar height to base height.
17077 (xg_update_frame_menubar, free_frame_menubar)
17078 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17079 (update_frame_tool_bar, free_frame_tool_bar):
17080 Change xg_resize_outer_widget to xg_frame_set_char_size.
17081
170822008-03-30 Michael Albinus <michael.albinus@gmx.de>
17083
17084 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17085 (Fdbus_call_method): New parameter TIMEOUT.
17086 (dbus-send-signal): Optimize UNGCPRO call.
17087
170882008-03-29 Juri Linkov <juri@jurta.org>
17089
17090 * window.c (Fdisplay_buffer): Move call to
17091 Vsplit_window_preferred_function out of conditions that check
17092 if window is eligible for vertical splitting.
17093 When Vsplit_window_preferred_function is non-nil, call it and use
17094 its non-nil return value as window. Otherwise, continue doing
17095 vertical splitting using Fsplit_window with arg horflag=nil.
17096 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17097 default value from `split-window' to nil.
17098
170992008-03-29 Juri Linkov <juri@jurta.org>
17100
17101 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17102 for interactive code letters 'b' and 'B'.
17103
171042008-03-29 Eli Zaretskii <eliz@gnu.org>
17105
17106 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17107 multibyte string.
17108
171092008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17110
17111 * keyboard.c (pending_funcalls): New var.
17112 (timer_check): Run it.
17113 (syms_of_keyboard): Initialize it.
17114 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17115 (Vdelete_terminal_functions): New vars.
17116 (syms_of_terminal): Initialize them.
17117 (Fdelete_terminal): Run delete-terminal-functions.
17118 * xdisp.c (safe_eval): Rewrite.
17119 (safe_call2): New fun.
17120 * frame.c (Qdelete_frame_functions): New var.
17121 (syms_of_frame): Initialize it.
17122 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17123 * lisp.h (safe_call2, pending_funcalls): Declare.
17124
171252008-03-28 Andreas Schwab <schwab@suse.de>
17126
17127 * indent.c (Fmove_to_column): Move declaration before statements.
17128
171292008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17130
17131 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17132 (struct frame): Use bit fields for boolean vars.
17133
17134 * process.c (server_accept_connection): Simplify naming.
17135 (emacs_get_tty_pgrp): Use SDATA.
17136
17137 * coding.c (decode_coding_object): Fix last change.
17138
171392008-03-27 Jason Rumney <jasonr@gnu.org>
17140
17141 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17142
171432008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17144
17145 * charset.c (Fdefine_charset_internal): Change the way of
17146 registering charsets in Vcharset_order_list.
17147 (syms_of_charset): Make the charset `eight-bit' supplementary.
17148
171492008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17150
17151 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17152 operations, to avoid having the difference between pointers
17153 overflow.
17154
171552008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17156
17157 * indent.c (check_display_width): New fun.
17158 (scan_for_column): Use it.
17159
17160 * data.c (syms_of_data): Mark most-positive-fixnum and
17161 most-negative-fixnum as constants.
17162
17163 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17164
17165 * indent.c (scan_for_column): Extract from current_column_1.
17166 Merge with the same code from Fmove_to_column.
17167 (current_column_1, Fmove_to_column): Use it.
17168
171692008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17170
17171 * keymap.c (map_keymap_internal): New fun.
17172 (map_keymap): Use it.
17173 (Fmap_keymap_internal): New fun.
17174 (Fmap_keymap): Remove left-out test from before make_save_value.
17175
17176 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17177
17178 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17179 Use XCAR/XCDR.
17180
17181 * process.h (struct Lisp_Process): Remove filter_multibyte.
17182 * process.c (QCfilter_multibyte): Remove.
17183 (setup_process_coding_systems): Don't use filter_multibyte.
17184 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17185 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17186 (Fset_process_filter_multibyte): Change the coding-system to
17187 approximate the previous behavior.
17188 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17189 coding-system.
17190
17191 * coding.c (decode_coding_object): When not decoding into a buffer,
17192 obey the coding system's preference of (uni|multi)byte.
17193
171942008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17195
17196 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17197 every char is changed and has a different byte-length.
17198 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17199 Fix int -> EMACS_INT.
17200
172012008-03-23 David Hansen <david.hansen@gmx.net>
17202
17203 * dbusbind.c (xd_read_message): Remove extra copying of message
17204 strings. Check for NULL `interface' or `member'.
17205
172062008-03-22 Eli Zaretskii <eliz@gnu.org>
17207
17208 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17209 cFileName a file name that includes `?' characters, use the 8+3
17210 alias in cAlternateFileName instead.
17211
172122008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17213
17214 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17215
172162008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17217
17218 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17219 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17220 work on current_buffer only instead (that was already the case
17221 for some of the code anyway).
17222 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17223 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17224 (SET_PT, SET_PT_BOTH): Adjust.
17225 * intervals.h (set_point, temp_set_point, set_point_both)
17226 (temp_set_point_both): Remove redundant declarations.
17227
172282008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17229
17230 * fileio.c (Finsert_file_contents):
17231 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17232 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17233 when buffer != current_buffer anyway.
17234
172352008-03-20 Andreas Schwab <schwab@suse.de>
17236
17237 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17238 as default.
17239
172402008-03-19 Jason Rumney <jasonr@gnu.org>
17241
17242 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17243 (syms_of_w32fns): Initialize them.
17244 (HOURGLASS_ID): New constant.
17245 (x_window_to_frame): Don't check hourglass_window.
17246 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17247 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17248 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17249 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17250 Only change the cursor if hourglass is not active.
17251 (Fx_create_frame): Initialize frame's current_cursor.
17252 (hourglass_atimer): Remove.
17253 (hourglass_started): New function.
17254 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17255 (show_hourglass): Adapt to w32, changing argument to frame.
17256
17257 * w32term.h (struct w32_output): Remove hourglass_window.
17258 Add current_cursor.
17259
17260 * eval.c (call_debugger, Fsignal):
17261 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17262 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17263 (Fexecute_extended_command, cancel_hourglass_unwind):
17264 * minibuf.c (read_minibuf):
17265 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17266
172672008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17268
17269 * window.c (run_funs): New fun.
17270 (run_window_configuration_change_hook): Use it to run the buffer-local
17271 and the global part of the hook.
17272
17273 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17274 (unwind_format_mode_line): Restore selected window.
17275 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17276
172772008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17278
17279 * editfns.c (Fchar_equal): Check they are valid characters.
17280
17281 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17282
172832008-03-17 Andreas Schwab <schwab@suse.de>
17284
17285 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17286 against a charset.
17287
17288 * lisp.h (Fbuffer_list): Declare.
17289
172902008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 17291
aac0c6e3
MR
17292 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17293 handlebox_widget is != 0.
17294
172952008-03-16 Juri Linkov <juri@jurta.org>
17296
17297 * callint.c (Fcall_interactively): For interactive code letters
17298 'b' and 'B' put the buffer list into the list of default "future"
17299 values of the minibuffer.
17300
173012008-03-16 Andreas Schwab <schwab@suse.de>
17302
17303 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17304 modifiers.
17305
17306 * regex.c (re_match_2_internal): Correct matching of a charset
17307 against latin-1 characters.
17308
173092008-03-16 Kenichi Handa <handa@m17n.org>
17310
17311 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17312 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17313 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17314 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17315 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17316 CHAR_STRING_ADVANCE.
17317 (produce_chars): Fix for the case that the source and the
17318 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17319 instead of CHAR_STRING_ADVANCE.
17320 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17321 STRING_CHAR_ADVANCE.
17322
173232008-03-15 Andreas Schwab <schwab@suse.de>
17324
17325 * regex.c (re_match_2_internal): Correct matching of eight bit
17326 characters in unibyte strings.
17327
173282008-03-15 Martin Rudalics <rudalics@gmx.at>
17329
17330 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17331 at end of range when it coincides with the end of the buffer.
17332
173332008-03-14 Eli Zaretskii <eliz@gnu.org>
17334
17335 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17336
17337 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17338
173392008-03-14 Jason Rumney <jasonr@gnu.org>
17340
17341 * editfns.c (initial_tz): New variable.
17342 (syms_of_editfns): Initialize it.
17343 (Fset_time_zone_rule): Set it when first called.
17344 Use it when TZSTRING is nil.
17345
17346 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17347 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17348 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17349 (globals_of_w32fns): Initialize them.
17350 (compute_tip_xy): Use them to position tooltips.
17351
173522008-03-14 Glenn Morris <rgm@gnu.org>
17353
17354 * emacs.c (main): Revert previous change.
17355 (standard_args): Revert -internal-script back to -scriptload,
17356 and remove the long-option form.
17357
173582008-03-13 Glenn Morris <rgm@gnu.org>
17359
17360 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17361 Remove option -enable-font-backend.
17362
173632008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17364
17365 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17366
173672008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17368
17369 * xterm.c (x_connection_closed): For GTK: If this is the last
17370 terminal just exit without closing the display.
17371
173722008-03-11 Jason Rumney <jasonr@gnu.org>
17373
17374 * w32font.c (w32font_full_name): Use floor to round.
17375
f0131492 173762008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
17377
17378 * sound.c (alsa_configure): Declare vol at beginning of block.
17379
17380 * fontset.c (Ffontset_info): Remove extra semicolon.
17381
173822008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17383
17384 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17385 size of resulting string.
17386
173872008-03-10 Jason Rumney <jasonr@gnu.org>
17388
17389 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17390
173912008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17392
17393 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17394 Don't pretend as if characters with display property haven't been
17395 consumed for string-replacing-string case.
17396
173972008-03-08 Kim F. Storm <storm@cua.dk>
17398
17399 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17400 (get_next_display_element, next_element_from_string)
17401 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17402
174032008-03-08 Andreas Schwab <schwab@suse.de>
17404
17405 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17406
174072008-03-06 Jason Rumney <jasonr@gnu.org>
17408
17409 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17410 when charset not specified. Only translate ANSI to unicode when
17411 font_type is truetype.
17412 (w32font_coverage_ok): New function.
17413 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17414
174152008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17416
17417 * lread.c (Fread_char): Resolve modifiers.
17418 (Fread_char_exclusive): Likewise.
17419
17420 * character.c (char_resolve_modifier_mask): New function.
17421 (char_string): Use char_resolve_modifier_mask.
17422 (Fchar_resolve_modifiers): New function.
17423 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17424 function.
17425
174262008-03-04 Jason Rumney <jasonr@gnu.org>
17427
17428 * makefile.w32-in: Always include w32font.c in the build.
17429 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17430
174312008-03-04 Andreas Schwab <schwab@suse.de>
17432
17433 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17434 (versionclean): Likewise.
17435
174362008-03-04 Juanma Barranquero <lekktu@gmail.com>
17437
17438 * .cvsignore: Add oo.
17439
174402008-03-03 Andreas Schwab <schwab@suse.de>
17441
17442 * coding.c (decode_coding_object): Inhibit gap shrinking while
17443 decoding in place.
17444
174452008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17446
17447 * w32term.c: Remove unused include "gnu.h".
17448 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17449
17450 * gnu.h: Rename to ...
17451 * emacs-icon.h: ... this.
17452 * xterm.c: Use emacs-icon.h instead of gnu.h.
17453 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17454
174552008-03-03 Juanma Barranquero <lekktu@gmail.com>
17456
17457 * w32font.c: Include math.h.
17458
174592008-03-03 Jason Rumney <jasonr@gnu.org>
17460
17461 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17462 Compute options separately.
17463 (w32font_open_internal): Set glyph_idx before caching metrics.
17464
17465 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17466 Define if system headers don't.
17467 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17468 (w32font_encode_char): Don't declare here.
17469
17470 * w32font.c (Quniscribe, QCformat): New symbols.
17471 (syms_of_w32font): Define them.
17472 (w32font_has_char): Indicate uncertainty.
17473 (w32font_encode_char): Encode as glyph point. Make static.
17474 (recompute_cached_metrics): New function.
17475 (w32font_open_internal): Use it. Set font to use glyph points
17476 initially. Set format based on type of font.
17477 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17478 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17479 on it. Set format based on information available here.
17480 (add_font_entity_to_list): Identify backend based on opentype_only.
17481
174822008-03-02 Andreas Schwab <schwab@suse.de>
17483
17484 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17485
17486 * coding.c (decode_coding_big5, produce_chars):
17487 Fix typos in last change.
17488
174892008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17490
17491 * gnu.h: New icon.
17492
174932008-03-02 Kenichi Handa <handa@m17n.org>
17494
17495 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17496 `dos', don't decode '\r' if that is the last in the source.
17497 (decode_coding_utf_16, decode_coding_emacs_mule)
17498 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17499 (decode_coding_raw_text, decode_coding_charset): Likewise.
17500 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17501
175022008-03-01 Jason Rumney <jasonr@gnu.org>
17503
17504 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17505
175062008-03-01 Kim F. Storm <storm@cua.dk>
17507
17508 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17509
175102008-03-01 Jason Rumney <jasonr@gnu.org>
17511
17512 * w32font.c (w32font_full_name): New function.
17513 (w32font_open_internal): Use it.
17514
175152008-03-01 Kim F. Storm <storm@cua.dk>
17516
17517 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17518
175192008-03-01 Jason Rumney <jasonr@gnu.org>
17520
17521 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17522
175232008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17524
17525 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17526 xg_frame_resized when the event is for the edit widget.
17527
17528 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17529
17530 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17531 set_char_size.
17532 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17533 operations on widgets here. Just set frame size if needed.
17534 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17535 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17536 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17537 the whole frame.
17538 (xg_create_tool_bar): Move attachment of the tool bar to
17539 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17540 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17541
175422008-03-01 Jason Rumney <jasonr@gnu.org>
17543
17544 * w32fns.c (w32_msg_pump): Disable debug code.
17545
175462008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17547
17548 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17549
175502008-02-29 Chong Yidong <cyd@stupidchicken.com>
17551
17552 * xdisp.c (next_overlay_string): Don't set
17553 overlay_strings_at_end_processed_p if we're currently reading from
17554 a display string.
17555
175562008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17557
17558 * xdisp.c (get_overlay_strings_1): Fix typo.
17559
175602008-02-29 Chong Yidong <cyd@stupidchicken.com>
17561
17562 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17563
175642008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17565
17566 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17567
17568 * xdisp.c (display_mode_element): Cancel the previous change.
17569 (decode_mode_spec): Likewise.
17570 (handle_auto_composed_prop): Don't make composition if it->string
17571 is a string.
17572
175732008-02-27 Kim F. Storm <storm@cua.dk>
17574
17575 * lisp.h (GLYPH): Change type from int to struct with separate char
17576 and face_id members.
17577 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17578 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17579 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17580 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17581 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17582 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17583 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17584 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17585 handle new Lisp glyph code encoding, either an integer or a cons.
17586
17587 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17588 (GLYPH_ALIAS): Delete.
17589 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17590 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17591 (GLYPH_FROM_CHAR): Replace macro by ...
17592 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17593
17594 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17595 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17596 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17597 (GLYPH_INVALID_P): New macro.
17598 (spec_glyph_lookup_face): Update prototype.
17599
17600 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17601 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17602 new glyph code encoding.
17603 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17604 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17605
17606 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17607 Adapt to new glyph type and new glyph code encoding.
17608
17609 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17610
17611 * indent.c (current_column, current_column_1, Fmove_to_column)
17612 (compute_motion): Adapt to new glyph code encoding.
17613
17614 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17615
176162008-02-27 Chong Yidong <cyd@stupidchicken.com>
17617
17618 * process.c (wait_reading_process_output): Check for window
17619 changes caused by timers.
17620 Suggested by Johan Bockgård.
17621
176222008-02-27 Glenn Morris <rgm@gnu.org>
17623
17624 * emacs.c (USAGE1): Add `--disable-font-backend'.
17625
176262008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17627
17628 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17629 is made to the buffer.
17630
176312008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17632
17633 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17634 (face_at_string_position):
17635 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17636 (face_at_string_position):
17637 * xdisp.c (display_string, next_overlay_change):
17638 * buffer.h (overlays_at):
17639 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17640 Update callers.
17641
176422008-02-26 Chong Yidong <cyd@stupidchicken.com>
17643
17644 * editfns.c (Fformat): Doc fix.
17645
176462008-02-26 Juanma Barranquero <lekktu@gmail.com>
17647
17648 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17649 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17650 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17651
176522008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17653
17654 * buffer.c (Fbuffer_swap_text): New function.
17655 (syms_of_buffer): Defsubr it.
17656
176572008-02-25 Chong Yidong <cyd@stupidchicken.com>
17658
17659 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17660
176612008-02-25 Jason Rumney <jasonr@gnu.org>
17662
17663 * w32font.c (w32font_draw): Draw one character at a time when padding.
17664
176652008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17666
17667 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17668 Handle a nil arg. Use run_window_configuration_change_hook.
17669 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17670 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17671 Use run_window_configuration_change_hook.
17672
176732008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17674
17675 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17676 1-pixel width.
17677
176782008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17679
17680 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17681 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17682 if the glyph in the font is zero pixel with.
17683
17684 * dispextern.h (struct glyph_string): New member padding_p.
17685
17686 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17687
17688 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17689
17690 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17691
17692 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17693
17694 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17695
176962008-02-25 Jason Rumney <jasonr@gnu.org>
17697
17698 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17699
177002008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17701
17702 Allow fine-grained image-cache flushing.
17703 * dispextern.h (struct image): Add `dependencies' field.
17704 (clear_image_caches): Change arg to Lisp_Object.
17705 * image.c (make_image): Initialize `dependencies' field.
17706 (clear_image_cache): Change arg to allow fine-grained flushing.
17707 Perform the flush even if image-cache-eviction-delay is nil.
17708 (clear_image_caches): Change arg to Lisp_Object.
17709 (Fclear_image_cache): Expand meaning of the argument.
17710 (mark_image): Mark `dependencies' field.
17711 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17712 (lface_hash): Use XHASH rather than XFASTINT.
17713 (face_at_buffer_position): Fix int -> EMACS_INT position.
17714 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17715 (select_frame_for_redisplay): Remove code duplication.
17716 (redisplay_internal): Adapt arg to call to clear_image_caches.
17717
177182008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17719
17720 * s/vms4-0.h:
17721 * s/vms4-2.h:
17722 * s/vms4-4.h:
17723 * s/vms5-5.h: Remove, unused.
17724
17725 * s/irix5-2.h:
17726 * s/irix6-0.h:
17727 * s/riscos5.h:
17728 * s/mach-bsd4-3.h:
17729 * m/mips4.h: Remove files for obsolete systems.
17730
17731 * Makefile.in:
17732 * filelock.c:
17733 * unexmips.c:
17734 * m/hp9000s300.h:
17735 * m/iris4d.h:
17736 * s/aix3-1.h:
17737 * s/hpux.h:
17738 * s/msdos.h:
17739 * s/usg5-0.h:
17740 * s/usg5-2-2.h:
17741 * s/usg5-2.h:
17742 * s/usg5-3.h: Remove references to obsolete variables.
17743
17744 * s/irix5-0.h: Remove, move all the contents ...
17745 * s/irix6-5.h: ... here. Simplify.
17746 * config.in: Regenerate.
17747
177482008-02-24 Jason Rumney <jasonr@gnu.org>
17749
17750 * w32term.c (x_draw_glyph_string_background): Clear the background
17751 manually when cleartype is in use.
17752 (x_draw_glyph_string_foreground): Draw text transparently when
17753 cleartype is in use.
17754
17755 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17756 a font into it unless we have to.
17757
177582008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17759
17760 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17761 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 17762
aac0c6e3
MR
177632008-02-18 Jason Rumney <jasonr@gnu.org>
17764
17765 * w32fns.c (Fw32_shell_execute): Encode parameters.
17766
177672008-02-09 Eli Zaretskii <eliz@gnu.org>
17768
17769 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17770
177712008-02-05 Juanma Barranquero <lekktu@gmail.com>
17772
17773 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17774
177752008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17776
17777 * xterm.c (x_set_offset): Don't change the gravity if
17778 CHANGE_GRAVITY is -1.
17779
177802008-02-23 Chong Yidong <cyd@stupidchicken.com>
17781
17782 * fileio.c (auto_save_error_occurred): New var.
17783 (auto_save_error): Set it.
17784 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17785 error occurred.
17786
177872008-02-23 Eli Zaretskii <eliz@gnu.org>
17788
17789 * w32.c (globals_of_w32): Add initializations for
17790 g_b_init_get_sid_sub_authority and
17791 g_b_init_get_sid_sub_authority_count.
17792
177932008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17794
17795 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17796 (font_parse_xlfd): Use them for sanity check.
17797 (Finternal_set_font_style_table): Make sure the table is bijective.
17798
17799 Consolidate the image_cache to the terminal struct.
17800 * termhooks.h (P_): Remove redundant def.
17801 (struct terminal): New field `image_cache'.
17802 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17803 of FRAME_X_IMAGE_CACHE.
17804 * xterm.h (struct x_display_info): Remove image_cache field.
17805 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17806 * w32term.h (struct w32_display_info): Remove image_cache field.
17807 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17808 * macterm.h (struct mac_display_info): Remove image_cache field.
17809 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17810 * xterm.c (x_term_init):
17811 * w32term.c (w32_term_init):
17812 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17813 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17814 Remove declarations.
17815 (clear_image_caches, mark_image_cache): New declarations.
17816 * xfaces.c (clear_face_cache):
17817 * xdisp.c (redisplay_internal): Use clear_image_caches.
17818 * image.c (clear_image_cache): Don't check that a frame is on
17819 a window-system before checking if it shares the same cache.
17820 (clear_image_caches): New function.
17821 (Fclear_image_cache): Use it.
17822 (mark_image): Move from allo.c.
17823 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17824 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17825 (mark_object): Don't call mark_image_cache for frames.
17826 (mark_terminals): Call mark_image_cache.
17827
17828 * lisp.h (Fdelete_terminal): Declare.
17829
17830 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17831 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17832 wrong_type_argument.
17833
178342008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17835
17836 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17837 malayalam.el, and tamil.el. Add sinhala.el.
17838
178392008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17840
17841 * xterm.c (x_connection_closed): Consolidate identical tests.
17842 (x_delete_terminal): Don't crash if called via x_connection_closed.
17843
178442008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17845
17846 * xdisp.c (decode_mode_spec): New arg string.
17847 (display_mode_element): Adjust for the above change.
17848
178492008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17850
17851 * callint.c (Fcall_interactively): Use AREF.
17852
178532008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17854
17855 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17856
178572008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17858
17859 * xfns.c (Fx_show_tip): Set string to " " if empty.
17860
178612008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17862
17863 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17864 with Qt.
17865
178662008-02-17 Kenichi Handa <handa@m17n.org>
17867
17868 * ftfont.c (ftfont_shape): Return Lispy number.
17869
17870 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17871 for GCs.
17872 (Finternal_set_font_selection_order): Call font_update_sort_order
17873 only when enable_font_backend is set.
17874 (realize_x_face): Set face->font_info to that of default face only
17875 when enable_font_backend is set.
17876
17877 * xdisp.c (handle_composition_prop): Set it->c to the fist
17878 character of the composed region.
17879 (fill_composite_glyph_string): Set base_face->font_info to
17880 s->font_info. Get a face for ascii from base_face->ascii_face.
17881 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17882 with a face already decided.
17883 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17884 non-negative.
17885 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17886 call font_prepare_composition unconditionally.
17887
17888 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17889
17890 * xterm.h (struct x_display_info): New member font.
17891
17892 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17893 (x_set_mouse_face_gc, x_new_font): Likewise.
17894 (x_term_init): Setup display_info->font.
17895 (x_delete_terminal): Free display_info->font.
17896
17897 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17898
17899 * ftxfont.c (ftxfont_default_fid): Delete it.
17900 (ftxfont_open): Set xfont->fid to 0.
17901 (ftxfont_end_for_frame): Clear data specific to the frame and the
17902 font-driver.
17903
17904 * xftfont.c (xftfont_default_fid): Delete it.
17905 (xftfont_open): Set xfont->fid to 0.
17906
17907 * fontset.c (FONTSET_OBJLIST): New macro.
17908 (fontset_find_font): Update font-object list of the fontset.
17909 (free_realized_fontset): New function.
17910 (free_face_fontset): Call free_realized_fontset.
17911 (Ffont_info): Call font_close_object only when enable_font_backend
17912 is set.
17913
17914 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17915 [HAVE_NTGUI]: Include w32term.h.
17916 [MAC_OS]: Include macterm.ch.
17917 (font_otf_ValueRecord): Use make_number.
17918 (font_finish_cache): Fix handling of reference count.
17919 (font_clear_cache): Update num_fonts.
17920 (font_open_entity): Update smallest_char_width and
17921 smallest_font_height of the frame.
17922 (font_close_object): Update num_fonts.
17923 (Fclear_font_cache): Fix finding the target cache data.
17924
179252008-02-16 Glenn Morris <rgm@gnu.org>
17926
17927 * fontset.c (Finternal_char_font): Fix compilation warning.
17928
179292008-02-16 Eli Zaretskii <eliz@gnu.org>
17930
17931 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17932 instead of char arrays. Enlarge the size of array passed to
17933 get_token_information.
17934
17935 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17936 warnings.
17937
179382008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17939
17940 * .gdbinit: Don't set `args', it breaks gdb --args.
17941
179422008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17943
17944 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17945 within a narrowed buffer.
17946
179472008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17948
17949 * coding.c (decode_coding_object, encode_coding_object):
17950 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17951
179522008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17953
17954 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17955 hardcoding 1.
17956 (detect_coding_system):
17957 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17958 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17959 * insdel.c (insert_from_gap):
17960 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17961 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17962 (string_to_multibyte):
17963 * character.c (chars_in_text, multibyte_chars_in_text):
17964 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17965
17966 * character.h (FETCH_STRING_CHAR_ADVANCE)
17967 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17968 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17969 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17970
17971 * casefiddle.c (casify_region): Only call after-change and composition
17972 functions on the part of the region that was changed.
17973
17974 * keyboard.c (read_avail_input):
17975 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17976
179772008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17978
17979 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17980 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17981
179822008-02-11 Juanma Barranquero <lekktu@gmail.com>
17983
17984 * w32menu.c (push_submenu_start, push_submenu_end)
17985 (push_left_right_boundary, push_menu_pane, push_menu_item):
17986 * keyboard.c (read_key_sequence): Don't pass args with side effects
17987 to AREF, it fails when compiling with -DENABLE_CHECKING.
17988
179892008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17990
17991 * Makefile.in (${lispsource}international/charprop.el):
17992 Delete this target.
17993
17994 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17995 emacs-unicode-2.
17996
179972008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17998
17999 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18000
180012008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18002
18003 * frame.c (Qnoelisp): New symbol.
18004 (syms_of_frame): Initialize it.
18005 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18006 harmless Elisp code, from a strong `force' from x_connection_closed.
18007 * frame.h (Qnoelisp): Declare.
18008 * xterm.c (x_connection_closed): Pass `noelisp'.
18009
18010 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18011 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18012 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18013 rather than `int' for the type of `type'.
18014
180152008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18016
18017 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18018
18019 * Makefile.in (GNUC): Remove support for gcc-1.x.
18020
180212008-02-10 Richard Stallman <rms@gnu.org>
18022
18023 * lisp.h (ASET): Use AREF, not ASLOT.
18024
180252008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18026
18027 * lisp.h (ASET): Check bounds.
18028
180292008-02-10 Glenn Morris <rgm@gnu.org>
18030
18031 * buffer.c (mode-name): Doc fix.
18032
180332008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18034
18035 * Makefile.in:
18036 * emacs.c:
18037 * gmalloc.c:
18038 * keyboard.c:
18039 * lisp.h:
18040 * m/ibm370aix.h:
18041 * process.c:
18042 * regex.c:
18043 * s/hpux.h:
18044 * sysdep.c:
18045 * sysselect.h:
18046 * systty.h:
18047 * unexec.c:
18048 * w32term.c:
18049 * xsmfns.c:
18050 * xterm.c: Remove code that deals with obsolete variables.
18051
18052 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18053
18054 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18055 nothing else needs it anymore.
18056
180572008-02-09 Eli Zaretskii <eliz@gnu.org>
18058
18059 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18060 instead of unibyte_char_to_multibyte.
18061
180622008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18063
18064 * s/gnu-linux.h: Remove commented out code.
18065
18066 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18067
18068 * Makefile.in: Update what RMS says about using autoconf.
18069 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18070 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18071 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18072 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18073
180742008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18075
18076 * keymap.c (Fkey_description): Move side effect outside of macro call.
18077
18078 * xfaces.c (Finternal_make_lisp_face):
18079 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18080
18081 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18082 (syms_of_fontset): Use ASET.
18083
18084 * fns.c (concat): Move side effect outside of macro call.
18085 (hash_clear): Use ASET.
18086
180872008-02-08 Richard Stallman <rms@gnu.org>
18088
18089 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18090 If FORCE, and frame has a surrogate minibuffer for another frame,
18091 delete the other frame first.
18092
180932008-02-07 Timo Savola <timo.savola@iki.fi>
18094
18095 * xterm.c (x_detect_focus_change): Handle embed client message.
18096 (handle_one_xevent): Ditto.
18097 (handle_one_xevent): If embedded and we get a button press/release,
18098 request focus.
18099 (xembed_set_info, xembed_send_message): New functions.
18100 (x_make_frame_visible): Call xembed_set_info if embedded.
18101 (x_make_frame_invisible): Call xembed_set_info if embedded.
18102 (x_term_init): Initialize Xatom_XEMBED.
18103 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18104 (x_iconify_frame): Ditto.
18105
18106 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18107 (enum xembed_info, enum xembed_message, enum xembed_focus)
18108 (enum xembed_modifier, enum xembed_accelerator): New.
18109 (xembed_set_info, xembed_send_message): Declare.
18110 (FRAME_X_EMBEDDED_P): New.
18111
18112 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18113 gtk_plug_new.
18114
18115 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18116 window ID of a frame.
18117 (x_window): Reparent frame if embedded.
18118 (Fx_create_frame): Don't set border width if embedded.
18119
18120 * emacs.c (USAGE3): Add --parent-id.
18121 (standard_args): Ditto.
18122
181232008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18124
18125 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18126
181272008-02-07 Jim Meyering <meyering@redhat.com>
18128
18129 Use "do...while (0)", not "if (1)...else" in macro definitions.
18130 The latter provokes a warning from gcc about the empty else, when
18131 followed by ";". Also, without that trailing semicolon, it would
18132 silently swallow up any following statement.
18133 * syntax.h (SETUP_SYNTAX_TABLE)
18134 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18135 * buffer.h (DECODE_POSITION): Likewise.
18136 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18137 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18138 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18139 (FETCH_CHAR_ADVANCE): Likewise.
18140 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18141
181422008-02-07 Jim Meyering <meyering@redhat.com>
18143
18144 * lread.c [lint]: Don't include <sys/inode.h>.
18145
181462008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18147
18148 * xselect.c (x_handle_dnd_message):
18149 * xmenu.c (digest_single_submenu, xmenu_show):
18150 * xdisp.c (with_echo_area_buffer_unwind_data)
18151 (format_mode_line_unwind_data, unwind_format_mode_line)
18152 (display_menu_bar):
18153 * eval.c (Ffetch_bytecode):
18154 * doc.c (store_function_docstring):
18155 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18156 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18157 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18158
181592008-02-07 Kenichi Handa <handa@m17n.org>
18160
18161 * ftxfont.c (ftxfont_open): Don't set
18162 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18163
18164 * ftfont.c (ftfont_open): Fix previous change.
18165
181662008-02-06 Jason Rumney <jasonr@gnu.org>
18167
18168 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18169 Use cached metrics for ASCII characters.
18170 (w32font_open_internal): Don't set font's owning_frame.
18171 Cache metrics for ASCII characters.
18172
18173 * w32font.h (struct w32font_info): Add ascii_metrics.
18174 Remove owning_frame.
18175
181762008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18177
18178 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18179 to negative value.
18180
18181 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18182
18183 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18184
18185 * charset.c (syms_of_charset): Set QCtest and Qeq.
18186
181872008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18188
18189 * process.c (Fstart_process):
18190 * callproc.c (Fcall_process): Handle the case where
18191 Funhandled_file_name_directory returns nil.
18192
18193 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18194 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18195 * font.c (check_gstring): Use them and AREF to access the vector before
18196 we know it's really a gstring.
18197 (Ffont_shape_text): Fix typo.
46e722a9 18198 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
18199
18200 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18201 Declare.
18202
18203 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18204
182052008-02-05 Jason Rumney <jasonr@gnu.org>
18206
18207 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18208 Set smallest_font_height and smallest_char_width in display info.
18209
182102008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18211
18212 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18213
182142008-02-05 Miles Bader <miles@gnu.org>
18215
18216 * xfaces.c (get_lface_attributes, merge_named_face)
18217 (lookup_named_face, lookup_derived_face, realize_named_face):
18218 Revert 2008-02-01 change by cyd@stupidchicken.com.
18219
182202008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18221
18222 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18223 fallback fonts.
18224 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18225
182262008-02-04 Jason Rumney <jasonr@gnu.org>
18227
18228 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18229 set full_name.
18230 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18231
182322008-02-03 Jason Rumney <jasonr@gnu.org>
18233
18234 * makefile.w32-in (OBJ1): Include font.o here.
18235 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18236
182372008-02-02 Jason Rumney <jasonr@gnu.org>
18238
18239 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18240
182412008-02-01 Jason Rumney <jasonr@gnu.org>
18242
18243 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18244
18245 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18246
182472008-02-01 Andreas Schwab <schwab@suse.de>
18248
18249 * Makefile.in (shortlisp, lisp): Update for rename of
18250 ../lisp/language/myanmar.el.
18251
182522008-02-01 Chong Yidong <cyd@stupidchicken.com>
18253
18254 * xfaces.c (get_lface_attributes): Delete function.
18255 (merge_named_face, lookup_named_face, lookup_derived_face)
18256 (realize_named_face): Call lface_from_face_name directly, and use
18257 the fact that merge_face_vectors does not alter its FROM argument.
18258
182592008-02-01 Jason Rumney <jasonr@gnu.org>
18260
18261 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18262 input in the default locale. Handle non-Unicode multibyte input.
18263
182642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18265
18266 * fontset.c (reorder_font_vector): Exclude nil elements from the
18267 font group. Don't try multiple fonts.
18268 (fontset_font): Adjust for the above change.
18269 (Finternal_char_font): Return nil if the found font doesn't
18270 contain the character ch.
18271
18272 * Makefile.in (lisp, shortlisp): Add cham.el.
18273
182742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18275
18276 * font.h (FONTP): Make it return 1 also for a font-object.
18277
18278 * .gdbinit (xfontset): New function.
18279
18280 * font.c (font_find_for_lface): Check if the character C is
18281 supported or not only for the first font.
18282
18283 * fontset.c (reorder_font_vector): Fix typo.
18284 (fontset_find_font): Don't add a font-spec specifying a script.
18285 Use 0 (not Qt) for the indication of empty font-group. Change the
18286 format of RFONT-DEF. Return Qt if no font in the font-group
18287 support the character.
18288 (fontset_font): Adjust for the above change. If no font was
18289 found the character, remember that.
18290 (face_for_char): Adjust for the change of RFONT-DEF.
18291 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18292 no font for the target.
18293 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18294
182952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18296
18297 * font.c (font_load_for_face): Handle the case that the font in
18298 face->lface is a string.
18299
183002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18301
18302 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18303
183042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18305
18306 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18307 Fix previous change. If the frame is not on a window system,
18308 signal an error.
18309
183102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18311
18312 * coding.c (decode_coding_object, encode_coding_object): Adjust
18313 marker positions after conversion.
18314
18315 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18316
183172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18318
18319 * font.c (font_find_for_lface): Fix the handling of the return
18320 value of font_has_char.
18321 (Ffont_shape_text): Fix previous change.
18322
18323 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18324 (fontset_ref_and_range): Delete it.
18325 (fontset_find_font): Call char_table_ref_and_range instead of
18326 FONTSET_REF_AND_RANGE.
18327 (make_fontset): Don't setup font groups of Latin here.
18328 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18329 (new_fontset_from_font): Make the specified font the default for
18330 all Latin characters.
18331
183322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18333
18334 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18335 is on a window system before accessing the fontset of the frame.
18336
183372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18338
18339 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18340
18341 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18342 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18343
18344 * font.c (Ffont_shape_text): If the font driver doesn't have a
18345 shaper function, make zero-width glyphs to have at least one-pixel
18346 width. Fix setting of `to' field of glyphs.
18347
183482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18349
18350 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18351 glyphs.
18352
18353 * font.h (struct font_driver): Improve docstring of member `shape'.
18354
183552008-02-01 Kenichi Handa <handa@m17n.org>
18356
18357 * composite.c (syms_of_composite): Fix docstring of
18358 auto-composition-function.
18359
18360 * font.h (LGLYPH_SIZE): New macro.
18361
18362 * font.c (Ffont_fill_gstring): Stop filling when a character not
18363 supported by the font is found.
18364 (Ffont_shape_text): When a shape callback function returns nil,
18365 try at most two more times with larger gstring.
18366 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18367
18368 * xdisp.c (handle_auto_composed_prop): Change the argument to
18369 auto-composition-function.
18370
18371 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18372 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18373 Lispy glyph and store it in the lgstring.
18374
18375 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18376
18377 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18378
183792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18380
18381 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18382
18383 * fontset.c (Vfont_encoding_charset_alist): New variable.
18384 (syms_of_fontset): DEFVAR it.
18385 (reorder_font_vector, fontset_find_font): Optimize for the case of
18386 no need of reordering.
18387 (face_for_char): Map the charset property by
18388 Vfont_encoding_charset_alist.
18389
183902008-02-01 Jason Rumney <jasonr@gnu.org>
18391
18392 * w32font.c (logfonts_match): Don't check adstyle here.
18393 (font_matches_spec): Check here against physical font instead.
18394 (add_font_entity_to_list): Avoid some substitutions.
18395
18396 * font.c (font_parse_fcname): Default weight and slant to normal.
18397 (font_score): Prefer normal fonts if weight or slant unspecified.
18398 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18399 match freetype scores.
18400
184012008-02-01 Jason Rumney <jasonr@gnu.org>
18402
18403 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18404 font, as it may have been deleted.
18405 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18406 most common hyphenless variation.
18407 (logfonts_match): Check generic family.
18408 (font_matches_spec): Don't check generic family here.
18409 (fill_in_logfont): Set generic family based on adstyle.
18410
18411 * w32font.h (w32font_get_cache): Update declaration.
18412
184132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18414
18415 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18416
18417 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18418 If none of the new drivers are available, call font_update_drivers
18419 with the old drivers.
18420
18421 * w32font.c (w32font_get_cache): Adjust the argument type.
18422
18423 * xfont.c (xfont_get_cache): Adjust the argument type.
18424
18425 * font.h (struct font_driver): Change argument type of get_cache.
18426
18427 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18428
18429 * font.c (Ffont_get): Fix arguments to Fassoc.
18430 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18431 (font_clear_cache): New function.
18432 (font_list_entities, font_matching_entity): Use font_get_cache.
18433 (font_update_drivers): Call font_clear_cache when finishing a driver.
18434
18435 * fontset.c (fontset_find_font): Fix previous change.
18436
184372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18438
18439 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18440 dpyinfo->font_table.
18441 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18442 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18443
18444 * font.c (font_at): Handle the case that the arg C is negative.
18445 Handle the unibyte case.
18446 (Ffont_at): Call font_at with the arg C -1.
18447
18448 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18449 the position here, and call font_at with the arg C -1.
18450 Don't check the range of the existing composition at the point.
18451
184522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18453
18454 * fontset.c (fontset_add): New args charset_id and family.
18455 Change caller.
18456 (load_font_get_repertory, fontset_find_font): Assume that
18457 font_spec is always a font-spec object.
18458 (Fset_fontset_font): Always store a font-spec object in a fontset.
18459
18460 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18461 instead of get_property_and_range.
18462
184632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18464
18465 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18466 (xftfont_open): Don't keep locking face.
18467 (xftfont_close): Don't unlock face.
18468 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18469
18470 * fontset.c (fontset_find_font): Don't prefer a font of
18471 supplementary charset.
18472
184732008-02-01 Kenichi Handa <handa@m17n.org>
18474
18475 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18476 script, langsys_tag to langsys, new member script.
18477 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 18478 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
18479 listing to the script specified in that property. Fix arg to
18480 OTF_check_features.
18481
184822008-02-01 Jason Rumney <jasonr@gnu.org>
18483
18484 * w32font.h: New file.
18485
18486 * w32font.c: Include it.
18487 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18488 (w32font_open): Set owning_frame.
18489 (w32font_text_extents): Use owning_frame.
18490 (struct font_callback_data): Add opentype_only field.
18491 (add_font_entity_to_list): Use it to filter fonts.
18492 Don't check against full name.
18493 (w32font_list_internal): New function.
18494 (w32font_list): Use it.
18495 (w32font_match_internal): New function.
18496 (w32font_match): Use it.
18497 (w32font_open_internal): New function.
18498 (w32font_open): Use it.
18499 (w32font_get_cache, w32font_close, w32font_has_char)
18500 (w32font_encode_char, w32font_text_extents, w32font_draw):
18501 Make non-static.
18502
18503 * makefile.w32-in (w32font.o): Depend on w32font.h.
18504
185052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18506
18507 * charset.c (Fdefine_charset_internal): Record a supplementary
18508 charset at the tail of Vcharset_order_list.
18509
18510 * font.c (Ffont_shape_text): Fix the return value.
18511
18512 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18513
18514 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18515
185162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18517
18518 * ftfont.c (struct OpenTypeSpec): New struct.
18519 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18520 (ftfont_get_open_type_spec): New function.
18521 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18522
18523 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18524
185252008-02-01 Jason Rumney <jasonr@gnu.org>
18526
18527 * w32font.c (add_font_entity_to_list): Compare only the beginning
18528 of full name.
18529
185302008-02-01 Kenichi Handa <handa@m17n.org>
18531
18532 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18533 Never return HANDLED_RECOMPUTE_PROPS.
18534
185352008-02-01 Kenichi Handa <handa@m17n.org>
18536
18537 * font.c (font_gstring_produce): Delete it.
18538
18539 * composite.h (COMPOSITION_METHOD):
18540 Handle COMPOSITION_WITH_GLYPH_STRING.
18541
185422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18543
18544 * xfont.c (Qx): Delete.
18545 (syms_of_xfont): Don't initialize Qx.
18546
18547 * composite.h (enum composition_method):
18548 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18549
185502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18551
18552 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18553 (choose_face_font): Accept new form of font-spec.
18554
18555 * frame.h (font_driver_list): Declare it unconditionally.
18556 (struct frame): Define members font_driver_list and font_data_list
18557 unconditionally.
18558
18559 * fontset.c: Include "font.h" unconditionally.
18560 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18561 (Fset_fontset_font): Accept a font-spec object.
18562
18563 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18564 PIXEL_SIZE part a wild card.
18565
18566 * dispextern.h (struct glyph_string): Define members clip and
18567 num_clips unconditionally.
18568 (struct face): Define members font_info and extra unconditionally.
18569
18570 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18571 ftfont_info only when HAVE_LIBOTF is defined.
18572
185732008-02-01 Andreas Schwab <schwab@suse.de>
18574
18575 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18576 and end.
18577
185782008-02-01 Jason Rumney <jasonr@gnu.org>
18579
18580 * w32font.c (w32font_driver): Add new fields.
18581
185822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18583
18584 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18585 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18586 (LIBES): Add @M17N_FLT_CFLAGS@.
18587
18588 * composite.c (compose_text): Don't treat the new style
18589 composition specially.
18590
18591 * emacs.c (main): Call syms_of_font unconditionally.
18592
18593 * font.h (FONT_ENTITY_NOT_LOADABLE)
18594 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18595 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18596 (struct font_driver): New member shape.
18597 (font_registry_charsets): Extern it.
18598 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18599 (font_otf_capability, font_drive_otf): Delete their externs.
18600
18601 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18602 (font_charset_alist, font_registry_charsets): Move from xfont.c
18603 and rename.
18604 (font_prop_validate_otf): New function.
18605 (font_property_table): Register it for QCotf.
18606 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18607 (font_drive_otf): Delete.
18608 (font_prepare_composition): New arg F. Adjust for the change of
18609 lispy gstring.
18610 (font_find_for_lface): New arg C.
18611 (font_load_for_face): Adjust for the change of font_find_for_lface.
18612 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18613 lispy gstring.
18614 (Ffont_shape_text): New function.
18615 (Fopen_font): If the font size is not given, use 12-pixel.
18616 (Ffont_at): New arg STRING.
18617 (syms_of_font): Initalize font_charset_alist.
18618 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18619 conditionally.
18620
18621 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18622 fonts of the same font-spec. Change the format of RFONT-DEF.
18623 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18624 Adjust for the change of RFONT-DEF.
18625 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18626
18627 * ftfont.h: New file.
18628
18629 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18630 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18631 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18632 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18633 font_otf_capability and font_drive_otf, set ftfont_shape.
18634 (ftfont_list): Adjust for the change of :otf property value.
18635 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18636 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18637 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18638 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18639 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18640 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18641
18642 * w32term.c (x_draw_composite_glyph_string_foreground):
18643 Adjust for the change of lispy gstring.
18644
18645 * xdisp.c (handle_composition_prop): Adjust for the change of
18646 lispy gstring. Call a function for auto-composition with the
18647 third arg it->window.
18648 (fill_composite_glyph_string): Adjust for the change of lispy string.
18649 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18650
18651 * xfaces.c (set_font_frame_param): Adjust for the change of
18652 font_find_for_lface.
18653
18654 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18655 (xfont_registry_charsets): Likewise. Change caller.
18656 (syms_of_xfont): Don't handle x_font_charset_alist.
18657
18658 * xftfont.c: Include "ftfont.h".
18659 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18660 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18661 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18662 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18663 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18664 Set xftfont_driver.shape to xftfont_shape.
18665
18666 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18667 the change of lispy gstring.
18668
186692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18670
18671 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18672
186732008-02-01 Jason Rumney <jasonr@gnu.org>
18674
18675 * w32font.c (w32font_draw): Fill background manually.
18676
186772008-02-01 Jason Rumney <jasonr@gnu.org>
18678
18679 * font.c (Qfontp): Remove unused symbol.
18680 (QCantialias): New symbol.
18681 (syms_of_font): Define it.
18682 (font_property_table): Set a validator for QCantialias.
18683
18684 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18685 Define if not already.
18686 (QCfamily): Share with xfaces.c.
18687 (Qstandard, Qsubpixel, Qnatural): New symbols.
18688 (syms_of_w32font): Define them. Don't define QCfamily here.
18689 (w32_antialias_type, lispy_antialias_type): New functions.
18690 (w32_enumfont_pattern_entity): New arg requested_font.
18691 Set antialias parameter if non-default was requested.
18692 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18693
186942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18695
18696 * lread.c (read1): Undo the previous change.
18697
186982008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18699
18700 * frame.c (Fdelete_frame): Call font_update_drivers only when
18701 USE_FONT_BACKEND is defined.
18702
187032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18704
18705 * font.h (struct font_bitmap): New member bits_per_pixel.
18706 (struct font_driver): New members start_for_frame and end_for_frame.
18707 (struct font_data_list): New struct.
18708 (font_put_frame_data, font_get_frame_data): Extern them.
18709
18710 * frame.h (struct frame): New member font_data_list.
18711
18712 * font.c (font_update_drivers): Call driver->start_for_frame and
18713 driver->end_for_frame at proper timings.
18714 (font_put_frame_data, font_get_frame_data): New functions.
18715 (Ffont_spec): Add usage in the docstring.
18716
18717 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18718 (Fdelete_frame): Call font_update_drivers.
18719
18720 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18721 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18722 (xftfont_get_xft_draw): New function.
18723 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18724 (xftfont_end_for_frame): New function.
18725 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18726
18727 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18728 Change argument. Cache GCs in the per-frame data.
18729 (struct ftxfont_frame_data): New struct.
18730 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18731 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18732 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18733 (ftxfont_end_for_frame): New function.
18734 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18735
18736 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18737
187382008-02-01 Kenichi Handa <handa@m17n.org>
18739
18740 * xselect.c (Vselection_coding_system)
18741 (Vnext_selection_coding_system): Delete them.
18742 (syms_of_xselect): Don't declare selection-coding-system and
18743 next-selection-coding-system. They are declared in select.el.
18744
187452008-02-01 Jason Rumney <jasonr@gnu.org>
18746
18747 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18748
18749 * w32fns.c: Include imm.h.
18750 (get_composition_string_fn, get_ime_context_fn): New optional
18751 system functions.
18752 (globals_of_w32fns): Load them from imm32.dll.
18753 (ignore_ime_char): New flag.
18754 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18755 WM_IME_ENDCOMPOSITION messages.
18756
18757 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18758 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18759
187602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18761
18762 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18763 (READCHAR_REPORT_MULTIBYTE): New macro.
18764 (readchar): New 2nd arg MULTIBYTE.
18765 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18766 Make symbol's name multibyte according to the multibyteness of the
18767 source.
18768
187692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18770
18771 * xfaces.c (face_for_overlay_string): Call lookup_face with
18772 correct arguments (fix of synching with the trunk).
18773
187742008-02-01 Kenichi Handa <handa@m17n.org>
18775
18776 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18777 (font_prop_validate_non_neg, font_prop_validate_spacing):
18778 Delete argument prop_index.
18779 (font_property_table): Change arguments to validater. Change Callers.
18780 (font_lispy_object): Delete.
18781 (font_at): Use font_find_object instead fo font_lispy_object.
18782
187832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18784
18785 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18786 and file names.
18787
187882008-02-01 Jason Rumney <jasonr@gnu.org>
18789
18790 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18791 (font_matches_spec): Remove debug output.
18792 (add_font_entity_to_list): Avoid using substituted fonts.
18793
187942008-02-01 Jason Rumney <jasonr@gnu.org>
18795
18796 * doc.c (Fsnarf_documentation):
18797 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18798
187992008-02-01 Miles Bader <miles@gnu.org>
18800
18801 * dispextern.h (struct glyph_row): Only define "clip" field if
18802 HAVE_WINDOW_SYSTEM is defined.
18803
188042008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18805
18806 Fix up multi-tty merge.
18807
18808 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18809 and indentation.
18810
18811 * xfaces.c (free_realized_face, clear_face_gcs):
18812 Include font_done_for_face in the input_blocked section, just in case.
18813
18814 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18815 (get_char_face_and_encoding): Undo last change and remove the *other*
18816 duplicate definition (i.e. keep the one that's better scoped and that
18817 includes code for the font-backend).
18818
18819 * terminal.c (create_terminal): Default keyboard_coding to
18820 `no-conversion' and terminal_coding to `undecided'.
18821
18822 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18823
18824 * fontset.c (free_realized_fontsets): Check that the table entry does
18825 contain a fontset before trying to compare it to `base'.
18826
18827 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18828 syms_of_charset, and syms_of_coding earlier because init_window_once
18829 now needs Vcoding_system_hash_table to be setup.
18830
18831 * coding.h (default_buffer_file_coding): Remove.
18832
18833 * coding.c (default_buffer_file_coding): Remove.
18834 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18835 than ->symbol, and use the terminal-local coding system.
18836 (syms_of_coding): Don't setup the coding-systems that are not
18837 terminal-local.
18838 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18839
18840 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18841 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18842
18843 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18844 in chartab.c and were re-added here by mistake.
18845 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18846
18847 * doc.c (Fsnarf_documentation):
18848 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18849 src to etc.
18850
18851 * ChangeLog.10: Add mistakenly removed entry.
18852
188532008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18854
18855 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18856
188572008-02-01 Miles Bader <miles@gnu.org>
18858
18859 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18860 Add extra args to FACE_FOR_CHAR.
18861
188622008-02-01 Kenichi Handa <handa@m17n.org>
18863
18864 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18865 in sequence.
18866
18867 * chartab.c (map_sub_char_table, map_char_table): If the range
18868 contains just one character, call the function with that character
18869 even if the depth is not 3.
18870
188712008-02-01 Jason Rumney <jasonr@gnu.org>
18872
18873 * w32font.c (w32font_text_extents): Calculate metrics for the
18874 whole string.
18875
188762008-02-01 Jason Rumney <jasonr@gnu.org>
18877
18878 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18879
188802008-02-01 Jason Rumney <jasonr@gnu.org>
18881
18882 * w32term.c (x_set_glyph_string_clipping): Use
18883 get_glyph_string_clip_rects.
18884 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18885 Adjust for the change of struct glyph_string.
18886
18887 * w32font.c (w32font_draw): Do clipping here.
18888
188892008-02-01 Kenichi Handa <handa@m17n.org>
18890
18891 * xftfont.c (xftfont_draw): Adjust for the change of struct
18892 glyph_string.
18893
18894 * xterm.c (x_set_glyph_string_clipping): Use
18895 get_glyph_string_clip_rects.
18896 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18897 Adjust for the change of struct glyph_string.
18898
18899 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18900 the resulting clip(s}.
18901 (expose_overlaps): Add arg r. Change callers. Set it to
18902 row->clip temporarily.
18903 (expose_window): Redraw rows overlapping the exposed area.
18904
18905 * dispextern.h (struct glyph_row): New member clip.
18906 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18907 clip_height, new member clip, and num_clips.
18908
189092008-02-01 Kenichi Handa <handa@m17n.org>
18910
18911 * data.c (Fchar_or_string_p): Fix docstring.
18912
189132008-02-01 Kenichi Handa <handa@m17n.org>
18914
18915 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18916 create a temporary XftDraw object.
18917
189182008-02-01 Kenichi Handa <handa@m17n.org>
18919
18920 * font.c (Ffontp): Fix docstring.
18921
18922 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18923 strong evidence of ISO-2022.
18924
189252008-02-01 Kenichi Handa <handa@m17n.org>
18926
18927 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18928 SYNTAX_ENTRY_FOLLOW_PARENT.
18929
189302008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18931
18932 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18933 its type.
18934 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18935 Update to the new type of weak_hash_tables and next_weak.
18936
18937 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18938 a plain C pointer to Lisp_Hash_Table.
18939
18940 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18941 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18942 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18943 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18944 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18945 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18946 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18947 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18948 (GC_EQ): Remove since they've been identical to their non-GC_
18949 alter-egos ever since the markbit was eradicated.
18950
18951 * alloc.c:
18952 * buffer.c:
18953 * buffer.h:
18954 * data.c:
18955 * fileio.c:
18956 * filelock.c:
18957 * fns.c:
18958 * frame.h:
18959 * lisp.h:
18960 * macterm.c:
18961 * print.c:
18962 * process.c:
18963 * w32fns.c:
18964 * w32menu.c:
18965 * w32term.c:
18966 * xfns.c:
18967 * xmenu.c:
18968 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18969
189702008-02-01 Kenichi Handa <handa@m17n.org>
18971
18972 * chartab.c (map_sub_char_table): Make it work for the top-level
18973 char-table. Fix handling of parent char-table.
18974 (map_char_table): Adjust for the above change.
18975
189762008-02-01 Jason Rumney <jasonr@gnu.org>
18977
18978 * w32font.c (Qgdi): Rename from Qw32.
18979
189802008-02-01 Jason Rumney <jasonr@gnu.org>
18981
18982 * w32bdf.c (get_quoted_string): Make function static.
18983
189842008-02-01 Kenichi Handa <handa@m17n.org>
18985
18986 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18987 bigger ascent and descent than those of the font, use them as
18988 font's ascent and descent.
18989
189902008-02-01 Kenichi Handa <handa@m17n.org>
18991
18992 * Makefile.in (${lispsource}international/charprop.el): Move this
18993 target within "#ifdef HAVE_UNIDATA" and "#endif".
18994
189952008-02-01 Kenichi Handa <handa@m17n.org>
18996
18997 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18998 (shortlisp): Add ../lisp/language/tai-viet.el.
18999
190002008-02-01 Ulrich Mueller <ulm@gentoo.org>
19001
19002 * Makefile.in (${lispsource}international/charprop.el): Depend on
19003 temacs${EXEEXT}.
19004
190052008-02-01 Jason Rumney <jasonr@gnu.org>
19006
19007 * w32font.c (w32font_close): Delete the GDI font object.
19008
19009 * w32menu.c: Include character.h.
19010
19011 * w32proc.c: Likewise.
19012
19013 * w32select.c: Likewise.
19014
19015 * makefile.w32-in (w32proc.o): Depend on character.h.
19016
190172008-02-01 Jason Rumney <jasonr@gnu.org>
19018
19019 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19020
19021 * w32menu.c (syms_of_w32menu): Likewise.
19022
19023 * w32proc.c (syms_of_ntproc): Likewise.
19024
19025 * w32select.c (syms_of_w32select): Likewise.
19026
19027 * w32term.c (syms_of_w32term): Likewise.
19028
190292008-02-01 Jason Rumney <jasonr@gnu.org>
19030
19031 * w32font.c (w32font_draw): Delete brush after using it.
19032
190332008-02-01 Jason Rumney <jasonr@gnu.org>
19034
19035 * w32font.c (w32font_open): Don't set font_idx.
19036 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19037 to font settings.
19038 (w32font_draw): Fill background explicitly.
19039
190402008-02-01 Jason Rumney <jasonr@gnu.org>
19041
19042 * w32term.c (w32_initialize): Don't call w32font_initialize.
19043
19044 * w32font.c (w32font_info): Remove subranges.
19045 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19046 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19047 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19048 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19049 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19050 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19051 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19052 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19053 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19054 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19055 New symbols.
19056 (font_callback_data): New struct.
19057 (w32font_list, w32font_match): Use it.
19058 (w32font_open): Don't populate subranges.
19059 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19060 (w32font_encode_char): Always return unicode code-point as-is.
19061 (w32font_text_extents): Supply a transformation matrix to
19062 GetGlyphOutline. Never look up by glyph index. Avoid looping
19063 twice. Use unicode version of GetTexExtentPoint32 instead of
19064 glyph index version.
19065 (set_fonts_frame): Remove.
19066 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19067 set frame parameter. Use backward compatible fake foundries.
19068 Save generic family in extra slot under QCfamily. Make width slot
19069 constant. Save QCspacing value. Save list of scripts instead of
19070 binary subranges.
19071 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19072 (add_font_entity_to_list): Use font_callback_data struct. Filter
19073 unwanted fonts.
19074 (add_one_font_entity_to_list): Use font_callback_data struct.
19075 (w32_registry): Default to iso10646_1.
19076 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19077 string font registries. Don't fill in font name if it is a generic
19078 family name, fill family instead. Use spacing, family and script
19079 extra info to fill pitch, family and charset fields.
19080 (list_all_matching_fonts): Use font_callback_data struct.
19081 (unicode_range_for_char): Remove.
19082 (font_supported_scripts): New function.
19083 (w32font_initialize): Remove.
19084 (syms_of_w32font): Update which symbols are defined.
19085
190862008-02-01 Jason Rumney <jasonr@gnu.org>
19087
19088 * font.c (font_pixel_size): Reverse assq_no_quit args.
19089
19090 * w32term.h (FONT_WIDTH): Report max width, not average.
19091 (FONT_MAX_WIDTH): Remove.
19092 (FONT_AVG_WIDTH): New macro.
19093
19094 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19095 redefinition of FONT_WIDTH.
19096
19097 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19098 (w32_cache_char_metrics): Use FONT_WIDTH.
19099
19100 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19101
191022008-02-01 Jason Rumney <jasonr@gnu.org>
19103
19104 * w32font.c (w32font_open): Make lfHeight negative.
19105
19106 * w32fns.c (x_default_font_parameter): Use new style font name.
19107 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19108
191092008-02-01 Jason Rumney <jasonr@gnu.org>
19110
19111 * w32font.c (QCsubranges): New symbol.
19112 (w32font_open, w32font_has_char): Get subranges from subproperty
19113 of extra.
19114 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19115 (syms_of_w32font): Define :subranges symbol.
19116
19117 * font.c (font_put_extra): Expose externally.
19118
19119 * font.h (font_put_extra): Move declaration from font.c.
19120
19121 * font.c (Ffont_get): Use font driver to determine otf capability.
19122 (adjust_anchor): Check if driver defines anchor_point before using.
19123
19124 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19125 (w32font_draw): Use options.
19126 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19127 Fix detection of truetype fonts.
19128 (registry_to_w32_charset): Handle charsets other than iso8859-1
19129 expressed as lisp symbols.
19130 (w32_registry): Express charset as lisp symbol.
19131 (fill_in_logfont): Reverse pixel and point height logic.
19132 Don't set width here. Set quality to default.
19133
19134 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19135 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19136
19137 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19138 Remove redundant loop and allocation.
19139
19140 * makefile.w32-in (font.o, w32font.o): New objects.
19141 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19142 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19143
19144 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19145 STORE_XCHARB a valid l-value.
19146
19147 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19148 calculations for non-Truetype fonts.
19149 (x_draw_glyph_string): Sync with xterm.c.
19150 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19151 Remove redundant code.
19152 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19153
19154 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19155 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19156
19157 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19158 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19159
19160 * w32font.c: New file for w32 font backend.
19161
191622008-02-01 Kenichi Handa <handa@m17n.org>
19163
19164 * term.c: Don't include "buffer.h" twice.
19165
191662008-02-01 Kenichi Handa <handa@m17n.org>
19167
19168 * character.c (Funibyte_string): New function.
19169 (syms_of_character): Defsubr it.
19170
191712008-02-01 Jason Rumney <jasonr@gnu.org>
19172
19173 * w32term.c [USE_FONT_BACKEND]:
19174 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19175 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19176 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19177 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19178 (x_free_frame_resources): Sync with xterm.c.
19179
191802008-02-01 Andreas Schwab <schwab@suse.de>
19181
19182 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19183 char-table size.
19184
191852008-02-01 Kenichi Handa <handa@m17n.org>
19186
19187 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19188
191892008-02-01 Kenichi Handa <handa@m17n.org>
19190
19191 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19192 font_otf_gpos, add font_drive_otf.
19193
19194 * fontset.c (fontset_find_font): Pay attention to font size
19195 specified for a font.
19196 (reorder_font_vector): Check contents of font_def.
19197
19198 * font.c (struct otf_list): Delete it.
19199 (otf_list): Make it a lisp variable.
19200 (otf_open): Use lispy otf_list.
19201 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19202 (check_otf_features): New function.
19203 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19204 New functions.
19205 (font_drive_otf): New function merging font_otf_gsub and
19206 font_otf_gpos.
19207 (font_open_for_lface): New arg spec. Change argument order.
19208 (font_load_for_face): Adjust for the change of font_open_for_lface.
19209 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19210 Ffont_otf_gpos.
19211 (syms_of_font): Staticpro otf_list. Delete defsubr of
19212 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19213
19214 * xfaces.c (set_font_frame_param): Adjust for the change of
19215 font_open_for_lface.
19216
19217 * font.h (font_open_for_lface): Adjust prototype.
19218 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19219 member otf_drive.
19220 (font_otf_gsub, font_otf_gpos): Delete externs.
19221 (font_drive_otf): Extern it.
19222
192232008-02-01 Kenichi Handa <handa@m17n.org>
19224
19225 * font.c (font_at): If the window W is not on a window system,
19226 return Qnil.
19227
19228 * coding.c (produce_chars, encode_coding): Don't call
19229 insert_from_gap if no characters to produce.
19230
192312008-02-01 Kenichi Handa <handa@m17n.org>
19232
19233 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19234 Fclear_face_cache.
19235
19236 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19237
192382008-02-01 Miles Bader <miles@gnu.org>
19239
19240 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19241 Parse "--disable-font-backend" option.
19242 (standard_args): Add "--disable-font-backend" option.
19243
192442008-02-01 Kenichi Handa <handa@m17n.org>
19245
19246 * fontset.c (fontset_find_font): New function.
19247 (fontset_font): Use fontset_find_font.
19248 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19249 Register the specified font for all Latin characters.
19250 (new_fontset_from_font): Register the specified font for all Latin
19251 characters.
19252 (dump_fontset): For a realized fontset, include the base fontset
19253 name in the returned vector.
19254
192552008-02-01 Kenichi Handa <handa@m17n.org>
19256
19257 * character.h (CHAR_STRING): Cast C to unsigned on calling
19258 char_string.
19259
19260 * character.c (char_string): Type of arg C changed to unsigned.
19261 Signal an error if C is an invalid character code.
19262
19263 * editfns.c (general_insert_function, Fchar_to_string):
19264 Use CHARACTERP, not INTEGERP.
19265
192662008-02-01 Kenichi Handa <handa@m17n.org>
19267
19268 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19269 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19270
19271 * regex.c (analyse_first): Fix for multibyte characters in "case
19272 charset:" and "case categoryspec:".
19273
192742008-02-01 Andreas Schwab <schwab@suse.de>
19275
19276 * Makefile.in (LIBES): Move standard libraries to the end.
19277
192782008-02-01 Kenichi Handa <handa@m17n.org>
19279
19280 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19281 nonzero, don't shrink the buffer nextb.
19282
19283 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19284
19285 * coding.c (coding_alloc_by_making_gap): New arg offset.
19286 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19287 offset.
19288 (decode_coding_iso_2022): Update coding->safe_charsets.
19289 (decode_coding_gap): Temporarily set
19290 current_buffer->text->inhibit_shrinking to 1.
19291
192922008-02-01 Kenichi Handa <handa@m17n.org>
19293
19294 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19295 indexing into elements of s->cmp and s->char2b.
19296
192972008-02-01 Juanma Barranquero <lekktu@gmail.com>
19298
19299 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19300
193012008-02-01 Kenichi Handa <handa@m17n.org>
19302
19303 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19304 target_multibyte instead of multibyte.
19305 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19306 (bcmp_translate): Change the argument name from multibyte to
19307 target_multibyte.
19308
193092008-02-01 Kenichi Handa <handa@m17n.org>
19310
19311 These changes are to compile a regexp into a pattern that can be
19312 used both for multibyte and unibyte targets.
19313
19314 * Makefile.in (search.o): Depend on charset.h.
19315
19316 * character.c (multibyte_char_to_unibyte_safe): New function.
19317
19318 * search.c: Include "charset.h".
19319 (compile_pattern_1): Delete argument multibyte. Don't set
19320 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19321 (compile_pattern): Don't compare cp->buf.target_multibyte.
19322 Compare cp->buf.charset_unibyte.
19323 (compile_pattern): Set cp->buf.target_multibyte.
19324
19325 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19326
19327 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19328
19329 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19330 multibyte. Change callers.
19331 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19332 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19333 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19334 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19335 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19336 (regex_compile): Make the compiled pattern usable both for
19337 multibyte and unibyte targets.
19338 (analyse_first): Make the fastmap usable both for multibyte and
19339 unibyte targets.
19340 (TRANSLATE_VIA_MULTIBYTE): Delete.
19341 (re_match_2_internal): Pay attention to the case that the
19342 multibyteness of bufp and target may be different.
19343
193442008-02-01 Kenichi Handa <handa@m17n.org>
19345
19346 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19347 empty box occupy at least one column width.
19348
193492008-02-01 Miles Bader <miles@gnu.org>
19350
19351 * Makefile.in: Remove redundant HAVE_XFT clause.
19352
193532008-02-01 Kenichi Handa <handa@m17n.org>
19354
19355 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19356
193572008-02-01 Kenichi Handa <handa@m17n.org>
19358
19359 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19360 being nil.
19361
193622008-02-01 Kenichi Handa <handa@m17n.org>
19363
19364 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19365
193662008-02-01 Kenichi Handa <handa@m17n.org>
19367
19368 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19369
193702008-02-01 Kenichi Handa <handa@m17n.org>
19371
19372 * search.c (simple_search): Fix previous change.
19373
193742008-02-01 Kenichi Handa <handa@m17n.org>
19375
19376 * xftfont.c (ftfont_font_format): Extern declaration.
19377
19378 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19379
19380 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19381 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19382
19383 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19384 (ftfont_font_format): Fix previous change.
19385
19386 * font.h (Ffont_xlfd_name): EXFUN it.
19387
19388 * font.c (font_parse_xlfd): Fix the array size of `f'.
19389 (register_font_driver): Use EQ to compare driver->type.
19390
19391 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19392 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19393 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19394
193952008-02-01 Kenichi Handa <handa@m17n.org>
19396
19397 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19398 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19399
194002008-02-01 Kenichi Handa <handa@m17n.org>
19401
19402 * xfont.c (xfont_open): Set font->format.
19403
19404 * xftfont.c (xftfont_open): Set font->format.
19405
19406 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19407 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19408 (ftfont_open): Set font->format.
19409 (ftfont_font_format): New function.
19410
19411 * font.h (struct font): New member format.
19412
19413 * font.c (Qopentype): New variable.
19414 (syms_of_font): Defsym it.
19415 (Fquery_font): Change the format of the last element of the return
19416 value.
19417
194182008-02-01 Kenichi Handa <handa@m17n.org>
19419
19420 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19421 last resort.
19422
194232008-02-01 Kenichi Handa <handa@m17n.org>
19424
19425 * coding.c (detect_coding_charset): Fix detection of multi-byte
19426 charset.
19427
194282008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19429
19430 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19431
194322008-02-01 Kenichi Handa <handa@m17n.org>
19433
19434 * xdisp.c (get_next_display_element): Set it->face_id for the
19435 first component of a composition.
19436 (x_produce_glyphs): Check if the font is changed or not for composition.
19437
194382008-02-01 Kenichi Handa <handa@m17n.org>
19439
19440 * fontset.c (Qlatin): New variable.
19441 (syms_of_fontset): Define it as a lisp symbol.
19442 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19443
194442008-02-01 Kenichi Handa <handa@m17n.org>
19445
19446 * font.c (font_unparse_fcname): Pay attention to the case that
19447 some of font property is a null string.
19448
194492008-02-01 Kenichi Handa <handa@m17n.org>
19450
19451 * term.c: Include "composite.h".
19452 (encode_terminal_code): Output all components of composition.
19453 Check the size of encode_terminal_src.
19454 (produce_glyphs): For composition, call produce_composite_glyph.
19455 (append_composite_glyph, produce_composite_glyph): New functions.
19456
19457 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19458 is not found, get font_info from the current ascii face.
19459
194602008-02-01 Kenichi Handa <handa@m17n.org>
19461
19462 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19463 buffer-file-name to Qnil before calling insert_from_buffer.
19464
19465 * font.c (font_unparse_fcname): Pay attention to the case that
19466 foundry is a null string.
19467
194682008-02-01 Kenichi Handa <handa@m17n.org>
19469
19470 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19471
19472 * font.c (Qunicode_sip): New variable.
19473 (syms_of_font): Declare it as a Lisp symbol.
19474
19475 * font.h (Qunicode_sip): Extern it.
19476
194772008-02-01 Kenichi Handa <handa@m17n.org>
19478
19479 * composite.c (get_composition_id): Pay attention to TAB component.
19480
19481 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19482 TAB. Adjust for the change of s->char2b which always points to
19483 the first element of allocated memory.
19484
19485 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19486
19487 * xdisp.c (handle_composition_prop): Set it->c to the first
19488 non-TAB component.
19489 (fill_composite_glyph_string): Change argument.
19490 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19491 (x_produce_glyphs): Fix handling of left/right padding.
19492
194932008-02-01 Kenichi Handa <handa@m17n.org>
19494
19495 * coding.c (detect_coding_system): Fix for handling off
19496 inhibit_iso_escape_detection. Fix for the case that no coding
19497 system is defined for a specific coding category.
19498
194992008-02-01 Kenichi Handa <handa@m17n.org>
19500
19501 * font.c (font_matching_entity): Delete unused local var.
19502
19503 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19504 opening a font.
19505
19506 * fileio.c (Finsert_file_contents): On recovering a file, assume
19507 Unix-like eol.
19508 (choose_write_coding_system): On auto-saving a file, force
19509 Unix-like eol.
19510
19511 * coding.c (setup_coding_system): Fix setting of
19512 coding->common_flags based on eol_type.
19513 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19514 inherit from it.
19515
195162008-02-01 Kenichi Handa <handa@m17n.org>
19517
19518 * alloc.c (NSTATICS): Increas to 0x600.
19519
195202008-02-01 Kenichi Handa <handa@m17n.org>
19521
19522 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19523 (ftfont_list): Don't check :name property.
19524 (ftfont_match): New function.
19525 (ftfont_pattern_entity): If the pattern doesn't contain
19526 FC_SPACING, don't assume FC_MONO.
19527
19528 * font.h (struct font_driver): New member `match'.
19529 (font_update_drivers): Adjust prototype.
19530
19531 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19532 property of FONT.
19533 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19534 them unconditionally.
19535 (font_matching_entity): New function.
19536 (font_open_by_name): Try font_matching_entity if exact match is
19537 not found.
19538 (font_update_drivers): Delete the arg FONT. Return a list of
19539 actually used backends. Don't free faces, font caches here.
19540 Don't store data in frame parameters. Don't call x_set_font.
19541 (Ffont_spec): Store :name property as is.
19542 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19543 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19544 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19545 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19546 Call font->driver->otf_gsub instead of font_otf_gsub.
19547
19548 * frame.c (x_set_font_backend): Do more works that were done in
19549 font_update_drivers before.
19550
19551 * xfont.c (xfont_match): New function.
19552 (xfont_driver): Set xfont_driver.match to xfont_match.
19553 (xfont_draw): Set font in GC if necessary.
19554
19555 * ftxfont.c (ftxfont_match): New function.
19556 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19557
19558 * xftfont.c (xftfont_match): New function.
19559 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19560
195612008-02-01 Kenichi Handa <handa@m17n.org>
19562
19563 * font.h (struct font): New member scalable.
19564 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19565 (font_otf_gsub): Adjust prototype.
19566
19567 * font.c (font_otf_capability): Fix handling of the default langsys.
19568 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19569 Check the contents of SPEC.
19570 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19571 (check_gstring): New function.
19572 (REPLACEMENT_CHARACTER): New macro.
19573 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19574 glyph codes of GSTRING.
19575 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19576 (font_prepare_composition): Set cmp->glyph_len.
19577 (font_open_entity): Set font->scalable.
19578 (Ffont_get): Handle :otf property.
19579 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19580 functions.
19581 (Fquery_font): Use font->font.full_name.
19582 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19583 Sfont_otf_alternates.
19584
19585 * ftfont.c (ftfont_open): Set font->font.full_name and
19586 font->font.name properly. Fix calculation of font->font.height
19587 and font->min_width.
19588
19589 * ftxfont.c (ftxfont_create_gcs): New function.
19590 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19591 (ftxfont_draw_backgrond): Fix filling region.
19592 (ftxfont_default_fid): New function.
19593 (ftxfont_open): Set xfont->fid to the return value of
19594 ftxfont_default_fid.
19595 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19596 (ftxfont_done_face): Free only GCs that are created by
19597 ftxfont_create_gcs.
19598 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19599
19600 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19601 Clip to src->width, etc (not src->clip_XXX).
19602
19603 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19604 FontBackend frame parameter.
19605
196062008-02-01 Kenichi Handa <handa@m17n.org>
19607
19608 * font.h (struct font_driver_list): New member `on'.
19609 (Fclear_font_cache): EXFUN it.
19610 (font_update_drivers): Extern it.
19611
19612 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19613 (font_list_entities): Check driver_list->on.
19614 (register_font_driver): Initalize `on' member to 0.
19615 (font_update_drivers): New function.
19616 (Fclear_font_cache): Check driver_list->on.
19617
19618 * frame.h (Qfont_backend): Extern it.
19619 (x_set_font_backend): Extern it.
19620
19621 * frame.c (Qfont_backend): New variable.
19622 (frame_parms): New element for font-backend.
19623 (x_set_font_backend): New function.
19624
19625 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19626 FontBackend frame parameter.
19627 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19628 x_set_font_backend.
19629
19630 * xfont.c (xfont_list): Don't try listing by :name property if the
19631 name is not for XLFD.
19632
196332008-02-01 Kenichi Handa <handa@m17n.org>
19634
19635 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19636 (LGLYPH_SET_TO): New macros.
19637 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19638 element of G is vector or not.
19639 (font_at): Extern it.
19640
19641 * font.c: Include window.h.
19642 (font_lispy_object): New function.
19643 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19644 end of valid glyph.
19645 (font_close_object): Fix getting (struct font *).
19646 (font_at): New function.
19647 (Ffont_get): If FONT is a font-object, get entity from it.
19648 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19649 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19650 range check.
19651 (Ffont_at): New function.
19652 (syms_of_font): Defsubr Sfont_at.
19653
19654 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19655 before the entry for Qcomposition.
19656 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19657 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19658 the font in gstring.
19659 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19660 LGLYPH_FORM (g) to detect the end of valid glyph.
19661 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19662 we are composing with gstring.
19663
19664 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19665 Check if adjustment is vector or not.
19666
19667 * Makefile.in (font.o): Make it depends on window.h.
19668
196692008-02-01 Kenichi Handa <handa@m17n.org>
19670
19671 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19672 adjustment is vector or not.
19673
196742008-02-01 Miles Bader <miles@gnu.org>
19675
19676 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19677
196782008-02-01 Kenichi Handa <handa@m17n.org>
19679
19680 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19681 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19682 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19683
19684 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19685 (DEVICE_DELTA): Fix typo.
19686 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19687 LGLYPH format.
19688
19689 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19690 the change of LGLYPH format.
19691
196922008-02-01 Kenichi Handa <handa@m17n.org>
19693
19694 * ftfont.c (ftfont_list): Fix typo.
19695 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19696
196972008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19698
19699 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19700
19701 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19702 xftface_info is non-NULL.
19703
197042008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19705
19706 * ftfont.c (ftfont_list): Move misplaced #endif.
19707
197082008-02-01 Kenichi Handa <handa@m17n.org>
19709
19710 * ftfont.c (ftfont_list): Pay attention to the case that
19711 FC_CAPABILITY is not defined.
19712
197132008-02-01 Kenichi Handa <handa@m17n.org>
19714
19715 * xftfont.c (xftfont_open): Set charset related members to -1.
19716
19717 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19718 QCname.
19719 (ftfont_open): Set charset related members to -1.
19720
19721 * fontset.c (Votf_script_alist): New variable.
19722 (syms_of_fontset): Initialize it.
19723 (fontset_font): Delete unused variable.
19724
19725 * fontset.h (Votf_script_alist): Extern it.
19726
19727 * font.c (font_find_for_lface): Optimize code.
19728
19729 * font.h (font_close_object, font_merge_old_spec): Extern them.
19730
197312008-02-01 Kenichi Handa <handa@m17n.org>
19732
19733 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19734 (syms_of_font): Initialize them.
19735 (font_pixel_size): Allow float value in dpi.
19736 (font_prop_validate_type): Delete.
19737 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19738 Change caller.
19739 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19740 (font_prop_validate_extra): Delete.
19741 (font_prop_validate_spacing): New function.
19742 (font_property_table): Add elements for all known properties.
19743 (get_font_prop_index): Rename from check_font_prop_name. New
19744 argument FROM. Change caller.
19745 (font_prop_validate): Validate all known properties.
19746 (font_put_extra): Delete argument force. Change caller.
19747 (font_expand_wildcards): Make it static. Fix the way of shrinking
19748 the possible range.
19749 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19750 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19751 Change caller.
19752 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19753 (font_parse_fcname): Delete argument merge. Fix parsing of point
19754 size. Don't validate properties values here. Change caller.
19755 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19756 (font_open_by_name): Delete unused variable.
19757 (Ffont_spec): Likewise. Validate property values.
19758 (Ffont_match_p): New function.
19759
19760 * font.h (QCscalable): Extern it.
19761 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19762
19763 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19764
19765 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19766 (xfont_list_pattern): New function.
19767 (xfont_list): Use xfont_list_pattern.
19768
197692008-02-01 Kenichi Handa <handa@m17n.org>
19770
19771 * font.h (Flist_fonts): EXFUN it.
19772
197732008-02-01 Jason Rumney <jasonr@gnu.org>
19774
19775 * w32term.c (w32_initialize): Add back smoothing_type and
19776 smoothing_enabled definitions.
19777
197782008-02-01 Kenichi Handa <handa@m17n.org>
19779
19780 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19781 s->face->font on determining underline position.
19782
197832008-02-01 Kenichi Handa <handa@m17n.org>
19784
19785 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19786 (font_has_char): Accept font-object too.
19787 (font_find_for_lface): Try at first with a size specified in face.
19788
197892008-02-01 Kenichi Handa <handa@m17n.org>
19790
19791 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19792 font_open_by_name.
19793
197942008-02-01 Kenichi Handa <handa@m17n.org>
19795
19796 * font.h (QCspacing, QCdpi): Extern them.
19797 (enum font_spacing): New enum.
19798 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19799
19800 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19801 (QCspacing, QCdpi): New variables.
19802 (syms_of_font): Initialize them.
19803 (font_pixel_size): New function.
19804 (font_put_extra): New function.
19805 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19806 in FONT_EXTRA.
19807 (font_parse_fcname): Handle enumerated values (e.g. bold).
19808 Fix handling font size. Add QCname property that contains only
19809 unknown properties.
19810 (font_score): Change argument. Change caller. Pay attention to
19811 FONT_PIXEL_SIZE_QUANTUM.
19812 (font_sort_entites, font_list_entities, font_find_for_lface)
19813 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19814 (Ffont_spec): Add QCname property that contains only unknown properties.
19815
19816 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19817 include weight in listing pattern, instead check weight of each
19818 listed font. Don't include scalable in pattern. Pay attention to
19819 FONT_PIXEL_SIZE_QUANTUM.
19820
198212008-02-01 Kenichi Handa <handa@m17n.org>
19822
19823 * font.c (font_parse_fcname): Fix parsing of point-size.
19824 (font_unparse_fcname): Produce symbolic names for style properties.
19825 (font_list_entities): Handle float size correctly.
19826 (font_open_by_name): Prefer `normal' property values if the name
19827 doesn't specify them.
19828
19829 * fontset.c (Finternal_char_font): Use font_get_name, not
19830 Ffont_xlfd_name.
19831
19832 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19833 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19834 pattern. Don't force scalable.
19835
19836 * xftfont.c (xftfont_open): For generating a name, start from
19837 96-byte buffer.
19838
198392008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19840
19841 * frame.h (x_new_fontset2): Fix prototype.
19842
198432008-02-01 Kenichi Handa <handa@m17n.org>
19844
19845 * font.h (struct font_driver): Delete member parse_name.
19846 (font_match_p, font_get_spec, font_parse_fcname)
19847 (font_unparse_fcname): Extern them.
19848 (font_get_name): Adjust prototype.
19849
19850 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19851 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19852 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19853 unnecessary checks for weight, slant, and swidth.
19854 (font_parse_fcname): New function.
19855 (font_unparse_fcname): New function.
19856 (font_parse_name): New function.
19857 (font_match_p): New function.
19858 (font_get_name): Change return value to Lisp string.
19859 (font_get_spec): New function.
19860 (Qunspecified, Qignore_defface): Don't extern them.
19861 (font_find_for_lface): Assume that LFACE is fully specified.
19862 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19863 object, use it for FACE.
19864 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19865 driver->parse_name.
19866 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19867
19868 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19869 prototype.
19870
19871 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19872 argument F. Don't call Fnew_fontset. Instead, directly call
19873 make_fontset.
19874
19875 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19876
19877 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19878 of x_new_fontset2.
19879
19880 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19881 (Qsans__serif): New variables.
19882 (ftfont_generic_family_list): New variable.
19883 (syms_of_ftfont): Initialize the above variables.
19884 (ftfont_pattern_entity): Delete argument NAME.
19885 (ftfont_list_generic_family): New function.
19886 (ftfont_parse_name): Delete this function.
19887 (ftfont_list): Try generic family only when FcFontList found no font.
19888 (ftfont_list_family): Fix args to FcObjectSetBuild.
19889
19890 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19891 object in attrs[LFACE_FONT_INDEX].
19892 (set_lface_from_font_name): Cancel all changes for font-backend.
19893 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19894 function.
19895 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19896 font object in QCfont attribute.
19897 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19898 (realize_default_face) [USE_FONT_BACKEND]: Call
19899 set_lface_from_font_and_fontset.
19900
19901 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19902 "fixed", and signal error here if no suitable font was found.
19903
19904 * xfont.c (xfont_parse_name): Delete this function.
19905
19906 * xftfont.c (xftfont_open): Change coding style of error
19907 handling. Generate fontconfig's fontname pattern.
19908
19909 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19910 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19911
19912 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19913 Both args FONTSET and FONT_OBJECT must be existing ones.
19914
199152008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19916
19917 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19918
199192008-02-01 Kenichi Handa <handa@m17n.org>
19920
19921 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19922
19923 * font.h (struct font): Fix typo.
19924
19925 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19926 XLFD_XXX_INDEX.
19927 (enum xlfd_field_mask): New enum.
19928 (intern_font_field): Changed argument. Change caller. If digits
19929 are followed by non-digits, return a symbol.
19930 (font_expand_wildcards): New function.
19931 (font_parse_xlfd): Fix wildcard handling.
19932 (Ffont_spec): If :name is specified, reflect the info in the other
19933 properties.
19934
19935 * ftfont.c (ftfont_pattern_entity): Fix typo.
19936 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19937 locale.
19938
199392008-02-01 Kenichi Handa <handa@m17n.org>
19940
19941 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19942
19943 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19944 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19945 registry doesn't specify encoding part.
19946 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19947 (font_open_by_name): At first try parsing the name.
19948 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19949 as Lisp symbols.
19950
19951 * fontset.c (reorder_font_vector): Pay attention to the case that
19952 the 3rd element of font_def is nil.
19953 (fontset_font): For the default fontset, append one more fontset
19954 elements for a script-based font specification. Don't add script
19955 attribute on finding a font.
19956 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19957 font name.
19958 (fontset_ascii_font): If a font can't be opened, return nil.
19959
19960 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19961 (ftfont_pattern_entity): New function.
19962 (ftfont_get_cache): Assume that freetype_font_cache is already
19963 initialized.
19964 (ftfont_list): Handle the case that a file is specified in font
19965 name. Use ftfont_pattern_entity to generate entities.
19966 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19967 (syms_of_ftfont): Initialize freetype_font_cache.
19968
19969 * xftfont.c (xftfont_open): Make the font name fontconfig's
19970 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19971 (xftfont_close): Free font->font.name if not NULL.
19972
19973 * xfont.c (xfont_list): If script is specified for a font, return
19974 null_vector.
19975 (xfont_list_family): Declare argument type.
19976
19977 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19978 name, set LFACE_FONT (lface) to nil.
19979
19980 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19981 return Qnil.
19982
199832008-02-01 Kenichi Handa <handa@m17n.org>
19984
19985 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19986 (standard_args): Add "-enable-font-backend".
19987
199882008-02-01 Kenichi Handa <handa@m17n.org>
19989
19990 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19991 (struct xftdraw_list, xftdraw_list): Delete them.
19992 (register_xftdraw, check_xftdraw): Delete them.
19993 (xftfont_prepare_face): Don't call register_xftdraw.
19994 (xftfont_done_face): Don't call check_xftdraw.
19995 (xftfont_draw): Get background color only when with_background is
19996 nonzero.
19997
19998 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19999
200002008-02-01 Kenichi Handa <handa@m17n.org>
20001
20002 These changes are for the new font handling codes.
20003
20004 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20005 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20006 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20007 (FONTSRC, FONTOBJ): New variables.
20008 (obj): Add $(FONTOBJ).
20009 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20010 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20011 @LIBOTF_LIBS@.
20012 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20013 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20014
20015 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20016
20017 * character.h (Vscript_representative_chars): Extern it.
20018
20019 * character.c (Vscript_representative_chars): New variable.
20020 (syms_of_character): Declare it as a Lisp variable.
20021
20022 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20023 enable_font_backend is nonzero, accept the composition method
20024 COMPOSITION_WITH_GLYPH_STRING.
20025
20026 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20027 enumeration COMPOSITION_WITH_GLYPH_STRING.
20028
20029 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20030 members clip_x, clip_y, clip_width, and clip_height.
20031 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20032
20033 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20034 --enable-font-backend. Call syms_of_font.
20035
20036 * fns.c (assoc_no_quit): New function.
20037
20038 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20039 (face_for_font, new_fontset_from_font)
20040 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20041
20042 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20043 (fontset_font, fontset_ascii, face_for_char)
20044 (make_fontset_for_ascii_face, Ffont_info)
20045 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20046 is nonzero, use font-backend mechanism.
20047 (find_font_encoding): Make it non-static.
20048 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20049 New functions.
20050
20051 * frame.h (struct frame): New members resx and resy.
20052 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20053 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20054
20055 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20056 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20057
20058 * lisp.h (assoc_no_quit): Extern it.
20059
20060 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20061 Through out the file, use FONT_INFO_FROM_FACE instead of
20062 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20063 rif->per_char_metric.
20064 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20065 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20066 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20067 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20068 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20069 nonzero, use font-backend mechanism.
20070 (get_per_char_metric): New function.
20071
20072 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20073 (set_lface_from_font_name)
20074 (set_font_frame_param, free_realized_face)
20075 (prepare_face_for_display, clear_face_gcs)
20076 (Finternal_set_font_selection_order, realize_x_face)
20077 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20078 font-backend mechanism.
20079 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20080 (load_face_font) [USE_FONT_BACKEND]: Abort.
20081 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20082 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20083
20084 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20085 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20086 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20087 nonzero, register all available font drivers. Call
20088 x_default_font_parameter for deciding a font.
20089 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20090
20091 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20092 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20093 (x_set_glyph_string_clipping_exactly)
20094 (x_compute_glyph_string_overhangs)
20095 (x_draw_glyph_string_foreground)
20096 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20097 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20098 enable_font_backend is nonzero, use font-backend mechanism.
20099 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20100
201012008-02-01 Kenichi Handa <handa@m17n.org>
20102
20103 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20104 system_eol_type.
20105 (syms_of_coding): Initialize system_eol_type.
20106
20107 * process.c (Fset_process_coding_system): Inherit system's eol
20108 format if necessary.
20109
201102008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20111
20112 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20113
201142008-02-01 Kenichi Handa <handa@m17n.org>
20115
20116 * coding.c (decode_eol): Pay attention to buffer relocation in
20117 del_range_2.
20118 (decode_coding): Call decode_eol before restoring undo_list.
20119
201202008-02-01 Kenichi Handa <handa@m17n.org>
20121
20122 * charset.c (Fdefine_charset_internal): Fix setting of
20123 emacs_mule_bytes.
20124
201252008-02-01 Kenichi Handa <handa@m17n.org>
20126
20127 * keyboard.c (read_char): Check if C is a character or not before
20128 looking up Vkeyboard_translate_table.
20129
201302008-02-01 Kenichi Handa <handa@m17n.org>
20131
20132 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20133 condition to terminate the loop.
20134
201352008-02-01 Kenichi Handa <handa@m17n.org>
20136
20137 * coding.c (produce_composition): Compare charbuf[i] instead of
20138 args[i] against 0.
20139 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20140
201412008-02-01 Kenichi Handa <handa@m17n.org>
20142
20143 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20144 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20145 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20146 detect_coding.
20147 (emacs_mule_char): Handle old style (Emacs 20) component character
20148 of a composition.
20149 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20150 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20151 composition rule.
20152 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20153
201542008-02-01 Kenichi Handa <handa@m17n.org>
20155
20156 * coding.c (encode_coding_ccl): Allocate destination dynamically
20157 when necessary.
20158
201592008-02-01 Kenichi Handa <handa@m17n.org>
20160
20161 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20162 the loop. When quitted, show a proper error message.
20163
201642008-02-01 Kenichi Handa <handa@m17n.org>
20165
20166 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20167 src->clip_head and src->clip_tail temporarily instead of src->hl.
20168
20169 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20170 character sequence.
20171 (Fccl_execute_on_string): Use ASET, not XSET.
20172
201732008-02-01 Kenichi Handa <handa@m17n.org>
20174
20175 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20176
201772008-02-01 Kenichi Handa <handa@m17n.org>
20178
20179 * coding.c (decode_coding): Fix the condition of terminating the
20180 decoding loop.
20181
201822008-02-01 Kenichi Handa <handa@m17n.org>
20183
20184 * data.c (Faset): On setting a character bigger than 255 in a
20185 unibyte string, signal an error instead of make the string multibyte.
20186
201872008-02-01 Kenichi Handa <handa@m17n.org>
20188
20189 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20190 made by a mapping table.
20191
201922008-02-01 Kenichi Handa <handa@m17n.org>
20193
20194 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20195 not.
20196 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20197 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20198
20199 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20200 s->face is NULL or not.
20201
202022008-02-01 Kenichi Handa <handa@m17n.org>
20203
20204 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20205 (x_draw_glyph_string): Fix drawing of right_overhang and
20206 left_overhang around/on cursor.
20207
20208 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20209
202102008-02-01 Kenichi Handa <handa@m17n.org>
20211
20212 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20213
202142008-02-01 Kenichi Handa <handa@m17n.org>
20215
20216 * coding.c (Fdefine_coding_system_internal)
20217 (Fdefine_coding_system_alias): Avoid a duplicated element in
20218 Vcoding_system_alist.
20219
202202008-02-01 Kenichi Handa <handa@m17n.org>
20221
20222 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20223
20224 * coding.c (Qcoding_system_define_form): New variable.
20225 (syms_of_coding): Intern and staticpro it.
20226 (Fcoding_system_p): Check Qcoding_system_define_form.
20227 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20228
20229 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20230 Fcoding_system_p.
20231 (CHECK_CODING_SYSTEM): If ID is not available, call
20232 Fcheck_coding_system.
20233 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20234 Try also Fcheck_coding_system.
20235
202362008-02-01 Kenichi Handa <handa@m17n.org>
20237
20238 * coding.c (code_conversion_restore): GCPRO arg.
20239
202402008-02-01 Kenichi Handa <handa@m17n.org>
20241
20242 * character.c (lisp_string_width): Check multibyteness of STRING.
20243
202442008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20245
20246 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20247 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20248 (decode_mac_font_name): Use decode_coding_c_string instead of
20249 decode_coding.
20250 (x_load_font): Initialize fontp->fontset to -1. Set
20251 fontp->encoding_type.
20252
202532008-02-01 Kenichi Handa <handa@m17n.org>
20254
20255 * search.c (search_buffer): Give up BM search on case-fold-search
20256 if one of a target character has a case-equivalence of different
20257 byte length even if that target charcter is an ASCII.
20258 (simple_search): Fix calculation of byte length of matched text.
20259 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20260
202612008-02-01 Kenichi Handa <handa@m17n.org>
20262
20263 * coding.c (decode_coding): Fix handling of invalid bytes.
20264
202652008-02-01 Kenichi Handa <handa@m17n.org>
20266
20267 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20268 Unicode characters.
20269
202702008-02-01 Kenichi Handa <handa@m17n.org>
20271
20272 * coding.c (encode_coding_object): If a pre-write-conversion
20273 function makes a new buffer, kill it.
20274
202752008-02-01 Kenichi Handa <handa@m17n.org>
20276
20277 * coding.c (QCascii_compatible_p): New variable.
20278 (syms_of_coding): Initialize it.
20279 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20280 calling string_char.
20281 (record_conversion_result): Add `default:' case.
20282 (coding_charset_list): Delete unused variable `coding_type'.
20283 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20284 property in the plist of the coding system.
20285 (Fcoding_system_put): Check QCascii_compatible_p.
20286
202872008-02-01 Miles Bader <miles@gnu.org>
20288
20289 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20290 removed calculation of frame `f', as it's now used.
20291
202922008-02-01 Kenichi Handa <handa@m17n.org>
20293
20294 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20295 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20296 (UNIDATA): New variable.
20297 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20298 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20299 $(RUN_TEMACS) unconditionally.
20300
203012008-02-01 Kenichi Handa <handa@m17n.org>
20302
20303 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20304 (admindir): New variable.
20305 ($(lispsource)international/charprop.el): New target.
20306
203072008-02-01 Miles Bader <miles@gnu.org>
20308
20309 * character.c (chars-in-region): Remove obsolete function.
20310 (syms_of_character): Remove its initialization.
20311
203122008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20313
20314 * w32select.c (validate_coding_system)
20315 (setup_windows_coding_system): New functions.
20316 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20317 setup_windows_coding_system.
20318 (setup_config, Fw32_get_clipboard_data): Use
20319 validate_coding_system.
20320 (Fx_selection_exists): Move call to setup_config to a place
20321 where signals are allowed.
20322
20323 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20324 (Fcheck_coding_system): Add declarations.
20325
203262008-02-01 Kenichi Handa <handa@m17n.org>
20327
20328 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20329
203302008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20331
20332 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20333 string as the second argument for x_new_fontset.
20334
203352008-02-01 Kenichi Handa <handa@m17n.org>
20336
20337 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20338 (encode_coding_object): Use safe_call instead of call2.
20339
203402008-02-01 Kenichi Handa <handa@m17n.org>
20341
20342 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20343
20344 * Makefile.in (lisp): Include charprop.el.
20345
203462008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20347
20348 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20349 Not sure if it's unnecessary.
20350
203512008-02-01 Steven Tamm <steventamm@mac.com>
20352
20353 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20354 some possibly unnecessary fontset checking code that crashed
20355 when creating a new frame.
20356
203572008-02-01 Kenichi Handa <handa@m17n.org>
20358
20359 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20360 lookup_face.
20361
20362 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20363
20364 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20365
203662008-02-01 Kenichi Handa <handa@m17n.org>
20367
20368 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20369 (coding_charset_list): New function.
20370
20371 * coding.h (coding_charset_list): Extern it.
20372
203732008-02-01 Kenichi Handa <handa@m17n.org>
20374
20375 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20376 concatenation of family and registry.
20377
203782008-02-01 Kenichi Handa <handa@m17n.org>
20379
20380 * character.h (BYTE8_STRING): Fix typo.
20381
20382 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20383 string to multibyte (sync to HEAD).
20384
20385 * casefiddle.c (casify_region): Handle changes in byte-length
20386 using replace_range_2 (sync to HEAD).
20387
203882008-02-01 Andreas Schwab <schwab@suse.de>
20389
20390 * chartab.c (map_char_table): GCPRO table and arg.
20391
203922008-02-01 Kenichi Handa <handa@m17n.org>
20393
20394 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20395 already at limit.
20396
203972008-02-01 Kenichi Handa <handa@m17n.org>
20398
20399 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20400 instead of fast_c_string_match_ignore_case.
20401 (find_font_encoding): Change argument to Lisp_Object. Use
20402 fast_string_match_ignore_case instead of
20403 fast_c_string_match_ignore_case. Change caller.
20404
204052008-02-01 Kenichi Handa <handa@m17n.org>
20406
20407 * xdisp.c (get_next_display_element): In unibyte case, decide to
20408 display in octal form by checking a character by
20409 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20410
20411 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20412
20413 * character.c (unibyte_has_multibyte_table): New variable.
20414
20415 * character.h (unibyte_has_multibyte_table): Extern it.
20416 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20417
204182008-02-01 Kenichi Handa <handa@m17n.org>
20419
20420 * coding.c (encode_coding_iso_2022): Fix handling of charset
20421 annotation.
20422
204232008-02-01 Kenichi Handa <handa@m17n.org>
20424
20425 * coding.c (setup_coding_system): If coding_system is nil, use
20426 Qundecided.
20427 (Fterminal_coding_system): Return nil if terminal coding system is
20428 `undecided'.
20429 (syms_of_coding): Define coding-system `undecided' here. Setup
20430 terminal_coding as `undecided'.
20431
204322008-02-01 Kenichi Handa <handa@m17n.org>
20433
20434 * xdisp.c (message_dolog, set_message_1): Call
20435 unibyte_char_to_multibyte with arg type int.
20436
20437 * lread.c (read1): Fix reading of a char-table.
20438
20439 * print.c (print_object): Include sub char-table in circularities
20440 detection.
20441
204422008-02-01 Kenichi Handa <handa@m17n.org>
20443
20444 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20445 Append the found sequences in car of ARGS instead of prepending.
20446
204472008-02-01 Kenichi Handa <handa@m17n.org>
20448
20449 * fileio.c (report_file_error): Make a unibyte string from
20450 strerror (errorno).
20451 (Fsubstitute_in_file_name): Fix the arg to
20452 unibyte_char_to_multibyte. It is evaluated twice.
20453
204542008-02-01 Kenichi Handa <handa@m17n.org>
20455
20456 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20457
204582008-02-01 Kenichi Handa <handa@m17n.org>
20459
20460 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20461 BOM is not found.
20462 (detect_coding, detect_coding_system): Optimization for ISO-2022
20463 when no 8-bit data is found.
20464
204652008-02-01 Jason Rumney <jasonr@gnu.org>
20466
20467 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20468
204692008-02-01 Kenichi Handa <handa@m17n.org>
20470
20471 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20472 CHARS.
20473
204742008-02-01 Steven Tamm <steventamm@mac.com>
20475
20476 * macterm.c (mac_encode_char): Add charset argument and update
20477 to use encoding_type.
20478 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20479 switch to pure fontset.
20480 (decode_mac_font_name): Temporarily remove decoding.
20481 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20482 (x_load_font): Temporarily remove encoding.
20483
204842008-02-01 Kenichi Handa <handa@m17n.org>
20485
20486 * xfaces.c (Fface_font): If frame is not on a window system,
20487 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20488 refer to face->font.
20489 (split_font_name_into_vector, build_font_name_from_vector)
20490 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20491 when HAVE_WINDOW_SYSTEM is defined.
20492
204932008-02-01 Kenichi Handa <handa@m17n.org>
20494
20495 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20496 (x_produce_glyphs): Fix setting of members of cmp in case
20497 cmp->glyph_len is zero.
20498
20499 * fontset.c (Fset_fontset_font): Fix docstring.
20500 (Ffontset_info): Make it backward compatible. New arg ALL.
20501
205022008-02-01 Kim F. Storm <storm@cua.dk>
20503
20504 * process.c (read_process_output): Grow decoding_buf when needed;
20505 this could cause a crash in allocate_string and compact_small_strings.
20506
205072008-02-01 Kenichi Handa <handa@m17n.org>
20508
20509 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20510
205112008-02-01 Kenichi Handa <handa@m17n.org>
20512
20513 * coding.c (setup_coding_system): Set coding->common_flags
20514 correctly for raw-text.
20515 (consume_chars): On encoding unibyte text by raw-text, don't check
20516 multibyte form.
20517 (encode_coding): On encoding by raw-text, never use translation tables.
20518
20519 * fileio.c (e_write): Short cut for the case of no encoding.
20520
205212008-02-01 Kenichi Handa <handa@m17n.org>
20522
20523 * coding.c (detect_coding, detect_coding_system): Delete unused
20524 variables.
20525
205262008-02-01 Kenichi Handa <handa@m17n.org>
20527
20528 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20529 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20530
205312008-02-01 Kenichi Handa <handa@m17n.org>
20532
20533 * coding.c (Ffind_coding_systems_region_internal): Include
20534 raw-text and no-conversion in the result.
20535
205362008-02-01 Kenichi Handa <handa@m17n.org>
20537
20538 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20539 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20540 FONT_DEF.
20541 (font_def_arg, add_arg, from_arg, to_arg): New args.
20542 (set_fontset_font): Change argument.
20543 (Fset_fontset_font): Fix for the case that TARGET is a script
20544 name and charset name.
20545 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20546
205472008-02-01 Kenichi Handa <handa@m17n.org>
20548
20549 * fontset.c (fontset_font): Rename from fontset_face. Change return
20550 value.
20551 (face_suitable_for_char_p, face_for_char): Adjust for the change
20552 of fontset_font.
20553 (make_fontset_for_ascii_face): Fix setting of the fontset element
20554 for ASCII.
20555 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20556 to get a font name.
20557 (Ffontset_info): Adjust for the change of fontset_font.
20558
20559 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20560
20561 * character.h (LEADING_CODE_LATIN_1_MIN)
20562 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20563
205642008-02-01 Kenichi Handa <handa@m17n.org>
20565
20566 * editfns.c (check_translation): New function.
20567 (Ftranslate_region_internal): Handle M:N mapping.
20568
205692008-02-01 Kenichi Handa <handa@m17n.org>
20570
20571 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20572
205732008-02-01 Kenichi Handa <handa@m17n.org>
20574
20575 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20576 goto invalid_code.
20577 (decode_coding_iso_2022): Fix handling of invalid designation.
20578
20579 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20580 after calling code_conversion_save.
20581
205822008-02-01 Kenichi Handa <handa@m17n.org>
20583
20584 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20585
20586 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20587
20588 * fontset.c: Include "intervals.h".
20589 (fontset_face): Fix comparing of Lisp_Objects.
20590 (free_face_fontset, new_fontset_from_font_name): Fix
20591 Lisp_Object/int mixup.
20592
20593 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20594
20595 * coding.c: Add many prototypes for static functions.
20596 (get_translation_table): Allow max_lookup to be NULL.
20597 (decode_coding, Ffind_coding_systems_region_internal)
20598 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20599 get_translation_table with max_lookup NULL.
20600
206012008-02-01 Kenichi Handa <handa@m17n.org>
20602
20603 * coding.c (get_translation_table): Declare it as Lisp_Object.
20604 (LOOKUP_TRANSLATION_TABLE): New macro.
20605 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20606 instead of CHAR_TABLE_REF.
20607
206082008-02-01 Kenichi Handa <handa@m17n.org>
20609
20610 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20611 annotation data format.
20612 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20613 Change arguments FROM and TO to single argument NCHARS. Change caller.
20614 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20615 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20616 (decode_coding_ccl, decode_coding_charset): Pay attention to
20617 coding->charbuf_used.
20618 (get_translation): New function.
20619 (produce_chars): New arguments translation_table and last_block.
20620 Translate characters here. Return number of carryover chars.
20621 Change caller.
20622 (produce_composition): New argument pos. Change caller.
20623 Adjust for the change of annotation data format.
20624 (produce_charset, produce_annotation): Likewise.
20625 (decode_coding, encode_coding): Don't call translate_chars.
20626 (consume_chars): New arg translation_table. Change caller.
20627 (translate_chars): Delete.
20628 (syms_of_coding): Make translation-table's number of extra slots 2.
20629
206302008-02-01 Kenichi Handa <handa@m17n.org>
20631
20632 * search.c (simple_search): Fix setting this_pos_byte in backward
20633 search.
20634
20635 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20636 byte sequence.
20637 (detect_coding_ccl): Fix setting of the variable valids.
20638
206392008-02-01 Kenichi Handa <handa@m17n.org>
20640
20641 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20642
20643 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20644
20645 * editfns.c (Ftranslate_region_internal): Rename from
20646 Ftranslate_region. Accept a char-table in TABLE.
20647 (syms_of_editfns): Defsubr Stranslate_region_internal.
20648
20649 * xfaces.c (set_lface_from_font_name): If a font is specified for
20650 a frame, generate a fontset from the font.
20651 (build_scalable_font_name): If the scalable font is requested for
20652 a specific size, don't change that size.
20653 (try_font_list): Try a scalable font also in the case that a
20654 pattern string is specified.
20655
206562008-02-01 Kenichi Handa <handa@m17n.org>
20657
20658 * xfaces.c (Fface_font): New optional arg CHARACTER.
20659
206602008-02-01 Kenichi Handa <handa@m17n.org>
20661
20662 * charset.h (CHARSET_OFFSET): New macro.
20663
206642008-02-01 Kenichi Handa <handa@m17n.org>
20665
20666 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20667
20668 * fontset.c (fontset_face): Handle the case that repertory is a
20669 char-table.
20670 (find_font_encoding): Return nil for unknown encoding.
20671 (Fset_fontset_font): Ignore a font of unknown encoding.
20672
206732008-02-01 Kenichi Handa <handa@m17n.org>
20674
20675 * keymap.c (describe_vector): Handle default value of a char table.
20676
20677 * fontset.c (fontset_face): Handle fallback fonts correctly.
20678 (Ffontset_info): Return infomation about fallback fonts.
20679
206802008-02-01 Kenichi Handa <handa@m17n.org>
20681
20682 * fontset.c (FONTSET_DEFAULT): New macro.
20683 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20684 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20685 the case that it is nil.
20686 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20687 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20688
20689 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20690 subset or superset.
20691
206922008-02-01 Kenichi Handa <handa@m17n.org>
20693
20694 * emacs.c (main): Call init_charset after syms_of_XXX.
20695
20696 * charset.c (Vcharset_map_directory): Delete.
20697 (Vcharset_map_path): New variable.
20698 (load_charset_map_from_file): Use Vcharset_map_path instead.
20699 (init_charset): Initialize Vcharset_map_path.
20700 (syms_of_charset): Delete declaration of "charset-map-directory",
20701 add declaration of "charset-map-path".
20702
207032008-02-01 Kenichi Handa <handa@m17n.org>
20704
20705 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20706 ASCII only string.
20707
20708 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20709
20710 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20711 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20712
207132008-02-01 Kenichi Handa <handa@m17n.org>
20714
20715 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20716
20717 * coding.c (QCmnemonic, QCdefalut_char)
20718 (QCdecode_translation_table, QCencode_translation_table)
20719 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20720 (get_translation_table): Return a list of translation tables if
20721 necessary.
20722 (decode_coding): Call get_translation_table with ENCODEP 0.
20723 (char_encodable_p): If translation_table is non-nil, always call
20724 translate_char.
20725 (Fdefine_coding_system_internal): Accept list of translation
20726 tables as :encode-translation-table and :decode-translation-table.
20727 (Fcoding_system_put): New function.
20728 (syms_of_coding): Declare new symbols. Defsubr
20729 Scoding_system_put.
20730 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20731 typically JISX0212.
20732
20733 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20734 when the charset is superset type.
20735
20736 * character.c (translate_char): Accept list of translation tables.
20737
207382008-02-01 Kenichi Handa <handa@m17n.org>
20739
20740 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20741 (CODING_ATTR_TRANS_TBL): New macro.
20742
20743 * coding.c (get_translation_table): New function.
20744 (translate_chars): Fix the bug of skipping annotation data.
20745 (decode_coding, encode_coding): Utilize get_translation_table.
20746 (char_encodable_p, Funencodable_char_position): Translate char if
20747 necessary.
20748 (Ffind_coding_systems_region_internal)
20749 (Fcheck_coding_systems_region): Setup translation table for encode
20750 in a coding system attribute vector in advance.
20751 (Fdefine_coding_system_internal): Allow a symbol as translation
20752 table. For shift-jis type coding system, allow 4th charset.
20753
207542008-02-01 Kenichi Handa <handa@m17n.org>
20755
20756 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20757
20758 * xdisp.c (get_next_display_element): Pass -1 as POS to
20759 FACE_FOR_CHAR if displaying a C-string.
20760
207612008-02-01 Kenichi Handa <handa@m17n.org>
20762
20763 * composite.c (get_composition_id): Handle xoff and yoff in a
20764 composition rule.
20765
20766 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20767 (struct composition): New member lbearing and rbearing.
20768
20769 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20770 (x_get_glyph_overhangs): Handle a composition glyph.
20771 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20772
20773 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20774 composition glyph.
20775
207762008-02-01 Kenichi Handa <handa@m17n.org>
20777
20778 * print.c: Include charset.h.
20779 (Vprint_charset_text_property): New variable.
20780 (Qdefault): Extern it.
20781 (PRINT_STRING_NON_CHARSET_FOUND)
20782 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20783 (print_check_string_result): New variable.
20784 (print_check_string_charset_prop): New function.
20785 (print_prune_charset_plist): New variable.
20786 (print_prune_string_charset): New function.
20787 (print_object): Call print_prune_string_charset if
20788 Vprint_charset_text_property is not t.
20789 (print_interval): Print nothing if interval->plist is nil.
20790 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20791 variable. Init and staticpro print_prune_charset_plist.
20792
207932008-02-01 Kenichi Handa <handa@m17n.org>
20794
20795 * fontset.c (new_fontset_from_font_name): Use the specified font
20796 for all characters in the new fontset.
20797
20798 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20799 OBJECT args.
20800
20801 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20802 OBJECT args for composition too.
20803
20804 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20805 OBJECT args.
20806
208072008-02-01 Kenichi Handa <handa@m17n.org>
20808
20809 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20810
20811 * fontset.c (reorder_font_vector): Adjust for the change of
20812 FONT_DEF format.
20813 (fontset_face): New arg id. Change caller.
20814 (face_for_char): New args pos and object.
20815 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20816 (fs_query_fontset): Check NAME by Fassoc too.
20817 (Fset_fontset_font): Allow non-XLFD font name.
20818 (Ffontset_info): Adjust for the change of FONT_DEF format.
20819
20820 * fontset.h (face_for_char): Adjust prototype.
20821
20822 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20823 (append_space, extend_face_to_end_of_line)
20824 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20825 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20826
20827 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20828 POS and OBJECT args.
20829
20830 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20831 POS and OBJECT args.
20832
208332008-02-01 Jason Rumney <jasonr@gnu.org>
20834
20835 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20836 of GlobalAlloc'ed memory.
20837
208382008-02-01 Kenichi Handa <handa@m17n.org>
20839
20840 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20841
20842 * charset.h (charset_table_used): Delete extern.
20843
20844 * charset.c (charset_table_used): Make it static.
20845 (map_charset_chars): Fix args to c_function with.
20846
20847 * chartab.c (map_sub_char_table_for_charset): Fix args to
20848 c_function with.
20849
20850 * coding.h (enum coding_result_code): Delete
20851 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20852
20853 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20854 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20855 (Vlast_code_conversion_error): New variables.
20856 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20857 (ONE_MORE_BYTE): Record error if any instead of signaling an
20858 error. If non-ASCII multibyte char is found, return the negative
20859 value of the code. All callers changed to check it.
20860 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20861 (record_conversion_result): New function. Change all codes setting
20862 coding->result to call this function.
20863 (detect_coding_utf_8, decode_coding_utf_8)
20864 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20865 Don't use the local variable incomplete.
20866 (emacs_mule_char): Change the second arg to `const'.
20867 (decode_coding): Fix of flushing out unprocessed data.
20868 (make_conversion_work_buffer): Fix making of a work buffer.
20869 (decode_coding_object): Return coding->dst_object.
20870
20871 * fontset.c (set_fontset_font): Fix args.
20872
20873 * lisp.h (CHARACTERBITS): Define as 22.
20874
20875 * process.c (send_process): Be sure to set coding->src_multibyte.
20876
20877 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20878
208792008-02-01 Kenichi Handa <handa@m17n.org>
20880
20881 * xdisp.c (handle_auto_composed_prop): Give limit to
20882 Fnext_single_char_property_change.
20883
208842008-02-01 Kenichi Handa <handa@m17n.org>
20885
20886 * composite.c (syms_of_composite): Don't make the composition hash
20887 table weak.
20888
20889 * fontset.c (Fset_fontset_font): Fix docstring.
20890
20891 * lisp.h (detect_coding_system): Adjust prototype.
20892
20893 * fileio.c (kill_workbuf_unwind): Delete this function.
20894 (Finsert_file_contents): Adjust the call of detect_coding_system.
20895 Get conversion_buffer by code_conversion_save. Use the macro
20896 CODING_MAY_REQUIRE_DECODING. After decoding, update
20897 coding_system.
20898
20899 * coding.h (make_conversion_work_buffer): Delete extern.
20900 (code_conversion_save): Extern it.
20901
20902 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20903 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20904 (decode_coding_utf_8): Don't do eol converion.
20905 (detect_coding_utf_16): Check coding->src_chars, not
20906 coding->src_bytes. Add heuristics for those that have no signature.
20907 (decode_coding_emacs_mule, decode_coding_iso_2022)
20908 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20909 Don't do eol converion.
20910 (adjust_coding_eol_type): Return a new coding system.
20911 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20912 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20913 each change.
20914 (decode_coding): Pay attention to undo_list. Do eol conversion for
20915 all types of coding-systems (if necessary).
20916 (Vcode_conversion_work_buf_list): Delete it.
20917 (Vcode_conversion_reused_workbuf): Rename from
20918 Vcode_conversion_reused_work_buf.
20919 (Vcode_conversion_workbuf_name): New variable.
20920 (reused_workbuf_in_use): New variable.
20921 (make_conversion_work_buffer): Delete the arg DEPTH.
20922 (code_conversion_restore): Change argument to cons.
20923 (code_conversion_save): Delete the argument BUFFER. Change callers.
20924 (detect_coding_system): New argument src_chars. Change callers.
20925 Fix for utf-16 detection.
20926 (init_coding_once): Don't use ISO_carriage_return.
20927 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20928 reused_workbuf_in_use.
20929
209302008-02-01 Kenichi Handa <handa@m17n.org>
20931
20932 * keymap.c (store_in_keymap): Pay attention to the case that idx
20933 is a cons specifying a character range.
20934
209352008-02-01 Kenichi Handa <handa@m17n.org>
20936
20937 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20938 HANDLED_RECOMPUTE_PROPS.
20939
20940 * coding.c (Fdefine_coding_system_internal): Fix checking of
20941 ascii compatibility.
20942
209432008-02-01 Kenichi Handa <handa@m17n.org>
20944
20945 * charset.c (find_charsets_in_text): Delete unused locale variable.
20946 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20947
20948 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20949 Resync charset_list to Vemacs_mule_charset_list.
20950
20951 * keymap.c (store_in_keymap): Pay attention to the case that idx
20952 is a cons specifying a character range.
20953
209542008-02-01 Kenichi Handa <handa@m17n.org>
20955
20956 * composite.c (update_compositions): Bind inhibit-read-only, etc
20957 to t before calling remove-list-of-text-properties.
20958
20959 * print.c (print_object): Always print ASCII chars as is.
20960
209612008-02-01 Kenichi Handa <handa@m17n.org>
20962
20963 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20964
20965 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20966 is a char table.
20967
209682008-02-01 Kenichi Handa <handa@m17n.org>
20969
20970 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20971
209722008-02-01 Kenichi Handa <handa@m17n.org>
20973
20974 * xfaces.c (set_lface_from_font_name): Fix for the case that
20975 FONTNAME is not fontset name.
20976
209772008-02-01 Kenichi Handa <handa@m17n.org>
20978
20979 * fns.c (base64_encode_1): Fix previous change.
20980
209812008-02-01 Kenichi Handa <handa@m17n.org>
20982
20983 * fontset.c (set_fontset_font): New function.
20984 (Fset_fontset_font): If a font is specified for a charset, use
20985 map_charset_chars to store the font spec in a fontset.
20986
209872008-02-01 Kenichi Handa <handa@m17n.org>
20988
20989 * fontset.c (fontset_face): Create a fallback fontset on demand.
20990 (make_fontset): Don't create a fallback fontset here.
20991 (free_face_fontset): Free a fallback fontset (if any) too.
20992 (n_auto_fontsets): Delete this variable.
20993 (auto_fontset_alist): New variable.
20994 (new_fontset_from_font_name): Check auto_fontset_alist.
20995 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20996 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20997 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20998 Defsubr Sfontset_list_all.
20999
210002008-02-01 Kenichi Handa <handa@m17n.org>
21001
21002 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21003
210042008-02-01 Kenichi Handa <handa@m17n.org>
21005
21006 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21007
210082008-02-01 Kenichi Handa <handa@m17n.org>
21009
21010 * editfns.c (Fgoto_char): Fix docstring.
21011
210122008-02-01 Kenichi Handa <handa@m17n.org>
21013
21014 * insdel.c (insert_from_gap): Adjust intervals correctly.
21015
210162008-02-01 Jason Rumney <jasonr@gnu.org>
21017
21018 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21019 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21020 (w32_initialize): Try to load it.
21021 (x_get_font_repertory): Use it if available.
21022 (w32_encode_char): Add shortcut for unicode output.
21023
21024 * w32fns.c (w32_load_system_font): Default charset to -1.
21025 (x_to_w32_charset): Match all fonts for unicode.
21026 (w32_to_x_charset): New parameter matching. Don't return partial
21027 or wildcard charsets.
21028 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21029 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21030 (w32_to_x_font): Match charset to real charset.
21031 (enum_font_cb2): Always list unicode versions.
21032
21033 * makefile.w32-in (temacs): Increase EMHEAP.
21034
210352008-02-01 Jason Rumney <jasonr@gnu.org>
21036
21037 * w32term.c (w32_encode_char): New charset parameter.
21038 font_info.encoding becomes encoding_type.
21039 (x_get_font_repertory): New function. Warning: stub only!
21040 (x_new_font): Return quickly if font already set.
21041 (x_new_fontset): fontsetname parameter is Lisp_Object.
21042 Use new fs_query_fontset. Try new_fontset_from_font_name.
21043 Use fontset_name for return value.
21044
21045 * w32term.h: Declare x_get_font_repertory.
21046
21047 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21048 place of find_charset_in_text. Use encode_coding_object in place
21049 of encode_coding.
21050 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21051 decode_coding.
21052
21053 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21054 of x_new_fontset.
21055 (w32_load_system_font): Initialize charset as unicode.
21056 font_info.encoding becomes encoding_type.
21057 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21058 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21059 (syms_of_w32fns): Set get_font_repertory_func.
21060
21061 * w32console.c: Include character.h. Use terminal_encode_buffer
21062 from term.c.
21063 (write_glyphs): Use new version of encode_terminal_code. Use
21064 encode_coding_object in place of encode_coding.
21065
21066 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21067 encoding becomes encoding_type.
21068
21069 * term.c (terminal_encode_buffer): Make externally visible.
21070
21071 * makefile.w32-in: Add character.h dependancies.
21072 (character.o, chartab.o): New targets.
21073
210742008-02-01 Kenichi Handa <handa@m17n.org>
21075
21076 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21077 CODING_ID_EOL_TYPE.
21078
210792008-02-01 Andreas Schwab <schwab@suse.de>
21080
21081 * coding.c (produce_chars): Revert last change.
21082
210832008-02-01 Kenichi Handa <handa@m17n.org>
21084
21085 * charset.h (charset_unicode): Extern it.
21086
21087 * charset.c (string_xstring_p): Check by (C >= 0x100).
21088 (find_charsets_in_text): Change format of the arc CHARSETS. New
21089 arg MULTIBYTE.
21090 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21091 change of find_charsets_in_text.
21092 (Fsplit_char): Fix doc. Never return unknown.
21093
21094 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21095
21096 * coding.c (Fdefine_coding_system_alias): Update
21097 Vcoding_system_list.
21098
21099 * fontset.c (load_font_get_repertory): Pay attention to the case
21100 that ENCODING of a font is specified by a char-table.
21101
21102 * xterm.c (x_get_font_repertory): Handle the case that the
21103 encoding of font is other than Unicode.
21104
211052008-02-01 Kenichi Handa <handa@m17n.org>
21106
21107 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21108 if a character is encodable by the terminal coding system. If
21109 not, produces proper number of `?'s. Update
21110 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21111 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21112
211132008-02-01 Kenichi Handa <handa@m17n.org>
21114
21115 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21116 variables.
21117 (encode_terminal_code): Change argument. Encode multiple
21118 characters at once. Store the result of encoding in
21119 terminal_encode_buffer.
21120 (write_glyphs, insert_glyphs): Adjust for the change of
21121 encode_terminal_code.
21122 (term_init): Initialize terminal_encode_buffer and
21123 terminal_encode_buf_size.
21124
21125 * coding.c (consume_chars): If coding->src_object is nil, don't
21126 check annotation.
21127
211282008-02-01 Kenichi Handa <handa@m17n.org>
21129
21130 * character.c (char_string): Use ASCII_CHAR_P instead of
21131 SINGLE_BYTE_CHAR_P.
21132
211332008-02-01 Kenichi Handa <handa@m17n.org>
21134
21135 * xdisp.c (handle_auto_composed_prop): Check if the last
21136 characters of auto-composed region is newly composed with the
21137 following characters.
21138 (handle_composition_prop): Fix checking of point being inside
21139 composition.
21140
211412008-02-01 Kenichi Handa <handa@m17n.org>
21142
21143 * fns.c (concat): Don't change multibyteness of the result by
21144 concatenating an 8-bit character.
21145
21146 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21147 multibyteness of the result when newelt is an 8-bit character.
21148
211492008-02-01 Dave Love <fx@gnu.org>
21150
21151 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21152 EMACS_INT.
21153
21154 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21155
21156 * xfaces.c (face_numeric_value): Declare dim size_t.
21157 (Finternal_lisp_face_equal_p): Remove unused f.
21158
21159 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21160 (MATRIX_ROW): Remove unused vars.
21161 (draw_glyphs, x_insert_glyphs, fast_find_position)
21162 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21163 byte/char counts.
21164
21165 * regex.c (regex_compile): Remove unused var.
21166
21167 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21168
21169 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21170 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21171
21172 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21173
21174 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21175
21176 * fileio.c (Fwrite_region): Remove unused var.
21177
21178 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21179 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21180
21181 * composite.c (Fremove_list_of_text_properties): Declare.
21182
21183 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21184 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21185 (coding_inherit_eol_type): Remove unused attrs.
21186 (detect_coding): Cast arg of detect_eol.
21187
21188 * charset.c (syms_of_charset): Remove unused var p.
21189 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21190 byte/char counts.
21191
21192 * casetab.c (set_case_table): Remove unused var.
21193
21194 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21195 unused vars.
21196
211972008-02-01 Dave Love <fx@gnu.org>
21198
21199 * xterm.c (x_bitmap_mask): Declare.
21200
212012008-02-01 Dave Love <fx@gnu.org>
21202
21203 * xterm.c (x_term_init): Fix type error.
21204
21205 * lisp.h: Add Funibyte_char_to_multibyte.
21206
21207 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21208 (Fset_coding_system_priority): Doc fix.
21209
21210 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21211
21212 * indent.c (check_composition): Make start and end EMACS_INT.
21213
21214 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21215
21216 * xdisp.c (handle_composition_prop, check_point_in_composition):
21217 Make buffer positions EMACS_INT.
21218
21219 * composite.c (find_composition, run_composition_function)
21220 (update_compositions, Ffind_composition_internal): Make buffer
21221 positions EMACS_INT.
21222
21223 * composite.h (find_composition, update_compositions): Make
21224 position args EMACS_INT.
21225
21226 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21227
21228 * intervals.c (get_property_and_range):
21229 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21230
21231 * unexalpha.c: Don't include varargs.h.
21232
212332008-02-01 Dave Love <fx@gnu.org>
21234
21235 * coding.h (ENCODE_UTF_8): New.
21236
21237 * Makefile.in (gtkutil.o): Depend on coding.h.
21238
21239 * coding.c (Fset_coding_system_priority): Doc fix.
21240
212412008-02-01 Kenichi Handa <handa@m17n.org>
21242
21243 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21244 the case of auto saving.
21245
212462008-02-01 Andreas Schwab <schwab@suse.de>
21247
21248 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21249 `range' from GC.
21250
212512008-02-01 Kenichi Handa <handa@m17n.org>
21252
21253 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21254
212552008-02-01 Kenichi Handa <handa@m17n.org>
21256
21257 * fileio.c (choose_write_coding_system): Return a decided coding system.
21258 (Fwrite_region): Set Vlast_coding_system_used to the return value
21259 of choose_write_coding_system.
21260
212612008-02-01 Kenichi Handa <handa@m17n.org>
21262
21263 * charset.c (Fset_charset_priority): Pay attention to duplicated
21264 arguments.
21265
21266 * coding.c (QCcategory): New variable.
21267 (syms_of_coding): Defsym it. Set all elements of
21268 Vcoding_category_table and their symbol values.
21269 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21270 coding-category-XXX, and coding-category-list.
21271 (Fdefine_coding_system_internal): Add category in the plist.
21272
212732008-02-01 Kenichi Handa <handa@m17n.org>
21274
21275 * callproc.c (Fcall_process): Handle carryover correctly.
21276
21277 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21278 (raw_text_coding_system): Check NILP (coding_system).
21279 (coding_inherit_eol_type): Check NILP (coding_system) and
21280 NILP (parent).
21281 (consume_chars): Fix for the case of raw-text.
21282
21283 * process.c (read_process_output): Handle carryover correctly.
21284
212852008-02-01 Dave Love <fx@gnu.org>
21286
21287 * regex.c (re_search_2): Fix last change.
21288
212892008-02-01 Kenichi Handa <handa@m17n.org>
21290
21291 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21292 target_multibyte. Even in a unibyte case, return a converted
21293 multibyte char.
21294 (GET_CHAR_AFTER): New macro.
21295 (PATFETCH): Translate via multibyte char.
21296 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21297 (SETUP_MULTIBYTE_RANGE): New macro.
21298 (regex_compile): Setup compiled code so that its multibyteness
21299 matches that of a target. Fix the handling of "[X-YZ]" using
21300 SETUP_MULTIBYTE_RANGE.
21301 (analyse_first) <charset>: For filling fastmap for all multibyte
21302 characters, don't check by BASE_LEADING_CODE_P.
21303 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21304 the same as RE_MULTIBYTE_P (bufp) now.
21305 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21306 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21307 (TRANSLATE_VIA_MULTIBYTE): New macro.
21308 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21309 It is the same as RE_MULTIBYTE_P (bufp) now.
21310 <exactn>: Translate via multibyte.
21311 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21312 translate it.
21313 <charset, charset_not>: Fetch a character by
21314 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21315 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21316 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21317 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21318 by GET_CHAR_AFTER.
21319 (bcmp_translate): Likewise.
21320
21321 * search.c (compile_pattern): Check the member target_multibyte,
21322 not the member multibyte of buf.
21323
21324 * lread.c (read1): While reading a string, set force_singlebyte
21325 and force_multibyte correctly.
21326
21327 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21328 up of unibyte_to_multibyte_table.
21329
213302008-02-01 Kenichi Handa <handa@m17n.org>
21331
21332 * coding.c (setup_coding_system): If coding has
21333 post-read-conversion or pre-write-conversion, set
21334 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21335 respectively.
21336 (decode_coding_gap): Run post-read-conversion if any.
21337
21338 * fileio.c (Finsert_file_contents): Even if we read into a
21339 unibyte buffer, check if we must decode the result or not.
21340
213412008-02-01 Kenichi Handa <handa@m17n.org>
21342
21343 * coding.c (make_conversion_work_buffer): Change the work buffer
21344 name to the same one as that of Emacs 21.
21345
213462008-02-01 Kenichi Handa <handa@m17n.org>
21347
21348 * coding.h (make_conversion_work_buffer): Adjust prototype.
21349 (code_conversion_restore): Don't extern it.
21350
21351 * coding.c (detected_mask): Delete unused variable.
21352 (decode_coding_iso_2022): Pay attention to the byte sequence of
21353 CTEXT extended segment, and retain those bytes as is.
21354 (decode_coding_ccl): Delete unused variable `valids'.
21355 (setup_coding_system): Delete unused variable `category'.
21356 (consume_chars): Delete unused variable `category'. Make it work
21357 for non-multibyte case.
21358 (make_conversion_work_buffer): Change argument.
21359 (saved_coding): Delete unused variable.
21360 (code_conversion_restore): Don't check saved_coding->destination.
21361 (code_conversion_save): New function.
21362 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21363 instead of record_unwind_protect.
21364 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21365 (detect_coding_system): Delete unused variable `mask'.
21366 (Fdefine_coding_system_internal): Delete unused variable id.
21367
21368 * fileio.c (kill_workbuf_unwind): New function.
21369 (Finsert_file_contents): On replacing, call
21370 make_conversion_work_buffer with correct args, and call
21371 record_unwind_protect with the first arg kill_workbuf_unwind.
21372
21373 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21374
213752008-02-01 Kenichi Handa <handa@m17n.org>
21376
21377 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21378 (fontset_add): Fix for the case that TO is less than TO1.
21379 (Ffontset_info): Don't use fallback fontset on checking the
21380 default fontset.
21381 (dump_fontset): New function for debugging.
21382
21383 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21384 coding_type is Qcharset.
21385
213862008-02-01 Kenichi Handa <handa@m17n.org>
21387
21388 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21389 (map_char_table): Don't inherit the value from the parent on
21390 initializing VAL. Adjust for the above change.
21391
213922008-02-01 Kenichi Handa <handa@m17n.org>
21393
21394 * coding.c (Qsignature, Qendian): Delete these variables.
21395 (syms_of_coding): Don't initialize them.
21396 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21397 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21398 detect_info->found.
21399 (decode_coding_utf_16): Don't detect BOM here.
21400 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21401 is NOT utf_16_without_bom.
21402 (setup_coding_system): For a coding system of type utf-16, check
21403 if the attribute :endian is Qbig or not (not nil or not), and set
21404 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21405 (detect_coding): If coding type is utf-16 and BOM detection is
21406 required, detect it.
21407 (Fdefine_coding_system_internal): For a coding system of type
21408 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21409
214102008-02-01 Kenichi Handa <handa@m17n.org>
21411
21412 * coding.c (coding_set_source): Fix for the case that the current
21413 buffer is different from coding->src_object.
21414 (decode_coding_object): Don't use the conversion work buffer if
21415 DST_OBJECT is a buffer.
21416
214172008-02-01 Dave Love <fx@gnu.org>
21418
21419 * lread.c (read_emacs_mule_char) [len==2]: Index
21420 emacs_mule_charset correctly.
21421
214222008-02-01 Dave Love <fx@gnu.org>
21423
21424 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21425 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21426 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21427 treated specially.)
21428 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21429 (detected_mask): Remove Big5 bits.
21430
214312008-02-01 Kenichi Handa <handa@m17n.org>
21432
21433 The following changes are to make the font rescaling facility
21434 compatible with Emacs 21.
21435
21436 * xfaces.c (Vface_font_rescale_alist): Rename from
21437 Vface_resizing_fonts.
21438 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21439 (font_rescale_ratio): Rename from font_resizing_ratio.
21440 (split_font_name): Set font->rescale_ratio.
21441 (better_font_p): Pay attention to font->rescale_ratio.
21442 (build_scalable_font_name): Likewise. Change RESX, and RESY
21443 fields.
21444 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21445
214462008-02-01 Kenichi Handa <handa@m17n.org>
21447
21448 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21449 (Qutf_16_le): Remove these variables.
21450 (syms_of_coding): Don't DEFSYM them.
21451 (decode_coding_utf_16): Fix handling of BOM.
21452 (encode_coding_utf_16): Fix handling of BOM.
21453
214542008-02-01 Kenichi Handa <handa@m17n.org>
21455
21456 * fileio.c (Finsert_file_contents): On replacing, before decoding
21457 the file into the work buffer, set point of the work buffer to the end.
21458
214592008-02-01 Dave Love <fx@gnu.org>
21460
21461 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21462
214632008-02-01 Dave Love <fx@gnu.org>
21464
21465 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21466 and fix C types.
21467
214682008-02-01 Kenichi Handa <handa@m17n.org>
21469
21470 * xdisp.c (SKIP_GLYPHS): New macro.
21471 (set_cursor_from_row): Pay attention to string display properties.
21472
21473 * category.c (copy_category_entry): Fix for the case that RANGE
21474 is an integer.
21475
21476 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21477
21478 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21479
214802008-02-01 Kenichi Handa <handa@m17n.org>
21481
21482 * charset.c (Fcharset_id_internal): New function.
21483 (syms_of_charset): Defsubr it.
21484
21485 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21486 with the last arg charset_list acquired from coding.
21487 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21488 the attribute coding_attr_ccl_valids.
21489
21490 * coding.h (enum define_coding_ccl_arg_index): Set the first
21491 member coding_arg_ccl_decoder to coding_arg_max.
21492
21493 * ccl.h (ccl_driver): Adjust prototype.
21494
21495 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21496 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 21497 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
21498 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21499 last arg Qnil.
21500
215012008-02-01 Kenichi Handa <handa@m17n.org>
21502
21503 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21504 call encode_char.
21505
21506 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21507
215082008-02-01 Dave Love <fx@gnu.org>
21509
21510 * composite.c (syms_of_composite): Make composition_hash_table weak.
21511
215122008-02-01 Kenichi Handa <handa@m17n.org>
21513
21514 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21515 (font_name_registry): Don't extern them.
21516 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21517
21518 * fontset.h (Qfontset): Don't extern it.
21519 (new_fontset_from_font_name): Extern it.
21520
21521 * fontset.c: Give 8 extra slots to fontset objects.
21522 (Qfontset_info): New variable.
21523 (syms_of_fontset): Defsym it.
21524 (FONTSET_FALLBACK): New macro.
21525 (fontset_face): Try also the default fontset.
21526 (make_fontset): Realize a fallback fontset from the default fontset.
21527 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21528 using split_font_name_into_vector and build_font_name_from_vector.
21529 (Fset_fontset_font): Access the elements of font_spec by enum
21530 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21531 name by using split_font_name_into_vector.
21532 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21533 generate a proper font name from the fontset name. Update
21534 Vfontset_alias_alist.
21535 (n_auto_fontsets): New variable.
21536 (new_fontset_from_font_name): New function.
21537 (Ffont_info): Store the information about fonts generated from the
21538 default fontset in the first extra slot of the returned char-table.
21539
21540 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21541 (font_name_registry): Delete function.
21542 (split_font_name_into_vector): New function.
21543 (build_font_name_from_vector): New function.
21544 (font_list): The argument REGISTRY is now a list of registry names.
21545 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21546 specifies an explicit font name, return the name as is. Make a
21547 list of registy names.
21548
21549 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21550 of x_new_fontset.
21551 (Fx_create_frame): Don't call x_new_fontset here. Just use
21552 x_list_fonts to check the existence of fonts.
21553
21554 * xterm.h (x_new_fontset): Adjust prototype.
21555
21556 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21557 string. Use new_fontset_from_font_name to create a fontset from a
21558 font name.
21559
215602008-02-01 Kenichi Handa <handa@m17n.org>
21561
21562 * syntax.c (Vfind_word_boundary_function_table): New name for
21563 Vnext_word_boundary_function_table.
21564 (find-word-boundary-function-table): New name for
21565 next-word-boundary-function-table.
21566
215672008-02-01 Dave Love <fx@gnu.org>
21568
21569 * Makefile.in: Fix some dependencies.
21570
21571 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21572 set it to nil before returning.
21573
21574 * composite.c (update_compositions): Fix type error.
21575
21576 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21577
215782008-02-01 Kenichi Handa <handa@m17n.org>
21579
21580 * xterm.c (x_new_font): Optimize for the case that the font is
21581 already set for the frame.
21582
215832008-02-01 Kenichi Handa <handa@m17n.org>
21584
21585 * chartab.c (char_table_ascii): Check if the char table contents
21586 is sub-char-table or not.
21587 (char_table_set, char_table_set_range): Fix argument to
21588 char_table_ascii.
21589
21590 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21591 (detect_coding_utf_8, detect_coding_utf_16)
21592 (detect_coding_emacs_mule, detect_coding_iso_2022)
21593 (detect_coding_sjis, detect_coding_big5)
21594 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21595 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21596 sequence is valid in this coding system. Change callers.
21597 (MAX_ANNOTATION_LENGTH): New macro.
21598 (ADD_ANNOTATION_DATA): New macro.
21599 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21600 ADD_ANNOTATION_DATA. Change the format of annotation data.
21601 (ADD_CHARSET_DATA): New macro.
21602 (emacs_mule_char): New argument ID. Change callers.
21603 (decode_coding_emacs_mule, decode_coding_iso_2022)
21604 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21605 Produce charset annotation data in coding->charbuf.
21606 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21607 to charset annotation data in coding->charbuf.
21608 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21609 coding->common_flags if the coding system is iso-2022 based and
21610 uses designation.
21611 (produce_composition): Adjust for the new annotation data format.
21612 (produce_charset): New function.
21613 (produce_annotation): Handle charset annotation.
21614 (handle_composition_annotation, handle_charset_annotation): New
21615 functions.
21616 (consume_chars): Handle charset annotation. Utilize the above two
21617 functions.
21618 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21619 buffer, get the deleted text as a string and set
21620 coding->src_object to that string.
21621 (detect_coding, detect_coding_system): Use the new struct
21622 coding_detection_info.
21623
21624 * coding.h (struct coding_detection_info): New structure.
21625 (struct coding_system): Adjust prototype of the member `detector'.
21626 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21627
216282008-02-01 Kenichi Handa <handa@m17n.org>
21629
21630 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21631
216322008-02-01 Dave Love <fx@gnu.org>
21633
21634 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21635 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21636 to new local and nullify apropos_accumulate before returning.
21637 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21638
216392008-02-01 Kenichi Handa <handa@m17n.org>
21640
21641 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21642 correctly.
e3eea1fc 21643
aac0c6e3
MR
216442008-02-01 Dave Love <fx@gnu.org>
21645
21646 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21647
216482008-02-01 Kenichi Handa <handa@m17n.org>
21649
21650 The following changes are to make character composition happen
21651 automatically on displaying.
21652
21653 * Makefile.in (lisp, shortlisp): Add composite.elc.
21654
21655 * composite.h (Qauto_composed, Vauto_composition_function)
21656 (Qauto_composition_function): Extern them.
21657
21658 * composite.c (Vcomposition_function_table)
21659 (Qcomposition_function_table): Delete variables.
21660 (Qauto_composed, Vauto_composition_function)
21661 (Qauto_composition_function): New variables.
21662 (run_composition_function): Don't call
21663 compose-chars-after-function.
21664 (update_compositions): Clear `auto-composed' text property.
21665 (compose_chars_in_text): Delete this function.
21666 (syms_of_composite): Staticpro Qauto_composed and
21667 Qauto_composition_function. Declare Vauto_composition_function as
21668 a Lisp variable.
21669
21670 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21671
21672 * xdisp.c (it_props): Add an entry for Qauto_composed.
21673 (handle_auto_composed_prop): New function.
21674
21675 * xselect.c (selection_data_to_lisp_data): Don't call
21676 compose_chars_in_text.
21677
216782008-02-01 Dave Love <fx@gnu.org>
21679
21680 * keyboard.c (read_char): Modify checking around use of
21681 Vkeyboard_translate_table.
21682
21683 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21684 and fix C types.
21685
216862008-02-01 Kenichi Handa <handa@m17n.org>
21687
21688 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21689 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21690 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21691 the case that the last byte is '\r' correctly.
21692 (decode_coding): Flush out the unprocessed data correctly.
21693 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21694
216952008-02-01 Dave Love <fx@gnu.org>
21696
21697 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21698 Add XK_ISO... case.
21699 (xaw_scroll_callback): Revert last change.
21700
217012008-02-01 Kenichi Handa <handa@m17n.org>
21702
21703 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21704
217052008-02-01 Kenichi Handa <handa@m17n.org>
21706
21707 * xfaces.c (Vface_resizing_fonts): New variable.
21708 (struct font_name): New member `resizing_ratio'.
21709 (font_resizing_ratio): New function.
21710 (split_font_name): Set font->resizing_ratio.
21711 (better_font_p): Pay attention to font->resizing_ratio.
21712 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21713 RESX, and RESY fields.
21714 (try_alternative_families): Try scalable fonts if
21715 Vscalable_fonts_allowed is not Qt.
21716 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21717
217182008-02-01 Dave Love <fx@gnu.org>
21719
21720 * xterm.c (xaw_scroll_callback): Cast correctly.
21721
217222008-02-01 Dave Love <fx@gnu.org>
21723
21724 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21725 (lispy_kana_keys): Comment out.
21726 (make_lispy_event) [XK_kana_A]: Comment out.
21727
21728 * xterm.c (xaw_scroll_callback): Cast call_data.
21729 (XTread_socket): Deal with ASCII keysyms.
21730 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21731
217322008-02-01 Dave Love <fx@gnu.org>
21733
21734 * xterm.c (Vx_keysym_table): New.
21735 (syms_of_xterm): Initialize it.
21736 (XTread_socket): Use it.
21737 From head: Eliminate incorrect optimization that tried to avoid
21738 decoding the output of X*LookupString.
21739 (x_get_font_repertory): Delete charset declaration.
21740
217412008-02-01 Kenichi Handa <handa@m17n.org>
21742
21743 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21744 return 0.
21745 (Fdefine_coding_system_internal): Setup
21746 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21747
217482008-02-01 Dave Love <fx@gnu.org>
21749
21750 * coding.c (Fcheck_coding_system): Doc fix.
21751
21752 * editfns.c (Finsert_byte): Return a proper value.
21753
217542008-02-01 Kenichi Handa <handa@m17n.org>
21755
21756 * coding.c (decode_coding): Fix args to translate_chars. Pay
21757 attention to Vstandard_translation_table_for_decode.
21758 (encode_coding): Fix args to translate_chars. Pay attention to
21759 Vstandard_translation_table_for_encode.
21760
21761 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21762 SINGLE_BYTE_CHAR_P.
21763
21764 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21765 not by SINGLE_BYTE_CHAR_P.
21766
21767 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21768 SINGLE_BYTE_CHAR_P.
21769
21770 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21771 SINGLE_BYTE_CHAR_P.
21772
21773 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21774 by SINGLE_BYTE_CHAR_P.
21775
21776 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21777 SINGLE_BYTE_CHAR_P.
21778
217792008-02-01 Dave Love <fx@gnu.org>
21780
21781 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21782
217832008-02-01 Dave Love <fx@gnu.org>
21784
21785 * fns.c (Flanginfo): Fix typo.
21786
21787 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21788
217892008-02-01 Kenichi Handa <handa@m17n.org>
21790
21791 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21792 (detect_coding_emacs_mule, detect_coding_iso_2022)
21793 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21794 incomplete byte sequence. Don't update *mask when correctly detected.
21795 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21796 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21797 (detect_coding, detect_coding_system): Adjust for the changes above.
21798
217992008-02-01 Kenichi Handa <handa@m17n.org>
21800
21801 * character.c (char_string): Rename from
21802 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21803 (string_char): Rename from string_char.
21804
21805 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21806 if C is greater than MAX_3_BYTE_CHAR.
21807 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21808 string_char instead of string_char_with_unification.
21809
218102008-02-01 Dave Love <fx@gnu.org>
21811
21812 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21813
218142008-02-01 Kenichi Handa <handa@m17n.org>
21815
21816 * keymap.c (push_key_description): Pay attention to force_multibyte.
21817
21818 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21819
218202008-02-01 Dave Love <fx@gnu.org>
21821
21822 * charset.c (define_charset_internal): Rename `supprementary'.
21823
21824 * Makefile.in (lisp, shortlisp): Remove latin-N.
21825
218262008-02-01 Dave Love <fx@gnu.org>
21827
21828 * xfns.c (x_window, x_window): Use use_xim.
21829
21830 * xterm.c (use_xim): Initialize.
21831 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21832 (x_term_init): Maybe set use_xim.
21833
21834 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21835
218362008-02-01 Kenichi Handa <handa@m17n.org>
21837
21838 * search.c (search_buffer): Fix case-fold-search of multibyte
21839 characters.
21840 (boyer_moore): Rename the last argument to char_high_bits.
21841
218422008-02-01 Kenichi Handa <handa@m17n.org>
21843
21844 * xdisp.c (display_string): Fix for the case of zero width glyph.
21845
21846 * xfns.c (x_set_font): Change the error message of the case that
21847 x_new_fontset returns Qt.
21848
21849 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21850 (Finternal_set_lisp_face_attribute): Use signal_error for the
21851 error of invalid fontset.
21852
21853 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21854 fontset, return Qt.
21855
218562008-02-01 Dave Love <fx@gnu.org>
21857
21858 * unexelf.c (unexec): Make .got handling not SGI-specific.
21859
21860 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21861
21862 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21863
21864 * keyboard.c (read_key_sequence): Fix type error.
21865
21866 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21867 type error.
21868
21869 * fontset.c (fontset_add): Return Lisp_Object.
21870
218712008-02-01 Dave Love <fx@gnu.org>
21872
21873 * charset.h (charset_ordered_list_tick): Declare extern.
21874
218752008-02-01 Kenichi Handa <handa@m17n.org>
21876
21877 The following changes (and some of 2008-02-01 changes of mine) are
21878 for handling syntax, category, and case conversion for unibyte
21879 characters by converting them to multibyte on the fly. With these
21880 changes, we don't have to setup syntax and case tables for unibyte
21881 characters in each language environment.
21882
21883 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21884 multibyte if necessary.
21885
21886 * bytecode.c (Fbyte_code): Likewise.
21887
21888 * character.h (LEADING_CODE_LATIN_1_MIN)
21889 (LEADING_CODE_LATIN_1_MAX): New macros.
21890 (unibyte_to_multibyte_table): Extern it.
21891 (unibyte_char_to_multibyte): New macro.
21892 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21893 (CHAR_LEADING_CODE): New macro.
21894 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21895
21896 * character.c (unibyte_to_multibyte_table): New variable.
21897 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21898 (multibyte_char_to_unibyte): If C is an eight-bit character,
21899 convert it to the corresponding byte value.
21900
21901 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21902 not 1, signals an error. Update the elements of
21903 unibyte_to_multibyte_table.
21904 (init_charset_once): Initialize unibyte_to_multibyte_table.
21905 (syms_of_charset): Define the charset `iso-8859-1'.
21906
21907 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21908 as is without converting it to unibyte. In a unibyte buffer,
21909 convert C to multibyte before checking the syntax.
21910
21911 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21912
21913 * minibuf.c (Fminibuffer_complete_word): Use the macro
21914 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21915
21916 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21917
21918 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21919 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21920 that is zero, convert an eight-bit char to multibyte.
21921 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21922 non-emacs case.
21923 (PATFETCH): Convert an eight-bit char to multibyte.
21924 (HANDLE_UNIBYTE_RANGE): New macro.
21925 (regex_compile): Setup the compiled pattern for multibyte chars
21926 even if the given regex string is unibyte. Use PATFETCH_RAW
21927 instead of PATFETCH in many places. To handle `charset'
21928 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21929 only for ASCII chars.
21930 (analyse_first) <exactn>: Simplify because the compiled pattern
21931 is multibyte.
21932 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21933 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21934 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21935 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21936 multibyte always 1.
21937 (re_search_2): In emacs, set the locale variable multibyte to 1,
21938 otherwise to 0. New local variable target_multibyte. Check it
21939 to decide the multibyteness of STR1 and STR2. If
21940 target_multibyte is zero, convert unibyte chars to multibyte
21941 before translating and checking fastmap.
21942 (TARGET_CHAR_AND_LENGTH): New macro.
21943 (re_match_2_internal): In emacs, set the locale variable multibyte
21944 to 1, otherwise to 0. New local variable target_multibyte. Check
21945 it to decide the multibyteness of STR1 and STR2. Use
21946 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21947 <charset, charset_not>: If multibyte is nonzero, check fastmap
21948 only for ASCII chars. Call bcmp_translate with
21949 target_multibyte, not with multibyte.
21950 <begline>: Declare the local variable C as `unsigned'.
21951 (bcmp_translate): Change the last arg name to target_multibyte.
21952
21953 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21954 the regexp pattern and the matching target. Set cp->buf.multibyte
21955 to the multibyteness of the regexp pattern. Set
21956 cp->but.target_multibyte to the multibyteness of the matching target.
21957 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21958 FETCH_STRING_CHAR_ADVANCE.
21959 (Freplace_match): Convert unibyte chars to multibyte.
21960
21961 * syntax.c (char_quoted, back_comment, scan_words)
21962 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21963 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21964 unibyte chars to multibyte.
21965 (skip_chars): Delete the arg syntaxp, and move the code for
21966 handling syntaxes to skip_syntaxes. Change callers.
21967 Fix the case that the multibyteness of STRING and the current
21968 buffer doesn't match.
21969 (skip_syntaxes): New function.
21970 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21971 SINGLE_BYTE_CHAR_P.
21972
219732008-02-01 Kenichi Handa <handa@m17n.org>
21974
21975 * xfaces.c (QCfontset): New variable.
21976 (LFACE_FONTSET): New macro.
21977 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21978 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21979 (Finternal_set_lisp_face_attribute)
21980 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21981 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21982 check also LFACE_FONTSET_INDEX.
21983 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21984 attrs[LFACE_FONT_INDEX].
21985 (syms_of_xfaces): Intern and staticpro QCfontset.
21986
21987 * dispextern.h (enum lface_attribute_index): New member
21988 LFACE_FONTSET_INDEX.
21989
21990 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21991
219922008-02-01 Kenichi Handa <handa@m17n.org>
21993
21994 * coding.c (coding_set_destination): Fix coding->destination for
21995 the case converting a region.
21996 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21997 (encode_coding_object): Fix coding->dst_pos and
21998 coding->dst_pos_byte for the case converting a region.
21999
22000 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22001
22002 * character.h (BYTE8_STRING): New macro.
22003
22004 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22005
220062008-02-01 Kenichi Handa <handa@m17n.org>
22007
22008 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22009 characters by octal form.
22010
22011 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22012
22013 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22014 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22015 _fetch_multibyte_char_len.
22016 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22017
22018 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22019
22020 * casefiddle.c (casify_object): Simplify. Handle the case that
22021 the case conversion change the byte length.
22022 (casify_region): Likewise.
22023
22024 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22025
22026 * character.c (_fetch_multibyte_char_len): Delete this variable.
22027 (syms_of_character): Setup Vprintable_chars.
22028
22029 * editfns.c (Fchar_equal): Fix for the unibyte case.
22030 (Finsert_byte): New function.
22031 (syms_of_editfns): Defsubr it.
22032
22033 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22034 of direct code 0x3ffff.
22035
22036 * search.c (Freplace_match): Fix for the unibyte case.
22037
220382008-02-01 Kenichi Handa <handa@m17n.org>
22039
22040 * lread.c (safe_to_load_p): Fix the logic.
22041
22042 * syntax.c (scan_words): Don't treat characters belonging to
22043 different scripts as constituting a word.
22044
22045 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22046
22047 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22048
22049 * emacs.c (main): In the case of --unibyte, instead of aborting on
22050 finding non-empty buffer, make it unibyte.
22051
220522008-02-01 Kenichi Handa <handa@m17n.org>
22053
22054 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22055 to create a fontset.
22056
220572008-02-01 Dave Love <fx@gnu.org>
22058
22059 * character.c (Funibyte_char_to_multibyte): Doc fix.
22060
22061 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22062
220632008-02-01 Kenichi Handa <handa@m17n.org>
22064
22065 * fontset.c (fontset_add): Make the type `int'.
22066 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22067
22068 * character.c (unibyte_char_to_multibyte)
22069 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22070 charset_unibyte, not charset_primary.
22071
22072 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22073
22074 * charset.c (charset_unibyte): Rename from charset_primary.
22075 (Funibyte_charset): Rename from Fprimary_charset.
22076 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22077 (syms_of_charset): Adjust for the above changes.
22078
22079 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22080 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22081 it->multibyte_p is zero.
22082
22083 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22084 Delete extern.
22085
220862008-02-01 Kenichi Handa <handa@m17n.org>
22087
22088 * coding.c (Fdefine_coding_system_internal): Fix category setting
22089 for a coding system of type iso-2022.
22090
220912008-02-01 Kenichi Handa <handa@m17n.org>
22092
22093 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22094
220952008-02-01 Kenichi Handa <handa@m17n.org>
22096
22097 * syntax.c (Vnext_word_boundary_function_table): New variable.
22098 (next-word-boundary-function-table): Declare it as a Lisp variable
22099 in syms_of_syntax.
22100 (scan_words): Call functions in Vnext_word_boundary_function_table
22101 if any.
22102
22103 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22104
22105 * fontset.c (fs_load_font): If fontp->charset is not negative,
22106 return fontp without setting its members.
22107
221082008-02-01 Dave Love <fx@gnu.org>
22109
22110 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22111
22112 * m/sparc.h (HAVE_ALLOCA): Delete.
22113
22114 * s/irix6-5.h: Don't include strings.h.
22115 (bcopy, bzero, bcmp): Don't undef.
22116
22117 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22118
22119 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22120 (TIOCSIGSEND): Don't test IRIX6.
22121 (bcopy, bzero, bcmp): Define conditionally.
22122
221232008-02-01 Kenichi Handa <handa@m17n.org>
22124
22125 * buffer.c (Qas, Qmake, Qto): New variables.
22126 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22127 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22128
22129 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22130 we are inserting a process output into a multibyte buffer.
22131
22132 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22133 multibyte_char_to_unibyte.
22134
22135 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22136 by the primary charset, make it eight-bit char.
22137 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22138
22139 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22140 (charset_8_bit__control, charset_8_bit_graphic)
22141 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22142 (define_charset_internal): New function.
22143 (syms_of_charset): Call define_charset_internal for pre-defined
22144 charsets.
22145
22146 * charset.h (charset_8_bit): Extern it.
22147
22148 * coding.c (make_conversion_work_buffer): Adjust for the change
22149 of Fset_buffer_multibyte.
22150 (encode_coding_raw_text): Increment p0 in the loop.
22151
22152 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22153
22154 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22155 for the change of Fset_buffer_multibyte.
22156
22157 * fns.c (Fstring_to_multibyte): New function.
22158 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22159
221602008-02-01 Dave Love <fx@gnu.org>
22161
22162 * xfns.c (x_put_x_image): Declare args.
22163
22164 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22165 (try_font_list): Declare an arg.
22166
22167 * xdisp.c (message2_nolog, set_message): Declare an arg.
22168
22169 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22170
22171 * syntax.c (scan_sexps_forward): Declare an arg.
22172
22173 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22174 Declare an arg.
22175
22176 * lisp.h (Fnew_fontset): Declare.
22177
22178 * keymap.c (push_key_description): Call CHARACTERP correctly.
22179
22180 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22181 (face_for_char): Delete unused vars.
22182 (Fset_fontset_font): Doc fix. Delete unused vars.
22183
22184 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22185
22186 * composite.c (update_compositions): Declare arg.
22187
22188 * cm.c (calccost, cmgoto): Declare args.
22189
22190 * charset.c: Remove `emacs' conditional. Doc fixes.
22191 (map_char_table_for_charset): Declare.
22192
22193 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22194
22195 * ccl.c: Remove `emacs' conditional.
22196
221972008-02-01 Kenichi Handa <handa@m17n.org>
22198
22199 The following changes are to allow specifying multiple font
22200 patterns for a character range (specified by script or charset).
22201
22202 * Makefile.in (abbrev.o): Depend on syntax.h.
22203 (xfaces.o): Depend on charset.h.
22204
22205 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22206 SINGLE_BYTE_CHAR_P.
22207
22208 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22209
22210 * character.h (Vchar_script_table): Extern it.
22211
22212 * character.c (Vscript_alist): Delete.
22213 (Vchar_script_table, Qchar_script_table): New variable.
22214 (syms_of_character): Declare Vchar_script_table as a lisp variable
22215 and initialize it.
22216
22217 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22218 have property char-table-extra-slots, make no extra slot.
22219
22220 * dispextern.h (struct face): Delete member `charset'.
22221 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22222 SINGLE_BYTE_CHAR_P.
22223 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22224 Add prototypes.
22225 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22226 (generate_ascii_font_name): Rename from generate_ascii_font.
22227
22228 * fontset.h (get_font_repertory_func): New prototype.
22229 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22230 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22231
22232 * fontset.c (Qprepend, Qappend): New variables.
22233 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22234 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22235 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22236 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22237 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22238 (load_font_get_repertory): New functions.
22239 (fontset_set): Delete.
22240 (fontset_face): New arg FACE. Return face ID, not face.
22241 Complete re-write to handle new fontset structure. Change caller.
22242 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22243 (face_for_char): Don't call lookup_face.
22244 (make_fontset_for_ascii_face): New arg FACE.
22245 (fs_load_font): New arg CHARSET_ID. Don't check
22246 Vfont_encoding_alist here.
22247 (find_font_encoding): New function.
22248 (list_fontsets): Use STRINGP, not ! NILP.
22249 (accumulate_script_ranges): New function.
22250 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22251 re-written to handle new fontset structure.
22252 (Ffontset_font): Return a copy of element.
22253 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22254 docstring of font-encoding-alist.
22255
22256 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22257 (Fset_fotset_font): Fix arguments to 5.
22258
22259 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22260
22261 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22262 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22263 (highlight_trailing_whitespace): Adjust for the change of
22264 lookup_named_face.
22265
22266 * xfaces.c: Include charset.h.
22267 (load_face_font): Delete argument C. Change caller.
22268 (generate_ascii_font_name): Rename from generate_ascii_font.
22269 (font_name_registry): New function.
22270 (cache_face): Store ascii faces before non-ascii faces in buckets.
22271 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22272 Lookup only ascii faces.
22273 (lookup_non_ascii_face): New function.
22274 (lookup_named_face): Delete argument C. Change caller.
22275 (lookup_derived_face): Delete argument C. Change caller.
22276 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22277 a string, just call font_list with it.
22278 (choose_face_font): Delete arguments FACE and C. New arg
22279 FONT_SPEC. Change caller.
22280 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22281 Change caller.
22282 (realize_non_ascii_face): New function.
22283 (realize_x_face): Call load_face_font here.
22284 (realize_tty_face): Delete argument C. Change caller.
22285 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22286 get a face ID.
22287 (dump_realized_face): Don't print charset of FACE.
22288
22289 * xfns.c (x_set_font): Always call x_new_fontset and
22290 store_frame_parameter.
22291 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22292 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22293
22294 * xterm.h (x_get_font_repertory): Extern it.
22295
22296 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22297 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22298 it->multibyte_p is zero.
22299 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22300 (x_new_fontset): If FONTSETNAME doesn't match any existing
22301 fontsets, create a new one.
22302 (x_get_font_repertory): New function.
22303
223042008-02-01 Kenichi Handa <handa@m17n.org>
22305
22306 * coding.c (Ffind_coding_systems_region_internal): Detect an
22307 ASCII only string correctly.
22308
22309 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22310 version is 0.
22311
223122008-02-01 Kenichi Handa <handa@m17n.org>
22313
22314 * lread.c: Include "coding.h".
22315 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22316 (load_each_byte, unread_char): New variables.
22317 (readchar_backlog): Delete.
22318 (readchar): Return a character unless load_each_byte is nonzero.
22319 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22320 cons. If unread_char is not -1, simply return it.
22321 (unreadchar): Handle the case that readcharfun is
22322 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22323 (read_multibyte): Delete.
22324 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22325 (read_emacs_mule_char): New functions.
22326 (Fload): Even if the file doesn't have the extension ".elc", if
22327 safe_to_load_p returns a positive version number, assume that the
22328 file contains bytecompiled code. If the version is less than 22,
22329 load the file while decoding multibyte sequences by emacs-mule.
22330 (readevalloop): Don't use readchar_backlog.
22331 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22332 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22333 (read_escape): Delete the arg BYTEREP.
22334 (read1): Set load_each_byte to 1 temporarily while handling
22335 #@NUMBER. Don't call read_multibyte.
22336 (read_vector): Call Fread with a cons. If readcharfun is
22337 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22338 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22339 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22340 and Qload_force_doc_strings.
22341
223422008-02-01 Kenichi Handa <handa@m17n.org>
22343
22344 * xdisp.c (face_before_or_after_it_pos): Call
22345 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22346
223472008-02-01 Kenichi Handa <handa@m17n.org>
22348
22349 * character.h (TRAILING_CODE_P): New macro.
22350 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22351 (string_char_with_unification): Fix prototype.
22352 (Vscript_alist): Extern it.
22353
22354 * character.c (Vscript_alist): New variable.
22355 (string_char_with_unification, str_as_unibyte)
22356 (string_escape_byte8): Add `const' to local variables.
22357 (syms_of_character): Declare script-alist as a Lisp variable.
22358
22359 * charset.h (Vcharset_ordered_list): Extern it.
22360 (charset_ordered_list_tick): Extern it.
22361 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22362 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22363 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22364 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22365 (Funify_charset): Adjust for the change of Funify_charset.
22366
22367 * charset.c (charset_ordered_list_tick): New variable.
22368 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22369 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 22370 deunify instead of unify a charset.
aac0c6e3
MR
22371 (string_xstring_p): Add `const' to local variables.
22372 (find_charsets_in_text): Add `const' to arguments and local variables.
22373 (encode_char): Adjust for the change of Funify_charset. Fix
22374 detecting of invalid code.
22375 (Fset_charset_priority): Increment charset_ordered_list_tick.
22376 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22377 and TO_CODE.
22378
22379 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22380 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22381 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22382 (decode_coding_ccl, consume_chars)
22383 (Ffind_coding_systems_region_internal)
22384 (Fcheck_coding_systems_region): Add `const' to local variables.
22385
22386 * print.c (print_object): Use octal form for printing the
22387 contents of a bool vector.
22388
223892008-02-01 Dave Love <fx@gnu.org>
22390
22391 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22392 <version == 20>: Refuse to load.
22393
223942008-02-01 Dave Love <fx@gnu.org>
22395
22396 * fns.c: Move coding.h.
22397 (Qcodeset, Qdays, Qmonths): New.
22398 (concat): Use CHARACTERP instead of INTEGERP.
22399 (Flocale_codeset): Delete.
22400 (Flanginfo): New function.
22401 (syms_of_fns): Change accordingly.
22402
22403 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22404
224052008-02-01 Dave Love <fx@gnu.org>
22406
22407 * casetab.c (init_casetab_once, init_casetab_once): Fix
22408 CHAR_TABLE_SET call.
22409
22410 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22411
22412 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22413
22414 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22415 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22416 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22417
22418 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22419
22420 * coding.c (ENCODE_DESIGNATION, decode_eol)
22421 (make_conversion_work_buffer, code_conversion_restore)
22422 (Fdefine_coding_system_internal): Convert Lisp types.
22423 (code_conversion_restore): Use EQ, not ==.
22424 (Fencode_coding_string): Fix code_convert_string call.
22425
22426 * coding.h (code_convert_region): Fix prototype.
22427
22428 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22429
22430 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22431 (Ffontset_info): Convert Lisp types.
22432
22433 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22434
22435 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22436
22437 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22438
22439 * chartab.c: Include "...h", not <...h> in some cases.
22440
22441 * callproc.c (Fcall_process): Remove unused variables.
22442
224432008-02-01 Dave Love <fx@gnu.org>
22444
22445 * coding.c (Fset_coding_system_priority): Allow null arg list.
22446
224472008-02-01 Dave Love <fx@gnu.org>
22448
22449 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22450 (Fself_insert_and_exit): Use CHARACTERP.
22451
22452 * callproc.c (Fcall_process): Remove unused vars.
22453
22454 * xterm.c (XTread_socket): Add extra dead keysyms.
22455
22456 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22457
22458 * dispextern.h: Remove prototypes for redraw_frame,
22459 redraw_garbaged_frames.
22460
22461 * cmds.c (Fself_insert_command): Use CHARACTERP.
22462
22463 * chartab.c (make_sub_char_table): Remove unused var.
22464 (Fset_char_table_default, Fmap_char_table): Doc fix.
22465
22466 * keymap.c (access_keymap): Remove generic char code.
22467 (push_key_description): Use CHARACTERP.
22468
224692008-02-01 Dave Love <fx@gnu.org>
22470
22471 * charset.c: Doc fixes.
22472 (Funify_charset): Extra checking.
22473
224742008-02-01 Dave Love <fx@gnu.org>
22475
22476 * lread.c: Remove some unused variables.
22477 (safe_to_load_p): If safe, return the magic number version byte.
22478 (Fload): Maybe use load-with-code-conversion.
22479
224802008-02-01 Kenichi Handa <handa@m17n.org>
22481
22482 * category.c (Fmodify_category_entry): Don't modify the contents
22483 of category_set for characters out of the range. Avoid
22484 unnecessary modification.
22485
22486 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22487 Vchar_unify_table. The default value of the table is now nil.
22488
22489 * character.c (syms_of_character): Setup Vchar_width_table for
22490 eight-bit-control and raw-byte chars.
22491
22492 * charset.h (enum define_charset_arg_index): Delete
22493 charset_arg_parents and add charset_arg_subset and
22494 charset_arg_superset.
22495 (enum charset_attr_index): Delete charset_parents and add
22496 charset_subset and charset_superset.
22497 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22498 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22499 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22500 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22501 (CHARSET_SUPERSET): New macros.
22502 (charset_work): Extern it.
22503 (ENCODE_CHAR): Use charset_work.
22504 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22505 (map_charset_chars): Extern it.
22506
22507 * charset.c (load_charset_map): Set the default value of encoder
22508 and deunifier char-tables to nil.
22509 (map_charset_chars): Change argument. Change callers. Use
22510 map_char_table_for_charset instead of map_char_table.
22511 (Fmap_charset_chars): New optional args from_code and to_code.
22512 (Fdefine_charset_internal): Adjust for the change of
22513 `define-charset' (:parents -> :subset or :superset).
22514 (charset_work): New variable.
22515 (encode_char, syms_of_charset): Adjust for the change of
22516 Fdefine_charset_internal.
22517 (Ffind_charset_string): Setup the vector `charsets' correctly.
22518
22519 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22520 the previous change.
22521 (char_table_ref_and_range): Adjust for the above change.
22522 (map_sub_char_table_for_charset): New function.
22523 (map_char_table_for_charset): New function.
22524
22525 * keymap.c (describe_vector): Handle a char-table directly here.
22526 (describe_char_table): Delete.
22527
22528 * lisp.h (map_charset_chars): Delete.
22529
225302008-02-01 Dave Love <fx@gnu.org>
22531
22532 * fns.c (count_combining): Comment out (unused).
22533 (Flocale_codeset): New.
22534 (syms_of_fns): Defsubr it.
22535
22536 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22537 (size_t): Remove.
22538
225392008-02-01 Dave Love <fx@gnu.org>
22540
22541 * Makefile.in (chartab.o): Depend on charset.h.
22542
225432008-02-01 Kenichi Handa <handa@m17n.org>
22544
22545 * character.c (syms_of_character): Set the default value of
22546 Vprintable_chars to Qnil.
22547
225482008-02-01 Dave Love <fx@gnu.org>
22549
22550 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22551
225522008-02-01 Kenichi Handa <handa@m17n.org>
22553
22554 * charset.c (load_charset_map): Handle the case that from < to
22555 correctly.
22556
22557 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22558 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22559 Pay attention to raw-8-bit chars.
22560
225612008-02-01 Kenichi Handa <handa@m17n.org>
22562
22563 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22564 It is not bytecompiled now.
22565
22566 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22567 (charset_jisx0208): New variables.
22568 (Fdefine_charset_internal): Setup them if appropriate.
22569 (init_charset_once): Initialize them to -1.
22570
22571 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22572 (charset_jisx0208): Extern them.
22573
22574 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22575 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22576 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22577 (setup_iso_safe_charsets): Fix arguments to Fassq.
22578 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22579 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22580 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22581 (encode_coding_iso_2022): Change the 1st arg to
22582 ENCODE_ISO_CHARACTER to a variable.
22583
225842008-02-01 Kenichi Handa <handa@m17n.org>
22585
22586 * charset.h (enum define_charset_arg_index): New enums
22587 charset_arg_min_code and charset_arg_max_code.
22588 (struct charset): New member char_index_offset.
22589
22590 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22591 Take charset->char_index_offset into account.
22592 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22593 args[charset_arg_max_code]. Setup charset.char_index_offset.
22594 (syms_of_charset): Fix args to Fdefine_charset_internal.
22595
225962008-02-01 Dave Love <fx@gnu.org>
22597
22598 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22599
226002008-02-01 Dave Love <fx@gnu.org>
22601
22602 * coding.c: Doc fixes.
22603 (Fcoding_system_aliases): Fix return value.
22604 (Qmac): Remove (duplicated) definition.
22605
226062008-02-01 Dave Love <fx@gnu.org>
22607
362654a6
JB
22608 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22609 New functions.
aac0c6e3
MR
22610
22611 * character.c (Fstring): Doc fix.
22612
22613 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22614
362654a6 22615 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
22616 (font-encoding-alist): Doc fix.
22617
226182008-02-01 Dave Love <fx@gnu.org>
22619
22620 * term.c (costs_set): Declare static, non-initialized for pcc.
22621 (encode_terminal_code): Remove unused var.
22622
22623 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22624 for K&R.
22625
22626 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22627
22628 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22629 (suffixes): Move out of make_subsidiaries for K&R.
22630
22631 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22632
22633 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22634
226352008-02-01 Dave Love <fx@gnu.org>
22636
22637 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22638
22639 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22640
226412008-02-01 Yong Lu <lyongu@asia-infonet.com>
22642
22643 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22644
22645 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22646
226472008-02-01 Kenichi Handa <handa@m17n.org>
22648
22649 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22650 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22651
226522008-02-01 Kenichi Handa <handa@m17n.org>
22653
22654 * coding.c (decode_coding_charset): Adjust for the change of
22655 Fdefine_coding_system_internal.
22656 (Fdefine_coding_system_internal): For a coding system of
22657 `charset' type, store a list of charset IDs in
22658 `charset_attr_charset_valids' element of coding attributes.
22659
226602008-02-01 Kenichi Handa <handa@m17n.org>
22661
22662 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22663 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22664 caller. Handle 2-byte and 3-byte charsets correctly.
22665 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22666 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22667 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22668 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22669 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22670 sequence.
22671 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22672 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22673 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22674 and alt&rule composition.
22675 (decode_coding_iso_2022): Handle composition correctly.
22676 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22677
22678 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22679 re-defining a charset. If the charset has :emacs-mule-id, setup
22680 emacs_mule_bytes.
22681 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22682
226832008-02-01 Kenichi Handa <handa@m17n.org>
22684
22685 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22686 (encode_coding_big5, encode_coding_charset): If coding requires safe
22687 encoding, produce a character specified by
22688 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22689
226902008-02-01 Dave Love <fx@gnu.org>
22691
22692 * xterm.c (XSetIMValues): Declare.
22693
22694 * process.c: Conditionally include sys/wait.h, pty.h.
22695
22696 * print.c (print_object): Fix print format for 64-bit systems.
22697
22698 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22699
22700 * buffer.c (emacs_strerror): Declare.
22701
22702 * fontset.c (Fclear_face_cache): Declare.
22703 (accumulate_font_info): Comment-out (unused).
22704 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22705 variables.
22706
22707 * character.h (string_escape_byte8): Declare.
22708
22709 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22710 unused vars.
22711 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22712 (Fmap_charset_chars): Doc fix.
22713
22714 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22715 (Fset_coding_system_priority, Fset_coding_system_priority)
22716 (Fdefine_coding_system_internal): Doc fix.
22717
227182008-02-01 Dave Love <fx@gnu.org>
22719
22720 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22721
227222008-02-01 Kenichi Handa <handa@m17n.org>
22723
22724 * character.c (string_escape_byte8): Make multibyte string with
22725 correct size.
22726
22727 * charset.c (Fmake_char): Delete unnecessary code.
22728
227292008-02-01 Kenichi Handa <handa@m17n.org>
22730
22731 * xfns.c (x_encode_text): Allocate coding.destination here, and
22732 call encode_coding_object with dst_object Qnil.
22733
22734 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22735 multibyte form correctly.
22736
22737 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22738 against Vfont_encoding_alist.
22739
22740 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22741 handling of charset list.
22742 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22743 (decode_coding_object): Move point to coding->dst_pos before
22744 calling post-read-conversion function.
22745 (encode_coding_object): Give correct arguments to
22746 pre-write-conversion. Ignore the return value of
22747 pre-write-conversion function. Pay attention to the case that
22748 pre-write-conversion changes the current buffer. If dst_object is
22749 Qt, even if coding->src_bytes is zero, allocate at least one byte
22750 to coding->destination.
22751
22752 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22753
22754 * charset.c (Fmake_char): Make it more backward compatible.
22755 (Fmap_charset_chars): Fix docstring.
22756
227572008-02-01 Dave Love <fx@gnu.org>
22758
22759 * coding.c: Doc fixes.
22760 (Fdefine_coding_system_alias): Use names, not symbols, in
22761 coding-system-alist.
22762
227632008-02-01 Kenichi Handa <handa@m17n.org>
22764
22765 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22766 of calling free_realized_face.
22767
227682008-02-01 Yong Lu <lyongu@asia-infonet.com>
22769
22770 * charset.c (read_hex): Don't treat SPC as a comment starter.
22771 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22772 (Fdecode_char): Fix typo.
22773
227742008-02-01 Kenichi Handa <handa@m17n.org>
22775
22776 * charset.h (struct charset): New member `code_space_mask'.
22777
22778 * coding.c (coding_set_source): Delete the local variable beg_byte.
22779 (encode_coding_charset, Fdefine_coding_system_internal):
22780 Delete the local variable charset.
22781 (Fdefine_coding_system_internal): Setup
22782 attrs[coding_attr_charset_valids] correctly.
22783
22784 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22785 member to check if CODE is valid or not.
22786 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22787 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22788 is within the range of charset->min_code and carset->max_code.
22789
227902008-02-01 Dave Love <fx@gnu.org>
22791
22792 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22793
22794 * dispextern.h (generate_ascii_font): Fix return type.
22795
22796 * xfaces.c (generate_ascii_font): Fix arg declaration.
22797
22798 * coding.c (coding_inherit_eol_type)
22799 (Fset_terminal_coding_system_internal)
22800 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22801
228022008-02-01 Kenichi Handa <handa@m17n.org>
22803
22804 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22805 multiple charsets correctly.
22806
228072008-02-01 Kenichi Handa <handa@m17n.org>
22808
22809 * search.c (boyer_moore): Fix handling of multibyte character
22810 translation.
22811
22812 * xdisp.c (display_mode_element): When the variable `elt' is
22813 changed, update `this' and `lisp_string'.
22814
228152008-02-01 Kenichi Handa <handa@m17n.org>
22816
22817 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22818
22819 * callproc.c (Fcall_process): Be sure to give the current buffer
22820 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22821
22822 * charset.c (struct charset_map_entries): New struct.
22823 (load_charset_map): Rename from parse_charset_map. New args
22824 entries and n_entries. Change caller.
22825 (load_charset_map_from_file): Rename from load_charset_map.
22826 Change caller. New arg control_flag. Call load_charset_map at
22827 the tail.
22828 (load_charset_map_from_vector): New function.
22829 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22830 (encode_char): If the charset is compact, change a character index
22831 to a code point.
22832
22833 * coding.c (coding_alloc_by_making_gap): Check the case that the
22834 source and destination are the same correctly.
22835 (decode_coding_raw_text): Set coding->consumed_char and
22836 coding->consumed to 0.
22837 (produce_chars): If coding->chars_at_source is nonzero, update
22838 coding->consumed_char and coding->consumed before calling
22839 alloc_destination.
22840 (Fdefine_coding_system_alias): Register ALIAS in
22841 Vcoding_system_alist.
22842 (syms_of_coding): Define `no-conversion' coding system at the tail.
22843
22844 * fileio.c (Finsert_file_contents): Set coding_system instead of
22845 val. If the current buffer is multibyte, always call
22846 decode_coding_gap.
22847
22848 * xfaces.c (try_font_list): Give higher priority to fontset's
22849 family than face's family.
22850
228512008-02-01 Kenichi Handa <handa@m17n.org>
22852
22853 * callproc.c (Fcall_process): Be sure to give the current buffer
22854 to decode_coding_c_string.
22855
22856 * xfaces.c (try_font_list): Give a family specified in a fontset
22857 higher priority than a family specified in a face.
22858
228592008-02-01 Kenichi Handa <handa@m17n.org>
22860
22861 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22862 Fix arguments to insert_from_buffer.
22863
22864 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22865
228662008-02-01 Kenichi Handa <handa@m17n.org>
22867
22868 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22869 (decode_coding_gap): Set coding->dst_multibyte correctly.
22870
228712008-02-01 Kenichi Handa <handa@m17n.org>
22872
22873 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22874 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22875 (encode_coding_utf_16): Substitute coding->default_char for
22876 non-Unicode characters.
22877 (decode_coding): Don't call record_insert here.
22878 (setup_coding_system): Initialize `surrogate' of
22879 coding->spec.utf_16 to 0.
22880 (EMIT_ONE_BYTE): Fix for multibyte case.
22881
22882 * insdel.c (insert_from_gap): Call record_insert.
22883
228842008-02-01 Kenichi Handa <handa@m17n.org>
22885
22886 * casefiddle.c (casify_region): Fix multibyte case.
22887
22888 * character.c (c_string_width): Add return type `int'.
22889 (char_string_with_unification): Delete arg ADVANCED.
22890
22891 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22892 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22893 (CHAR_STRING_ADVANCE): Make it do-while statement.
22894
22895 * chartab.c (sub_char_table_set_range): Optimize for the case
22896 DEPTH == 3. Add workaround code for a GCC optimization bug.
22897
22898 * charset.c (parse_charset_map): Remove an unused variable.
22899
22900 * coding.c: Delete unused variables.
22901
22902 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22903 earlier. If inserted is zero and the coding system doesn't
22904 require flushing, don't call decode_coding_gap.
22905
22906 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22907
229082008-02-01 Kenichi Handa <handa@m17n.org>
22909
22910 The following changes are for using Unicode as an internal
22911 character model, and use UTF-8 format for buffer/string
22912 representation.
22913
22914 * .gdbinit (xchartable): Adjust for the change of char table structure.
22915 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22916
22917 * Makefile.in (obj): Add character.o and chartab.o.
22918 (lisp, shortlisp): Remove utf-8.elc.
22919 (*.o): For many files, change dependency on charset.h to
22920 character.h, and add dependency on character.h.
22921 (character.o, chartab.o): New targets.
22922
22923 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22924 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22925 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22926 of "charset.h".
22927
22928 * dired.c, filelock.c: Include "character.h".
22929
22930 * alloc.c: Include "character.h" instead of "charset.h".
22931 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22932 (syms_of_alloc): Remove defsubr for Smake_char_table.
22933
22934 * buffer.c: Include "character.h" instead of "charset.h", don't
22935 include "coding.h".
22936 (Fset_buffer_multibyte): Adjust for UTF-8.
22937
22938 * buffer.h: EXFUN Fbuffer_live_p.
22939
22940 * callproc.c: Include "character.h" instead of "charset.h".
22941 (Fcall_process): Big change for the new code-conversion APIs.
22942
22943 * casetab.c: Include "character.h" instead of "charset.h".
22944 (set_canon, set_identity, shuffle): Adjust for the new
22945 map_char_table spec.
22946 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22947 accessing the char table structure.
22948
22949 * chartab.c: New file that implements char table.
22950
22951 * category.c: Include "character.h".
22952 (copy_category_entry): New function.
22953 (copy_category_table): Call map_char_table and copy_category_entry.
22954 (Fmake_category_table): Initialize all top-level slots.
22955 (char_category_set): New function.
22956 (modify_lower_category_set): Delete.
22957 (Fmodify_category_entry): Call char_table_ref_and_range.
22958
22959 * category.h (CATEGORY_SET): Just call char_category_set.
22960
22961 * ccl.c: Include "character.h".
22962 (Qccl, Qcclp): New variables.
22963 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22964 it's less than 256.
22965 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22966 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22967 and DST type.
22968 (ccl_driver): Change types of argument, adjust code accordingly.
22969 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22970 ccl_driver.
22971 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22972
22973 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22974 New members src_multibyte, dst_multibyte, consumed, and produced.
22975 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22976 (CODING_SPEC_CCL_PROGRAM): New macro.
22977 (ccl_driver): Update prototype.
22978 (Qccl, Qcclp, Fccl_program_p): Extern them.
22979 (CHECK_CCL_PROGRAM): New macro.
22980
22981 * character.c, character.h, chartab.c: New files.
22982
22983 * charset.c: Mostly re-written. Move character and multibyte sequence
22984 handling codes to character.c.
22985
22986 * charset.h: Mostly re-written. Move character and multibyte sequence
22987 handling codes to character.h.
22988
22989 * coding.c, coding.h: Mostly re-written.
22990
22991 * composite.c: Include "character.h" instead of "charset.h".
22992 (CHAR_WIDTH): Move to character.h.
22993 (HASH_KEY, HASH_VALUE): Delete.
22994
22995 * composite.h (enum composition_method): Change order of enumeration
22996 symbols.
22997
22998 * data.c: Include "character.h" instead of "charset.h".
22999 (Faref): Call CHAR_TABLE_REF for a char table.
23000 (Faset): Call CHAR_TABLE_SET for a char table.
23001
23002 * dispextern.h (free_realized_face, check_face_attribytes)
23003 (generate_ascii_font): Extern them.
23004 (free_realized_multibyte_face): Delete extern.
23005
23006 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23007 table structure.
23008
23009 * editfns.c: Include "character.h" instead of "charset.h".
23010 (Fchar_to_string): Always call CHAR_STRING.
23011
23012 * emacs.c (main): Call init_charset_once, init_charset,
23013 syms_of_chartab, and syms_of_character.
23014
23015 * fileio.c: Include "character.h" instead of "charset.h".
23016 (Finsert_file_contents): Big change for the new code-conversion API.
23017 (choose_write_coding_system, Fwrite_region): Likewise.
23018 (build_annotations_2): Delete.
23019 (e_write): Big change for the new code-conversion API.
23020
23021 * fns.c: Include "character.h" instead of "charset.h".
23022 (copy_sub_char_table): Move to chartab.c.
23023 (Fcopy_sequence): Call copy_char_table for a char table.
23024 (concat): Delete codes calling count_multibyte.
23025 (string_char_to_byte, string_byte_to_char): Adjust for the new
23026 multibyte form.
23027 (internal_equal): Adjust for the change of char table structure.
23028 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23029 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23030 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23031 (char_table_translate, optimize_sub_char_table)
23032 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23033 chartab.c.
23034 (char_table_ref_and_index): Delete.
23035 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23036 (Fmd5): Call preferred_coding_system instead of accessing
23037 Vcoding_category_list. Adjust for the new code-conversion API.
23038 (syms_of_fns): Move defsubr for char table related functions to
23039 chartab.c.
23040
23041 * fontset.c: Mostly re-written.
23042
23043 * fontset.h (struct font_info): Change type of the member encoding_type.
23044 (enum FONT_SPEC_INDEX): New enum.
23045 (fontset_font_pattern, fs_load_font): Update prototype.
23046 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23047
23048 * indent.c: Include "character.h" instead of "charset.h".
23049 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23050
23051 * insdel.c: Include "character.h" instead of "charset.h".
23052 (copy_text): Don't refer to Vnonascii_translation_table.
23053 (insert_from_gap): New function.
23054
23055 * keyboard.c: Include "character.h" instead of "charset.h".
23056 (command_loop_1): Never call direct_output_forward_char before
23057 a non-ASCII character.
23058 (read_char): If Vkeyboard_translate_table is a char table, always
23059 translate a character.
23060
23061 * keymap.c: Include "character.h".
23062 (store_in_keymap): Handle the case that IDX is a cons.
23063 (Fdefine_key): Handle the case that KEY is a cons and the car part
23064 is also a cons (range).
23065 (push_key_description): Adjust for the new character code.
23066 (describe_vector): Call describe_char_table for a char table.
23067 (describe_char_table): New function.
23068
23069 * keymap.h (describe_char_table): Extern it.
23070
23071 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23072 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23073 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23074 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23075 Delete.
23076 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23077 structure.
23078 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23079 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23080 (CHARTAB_SIZE_BITS_3): New macros.
23081 (chartab_size): Extern it.
23082 (struct Lisp_Char_Table): Re-design.
23083 (struct Lisp_Sub_Char_Table): New structure.
23084 (HASH_KEY, HASH_VALUE): Move from fns.c.
23085 (CHARACTERBITS): Define as 22.
23086 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23087 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23088 (GC_SUB_CHAR_TABLE_P): New macro.
23089 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23090 (code_convert_string_norecord): Deleted extern.
23091 (init_character_once, syms_of_character, init_charset)
23092 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23093
23094 * lread.c: Include "character.h".
23095 (read_multibyte): New arg NBYTES.
23096 (read_escape): Change the meaning of returned *BYTEREP.
23097 (to_multibyte): Delete.
23098 (read1): Adjust the handling of char table and string.
23099
23100 * print.c: Include "character.h" instead of "charset.h".
23101 (print_string): Convert 8-bit raw bytes to octal form by
23102 string_escape_byte8.
23103 (print_object): Adjust for the new multibyte form. Print 8-bit
23104 raw bytes always in octal form. Handle sub char table correctly.
23105
23106 * process.c: Include "character.h" instead of "charset.h".
23107 (read_process_output, send_process): Adjust for the new
23108 code-conversion API.
23109
23110 * puresize.h (BASE_PURESIZE): Increase.
23111
23112 * regex.c: Include "character.h" instead of "charset.h".
23113 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23114 (regex_compile): Accept a range whose starting and ending
23115 character have different leading bytes.
23116 (analyse_first): Adjust for the above change.
23117
23118 * search.c: Include "character.h" instead of "charset.h".
23119 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23120 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23121
23122 * syntax.c: Include "character.h" instead of "charset.h".
23123 (syntax_parent_lookup): Delete.
23124 (Fmodify_syntax_entry): Accept a cons as CHAR.
23125 (skip_chars): Adjust for the new multibyte form.
23126 (init_syntax_once): Call char_table_set_range instead of directly
23127 accessing the structure of a char table.
23128
23129 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23130 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23131 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23132 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23133
23134 * term.c: Include "buffer.h" and "character.h".
23135 (encode_terminal_code, write_glyphs): Adjust for the new
23136 code-conversion API.
23137 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23138
23139 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23140
23141 * xdisp.c: Include "character.h".
23142 (get_next_display_element): Adjust for the new multibyte form.
23143 (disp_char_vector): Adjust for the new char table structure.
23144 (decode_mode_spec_coding): Adjust for the new structure of
23145 coding system.
23146 (decode_mode_spec): Adjust for the new code-conversion API.
23147
23148 * xfaces.c: Include "character.h" instead of "charset.h".
23149 (load_face_font): Adjust for the change of choose_face_font and
23150 FS_LOAD_FONT.
23151 (generate_ascii_font): New function.
23152 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23153 (set_font_frame_param): Adjust for the change of choose_face_font.
23154 (free_realized_face): Make it public.
23155 (free_realized_faces_for_fontset): Rename from
23156 free_realized_multibyte_face. Free also faces realized for ASCII.
23157 (choose_face_font): Change arguments. Adjust for the change of
23158 fontset_font_pattern and FS_LOAD_FONT.
23159
23160 * xfns.c: Include "character.h".
23161 (x_encode_text): Adjust for the new code-conversion API.
23162
23163 * xselect.c: Don't include "charset.h".
23164 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23165
23166 * xterm.c: Include "character.h".
23167 (x_encode_char): New argument CHARSET. Change caller.
23168 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23169 Call ENCODE_CHAR instead of SPLIT_CHAR.
23170 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23171 CHAR_WIDTH instead of CHARSET_WIDTH.
23172 (XTread_socket): Adjust for the new code-conversion API.
23173 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23174 (x_load_font): Adjust for the change of struct font.
23175
231762008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23177
23178 * xfaces.c (face_at_buffer_position): Remove unused vars.
23179
231802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23181
23182 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23183 Fix overflow checking.
23184
231852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23186
23187 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23188 Cancel previous change.
23189
231902008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23191
23192 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23193 ccl->eight_bit_control. Fix check for buffer overflow.
23194 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23195 (ccl_driver): Initialize extra_bytes to 0.
23196
231972008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23198
23199 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23200 return it ORed with ctrl_modifier.
23201
232022008-01-29 Miles Bader <miles@gnu.org>
23203
23204 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23205
232062008-01-28 Jason Rumney <jasonr@gnu.org>
23207
23208 * w32.c (stat): Don't double check for networked drive.
23209
232102008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23211
23212 * window.c (run_window_configuration_change_hook): New function.
23213 Code extracted from set_window_buffer. Set the selected frame.
23214 (set_window_buffer): Use it.
23215 * window.h (run_window_configuration_change_hook): Declare.
23216 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23217
23218 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23219
232202008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23221
23222 * Makefile.in: Remove references to unused macros.
23223
232242008-01-26 Eli Zaretskii <eliz@gnu.org>
23225
23226 * w32.c (g_b_init_get_sid_sub_authority)
23227 (g_b_init_get_sid_sub_authority_count): New static variables.
23228 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23229 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23230 (init_user_info): Use them to retrieve uid and gid.
23231 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23232 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23233 st_uid and st_gid of the file.
23234
232352008-01-26 Jason Rumney <jasonr@gnu.org>
23236
23237 * w32.c (logon_network_drive): New function.
23238 (stat): Use it.
23239
232402008-01-26 Chong Yidong <cyd@stupidchicken.com>
23241
23242 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23243 invisible text covered with an ellipsis.
23244
232452008-01-25 Richard Stallman <rms@gnu.org>
23246
23247 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23248 jump back to beginning. Move some other initializations after that.
23249 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23250 New variables.
23251 (syms_of_xdisp): Init them.
23252
23253 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23254
23255 * buffer.c (reset_buffer_local_variables):
23256 Implement `permanent-local-hook'.
23257 (Qpermanent_local_hook): New variable.
23258 (syms_of_buffer): Init and staticpro it.
23259
232602008-01-25 Michael Albinus <michael.albinus@gmx.de>
23261
23262 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23263
232642008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23265
23266 * fns.c (Fclrhash): Return TABLE.
23267
232682008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23269
23270 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23271 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23272 is set even without positional changes.
23273 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23274
23275 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23276
232772008-01-23 Jason Rumney <jasonr@gnu.org>
23278
23279 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23280
23281 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23282 the unicode range available in MULE by locale-coding-system.
23283 Improve dbcs lead byte detection. Set event timestamp and modifiers
23284 earlier.
23285
232862008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23287
23288 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23289 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23290 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23291 when used on child processes.
23292
232932008-01-21 Michael Albinus <michael.albinus@gmx.de>
23294
23295 * dbusbind.c (Fdbus_method_return_internal): Rename from
23296 Fdbus_method_return.
23297 (Fdbus_unregister_object): Move to dbus.el.
23298 (Fdbus_call_method, Fdbus_method_return_internal)
23299 (Fdbus_send_signal): Improve debug messages.
23300
233012008-01-20 Martin Rudalics <rudalics@gmx.at>
23302
23303 * undo.c (undo_inhibit_record_point): New variable.
23304 (syms_of_undo): Initialize it.
23305 (record_point): Don't record point when undo_inhibit_record_point
23306 is set.
23307
233082008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23309
23310 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23311
23312 * xdisp.c (Qauto_hscroll_mode): New var.
23313 (syms_of_xdisp): Initialize it.
23314 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23315 window's buffer.
23316 (hscroll_windows): Don't check automatic_hscrolling_p here.
23317
23318 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23319 vscroll if we're setting window-buffer to the value it already has.
23320
233212008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23322
23323 * m/intel386.h: Remove references to XENIX.
23324
233252008-01-17 Andreas Schwab <schwab@suse.de>
23326
23327 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23328 instead of HAVE_X86_64_LIB64_DIR.
23329 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23330
233312008-01-17 Glenn Morris <rgm@gnu.org>
23332
23333 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23334 to HAVE_X86_64_LIB64_DIR.
23335
233362008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23337
23338 * s/irix3-3.h:
23339 * s/irix4-0.h:
23340 * s/386-ix.h:
23341 * s/domain.h:
23342 * s/hpux9-x11r4.h:
23343 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23344
23345 * sysdep.c: Remove code containing references to symbols defined
23346 by unsupported systems.
23347
233482008-01-16 Glenn Morris <rgm@gnu.org>
23349
23350 * coding.c (select-safe-coding-system-function): Doc fix.
23351
233522008-01-15 Glenn Morris <rgm@gnu.org>
23353
23354 * config.in: Revert 2008-01-13 change: this is a generated file.
23355
233562008-01-13 Tom Tromey <tromey@redhat.com>
23357
23358 * lisp.h: Fix typo.
23359
233602008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23361
23362 * m/sequent-ptx.h:
23363 * m/sequent.h:
23364 * s/ptx.h:
23365 * s/ptx4-2.h:
23366 * s/ptx4.h: Remove files for systems no longer supported.
23367
23368 * callproc.c (Fcall_process): Fix previous change.
23369
233702008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23371
23372 * unexsunos4.c: Remove file, system not supported anymore.
23373
23374 * m/mips.h:
23375 * m/intel386.h:
23376 * callproc.c:
23377 * config.in:
23378 * ecrt0.c:
23379 * emacs.c:
23380 * fileio.c:
23381 * frame.c:
23382 * getpagesize.h:
23383 * keyboard.c:
23384 * lread.c:
23385 * process.c:
23386 * puresize.h:
23387 * sysdep.c:
23388 * systty.h:
23389 * syswait.h:
23390 * unexec.c:
23391 * xdisp.c:
23392 * alloc.c: Remove code containing references to symbols defined by
23393 unsupported systems.
23394
233952008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23396
23397 * coding.c (detect_coding_mask): Fix previous change.
23398
233992008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23400
23401 * coding.c (detect_coding_iso2022): New arg
23402 latin_extra_code_state. Allow Latin extra codes only
23403 when *latin_extra_code_state is nonzero.
23404 (detect_coding_mask): If there is a NULL byte, detect the encoding
23405 as UTF-16 or binary. If Latin extra codes exist, detect the
23406 encoding as ISO-2022 only when there's no other proper encoding is
23407 found.
23408
234092008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23410
23411 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23412 #ifdef MAC_OS.
23413
234142008-01-08 Richard Stallman <rms@gnu.org>
23415
23416 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23417
234182008-01-06 Nick Roberts <nickrob@snap.net.nz>
23419
23420 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23421 menu bar in parentheses.
23422
234232008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23424
23425 * m/7300.h:
23426 * m/acorn.h:
23427 * m/alliant-2800.h:
23428 * m/alliant.h:
23429 * m/alliant1.h:
23430 * m/alliant4.h:
23431 * m/altos.h:
23432 * m/amdahl.h:
23433 * m/apollo.h:
23434 * m/att3b.h:
23435 * m/aviion-intel.h:
23436 * m/aviion.h:
23437 * m/celerity.h:
23438 * m/clipper.h:
23439 * m/cnvrgnt.h:
23440 * m/convex.h:
23441 * m/cydra5.h:
23442 * m/delta88k.h:
23443 * m/dpx2.h:
23444 * m/dual.h:
23445 * m/elxsi.h:
23446 * m/f301.h:
23447 * m/gould-np1.h:
23448 * m/gould.h:
23449 * m/i860.h:
23450 * m/ibmps2-aix.h:
23451 * m/ibmrt-aix.h:
23452 * m/ibmrt.h:
23453 * m/irist.h:
23454 * m/is386.h:
23455 * m/isi-ov.h:
23456 * m/mega68.h:
23457 * m/mg1.h:
23458 * m/news-r6.h:
23459 * m/news-risc.h:
23460 * m/news.h:
23461 * m/nh3000.h:
23462 * m/nh4000.h:
23463 * m/ns16000.h:
23464 * m/ns32000.h:
23465 * m/nu.h:
23466 * m/orion.h:
23467 * m/orion105.h:
23468 * m/paragon.h:
23469 * m/pfa50.h:
23470 * m/plexus.h:
23471 * m/pyramid.h:
23472 * m/pyrmips.h:
23473 * m/sh3el.h:
23474 * m/sps7.h:
23475 * m/sr2k.h:
23476 * m/stride.h:
23477 * m/sun1.h:
23478 * m/sun2.h:
23479 * m/sun3-68881.h:
23480 * m/sun3-fpa.h:
23481 * m/sun3-soft.h:
23482 * m/sun3.h:
23483 * m/sun386.h:
23484 * m/symmetry.h:
23485 * m/tad68k.h:
23486 * m/tahoe.h:
23487 * m/targon31.h:
23488 * m/tek4300.h:
23489 * m/tekxd88.h:
23490 * m/tower32.h:
23491 * m/tower32v3.h:
23492 * m/ustation.h:
23493 * m/wicat.h:
23494 * m/xps100.h:
23495 * s/cxux.h:
23496 * s/cxux7.h:
23497 * s/dgux.h:
23498 * s/dgux4.h:
23499 * s/dgux5-4-3.h:
23500 * s/dgux5-4r2.h:
23501 * s/esix.h:
23502 * s/esix5r4.h:
23503 * s/hiuxmpp.h:
23504 * s/hiuxwe2.h:
23505 * s/iris3-5.h:
23506 * s/iris3-6.h:
23507 * s/isc2-2.h:
23508 * s/isc3-0.h:
23509 * s/isc4-0.h:
23510 * s/isc4-1.h:
23511 * s/newsos5.h:
23512 * s/newsos6.h:
23513 * s/osf1.h:
23514 * s/osf5-0.h:
23515 * s/riscix1-1.h:
23516 * s/riscix12.h:
23517 * s/sco4.h:
23518 * s/sco5.h:
23519 * s/sunos4-0.h:
23520 * s/sunos4-1.h:
23521 * s/sunos413.h:
23522 * s/sunos4shr.h:
23523 * s/umax.h:
23524 * s/unipl5-2.h:
23525 * s/xenix.h:
23526 * cxux-crt0.s:
23527 * unexapollo.c:
23528 * unexconvex.c:
23529 * unexenix.c:
23530 * unexsni.c: Remove files for systems no longer supported.
23531
23532 * m/intel386.h: Remove references to unsupported systems.
23533
23534 * w32.c (get_emacs_configuration): Remove reference to i860.
23535
23536 * sysdep.c: Remove dead code.
23537
235382008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23539
23540 * s/rtu.h:
23541 * m/masscomp.h: Remove files. Platform is obsolete.
23542
235432008-01-04 Michael Albinus <michael.albinus@gmx.de>
23544
23545 * dbusbind.c (Fdbus_method_return): New function.
23546 (xd_read_message): Add the serial number to the event.
23547 (Fdbus_register_method): Activate the function.
23548
235492008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23550
23551 * keyboard.c (read_key_sequence): Fix typo.
23552
235532008-01-03 Michael Albinus <michael.albinus@gmx.de>
23554
23555 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23556 (xd_signature, xd_append_arg): Handle element type detection for
23557 empty arrays.
23558 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23559 SDATA () calls; this must be solved more general.
23560 (Fdbus_register_signal): Use SBYTES instead of strlen.
23561
235622008-01-03 Magnus Henoch <magnus@zemdatav>
23563
23564 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23565 unsigned int for byte values (necessary for big-endian platform).
23566 (Fdbus_call_method): Handle the case of no returned arguments.
23567
235682007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23569
23570 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23571
235722007-12-31 Magnus Henoch <mange@freemail.hu>
23573
23574 * dbusbind.c (xd_signature): Signature of variant is just "v".
23575
235762007-12-30 Michael Albinus <michael.albinus@gmx.de>
23577
23578 * dbusbind.c: Fix several errors and compiler warnings.
23579 Reported by Tom Tromey <tromey@redhat.com>.
23580 (XD_ERROR, XD_DEBUG_MESSAGE)
23581 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23582 (xd_append_arg): Part for basic D-Bus types rewritten.
23583 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23584 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23585 appropriate.
23586 (xd_read_message): Return Qnil. Don't signal an error; it is not
23587 useful during event reading.
23588 (Fdbus_register_signal): Signal an error if the check for
23589 FUNCTIONP fails.
23590 (Fdbus_register_method): New function. The implementation is not
23591 complete, the call of the function signals an error therefore.
23592 (Fdbus_unregister_object): New function, renamed from
23593 Fdbus_unregister_signal. The initial check signals an error, if
23594 the object is not well formed.
23595
235962007-12-30 Richard Stallman <rms@gnu.org>
23597
23598 * textprop.c (get_char_property_and_overlay):
23599 Signal error if POSITION is out of range in a buffer.
23600
236012007-12-29 Martin Rudalics <rudalics@gmx.at>
23602
23603 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23604 because the original parameters are in pure storage now.
23605
236062007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23607
23608 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23609
236102007-12-22 Eli Zaretskii <eliz@gnu.org>
23611
23612 * callint.c (syms_of_callint) <command-history>: Add reference to
23613 history-length in the doc string.
23614
236152007-12-17 Jason Rumney <jasonr@gnu.org>
23616
23617 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23618 before passing as wParam.
23619
236202007-12-22 Michael Albinus <michael.albinus@gmx.de>
23621
23622 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23623 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23624 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23625 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23626 as number.
23627 (Fdbus_call_method): Fix docstring.
23628
236292007-12-21 Michael Albinus <michael.albinus@gmx.de>
23630
23631 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23632 New macros.
23633 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23634 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23635 Simplify.
23636 (xd_signature): New function.
23637 (xd_append_arg): Compute also signatures. Major rewrite.
23638 (xd_retrieve_arg): Make debug messages friendly.
23639 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23640 Check for signatures of arguments.
23641
236422007-12-19 Michael Albinus <michael.albinus@gmx.de>
23643
23644 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23645 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23646 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23647 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23648 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23649 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23650 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23651 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23652 (xd_retrieve_value): Remove. Functionality included in ...
23653 (xd_append_arg): New function.
23654 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23655
236562007-12-16 Michael Albinus <michael.albinus@gmx.de>
23657
23658 * dbusbind.c (top): Include <stdio.h>.
23659 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23660 dbus_message_new_method_call and dbus_message_new_signal.
23661 (Fdbus_register_signal): Rename unique_name to uname.
23662 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23663 non-existing unique name. Fix typos in matching rule. Return an
23664 object which is useful in Fdbus_unregister_signal.
23665 (Fdbus_unregister_signal): Reimplementation, in order to remove
23666 only the corresponding entry.
23667 (Vdbus_registered_functions_table): Change the order of entries.
23668 Apply these changes in xd_read_message and Fdbus_register_signal.
23669
236702007-12-16 Andreas Schwab <schwab@suse.de>
23671
23672 * fileio.c (Finsert_file_contents): Fix overflow check to not
23673 depend on undefined integer overflow.
23674
236752007-12-14 Jason Rumney <jasonr@gnu.org>
23676
23677 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23678 for characters above 127.
23679
236802007-12-13 Jason Rumney <jasonr@gnu.org>
23681
23682 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23683 before dereferencing array.
23684 (lookup_vk_code): Remove zero comparison.
23685
236862007-12-14 Michael Albinus <michael.albinus@gmx.de>
23687
23688 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23689 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23690 Use `unsigned int' instead of `uint'.
23691 (xd_read_message, Fdbus_register_signal): Split expressions into
23692 multiple lines before operators "&&" and "||", according to the
23693 GNU Coding Standards.
23694
236952007-12-14 Eli Zaretskii <eliz@gnu.org>
23696
23697 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23698
236992007-12-12 Juri Linkov <juri@jurta.org>
23700
23701 * buffer.c (Frename_buffer): In interactive spec replace
23702 `read-buffer' with `read-string' that uses `buffer-name-history'
23703 as history, and the current buffer's name as default.
23704
237052007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23706
23707 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23708 manipulating the backtrace manually.
23709 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23710 (struct backtrace, backtrace_list): Remove.
23711 (command_loop_1): Remove dead var `no_direct'.
23712
23713 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23714 preserve non-built-in buffer-local variables.
23715 (Fkill_all_local_variables): Don't re-create&re-set permanent
23716 buffer-local variables.
23717
237182007-12-09 Juri Linkov <juri@jurta.org>
23719
23720 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23721 Lisp code that uses `read-buffer' with current buffer as default.
23722
237232007-12-08 Michael Albinus <michael.albinus@gmx.de>
23724
23725 * dbusbind.c (xd_read_message): Generate an event for every
23726 registered handler. There might be several handlers registered
23727 for the same signal.
23728 (Fdbus_register_signal): Don't overwrite a registration for the
23729 same signal. Add a new registration if handlers are different.
23730 (Vdbus_registered_functions_table): Rework doc string.
23731
237322007-12-07 Michael Albinus <michael.albinus@gmx.de>
23733
23734 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23735 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23736 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23737 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23738 Unify argument lists.
23739 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23740 arguments and hash table keys. Use unique name for service.
23741 (Fdbus_unregister_signal): Remove checks.
23742 (Vdbus_registered_functions_table): Fix doc string.
23743
237442007-12-05 Magnus Henoch <mange@freemail.hu>
23745
23746 * process.c (make_process): Initialize pty_flag to 0.
23747
237482007-12-05 Jason Rumney <jasonr@gnu.org>
23749
23750 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23751 specified XBMs.
23752
237532007-12-05 Richard Stallman <rms@gnu.org>
23754
23755 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23756
237572007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23758
23759 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23760 New variable.
23761 (mac_try_close_socket) [MAC_OSX]: New function.
23762 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23763 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23764
23765 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23766 Use mac_try_close_socket.
23767
237682007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23769
23770 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23771 reloc_base.
23772 (copy_dysymtab): Compute relocation base here.
23773 (rebase_reloc_address) [__ppc64__]: New function.
23774 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23775 changed.
23776
237772007-12-05 Jason Rumney <jasonr@gnu.org>
23778
23779 * w32proc.c (sys_spawnve): Quote args with wildcards.
23780
237812007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23782
23783 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23784 __objc_* sections.
23785 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23786
237872007-12-05 Michael Albinus <michael.albinus@gmx.de>
23788
23789 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23790 Move check for Vdbus_registered_functions_table to
23791 xd_read_queued_messages.
23792 (xd_read_queued_messages): Protect xd_read_message calls by
23793 internal_condition_case_1.
23794
237952007-12-04 Michael Albinus <michael.albinus@gmx.de>
23796
23797 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23798 Qdbus_system_bus and Qdbus_session_bus, respectively.
23799 (Vdbus_intern_symbols): Remove.
23800 (Vdbus_registered_functions_table): New hash table.
23801 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23802 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23803 Rewrite in order to manage registered functions by hash table
23804 Vdbus_registered_functions_table.
23805
238062007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23807
23808 * xterm.c: Update URL to Window Manager Specification in comment.
23809
238102007-12-02 Michael Albinus <michael.albinus@gmx.de>
23811
23812 * config.in (HAVE_DBUS): Add.
23813
23814 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23815 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23816 (obj): Add $(DBUS_OBJ).
23817 (LIBES): Add $(DBUS_LIBS).
23818 (dbusbind.o): New target.
23819
23820 * dbusbind.c: New file.
23821
23822 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23823
23824 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23825 (Qdbus_event): New Lisp symbol.
23826 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23827 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23828 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23829
23830 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23831
238322007-12-01 Richard Stallman <rms@gnu.org>
23833
23834 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23835
238362007-11-30 Jason Rumney <jasonr@gnu.org>
23837
23838 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23839 (w32con_reset_terminal_modes): Clear screen buffer.
23840 (w32_face_attributes): Don't use color indexes that are out of range.
23841 Only reverse the default colors.
23842
23843 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23844 WINDOWSNT.
23845
23846 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23847
238482007-11-29 Jason Rumney <jasonr@gnu.org>
23849
23850 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23851 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23852 if the terminal colors are initialized.
23853 (unspecified_fg, unspecified_bg): Remove unused declarations.
23854
238552007-11-29 Andreas Schwab <schwab@suse.de>
23856
23857 * keyboard.c (apply_modifiers): Fix typo.
23858
238592007-11-29 Richard Stallman <rms@gnu.org>
23860
23861 * keymap.c (Fcurrent_local_map): Doc fix.
23862
238632007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23864
23865 * s/gnu-kfreebsd.h: New file.
23866
238672007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23868
23869 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23870 Don't cast redundantly.
23871
23872 * keyboard.c (KEY_TO_CHAR): New macro.
23873 (parse_modifiers, apply_modifiers): Accept integer arguments.
23874 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23875 for chars and symbol keys.
23876 After doing such remapping, apply function-key-map again.
23877
238782007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23879
23880 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23881 compiled anymore.
23882
238832007-11-26 Andreas Schwab <schwab@suse.de>
23884
23885 * process.c (list_processes_1): Fix indentation level of the
23886 command column.
23887
238882007-11-23 Andreas Schwab <schwab@suse.de>
23889
23890 * editfns.c (Fformat): Handle %c specially since it requires the
23891 argument to be of type int.
23892
238932007-11-23 Markus Triska <markus.triska@gmx.at>
23894
23895 * emacs.c (main): Call init_editfns before init_process, since
23896 init_process sets Vprocess_connection_type depending on OS release.
23897
238982007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23899
23900 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23901 (find_symbol_value): Use do_symval_forwarding.
23902
23903 * data.c (set_internal): Set the value in the `cons-cell' (for
23904 Buffer_Local_values) not only for frame-local variables.
23905
239062007-11-22 Andreas Schwab <schwab@suse.de>
23907
23908 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23909 values to sprintf.
23910 * keymap.c (Fsingle_key_description): Likewise.
23911 * print.c (print_object): Likewise.
23912
239132007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23914
23915 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23916 file for image is nil.
23917
239182007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23919
23920 * term.c: Include stdarg.h.
23921 (fatal): Implement using varargs.
23922 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23923
239242007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23925
23926 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23927 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23928 Update call to buffer_slot_type_mismatch.
23929 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23930 (buffer_slot_type_mismatch): Update.
23931 * buffer.c (buffer_local_types): Remove.
23932 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23933 (defvar_per_buffer): Set the type in the buffer_objfwd.
23934
239352007-11-21 Jason Rumney <jasonr@gnu.org>
23936
23937 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23938 CreateFileMapping returns NULL on failure.
23939
239402007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23941
23942 * search.c (Fset_match_data): Remove the `evaporate' feature.
23943 (unwind_set_match_data): Don't use the `evaporate' feature.
23944
239452007-11-21 Jason Rumney <jasonr@gnu.org>
23946
23947 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23948
23949 * w32console.c (w32con_write_glyphs): Remove unused variables.
23950
239512007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23952
23953 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23954
23955 * s/darwin.h (MULTI_KBOARD): Remove.
23956
23957 * macfns.c (x_create_tip_frame, Fx_create_frame)
23958 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23959
239602007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23961
23962 * buffer.c (Fbuffer_local_value): Remove redundant test.
23963 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23964 than in `current-buffer' to match the comment.
23965 Do the swap using swap_in_global_binding.
23966
23967 * data.c (store_symval_forwarding, set_internal):
23968 * eval.c (specbind): Remove dead code.
23969
23970 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23971 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23972 Since we do not want to see internal Lisp_*fwd objects here.
23973
239742007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23975
23976 * sysdep.c (init_system_name): Use getaddrinfo if available.
23977
23978 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23979 (x_scroll_bar_note_movement): start, end, with, height in struct
23980 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23981
239822007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23983
23984 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23985
239862007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23987
23988 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23989 This undoes Richard's change of 14-Oct-2002.
23990
23991 * alloc.c (allocate_other_vector):
23992 * lisp.h (allocate_other_vector): Remove.
23993
23994 * window.c (struct save_window_data): Move non-lisp data to the end
23995 and make it `int' rather than Lisp_Object.
23996 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23997 Done wrap/unwrap integer values.
23998 (Fset_window_configuration, compare_window_configurations):
23999 Update use of fields to their new types.
24000
24001 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24002 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24003 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24004 (SET_SCROLL_BAR_X_WINDOW): Remove.
24005 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24006 Access the new x_window field directly.
24007 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24008 Don't wrap/unwrap integers into Lisp_Objects.
24009 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24010 (x_scroll_bar_report_motion):
24011 Don't wrap/unwrap integers into Lisp_Objects.
24012 (x_term_init): Use SDATA.
24013 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24014 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24015 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24016 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24017 * xfns.c (x_set_background_color):
24018 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24019 Access the new x_window field directly.
24020
24021 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24022 (allocate_pseudovector): Make non-static.
24023
24024 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24025 (allocate_pseudovector): Declare.
24026 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24027
240282007-11-15 Andreas Schwab <schwab@suse.de>
24029
24030 * editfns.c (Fformat): Correctly format EMACS_INT values.
24031 Also take precision into account when formatting an integer.
24032
24033 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24034
240352007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24036
24037 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24038 (syms_of_keyboard): Defsubr it.
24039
24040 * data.c (swap_in_global_binding): Fix longstanding bug where
24041 store_symval_forwarding was not called with the right second argument,
24042 thus causing objfwd-ing from being dropped.
24043
240442007-11-14 Juanma Barranquero <lekktu@gmail.com>
24045
24046 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24047 (Fx_display_pixel_height, Fx_display_planes)
24048 (Fx_display_color_cells, Fx_server_max_request_size)
24049 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24050 (Fx_display_visual_class, Fx_display_save_under):
24051 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24052 (Fx_display_pixel_height, Fx_display_planes)
24053 (Fx_display_color_cells, Fx_server_max_request_size)
24054 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24055 (Fx_display_mm_height, Fx_display_mm_width)
24056 (Fx_display_backing_store, Fx_display_visual_class)
24057 (Fw32_select_font, Fx_display_save_under):
24058 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24059 (Fx_display_pixel_height, Fx_display_planes)
24060 (Fx_display_color_cells, Fx_server_max_request_size)
24061 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24062 (Fx_display_save_under): Fix typos in docstrings.
24063
240642007-11-14 Juanma Barranquero <lekktu@gmail.com>
24065
24066 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24067 corresponding to deleted entries; they are an implementation detail.
24068 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24069 Remove variables.
24070 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24071 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24072 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24073 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24074 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24075 (Fw32_define_rgb_color, Fw32_load_color_file)
24076 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24077 Fix typos in docstrings.
24078 (Fx_server_version): Reflow docstring.
24079 (Fw32_shell_execute): Doc fixes.
24080
240812007-11-13 Juanma Barranquero <lekktu@gmail.com>
24082
24083 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24084 if w32_parse_hot_key returned nil.
24085
240862007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24087
24088 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24089
240902007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 24091
aac0c6e3
MR
24092 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24093
24094 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24095
24096 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24097 Remove W32_SCROLL_BAR_CLICK_EVENT.
24098
24099 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24100 Add MULTIMEDIA_KEY_EVENT.
24101
24102 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24103 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24104 (make_lispy_event) [WINDOWSNT]: Use it to translate
24105 MULTIMEDIA_KEY_EVENT.
24106
24107 * w32term.h (WM_APPCOMMAND): Define if not already.
24108 (GET_APPCOMMAND_LPARAM): Likewise.
24109
24110 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24111 WM_APPCOMMAND.
24112
24113 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24114 (syms_of_w32fns): Export and initialize it.
24115 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24116
241172007-11-09 Chong Yidong <cyd@stupidchicken.com>
24118
24119 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24120 twice.
24121
24122 * xdisp.c (handle_face_prop): Fix last change.
24123
241242007-11-09 Richard Stallman <rms@gnu.org>
24125
24126 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24127 not just for after-strings and before-strings.
24128 Call face_for_overlay_string and pass the overlay to it.
24129 (handle_display_prop): Determine whether property came from an overlay.
24130 Pass OVERLAY arg to handle_single_display_spec.
24131 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24132 (load_overlay_strings): Fill in it->string_overlays.
24133 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24134
24135 * xfaces.c (face_for_overlay_string): Function renamed from
24136 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24137
24138 * dispextern.h (struct it): New elt string_overlays.
24139 New elt from_overlay, also in stack.
24140 Rearrange a few elements.
24141 (face_for_overlay_string): Decl renamed from
24142 face_at_buffer_position_no_overlays, and add argument.
24143
241442007-11-09 Richard Stallman <rms@gnu.org>
24145
24146 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24147 to get the base face for an overlay string.
24148
24149 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24150
24151 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24152
24153 * xdisp.c (handle_stop): Move some code out of loop.
24154
241552007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24156
24157 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24158 Fix conversion from Lisp object to ATSUFontID.
24159
241602007-11-09 Jason Rumney <jasonr@gnu.org>
24161
24162 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24163
241642007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24165
24166 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24167 Don't assume regions are aligned to page boundary.
24168 (print_load_command_name): Add LC_UUID if defined.
24169
241702007-11-09 Richard Stallman <rms@gnu.org>
24171
24172 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24173
241742007-11-07 Jason Rumney <jasonr@gnu.org>
24175
24176 * s/windows95.h: Remove.
24177
241782007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24179
24180 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24181 abort with a message on unhandled store_type values.
24182
241832007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24184
24185 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24186 Remove HAVE_X11R5 and HAVE_X11R4.
24187
241882007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24189
24190 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24191
241922007-11-01 Johan Bockgård <bojohan@gnu.org>
24193
24194 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24195 Don't set s->stippled_p here, since it has already been set by
24196 x_set_glyph_string_gc from x_draw_glyph_string.
24197
241982007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24199
24200 * sunfns.c: Remove file.
24201
24202 * m/sun386.h:
24203 * m/sun2.h:
24204 * m/sparc.h: Remove Sun windows code.
24205
242062007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24207
24208 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24209 (init_keyboard): Set current_kboard's window-system to nil.
24210 (tty_read_avail_input): Typo.
24211 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24212
242132007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24214
24215 * s/usg5-4.h:
24216 * s/usg5-3.h:
24217 * s/ptx.h:
24218 * m/is386.h:
24219 * m/ibmps2-aix.h:
24220 * Makefile.in: Remove all mentions of X10.
24221
24222 * dispnew.c (syms_of_display): Don't mention version 10.
24223
242242007-10-28 Juanma Barranquero <lekktu@gmail.com>
24225
24226 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24227 ($(BLD)/abbrev.$(O)): Remove.
24228
242292007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24230
24231 Rewrite abbrev.c in Elisp.
24232 * image.c (Qcount): Don't declare as extern.
24233 (syms_of_image): Initialize and staticpro `Qcount'.
24234 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24235 * emacs.c (main): Don't call syms_of_abbrev.
24236 * Makefile.in (obj): Remove abbrev.o.
24237 (abbrev.o): Remove.
24238 * abbrev.c: Remove.
24239
242402007-10-26 Martin Rudalics <rudalics@gmx.at>
24241
24242 * window.c (window_min_size_2): Don't count header-line.
24243
242442007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24245
24246 * frame.h (struct frame): Move all bit fields after the first bit
24247 field to take advantage of the available space. Group all the
24248 chars together to reduce wasted space due to padding.
24249
242502007-10-26 Juanma Barranquero <lekktu@gmail.com>
24251
24252 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24253
24254 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24255 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24256 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24257 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24258 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24259 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24260 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24261 (last_marked, mark_object_loop_halt): Make static.
24262
24263 * frame.c (syms_of_frame) <delete-frame-functions>:
24264 Fix typo in docstring.
24265
242662007-10-25 Juanma Barranquero <lekktu@gmail.com>
24267
24268 * w32.c (init_environment): Fix tiny memory leak.
24269 (w32_get_resource): Remove unused variable `ok'.
24270
242712007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24272
24273 Make `window-system' into a keyboard-local variable (rather than
24274 frame-local as done originally by multi-tty).
24275
24276 * keyboard.h (struct kboard): Add Vwindow_system.
24277 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24278 (mark_kboards): Mark Vwindow_system.
24279
24280 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24281 (init_display): Don't set the obsolete `window-system' frame-param.
24282
24283 * xterm.c (x_term_init):
24284 * w32term.c (w32_create_terminal):
24285 * term.c (init_tty): Set Vwindow_system.
24286 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24287 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24288
24289 * xfns.c (Fx_create_frame, x_create_tip_frame):
24290 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24291 * macfns.c (Fx_create_frame):
24292 Don't set the obsolete `window-system' frame-param.
24293
24294 * frame.h (Qwindow_system): Remove.
24295 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24296 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24297
242982007-10-24 Richard Stallman <rms@gnu.org>
24299
24300 * frame.c (x_figure_window_size): For fullscreen case,
24301 set USPosition | PPosition without clobbering rest of window_prompting.
24302
24303 * keyboard.c (Fcurrent_idle_time): Doc fix.
24304
24305 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24306
243072007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24308
24309 * process.c (unwind_request_sigio): Only define if __ultrix__.
24310
24311 * callproc.c (child_setup): Remove spurious *.
24312
24313 * lisp.h (Fget_text_property): Declare.
24314 (have_menus_p): Declare it here rather than in sys-dep header files.
24315 * macterm.h (have_menus_p):
24316 * msdos.h (have_menus_p):
24317 * xterm.h (have_menus_p): Remove.
24318
24319 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24320 (Fmake_variable_frame_local): Just check the variable's const-ness
24321 rather than checking nil or t.
24322
243232007-10-22 Jason Rumney <jasonr@gnu.org>
24324
24325 * w32fns.c: Include math.h.
24326 (w32_abort): Declaration moved to nt/config.nt.
24327
24328 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24329 (abort): Redefinition moved to nt/config.nt.
24330
24331 * m/windowsnt.h: Remove.
24332
243332007-10-22 Juanma Barranquero <lekktu@gmail.com>
24334
24335 * emacs.c (Fdump_emacs): Fix typo in message.
24336 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24337 <installation-directory>: Reflow docstring.
24338
243392007-10-22 Juri Linkov <juri@jurta.org>
24340
24341 * minibuf.c: Allow minibuffer default to be a list of default values.
24342 With empty input use the first element of this list as returned default.
24343 (string_to_object)
24344 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24345 (read_minibuf): If defalt is cons, set histstring to its car.
24346 (Fread_string): If default_value is cons, set val to its car.
24347 (Fread_buffer): If def is cons, use its car.
24348 (Fcompleting_read): If defalt is cons, set val to its car.
24349
243502007-10-21 Michael Albinus <michael.albinus@gmx.de>
24351
24352 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24353
243542007-10-20 Juanma Barranquero <lekktu@gmail.com>
24355
24356 * doc.c (Fdocumentation): Check for advice in all cases.
24357
243582007-10-19 Chong Yidong <cyd@stupidchicken.com>
24359
24360 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24361
243622007-10-19 Richard Stallman <rms@gnu.org>
24363
24364 * doc.c (Fdocumentation): Check for and handle an advised function.
24365
243662007-10-19 Juanma Barranquero <lekktu@gmail.com>
24367
24368 * process.c (Fset_process_filter): Doc fix.
24369
243702007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24371
24372 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24373 which caused key-translation-map to applied repeatedly (thus breaking
24374 double-mode).
24375
243762007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24377
24378 * xselect.c (x_own_selection, x_handle_selection_clear)
24379 (x_clear_frame_selections):
24380 * w32menu.c (list_of_panes, list_of_items):
24381 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24382 * textprop.c (validate_plist, interval_has_all_properties)
24383 (interval_has_some_properties, interval_has_some_properties_list)
24384 (add_properties, text_property_list):
24385 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24386 * minibuf.c (Fassoc_string):
24387 * macselect.c (x_own_selection, x_clear_frame_selections)
24388 (Fx_disown_selection_internal):
24389 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24390 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24391
243922007-10-17 Chong Yidong <cyd@stupidchicken.com>
24393
24394 * process.c: Link to libs for calling res_init() if available.
24395 (Fmake_network_process): Call res_init() before getaddrinfo or
24396 gethostbyname, if possible.
24397
243982007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24399
24400 * lread.c (read1): Set pvectype for char_tables.
24401
24402 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24403 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24404 Add type checks.
24405 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24406
24407 * alloc.c (free_misc): Use XMISCTYPE.
24408 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24409
244102007-10-17 Glenn Morris <rgm@gnu.org>
24411
24412 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24413 (syms_of_minibuf): Add Qcompletion_ignore_case.
24414 * dired.c (Qcompletion_ignore_case): Change to external.
24415 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24416 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24417 (Fread_file_name): Use it rather than intern'ing.
24418
24419 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24420 (Fread_coding_system): Ignore case of user input.
24421
244222007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24423
24424 * xdisp.c (handle_display_prop): Ignore display specs after
24425 replacing one when string text is being replaced.
24426 (handle_single_display_spec): Pretend as if characters with display
24427 property haven't been consumed only when buffer text is being replaced.
24428
244292007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24430
24431 * xfns.c (Fx_create_frame, Fx_display_list):
24432 * window.c (window_fixed_size_p, enlarge_window)
24433 (shrink_window_lowest_first):
24434 * macterm.c (init_font_name_table):
24435 * macfns.c (Fx_create_frame, Fx_display_list):
24436 * lread.c (close_load_descs):
24437 * keyboard.c (read_char_x_menu_prompt):
24438 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24439 * coding.c (code_convert_region_unwind): Test the type of an object
24440 rather than just !NILP before extracting data from it.
24441
24442 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24443
24444 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24445 (XMISCANY): New macro.
24446 (XMISCTYPE): Use it.
24447 (struct Lisp_Misc_Any): New type.
24448 (union Lisp_Misc): Use it.
24449 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24450 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24451 (find_symbol_value, set_internal, default_value, Fset_default)
24452 (Fmake_variable_buffer_local, Fmake_local_variable)
24453 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24454 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24455 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24456 * alloc.c (allocate_buffer): Set the size and tag.
24457 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24458 Use XMISCANY.
24459 (die): Follow the GNU convention for error messages.
24460 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24461 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24462 tag any more.
24463 (set_buffer_internal_1):
24464 * frame.c (store_frame_param):
24465 * eval.c (specbind):
24466 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24467
24468 * doc.c (Fsnarf_documentation): Simplify.
24469
244702007-10-14 Juanma Barranquero <lekktu@gmail.com>
24471
24472 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24473 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24474
244752007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24476
24477 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24478
244792007-10-14 Juanma Barranquero <lekktu@gmail.com>
24480
24481 * eval.c (do_autoload): Don't save autoloads.
24482
24483 * data.c (Ffset): Save autoload of the function being set.
24484
244852007-10-07 John Paul Wallington <jpw@pobox.com>
24486
24487 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24488 parameter before setting up faces.
24489
244902007-10-13 Eli Zaretskii <eliz@gnu.org>
24491
24492 * ccl.c (Fregister_code_conversion_map):
24493 * keyboard.c (append_tool_bar_item): Reformat last change.
24494
24495 * lisp.h (eabs): Rename from `abs'. All callers changed.
24496
244972007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24498
24499 * buffer.c (add_overlay_mod_hooklist):
24500 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24501 * fontset.c (make_fontset):
24502 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24503 (append_tool_bar_item):
24504 * macmenu.c (grow_menu_items):
24505 * w32menu.c (grow_menu_items):
24506 * xmenu.c (grow_menu_items): Use larger_vector.
24507
245082007-10-13 Eli Zaretskii <eliz@gnu.org>
24509
24510 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24511 selected frame'' on MSDOS).
24512
245132007-10-12 Martin Rudalics <rudalics@gmx.at>
24514
24515 * frame.c (Qexplicit_name): New variable.
24516 (x_report_frame_params): Report it in parameter alist.
24517 (syms_of_frame): Intern and staticpro it.
24518
245192007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24520
24521 * macfns.c (x_create_tip_frame): Set terminal for frame.
24522
245232007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24524
24525 * frame.c (Qenvironment): Remove.
24526 (syms_of_frame) <Qenvironment>: Don't initialize.
24527 (Fdelete_frame): Don't treat the `environment' param specially.
24528 * frame.h (Qenvironment): Don't declare.
24529 * callproc.c (set_initial_environment): Don't set unused frame param.
24530
24531 * frame.c (Fframe_with_environment): Remove.
24532 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24533
24534 * lisp.h (Fframe_with_environment): Don't declare.
24535
245362007-10-10 Juanma Barranquero <lekktu@gmail.com>
24537
24538 * indent.c (indent_tabs_mode, last_known_column)
24539 (last_known_column_modified): Make static.
24540 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24541
245422007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24543
24544 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24545
245462007-10-09 Jason Rumney <jasonr@gnu.org>
24547
24548 * w32term.c (x_set_window_size): Disable code that attempts to tell
24549 Lisp code about a size change before it actually happens.
24550
245512007-10-09 Richard Stallman <rms@gnu.org>
24552
24553 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24554 return HANDLED_RETURN.
24555
245562007-10-08 Martin Rudalics <rudalics@gmx.at>
24557
24558 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24559 when there's an unread command event.
24560
24561 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24562 window autoselection act appropriately when leaving selected frame.
24563 (syms_of_frame): Initialize focus_follows_mouse.
24564 * frame.h (focus_follows_mouse): Extern it.
24565 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24566 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24567 * msdos.c (dos_rawgetc): Likewise.
24568 * w32term.c (w32_read_socket): Likewise.
24569 * xterm.c (handle_one_xevent): Likewise.
24570 * xdisp.c (syms_of_xdisp): In doc-string of
24571 mouse-autoselect-window mention focus-follows-mouse.
24572
245732007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24574
24575 * macterm.c (mac_load_query_font): Fix missing return value.
24576 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24577 Add BLOCK_INPUT.
24578
245792007-10-08 Richard Stallman <rms@gnu.org>
24580
24581 * xdisp.c (get_window_cursor_type): Implement documented behavior
24582 for cursor-in-non-selected-windows = t.
24583
245842007-10-08 Jason Rumney <jasonr@gnu.org>
24585
24586 * w32.c (w32_get_resource): Always close registry keys.
24587
245882007-10-08 Jason Rumney <jasonr@gnu.org>
24589
24590 * makefile.w32-in (LIBS): Add COMCTL32.
24591
24592 * w32fns.c (globals_of_w32fns): Init common controls.
24593
245942007-10-08 Richard Stallman <rms@gnu.org>
24595
24596 * image.c (our_memory_buffer): Rename from omfib_buffer.
24597
245982007-10-08 Richard Stallman <rms@gnu.org>
24599
24600 * buffer.c (Foverlays_at): Doc fix.
24601
246022007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24603
24604 * fns.c (Fplist_put): Preserve uneven tail data.
24605
246062007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24607
24608 * termhooks.h (enum event_kind): Remove trailing comma.
24609
24610 * frame.h (enum): Remove trailing comma.
24611
246122007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24613
24614 * w32proc.c (delete_child): Don't terminate threads of zombies.
24615
246162007-10-08 Martin Rudalics <rudalics@gmx.at>
24617
24618 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24619
24620 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24621 last-repeatable-command.
24622 (init_kboard): Initialize Vlast_repeatable_command.
24623 (command_loop_1): Set it to real_this_command unless that was
24624 bound to an input event.
24625 (mark_kboards): Mark it.
24626
246272007-10-08 Richard Stallman <rms@gnu.org>
24628
24629 * eval.c (condition-case): Doc fix.
24630
246312007-10-08 Masatake YAMATO <jet@gyve.org>
24632
24633 * xfaces.c (tty_supports_face_attributes_p): Fix code
24634 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24635 was copied and not edited.
24636
246372007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24638
24639 Add new `input-decode-map' keymap and use it for terminal
24640 escape sequences.
24641 * keyboard.h (struct kboard): Add Vinput_decode_map.
24642 Remove Vlocal_key_translation_map.
24643 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24644 (init_kboard): Init input-decode-map.
24645 Replace local-key-translation-map back with key-translation-map.
24646 (syms_of_keyboard): Declare input-decode-map.
24647 Remove local-key-translation-map. Update docstrings.
24648 (mark_kboards): Mark Vinput_decode_map.
24649 Don't mark Vlocal_key_translation_map.
24650 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24651 Replace local-key-translation-map back with key-translation-map.
24652 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24653 Bind in input-decode-map rather than function-key-map.
24654
24655 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24656 This was made redundant by the previous introduction of XSETPVECTYPE.
24657
246582007-10-09 Richard Stallman <rms@gnu.org>
24659
24660 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24661
246622007-09-29 Richard Stallman <rms@gnu.org>
24663
24664 * eval.c (internal_condition_case_2, internal_condition_case_1)
24665 (internal_condition_case): Reenable abort if x_catching_errors ()
24666 to see if that really happens and why.
24667
246682007-10-06 Andreas Schwab <schwab@suse.de>
24669
24670 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24671
246722007-10-04 Juanma Barranquero <lekktu@gmail.com>
24673
24674 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24675
246762007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24677
24678 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24679
246802007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24681
24682 * window.h (struct window):
24683 * window.c (struct save_window_data, struct saved_window):
24684 * termhooks.h (struct terminal):
24685 * process.h (struct Lisp_Process):
24686 * frame.h (struct frame):
24687 * buffer.h (struct buffer):
24688 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24689 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24690 The size field of (pseudo)vectors is now unsigned.
24691 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24692
24693 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24694 Turn `count' into an integer.
24695
24696 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24697 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24698 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24699 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24700 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24701
24702 * alloc.c (allocate_pseudovector): New fun.
24703 (ALLOCATE_PSEUDOVECTOR): New macro.
24704 (allocate_window, allocate_terminal, allocate_frame)
24705 (allocate_process): Use it.
24706 (mark_vectorlike): New function.
24707 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24708 (mark_terminals): Use it.
24709 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24710 (Fmake_byte_code): Use XSETPVECTYPE.
24711
24712 * frame.c (Fframe_parameters): Minor simplification.
24713
24714 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24715
24716 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24717
24718 * buffer.c (Fget_buffer_create, init_buffer_once):
24719 * lread.c (defsubr):
24720 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24721
24722 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24723 defined differently in the m/*.h files.
24724 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24725 (XSETPVECTYPE): New macro.
24726 (XSETPSEUDOVECTOR): Use it.
24727
24728 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24729 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24730
24731 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24732 * lread.c (defvar_per_buffer):
24733 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24734
24735 * window.c (candidate_window_p): Only consider as visible frames that
24736 are on the same terminal.
24737
24738 * m/ibms390x.h (MARKBIT): Remove unused macro.
24739
247402007-10-01 Juanma Barranquero <lekktu@gmail.com>
24741
24742 * lread.c (Fload): Fix typo in docstring.
24743
247442007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24745
24746 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24747 of a non-zero value can't yield zero.
24748
247492007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24750
24751 * term.c (term_clear_mouse_face, term_mouse_highlight)
24752 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24753
24754 * print.c (safe_debug_print): Use XHASH.
24755
24756 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24757 Lisp elements such as tags.
24758 (XHASH): New macro.
24759 (EQ): Use it.
24760 (SREF, SSET, STRING_COPYIN): Use SDATA.
24761 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24762
24763 * alloc.c (mark_terminal): Remove left-over declaration.
24764 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24765 (allocate_vectorlike): Remove type argument. Adjust callers.
24766 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24767 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24768
24769 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24770 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24771 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24772 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24773 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24774 Use them.
24775
24776 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24777 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24778 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24779
247802007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24781
24782 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24783 loaded by default.
24784
247852007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24786
24787 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24788 on this tty.
24789 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24790
24791 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24792 Update all users.
24793 (handle_one_term_event): Use Gpm_DrawPointer.
24794 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24795 Signal errors instead of returning nil. Always return nil.
24796 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24797 Make it a noop if gpm-mouse was not activated.
24798 (syms_of_term): Update names.
24799
248002007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24801
24802 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24803 (init_sys_modes): Check that gpm_tty is the current tty.
24804
24805 * alloc.c (allocate_terminal): Set the vector size to only count the
24806 lisp fields. Initialize those to nil.
24807 (mark_object): Don't treat terminals specially.
24808 (mark_terminal): Remove.
24809 (mark_terminals): Use mark_object instead.
24810
24811 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24812 the GC to the beginning.
24813
24814 * indent.h:
24815 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24816
24817 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24818
248192007-09-25 Jason Rumney <jasonr@gnu.org>
24820
24821 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24822
24823 * w32console.c (create_w32cons_output): Remove.
24824
24825 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24826
24827 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24828 (reset_sys_modes): Use reset_terminal_modes_hook.
24829
248302007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24831
24832 * eval.c (do_autoload): Don't output any message.
24833
248342007-09-24 Juri Linkov <juri@jurta.org>
24835
24836 * emacs.c (standard_args): Change priority of "--no-splash"
24837 from 40 to 3. Add "--no-desktop" with the same priority.
24838
248392007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24840
24841 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24842 and optimize the case where they are all 1.
24843
248442007-09-23 Johannes Weiner <hannes@saeurebad.de>
24845
24846 * lisp.h (abs): Define if not defined.
24847 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24848 Don't define `abs', since it's defined in lisp.h.
24849
248502007-09-22 Eli Zaretskii <eliz@gnu.org>
24851
24852 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24853 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24854 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24855 (init_tty): Use DEV_TTY instead of "/dev/tty".
24856 [WINDOWSNT]: No need to protect from NAME arg being null.
24857
248582007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24859
24860 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24861 up the tty state.
24862
248632007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24864
24865 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24866 (gpm_tty): Change its type.
24867 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24868 (gpm_tty): Change its type and initialize it.
24869 (Fterm_open_connection): Check the frame is indeed a tty.
24870 Use the new gpm_tty.
24871 (Fterm_close_connection): Use the new gpm_tty.
24872 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24873 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24874
248752007-09-21 Juanma Barranquero <lekktu@gmail.com>
24876
24877 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24878 underline_color, to draw strike-through.
24879
248802007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24881
24882 * lisp.h (allocate_terminal): Declare.
24883
24884 * window.c (candidate_window_p): Consider frames that are being placed
24885 by the user as somewhere between visible and iconified.
24886 (window_loop): Prefer windows on the current frame.
24887 (Fselect_window): Move the use of select-frame to the beginning so we
24888 can just delegate all the work (it'll call us back anyway).
24889
24890 * frame.c (Qdisplay_environment_variable):
24891 * frame.h (Qdisplay_environment_variable): Delete.
24892
24893 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24894 of the first arg, since that value may be a union.
24895
24896 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24897 parameter rather than Qdisplay_environment_variable. If all else
24898 fails, look for DISPLAY in initial-environment.
24899
249002007-09-21 Glenn Morris <rgm@gnu.org>
24901
24902 * Makefile.in (emacstool): Remove target.
24903 (lisp, shortlisp): Remove termdev.elc.
24904
249052007-09-21 Markus Triska <markus.triska@gmx.at>
24906
24907 * xterm.c (x_delete_display): Compile session management conditionally.
24908
249092007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24910
24911 * callproc.c (getenv_internal_1): New function.
24912 (getenv_internal): Use it.
24913 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24914
24915 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24916 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24917 (Fset_terminal_parameter): Work with dead terminals as well.
24918 (Fmodify_terminal_parameters): Remove.
24919
24920 * terminal.c (get_terminal): Handle terminals.
24921 Make sure the terminal returned is live.
24922 (create_terminal): Use allocate_terminal.
24923 (mark_terminals): Move to alloc.c.
24924 (delete_terminal): Use terminal->name as liveness status.
24925 NULL out fields after freeing their contents.
24926 Don't deallocate the object.
24927 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24928 rather than an int.
24929 (Fterminal_live_p): Accept non-integer arguments.
24930 (Fterminal_list): Return terminal objects rather than an ints.
24931
24932 * alloc.c (enum mem_type): New member for `terminal' objects.
24933 (allocate_terminal): New function.
24934 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24935 Handle terminals.
24936 (mark_terminal): New fun.
24937 (mark_terminals): Move from terminal.c.
24938
24939 * term.c (get_tty_terminal): Don't treat output_initial specially.
24940 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24941 (delete_tty): Use terminal->name as liveness status.
24942
24943 * termhooks.h (struct terminal): Make it into a pseudovector.
24944 Remove `deleted' replaced by checking `name's nullness.
24945
24946 * print.c (print_object): Handle terminals.
24947
24948 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24949 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24950
24951 * frame.c (make_terminal_frame):
24952 * keyboard.c (tty_read_avail_input):
24953 * w32term.c (x_delete_terminal):
24954 * xfns.c (Fx_create_frame, x_create_tip_frame):
24955 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24956
249572007-09-20 Glenn Morris <rgm@gnu.org>
24958
24959 * process.c (Fmake_network_process): Doc fix.
24960
249612007-09-19 Jason Rumney <jasonr@gnu.org>
24962
24963 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24964
249652007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24966
24967 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24968 Fix a C warning regarding variable constness.
24969
24970 * xterm.c (handle_one_xevent): Fix a C warning.
24971
249722007-09-18 Jason Rumney <jasonr@gnu.org>
24973
24974 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24975
249762007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24977
24978 * gtkutil.c (gdpy_def): New variable.
24979 (xg_initialize): Initialize gdpy_def.
24980 (xg_display_close): If no other display exists, set gdpy_def to a
24981 new connection.
24982
249832007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24984
24985 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24986 when we have no file name for the icon.
24987 (xg_tool_bar_expose_callback): Remove.
24988 (xg_create_tool_bar): Don't connect expose signal to
24989 xg_tool_bar_expose_callback.
24990 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24991
249922007-09-16 Andreas Schwab <schwab@suse.de>
24993
24994 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24995 values instead of zapping them.
24996
249972007-09-14 Glenn Morris <rgm@gnu.org>
24998
24999 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25000 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25001 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25002 scope and rename to omfib_buffer for clarity.
25003 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25004
250052007-09-14 Kenichi Handa <handa@m17n.org>
25006
25007 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25008
250092007-09-13 Jason Rumney <jasonr@gnu.org>
25010
25011 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25012
25013 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25014
25015 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25016 (mac_term_init): Call here instead, passing rif.
25017
250182007-09-13 Glenn Morris <rgm@gnu.org>
25019
25020 * s/hpux.h: No longer define `static' as nothing.
25021
250222007-09-13 Johan Bockgård <bojohan@gnu.org>
25023
25024 * callint.c (Fcall_interactively): Remove unused var `fun'.
25025
250262007-09-12 Romain Francoise <romain@orebokech.com>
25027
25028 * window.c (prefer_window_split_horizontally, display_buffer):
25029 Revert 2007-09-08 change.
25030
250312007-09-12 Glenn Morris <rgm@gnu.org>
25032
25033 * alloca.c: Remove file.
25034 * Makefile.in (alloca): Do not undef.
25035 (allocaobj, alloca.o): Remove.
25036 (otherobj): Remove allocaobj.
25037 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25038 * regex.c (C_ALLOCA): Remove all references and code that was only
25039 used when this was defined.
25040 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25041 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25042 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25043
25044 * Makefile.in (SOURCES, unlock, relock): Delete.
25045
25046 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25047 (menu_grab_callback): All uses changed.
25048
25049 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25050 (x_reply_selection_request): All uses changed.
25051
250522007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25053
25054 * lread.c (load_warn_old_style_backquotes): Change message to look
25055 better when it appears in the middle of byte-compiler messages.
25056
250572007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25058
25059 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25060
25061 * xterm.c (x_create_terminal): Add comment.
25062
25063 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25064
250652007-09-10 Richard Stallman <rms@gnu.org>
25066
25067 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25068
250692007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25070
25071 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25072 (DEFUN): Document `intspec', use it instead of `prompt'.
25073
25074 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25075
25076 * data.c (Finteractive_form): If the interactive specification starts
25077 with a `(', use it as a Lisp form.
25078
25079 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25080 name and file modes.
25081
25082 * callint.c (Fcall_interactively): Comment fixes.
25083
250842007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25085
25086 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25087 and compiled functions.
25088
250892007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25090
25091 * window.c (prefer_window_split_horizontally): New variable.
25092 (display_buffer): Consider splitting window horizontally depending
25093 on prefer_window_split_horizontally.
25094
250952007-09-08 Eli Zaretskii <eliz@gnu.org>
25096
25097 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25098
250992007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25100
25101 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25102
25103 * frame.c (x_set_frame_parameters): Check number is positive before
25104 using XFASTINT.
25105
25106 * window.c (freeze_window_start): Don't presume selected_window holds
25107 a window object.
25108 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25109
251102007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25111
25112 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25113
251142007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25115
25116 * window.c (Vsplit_window_preferred_function): New var.
25117 (Fdisplay_buffer): Use it.
25118 (syms_of_window): Export, and initialize it.
25119
251202007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25121
25122 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25123
251242007-09-06 Glenn Morris <rgm@gnu.org>
25125
25126 * gtkutil.c (menu_grab_callback) <cnt>:
25127 * xselect.c (x_reply_selection_request) <cnt>: Move static
25128 variable to file scope.
25129
251302007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25131
25132 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25133 consistent values of selected_frame and selected_window.
25134
251352007-09-04 Jason Rumney <jasonr@gnu.org>
25136
25137 * w32console.c (initialize_w32_display): Zero unused hooks.
25138
251392007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25140
25141 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25142 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25143
251442007-09-04 Jason Rumney <jasonr@gnu.org>
25145
25146 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25147 in w32console.c. Set up input. Remove XXX comments that have been
25148 confirmed as correct.
25149
25150 * s/ms-w32.h (MULTI_KBOARD): Define.
25151
25152 * w32console.c (one_and_only_w32cons): Remove.
25153 (initialize_w32_display): Take terminal argument.
25154
25155 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25156 initialize_w32_display.
25157 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25158
25159 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25160
25161 * keyboard.c (discard_mouse_events): Discard it.
25162 (make_lispy_event): Translate it to a lisp event.
25163 (lispy_wheel_names): Add wheel-left and right events.
25164 (syms_of_keyboard): Enlarge wheel_syms.
25165
25166 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25167 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25168
25169 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25170
25171 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25172 from WM_MOUSEHWHEEL.
25173 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25174
25175 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25176 terminal.
25177
25178 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25179 keyboard for the terminal.
25180
251812007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25182
25183 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25184 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25185 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25186 and resume-tty-function to resume-tty-hook.
25187 (Fsuspend_tty, Fresume_tty): Use new names.
25188
251892007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25190
25191 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25192 if it starts with "n:".
25193
251942007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25195
25196 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25197
251982007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25199
25200 * frame.h:
25201 * frame.c (Qterm_environment_variable): Remove.
25202 (syms_of_frame): Don't init and staticpro it.
25203
25204 * callproc.c (getenv_internal): Remove special case for $TERM.
25205
25206 * callproc.c (Vinitial_environment): New variable.
25207 (set_initial_environment): Initialize it.
25208 (syms_of_callproc): Declare it.
25209 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25210 TERM under which a process runs is never related to the TERM in which
25211 Emacs is running.
25212
252132007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25214
25215 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25216 * s/darwin.h: ... do it here.
25217
252182007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25219
25220 * lisp.h (set_initial_environment): Rename from set_global_environment.
25221
25222 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25223 removed by mistake on the multi-tty branch.
25224
25225 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25226 (Fmodify_frame_parameters): Return a value.
25227
25228 * image.c (png_load): Comment-out var only used in commented-out code.
25229
25230 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25231 before passing it to mark_object.
25232
25233 * xfaces.c (internal_resolve_face_name): Return a value.
25234 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25235
25236 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25237 (x_icon): Comment-out var only used in commented-out code.
25238
252392007-08-29 Romain Francoise <romain@orebokech.com>
25240
25241 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25242 QUIT hasn't been provided.
25243
252442007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25245
25246 * callproc.c (child_setup, getenv_internal): Use the
25247 display-environment-variable and term-environment-variable frame params.
25248 (set_initial_environment): Initialise Vprocess_environment.
25249
25250 * config.in: Disable multi-keyboard support on a mac.
25251
25252 * frame.c (Qterm_environment_variable)
25253 (Qdisplay_environment_variable): New variables.
25254 (syms_of_frame): Intern and staticpro them.
25255 (Fmake_terminal_frame): Disable output method test.
25256
25257 * frame.h: Declare them here.
25258
25259 * macfns.c (x_set_mouse_color): Get rif from the frame.
25260 (x_set_tool_bar_lines): Don't use updating_frame.
25261 (mac_window): Add 2 new parameters for consistency with other systems.
25262 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25263 frame parameters following what is done in X11 and w32. Don't use
25264 FRAME_MAC_DISPLAY_INFO.
25265 (Fx_open_connection, start_hourglass): Remove window-system check.
25266 (x_create_tip_frame): Get the keyboard from the terminal.
25267
25268 * macmenu.c: Reorder includes.
25269 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25270
25271 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25272 terminal parameter.
25273 (x_clear_frame): Add a frame parameter.
25274 (note_mouse_movement): Get rif from the frame.
25275 (mac_term_init): Initialize the terminal.
25276 (mac_initialize): Make static and move terminal initialization ...
25277 (mac_create_terminal): ... to this new function.
25278
25279 * macterm.h (struct mac_display_info): Add terminal.
25280 (mac_initialize): Delete declaration.
25281
25282 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25283
25284 * sysdep.c: Comment out text after #endif.
25285
25286 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25287 is defined. Better initialize ttys in windows. Use terminal
25288 specific mouse_position_hook.
25289
25290 * termhooks.h (union display_info): Add mac_display_info.
25291
25292 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25293 Set the default minibuffer frame, window_system and the rest of the
25294 frame parameters following what is done in X11.
25295
25296 * w32term.c (w32_initialize): Make static.
25297
25298 * xselect.c (x_handle_selection_clear): Only access
25299 terminal->kboard when MULTI_KBOARD is defined.
25300
25301 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25302 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25303
253042007-08-29 Jason Rumney <jasonr@gnu.org>
25305
25306 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25307 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25308
25309 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25310 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25311
25312 * keyboard.c (restore_kboard_configuration): Only define when
25313 MULTI_KBOARD defined.
25314
25315 * makefile.w32-in: Update dependancies from Makefile.in.
25316 (OBJ1): Add terminal.$(O)
25317
25318 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25319 Don't define function body.
25320 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25321
25322 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25323
25324 * w32.c (request_sigio, unrequest_sigio): Remove.
25325
25326 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25327 (w32con_clear_frame, w32con_clear_end_of_line)
25328 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25329 (w32con_delete_glyphs, w32con_set_terminal_window)
25330 (scroll_line, w32_sys_ring_bell): Add frame arg.
25331 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25332 Add terminal arg.
25333 (PICK_FRAME): Remove.
25334 (w32con_write_glyphs): Use frame specific terminal coding.
25335 (one_and_only_w32cons): New global variable.
25336 (initialize_w32_display): Use it for storing hooks.
25337 (create_w32cons_output): New function.
25338
25339 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25340 arg a frame.
25341
25342 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25343 Set window_system.
25344 (x_set_tool_bar_lines): Don't use updating_frame.
25345 (Fx_create_frame): Set terminal and ref count.
25346 (Fx_open_connection): Remove window-system check.
25347
25348 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25349
25350 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25351 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25352 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25353 Add frame arg.
25354 (x_delete_terminal, w32_create_terminal): New functions.
25355 (w32_term_init): Create a terminal.
25356 (w32_initialize): Move terminal specific initialization to
25357 w32_create_terminal.
25358
25359 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25360 (w32_clear_rect, w32_clear_area): Use background from frame.
25361 (w32_display_info): Add terminal.
25362 (w32_sys_ring_bell, x_delete_display): Declare here.
25363
25364 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25365
25366 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25367
253682007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25369
25370 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25371 Fix get_named_tty calls for the controlling tty.
25372
253732007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25374
194d44e7 25375 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
25376
253772007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25378
25379 * term.c (tty_insert_glyphs): Add missing first parameter.
25380
253812007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25382
25383 * buffer.c (Fbuffer_list, Fbury_buffer):
25384 Take frame->buried_buffer_list into account.
25385
25386 * cm.c (current_tty): New variable, for cmputc().
25387 (cmputc): Use it.
25388 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25389 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25390 (cmgoto): Add tty parameter. Pass it on to calccost().
25391 Use emacs_tputs() instead of tputs().
25392
25393 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25394 tputs().
25395 (current_tty): New variable, for cmputc().
25396 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25397
25398 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25399 (internal_condition_case, internal_condition_case_1)
25400 (internal_condition_case_2): Don't abort when x_catching_errors.
25401
25402 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25403 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25404 prevent crashes caused by bogus longjmps in read_char.
25405
25406 * keymap.h (Fset_keymap_parent): Add EXFUN.
25407
25408 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25409 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25410 Remove redundant definition.
25411
25412 * macfns.c (x_set_mouse_color, x_make_gc):
25413 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25414
25415 * w32term.c (x_free_frame_resources):
25416 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25417 (w32_initialize): Use the accessor macros for terminal characteristics.
25418
25419 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25420 Use the accessor macros for terminal characteristics.
25421 * msdos.c (internal_terminal_init): Use the accessor macros for
25422 terminal characteristics.
25423 (ScreenVisualBell, internal_terminal_init):
25424 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25425
25426 * termopts.h (no_redraw_on_reenter): Declare.
25427
25428 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25429 (mark_terminals, mark_ttys): Declare.
25430 (Fgarbage_collect): Call them.
25431 (mark_object): Mark buried_buffer_list.
25432
25433 * prefix-args.c: Include stdlib.h for exit.
25434
25435 * syssignal.h: Add comment.
25436
25437 * indent.c: Include stdio.h.
25438
25439 * window.h (Vinitial_window_system): Declare.
25440 (Vwindow_system): Delete declaration.
25441
25442 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25443
25444 * image.c (lookup_image): Don't initialize `c' until the xasserts
25445 have been run.
25446
25447 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25448 FRAME_FOREGROUND_PIXEL.
25449
25450 * print.c (print_preprocess): Don't lose print_depth levels while
25451 iterating.
25452
25453 * widget.c (update_from_various_frame_slots):
25454 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25455
25456 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25457 frames.
25458 (window_internal_height): Remove bogus make_number call.
25459 (init_window_once): Call make_terminal_frame with two zero parameters.
25460
25461 * fileio.c (Fread_file_name): Update comment.
25462
25463 * callint.c (Fcall_interactively):
25464 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25465 Make sure it is correctly unwound.
25466
25467 * xsmfns.c (x_session_close): New function.
25468
25469 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25470 Delete declarations.
25471
25472 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25473 (x_output): Remove background_pixel and foreground_pixel fields.
25474 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25475 (x_delete_device, x_session_close): Declare.
25476
25477 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25478 (read_filtered_event): Call `read_char' with a local
25479 `wrong_kboard_jmpbuf'.
25480
25481 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25482 Don't call single_kboard_state. Use FRAME_RIF.
25483
25484 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25485 systems.
25486
25487 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25488 (Fframe_with_environment, Fset_input_meta_mode)
25489 (Fset_quit_char): EXFUN.
25490 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25491 (init_sys_modes, reset_sys_modes): Update prototypes.
25492 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25493
25494 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25495 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25496 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25497 Delete declarations.
25498 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25499 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25500 New declarations.
25501
25502 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25503 already does that during init_display(). Call syms_of_keymap
25504 before syms_of_keyboard. Call `syms_of_terminal'.
25505 Call set_initial_environment, not set_process_environment.
25506 (shut_down_emacs): Call reset_all_sys_modes() instead of
25507 reset_sys_modes().
25508
25509 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25510 (internal_resolve_face_name, resolve_face_name_error): New functions.
25511 (resolve_face_name): Protect against loops and errors thrown by Fget.
25512 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25513 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25514
25515 * scroll.c: Replace CURTTY() with local variables throughout the
25516 file (where applicable).
25517 (calculate_scrolling, calculate_direct_scrolling)
25518 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25519 characteristics.
25520
25521 * keymap.c (Vfunction_key_map): Remove.
25522 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25523 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25524 (Vkey_translation_map): Remove.
25525 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25526 (Fdescribe_buffer_bindings)
25527 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25528 Update for terminal-local key-translation-map.
25529
25530 * Makefile.in (callproc.o): Update dependencies.
25531 (lisp, shortlisp): Add termdev.elc.
25532 (obj): Add terminal.o.
25533 (terminal.o): Add dependencies.
25534 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25535 (data.o, fns.o): Add termhooks.h dependency.
25536 (SOME_MACHINE_LISP): Add dnd.elc.
25537 (minibuf.o): Fix typo.
25538 Update dependencies.
25539
25540 * data.c (do_symval_forwarding, store_symval_forwarding)
25541 (find_symbol_value): Use the selected frame's keyboard, not
25542 current_kboard.
25543
25544 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25545 Vwindow_system.
25546
25547 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25548 Fmenu_bar_open.
25549 (syms_of_xmenu): Update defsubr.
25550 (mouse_position_for_popup, Fx_popup_menu)
25551 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25552 (set_frame_menubar, free_frame_menubar)
b97439ce 25553 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
25554 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25555 an X frame.
25556
25557 * xselect.c (x_own_selection): Abort if not an X frame.
25558 (some_frame_on_display): Check if it is an X frame.
25559 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25560
25561 * coding.c: Include frame.h and termhooks.h.
25562 (terminal_coding, keyboard_coding): Delete.
25563 (Fset_terminal_coding_system_internal)
25564 (Fset_keyboard_coding_system_internal)
25565 (Fkeyboard_coding_system)
25566 (Fterminal_coding_system): Add a terminal parameter.
25567 Get terminal_coding from the terminal.
25568 (init_coding_once): Don't call setup_coding_system here.
25569
25570 * dispextern.h (set_scroll_region, turn_off_insert)
25571 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25572 (tty_clear_end_of_line, tty_setup_colors)
25573 (delete_tty, updating_frame)
25574 (produce_special_glyphs, produce_glyphs, write_glyphs)
25575 (insert_glyphs): Remove.
25576 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25577 (tty_turn_off_highlight, get_tty_size): Add declaration.
25578 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25579
25580 * frame.h (enum output_method): Add output_initial.
25581 (struct x_output): Delete.
25582 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25583 Access foreground_pixel and background_pixel directly from the frame.
25584 (tty_display): Delete.
25585 (struct frame): Add buried_buffer_list, foreground_pixel,
25586 background_pixel and terminal. Delete kboard.
25587 (union output_data): Add tty.
25588 (FRAME_KBOARD): Get the kboard from the terminal.
25589 (FRAME_INITIAL_P): New macro.
25590 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25591 (Qterm_environment_variable, Qdisplay_environment_variable)
25592 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25593 New declarations.
25594
25595 * termchar.h (tty_output, tty_display_info): New structures.
25596 (tty_list): Declare.
25597 (FRAME_TTY, CURTTY): New macros.
25598 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25599 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25600 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25601 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25602
25603 * callproc.c: Include frame.h and termhooks.h, for terminal
25604 parameters.
25605 (add_env): New function.
25606 (child_setup): Use it.
25607 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25608 (getenv_internal): Fix get_terminal_param call.
25609 (Fgetenv_internal, egetenv): Update doc.
25610 (syms_of_callproc): Initialize Vprocess_environment to nil.
25611 Register and initialize them. Remove obsolete defvars. Update doc
25612 strings.
25613 (child_setup): Handle Vlocal_environment_variables.
25614 (getenv_internal): Add terminal parameter.
25615 Handle Vlocal_environment_variables.
25616 (Fgetenv_internal): Add terminal parameter.
25617 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25618 environment in a frame (not terminal) parameter. Update doc strings.
25619 (set_initial_environment): Rename from set_global_environment.
25620 Store Emacs environment in initial frame parameter.
25621
25622 * xdisp.c (redisplay_internal): Update references to
25623 `previous_terminal_frame'.
25624 (display_mode_line, Fformat_mode_line): Replace calls to
25625 `push_frame_kboard' with `push_kboard'.
25626 (get_glyph_string_clip_rects): Add extra parentheses and
25627 braces to prevent compiler warnings.
25628 (calc_pixel_width_or_height): Add xassert to check that the
25629 frame is alive. Don't call `lookup_image' on a termcap frame.
25630 (message2_nolog, message3_nolog, redisplay_internal)
25631 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25632 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25633 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25634 (Fx_display_pixel_width, Fx_display_pixel_height)
25635 (Fx_display_planes, Fx_display_color_cells)
25636 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25637 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25638 (Fx_display_backing_store, Fx_display_visual_class)
25639 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25640 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25641
25642 * xfns.c (x_set_foreground_color x_set_background_color)
25643 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25644 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25645 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25646 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25647 terminal that is being deleted.
25648 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25649 frame parameter, and make sure it overrides any user-supplied setting.
25650 (Fx_close_connection, Fx_synchronize): Unify argument names with
25651 the rest of the DEFUNs.
25652
25653 * dispnew.c (Fsend_string_to_terminal): Update call to
25654 `get_tty_terminal'.
25655 (Fredraw_frame, Fsend_string_to_terminal)
25656 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25657 FRAME_TERMCAP_P and FRAME_TTY.
25658 (window_change_signal): Don't believe width/height values that are
25659 impossibly small.
25660 (Vinitial_window_system): Rename from Vwindow_system.
25661 (termscript, Wcm, rif): Delete.
25662
25663 * termhooks.h (struct terminal): New struct containing the
25664 previously global text display hooks and new members NAME,
25665 DELETED and PARAM_ALIST.
25666 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25667 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25668 (FRAME_RIF): New macros.
25669 (get_terminal_param, get_device): New declarations.
25670 (termscript): Delete declaration.
25671
25672 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25673 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25674 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25675 FRAME_FOREGROUND_PIXEL.
25676 (x_fully_uncatch_errors): Disable definition.
25677 (x_scroll_bar_expose): Fix reference to foreground pixel.
25678 (XTread_socket): Disable loop on all X displays.
25679 (x_delete_terminal): Don't set terminal->deleted and let
25680 delete_terminal delete the frames on the terminal.
25681 (x_delete_display): Doc update to reflect changes in
25682 delete_terminal.
25683 (x_display_info) <terminal>: Move member earlier in the struct.
25684 (deleting_tty): Remove old variable.
25685 (Fsuspend_tty): Call clear_tty_hooks.
25686 (Fresume_tty, init_tty): Call set_tty_hooks.
25687 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25688 errors on X frames.
25689 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25690 (handle_one_xevent): Initialize `f' to NULL.
25691 (x_delete_terminal, x_create_terminal): New functions.
25692 (XTset_terminal_modes, XTreset_terminal_modes)
25693 (XTread_socket, x_connection_closed, x_term_init)
25694 (x_term_init, x_delete_display): Add terminal parameter.
25695 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25696 X connections.
25697
25698 * frame.c: Include termchar.h.
25699 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25700 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25701 (Qdisplay_environment_variable): New vars.
25702 (Fframep): Deal with output_initial.
25703 (Fframe-live-p): Doc fix.
25704 (Fwindow-system): New function.
25705 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25706 (make_terminal_frame): Don't create frames on a terminal that is
25707 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25708 (store_frame_param): Check for found_for_frame before calling XFRAME.
25709 (Fmake_terminal_frame): Handle NULL tty names correctly.
25710 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25711 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25712 frames to refer to a deleted frame in their 'environment parameter.
25713 (Fframe_with_environment): New function.
25714 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25715 (get_future_frame_param): New function.
25716 (Fmake_terminal_frame): Use it.
25717 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25718
25719 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25720 * sysdep.c (reset_sys_modes): Update for renames.
25721
25722 * keyboard.c (tty_read_avail_input): New function.
25723 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25724 (syms_of_keyboard): Defsubr them.
25725 (Fset_input_meta_mode, Fset_quit_char): New functions.
25726 (Fset_input_mode): Split to above functions.
25727 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25728 parameter. Use it in call to `read_char'.
25729 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25730 Set wrong_kboard_jmpbuf correctly in recursive calls.
25731 Use current_kboard to access Vkeyboard_translate_table.
25732 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25733 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25734 Update longjmp invocations. Remember the original current_kboard,
25735 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25736 changes it. Comment out unnecessary calls to
25737 `record_single_kboard_state' and `any_kboard_state'.
25738 Update recursive calls.
25739 (wrong_kboard_jmpbuf): Remove global variable.
25740 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25741 Handle deleted interrupted_kboards correctly; that is a legal
25742 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25743 and read_char calls. Abort if interrupted_kboard died in read_char.
25744 (any_kboard_state, single_kboard_state)
25745 (push_frame_kboard): Remove function.
25746 (pop_kboard): Switch out of single_kboard mode if the kboard has
25747 been deleted. Remove unused variable. Help debugging by not
25748 changing current_kboard unnecessarily. Set current_kboard to the
25749 kboard of the selected frame when the stored kboard object has
25750 been deleted before pop_kboard.
25751 (temporarily_switch_to_single_kboard): Change first parameter to a
25752 frame pointer. Throw an error when caller wants to change kboards
25753 while in single_kboard mode. Don't push_kboard if we weren't in
25754 single kboard state. Don't pop_kboard if we popped into any
25755 kboard state.
25756 (restore_kboard_configuration): Abort if pop_kboard changed the
25757 kboard in single_kboard mode. Call pop_kboard only after setting
25758 up single_kboard mode.
25759 (Frecursive_edit): Switch to single_kboard mode only in nested
25760 command loops.
25761 (cmd_error, command_loop, command_loop_1, timer_check):
25762 Comment out unnecessary call to `any_kboard_state' and
25763 `record_single_kboard_state'.
25764 (delete_kboard): Exit single_kboard mode if we have just deleted
25765 that kboard. Use FRAME_KBOARD.
25766 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25767 `fatal_error_signal'.
25768 (record_single_kboard_state): Don't push_kboard if we weren't in
25769 single kboard state. Don't pop_kboard if we popped into any
25770 kboard state.
25771 (push_frame_kboard): Rename to push_kboard.
25772 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25773 (read_avail_input): Read input from all terminals.
25774 (mark_kboards): Also mark Vkeyboard_translate_table.
25775 (kbd_buffer_store_event_hold): Simplify condition.
25776 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25777 (Vkeyboard_translate_table): Move to struct kboard.
25778 (init_kboard): Initialize Vkeyboard_translate_table.
25779 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25780 Vkeyboard_translate_table. Update doc strings. Update docs of
25781 local-function-key-map and function-key-map.
25782
25783 * terminal.c: New file.
25784
25785 * term.c: Include errno.h.
25786 (Vring_bell_function, device_list, initial_device)
25787 (next_device_id, ring_bell, update_begin, update_end)
25788 (set_terminal_window, cursor_to, raw_cursor_to)
25789 (clear_to_end, clear_frame, clear_end_of_line)
25790 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25791 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25792 (syms_of_term): Move their initialization to terminal.c.
25793 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25794 (Ftty_display_color_cells)
25795 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25796 (clear_tty_hooks, set_tty_hooks)
25797 (init_tty, maybe_fatal): New functions.
25798 (Ftty_type): Return nil if terminal is not on a tty instead of
25799 throwing an error. Doc update.
25800 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25801 Doc update. Initialize new subrs and variables.
25802 (delete_tty): Use terminal->deleted.
25803 (tty_set_terminal_modes): Rename from set_terminal_modes.
25804 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25805 (set_scroll_region): Rename to `tty_set_scroll_region'.
25806 (turn_on_insert): Rename to `tty_turn_on_insert'.
25807 (turn_off_insert): Rename to `tty_turn_off_insert'.
25808 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25809 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25810 (toggle_highligh): Rename to `tty_toggle_highlight'.
25811 (background_highlight): Rename to `tty_background_highlight'.
25812 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25813 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25814 (tty_set_scroll_region, tty_background_highlight)
25815 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25816 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25817 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25818 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25819 Add static modifier.
25820 (tty_reset_terminal_modes, tty_set_terminal_window)
25821 (tty_set_scroll_region, tty_background_highlight)
25822 (tty_highlight_if_desired, tty_cursor_to)
25823 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25824 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25825 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25826 renames.
25827
258282007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25829
25830 * keyboard.c: Qrtl is new.
25831 (parse_tool_bar_item): Handle :rtl keyword.
25832 (syms_of_keyboard): Intern :rtl keyword.
25833
25834 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25835
25836 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25837 so no Lisp code is executed.
25838 (file_for_image, find_rtl_image): New functions.
25839 (xg_get_image_for_pixmap): Use file_for_image.
25840 (update_frame_tool_bar): If direction is RTL, use RTL image if
25841 defined. Use Gtk stock images if defined.
25842
258432007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25844
25845 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25846 for nonexistent or zero-width glyph in composition glyph.
25847
258482007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25849
25850 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25851
25852 * xdisp.c (Finvisible_p): New function.
25853 (syms_of_xdisp): defsubr it.
25854
258552007-08-24 Juanma Barranquero <lekktu@gmail.com>
25856
25857 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25858 Doc fixes.
25859
258602007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25861
25862 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25863
258642007-08-24 Martin Rudalics <rudalics@gmx.at>
25865
25866 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25867 whether decoding has modified buffer contents.
25868
258692007-08-24 Jason Rumney <jasonr@gnu.org>
25870
25871 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25872 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25873 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25874 (init_svg_functions) [HAVE_NTGUI]: New function.
25875 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25876 (svg_load_image): Use them.
25877 (svg_load_image) [HAVE_NTGUI]: Implement background.
25878
258792007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25880
25881 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25882 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25883 (LIBX): Remove @RSVG_LIBS@.
25884 (LIBES): Add $(RSVG_LIBS).
25885
25886 * image.c (svg_load_image): Blend with specified background if exists.
25887 Use IMAGE_BACKGROUND. Add Mac OS Support.
25888
25889 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25890 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25891 Remove macros.
25892 [MAC_OSX] (socket_callback): Do nothing.
25893 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25894 ReceiveNextEvent.
25895 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25896 socket_callback.
25897 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25898
258992007-08-22 Glenn Morris <rgm@gnu.org>
25900
25901 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25902
259032007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25904
25905 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25906
25907 * image.c: Add support for SVG images. Some additional comments
25908 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25909 (svg_image_p): New function to test for SVG image.
25910 (svg_load): New function to load SVG image.
25911 (svg_load_image): New function, helper for svg_load.
25912 (Qsvg): New Lisp_object.
25913 (svg_keyword_index): New enum.
25914 (svg_format): New static `image_keyword' struct.
25915 (svg_type): New static `image_type' struct.
25916 (librsvg/rsvg.h): Include it.
25917
259182007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25919
25920 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25921
259222007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25923
25924 * lread.c (Qold_style_backquotes): New var.
25925 (syms_of_lread): Init and staticpro it.
25926 (load_warn_old_style_backquotes): New fun.
25927 (Fload): Use them to warn about old style backquotes.
25928 (end_of_file_error, Fload): Remove unused vars.
25929
25930 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25931
25932 * lread.c (Vold_style_backquotes): New var.
25933 (syms_of_lread): Init and export it to Elisp.
25934 (read1): Set it when we find an old-style (back)quote.
25935
259362007-08-22 Jason Rumney <jasonr@gnu.org>
25937
25938 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25939
259402007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25941
25942 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25943
259442007-08-19 Richard Stallman <rms@gnu.org>
25945
25946 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25947
259482007-08-19 Andreas Schwab <schwab@suse.de>
25949
25950 * alloc.c (pure): Round PURESIZE up.
25951
259522007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25953
25954 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25955 active frame.
25956
259572007-08-16 Richard Stallman <rms@gnu.org>
25958
25959 * eval.c (Fcommandp): Add parens to clarify.
25960
25961 * minibuf.c (Fall_completions): Use enum for type of table.
25962
25963 * emacs.c (USAGE2): Improve text.
25964
259652007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25966
25967 * term.c (tty_default_color_capabilities): Declare static
25968 variables in file scope, to avoid HPUX compiler problem.
25969
259702007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25971
25972 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25973 to gtk_toolbar_insert.
25974
259752007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25976
25977 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25978
25979 * insdel.c (reset_var_on_error): New fun.
25980 (signal_before_change, signal_after_change):
25981 Use it to reset (after|before)-change-functions to nil in case of error.
25982 Bind inhibit-modification-hooks to t.
25983 Don't bind (after|before)-change-functions to nil while they run.
25984
259852007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25986
25987 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25988 filling pixmap with stippled background.
25989
259902007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25991
25992 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25993 Don't use invisible frame as parent window for repositioning.
25994
259952007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25996
25997 * print.c (new_backquote_output): Rename from old_backquote_output.
25998 (print): Inverse its logic (according to its name) so as to match the
25999 behavior of new_backquote_flag in lread.c.
26000
260012007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26002
26003 * gmalloc.c (posix_memalign): New function.
26004
26005 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26006 ActivateControl/DeactivateControl here.
26007 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26008 frame-notice-user-settings is non-nil.
26009 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26010 for kEventParamFMFontStyle.
26011 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26012 mac_pass_command_to_system and mac_pass_control_to_system here.
26013 (XTread_socket): Call ActivateControl/DeactivateControl here.
26014 (XTread_socket) [TARGET_API_MAC_CARBON]:
26015 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26016 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26017 for window repositioning.
26018
260192007-08-08 Glenn Morris <rgm@gnu.org>
26020
26021 * Replace `iff' in doc-strings and comments.
26022
260232007-08-07 Chong Yidong <cyd@stupidchicken.com>
26024
26025 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26026
260272007-08-07 Martin Rudalics <rudalics@gmx.at>
26028
26029 * fileio.c (Finsert_file_contents): Run format-decode and
26030 after_insert_file_functions on entire buffer when REPLACE is
26031 non-nil and inhibit modification_hooks and point_motion_hooks.
26032 For consistency, run after_insert_file_functions iff something
26033 got inserted. Move signal_after_change and update_compositions
26034 after code running after_insert_file_functions. Make sure that
26035 undo_list doesn't record intermediate steps of the decoding process.
26036
260372007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26038
26039 * emacs.c (main)
26040 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26041 Call malloc_enable_thread on interactive startup.
26042
26043 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26044 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26045 [USE_PTHREAD]: Conditionalize with it.
26046 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26047 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26048 New functions.
26049
260502007-08-06 Chong Yidong <cyd@stupidchicken.com>
26051
26052 * xdisp.c (redisplay_window): When restoring original buffer
26053 position, make sure it is still valid.
26054
26055 * image.c (png_load): Ignore png-supplied background color.
26056
260572007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26058
26059 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26060 Use kCFAbsoluteTimeIntervalSince1970.
26061
26062 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26063 New variable.
26064 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26065 event loop should be quit.
26066 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26067 Quit dialog event loop if quit_dialog_event_loop is set.
26068
26069 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26070 (Selection): New typedef. Use instead of ScrapRef.
26071 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26072 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26073 (mac_clear_selection): Rename from clear_scrap.
26074 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26075 scrap_has_target_type. All uses changed.
26076 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26077 (mac_selection_has_target_p): New functions.
26078 (mac_put_selection_value): Rename from put_scrap_string.
26079 (mac_get_selection_value): Rename from get_scrap_string.
26080 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26081 (put_scrap_private_timestamp, scrap_has_target_type)
26082 (get_scrap_private_timestamp): Remove functions.
26083 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26084 (x_own_selection, x_get_local_selection):
26085 Use mac_valid_selection_value_p.
26086 (x_own_selection): Don't use put_scrap_private_timestamp.
26087 Record OWNERSHIP-INFO into Vselection_alist instead.
26088 (x_get_local_selection): Don't check type if request is local.
26089 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26090 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26091
260922007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26093
26094 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26095 add comment explaining why.
26096
260972007-08-03 Richard Stallman <rms@gnu.org>
26098
26099 * fileio.c (Fvisited_file_modtime): Use make_time.
26100
261012007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26102
26103 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26104 build.
26105
261062007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26107
26108 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26109
261102007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26111
26112 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26113
261142007-07-30 Richard Stallman <rms@gnu.org>
26115
26116 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26117
261182007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26119
26120 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26121
261222007-07-28 Nick Roberts <nickrob@snap.net.nz>
26123
26124 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26125 remote default-directory.
26126
26127 * buffer.c (mode-line-format): Update doc string.
26128
261292007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26130
26131 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26132 scroll bar gap.
26133 (x_scroll_bar_create): Set bar->fringe_extended_p.
26134 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26135 on frame edge. Check fringe background extension. Don't clear
26136 extended fringe background area.
26137
26138 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26139 (w32_fill_area): Enclose multiple statements with do ... while (0).
26140
26141 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26142 Extend fringe background to scroll bar gap.
26143 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26144 Set bar->fringe_extended_p.
26145 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26146 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26147 background extension. Don't clear extended fringe background area.
26148
26149 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26150 New member fringe_extended_p.
26151
261522007-07-25 Glenn Morris <rgm@gnu.org>
26153
26154 * Relicense all FSF files to GPLv3 or later.
26155
26156 * COPYING: Switch to GPLv3.
26157
261582007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26159
26160 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26161
26162 * data.c (Finteractive_form): Check for the presence of an
26163 `interactive-form' symbol property more thoroughly.
26164
26165 * data.c (Finteractive_form): Use an `interactive-form' property if
26166 present, analogous to the function-documentation property.
26167
261682007-07-24 Jason Rumney <jasonr@gnu.org>
26169
26170 * w32fns.c (x_real_positions): Get real position from OS instead of
26171 calculating it.
26172
261732007-07-23 Jason Rumney <jasonr@gnu.org>
26174
26175 * filelock.c (current_lock_owner): Allow for @ sign in username.
26176
261772007-07-22 Nick Roberts <nickrob@snap.net.nz>
26178
26179 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26180 remote default-directory.
26181
26182 * buffer.c (mode-line-format): Describe above case in doc string.
26183
261842007-07-20 Eli Zaretskii <eliz@gnu.org>
26185
26186 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26187 Define if not defined.
26188
261892007-07-18 Jason Rumney <jasonr@gnu.org>
26190
26191 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26192
261932007-07-18 Richard Stallman <rms@gnu.org>
26194
26195 * data.c (Fsetq_default): Doc fix.
26196
26197 * eval.c (Fsetq): Doc fix.
26198
261992007-07-18 Juanma Barranquero <lekktu@gmail.com>
26200
26201 * coding.c (Ffind_operation_coding_system):
26202 * eval.c (For, Fand): Doc fixes.
26203 Reported by Johan Bockgård.
26204
262052007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26206
26207 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26208
26209 * xterm.h: Declare x_ewmh_activate_frame.
26210
26211 * xterm.c (x_ewmh_activate_frame): New function.
26212 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26213
262142007-07-17 Martin Rudalics <rudalics@gmx.at>
26215
26216 * window.c (Fdisplay_buffer): If largest or LRU window is the
26217 only window, split it even if it is not eligible for splitting.
26218 This restores the original behavior broken by the 2007-07-15
26219 change.
26220
262212007-07-17 Glenn Morris <rgm@gnu.org>
26222
26223 * abbrev.c (abbrev_check_chars): New function.
26224 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26225 Call abbrev_check_chars to check abbrev characters are word
26226 constituents. Doc fix.
26227
262282007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26229
26230 * process.c (Fstart_process, Fmake_network_process)
26231 (read_process_output): Fix up last changes.
26232
262332007-07-16 Eli Zaretskii <eliz@gnu.org>
26234
26235 * makefile.w32-in (clean): Don't delete *~.
26236
262372007-07-16 Andreas Schwab <schwab@suse.de>
26238
26239 * window.c (Fdisplay_buffer): Use NILP.
26240 (Fset_window_scroll_bars): Likewise.
26241
262422007-07-15 Martin Rudalics <rudalics@gmx.at>
26243
26244 * window.c (window_min_size_2): New function.
26245 (window_min_size_1, size_window, Fdisplay_buffer)
26246 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26247 windows without mode- or header-lines when window-min-height is
26248 too small.
26249 (size_window): Reset nodelete_p after testing it, following an
26250 earlier note by Kim F. Storm.
26251 (display_buffer): Do not set split_height_threshold to twice the
26252 value of window_min_height to avoid changing the value of a
26253 customizable variable. Rather explicitly check whether the
26254 height of the window that shall be splitted is at least as large
26255 as split_height_threshold.
26256 (Fwindow_full_width_p): New defun.
26257 (syms_of_window): Defsubr it.
26258
26259 * window.h: Add EXFUN for Fwindow_full_width_p.
26260
262612007-07-14 Jason Rumney <jasonr@gnu.org>
26262
26263 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26264
262652007-07-14 Richard Stallman <rms@gnu.org>
26266
26267 * eval.c (maybe_call_debugger): New function.
26268 (find_handler_clause): Use maybe_call_debugger.
26269 Call it when the handler says `debug'.
26270 Eliminate DEBUGGER_VALUE_PTR.
26271 (Fsignal): Eliminate debugger_value.
26272 (Qdebug): New variable.
26273 (syms_of_eval): Initialize it.
26274
262752007-07-14 Juanma Barranquero <lekktu@gmail.com>
26276
26277 * eval.c (Fprogn):
26278 * keyboard.c (Ftrack_mouse):
26279 * print.c (Fwith_output_to_temp_buffer):
26280 * window.c (Fsave_window_excursion): Doc fix.
26281
262822007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26283
26284 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26285
262862007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26287
26288 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26289 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26290 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26291 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26292 Remove unused encoding_carryover.
26293 * process.c: Adjust all functions accordingly.
26294
262952007-07-12 Richard Stallman <rms@gnu.org>
26296
26297 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26298
262992007-07-11 Jason Rumney <jasonr@gnu.org>
26300
26301 * makefile.w32-in (LIBS): Include OLE32.
26302
26303 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26304 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26305
263062007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26307
26308 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26309 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26310 from a Lisp_Object into a bare pointer.
26311 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26312 Adjust the code correspondingly.
26313
26314 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26315
26316 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26317 (term_show_mouse_face): Remove unused var `j'.
26318 (handle_one_term_event): Remove unused vars `i' and `j'.
26319 Don't cast return value of ttyname since it's not necessary.
26320
263212007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26322
26323 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26324 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26325
26326 * fns.c (map_char_table): Use an array of int for `indices' rather than
26327 an array of Lisp_Objects (which are only ever integers anyway).
26328 (Fmap_char_table): Update caller.
26329 * lisp.h: Update prototype.
26330 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26331 * fontset.c (Ffontset_info):
26332 * casetab.c (set_case_table): Update callers.
26333
26334 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26335
26336 * keymap.c (struct accessible_keymaps_data)
26337 (struct where_is_internal_data): New structures.
26338 (accessible_keymaps_1, where_is_internal_1): Use them to change
26339 interface to adhere to the one used by map_keymap.
26340 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26341 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26342
26343 * keymap.h (map_keymap_function_t): More informative prototype.
26344
263452007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26346
26347 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26348 (looking_at_1): Don't change search_regs and last_thing_searched
26349 if `inhibit-changing-match-data' is non-nil.
26350 (string_match_1, search_buffer, set_search_regs): Likewise.
26351 (syms_of_search): Add Lisp level definition for
26352 `inhibit-changing-match-data' and set it to nil.
26353 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26354 start and end of the match, instead of using values in search_regs.
26355
263562007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26357
26358 * minibuf.c (Fcompleting_read): New value `confirm-only'
26359 for `require-match'.
26360
263612007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26362
26363 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26364 part of the 2007-06-27 change to syms_of_fileio.
26365
263662007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26367
26368 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26369 Check WINDOWP before using XWINDOW. Consolidate return statements.
26370
263712007-06-27 Richard Stallman <rms@gnu.org>
26372
26373 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26374
263752007-06-27 Juanma Barranquero <lekktu@gmail.com>
26376
26377 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26378
263792007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26380
26381 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26382 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26383 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26384 (_free_internal, memalign): Use them.
26385 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26386 Initialize to PTHREAD_MUTEX_INITIALIZER.
26387 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26388 (morecore_nolock): Rename from morecore. All uses changed.
26389 Use only nolock versions of internal allocation functions.
26390 (_malloc_internal_nolock, _realloc_internal_nolock)
26391 (_free_internal_nolock): New functions created from
26392 _malloc_internal, _realloc_internal, and _free_internal.
26393 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26394 Copy hook value to automatic variable before its use.
26395 (memalign): Copy hook value to automatic variable before its use.
26396
263972007-06-26 Kenichi Handa <handa@m17n.org>
26398
26399 * coding.c (Ffind_operation_coding_system): Docstring improved.
26400 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26401
264022007-06-25 David Kastrup <dak@gnu.org>
26403
26404 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26405 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26406 cater for additional parameter.
26407
26408 * keymap.h: Adjust number of parameters to `current-active-maps'.
26409
26410 * doc.c (Fsubstitute_command_keys): Adjust call of
26411 `current-active-maps'.
26412
264132007-06-25 David Kastrup <dak@gnu.org>
26414
26415 * callint.c (Fcall_interactively): Make the parsing of interactive
26416 specs somewhat more readable.
26417
264182007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26419
26420 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26421 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26422 if extended background has already been filled.
26423
264242007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26425
26426 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26427 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26428
26429 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26430 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26431 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26432 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26433 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26434 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26435 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26436 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26437 Run timers during dialog popup.
26438 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26439
264402007-06-21 Jason Rumney <jasonr@gnu.org>
26441
26442 * image.c (convert_mono_to_color_image): Swap fore and background.
26443
264442007-06-20 Jason Rumney <jasonr@gnu.org>
26445
26446 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26447 (w32_free_bdf_font): Unmap memory not handle.
26448
264492007-06-20 Sam Steingold <sds@gnu.org>
26450
26451 * gmalloc.c (__morecore): Fix the declaration to comply with the
26452 definition.
26453
264542007-06-20 Juanma Barranquero <lekktu@gmail.com>
26455
26456 * w32term.c (w32_delete_display): Remove leftover declaration.
26457 (w32_define_cursor, w32_initialize): Make static.
26458
26459 * w32.c (_wsa_errlist): Fix typo in error message.
26460 (init_environment): Ignore any environment variable from the
26461 registry having a null value.
26462
264632007-06-20 Glenn Morris <rgm@gnu.org>
26464
26465 * Makefile.in (LIBGIF): Default to -lgif.
26466
264672007-06-17 Jason Rumney <jasonr@gnu.org>
26468
26469 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26470 unicode strings.
26471
264722007-06-16 Juanma Barranquero <lekktu@gmail.com>
26473
26474 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26475 Fix typo in docstring.
26476
264772007-06-16 Eli Zaretskii <eliz@gnu.org>
26478
26479 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26480 and their keybindings.
26481
264822007-06-15 Chong Yidong <cyd@stupidchicken.com>
26483
26484 * composite.c (update_compositions): Fix last fix.
26485
264862007-06-14 Jason Rumney <jasonr@gnu.org>
26487
26488 * w32.c (get_process_times_fn): New function pointer.
26489 (globals_of_w32): Intialize it if present in kernel32.dll.
26490 (w32_get_internal_run_time): New function.
26491
26492 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26493
264942007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26495
26496 * composite.c (update_compositions): Check the validness of
26497 compositions.
26498
264992007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26500
26501 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26502 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26503
26504 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26505 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26506
26507 * macgui.h (USE_MAC_TOOLBAR): New define.
26508
26509 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26510 Return immediately unless popup is activated.
26511
26512 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26513 background to scroll bar gap.
26514 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26515 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26516 scroll bars on frame edge. Check fringe background extension.
26517 Don't clear extended fringe background area.
26518 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26519 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26520 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26521 [USE_MAC_TOOLBAR]: New macros.
26522 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26523 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26524 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26525 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26526 [USE_MAC_TOOLBAR]: New functions.
26527 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26528 manually if previous repositioning has failed.
26529 (mac_handle_keyboard_event): Use precomputed event kind.
26530 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26531 as tool bar item click. Handle mouse movement over tool bar items.
26532
26533 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26534 toolbar_win_gravity.
26535 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26536 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26537 Add externs.
26538
26539 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26540 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26541
265422007-06-14 Chong Yidong <cyd@stupidchicken.com>
26543
26544 * image.c (search_image_cache): Remove unused variable.
26545
265462007-06-13 Chong Yidong <cyd@stupidchicken.com>
26547
26548 * xfns.c, xmenu.c: Link to xaw3d if available.
26549
265502007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26551
26552 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26553 frame_foreground and frame_background.
26554
26555 * image.c (lookup_image): Save frame foreground and background colors.
26556 (search_image_cache): Check if saved and current frame colors match.
26557
265582007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26559
26560 * regex.c (regex_compile): Remove the `regnum' counter.
26561 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26562
265632007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26564
26565 * term.c: Include intervals.h to declare Fget_text_property.
26566
265672007-06-10 Jason Rumney <jasonr@gnu.org>
26568
26569 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26570
265712007-06-08 Juanma Barranquero <lekktu@gmail.com>
26572
26573 * callint.c (Fcall_interactively):
26574 * editfns.c (Fdelete_and_extract_region):
26575 * fileio.c (Fread_file_name):
26576 * fns.c (Fmapconcat):
26577 * keyboard.c (cmd_error_internal):
26578 * keymap.c (Fkey_description):
26579 * lread.c (openp):
26580 * minibuf.c (read_minibuf):
26581 * search.c (wordify):
26582 * sunfns.c (sel_read):
26583 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26584 * xfns.c (x_default_scroll_bar_color_parameter):
26585 * xmenu.c (menu_help_callback):
26586 * xselect.c (Fx_get_atom_name):
26587 * xterm.c (x_term_init): Use empty_unibyte_string.
26588
265892007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26590
26591 * alloc.c (init_strings): Initialize canonical empty strings.
26592 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26593 canonical empty string when the requested size is 0.
26594
26595 * emacs.c (empty_unibyte_string): Rename from empty_string.
26596 (empty_multibyte_string): New canonical empty string.
26597 (syms_of_emacs): Don't initialize empty_string.
26598
26599 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26600 string, if appropriate.
26601 (empty_unibyte_string, empty_multibyte_string): New externs.
26602 (empty_string): Remove extern.
26603
26604 * lread.c (syms_of_lread): Use empty_unibyte_string.
26605
266062007-06-07 Jason Rumney <jasonr@gnu.org>
26607
26608 * s/ms-w32.h: Don't define HAVE_TZNAME.
26609
26610 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26611
266122007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26613
26614 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26615
26616 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26617 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26618
26619 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26620 Don't call next handler.
26621 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26622 Remove argument. Install handler to application.
26623 (set_frame_menubar): Don't change deep_p.
26624 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26625 FRAME_OUTER_TO_INNER_DIFF_Y.
26626 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26627 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26628 [HAVE_DIALOGS]: New macros.
26629 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26630 Use them.
26631 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26632
26633 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26634 init_service_handler. All callers changed. Return OSStatus value.
26635
26636 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26637 All callers changed so as not to call SetPortWindowPort.
26638 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26639 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26640 mac_draw_string_common.
26641 (mac_draw_image_string_qd): Likewise.
26642 (mac_draw_string_common): Use them. Add INLINE.
26643 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26644 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26645 GetGlobalMouse.
26646 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26647 and FRAME_OUTER_TO_INNER_DIFF_Y.
26648 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26649 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26650 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26651 repositioning window to mac_handle_window_event.
26652 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26653 saving window location to mac_handle_window_event
26654 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26655 (install_menu_target_item_handler): Remove argument in extern.
26656 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26657 Also accept command events.
26658 (do_keystroke): New function created from XTread_socket.
26659 (init_command_handler): Remove functions.
26660 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26661 and save window location by kEventWindowShowing and kEventWindowHiding
26662 handlers here. Don't call next handler for window state change and
26663 focus events.
26664 (mac_handle_application_event, mac_handle_keyboard_event)
26665 [TARGET_API_MAC_CARBON]: New functions.
26666 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26667 kEventWindowShowing and kEventWindowHiding events. Move installation
26668 of mouse, font, text input and menu target item handlers to
26669 install_application_handler.
26670 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26671 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26672 New function.
26673 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26674 Register it.
26675 (XTread_socket) [TARGET_API_MAC_CARBON]:
26676 Consolidate SendEventToEventTarget calls.
26677 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26678 Move application activation handler to mac_handle_application_event.
26679 Move keyboard handler to mac_handle_keyboard_event.
26680 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26681 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26682 init_command_handler. Call install_application_handler.
26683
26684 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26685 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26686
266872007-06-07 Glenn Morris <rgm@gnu.org>
26688
26689 * emacs.c (main): Use `emacs-copyright' in --version output.
26690
266912007-06-06 Chong Yidong <cyd@stupidchicken.com>
26692
26693 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26694
266952007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26696
26697 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26698
26699 * macgui.h: Replace WindowPtr with WindowRef.
26700
26701 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26702 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26703 Replace ControlHandle with ControlRef.
26704 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26705
26706 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26707 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26708 Replace ControlHandle with ControlRef.
26709 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26710 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26711
26712 * macterm.h (struct scroll_bar): Rename member control_handle_low
26713 and control_handle_high to control_ref_low and control_ref_high.
26714 All uses changed.
26715 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26716 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26717 respectively. All uses changed.
26718 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26719 (install_window_handler, remove_window_handler): Replace WindowPtr
26720 with WindowRef in externs.
26721
267222007-06-05 Juanma Barranquero <lekktu@gmail.com>
26723
26724 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26725
267262007-06-03 Nick Roberts <nickrob@snap.net.nz>
26727
26728 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26729
26730 * frame.c (Fmouse_position, Fmouse_pixel_position):
26731 Condition on HAVE_GPM too.
26732
26733 * term.c (term_mouse_highlight): Remove unused variables.
26734 (Fterm_open_connection): Set gpm_zerobased to 1.
26735 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26736 Use zero based co-ordinates.
26737 (handle_one_term_event): Report a drag as mouse movement too.
26738
26739 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26740
267412007-06-03 Chong Yidong <cyd@stupidchicken.com>
26742
26743 * image.c (search_image_cache): New function. Require background
26744 color match if background color is unspecified in the image spec.
26745 (uncache_image, lookup_image): Use it.
26746
267472007-06-01 Juanma Barranquero <lekktu@gmail.com>
26748
26749 * window.c (Fshrink_window): Reflow docstring.
26750
267512007-06-02 Chong Yidong <cyd@stupidchicken.com>
26752
26753 * Version 22.1 released.
26754
267552007-06-01 Richard Stallman <rms@gnu.org>
26756
26757 * xfns.c (x_encode_text): Add GCPRO.
26758
267592007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26760
26761 * xfns.c (x_set_name_internal): Save encoded name before
26762 x_encode_text in case string data is relocated.
26763
267642007-05-31 Richard Stallman <rms@gnu.org>
26765
26766 * buffer.c (syms_of_buffer): Doc fix.
26767
267682007-05-30 Nick Roberts <nickrob@snap.net.nz>
26769
26770 * sysdep.c (init_sys_modes): Add rather than replace with
26771 O_NONBLOCK.
26772
26773 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26774 term_mouse_moveto.
26775
26776 * termhooks.h (term_mouse_moveto): New extern.
26777
26778 * term.c (mouse_face_window): Rename...
26779 (Qmouse_face_window): ...to this.
26780 (term_show_mouse_face, term_clear_mouse_face)
26781 (term_mouse_highlight): Use Qmouse_face_window.
26782 (term_mouse_moveto): New function.
26783 (term_mouse_position): Make it work.
26784 (syms_of_term): Uncomment assignment to mouse_position_hook.
26785 Staticpro Qmouse_face_window.
26786
267872007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26788
26789 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26790 around current_column call.
26791
267922007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26793
26794 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26795 * xdisp.c (next_element_from_buffer):
26796 * window.c (delete_window):
26797 * term.c (term_mouse_highlight):
26798 * msdos.c (getdefdir):
26799 * macterm.c (mac_create_bitmap_from_bitmap_data)
26800 (init_font_name_table):
26801 * fns.c (Fsxhash):
26802 * data.c (Fmake_local_variable):
26803 * ccl.c (ccl_driver): Likewise.
26804
268052007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26806
26807 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26808 Call mac_wakeup_from_rne on window size change.
26809
268102007-05-25 Chong Yidong <cyd@stupidchicken.com>
26811
26812 * image.c (uncache_image): Fix typo.
26813
268142007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26815
26816 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26817
268182007-05-22 Richard Stallman <rms@gnu.org>
26819
26820 * xterm.c (x_connection_closed): Remove NO_RETURN.
26821
268222007-05-22 Martin Rudalics <rudalics@gmx.at>
26823
26824 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26825
268262007-05-21 Chong Yidong <cyd@stupidchicken.com>
26827
26828 * image.c (uncache_image): New function.
26829 (Fimage_refresh): New function.
26830
268312007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26832
26833 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26834
268352007-05-20 Nick Roberts <nickrob@snap.net.nz>
26836
26837 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26838 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26839
268402007-05-20 Nick Roberts <nickrob@snap.net.nz>
26841
26842 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26843 conditional on [HAVE_GPM_H].
26844
268452007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26846
26847 * syntax.c (skip_chars): Update syntax-table only after we checked that
26848 the new location is valid.
26849
268502007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26851
26852 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26853 mac_get_window_bounds.
26854
268552007-05-20 Nick Roberts <nickrob@snap.net.nz>
26856
26857 * Makefile.in (LIBGPM): Allow it to be set from configure.
26858 If set then link Emacs with it.
26859
26860 * config.in: Regenerate.
26861
26862 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26863 New externs.
26864
26865 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26866 Include gpm.h.
26867 (handle_one_term_event, term_gpm): New externs.
26868
26869 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26870 and allow it to be interrupted by SIGIO.
26871
26872 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26873 (wait_reading_process_output): Wait on gpm_fd too.
26874 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26875 (add_gpm_wait_descriptor_called_flag): New variable.
26876 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26877
26878 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26879 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26880 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26881 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26882 (make_lispy_event): Add case GPM_CLICK_EVENT.
26883 (read_avail_input): Handle mouse input.
26884
26885 * term.c (write_glyphs_with_face): New function.
26886 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26887 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26888 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26889 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26890 (last_mouse_x, last_mouse_y): New variables.
26891 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26892 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26893 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26894 (Fterm_close_connection): New functions.
26895 (term_init): Initialise mouse_face_window.
26896
268972007-05-19 Chong Yidong <cyd@stupidchicken.com>
26898
26899 * xdisp.c (redisplay_window): If first window line is a
26900 continuation line, recompute the new window start instead of
26901 recentering.
26902
269032007-05-18 Glenn Morris <rgm@gnu.org>
26904
26905 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26906 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26907
269082007-05-17 Glenn Morris <rgm@gnu.org>
26909
26910 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26911
269122007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26913
26914 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26915 dead key repeat and up events.
26916
269172007-05-14 Chong Yidong <cyd@stupidchicken.com>
26918
26919 * image.c (pbm_load): Check image size for monochrome pbm.
26920
269212007-05-13 Chong Yidong <cyd@stupidchicken.com>
26922
26923 * xterm.c (XTread_socket): Revert last change.
26924
269252007-05-12 Chong Yidong <cyd@stupidchicken.com>
26926
26927 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26928
26929 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26930
269312007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26932
26933 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26934 mixup (YAILOM).
26935
269362007-05-07 Andreas Schwab <schwab@suse.de>
26937
26938 * keymap.c (Flookup_key): Fix typo in last change.
26939
269402007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26941
26942 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26943 mapping for unibyte strings.
26944
269452007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26946
26947 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26948 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26949
269502007-04-29 Richard Stallman <rms@gnu.org>
26951
26952 * insdel.c (replace_range): For undo, record insertion first.
26953
269542007-04-29 Andreas Schwab <schwab@suse.de>
26955
26956 * lisp.h (VECSIZE): Use OFFSETOF.
26957
269582007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26959
26960 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26961 disabled lines.
26962
269632007-04-28 Richard Stallman <rms@gnu.org>
26964
26965 * lread.c (read_escape): In a string, \s is always space.
26966
269672007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26968
26969 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26970
26971 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26972 submenu for menu bar items.
26973
26974See ChangeLog.10 for earlier changes.
26975
26976;; Local Variables:
26977;; coding: utf-8
26978;; add-log-time-zone-rule: t
aac0c6e3
MR
26979;; End:
26980
e3eb1dae 26981 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
26982
26983 This file is part of GNU Emacs.
26984
26985 GNU Emacs is free software: you can redistribute it and/or modify
26986 it under the terms of the GNU General Public License as published by
26987 the Free Software Foundation, either version 3 of the License, or
26988 (at your option) any later version.
26989
26990 GNU Emacs is distributed in the hope that it will be useful,
26991 but WITHOUT ANY WARRANTY; without even the implied warranty of
26992 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26993 GNU General Public License for more details.
26994
26995 You should have received a copy of the GNU General Public License
26996 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26997
26998;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40