Fixed up nnrss group activation, and removed moreover stuff.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
1da70e99
AS
12010-09-14 Andreas Schwab <schwab@linux-m68k.org>
2
3 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last
4 change. Don't make first argument optional. Doc fix.
5
26632d8d
LMI
62010-09-14 Leo <sdl.web@gmail.com> (tiny change)
7
8 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
9 parameters for the doc string.
10
21fa8e37
LMI
112010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
12
13 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
14
5616cc54
SM
152010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
16
17 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
18 (syms_of_fns): Don't defsubr Sy_or_n_p.
19 * lisp.h: Don't declare Fy_or_n_p.
20 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
21
381408e2
LMI
222010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
23
24 * xml.c (Fxml_parse_buffer): New function to parse XML files.
25
262010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
27
28 * xml.c: New file.
29 (Fhtml_parse_buffer): New function to interface to the libxml2
30 html parsing function.
31
733946e7
JB
322010-09-05 Juanma Barranquero <lekktu@gmail.com>
33
34 * biditype.h: Regenerate.
35
7574650a
AS
362010-09-04 Andreas Schwab <schwab@linux-m68k.org>
37
38 * nsimage.m (ns_load_image): Check argument types.
39
40 * image.c: Remove all uses of gcpro.
41 (xpm_load): Check all lisp types.
42 (pbm_load): Likewise.
43 (png_load): Likewise.
44 (jpeg_load): Likewise.
45 (tiff_load): Likewise.
46 (gif_load): Likewise.
47 (imagemagick_load_image): Likewise.
48 (imagemagick_load): Likewise.
49 (svg_load): Likewise.
50 (gs_load): Likewise.
51
6e6b8e25
EZ
522010-09-04 Eli Zaretskii <eliz@gnu.org>
53
54 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
55 try to reorder grapheme clusters, since LGSTRING should always
56 hold them in the logical order.
57 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
58 return glyph codes in the logical order.
59
dbfe4532
AS
602010-09-04 Andreas Schwab <schwab@linux-m68k.org>
61
62 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 63 (imagemagick_load_image): Fix type mismatch.
5e5992c2 64 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 65
6d7cc563
JD
662010-09-02 Jan Djärv <jan.h.d@swipnet.se>
67
68 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
69
70 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
71
72 * xselect.c: Remove declaration of cut-buffer objects and functions.
73 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
74 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
75 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
76 (Fx_rotate_cut_buffers_internal): Remove.
77 (syms_of_xselect): Remove defsubr of above.
78 Remove intern of QCUT_BUFFERn.
79
8f4e9110
SM
802010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
81
82 * cmds.c (Vblink_paren_function): Remove.
83 (internal_self_insert): Make it insert N chars at a time.
84 Don't call blink-paren-function.
85 (Fself_insert_command): Adjust accordingly.
86 (syms_of_cmds): Don't declare blink-paren-function.
87
d419e1d9
KH
882010-08-31 Kenichi Handa <handa@m17n.org>
89
90 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
91 characters.
92
93 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
94 (produce_glyphs): Don't set it->char_to_display here.
95 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
96 (produce_special_glyphs): Set temp_it.char_to_display before
97 calling produce_glyphs.
98
99 * xdisp.c (get_next_display_element): Set it->char_to_display
100 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
101 characters.
102 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
103 calling PRODUCE_GLYPHS.
104 (append_space_for_newline): Save and store it->char_to_display.
105 Set it->char_to_display before calling PRODUCE_GLYPHS.
106 (extend_face_to_end_of_line): Set it->char_to_display before
107 calling PRODUCE_GLYPHS.
108 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
109 character to its byte value.
110 (get_char_glyph_code): New function.
111 (produce_stretch_glyph): Set it2.char_to_display too before
112 calling x_produce_glyphs.
113 (x_produce_glyphs): Simplify by using the same code for ASCII and
114 non-ASCII characters. Don't set it->char_to_display here. Don't
115 handle unibyte-display-via-language-environment here. For a
116 charater of no glyph, use font->space_width instead of FONT_WIDTH.
117
b819f760
SM
1182010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
119
120 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
121
07fa68a7
CY
1222010-08-31 Chong Yidong <cyd@stupidchicken.com>
123
124 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
125
cd196f12
SM
1262010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
127
128 * marker.c (Fcopy_marker): Make the first arg optional.
129
49a752bb
KH
1302010-08-30 Kenichi Handa <handa@m17n.org>
131
132 * composite.c (composition_update_it): Fix computing of
133 cmp_it->width.
134
769ae9e1
KH
1352010-08-29 Kenichi Handa <handa@m17n.org>
136
9e69cb05 137 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 138 corresponding bytes.
9e69cb05 139
4520b858
J
1402010-08-29 Jan Djärv <jan.h.d@swipnet.se>
141
142 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
143
fe50eb41
KH
1442010-08-26 Kenichi Handa <handa@m17n.org>
145
146 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
147 on calling composition_compute_stop_pos.
148
f6aa6ec6
KH
1492010-08-25 Kenichi Handa <handa@m17n.org>
150
9dfdbc0a
KH
151 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
152 :otf.
153
f6aa6ec6
KH
154 * composite.c (composition_compute_stop_pos): Don't break
155 composition at PT.
156 (composition_reseat_it): Likewise. Fix calculation of character
157 position starting a composition.
158 (Fcomposition_get_gstring): Don't limit the number of components
159 for automatic composition.
160
ff94e32c
KH
1612010-08-25 Kenichi Handa <handa@m17n.org>
162
163 * composite.c (composition_compute_stop_pos): In forward search,
164 pay attention to the possibility that some character after ENDPOS
165 will be composed with charactrs before ENDPOS.
166
1c409d0b
CY
1672010-08-24 Chong Yidong <cyd@stupidchicken.com>
168
169 * keyboard.c (command_loop_1): Don't clobber primary selection
170 during handle-switch-frame (Bug#6872).
171
0c372655
MA
1722010-08-23 Michael Albinus <michael.albinus@gmx.de>
173
174 * dbusbind.c: Accept UNIX domain sockets as bus address.
175 (Fdbus_close_bus): New function.
176 (Vdbus_registered_buses): New variable.
177 (xd_initialize): Implement string as bus address.
178 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
179 (Fdbus_get_unique_name, Fdbus_call_method)
180 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
181 (Fdbus_method_error_internal, Fdbus_send_signal)
182 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
183 check. This is done in xd_initialize_bus. Adapt doc string, if
184 necessary.
185 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
186 Vdbus_registered_buses.
187 (Vdbus_registered_objects_table): Create hash.
188
7133b7ee
JL
1892010-08-22 Juri Linkov <juri@jurta.org>
190
191 * keyboard.c (Fexecute_extended_command): Move reading a command name
192 with `completing-read' to a new Elisp function `read-extended-command'.
193 Call it to read a command to `function' (bug#5364, bug#5214).
194
198a7a97
CY
1952010-08-22 Chong Yidong <cyd@stupidchicken.com>
196
197 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
198
b0126eac 1992010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
200
201 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
202 instead of SAFE_ALLOCA.
203
b0126eac 2042010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
205
206 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
207 (Bug#6214).
208
b0126eac 2092010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
210
211 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
212
b0126eac
CY
2132010-08-22 Jan Djärv <jan.h.d@swipnet.se>
214
215 * doc.c (Fsnarf_documentation): Initialize skip_file before
216 build-files test.
217
692f3ddc 2182010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 219
692f3ddc
JB
220 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
221 New definitions.
b0126eac
CY
222 (HAVE_TERMIO): Remove.
223
5f2f0bc1
EZ
2242010-08-22 Eli Zaretskii <eliz@gnu.org>
225
b613941b
EZ
226 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
227
a583bbef
EZ
228 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
229 for w32.
230
231 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
232 it's done in nt/config.nt.
233
234 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
235
5f2f0bc1
EZ
236 * unexcoff.c (report_error, make_hdr, write_segment)
237 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
238 Convert argument lists and prototypes to ANSI C.
239 (make_hdr, write_segment): Remove unused variables.
240 (unexec): Remove commented-out line. Initialize `new' to shut up
241 compiler warnings.
242
a7ebc409
DN
2432010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
244
245 Simplify termio code.
246 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
247 HAVE_TERMIO code is obsolete.
248 Replace HAVE_TERMIOS conditionals with !DOS_NT.
249 * systty.h: Do not define HAVE_TCATTR.
250 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
251 Do not define EMACS_HAVE_TTY_PGRP. Only define
252 EMACS_GET_TTY_PGRP for !DOS_NT.
253 * sysdep.c: Include sysselect.h unconditionally. Do not include
254 sys/ioctl.h and termios.h, systty.h does it. Use
255 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
256 (init_baud_rate): Remove HAVE_TERMIO code.
257 (child_setup_tty): Remove HAVE_TERMIO code.
258 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
259 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
260 (new_ltchars, new_tchars): Remove, unused.
261 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
262 code. Remove special casing for __mips__, it was a no-op. Remove
263 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
264 (init_sys_modes): Remove HPUX special case.
265 * process.c: Include stdlib.h unconditionally. Do not include
266 fcntl.h, systty.h does it. Remove conditional code for
267 HAVE_SERIAL, it is always true.
268 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
269 always true when SIGNALS_VIA_CHARACTERS is true.
270 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
271 !WINDOWSNT means HAVE_TERMIOS.
272 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
273 conditional, which is true for all HAVE_TERMIOS systems.
274 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
275 instead of HAVE_TERMIOS.
276 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
277 EMACS_HAVE_TTY_PGRP.
278 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
279 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
280 anyway.
281
40629f17
EZ
2822010-08-21 Eli Zaretskii <eliz@gnu.org>
283
284 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
285 mirroring pixel positions.
286
d931da8c
DN
2872010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
288
b5c76d0c
DN
289 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
290 write only.
291 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
292 malloc_sbrk_used, nothing uses them.
293
74815588
DN
294 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
295 defined, unconditionally defined in lisp.h.
296
f5817d1c
DN
297 * term.c: Do not include <termios.h>, systty.h does it.
298
d931da8c
DN
299 * s/unixware.h (HAVE_TCATTR):
300 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
301 systty.h defines it when HAVE_TERMIOS is defined.
302
ff2de6d2 3032010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 304
b43c883c 305 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 306 terminals: add one-character offset for R2L lines.
b43c883c 307
491a1546
EZ
308 * emacs.c <emacs_version>: Add a comment regarding
309 msdos/mainmake.v2's dependency on the syntax of this declaration.
310
2396cbba
EZ
3112010-08-20 Eli Zaretskii <eliz@gnu.org>
312
313 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
314 position for R2L lines by mirroring the pixel position wrt the
315 text are box. Improve commentary.
316
7df6150a
AS
3172010-08-20 Andreas Schwab <schwab@linux-m68k.org>
318
319 * image.c (imagemagick_clear_image): Remove debugging output.
320
a2e5caf7
SM
3212010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
322
323 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
324 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
325 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
326 self-insert-face.
327 (syms_of_cmds): Initialize the new vars.
328
20d60baf
JR
3292010-08-19 Jason Rumney <jasonr@gnu.org>
330
cc477da7
JR
331 * w32menu.c (set_frame_menubar): Remove call to undefined function.
332
20d60baf
JR
333 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
334
2c0ac867
J
3352010-08-19 Jan Djärv <jan.h.d@swipnet.se>
336
337 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
338
93352106
EZ
3392010-08-18 Eli Zaretskii <eliz@gnu.org>
340
341 * xterm.c (x_draw_bar_cursor):
342 * w32term.c (x_draw_bar_cursor): If the character under cursor is
343 R2L, draw the bar cursor on its right rather than on its left.
344
c785836d
SM
3452010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
346
0193499f
SM
347 * eval.c (Fdefmacro): Only obey one declaration.
348
c785836d
SM
349 * casefiddle.c (casify_region): Setup gl_state.
350
9cb728a5
J
3512010-08-18 Jan Djärv <jan.h.d@swipnet.se>
352
353 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
354
e1e18511
J
3552010-08-18 Jan Djärv <jan.h.d@swipnet.se>
356
357 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
358
64cb6c78
J
3592010-08-18 David De La Harpe Golden <david@harpegolden.net>
360
361 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
362 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
363 QPRIMARY => NXPrimaryPboard.
364 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
365 NXPrimaryPboard => QPRIMARY.
366 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
367 NXSecondaryPboard = SecondarySelection.
368 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
369
0c9b8993
GM
3702010-08-18 Joakim Verona <joakim@verona.se>
371
372 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
373 defined:
374 (imagemagick_image_p): New function to test for ImageMagic image.
375 (imagemagick_load): New function to load ImageMagick image.
376 (imagemagick_load_image): New function, helper for imagemagick_load.
377 (imagemagick-types): New function.
378 (Qimagemagick): New Lisp_object.
379 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 380
c3554f68
SM
3812010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
382
383 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
384 is a string.
385
1ff2e434
J
3862010-08-17 Jan Djärv <jan.h.d@swipnet.se>
387
388 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
389 x_set_tool_bar_position handler.
390
0cc56427
EZ
3912010-08-17 Eli Zaretskii <eliz@gnu.org>
392
393 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
394 x_set_tool_bar_position handler, needed to support changes from
395 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
396
e45a249b
JD
3972010-08-16 Jan Djärv <jan.h.d@swipnet.se>
398
921242c6
J
399 * nsselect.m: include keyboard.h for QPRIMARY, remove its
400 declaration (Bug#6863).
573d150b 401 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 402
e45a249b
JD
403 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
404
405 * keyboard.h (QPRIMARY): Declare (Bug#6864).
406
7c23dd44
CY
4072010-08-16 Chong Yidong <cyd@stupidchicken.com>
408
409 * keyboard.c (command_loop_1): Avoid setting selection twice,
410 since it's done in deactivate-mark as well.
411 (Vselect_active_regions): Change default to t. Replace `lazy'
412 with non-default value `only', meaning only set PRIMARY for
413 temporarily active regions.
414
415 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
416 select-active-regions.
417
0005830c
J
4182010-08-15 Jan Djärv <jan.h.d@swipnet.se>
419
420 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
421 isn't a string.
422
603dfc72
AS
4232010-08-15 Andreas Schwab <schwab@linux-m68k.org>
424
425 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
426
c25ce9d0
J
4272010-08-15 Jan Djärv <jan.h.d@swipnet.se>
428
c3554f68
SM
429 * keyboard.c (parse_tool_bar_item): malloc buf.
430 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
431 new_lbl (Bug#6855).
c25ce9d0 432
5872c762
EZ
4332010-08-14 Eli Zaretskii <eliz@gnu.org>
434
b236615c
EZ
435 * xterm.c (x_draw_stretch_glyph_string):
436 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
437 the cursor on the right edge of the stretch glyph.
438
c3554f68
SM
439 * xdisp.c (window_box_right_offset, window_box_right):
440 Fix commentary.
b236615c 441
5872c762
EZ
442 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
443 direction when point is inside a run of whitespace characters.
444
445 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
446
e66f9a1b
JR
4472010-08-14 Jason Rumney <jasonr@gnu.org>
448
449 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
450
79d6f59e
CY
4512010-08-14 Chong Yidong <cyd@stupidchicken.com>
452
453 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
454
1c9b4129
JR
4552010-08-13 Jason Rumney <jasonr@gnu.org>
456
457 * w32menu.c (simple_dialog_show): Use unicode message box if available.
458 (MessageBoxW_Proc): New function typedef.
459 (unicode-message-box): New function pointer.
460 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
461
2b4e6277
J
4622010-08-13 Jan Djärv <jan.h.d@swipnet.se>
463
464 * frame.h (Qtool_bar_position): Declare.
465
466 * xfns.c (Fx_create_frame): Call x_default_parameter for
467 Qtool_bar_position.
468
94c97d85
EZ
4692010-08-13 Eli Zaretskii <eliz@gnu.org>
470
8ee81892
EZ
471 * unexcoff.c: Remove the parts used when "emacs" is not defined.
472 (report_error, report_error_1): Ditto.
473 (write_segment): Remove "#if 0" unused code.
474 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
475 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
476 (start_of_text): Remove unused function (was used only if NO_REMAP
477 was NOT defined).
478
891ef8f7
EZ
479 * msdos.c (IT_set_face): Fix format string to match argument
480 types.
481 (IT_write_glyphs, IT_note_mode_line_highlight)
482 (IT_set_frame_parameters): Remove unused variables.
483 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
484 (IT_set_terminal_modes): Disambiguate expression in if clause.
485 (Fmsdos_remember_default_colors): Return Qnil.
486 (IT_set_frame_parameters): Add parens to disambiguate boolean
487 expression for logging the cursor type to termscript.
488 (keyboard_layout_list, keypad_translate_map)
489 (grey_key_translate_map): Add braces in inner initializers.
490 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
491 (dos_rawgetc): Remove unused label.
492 (XMenuActivate): Add braces to remove ambiguous `else'.
493 (dos_ttraw): Always return a value.
494 (spawnve): Declare.
495 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
496
497 * dosfns.h (x_set_title): Declare.
498
499 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
500 Remove unused variables.
501
502 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
503 variables.
504 (init_dosfns): Declare get_lim_data.
505 (system_process_attributes): Declare Fget_internal_run_time.
506
38e41e0e
EZ
507 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
508 list to be consistent with menu.h.
509
94c97d85
EZ
510 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
511 warnings due to mixing of "char *" and "const char *".
512
c5683ceb
SM
5132010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
514
515 Introduce a new comment style "c" flag.
516 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
517 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
518 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
519 (syntax_prefix_flag_p): New function.
520 (Fstring_to_syntax): Understand new "c" flag.
521 (Finternal_describe_syntax_value): Recognize new flag; use the
522 SYNTAX_FLAGS_* macros.
523 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
524 comment style to accomodate the new styles.
525 (back_comment, forw_comment, Fforward_comment, scan_lists)
526 (scan_sexps_forward): Update code to obey the new comment style flag.
527
528 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
529
530 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
531
7aee76f4
J
5322010-08-11 Jan Djärv <jan.h.d@swipnet.se>
533
3a46642b
J
534 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
535 first.
94dff98f 536 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
537
538 * gtkutil.h (xg_check_special_colors): Declare.
539
540 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
541 (xg_create_frame_widgets): Connect theme name changes to
542 style_changed_cb.
543
42ca4633
J
544 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
545 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
546 (x_term_init): Use char[] display_opt and name_opt instead of
547 string literal. file is const char*.
548
549 * xsmfns.c (NOSPLASH_OPT): Change to char[].
550 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
551 props. Free them at the end.
552
553 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
554
c5683ceb
SM
555 * xrdb.c (get_system_app): Make path const and use char *p for
556 non-const char.
42ca4633
J
557
558 * xmenu.c (Fx_popup_dialog): error_name is const char*.
559 (xmenu_show): error parameter is const char **. pane_string is const
560 char *.
561 (button_names): Is const char *.
562 (xdialog_show): error_name and pane_string is const.
563
564 * process.h (synch_process_death): Is const char*.
565
566 * w32menu.c (w32_menu_show):
567 * nsmenu.m (ns_menu_show): error parameter is const char **.
568
569 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
570 is const char **.
571
572 * menu.c (Fx_popup_menu): error_name is const.
573
574 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
575 with unsigned char and XtPointer with void *.
576
577 * gtkutil.h: Replace widget_value with struct _widget_value.
578 (enum button_type, struct _widget_value): Remove and use the one from
579 keyboard.h.
580
581 * gtkutil.c (get_utf8_string): Always return an allocated string.
582 Parameter is const.
583 (create_dialog, xg_create_one_menuitem, create_menus)
584 (xg_item_label_same_p, xg_update_menu_item): Free result from
585 get_utf8_string.
586 (xg_separator_p, xg_item_label_same_p): label is const.
587
588 * font.h (font_open_by_name): Make name const.
589
590 * font.c (font_open_by_name): Make name const.
591
592 * floatfns.c (matherr): Use a const char* variable for x->name.
593
594 * emacs.c (main): Pass char[] to putenv instead of literal.
595
596 * callproc.c (synch_process_death): Make const.
597 (Fcall_process): Make signame const.
598
9c5bd55a
J
599 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
600 (addDisplayItemWithImage): Use const char*.
601
602 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
603 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
604
605 * nsfont.m (ns_descriptor_to_entity): Use const char*.
606
607 * keyboard.h (_widget_value): name, value and key are const char*.
608
7aee76f4
J
609 * unexmacosx.c (unexec_error): Use const char *.
610
09d93395
DN
6112010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
612
613 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 614 (font_parse_name, font_open_by_name):
09d93395 615 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 616 (font_parse_name, font_open_by_name): Remove const.
09d93395 617
671d409f
AS
6182010-08-09 Andreas Schwab <schwab@linux-m68k.org>
619
620 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
621 definition.
622
623 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
624 * m/amdx86-64.h: Likewise.
625 * m/arm.h: Likewise.
626 * m/hp800.h: Likewise.
627 * m/ia64.h: Likewise.
628 * m/ibmrs6000.h: Likewise.
629 * m/ibms390.h: Likewise.
630 * m/intel386.h: Likewise.
631 * m/iris4d.h: Likewise.
632 * m/m68k.h: Likewise.
633 * m/macppc.h: Likewise.
634 * m/mips.h: Likewise.
635 * m/sh3.h: Likewise.
636 * m/sparc.h: Likewise.
637 * m/template.h: Likewise.
638 * m/vax.h: Likewise.
639 * m/xtensa.h: Likewise.
640 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
641 WORDS_BIG_ENDIAN.
642 * lisp.h: Likewise.
643 * md5.c: Likewise.
644 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
645
8ea90aa3
DN
6462010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
647
648 Use const char* instead of char*.
649 Reduce the number of warnings with -Wwrite-strings.
650 * xrdb.c (get_environ_db, get_system_name):
651 * unexelf.c (find_section):
652 * term.c (string_cost, string_cost_one_line, per_line_cost)
653 (get_named_tty, init_tty):
654 * sysdep.c (sys_subshell):
655 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
656 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
657 * search.c (Freplace_match):
658 * process.c (Fmake_network_process, send_process, init_process):
659 * lread.c (Fload, init_lread):
660 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
661 * keyboard.c (parse_tool_bar_item, struct event_head):
662 * gtkutil.h (xg_get_font_name):
663 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
664 (make_widget_for_menu_item, make_menu_item, create_menus)
665 (xg_make_tool_item):
666 * font.c (parse_matrix, font_parse_name):
667 * floatfns.c (rounding_driver, float_error_fn_name):
668 * filelock.c (get_boot_time_1, lock_file_1):
669 * fileio.c (barf_or_query_if_file_exists, check_writable):
670 * editfns.c (get_system_name, get_operating_system_release)
671 (Fencode_time, Fset_time_zone_rule):
672 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
673 * buffer.c (defvar_per_buffer): Use const.
674
7815fe19 6752010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 676
692f3ddc 677 * charset.c: Include <stdlib.h>.
7a84eee5
KH
678 (struct charset_sort_data): New struct.
679 (charset_compare): New function.
692f3ddc 680 (Fsort_charsets): New function.
7a84eee5
KH
681 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
682
683 * coding.c (decode_coding_iso_2022): Fix checking of dimension
684 number in CTEXT extended segment.
685
7815fe19 6862010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
687
688 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
689 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
690
7815fe19 6912010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
692
693 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
694 (Fhash_table_size): Fix typos in docstrings.
695 (Fmake_hash_table): Doc fix.
696
7815fe19 6972010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
698
699 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
700 Doc fix (bug#5625).
701
7815fe19 7022010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
703
704 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
705 the MSDOS definition.
706
1b6d8cf0
DN
7072010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
708
675e2c69
DN
709 Use const char* instead of char*.
710 * xterm.c (x_create_toolkit_scroll_bar):
711 * xfont.c (xfont_list_pattern):
712 * xfns.c (x_default_scroll_bar_color_parameter)
713 (xic_create_fontsetname, x_default_font_parameter)
714 (x_screen_planes):
715 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
716 (store_mode_line_string, decode_mode_spec, display_string):
717 * menu.c (digest_single_submenu):
718 * keymap.h (initial_define_key, initial_define_lispy_key):
719 * keymap.c (initial_define_key, initial_define_lispy_key):
720 * image.c (image_error, image_keyword):
721 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
722 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
723 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
724 (ftfont_list, ftfont_match):
725 * frame.c (frame_parm_table):
726 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
727 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
728 (font_add_log, font_deferred_log):
729 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
730 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
731 (font_add_log, font_deferred_log):
732 * emacs.c (argmatch):
733 * dispextern.h (struct it):
734 * coding.c (ENCODE_DESIGNATION):
735 * charset.c (define_charset_internal): Use const.
736
25717ca1
DN
737 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
738
c5683ceb
SM
739 * xrdb.c: Remove include guard.
740 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
741 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
742 realloc->xrealloc instead of using #defines.
743
efb41e21
EZ
7442010-08-08 Eli Zaretskii <eliz@gnu.org>
745
cd21226d 746 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
747 * editfns.c (Fline_beginning_position, Fline_end_position):
748 State in the doc strings that start and end of line are in the
749 logical order.
cd21226d 750
efb41e21
EZ
751 * xdisp.c (display_line): Move the handling of overlay arrow after
752 the call to find_row_edges. (Bug#6699)
753
746812d9
CY
7542010-08-07 Chong Yidong <cyd@stupidchicken.com>
755
756 * keyboard.c (command_loop_1):
757 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
758
9852377f
CY
7592010-08-07 Chong Yidong <cyd@stupidchicken.com>
760
761 * insdel.c (prepare_to_modify_buffer): Save active region text to
762 Vsaved_region_selection.
763
764 * xselect.c (QPRIMARY): Move to keyboard.c.
765
766 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
767 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
768 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 769
0e9c8657
JB
7702010-08-07 Juanma Barranquero <lekktu@gmail.com>
771
772 * alloc.c (lisp_malloc):
773 * buffer.c (set_buffer_internal, set_buffer_internal_1):
774 * charset.h (emacs_mule_charset):
775 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
776 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
777 (bitch_at_user):
778 * lisp.h (Fcheck_coding_system, Fget_text_property)
779 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
780 Remove duplicate declarations.
781
648801d1
DN
7822010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
783
32bc6709
DN
784 * process.c: Simplify include logic.
785
3ef1d108
DN
786 * keyboard.h (quit_char): Add declaration.
787 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
788 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
789 Add declarations.
3ef1d108
DN
790 * sysdep.c:
791 * w32.c: Remove the above declarations.
792
97ec208f
DN
793 Remove extern declarations in .c files, .h files have them.
794 * xterm.c:
795 * xdisp.c:
97ec208f
DN
796 * msdos.c:
797 * image.c:
798 * gtkutil.c:
799 * fileio.c:
800 * eval.c: Remove declarations.
801
94eed851
DN
802 * frame.c (frame_params): Make const.
803
36e053eb
DN
804 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
805
0e843971
DN
806 * emacs.c (emacs_copyright, emacs_version): Make static.
807 (Vinitial_window_system, Vauto_save_list_file_name)
808 (Vinhibit_redisplay): Remove declarations.
809 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
810 for AIX.
811
648801d1
DN
812 Use const for some arrays and functions.
813 * xterm.h (xg_set_icon_from_xpm_data):
814 * xfns.c (xg_set_icon_from_xpm_data):
815 * term.c (fkeys):
816 * keyboard.c (lispy_accent_keys, lispy_function_keys)
817 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
818 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
819 (frame.c frame_parms):
820 * emacs-icon.h (gnu_xpm_bits):
821 * callint.c (callint_argfuns): Use const.
822
8646d999
J
8232010-08-06 Jan Djärv <jan.h.d@swipnet.se>
824
825 * sysdep.c: Move include term.h last of includes (Bug#6812).
826
cb4545ad
EZ
8272010-08-06 Eli Zaretskii <eliz@gnu.org>
828
829 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
830
831 * msdos.c (IT_display_cursor): Log cursor position on termscript.
832
833 * .gdbinit (pgx): Display the avoid_cursor_p flag.
834
da7e2be6
JB
8352010-08-06 Juanma Barranquero <lekktu@gmail.com>
836
837 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
838
3d608a86
J
8392010-08-06 Jan Djärv <jan.h.d@swipnet.se>
840
7908fb60
J
841 * xterm.h (x_get_focus_frame): Declare.
842
843 * keyboard.h (poll_for_input_1): Unconditionally declare.
844
4094bf36
J
845 * nsterm.h (x_set_menu_bar_lines): Declare.
846
847 * window.c: Don't include menu.h, it depends on lots of other .h-files.
848
3d608a86
J
849 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
850
851 * window.c: Include menu.h.
852
853 * unexmacosx.c (print_region_list, print_regions)
854 (build_region_list, find_emacs_zone_regions)
855 (unexec_regions_merge, read_load_commands, dump_it)
856 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
857
858 * term.c: Check HAVE_SYS_IOCTL_H.
859
686b968e 860 * sysdep.c: Check HAVE_TERM_H.
3d608a86 861
686b968e 862 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
863
864 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
865 (ns_ring_bell, ns_defined_color, hide_hourglass)
866 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
867 Convert to ANSI C prototypes.
868 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
869 before code.
870
871 * nsterm.h : Include sysselect.h.
872 (x_sync, x_get_focus_frame, x_set_mouse_position)
873 (x_set_mouse_pixel_position, x_make_frame_visible)
874 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
875 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
876 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
877 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 878 Declare.
3d608a86
J
879
880 * nsmenu.m (popup_activated, name_is_separator)
881 (syms_of_nsmenu): Convert to ANSI C prototypes.
882 (runMenuAt): Prototypes and move declarations before code.
883
884 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
885
886 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
887 prototypes.
888
889 * nsfns.m (have_menus_p, ns_display_info_for_name)
890 (x_set_cursor_type, ns_appkit_version_str)
891 (ns_appkit_version_int, ns_do_applescript)
892 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
893 (syms_of_nsfns): Convert to ANSI C prototypes.
894
895 * menu.h (x_set_menu_bar_line): Declare.
896 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
897
898 * lisp.h (fmod_float): Declare.
899
900 * image.c (xpm_scan, xpm_make_color_table_v)
901 (xpm_put_color_table_v, xpm_get_color_table_v)
902 (xpm_make_color_table_h, xpm_put_color_table_h)
903 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
904 (xpm_load): Convert to ANSI C prototypes.
905
906 * emacs.c: Include nsterm.h if HAVE_NS.
907
908 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
909
fce70521
DN
9102010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
911
912 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
913 subprocesses, only MSDOS does not define HAVE_SOCKETS.
914 (socket_options): Use const char* for name.
915
a11889ab
JB
9162010-08-06 Juanma Barranquero <lekktu@gmail.com>
917
918 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
919
920 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
921 Don't declare xmalloc_widget_value and digest_single_submenu.
922
923 * w32font.c (Qlatin): Remove declaration.
924
925 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
926
c95b508f 927 * dired.c (compile_pattern): Restore declaration.
a11889ab 928
6254cdda
DN
9292010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
930
04bab72c
DN
931 Remove extern declarations in .c files, .h files have them.
932 * data.c:
933 * dired.c:
934 * editfns.c:
935 * filelock.c:
936 * fns.c:
937 * font.c:
938 * fontset.c:
939 * frame.c:
940 * fringe.c:
941 * ftfont.c:
942 * gtkutil.c:
943 * indent.c:
944 * keyboard.c:
945 * keymap.c:
946 * lread.c:
947 * menu.c:
948 * print.c:
949 * search.c:
950 * sound.c:
951 * window.c:
952 * xdisp.c:
953 * xfaces.c:
954 * xfns.c:
955 * xfont.c:
956 * xftfont.c:
957 * xmenu.c:
958 * xterm.c: Remove declarations.
959
dff94ed5
DN
960 Cleanup syssignal.h.
961 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
962 (main_thread): Move down to remove #ifdef.
963 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
964 Remove conditional definition following unconditional ones.
965
99f3388e
DN
966 * lisp.h: Remove HAVE_SHM code, unused.
967 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
968 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
969 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
970 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
971 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
972 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
973 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
974 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
975 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
976 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
977 (Qwindow_scroll_functions, Vafter_load_alist)
978 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
979 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
980 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
981 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
982 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
983 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
984 (initial_argv, last_nonmenu_event, load_in_progress)
985 (noninteractive_need_newline, scroll_margin): Add declarations.
986
987 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
988 declarations, menu.h has them.
989 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
990 (Vinput_method_function, Qinput_method_function)
991 (Qevent_symbol_element_mask, last_event_timestamp):
992 * dispextern.h (Voverflow_newline_into_fringe):
993 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
994 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
995 (syms_of_w32font, syms_of_nsfont):
996 * fontset.h (find_font_encoding, Qlatin):
997 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
998 (Vtool_bar_mode, set_frame_menubar):
999 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1000 * xterm.h (Qx_gtk_map_stock):
1001 * keymap.h (meta_prefix_char): Add declarations.
1002
9f5dd6f2
DN
1003 * term.c: Remove dead code.
1004
6254cdda
DN
1005 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1006 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1007 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1008 which is what was there before BSD_PGRPS was removed.
1009
29cf3e20
EZ
10102010-08-05 Eli Zaretskii <eliz@gnu.org>
1011
1012 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1013
1014 * unexcoff.c: Renamed from unexec.c.
1015
aaa0a19a
SM
10162010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1017
1018 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1019
8d1d9587
JB
10202010-08-03 Johan Bockgård <bojohan@gnu.org>
1021
1022 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 1023 (Bug#6744)
8d1d9587 1024
9a747ba6
JD
10252010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1026
4d464ae4
JD
1027 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1028 to TRUE if depth of screen is < 16.
1029
ac01763e
JD
1030 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1031 USE_GTK_TOOLTIP.
e0d62a9b
JB
1032 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1033 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 1034 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
1035 USE_GTK_TOOLTIP.
1036 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1037
1038 * xterm.h (USE_GTK_TOOLTIP): New define.
1039 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1040
9a747ba6
JD
1041 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1042 to Control-D (Bug#6771).
1043
7b0815ba
JB
10442010-08-02 Juanma Barranquero <lekktu@gmail.com>
1045
1046 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1047 Wording by Drew Adams <drew.adams@oracle.com>.
1048
aa1859f5
J
10492010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1050
1051 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1052 ttip_lbl.
1053
1054 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1055 calling gtk_widget_queue_draw.
1056 (x_free_frame_resources): Call xg_free_frame_widgets.
1057
1058 * xfns.c (x_gtk_use_system_tooltips): New variable.
1059 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1060 new gtkutil tooltip functions to show the tooltip.
1061 (Fx_hide_tip): Call xg_hide_tooltip.
1062 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1063
1064 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1065 (xg_show_tooltip, xg_hide_tooltip): Declare.
1066
1067 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
1068 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1069 New functions.
aa1859f5
J
1070 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1071 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1072 Remove code that is commented out.
1073
76417ef4
SM
10742010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1075
1076 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1077
16041401
CY
10782010-07-31 Chong Yidong <cyd@stupidchicken.com>
1079
1080 * xselect.c (x_own_selection): Use list4.
1081
2c09a58f
DN
10822010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1083
1084 * buffer.c (Qwindow): Do not define, already defined in data.c.
1085 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1086
59df9fdd 10872010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 1088
59df9fdd
JB
1089 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1090 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1091 * config.in: Undef HAVE_DIRENT_H.
1c97e857 1092 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 1093 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 1094
1b231651
DN
10952010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1096
1097 Rename s/usg5-4.h -> s/usg5-4-common.h.
1098 * s/usg5-4.h: Rename file to ...
1099 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1100 * s/unixware.h:
1101 * s/sol2-6.h:
1102 * s/irix6-5.h: Update includes accordingly.
1103
bfeabdc3
JD
11042010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1105
2ebf1083
J
1106 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1107
bfeabdc3 1108 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
1109 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1110 Remove toolbar_height.
1111 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
1112 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1113 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1114 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1115
1116 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1117
1118 * xfns.c (x_set_tool_bar_position): New function.
1119 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1120 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 1121 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
1122
1123 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1124 and FRAME_TOOLBAR_LEFT_WIDTH.
1125
1126 * gtkutil.h (xg_change_toolbar_position): Declare.
1127
1128 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1129 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1130 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1131 (xg_create_frame_widgets): Create a hobox for placing widgets
1132 vertically. Use gtk_box_pack_start.
1133 (xg_height_or_width_changed): Renamed from xg_height_changed.
1134 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1135 (xg_update_frame_menubar, free_frame_menubar): Change to
1136 xg_height_or_width_changed.
1137 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1138 size correctly. Remove hardcoded 4, instead use handlebox size -
1139 toolbar size.
1140 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 1141 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
1142 (xg_pack_tool_bar): POS is a new parameter.
1143 Set orientation of tool bar based on pos.
1144 Only make handlebox_widget if NULL.
1145 Check if tool bar goes to vbox or hbox depending on pos.
1146 (xg_update_tool_bar_sizes): New function.
686b968e 1147 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
1148 height, call xg_update_tool_bar_sizes instead.
1149 (free_frame_tool_bar): Remove from hbox or vbox depending on
1150 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1151 (xg_change_toolbar_position): New function.
1152
1153 * frame.h (struct frame): Add tool_bar_position.
1154 (Qbottom): Declare.
1155
1156 * frame.c (Qtool_bar_position): New variable.
1157 (make_frame): Set tool_bar_position to Qtop.
1158 (frame_parms): Add tool-bar-position.
1159 (x_report_frame_params): Store tool_bar_position.
1160 (x_set_fringe_width): Reset wm size hint after fringe changes.
1161
26469a38
DN
11622010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1163
1164 Make lisp_time_argument declaration work on all systems.
1165 * lisp.h (lisp_time_argument): Move declaration ...
1166 * systime.h (lisp_time_argument): ... here
1167 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1168
8848b728
JD
11692010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1170
1171 * vm-limit.c (POINTER): Add typedef for it.
1172 (start_of_data): Change return type from POINTER to char *.
1173
1174 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1175 HAVE_WINDOW_SYSTEM.
1176
76fd1ee9
DN
11772010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1178
0441987e
DN
1179 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1180 Remove reference to __osf__, unused.
1181
56a000c7
DN
1182 * mem-limits.h: Remove duplicated includes.
1183 (NULL): Remove definition, unused.
1184 (POINTER): Remove definition.
1185 (start_of_data): Use char* in prototype, as the function
1186 definition does.
1187
e6cba650
DN
1188 Remove extern declarations from .c files, and them to .h files.
1189 * keyboard.h (Qhelp_echo, waiting_for_input)
1190 (input_available_clear_time, ignore_mouse_drag_p)
1191 (Vdouble_click_time, real_this_command, Vthis_original_command):
1192 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1193 (Voverriding_local_map_menu_flag):
1194 * lisp.h (Qinteractive_form, use_file_dialog)
1195 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1196 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1197 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1198 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1199 (Qfunction, debug_on_next_call, Qfield)
1200 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1201 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1202 (Qfile_directory_p, Qinsert_file_contents)
1203 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1204 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1205 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1206 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1207 (Qminibuffer_prompt)
1208 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1209 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1210 (gray_bitmap_bits, xic_create_fontsetname):
1211 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1212
1213 * xsmfns.c (Vuser_login_name):
1214 * xrdb.c (Vdouble_click_time):
1215 * xfaces.c (xic_create_fontsetname):
1216 * w32select.c (waiting_for_input):
1217 * print.c (minibuffer_auto_raise):
1218 * msdos.c (Qhelp_echo):
1219 * macros.c (real_this_command):
1220 * keymap.c (Voverriding_local_map):
1221 * xterm.c (poll_for_input_1, gray_bitmap_width)
1222 (gray_bitmap_height, gray_bitmap_bits;
1223 * xmenu.c ( Voverriding_local_map)
1224 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1225 (use_file_dialog, Xt_app_con):
1226 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1227 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1228 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1229 (Qtool_bar_lines, ignore_mouse_drag_p):
1230 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1231 (Qrear_nonsticky, nconc2):
1232 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1233 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1234 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1235 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1236 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1237 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1238 (gc_in_progress):
1239 * doc.c (Voverriding_local_map, Qremap):
1240 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1241 (Vcompletion_regexp_list):
1242 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1243 (Qcompletion_ignore_case):
1244 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1245 (Vhistory_length, Vthis_original_command, real_this_command)
1246 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1247 * image.c (Qrisky_local_variable):
1248 * fontset.c (QCname):
1249 * fns.c (minibuffer_auto_raise, QCname):
1250 * dispnew.c (char_ins_del_cost):
1251 * composite.c (font_fill_lglyph_metrics):
1252 * cmds.c (Qface, Vtranslation_table_for_input):
1253 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1254 * ccl.c (charset_unicode):
1255 * callproc.c (Vtemporary_file_directory):
1256 * buffer.c (emacs_strerror): Remove extern declarations.
1257
1258 * data.c (Qwindow): Make non-static, used from other files too.
1259 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1260
76fd1ee9
DN
1261 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1262 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1263 * s/usg5-4.h (COFF):
1264 * s/template.h:
1265 * s/msdos.h (COFF, NO_REMAP):
1266 * s/ms-w32.h (NO_REMAP):
1267 * s/hpux10-20.h (NO_REMAP):
1268 * m/sparc.h (SEGMENT_MASK):
1269 * m/m68k.h (NO_REMAP):
1270 * m/intel386.h (SEGMENT_MASK):
1271 * m/arm.h (NO_REMAP):
1272 * m/alpha.h (COFF):
1273 * m/template.h: Remove references to unused defines.
1274
8a52f00a
JD
12752010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1276
1277 * xsettings.c (Ftool_bar_get_system_style): Also check for
1278 Qtext_image_horiz.
1279
1280 * xdisp.c (Qtext_image_horiz): Define.
1281 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 1282 to documentation of tool-bar-style.
8a52f00a
JD
1283
1284 * lisp.h (Qtext_image_horiz): Declare.
1285
1286 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1287 style text_image_horiz.
1288
89dc303e
DN
12892010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1290
60799703
DN
1291 * emacs.c (Fkill_emacs): Remove return statement.
1292
37254dc1
DN
1293 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1294 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1295 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1296 local extern declarations.
1297
71c7345a
DN
1298 * xmenu.c: Do not included lwlib.h, not needed.
1299
6ba577cb
DN
1300 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1301
fdb183d6
DN
1302 * process.c: Move definitions earlier to minimize #ifdefs.
1303
1304 * xterm.h (x_get_customization_string, x_load_resources)
1305 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1306 (x_check_errors, x_property_data_to_lisp, defined_color)
1307 (xic_set_xfontset, x_defined_color): Use const.
1308
1309 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1310 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1311
1312 * xselect.c (selection_data_to_lisp_data)
1313 (x_property_data_to_lisp):
1314 * xrdb.c (x_get_string_resource, file_p)
1315 (x_get_customization_string, magic_file_p, search_magic_path)
1316 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1317 (x_get_string_resource): Use const.
1318
1319 * xfns.c: Include xlwmenu.h when USE_LUCID.
1320 (x_defined_color, xic_set_xfontset): Use const.
1321 (Fx_hide_tip): Remove local extern declaration.
1322
1323 * xfaces.c (Qmouse_face): Remove declaration.
1324 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 1325 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
1326
1327 * xdisp.c (do_mouse_tracking): Remove declaration.
1328 (add_to_log): Use const.
1329
1330 * minibuf.c (Qmouse_face): Remove declaration.
1331
1332 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1333
1334 * keyboard.h (do_mouse_tracking): Add declaration.
1335
1336 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1337 (QCdata, QCtype, Qcenter): Remove declarations.
1338
1339 * frame.c (x_get_resource_string, x_get_string_resource)
1340 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1341 (x_default_parameter): Use const.
1342
1343 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1344 (QCheight, QCsize, QCname): Remove declarations.
1345
1346 * emacs.c (main): Remove local extern declaration.
1347
1348 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1349 declarations.
1350
1351 * dispnew.c: Remove duplicate #include <unistd.h>.
1352 (update_window, update_frame_1, init_display): Remove local extern
1353 declarations.
1354
1355 * dispextern.h (add_to_log): Remove declaration.
1356 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1357 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1358
1359 * dired.c (scmp): Add const.
1360 (directory_files_internal): Remove local extern declaration.
1361
1362 * data.c (Finteractive_form): Use const.
1363
1364 * composite.c (syms_of_composite): Remove local extern declarations.
1365
1366 * charset.c (add_to_log): Remove declaration.
1367
1368 * character.c (strwidth, parse_str_to_multibyte): Add const.
1369
1370 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1371
1372 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1373
89dc303e 1374 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
1375 (Lisp_Subr): Make doc and intspec constant.
1376 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1377 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1378 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1379 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1380 (display_arg): Add declarations.
89dc303e 1381
0ed082fe 13822010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
1383
1384 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1385
0ed082fe
JB
1386 * window.c (Fwindow_height): Doc fix (bug#6518).
1387
13882010-07-27 Juanma Barranquero <lekktu@gmail.com>
1389
1390 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1391
ccaf0336
DN
13922010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1393
977105dc
DN
1394 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1395 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1396 functions.
1397
f5ada890
DN
1398 * frame.h (Qtty_color_mode): Add declaration.
1399
ccaf0336
DN
1400 * lisp.h (Ftop_level, Fexit_recursive_edit)
1401 (Fabort_recursive_edit): Mark as NO_RETURN.
1402
dfe3c90f
KH
14032010-07-26 Kenichi Handa <handa@m17n.org>
1404
1405 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 1406 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 1407
7d383292
JB
14082010-07-26 Juanma Barranquero <lekktu@gmail.com>
1409
1410 * lread.c (unreadpure, mapatoms_1): Make static.
1411
da31e629
JB
14122010-07-25 Juanma Barranquero <lekktu@gmail.com>
1413
1414 * terminfo.c (tparam): Fix prototype of tparm.
1415
7bfa6d77
AS
14162010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1417
dcc19aac
AS
1418 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1419 find start of text segment.
1420 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1421 is defined.
1422
7bfa6d77
AS
1423 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1424
63f9a672
KB
14252010-07-25 Ken Brown <kbrown@cornell.edu>
1426
1427 * vm-limit.c (check_memory_limits): Fix previous change;
1428 accidentally reverted an earlier change.
1429
24933075
KB
14302010-07-25 Ken Brown <kbrown@cornell.edu>
1431
1432 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1433 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1434
361358ea
JB
14352010-07-25 Juanma Barranquero <lekktu@gmail.com>
1436
1437 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1438 * dired.c (opendir, readdir): Fix prototypes.
1439 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1440 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1441 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1442 (telldir): Remove declaration.
1443 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1444 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1445 * syssignal.h (strsignal): Fix prototype.
1446 * term.c (tparam): Fix prototype.
1447 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1448 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1449 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1450 and __morecore.
1451 * w32gui.h (XParseGeometry): Fix prototype.
1452 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1453 * w32term.c (my_set_focus): Declare inside #if 0.
1454 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1455 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1456 (drain_message_queue, get_next_msg, post_msg, parse_button)
1457 (ClipboardSequence_Proc): Fix prototypes.
1458 (wait_for_sync): Remove declaration.
1459
630b9592
JB
14602010-07-24 Juanma Barranquero <lekktu@gmail.com>
1461
1462 * w32fns.c (w32_to_x_color): Remove, unused.
1463
6a0d6611
AS
14642010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1465
1466 * lisp.h: Remove leftover P_.
1467
4e8608ff
DN
14682010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1469
1470 * ecrt0.c, unexalpha.c: Remove files, unused.
1471
c8197983
AS
14722010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1473
1474 * cmds.c (internal_self_insert): Make static.
1475 * lisp.h (internal_self_insert): Remove declaration.
1476
97b372d7
JB
14772010-07-23 Juanma Barranquero <lekktu@gmail.com>
1478
33ac0414
JB
1479 * alloc.c (free_float):
1480 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1481 * frame.c (delete_frame_handler):
1482 * ralloc.c (reorder_bloc):
1483 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1484 Remove unused static functions.
1485
94da8397
JB
1486 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1487 it is called only from NS code.
1488
2e6c8532
JB
1489 * w32term.c (my_set_focus): #ifdef away; it is called only from
1490 "#ifdef 0" code.
1491
97b372d7
JB
1492 * w32fns.c (x_edge_detection):
1493 * xfaces.c (may_use_scalable_font_p):
1494 Remove obsolete static declarations.
1495
7c3320d8
JB
14962010-07-20 Juanma Barranquero <lekktu@gmail.com>
1497
1498 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1499 (emacs_blocked_realloc, uninterrupt_malloc):
1500 * fringe.c (w32_reset_fringes):
1501 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1502 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1503 * sound.c (be2hs, do_play_sound):
1504 * vm-limit.c (get_lim_data, ret_lim_data):
1505 * w32term.c (x_free_frame_resources):
1506 * xfaces.c (x_create_gc, x_free_gc):
1507 Convert definitions to standard C.
1508
d5273788
SM
15092010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1510
1511 * eval.c (Feval, Ffuncall): Use the new names.
1512
1513 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1514 (DEFUN): Add braces around the union initialisation and use ## to
1515 specify the right union alternative and avoid a cast.
1516
8d16a259
JB
15172010-07-18 Juanma Barranquero <lekktu@gmail.com>
1518
1519 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1520
3b8eff32
CY
15212010-07-17 Chong Yidong <cyd@stupidchicken.com>
1522
1523 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1524
499322ce
J
15252010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1526
1527 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1528 is related to the menu bar (Bug#6499).
a628ad9d 1529 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 1530
f6003da5 15312010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
1532
1533 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1534
1535 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1536
1537 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1538 i.e. don't put back ButtonRelease (Bug#6608).
1539
1540 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1541 instead of Window. Call xg_event_is_for_menubar when
1542 USE_GTK (Bug#6499).
1543
1544 * gtkutil.h (xg_event_is_for_menubar): Declare.
1545
1546 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1547
f6003da5 15482010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
1549
1550 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1551 when it's the same as the old foreground. (Bug#6609)
1552
23243f29
J
15532010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1554
1555 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1556 widget is non-null (Bug#6645).
1557
2b23d2a6
AS
15582010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1559
01b564ff
AS
1560 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1561 Convert old-style definition.
1562
2b23d2a6
AS
1563 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1564 timestamp argument.
1565
c4affd2c
EZ
15662010-07-15 Eli Zaretskii <eliz@gnu.org>
1567
1568 * fringe.c (update_window_fringes): Restore mistakenly reverted
1569 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1570
cf28cebc
J
15712010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1572
1573 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1574 (SET_SAVED_KEY_EVENT): Remove (not used).
1575 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1576 remove size parameter.
1577 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1578 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1579 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1580 ButtonRelease.
6b2c4bd9
J
1581 (x_set_window_size_1): scroll_bar_actual_width is always
1582 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
1583
1584 * xdisp.c (pending_menu_activation): Remove extern declaration.
1585 (prepare_menu_bars): Remove setting of pending_menu_activation.
1586
1587 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
1588 (x_activate_menubar): Set popup_activated_flag for Xt also.
1589 Remove setting of pending_menu_activation.
cf28cebc
J
1590 (set_frame_menubar): Remove check of pending_menu_activation.
1591 Declare menubar_size before code. Correct spelling in comment.
1592
f6c1c771
KH
15932010-07-14 Kenichi Handa <handa@m17n.org>
1594
1595 * font.c (font_open_entity): Cancel previous change.
1596 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1597
20477505
EZ
15982010-07-13 Eli Zaretskii <eliz@gnu.org>
1599
77defa9a
EZ
1600 Remove subprocesses #ifdefs.
1601 * process.c <inhibit_sentinels>: Move to the common part.
1602 (Fwaiting_for_user_input_p): Move to the common part; return nil
1603 if async subprocesses aren't supported.
1604 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1605 MS-DOS. Remove "#ifdef subprocesses".
1606 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1607 (gettimeofday): Remove "#ifdef subprocesses".
1608 (wait_without_blocking): Remove function.
1609 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1610 Remove "#ifdef subprocesses".
1611 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1612 compiled on MS-DOS.
1613 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1614 wait_for_termination on MS-DOS.
1615 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1616 initialization of inhibit_sentinels.
1617 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1618 subprocesses" conditional.
1619 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1620 wait_for_termination, since `buffer' cannot be an integer when
1621 async subprocesses are not supported
1622 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1623 for ifdefing away the call to Fprocess_status.
1624
20477505
EZ
1625 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1626 away the entire body of the function.
1627
b3ffc17c
DN
16282010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1629
01faa934
DN
1630 Remove subprocesses #ifdefs from term.c.
1631 * process.c (add_keyboard_wait_descriptor)
1632 (delete_keyboard_wait_descriptor): Move to common section, do
1633 nothing when subprocesses is not defined.
a628ad9d
JB
1634 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1635 Remove subprocesses #ifdefs.
01faa934 1636
b3ffc17c
DN
1637 Convert maybe_fatal to standard C.
1638 * lisp.h (verror): Declare.
1639 * eval.c (verror): New function containing the code from ...
1640 (error): ... this. Call verror.
1641 * term.c (vfatal): New function containing the code from ...
1642 (fatal): ... this. Call vfatal.
1643 (maybe_fatal): Convert to standard C, use variable number of
1644 arguments. Declare as non-return.
1645 (init_tty): Fix maybe_fatal call.
1646
0521f580
DN
16472010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1648
1649 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1650 (_scroll_bar_note_movement): Convert definitions to standard C.
1651 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1652 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1653
ebd15611
DN
16542010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1655
1656 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1657 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1658 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1659 (xaw_jump_callback, xaw_scroll_callback)
1660 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1661 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1662 definitions to standard C.
1663 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1664 (popup_activate_callback, popup_deactivate_callback)
1665 (menu_highlight_callback, menubar_selection_callback)
1666 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1667 (free_frame_menubar, popup_selection_callback, as)
1668 (create_and_show_popup_menu, dialog_selection_callback)
1669 (create_and_show_dialog):
1670 * xfns.c (hack_wm_protocols, x_window):
1671 * xfaces.c (x_update_menu_appearance):
1672 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1673 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1674 (set_frame_size, update_wm_hints, setup_frame_gcs)
1675 (update_various_frame_slots, update_from_various_frame_slots)
1676 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1677 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1678 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1679
de06a2dd
AS
16802010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1681
a628ad9d 1682 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 1683
fc549af9
EZ
16842010-07-12 Eli Zaretskii <eliz@gnu.org>
1685
1686 * process.c (setup_process_coding_systems): Move to the part
1687 shared by non-subprocesses systems, and make its body empty when
1688 subprocesses is not defined.
1689 (close_process_descs): Move to the part shared by non-subprocesses
1690 systems.
1408902e
EZ
1691 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1692 ANSI C.
fc549af9 1693
d5a3eaaf
AS
16942010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1695
1696 * editfns.c (transpose_markers): Convert old-style definition.
1697 * emacs.c (abort, shut_down_emacs, fixup_locale)
1698 (synchronize_system_time_locale)
1699 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1700 * floatfns.c (extract_float, matherr, init_floatfns)
1701 (syms_of_floatfns): Likewise.
1702 * fns.c (make_hash_table): Likewise.
1703 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1704 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1705 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1706 (ftfont_variation_glyphs): Likewise.
1707 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1708 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1709 * lread.c (read_filtered_event): Likewise.
1710 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1711 * process.c (wait_reading_process_output): Likewise.
1712 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1713 * search.c (search_buffer, boyer_moore): Likewise.
1714 * syntax.c (scan_sexps_forward): Likewise.
1715 * xdisp.c (try_scrolling): Likewise.
1716 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1717 (face_at_string_position): Likewise.
1718 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1719 * xselect.c (x_get_window_property, receive_incremental_selection)
1720 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1721 Likewise.
1722 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1723
6f704c76
DN
17242010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1725
ded80a25
DN
1726 * callproc.c (child_setup): Remove subprocesses conditional.
1727 Remove code dealing with SET_EMACS_PRIORITY, unused.
1728
49d937f4 1729 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
1730 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1731
1732 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1733 (__do_global_dtors, __main): Use void in definition.
1734 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1735 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1736 the only users from ...
1737 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1738 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1739 (HAVE_VOLATILE): Remove, unused.
1740
6f704c76
DN
1741 Convert more function definitions to standard C.
1742 * xdisp.c (window_box_edges, handle_single_display_spec)
1743 (display_string): Convert definition to standard C.
1744 * scroll.c (do_direct_scrolling, scrolling_1):
1745 * dispnew.c (allocate_matrices_for_frame_redisplay)
1746 (mirrored_line_dance):
1747 * coding.c (code_convert_string):
1748 * charset.c (map_charset_chars):
1749 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1750 (Fregister_ccl_program, Fregister_code_conversion_map):
1751 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1752 (head_table): Make static and const.
1753
e6cfa7c3
AS
17542010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1755
1756 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1757 (PROFILING_LDFLAGS): Set from substitution.
1758 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1759 CFLAGS last.
1760
892dd565
KH
17612010-07-12 Kenichi Handa <handa@m17n.org>
1762
6f2cdcd1
KH
1763 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1764 (shortlisp): Likewise.
1765
892dd565
KH
1766 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1767
1768 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1769 of FONT_ENTITY_INDEX.
1770 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1771 property, get the property value dynamically.
1772 (Ffont_put): Accept font-entity and font-object too.
1773 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1774 return value changed.
1775 (syms_of_font): Adjusted for the above change.
1776
ae96d47a
AS
17772010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1778
c8fc18ee
AS
1779 * blockinput.h: Remove obsolete comment.
1780
89887d67
AS
1781 * lisp.h: Include <stddef.h>.
1782 (OFFSETOF): Don't define.
1783 (VECSIZE): Use offsetof instead of OFFSETOF.
1784 (PSEUDOVECSIZE): Likewise.
1785 * process.c (conv_sockaddr_to_lisp): Likewise.
1786 * alloc.c: Don't include <stddef.h>.
1787 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1788
ae96d47a
AS
1789 * process.c: Remove obsolete comment.
1790
635c0aa1
CY
17912010-07-11 Chong Yidong <cyd@stupidchicken.com>
1792
1793 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1794
a64df650
AS
17952010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1796
8966b757
AS
1797 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1798 index, rindex.
1799 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1800 * editfns.c (Fuser_full_name, Fformat): Likewise.
1801 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1802 * fileio.c (Ffile_symlink_p): Likewise.
1803 * filelock.c (current_lock_owner): Likewise.
1804 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1805 * fontset.c (fontset_pattern_regexp): Likewise.
1806 * lread.c (read1): Likewise.
1807 * sysdep.c (init_system_name): Likewise.
1808 * xfns.c (select_visual): Likewise.
1809 * s/hpux10-20.h (index, rindex): Don't define.
1810 * s/ms-w32.h (index): Likewise.
1811 * s/usg5-4.h: Likewise.
1812
cf237e27
AS
1813 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1814
a8fe7202
AS
1815 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1816 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1817 (egetenv): Likewise.
1818 * doprnt.c (doprnt): Likewise.
1819 * editfns.c (set_time_zone_rule, format2): Likewise.
1820 * emacs.c (decode_env_path): Likewise.
1821 * eval.c (signal_error, error): Likewise.
1822 * insdel.c (replace_range_2): Likewise.
1823 * keyboard.c (cmd_error_internal): Likewise.
1824 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1825 * print.c (write_string, write_string_1, print_error_message):
1826 Likewise.
1827 * vm-limit.c (warn_function, memory_warnings): Likewise.
1828 * xdisp.c (message1, message1_nolog, message_with_string)
1829 (vmessage, message, message_nolog): Likewise.
1830 * emacs.c: Remove duplicate declaration.
1831 * keyboard.h: Likewise.
1832 * lisp.h: Update prototypes.
1833
bb8e180f
AS
1834 * eval.c: Fix indentation problem.
1835
83380e65
AS
1836 * keyboard.c: Include "process.h"
1837
a64df650
AS
1838 * eval.c: Remove obsolete noinline declaration.
1839 * fns.c: Likewise.
1840
6a8033e1
KR
18412010-07-11 Ken Raeburn <raeburn@raeburn.org>
1842
1843 * doprnt.c (doprnt): Take a va_list argument instead of count and
1844 pointer.
1845 * eval.c (error): Change to a standard-C variadic function.
1846 * xdisp.c (vmessage): Renamed from message, made static, and
1847 changed to take a va_list argument.
1848 (message): New variadic wrapper.
1849 (message_nolog): Now a variadic function, calling vmessage.
1850 * lisp.h: Include stdarg.h for va_list.
1851 (doprnt, error, message, message_nolog): Decls updated.
1852
462aa963
EZ
18532010-07-11 Eli Zaretskii <eliz@gnu.org>
1854
1855 * process.c (syms_of_process) <delete-exited-processes>: Define
1856 even if !subprocesses.
1857 (delete_exited_processes): Ditto.
1858
1859 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1860 (delete_exited_processes): Don't define.
1861
48104462
CY
18622010-07-10 Chong Yidong <cyd@stupidchicken.com>
1863
1864 * frame.c (make_frame): Initialize menu_bar_lines and
1865 tool_bar_lines members.
1866 (make_initial_frame, make_terminal_frame): Initialize
1867 menu_bar_lines using value of menu-bar-mode.
1868
1869 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1870
f388c88a
EZ
18712010-07-10 Eli Zaretskii <eliz@gnu.org>
1872
1873 * process.c: Reshuffle #include's. Condition some of the global
1874 and static variables on `subprocesses'.
1875 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1876 Leave only one implementation.
1877 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1878 (kill_buffer_processes, Flist_system_processes)
1879 (Fprocess_attributes, init_process, syms_of_process): Unify the
1880 implementations for with subprocesses and without them.
1881
723f5a07
J
18822010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1883
1884 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1885 correct size for Motif.
1886 (free_frame_menubar): Call x_set_window_size to update frame size.
1887
1888 * xfns.c (x_window): Set borderWidth to 0 for pane and
1889 EmacsFrame. Frame size calculation is wrong otherwise.
1890
2536a4b7
MA
18912010-07-09 Michael Albinus <michael.albinus@gmx.de>
1892
1893 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1894 allows to suppress errors when polling in Emacs' main loop.
1895 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1896 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1897 (Fdbus_method_error_internal, Fdbus_send_signal)
1898 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1899 (Fdbus_register_method): Use it. (Bug#6579)
1900
5842a27b
DN
19012010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1902
1903 * alloc.c: Convert DEFUNs to standard C.
1904 * buffer.c:
1905 * bytecode.c:
1906 * callint.c:
1907 * callproc.c:
1908 * casefiddle.c:
1909 * casetab.c:
1910 * category.c:
1911 * character.c:
1912 * charset.c:
1913 * chartab.c:
1914 * cmds.c:
1915 * coding.c:
1916 * composite.c:
1917 * data.c:
1918 * dbusbind.c:
1919 * dired.c:
1920 * dispnew.c:
1921 * doc.c:
1922 * dosfns.c:
1923 * editfns.c:
1924 * emacs.c:
1925 * eval.c:
1926 * fileio.c:
1927 * filelock.c:
1928 * floatfns.c:
1929 * fns.c:
1930 * font.c:
1931 * fontset.c:
1932 * frame.c:
1933 * fringe.c:
1934 * image.c:
1935 * indent.c:
1936 * insdel.c:
1937 * keyboard.c:
1938 * keymap.c:
1939 * lread.c:
1940 * macros.c:
1941 * marker.c:
1942 * menu.c:
1943 * minibuf.c:
1944 * msdos.c:
1945 * nsfns.m:
1946 * nsmenu.m:
1947 * nsselect.m:
1948 * print.c:
1949 * process.c:
1950 * search.c:
1951 * sound.c:
1952 * syntax.c:
1953 * term.c:
1954 * terminal.c:
1955 * textprop.c:
1956 * undo.c:
1957 * w16select.c:
1958 * w32console.c:
1959 * w32fns.c:
1960 * w32font.c:
1961 * w32menu.c:
1962 * w32proc.c:
1963 * w32select.c:
1964 * window.c:
1965 * xdisp.c:
1966 * xfaces.c:
1967 * xfns.c:
1968 * xmenu.c:
1969 * xselect.c:
1970 * xsettings.c:
1971 * xsmfns.c: Likewise.
1972
d568829b
EZ
19732010-07-08 Eli Zaretskii <eliz@gnu.org>
1974
1975 * process.c (kbd_is_on_hold, hold_keyboard_input)
1976 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1977
52214050
J
19782010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1979
1980 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1981 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1982 unless USE_LUCID.
1983
313d9eb2
DN
19842010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1985
a628ad9d
JB
1986 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1987 declaration.
d8825aa3 1988
295d0d8f
DN
1989 Clean up include guards.
1990 * tparam.c: Remove include guards for config.h, string.h and code
1991 that assumes #ifndef emacs.
1992 * termcap.c:
1993 * unexalpha.c:
1994 * sysdep.c:
1995 * filemode.c:
1996 * filelock.c:
1997 * bidi.c: Likewise.
1998
49d9e6b0
DN
1999 Remove prefix-args.c
2000 * prefix-args.c: Remove file.
2001 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2002 * Makefile.in (temacs${EXEEXT}): Remove references to
2003 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2004 (mostlyclean): Remove reference to prefix-args.
2005 (prefix-args): Remove.
2006
313d9eb2
DN
2007 Simplify cstart_of_data, start_of_code and related code.
2008 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2009 (start_of_data): Merge into start_of_data function.
2010 * sysdep.c (start_of_text): Remove. Move simplified versions of
2011 it in the only users: unexaix.c and unexec.c.
2012 (read_input_waiting): Remove local declaration of quit_char.
2013 (start, etext): Remove declarations.
2014 (start_of_data): Merge with the version in mem-limits.h and move
2015 to vm-limits.c.
2016 * vm-limit.c (start_of_data): Merged and simplified version of the
2017 code formerly in mem-limits.h and sysdep.c.
2018 * unexec.c (start): New declaration, moved from sysdep.c.
2019 (start_of_text): Simplified version of the code formerly in sysdep.c.
2020 * unexaix.c (start_of_text): Simplified version of the code
2021 formerly in sysdep.c.
2022 * m/alpha.h (HAVE_TEXT_START): Remove.
2023 (TEXT_START): Move ...
2024 * unexalpha.c (TEXT_START): ... here.
2025 * s/hpux10-20.h (TEXT_START): Remove.
2026 * s/darwin.h (TEXT_START):
2027 * m/mips.h (TEXT_START):
2028 * m/macppc.h (HAVE_TEXT_START):
2029 * m/m68k.h (TEXT_START):
2030 * m/iris4d.h (TEXT_START):
2031 * m/intel386.h (TEXT_START):
2032 * m/ibmrs6000.h (TEXT_START):
2033 * m/ia64.h (HAVE_TEXT_START):
2034 * s/msdos.h (TEXT_START): Likewise.
2035
72af86bd
AS
20362010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2037
2038 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2039 (overrun_check_free, xstrdup, allocate_string)
2040 (allocate_string_data, compact_small_strings, Fmake_string)
2041 (make_unibyte_string, make_multibyte_string)
2042 (make_string_from_bytes, make_specified_string, make_float)
2043 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2044 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2045 memcpy, memmove, memset, memcmp.
2046 * atimer.c (start_atimer, set_alarm): Likewise.
2047 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2048 (mmap_realloc, init_buffer_once): Likewise.
2049 * callint.c (Fcall_interactively): Likewise.
2050 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2051 (getenv_internal_1): Likewise.
2052 * casefiddle.c (casify_object): Likewise.
2053 * ccl.c (ccl_driver): Likewise.
2054 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2055 * charset.c (load_charset_map_from_file)
2056 (load_charset_map_from_file, load_charset_map_from_vector)
2057 (Fdefine_charset_internal): Likewise.
2058 * cm.c (Wcm_clear): Likewise.
2059 * coding.c (decode_eol, decode_coding_object)
2060 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2061 * data.c (Faset): Likewise.
2062 * dired.c (directory_files_internal, file_name_completion_stat):
2063 Likewise.
2064 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2065 (clear_glyph_row, copy_row_except_pointers)
2066 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2067 (save_current_matrix, restore_current_matrix)
2068 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2069 (mirror_line_dance, scrolling_window): Likewise.
2070 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2071 Likewise.
2072 * doprnt.c (doprnt): Likewise.
2073 * editfns.c (Fuser_full_name, make_buffer_string_both)
2074 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2075 * emacs.c (sort_args): Likewise.
2076 * eval.c (Fapply, Ffuncall): Likewise.
2077 * fileio.c (Ffile_name_directory, make_temp_name)
2078 (Fexpand_file_name, search_embedded_absfilename)
2079 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2080 (auto_save_error): Likewise.
2081 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2082 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2083 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2084 (Fmake_hash_table): Likewise.
2085 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2086 * ftfont.c (ftfont_text_extents): Likewise.
2087 * getloadavg.c (getloadavg): Likewise.
2088 * image.c (define_image_type, make_image, make_image_cache)
2089 (x_create_x_image_and_pixmap, xbm_image_p)
2090 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2091 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2092 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2093 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2094 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2095 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2096 Likewise.
2097 * indent.c (scan_for_column, compute_motion): Likewise.
2098 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2099 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2100 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2101 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2102 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2103 (store_user_signal_events, menu_bar_items, tool_bar_items)
2104 (process_tool_bar_item, append_tool_bar_item)
2105 (read_char_minibuf_menu_prompt, read_key_sequence)
2106 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2107 Likewise.
2108 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2109 Likewise.
2110 * lisp.h (STRING_COPYIN): Likewise.
2111 * lread.c (Fload, read1, oblookup): Likewise.
2112 * msdos.c (Frecent_doskeys): Likewise.
2113 * nsfns.m (Fx_create_frame): Likewise.
2114 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2115 Likewise.
2116 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2117 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2118 Likewise.
2119 * nsmenu.m (ns_update_menubar): Likewise.
2120 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2121 * print.c (print_unwind, printchar, strout, print_string)
2122 (print_error_message): Likewise.
2123 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2124 (Fmake_network_process, Fnetwork_interface_list)
2125 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2126 (init_process): Likewise.
2127 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2128 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2129 Likewise.
2130 * scroll.c (do_scrolling, do_direct_scrolling)
2131 (scrolling_max_lines_saved): Likewise.
2132 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2133 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2134 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2135 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2136 (emacs_set_tty): Likewise.
2137 * term.c (encode_terminal_code, calculate_costs)
2138 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2139 Likewise.
2140 * termcap.c (tgetst1, gobble_line): Likewise.
2141 * termhooks.h (EVENT_INIT): Likewise.
2142 * tparam.c (tparam1): Likewise.
2143 * unexalpha.c (unexec): Likewise.
2144 * unexec.c (write_segment): Likewise.
2145 * unexmacosx.c (unexec_write_zero): Likewise.
2146 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2147 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2148 * w32font.c (w32font_list_family, w32font_text_extents)
2149 (w32font_list_internal, w32font_match_internal)
2150 (w32font_open_internal, compute_metrics, Fx_select_font):
2151 Likewise.
2152 * w32menu.c (set_frame_menubar, add_menu_item)
2153 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2154 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2155 * w32uniscribe.c (uniscribe_list_family): Likewise.
2156 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2157 * window.c (make_window, replace_window, set_window_buffer)
2158 (Fsplit_window): Likewise.
2159 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2160 (add_to_log, message3, x_consider_frame_title)
2161 (append_space_for_newline, extend_face_to_end_of_line)
2162 (decode_mode_spec_coding, init_glyph_string): Likewise.
2163 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2164 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2165 (face_attr_equal_p, make_realized_face, make_face_cache)
2166 (free_realized_faces, lookup_named_face, smaller_face)
2167 (face_with_height, lookup_derived_face)
2168 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2169 (Finternal_set_font_selection_order, realize_default_face)
2170 (compute_char_face, face_at_buffer_position)
2171 (face_for_overlay_string, face_at_string_position, merge_faces):
2172 Likewise.
2173 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2174 (Fx_window_property, x_create_tip_frame)
2175 (Fx_backspace_delete_keys_p): Likewise.
2176 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2177 (xfont_text_extents): Likewise.
2178 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2179 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2180 * xselect.c (x_queue_event, x_get_window_property)
2181 (receive_incremental_selection): Likewise.
2182 * xsmfns.c (x_session_check_input): Likewise.
2183 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2184 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2185 Likewise.
2186 * character.h (BCOPY_SHORT): Removed.
2187 * config.in: Regenerate.
2188 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2189 * emacs.c (main) [PROFILING]: Don't declare
2190 dump_opcode_frequencies.
2191 * lisp.h (safe_bcopy): Remove declaration.
2192 (memset) [!HAVE_MEMSET]: Declare.
2193 (memcpy) [!HAVE_MEMCPY]: Likewise.
2194 (memmove) [!HAVE_MEMMOVE]: Likewise.
2195 (memcmp) [!HAVE_MEMCMP]: Likewise.
2196 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2197 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2198 Don't define.
2199 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2200 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2201 (BCOPY_DOWNWARD_SAFE): Don't define.
2202 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2203 (memcpy) [!HAVE_MEMCPY]: Define.
2204 (memmove) [!HAVE_MEMMOVE]: Define.
2205 (memcmp) [!HAVE_MEMCMP]: Define.
2206
cb768704
J
22072010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2208
2209 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
2210 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2211 New functions.
cb768704
J
2212 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2213 select on empty input mask.
2214 (init_process): Initialize kbd_is_on_hold to 0.
2215
2216 * process.h (hold_keyboard_input, unhold_keyboard_input)
2217 (kbd_on_hold_p): Declare.
2218
2219 * keyboard.c (input_available_signal): Declare.
2220 (kbd_buffer_nr_stored): New function.
2221 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2222 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2223 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2224 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2225 (tty_read_avail_input): If input is on hold, return.
2226 Don't read more that free slots in kbd_buffer (Bug#6571).
2227
3a8ce822
EZ
22282010-07-07 Eli Zaretskii <eliz@gnu.org>
2229
2230 * msdos.h:
2231 * msdos.c:
2232 * dosfns.c:
2233 * w16select.c: Convert function definitions to ANSI C.
2234
a628ad9d
JB
2235 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2236 Remove unused prototypes.
3a8ce822 2237
cf84bb53
JB
22382010-07-07 Juanma Barranquero <lekktu@gmail.com>
2239
2240 * coding.c, sysdep.c: Convert some more functions to standard C.
2241
1a4990fb
JB
22422010-07-07 Juanma Barranquero <lekktu@gmail.com>
2243
2244 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2245 (encode_coding_object): Use SPECPDL_INDEX.
2246 (syms_of_coding): Use DOS_NT.
2247
c0f2f16b
DN
22482010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2249
48fb6855
DN
2250 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2251
c0f2f16b
DN
2252 Make the function member of Lisp_Subr use standard C prototypes.
2253 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2254 (DECL_ALIGN): Add a cast for the function.
2255 * eval.c (Feval, Ffuncall): Use the proper type for each type
2256 function call.
2257
67aecef9
CY
22582010-07-06 Chong Yidong <cyd@stupidchicken.com>
2259
2260 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2261 fringe face id, so face-remapping-alist works (Bug#6091).
2262
b56ceb92
JB
22632010-07-06 Juanma Barranquero <lekktu@gmail.com>
2264
2265 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2266 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2267 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2268
7af07b96
AS
22692010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2270
2271 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2272 * lisp.h: Declare x_get_keysym_name.
2273 * keyboard.c (modify_event_symbol): Don't declare
2274 x_get_keysym_name here.
2275
69e24e34
DN
22762010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2277
2278 * ecrt0.c: Revert conversion to standard C.
2279
d3da34e0 22802010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
2281
2282 * vm-limit.c (memory_warnings):
2283 * keyboard.c (modify_event_symbol):
2284 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2285 (round2, emacs_rint):
2286 * process.c (send_process, old_sigpipe): Convert function
2287 definitions and declarations to standard C.
2288
22892010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
2290
2291 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2292 * xdisp.c: Convert function definitions to standard C.
2293
2294 * cm.c (cmputc): Arg C is now int, not char.
2295 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2296
00be444c
J
22972010-07-05 James Cloos <cloos@jhcloos.com>
2298
2299 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2300
2301 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2302 _NET_WM_ICON_NAME atoms.
2303
2304 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2305 and _NET_WM_ICON_NAME properties, too, matching what is
2306 done in the Gtk+ case.
2307
e4c8d29a
J
23082010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2309
ff919460
J
2310 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2311
e4c8d29a
J
2312 * xsmfns.c (SSDATA): New macro.
2313 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2314 passed to strlen/strcpy/strcat.
2315 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2316 7:th arg to XChangeProperty to (unsigned char *)
2317
2318 * xsettings.c (something_changedCB, parse_settings)
2319 (apply_xft_settings): Reformat prototype.
2320 (something_changedCB, init_gconf): Remove unused variable i.
2321 (read_settings): Remove unused variable long_len.
2322
2323 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2324 (xg_get_image_for_pixmap, create_dialog)
2325 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2326 (menuitem_highlight_callback, make_menu_item)
2327 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2328 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2329 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2330 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2331 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2332 (xg_tool_bar_item_expose_callback): Reformat prototype.
2333 (xg_update_menubar): GList *group => GSList *group.
2334 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2335 before use.
2336 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2337 to GTK_IMAGE (wimage).
2338
dd4c5104
DN
23392010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2340
898b4c5c
DN
2341 * atimer.c: Use "" instead of <> for local includes for
2342 consistency with the rest of the code.
2343
dd4c5104
DN
2344 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2345 * xrdb.c (get_system_name):
2346 * window.c (shrink_windows):
2347 * syntax.c (forw_comment):
2348 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2349 (ins_del_costs):
2350 * mem-limits.h (start_of_data):
2351 * lread.c (readevalloop):
2352 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2353 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2354 * frame.c (x_get_focus_frame):
2355 * floatfns.c (fmod_float):
2356 * fileio.c (choose_write_coding_system):
2357 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2358 (malloc_initialize_hook, sort_args, synchronize_locale):
2359 * doprnt.c (doprnt):
2360 * dired.c (compile_pattern):
2361 * data.c (fmod_float):
2362 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2363 (map_char_table_for_charset):
2364 * charset.c (define_charset_internal):
2365 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2366 to standard C.
2367
9a39b306 23682010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 2369 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
2370
2371 * lread.c (read1): Fix up last change to not mess up `c'.
2372
e6cb2cbb
JB
23732010-07-04 Juanma Barranquero <lekktu@gmail.com>
2374
2375 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2376
438105ed
JB
23772010-07-04 Juanma Barranquero <lekktu@gmail.com>
2378
2379 Fix prototypes.
2380
e5447b22 2381 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 2382 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
2383 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2384 arg, as required by internal_condition_case_1.
dcc7404b 2385 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
2386 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2387 (analyse_first): Fix "const const".
e5447b22 2388 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 2389 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 2390 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 2391
971de7fb
DN
23922010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2393
2394 * alloc.c: Convert function definitions to standard C.
2395 * atimer.c:
2396 * bidi.c:
2397 * bytecode.c:
2398 * callint.c:
2399 * callproc.c:
2400 * casefiddle.c:
2401 * casetab.c:
2402 * category.c:
2403 * ccl.c:
2404 * character.c:
2405 * charset.c:
2406 * chartab.c:
2407 * cmds.c:
2408 * coding.c:
2409 * composite.c:
2410 * data.c:
2411 * dbusbind.c:
2412 * dired.c:
2413 * dispnew.c:
2414 * doc.c:
2415 * doprnt.c:
2416 * ecrt0.c:
2417 * editfns.c:
2418 * fileio.c:
2419 * filelock.c:
2420 * filemode.c:
2421 * fns.c:
2422 * font.c:
2423 * fontset.c:
2424 * frame.c:
2425 * fringe.c:
2426 * ftfont.c:
2427 * ftxfont.c:
2428 * gtkutil.c:
2429 * indent.c:
2430 * insdel.c:
2431 * intervals.c:
2432 * keymap.c:
2433 * lread.c:
2434 * macros.c:
2435 * marker.c:
2436 * md5.c:
2437 * menu.c:
2438 * minibuf.c:
2439 * prefix-args.c:
2440 * print.c:
2441 * ralloc.c:
2442 * regex.c:
2443 * region-cache.c:
2444 * scroll.c:
2445 * search.c:
2446 * sound.c:
2447 * strftime.c:
2448 * syntax.c:
2449 * sysdep.c:
2450 * termcap.c:
2451 * terminal.c:
2452 * terminfo.c:
2453 * textprop.c:
2454 * tparam.c:
2455 * undo.c:
2456 * unexelf.c:
2457 * window.c:
2458 * xfaces.c:
2459 * xfns.c:
2460 * xfont.c:
2461 * xftfont.c:
2462 * xgselect.c:
2463 * xmenu.c:
2464 * xrdb.c:
2465 * xselect.c:
2466 * xsettings.c:
2467 * xsmfns.c:
2468 * xterm.c: Likewise.
2469
ae492bec
EZ
24702010-07-03 Eli Zaretskii <eliz@gnu.org>
2471
76ea4cc9
EZ
2472 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2473 frames other than the initial one. Fix reversal of colors when
2474 `reverse' is specified in the frame parameters. Call
2475 update_face_from_frame_parameter instead of
2476 internal-set-lisp-face-attribute. Initialize screen colors from
2477 initial_screen_colors[] when f->default_face_done_p is zero,
2478 instead of depending on being called with default-frame-alist as
2479 the alist argument.
2480
2481 * xfaces.c (update_face_from_frame_parameter): Move out of
2482 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2483 with HAVE_WINDOW_SYSTEM.
2484
1e6255ae
EZ
2485 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2486 to menu-bar-mode, if not set in the frame parameters or in
2487 default-frame-alist.
2488
ae492bec
EZ
2489 * w32console.c (sys_tputs): Adjust argument list to prototype in
2490 term.c.
2491
3a35a84c
JB
24922010-07-03 Juanma Barranquero <lekktu@gmail.com>
2493
2494 * lisp.h (memory_warnings): Fix prototype.
2495
2496 * cm.h (evalcost): Fix prototype.
2497
2498 * cm.c (evalcost): Fix arg type.
2499
c532d349
DN
25002010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2501
2502 * term.c (term_clear_mouse_face, Fidentity):
2503 * syssignal.h (signal_handler_t):
2504 * lisp.h (memory_warnings):
2505 * coding.h (preferred_coding_system):
2506 * cm.h (evalcost):
2507 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2508
c0b36d46
EZ
25092010-07-02 Eli Zaretskii <eliz@gnu.org>
2510
2511 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2512 from prototypes.
2513
2514 * msdos.h (load_pixmap): Don't define away.
2515
383e0970
J
25162010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2517
f57e2426
J
2518 * lisp.h:
2519 * atimer.h: Remove define for P_.
2520
2521 * alloc.c: Remove __P and P_ from .c and .m files.
2522 * atimer.c:
2523 * buffer.c:
2524 * callint.c:
2525 * category.c:
2526 * charset.c:
2527 * chartab.c:
2528 * cm.c:
2529 * coding.c:
2530 * composite.c:
2531 * data.c:
2532 * dired.c:
2533 * dispnew.c:
2534 * doc.c:
2535 * editfns.c:
2536 * emacs.c:
2537 * eval.c:
2538 * fileio.c:
2539 * filelock.c:
2540 * fns.c:
2541 * font.c:
2542 * fontset.c:
2543 * frame.c:
2544 * ftfont.c:
2545 * ftxfont.c:
2546 * gmalloc.c:
2547 * gtkutil.c:
2548 * image.c:
2549 * indent.c:
2550 * intervals.c:
2551 * keyboard.c:
2552 * keymap.c:
2553 * lread.c:
2554 * marker.c:
2555 * menu.c:
2556 * minibuf.c:
2557 * print.c:
2558 * process.c:
2559 * scroll.c:
2560 * search.c:
2561 * sound.c:
2562 * strftime.c:
2563 * syntax.c:
2564 * sysdep.c:
2565 * term.c:
2566 * terminal.c:
2567 * textprop.c:
2568 * unexalpha.c:
2569 * w32console.c:
2570 * w32fns.c:
2571 * w32font.c:
2572 * w32menu.c:
2573 * w32term.c:
2574 * w32uniscribe.c:
2575 * window.c:
2576 * xdisp.c:
2577 * xfaces.c:
2578 * xfns.c:
2579 * xfont.c:
2580 * xftfont.c:
2581 * xmenu.c:
2582 * xselect.c:
2583 * xterm.c: Likewise.
2584
383e0970 2585 Remove P_ and __P macros.
f57e2426
J
2586 * atimer.h: Remove P_ and __P macros.
2587 * buffer.h:
383e0970
J
2588 * category.h:
2589 * ccl.h:
2590 * character.h:
2591 * charset.h:
2592 * cm.h:
2593 * coding.h:
2594 * composite.h:
2595 * dispextern.h:
2596 * disptab.h:
9e892c8d 2597 * dosfns.h:
383e0970
J
2598 * font.h:
2599 * fontset.h:
2600 * frame.h:
2601 * gtkutil.h:
2602 * indent.h:
2603 * intervals.h:
2604 * keyboard.h:
2605 * keymap.h:
2606 * lisp.h:
2607 * macros.h:
2608 * md5.h:
2609 * menu.h:
2610 * msdos.h:
2611 * nsterm.h:
2612 * puresize.h:
2613 * region-cache.h:
2614 * syntax.h:
2615 * syssignal.h:
2616 * systime.h:
2617 * termhooks.h:
9e892c8d 2618 * w32font.h:
383e0970
J
2619 * w32term.h:
2620 * widget.h:
2621 * window.h:
2622 * xgselect.h:
2623 * xsettings.h:
2624 * xterm.h: Likewise.
2625
98601119
DN
26262010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2627
d9170db5
DN
2628 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2629
98601119
DN
2630 Cleanup old code.
2631 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2632 * syssignal.h: Remove code for Lynx, not supported anymore.
2633 * vm-limit.c: Remove unused code the depends on emacs not being
2634 defined and NO_LIM_DATA being defined.
2635 * mem-limits.h: Remove dead code.
2636
1f984e12
J
26372010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2638
c49d071a
J
2639 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2640
9d5405ec
J
2641 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2642 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2643
7a18115b
J
2644 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2645 parameters, they are already absolute.
2646
a628ad9d
JB
2647 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2648 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 2649
a628ad9d 2650 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 2651
a628ad9d
JB
2652 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2653 Update FRAME_TOOLBAR_HEIGHT.
581a8100 2654
a628ad9d
JB
2655 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2656 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 2657
c1ef4455
CY
26582010-06-30 Chong Yidong <cyd@stupidchicken.com>
2659
2660 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2661 check default-frame-alist.
2662
ce8f5a9a
AS
26632010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2664
2665 * process.c (create_process): Avoid using invalid file descriptors.
2666
2667 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2668
bf935339
J
26692010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2670
2671 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2672 Improve documentation. Return font regardless of use_system_font.
2673 (syms_of_xsettings): Improve documentation for font-use-system-font.
2674
7c33a057
CY
26752010-07-10 Chong Yidong <cyd@stupidchicken.com>
2676
2ec1b5ee
CY
2677 * xfaces.c (realize_face): Garbage the frame if a face is removed
2678 (Bug#6593).
2679
26802010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2681
2682 * keyboard.c: Remove duplicate <setjmp.h>.
2683 (read_key_sequence): Remove volatile qualifiers.
2684
26852010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2686
2687 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2688 (struct glyph_row): New members left_fringe_offset and
2689 right_fringe_offset.
2690
2691 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2692 specially.
2693 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2694 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2695
2696 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 2697 Take account of bitmap offset.
2ec1b5ee
CY
2698 (draw_window_fringes): Take account of window vscroll.
2699 (update_window_fringes): Likewise. Extend top-aligned top indicator
2700 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2701 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2702 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2703
27042010-07-04 Juanma Barranquero <lekktu@gmail.com>
2705
2706 * w32fns.c (Qtooltip): Declare.
2707 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2708
27092010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2710
2711 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2712 grab on just Press (Bug#6499).
2713
27142010-07-02 Chong Yidong <cyd@stupidchicken.com>
2715
2716 * frame.c (Qtooltip): New var.
2717 (delete_frame): Use it. Fix faulty if statement. Don't update
2718 mode line for tooltip frames. Suggested by Martin Rudalics.
2719
2720 * xfns.c (x_create_tip_frame):
2721 * w32fns.c (x_create_tip_frame): Use it.
2722
27232010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
2724
2725 * xftfont.c (xftfont_open): Check font width one by one also when
2726 spacing is dual.
2727
2728 * ftfont.c (ftfont_open): Ditto.
2729
6259c2ec
GM
27302010-06-30 Glenn Morris <rgm@gnu.org>
2731
a46007e9
GM
2732 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2733
6259c2ec
GM
2734 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2735
2736 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2737 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2738 * s/darwin.h (SYSTEM_MALLOC):
2739 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2740
5d1d3d04
J
27412010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2742
2743 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2744 (ns_get_screen): Don't assign integer to f.
2745 (Fx_display_color_cells): Declarations before statements.
2746
e547b051
J
27472010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2748
5fc8e5bc
J
2749 * xfns.c (x_default_font_parameter): Remove got_from_system
2750 (Bug#6526).
2751
e547b051
J
2752 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2753 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2754 defines based on what configure finds.
2755
2756 * xterm.c (XTflash): Use gtk_widget_get_window.
2757 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2758 gtk_adjustment_get_page_size.
2759 (handle_one_xevent): Use gtk_widget_get_mapped.
2760 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2761 messages.
2762
2763 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2764
2765 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2766 HAVE_GTK_FILE_SELECTION_NEW.
2767
2768 * gtkutil.c (xg_display_open, xg_display_close): Remove
2769 HAVE_GTK_MULTIDISPLAY, it is always defined.
2770 (xg_display_open): Return type is void.
2771 (gtk_widget_set_has_window)
2772 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2773 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2774 (gtk_adjustment_set_page_increment)
2775 (gtk_adjustment_get_step_increment): #define these if not found
2776 by configure.
2777 (remove_submenu): New define based on Gtk+ version.
2778 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2779 gtk_widget_get_window.
2780 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2781 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2782 (create_dialog): Use gtk_dialog_get_action_area and
2783 gtk_dialog_get_content_area.
2784 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2785 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2786 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2787 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2788 g_object_ref and g_object_unref.
2789 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2790 gtk_widget_get_sensitive.
2791 (xg_update_submenu): Use remove_submenu.
2792 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2793 properties instead to get old x and y position.
2794 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2795 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 2796 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
2797 (xg_get_tool_bar_widgets): New function.
2798 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2799 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2800 (toolbar_set_orientation): New #define based on if configure
2801 finds gtk_orientable_set_orientation.
2802 (xg_create_tool_bar): Call toolbar_set_orientation.
2803 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2804 instead of gtk_box_pack_start_defaults.
2805
b9229673
CY
28062010-06-28 Chong Yidong <cyd@stupidchicken.com>
2807
2808 * cmds.c (Fdelete_backward_char): Move into Lisp.
2809
bbc803b0
DN
28102010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2811
2812 * s/freebsd.h (BSD4_2): Remove redundant definition.
2813 bsd-common.h defines it already.
2814
6431f2e6
CY
28152010-06-27 Chong Yidong <cyd@stupidchicken.com>
2816
2817 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2818 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2819 tool-bar-mode, which are now set using these X resources at
2820 startup, to determine the defaults (Bug#2249).
2821
2822 * w32fns.c (Fx_create_frame):
2823 * nsfns.m (Fx_create_frame): Likewise.
2824
2825 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2826
8c079ebb
JB
28272010-06-24 Juanma Barranquero <lekktu@gmail.com>
2828
2829 * gtkutil.c (xg_update_scrollbar_pos):
2830 Avoid C99 mid-block variable declaration.
2831
e9b7ab96
JD
28322010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2833
bc869eca
JD
2834 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2835
2b7e356a 2836 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2837
2838 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2839 if height is less than scroll bar min size.
2840 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2841
e9b7ab96
JD
2842 * xfns.c (x_default_font_parameter): Try to open font from system
2843 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2844
a628ad9d 28452010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2846
2847 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2848
70c4cfbb
EZ
28492010-06-20 Eli Zaretskii <eliz@gnu.org>
2850
2851 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2852 most-positive-fixnum, be extra accurate when scrolling window
2853 start, to avoid missing the cursor line.
2854
ad5a12b5
EZ
28552010-06-19 Eli Zaretskii <eliz@gnu.org>
2856
2857 * xdisp.c (try_scrolling): Compute the limit for searching point
2858 in forward scroll from scroll_max, instead of an arbitrary limit
2859 of 10 screen lines. See
2860 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2861 and
2862 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2863 for details.
2864
2a64315a 28652010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2866
2867 * editfns.c (Fbyte_to_string): Pacify compiler.
2868
288cf4e9
SM
28692010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2870
2871 * lread.c (read1): Phase out old-style backquotes a bit more.
2872
6e6e5760
EZ
28732010-06-12 Eli Zaretskii <eliz@gnu.org>
2874
cbc4fd20
EZ
2875 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2876 bidimirror.h.
2877
2878 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2879
317fbf33
EZ
2880 * bidi.c (bidi_initialize): Remove explicit initialization of
2881 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 2882 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 2883 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
2884
2885 * biditype.h: New file.
2886
cbc4fd20
EZ
2887 * bidimirror.h: New file.
2888
6e6e5760
EZ
2889 * window.c (syms_of_window): Doc fix (bug#6409).
2890
4176cba2
RF
28912010-06-12 Romain Francoise <romain@orebokech.com>
2892
2893 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2894 ediff-hook.
2895
cb4bfcb5
GM
28962010-06-10 Glenn Morris <rgm@gnu.org>
2897
64c60c2f
GM
2898 * editfns.c (Fbyte_to_string): Pacify compiler.
2899
cb4bfcb5
GM
2900 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2901
2ec1b5ee
CY
29022010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2903
2904 * alloc.c (Fmake_byte_code): Don't access undefined argument
2905 (Bug#6517).
2906
29072010-06-25 Chong Yidong <cyd@stupidchicken.com>
2908
2909 * xdisp.c (next_element_from_image): Ensure that after-strings are
2910 read the next time we hit handle_stop (Bug#1336).
2911
29122010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2913
2914 * lread.c (read1): Signal error if #s is not followed by paren.
2915
29162010-06-19 Chong Yidong <cyd@stupidchicken.com>
2917
2918 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2919
2920 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2921
29222010-06-15 Glenn Morris <rgm@gnu.org>
2923
2924 * editfns.c (Fbyte_to_string): Pacify compiler.
2925
e454a4a3
SM
29262010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2927
2928 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2929 Check `object's type before accessing its guts.
2930
c1b1acc2
DN
29312010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2932
2933 * s/usg5-4.h: Fix previous change.
2934 Suggested by Lawrence Mitchell <wence@gmx.li>
2935
657d4c0b
AS
29362010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2937
2938 * minibuf.c (Fall_completions): Add more checks.
2939
9b27fd9f
JB
29402010-06-08 Juanma Barranquero <lekktu@gmail.com>
2941
2942 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2943
a99ebb40
DN
29442010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2945
d7c5d87d
DN
2946 * lread.c (X_OK): Remove, unused.
2947
0263a941
DN
2948 * dispnew.c: Remove obsolete comment.
2949
a99ebb40
DN
2950 Remove INCLUDED_FCNTL.
2951 * xterm.c (INCLUDED_FCNTL):
2952 * callproc.c (INCLUDED_FCNTL):
2953 * alloc.c (INCLUDED_FCNTL):
2954 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2955 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2956
13b5221f
MR
29572010-06-07 Martin Rudalics <rudalics@gmx.at>
2958
2959 * window.c (Fselect_window): Move `record_buffer' up to the
2960 beginning of this function, so the buffer gets recorded
2961 even if the selected window does not change.
2962 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2963
5220357f
JB
29642010-06-07 Juanma Barranquero <lekktu@gmail.com>
2965
2966 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2967 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2968
3085237c
DN
29692010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2970
2971 Remove BSTRING related code, all platforms define it.
2972 * s/usg5-4.h (BSTRING): Remove definition.
2973 * s/template.h (BSTRING):
2974 * s/msdos.h (BSTRING):
2975 * s/ms-w32.h (BSTRING):
2976 * s/hpux10-20.h (BSTRING):
2977 * s/gnu-linux.h (BSTRING):
2978 * s/darwin.h (BSTRING):
2979 * s/cygwin.h (BSTRING):
2980 * s/bsd-common.h (BSTRING):
2981 * s/aix4-2.h (BSTRING): Likewise.
2982 * sysdep.c: Remove code depending on BSTRING not being defined.
2983
409f2919
JB
29842010-06-05 Juanma Barranquero <lekktu@gmail.com>
2985
2986 Remove obsolete macro BASE_LEADING_CODE_P.
2987 * character.h (BASE_LEADING_CODE_P): Remove.
2988 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2989 * buffer.c (Fset_buffer_multibyte):
2990 * indent.c (scan_for_column, compute_motion):
2991 * insdel.c (count_combining_before, count_combining_after):
2992 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2993
087fc47a
JB
29942010-06-04 Juanma Barranquero <lekktu@gmail.com>
2995
2996 Turn `directory-sep-char' into a noop.
2997
2998 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2999 (DIRECTORY_SEP): Define unconditionally.
3000
3001 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3002
3003 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3004 call dostounix_filename directly.
3005
3006 * fileio.c (CORRECT_DIR_SEPS): Remove.
3007 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3008 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3009 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3010 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3011
3012 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3013 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3014
0eb7675e
AS
30152010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3016
a628ad9d
JB
3017 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3018 (Bug#6346)
0eb7675e 3019
78edd3b7
JB
30202010-06-03 Juanma Barranquero <lekktu@gmail.com>
3021
3022 * ccl.c (Fccl_program_p): Fix typo in docstring.
3023
eb697db5
DN
30242010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3025
3026 Move UNEXEC definition to autoconf.
3027 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3028 * s/sol2-10.h (UNEXEC):
3029 * s/irix6-5.h (UNEXEC):
3030 * s/hpux10-20.h (UNEXEC):
3031 * s/gnu-linux.h (UNEXEC):
3032 * s/darwin.h (UNEXEC):
3033 * s/cygwin.h (UNEXEC):
3034 * s/bsd-common.h (UNEXEC):
3035 * s/aix4-2.h (UNEXEC):
3036 * m/alpha.h (UNEXEC): Likewise.
3037 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3038
aa3830c4
JB
30392010-06-03 Juanma Barranquero <lekktu@gmail.com>
3040
3041 Remove obsolete pre-unicode2 macros.
3042 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3043 * composite.c (composition_reseat_it):
3044 * data.c (Faset):
3045 * fns.c (Ffillarray):
3046 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3047 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3048
d234d13e
JL
30492010-06-03 Juri Linkov <juri@jurta.org>
3050
3051 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3052 (Fswitch_to_buffer): Remove unused variable `err'.
3053
0d4bcf4d
GM
30542010-06-03 Glenn Morris <rgm@gnu.org>
3055
e23dc1e2
GM
3056 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3057
05b09564
GM
3058 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3059 now that AH_BOTTOM does it.
3060
824e2978
GM
3061 * m/hp800.h (HAVE_ALLOCA):
3062 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3063
0d4bcf4d
GM
3064 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3065 Remove NOT_C_CODE tests, it is always true now.
3066
c55d2abf
DN
30672010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3068
08a494a3
DN
3069 Fix config.h includes.
3070 * xsettings.c:
3071 * xgselect.c:
3072 * nsterm.m:
3073 * nsselect.m:
3074 * nsimage.m:
3075 * nsfont.m:
3076 * nsfns.m:
3077 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3078 other files do.
3079
75934b1d
DN
3080 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3081
9f32a766
DN
3082 * s/sol2-6.h: Remove obsolete comments.
3083
c55d2abf
DN
3084 Remove unnecessary alloca.h includes.
3085 * keymap.c: Do not include alloca.h, config.h does that.
3086 * sysdep.c: Likewise. Do not define fwrite, not used.
3087
06ac62b4
SM
30882010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3089
3090 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3091 the HAVE_TERMIO where it belongs (bug#6149).
3092
1ab8293c
SM
30932010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3094
3095 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3096 of bug#6305).
3097
6dcfd253
EZ
30982010-05-30 Eli Zaretskii <eliz@gnu.org>
3099
3100 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3101 state is always cached (bug#6306).
3102
6d26bbb2
EZ
31032010-05-29 Eli Zaretskii <eliz@gnu.org>
3104
06fa4a23
EZ
3105 Fix cursor motion in bidi-reordered continued lines.
3106 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3107 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
3108 over continuation lines in bidi-reordered buffers. Return
3109 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3110 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3111
f5783df3
MA
31122010-05-28 Michael Albinus <michael.albinus@gmx.de>
3113
3114 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3115
7d56b2dd
KH
31162010-05-28 Kenichi Handa <handa@m17n.org>
3117
3118 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3119 Don't sheck SPEC if it is nil.
3120 (font_list_entities): Call font_delete_unmatched if
b925d231 3121 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 3122
e58d4ff7
GM
31232010-05-28 Glenn Morris <rgm@gnu.org>
3124
3125 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3126
f1a5d776
CY
31272010-05-27 Chong Yidong <cyd@stupidchicken.com>
3128
3129 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3130 whether to trash.
3131 (internal_delete_file, Frename_file): Callers changed.
3132 (delete_by_moving_to_trash): Doc fix.
3133 (Fdelete_directory_internal): Don't move to trash.
3134
3135 * callproc.c (delete_temp_file):
3136 * buffer.c (Fkill_buffer): Callers changed.
3137
3138 * lisp.h: Update prototype.
3139
f44a59e6
CY
31402010-05-27 Chong Yidong <cyd@stupidchicken.com>
3141
3142 * xdisp.c (redisplay_window): After redisplay, check if point is
3143 still valid before setting it (Bug#6177).
3144
81ac4f35
GM
31452010-05-27 Glenn Morris <rgm@gnu.org>
3146
3147 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3148 Convert comments to Makefile format.
3149
3150 * Makefile.in (bootstrap-clean): No more Makefile.c.
3151
ccd89fb3
GM
31522010-05-26 Glenn Morris <rgm@gnu.org>
3153
90278cb6
GM
3154 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3155 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3156
ccd89fb3
GM
3157 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3158 Remove.
3159 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3160
b7050583
KH
31612010-05-26 Kenichi Handa <handa@m17n.org>
3162
3163 * composite.c (composition_compute_stop_pos): Fix condition for
3164 backward scanning.
3165
e5458003
GM
31662010-05-25 Glenn Morris <rgm@gnu.org>
3167
c345fe90
GM
3168 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3169 Move before TEMACS_LDFLAGS.
3170 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3171 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3172
2e0689ab
GM
3173 * Makefile.in (NOT_C_CODE): No longer define.
3174 (config.h): No longer include.
3175
8009a5e8
GM
3176 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3177 variables it may reference.
3178
e5458003
GM
3179 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3180 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3181
10f72a37
KH
31822010-05-25 Kenichi Handa <handa@m17n.org>
3183
3184 * dispextern.h (struct composition_it): New members rule_idx and
3185 charpos.
3186
3187 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3188 that the character positions of IT point the last character of the
3189 current grapheme cluster.
3190 (next_element_from_composition): Don't change character positions
3191 of IT.
3192 (append_composite_glyph): Set glyph->charpos to
3193 it->cmp_it.charpos.
3194
3195 * composite.c (autocmp_chars): Change the first argument to RULE,
3196 and try composition with RULE only.
3197 (composition_compute_stop_pos): Record the index number of the
3198 composition rule in CMP_IT->rule_idx.
3199 (composition_reseat_it): Call autocmp_chars repeatedly until the
3200 correct rule of the composition is found.
3201 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3202 is at the last character of the current grapheme cluster when
3203 CMP_IT->reversed_p is nonzero.
3204
171eda53 32052010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 3206
171eda53
SM
3207 * editfns.c (Fbyte_to_string): New function.
3208
66a9f7f4
SM
32092010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3210
3211 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3212 Suggested by Masatake YAMATO <yamato@redhat.com>.
3213
d8c315d1
EZ
32142010-05-23 Eli Zaretskii <eliz@gnu.org>
3215
171eda53 3216 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 3217
f5b416d2 32182010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3219
3220 * s/netbsd.h: If terminfo is found, use it in preference to
3221 termcap. (Bug#6190) [Backport from trunk]
3222
0416466c
EZ
32232010-05-19 Eli Zaretskii <eliz@gnu.org>
3224
11117830 3225 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
3226
3227 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3228 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3229 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3230 and maxpos members instead of start.pos and end.pos, respectively.
3231
3232 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3233 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3234 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
3235 (try_window_reusing_current_matrix, try_window_id):
3236 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
3237 (init_from_display_pos, init_iterator): Use EMACS_INT for
3238 character and byte positions.
66a9f7f4 3239 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
3240 arguments for minimum and maximum buffer positions seen by
3241 display_line for this row. Don't use iterator to find the
3242 position following the maximum one; instead, increment the
11117830
EZ
3243 position found by display_line directly. Fix logic; eol_pos
3244 should be tested before the rest. Handle the case of characters
3245 delivered from display vector (bug#6036). Fix tests related to
3246 it->method. Handle the truncated_on_right_p rows.
3247 (RECORD_MAX_MIN_POS): New macro.
3248 (display_line): Use it to record the minimum and maximum buffer
3249 positions for glyphs in the row being assembled. Record the
3250 position of the newline that terminates the line. If word wrap is
3251 in effect, restore minimum and maximum positions seen up to the
3252 wrap point, when iterator returns to it.
3253 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3254 row and cursor not already at point. Restore original pre-bidi
3255 code for unidirectional buffers.
d36fe237
EZ
3256
3257 * dispnew.c (increment_row_positions, check_matrix_invariants):
3258 Increment and check row->start.pos and row->end.pos, in addition
3259 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3260
11117830
EZ
3261 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3262 Display truncated_on_left_p and truncated_on_right_p flags.
3263 Formatting fixes.
3264 (pmtxrows): Display the ordinal number of each row. Don't display
3265 rows beyond the last one.
3266
3267 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3268 it is not copied by bidi_copy_it.
3269
6e83d800
EZ
32702010-05-22 Eli Zaretskii <eliz@gnu.org>
3271
3272 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3273 (Bug#6237)
3274
110683ad
CY
32752010-05-22 Chong Yidong <cyd@stupidchicken.com>
3276
3277 * image.c (Fimage_flush): Rename from image-refresh.
3278
98fe5161
CY
32792010-05-21 Chong Yidong <cyd@stupidchicken.com>
3280
3281 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3282 just one window.
3283
3284 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3285 (clear_image_cache): If the number of cached images is unusually
3286 large, decrease the cache eviction delay (Bug#6230).
3287
e8752c66
GM
32882010-05-21 Glenn Morris <rgm@gnu.org>
3289
66dbf213
GM
3290 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3291 Move these rules to ns.mk.
3292 * ns.mk: New file.
3293
04384b2d
GM
3294 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3295
e8752c66
GM
3296 * Makefile.in (CANNOT_DUMP): New, set by configure.
3297 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3298
2e2bbddb
JL
32992010-05-20 Juri Linkov <juri@jurta.org>
3300
3301 * fileio.c (Fdelete_file): Change interative spec to use
3302 `read-file-name' like in `find-file-read-args' where the default
3303 value is `default-directory' instead of `buffer-file-name'.
3304 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3305
31c4aaf6
KR
33062010-05-20 Kevin Ryde <user42@zip.com.au>
3307
3308 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3309 (Voverriding_terminal_local_map, Vsystem_key_alist)
3310 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3311
9d5cf9b6
GM
33122010-05-20 Glenn Morris <rgm@gnu.org>
3313
3314 * Makefile.in (DEPDIR): New constant.
3315 (DEPFLAGS): Set with configure, not cpp.
3316 (MKDEPDIR): New, set by configure.
3317 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3318 (clean): Use $DEPDIR.
3319 (deps_frag): Include from configure.
3320 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3321 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3322
ead6f8f5
EZ
3323 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3324 reallocation of the cache. (Bug#6210)
3325
7f34aec3
GM
33262010-05-19 Glenn Morris <rgm@gnu.org>
3327
d494e8f2
GM
3328 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3329
c1d0dcfd
GM
3330 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3331 (GNULIB_VAR): Remove.
3332 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3333
3334 * m/ibms390x.h (LINKER):
3335 * m/macppc.h (LINKER) [GNU_LINUX]:
3336 * s/aix4-2.h (ORDINARY_LINK):
3337 * s/cygwin.h (LINKER):
3338 * s/darwin.h (ORDINARY_LINK):
3339 * s/gnu.h (ORDINARY_LINK):
3340 * s/netbsd.h (LINKER):
3341 * s/usg5-4.h (ORDINARY_LINK):
3342 Move to configure.
3343
7f34aec3
GM
3344 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3345
754790b6
CY
33462010-05-18 Chong Yidong <cyd@stupidchicken.com>
3347
3348 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3349 prevent stack overflow if number of arguments is too large
3350 (Bug#6214).
3351
161e44d1
JB
33522010-05-18 Juanma Barranquero <lekktu@gmail.com>
3353
3354 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3355
be4ff9da
GM
33562010-05-18 Glenn Morris <rgm@gnu.org>
3357
9539dc5d
GM
3358 * s/gnu-linux.h: Combine two conditionals.
3359
3360 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
3361 $(POST_ALLOC_OBJ).
3362
40dc6bf4
GM
3363 * Makefile.in (RALLOC_OBJ): New, set by configure.
3364 (rallocobj): Replace with the previous variable.
3365 (otherobj): Use $RALLOC_OBJ.
3366
3367 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3368 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3369
be4ff9da
GM
3370 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3371 (gmallocobj, vmlimitobj): Replace with previous two variables.
3372 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3373
16455a85
GM
33742010-05-17 Glenn Morris <rgm@gnu.org>
3375
3376 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3377 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3378
5fdb7468
GM
33792010-05-16 Glenn Morris <rgm@gnu.org>
3380
7ca1f3f9
GM
3381 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3382
7541dad5
GM
3383 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3384
da53fab9
GM
3385 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3386 trailing "/".
3387
b02a6645
GM
3388 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3389 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3390
8877ca0f
GM
3391 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3392 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3393 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3394 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3395 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3396
5fdb7468
GM
3397 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3398 Remove ${STARTFLAGS}, nothing ever sets it.
3399
95adb4b1
DN
34002010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3401
3402 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3403
676b6304
GM
34042010-05-16 Glenn Morris <rgm@gnu.org>
3405
9beab9ce
GM
3406 * Makefile.in (LIBX_BASE): Always define.
3407
8a95f0e7
GM
3408 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3409
676b6304
GM
3410 * Makefile.in (LIBXT): Always define.
3411
6e546d18
GM
34122010-05-15 Glenn Morris <rgm@gnu.org>
3413
4235ca47 3414 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 3415
6e546d18
GM
3416 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3417 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3418
8c5ff6dd
KR
34192010-05-15 Ken Raeburn <raeburn@raeburn.org>
3420
560bb7ae 3421 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
3422 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3423
8b4eb796
KR
3424 * emacs.c (main): Initialize initial-environment and
3425 process-environment before generating from env, not after.
3426
8c5ff6dd
KR
3427 Handle --version reasonably in CANNOT_DUMP configuration.
3428 * emacs.c (emacs_version, emacs_copyright): New string variables.
3429 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3430 (syms_of_emacs): Defvar them, and initialize them from the C
3431 string variables.
3432 (main): If initialization hasn't been done, print initial version
3433 info from the C strings, instead of starting an interactive session.
3434
dbd3f723
EZ
34352010-05-15 Eli Zaretskii <eliz@gnu.org>
3436
d20e1419
EZ
3437 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3438 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
3439 (bidi_paragraph_init): Remove redundant assertion that we are at
3440 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
3441
3442 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3443 (syms_of_xdisp): Defsubr it.
3444
d36fe237
EZ
3445 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3446
dbd3f723
EZ
3447 * Makefile.in: Fix MSDOS-related comments.
3448
02be533b
GM
34492010-05-15 Glenn Morris <rgm@gnu.org>
3450
1a82cca9
GM
3451 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3452 (really-lwlib, really-oldXMenu): Always define.
3453 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3454
3df7b338
GM
3455 * Makefile.in: Simplify cpp conditional.
3456
2b5f541b
GM
3457 * Makefile.in (${ns_appdir}): Simplify using umask.
3458
02be533b
GM
3459 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3460
4e2db1fe
SM
34612010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3462
3463 * eval.c (specbind): Remove left-over duplicate test.
3464 Disallow let-binding frame-local vars. Add comment.
3465
4b292a22
EZ
34662010-05-14 Eli Zaretskii <eliz@gnu.org>
3467
2fe72643 3468 Make the cache of bidi iterator states dynamically allocated.
1edbd309 3469 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
3470 (bidi_init_it): Call it.
3471 (bidi_cache_iterator_state): Enlarge the cache if needed.
3472
4e2db1fe 3473 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
3474 bidi_get_next_char_visually. All callers changed.
3475
82ebc97b
KH
34762010-05-14 Kenichi Handa <handa@m17n.org>
3477
3478 * dispextern.h (struct composition_it): New member reversed_p.
3479
3480 * composite.c (composition_compute_stop_pos): Search backward if
3481 ENDPOS < CHARPOS.
3482 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3483 Set CMP_IT->reversed_p.
b4b6e17e 3484 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 3485
4e2db1fe
SM
3486 * xdisp.c (set_iterator_to_next):
3487 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
3488 scanning backward. Call composition_compute_stop_pos if scan
3489 direction is changed.
3490 (next_element_from_buffer): Call composition_compute_stop_pos with
3491 negative ENDPOS if we are scanning backward.
3492 (next_element_from_composition): Pay attention to
3493 IT->cmp_it.reversed_p.
3494
0e5d7800
KH
34952010-05-14 Kenichi Handa <handa@m17n.org>
3496
560bb7ae 3497 * font.c (font_range): Return the range for the font found at first.
0e5d7800 3498
cb027b32
GM
34992010-05-14 Glenn Morris <rgm@gnu.org>
3500
177b0288
GM
3501 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3502
fbc00890
GM
3503 * Makefile.in (mktime, X11, register): Move undefs to configure.
3504
f14d1dfd
GM
3505 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3506 (MSDOS_X_OBJ): New variable.
3507 (MSDOS_SUPPORT_REAL): New constant.
3508 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3509 (obj): Use MSDOS_X_OBJ.
3510 (lisp): Use MSDOS_SUPPORT as a variable.
3511
11842bd8
GM
3512 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3513 (GPM_MOUSE_SUPPORT): Now it's a constant.
3514 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3515 not cpp.
3516
489d31a4 3517 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 3518 (ns_appresdir): Remove, unused.
e20f1f07 3519
489d31a4
GM
3520 * Makefile.in (SHELL): Move outside cpp section.
3521
cb027b32
GM
3522 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3523
5a903aa9
GM
35242010-05-13 Glenn Morris <rgm@gnu.org>
3525
3369c79f
GM
3526 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3527 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3528
d5e982a6
GM
3529 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3530 HAVE_WINDOW_SYSTEM must be too.
3531
6192e163
GM
3532 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3533 (lisp): Remove WINNT_SUPPORT.
3534
472c5d6b
GM
3535 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3536 Let configure set these variables (to empty) in this case as well.
3537
0116466b
GM
3538 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3539 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3540
5a903aa9
GM
3541 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3542 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3543 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3544 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3545 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 3546 the values output by configure.
5a903aa9
GM
3547 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3548
1a0d7c06
GM
35492010-05-12 Glenn Morris <rgm@gnu.org>
3550
b5457f14
GM
3551 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3552 (LINKER_WAS_SPECIFIED): Remove.
3553
1a0d7c06
GM
3554 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3555 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3556 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3557 * s/cygwin.h (LIB_GCC):
3558 * s/freebsd.h (LIB_GCC):
3559 * s/gnu-linux.h (LIB_GCC):
3560 * s/msdos.h (LIB_GCC):
3561 * s/netbsd.h (LIB_GCC):
3562 Move to configure.
3563
3ffd4615 35642010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
3565
3566 * ftfont.c: Fix incorrect parentheses of #if condition for
3567 definining M17N_FLT_USE_NEW_FEATURE.
3568
acddf8ae
GM
35692010-05-11 Glenn Morris <rgm@gnu.org>
3570
3571 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3572 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3573
ae5e04fa
EZ
35742010-05-10 Eli Zaretskii <eliz@gnu.org>
3575
3576 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3577 unibyte buffers. See
3578 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3579
7490175b
GM
35802010-05-10 Glenn Morris <rgm@gnu.org>
3581
97efb629
GM
3582 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3583 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3584 (LIBES): Use LIBS_SYSTEM as a variable.
3585 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3586 * s/aix4-2.h (LIBS_SYSTEM):
3587 * s/freebsd.h (LIBS_SYSTEM):
3588 * s/hpux10-20.h (LIBS_SYSTEM):
3589 * s/sol2-6.h (LIBS_SYSTEM):
3590 * s/unixware.h (LIBS_SYSTEM):
3591 Move to configure.
3592
7490175b
GM
3593 * s/aix4-2.h (MAIL_USE_LOCKF):
3594 * s/bsd-common.h (MAIL_USE_FLOCK):
3595 * s/darwin.h (MAIL_USE_FLOCK):
3596 * s/gnu-linux.h (MAIL_USE_FLOCK):
3597 * s/irix6-5.h (MAIL_USE_FLOCK):
3598 * s/template.h (MAIL_USE_FLOCK):
3599 Move to configure.
3600
0235128c 36012010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
3602
3603 * Version 23.2 released.
3604
0235128c 36052010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
3606
3607 * composite.c (autocmp_chars): Save point as marker before calling
3608 auto-composition-function (Bug#5984).
3609
3610 * lisp.h (restore_point_unwind): Add prototype.
3611
3612 * fileio.c (restore_point_unwind): Remove static attribute.
3613
0235128c 36142010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
3615
3616 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3617 new feature of libotf and m17n-flt.
0235128c
SM
3618 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3619 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
3620 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3621 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3622 that OUT is NULL. Use OTF_drive_gsub_with_log and
3623 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3624 OTF_drive_gpos.
3625 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
3626 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3627 Setup mflt_enable_new_feature and mflt_try_otf.
3628
4721152c
J
36292010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3630
3631 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3632
3633 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3634 box and toolbar (Bug #6139).
3635 (xg_create_tool_bar): Remove comment (Bug #6139).
3636 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3637 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3638
ee0a16cf
JB
36392010-05-08 Juanma Barranquero <lekktu@gmail.com>
3640
3641 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3642 Update dependencies.
3643
96d79611
EZ
36442010-05-08 Eli Zaretskii <eliz@gnu.org>
3645
3646 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3647 R2L lines.
3648
40c17879
GM
36492010-05-08 Glenn Morris <rgm@gnu.org>
3650
7b42b29f
GM
3651 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3652
40c17879
GM
3653 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3654 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3655 (termcapobj): Replace with TERMCAP_OBJ.
3656 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3657 (LIBES): Use LIBS_TERMCAP as a variable.
3658
3659 * s/freebsd.h (osreldate.h): No longer include, since this file
3660 does not use __FreeBSD_version any more.
3661
3662 * s/aix4-2.h (TERMINFO):
3663 * s/cygwin.h (TERMINFO):
3664 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3665 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3666 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3667 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3668 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3669 * s/irix6-5.h (TERMINFO):
3670 * s/netbsd.h (LIBS_TERMCAP):
3671 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3672 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3673 * s/usg5-4.h (TERMINFO):
3674 Move to configure.
3675
94b612ad
SM
36762010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3677
3678 * eval.c (unbind_to): Don't unbind a local binding into the global
3679 binding when the local binding disappeared. Inversely, don't unbind
3680 a global binding into a newly created local binding.
3681 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3682 can specify the frame to use, when applicable. Adjust callers.
3683
15e12598 36842010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 3685 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
3686
3687 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3688
f724825e
EZ
36892010-05-07 Eli Zaretskii <eliz@gnu.org>
3690
5cba3209
EZ
3691 * w32fns.c: Include w32.h.
3692 (Fw32_shell_execute): Decode the error message before passing it
3693 to `error'. (Bug#6126)
3694
d16bdfc3
EZ
3695 * msdos.c (dos_set_window_size):
3696 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3697 instead of `XSYMBOL (foo)->value'.
3698
59d93e87
EZ
36992010-05-07 Eli Zaretskii <eliz@gnu.org>
3700
9fdec8bc
EZ
3701 Fix the MS-DOS build, broken by autoconfiscation.
3702
3703 * Makefile.in: Don't use Make-style comments past the "start of
3704 cpp stuff" line.
3705 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3706
3707 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3708 edited directly by msdos/sed1v2.inp).
f724825e 3709
2f86b22b
GM
37102010-05-07 Glenn Morris <rgm@gnu.org>
3711
3712 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3713 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3714 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3715 move out of cpp section.
3716 * s/freebsd.h (LD_SWITCH_SYSTEM):
3717 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3718 * s/netbsd.h (LD_SWITCH_SYSTEM):
3719 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3720
49ebbd65
DN
37212010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3722
3723 Define LIB_STANDARD and START_FILES using autoconf.
3724 * s/usg5-4.h (LIB_STANDARD):
3725 * s/netbsd.h (START_FILES):
3726 * s/irix6-5.h (LIB_STANDARD):
3727 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3728 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3729 * s/freebsd.h (START_FILES):
3730 * s/darwin.h (START_FILES):
3731 * s/cygwin.h (START_FILES):
3732 * s/aix4-2.h (LIB_STANDARD):
3733 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3734 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3735 autoconf, not cpp.
3736
d43c06d6
DN
37372010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3738
28823648
DN
3739 Remove NEED_BSDTTY and NEED_UNISTD_H.
3740 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3741 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3742 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3743 <sys/ptyio.h> and <unistd.h>.
3744
aca00430
DN
3745 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3746
d43c06d6
DN
3747 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3748 * s/gnu.h (START_FILES): Remove empty definition.
3749
3e56b11d
JD
37502010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3751
3752 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3753
e3cf0cde
GM
37542010-05-06 Glenn Morris <rgm@gnu.org>
3755
3756 * Makefile.in (CPP, LN_S): Remove unused variables.
3757
774b9a60
SM
37582010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3759
3760 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3761
4ab92842
LM
37622010-05-05 Lawrence Mitchell <wence@gmx.li>
3763
3764 * m/sparc.h: Fix typo in earlier change.
3765
178f2507
SM
37662010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3767
3768 Misc tweaks.
3769 * eval.c (Fdefvaralias): Remove unintended nested if.
3770 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3771
80f00217 37722010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
3773
3774 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3775
ef03a4e6
DN
37762010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3777
58eb6cf0
DN
3778 Remove BSD_PGRPS.
3779 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3780 * s/gnu-linux.h (BSD_PGRPS): Remove.
3781 * term.c (dissociate_if_controlling_tty):
3782 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3783 (init_sys_modes, reset_sys_modes):
3784 * emacs.c (main):
3785 * callproc.c (Fcall_process, child_setup): Remove code depending
3786 on BSD_PGRPS.
3787
ef03a4e6
DN
3788 Remove POSIX_SIGNALS.
3789 * s/usg5-4.h (POSIX_SIGNALS):
3790 * s/netbsd.h (POSIX_SIGNALS):
3791 * s/msdos.h (POSIX_SIGNALS):
3792 * s/ms-w32.h (POSIX_SIGNALS):
3793 * s/hpux11.h (POSIX_SIGNALS):
3794 * s/gnu.h (POSIX_SIGNALS):
3795 * s/gnu-linux.h (POSIX_SIGNALS):
3796 * s/freebsd.h (POSIX_SIGNALS):
3797 * s/darwin.h (POSIX_SIGNALS):
3798 * s/cygwin.h (POSIX_SIGNALS):
3799 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3800 * s/unixware.h:
3801 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3802 * process.c (create_process):
3803 * syssignal.h:
3804 * sysdep.c (wait_for_termination, init_signals):
3805 * process.c (create_process):
3806 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3807 remove all code that assumes the contrary.
3808
49628785
GM
38092010-05-04 Glenn Morris <rgm@gnu.org>
3810
27a2cdfc
GM
3811 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3812 variable.
3813 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3814 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3815 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3816 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3817 LD_SWITCH_SYSTEM_tmp.
3818 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3819 New variables, set by configure.
3820
eb21eab5
GM
3821 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3822 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3823 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3824 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3825 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3826
49628785
GM
3827 * s/aix4-2.h (C_SWITCH_SYSTEM):
3828 * m/alpha.h (C_SWITCH_MACHINE):
3829 Move to configure.in.
3830 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3831 New variables, set by configure.
3832 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3833 $c_switch_machine and $c_switch_system.
3834
7dff330b
DN
38352010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3836
3837 * s/hpux10-20.h (LIB_STANDARD): New definition.
3838 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3839 on it, not used anymore.
3840
53967e09
CY
38412010-05-03 Chong Yidong <cyd@stupidchicken.com>
3842
3843 * eval.c (internal_condition_case_n): Rename from
3844 internal_condition_case_2.
3845 (internal_condition_case_2): New function.
3846
3847 * xdisp.c (safe_call): Use internal_condition_case_n.
3848
3849 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3850 (internal_delete_file, Frename_file): Callers changed.
3851
3852 * buffer.c (Fkill_buffer):
3853 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3854
3855 * lisp.h: Update prototypes.
3856
3dee6fdb
GM
38572010-05-03 Glenn Morris <rgm@gnu.org>
3858
3859 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3860 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3861 (LIBXT): Set with configure, not cpp.
3862 (LIBX): Remove.
3863 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3864
a101e0fb
DN
38652010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3866
3867 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3868 The FreeBSD is not needed, the default works, Solaris version is
3869 not needed, and the remaining case is not supported by configure.
3870
f63d0028
JD
38712010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3872
3873 * xsmfns.c (CHDIR_OPT): New define.
3874 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3875 restarting emacs.
3876
3877 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3878 shut_down_emacs.
3879
3880 * emacs.c (USAGE1): Mention --chdir.
3881 (main): Handle --chdir.
3882 (standard_args): Add --chdir.
3883 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3884 #5552).
3885
e4814a9f
DN
38862010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3887
cd03c74a
DN
3888 Remove LD_SWITCH_MACHINE.
3889 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3890 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3891
c3a398a1
DN
3892 Clean up IRIX code.
3893 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3894 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3895
87e7285c
DN
3896 Clean up AIX code.
3897 * m/ibmrs6000.inp: Remove file, unused.
3898 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3899 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3900 definition ...
3901 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3902
80f00217
JB
3903 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3904 unused.
e4814a9f 3905
59ca28de
EZ
39062010-05-01 Eli Zaretskii <eliz@gnu.org>
3907
197daef4
EZ
3908 Emulate POSIX_SIGNALS on MS-Windows.
3909
3910 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3911 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
3912
3913 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3914 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3915 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3916
80f00217
JB
3917 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3918 New stubs.
197daef4 3919
af7c7572
EZ
3920 Miscellaneous fixes of bidi display.
3921
59ca28de
EZ
3922 * xdisp.c (find_row_end): New function, refactored from display_line.
3923 (display_line): Use it.
017ea819
EZ
3924 (extend_face_to_end_of_line): In almost-filled rows, extend only
3925 if the row is R2L and not continued.
166e930d 3926 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 3927 Preserve overlay and string info in row->end.
166e930d
EZ
3928 (insert_left_trunc_glyphs): Support addition of left truncation
3929 glyphs to R2L rows.
b47e0dcf 3930 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
3931 glyph between adjacent windows. Fix a crash when a display string
3932 is continued to the next line. Don't return zero if cursor was
3933 found by `cursor' property of a display string.
b47e0dcf
EZ
3934 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3935 test for that explicitly.
59ca28de 3936
7acac9f4
GM
39372010-05-01 Glenn Morris <rgm@gnu.org>
3938
3939 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3940 for clarity.
3941 (OTHER_OBJ): Remove.
3942 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3943 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3944
45841e65
KK
39452010-05-01 Karel Klíč <kklic@redhat.com>
3946
3947 * fileio.c (Ffile_selinux_context): Context functions may return null.
3948
afc61943
DN
39492010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3950
80f00217 3951 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 3952
5a1bb006
GM
39532010-04-30 Glenn Morris <rgm@gnu.org>
3954
3955 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3956 (OTHER_OBJ): Define as a separate variable, for clarity.
3957
210af043
J
39582010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3959
3960 * xsettings.c: include limits.h and update file comment.
3961
0a7df391
GM
39622010-04-30 Glenn Morris <rgm@gnu.org>
3963
d5096f16
GM
3964 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3965 Set with configure, not cpp.
3966 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3967
7eb1ac33
GM
3968 * Makefile.in (mallocobj): Remove.
3969 (otherobj): Simplify using @OTHER_OBJ@.
3970
517d086b
GM
3971 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3972 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3973 Don't bother making nsgui.h dependency platform-specific.
3974
0a7df391
GM
3975 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3976
d6d23852
SM
39772010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3978
d2630aef
SM
3979 * process.c (read_process_output, exec_sentinel): Don't burp if the
3980 sentinel/filter kills the current buffer (bug#6060).
3981
f9dddf52 3982 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
3983 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3984 Remove unused var `args'.
3985 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3986 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3987 * doc.c (store_function_docstring): Use XSETCAR.
3988
f1e3642a
GM
39892010-04-28 Glenn Morris <rgm@gnu.org>
3990
faf535f8
GM
3991 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3992 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3993
c40f9449
GM
3994 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3995
658f86ca
GM
3996 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3997 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3998
bc0b5f61
GM
3999 * Makefile.in (FONT_OBJ): New, set by configure.
4000 (FONT_DRIVERS): Use $FONT_OBJ.
4001
294c50a0
GM
4002 * Makefile.in (LIBXMU): Set with configure, not cpp.
4003 * s/aix4-2.h (LIBXMU):
4004 * s/hpux10-20.h (LIBXMU):
4005 Remove definition, now set in configure.
4006
e6ec4e99
GM
4007 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4008
f1e3642a
GM
4009 * m/amdx86-64.h [i386]: Move this test to configure.in.
4010
c6ea2936
GM
40112010-04-27 Glenn Morris <rgm@gnu.org>
4012
8fdac2c3
GM
4013 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4014 * s/unixware.h (NEED_LIBW): Remove definition.
4015
986fb647
GM
4016 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4017 (TOOLKIT_LIBW): New, set by configure.
4018 (@X_TOOLKIT_TYPE@): No longer define it.
4019
c6ea2936
GM
4020 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4021 (MOTIF_LIBW): Set with configure, not cpp.
4022 * s/aix4-2.h (LIB_MOTIF):
4023 * s/gnu-linux.h (LIB_MOTIF):
4024 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4025
aaa36002
DN
40262010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4027
4028 Reduce CPP usage.
4029 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4030 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
4031 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4032 definitions and undefs. Inline definitions in the only user.
4033 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 4034
b678dd8b
GM
40352010-04-27 Glenn Morris <rgm@gnu.org>
4036
76cda504
GM
4037 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4038 since the defaults (set by the system file) are fine in most cases.
4039 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4040 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4041 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4042 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4043 Remove definitions, since they are set correctly in s/gnu-linux.h.
4044 * s/freebsd.h (START_FILES, LIB_STANDARD):
4045 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4046 * s/hpux10-20.h (START_FILES):
4047 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4048 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4049
b678dd8b
GM
4050 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4051 (MOTIF_LIBW): Use $LIBXP.
4052 (otherobj): Use $WIDGET_OBJ.
4053
9452ded1
DN
40542010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4055
7e10844c
DN
4056 * Makefile.in (LIBS_MACHINE): Remove, unused.
4057
9452ded1
DN
4058 Use autoconf instead of cpp for LIB_MATH.
4059 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4060 * s/cygwin.h (LIB_MATH): Likewise.
4061 * Makefile.in (LIB_MATH): Do not define with cpp.
4062 (LIBES): Use autoconf for LIB_MATH.
4063
fcebfc6a
KH
40642010-04-26 Kenichi Handa <handa@m17n.org>
4065
4066 * composite.c (Ffind_composition_internal): Fix the return value
4067 for an automatic composition.
4068
39e2ad1b
DN
40692010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4070
4071 Remove all NO_ARG_ARRAY uses.
4072 * fns.c (concat2, concat3, nconc2):
4073 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4074 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4075 * m/xtensa.h (NO_ARG_ARRAY):
4076 * m/template.h (NO_ARG_ARRAY):
4077 * m/sparc.h (NO_ARG_ARRAY):
4078 * m/sh3.h (NO_ARG_ARRAY):
4079 * m/mips.h (NO_ARG_ARRAY):
4080 * m/macppc.h (NO_ARG_ARRAY):
4081 * m/iris4d.h (NO_ARG_ARRAY):
4082 * m/intel386.h (NO_ARG_ARRAY):
4083 * m/ibms390x.h (NO_ARG_ARRAY):
4084 * m/ibms390.h (NO_ARG_ARRAY):
4085 * m/ibmrs6000.h (NO_ARG_ARRAY):
4086 * m/ia64.h (NO_ARG_ARRAY):
4087 * m/hp800.h (NO_ARG_ARRAY):
4088 * m/arm.h (NO_ARG_ARRAY):
4089 * m/amdx86-64.h (NO_ARG_ARRAY):
4090 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4091
adf4f59c
EZ
40922010-04-25 Eli Zaretskii <eliz@gnu.org>
4093
6bdf5d65
EZ
4094 * xdisp.c (display_line): Don't assume 2nd call to
4095 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
4096 (iterate_out_of_display_property): New function, body from pop_it.
4097 (pop_it): Use it.
adf4f59c 4098
dfbbda83
GM
40992010-04-24 Glenn Morris <rgm@gnu.org>
4100
4101 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4102 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4103 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4104 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4105
2d4018aa
EZ
41062010-04-24 Eli Zaretskii <eliz@gnu.org>
4107
a49884a6
EZ
4108 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4109 use `get_next_display_element' and `set_iterator_to_next' to
4110 advance to the next character, when looking for the character that
4111 begins the next row.
4112
76db6fcc 4113 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
4114 definition of "struct Lisp_Symbol".
4115
70eab5c1
GM
41162010-04-24 Glenn Morris <rgm@gnu.org>
4117
4118 * Makefile.in (CRT_DIR): New variable, set by configure.
4119 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4120 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4121
1ad4cc3d
DN
41222010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4123
e769f484
DN
4124 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4125
4196ff33
DN
4126 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4127
879b0ee4
DN
4128 Remove redundant flags.
4129 * s/freebsd.h (C_SWITCH_SYSTEM):
4130 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4131 * s/netbsd.h (C_SWITCH_SYSTEM):
4132 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4133 of these.
4134
03cbbcb8
DN
4135 Simplify m/intel386.h.
4136 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4137 user: ecrt0.c.
4138 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4139 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4140 the only user: s/unixware.h.
4141 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4142 from m/intel386.h.
4143 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4144 moved here from m/intel386.h.
4145
1ad4cc3d
DN
4146 * m/mips.h: Remove #if 0 code.
4147
8785b888
EZ
41482010-04-23 Eli Zaretskii <eliz@gnu.org>
4149
728588cc
EZ
4150 Fix display of composed characters from L2R scripts in bidi buffers.
4151 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4152 After advancing IT past the composition, resync the bidi iterator
4153 with IT's position. (Bug#5977)
4154
a63f80b4
DN
41552010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4156
4157 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4158 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4159
ff5dec5c
SM
41602010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4161
4162 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4163
8785b888
EZ
41642010-04-23 Eli Zaretskii <eliz@gnu.org>
4165
58ccf243 4166 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
4167 * xdisp.c (pop_it): When the stack is popped after displaying
4168 from a string, bidi-iterate to exit from the text portion covered
4169 by the `display' property or overlay. (Bug#5988, bug#5920)
4170
feeb1604
DN
41712010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4172
8e324eb6
DN
4173 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4174 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4175
809fcaba
DN
4176 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4177 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4178
ed710380
DN
4179 Simplify STARTFILES definition.
4180 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4181 relying on Makefile.in to define it.
4182 * s/cygwin.h (START_FILES): Likewise.
4183 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4184
feeb1604
DN
4185 Clean up Solaris code.
4186 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4187 (LIB_MOTIF): Remove, configure takes care of this.
4188 (NOT_USING_MOTIF): Remove, unused.
4189 * xrdb.c: Remove #if 0-ed #include.
4190 (SYSV): Remove conditional for old SysV.
4191 * sysdep.c (closedir): Remove conditional code for Solaris,
4192 Solaris has closedir.
4193
a0d0b563
JD
41942010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4195
4196 * xsettings.c (read_and_apply_settings): Check if current_font is
4197 NULL before strcmp (Bug#6001).
4198
56bae7c7
DN
41992010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4200
4201 Clean up HP-UX files.
4202 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4203 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4204 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4205 * s/hpux10-20.h: ... to the only user, here.
4206
372b7a95
EZ
42072010-04-21 Eli Zaretskii <eliz@gnu.org>
4208
4209 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4210 use buffer-local values of paragraph-start and paragraph-separate.
4211 <paragraph_start_re, paragraph_separate_re>: Rename from
4212 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4213 (Bug#5992)
4214
f904c0f9
JD
42152010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4216
4217 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4218 current_tool_bar_style are new.
4219 (store_config_changed_event): Rename from store_font_changed_event.
4220 (XSETTINGS_TOOL_BAR_STYLE): New define.
4221 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4222 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4223 HAVE_XFT.
4224 (something_changedCB): store_font_changed_event is now
c4cc8b9a 4225 store_config_changed_event.
f904c0f9
JD
4226 (parse_settings): Rename from parse_xft_settings. Read
4227 non-xft xsettings outside #ifdef HAVE_XFT.
4228 (read_settings): Renamed from read_xft_settings.
4229 (apply_xft_settings): Take current settings as parameter. Do not
4230 call read_(xft)_settings.
4231 (read_and_apply_settings): New function.
4232 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4233 read_and_apply_settings if there are settings to be read.
4234 (init_xsettings): Renamed from init_xfd_settings.
4235 Call read_and_apply_settings unconditionally.
4236 (xsettings_initialize): Call init_xsettings.
4237 (Ftool_bar_get_system_style): New function.
4238 (syms_of_xsettings): Define Qmonospace_font_name and
4239 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 4240 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 4241 dynamic-setting.
31a01b90 4242 Move misplaced HAVE_GCONF
f904c0f9
JD
4243
4244 * xsettings.h (Ftool_bar_get_system_style): Declare.
4245
4246 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4247 Qtext, Qboth, Qboth_horiz are new.
4248 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4249 Vtool_bar_style, tool_bar_max_label_size.
4250
4251 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4252
4253 * keyboard.c: QClabel is new.
4254 (parse_tool_bar_item): Take out QClabel from tool bar items.
4255 Try to construct a label if ther is no QClabel.
4256 (syms_of_keyboard): Intern :label as QClabel.
4257
4258 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4259 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4260 New.
4261
4262 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4263 dynamic-setting.el.
4264
4265 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4266 (xg_make_tool_item, xg_show_toolbar_item): New function.
4267 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4268 Call xg_make_tool_item to make a tool bar item.
4269 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4270
4271 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4272 into account for toolbars.
4273
c632dfda
JD
42742010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4275
4276 * data.c (make_blv): Declarations before code (Bug#5993).
4277
10efe302
GM
42782010-04-21 Glenn Morris <rgm@gnu.org>
4279
4280 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4281 Define using autoconf, not cpp.
4282 (LIBXSM): New variable, set by autoconf.
4283 (LIBXT): Use $LIBXSM.
4284
4285ac5a
DN
42852010-04-21 Dan Nicolaescu <local_user@dannlt>
4286
3ec759e7
DN
4287 Remove NOMULTIPLEJOBS, unused.
4288 * s/template.h (NOMULTIPLEJOBS):
4289 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4290
4285ac5a
DN
4291 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4292 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4293 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4294 detects -znocombreloc and passes it to the linker
4295 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4296
2807228d
GM
42972010-04-21 Glenn Morris <rgm@gnu.org>
4298
4299 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4300
574c05e2
KK
43012010-04-21 Karel Klíč <kklic@redhat.com>
4302
4303 * Makefile.in (LIBSELINUX_LIBS): New.
4304 (LIBES): Add $LIBSELINUX_LIBS.
4305 * eval.c, lisp.h (call7): New function.
4306 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4307 (Ffile_selinux_context, Fset_file_selinux_context):
4308 New functions.
4309 (Fcopy_file): New parameter preserve-selinux-context.
4310 (Frename_file): Preserve selinux context when renaming by copy-file.
4311
91eac4bb 43122010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 4313 Eli Zaretskii <eliz@gnu.org>
91eac4bb 4314
50426a04
JB
4315 Don't depend on cm.c or termcap.c on Windows, use stubs.
4316 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4317 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4318 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4319 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4320 (sys_tputs, sys_tgetstr): New stubs.
4321 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4322 (tputs, tgetstr): New; define to sys_*.
91eac4bb 4323
938efb77
JB
43242010-04-20 Juanma Barranquero <lekktu@gmail.com>
4325
4326 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4327
b4bf28b7
SM
43282010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4329
8b1e1112
SM
4330 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4331 Just signal a warning rather than an error when inside a let.
4332 (Fmake_variable_frame_local): Add the same test.
4333
933ac235
SM
4334 * font.c (syms_of_font): Make the style table vars read-only.
4335
b4bf28b7
SM
4336 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4337 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4338
4339 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4340
93d68d0c
EZ
43412010-04-20 Eli Zaretskii <eliz@gnu.org>
4342
4343 Fix R2L paragraph display on TTY.
4344
4345 * xdisp.c (unproduce_glyphs): New function.
4346 (display_line): Use it when produced glyphs are discarded from R2L
4347 glyph rows.
4348 (append_composite_glyph): In R2L rows, prepend the glyph rather
4349 than appending it.
4350
4351 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4352 rather than append it. Set up the resolved_level and bidi_type
4353 attributes of the appended glyph.
283ccc18
EZ
4354 (produce_special_glyphs): Mirror the backslash continuation
4355 character in R2L lines.
93d68d0c 4356
283ccc18 4357 Implement display of R2L paragraphs in GUI sessions.
26cdf528 4358
283ccc18
EZ
4359 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4360 append_stretch_glyph.
4361 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4362 off-by-one error in computing x at end of text in the row.
4363 (append_stretch_glyph): In reversed row, prepend the glyph rather
4364 than append it. Set resolved_level and bidi_type of the glyph.
4365 (extend_face_to_end_of_line): If the row is reversed, prepend a
4366 stretch glyph whose width is such that the rightmost glyph will be
4367 drawn at the right margin of the window. Fix off-by-one error on
4368 TTY frames in testing whether a line needs face extension. Fix
4369 face extension at ZV. If this is the last glyph row, use
4370 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4371 region face.
4372 (set_cursor_from_row, display_line): Use
26cdf528
EZ
4373 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4374 row->continuation_lines_width.
283ccc18
EZ
4375 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4376 are at ZV. Fixes a crash when reseated to ZV by
4377 try_window_reusing_current_matrix.
45903529
EZ
4378 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4379 which happens with R2L glyph rows. Fixes a crash when inserting a
4380 character at end of an R2L line.
283ccc18
EZ
4381 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4382 treat them as having zero-width characters. Improve comments.
4383 Don't reverse pos_before and pos_after for reversed glyph rows.
4384 Set cursor.x to negative value when the cursor might be on the
4385 left fringe.
4386 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4387 left fringe, not the right one.
f951a506
EZ
4388 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4389 (erase_phys_cursor): For reversed cursor_row, support cursor on
4390 the left fringe.
4391
283ccc18
EZ
4392 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4393 of continuation indicators on the fringes.
4394 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4395 left fringe.
4396
f951a506
EZ
4397 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4398 draw cursor on the left fringe.
4399
4400 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4401 cursor on the left fringe.
4402
f951a506
EZ
4403 * dispnew.c (update_text_area): Handle reversed desired rows when
4404 the cursor is on the left fringe.
4405 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4406 below, not by 0, for when the cursor is on the left fringe.
4407
3bb49aaf
JD
44082010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4409
4410 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4411 widget is a scrollbar.
4412
c0be27fd
KH
44132010-04-20 Kenichi Handa <handa@m17n.org>
4414
4415 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4416 only when the arg CHARSET_LIST is nil.
4417
ce5b453a
SM
44182010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4419
4420 Make variable forwarding explicit rather the using special values.
4421 Basically, this makes the structure of buffer-local values and object
4422 forwarding explicit in the type of Lisp_Symbols rather than use
4423 special Lisp_Objects for that. This tends to lead to slightly more
4424 verbose code, but is more C-like, simpler, and makes it easier to make
4425 sure we handled all cases, among other things by letting the compiler
4426 help us check it.
4427 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4428 Removing forwarding objects.
4429 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4430 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4431 explicit rather than hiding them inside Lisp_Object "values".
4432 (XFWDTYPE): New macro.
4433 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4434 (XBUFFER_LOCAL_VALUE): Remove.
4435 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4436 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4437 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4438 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4439 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4440 Remove the Lisp_Misc_* header.
4441 (struct Lisp_Buffer_Local_Value): Redefine.
4442 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4443 (struct Lisp_Misc_Any): Add filler to get the right size.
4444 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4445 Lisp_Intfwd.
4446 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4447 (DEFVAR_KBOARD): Allocate a forwarding object.
4448 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4449 (let_shadows_global_binding_p): New function.
4450 (union Lisp_Val_Fwd): New type.
4451 (make_blv): New function.
4452 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4453 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4454 (swap_in_symval_forwarding, find_symbol_value, Fset)
4455 (let_shadows_buffer_binding_p, set_internal, default_value)
4456 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4457 (Fkill_local_variable, Fmake_variable_frame_local)
4458 (Flocal_variable_p, Flocal_variable_if_set_p)
4459 (Fvariable_binding_locus):
4460 * xdisp.c (select_frame_for_redisplay):
4461 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4462 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4463 * frame.c (store_frame_param):
4464 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4465 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4466 value structure.
4467 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4468 (clone_per_buffer_values): Only adjust markers into the current buffer.
4469 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4470 (Fbuffer_local_value, set_buffer_internal_1)
4471 (swap_out_buffer_local_variables):
4472 Adapt to the new symbol value structure.
4473 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4474 (defvar_per_buffer): Take a new arg for the fwd object.
4475 (buffer_lisp_local_variables): Return a proper alist (different fix
4476 for bug#4138).
4477 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4478 (Fgarbage_collect): Don't handle buffer_defaults specially.
4479 (mark_object): Handle new symbol value structure rather than the old
4480 special Lisp_Misc_* objects.
4481 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4482 * term.c (set_tty_color_mode):
4483 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4484 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4485 a buffer_local_flags.
4486 * print.c (print_object): Get rid of impossible forwarding objects.
4487
fd3998ff
EZ
44882010-04-19 Eli Zaretskii <eliz@gnu.org>
4489
4490 * bidi.c (bidi_get_type, bidi_get_category)
4491 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
4492 (bidi_type_of_next_char, bidi_level_of_next_char):
4493 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 4494
e42cd1a7
JB
44952010-04-19 Juanma Barranquero <lekktu@gmail.com>
4496
4497 * dired.c (Ffile_attributes): Fix typo in docstring.
4498
6e104790 44992010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
4500
4501 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4502 NSInteger (Bug#5811).
4503
6e104790 45042010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
4505
4506 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4507 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4508
6e104790 45092010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
4510
4511 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4512
6e104790
SM
45132010-04-19 Chong Yidong <cyd@stupidchicken.com>
4514
4515 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4516 terminal frames (Bug#5837).
4517
37dcfea0
EZ
45182010-04-19 Eli Zaretskii <eliz@gnu.org>
4519
d1da276f
EZ
4520 * .gdbinit (xsubchartable): New command.
4521
37dcfea0
EZ
45222010-04-19 Eli Zaretskii <eliz@gnu.org>
4523
4524 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 4525 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
4526 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4527 and
4528 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4529
e9515805
SM
45302010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4531
4532 * alloc.c (Fpurecopy): Hash-cons if requested.
4533 (syms_of_alloc): Update purify-flag docstring.
4534
22aa44a8
JD
45352010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4536
4537 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4538 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4539
ebb5722e
EZ
45402010-04-17 Eli Zaretskii <eliz@gnu.org>
4541
4542 Fix a crash when an NSM character is inserted at BEGV.
4543
4544 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4545 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4546 NEUTRAL_B or UNKNOWN_BT.
4547
0f4442ef
EZ
45482010-04-16 Eli Zaretskii <eliz@gnu.org>
4549
4550 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4551 other rows with cursor unless they are different from this row and
4552 this row is part of a continued line. (Bug#5943)
4553
7d4e45f8
DN
45542010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4555
4556 * s/freebsd.h: Restore osreldate.h include.
4557 Suggested by Naohiro Aota.
4558
5ba5ec85
J
45592010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4560
4561 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4562
20af301d
CY
45632010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4564
4565 * s/cygwin.h: Avoid linking against static libgcc.
4566
a4b000fb
JL
45672010-04-15 Juri Linkov <juri@jurta.org>
4568
4569 * window.c: Add Qscroll_command.
4570 Remove Vscroll_preserve_screen_position_commands.
4571 (window_scroll_pixel_based, window_scroll_line_based): Check the
4572 `scroll-command' property on the last command instead of searching
4573 the last command in Vscroll_preserve_screen_position_commands.
4574 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4575 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4576 (scroll-preserve-screen-position): Doc fix.
4577 (Vscroll_preserve_screen_position_commands): Remove variable.
4578
bc319ba4
DN
45792010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4580
6bb24457
DN
4581 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4582
19d4c244
DN
45832010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4584
4585 Reduce cpp use in Makefile.in.
4586 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4587 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4588 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4589 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4590 (CRT0_COMPILE): Remove, inline it in the only user.
4591
32129746
JL
45922010-04-14 Juri Linkov <juri@jurta.org>
4593
4594 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4595 `scroll-up-command' and `M-v' from `scroll-down' to
4596 `scroll-down-command'.
4597
9013a7f8
JL
45982010-04-14 Juri Linkov <juri@jurta.org>
4599
4600 * window.c (Vscroll_preserve_screen_position_commands): New variable
4601 with the default value as the list of Qscroll_down and Qscroll_up.
4602 (window_scroll_pixel_based, window_scroll_line_based): Search the
4603 last command in the list Vscroll_preserve_screen_position_commands
4604 instead of comparing with Qscroll_up and Qscroll_down.
4605
4bef8d26
JD
46062010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4607
92848133
JD
4608 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4609 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4610 does that.
4611
4bef8d26
JD
4612 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4613 to zero.
4614
58b963f7
SM
46152010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4616
84164a0d
SM
4617 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4618
2b0a91e7
SM
4619 Try to solve the problem of spurious EOF chars in long lines of text
4620 sent to interactive subprocesses.
4621 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4622 (system_process_attributes): Remove unused var `ttotal'.
4623 * process.c (send_process): Don't bother breaking long line with EOF
4624 chars when talking to ttys any more.
4625 (wait_reading_process_output): Output a warning when called in such
4626 a way that it could block without being interruptible.
4627
58b963f7
SM
4628 Try to detect file modification within the same second.
4629 * buffer.h (struct buffer): New field modtime_size.
4630 * buffer.c (reset_buffer): Initialize it.
4631 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4632 (Fverify_visited_file_modtime): Check it.
4633 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4634 (Fset_visited_file_modtime): Set (or clear) it.
4635
01f5787b
SM
46362010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4637
4638 * process.c (status_notify): Remove unused var `ro'.
4639
83725342
JD
46402010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4641
4642 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4643 more than one visual (Bug#5938).
4644
b9465836
DN
46452010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4646
50426a04
JB
4647 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4648 Undefine.
b9465836 4649
8d9c8ece
DN
46502010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4651
b1f52161
DN
4652 Remove C_SWITCH_SYSTEM_TEMACS.
4653 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4654 (malloc, realloc, free): Use emacs, not temacs for conditional
4655 definition.
4656
4657 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4658 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4659
8d9c8ece
DN
4660 Use autoconf, not cpp for some variables.
4661 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4662 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4663 (ALL_CFLAGS): Use them as make variables.
4664 (really-lwlib, really-oldXMenu): Do not pass them.
4665
1ecb2d3f
JD
46662010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4667
4668 * xmenu.c (apply_systemfont_to_dialog): New.
4669 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4670
3a4fa2f2
SM
46712010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4672
97e53006
SM
4673 * process.c (exec_sentinel): Preserve current-buffer.
4674
3a4fa2f2
SM
4675 * process.c (read_process_output): Move the save-current-buffer to
4676 apply to both the filter and the non-filter branches.
4677
88df7221
DN
46782010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4679
4680 * s/msdos.h (UNEXEC): New definition.
4681
5634ff85
YM
46822010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4683
6eff5c3d
YM
4684 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4685 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4686
4687 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4688 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4689 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4690 TRY_WINDOW_CHECK_MARGINS.
4691
4692 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
4693 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4694 width only when it is for padding.
5634ff85 4695
b13aef54
J
46962010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4697
4698 * xfns.c (Fx_show_tip): Call try_window in a loop until
4699 fonts_changed_p is zero (Bug#2423).
4700
21d28484
EZ
47012010-04-08 Eli Zaretskii <eliz@gnu.org>
4702
4703 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4704 the end of TEXT_AREA. (Bug#5856)
4705
0269ef77
JD
47062010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4707
4708 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4709 HAVE_GCONF.
4710
5930fe97
EZ
47112010-04-08 Eli Zaretskii <eliz@gnu.org>
4712
4713 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4714 prev.orig_type, for resolving type of NSM. (Bug#5858)
4715
99852628
JD
47162010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4717
4718 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4719 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4720 in current_font.
4721 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
4722 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4723 New functions.
4724 (syms_of_xsettings): Initialize current_font.
4725 defsubr Sfont_get_system_normal_font.
99852628 4726
686b968e
JB
4727 * xsettings.h (Ffont_get_system_normal_font)
4728 (xsettings_get_system_normal_font): Declare.
99852628
JD
4729
4730 * xfns.c (extern xlwmenu_default_font): Remove.
4731 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4732 to xlwmenu.c.
4733
4734 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4735 menu items in UTF-8.
4736
4737 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4738 (apply_systemfont_to_menu): New function.
4739 (set_frame_menubar, create_and_show_popup_menu): Call
4740 apply_systemfont_to_menu.
4741
7fc874c4
J
47422010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4743
4744 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4745 FRAME_LINE_TO_PIXEL_Y.
4746
4747 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4748 pixelwidth/height.
4749
863bf481
DN
47502010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4751
5e5a3b92
DN
4752 Simplify code for HP machines.
4753 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4754 for GNU_LINUX, not needed.
4755 (UNEXEC, NEED_BSDTTY): Move definitions...
4756 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4757
863bf481
DN
4758 * m/iris4d.h (UNEXEC): Move definition ...
4759 * s/irix6-5.h (UNEXEC): ... here.
4760
3e6bec3b
JD
47612010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4762
4763 * xfns.c (set_machine_and_pid_properties): New function.
4764 (Fx_create_frame): Call set_machine_and_pid_properties.
4765
2912322b
SM
47662010-04-03 Eli Zaretskii <eliz@gnu.org>
4767
1502b819
EZ
4768 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4769 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4770 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4771
2912322b
SM
4772 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4773 in this function. (Bug#5703)
4774
47752010-04-03 Chong Yidong <cyd@stupidchicken.com>
4776
4777 * nsterm.h: Fix last change.
4778
c435b432
DN
47792010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4780
a568f507
DN
4781 * m/intel386.h (NO_REMAP): Move definition ...
4782 * s/msdos.h (NO_REMAP): ... here.
4783
4cd9f6c2
DN
4784 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4785
c435b432
DN
4786 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4787 used on those platforms.
4788
42a2c622
DN
47892010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4790
4791 Remove extern errno declarations.
4792 * xterm.c:
4793 * xrdb.c:
4794 * w32term.c:
4795 * unexec.c:
4796 * unexaix.c:
4797 * sysdep.c:
4798 * process.c:
4799 * lread.c:
4800 * keyboard.c:
4801 * floatfns.c:
4802 * filelock.c:
4803 * fileio.c:
4804 * emacs.c (main):
4805 * ecrt0.c:
4806 * dispnew.c:
4807 * callproc.c:
4808 * buffer.c: Remove errno extern declarations.
4809 * s/netbsd.h (NEED_ERRNO): Remove.
4810
8224f93d
DN
48112010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4812
4813 Remove all uses of LIBX11_SYSTEM.
4814 * Makefile.in (LIBX11_SYSTEM): Remove.
4815 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4816 instead.
4817
814062c7
EZ
48182010-04-01 Eli Zaretskii <eliz@gnu.org>
4819
ed68db4d
EZ
4820 Remove support for DJGPP v1.x (bug#5813).
4821
4822 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
4823 * s/msdos.h:
4824 * unexec.c (make_hdr, copy_text_and_data):
4825 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4826 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4827 (IT_set_terminal_modes, __write, _rename, gethostname)
4828 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4829 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4830 the value of __DJGPP__.
ed68db4d
EZ
4831 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4832 compatibility code.
8224f93d
DN
4833 * lread.c:
4834 * gmalloc.c (memalign):
4835 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4836 * emacs.c (main):
4837 * dosfns.c (init_dosfns):
ed68db4d
EZ
4838 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4839
52f4d8d5
EZ
48402010-04-01 Eli Zaretskii <eliz@gnu.org>
4841
814062c7
EZ
4842 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4843 string with `cursor' property comes from an `after-string'
4844 overlay. (Bug#5816)
4845
0dc2e11d
GM
48462010-04-01 Glenn Morris <rgm@gnu.org>
4847
4848 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4849 Define as Makefile variables.
4850 (LIBX): Use above variables rather than directly using autoconf.
4851
1d29df59
DN
48522010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4853
4854 Clean up BSD_SYSTEM use.
4855 * xterm.c:
4856 * process.c:
4857 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4858 for including <sys/ioctl.h>.
4859 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4860 code is only used for MSDOS.
4861
1546c559
JL
48622010-03-31 Juri Linkov <juri@jurta.org>
4863
4864 * image.c: Add `Qextension_data'.
4865 (syms_of_image): Initialize and staticpro `Qextension_data'.
4866 (Fimage_metadata): Rename from `Fimage_extension_data'.
4867 (gif_load): Put GIF extension data to the property
4868 `Qextension_data'.
4869
6521c534
CY
48702010-03-31 Chong Yidong <cyd@stupidchicken.com>
4871
4872 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4873 * nsterm.h: Fix prototype.
4874
52c30783
EZ
48752010-03-31 Eli Zaretskii <eliz@gnu.org>
4876
4877 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4878 trailing whitespace in right-to-left rows.
4879
855a0da7
SM
48802010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4881
4882 Get rid of the direct_output optimizations.
4883 * keyboard.c (nonundocount): Remove extern declaration.
4884 (command_loop_1): Remove brittle optimisation for cheap and
4885 common operations.
4886 * xdisp.c (redisplay_internal): Don't bother checking
4887 redisplay_performed_directly_p any more.
4888 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4889 any more.
4890 * dispnew.c (redisplay_performed_directly_p)
4891 (direct_output_for_insert, direct_output_forward_char):
4892 * dispextern.h (redisplay_performed_directly_p)
4893 (direct_output_for_insert, direct_output_forward_char): Remove.
4894 * cmds.c (nonundocount): Make it static.
4895
85738751 48962010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
4897
4898 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4899
85738751 49002010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
4901
4902 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4903 invisible (Bug#5766).
4904
85738751 49052010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 4906
855a0da7
SM
4907 * xdisp.c (x_consider_frame_title, update_window_cursor):
4908 Remove HAVE_NS conditionals.
194d44e7 4909 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
4910
4911 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4912 filename for the title.
4913 (ns_set_doc_edited): Do nothing if the selected window is a
4914 minibuffer window.
4915
4916 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4917 ns_set_doc_edited.
4918
4919 * nsterm.m: Remove unneeded prototype.
4920
85738751 49212010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
4922
4923 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4924 in the DOC file. (Bug#5336)
4925
85738751 49262010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
4927
4928 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4929
75d1428c
SM
49302010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4931
4932 * window.c (keys_of_window): Remove redundant/overridden bindings.
4933
82043cfb
EZ
49342010-03-30 Eli Zaretskii <eliz@gnu.org>
4935
4936 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4937 Restore original behavior when the iterator is not bidi_p.
4938
b5dd0ae7
DN
49392010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4940
4941 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4942
bd924a5d
EZ
49432010-03-30 Eli Zaretskii <eliz@gnu.org>
4944
4945 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4946 are outside the range of cached character positions.
4947
3580374b
JB
49482010-03-30 Juanma Barranquero <lekktu@gmail.com>
4949
4950 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4951
a7b02820
EZ
49522010-03-30 Eli Zaretskii <eliz@gnu.org>
4953
4954 Initial support for bidirectional editing.
4955
4956 * Makefile.in (obj): Include bidi.o.
4957 (bidi.o): New target.
4958
4959 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4960 ($(BLD)/bidi.$(O)): New target.
4961
4962 * bidi.c: New file.
4963
4964 * buffer.h (struct buffer): New members bidi_display_reordering
4965 and bidi_paragraph_direction.
4966
4967 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4968 and bidi_paragraph_direction.
4969 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4970 and bidi-paragraph-direction.
4971 (Fbuffer_swap_text): Swap the values of
4972 bidi_display_reordering and bidi_paragraph_direction.
4973
4974 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4975 (bidi_type_t, bidi_dir_t): New types.
4976 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4977 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4978 prev_stop, base_level_stop, and eol_pos.
4979 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4980 (IT_STACK_SIZE): Enlarge to 5.
4981 (struct glyph_row): New member reversed_p.
4982 <string_buffer_position>: Update prototype.
4983 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4984 glyph_row if bidi_it.paragraph_dir == R2L.
4985 (struct glyph): New members resolved_level and bidi_type.
4986
4987 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4988 processing or buffer's direction is right-to-left.
4989 (prepare_desired_row): Preserve the reversed_p flag.
4990 (row_equal_p): Compare the reversed_p attributes as well.
4991
4992 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4993 bidi_init_it and set it->paragraph_embedding from the current
4994 buffer's value of bidi_paragraph_direction.
4995 (reseat_1): Initialize bidi_it.first_elt.
4996 (set_iterator_to_next, next_element_from_buffer): Use the value of
4997 paragraph_embedding to determine the paragraph direction.
4998 (set_iterator_to_next): Under bidi reordering, call
4999 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5000 new_paragraph flag is set in the bidi iterator.
5001 (next_element_from_buffer): If bidi_it.first_elt is set,
5002 initialize paragraph direction and find the first character to
5003 display in the visual order. If reseated to a middle of a line,
5004 prime the bidi iterator starting at the line's beginning. Handle
5005 the situation where we overstepped stop_charpos due to
5006 non-linearity of the bidi iteration. Likewise for when we back up
5007 beyond the previous stop_charpos. When moving across stop_charpos,
5008 record it in prev_stop.
5009 (display_line): Set row->end and it->start for the next row to the
5010 next character in logical order. Always extend reversed_p rows to
5011 the end of line, even if they end at ZV. Copy the reversed_p flag
5012 to the next glyph row. Keep calling set_cursor_from_row for
5013 bidi-reordered rows even if we already have a possible candidate
5014 for cursor position. Set row_end after all the row's glyphs have
5015 been produced, by looping over the glyphs. Record the position
5016 after EOL in it->eol_pos, and use it to set end_pos of the last
5017 row produced for a continued line.
5018 <Qright_to_left, Qleft_to_right>: New variables.
5019 (syms_of_xdisp): Initialize and staticpro them.
5020 (string_buffer_position_lim): New function.
5021 (string_buffer_position): Most of code moved to
5022 string_buffer_position_lim. Last argument and return value are
5023 now EMACS_INT; all callers changed.
5024 (set_cursor_from_row): Rewritten to support bidirectional text and
5025 reversed glyph rows.
5026 (text_outside_line_unchanged_p, try_window_id): Disable
5027 optimizations if we are reordering bidirectional text and the
5028 paragraph direction can be affected by the change.
5029 (append_glyph, append_composite_glyph)
5030 (produce_image_glyph, append_stretch_glyph): Set the
5031 resolved_level and bidi_type members of each glyph.
5032 (append_glyph): If the glyph row is reversed, prepend the glyph
5033 rather than appending it.
5034 (handle_stop_backwards): New function.
5035 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5036 (reseat): call handle_stop_backwards to recompute prev_stop and
5037 base_level_stop for the new position.
5038 (handle_invisible_prop): Under bidi iteration, skip invisible text
5039 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5040 paragraph direction. Update IT->prev_stop after skipping
5041 invisible text.
5042 (move_it_in_display_line_to): New variables prev_method
5043 and prev_pos. Compare for strict equality in
5044 BUFFER_POS_REACHED_P.
5045 (try_cursor_movement): Examine all the candidate rows that occlude
5046 point, to return the best match. If rows are bidi-reordered
5047 and point moved backwards, back up to the row that is not a
5048 continuation line, and start looking for a suitable row from
5049 there.
5050
5051 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5052 rather than appending, if the glyph_row's reversed_p flag is set.
5053 Set the resolved_level and bidi_type members of each glyph.
5054
5055 * .gdbinit (pbiditype): New command.
5056 (pgx): Use it to display bidi level and type of the glyph.
5057 (pitx): Display some bidi information about the iterator.
5058 (prowlims, pmtxrows): New commands.
5059
32a8894e
DN
50602010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5061
5062 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5063 * s/usg5-4.h (LIBS_DEBUG):
5064 * s/irix6-5.h (C_DEBUG_SWITCH):
5065 * s/gnu-linux.h (LIBS_DEBUG):
5066 * s/darwin.h (LIBS_DEBUG):
5067 * s/bsd-common.h (LIBS_DEBUG):
5068 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5069 * m/iris4d.h (LIBS_DEBUG):
5070 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5071
5072 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5073 (LIBS_DEBUG): Remove definition.
5074
649dbf36
CY
50752010-03-27 Chong Yidong <cyd@stupidchicken.com>
5076
5077 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5078 Windows.
5079
cad4261f
YM
50802010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5081
5082 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5083 `connect' (Bug#5723).
5084
cd591dbc
HE
50852010-03-25 Helmut Eller <eller.helmut@gmail.com>
5086
5087 * process.c (Fmake_network_process): Call `select' for interrupted
5088 `connect' rather than creating new socket (Bug#5173).
5089
e867cb5d 50902010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
5091
5092 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5093
5094 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5095
5096 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5097
e867cb5d 50982010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
5099
5100 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5101 XLoadQueryFont.
5102
e867cb5d 51032010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
5104
5105 * coding.c (decode_coding_ccl): Fix previous change for the
5106 multibyte case.
fb608df3
KH
5107 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5108 case that the output buffer is fullfilled.
5109 (encode_coding): Setup ccl program here.
fbdc1721 5110
5845f0ed
DN
51112010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5112
814fb708
DN
5113 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5114
5845f0ed
DN
5115 Simplify LIBS_MACHINE definitions.
5116 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5117 * m/iris4d.h (LIBS_MACHINE): Likewise.
5118 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5119 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 5120 * s/netbsd.h: Remove commented out code.
5845f0ed 5121
b7064064
DN
51222010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5123
df7734b2
DN
5124 Remove dead code dealing with POSIX_SIGNALS.
5125 * atimer.c (set_alarm): Remove dead code, all USG systems define
5126 POSIX_SIGNALS.
5127 * data.c (arith_error): Likewise.
5128 * keyboard.c (input_available_signal, handle_user_signal)
5129 (interrupt_signal): Likewise.
5130 * process.c (sigchld_handler): Likewise.
5131 (create_process): Remove if 0 code. Remove HPUX conditional when
5132 !defined (POSIX_SIGNALS), it cannot be true.
5133 * syssignal.h: Remove USG5_4 and USG conditionals when
5134 !POSIX_SIGNALS, they cannot be true.
5135
b7064064
DN
5136 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5137 NO_SOCK_SIGIO, not used anymore.
5138
55da5ee3
DN
51392010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5140
0be96e3a
DN
5141 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5142 support vax on BSDs.
5143
55da5ee3
DN
5144 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5145 * s/aix4-2.h (ORDINARY_LINK): ... here.
5146
c0282183
AS
51472010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5148
82c3d67a
AS
5149 * Makefile.in (abs_builddir): Define.
5150 (bootstrap_exe): Use it.
5151 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 5152
3613edce
SM
51532010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5154
5155 * Makefile.in (bootstrap_exe): Use an absolute name.
5156
7f110ddc
DN
51572010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5158
22e87574
DN
5159 Remove support for old GNU/Linux using libc version 5.
5160 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5161 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5162
05a670e6
DN
5163 Consolidate redundant definitions in s/bsd-common.h.
5164 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5165 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5166 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5167 doing it in all files that include this one.
5168 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5169 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5170 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5171 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5172 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5173 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5174 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5175 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5176 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5177
2968f561
DN
5178 Consolidate redundant definitions.
5179 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5180 it's undefined in all files that include this one.
5181 (POSIX_SIGNALS): Define here instead of doing it in all files that
5182 include this one.
5183 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5184 (POSIX_SIGNALS): Do not define.
5185 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5186 (POSIX_SIGNALS): Do not define.
5187 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5188 (POSIX_SIGNALS): Do not define.
5189
15d25dc0
DN
5190 Remove support for old UNIX System V systems.
5191 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5192 * s/usg-5-4-2.h: Remove.
5193
07e339e4
DN
5194 Remove support for Solaris on PPC and for old versions.
5195 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5196 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5197 that cancel each other.
5198 * s/sol2-3.h:
5199 * s/sol2-4.h:
5200 * s/sol2-5.h: Remove.
5201 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5202 (NO_REMAP): Remove, unused.
5203 (UNEXEC): Move definition ...
5204 * s/aix4-2.h (UNEXEC): ... here.
5205
7f110ddc
DN
5206 * s/openbsd.h: Remove support for non-ELF and for systems that do
5207 not support shared libraries.
5208 * s/netbsd.h:
5209 * s/freebsd.h: Likewise.
5210
605f35cd
DN
52112010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5212
5213 Remove non-working support for lynxos 3.0.
5214 * s/lynxos.h: Remove file.
5215
5216 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5217 COFF_BSD_SYMBOLS, nothing defines it anymore.
5218
aed71cf4
DN
52192010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5220
5221 Remove obsolete uses of HAVE_SHM.
5222 * emacs.c (standard_args):
5223 (Fdump_emacs):
5224 (syms_of_emacs): Remove code depending on HAVE_SHM.
5225
5226 * alloc.c: Remove HAVE_SHM dependent definition.
5227
5228 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5229
aded53ff
GM
52302010-03-18 Glenn Morris <rgm@gnu.org>
5231
17284745
GM
5232 * emacs.c (USAGE4): Hard-code bug address.
5233 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5234 (bug_reporting_address): Remove.
5235 (main): Don't call bug_reporting_address.
5236
aded53ff
GM
5237 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5238 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5239
303500aa
CY
52402010-03-15 Chong Yidong <cyd@stupidchicken.com>
5241
5242 * xfns.c (Fx_create_frame):
5243 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5244 on left.
5245
cef3058f
CY
52462010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5247
5248 * editfns.c (Fformat): Account for string precision when computing
5249 field width (Bug#5710).
5250
a647d59d
CY
52512010-03-12 Chong Yidong <cyd@stupidchicken.com>
5252
4fa42018
CY
5253 * xfns.c (Fx_create_frame): Set default to Qright.
5254
a647d59d
CY
5255 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5256 all window systems.
5257
6da23aaa
EZ
52582010-03-12 Eli Zaretskii <eliz@gnu.org>
5259
a96f6398 5260 These changes remove termcap.c from the build on Posix platforms.
83d02def 5261 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
5262 (MSDOS_OBJ): ...to here.
5263 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5264 now identical to when LIBS_TERMCAP is defined.
5265
5266 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5267
5268 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5269
a96f6398 5270 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 5271
288f9fc0
CY
52722010-03-10 Chong Yidong <cyd@stupidchicken.com>
5273
5274 * Branch for 23.2.
5275
d48cd3f4
SM
52762010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5277
5278 Cleanup setup of gl_state in various parts of the code.
5279 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5280 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5281 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5282 (skip_chars):
5283 * regex.c (regex_compile): Use it.
5284 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5285 it's now set in regex_compile when/if we need it.
5286
618db430
SM
52872010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5288
c0335e02
SM
5289 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5290 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5291 (QUIT): Use it to consolidate code and remove redundancy.
5292 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5293
254c06a8
SM
5294 * regex.c (regex_compile): Setup gl_state as well.
5295
618db430
SM
5296 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5297 (in_classes): Use CONSP before XCAR/XCDR.
5298
233f0c9f
CY
52992010-03-03 Chong Yidong <cyd@stupidchicken.com>
5300
5301 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5302 definitions, so that keyboard macros are correctly handled
5303 (Bug#5481).
5304
75f80e63
EZ
53052010-03-02 Eli Zaretskii <eliz@gnu.org>
5306
5307 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5308 text that could be relocated inside the call to emacs_mule_char.
5309 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5310 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5311
dcfb9bc4
KH
53122010-03-02 Kenichi Handa <handa@m17n.org>
5313
fc9a17bc
KH
5314 * character.c (parse_str_as_multibyte): Fix handling of the
5315 multibyte form of raw-bytes.
5316 (str_as_multibyte): Likewise.
5317
dcfb9bc4
KH
5318 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5319 form of raw-bytes.
5320
412c01b6
CY
53212010-02-28 Chong Yidong <cyd@stupidchicken.com>
5322
5323 * charset.c (load_charset_map_from_file)
5324 (load_charset_map_from_vector): Zero out allocated
5325 charset_map_entries before using them.
5326
df7e1ea0
AS
53272010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5328
5329 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5330
fe69a722
CY
53312010-02-27 Chong Yidong <cyd@stupidchicken.com>
5332
4ed28cf4
CY
5333 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5334 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 5335
7379cfce
KH
53362010-02-26 Kenichi Handa <handa@m17n.org>
5337
f88cc4d6
KH
5338 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5339
7379cfce
KH
5340 * xdisp.c (reseat_to_string): Fix previous change.
5341
cf2fdcfb
CY
53422010-02-26 David Reitter <david.reitter@gmail.com>
5343
5344 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5345 Lisp_Object (Bug#4736).
5346
cc6c7c75
KH
53472010-02-25 Kenichi Handa <handa@m17n.org>
5348
5349 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5350
32e737d7
JD
53512010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5352
5353 * xterm.c (XTflash): Move declarations before statements.
5354
5355 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5356 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5357 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5358 (xg_create_tool_bar): Remove unused variables.
5359 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 5360 (xg_create_frame_widgets): Remove variable grav.
32e737d7 5361
676cae9f
CY
53622010-02-21 Chong Yidong <cyd@stupidchicken.com>
5363
5364 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5365
886cc2b8
SM
53662010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5367
5368 * term.c (fatal): Add a final \n if needed (bug#5596).
5369
ddb2d8e2
CY
53702010-02-18 Chong Yidong <cyd@stupidchicken.com>
5371
5372 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5373
2a4f8d3d
GM
53742010-02-18 Glenn Morris <rgm@gnu.org>
5375
5376 * callint.c (Finteractive): Doc fix.
5377
ebaf11b6
KH
53782010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5379
886cc2b8
SM
5380 * coding.c (record_conversion_result):
5381 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
5382 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5383 memory allocation error.
5384
d0396581
KH
53852010-02-17 Kenichi Handa <handa@m17n.org>
5386
886cc2b8
SM
5387 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5388 Fix for the case that the output buffer is fullfilled.
d0396581
KH
5389 (decode_coding): Setup ccl program here. Keep looping when the
5390 decoder stopped because the output buffer is
5391 fullfilled (bug#5534).
5392
5393 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5394
98599f74
JD
53952010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5396
471e4f04 5397 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 5398 bug #5571.
886cc2b8 5399 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 5400 overdrawn.
98599f74 5401
182659ae
JD
54022010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5403
5404 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5405 doing_interact here.
5406 (ice_connection_closed): New function.
5407 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5408 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5409 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5410 returns I/O error.
5411 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5412 bug #5512.
5413
9be32c4e 54142010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
5415
5416 * nsfont.m (nsfont_open): The system's value for the font descent
5417 is negative, so round it down to avoid clipping.
5418
a2f3eb19
CY
54192010-02-06 Chong Yidong <cyd@stupidchicken.com>
5420
5421 * charset.c (load_charset_map_from_file)
5422 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 5423 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 5424
3088147c
CY
54252010-02-05 Chong Yidong <cyd@stupidchicken.com>
5426
5427 * charset.c (load_charset_map_from_file): Allocate large
5428 charset_map_entries structure on the heap rather than the stack.
5429 (Bug#5526).
5430
b57d9029
KH
54312010-01-31 Kenichi Handa <handa@m17n.org>
5432
5433 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 5434 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 5435
c67d885b
CY
54362010-01-31 Chong Yidong <cyd@stupidchicken.com>
5437
5438 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5439 <deactivated@gmail.com> (Bug#3605).
5440
8fab2362
CY
54412010-01-31 David De La Harpe Golden <david@harpegolden.net>
5442
5443 * fileio.c (Frename_file): Correctly rename symlinks to
5444 directories (Bug#5496).
5445
cb2a62f2
CY
54462010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5447
5448 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5449
944c7a26
AS
54502010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5451
5452 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5453
c024ac08
CY
54542010-01-29 Chong Yidong <cyd@stupidchicken.com>
5455
5456 * frame.c (DEFAULT_ROWS): Change default to 35.
5457
5458 * xfns.c (x_default_font_parameter): Change default XFT font to
5459 monospace-10 (Bug#3643).
5460
af93af83
EZ
54612010-01-29 Eli Zaretskii <eliz@gnu.org>
5462
5463 * w32inevt.c (key_event): Remove unnecessary comparison of
5464 event->uChar.AsciiChar with 128.
5465
ca0eb708
CY
54662010-01-28 Chong Yidong <cyd@stupidchicken.com>
5467
b242dbfc
CY
5468 * fileio.c (Frename_file): Fix last change (Bug#5487).
5469
ca0eb708
CY
5470 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5471
5472 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5473
45d45af5
JD
54742010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5475
5476 * xfns.c (Fx_create_frame): Remove window size matching code from
5477 2010-01-15.
a73f9c9d 5478 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 5479
7e233730
JR
54802010-01-27 Jason Rumney <jasonr@gnu.org>
5481
5482 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 5483 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 5484
86e893e3
KH
54852010-01-27 Kenichi Handa <handa@m17n.org>
5486
5487 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 5488 pattern string (Bug#4209).
86e893e3 5489
8719abec
CY
54902010-01-27 David De La Harpe Golden <david@harpegolden.net>
5491
5492 * fileio.c (Frename_file): Call copy-directory and
5493 delete-directory for directories, in order to handle cross-device
5494 renaming (Bug#3353).
5495
844794c8
JD
54962010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5497
aa3e13b5 5498 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 5499 sizes 24 and 10. Bug #3643.
844794c8 5500
bd4b5750
SM
55012010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5502
8dc1adf6 5503 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
5504 * keymap.c (shadow_lookup): Add `remap' arg.
5505 (describe_map, describe_vector): Update calls to shadow_lookup.
5506 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5507 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
5508 perform remapping during shadow_lookup check of remapped_sequences.
5509
285d07e2
CY
55102010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5511
5512 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5513 png_check_sig, which has been removed in libpng 1.4.
5514
c6d09b8d
CY
55152010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5516
5517 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5518 lacks this header file).
5519
3d782998
YM
55202010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5521
5522 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5523 as in Emacs 22.
5524
2aff7c53
YM
55252010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5526
5527 * lisp.h (make_pure_string): String pointer arg now points to const.
5528
5529 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5530 args now point to const.
5531
74327f7a
EZ
55322010-01-22 Eli Zaretskii <eliz@gnu.org>
5533
5534 * lread.c (Fload): Don't treat files without .elc extension as
5535 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5536 them. (bug#5303)
5537
4d1e6632
KH
55382010-01-20 Kenichi Handa <handa@m17n.org>
5539
5540 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5541 treat the source as actual byte sequence.
5542
1fdede8f
AM
55432010-01-19 Alan Mackenzie <acm@muc.de>
5544
5545 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 5546 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
5547 `signal_after_change_p' to `coherent_change_p', and make the
5548 invocation of `modify_region' conditional on it.
5549
67477f30
JD
55502010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5551
5552 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5553 for debug purpose.
5554 (syms_of_xsettings): Declare xft-settings.
5555
244b023e
CY
55562010-01-18 Chong Yidong <cyd@stupidchicken.com>
5557
5558 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5559
617364fe
CY
55602010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5561
5562 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5563
4fe22cdf
CY
55642010-01-16 Chong Yidong <cyd@stupidchicken.com>
5565
5566 * emacs.c (standard_args): Adjust arg priorities to reflect how
5567 they are processed in startup.el.
5568
e118d2be
AS
55692010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5570
5571 * Makefile.in (lisp, shortlisp): Update.
5572
523ae620
SM
55732010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5574
5575 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5576 code, link the new kboard into all_kboard before running Lisp code,
5577 and protect the new terminal with GCPRO (Bug#5365).
5578 (x_term_init): Remove unused var `atom'.
5579 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5580
f0d13888
JD
55812010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5582
5583 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5584 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5585 to find out usable size of the desktop. Don't make frames larger than
ac146f82 5586 this. Bug #3643.
f0d13888 5587
cc320f07
KH
55882010-01-15 Kenichi Handa <handa@m17n.org>
5589
5590 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5591
7ffdf101
CY
55922010-01-15 Chong Yidong <cyd@stupidchicken.com>
5593
5594 * nsterm.m (Qnone): Define.
5595
5596 * nsfns.m (Qnone): Move definition to nsterm.m.
5597
d12bd917
KH
55982010-01-14 Kenichi Handa <handa@m17n.org>
5599
5600 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5601 systems.
5602
d9a7c140
KH
56032010-01-14 Kenichi Handa <handa@m17n.org>
5604
5605 Make auto-composition work on all buffers even if they are
5606 fundamental mode.
5607
5608 * composite.c (Vauto_composition_mode): New variable.
5609 (composition_compute_stop_pos): Check Vauto_composition_mode
5610 instead of Vauto_composition_function.
5611 (composition_adjust_point, Ffind_composition_internal): Likewise.
5612 (syms_of_composite): Declare Lisp variable
5613 "auto-composition-mode" here.
5614
63286bb2
CY
56152010-01-13 Chong Yidong <cyd@stupidchicken.com>
5616
5617 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5618 during call to vendor-specific-keysyms (Bug#5365).
5619
c2623ee7
YM
56202010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5621
5622 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5623 Call SIGNAL_THREAD_CHECK (Bug#5333).
5624
5625 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5626 Call SIGNAL_THREAD_CHECK.
5627
0b5397c2
SM
56282010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5629
5630 Try to fix bug#5314. This is probably not the final word, tho.
5631 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5632 recent-auto-save-p as a side-effect.
5633 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5634 * buffer.c (Fkill_buffer, reset_buffer):
5635 * editfns.c (Fsubst_char_in_region):
5636 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5637 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5638
dc954cb2
KH
56392010-01-13 Kenichi Handa <handa@m17n.org>
5640
5641 Display buffer name, etc. in mode line by composing correctly.
5642
5643 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5644 STRING is not nil.
0b5397c2 5645 (display_mode_element): Adjust for the change of
dc954cb2
KH
5646 decode_mode_spec and display_line.
5647 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5648 (display_string): Handle the case that STRING is non-null and
5649 LISP_STRING is not nil.
5650
0b5397c2
SM
5651 * xterm.c (x_draw_composite_glyph_string_foreground):
5652 Pay attention to s->face->overstrike.
dc954cb2
KH
5653
5654 * composite.c (composition_reseat_it): Don't check PT if STRING is
5655 non nil.
5656
4a00eaca
YM
56572010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5658
5659 * keyboard.c (read_char): Don't apply previous change when current
5660 buffer is unchanged by command execution.
5661
60abb287
JD
56622010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5663
5664 * keyboard.c (read_char): Return after executing from special map.
5665
893db5bc
GM
56662010-01-12 Glenn Morris <rgm@gnu.org>
5667
5668 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5669 bug-gnu-emacs rather than emacs-pretest-bug.
5670
4d03ece0
CY
56712010-01-11 Chong Yidong <cyd@stupidchicken.com>
5672
5673 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5674 initializing the Lisp variables that depend on them.
5675
1df47e38
YM
56762010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5677
5678 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5679 Clear areas that will not be updated after change of menu bar lines.
5680 Clear the menu bar window's current matrix when the window gets empty.
5681
2f1c6384
CY
56822010-01-09 Chong Yidong <cyd@stupidchicken.com>
5683
e398c61c
CY
5684 * intervals.h, textprop.c (extend_property_ranges): Return value
5685 and args changed. Discard properties that begin at or after the
5686 new end (Bug#5306).
5687
5688 * editfns.c (Fformat): Caller changed.
5689
e5a29a10
CY
5690 * nsterm.m (ns_set_default_prefs): Delete function.
5691 (syms_of_nsterm): Initialize ns_command_modifier,
5692 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5693 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5694
2f1c6384
CY
5695 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5696 position (Bug#4040).
5697
d427a9fa
EZ
56982010-01-09 Eli Zaretskii <eliz@gnu.org>
5699
5700 * editfns.c (Ffloat_time): Doc fix.
5701
21b9df2f
JD
57022010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5703
5704 * xfns.c (Fx_create_frame): Don't create frame larger than display
5705 by default bug#3643.
5706
4b00d3b1
YM
57072010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5708
5709 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5710 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5711 windows above internal border.
5712
5713 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5714 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5715 windows above internal border.
5716
5717 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5718 tool bar windows specially.
5719
5720 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5721
5722 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5723 specially.
5724 (XTflash): Take account of menu bar height.
5725
5726 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5727 specially.
5728
5075d853
JD
57292010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5730
ac146f82 5731 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
5732 also be true before we can return early (bug #5339).
5733
474217c8
CY
57342010-01-06 David Reitter <david.reitter@gmail.com>
5735
5736 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5737 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5738 (Bug#3233).
5739
c0e6d47d
JD
57402010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5741
d0cf45b7
JD
5742 * font.c (font_open_entity): Enable chache and call cached_font_ok
5743 for the driver if defined.
5744 (QCuser_spec): New symbol.
5745 (font_spec_from_name): Save name as user-spec.
5746 (font_load_for_lface): Keep user-spec instead of name.
5747 (font_open_by_name): Save name as user-spec.
5748 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 5749 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
5750
5751 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5752 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5753 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5754
5755 * font.h (struct font_driver): Add cached_font_ok.
5756
c0e6d47d
JD
5757 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5758
7c583cd8
JD
57592010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5760
5761 * xterm.c (x_new_font): Move code for setting rows/cols before
5762 resizing ...
ac146f82 5763 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
5764
5765 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
5766 (xg_frame_resized, xg_frame_set_char_size):
5767 Call xg_clear_under_internal_border.
7c583cd8 5768 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 5769
03f77f0a
CY
57702010-01-05 Chong Yidong <cyd@stupidchicken.com>
5771
5772 * keyboard.c (read_key_sequence): Catch keyboard switch after
5773 making a new tty frame (Bug#5095).
5774
2a1ef5be
KH
57752010-01-05 Kenichi Handa <handa@m17n.org>
5776
5777 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5778
e3eb1dae
SM
57792010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5780
5781 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5782 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5783 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5784
777013f2
MA
57852010-01-03 Michael Albinus <michael.albinus@gmx.de>
5786
5787 * dbusbind.c (xd_add_watch): Improve debug message.
5788 (xd_remove_watch): Improve debug message. If DATA is the session
5789 bus, unset D-Bus session environment.
5790 (Fdbus_init_bus): Pass the bus as argument to
5791 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 5792
8932b1c2
CY
57932010-01-01 Chong Yidong <cyd@stupidchicken.com>
5794
87231e2c
CY
5795 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5796
4801c5fa
CY
5797 * lread.c (syms_of_lread): Make it clearer that these are the
5798 names of loaded files (Bug#5068).
5799
8932b1c2
CY
5800 * eval.c (run_hook_with_args): Handle the case where the global
5801 value has the obsolete single-function form (Bug#5026).
5802
11e3c684
CY
58032009-12-27 Chong Yidong <cyd@stupidchicken.com>
5804
5805 * minibuf.c (Fall_completions): Minor optimization.
5806
5b28ce35
EZ
58072009-12-26 Eli Zaretskii <eliz@gnu.org>
5808
5ce6e4f4
JB
5809 * .gdbinit (pgx): Fix display of composite glyphs.
5810 Display cmp.from and cmp.to as well.
5811 (pitx): Fix last change.
5b28ce35 5812
bcffff46
KH
58132009-12-25 Kenichi Handa <handa@m17n.org>
5814
5815 * composite.h (composition_adjust_point): Update prototype.
5816
5817 * composite.c (composition_reseat_it): Don't make a composition
5818 spanning over point.
5819 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5820 composable characters.
5821 (composition_adjust_point): New arg NEW_PT. Callers changed.
5822
5823 * keyboard.c (command_loop_1): Force redisplay if the last point
5824 was within a composition.
5825 (adjust_point_for_property): Don't adjust point for automatic
5826 composition when called after buffer modification.
5827
3f670e9a
EZ
58282009-12-19 Eli Zaretskii <eliz@gnu.org>
5829
5ce6e4f4
JB
5830 * .gdbinit (pitx): Don't use enum names, use their values.
5831 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5832 (pgx): Don't use enum names, use their values.
5833 (pitmethod): New helper command.
5834 (pitx): Use it to display iteration method.
5835 (pgrowit): New command.
5836
ad903955
EZ
5837 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5838
3f670e9a
EZ
5839 Update dependencies in Makefile.in.
5840
5841 * Makefile.in (alloc.o): Depend on termhooks.h.
5842 (atimer.o): Depend on blockinput.h.
5843 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5844 and frame.h.
5845 (callint.o): Depend on systime.h, coding.h, and composite.h.
5846 (callproc.o): Depend on buffer.h.
5847 (casefiddle.o): Don't depend on charset.h.
5848 (casetab.o): Depend on character.h.
5849 (ccl.o): Depend on composite.h.
5850 (chartab.o): Depend on ccl.h.
5851 (cm.o): Depend on dispextern.h.
5852 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5853 (coding.o): Don't depend on $(INTERVALS_H).
5854 (composite.o): Don't depend on dispextern.h explicitly (it's in
5855 $(INTERVALS_H)). Depend on ccl.h.
5856 (data.o): Depend on systime.h, coding.h, composite.h,
5857 dispextern.h, font.h, and ccl.h.
5858 (dired.o): Depend on composite.h.
5859 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5860 composite.h (it's in $(INTERVALS_H)).
5861 (doc.o): Depend on systime.h, coding.h, and composite.h.
5862 (editfns.o): Don't depend explicitly on dispextern.h.
5863 (emacs.o): Depend on frame.h and coding.h.
5864 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5865 (fileio.o): Depend on frame.h and commands.h. Don't depend
5866 explicitly on dispextern.h.
5867 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5868 composite.h.
5869 (fns.o): Don't depend on termhooks.h.
5870 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5871 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5872 coding.h, $(INTERVALS_H), window.h, xterm.h.
5873 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5874 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5875 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5876 fontset.h, ccl.h, and ftfont.h.
5877 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5878 (gtkutil.o): Depend on dispextern.h and composite.h.
5879 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5880 termhooks.h, and ccl.h.
5881 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5882 (intervals.o): Depend on systime.h and coding.h.
5883 (keyboard.o): Depend on composite.h and coding.h.
5884 (keymap.o): Depend on coding.h and frame.h.
5885 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5886 (macros.o): Depend on systime.h, coding.h, and composite.h.
5887 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5888 and atimer.h.
5889 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5890 dispextern.h explicitly.
0b5397c2
SM
5891 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5892 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
5893 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5894 (regex.o): Don't depend on charset.h.
5895 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5896 (search.o): Don't depend explicitly on composite.h.
5897 (sound.o): Depend on atimer.h and systime.h.
5898 (syntax.o): Don't depend explicitly on composite.h.
5899 (sysdep.o): Depend on coding.h and composite.h.
5900 (term.o): Depend on xterm.h and buffer.h.
5901 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5902 (textprop.o): Don't depend on dispextern.h explicitly.
5903 (undo.o): Depend on dispextern.h.
5904 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5905 dispextern.h and composite.h explicitly.
5906 (xdisp.o): Depend on ccl.h.
5907 (xfaces.o): Depend on coding.h and ccl.h.
5908 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5909 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5910 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5911 ftfont.h.
5912 (xgselect.o): New dependency.
5913 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5914 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5915 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5916 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5917 (xsmfns.o): Depend on frame.h and dispextern.h.
5918 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5919 sysselect.h.
5920
7a6f7fea
AS
59212009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5922
5923 * font.c (Fclear_font_cache): Pass correct cache argument to
5924 font_clear_cache.
5925
f4c21026
AS
59262009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5927
5928 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5929 twice.
5930
f7ab0997
CY
59312009-12-15 Chong Yidong <cyd@stupidchicken.com>
5932
5933 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5934 calling file-remote-p. Reported by Jim Meyering.
5935
fa8e045a
MA
59362009-12-15 Michael Albinus <michael.albinus@gmx.de>
5937
5938 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 5939 avoid compiler warnings. (Bug #5217)
fa8e045a 5940
a63dba42
KH
59412009-12-14 Kenichi Handa <handa@m17n.org>
5942
5943 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5944 in 8-bit encoding.
5945
5ce6e4f4 59462009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
5947
5948 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5949 tooltip windows.
5950
223e5fc6
JD
59512009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5952
36acb2a7
JD
5953 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5954 Xatom_net_window_type.
5955
5956 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5957 Xatom_net_window_type.
5958
b8f00677
JD
5959 * xterm.c (my_log_handler): New function.
5960 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 5961 so we can filter out buggy messages. (Bug #5120).
b8f00677 5962
e5f0bc9a
JD
5963 * xterm.c (xg_scroll_callback): Parameter list changed,
5964 use parameter GtkScrollType to determine scroll/line/page.
5965 Only allow dragging if a button < 4 is grabbed (bug #5177).
5966 (xg_end_scroll_callback): New function.
5967 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5968 xg_create_scroll_bar.
5969
5970 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5971 (scroll_end_callback): Remove.
5972 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5973 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 5974 bug #5177.
e5f0bc9a
JD
5975 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5976 bug #5177.
5977
5978 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5979 (xg_create_scroll_bar): Add GCallback end_callback.
5980
223e5fc6
JD
5981 * xftfont.c (QClcdfilter): New variable.
5982 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5983 (syms_of_xftfont): Initialize QClcdfilter.
5984
3c055b77
JD
59852009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5986
5987 * xsettings.c (struct xsettings): Add member seen.
5988 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 5989 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
5990 (apply_xft_settings): Only update Xft settings with what member seen
5991 indicates as new.
5992
05fe33ff
EZ
59932009-12-12 Eli Zaretskii <eliz@gnu.org>
5994
c4cc8b9a 5995 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
5996 (struct glyph): Use EMACS_INT for charpos.
5997 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5998 region_beg_charpos, region_end_charpos,
5999 redisplay_end_trigger_charpos, and also for
6000 iterator_stack_entry.end_charpos and
6001 iterator_stack_entry.stop_charpos.
6002
e8d7886a
JD
60032009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6004
5ce6e4f4 6005 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
6006 (xg_create_scroll_bar): Call scroll_end_callback on button release
6007 event (bug #5177).
6008 (xg_event_is_for_scrollbar): != replaced with ==.
6009
d0db2ec8
KH
60102009-12-12 Kenichi Handa <handa@m17n.org>
6011
6012 * ftfont.c (struct ftfont_info): New member matrix.
6013 (ftfont_open): Setup xftfont_info->matrix.
6014 (MFLTFontFT): New member matrix.
6015 (FLOOR, CEIL, ROUND): New macros.
6016 (ftfont_get_metrics): Handle matrix transformation.
6017 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6018
6019 * xftfont.c (struct xftfont_info): New member matrix.
6020 (xftfont_open): Setup xftfont_info->matrix.
6021
60222009-12-10 Kenichi Handa <handa@m17n.org>
6023
6024 * xdisp.c (append_space_for_newline): Consider face-remapping.
6025
2cc7b62f
AS
60262009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6027
b87dd913
AS
6028 * xsettings.c: Include "keyboard.h".
6029
eba5eb94
AS
6030 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6031
2cc7b62f
AS
6032 Fix implicit function declarations.
6033 * cmds.c: Include "frame.h".
6034 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6035 * frame.h: Move declaration of delete_frame outside of
6036 HAVE_WINDOW_SYSTEM.
6037
a4ef73c8
CY
60382009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6039
6040 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6041
6042 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6043 GTK builds.
6044
944a300c
AS
60452009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6046
6047 * unexelf.c (unexec): Don't search for .data twice.
6048
022eef62
CY
60492009-12-05 Chong Yidong <cyd@stupidchicken.com>
6050
426ac949
CY
6051 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6052 if push failed.
6053 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6054 of push_display_prop (Bug#5000).
6055
022eef62
CY
6056 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6057 value of font_list_entities (Bug#5085).
6058
be95bee9
JB
60592009-12-04 Juanma Barranquero <lekktu@gmail.com>
6060
6061 Fix `string-to-number' to deal consistently with integers and floats.
6062 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6063 trailing characters, not just whitespace.
6064 (read1): Pass new arg 0 to keep old behavior.
6065 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6066 trailing chars, as it is already done for integers. Doc fixes.
6067 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6068
24c2d7ce
EZ
60692009-12-04 Eli Zaretskii <eliz@gnu.org>
6070
0b5397c2
SM
6071 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6072 Delete unused enumeration value.
24c2d7ce 6073
7e694795
EZ
60742009-12-03 Eli Zaretskii <eliz@gnu.org>
6075
6076 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6077
84b31826
SM
60782009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6079
6080 * process.c (Fmake_network_process): Fix up the tests for
6081 "connectionless socket", so they DTRT for seqpacket sockets as well.
6082
f00c449b
SM
60832009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6084
6085 * process.c (Qseqpacket): New symbol.
6086 (HAVE_SEQPACKET): New macro.
6087 (Fmake_network_process): Accept new :type `seqpacket'.
6088 (init_process): Add `seqpacket' feature when applicable.
6089 (syms_of_process): Initialize Qseqpacket.
6090
8096a0ff
YM
60912009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6092
6093 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6094 if entity is Qnil.
6095
3e0de07f
SM
60962009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6097
6098 * print.c (print_preprocess): Preprocess the key_and_value table of
6099 hashtables, even tho they're "hidden" (bug#5082).
6100
abeafb2a
JD
61012009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6102
6103 * frame.c (frame_make_pointer_invisible)
6104 (frame_make_pointer_visible): Declare f before statements.
6105
4bf47195
EZ
61062009-11-28 Eli Zaretskii <eliz@gnu.org>
6107
6108 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6109 omitted dependencies on lisp.h.
6110
c525b3f2
JD
61112009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6112
ece2d4ed
JD
6113 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6114 is NULL.
6115
6116 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6117
6118 * frame.c (frame_make_pointer_invisible)
3e0de07f 6119 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
6120 frame.
6121
c525b3f2
JD
6122 * search.c (simple_search): Remove warning by making *p const.
6123
2f00e299
DN
61242009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6125
6126 * xdisp.c (power_letter): Remove duplicate const.
6127
084b049b
JD
61282009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6129
a1fadc6f
JD
6130 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6131
5ce6e4f4 6132 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
6133 defaults (bug #5025).
6134
28259cac
SM
61352009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6136
6137 * insdel.c (adjust_markers_for_delete): Move it in the
6138 right direction! (bug#4803)
6139
e8e14166
YM
61402009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6141
6142 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6143
6144 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6145
86677b58
GM
61462009-11-24 Glenn Morris <rgm@gnu.org>
6147
6148 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6149
581e51e8
JD
61502009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6151
cfc86c7a
JD
6152 * Makefile.in: Must create deps for ecrt0.o in its rule.
6153
581e51e8
JD
6154 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6155 because that is what Gtk+ font dialog understands.
6156
6157 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6158 of Fcopy_sequence.
6159 (font_open_by_name): Put name given into QCname for font-object returned.
6160
6161 * frame.c (x_set_font): Save original font name as frame parameter
6162 font-parameter.
6163
6164 * xsettings.c (set_default_xft_settings): New function.
6165 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6166 is found.
6167
8b264ecb
AS
61682009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6169
6170 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6171 searching backwards through multibyte buffer.
6172
872870b2
JD
61732009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6174
6175 * xterm.c: #include xgselect.h.
6176 (x_initialize): Call xgselect_initialize.
6177
6178 * xsettings.c (something_changedCB): C++ comments => C comments.
6179 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6180 does that now.
6181
6182 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6183 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6184 (scroll_bar_button_cb): Remove.
5ce6e4f4 6185 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
6186 event.
6187 (xg_create_scroll_bar): Don't bind button-press-event and
6188 button-release-event.
6189
6190 * process.c: Include xgselect.h if defined (USE_GTK) ||
6191 defined (HAVE_GCONF).
6192 (wait_reading_process_output): Call xg_select for the same condition.
6193
6194 * xgselect.c (xg_select): New function to better integrate with
6195 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6196
6197 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6198
6199 * Makefile.in (XOBJ): Add xgselect.o.
6200
62a6e103
AS
62012009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6202
0b5397c2
SM
6203 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6204 Remove ignored second argument. All callers changed.
62a6e103
AS
6205 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6206 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6207 * xdisp.c (string_char_and_length): Likewise.
6208
b0ca0f33
DN
62092009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6210
6211 * xterm.c (x_new_font):
6212 * print.c (print_object):
6213 * cmds.c (Fself_insert_command): Move declarations before statements.
6214
dd5a6279
CY
62152009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6216
6217 * s/cygwin.h: Remove unneeded linker flags.
6218
4a8e097d
JD
62192009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6220
0d1d0d26
JD
6221 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6222
6223 * xsettings.h: Declare xsettings_get_system_font.
6224
6225 * xsettings.c (xsettings_get_system_font): New function.
6226 (init_gconf): No use initiating gconf unless we have Xft also.
6227 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6228 HAVE_GCONF.
6229
4a8e097d
JD
6230 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6231 add a blank entry so it doesn't collapse into nothing.
6232
8ab1650e
SM
62332009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6234
6235 * lread.c (Funintern): Comment out last change.
6236
82c602f0
RS
62372009-11-19 Richard Stallman <rms@gnu.org>
6238
6239 * lread.c (Funintern): Error if symbol is t or nil.
6240
87e32266
SM
62412009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6242
6243 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6244 representation of Lisp integers.
6245 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6246
1b9ac145
AS
62472009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6248
6249 * lisp.h: Remove declaration of Ffont_get_system_font.
6250 * xfns.c: Move include of "xsettings.h".
6251 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6252
dfb3c4c6
JD
62532009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6254
87e32266
SM
6255 * xsettings.c (something_changedCB, Ffont_get_system_font):
6256 Check use_system_font.
dfb3c4c6
JD
6257 (syms_of_xsettings): DEFVAR font-use-system-font.
6258
9370c1d8
AS
62592009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6260
25fe851a
AS
6261 * xfns.c (x_default_font_parameter): Remove dead assignment.
6262
9370c1d8
AS
6263 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6264
637fa988
JD
62652009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6266
87e32266 6267 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 6268 not have FC_LCD_*. #define them if not there.
a6eb20d8 6269
87e32266 6270 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 6271
637fa988
JD
6272 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6273
6274 * xterm.c (handle_one_xevent): Call xft_settings_event for
6275 ClientMessage, PropertyNotify and DestroyNotify.
6276 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6277 Call xsettings_initialize.
6278
6279 * xftfont.c (xftfont_fix_match): New function.
6280 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6281 Call xftfont_fix_match after XftFontMatch.
6282
6283 * xfont.c (xfont_driver): Initialize all members.
6284
87e32266
SM
6285 * xfns.c (x_default_font_parameter):
6286 Try font from Ffont_get_system_font.
637fa988
JD
6287 Do not get font from x_default_parameter if we got one from
6288 Ffont_get_system_font.
87e32266 6289 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
6290
6291 * w32font.c (w32font_driver): Initialize all members.
6292
6293 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6294
6295 * lisp.h: Declare syms_of_xsettings.
6296
87e32266
SM
6297 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6298 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
6299
6300 * ftfont.c (ftfont_filter_properties): New function.
6301
6302 * frame.c (x_set_font): Remove unused variable lval.
6303
87e32266 6304 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
6305
6306 * font.c (font_put_extra): Don't return if val is nil, it means
6307 boolean option is off.
6308 (font_parse_fcname): Collect all extra properties in extra_props
6309 and call filter_properties for all drivers with extra_props and
6310 font as parameter.
87e32266
SM
6311 (font_open_entity): Do not use cache, it does not pick up new
6312 fontconfig settings like hinting.
637fa988
JD
6313 (font_load_for_lface): If spec had a name in it, store it in entity.
6314
a73f9c9d 6315 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
6316
6317 * config.in: HAVE_GCONF is new.
6318
6319 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6320 xsettings.o is new.
6321
5a942932
KH
63222009-11-17 Kenichi Handa <handa@m17n.org>
6323
6324 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6325 back to the default font in case that no suitable font is found.
6326
b7c7a4d1
SM
63272009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6328
6329 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6330 Suggested by Chad Brown <yandros@mit.edu>.
6331 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6332
072f1e39
JD
63332009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6334
6335 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6336
5d1e70a2
AS
63372009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6338
87e32266 6339 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 6340
a53cfbe5
JD
63412009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6342
473a99b7
JD
6343 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6344 has a parent.
6345
a53cfbe5 6346 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 6347 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
6348
6349 * config.in: Generated (AUTO_DEPEND).
6350
f04bb9b2
MA
63512009-11-13 Michael Albinus <michael.albinus@gmx.de>
6352
b7c7a4d1 6353 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
6354 Vdbus_registered_functions_table, because it contains also
6355 properties. Fix docstring.
b7c7a4d1 6356 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 6357
8f11f7ec
SM
63582009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6359
6360 * alloc.c (mark_object): Don't reprocess marked strings.
6361 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6362 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6363
8a605fe8
KH
63642009-11-13 Kenichi Handa <handa@m17n.org>
6365
8f11f7ec 6366 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
6367 semantics of Vword_combining_categories.
6368 (Vword_combining_categories): Describe the slight change of the
6369 semantics.
6370
241c4680
EZ
63712009-11-13 Eli Zaretskii <eliz@gnu.org>
6372
6373 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6374
6375 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6376
5d58e44c
SM
63772009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6378
6379 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6380
5e13f9d3
JB
63812009-11-12 Juanma Barranquero <lekktu@gmail.com>
6382
6383 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6384
cf54c754
DR
63852009-11-11 David Reitter <david.reitter@gmail.com>
6386
6387 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6388 variables to fix 2009-11-09 change.
6389
a4ada374
DN
63902009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6391
91433552
DN
6392 * process.c (ifflag_def): Make flag_sym constant.
6393 (Fnetwork_interface_info): Use a constant pointer.
6394 (ifflag_table):
6395 * xfns.c (cursor_bits):
6396 * xdisp.c (power_letter):
6397 * termcap.c (speeds, esctab):
6398 * sysdep.c (baud_convert):
6399 * keyboard.c (lispy_accent_codes, modifier_names):
6400 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6401 (jpeg_format, tiff_format, gif_format, svg_format)
6402 (interlace_start, interlace_increment, gs_format):
6403 * gtkutil.c (separator_names):
6404 * fringe.c (swap_nibble):
6405 * fns.c (base64_value_to_char, base64_char_to_value):
6406 * fileio.c (make_temp_name_tbl):
6407 * coding.c (suffixes): Make constant.
6408
f4265f6c
DN
6409 * frame.c (make_initial_frame):
6410 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6411 build_string.
6412 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6413
04420943
DN
6414 * s/freebsd.h:
6415 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6416
0a5d24ae
DN
6417 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6418 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6419
a4ada374
DN
6420 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6421 * xterm.c (syms_of_xterm):
6422 * xfaces.c (syms_of_xfaces):
6423 * xdisp.c (syms_of_xdisp):
6424 * lread.c (syms_of_lread):
6425 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6426 build_string.
91433552 6427
a4ada374
DN
6428 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6429
af98fc7f
SM
64302009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6431
8ab1650e 6432 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 6433
e90292a9
JD
64342009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6435
6436 * keyboard.h: Declare timer_check.
6437
6438 * keyboard.c (timer_check_2): New function that does what the old
6439 timer_check did.
6440 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6441 returned, i.e. don't return -1 with timers pending.
6442
6443 * process.c: Remove extern declaration of timer_check.
6444
6445 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6446 even if timer_check returned -1.
6447
af98fc7f
SM
6448 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6449 xg_dialog_data.
e90292a9
JD
6450 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6451 the event loop.
6452 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6453 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6454 Destroy the dialog after xg_dialog_run.
6455
045b83c0
SM
64562009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6457
6458 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6459
1fb99a3a
JD
64602009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6461
6462 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6463
04e452cb
JB
64642009-11-09 Juanma Barranquero <lekktu@gmail.com>
6465
6466 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6467
ef7417fd
SM
64682009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6469
6470 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6471 w32menu.c, and nsmenu.m.
6472 Simplify the obsolete case where position is nil.
6473 (cleanup_popup_menu): New function, moved from nsmenu.m.
6474 (struct skp): Remove slot `notreal'.
6475 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6476 adjust callers.
6477 (single_menu_item): Adjust call to parse_menu_item.
6478 (syms_of_menu): Defsubr x-popup-menu.
6479 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6480 (keymap_panes): Don't export any more.
6481 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6482 (xmenu_show): Declare.
6483 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6484 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6485 * keyboard.h (parse_menu_item): Update declaration.
6486 * xmenu.c (Fx_popup_menu): Remove.
6487 (syms_of_xmenu): Don't defsubr x-popup-menu.
6488 * w32menu.c (Fx_popup_menu): Remove.
6489 (syms_of_w32menu): Don't defsubr x-popup-menu.
6490 * nsmenu.m (cleanup_popup_menu): Remove.
6491 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6492 moved to menu.c's Fx_popup_menu.
6493 (Fx_popup_menu): Remove.
6494 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6495 menu_items (it's done in menu.c already).
6496
424d6179
SM
64972009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6498
6499 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6500 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6501
c0df13a6 65022009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
6503
6504 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 6505 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
6506 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6507 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6508
2de9f71c
SM
65092009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6510
6511 Let integers use up 2 tags to give them one extra bit and thus double
6512 their range.
6513 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6514 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6515 New macros.
6516 (enum Lisp_Type): Use them. Give explicit values.
6517 (Lisp_Type_Limit): Remove.
6518 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6519 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6520 Pay attention to USE_2_TAGS_FOR_INTS.
6521 (INTEGERP): Use LISP_INT_TAG_P.
6522 * fns.c (internal_equal): Simplify the default case.
6523 (sxhash): Use case_Lisp_Int.
6524 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6525 any more.
6526 (Ftype_of): Use case_Lisp_Int.
6527 (store_symval_forwarding): Take into account the fact that Ints can
6528 now have more than one tag.
6529 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 6530 (buffer_slot_type_mismatch):
2de9f71c
SM
6531 * xfaces.c (face_attr_equal_p):
6532 * print.c (print_object):
6533 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6534 Use case_Lisp_Int.
6535
323637a2
EZ
65362009-11-06 Eli Zaretskii <eliz@gnu.org>
6537
7ac65b38
EZ
6538 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6539
323637a2
EZ
6540 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6541 warning.
6542
e511451f
JD
65432009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6544
6545 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6546
6547 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6548
6549 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6550 ButtonPressRelease and MotionNotify (bug#4870).
6551
5e2327cf
DN
65522009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6553
5adc433e
DN
6554 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6555
d67b4f80
DN
6556 * xterm.c (syms_of_xterm):
6557 * xselect.c (syms_of_xselect):
6558 * xmenu.c (syms_of_xmenu):
6559 * xfns.c (syms_of_xfns):
6560 * xfaces.c (syms_of_xfaces):
6561 * xdisp.c (syms_of_xdisp):
6562 * window.c (syms_of_window):
6563 * w32fns.c (syms_of_w32fns):
6564 * undo.c (syms_of_undo):
6565 * textprop.c (syms_of_textprop):
6566 * terminal.c (syms_of_terminal):
6567 * syntax.c (syms_of_syntax):
6568 * sound.c (syms_of_sound):
6569 * search.c (syms_of_search):
6570 * print.c (syms_of_print):
6571 * minibuf.c (syms_of_minibuf):
6572 * macros.c (syms_of_macros):
6573 * keymap.c (syms_of_keymap, initial_define_key)
6574 (initial_define_lispy_key):
6575 * keyboard.c (syms_of_keyboard):
6576 * insdel.c (syms_of_insdel):
6577 * image.c (syms_of_image):
6578 * fringe.c (syms_of_fringe):
6579 * frame.c (syms_of_frame):
6580 * fontset.c (syms_of_fontset):
6581 * fns.c (syms_of_fns):
6582 * fns.c (syms_of_fns):
6583 * fileio.c (syms_of_fileio):
6584 * fileio.c (syms_of_fileio):
6585 * eval.c (syms_of_eval):
6586 * doc.c (syms_of_doc):
6587 * dispnew.c (syms_of_display):
6588 * dired.c (syms_of_dired):
6589 * dbusbind.c (syms_of_dbusbind):
6590 * data.c (syms_of_data):
6591 * composite.c (syms_of_composite):
6592 * coding.c (syms_of_coding):
6593 * cmds.c (syms_of_cmds):
6594 * charset.c (define_charset_internal, syms_of_character):
6595 * ccl.c (syms_of_ccl):
6596 * category.c (syms_of_category, init_category_once):
6597 * casetab.c (syms_of_casetab):
6598 * casefiddle.c (syms_of_casefiddle):
6599 * callint.c (syms_of_callint):
6600 * bytecode.c (syms_of_bytecode):
6601 * buffer.c (keys_of_buffer, syms_of_buffer):
6602 * alloc.c (syms_of_alloc):
6603 * process.c (syms_of_process, init_process):
6604 * lread.c (syms_of_lread, init_obarray):
6605 * font.c (build_style_table):
6606 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6607 intern_c_string, calls to make_pure_string with
6608 make_pure_c_string. Use pure_cons instead of Fcons.
6609
5e2327cf
DN
6610 * process.c (socket_options): Make it const.
6611 (set_socket_option, init_process): Use a const pointer.
6612
6613 * lread.c (intern_c_string): New function.
6614 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6615 (defvar_int): Uset it. Make the name const char*.
6616
6617 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6618 (defvar_int): Update prototypes.
6619 (DEFUN, EXFUN): Support for prototypes is now required.
6620 (intern_c_string): New prototype.
6621 (struct Lisp_Subr): Make symbol_name constant.
6622
6623 * font.c (struct table_entry): Remove unused member. Make NAMES
6624 constant.
6625 (weight_table, slant_table, width_table): Make constant.
6626
6627 * emacs.c (struct standard_args): Make name and longname constant.
6628
6629 * character.h (DEFSYM): Use intern_c_string.
6630
a56eaaef
DN
66312009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6632
6633 * alloc.c (make_pure_c_string): New function.
6634
6635 * eval.c (Fautoload): Purecopy all arguments.
6636
f6a07420
KH
66372009-11-05 Kenichi Handa <handa@m17n.org>
6638
6639 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6640 the buffer in case of replace.
6641
5d28d4b1
DN
66422009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6643
6644 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6645
b349d111
SM
66462009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6647
d528b1ce
SM
6648 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6649 when applicable (bug#4851).
6650
b349d111
SM
6651 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6652 (P_): Support for prototypes is now required.
6653
c38eb027
CY
66542009-10-31 Chong Yidong <cyd@stupidchicken.com>
6655
6656 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6657 (Bug#4827).
6658
0405f8d9
EZ
66592009-10-30 Eli Zaretskii <eliz@gnu.org>
6660
d528b1ce 6661 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 6662
ca0a881a
DN
66632009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6664
6665 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6666
d528b1ce
SM
6667 * lread.c (Fload): Purecopy the file name when building
6668 Vpreloaded_file_list.
ca0a881a 6669
47e0e0e4
JR
66702009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6671
6672 * w32fns.c (syms_of_w32fns): Change default value of
6673 w32-scroll-lock-modifier to nil. (Bug#2827)
6674
057bce6f
JB
66752009-10-26 Juanma Barranquero <lekktu@gmail.com>
6676
782a943e 6677 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 6678
242bc74c
AS
66792009-10-26 Andreas Schwab <schwab@redhat.com>
6680
6681 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6682
522d013a
JB
66832009-10-26 Juanma Barranquero <lekktu@gmail.com>
6684
6685 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6686 For delta < 0, skip check that only makes sense when the mini-window
6687 is going to be enlarged. (Bug#4534)
6688
18060980
CY
66892009-10-25 Chong Yidong <cyd@stupidchicken.com>
6690
6691 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6692 string in menu maps (Bug#4471).
6693
fec8f0fe
CY
66942009-10-24 Chong Yidong <cyd@stupidchicken.com>
6695
6696 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6697 FRAME_NS_VIEW on terminal frames (Bug#4765).
6698
10d66ec0
AS
66992009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6700
1cae01f7
AS
6701 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6702 DBUS_TYPE_UINTnn separately to get proper sign extension.
6703
58a12889
AS
6704 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6705 can properly handle unsigned types.
d528b1ce 6706 (make_uid, make_gid): Remove.
58a12889 6707
987c9327
AS
6708 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6709 types again.
6710
522d013a 6711 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
6712 (system_process_attributes): Likewise.
6713
905a9ed3
DN
67142009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6715
6716 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6717
6718 * eval.c (Fautoload): Purecopy the filename. Simplify.
6719
6720 * category.c (Fdefine_category): Purecopy docstring.
6721
a599b3e8
AS
67222009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6723
7b792fc9
AS
6724 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6725
a599b3e8
AS
6726 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6727
b35ac83e
CY
67282009-10-23 Chong Yidong <cyd@stupidchicken.com>
6729
6730 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6731 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6732 (Bug#4775).
6733
e8903e00
SM
67342009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6735
6736 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6737 (init_fileio_once):
6738 * lisp.h (init_fileio_once): Remove.
6739 * emacs.c (main): Don't call init_fileio_once.
6740
8f43cbf3
DN
67412009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6742
6743 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6744
26898943
AS
67452009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6746
6747 * doprnt.c (doprnt): Fix overflow check.
6748
5c646d5a
JD
67492009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6750
3132a7ea
JD
6751 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6752
5c646d5a
JD
6753 * xterm.h (x_wait_for_event): Declare it.
6754
6755 * xterm.c (pending_event_wait): New variable.
6756 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6757 see pending_event_wait.eventtype.
6758 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
6759 (x_new_font): Call change_frame_size with new rows/columns before we
6760 try to resize the frame.
5c646d5a 6761 (x_wait_for_event): New function.
d528b1ce
SM
6762 (x_set_window_size_1): Don't change gravity unless change_gravity
6763 is set.
5c646d5a
JD
6764 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6765 don't change frame size, instead wait for the ConfigureNotify.
6766 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6767 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6768 (x_initialize): Initialize pending_event_wait.
6769
6770 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6771 size.
6772
6773 * widget.c (EmacsFrameSetValues): Add comment.
6774 (EmacsFrameSetCharSize): Just call x_set_window_size.
6775
6776 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6777 x_wait_for_event.
d528b1ce 6778 (flush_and_sync): Remove again.
5c646d5a
JD
6779 (xg_get_font_name): Suggest monospace if no previous font is known.
6780
e9c1637d
SM
67812009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6782
6783 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 6784 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 6785
5a72cccb
YM
67862009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6787
6788 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6789 processing pending events when event is filtered for input method.
ab04798f 6790 (Bug#3681)
5a72cccb 6791
2629aa37
JB
67922009-10-20 Juanma Barranquero <lekktu@gmail.com>
6793
6794 * fns.c: Add #endif accidentally removed in previous change.
6795
c3417a74
DN
67962009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6797
6798 * fns.c: Remove code for unsupported system: MAC_OS.
6799 * image.c: Likewise. Include setjmp.h.
6800
9685cef2
JD
68012009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6802
6803 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6804 pixel -1 (bug #4742).
6805
d7306fe6
DN
68062009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6807
019d2c4c
DN
6808 * process.c (create_pty): Remove conditionals for no longer
6809 supported systems: UNIPLUS and RTU.
6810
ee6bacd4
DN
6811 * xterm.c:
6812 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6813
d7306fe6
DN
6814 * alloc.c: Do not define struct catchtag.
6815 * eval.c: Move struct catchtag definition ...
6816 * lisp.h: ... here.
6817
6818 * image.c: Move png.h #include earlier to avoid warnings.
6819
6820 * xterm.c:
6821 * xsmfns.c:
6822 * xselect.c:
6823 * xrdb.c:
6824 * xmenu.c:
6825 * xftfont.c:
6826 * xfont.c:
6827 * xfns.c:
6828 * xfaces.c:
6829 * xdisp.c:
6830 * window.c:
6831 * widget.c:
6832 * w32xfns.c:
6833 * w32uniscribe.c:
6834 * w32term.c:
6835 * w32select.c:
6836 * w32reg.c:
6837 * w32proc.c:
6838 * w32menu.c:
6839 * w32inevt.c:
6840 * w32heap.c:
6841 * w32font.c:
6842 * w32fns.c:
6843 * w32console.c:
6844 * w32.c:
6845 * w16select.c:
6846 * vm-limit.c:
6847 * unexsol.c:
6848 * unexec.c:
6849 * unexcw.c:
6850 * unexaix.c:
6851 * undo.c:
6852 * tparam.c:
6853 * textprop.c:
6854 * terminfo.c:
6855 * terminal.c:
6856 * termcap.c:
6857 * term.c:
6858 * syntax.c:
6859 * sound.c:
6860 * sheap.c:
6861 * search.c:
6862 * scroll.c:
6863 * region-cache.c:
6864 * regex.c:
6865 * ralloc.c:
6866 * process.c:
6867 * print.c:
b024548b
DN
6868 * nsterm.m:
6869 * nsselect.m:
6870 * nsmenu.m:
6871 * nsimage.m:
6872 * nsfont.m:
6873 * nsfns.m:
d7306fe6
DN
6874 * msdos.c:
6875 * minibuf.c:
6876 * menu.c:
6877 * marker.c:
6878 * macros.c:
6879 * keymap.c:
6880 * keyboard.c:
6881 * intervals.c:
6882 * insdel.c:
6883 * indent.c:
6884 * gtkutil.c:
6885 * ftxfont.c:
6886 * ftfont.c:
6887 * fringe.c:
6888 * frame.c:
6889 * fontset.c:
6890 * font.c:
6891 * fns.c:
6892 * floatfns.c:
6893 * filelock.c:
6894 * fileio.c:
6895 * emacs.c:
6896 * editfns.c:
6897 * dosfns.c:
6898 * doprnt.c:
6899 * doc.c:
6900 * dispnew.c:
6901 * dired.c:
6902 * dbusbind.c:
6903 * data.c:
6904 * composite.c:
6905 * coding.c:
6906 * cmds.c:
6907 * cm.c:
6908 * chartab.c:
6909 * charset.c:
6910 * character.c:
6911 * ccl.c:
6912 * category.c:
6913 * casetab.c:
6914 * casefiddle.c:
6915 * callproc.c:
6916 * callint.c:
6917 * bytecode.c:
6918 * buffer.c:
6919 * atimer.c: Include setjmp.h. (Bug#4643)
6920
fd5f21e6
SM
69212009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6922
4c0354d7
SM
6923 Remove leftover table unibyte_to_multibyte_table.
6924 * character.c (unibyte_to_multibyte_table): Remove.
6925 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6926 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6927 * character.h (UNIBYTE_TO_CHAR): New macro.
6928 (MAKE_CHAR_MULTIBYTE): Use it.
6929 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6930 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6931 (message_dolog, set_message_1):
6932 * search.c (Freplace_match):
6933 * editfns.c (Fcompare_buffer_substrings):
6934 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6935 (concat):
6936 * insdel.c (copy_text, count_size_as_multibyte):
6937 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6938 * term.c (produce_glyphs):
6939 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6940 * regex.c (RE_CHAR_TO_MULTIBYTE):
6941 * cmds.c (internal_self_insert):
6942 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6943
fd5f21e6
SM
6944 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6945
4418646e
DN
69462009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6947
6948 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6949
35f5c1d2
JB
69502009-10-16 Juanma Barranquero <lekktu@gmail.com>
6951
6952 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6953
a0cd8f6b
AR
69542009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6955
6956 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6957 still needed under Tiger.
6958
6959 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6960
6961 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6962 __Apple__.
6963
6964 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6965
01a8d3fa
KH
69662009-10-15 Kenichi Handa <handa@m17n.org>
6967
6968 * print.c (print_object): Escape a symbol like "2E10" too.
6969
bf6c75c9 69702009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
6971
6972 Cleanups and changes for 64-bit compile under Snow Leopard.
6973 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
6974
6975 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6976
c5959062 6977 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
6978 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6979 cast argument.
6980 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 6981 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
6982
6983 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6984
6985 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6986 where appropriate.
6987
6988 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6989 where appropriate.
6e4780c5
JB
6990 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6991 Use stringWithUTF8String.
bf6c75c9
AR
6992 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6993
6e4780c5
JB
6994 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6995 Add formal protocol mention to inheritance.
bf6c75c9
AR
6996 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6997
6e4780c5
JB
6998 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6999 Fix printf format.
bf6c75c9
AR
7000 (ns_query_color): Use CGFloat where appropriate.
7001 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 7002 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
7003 argument.
7004
3d87f118
AR
7005 * config.in (NS_HAVE_NSINTEGER): Drop.
7006
a95c8102
AR
7007 * dbusbind.c (dbus-method-return-internal)
7008 (dbus-method-error-internal): Use long format in printf, and cast
7009 argument.
7010
7011 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7012 in printf, and cast argument.
7013
6873acca 7014 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
7015 cast argument.
7016
9ec6f100
GM
70172009-10-11 Glenn Morris <rgm@gnu.org>
7018
7019 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7020
5be883cd
JD
70212009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7022
7023 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7024 menu bar with a small width so it doesn't enlarge the frame.
7025
d7a39b51
JB
70262009-10-08 Juanma Barranquero <lekktu@gmail.com>
7027
7028 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7029
0c2b6f8e
GM
70302009-10-06 Glenn Morris <rgm@gnu.org>
7031
7032 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7033 SOME_MACHINE_LISP (this enters indirectly via DOC).
7034
e02131a2
EZ
70352009-10-05 Eli Zaretskii <eliz@gnu.org>
7036
7037 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7038
b4744254
EZ
70392009-10-04 Eli Zaretskii <eliz@gnu.org>
7040
7041 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7042 Doc fix.
7043
dbf64827
JB
70442009-10-03 Martin Rudalics <rudalics@gmx.at>
7045
7046 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7047
e9a0aef8
MA
70482009-10-02 Michael Albinus <michael.albinus@gmx.de>
7049
d528b1ce 7050 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
7051 used anymore outside fileio.c.
7052
7053 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7054
64eb2b56
JB
70552009-10-01 Juanma Barranquero <lekktu@gmail.com>
7056
7057 * lisp.h (Qdelete_directory_internal):
7058 Declare, instead of Qdelete_directory.
7059
7060 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7061
9d28c33e
SM
70622009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7063
7064 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7065
9d8f3bd9
MA
70662009-10-01 Michael Albinus <michael.albinus@gmx.de>
7067
9d28c33e 7068 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
7069 Fdelete_directory. It is not a command anymore. It has no file
7070 name handler.
7071
9694740b
SM
70722009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7073
7074 * xdisp.c (get_next_display_element): Use an enum in last change.
7075
748e162f
KH
70762009-09-28 Kenichi Handa <handa@m17n.org>
7077
9694740b 7078 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
7079 unibyte_display_via_language_environment in handling
7080 Vnobreak_char_display.
7081
17efd58d
AR
70822009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7083
7084 * nsterm.h (ns_app_name): New extern variable.
7085
7086 * nsterm.m (ns_app_name): New variable.
7087 (ns_term_init): Set and use it.
7088 (ns_term_shutdown): Use it.
7089
7090 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7091 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7092
7093 * nsfns.m (ns_set_name_iconic, ns_set_name)
7094 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7095 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7096
9694740b
SM
7097 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7098 Remove double-casting in client_data comparison.
31c2d412 7099
3208cb35
YM
71002009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7101
7102 * keyboard.c (make_lispy_event): Remember last wheel direction.
7103 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7104
b7d552d6
GM
71052009-09-26 Glenn Morris <rgm@gnu.org>
7106
7107 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7108 internal.elc. Add term/pc-win.elc.
7109 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7110 term/x-win.elc.
7111 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7112 term/w32-win.elc.
7113 (NS_SUPPORT): New.
7114 (lisp): Add NS_SUPPORT.
7115 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7116
4ff670a8
DR
71172009-09-25 David Reitter <david.reitter@gmail.com>
7118
7119 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7120 on Mac OS X 10.6+ (bug#4513).
7121
feabfb6c
JB
71222009-09-24 Juanma Barranquero <lekktu@gmail.com>
7123
7124 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
7125 some parts of Emacs code (like font selection) don't grok them.
7126 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 7127
de59072a
AS
71282009-09-24 Andreas Schwab <schwab@redhat.com>
7129
7130 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7131
a489517b
JB
71322009-09-24 Juanma Barranquero <lekktu@gmail.com>
7133
7134 * dired.c (Fdirectory_files): Fix typo in docstring.
7135
0592970c
AR
71362009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7137
7138 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7139 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7140 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7141 under GNUstep.
7142 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7143
7144 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7145 glyph advancement.
7146
48e8a88b
AR
71472009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7148
7149 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 7150 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
7151
7152 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7153 deleted (bug #4492).
7154
e14f0a78
AR
7155 * nsfont.m (Vns_reg_to_script): New lisp variable.
7156 (syms_of_nsfont): Declare it.
7157 (ns_registry_to_script): New function.
7158 (ns_get_req_script): Call it.
7159 (ns_findfonts): Don't give up on non-unicode registry.
7160
7161 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7162
5b650faa
SM
71632009-09-20 Tom Tromey <tromey@redhat.com>
7164
7165 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7166 batch mode (bug#4228).
7167
a489517b 71682009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
7169
7170 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 7171 carefully. (Bug #4339)
0bae4e09 7172
fcfe06f3
CY
71732009-09-18 Chong Yidong <cyd@stupidchicken.com>
7174
d798ba87 7175 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 7176
31642728
AR
71772009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7178
7179 * emacs.c (inhibit_x_resources): Update doc string for NS.
7180 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 7181 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
7182
7183 * nsterm.h (ns_no_defaults): Remove.
7184
7185 * nsterm.m (ns_no_defaults): Remove.
7186 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7187 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
7188 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7189 don't update the NSWindow itself.
7190 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 7191 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
7192
7193 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7194 ns_use_qd_smoothing.
7195
7196 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7197 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 7198 (x-close-connection): Drop PSFlush() under OS X.
a489517b 7199 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 7200
8686ac71
JB
72012009-09-17 Juanma Barranquero <lekktu@gmail.com>
7202
7203 * emacs.c (inhibit_x_resources): New variable.
7204 (main) [HAVE_NS]: Don't process --quick command line option.
7205 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7206
7207 * lisp.h (inhibit_x_resources): Declare it extern.
7208
7209 * w32reg.c (x_get_string_resource):
7210 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7211
e227ba05
EZ
72122009-09-17 Eli Zaretskii <eliz@gnu.org>
7213
362654a6
JB
7214 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7215 Add lisp/term/internal.elc.
e227ba05 7216
742d40e8
SM
72172009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7218
7219 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7220 (bug#4461).
7221
005bd5a2
DN
72222009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7223
7224 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7225
7226 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7227 (OBJECTS_MACHINE): Remove, unused.
7228
f9af9719
SM
72292009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7230
7231 * frame.c (x_get_resource_string): Remove unused.
7232
0307c7d2
JD
72332009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7234
7235 * xterm.c (x_new_font): Call change_frame_size before calling
7236 x_set_window_size, in case frame size won't change.
7237
7238 * frame.c (x_set_font): Remove dead code.
7239
428b13d6
SM
72402009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7241
7242 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7243
5766c380
SM
72442009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7245
7246 * lread.c (Fload): Don't output a message after loading an obsolete
7247 package any more (done in Lisp now).
7248
2fd0161b
CY
72492009-09-12 Chong Yidong <cyd@stupidchicken.com>
7250
7251 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7252
bc5e75b6
SM
72532009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7254
7255 * keymap.c (Fwhere_is_internal): Use nconc2.
7256
c31c985e
AM
72572009-09-11 Alan Mackenzie <acm@muc.de>
7258
7259 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7260 batch mode.
7261
78012bd2
AS
72622009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7263
7264 * xdisp.c (display_mode_element): Detect cycles.
7265
9d889332
SM
72662009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7267
7268 * keymap.c (where_is_internal): Don't erroneously return nil right after
7269 filling the cache.
7270 (where_is_internal_1): Fix up typo.
7271
7ab5d780
GM
72722009-09-11 Glenn Morris <rgm@gnu.org>
7273
7274 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7275 share a common doc-string.
7276
5238a749
SM
72772009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7278
66d77eda
SM
7279 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7280 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7281
5238a749
SM
7282 * keymap.c (QCadvertised_binding): New constant.
7283 (syms_of_keymap): Initialize it.
7284 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7285 if applicable.
7286
19f48442
SM
72872009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7288
50d4ba39
SM
7289 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7290 (parse_menu_item): Streamline since bindings are recomputed all the
7291 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7292 more and don't support lmenu's menu-alias any more either.
7293
a88a5372
SM
7294 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7295 (where_is_internal): Strip it down to only traverse the keymaps.
7296 Move the cache handling from Fwhere_is_internal to here.
7297 (Fwhere_is_internal): Move the handling of remapping and the choice of
7298 the best binding from where_is_internal to here.
7299 Unify the cached/noncached paths, so remapping is also handled
7300 correctly when the cache is used, and so the cache can be used to
7301 speed up remap-handling when applicable.
7302 Give preference to non-remapped bindings.
7303 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7304 non-remapped bindings.
7305 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7306 command remapping.
7307
19f48442
SM
7308 * xdisp.c (display_mode_element): Move list length limit from 50 to
7309 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7310
599498c3 73112009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
7312
7313 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7314
f9b7b5ac
SM
73152009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7316
a53af587
JB
7317 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7318 (Bug#4334)
7319
f9b7b5ac
SM
7320 * keymap.c (where_is_internal): Filter out shadowed remappings.
7321 Assume that where_is_internal returns unshadowed bindings to simplify
7322 the code and get rid of the gotos. Use ASIZE.
7323
04f4b72d
JD
73242009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7325
4da146f2
JD
7326 * xterm.c (x_focus_changed): If we get a focusout and pointer
7327 is invisible, make it visible.
7328
04f4b72d
JD
7329 * xterm.h: Remove condition for declaration of
7330 x_*_window_to_frame.
7331
7cef7ce3
SM
73322009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7333
7334 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7335 initial terminal as well.
7336
a54fa5b7
JD
73372009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7338
7339 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 7340 x_menubar_window_to_frame.
a54fa5b7 7341
50426a04 7342 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
7343 (XTmouse_position): Do not return valid positions
7344 for clicks in the menubar and the toolbar for Gtk+.
7345
7346 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7347 if the widget for the event has the same top level as a frame,
7348 return the frame.
7349 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7350 internal windows, bug #4122.
7351 (x_non_menubar_window_to_frame): Remove.
7352
5a021dd0
GM
73532009-09-02 Glenn Morris <rgm@gnu.org>
7354
7355 * buffer.c (default-major-mode): Move most of the doc from here...
7356 (major-mode): ... to here.
7357
548fe2f3
NR
73582009-08-30 Nick Roberts <nickrob@snap.net.nz>
7359
7360 * process.c (wait_reading_process_output): Keep the descriptor
7361 when pty is used by a non-child process, e.g., in I/O buffer of
7362 GDB this allows inferior to be restarted.
7363
e0840eef
EZ
73642009-08-29 Eli Zaretskii <eliz@gnu.org>
7365
7366 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7367 both branches into one.
7368
82e98df4
SM
73692009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7370
7371 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7372 (main): Use enable-multibyte-characters rather than
7373 default-enable-multibyte-characters. Output a warning message when
7374 running a unibyte session.
7375
890617cb
YM
73762009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7377
7378 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7379 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7380 (copy_data_segment): Also copy __program_vars section.
7381 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7382 (dump_it) [LC_DYLD_INFO]: Use it.
7383
7384 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7385
e7adeadc
EZ
73862009-08-28 Eli Zaretskii <eliz@gnu.org>
7387
7388 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7389 $(SRC)/buildobj.h.
7390 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7391 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7392 $(SRC)/buildobj.h.
7393 (clean): Add buildobj.h.
7394
3ed8bbdc
TZ
73952009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7396
7397 * print.c (print_object): Set escapeflag to 1 when printing
7398 hashtable keys and values.
7399
155a6764
SM
74002009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7401
7402 * lread.c (read_integer): Use doubles (and potentially return a float
7403 number) as we do in string-to-number.
7404 (read1): Use strtol to read integers, signal errors on strtol's
7405 overflow and use floats if strtol's output is too large for
7406 Elisp integers.
7407
877610de
EZ
74082009-08-27 Eli Zaretskii <eliz@gnu.org>
7409
7410 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7411 (make-buildobj-SH): Fix last change.
7412 (SRC): Move to before where it's first used.
7413
ef73e7be
KH
74142009-08-27 Kenichi Handa <handa@m17n.org>
7415
550c8289
KH
7416 * process.c (send_process): Use encode_coding_object instead of
7417 encode_coding_string to perform eol-conversion even if the string
7418 is unibyte.
7419
60afa08d
KH
7420 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7421 character.
7422
ef73e7be 7423 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 7424 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 7425
7b3a82d7
DN
74262009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7427
5654bf63
DN
7428 * callproc.c (Fcall_process): Remove always true #if.
7429
7b3a82d7
DN
7430 * lisp.h: Replace #if 0 code for checking with text pointing to
7431 the --enable-checking configure flag.
7432
7433 * emacs.c (main): Mention the --enable-profiling configure flag
7434 instead of using CFLAGS.
7435
878bde49
KR
74362009-08-26 Ken Raeburn <raeburn@raeburn.org>
7437
7438 * Makefile.in (buildobj.h): New target.
7439 (doc.o): Depend on it.
7440 (temacs${EXEEXT}): Don't generate buildobj.lst.
7441 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7442 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7443 ($(BLD)/doc.$(O)): Depend on it.
7444 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7445 provided by Eli Zaretskii.)
7446 ($(TEMACS)): Don't generate buildobj.lst.
7447 * doc.c: Include buildobj.h.
7448 (buildobj): New static variable.
7449 (Fsnarf_documentation): Use it, instead of opening and reading
7450 buildobj.lst.
7451
1574224c
MA
74522009-08-25 Michael Albinus <michael.albinus@gmx.de>
7453
7454 * dbusbind.c (Fdbus_call_method)
7455 (Fdbus_call_method_asynchronously): Use English numeric format for
7456 timeout values in doc string.
7457
d9da2f45
KH
74582009-08-25 Kenichi Handa <handa@m17n.org>
7459
ef73e7be
KH
7460 * alloc.c (mark_char_table): New function.
7461 (mark_object): Use mark_char_table for a char-table.
7462
d9da2f45
KH
7463 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7464 (CHAR_TABLE_REF): Use it.
7465
c8edcc01
KR
74662009-08-23 Ken Raeburn <raeburn@raeburn.org>
7467
7468 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7469 before invoking the newly build emacs to check for load-path
7470 shadowing.
7471
7763401b
GM
74722009-08-22 Glenn Morris <rgm@gnu.org>
7473
7474 * Makefile.in (bootstrap_exe): New variable.
7475 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7476 Use ${bootstrap_exe}.
7477
729eadda
EZ
74782009-08-22 Eli Zaretskii <eliz@gnu.org>
7479
7480 * coding.h (encode_coding_string): Don't encode unibyte strings.
7481 (Bug#4047)
7482
eb4c6ace
MA
74832009-08-22 Michael Albinus <michael.albinus@gmx.de>
7484
7485 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7486
7487 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7488 intended as hotfix only.
7489 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7490
36e34d1b
AR
74912009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7492
7493 * nsterm.m (ns_get_color): Update documentation properly for last
7494 change, and clean up loose ends in the code left by it. Fix
7495 longstanding bug with 16-bit hex parsing, and add support for
7496 yet another X11 format (rgb:r/g/b) for compatibility.
7497 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7498 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7499
f983eb8a
SM
75002009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7501
7502 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7503
3f56d3c6
MA
75042009-08-20 Michael Albinus <michael.albinus@gmx.de>
7505
7506 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7507 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7508 (xd_initialize, xd_pending_messages): Check, whether
7509 $DBUS_SESSION_BUS_ADDRESS is set.
7510
fb641d68
YM
75112009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7512
7513 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7514
7515 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7516
cf59a374
GM
75172009-08-20 Glenn Morris <rgm@gnu.org>
7518
7519 * emacs.c (system-type): Doc fix.
7520
1373f3be
SM
75212009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7522
7523 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7524 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7525
058ed861
MA
75262009-08-18 Michael Albinus <michael.albinus@gmx.de>
7527
1373f3be
SM
7528 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7529 New functions.
058ed861
MA
7530 (xd_initialize): Revert change from 2009-08-16.
7531
563a866e 75322009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
7533
7534 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 7535 font-group vector, return nil.
5fc05db0 7536
e42bdf01
CY
75372009-08-17 Chong Yidong <cyd@stupidchicken.com>
7538
7539 * process.c (status_notify): Don't perform redisplay.
7540 (Fdelete_process, list_processes_1, process_send_signal):
7541 Expliticly perform redisplay.
7542 (wait_reading_process_output): Always check process status, but
7543 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7544
4230ab74
KR
75452009-08-17 Ken Raeburn <raeburn@raeburn.org>
7546
1373f3be 7547 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
7548 (XFLOAT_INIT): New macro for storing a float value.
7549 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7550 * fns.c (sxhash): Copy out the value of a float in order to
7551 examine its bytes.
7552 * dbusbind.c (xd_append_arg): Likewise.
7553
4230ab74
KR
7554 * emacs.c (main): Don't call syms_of_data twice.
7555
a0645cdd
MA
75562009-08-16 Michael Albinus <michael.albinus@gmx.de>
7557
7558 * dbusbind.c (xd_initialize): Add connection file descriptor to
7559 input_wait_mask, in order to let select() detect, whether a new
7560 message has been arrived.
ca4f31ea 7561 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 7562
485db0ba
MA
75632009-08-15 Michael Albinus <michael.albinus@gmx.de>
7564
1373f3be
SM
7565 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7566 New functions.
485db0ba
MA
7567
7568 * lisp.h (xd_pending_messages): Declare.
7569
7570 * keyboard.c (readable_events): Call xd_pending_messages.
7571
b5b98ff4
CY
75722009-08-15 Chong Yidong <cyd@stupidchicken.com>
7573
1373f3be 7574 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 7575
f8354c6e
CY
7576 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7577
b5b98ff4
CY
7578 * buffer.c (set_buffer_internal_1)
7579 (swap_out_buffer_local_variables): Check for unbound local
7580 variables (Bug#4138).
7581
8b9fc636
EZ
75822009-08-14 Eli Zaretskii <eliz@gnu.org>
7583
7584 * process.c (create_pty): Fix last change.
7585
ce959360
CY
75862009-08-13 Chong Yidong <cyd@stupidchicken.com>
7587
7588 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7589 (xbm_load_image): Caller changed.
64b807c9 7590 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 7591
c7baf7e9
NR
75922009-08-13 Nick Roberts <nickrob@snap.net.nz>
7593
7594 * process.c (create_pty): New function.
7595 (Fstart_process): Use it to allow Emacs to just associate a pty
7596 with the buffer. See associated change in gdb-mi.el.
7597 (list_processes_1): Deal with no program name.
7598 (start_process_unwind): Use pid == -2 to mean no process.
7599
1ac9108a
SM
76002009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7601
7602 * cmds.c (nonundocount): New global variable.
7603 (keys_of_cmds): Initialize it.
7604 (Fself_insert_command): Use it to combine upto 20 sequential chars
7605 into a single undo entry, just like the Qself_insert_command code in
7606 keyboard.c does.
7607 Call frame_make_pointer_invisible, also like the Qself_insert_command
7608 code in keyboard.c does.
7609 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7610 than its own local replacement for it.
7611
e267324c
KR
76122009-08-10 Ken Raeburn <raeburn@raeburn.org>
7613
1ac9108a 7614 * fns.c (concat): Don't re-set string length to its current value.
77437343 7615
1ac9108a
SM
7616 * coding.h (decode_coding_string, encode_coding_string):
7617 Use SBYTES macro.
f0bed503 7618
1ac9108a 7619 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
7620 (doprnt): Merge with doprnt1, discarding lispstrings code.
7621 * lisp.h (doprnt_lisp): Don't declare.
7622
416e006d
JL
76232009-08-07 Juri Linkov <juri@jurta.org>
7624
7625 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7626
6f7d5780
DN
76272009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7628
7629 * print.c (syms_of_print): Undo previous change.
7630
f19a0f5b
TZ
76312009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7632
7633 * lread.c (read1, syms_of_lread): Read hashtables back from the
7634 readable format.
7635
7636 * print.c (print_preprocess, print_object): Print hashtables fully
7637 and readably.
7638 (syms_of_print): Provide 'hashtable-print-readable.
7639
b9173dc2
AR
76402009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7641
7642 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7643 no family set.
7644 (nsfont_open): Handle case when entity has no family.
7645
1586503c
AR
76462009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7647
7648 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7649 element, not a list, for match case.
7650
087048cd
KH
76512009-07-28 Kenichi Handa <handa@m17n.org>
7652
7653 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7654 rigidly.
7655
7656 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7657 font_parse_xlfd. Check font properties more rigidly.
7658
780c2506
DN
76592009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7660
31fd7c5c
JB
7661 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7662 bsd-common.h.
780c2506 7663
a8c0cc18
KH
76642009-07-27 Kenichi Handa <handa@m17n.org>
7665
7666 * xfaces.c (face_with_height): Call font_clear_prop.
7667
4fbe2306
CY
76682009-07-26 Chong Yidong <cyd@stupidchicken.com>
7669
111d9af3
CY
7670 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7671
7672 * xterm.c (x_term_init): Use Qx.
7673
4fbe2306
CY
7674 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7675
1ac9108a 7676 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
7677 (ns_get_color): Revert 2009-07-16 change.
7678
beb0b7f9
EZ
76792009-07-25 Eli Zaretskii <eliz@gnu.org>
7680
7681 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 7682 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 7683
2baf5e76
KR
76842009-07-25 Ken Raeburn <raeburn@raeburn.org>
7685
1ac9108a
SM
7686 * coding.h (decode_coding_string, encode_coding_string):
7687 Use SCHARS macro.
8890e5f5 7688
2baf5e76 7689 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 7690 (load_depth): Delete.
2baf5e76
KR
7691 (Qload_in_progress): New variable.
7692 (load_unwind): Don't reference load_depth or load_in_progress.
7693 (Fload): Likewise; specbind Qload_in_progress instead.
7694 (init_lread): Don't initialize load_depth.
7695 (syms_of_lread): Initialize and protect Qload_in_progress.
7696
1395c6f5
AR
76972009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7698
7699 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7700
4e2f36cf
AR
77012009-07-23 Yavor Doganov <yavor@gnu.org>
7702
7703 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7704
5dd9a6f7
AR
77052009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7706
7707 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
7708 Bugs 3792, 3720, 2402.
7709 (ns_lookup_indexed_color): Check for bad index.
7710 (ns_index_color): Init unused slot to 0.
7711 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7712 Bug 3714, possibly 3082.
5dd9a6f7 7713
c902b920
JR
77142009-07-22 Jason Rumney <jasonr@gnu.org>
7715
1ac9108a
SM
7716 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7717 Position IME window at cursor (Bug#2570).
c902b920
JR
7718 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7719 (globals_of_w32fns): Dynamically load functions required above.
7720
7721 * w32term.c (w32_draw_window_cursor): Send message to reposition
7722 any IME window.
7723
090101cf
CY
77242009-07-21 Chong Yidong <cyd@stupidchicken.com>
7725
7726 * fileio.c: Revert 2009-07-16 changes.
7727 (Vauto_save_include_big_deletions): New variable.
7728 (Fdo_auto_save): Disable auto-save only if
7729 auto-save-include-big-deletions is nil.
7730
e6583e3d
CY
77312009-07-21 Chong Yidong <cyd@stupidchicken.com>
7732
7733 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7734 the overflowed pixels into account (Bug#3879).
7735
ece435a5
KR
77362009-07-21 Ken Raeburn <raeburn@raeburn.org>
7737
7738 * lread.c (load_depth): New variable.
7739 (Fload, load_unwind, init_lread): Set it to the load recursion
7740 depth; set load_in_progress as a simple boolean based on the
7741 current load_depth. (Bug#3892)
7742
40b2d973
AR
77432009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7744
7745 * nsfont.m (ns_has_attribute): Remove.
7746 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7747
10be7e0d
JL
77482009-07-18 Juri Linkov <juri@jurta.org>
7749
7750 * process.c (Fset_process_query_on_exit_flag): Mention killing
7751 a buffer in docstring.
7752
fa055055
KH
77532009-07-17 Kenichi Handa <handa@m17n.org>
7754
7755 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7756
042f7b69
YM
77572009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7758
7759 * nsfns.m (Fns_set_alpha): Remove function.
7760 (syms_of_nsfns): Don't defsubr it.
7761
7762 * nsterm.m (ns_get_color): Remove incompatible color formats.
7763 (ns_color_to_lisp): Generate #rrggbb color format string.
7764
4be941e3
RS
77652009-07-16 Richard Stallman <rms@gnu.org>
7766
7767 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7768 (Fset_buffer_auto_saved): Handle save_length = -2.
7769
4e6b227d
CY
77702009-07-16 Chong Yidong <cyd@stupidchicken.com>
7771
7772 * xterm.c (Qx_gtk_map_stock): New var.
7773
7774 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7775 of calling intern each time.
7776
a1856973
YM
77772009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7778
7779 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7780 does tiling.
7781
7782 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7783
497e54d8
KH
77842009-07-14 Kenichi Handa <handa@m17n.org>
7785
72d36834
KH
7786 * font.c (font_vconcat_entity_vectors): New function.
7787 (struct font_sort_data): New member font_driver_preference.
7788 (font_compare): Check font_driver_preference.
7789 (font_sort_entities): The format of the first argument changed.
7790 (font_delete_unmatched): Likewise.
7791 (font_list_entities): The return type changed.
7792 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
7793 (font_find_for_lface): Adjuste for the above changes.
7794 Don't suppress the checking of C even if the repertory supports it.
7795 (Flist_fonts): Adjust for the above changes.
72d36834 7796
1ac9108a
SM
7797 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7798 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
7799 Reject a font who has adstyle property that is different from a
7800 langname derived from registry property.
1ac9108a 7801 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 7802
b6046155
EZ
78032009-07-13 Eli Zaretskii <eliz@gnu.org>
7804
7805 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7806 local copy of dirfilename.
7807
fb6b6049
KH
78082009-07-13 Kenichi Handa <handa@m17n.org>
7809
e2402a5e
KH
7810 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7811 against max_char.
7812
fb6b6049
KH
7813 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7814 calling XSYMBOL (sym).
7815
65156807
EZ
78162009-07-11 Eli Zaretskii <eliz@gnu.org>
7817
1ac9108a
SM
7818 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7819 New function.
7820 (directory_files_internal) [WINDOWSNT]:
7821 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
7822 the filesystem of the directory is fast or slow.
7823
7824 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7825 file name.
7826 (is_slow_fs): New function.
7827 (stat): Use it to determine whether to issue more system calls to
7828 get accurate file attributes, when w32-get-true-file-attributes is
7829 `local'.
7830
e0ab5fcf
JD
78312009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7832
7833 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7834 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7835 parameter font-parameter as default to the font dialog.
7836
784ceded
KH
78372009-07-10 Kenichi Handa <handa@m17n.org>
7838
7839 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7840
fb8edc0b
EZ
78412009-07-09 Eli Zaretskii <eliz@gnu.org>
7842
1ac9108a 7843 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7844
fb8edc0b
EZ
7845 * w32.c (stat): Treat UNC file names as residing on remote
7846 drives. (Bug#3542)
7847
635c75b1
KH
78482009-07-09 Kenichi Handa <handa@m17n.org>
7849
7850 * fontset.c (fontset_find_font): Fix previous change.
7851
c1d5ce94
MA
78522009-07-08 Michael Albinus <michael.albinus@gmx.de>
7853
7854 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7855 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7856 error flag.
7857
edb61b39
KH
78582009-07-08 Kenichi Handa <handa@m17n.org>
7859
374bf7e4
KH
7860 * fontset.c (fontset_find_font): Fix the logic of handling
7861 charset_matched.
7862 (font_for_char): Delete unused var.
7863 (generate_ascii_font_name): Delete it.
7864
edb61b39
KH
7865 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7866
7867 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7868 (encode_coding_sjis): Fix the code range check.
7869
0f3f018c
CY
78702009-07-07 Chong Yidong <cyd@stupidchicken.com>
7871
7872 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7873 (Fexpand_file_name): Copy string data properly (Bug#3772).
7874
fcaf6f3a
JD
78752009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7876
7877 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7878 first MapNotify.
7879
6809ca75
KH
78802009-07-07 Kenichi Handa <handa@m17n.org>
7881
7882 * character.h (unibyte_has_multibyte_table): Delete extern.
7883 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7884
7885 * charset.c (Fset_charset_priority): Update charset_unibyte.
7886 (syms_of_charset): Initialize charset_unibyte.
7887
7888 * character.c (unibyte_has_multibyte_table): Delete it.
7889 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7890 charset_unibyte.
7891 (multibyte_char_to_unibyte_safe): Likewise.
7892 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7893
1ac9108a 7894 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
7895 (x_produce_glyphs): Likewise.
7896
7897 * .gdbinit (xcharset): Fix the treating $arg0.
7898
ad9e2d54
EZ
78992009-07-04 Eli Zaretskii <eliz@gnu.org>
7900
7901 Emulation of `getloadavg' on MS-Windows.
50426a04 7902 * w32.c: Include float.h.
ad9e2d54
EZ
7903 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7904 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7905 (get_native_system_info, get_system_times): New functions.
7906 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7907 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7908 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7909 g_b_init_get_system_times, and num_of_processors.
7910
0a3472c7
JR
79112009-07-03 Jason Rumney <jasonr@gnu.org>
7912
7913 * w32term.c (w32_initialize): Use standard types.
7914
80904120
EZ
79152009-07-03 Eli Zaretskii <eliz@gnu.org>
7916
7917 * dired.c (Ffile_attributes): Decode user and group names by the
7918 locale's encoding. (Bug#3443)
7919
6978862d
DN
79202009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7921
f8d23104
DN
7922 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7923 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7924
7925 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7926
7927 * term.c (init_tty): Remove spurious #ifdef.
7928
6978862d
DN
7929 * m/mips.h: Mention this file is also used for netbsd.
7930 * m/pmax.h: Remove file.
7931
e044e4fc
JD
79322009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7933
7934 * xterm.h (struct x_display_info): Add invisible_cursor.
7935 (struct x_output): Add current_cursor.
7936
7937 * xterm.c (XTtoggle_invisible_pointer): New function.
7938 (x_define_frame_cursor): Don't define cursor if invisible or the
7939 same as before. Set current_cursor.
7940 (x_create_terminal): Set toggle_invisible_pointer_hook.
7941
7942 * xfns.c (make_invisible_cursor): New function.
7943 (x_set_mouse_color): Call make_invisible_cursor.
7944 Set current_cursor.
7945 (x_window): Set current_cursor.
7946
7947 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7948
7949 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7950 inserting a character.
7951 (read_avail_input): Call frame_make_pointer_visible.
7952
7953 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
7954 (frame_make_pointer_invisible, frame_make_pointer_visible):
7955 New functions.
e044e4fc
JD
7956 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7957
7958 * frame.h: Declare frame_make_pointer_invisible and
7959 frame_make_pointer_visible.
7960 (struct frame): Add pointer_invisible.
7961
574c8efa
JD
79622009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7963
7b507248
JD
7964 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7965 frame isn't visible.
7966 (xg_frame_resized): If width/height is -1, get size of window
7967 from X server.
7968
7969 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7970 for MapNotify.
7971
835bdaa7 7972 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 7973 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 7974 (flush_and_sync): Reintroduce.
574c8efa 7975
3f1c6666 79762009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 7977
31fd7c5c 7978 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
7979
7980 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7981 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7982
7983 * frame.h: Declare Qsticky.
7984
cad9ef74
JD
7985 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7986
7987 * nsfns.m (ns_frame_parm_handlers): Ditto.
7988
7989 * frame.c: Declare Qsticky.
7990 (frame_parms): Add sticky.
7991
7992 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7993
7994 * xterm.h: Declare x_set_sticky.
7995
7996 * xterm.c (x_set_sticky): New function.
7997
69b16610
JD
7998 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7999 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8000 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
8001
8002 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8003
8004 * frame.c: Qmaximized is new.
8005 (x_set_frame_parameters): Do not handle fullscreen specially.
8006 Only set width and height if explicitly set.
8007 (x_set_fullscreen): Handle Qmaximized.
8008 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8009 (syms_of_frame): Initialize Qmaximized.
8010
1ac9108a
SM
8011 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8012 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
8013
8014 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
8015 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8016 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
8017 set gravity to NorthWestGravity when USE_GTK.
8018 (set_wm_state): New function.
31fd7c5c 8019 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
8020 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8021 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 8022 or the case when no window manager is running. That means remove calls
3f1c6666
JD
8023 to x_real_positions and x_fullscreen_adjust.
8024
8025 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8026 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8027 flush_and_sync.
8028 (xg_height_changed): New function.
8029 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
8030 and gtk_window_set_policy. Set frame gravity after parsing the
8031 geometry string.
3f1c6666
JD
8032 (xg_update_frame_menubar, free_frame_menubar)
8033 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8034 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8035 Remove calls to xg_frame_set_char_size.
8036
fd503d99
KH
80372009-07-01 Kenichi Handa <handa@m17n.org>
8038
8039 * keyboard.c (decode_keyboard_code): New function.
8040 (tty_read_avail_input): Decode the input bytes if necessary.
8041
1ac9108a
SM
8042 * coding.c (setup_coding_system):
8043 Initialize coding->carryover_bytes to 0.
fd503d99
KH
8044 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8045 use Qno_conversion.
8046
24ed93fb
YM
80472009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8048
8049 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8050
99061dfc
CY
80512009-06-30 Chong Yidong <cyd@stupidchicken.com>
8052
1ac9108a 8053 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 8054
ff90fbde
JR
80552009-06-30 Jason Rumney <jasonr@gnu.org>
8056
8057 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8058 is already loaded.
8059 Set user model ID if supported (bug#1849).
8060
5f445726
JM
80612009-06-29 Jim Meyering <meyering@redhat.com>
8062
8063 Remove useless if-before-xfree test.
8064 * nsfont.m (nsfont_close): Remove useless test.
8065 * term.c (delete_tty): Likewise.
8066 * w32.c (system_process_attributes): Likewise.
8067 * w32font.c (w32font_close): Likewise.
8068 * xfaces.c (x_free_gc): Likewise.
8069 * xselect.c (buffer): Likewise.
8070
b9607587
AS
80712009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8072
8073 * process.c (send_process): Keep decoded string in a local
8074 variable and protect it from GC. (Bug#3521)
8075
89ba96f4
EZ
80762009-06-28 Eli Zaretskii <eliz@gnu.org>
8077
8078 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8079 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8080
098a1589
CY
80812009-06-28 Chong Yidong <cyd@stupidchicken.com>
8082
485422be
CY
8083 * xdisp.c (start_display, handle_face_prop)
8084 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
8085 (redisplay_window, try_window_id, produce_image_glyph):
8086 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 8087
098a1589
CY
8088 * xterm.c (x_update_window_begin, x_new_focus_frame)
8089 (x_scroll_bar_handle_click, handle_one_xevent)
8090 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8091 (x_make_frame_visible, x_make_frame_invisible)
8092 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8093 code chunks that are now obsolete.
8094
78c38319
MA
80952009-06-28 Michael Albinus <michael.albinus@gmx.de>
8096
8097 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8098 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8099 for hours, when optimzation is enabled.
8100 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8101 (xd_read_message): Make them static.
8102
4189ed40
CY
81032009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8104
8105 * term.c (turn_on_face): Allow simultaneously bold and dim
8106 terminal faces (Bug#3530).
8107
cd9b5e16
CY
81082009-06-27 Chong Yidong <cyd@stupidchicken.com>
8109
4e23bedb
CY
8110 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8111
cd9b5e16
CY
8112 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8113 truncation glyphs (Bug#3686).
8114
07cc3c35
GM
81152009-06-27 Glenn Morris <rgm@gnu.org>
8116
8117 * m/pmax.h: Restore file, with only netbsd portions.
8118
31fd7c5c 81192009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 8120
cd9b5e16 8121 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 8122
42d4a64f
KH
81232009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8124
8125 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8126 the arg FORCE_SYMBOL.
8127
930fe55b 81282009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
8129
8130 * fontset.c (fontset_find_font): When a usable rfont_def is found
8131 in a fallback font-group, make it the first element of the group.
8132
57ebc3fd
CY
81332009-06-24 Chong Yidong <cyd@stupidchicken.com>
8134
8135 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8136
f084f942
KH
81372009-06-24 Kenichi Handa <handa@m17n.org>
8138
8139 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8140 set for C.
8141 (fontset_font): Record the availability of a font for C both in
8142 the realized fontsets of the current one and the default one.
8143
2f686c87
DN
81442009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8145
8146 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8147 conditional, it is always defined on AIX.
8148
666e158e
MB
81492009-06-23 Miles Bader <miles@gnu.org>
8150
8151 * window.c (Vrecenter_redisplay): New variable.
8152 (syms_of_window): Initialize it.
8153 (Qtty): New extern declaration.
8154 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8155
c6da7cd2
JM
81562009-06-23 Jim Meyering <meyering@redhat.com>
8157
1ac9108a
SM
8158 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8159 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 8160 pointer dereferences are guaranteed to be valid.
c6da7cd2 8161
678dca3d
KH
81622009-06-23 Kenichi Handa <handa@m17n.org>
8163
74d75424
KH
8164 * emacs.c (main): Call init_font ().
8165
8166 * font.h (Vfont_log): Extern it.
8167 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8168
8169 * font.c (font_sort_entities, font_list_entities)
8170 (font_matching_entity, font_open_entity)
8171 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8172 (Vfont_log): Delete static.
8173 (font_log_env_checked): Delete this variable.
8174 (font_add_log): Don't check font_log_env_checked.
8175 (font_deferred_log): Check Vfont_log.
8176 (init_font): New function.
8177
678dca3d
KH
8178 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8179
8180 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8181
8182 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8183
8184 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8185
8186 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8187 (face_for_char): Don't call font_deferred_log here.
8188 (font_for_char): Likewise.
8189
8a668709
CY
81902009-06-22 Chong Yidong <cyd@stupidchicken.com>
8191
9a01ee33
CY
8192 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8193 rather than its background_width for drawing the overline and
8194 underline (Bug#489).
8195
8196 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8197 rather than its background_width for drawing the overline and
8198 underline (Bug#489).
ec7c9926
CY
8199 (xg_default_icon_file): New variable.
8200 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8201 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 8202
8a668709
CY
8203 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8204 (load_overlay_strings): Remove externs.
8205 (fast_find_position): Function deleted.
8206 (mouse_face_from_buffer_pos): New function, based on
8207 fast_find_position. Correctly handle before-strings,
8208 display-strings, and after-strings (Bug#1220).
8209 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8210
4d4c02d8
CY
82112009-06-21 Chong Yidong <cyd@stupidchicken.com>
8212
1ac9108a 8213 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
8214 (move_it_in_display_line_to, move_it_in_display_line_to)
8215 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8216
70243478
CY
82172009-06-21 Chong Yidong <cyd@stupidchicken.com>
8218
8219 * Branch for 23.1.
8220
13087e59
JR
82212009-06-21 Jason Rumney <jasonr@gnu.org>
8222
8223 * w32term.c (keyboard_codepage): New static variable.
8224 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8225 (w32_read_socket) [WM_CHAR]: Use it to decode character
8226 input (bug#3237).
8227 (w32_initialize): Initialize it.
8228 (codepage_for_locale): New function.
8229
4735b74e
KR
82302009-06-20 Ken Raeburn <raeburn@raeburn.org>
8231
8232 * process.c (status_message): Pass Faset index argument as a lisp
8233 object, so as to work with USE_LISP_UNION_TYPE.
8234
0e727afa
YM
82352009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8236
8237 * coding.c (Ffind_coding_systems_region_internal):
8238 Cache checked characters.
8239
cf299835
KH
82402009-06-18 Kenichi Handa <handa@m17n.org>
8241
1ac9108a 8242 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 8243
90f20d94
AS
82442009-06-18 Andreas Schwab <aschwab@redhat.com>
8245
8246 * xdisp.c (redisplay_internal): Check that the frame is still
8247 live after redisplay of its windows.
8248 (redisplay_windows): Check that the window is still live.
8249
7f1faf1c
KH
82502009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8251
8252 * coding.c (detect_coding_utf_16): Fix previous change.
8253
cc13543e
KH
82542009-06-16 Kenichi Handa <handa@m17n.org>
8255
8256 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8257 UTF-16 by checking the dispersion of Eth and Oth bytes.
8258
977b85f4
AS
82592009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8260
8261 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8262
66bd43d1
KH
82632009-06-15 Kenichi Handa <handa@m17n.org>
8264
8265 * process.c (status_message): Fix previous change. Be sure to
8266 decode a localized string.
8267
cb5ca9c5
YM
82682009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8269
8270 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8271 add comment explaining why.
8272
ec7709ba 82732009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 8274
ec7709ba 8275 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 8276
4b7f335c
AR
82772009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8278
8279 * nsfont.m (ns_attribute_value): Remove.
8280 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8281 (ns_has_attribute): Shrink the normal range.
8282 (ns_findfonts): Don't worry about requested spec in determining
8283 need for synthItal.
e41820ee 8284 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 8285
73b26103
SZ
82862009-06-14 Seiji Zenitani <zenitani@mac.com>
8287
8288 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8289
5753e4da
KH
82902009-06-11 Kenichi Handa <handa@m17n.org>
8291
8292 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8293 overhang for the static composition case.
8294
3561b671
KH
82952009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8296
5753e4da
KH
8297 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8298 overhang for the automatic composition case.
8299
3561b671
KH
8300 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8301 composition case.
8302
852bbd41
CY
83032009-06-10 Chong Yidong <cyd@stupidchicken.com>
8304
8305 * xdisp.c (get_next_display_element): When handling wrap-prefix
8306 and line-prefix, treat \n as a control character (bug#3502).
8307
9903d1e6
KH
83082009-06-10 Kenichi Handa <handa@m17n.org>
8309
8310 * font.c (font_parse_family_registry): Fix for one-char foundry.
8311 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8312
0bcbaaaa
CY
83132009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8314
8315 * process.c (status_message): Fix handling of multibyte signal
8316 string (Bug#3499).
8317
40aa3f13
JM
83182009-06-09 Jim Meyering <meyering@redhat.com>
8319
1f80c7e2
CY
8320 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8321 color name is missing.
40aa3f13 8322
72d51285
KH
83232009-06-09 Kenichi Handa <handa@m17n.org>
8324
8325 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8326 FROM-CODE and TO-CODE are codepoints of CHARSET.
8327
c1d04d84
AR
83282009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8329
8330 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8331
83322009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8333
8334 Changes to support :script/:lang/:otf in NS font driver.
8335 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8336 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8337 indicate not part of font driver interface, and change callers.
8338 (ns_get_family): Remove pointless null check.
8339 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8340 ns_spec_to_descriptor, ns_descriptor_to_entity.
8341 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8342 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8343 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8344 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8345 (ns_get_req_script, ns_accumulate_script_ranges)
8346 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8347 New functions.
8348 (nsfont_list, nsfont_match): Use ns_findfonts.
8349 (nsfont_open): Use font descriptor instead of traits.
8350 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8351 (dump_glyphstring): Rename to ns_dump_glyphstring.
8352
c7eb9816
AR
8353 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8354
c1d04d84
AR
8355 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8356
8357 * fontset.c (fontset_from_font): Remove NS-specific code.
8358
ec7709ba 83592009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
8360
8361 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8362 nonactive windows.
8363
31fd7c5c 83642009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 8365
1ac9108a 8366 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 8367
68852c13 83682009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
8369
8370 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8371
6756cd1d
CY
83722009-06-07 Chong Yidong <cyd@stupidchicken.com>
8373
8374 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8375 account for the overflowing of newlines into the last glyph on the
8376 display line (Bug#3482).
8377
28bf482a
DR
83782009-06-05 David Reitter <david.reitter@gmail.com>
8379
ec7709ba
JB
8380 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8381 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
8382 Fns_selection_exists_p, Fns_selection_owner_p.
8383
fdb55376
JR
83842009-06-03 Jason Rumney <jasonr@gnu.org>
8385
8386 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8387 available. (Bug#3379)
8388
05129fbe
KH
83892009-05-29 Kenichi Handa <handa@m17n.org>
8390
1ac9108a
SM
8391 * coding.c (get_translation_table):
8392 Check Venable_character_translation.
05129fbe 8393
ec7709ba 83942009-05-26 David Reitter <david.reitter@gmail.com>
15891144 8395
ec7709ba
JB
8396 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8397 (x_make_frame_visible): Move frame to front rather than calling
15891144 8398 ns_raise_frame().
ec7709ba 8399 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 8400 isn't key window.
ec7709ba 8401 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
8402 drawRect may be called by NSView even if the frame is hidden.
8403
ec7709ba
JB
8404 * nsfns.m (Fx_create_frame): Follow other ports in
8405 determining visibility; default to t. Ensure async_visible is set.
15891144 8406
21f73755
EZ
84072009-05-23 Eli Zaretskii <eliz@gnu.org>
8408
8409 * dired.c (Ffile_attributes): Doc fix.
8410
34001e41
CY
84112009-05-22 Chong Yidong <cyd@stupidchicken.com>
8412
8413 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8414
46306a17
SM
84152009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8416
8417 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8418 and xfont_scratch_props.
8419 (syms_of_xfont): Do it here instead.
8420 (xfont_find_ccl_program): Delete, unused.
8421 (xfont_open): Delete unused var `i'.
8422
ef6e0694
KH
84232009-05-21 Kenichi Handa <handa@m17n.org>
8424
8425 * fontset.c (Qlatin): Don't make it static.
8426
46306a17
SM
8427 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8428 New functions.
ef6e0694
KH
8429 (xfont_scripts_cache, xfont_scratch_props): New variables.
8430 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
8431 (xfont_list_pattern): Argument changed. Callers changed.
8432 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
8433 (xfont_list): Don't reject a font spec with :script property.
8434 (xfont_has_char): Fix setting of encoding.
8435 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8436 xfont_scratch_props.
8437
84382009-05-19 Kenichi Handa <handa@m17n.org>
8439
46306a17 8440 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
8441 Callers changed.
8442
84432009-05-18 Kenichi Handa <handa@m17n.org>
8444
8445 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8446
ac71ced7
SM
84472009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8448
8449 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8450 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8451
1c6d1051
YM
84522009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8453
8454 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8455 (x_delete_terminal): Dissociate resource database from display and
8456 then call XrmDestroyDatabase before closing display.
8457
9b9b779c
AR
84582009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8459
8460 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
8461 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8462 whether selected frame is viable before raising it (based on patch
8463 by David Reitter), and improve commentary.
8464 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 8465
cccd42d5
KH
84662009-05-15 Kenichi Handa <handa@m17n.org>
8467
8468 * font.c (Ffont_spec): Check arguments.
8469
337fbd17
CY
84702009-05-14 Chong Yidong <cyd@stupidchicken.com>
8471
8472 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8473 weight when testing attributes (Bug#3282).
8474
47a6002f
JD
84752009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8476
8477 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8478 what we expect to get in the next ConfigureNotify event.
8479
9cb363db
YM
8480 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8481 before Xft one (Bug#1696).
8482
b9126609
CY
84832009-05-07 David Reitter <david.reitter@gmail.com>
8484
8485 * nsfns.m (Fx_display_planes): Compute bitplanes using
8486 NSBitsPerPixelFromDepth (Bug#3207).
8487
27a69fd9
CY
84882009-05-10 Chong Yidong <cyd@stupidchicken.com>
8489
8490 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8491
00f37552
TTN
84922009-05-10 Ulrich Mueller <ulm@gentoo.org>
8493
8494 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8495
2d82a920
DR
84962009-05-07 David Reitter <david.reitter@gmail.com>
8497
ec7709ba
JB
8498 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8499 Respect mouse face background.
2d82a920 8500
46b0d52d
DR
85012009-05-07 David Reitter <david.reitter@gmail.com>
8502
ec7709ba
JB
8503 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8504 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
8505 in ns_update_begin and ns_update_end.
8506
ce1b23bb
SM
85072009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8508
5996e1b7
SM
8509 * nsfns.m (ns_get_screen): Rewrite.
8510 Don't presume selected-frame is of type `ns'.
8511
ba98e3a0
SM
8512 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8513 all drivers.
8514
ce1b23bb
SM
8515 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8516
bcda200f
YM
85172009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8518
8519 * keyboard.h (add_user_signal): Fix typo in extern.
8520
8521 * lisp.h (add_user_signal): Remove extern.
8522
8523 * unexelf.c (unexec): Consider a section to precede the .bss section
8524 if its addresses overlap that of .bss.
8525 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8526 instead of dumping process.
8527
864660a2
SM
85282009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8529
8530 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8531
50da4e56
SM
85322009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8533
8534 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8535
51520a1a
DN
85362009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8537
8538 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8539 any statements.
8540
409ea3a1
AS
85412009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8542
59c4c60f
AS
8543 * process.c (read_process_output): Make sure the current buffer is
8544 always restored.
8545
409ea3a1
AS
8546 * coding.c (record_conversion_result): Don't modify
8547 Vlast_code_conversion_error for successful result.
8548 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8549
56f00ed2
KH
85502009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8551
8552 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 8553 (load_charset_map): Remove unnecessary code.
56f00ed2 8554
4491c9d2
DR
85552009-04-30 David Reitter <david.reitter@gmail.com>
8556
35f5b128 8557 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
8558 through f24.
8559
6970f632
CY
85602009-04-30 Chong Yidong <cyd@stupidchicken.com>
8561
8562 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8563
8564 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8565 face_at_buffer_position.
8566 (face_before_or_after_it_pos, get_next_display_element)
8567 (note_mouse_highlight): Update face_at_buffer_position call.
8568
8569 * term.c (term_mouse_highlight):
8570 * msdos.c (IT_note_mouse_highlight):
8571 * fontset.c (Finternal_char_font):
35f5b128 8572 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
8573
8574 * dispextern.h (face_at_buffer_position): Update prototype.
8575
0c616f63
KH
85762009-04-30 Kenichi Handa <handa@m17n.org>
8577
35f5b128 8578 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 8579
ad3aaf33
AS
85802009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8581
8582 * callproc.c (Fcall_process): Fix GC protection. Make sure
8583 current buffer is always restored.
8584
c3c963a0
YM
85852009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8586
8587 * atimer.c (init_atimer): Also clear stopped_atimers.
8588
8589 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8590
7e3386cb
YM
8591 * process.c (create_process): Clean up merger residues of
8592 2008-07-17 change.
8593
91f68422
CY
85942009-04-29 Ulrich Mueller <ulm@gentoo.org>
8595
8596 * lread.c (Vread_circle): New variable.
8597 (read1): Disable recursive read if Vread_circle is nil.
8598
24b34550
KH
85992009-04-29 Kenichi Handa <handa@m17n.org>
8600
8601 * fontset.h (set_default_ascii_font): Delete extern.
8602
8603 * fontset.c (set_default_ascii_font): Delete this unused function.
8604
8605 * frame.c (x_set_font): When ARG is a font-object, check if the
8606 font-object matches with the ASCII font-spec of the frame's
9c358bda 8607 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 8608
77bf07e1
AS
86092009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8610
8611 * fns.c (Flocale_info): Protect vector from GC during decoding.
8612
8613 * process.c (Fstart_process): Protect argv strings from GC during
8614 encoding.
8615
2c55aacf
AS
86162009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8617
8618 * sysdep.c: Include <ctype.h>.
8619
b892d3c9
DR
86202009-04-27 David Reitter <david.reitter@gmail.com>
8621
35f5b128 8622 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
8623 Remove commented-out code.
8624
9d0644c4
JB
86252009-04-26 Johan Bockgård <bojohan@gnu.org>
8626
8627 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8628
b7053016
JR
86292009-04-25 Jason Rumney <jasonr@gnu.org>
8630
8631 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8632
4e8231f3
YM
86332009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8634
8635 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8636 Swap bytes in short integer if fringe bitmap width > 8.
8637
493dcf2c
KH
86382009-04-23 Kenichi Handa <handa@m17n.org>
8639
8640 * xfaces.c (Fx_list_fonts): If a font size is specified in
8641 PATTERN, set it in returned scalable fonts.
8642
401e9e57
CY
86432009-04-22 Chong Yidong <cyd@stupidchicken.com>
8644
708e05dc
CY
8645 * keyboard.c (Fset_input_meta_mode): Doc fix.
8646
8647 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8648
1ac9108a 8649 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
8650
8651 * coding.c (Fterminal_coding_system): Doc fix.
8652
8653 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8654 (Fx_display_pixel_height, Fx_display_planes)
8655 (Fx_display_color_cells, Fx_server_max_request_size)
8656 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8657 (Fx_display_mm_height, Fx_display_mm_width)
8658 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
8659 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8660 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
8661 (check_x_display_info): Handle terminal objects instead of
8662 terminal ids.
8663
401e9e57
CY
8664 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8665 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
8666 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8667 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 8668
df80c7f0
KH
86692009-04-21 Kenichi Handa <handa@m17n.org>
8670
5a8f12af 8671 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 8672 (font_score): Check AVGWIDTH too.
908567ef 8673
df80c7f0
KH
8674 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8675 worst case.
1ac9108a
SM
8676 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8677 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 8678
705af33f
JR
86792009-04-19 Jason Rumney <jasonr@gnu.org>
8680
8681 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 8682 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
8683
8684 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8685 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8686 get_phys_cursor_geometry.
8687
b71ac3dd 8688 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
8689 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8690 using get_phys_cursor_geometry.
8691
8692 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8693 correctly calculated.
8694
dc2933eb
JD
86952009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8696
1ac9108a
SM
8697 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8698 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
8699 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8700 is deprecated.
8701
973e7849
AS
87022009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8703
8704 * font.c (font_put_frame_data): Use xfree instead of free.
8705
314d66f4
JB
87062009-04-17 Juanma Barranquero <lekktu@gmail.com>
8707
8708 * w32font.c (Qja, Qko): Remove declarations.
8709 (syms_of_w32font): Don't DEFSYM them.
8710
cf702558
CY
87112009-04-17 Chong Yidong <cyd@stupidchicken.com>
8712
8713 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8714
8715 * font.h (Qja, Qko): Extern them.
8716
8717 * ftfont.c (Qja, Qko): Remove declarations.
8718
8719 * xfont.c (Qja, Qko): Remove declarations.
8720
b50504f5
KH
87212009-04-17 Kenichi Handa <handa@m17n.org>
8722
bde25748
KH
8723 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8724 string from a vector to handle Latin-1 characters correctly.
8725
b50504f5
KH
8726 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8727 entity even if the cache hits.
8728
f4646fff
AS
87292009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8730
8731 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 8732 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 8733
e7deaab0
AS
8734 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8735 * lisp.h: Adjust prototypes.
8736
0a0e7d49
CY
87372009-04-16 Chong Yidong <cyd@stupidchicken.com>
8738
8739 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8740 change (Bug#3003).
8741
3c908a57
KH
87422009-04-16 Kenichi Handa <handa@m17n.org>
8743
1ac9108a 8744 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
8745
8746 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8747 adstyle.
8748
8749 * ftfont.c (Qja, Qko): Don't make them static.
8750 (enum ftfont_cache_for): New enum.
8751 (fc_charset_table): Undo the previous change.
8752 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
8753 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8754 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
8755 non-scarable font, try to get AVERAGE_WIDTH.
8756 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8757 Change ft_face_cache from a list of a hash-table. Don't check
8758 `ja' and `ko' adstyle here.
8759 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8760 FTFONT_CACHE_FOR_CHARET.
8761 (ftfont_get_charset): Undo the previous change.
1ac9108a 8762 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
8763 (ftfont_close): Likewise.
8764 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8765
8766 * font.c (font_sort_entites): Change the meaning of the arg
8767 BEST-ONLY. Don't optimize for VEC of lenght 1.
8768 (font_select_entity): Just return the value of font_sort_entites.
8769
8770 * xfaces.c (merge_face_vectors): Reflect font properties in
8771 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8772 font_clear_prop if a face attribute doesn't change.
8773
3c908a57
KH
8774 * charset.h (charset_ksc5601): Extern it.
8775
8776 * charset.c (charset_ksc5601): New variable.
8777 (Fdefine_charset_internal): Set charset_ksc5601.
8778 (init_charset_once): Initialize charset_ksc5601 to -1.
8779
d65859c3
DN
87802009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8781
8782 * fileio.c (history_delete_duplicates): Remove unused declaration.
8783
8784 * callint.c (history_delete_duplicates): New declaration.
8785 (Fcall_interactively): Remove command history duplicates when
8786 history_delete_duplicates is true.
8787
3ba010e5
EZ
87882009-04-14 Eli Zaretskii <eliz@gnu.org>
8789
8790 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8791
06f19b91
KH
87922009-04-14 Kenichi Handa <handa@m17n.org>
8793
8794 * font.c (Ffont_info): Fix docstring. Fix the second element of
8795 the returned value (bug#2949).
8796
2cce8bfc
CY
87972009-04-14 Chong Yidong <cyd@stupidchicken.com>
8798
8799 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8800
d156542d
KH
88012009-04-14 Kenichi Handa <handa@m17n.org>
8802
8803 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8804 encoding charset is ascii_compatible.
8805
8806 * charset.c (Fdefine_charset_internal): Make charset
8807 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8808 code_offset is 0, and covers all ASCII characters.
8809
86fa089e
SM
88102009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8811
8812 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8813 (ns_string_to_pasteboard_internal):
8814 * nsmenu.m (process_dialog):
8815 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8816 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8817 * lisp.h (Fx_load_color_file): Declare.
8818
a8a3728b
KH
88192009-04-13 Kenichi Handa <handa@m17n.org>
8820
1ac9108a 8821 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
8822 (font_select_entity): Suppress the code to optimize for the same
8823 kind of fonts.
8824 (font_load_for_lface): Get a font that supports at least ASCII
8825 characters.
8826
8827 * ftfont.c (Qja, Qko): New variables.
8828 (fc_charset_table): Delete uniquifier data for iso8859-1.
8829 (ftfont_get_latin1_charset): New function.
8830 (get_adstyle_property): New function.
8831 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8832 bitmap fonts.
8833 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8834 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8835 `ko' or `ja'.
8836 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8837 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8838 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8839 property.
8840 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8841 (syms_of_ftfont): DEFSYM Qja and Qko.
8842
483670b5
KH
88432009-04-09 Kenichi Handa <handa@m17n.org>
8844
12b55765
KH
8845 * charset.c (map_charset_chars): For a charset of `superset'
8846 method, fix calculation of code range.
8847
483670b5
KH
8848 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8849 from the list of extra properties.
8850 (font_clear_prop): Be sure to delete `:name' font property.
8851
57d3b93b
KH
88522009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8853
b4b2c2ca
YM
8854 * dispnew.c (redraw_overlapping_rows): Fix detection of
8855 overlapping for topmost and bottommost rows.
8856
1ac9108a 8857 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8858
472c3609
JR
88592009-04-06 Jason Rumney <jasonr@gnu.org>
8860
8861 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8862
ab193662
KH
88632009-04-06 Kenichi Handa <handa@m17n.org>
8864
8865 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8866
8867 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8868
0c26f026
KH
88692009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8870
8871 * ftfont.c (ftfont_open): Fix checking of the return value of
8872 FT_Load_Char. Fix setting font->underline_thickness.
8873
e173bbce
CY
88742009-04-04 Chong Yidong <cyd@stupidchicken.com>
8875
8876 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8877 (Fterminal_parameters, Fterminal_parameter)
8878 (Fset_terminal_parameter): In doc string, refer to terminal
8879 objects rather than terminal ids.
8880
693a2698
EZ
88812009-04-04 Eli Zaretskii <eliz@gnu.org>
8882
8883 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8884 ret_lim_data. (Bug#2867)
8885
d5221487
CY
88862009-04-03 Chong Yidong <cyd@stupidchicken.com>
8887
8888 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8889 so they don't get wider than the window, matching 2006-01-23
8890 change to the partner function in xdisp.c (Bug#2800).
8891
223509a3
KH
88922009-04-03 Kenichi Handa <handa@m17n.org>
8893
8894 * print.c (print_object): Make each lowest sub_char_table start a
8895 new line (Bug#2866).
8896
74fcd0b1
KH
88972009-04-02 Kenichi Handa <handa@m17n.org>
8898
8899 * fontset.c (fontset_font): Record no-font when a fontset
8900 explicitly tells not to try another font-specs.
8901
c542407d
SM
89022009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8903
8904 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8905
e3869731
KH
89062009-03-30 Kenichi Handa <handa@m17n.org>
8907
d8d2f142
KH
8908 * fontset.c (fontset_from_font): Specify only registry in a
8909 font-spec for all characters supported by that registry.
8910
e3869731
KH
8911 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8912 even if HAVE_M17N_FLT is not defined.
8913
5da5f805
CY
89142009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8915
8916 * ftfont.c: Conditionalize prototyping and use of
8917 ftfont_variation_glyphs.
8918
ab226c50
SM
89192009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8920
9628fed7
SM
8921 * frame.c (delete_frame): Work around compiler bug.
8922
8923 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8924 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8925 Some more EMACS_INT.
8926 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8927
8928 * xdisp.c (dump_glyph): Fix typo.
8929
ae19ba7c
SM
8930 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8931 (adjust_markers_gap_motion, adjust_markers_for_delete)
8932 (adjust_markers_for_insert, adjust_point)
8933 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8934 (make_gap, copy_text, count_size_as_multibyte, insert)
8935 (insert_and_inherit, insert_before_markers)
8936 (insert_before_markers_and_inherit, insert_1)
8937 (count_combining_before, count_combining_after, insert_1_both)
8938 (insert_from_string, insert_from_string_before_markers)
8939 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8940 (insert_from_buffer_1, adjust_after_replace)
8941 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8942 (replace_range_2, del_range, del_range_1, del_range_byte)
8943 (del_range_both, del_range_2, modify_region)
8944 (prepare_to_modify_buffer, signal_before_change)
8945 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8946 for buffer positions and sizes.
8947 * lisp.h: Adjust prototypes accordingly.
8948
8949 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8950 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8951 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8952
ab226c50
SM
8953 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8954
46dfb8fb
JD
89552009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8956
8957 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8958 lines and columns so we keep the same pixel height and width.
8959
8960 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8961 the property _NET_WM_STATE has changed.
46dfb8fb
JD
8962 (x_handle_net_wm_state): New function to update frame parameter
8963 fullscreen.
8964 (x_term_init): Initialize atoms for _NET_WM_STATE.
8965
8966 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8967
d347e494
SM
89682009-03-27 Kevin Ryde <user42@zip.com.au>
8969
8970 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8971 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8972 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8973 (Fgpm_mouse_stop): Pass that new parameter.
8974 * termhooks.h (close_gpm): Adjust prototype.
8975
84db11d6
SM
89762009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8977
c95a5008
SM
8978 * lisp.h (Fx_focus_frame): Declare.
8979
84db11d6
SM
8980 * callint.c (Fcall_interactively): For '^' just delegate the work to
8981 handle-shift-selection.
8982 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8983
0a1958d6
CY
89842009-03-24 Chong Yidong <cyd@stupidchicken.com>
8985
0bfdff23
CY
8986 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8987
0a1958d6
CY
8988 * data.c (Qinteractive_form): New variable.
8989 (Finteractive_form): Use it.
8990
8991 * eval.c (Fcommandp): Use Qinteractive_form.
8992
58aec0d6
JR
89932009-03-24 Jason Rumney <jasonr@gnu.org>
8994
8995 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8996 Calculate total size precisely. Decode environment variables
8997 before substituting. (Bug#38)
8998
553dd618
KH
89992009-03-24 Kenichi Handa <handa@m17n.org>
9000
9001 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 9002 encoding (Bug#2722).
553dd618 9003
c39ea606
JD
90042009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9005
9006 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9007 that gdpy is set.
9008
bc9b2b5e
AM
90092009-03-22 Alan Mackenzie <acm@muc.de>
9010
9011 * callint.c (Finteractive): Clarify the doc string - even
9012 promptless elements need \n separators.
9013
9f995a76
JR
90142009-03-22 Jason Rumney <jasonr@gnu.org>
9015
9016 * w32term.c (syms_of_w32term): Doc fix for
9017 x-use-underline-position-properties.
9018
22749e9a
EZ
90192009-03-21 Eli Zaretskii <eliz@gnu.org>
9020
9021 * w32.c (getpwuid): Change argument type to unsigned.
9022 (struct w32_id): Change type of `rid' member to unsigned.
9023 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9024 argument ID to unsigned. All callers changed.
9025 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9026
e00553bf
EZ
90272009-03-20 Eli Zaretskii <eliz@gnu.org>
9028
9029 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9030 negative, produce a float value.
9031
9032 * dired.c (make_uid, make_gid): New functions.
9033 (Ffile_attributes): Use them to avoid negative UID and GID.
9034
f761d6b6
JB
90352009-03-20 Juanma Barranquero <lekktu@gmail.com>
9036
9037 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9038 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9039 Fix typos in docstrings.
9040
d507f8d7
KH
90412009-03-19 Kenichi Handa <handa@m17n.org>
9042
9043 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
9044 changed, use font_load_for_lface to get a new font object.
9045 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
9046
9047 * frame.c (x_set_font): Handle the case that ARG is a cons.
9048
c68845e0
GM
90492009-03-19 Glenn Morris <rgm@gnu.org>
9050
9051 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9052
bfa49dd1
CY
90532009-03-19 Chong Yidong <cyd@stupidchicken.com>
9054
9055 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9056
8458d4c1
KH
90572009-03-19 Kenichi Handa <handa@m17n.org>
9058
9059 * charset.c (load_charset_map_from_file): When a mapfile can't be
9060 loaded, signal an error.
9061
78e7d1fe
EZ
90622009-03-18 Eli Zaretskii <eliz@gnu.org>
9063
9064 * dired.c (Ffile_attributes): Make sure UID and GID are always
9065 positive, even if the value is too large for a positive EMACS_INT.
9066 Doc fix.
9067
9068 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9069
5da9fdfa
YM
90702009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9071
9072 * xmenu.c (xdialog_show): Move Fredisplay call ...
9073 (Fx_popup_dialog): ... here.
9074
7519c40d
SM
90752009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9076
9077 * dired.c (file_name_completion): Disable the first optimization just
9078 installed, since it is not implemented correctly.
9079
2cd298e2
SM
90802009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9081
9082 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 9083 only if the entry can affect bestmatch.
2cd298e2
SM
9084 Stop the search early, as Ftry_completion already does.
9085
48d37adf
CY
90862009-03-17 Chong Yidong <cyd@stupidchicken.com>
9087
e10c9c93 9088 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 9089
9286b16a
CY
90902009-03-15 Chong Yidong <cyd@stupidchicken.com>
9091
9092 * keyboard.c (parse_menu_item): Don't display remappings as menu
9093 equivalent bindings (Bug#788).
9094
f7b146dc
JR
90952009-03-15 Jason Rumney <jasonr@gnu.org>
9096
9097 * w32term.h (WM_EMACS_PAINT): New message.
9098 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9099 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9100 before passing to lisp thread. (Bug#950)
9101
f761d6b6 91022009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 9103
d93f9575
CY
9104 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9105 variable as it was never reset.
9106 (ns_term_init): Remove initialization of Lisp-settable defaults
9107 and ns_expand_space.
9108 (-setPanelFromDefaultValues): Remove ns_expand_space.
9109 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9110 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
9111 i.e. no additional spacing, similar to Carbon port.
9112
d93f9575
CY
9113 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9114 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 9115
305018ec
JD
91162009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9117
9118 * sound.c (alsa_configure): Remove call to deprecated
9119 snd_pcm_sw_params_set_xfer_align.
9120
f761d6b6 91212009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
9122
9123 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9124 after clicking in a detached tool bar.
9125 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9126
46e722a9
SM
91272009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9128
348db3dd
SM
9129 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9130 int/Lisp_Object mixup).
46e722a9 9131
a3d16f39
KH
91322009-03-13 Kenichi Handa <handa@m17n.org>
9133
9134 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 9135 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
9136 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9137 (set_fontset_font): Change ARG to a vector. Handle range_list in
9138 ARG correctly.
9139 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 9140 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
9141 the above change.
9142 (fontset_from_font): Fix previous change.
fe24f56a 9143 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
9144 entry. If FONTSET is the default fontset, don't set the extra
9145 slot of the returning char-table.
9146
b066e6b6
JB
91472009-03-12 Juanma Barranquero <lekktu@gmail.com>
9148
9149 * nsfns.m (Fx_close_connection): Doc fix.
9150 (Fns_do_applescript): Reflow docstring.
9151 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9152 (Fx_display_pixel_width, Fx_display_pixel_height)
9153 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9154 Fix typos in docstrings.
9155 (Fns_set_alpha): Fix typos in error messages.
9156
d472514e 91572009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 9158
d472514e 9159 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
9160 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9161 were used for such events.
9162
d472514e
JB
9163 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9164 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 9165
d472514e 9166 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
9167 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9168
fb930676
KH
91692009-03-11 Kenichi Handa <handa@m17n.org>
9170
ff85581a
KH
9171 * font.h (font_open_by_spec): Extern it.
9172
c50b7e98
KH
9173 * font.c (font_open_by_spec): New function.
9174 (font_open_by_name): Use font_open_by_spec.
9175
fb930676
KH
9176 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9177 fontset of the frame.
9178
9179 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9180 modify the default font of frames that use this fontset.
9181 (num_auto_fontsets): New variable.
9182 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9183 name. Be sure to set FONTSET_ASCII to the correct font name.
9184 (update_auto_fontset_alist): New function.
9185
df4e8455
JB
91862009-03-11 Juanma Barranquero <lekktu@gmail.com>
9187
9188 * makefile.w32-in: Update dependencies.
9189
0a375797
AR
91902009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9191
9192 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9193
61313fa3
SM
91942009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9195
9196 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9197
b55103fb
CY
91982009-03-10 Chong Yidong <cyd@stupidchicken.com>
9199
9200 * lread.c (Feval_buffer): Doc fix.
9201
dde2559c
KH
92022009-03-09 Kenichi Handa <handa@m17n.org>
9203
9204 * charset.c (Qfile_name_handler_alist): Extern it.
9205 (load_charset_map_from_file): Temporarily bind
9206 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9207
df4e8455 92082009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 9209
47f588bb
GM
9210 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9211 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 9212
4ddf94bd
AR
92132009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9214
4c9bdfc2
AR
9215 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9216 (x_set_window_size): Change back to calculated method of setting
9217 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
9218 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9219 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9220
fe41ae9e
AR
9221 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9222
4c9bdfc2
AR
9223 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9224 accelerator in parens under GNUstep.
9225
825d0875
KH
92262009-03-06 Kenichi Handa <handa@m17n.org>
9227
9228 These changes are to detect incorrect composition sequence without
f3b3be74 9229 looking ahead the source. (Bug#2370)
825d0875
KH
9230
9231 * coding.h: Include "composite.h".
9232 (enum compisition_state): New enum.
9233 (struct compisition_status): New struct.
9234 (struct iso_2022_spec): New member cmp_status.
9235 (struct emacs_mule_spec): New struct.
9236 (struct coding_system): New members ctext_extended_segment_len and
9237 embedded_utf_8. Change the union member
9238 spec.emacs_mule_full_support to spec.emacs_mule.
9239
9240 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9241 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 9242 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
9243 (ADD_COMPOSITION_DATA): New arg nbytes.
9244 (emacs_mule_char): New arg cmp_status.
9245 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9246 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9247 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9248 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9249 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9250 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9251 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9252 (EMACS_MULE_COMPOSITION_END): New macro.
9253 (emacs_mule_finish_composition): New function.
9254 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9255 (decode_coding_emacs_mule): Avoid long looking ahead while
9256 handling composition.
9257 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9258 (ENCODE_COMPOSITION_RULE): New macro.
9259 (finish_composition): New function.
9260 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9261 (DECODE_COMPOSITION_START): New implementation.
9262 (DECODE_COMPOSITION_END): Likewise.
9263 (STORE_COMPOSITION_RULE): New macro.
9264 (decode_coding_iso_2022): Avoid long looking ahead while handling
9265 composition, CTEXT extended segment, and embedded UTF-8.
9266 (setup_coding_system): For a coding of type iso-2022, reset
9267 CODING_ISO_EXTSEGMENT_LEN (coding) and
9268 CODING_ISO_EMBEDDED_UTF_8 (coding).
9269 (get_translation): Delete arguments last_block, from_nchars,
9270 to_nchars. Callers changed.
9271 (produce_chars): Don't modify charbuf. Adjusted for the change of
9272 get_translation.
98a326f7 9273 (produce_composition): Adjust for the new annotation sequence.
825d0875 9274 (handle_composition_annotation): Likewise.
98a326f7 9275 (consume_chars): Adjust for the change of get_translation.
825d0875 9276
ccbc4452
AR
92772009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9278
4ddf94bd 9279 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 9280
988a7ddb
KH
92812009-03-05 Kenichi Handa <handa@m17n.org>
9282
9283 * font.c (font_select_entity): New function.
9284 (font_find_for_lface): Use font_select_entity to select a font.
9285
9286 * fontset.c (fontset_find_font): If a font found without
a8a3728b 9287 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
9288 font with C restriction.
9289
98a326f7 92902009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 9291
be1bce46 9292 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 9293
10ea2b82
JR
92942009-03-04 Jason Rumney <jasonr@gnu.org>
9295
2c93b248 9296 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 9297 characters that have already been read. (Bug#2569)
2c93b248 9298
10ea2b82
JR
9299 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9300 Log an error message if check_image_size failed.
9301 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 9302 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 9303
71a0c011
EZ
93042009-03-02 Eli Zaretskii <eliz@gnu.org>
9305
9306 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9307 when decoding process output.
9308
2f63bba8
RS
93092009-03-01 Richard M Stallman <rms@gnu.org>
9310
9311 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9312
9313 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9314
0a9564cb
EZ
93152009-02-28 Eli Zaretskii <eliz@gnu.org>
9316
9317 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9318 (decode_coding_emacs_mule, decode_coding_iso_2022)
9319 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9320 (decode_coding_raw_text, decode_coding_charset)
9321 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9322 Honor inhibit-eol-conversion. (Bug #2186)
9323
449148b3
JR
93242009-02-28 Jason Rumney <jasonr@gnu.org>
9325
9326 * coding.c (detect_coding_charset): If not checking latin extra,
9327 fail on characters between 0x80 and 0xA0. (Bug#2354)
9328
a4aee864
EZ
93292009-02-28 Eli Zaretskii <eliz@gnu.org>
9330
9331 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 9332 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 9333
d88bee5a
GM
93342009-02-27 Glenn Morris <rgm@gnu.org>
9335
9336 * callint.c (Finteractive): Doc fix.
9337
a808f22d
KH
93382009-02-27 Kenichi Handa <handa@m17n.org>
9339
9340 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9341
caf8d60c
CY
93422009-02-27 Chong Yidong <cyd@stupidchicken.com>
9343
9344 * font.c (font_style_to_value): Set value for unknown symbols to
9345 100 instead of 255.
b61137ea
CY
9346 (weight_table, slant_table, width_table): Treat "unspecified" as
9347 the default value.
caf8d60c 9348
1a0de25c
JB
93492009-02-26 Juanma Barranquero <lekktu@gmail.com>
9350
9351 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9352
8fc45744
JB
93532009-02-25 Juanma Barranquero <lekktu@gmail.com>
9354
107bd7d1
JB
9355 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9356 error as soon as a recursive load is detected.
8fc45744 9357
f097e223
AR
93582009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9359
9360 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9361 before caching.
9362
8810a12f
KH
93632009-02-24 Kenichi Handa <handa@m17n.org>
9364
9365 * fontset.c (fontset_find_font): Fix the condition for checking
9366 unavailable font.
9367
2c7d1565
GM
93682009-02-24 Glenn Morris <rgm@gnu.org>
9369
9370 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9371 whitespace that confuses documentation.
9372
a20878b6
MB
93732009-02-23 Miles Bader <miles@gnu.org>
9374
9375 * process.c (Flist_system_processes, Fprocess_attributes)
9376 (syms_of_process): Rename `system-process-attributes' to
9377 `process-attributes'.
9378
b3b58c01
AS
93792009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9380
1b3b981b
AS
9381 * coding.h (struct coding_system): Make safe_charsets a pointer to
9382 unsigned char.
9383 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9384 being 255.
9385 (SAFE_CHARSET_P): Likewise.
9386 (setup_iso_safe_charsets): Properly setup safe_charsets.
9387 (Fdefine_coding_system_internal): Likewise.
9388 (setup_coding_system): Likewise. Remove unneeded casts.
9389 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9390 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9391 unneeded casts.
9392
b3b58c01
AS
9393 * insdel.c (del_range_2): Don't modify gap contents when called
9394 from decode_coding_object. (Bug#1809)
9395
0b6f228c
CY
93962009-02-21 Chong Yidong <cyd@stupidchicken.com>
9397
9398 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9399 Qfont_object.
9400 (Ftype_of): Recognize font objects.
9401
9402 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9403
9404 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9405 moved to data.c.
9406
52f8870b
AR
94072009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9408
9409 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9410 async_iconified. Based on a patch by Christian Lynbech
9411 <christian.lynbech@tieto.com>.
9412 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9413
7087d5e9
GM
94142009-02-20 Glenn Morris <rgm@gnu.org>
9415
9416 * syntax.c (Fskip_chars_forward): Fix doc typo.
9417
41d2ceef
CY
94182009-02-20 Chong Yidong <cyd@stupidchicken.com>
9419
9420 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9421
1a3b7ca6
CY
94222009-02-19 Chong Yidong <cyd@stupidchicken.com>
9423
9424 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9425
73cce38d
KH
94262009-02-19 Kenichi Handa <handa@m17n.org>
9427
9428 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 9429 Don't overflow coding->carryover. (Bug#2370)
73cce38d 9430
a51092ee
DN
94312009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9432
9433 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9434
c423ecca
KH
94352009-02-18 Kenichi Handa <handa@m17n.org>
9436
9437 * font.c (font_check_otf_features): Fix handling of `nil' element.
9438 (Ffont_spec): Describe :lang and :otf in the docstring.
9439
4c1958f4
AS
94402009-02-16 Andreas Schwab <schwab@suse.de>
9441
9442 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9443 string.
9444
5704f39a
KH
94452009-02-16 Kenichi Handa <handa@m17n.org>
9446
9447 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 9448 (Bug#1723)
5704f39a 9449
8f0085aa
CY
94502009-02-14 Chong Yidong <cyd@stupidchicken.com>
9451
a057d86a 9452 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
9453
9454 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9455 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9456
aff01dd9
EZ
94572009-02-14 Eli Zaretskii <eliz@gnu.org>
9458
9459 * msdos.c (MAX_SCREEN_BUF): New macro.
9460 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9461 Encode the entire run of glyphs sharing the same face, instead of
9462 doing that one glyph at a time (fixes a bug with displaying
9463 double-size characters).
9464
ba301db3
AR
94652009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9466
9467 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9468
9469 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9470 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 9471 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
9472
9473 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 9474 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 9475
51d861de
SM
94762009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9477
ac146f82 9478 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
9479 invisible areas.
9480
7fed8996
JR
94812009-02-12 Jason Rumney <jasonr@gnu.org>
9482
631ea4fb
JR
9483 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9484 (add_font_entity_to_list): Call check_face_name even when family
9485 is unspecified.
9486
cb4a3e42
JR
9487 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9488 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 9489 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 9490
7fed8996 9491 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 9492 raster fonts. (Bug#2219)
7fed8996 9493
895416e3
KH
94942009-02-12 Kenichi Handa <handa@m17n.org>
9495
9496 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9497 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9498 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 9499 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9500 (find_automatic_composition): While looking forward and backward,
9501 check static composition. Fix where to stop looking forward.
9502 (composition_adjust_point): Fix checking of static composition.
9503 (Fcomposition_get_gstring): Pay attention to
1dacf998 9504 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9505
9506 * lisp.h (fast_looking_at): Extern it.
9507
9508 * search.c (fast_looking_at): New function.
9509
51d861de 9510 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
9511 <struct glyph>.u.cmp.to.
9512 (append_composite_glyph): Likewise.
9513
51d861de 9514 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
9515 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9516 composition.
51d861de 9517 (append_composite_glyph): Adjust for the change of
895416e3
KH
9518 <strcut glyph>.u.cmp.to.
9519
8510724d
JB
95202009-02-11 Juanma Barranquero <lekktu@gmail.com>
9521
9522 * casetab.c (init_casetab_once):
9523 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9524 * font.c (font_update_lface):
9525 * fontset.c (Fnew_fontset):
9526 * ftfont.c (ftfont_drive_otf):
9527 * xfont.c (xfont_open):
9528 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9529
294fa707
SM
95302009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9531
9532 * fileio.c (Fwrite_region): !NILP -> CONSP.
9533
b5bfebec
AS
95342009-02-10 Andreas Schwab <schwab@suse.de>
9535
9536 * process.c (send_process): Properly relocate pointer into data
adab88bd 9537 when using encoded data. (Bug#2272)
b5bfebec 9538
cb84a2be
KH
95392009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9540
9541 * coding.c (detect_coding_charset): Fix previous change.
9542
89e09428
JR
95432009-02-08 Jason Rumney <jasonr@gnu.org>
9544
9545 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 9546 disappeared while hourglass was displayed. (Bug #2193)
89e09428 9547
4470a277
AS
95482009-02-07 Andreas Schwab <schwab@suse.de>
9549
9550 * unexelf.c (unexec): Fix error message.
9551
3175b12a
AR
95522009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9553
9554 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 9555 when modal window is active. (Bug #2152)
3175b12a
AR
9556 (applicationShouldTerminate:): Remove now-unneeded while loop
9557 around NSRunAlertPanel.
9558
9559 * nsmenu.m (popupSession): New file-global variable.
9560 (pop_down_menu): End the popupSession before closing dialog.
9561 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9562 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9563 don't query NSApp for events (just sleep instead).
9564
8434d0b8
EZ
95652009-02-07 Eli Zaretskii <eliz@gnu.org>
9566
51d861de
SM
9567 * coding.c (syms_of_coding) <translation-table-for-input>:
9568 Modify doc string to discourage use for character code unification.
8434d0b8 9569
aa82edfd
CY
95702009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9571
9572 * atimer.c (run_timers): Update pending_atimers.
9573
2d283c7c
CY
95742009-02-06 Chong Yidong <cyd@stupidchicken.com>
9575
eb306cab
CY
9576 * image.c (svg_load_image): Fix last change.
9577
2d283c7c
CY
9578 * xfns.c (Fx_create_frame): Signal an error if no font is
9579 found (Bug#2147).
9580
4d8e170e
JB
95812009-02-05 Juanma Barranquero <lekktu@gmail.com>
9582
9583 * character.c (syms_of_character) <script-representative-chars>:
9584 Fix typo in docstring.
9585
c96169a0
AR
95862009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9587
9588 * nsmenu.m (pop_down_menu): New function.
9589 (ns_popup_dialog): Call it on unwind.
9590 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9591 call timer_check() (Bug#2154).
9592 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9593 handling_signal is set.
9594 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9595
31fd7c5c 9596 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
9597
9598 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9599
9600 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9601
51d861de
SM
9602 * keyboard.c (poll_for_input_1, handle_async_input):
9603 Set handling_signal under HAVE_NS.
c96169a0 9604
aacd8ba1
GM
96052009-02-04 Glenn Morris <rgm@gnu.org>
9606
9607 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9608
4cb75c4b
KH
96092009-02-04 Kenichi Handa <handa@m17n.org>
9610
9611 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9612
9613 * charset.c (Fchar_charset): New optional arg restriction.
9614
9615 * coding.h (coding_system_charset_list): Extern it.
9616
9617 * coding.c (coding_system_charset_list): New function.
9618
9619 * composite.c: Include coding.h and termhooks.h.
9620 (composition_gstring_p): Fix for the terminal case.
9621 (composition_gstring_width): Likewise.
9622 (fill_gstring_body): Likewise.
9623 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9624 the frame.
9625 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9626 is within a composition.
867d4bb3 9627 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
9628
9629 * term.c (encode_terminal_code): Fix handling of composition.
9630 (produce_composite_glyph): For static composition, get pixel_width
9631 from struct composition.
9632
826ba17e
AS
96332009-02-02 Andreas Schwab <schwab@suse.de>
9634
9635 * unexelf.c (unexec): Handle unaligned bss offset.
9636
8ad093db
AR
96372009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9638
9639 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9640 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 9641
8ad093db
AR
9642 * keyboard.c (handle_interrupt): Don't call
9643 quit_throw_to_read_char() under NS.
d0a76a6e 9644
8ad093db
AR
9645 * blockinput.h: Remove NS-specific code.
9646
4d18a7a2
DN
96472009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9648
db878925
DN
9649 * dispnew.c (window_change_signal): Don't try to get the size of a
9650 suspended tty frame.
9651 * term.c (Fresume_tty): Resize if the size has changed while the
9652 tty was suspended.
9653
4d18a7a2
DN
9654 * alloc.c (mark_stack): Properly conditionalize previous change.
9655
8984df7c
JB
96562009-01-30 Juanma Barranquero <lekktu@gmail.com>
9657
9658 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9659 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9660 Remove; this code is not used on Windows.
9661
75f4f1ac
EZ
96622009-01-30 Eli Zaretskii <eliz@gnu.org>
9663
9664 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9665 EOLs that also has stray ^M characters.
9666
07a1e794
JB
96672009-01-30 Juanma Barranquero <lekktu@gmail.com>
9668
9669 * atimer.c (run_timers, alarm_signal_handler):
9670 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9671 * w32inevt.c (w32_console_read_socket):
9672 * w32term.c (w32_read_socket):
9673 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9674
a8b11cc9
CY
96752009-01-30 Chong Yidong <cyd@stupidchicken.com>
9676
9677 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9678 Initialize it as a relative filename pattern.
9679 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9680 (Fcall_process_region): Simplify temp file creation using
9681 temporary-file-directory.
9682
c279587b
EZ
96832009-01-29 Eli Zaretskii <eliz@gnu.org>
9684
9685 * msdos.c: Rename pending_signals to msdos_pending_signals.
9686 (sig_suspender, sigprocmask): Adjust.
9687
a8fe3242
CY
96882009-01-29 Chong Yidong <cyd@stupidchicken.com>
9689
9690 * keyboard.c (pending_signals): New var.
9691 (poll_for_input, input_available_signal, init_keyboard): Set it.
9692 (process_pending_signals): New function.
9693
9694 * lisp.h (QUIT): Check pending_signals instead of
9695 interrupt_input_pending. Use process_pending_signals.
9696
51d861de 9697 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 9698
51d861de 9699 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
9700
9701 * sysdep.c (emacs_write): Use process_pending_signals.
9702
9703 * xterm.c (XTread_socket): Update pending_signals.
9704
9705 * w32term.c (w32_read_socket): Update pending_signals.
9706
9707 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9708
6570a1c4
KH
97092009-01-29 Kenichi Handa <handa@m17n.org>
9710
9711 * xftfont.c (xftfont_has_char): New function.
9712 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9713
d72a4afa
AR
97142009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9715
9716 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9717 under GNUstep.
9718 (ns_query_color): New declaration.
9719
9720 * nsterm.m (ns_confirm_quit): New variable.
9721 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9722 (EmacsApp-applicationShouldTerminate:): Use it.
9723 (EmacsPrefsController): Let user set it.
9724 (ns_query_color): New function.
9725 (ns_defined_color): Use it.
9726 (ns_initialize): Drop.
9727 (ns_term_init): Add two lines from ns_initialize(), and set
9728 input_interrupt_mode to nil.
9729
9730 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 9731 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 9732
9fe78804
KH
97332009-01-28 Kenichi Handa <handa@m17n.org>
9734
9735 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
9736 (fontset_get_font_group): Remember that no font-group is specified
9737 for C.
9fe78804 9738
fa57de36
CY
97392009-01-27 Chong Yidong <cyd@stupidchicken.com>
9740
930600e9
CY
9741 * fns.c (concat): Check for string overflow (bug#1787).
9742
fa57de36
CY
9743 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9744 Quadruple undo limits (bug#1501).
9745
7179ce7b
KH
97462009-01-27 Kenichi Handa <handa@m17n.org>
9747
9748 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9749 directly use GT_Get_Char_index.
9750
9751 * xftfont.c (struct xftfont_info): New member `index'.
9752
9753 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 9754 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 9755
5be8fcc0
CY
97562009-01-26 Kenichi Handa <handa@m17n.org>
9757
9758 * fontset.c (fontset_find_font): Fix handling of non-cons return
9759 value of fontset_get_font_group.
9760 (fontset_font): Revert last change.
9761
19ae3e61
JR
97622009-01-26 Jason Rumney <jasonr@gnu.org>
9763
9764 * w32font.c (w32font_list_internal): Return quickly if registry is
9765 unknown. Simplify final return.
9766 (add_font_entity_to_list): Break complex logic down into more
9767 manageable chunks. Move unknown registry check to
9768 w32font_list_internal.
9769
8612b71a
AR
97702009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9771
9772 Changes to remove Feval calls from GUI under NS.
9773
d8038940
JB
9774 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9775 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
9776 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9777
9778 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9779 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9780 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9781 instead of NON_ASCII_KEYSTROKE_EVENT.
9782 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9783 (EmacsApp-applicationShouldTerminate:): Query user.
9784 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9785 instead of Feval.
9786
9787 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9788
9789 * keyboard.c (kbd_buffer_get_event): Check for it.
9790 (keys_of_keyboard): Define lispy keys for
9791 ns-put/unput-working-text.
9792
9793 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9794 versions.
9795 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9796
6288ae55
CY
97972009-01-25 Chong Yidong <cyd@stupidchicken.com>
9798
9799 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 9800 setting current_buffer directly. (Bug#2044)
6288ae55 9801
289e7f8f
CY
98022009-01-24 Chong Yidong <cyd@stupidchicken.com>
9803
5ce87308 9804 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 9805 any work. (Bug#1952, bug#1990).
5ce87308 9806
64cc3cf6 9807 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 9808
b3243e6f
AR
98092009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9810
9811 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
9812 (ns_no_defaults): New declaration.
9813 (main): Use it.
e0d2e69a 9814
d900b2af 9815 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 9816
d900b2af 9817 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 9818
d900b2af
AR
9819 * nsterm.m (ns_no_defaults): New variable.
9820 (ns_initialize): Don't read defaults when ns_no_defaults.
9821 (EmacsView-readSelectionFromPasteboard:)
9822 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 9823 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
9824 (ns_dumpglyphs_stretch): New function.
9825 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9826 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9827
e0d2e69a
AR
9828 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9829
3ac71f5d
CY
98302009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9831
9832 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9833 call for Sparc64.
9834
3fe53a83
AR
98352009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9836
9837 * nsfns.m:
9838 * nsgui.h:
9839 * nsmenu.m:
9840 * nsselect.m:
9841 * nsterm.h:
9842 * nsterm.m: Remove '23' comments that indicated code added during
9843 update from emacs-20 -> emacs-23.
9844
10f87c6f 98452009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9846
9847 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9848 ns_alternate_modifier. (Bug#1217)
a3b53a85 9849
c7cef62d
AR
9850 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9851 Display all shortcuts, including those w/o super modifier.
9852
575fb8bd
AR
9853 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9854
918b848b
CY
98552009-01-22 Chong Yidong <cyd@stupidchicken.com>
9856
9857 * fileio.c (Vwrite_region_post_annotation_function)
9858 (Vwrite_region_annotation_buffers): New vars.
9859 (build_annotations_unwind): Just reset
9860 Vwrite_region_annotation_buffers.
9861 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9862 Call write-region-post-annotation-function.
9863 (build_annotations): Add to Vwrite_region_annotation_buffers if
9864 buffer changes.
9865
a39e2539
AR
98662009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9867
9868 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9869 Tiger.
51d861de
SM
9870 * nsfns.m (ns_do_applescript):
9871 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9872
35ed44db
AR
98732009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9874
9875 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9876
cbe0b5bf
AR
98772009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9878
9879 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 9880
6049d3a0
AR
9881 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9882
9883 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
9884 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9885 handle Ctrl-tab. (Bug#1841)
9886 (ns_get_color): Use unsigned long long for scanned hex string value.
9887 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 9888 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 9889 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 9890 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 9891 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 9892 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 9893 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 9894
d3810c21 9895 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 9896 DPI. (Bug#1316)
d3810c21
AR
9897 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9898 values in onTiger section.
4c7077c3 9899
e301e634
CY
99002009-01-19 Chong Yidong <cyd@stupidchicken.com>
9901
7f82490b
CY
9902 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9903 Check return value of font_spec_from_name.
64cc3cf6 9904 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
9905
9906 * font.c (font_spec_from_name): Return Qnil if font name could not
9907 be parsed.
9908 (font_parse_name): Treat a `?' character as part of an XLFD.
9909
e301e634
CY
9910 * fns.c (Fsubstring): Doc fix.
9911
1c0db158
KH
99122009-01-19 Kenichi Handa <handa@m17n.org>
9913
51d861de 9914 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
9915 (ftfont_list): Likewise.
9916
acf20901
JB
99172009-01-18 Juanma Barranquero <lekktu@gmail.com>
9918
fff4e459
JB
9919 * dbusbind.c (Fdbus_register_signal):
9920 * process.c (conv_sockaddr_to_lisp):
9921 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9922
acf20901
JB
9923 * callproc.c (Fgetenv_internal): Doc fix.
9924
e7abcdfb
CY
99252009-01-16 Chong Yidong <cyd@stupidchicken.com>
9926
9927 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9928 it is not even used.
9929
b60861e6
GM
99302009-01-16 Glenn Morris <rgm@gnu.org>
9931
9932 * font.c (Ffont_variation_glyphs): Silence compiler.
9933
8db52afe
JB
99342009-01-15 Juanma Barranquero <lekktu@gmail.com>
9935
9936 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9937 Reported by David Robinow <drobinow@gmail.com>.
9938
4cddb209
KH
99392009-01-15 Kenichi Handa <handa@m17n.org>
9940
51d861de 9941 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 9942
f247f67b
JR
99432009-01-14 Jason Rumney <jasonr@gnu.org>
9944
9945 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 9946 never a fontset. (Bug#1562)
f247f67b 9947
f56a4450
KH
99482009-01-14 Kenichi Handa <handa@m17n.org>
9949
9950 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 9951 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 9952
4e99855e
CY
99532009-01-13 Chong Yidong <cyd@stupidchicken.com>
9954
9955 * font.c (font_clear_prop): If clearing the family, clear the font
9956 width index too.
9957
fff4e459 9958 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 9959
24f01470
JB
99602009-01-12 Juanma Barranquero <lekktu@gmail.com>
9961
9962 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9963 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9964 functions, use sizeof.
9965
a41240a3
MR
99662009-01-12 Martin Rudalics <rudalics@gmx.at>
9967
9968 * keyboard.c (read_char): Fix case where last_nonmenu_event
9969 returned a bad value with submenus. (Bug#447)
9970
944636b8
CY
99712009-01-12 Chong Yidong <cyd@stupidchicken.com>
9972
9973 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9974 family, clear the font width index too.
9975
0dad7c6f
JR
99762009-01-11 Jason Rumney <jasonr@gnu.org>
9977
9978 * keyboard.c (cmd_error_internal): Exit when errors occur before
9979 frame creation and not in daemon mode. (Bug#1836)
9980
7c2363af
CY
99812009-01-10 Chong Yidong <cyd@stupidchicken.com>
9982
9983 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9984 of a display vector, backtrack.
9985 (try_window_reusing_current_matrix): Check glyph type before
9986 referencing charpos member.
9987
97b1b294
EZ
99882009-01-10 Eli Zaretskii <eliz@gnu.org>
9989
9990 Fix Bug #876:
9991
9992 * coding.c (inhibit_null_byte_detection): New variable.
9993 (detect_coding, detect_coding_system): Don't pay attention to null
9994 bytes if inhibit_null_byte_detection is non-zero.
51d861de 9995 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
9996 <inhibit-iso-escape-detection>: Doc fix.
9997
4624b6e3
JR
99982009-01-09 Jason Rumney <jasonr@gnu.org>
9999
10000 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 10001 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
10002 Only report Unicode Plane 2 fonts as unicode-sip.
10003
323b840c
CY
100042009-01-09 Chong Yidong <cyd@stupidchicken.com>
10005
51d861de
SM
10006 * xfaces.c (Fx_font_family_list): Delete function.
10007 Move compatibility version to faces.el.
323b840c 10008
51d861de 10009 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 10010
eba7400d
MR
100112009-01-09 Martin Rudalics <rudalics@gmx.at>
10012
10013 * frame.c (x_set_frame_parameters): Remember requested value for
10014 fullscreen before it's reset by the parameter handler.
10015
4b09796d
GM
100162009-01-09 Glenn Morris <rgm@gnu.org>
10017
10018 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 10019 (last_command_event): ... and update all users.
4b09796d
GM
10020 (last_input_char): For clarity, rename to...
10021 (last_input_event): ... and update all users.
10022 (last-command-char, last-input-char): Move to subr.el as aliases.
10023 * cmds.c, commands.h: Update for last_command_char rename.
10024
14ccea62
CY
100252009-01-08 Chong Yidong <cyd@stupidchicken.com>
10026
51d861de 10027 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 10028
5f004711
JR
100292009-01-08 Jason Rumney <jasonr@gnu.org>
10030
10031 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10032 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10033 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10034 Don't declare.
fff4e459 10035 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
10036 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10037
b71f6f73
KH
100382009-01-07 Kenichi Handa <handa@m17n.org>
10039
50b06221 10040 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 10041 remember the coding system used for decoding in
50b06221
KH
10042 coding_system (Bug#1039).
10043
b71f6f73 10044 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 10045 breaking the loop. (Bug#870)
b71f6f73
KH
10046 (decode_coding_utf_16, decode_coding_emacs_mule)
10047 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10048 (decode_coding_charset): Likewise.
10049
56f668f7
MR
100502009-01-05 Martin Rudalics <rudalics@gmx.at>
10051
10052 * frame.c (x_set_frame_parameters): Make sure height (width) get
10053 applied when fullwidth (fullheight) is set. (Bug#1522)
10054
5da9424d
JB
100552009-01-04 Juanma Barranquero <lekktu@gmail.com>
10056
10057 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10058 (utc_base): Declare as ULONGLONG, not long double.
10059 (convert_time_raw): Delete.
10060 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10061 (initialize_utc_base): New function.
10062 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10063 (convert_from_time_t): Use initialize_utc_base; compute result with
10064 64-bit arithmetic.
10065 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10066
c4605e09
EZ
100672009-01-03 Eli Zaretskii <eliz@gnu.org>
10068
9acef61c 10069 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
10070 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10071 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10072 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10073 [!subprocesses]: Define.
10074 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10075 (Flist_system_processes, Fsystem_process_attributes)
10076 [!subprocesses]: Call list_system_processes and
10077 system_process_attributes instead of returning Qnil.
10078
9acef61c
JB
10079 * dosfns.c (system_process_attributes, list_system_processes):
10080 New functions.
c4605e09
EZ
10081
10082 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10083
10084 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10085 Don't use the default (no-op) implementation.
10086
8b7d0a16
JR
100872009-01-03 Jason Rumney <jasonr@gnu.org>
10088
a6d46bc1
JR
10089 * keyboard.c (parse_modifiers_uncached): Wheel events are
10090 clicks (bug#687).
10091
8b7d0a16
JR
10092 * w32term.c (x_query_colors, x_query_color): New functions.
10093
10094 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10095 (svg_load_image): Cast returned pointers from dynamically loaded
10096 functions. Eliminate W32 specific code.
10097
bfe11752
DN
100982009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10099
89e2438a
DN
10100 * nsfns.m (x_set_foreground_color, x_set_background_color)
10101 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10102 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10103 x_ prefix instead of ns_. Update references.
10104 (syms_of_nsfns): Add a FIXME comment.
10105
10106 * nsterm.m (x_set_cursor_type): New prototype.
10107 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10108
bfe11752
DN
10109 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10110 for Solaris instead of incorrectly providing Qutime and Qcutime.
10111
031da700
EZ
101122009-01-02 Eli Zaretskii <eliz@gnu.org>
10113
10114 * w32.c (process_times): Compute sum of utime and stime.
10115 (system_process_attributes): Add Qtime to the alist.
10116
10117 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10118 and add them to the alist.
10119
10120 * process.c (top level) <Qtime, Qctime>: New variables.
10121 (syms_of_process): staticpro them.
10122 (Fsystem_process_attributes): Add their documentation to the doc
10123 string.
10124
10125 * process.h: Declare Qtime and Qctime.
10126
df23bf08
JR
101272009-01-02 Jason Rumney <jasonr@gnu.org>
10128
9acef61c 10129 * image.c (Qgobject): New symbol.
df23bf08
JR
10130 (syms_of_image): Initialize it.
10131 (init_svg_functions): Load some functions from gobject library.
10132
5bbdf7aa
DN
101332009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10134
10135 * frame.c (make_terminal_frame): Remove redundant code and useless
10136 block.
10137
63136da6
AS
101382009-01-01 Andreas Schwab <schwab@suse.de>
10139
10140 * process.c (conv_sockaddr_to_lisp): Add workaround for
10141 getsockname bug on BSD.
10142
9ef69046
CY
101432009-01-01 Chong Yidong <cyd@stupidchicken.com>
10144
d6fafbe0
CY
10145 * xfns.c (x_create_tip_frame): Set border width of the X window.
10146
51d861de 10147 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 10148
f9c34147
JR
101492009-01-01 Jason Rumney <jasonr@gnu.org>
10150
9acef61c 10151 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
10152 Don't block input, as per earlier xterm.c changes.
10153
f5497e45
AR
101542008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10155
10156 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10157 (ns_appkit_version_int): New function.
10158 (x-server-version): Use ns_appkit_version_int and follow 21+
10159 convention of returning 3 integers.
10160
c19cab20
KH
101612008-12-30 Kenichi Handa <handa@m17n.org>
10162
10163 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10164 (CHAR_SURROGATE_PAIR_P): New macro.
10165
10166 * font.h (struct font_driver): New member get_variation_glyphs.
10167
9acef61c 10168 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
10169 (Ffont_variation_glyphs): New function.
10170 (syms_of_font): Defsubr it.
10171
10172 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10173 ftfont_variation_glyphs.
10174 (setup_otf_gstring): New function.
10175 (ftfont_drive_otf): Use it.
10176 (ftfont_shape_by_flt): Handle variation selector.
10177 (ftfont_variation_glyphs): New function.
10178
28cd591f
MR
101792008-12-30 Martin Rudalics <rudalics@gmx.at>
10180
10181 * frame.c (Vemacs_iconified): Remove.
10182
7f714baf
JR
101832008-12-30 Jason Rumney <jasonr@gnu.org>
10184
10185 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 10186 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 10187
9d2d22ab
CY
101882008-12-30 Chong Yidong <cyd@stupidchicken.com>
10189
10190 * indent.c (Fvertical_motion): Don't advance iterator if we have
10191 reseated to the desired position.
10192
10193 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10194 checking for pos match.
10195
545312c2
KH
101962008-12-30 Kenichi Handa <handa@m17n.org>
10197
1ede3eb6
KH
10198 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10199 just get the low 8-bit of the code.
10200
545312c2
KH
10201 * font.c (font_intern_prop): Validate str as multibyte.
10202
bd7bbf29
DN
102032008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10204
31e0750e
DN
10205 * dispextern.h (struct face): Move lface and hash from the middle
10206 of bitfields.
10207
bd7bbf29
DN
10208 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10209
b5672e7c
DN
102102008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10211
10212 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10213 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10214 instead of intervals.h.
10215
d704470f
AS
102162008-12-26 Andreas Schwab <schwab@suse.de>
10217
10218 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10219 cons.
10220
54b33868
MR
102212008-12-26 Martin Rudalics <rudalics@gmx.at>
10222
10223 * textprop.c (Qminibuffer_prompt): New variable.
10224 (syms_of_textprop): Initialize it.
10225 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10226 in minibuffer-prompt face. (Bug#1662)
10227
40b615d6
JR
102282008-12-25 Jason Rumney <jasonr@gnu.org>
10229
10230 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10231
baae5c2d
JR
102322008-12-24 Jason Rumney <jasonr@gnu.org>
10233
10234 * ralloc.c (r_alloc_reset_variable): New function.
10235
10236 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 10237 record of what points where. (Bug#716)
baae5c2d 10238
a9051c88
DN
102392008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10240
10241 * minibuf.c (read_minibuf): Follow the non-interactive case when
10242 running as a daemon, before detaching.
10243
8b146312
AS
102442008-12-22 Andreas Schwab <schwab@suse.de>
10245
10246 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10247 * gtkutil.c (free_widget_value): Use xfree instead of free.
10248
56f2de10
MR
102492008-12-22 Martin Rudalics <rudalics@gmx.at>
10250
10251 * frame.c (delete_frame): New function derived from
10252 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10253 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10254 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10255 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10256 * frame.h: Extern delete_frame.
10257 * window.c (window_loop):
10258 * terminal.c (delete_terminal):
10259 * xterm.c (x_connection_closed):
10260 * xfns.c (Fx_hide_tip):
9acef61c 10261 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 10262
1fc200d6
JR
102632008-12-21 Jason Rumney <jasonr@gnu.org>
10264
10265 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10266 when character maps to .notdef character.
10267
5e252df2
SM
102682008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10269
10270 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10271
99b72cc4
JR
102722008-12-20 Jason Rumney <jasonr@gnu.org>
10273
10274 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 10275 a graphical frame on Windows. (Bug#1325)
99b72cc4 10276
acc49a52
JD
102772008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10278
10279 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10280
6ea15123
CY
102812008-12-20 Chong Yidong <cyd@stupidchicken.com>
10282
10283 * minibuf.c (Fread_buffer): Doc fix.
10284
b2dab6c8
JR
102852008-12-20 Jason Rumney <jasonr@gnu.org>
10286
54ea0c87 10287 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 10288 server name in UNC paths. (Bug#719)
54ea0c87 10289
b2dab6c8 10290 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 10291 charbuf. (Bug#1035)
b2dab6c8 10292
6d1921be
DN
102932008-12-19 Daniel Engeler <engeler@gmail.com>
10294
10295 * sysdep.c (serial_configure): Fix typo.
10296
53934c98
DN
102972008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10298
10299 * sysdep.c: Include alloca.h.
f4f634e8
DN
10300 (system_process_attributes): Add implementation for Solaris.
10301
10302 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 10303
06e111a6
DN
103042008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10305
10306 Reorganize implementation of Flist_system_processes and
10307 Fsystem_process_attributes. No functional changes.
10308 * process.c: Don't #include pwd.h, grp.h and limits.h.
10309 (Flist_system_processes): Just call list_system_processes.
10310 (Fsystem_process_attributes): Just call system_process_attributes.
10311 (procfs_list_system_processes, time_from_jiffies)
10312 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10313 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10314
10315 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10316 (list_system_processes): Rename from
10317 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10318 Provide a do nothing implementation.
10319 (system_process_attributes): Rename from
10320 procfs_list_system_processes.
10321 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 10322 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
10323
10324 * w32.c (list_system_processes): Rename from
10325 w32_list_system_processes.
10326 (system_process_attributes): Rename from
10327 w32_system_process_attributes.
10328
10329 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10330
10331 * process.h (w32_list_system_processes)
10332 (w32_system_process_attributes): Remove.
362654a6
JB
10333 (list_system_processes, system_process_attributes):
10334 New prototypes.
06e111a6 10335
6a705b23
KH
103362008-12-19 Kenichi Handa <handa@m17n.org>
10337
10338 * xfont.c (xfont_decode_coding_xlfd): New function.
10339 (xfont_encode_coding_xlfd): New function.
10340 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10341 (xfont_list): Decode and encode XLFD by iso-8859-1.
10342 (xfont_match): Likewise.
10343 (xfont_list_family): Likewise.
10344 (xfont_open): Likewise.
10345
d66c0241 10346 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
10347 names are utf-8.
10348
d66c0241 10349 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
10350 names are utf-8.
10351
5a130941
JD
103522008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10353
10354 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10355 changed.
bfd20325
JD
10356 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10357 clicked on a detached tool bar button.
5a130941 10358
fd95644b
DN
103592008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10360
10361 * emacs.c (main): Print and error and exit when no data is read
10362 from the pipe.
10363
e6eee6ae
JR
103642008-12-17 Jason Rumney <jasonr@gnu.org>
10365
10366 * w32font.c (w32font_has_char): Always return -1.
10367
a35dd56b
KH
103682008-12-16 Kenichi Handa <handa@m17n.org>
10369
10370 * font.c (font_open_entity): Fix previous change.
10371
0e3635c2
DN
103722008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10373
10374 * process.c: Include <limits.h>.
10375
d4835507 103762008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
10377
10378 * font.c (font_update_drivers): Fix mistake in reconstructing the
10379 driver list.
10380
103812008-12-16 Chong Yidong <cyd@stupidchicken.com>
10382
10383 * font.c (font_clear_cache): Fix format of font cache data.
10384
e2cbc401
CY
103852008-12-15 Chong Yidong <cyd@stupidchicken.com>
10386
10387 * xftfont.c (xftfont_open): Free Xft font pattern if
10388 XftFontOpenPattern fails.
10389
10390 * xterm.c (x_free_frame_resources): Remove extraneous call to
10391 free_frame_faces.
10392
b131d535
CY
103932008-12-13 Chong Yidong <cyd@stupidchicken.com>
10394
10395 * xterm.c (x_delete_display): Move xim_close_dpy call to
10396 x_delete_terminal.
10397 (x_delete_terminal): Call xim_close_dpy.
10398
e6df5336
JR
103992008-12-13 Jason Rumney <jasonr@gnu.org>
10400
10401 * w32font.c (intern_font_name): New function.
10402 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10403 (w32font_open_internal, Fx_select_font): Decode font name.
10404 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10405
10406 * w32font.h (intern_font_name): Declare new function.
10407
10408 * w32uniscribe.c (add_opentype_font_name_to_list):
10409 Use intern_font_name.
10410
20d68145
CY
104112008-12-13 Chong Yidong <cyd@stupidchicken.com>
10412
9f2554de
CY
10413 * frame.c (Fdelete_frame): Call free_font_driver_list.
10414
3d9bec9a
CY
10415 * font.c (free_font_driver_list): Implement missing function.
10416
20d68145
CY
10417 * w32term.c (w32_term_init): Don't initialize the image cache
10418 here; it will be done in init_frame_faces.
10419
10420 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10421 (struct x_display_info): Remove unused member null_pixel. New
10422 member xim_callback_data.
10423
10424 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10425 (xim_initialize): Save pointer to callback function data.
10426 (xim_close_dpy): Free callback function data. Call XCloseIM,
10427 reverting 2008-11-04 change by David Smith.
10428 (x_term_init): Don't initialize the image cache here; it will be
10429 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10430 (x_delete_display): Free x_dnd_atoms member.
10431
96f9306b
KH
104322008-12-13 Kenichi Handa <handa@m17n.org>
10433
6dec9044
JB
10434 * font.c (font_rescale_ratio): Moved from xfaces.c.
10435 Argument type changed. Handle a font-spec too.
96f9306b 10436 (font_score): Check Vface_font_rescale_alist.
6dec9044 10437 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
10438
10439 * xfaces.c (font_rescale_ratio): Moved to font.c.
10440
8d5b4964
CY
104412008-12-13 Chong Yidong <cyd@stupidchicken.com>
10442
10443 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10444
e6df5336
JR
104452008-12-12 Jason Rumney <jasonr@gnu.org>
10446
10447 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10448 Vwindow_system_version to the real w32 major version.
10449
97c6058a
DN
104502008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10451
10452 * term.c (init_tty): Move setting the terminal name before the
10453 potential user: maybe_fatal.
10454
ec4e88d7
CY
104552008-12-11 Chong Yidong <cyd@stupidchicken.com>
10456
d4835507
JB
10457 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10458 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 10459
b4233ec9
JR
104602008-12-11 Jason Rumney <jasonr@gnu.org>
10461
8ec71e23 10462 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 10463 SYMBOL_CHARSET. (Bug#547)
8ec71e23 10464
b4233ec9 10465 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 10466 size for surrogates. (Bug#1096, bug#872)
b4233ec9 10467
011a0143
JB
104682008-12-11 Juanma Barranquero <lekktu@gmail.com>
10469
10470 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10471
3c309f34
JB
104722008-12-11 Juanma Barranquero <lekktu@gmail.com>
10473
10474 * process.c (Fsystem_process_attributes, syms_of_process):
10475 Fix typo in name of Ssystem_process_attributes.
10476 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10477
fedc6ab5
JB
104782008-12-11 Juanma Barranquero <lekktu@gmail.com>
10479
10480 * syntax.c (Fmodify_syntax_entry): Doc fix.
10481
ba3de0e8
JB
104822008-12-10 Juanma Barranquero <lekktu@gmail.com>
10483
10484 * font.c (Ffont_spec): Move usage to end of docstring.
10485
174f1c74
JR
104862008-12-10 Jason Rumney <jasonr@gnu.org>
10487
10488 * w32font.c (Qcham): New symbol.
10489 (font_supported_scripts): Add cham, and comments for other new
10490 scripts in bitfield from OpenType spec.
9d32f818
JR
10491 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10492 contain characters beyond the bmp.
174f1c74 10493
7b649478
KH
104942008-12-10 Kenichi Handa <handa@m17n.org>
10495
10496 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 10497 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
10498 Qunicode_sip.
10499
2133e2d1
JB
105002008-12-10 Juanma Barranquero <lekktu@gmail.com>
10501
10502 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10503 (Fcoding_system_put): Use QCdefault_char.
10504 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10505
9af886ee
CY
105062008-12-09 Chong Yidong <cyd@stupidchicken.com>
10507
74d819eb
CY
10508 * xftfont.c (syms_of_xftfont): Fix typo.
10509
4ccfa1c0 10510 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 10511
7c19d3ae
DN
105122008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10513
10514 * emacs.c (main): Close daemon_pipe on exec.
10515
567826bb
CY
105162008-12-08 Chong Yidong <cyd@stupidchicken.com>
10517
10518 * termchar.h (struct tty): New members termcap_term_buffer and
10519 termcap_strings_buffer.
10520
10521 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 10522 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
10523 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10524 All callers changed.
10525 (init_tty): Store termcap data and string buffers in new struct
10526 tty members termcap_term_buffer and termcap_strings_buffer.
10527 (delete_tty): Free them.
4ccfa1c0 10528 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 10529
aa96c42b
SZ
105302008-12-07 Seiji Zenitani <zenitani@mac.com>
10531
10532 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 10533 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 10534
b7e1d896
CY
105352008-12-06 Chong Yidong <cyd@stupidchicken.com>
10536
10537 * coding.c (make_conversion_work_buffer): Disable buffer
10538 modification hooks in the work buffer.
10539
b5ec91a5
EZ
105402008-12-05 Eli Zaretskii <eliz@gnu.org>
10541
10542 * process.c (procfs_system_process_attributes): If `nread' has a
10543 negative value, assign zero to it.
10544
a5d2a52b
CY
105452008-12-05 Chong Yidong <cyd@stupidchicken.com>
10546
68c5540b 10547 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 10548
7bf1bb21
KH
105492008-12-05 Kenichi Handa <handa@m17n.org>
10550
10551 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10552 second character is a combining character.
10553
2fdc7d00
EZ
105542008-12-05 Eli Zaretskii <eliz@gnu.org>
10555
10556 * process.c (procfs_system_process_attributes): Don't use cmd,
10557 cmdsize, and q without initializing them first.
10558
bf6bfba8
JR
105592008-12-04 Jason Rumney <jasonr@gnu.org>
10560
10561 * w32font.c (w32font_draw): Initialize orig_clip before getting
10562 it, and delete it when finished.
10563
a3b1a468
DN
105642008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10565
10566 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10567 case when running as a daemon before detaching.
10568
8b8be8eb
JB
105692008-12-03 Juanma Barranquero <lekktu@gmail.com>
10570
805f2638 10571 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 10572
b1bde622
KH
105732008-12-03 Kenichi Handa <handa@m17n.org>
10574
e500c47d
KH
10575 * font.c (font_at): Set `multibyte' at first.
10576
ca516334
KH
10577 * coding.c (decode_coding_charset): Check type of an element of
10578 vector VALIDS.
7bf1bb21 10579 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 10580
4ccfa1c0 10581 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
10582 (font_for_char): Likewise.
10583
1e5ecd37
CY
105842008-12-03 Chong Yidong <cyd@stupidchicken.com>
10585
d5b01609 10586 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
10587 (font_update_lface): Handle fonts with corrupted size specs,
10588 i.e. non-int and non-float.
d5b01609 10589
11e3a6e4 10590 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 10591 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 10592 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 10593
ab06788b
CY
10594 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10595
1e5ecd37 10596 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 10597 underline_minimum_offset for underline position.
1e5ecd37 10598
63c125ab
DN
105992008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10600
10601 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10602
10603 * character.c (c_string_width): Specify the type for LEN.
10604
3a8406e1
KH
106052008-12-03 Kenichi Handa <handa@m17n.org>
10606
4ccfa1c0 10607 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 10608 (decode_coding_utf_8): Likewise.
4ccfa1c0 10609 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 10610 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 10611
651df7d9
CY
106122008-12-02 Chong Yidong <cyd@stupidchicken.com>
10613
10614 * keyboard.c (make_lispy_position): Only use PT if the selected
10615 window is current.
10616
1f625c6c
AS
106172008-12-02 Andreas Schwab <schwab@suse.de>
10618
f7741ce9
AS
10619 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10620
1f625c6c
AS
10621 * doprnt.c (doprnt1): Fix size of charbuf.
10622
92bc2678
CY
106232008-12-02 Chong Yidong <cyd@stupidchicken.com>
10624
10625 * keyboard.c (timer_check): Revert last change.
10626
93b9e8cc
JB
106272008-12-02 Juanma Barranquero <lekktu@gmail.com>
10628
10629 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10630
fd7a37d5
JB
106312008-12-01 Juanma Barranquero <lekktu@gmail.com>
10632
10633 * makefile.w32-in: Update dependencies.
10634 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10635
c115043b
AS
106362008-12-01 Andreas Schwab <schwab@suse.de>
10637
10638 * font.c (register_font_driver): Use xmalloc.
10639 (font_put_frame_data): Likewise.
10640
f5668d2a
CY
106412008-12-01 Chong Yidong <cyd@stupidchicken.com>
10642
860d96be
CY
10643 * xfaces.c (realize_x_face): Make abort condition clearer.
10644
f5668d2a
CY
10645 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10646
379c17e7
CY
106472008-11-30 Chong Yidong <cyd@stupidchicken.com>
10648
10649 * keyboard.c (timer_check): After a timer runs, ensure that the
10650 selected window's buffer is current.
10651
35f36d65
JB
106522008-11-30 Juanma Barranquero <lekktu@gmail.com>
10653
f952c61c
JB
10654 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10655 It was accidentally restored by the Unicode merge.
10656
35f36d65
JB
10657 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10658
b23077df
JB
106592008-11-29 Juanma Barranquero <lekktu@gmail.com>
10660
10661 * w32proc.c: Include "coding.h".
10662 (Fw32_short_file_name): Encode filename passed to Windows API.
10663 (Fw32_long_file_name): Encode filename passed to Windows API and
10664 decode back the result. (Bug#1433)
10665
b8ebe9dd
KH
106662008-11-29 Kenichi Handa <handa@m17n.org>
10667
8cc53f96
KH
10668 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10669 not before accessing it.
10670
b8ebe9dd
KH
10671 * charset.c (Fdefine_charset_internal): After calculating
10672 min_char, max_char, and fastmap, copy the charset structure again.
10673 (encode_char): Fix the previous change.
10674
59bc82c0
SZ
106752008-11-28 Seiji Zenitani <zenitani@mac.com>
10676
10677 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10678
10679 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10680
10681 * nsterm.m (x_set_frame_alpha): New function.
10682
32247e3d
EZ
106832008-11-27 Eli Zaretskii <eliz@gnu.org>
10684
10685 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10686
b003e5ff
JB
106872008-11-27 Juanma Barranquero <lekktu@gmail.com>
10688
10689 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10690 pointer to check_face_name.
10691
708550f5
KH
106922008-11-27 Kenichi Handa <handa@m17n.org>
10693
10694 * category.h (SET_CATEGORY_SET): Call set_category_set.
10695 (set_category_set): Extern it.
10696
10697 * category.c (hash_get_category_set): New function.
10698 (Fmodify_category_entry): Adjusted for the change of
10699 char_table_ref_and_range. Call hash_get_category_set to get a
10700 category set to store in the table.
10701
10702 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10703 Funify_charset.
10704
2ae37cf0 10705 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
10706 (DECODE_CHAR): Check if the decoder vector is ready.
10707 (ENCODE_CHAR): Check if the encoder char-table is ready.
10708 (maybe_unify_char): Extern it.
10709
10710 * charset.c (Vchar_unified_charset_table): Delete it.
10711 (inhibit_load_charset_map): New variable.
10712 (temp_charset_work): New variable.
10713 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10714 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10715 New macros.
10716 (load_charset_map): Meaning of control_flag changed. If
10717 inhibit_load_charset_map is nonzero, setup a table in
10718 temp_charset_work.
10719 (load_charset): New argument control_flag.
10720 (map_charset_for_dump): New function.
10721 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10722 map_charset_for_dump.
10723 (Fdefine_charset_internal): If the charset method is MAP, load
10724 mapping tables by calling load_charset.
10725 (Funify_charset): Don't load a mapping table but directly set
10726 Vchar_unify_table.
10727 (maybe_unify_char): New function.
10728 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10729 Handle the case of inhibit_load_charset_map being nonzero.
10730 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10731 Handle the case of inhibit_load_charset_map being nonzero.
10732 (Fclear_charset_maps): Just free temp_charset_work.
10733 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10734 variable.
10735
10736 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10737 change of char_table_ref_and_range.
10738 (char_table_ref_and_range): Change the meaning of argument FROM
10739 and TO. Now the caller must provide initial values for *FROM
10740 and *TO.
10741
10742 * fontset.c (fontset_add): Adjusted for the change of
10743 char_table_ref_and_range.
10744 (fontset_get_font_group): Likewise.
10745 (Ffontset_info): Likewise.
10746
10747 * keymap.c (describe_vector): Adjusted for the change of
10748 char_table_ref_and_range. For char-table, put boundary between
10749 non-ASCII and 8-bit characters.
10750
10751 * print.c (print_object): For bool-vector, delete unnecessary
10752 check of ASCII_BYTE_P.
10753
9196133b
JR
107542008-11-26 Jason Rumney <jasonr@gnu.org>
10755
10756 * w32font.c (w32font_open_internal): Don't include external
9acef61c 10757 leading in font height. (Bug#879)
9196133b 10758
9f688acf
GM
107592008-11-26 Glenn Morris <rgm@gnu.org>
10760
10761 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10762 redefinition with ifdef. (Bug#1383)
10763
90d19aff
AR
107642008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10765
10766 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10767
4ccfa1c0 107682008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
10769
10770 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10771 New EmacsView methods.
10772 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10773 Fixes bug #1048,1357,1414.
10774
107752008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10776
10777 Fix bug #1362.
10778 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10779 is not an indexed color.
10780 * nsterm.m (free_indexed_color): Add argument checking.
10781 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10782
e7d5ecb3
CY
107832008-11-24 Chong Yidong <cyd@stupidchicken.com>
10784
10785 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10786 Document confirm-after-completion value for
10787 minibuffer-completion-confirm.
10788
c285743c
JR
107892008-11-24 Jason Rumney <jasonr@gnu.org>
10790
10791 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10792 warning.
10793
b0857706
JR
107942008-11-23 Jason Rumney <jasonr@gnu.org>
10795
10796 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10797 restored before returning.
10798
10799 * w32font.c (check_face_name): New function.
10800 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 10801 fonts. (Bug#642)
b0857706 10802
ee50ff07
MR
108032008-11-22 Martin Rudalics <rudalics@gmx.at>
10804
10805 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10806 confirm-nonexistent-file-or-buffer in doc-string.
10807
b8ff72fa
SM
108082008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10809
10810 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10811 Fix copy/paste typo. Add checks.
10812
cee53ed4
KH
108132008-11-21 Kenichi Handa <handa@m17n.org>
10814
10815 * coding.c (detect_coding_iso_2022): Reject invalid composition
10816 sequence.
10817 (DECODE_COMPOSITION_START): If the current source is the last
10818 block, and the current composition doesn't end, regard this
10819 sequence as invalid.
10820 (decode_coding_iso_2022): Handle invalid composition sequence.
10821
f6ef1e65
MR
108222008-11-20 Martin Rudalics <rudalics@gmx.at>
10823
10824 * window.c (coordinates_in_window): Don't return
10825 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10826 line when the window is not the rightmost one. (Bug#1372)
10827
e08b1705
MR
108282008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10829
10830 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10831
ad98e89f
EZ
108322008-11-15 Eli Zaretskii <eliz@gnu.org>
10833
10834 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10835 and bright_bg if noninteractive is non-zero.
10836
fb098a4b
CY
108372008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10838
10839 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10840 x_draw_glyph_string_background.
10841
10842 * w32term.c (x_draw_glyph_string): Likewise.
10843
ce952b6e
CY
108442008-11-15 Chong Yidong <cyd@stupidchicken.com>
10845
10846 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10847 the next glyph string once past the overhang width.
10848
10849 * nsterm.m (ns_draw_glyph_string): Likewise.
10850
10851 * w32term.c (x_draw_glyph_string): Likewise.
10852
26ea7079
CY
108532008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10854
10855 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10856 double file close.
10857
1c33c906
MR
108582008-11-14 Martin Rudalics <rudalics@gmx.at>
10859
10860 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10861 dedicated status of window before attempting to display another
10862 buffer in it.
10863
8fc29035
JB
108642008-11-14 Juanma Barranquero <lekktu@gmail.com>
10865
10866 * msdos.c (Fmsdos_long_file_names):
10867 (syms_of_msdos) <dos-unsupported-char-glyph>:
10868 * dosfns.c (Fint86): Fix typos in docstrings.
10869
55fb4286
EZ
108702008-11-14 Eli Zaretskii <eliz@gnu.org>
10871
10872 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10873
3fda0315
KY
108742008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10875
10876 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10877
7e849c17
CY
108782008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10879
10880 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10881
10882 * frame.h: Negative alpha means "don't touch".
10883
10884 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10885
10886 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10887
b9fd67bd
DN
108882008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10889
10890 * hftctl.c:
10891 * chpdef.h:
10892 * acldef.h: Remove files used only for systems no longer supported.
10893
10894 * Makefile.in: Fix .o alphabetical ordering.
10895 (hftctl.o): Remove dependency, file removed.
10896 (keymap.o, print.o): Depend on charset.h.
10897
d5998e03
KH
108982008-11-10 Kenichi Handa <handa@m17n.org>
10899
2ae37cf0 10900 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 10901
be70e183
CY
109022008-11-08 Chong Yidong <cyd@stupidchicken.com>
10903
10904 * dired.c (file_name_completion): If completion_ignore_case is
10905 enabled, ignore case when checking completion-regexp-list.
10906
7cf94eac
EZ
109072008-11-08 Eli Zaretskii <eliz@gnu.org>
10908
10909 * vm-limit.c (get_lim_data): Fix last change.
10910
ee107a89
KH
109112008-11-08 Kenichi Handa <handa@m17n.org>
10912
10913 * character.c (Fget_byte): New function.
10914 (syms_of_character): Defsubr Fget_byte.
10915
5fd15622
CY
109162008-11-07 Chong Yidong <cyd@stupidchicken.com>
10917
10918 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10919 cursor position is valid after scrolling.
10920
13d62fad
JB
109212008-11-06 Juanma Barranquero <lekktu@gmail.com>
10922
10923 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10924
a1dd2936
GM
109252008-11-06 Glenn Morris <rgm@gnu.org>
10926
10927 * xterm.c (handle_one_xevent): Don't let popup menus cause
10928 mouse-autoselect-window related window switching. (Bug#1261)
10929
860cd236
CY
109302008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10931
10932 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10933
653a3150
AS
109342008-11-04 Andreas Schwab <schwab@suse.de>
10935
10936 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10937
870f5cac
CY
109382008-11-03 Chong Yidong <cyd@stupidchicken.com>
10939
10940 * xfns.c (Fx_wm_set_size_hint): New function.
10941
1e02f3cb
MR
109422008-11-03 Martin Rudalics <rudalics@gmx.at>
10943
10944 * textprop.c (Fprevious_single_char_property_change): Return 0
10945 when there's no change in a string. (Bug#1301)
10946
e630dfc6
MR
109472008-11-02 Martin Rudalics <rudalics@gmx.at>
10948
10949 * frame.c (do_switch_frame): New argument NORECORD passed to
10950 Fselect_window.
10951 (Fselect_frame): New argument NORECORD passed to
10952 do_switch_frame.
10953 (Fset_frame_selected_window): New argument NORECORD passed to
10954 Fselect_frame.
10955 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10956 in call of do_switch_frame.
10957 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10958 Handle NORECORD argument in call of Fselect_frame.
10959 * lisp.h (do_switch_frame, Fselect_frame)
10960 (Fset_frame_selected_window): Adjust declarations.
10961 * window.c (select_frame_norecord): New function.
10962 (run_window_configuration_change_hook): Use it and call
10963 Fselect_frame with NORECORD set.
10964 (Fselect_window): Pass NORECORD to Fselect_frame.
10965 (Fset_window_configuration): Handle NORECORD argument in call of
10966 do_switch_frame.
10967 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10968 Fset_frame_selected_window.
10969 * keyboard.c (command_loop_1): Handle NORECORD in call of
10970 Fselect_frame (currently ifdefd).
10971
9020b223
GM
109722008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10973
10974 * emacs.c (USAGE2): Untabify.
10975
793ffee8
SM
109762008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10977
10978 * composite.c (fill_gstring_header): Fix copy/paste typo.
10979
ab6d1131
MR
109802008-10-31 Martin Rudalics <rudalics@gmx.at>
10981
10982 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10983 (Fother_window): Rename argument and rewrite doc-string.
10984 (select_window_norecord): Fix return value. (Bug#1276)
10985
601a9cf1
JB
109862008-10-30 Juanma Barranquero <lekktu@gmail.com>
10987
10988 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10989 new frames overriding foreground for tooltips. Based on similar patch
10990 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10991
813b0652
CY
109922008-10-29 Chong Yidong <cyd@stupidchicken.com>
10993
10994 * emacs.c (Fdaemon_initialized): Initialize nfd.
10995
4414f58f
MR
109962008-10-29 Martin Rudalics <rudalics@gmx.at>
10997
10998 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10999 (Fwindow_text_height): Clarify doc-strings.
11000 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11001 doc-string of window-scroll-functions.
11002
ecdcaa09
RS
110032008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11004
11005 * category.c (syms_of_category): Fix typo in docstring.
11006
23fe745a
JB
110072008-10-28 Juanma Barranquero <lekktu@gmail.com>
11008
11009 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11010 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11011 Fix typos in docstrings.
11012
ff808935
DN
110132008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11014
11015 * emacs.c (daemon_pipe): Make non-static.
11016 (IS_DAEMON): Move definition ...
11017 * lisp.h (IS_DAEMON): ... here.
11018 (daemon_pipe): Declare.
11019 (is_daemon): Remove.
11020 * dispnew.c (init_display): Use IS_DAEMON.
11021
fc012771
SM
110222008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11023
11024 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11025 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11026
11027 * emacs.c (is_daemon): Remove.
11028 (main): Don't set is_daemon.
11029 (IS_DAEMON): New macro.
11030 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 11031 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
11032 parent exits.
11033 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11034
d8bdbe6f
CY
110352008-10-27 Chong Yidong <cyd@stupidchicken.com>
11036
d1a072bf
CY
11037 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11038 over-sized glyph, draw it with the default glyph width.
11039
e2e325aa
CY
11040 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11041 glyph, draw it with the default glyph width.
11042
11043 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11044 glyph, draw it with the default glyph width.
11045
d8bdbe6f
CY
11046 * xdisp.c (try_scrolling): When computing the distance from the
11047 scroll margin to PT, try moving some distance past the window
11048 bottom before giving up.
11049
7bfac547
MR
110502008-10-27 Martin Rudalics <rudalics@gmx.at>
11051
11052 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11053 (Fset_window_buffer): Explain in doc-string that a window can be
11054 "strongly" dedicated to its buffer.
11055
4ff029f6
DN
110562008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11057
11058 * emacs.c (daemon_name): New variable.
11059 (main): Deal with --daemon=SERVER_NAME.
11060 (Fdaemonp): Return a name if one was passed to --daemon.
11061
5790ef40
DN
110622008-10-26 Romain Francoise <romain@orebokech.com>
11063
f9bd0df9 11064 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
11065 (main): Create a pipe before forking, make the parent exit only after
11066 the child has closed its end of the pipe. Move closing the
11067 descriptors ...
11068 (Fdaemon_initialized): ... here. New function.
11069
f5385255
SM
110702008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11071
4d632321
SM
11072 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11073 the previous unoptimized table.
11074
f5385255
SM
11075 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11076 the distinction between non-nil and non-t value of `dedicated'.
11077
6c56a0f3
CY
110782008-10-25 Chong Yidong <cyd@stupidchicken.com>
11079
11080 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 11081 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 11082
fec89261
MR
110832008-10-25 Martin Rudalics <rudalics@gmx.at>
11084
11085 * window.c (Fget_buffer_window, Fdelete_windows_on)
11086 (Freplace_buffer_in_windows): Make buffer argument optional and
11087 rename to buffer_or_name.
11088
34fcddd0
CY
110892008-10-24 Chong Yidong <cyd@stupidchicken.com>
11090
f5385255
SM
11091 * xdisp.c (handle_single_display_spec, handle_display_prop):
11092 Undo 2005-05-16 change.
34fcddd0
CY
11093 (handle_stop): Pop iterator if it's loaded with an empty string.
11094 (get_overlay_strings_1): Don't save iterator if it's loaded with
11095 an empty string (bug#1201).
11096
064766f2
KH
110972008-10-24 Kenichi Handa <handa@m17n.org>
11098
11099 * ftfont.c (ftfont_otf_features): Fix previous change.
11100 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11101 calling ftfont_otf_features.
11102
f9bd0df9 111032008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
11104
11105 * font.c (font_match_p): Fix for the case that a vector of
11106 characters is in script-representative-chars.
11107
1dae9197
MA
111082008-10-24 Michael Albinus <michael.albinus@gmx.de>
11109
11110 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 11111 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
11112 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11113 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 11114 macro. (Bug#1186)
1dae9197 11115
f9bd0df9 111162008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
11117
11118 * s/sol2-10.h: New file.
11119
878a4584
JB
111202008-10-23 Juanma Barranquero <lekktu@gmail.com>
11121
11122 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11123 poor beast has survived 9+ years and the jump from xterm.c!).
11124
cd265ca6
MR
111252008-10-23 Martin Rudalics <rudalics@gmx.at>
11126
11127 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11128 Reword doc-string.
f5385255 11129 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 11130
472a4dc9
JB
111312008-10-23 Juanma Barranquero <lekktu@gmail.com>
11132
11133 * character.c (syms_of_character) <script-representative-chars>:
11134 <unicode-category-table>: Doc fixes.
11135
159bd5a2
NF
111362008-10-23 Noah Friedman <friedman@splode.com>
11137
11138 * coding.c (make_conversion_work_buffer): Check that
11139 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11140 Fget_buffer_create.
11141
49f9c344
KH
111422008-10-23 Kenichi Handa <handa@m17n.org>
11143
11144 * font.c (font_add_log): Check the values of extra properties.
11145
12bb3111
MR
111462008-10-22 Martin Rudalics <rudalics@gmx.at>
11147
11148 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11149 Reword doc-string.
11150 (Fset_window_parameter): Use NILP.
11151 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 11152 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 11153
bbeb4e99
JB
111542008-10-22 Juanma Barranquero <lekktu@gmail.com>
11155
11156 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11157
111582008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
11159
11160 * nsfns.m (ns_appkit_version): New function.
11161 (x-server-version): Use it.
11162 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11163 (x-server-vendor): Don't check_ns().
11164
11165 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11166
a9b555d3
JB
111672008-10-22 Juanma Barranquero <lekktu@gmail.com>
11168
11169 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11170 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11171
4626499f
KH
111722008-10-22 Kenichi Handa <handa@m17n.org>
11173
e3681952
KH
11174 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11175 scripts.
11176
4626499f
KH
11177 * category.c (word_boundary_p): Check scripts instead of charset.
11178 Handle nil value in word-separating-categories and
11179 word-combining-categories.
11180 (syms_of_category): Fix docstrings of word-separating-categories
11181 and word-combining-categories.
11182
1560f91a
EZ
111832008-10-21 Eli Zaretskii <eliz@gnu.org>
11184
11185 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11186 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11187
f4668441
MR
111882008-10-21 Martin Rudalics <rudalics@gmx.at>
11189
11190 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11191 Rename arg "buffer" to "buffer_or_name".
11192 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11193 it optional.
11194 (no_switch_window): Remove since the return value is not used.
a9b555d3 11195 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
11196 Consider window as dedicated when Fwindow_dedicated_p returns a
11197 non-nil value.
11198 * lisp.h: Remove prototype for no_switch_window.
11199
fd75ddb2
JD
112002008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11201
11202 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 11203 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 11204
07295713
KH
112052008-10-21 Kenichi Handa <handa@m17n.org>
11206
11207 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11208 check Vlatin_extra_code_table.
11209
712adc82
EZ
112102008-10-20 Eli Zaretskii <eliz@gnu.org>
11211
11212 * fileio.c (Fset_file_modes): Doc fix.
11213
f549eb0b
MA
112142008-10-19 Michael Albinus <michael.albinus@gmx.de>
11215
11216 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11217 in arrays.
11218
aac0c6e3
MR
112192008-10-19 Martin Rudalics <rudalics@gmx.at>
11220
11221 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11222 Mention kill-buffer in doc-string.
11223 (Fset_window_buffer): Reinsert tem check removed in last commit.
11224 (Fenlarge_window, Fshrink_window): Have argument names and
11225 doc-string follow Elisp manual more closely.
11226
112272008-10-18 Eli Zaretskii <eliz@gnu.org>
11228
11229 * fileio.c (Fset_file_modes): Doc fix.
11230
112312008-10-18 Martin Rudalics <rudalics@gmx.at>
11232
11233 * window.c (Fwindow_width, Fset_window_start)
11234 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
11235 (Fdelete_windows_on, Freplace_buffer_in_windows):
11236 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
11237 (Fwindow_dedicated_p): Make window argument optional.
11238 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11239 (Fset_window_buffer): Respect any non-nil dedicated value for
11240 window. Rename "buffer" argument to "buffer_or_name".
11241
112422008-10-18 Ulrich Mueller <ulm@gentoo.org>
11243
11244 * m/sh3.h: New file, machine description for SuperH.
11245
112462008-10-17 Martin Rudalics <rudalics@gmx.at>
11247
11248 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11249
112502008-10-17 Kenichi Handa <handa@m17n.org>
11251
11252 * ftfont.c (ftfont_otf_features): Fix indexing
11253 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11254
112552008-10-16 Magnus Henoch <mange@freemail.hu>
11256
11257 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11258 (Fdbus_call_method_asynchronously): Ditto.
11259 This change makes C-h f display the argument list.
11260
112612008-10-16 Chong Yidong <cyd@stupidchicken.com>
11262
11263 * fileio.c (Fexpand_file_name): Doc fix.
11264
11265 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11266 of :foreground and :background equivalent to unspecified (20.x
11267 compatibility).
11268
112692008-10-15 Eli Zaretskii <eliz@gnu.org>
11270
11271 * buffer.c (syms_of_buffer): Doc fix.
11272
112732008-10-14 Kenichi Handa <handa@m17n.org>
11274
11275 * font.c (font_clear_prop): When clearing font width, clear the
11276 average width field too.
11277
112782008-10-12 Andreas Schwab <schwab@suse.de>
11279
11280 * ftfont.c (ftfont_shape_by_flt): Make static.
11281 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11282
11283 * font.c: Don't include <m17n-flt.h>.
11284
112852008-10-10 Eli Zaretskii <eliz@gnu.org>
11286
11287 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11288
112892008-10-09 Eli Zaretskii <eliz@gnu.org>
11290
11291 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11292 away code.
11293
112942008-10-09 Chong Yidong <cyd@stupidchicken.com>
11295
11296 * dispnew.c (update_text_area): Avoid looping due to large glyph
11297 overhangs (bug#1070).
11298
112992008-10-09 Kenichi Handa <handa@m17n.org>
11300
11301 * fontset.c (face_for_char): If face->fontset is negative, just
11302 return ascii_face.
11303
f5385255
SM
11304 * font.c (font_delete_unmatched): Fix previous change.
11305 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
11306
113072008-10-09 Martin Rudalics <rudalics@gmx.at>
11308
11309 * frame.c (Fraise_frame): On text-only terminals select frame in
11310 order to make it visible. (Bug#1061)
11311
113122008-10-08 Chong Yidong <cyd@stupidchicken.com>
11313
11314 * fontset.c (fontset_find_font): Check frame validity.
11315
113162008-10-07 Chong Yidong <cyd@stupidchicken.com>
11317
a9b555d3 11318 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
11319 (xg_display_close): Allow Emacs to close all displays (bug#985).
11320
113212008-10-06 Andreas Schwab <schwab@suse.de>
11322
f5385255 11323 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
11324
113252008-10-06 Chong Yidong <cyd@stupidchicken.com>
11326
f5385255 11327 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 11328
a9b555d3 11329 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
11330
11331 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11332 during initialization.
11333
113342008-10-04 Eli Zaretskii <eliz@gnu.org>
11335
11336 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11337 whole thing on MSDOS frames as well as on a TTY.
11338
11339 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11340 well as for TTY.
11341 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11342 well as on a TTY.
11343
11344 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11345 as well as for TTY.
11346
11347 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11348
11349 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11350 MSDOS frames as well.
11351
113522008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11353
11354 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11355 correct arguments.
b71ac3dd 11356 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
11357
113582008-10-03 Glenn Morris <rgm@gnu.org>
11359
11360 * emacs.c (USAGE1): Add --daemon.
11361
113622008-10-02 Eli Zaretskii <eliz@gnu.org>
11363
11364 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11365 100, so it's in percents as advertised.
11366
113672008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11368
11369 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11370 (ns_output.current_cursor, ns_output.desired_cursor)
11371 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11372 (FRAME_NEW_CURSOR_COLOR): Remove.
11373
11374 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 11375 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
11376 enumeration (HOLLOW_BOX_CURSOR, etc.).
11377
11378 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11379 (draw_window_cursor): Simplify code.
f5385255
SM
11380 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11381 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 11382 updates manually.
a9b555d3
JB
11383 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11384 Use core Emacs cursor types.
aac0c6e3 11385
b8ff72fa 11386 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
11387
113882008-10-02 Martin Rudalics <rudalics@gmx.at>
11389
11390 * process.c (Faccept_process_output): Fix doc-string.
11391
113922008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11393
11394 * gmalloc.c (__sbrk): Also define for uClibc.
11395
11396 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11397 for uClibc.
11398
113992008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11400
11401 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11402 styles.
11403 (nsfont_open): Reenable the cache.
11404
114052008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11406
11407 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11408 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11409
114102008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11411
11412 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11413 a suspended terminal.
11414
114152008-09-30 Michael Albinus <michael.albinus@gmx.de>
11416
11417 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11418
114192008-09-30 Eli Zaretskii <eliz@gnu.org>
11420
11421 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11422
114232008-09-30 Chong Yidong <cyd@stupidchicken.com>
11424
11425 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11426 in a continued line coincides with a line beginning.
11427
114282008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11429
11430 * nsfont.m (nsfont_trait_distance): Fix bug.
11431 (nsfont_list): Return a list rather than a vector (syncs with Handa
11432 changes of 2008-05-14).
11433 (nsfont_open): Improve logging.
11434
114352008-09-29 Andreas Schwab <schwab@suse.de>
11436
11437 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11438
114392008-09-28 Martin Rudalics <rudalics@gmx.at>
11440
11441 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11442 name as char-resolve-modifiers.
11443 Reported by: Markus Triska <markus.triska@gmx.at>
11444
114452008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11446
11447 * dispnew.c (init_display): Return earlier when running as a daemon.
11448
114492008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11450
11451 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11452
114532008-09-27 Eli Zaretskii <eliz@gnu.org>
11454
11455 * composite.c (Fcomposition_get_gstring)
11456 (Fcompose_region_internal, Fcompose_string_internal)
11457 (Ffind_composition_internal): Doc fix.
11458 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11459 (syms_of_composite) <auto-composition-function>: Doc fix.
11460 (syms_of_composite) <composition-function-table>: Doc fix.
11461
114622008-09-25 Chong Yidong <cyd@stupidchicken.com>
11463
11464 * search.c (wordify): New argument for lax word-ends.
11465 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11466
114672008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11468
11469 * lisp.h (is_daemon): Declare.
11470 * dispnew.c (init_display): Do not try to initialize the terminal
11471 when running as a daemon.
11472
114732008-09-22 Chong Yidong <cyd@stupidchicken.com>
11474
11475 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11476 x_display_pixel_height.
11477
114782008-09-22 Martin Rudalics <rudalics@gmx.at>
11479
11480 * undo.c (record_point): Don't call Fundo_boundary for first
11481 change. (Bug#731)
11482
114832008-09-22 Juanma Barranquero <lekktu@gmail.com>
11484
11485 * emacs.c (Fdaemonp): Doc fix.
11486
114872008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11488
11489 * emacs.c (main): Place #ifdef in the proper place.
11490
114912008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11492
11493 * emacs.c (standard_args): Add --daemon.
11494 (main): Disconnect from the terminal when --daemon is passed.
11495 (is_daemon): New variable.
11496 (Fdaemonp): New function.
11497 (syms_of_emacs): Defsubr it.
11498
114992008-09-20 Chong Yidong <cyd@stupidchicken.com>
11500
11501 * xdisp.c (get_next_display_element): Handle string display
11502 correctly when checking for the end of a box run.
11503
115042008-09-20 Glenn Morris <rgm@gnu.org>
11505
11506 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11507 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11508 (Frename_file): Avoid copying to trash if a rename involves
11509 a delete. (Bug#964).
11510
115112008-09-20 Eli Zaretskii <eliz@gnu.org>
11512
11513 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11514 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11515 frames as well as termcap frames.
11516 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11517 get_named_tty.
11518
115192008-09-19 Eli Zaretskii <eliz@gnu.org>
11520
11521 * process.c (procfs_system_process_attributes): Fix cmdline in
11522 case /proc/PID/cmdline is empty.
11523
11524 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11525 x_display_pixel_height.
11526
115272008-09-19 Juanma Barranquero <lekktu@gmail.com>
11528
11529 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11530
11531 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11532 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11533
115342008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11535
11536 * dispextern.h (struct it): Move line_wrap away from the middle of
11537 bitfields. Move voffset in struct iterator_stack_entry after the
11538 bitfields. Move tab_width near after another short.
11539
115402008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11541
11542 * frame.h (struct frame): Move alpha from the middle of bitfields.
11543
11544 * window.h (struct window): Move frozen_window_start_p after the
11545 rest of the bitfields to reduce padding.
11546
115472008-09-18 Chong Yidong <cyd@stupidchicken.com>
11548
11549 * xterm.h (x_display_info): Remove `height' and `width' members.
11550
11551 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11552
11553 * w32term.h (w32_display_info): Remove `height', `width',
11554 `height_in', and `width_in' members.
11555
b8ff72fa
SM
11556 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11557 New functions.
aac0c6e3
MR
11558 (x_calc_absolute_position): Use them.
11559 (x_term_init): Omit removed `height' and `width' members.
11560
b8ff72fa
SM
11561 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11562 New functions.
aac0c6e3
MR
11563 (w32_read_socket, x_calc_absolute_position): Use them.
11564 (w32_initialize_display_info, w32_term_init): Omit removed members
11565 of w32_display_info.
11566
b8ff72fa
SM
11567 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11568 New functions.
11569 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 11570
b8ff72fa
SM
11571 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11572 New functions.
aac0c6e3
MR
11573 (x_calc_absolute_position): Use them.
11574 (x_term_init): Omit removed `height' and `width' members.
11575
11576 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
11577 (compute_tip_xy):
11578 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
11579 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11580 x_display_pixel_width.
11581
115822008-09-18 Kenichi Handa <handa@m17n.org>
11583
11584 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11585 (composition_compute_stop_pos): Fix handling of static composition.
11586 (Fcomposition_get_gstring): Check FROM and TO at first.
11587
115882008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11589
46e722a9 11590 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
11591 mixup (YAILOM).
11592
115932008-09-17 Chong Yidong <cyd@stupidchicken.com>
11594
11595 * indent.c (Fvertical_motion): Use position reported by iterator
11596 instead of PT for determining screen motion (bug#943).
11597
115982008-09-17 Romain Francoise <romain@orebokech.com>
11599
11600 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11601
116022008-09-17 Kenichi Handa <handa@m17n.org>
11603
11604 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11605
11606 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11607 if necessary.
11608
116092008-09-16 Kenichi Handa <handa@m17n.org>
11610
11611 * coding.c (make_conversion_work_buffer): Avoid calling
11612 Fget_buffer_create if it is not necessary.
11613
116142008-09-15 Martin Rudalics <rudalics@gmx.at>
11615
11616 * window.c (Fselect_window): Don't update window_select_count and
11617 use_time when norecord is not nil.
11618
116192008-09-14 Kenichi Handa <handa@m17n.org>
11620
11621 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11622 specpdl_ptr.
11623
116242008-09-12 Kenichi Handa <handa@m17n.org>
11625
11626 * indent.c (scan_for_column): Don't handle automatic composition
11627 if the current buffer is not associated with a window.
11628
11629 * composite.c (composition_reseat_it): If the current buffer is
11630 not associated with a window, ignore the automatic composition.
11631 (find_automatic_composition): Likewise.
11632
116332008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11634
11635 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11636 (Fgpm_mouse_stop): Use it.
11637 * termhooks.h (close_gpm): Declare.
11638 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11639 connection if Gpm_GetEvent fails.
11640
11641 * window.c (set_window_buffer): Always preserve current-buffer.
11642
116432008-09-12 Glenn Morris <rgm@gnu.org>
11644
11645 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11646
116472008-09-11 Glenn Morris <rgm@gnu.org>
11648
11649 * charset.c (charset-map-path): Doc fix.
11650
116512008-09-10 Kenichi Handa <handa@m17n.org>
11652
11653 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11654
11655 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11656 compose a grapheme cluster with the preceding base glyph.
11657
11658 * composite.c (composition_compute_stop_pos): Fix previous change.
11659 Reset cmp_it->id to -1 at first.
11660
116612008-09-10 Glenn Morris <rgm@gnu.org>
11662
11663 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11664
116652008-09-09 Chong Yidong <cyd@stupidchicken.com>
11666
11667 * keyboard.c (read_key_sequence): Reapply translation maps when
11668 switching keyboards.
11669
116702008-09-09 Kenichi Handa <handa@m17n.org>
11671
11672 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11673 characters.
11674
11675 * composite.c (FORWARD_CHAR): Fix calculation
11676 of (POSITION).pos_byte.
11677 (composition_compute_stop_pos): Limit the search of composition to
11678 at most 500 characters ahead. If we reach the limit or find a
11679 newline, set cmp_it->ch to -2 and return 0.
11680 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11681
116822008-09-08 Kenichi Handa <handa@m17n.org>
11683
11684 * indent.c (Fvertical_motion): Be sure to set
11685 it_overshoot_expected if it.cmp_it.id is non-negative.
11686
116872008-09-07 Andreas Schwab <schwab@suse.de>
11688
11689 * callproc.c (Fcall_process): Don't hold references to string data
11690 across garbage collection. Move initialisation of new_argv down
11691 to avoid compiler bug.
11692
116932008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11694
11695 * process.c (Fsystem_process_attributes): Doc fix.
11696
116972008-09-07 Chong Yidong <cyd@stupidchicken.com>
11698
11699 * callproc.c (Fcall_process): Canonicalize current directory name.
11700
11701 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11702 iterator advances to the next line if the current line ends in a
11703 continued tab.
11704
117052008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11706
11707 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11708 member to point to cmp_from.
11709
11710 * xdisp.c: Doc fix for references to gidx data member.
11711
117122008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11713
11714 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11715
117162008-09-07 Kenichi Handa <handa@m17n.org>
11717
11718 * composite.c (FORWARD_CHAR): Check STOP after
11719 incrementing (POSITION).pos.
11720
117212008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11722
11723 * process.c (Fsystem_process_attributes): Doc fix.
11724
117252008-09-06 Chong Yidong <cyd@stupidchicken.com>
11726
11727 * keyboard.c (Ftop_level): Doc fix.
11728
117292008-09-06 Eli Zaretskii <eliz@gnu.org>
11730
11731 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11732 minibuffer, don't let lower part of menu invade the echo area.
11733
11734 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11735 "char *q" to access menu text and advance through it. Revert the
11736 change that displayed ">" instead of ASCII character 0x10.
11737
117382008-09-05 Eli Zaretskii <eliz@gnu.org>
11739
11740 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11741 toggle boxes and radio buttons on MS-DOS as well.
11742
117432008-09-05 Kenichi Handa <handa@m17n.org>
11744
11745 * composite.c (autocmp_chars): Check lookback count.
11746 (composition_compute_stop_pos): Set cmp_it->lookback.
11747 (composition_reseat_it): Check lookback count.
11748 (struct position_record): New struct.
11749 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11750 (find_automatic_composition): New function.
11751 (composition_adjust_point): Use find_automatic_composition.
11752
11753 * dispextern.h (struct composition_it): New member lookback.
11754
117552008-09-02 Chong Yidong <cyd@stupidchicken.com>
11756
11757 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11758 if moving by a single line.
11759
117602008-09-02 Andreas Schwab <schwab@suse.de>
11761
11762 * xterm.c (x_delete_display): Fix merge error.
11763
11764 * fileio.c (Fexpand_file_name): Remove unused variables.
11765
117662008-09-02 Eli Zaretskii <eliz@gnu.org>
11767
11768 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11769 storage on all platforms, not just on DOS_NT.
11770
117712008-09-02 Jason Rumney <jasonr@gnu.org>
11772
b8ff72fa
SM
11773 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11774 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
11775
117762008-09-01 Chong Yidong <cyd@stupidchicken.com>
11777
11778 * xfaces.c (Finternal_set_alternative_font_family_alist)
11779 (Finternal_set_alternative_font_registry_alist): Properly copy
11780 entire alist structure.
11781
117822008-09-01 Kenichi Handa <handa@m17n.org>
11783
d66c0241 11784 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 11785 representative chars of the script is a vector.
d66c0241
JB
11786 (ftfont_list): Handle the case where the representative chars of
11787 the script is a vector.
aac0c6e3
MR
11788
11789 * character.c (syms_of_character): Docstring of
11790 script-representative-chars fixed.
11791
117922008-08-31 Eli Zaretskii <eliz@gnu.org>
11793
11794 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11795 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11796 the menu. Allocate larger buffer for `text', to account for
11797 possible ^C characters.
11798
117992008-08-31 Martin Rudalics <rudalics@gmx.at>
11800
11801 * xdisp.c (prepare_menu_bars): Don't call
11802 Vwindow_size_change_functions with arg Qt.
11803
118042008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11805
11806 * font.h (font_range):
11807 * fileio.c (report_file_error):
46e722a9
SM
11808 * composite.c (composition_update_it): Yet another int/Lisp_Object
11809 mixup (YAILOM).
aac0c6e3
MR
11810
118112008-08-30 Glenn Morris <rgm@gnu.org>
11812
11813 * data.c (Fmake_variable_frame_local): Doc fix.
11814
11815 * frame.c (Fmodify_frame_parameters): Doc fix.
11816
118172008-08-30 Eli Zaretskii <eliz@gnu.org>
11818
11819 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11820 needed by GetTokenInformation.
11821 (w32_system_process_attributes): Check return values of all system
11822 APIs.
11823
11824 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11825 only when the state changes.
11826 (IT_update_begin, IT_update_end): Add termscript trace.
11827
11828 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11829 clipboard is unavailable. Set dst to NULL if it doesn't point to
11830 malloc'ed data.
11831 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11832 passing random values to xfree.
11833
11834 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11835 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11836
118372008-08-29 Jason Rumney <jasonr@gnu.org>
11838
11839 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11840
118412008-08-29 Eli Zaretskii <eliz@gnu.org>
11842
11843 * composite.c (fill_gstring_body): Avoid compiler warnings.
11844
11845 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11846 LGLYPH_SET_CODE to avoid compiler warnings.
11847
2ae37cf0 11848 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11849
11850 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11851
11852 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11853 LGLYPH_SET_CODE.
11854
118552008-08-29 Kenichi Handa <handa@m17n.org>
11856
11857 * fileio.c (report_file_error): Don't downcase the first character
11858 of errstring if it is still unibyte.
11859
118602008-08-29 Kenichi Handa <handa@m17n.org>
11861
11862 These changes are to re-implement the automatic composition so
11863 that it doesn't use text properties.
11864
11865 * Makefile.in (ftfont.o): Depend on composite.h.
11866 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11867
11868 * character.h (Vunicode_category_table): Extern it.
11869
11870 * character.c (Vunicode_category_table): New variable.
11871 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11872
11873 * chartab.c (optimize_sub_char_table): Perform more greedy
11874 optimization.
11875
b8ff72fa
SM
11876 * composite.h (enum composition_method):
11877 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
11878 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11879 (Vcomposition_function_table): Extern it.
11880 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11881 (composition_gstring_put_cache, composition_gstring_from_id)
11882 (composition_gstring_p, composition_gstring_width)
11883 (composition_compute_stop_pos, composition_reseat_it)
11884 (composition_update_it, composition_adjust_point): Extern them.
11885 (Fcomposition_get_gstring): EXFUN it.
11886
d66c0241 11887 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
11888 (Vcomposition_function_table)
11889 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
11890 (gstring_hash_table, gstring_work, gstring_work_headers):
11891 New variables.
aac0c6e3
MR
11892 (gstring_lookup_cache, composition_gstring_put_cache)
11893 (composition_gstring_from_id, composition_gstring_p)
11894 (composition_gstring_width, fill_gstring_header)
11895 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11896 (composition_reseat_it, composition_update_it)
b8ff72fa 11897 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
11898 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11899 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 11900 Defsubr composition_get_gstring.
aac0c6e3
MR
11901
11902 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11903 cmp_id.
11904 (struct glyph_string): Delete the member gidx. New members
11905 cmp_id, cmp_from, and cmp_to.
11906 (enum it_method): Delete GET_FROM_COMPOSITION.
11907 (struct composition_it): New struct.
11908 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11909 Delete c, len, cmp_id, cmp_len in u.comp.
11910
11911 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 11912 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 11913 (enum lglyph_indices): Likewise.
b8ff72fa 11914 (font_range): Adjust extern.
aac0c6e3
MR
11915 (font_fill_lglyph_metrics): Extern it.
11916
11917 * font.c (QCf): New variable.
11918 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11919 (font_prepare_composition): Delete this function.
11920 (font_range): Type and arguments changed.
11921 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11922 (font_fill_lglyph_metrics): New function.
b8ff72fa 11923 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 11924 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
11925 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11926 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
11927
11928 * fontset.h (font_for_char): Extern it.
11929
11930 * fontset.c (font_for_char): New function.
11931
11932 * ftfont.c: Include composite.h.
11933 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 11934 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
11935
11936 * indent.c: Include composite.h and dispextern.h.
11937 (check_composition): Delete this function.
11938 (scan_for_column): Handle composition by
11939 composition_compute_stop_pos, composition_reseat_it, and
11940 composition_update_it.
11941 (compute_motion): Likewise.
11942 (Fvertical_motion): Fix checking of composition.
11943
11944 * keyboard.c (adjust_point_for_property): Check composition by
11945 composition_adjust_point.
11946
b8ff72fa 11947 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
11948 struct glyph_string.
11949
b8ff72fa
SM
11950 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11951 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
11952 struct glyph.
11953 (produce_composite_glyph): Likewise.
11954
b8ff72fa
SM
11955 * w32term.c (x_draw_composite_glyph_string_foreground):
11956 Adjust for the change of struct glyph_string.
aac0c6e3
MR
11957 (x_draw_glyph_string): Likewise.
11958
11959 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11960 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11961
11962 * xdisp.c: Include font.h.
11963 (it_props): Delete the entry for Qauto_composed.
11964 (init_iterator): Initialize it->cmp_it.id to -1.
11965 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 11966 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
11967 (handle_auto_composed_prop): Delete it.
11968 (handle_composition_prop): Handle only static composition.
11969 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11970 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 11971 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
11972 (pop_it): Likewise.
11973 (get_next_element): Delete next_element_from_composition.
11974 (CHAR_COMPOSED_P): New macro.
11975 (get_next_display_element): For automatic composition, get a face
11976 from the font in the glyph-string.
11977 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 11978 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
11979 (next_element_from_string): Check if the character at the current
11980 position is composed by CHAR_COMPOSED_P.
11981 (next_element_from_buffer): Likewise.
d66c0241
JB
11982 (next_element_from_composition): Adjust for the change of struct it.
11983 Update it->cmp_it.
b8ff72fa
SM
11984 (dump_glyph): Adjust for the change of struct glyph.
11985 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
11986 it and struct glyph. Don't handle automatic composition here.
11987 (fill_gstring_glyph_string): New function.
11988 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 11989 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
11990 (BUILD_GSTRING_GLYPH_STRING): New macro.
11991 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11992 automatic composition.
b8ff72fa 11993 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 11994 struct glyph.
b8ff72fa 11995 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 11996
b8ff72fa 11997 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
11998 the change of struct glyph_string.
11999 (x_draw_glyph_string): Likewise.
12000
120012008-08-29 Glenn Morris <rgm@gnu.org>
12002
12003 * buffer.c (word-wrap): Doc fix.
12004 * xdisp.c (truncate-partial-width-windows): Doc fix.
12005 Increase default to 50.
12006
120072008-08-29 Chong Yidong <cyd@stupidchicken.com>
12008
12009 * xdisp.c (update_tool_bar_unwind): New function.
12010 (update_tool_bar): Temporarily set selected frame before building
12011 tool-bar items.
12012
120132008-08-28 Michael Albinus <michael.albinus@gmx.de>
12014
12015 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12016 snprintf, respectively.
12017 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12018
120192008-08-28 Chong Yidong <cyd@stupidchicken.com>
12020
12021 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12022 LDFLAGS to GNUstep CC invocation.
12023
120242008-08-27 Chong Yidong <cyd@stupidchicken.com>
12025
12026 * indent.c (Fvertical_motion): Revert last change. Handle the
12027 general case where we are moving forward, and PT spans multiple
12028 screen lines.
12029
12030 * eval.c (find_handler_clause): Temporarily increase
12031 max-lisp-eval-depth while printing the backtrace buffer, to
12032 guarantee that help-mode code can run.
12033
120342008-08-27 Eli Zaretskii <eliz@gnu.org>
12035
12036 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12037 colors under -rv.
12038 (IT_set_frame_parameters): Don't swap foreground and background
12039 colors if `(reverse . t)' is present in the frame properties.
12040 (internal_terminal_init): Call init_frame_faces only for the
12041 initial frame.
12042
120432008-08-27 Andreas Schwab <schwab@suse.de>
12044
12045 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12046
120472008-08-27 Andreas Schwab <schwab@suse.de>
12048
12049 * search.c (search_buffer): Set char_base to zero only at the end.
12050
120512008-08-27 Kenichi Handa <handa@m17n.org>
12052
b8ff72fa 12053 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
12054
120552008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12056
12057 * xterm.c (x_term_init): Temporarily hide the partially
12058 initialized terminal while calling vendor-specific-keysyms.
12059
120602008-08-26 Eli Zaretskii <eliz@gnu.org>
12061
12062 * msdos.c (internal_terminal_init): Most initializations done only
12063 once, especially initial_screen_colors[] and termscript open.
12064
120652008-08-26 Chong Yidong <cyd@stupidchicken.com>
12066
12067 * eval.c (Fcondition_case): Doc fix.
12068
12069 * widgetprv.h (EmacsFramePart): Change font member to the new font
12070 struct.
12071
12072 * widget.c: Include character.h and font.h for XSETFONT.
12073 (setup_frame_gcs): Compute X font id from font struct, just once.
12074
120752008-08-26 Eli Zaretskii <eliz@gnu.org>
12076
12077 * term.c (get_named_tty): Fix last change.
12078
120792008-08-26 Chong Yidong <cyd@stupidchicken.com>
12080
12081 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 12082 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
12083
120842008-08-25 Eli Zaretskii <eliz@gnu.org>
12085
12086 * frame.c (do_switch_frame): Mark previously displayed frame as
12087 obscured for FRAME_MSDOS_P frames as well.
12088
120892008-08-24 Eli Zaretskii <eliz@gnu.org>
12090
12091 * frame.c (make_terminal_frame): Initialize f->terminal,
12092 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12093 Set the top frame to newly created frame.
12094 (Fmake_terminal_frame): Reuse the_only_display_info.
12095
12096 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12097 estimating available memory.
12098
b97439ce 120992008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
12100
12101 * nsterm.m (ns_draw_window_cursor): Don't call
12102 NSDisableScreenUpdates and NSEnableScreenUpdates on
12103 non-NS_IMPL_COCOA systems.
12104
121052008-08-23 Andreas Schwab <schwab@suse.de>
12106
12107 * process.c (procfs_system_process_attributes): Fix use of
12108 uninitialized variables.
12109
121102008-08-23 Eli Zaretskii <eliz@gnu.org>
12111
12112 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12113
12114 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12115 calling tty-set-up-initial-frame-faces.
12116
b8ff72fa
SM
12117 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12118 Allow MSDOS frames along with X frames.
aac0c6e3
MR
12119
12120 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12121 addition to output_termcap.
12122
12123 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12124
12125 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12126 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12127 highlight.
12128
12129 * process.c [!subprocesses]: Define QCname.
12130 (syms_of_process): Intern and staticpro it.
12131
12132 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
12133 Adjust for changes in encoding/decoding routines.
12134 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
12135 encode_coding and decode_coding.
12136
b8ff72fa 12137 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
12138
12139 * dosfns.c: Include frame.h before termhooks.h.
12140 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12141 variable termscript.
12142
12143 * s/msdos.h (USER_FULL_NAME): Define.
12144 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12145
12146 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12147 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12148 pw->pw_gecos.
12149
12150 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12151 SELECTED_FRAME as additional (1st) argument.
12152 (tty_read_avail_input): Handle output_msdos_raw in
12153 addition to output_termcap.
12154
12155 * msdos.c: Include frame.h before termhooks.h.
12156 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12157 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12158 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12159 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12160 (IT_set_terminal_modes, IT_reset_terminal_modes)
12161 (IT_set_frame_parameters): Use tty->termscript instead of a global
12162 variable termscript.
12163 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12164 global variable terminal_coding. Don't refer to
12165 Vnonascii_translation_table.
12166 (internal_terminal_init): Set Vwindow_system in current_kboard.
12167 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12168 Announce date and time of session start, if termscript is open.
12169 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
12170 term.c:init_tty). Open termscript only of not already open.
12171 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
12172 here instead of dos_ttraw. Don't initialize display if this is an
12173 initial tty. Don't set FRAME_FONT.
12174 (Vwindow_system_version): Bump to 23.
12175 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12176 is available, set up mouse_position_hook.
12177 (dos_ttraw, IT_set_terminal_modes): If called with initial
12178 terminal, do nothing.
12179 (IT_set_frame_parameters): Handle the Qtty_type frame
12180 parameter by calling internal_terminal_init.
12181 (dos_set_window_size, show_mouse_face)
12182 (clear_mouse_face, IT_note_mode_line_highlight)
12183 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12184 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12185 (initialize_msdos_display): New function.
12186 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12187 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12188 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12189 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 12190 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
12191 (request_sigio, unrequest_sigio): Don't define, now defined on
12192 sysdep.c.
12193 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12194
12195 * term.c [MSDOS]: Include msdos.h.
12196 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12197 conditional to DOS_NT. Allow only one call to this function in a
12198 session. Don't allocate a new struct tty_display_info; instead,
12199 reuse the_only_display_info. Call get_tty_size to get screen
12200 dimensions. Call init_baud_rate to set bad_rate.
12201 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12202 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 12203 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
12204 (get_tty_terminal, get_named_tty, Ftty_type)
12205 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12206 output_termcap.
b8ff72fa
SM
12207 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12208 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 12209 only when subprocesses are supported.
aac0c6e3
MR
12210
12211 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12212 f->output_data.x.
12213 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12214 terminal devices.
12215
5582fbc7 12216 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
12217 x_output.
12218 (FRAME_FONT): Use output_data.tty.
12219 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
12220 (struct x_display_info): Rename from display_info. Update all users in
12221 msdos.c.
aac0c6e3 12222 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 12223 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
12224 (dos_ttraw): Update prototype.
12225
12226 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12227 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12228
122292008-08-23 Jason Rumney <jasonr@gnu.org>
12230
12231 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12232 (fn_TIFFSetDirectory): New library function used.
12233 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12234 (tiff_load): Use :index to select among multiple images. Set count
12235 property when multiple images exist.
12236 (gif_format): Use :index, not :image.
12237
122382008-08-23 Chong Yidong <cyd@stupidchicken.com>
12239
12240 * xdisp.c (try_scrolling): Check INT_MAX instead of
12241 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12242 to obtain INT_MAX.
12243
122442008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12245
12246 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12247
122482008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12249
12250 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12251 GNUstep library location.
12252
122532008-08-21 Chong Yidong <cyd@stupidchicken.com>
12254
12255 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12256 before using it.
12257
12258 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12259
122602008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12261
12262 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12263 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12264 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12265 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12266 (EmacsApp-cursor_blink_handler): Remove declaration.
12267 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12268 match 01 Feb 2008 changes in xterm.c.
12269 (ns_read_socket): Add cast to avoid warning.
12270 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12271 GNUstep.
12272
122732008-08-20 Chong Yidong <cyd@stupidchicken.com>
12274
12275 * xselect.c (x_get_foreign_selection): Return nil if desired
12276 selection could not be obtained, instead of signalling an error.
12277
122782008-08-20 David Reitter <david.reitter@gmail.com>
12279
12280 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12281 * nsterm.m: Remove ns-specific code for cursor blinking.
12282 (ns_draw_window_cursor): Clear cursor properly rather than
12283 redrawing the area. Respect width of bar cursors.
12284 These changes enable the use of generic blink-cursor-mode and
12285 generic cursor types in NS and support smooth cursor movements (do
12286 not blink off after command).
12287 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12288 Nextstep, too.
12289
122902008-08-19 Kenichi Handa <handa@m17n.org>
12291
12292 * font.c (Vfont_log_deferred): New variable.
12293 (font_add_log): Check Vfont_log_deferred.
12294 (font_deferred_log): New function.
12295
12296 * font.h (font_deferred_log): Extern it.
12297
12298 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12299 for sorting.
12300 (face_for_char): Use deferred log.
12301
123022008-08-18 Kenichi Handa <handa@m17n.org>
12303
12304 * fontset.c (face_for_char): Add font log.
12305
12306 * font.c (font_add_log): Add the font properties :script, :lang,
12307 and :otf in the log.
12308
123092008-08-17 Chong Yidong <cyd@stupidchicken.com>
12310
12311 * xdisp.c: Remove dead code.
12312 (handle_invisible_prop, next_overlay_string): Defer call to
12313 setup_for_ellipsis.
12314 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12315
123162008-08-15 Chong Yidong <cyd@stupidchicken.com>
12317
12318 * xfaces.c (lookup_derived_face): Properly handle possible zero
12319 return value of get_lface_attributes.
12320 (merge_faces): Don't tell lookup_derived_face to signal an error
12321 if face is not found.
12322
12323 * dired.c (Fdirectory_files): Doc fix.
12324
12325 * process.c (make_process): Initialize kill_without_query struct
12326 member.
12327
123282008-08-15 Eli Zaretskii <eliz@gnu.org>
12329
12330 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12331 Alternative calculation of totphys for Visual Studio 6.
12332
12333 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12334
12335 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12336 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12337 All users changed.
12338 (stat): Only root directory passed to GetDriveType. Allow RAM
12339 disk as well as local fixed disk when w32-get-true-file-attributes
12340 is set to `local'.
12341 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12342 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12343 (w32_cached_id, w32_add_to_cache): New functions.
12344 (get_name_and_id): Look account names in the cache before calling
12345 lookup_account_sid.
12346 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12347 New initialization flags.
12348 (globals_of_w32): Initialize them to zero.
12349 (w32_system_process_attributes): Use w32_cached_id and
12350 w32_add_to_cache.
12351
123522008-08-14 Lawrence Mitchell <wence@gmx.li>
12353
12354 * lread.c (Fread_char, Fread_char_exclusive): If no character
12355 event is read before timeout is reached, return nil, rather than
12356 converting to a number.
12357
123582008-08-14 Chong Yidong <cyd@stupidchicken.com>
12359
12360 * fns.c (use_dialog_box): Doc fix.
12361
12362 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12363 on OS X.
12364
123652008-08-13 Chong Yidong <cyd@stupidchicken.com>
12366
12367 * frame.c (Qns_parse_geometry): New var.
12368 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12369
123702008-08-11 Chong Yidong <cyd@stupidchicken.com>
12371
12372 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12373 space character in calculating tabs.
12374
123752008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12376
12377 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12378
123792008-08-10 Glenn Morris <rgm@gnu.org>
12380
12381 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12382 silence gcc "limited range of data type" warnings in some
12383 make_fixnum_or_float calls.
12384
123852008-08-09 Eli Zaretskii <eliz@gnu.org>
12386
12387 * w32.c (w32_system_process_attributes): If the process does not
12388 exist, return nil.
12389
12390 * w32.c: Include thelp32.h, psapi.h and coding.h.
12391 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12392 declarations.
12393 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12394 (Process32Next_Proc): New typedefs.
12395 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12396 (g_b_init_process32_next, g_b_init_open_thread_token)
12397 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12398 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12399 (g_b_init_get_process_working_set_size)
12400 (g_b_init_global_memory_status_ex): New static variables.
12401 (globals_of_w32): Initialize them.
12402 (create_toolhelp32_snapshot, process32_first, process32_next)
12403 (open_thread_token, impersonate_self, revert_to_self)
12404 (get_process_memory_info, get_process_working_set_size)
12405 (global_memory_status, global_memory_status_ex): New wrapper
12406 functions.
12407 (w32_list_system_processes, w32_system_process_attributes)
12408 (enable_privilege, restore_privilege, ltime, process_times):
12409 New functions.
12410 (convert_time_raw): New function.
12411 (convert_time): Remove conversion of FILETIME into time in 100
12412 nsec units, call convert_time_raw instead.
12413
12414 * process.h (w32_list_system_processes, w32_system_process_attributes):
12415 Add prototypes.
12416 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12417 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12418 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12419 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12420
12421 * process.c (Fsystem_process_attributes): Doc fix.
12422
124232008-08-08 Chong Yidong <cyd@stupidchicken.com>
12424
12425 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12426 a continued multi-char glyph; if so, advance to the actual glyph.
12427
124282008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12429
12430 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12431
12432 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12433 (.m.o): Use it.
12434 * config.in: Regenerate.
12435
124362008-08-07 Chong Yidong <cyd@stupidchicken.com>
12437
12438 * xdisp.c (redisplay_window): Revert last change.
12439 (try_window): Check bottom scroll margin too.
12440
124412008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12442
12443 * config.in: Regenerate.
12444
12445 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12446 -list-load-path-shadows'.
12447 (nsgui.h): Reduce number of things depending on it.
12448
124492008-08-06 Chong Yidong <cyd@stupidchicken.com>
12450
12451 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12452 instead of window-end which does the wrong thing at eob.
12453 (try_cursor_movement): Minor optimization.
12454 (redisplay_window): If scroll margin is defined, don't assume
12455 window doesn't need scrolling.
12456
124572008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12458
12459 * config.in: Regenerate.
12460
12461 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12462 (mostlyclean): Don't delete *.d under NS.
12463
12464 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12465
124662008-08-06 Kenichi Handa <handa@m17n.org>
12467
12468 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12469
124702008-08-06 Andreas Schwab <schwab@suse.de>
12471
12472 * config.in: Regenerate.
12473
124742008-08-05 Chong Yidong <cyd@stupidchicken.com>
12475
12476 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12477 forcing a window start.
12478
12479 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12480 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12481
124822008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12483
12484 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12485 argument.
12486
124872008-08-05 Juanma Barranquero <lekktu@gmail.com>
12488
12489 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12490 <scroll-down-aggressively, before-change-functions>:
12491 <after-change-functions>: Reflow docstrings.
12492
124932008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 12494 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
12495
12496 Dock menu customization, based on a patch by Ken Raeburn, plus some
12497 other fixes.
12498 * nsmenu.m (dockMenu): New variable.
12499 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12500
12501 * nsterm.h (dockMenu): Declare.
12502
12503 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12504 (ns_term_init): Initialize dockMenu.
12505 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12506 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12507 left.
12508
12509 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12510
125112008-08-04 Chong Yidong <cyd@stupidchicken.com>
12512
12513 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12514
12515 * config.in: Regenerate.
12516
125172008-08-04 Seiji Zenitani <zenitani@mac.com>
12518
12519 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12520
125212008-08-04 Chong Yidong <cyd@stupidchicken.com>
12522
12523 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12524
125252008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12526
12527 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12528
12529 * keyboard.h: Comment an #endif.
12530
12531 * lisp.h (have_menus_p): Adjust comment.
12532
12533 * menu.c (find_and_return_menu_selection): Fix comparison with
12534 client_data.
12535
12536 * nsmenu.m (popup_activated_flag): New variable.
12537 (popup_activated): New function.
12538 (menu-or-popup-active-p): New exported lisp definition.
12539 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12540 when popup done.
12541 (ns_popup_dialog): Set popup_activated_flag.
12542
12543 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12544 version for GNUstep (handled by conditional typedef in nsterm.m).
12545 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12546 in rgb.txt).
12547
12548 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12549
12550 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12551
12552 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12553
12554 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12555 shortcircuit if popup_activated like GTK and X toolkit.
12556
12557 * m/inter386.h: Change DARWIN to DARWIN_OS.
12558
12559 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12560 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12561 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12562 comment on NO_SOCK_SIGIO.
12563
125642008-08-03 Chong Yidong <cyd@stupidchicken.com>
12565
12566 * nsterm.m (windowDidResize): Remove stopModal call.
12567
125682008-08-03 Andreas Schwab <schwab@suse.de>
12569
12570 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12571 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12572
125732008-08-02 Chong Yidong <cyd@stupidchicken.com>
12574
12575 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12576 Don't use uninitialized pointer variable when using getrlimit.
12577
125782008-08-02 Jason Rumney <jasonr@gnu.org>
12579
12580 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12581
125822008-08-02 Eli Zaretskii <eliz@gnu.org>
12583
12584 * alloc.c (NSTATICS): Bump to 0x640.
12585
12586 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12587
12588 * lisp.h: Add prototype for directory_files_internal.
12589
12590 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12591 New functions.
12592 (syms_of_process): Defsubr them. Add initializations for various
12593 Q* symbols used in procfs_system_process_attributes.
12594 (procfs_list_system_processes, procfs_system_process_attributes)
12595 [HAVE_PROCFS]: New functions.
12596 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12597 (procfs_get_total_memory): New functions.
12598
125992008-08-01 Juanma Barranquero <lekktu@gmail.com>
12600
12601 * xfaces.c (Fx_load_color_file): Fix previous change;
12602 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12603
126042008-08-01 Michael Albinus <michael.albinus@gmx.de>
12605
12606 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12607
126082008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12609
12610 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12611
126122008-08-01 Chong Yidong <cyd@stupidchicken.com>
12613
12614 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12615
12616 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12617 define NSApplicationDelegateReplySuccess.
12618 (EmacsView -converstationIdentifier): Use long instead of
12619 NSInteger for GNUstep, since it doesn't have NSInteger.
12620
12621 * xmenu.c: Revert last change.
12622
12623 * keyboard.h: Fix last change.
12624
126252008-08-01 Juanma Barranquero <lekktu@gmail.com>
12626
12627 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12628 on Windows.
12629
126302008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12631
12632 Warning clearing and clean-up in NS port.
12633 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12634 Add prototypes.
12635 * nsgui.h (FACE_DEFAULT): Remove, unused.
12636 (XGCValues): Change colors to unsigned long.
12637 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12638 nsterm.m.
12639 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12640 (ns_list_fonts): Remove, unused.
12641 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12642 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12643 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12644 (nsfont_draw): Compare face colors to 0, not nil.
12645 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12646 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12647 (-addSubmenuWithTitle:): Use NSMenuItem class.
12648 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12649 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12650 (ns_clip_to_row): Make gc arg a BOOL.
12651 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12652 ns_clip_to_row() call.
12653 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12654 used). Cast FRAME_FONT assignments.
12655 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12656 (ns_string_to_lispmod): Change arg to const char.
12657 (ns_term_init): Use NSMenuItem class.
12658 (EmacsApp -openFile:): Move to different section of file.
12659 (EmacsApp -application:openFiles:): Don't return a value, call
12660 -replyToOpenOrPrint:.
12661 (EmacsView -keyDown:): Fix up cast.
12662 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12663 (EmacsView -menuDown:): Cast tag in call to
12664 find_and_call_menu_selection().
12665 (ns_list_fonts): Remove, unused.
12666 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12667 (ns_fontname_to_xlfd): Make static.
12668 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12669 Remove prototypes (now in keyboard.h).
12670 (next_menubar_widget_id): Remove, unused.
12671 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12672 Remove prototypes (now in keyboard.h).
12673 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12674
126752008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12676
12677 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12678 (floatfns.o): Depend on syssignal.h.
12679 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12680
12681 * systty.h: Fix previous change that removed BSD_TERMIOS.
12682 Add comments to #ifdefs.
12683
126842008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12685
12686 * w32fns.c (w32-load-color-file): Remove.
12687 (x-open-connection): Use renamed Fx_load_color_file.
12688 * xfaces.c (x-load-color-file): Add.
12689 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12690 Emacs.clr.
12691 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12692
126932008-07-31 Michael Albinus <michael.albinus@gmx.de>
12694
12695 * dbusbind.c (Fdbus_call_method_asynchronously)
12696 (Fdbus_method_error_internal): New defuns.
12697 (xd_read_message): Handle also reply messages.
12698 (Vdbus_registered_functions_table): Extend docstring.
12699
127002008-07-31 Juanma Barranquero <lekktu@gmail.com>
12701
12702 * keyboard.c (gobble_input): Fix previous change.
12703
127042008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12705
12706 * bitmaps/README:
12707 * xfns.c:
12708 * termcap.c:
12709 * term.c:
12710 * syswait.h:
12711 * systty.h:
12712 * systime.h:
12713 * syssignal.h:
12714 * sysdep.c:
12715 * process.h:
12716 * process.c:
12717 * print.c:
12718 * ndir.h:
12719 * lread.c:
12720 * keyboard.c:
12721 * getpagesize.h:
12722 * floatfns.c:
12723 * fileio.c:
12724 * emacs.c:
12725 * doc.c:
12726 * dispnew.c:
12727 * dired.c:
12728 * data.c:
12729 * callproc.c:
12730 * buffer.c:
12731 * README:
12732 * Makefile.in:
12733 * s/template.h:
12734 * s/msdos.h:
12735 * m/vax.h: Remove VMS support.
12736 * s/vms.h:
12737 * vlimit.h:
12738 * uaf.h:
12739 * temacs.opt:
12740 * param.h:
12741 * ioctl.h: Remove file.
12742
127432008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12744
12745 * s/ms-w32.h (MULTI_KBOARD): Remove.
12746 * xterm.c:
12747 * xselect.c:
12748 * xfns.c:
12749 * window.c:
12750 * w32term.c:
12751 * w32fns.c:
12752 * terminal.c:
12753 * termhooks.h:
12754 * term.c:
12755 * sysdep.c:
12756 * keyboard.h:
12757 * keyboard.c:
12758 * frame.h:
12759 * frame.c:
12760 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12761 * config.in: Regenerate.
12762
127632008-07-30 Jason Rumney <jasonr@gnu.org>
12764
12765 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12766
12767 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12768 (w32font_open_internal): Get unicode version of textmetrics.
12769 Don't enable or disable glyph indices here.
12770 (w32font_open): Disable use of glyph indices.
12771
12772 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12773
127742008-07-30 Chong Yidong <cyd@stupidchicken.com>
12775
12776 * minibuf.c (Vread_buffer_function): Doc fix.
12777
127782008-07-30 John Paul Wallington <jpw@pobox.com>
12779
12780 * minibuf.c (read_buffer_completion_ignore_case): New var.
12781 (Fread_buffer): Use it.
12782
127832008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12784
12785 * systty.h (sensemode): Remove empty #if. Remove reference to
12786 BSD_TERMIOS, unused.
12787
12788 * sysdep.c: Remove reference to DGUX.
12789 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12790
12791 * config.in: Regenerate.
12792
127932008-07-30 Jason Rumney <jasonr@gnu.org>
12794
12795 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12796
127972008-07-29 Jason Rumney <jasonr@gnu.org>
12798
12799 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12800 is populated.
12801 (uniscribe_encode_char): Always use uniscribe.
12802 Avoid using context if cache is populated.
12803
128042008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12805
12806 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12807 open menu.
12808
12809 * gtkutil.c (menu_nav_ended): Remove.
12810 (create_menus): Remove signal connect for menu_nav_ended.
12811
128122008-07-28 Chong Yidong <cyd@stupidchicken.com>
12813
12814 * xdisp.c (redisplay_window): Check return value of
12815 compute_window_start_on_continuation_line before forcing a window
12816 start.
12817
128182008-07-28 Jason Rumney <jasonr@gnu.org>
12819
12820 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12821
12822 * w32term.c (w32_enable_unicode_output, cleartype_active):
12823 Remove obsolete display options.
12824 (x_draw_glyph_string_background): Don't use old cleartype_active
12825 workaround.
12826 (w32_initialize): Remove cleartype_active initialization.
12827 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12828
128292008-07-28 Andreas Schwab <schwab@suse.de>
12830
12831 * lisp.h (init_weak_hash_tables, syms_of_font)
12832 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12833 (remove_hash_entry): Don't declare.
12834 * eval.c (maybe_call_debugger): Make static and move before use.
12835 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12836 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12837 * xterm.h (x_set_frame_alpha): Declare.
12838
128392008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12840
12841 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12842 (create_menus): Connect selection-done to menu_nav_ended.
12843
128442008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12845
12846 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12847 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12848 parameter with read of 'alpha' one.
12849 (Qns_frame_parameter): Remove.
5582fbc7 12850 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12851 (next-selection-coding-system, Vselection_coding_system)
12852 (Vnext_selection_coding_system): Drop.
12853
128542008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12855
12856 * nsfns.m (do-applescript, do_applescript): Rename to
12857 ns-do-applescript, ns_do_applescript, and move within file.
12858
128592008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12860
12861 Remove support for Mac Carbon.
12862 * mactoolbox.c:
12863 * macterm.h:
12864 * macterm.c:
12865 * macselect.c:
12866 * macmenu.c:
12867 * macgui.h:
12868 * macfns.c:
12869 * mac.c: Remove file.
12870 * s/darwin.h:
12871 * m/intel386.h:
12872 * xfaces.c:
12873 * xdisp.c:
12874 * window.c:
12875 * tparam.c:
12876 * termhooks.h:
12877 * termcap.c:
12878 * term.c:
12879 * syssignal.h:
12880 * sysselect.h:
12881 * sysdep.c:
12882 * process.c:
12883 * lread.c:
12884 * lisp.h:
12885 * keyboard.c:
12886 * image.c:
12887 * fringe.c:
12888 * frame.h:
12889 * frame.c:
12890 * fontset.c:
12891 * font.h:
12892 * font.c:
12893 * fns.c:
12894 * fileio.c:
12895 * emacs.c:
12896 * dispnew.c:
12897 * dispextern.h:
12898 * config.in:
12899 * atimer.c:
2ae37cf0 12900 * Makefile.in: Remove code for Carbon.
aac0c6e3 12901
f0131492 129022008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12903
12904 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12905
129062008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12907
12908 * macterm.h (kCGBitmapByteOrder32Host): New define for
12909 non-universal SDKs.
12910
12911 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12912 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12913
12914 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12915 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12916
129172008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12918
12919 * w32inevt.c: Include dispextern.h.
12920
129212008-07-26 Andreas Schwab <schwab@suse.de>
12922
12923 * print.c (print_object): Fix off-by-one in last change.
12924
129252008-07-25 Juanma Barranquero <lekktu@gmail.com>
12926
12927 * term.c (syms_of_term): Don't initialize default_orig_pair,
12928 default_set_foreground and default_set_background on Windows.
12929
129302008-07-25 Jason Rumney <jasonr@gnu.org>
12931
12932 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12933 ScriptItemize. Clean up return value checking. Remove unused
12934 variables.
12935 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12936 shaping engine.
12937
12938 * w32font.c (w32font_has_char): Handle the case where we can't
12939 determine the script for a character.
12940
129412008-07-25 Chong Yidong <cyd@stupidchicken.com>
12942
12943 * term.c (syms_of_term): Initialize default_orig_pair,
12944 default_set_foreground, and default_set_background.
12945
12946 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12947 clash (bug#86).
12948 (getloadavg): Callers changed.
12949
12950 * image.c (svg_load_image): Fix last change.
12951 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12952 image size is valid. Use g_object_unref instead of deprecated
12953 rsvg_handle_free to free rsvg handle.
12954 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12955
129562008-07-25 Jason Rumney <jasonr@gnu.org>
12957
12958 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12959 surrogates before looking up glyph index.
12960 (w32font_text_extents): Encode as surrogates if falling back to
12961 functions that need UTF-16 wide chars.
12962
12963 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12964 BMP as surrogates before looking up glyph index.
12965
129662008-07-25 Chong Yidong <cyd@stupidchicken.com>
12967
12968 * image.c (svg_load_image): Check for failure in return value of
12969 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12970
129712008-07-25 Jason Rumney <jasonr@gnu.org>
12972
12973 * w32font.c (Fx_select_font): Reverse sense of second arg.
12974
129752008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12976
12977 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12978 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12979
12980 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12981 (PURESIZE): Use it.
12982
129832008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12984
12985 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12986 * m/alpha.h (TEXT_END):
12987 * m/ibmrs6000.h (TEXT_END):
12988 * m/macppc.h (TEXT_END):
12989 * s/darwin.h (TEXT_END):
12990 * s/msdos.h (TEXT_END): Remove, unused.
12991 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12992 * s/cygwin.h: Remove comment.
12993
12994 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12995 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12996 * m/intel386.h (DOT_GLOBAL_START):
12997 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12998 (USG): Remove, file not used on USG platforms.
12999
13000 * Makefile.in (HAVE_X11): Remove empty #else.
13001
130022008-07-24 Andreas Schwab <schwab@suse.de>
13003
13004 * fileio.c (Finsert_file_contents): Properly adjust undo list
13005 after format conversion.
13006
130072008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13008
13009 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13010 (menu_nav_ended): Remove.
13011 (create_menus): Remove signal connect for menu_nav_ended.
13012 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13013 create_menus.
13014 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13015
130162008-07-23 Jason Rumney <jasonr@gnu.org>
13017
13018 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13019 with opened font.
13020 (w32font_open): Set font type to gdi.
13021
13022 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13023
130242008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13025
13026 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13027 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13028 defines it.
13029 * unexec.c (ADDR_CORRECT): Define unconditionally.
13030
13031 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13032
13033 * unexec.c: Remove code depending on !COFF and USG, the file is
13034 not used for such systems.
13035
13036 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13037 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13038 (LD_SWITCH_SYSTEM_1): Remove, update users.
13039
13040 * s/darwin.h (DATA_END):
13041 * m/intel386.h (DATA_END):
13042 * m/ibmrs6000.h (DATA_END):
13043 * m/alpha.h (DATA_END): Remove, unused.
13044
13045 * config.in: Regenerate.
13046 * s/ms-w32.h (subprocesses): Define unconditionally.
13047 * s/template.h (subprocesses): Update comment.
13048 * s/vms.h (subprocesses):
13049 * s/usg5-4.h (subprocesses):
13050 * s/hpux10-20.h (subprocesses):
13051 * s/gnu-linux.h (subprocesses):
13052 * s/cygwin.h (subprocesses):
13053 * s/bsd-common.h (subprocesses):
13054 * s/aix4-2.h (subprocesses):
13055 * s/darwin.h (subprocesses): Do not define, defined by default now.
13056
13057 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13058 Remove all references.
13059 (temacs): Add GNUstep specific ld flags.
13060
13061 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13062 similarly to what X does.
13063
130642008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13065
13066 * nsfns.m (x-list-fonts): Remove.
13067 (syms_of_nsfns): Drop the x-list-fonts declaration.
13068 * nsterm.m: Get rid of remaining "//" comments.
13069
130702008-07-22 Chong Yidong <cyd@stupidchicken.com>
13071
13072 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13073
13074 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13075 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13076 (Fns_own_selection_internal, Fx_disown_selection_internal)
13077 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13078
13079 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13080 ... */' style of docstrings. Doc fixes.
13081
130822008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13083
13084 * terminfo.c (UP, BC, PC): Undo previous change.
13085
13086 * nsfns.m: Rename ns prefixed functions/variables to the
13087 corresponding x versions. Update references.
13088
130892008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13090
13091 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13092
130932008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13094
13095 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13096 Remove forwarding functions.
13097 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13098 non-static.
13099 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13100 non-static.
13101 (ns_frame_parm_handlers): Use the new names.
13102 (syms_of_nsfns): Move to the end of file.
13103
13104 * nsterm.m (syms_of_nsterm): Move to the end of file.
13105
13106 * dispnew.c (init_display): Remove code for X10.
13107
131082008-07-22 Jason Rumney <jasonr@gnu.org>
13109
13110 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13111 bare drive.
13112
131132008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13114
13115 * nsterm.m (syms_of_nsterm): Remove debugging println.
13116
131172008-07-22 David Reitter <david.reitter@gmail.com>
13118
13119 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13120 Carbon implementation of the same functionality: execute arbitrary
13121 AppleScript code.
13122
131232008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13124
13125 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13126 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13127 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13128 (Fx_display_mm_height, Fx_display_mm_width)
13129 (Fx_display_backing_store, Fx_display_visual_class)
13130 (Fx_display_save_under, Fx_open_connection)
13131 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13132 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13133 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13134 (Fx_display_pixel_width, Fx_display_pixel_height)
13135 (Fx_display_usable_bounds, Fx_display_planes)
13136 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13137 ... */' style of docstrings.
13138
131392008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13140
13141 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13142 on this platform.
13143 (mips):
13144 * m/iris4d.h (mips): Do not define.
13145 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13146
13147 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13148
13149 * image.c:
13150 * nsfns.m:
13151 * nsselect.m:
13152 * nsterm.h:
13153 * nsterm.m: Rename ns prefixed functions/variables to the
13154 corresponding x versions. Update references.
13155
13156 * m/ibms390x.h (NO_REMAP): Do not undefine.
13157
13158 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13159
131602008-07-21 Chong Yidong <cyd@stupidchicken.com>
13161
13162 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13163 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13164 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13165 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13166 (Fns_display_mm_height, Fns_display_mm_width)
13167 (Fns_display_backing_store, Fns_display_visual_class)
13168 (Fns_display_save_under, Fns_open_connection)
13169 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13170 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13171 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13172 (Fns_display_pixel_width, Fns_display_pixel_height)
13173 (Fns_display_usable_bounds, Fx_display_planes)
13174 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13175
131762008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13177
13178 * print.c (print_object): Check print_depth before searching for
13179 circularities.
13180
131812008-07-21 Michael Albinus <michael.albinus@gmx.de>
13182
13183 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13184 only sprintf.
13185
131862008-07-21 Kenichi Handa <handa@m17n.org>
13187
13188 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13189
131902008-07-20 Andreas Schwab <schwab@suse.de>
13191
13192 * syntax.c (find_start_pos, find_start_value)
13193 (find_start_value_byte, find_start_begv, find_defun_start)
13194 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13195
131962008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13197
13198 * s/sol2-3.h: Insert contents of s/sol2.h.
13199 (LD_SWITCH_SYSTEM): Remove redundant definition.
13200 * s/sol2.h: Remove, unused.
13201
132022008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13203
13204 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13205
132062008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13207
13208 * Makefile.in (ns_appdir): Fix typo in find command.
13209
132102008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13211
13212 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13213
13214 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13215 added not supported anymore.
13216
13217 * s/usg5-4-2.h (LIBS_SYSTEM):
13218 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13219
13220 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13221 * s/lynxos.h (GETPGRP_NO_ARG):
13222 * s/hpux10-20.h (NO_SIOCTL_H):
13223 * s/gnu.h (GETPGRP_NO_ARG):
13224 * s/gnu-linux.h (NO_SIOCTL_H):
13225 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13226 * s/cygwin.h (GETPGRP_NO_ARG):
13227 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13228 (C_DEBUG_SWITCH): Remove duplicate definition.
13229
13230 * m/ibms390.h: Remove boilerplate comments.
13231
13232 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13233
13234 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13235 (wait_reading_process_output): Remove code for SunOS, platform not
13236 supported anymore. Use SOLARIS2 instead of sun.
13237
132382008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13239
13240 * font.c (font_open_by_name): Under NS, default lface height to zero.
13241 (font_open_for_lface): Under NS, set size based on frame fontsize.
13242 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13243 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13244
132452008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13246
13247 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13248 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13249 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13250 YES/NO.
13251 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13252 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13253 * Makefile.in (clean): Clear out build destination dir.
13254
132552008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13256
13257 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13258 xterm, xselect.
13259 * lisp.h: Remove declaration of hash_remove.
13260 * nsgui.h: Remove redefinitions of hash_remove.
13261 * fns.c (hash_remove): Rename to hash_remove_from_table.
13262
132632008-07-19 Seiji Zenitani <zenitani@mac.com>
13264
13265 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13266 strdup() the family UTF8String before modifying it.
13267
132682008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13269
13270 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13271 NS_FACE_BACKGROUND with 0 instead of nil.
13272 * nsfont.m (nsfont_draw): Same.
13273
132742008-07-19 Chong Yidong <cyd@stupidchicken.com>
13275
13276 * nsfns.m (ns_set_background_color): Fix crash.
13277
132782008-07-18 Chong Yidong <cyd@stupidchicken.com>
13279
13280 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13281
132822008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13283
13284 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13285
132862008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13287
13288 * gtkutil.c: Include <config.h> instead of "config.h".
13289
13290 * lisp.h (Foverlay_buffer): Add EXFUN.
13291
13292 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13293 child process to complete child_setup. Undo 2005-09-21 change.
13294
13295 * s/darwin.h: Mention setsid after vfork.
13296
132972008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13298
13299 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13300 Depend on macgui.h.
13301
13302 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13303 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13304
13305 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13306 and f19.
13307 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13308
13309 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13310 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13311 Remove enumerators.
13312
13313 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13314 Check if FACE_FROM_ID returns NULL.
13315
133162008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13317
13318 * w32inevt.c (change_frame_size): Remove extern declaration.
13319 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13320 change_frame_size.
13321
133222008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13323
13324 * getloadavg.c: Revert last change (2008-07-15).
13325
133262008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13327
13328 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 13329 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
13330 from configure.
13331
133322008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13333
13334 * s/sol2.h:
13335 * s/sol2-4.h: Reorganize conditionals.
13336
13337 * ecrt0.c: Remove code depending on m68000, not used anymore.
13338
13339 * fns.c (hash_remove): Make static.
13340 * lisp.h (hash_remove): Don't prototype.
13341
13342 * m/ibmrs6000.h:
13343 * m/ibms390x.h:
13344 * m/macppc.h: Remove boilerplate comments.
13345
13346 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13347 Solaris, which does not need them.
13348
13349 * m/vax.h: Remove comments about unsupported systems.
13350
13351 * s/darwin.h: Reorganize ifdefs.
13352
133532008-07-17 Andreas Schwab <schwab@suse.de>
13354
13355 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13356
133572008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13358
13359 Use SDATA. Follow coding convention of placing operators at
13360 beginning of next line rather than end of previous line, and placing
13361 spaces around infix operators.
13362
13363 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13364 in case it was defined already.
13365 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13366 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13367 ns_default.
13368 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13369 Lisp_Objects.
13370 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13371 (ns_defined_color, ns_color_to_lisp): Declare.
13372 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13373 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13374 it's accepted even with USE_LISP_UNION_TYPE.
13375 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13376 (update_frame_tool_bar): Remove apparently obsolete tests for
13377 non-integerness of f->tool_bar_lines.
13378 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13379 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13380 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13381 (nsfont_open): Don't confuse NULL for Qnil.
13382 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13383 * menu.h (find_and_call_menu_selection):
13384 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13385 (find_and_return_menu_selection): Always return something.
13386 * frame.h: Include dispextern.h for Display_Info.
13387 (display_x_get_resource): Declare.
13388
133892008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13390
13391 * syntax.c: Remove stdio.h include accidentally introduced in
13392 Emacs.app commit.
13393 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13394 NS_IMPL_COCOA.
13395 * keyboard.c (handle_async_input, input_available_signal): Remove
13396 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13397
133982008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13399
13400 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13401 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13402 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13403 Use SDATA.
13404
13405 * keymap.c: Remove all NS-specific code.
13406 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13407 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13408 where_is_preferred_modifier, return a different value depending on how
13409 preferred is the binding.
13410 (where_is_internal): Adjust accordingly.
13411 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13412 Adjust to new preferred_sequence_p.
13413 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13414 * keyboard.c (parse_solitary_modifier): Not static any more.
13415 * keyboard.h (parse_solitary_modifier): Declare.
13416
134172008-07-16 Andreas Schwab <schwab@suse.de>
13418
13419 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13420 of easymenu.
13421
134222008-07-16 Chong Yidong <cyd@stupidchicken.com>
13423
13424 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13425 that we don't move off the line.
13426
134272008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13428
13429 * keyboard.c (Qsuper): Remove.
13430 (parse_menu_item): Don't call where_is_internal specially for NS.
13431
134322008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13433
13434 * s/gnu-linux.h: Remove boilerplate comments.
13435
13436 * m/alpha.h (__ELF__): Consolidate conditions.
13437
13438 * m/m68k.h (linux): Use GNU_LINUX instead.
13439 Remove boilerplate comments.
13440
13441 * m/intel386.h: Undo refactoring from previous change.
13442 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13443 too, remove dead code.
13444 (linux): Use GNU_LINUX instead.
13445
134462008-07-16 Jason Rumney <jasonr@gnu.org>
13447
13448 * w32gui.h: Repeat 26 June changes lost by last change.
13449
134502008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13451
13452 * systty.h: Remove code for Aix on 386, unsupported platform.
13453
13454 * s/ms-w32.h: Remove boilerplate comments.
13455 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13456
13457 * s/gnu-linux.h (TERM): Remove support.
13458 (HAVE_SYSVIPC): Remove, unused.
13459 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13460 for this system.
13461
13462 * process.c: Remove support for IRIS, unused.
13463 Remove support for TERM, not relevant anymore.
13464
13465 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13466 used with the definition.
13467
13468 * s/aix4-2.h (static): Do not undef.
13469
13470 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13471 only used on Aix.
13472 (HAVE_SYSVIPC): Remove, unused.
13473
13474 * m/hp800.h (CANNOT_DUMP): Do not undef.
13475
13476 * m/alpha.h: Fix comment.
13477
13478 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13479 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13480 used by this configuration.
13481 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13482 * unexec.c: Remove code depending on HPUX and
13483 USG_SHARED_LIBRARIES, not used with this file. Remove code
13484 depending on IRIS, unused. Remove if 0-ed code.
13485
13486 * s/template.h: Remove comments about static.
13487
13488 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13489 Remove if 0-ed code.
13490 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13491 were the same as the default.
13492 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13493 Remove boilerplate comments.
13494 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13495 (HAVE_SYSVIPC): Remove, unused.
13496 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13497
13498 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13499 Remove boilerplate comments.
13500 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13501 Remove boilerplate comments.
13502 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13503 Remove boilerplate comments.
13504 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13505
13506 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13507 USG systems which do not use DATA_SEG_BITS.
13508 Refactor code. Remove boilerplate comments.
13509
13510 * m/ibms390.h:
13511 * m/m68k.h:
13512 * s/bsd-common.h:
13513 * s/cygwin.h:
13514 * s/darwin.h:
13515 * s/freebsd.h:
13516 * s/gnu.h:
13517 * s/msdos.h: Remove boilerplate comments.
13518
13519 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 13520 do not use this file.
aac0c6e3
MR
13521 (IRIS_4D): Remove, unused.
13522
13523 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 13524 do not use this file.
aac0c6e3
MR
13525 (SIGN_EXTEND_CHAR):
13526 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13527 * unexmips.c: Remove file, unused.
13528
13529 * editfns.c (Fuser_full_name): Replace the only use of
13530 USER_FULL_NAME with its value.
13531 * config.in: Regenerate.
13532
135332008-07-16 David Reitter <david.reitter@gmail.com>
13534
13535 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13536 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13537
135382008-07-16 Glenn Morris <rgm@gnu.org>
13539
13540 * emacs.c (system-type): Doc fix.
13541
135422008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13543
13544 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13545 If the cache doesn't work, let's fix it, rather than work around it.
13546
135472008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13548
13549 * Makefile.in: Correct additions for nsfont.o in last commit.
13550 * nsfont.m: New file (forgot last commit).
13551
135522008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13553
13554 * callproc.c (set_initial_environment): Initialize
13555 Vprocess_environment under CANNOT_DUMP (fixes crash when
13556 batch-compiling for bootstrap).
13557
135582008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 13559 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 13560
c4cc8b9a
JB
13561 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13562 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
13563
135642008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13565
13566 Changes and additions for NeXTstep windowing system (Cocoa and
13567 GNUstep) support.
13568
13569 * Makefile.in:
13570 * config.in: Support defines and build commands for NS port.
13571 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13572 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13573 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13574 windowing.
13575 (struct face): Add synth_ital field.
13576 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13577 (init_display): Initialize Vinitial_window_system to "ns" when so
13578 compiled.
13579 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13580 (display_arg): Use under NS.
13581 (main): Under NS, allocate autorelease pool and handle command line
13582 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13583 (standard_args): Add NS-specific args.
13584 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13585 * font.c (DEFAULT_ENCODING): New variable.
13586 (font_find_for_lface): Use it.
13587 (syms_of_font): Load syms_of_nsfont under NS.
13588 * font.h: Declare nsfont_driver when compiled under NS.
13589 * fontset.c: When compiling under NS, include nsterm.h.
13590 (fontset_from_font): Autoconstruct fontset under NS.
13591 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13592 symbol, document and use it.
13593 (do_switch_frame): When for_deletion under Cocoa, add
13594 Fraise_frame(Qnil).
13595 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13596 (x_get_arg): Allow "yes" and "no" as boolean values.
13597 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13598 Qright under Cocoa.
13599 (focus-follows-mouse): Default to 0 under NS.
13600 * frame.h (enum output_method): Add output_ns.
13601 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13602 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13603 (FRAME_WINDOW_P): NS-specific definition.
13604 * fringe.c (max_used_fringe_bitmap): Make public.
13605 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13606 (getloadavg): Use NeXT code under descendant OS's.
13607 * image.c (includes and header section, x_create_bitmap_from_data)
13608 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13609 (image_background_transparent, x_clear_image_1)
13610 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13611 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13612 (x_to_xcolors, x_from_xcolors, x_disable_image)
13613 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13614 other GUIs, including XPM support using code originally written for
13615 Carbon GUI.
13616 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13617 using NS API.
13618 (image_ascent): Use font metrics macros instead of direct struct field
13619 access.
13620 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13621 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13622 Also, handle NS as GTK for menu bar purposes.
13623 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13624 toolkit where they differ.
13625 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13626 use cachelist, still needed under NS.
13627 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13628 (struct widget_value): Define it here for menu.c.
13629 * keymap.c (includes): Include modifier internals.
13630 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13631 NS.
13632 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13633 support for preferring sequences using certain modifiers, specified by
13634 the FIRSTONLY argument.
13635 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13636 under NS GNUstep implementation.
13637 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13638 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13639 * menu.c: Include nsterm.h under NS.
13640 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13641 (free_menubar_widget_tree_value, update_submenu_strings)
13642 (find_and_call_menu_selection): Treat NS as X and NT.
13643 (find_and_return_menu_selection): New function, used for popup menus.
13644 * nsgui.h:
13645 * nsterm.h:
13646 * nsfns.m:
13647 * nsimage.m:
13648 * nsmenu.m:
13649 * nsselect.m:
13650 * nsterm.m: New files.
13651 * process.c (wait_reading_process_output): Under NS, call ns_select()
13652 instead of plain select().
13653 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13654 beginning of buffer.
13655 * sysselect.h (init_process): Rename when compiling under Cocoa to
13656 avoid name conflict.
13657 * termhooks.h (display_info): Add ns_display_info to union.
13658 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13659 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13660 COCOA environment.
13661 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13662 unexec() signature. (Note, this will dump, but the resulting file
13663 crashes; unexosx is used instead; keeping around for reference and
13664 possible aid in getting dump working under GNUstep.)
13665 * w32gui.h (button_type, widget_value): Remove definitions (now in
13666 keyboard.h).
13667 * window.c: Include nsterm.h when compiling under NS.
13668 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13669 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13670 other GUI windowing systems.
13671 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13672 GTK.
13673 (x_consider_frame_title): Under NS, set icon type and frame
13674 modified-state indicator; use ns_set_name_as_filename() when using
13675 formatted title.
13676 (update_window_cursor): Make public when compiling under NS.
13677 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13678 (hourglass_atimer, Vhourglass_delay
13679 * xfaces.c (header section, init_frame_faces, clear_font_table)
13680 (defined_color, unload_color, x_face_list_fonts)
13681 (prepare_face_for_display): Add NS support parallel to other GUIs.
13682 Emulate GCs like other non-X GUIs.
13683 (split_font_name): Don't lowercase font name under NS.
13684 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13685 under NS.
13686 * s/darwin.h: Add support for compilation under NS.
13687
136882008-07-15 Jason Rumney <jasonr@gnu.org>
13689
13690 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13691 (w32_show_hourglass): Rename from show_hourglass.
13692 (w32_hide_hourglass): Rename from hide_hourglass.
13693 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13694 (Vhourglass_delay): Declare extern.
13695 (hourglass_started): Remove.
13696
13697 * xdisp.c (Vhourglass_delay): Remove static.
13698 (hourglass_started, start_hourglass, cancel_hourglass):
13699 Don't include these versions on WINDOWSNT.
13700
137012008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13702
13703 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13704 variables (formerly in xfns.c).
13705 (show_hourglass, hide_hourglass): New prototypes (same).
13706 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13707 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13708 in xfns.c).
13709 (syms_of_xdisp): Declare/initialize display-hourglass,
13710 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13711 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13712 formerly in xfns.c.
13713 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13714 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13715 (start_hourglass, cancel_hourglass): Remove.
13716 (show_hourglass, hide_hourglass): Remove prototypes and static
13717 modifiers.
13718 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13719 hourglass_atimer, hourglass_shown_p declaration/initialization.
13720 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13721 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13722 (start_hourglass, cancel_hourglass): Remove.
13723 (show_hourglass, hide_hourglass): Remove prototypes and static
13724 modifiers.
13725 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13726 hourglass_atimer, hourglass_shown_p declaration/initialization.
13727 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13728 (DEFAULT_HOURGLASS_DELAY): Remove.
13729 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13730 hourglass_shown_p declaration/initialization.
13731
137322008-07-14 Jason Rumney <jasonr@gnu.org>
13733
13734 * w32fns.c (w32_get_arg): Remove wrapper function.
13735 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13736 directly.
13737 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13738
137392008-07-14 Kenichi Handa <handa@m17n.org>
13740
13741 * xfont.c (xfont_open): Add workaround for X's bug.
13742
137432008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13744
13745 * fontset.c: Include <stdio.h> unconditionally.
13746
137472008-07-13 Michael Albinus <michael.albinus@gmx.de>
13748
13749 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13750 for filtering.
13751
137522008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13753
13754 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13755
13756 * m/macppc.h:
13757 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13758
c4cc8b9a 13759 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
13760 (SPECIAL_EMACS_INT):
13761 * m/ia64.h (SPECIAL_EMACS_INT):
13762 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13763 * s/gnu.h (NLIST_STRUCT):
13764 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13765 * s/gnu-linux.h (LINUX):
13766 * s/msdos.h (HAVE_FACES):
13767 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13768
13769 * systty.h:
13770 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13771 anymore.
13772
137732008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13774
13775 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13776 always defined as int.
13777
13778 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13779 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13780 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13781 * s/freebsd.h (HAVE_WAIT_HEADER):
13782 * s/bsd-common.h (HAVE_UNION_WAIT):
13783 * s/aix4-2.h (HAVE_WAIT_HEADER):
13784 * m/mips.h (HAVE_UNION_WAIT):
13785 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13786 (COFF, static): Do not define, they are undefined later in the file.
13787
13788 * process.c (update_status): Don't use a union.
13789 (status_convert):
13790 (sigchld_handler): Use int instead of WAITTYPE.
13791
137922008-07-12 Chong Yidong <cyd@stupidchicken.com>
13793
13794 * indent.c (Fvertical_motion): Restore hscroll before moving to
13795 goal column.
13796
137972008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13798
13799 * lisp.h: Remove left over code.
13800
138012008-07-11 Andreas Schwab <schwab@suse.de>
13802
13803 * lisp.h: Fix logic in last change.
13804
13805 * menu.h: New file.
13806 * menu.c: Include it.
13807 * xmenu.c: Likewise.
13808 * Makefile.in: Update dependencies.
13809
138102008-07-11 Kenichi Handa <handa@m17n.org>
13811
13812 * fontset.c (fontset_from_font): Cancel the previous change.
13813
138142008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13815
13816 * lisp.h:
13817 * w32heap.c:
13818 * emacs.c:
13819 * alloc.c: Replace all references of NO_UNION_TYPE with
13820 USE_LISP_UNION_TYPE.
13821
13822 * m/xtensa.h (NO_UNION_TYPE):
13823 * m/vax.h (NO_UNION_TYPE):
13824 * m/template.h (NO_UNION_TYPE):
13825 * m/sparc.h (NO_UNION_TYPE):
13826 * m/mips.h (NO_UNION_TYPE):
13827 * m/macppc.h (NO_UNION_TYPE):
13828 * m/m68k.h (NO_UNION_TYPE):
13829 * m/iris4d.h (NO_UNION_TYPE):
13830 * m/intel386.h (NO_UNION_TYPE):
13831 * m/ibms390x.h (NO_UNION_TYPE):
13832 * m/ibms390.h (NO_UNION_TYPE):
13833 * m/ibmrs6000.h (NO_UNION_TYPE):
13834 * m/ia64.h (NO_UNION_TYPE):
13835 * m/hp800.h (NO_UNION_TYPE):
13836 * m/arm.h (NO_UNION_TYPE):
13837 * m/amdx86-64.h (NO_UNION_TYPE):
13838 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13839 defining it the same.
13840
138412008-07-10 Chong Yidong <cyd@stupidchicken.com>
13842
13843 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13844
138452008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13846
13847 * fileio.c:
50426a04 13848 * sysdep.c:
aac0c6e3
MR
13849 * systty.h:
13850 * m/ibmrs6000.h:
13851 * m/iris4d.h:
13852 * s/aix4-2.h:
13853 * s/freebsd.h:
13854 * s/gnu-linux.h:
13855 * s/hpux10-20.h:
13856 * s/hpux11.h:
13857 * s/netbsd.h:
13858 * s/sol2-3.h:
13859 * s/sol2-4.h:
13860 * s/sol2.h:
13861 * s/usg5-4.h:
13862 * s/vms.h: Remove references to unused variables.
13863
138642008-07-10 Andreas Schwab <schwab@suse.de>
13865
13866 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13867 pattern before matching the generic family.
13868
138692008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13870
13871 * unexec.c:
13872 * s/vms.h:
13873 * s/usg5-4-2.h:
13874 * s/sol2-5.h:
13875 * s/freebsd.h:
13876 * s/darwin.h: Remove dead code.
13877
13878 * m/template.h:
13879 * m/sparc.h:
13880 * m/mips.h:
13881 * m/m68k.h:
13882 * m/iris4d.h:
13883 * m/intel386.h:
13884 * m/ibms390x.h:
13885 * m/ibms390.h:
13886 * m/ia64.h:
13887 * m/hp800.h:
13888 * m/arm.h:
13889 * m/amdx86-64.h: Remove dead code and references to unused
13890 and compiler defined symbols.
13891
13892 * unexmips.c:
13893 * unexelf.c: Remove references to desupported systems.
13894
13895 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13896
13897 * m/powermac.h: Remove boilerplate comments.
13898 (NO_REMAP): Remove unused definition.
13899
13900 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13901 define them.
13902
139032008-07-10 Kenichi Handa <handa@m17n.org>
13904
13905 * xfont.c (xfont_open): Log the reason of failure.
13906
139072008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13908
13909 * fontset.c (fontset_get_font_group):
13910 * font.c (font_check_otf): Specify argument types.
13911
139122008-07-09 Kenichi Handa <handa@m17n.org>
13913
13914 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13915 non-ASCII char is found.
13916
13917 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13918 (reorder_font_vector): Change the arg preferred_family to font.
13919 Prefer the spec matching with font.
13920 (fontset_get_font_group): New function.
13921 (fontset_find_font): Change the format of an element of a realized
13922 fontset. Use fontset_get_font_group.
13923 (fontset_font): Try the current fontset, the default fontset, the
13924 fallbacks of the current fontset, and the fallbacks of the default
13925 fontset in this order.
13926 (face_for_char): Delete the shortcut to use the current font.
13927 (fontset_from_font): Don't set fonts for Latin in the fontset.
13928
13929 * font.h (font_make_object, font_match_p): Adjust prototypes.
13930
13931 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13932
13933 * font.c (font_make_object): New arg entity and pixelsize.
13934 (font_check_otf_features, font_check_otf): New functions.
13935 (font_match_p): Check :lang, :script, and :otf properties.
13936
13937 * xfont.c (xfont_open): Adjust it for the change of
13938 font_make_object.
13939 (xfont_text_extents): Fix initial setting of metrics.
13940
13941 * ftfont.c (struct ftfont_info): New member index, delete member
13942 fc_charset_idx. Make the member order compatible with struct
13943 xftfont_info.
13944 (fc_charset_table): Change charset names to registry names.
13945 (ftfont_pattern_entity): Delete the args registry and
13946 fc_charset_idx. Change the value of :font-entity property
13947 to (FONTNAME . INDEX). Always set :registry property to
13948 `iso10646-1'.
13949 (struct ftfont_cache_data): New struct.
13950 (ftfont_lookup_cache): New arg for_face.
13951 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13952 (ftfont_driver): Set the member otf_capability.
13953 (ftfont_get_charset): Adjust it for the change of
13954 fc_charset_table.
13955 (OTF_TAG_SYM): New macro.
13956 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13957 for the change of fc_charset_table.
13958 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13959 ftfont_pattern_entity. Add FC_INDEX to objset.
13960 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13961 and ftfont_pattern_entity.
13962 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13963 font_make_object, struct ftfont_info.
13964 (ftfont_has_char): Use ftfont_get_fc_charset.
13965 (ftfont_otf_features, ftfont_otf_capability): New functions.
13966 (ftfont_shape): Use ftfont_get_otf.
13967 (ftfont_text_extents): Fix initial setting of metrics.
13968
13969 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13970 member order compatible with struct ftfont_info.
13971 (xftfont_open): Add FC_CHARSET to the pattern. Set
13972 xftfont_info->ft_size. Don't unlock the face. Check BDF
13973 properties if appropriate.
13974 (xftfont_close): Unlock the face.
13975 (xftfont_anchor_point, xftfont_shape): Deleted.
13976 (syms_of_xftfont): Don't set members anchor_point and shape of
13977 xftfont_driver.
13978
13979 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13980 font_make_object.
13981
13982 * w32font.c (w32font_open): Adjust it for the change of
13983 font_make_object.
13984 (w32font_open_internal): Don't set properties of font_object here.
13985
139862008-07-08 Chong Yidong <cyd@stupidchicken.com>
13987
13988 * macfns.c (x_create_tip_frame):
13989 * w32fns.c (x_create_tip_frame):
13990 * xfns.c (x_create_tip_frame): Pass parameter argument to
13991 face-set-after-frame-default.
13992
13993 * xfaces.c (Finternal_merge_in_global_face): Save merged
13994 attributes for the default face back into the face vector.
13995
139962008-07-08 Andreas Schwab <schwab@suse.de>
13997
13998 * fontset.h: Declare fontset_from_font. Don't declare
13999 new_fontset_from_font and fontset_from_font_name.
14000 * xterm.c: Include "fontset.h".
14001 * Makefile.in (xterm.o): Update dependencies.
14002
140032008-07-08 Glenn Morris <rgm@gnu.org>
14004
14005 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14006 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14007
140082008-07-07 Chong Yidong <cyd@stupidchicken.com>
14009
14010 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14011 (x_set_frame_parameters): Don't bind it.
14012
140132008-07-07 Juanma Barranquero <lekktu@gmail.com>
14014
14015 * w32fns.c (map_w32_filename): Declare extern.
14016
140172008-07-07 Jason Rumney <jasonr@gnu.org>
14018
14019 * w32term.c (WS_EX_LAYERED): Define if not already.
14020
140212008-07-06 Chong Yidong <cyd@stupidchicken.com>
14022
14023 * xfaces.c (set_font_frame_param): Don't try to set the font
14024 parameter if it is still unspecified in the lface.
14025
140262008-07-05 Chong Yidong <cyd@stupidchicken.com>
14027
14028 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14029 face if it didn't already exist.
14030
14031 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14032
140332008-07-05 Andreas Schwab <schwab@suse.de>
14034
14035 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14036
140372008-07-05 Chong Yidong <cyd@stupidchicken.com>
14038
14039 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14040 word-wrapping.
14041 (IT_DISPLAYING_WHITESPACE): New macro.
14042 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14043 when word-wrapping. Simplify word-wrapping logic. Use correct
14044 pixel positions when saving copies of the iterator.
14045 (display_line): Use proper wrap point if the last character on a
14046 line was preceded by whitespace.
14047
140482008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14049
14050 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14051
140522008-07-04 Kenichi Handa <handa@m17n.org>
14053
14054 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14055
14056 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14057
140582008-07-02 Jason Rumney <jasonr@gnu.org>
14059
14060 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 14061 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
14062
14063 * xdisp.c (next_element_from_display_vector): Move assignment out
14064 of if statement.
14065
140662008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14067
14068 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14069
14070 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14071 (syms_of_fileio): Initialize and export them.
14072 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14073
14074 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14075 (Fsystem_move_file_to_trash): New function.
14076 (syms_of_w32fns): Export it to lisp.
14077
140782008-07-01 Jason Rumney <jasonr@gnu.org>
14079
14080 * w32font.c (w32font_text_extents): Don't count overhang as part
14081 of width.
14082
140832008-06-30 Miles Bader <miles@gnu.org>
14084
14085 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14086 Add `avoid_cursor_p' field.
14087
14088 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14089 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14090 (append_glyph, append_composite_glyph, produce_image_glyph)
14091 (append_stretch_glyph): Initialize avoid_cursor_p.
14092 (get_it_property): Rename from `get_line_height_property'.
14093 (x_produce_glyphs): Use get_it_property.
14094 (handle_line_prefix, push_display_prop): New functions.
14095 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14096 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14097 New variables.
14098 (syms_of_xdisp): Initialize them.
14099
141002008-06-30 Kenichi Handa <handa@m17n.org>
14101
14102 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14103 XftDefaultSubstitute (they are called in XftFontMatch).
14104 (xftfont_open): Fix args to ftfont_font_format.
14105
14106 * ftfont.c (fc_charset_table): New member lang.
14107 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 14108 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
14109 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14110 (ftfont_open): Fix args to ftfont_font_format.
14111 (ftfont_font_format): New arg filename.
14112
141132008-06-30 Chong Yidong <cyd@stupidchicken.com>
14114
14115 * xfaces.c (Finternal_merge_in_global_face): If default face was
14116 modified, realize it again. Update the font face attribute.
14117
141182008-06-29 Jason Rumney <jasonr@gnu.org>
14119
14120 * w32term.c (x_set_frame_alpha): Fix logic.
14121
141222008-06-29 Kenichi Handa <handa@m17n.org>
14123
14124 * fontset.c (Finternal_char_font): Return font-object instead of
14125 font-name.
14126
14127 * composite.c (get_composition_id): Fix the width calculation for TAB.
14128
141292008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14130
14131 * indent.c (Fvertical_motion): Properly handle float column arg.
14132
141332008-06-28 Jason Rumney <jasonr@gnu.org>
14134
14135 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14136 (pfnSetLayeredWindowAttributes): New function pointer.
14137 (w32_initialize): Initialize it when supported.
14138 (x_set_frame_alpha): New function.
14139
14140 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14141 (w32_frame_parm_handlers): Set alpha handler.
14142
14143 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14144
141452008-06-27 Jason Rumney <jasonr@gnu.org>
14146
14147 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14148 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14149 (w32_to_x_charset, x_to_w32_charset)
14150 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14151 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14152 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14153 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14154 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14155 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14156 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14157 (Qw32_charset_unicode): Remove.
14158 (syms_of_w32fns): Update for above changes.
14159
14160 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14161 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14162 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14163 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14164 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14165 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14166 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14167 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14168 (syms_of_w32font): Update for above changes.
14169
141702008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14171
14172 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14173 removed #if.
14174 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14175
141762008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 14177 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
14178
14179 * makefile.w32-in (LOCAL_FLAGS):
14180 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14181
14182 * sysdep.c (_spawnlp, _getpid):
14183 Declare with explicit _cdecl instead of _CRTAPI1.
14184
14185 * editfns.c (Fget_internal_run_time):
14186 Check for WINDOWSNT with #ifdef, not #if.
14187
141882008-06-26 Jason Rumney <jasonr@gnu.org>
14189
14190 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14191
14192 * w32term.c (x_draw_glyph_string_foreground)
14193 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14194 Use FONT_HANDLE macro.
14195 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14196
14197 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14198 (uniscribe_encode_char): Use FONT_HANDLE macro.
14199
14200 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14201 (w32font_text_extents): Use precast w32_font.
14202 (w32font_close): Free cached metrics.
14203 (w32font_open_internal): Allocate space for name on stack.
14204
142052008-06-26 Chong Yidong <cyd@stupidchicken.com>
14206
14207 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14208
142092008-06-26 Jason Rumney <jasonr@gnu.org>
14210
14211 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14212 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14213
142142008-06-26 Juanma Barranquero <lekktu@gmail.com>
14215
14216 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14217
142182008-06-26 Jason Rumney <jasonr@gnu.org>
14219
14220 * w32bdf.c, w32bdf.h: Remove obsolete files.
14221
14222 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14223
14224 * w32gui.h: Don't include w32bdf.h.
14225 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14226 Remove obsolete font support.
14227
14228 * w32font.h (struct w32font_info): Remove compat_w32_font.
14229 Add hfont member.
14230 (FONT_COMPAT): Remove obsolete macro.
14231
14232 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14233 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14234 (w32font_open_internal): Remove compat code. Set new hfont member.
14235 (Fx_select_font): Use new hfont member.
14236
14237 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14238 (uniscribe_encode_char): Use new hfont member.
14239
14240 * w32term.c (x_draw_glyph_string_foreground)
14241 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14242 (x_draw_glyph_string): Use metrics in w32font_info.
14243
142442008-06-26 Kenichi Handa <handa@m17n.org>
14245
14246 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14247
142482008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14249
14250 * unexnext.c:
14251 * m/ews4800.h:
14252 * m/hp9000s300.h:
14253 * m/ibm370aix.h:
14254 * m/mips-siemens.h:
14255 * m/ncr386.h:
14256 * m/next.h:
14257 * m/pmax.h:
14258 * m/powerpcle.h:
14259 * m/tandem-s2.h:
14260 * s/386bsd.h:
14261 * s/bsd386.h:
14262 * s/bsd4-1.h:
14263 * s/bsd4-2.h:
14264 * s/bsdos2-1.h:
14265 * s/bsdos2.h:
14266 * s/bsdos3.h:
14267 * s/bsdos4.h:
14268 * s/nextstep.h:
14269 * s/ultrix4-3.h:
14270 * s/usg5-0.h:
14271 * s/usg5-2-2.h:
14272 * s/usg5-2.h:
14273 * s/usg5-4-3.h:
14274 * s/ux4800.h:
14275 * s/uxpds.h:
14276 * s/uxpv.h: Remove support for obsolete systems.
14277 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 14278 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
14279 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14280 Remove, insert contents in s/aix4-2.h.
14281 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14282 * s/bsd4-3.h: Rename to ...
14283 * s/bsd-common.h: ... this.
14284 * data.c:
14285 * doc.c:
14286 * ecrt0.c:
14287 * emacs.c:
14288 * fileio.c:
14289 * floatfns.c:
14290 * keyboard.c:
14291 * mem-limits.h:
14292 * print.c:
14293 * process.c:
14294 * sysdep.c:
14295 * syssignal.h:
14296 * systty.h:
14297 * syswait.h:
14298 * term.c:
14299 * unexec.c:
14300 * unexelf.c:
14301 * unexhp9k800.c:
14302 * m/hp800.h:
14303 * m/ibmrs6000.h:
14304 * m/mips.h:
14305 * m/vax.h:
14306 * s/darwin.h:
14307 * s/freebsd.h:
14308 * s/gnu.h:
14309 * s/ms-w32.h:
14310 * s/msdos.h:
14311 * s/netbsd.h:
14312 * s/template.h: Remove references to obsolete variables.
14313
14314 * Makefile.in: Add dependencies for all unexec files.
14315 (admindir): Remove unused variable.
14316 (UNEXEC_SRC): Remove references.
14317
143182008-06-25 Chong Yidong <cyd@stupidchicken.com>
14319
14320 * xfns.c (x_default_font_parameter): If Xft is available, first
14321 try Monospace-12 for the default font.
14322
143232008-06-25 Jason Rumney <jasonr@gnu.org>
14324
14325 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14326
143272008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14328
14329 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14330
14331 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14332
143332008-06-25 Juanma Barranquero <lekktu@gmail.com>
14334
14335 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14336 <scroll-conservatively>: Fix typo in docstring.
14337
14338 * xselect.c (Fx_send_client_event): Doc fix.
14339
143402008-06-25 Kenichi Handa <handa@m17n.org>
14341
14342 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14343
14344 * font.c (font_parse_fcname): Remove unused variables.
14345 (font_sort_entites): Delete the arg SPEC. Caller changed.
14346 Fix for the case of ! best_only.
14347 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14348
14349 * lisp.h (Fstring_to_unibyte): EXFUN it.
14350
14351 * character.h (str_to_unibyte): Extern it.
14352
14353 * character.c (str_to_unibyte): New function.
14354
14355 * fns.c (Fstring_to_unibyte): New function.
14356 (syms_of_fns): Defsubr it.
14357
143582008-06-24 Kenichi Handa <handa@m17n.org>
14359
14360 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14361 DPI too.
14362 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14363
143642008-06-24 Andreas Schwab <schwab@suse.de>
14365
14366 * Makefile.in (${lispsource}loaddefs.el): Rename from
14367 ../lisp/loaddefs.el.
14368 (bootstrap-clean): Do what distclean does but don't remove
14369 Makefile.
14370 (distclean): Depend on bootstrap-clean and remove Makefile.
14371
143722008-06-24 Chong Yidong <cyd@stupidchicken.com>
14373
14374 * buffer.h (struct buffer): New member word_wrap.
14375
14376 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14377 word-wrap.
14378 (init_buffer_once): Initialize them.
14379
14380 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14381 line_wrap enum possessing three possible values.
14382
14383 * termopts.h: Replace truncate_partial_width_windows with
14384 Vtruncate_partial_width_windows.
14385
14386 * dispnew.c (direct_output_for_insert): Avoid direct output when
14387 inserting a space with word wrap on.
14388
14389 * indent.c (compute_motion): Obey integer values of
14390 truncate-partial-width-windows.
14391
14392 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14393 replacing truncate_partial_width_windows.
14394 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14395 truncate only if the window width is below that integer.
14396 (start_display, resize_mini_window, produce_stretch_glyph)
14397 (display_string, move_it_in_display_line_to): Use line_wrap.
14398 (back_to_previous_visible_line_start, reseat_1): Reset
14399 string_from_display_prop_p.
14400 (display_line): Extend default face to end of line when wrapping.
14401
144022008-06-24 Kim F. Storm <storm@cua.dk>
14403
14404 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14405 to wrap continued lines at word boundaries.
14406
144072008-06-24 Jason Rumney <jasonr@gnu.org>
14408
14409 * font.c (Ffont_face_attributes): Multiply pixel size before point
14410 conversion to avoid multiplying rounding error.
14411
144122008-06-23 Jason Rumney <jasonr@gnu.org>
14413
14414 * w32term.c (x_draw_glyph_string_background)
14415 (x_draw_glyph_string): Remove old bdf font code.
14416
14417 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14418
144192008-06-22 Kenichi Handa <handa@m17n.org>
14420
14421 * font.c (font_find_for_lface): Try the adstyle specified in
14422 the property of LFACE_FONT of LFACE (if any).
14423
144242008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14425 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14426
14427 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14428
144292008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14430
14431 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14432 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14433 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14434 (witness-emacs): Remove.
14435 (lisp, shortlisp): Move loaddefs.el earlier.
14436 (mostlyclean): Forget about witness-emacs.
14437
144382008-06-22 Glenn Morris <rgm@gnu.org>
14439
14440 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14441 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14442
144432008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14444
14445 * Makefile.in (PRECOMP): Remove.
14446 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14447 (witness-emacs): Run `compile-first'.
14448 (.el.elc): Use the new compile-onefile target.
14449
144502008-06-21 Kenichi Handa <handa@m17n.org>
14451
14452 * xftfont.c (xftfont_open): Handle QCembolden only when
14453 FC_EMBOLDEN is defined.
14454
144552008-06-21 Andreas Schwab <schwab@suse.de>
14456
14457 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14458 (.el.elc): Likewise.
14459
144602008-06-21 Miles Bader <miles@gnu.org>
14461
14462 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14463 build dir, not the lisp source dir.
14464
144652008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14466
14467 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14468 (bootstrapclean): Remove.
14469 (.el.elc): New rule.
14470 (PRECOMP): New var.
14471 (../lisp/subdirs.el): Remove.
14472 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14473 (witness-emacs): New target.
14474 (mostlyclean): Remove witness-emacs as well.
14475 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14476 Add witness-emacs dependency.
14477
144782008-06-20 Chong Yidong <cyd@stupidchicken.com>
14479
14480 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14481 defined by the font.
14482
144832008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14484
14485 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14486 (bootstrap-clean): New target that keeps TAGS around.
14487 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14488 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14489
144902008-06-20 Jason Rumney <jasonr@gnu.org>
14491
14492 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14493 Remove obsolete font code.
14494
14495 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14496 to determine language support.
14497
144982008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14499
14500 * sysdep.c (cfsetspeed): New fun extracted from the code.
14501 (cfmakeraw): Move before first use.
14502
145032008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14504
14505 * sysdep.c (cfmakeraw): Provide fallback implementation.
14506 (serial_configure): Provide fallback implementation of cfsetspeed.
14507
145082008-06-20 Kenichi Handa <handa@m17n.org>
14509
14510 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14511 the pattern.
14512
14513 * fontset.c (fontset_from_font): Copy font_spec before changing
14514 the elements.
14515
14516 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14517
145182008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14519
14520 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14521 for explicit `font' parameters.
14522
14523 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14524
145252008-06-19 Kenichi Handa <handa@m17n.org>
14526
14527 * frame.c: Include <ctype.h>.
14528 (x_set_font_backend): Allow spacing characters in the X resource
14529 for FontBackend.
14530
145312008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14532
14533 * w32fns.c, xfns.c (Qfont_param): New var.
14534 (syms_of_w32fns): Initialize it.
14535 (x_default_font_parameter): Record explicit `font' into
14536 `font-parameter'.
14537
145382008-06-18 Kenichi Handa <handa@m17n.org>
14539
14540 * font.c (font_parse_xlfd): Fix previous change.
14541 (font_parse_fcname): Don't use :fc-unknown-spec.
14542 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14543 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14544 (font_add_log): Prepend the driver name to the resulting fonts.
14545
14546 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14547 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14548 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14549
14550 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14551 (QCembolden): New variables.
14552 (syms_of_xftfont): DEFSYM them.
14553 (xftfont_open): Call XftFontMatch. Don't trust the result of
14554 XftTextExtents8 if the pixel_size is less than 5.
14555
145562008-06-18 Andreas Schwab <schwab@suse.de>
14557
14558 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14559 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14560
145612008-06-18 Jason Rumney <jasonr@gnu.org>
14562
14563 * w32font.c (w32font_list, w32font_match): Add logging.
14564
14565 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14566
145672008-06-17 Chong Yidong <cyd@stupidchicken.com>
14568
14569 * font.c (font_parse_fcname): Store divider characters for
14570 unknown-spec list. For known key symbols, intern using correct
14571 symbol name.
14572
145732008-06-17 Kenichi Handa <handa@m17n.org>
14574
14575 * xfaces.c (realize_default_face): If the frame is not on window
14576 system, set the fontset of face to nil.
14577
145782008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14579
14580 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14581
145822008-06-16 Juanma Barranquero <lekktu@gmail.com>
14583
14584 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14585 (build_font_name_from_vector): Delete externs.
14586
14587 * xfaces.c (struct font_name): Don't declare.
14588
145892008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14590
14591 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14592
145932008-06-16 Chong Yidong <cyd@stupidchicken.com>
14594
14595 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14596
145972008-06-16 Juanma Barranquero <lekktu@gmail.com>
14598
14599 * font.c (Ffont_spec): Fix usage in docstring.
14600 (Ffont_face_attributes): Doc fix.
14601
146022008-06-16 Andreas Schwab <schwab@suse.de>
14603
14604 * font.c (Ffont_face_attributes): Fix definition.
14605
146062008-06-16 Jason Rumney <jasonr@gnu.org>
14607
14608 * font.h (font_style_symbolic_from_value): Remove.
14609
14610 * font.c (font_style_symbolic_from_value): Remove.
14611 (font_style_symbolic): Revert to pre 2008-06-13 version.
14612
14613 * w32font.c (w32_to_fc_weight): New function.
14614 (w32font_full_name, logfont_to_fcname): Use it.
14615
146162008-06-16 Kenichi Handa <handa@m17n.org>
14617
14618 * font.c (font_check_object): Delete it.
14619 (font_clear_cache): Check if a font-object is alive.
14620 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14621 font-object to nil.
14622 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14623 (font_at): Don't call font_check_object.
14624 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14625
146262008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14627
14628 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14629
146302008-06-16 Chong Yidong <cyd@stupidchicken.com>
14631
14632 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14633
146342008-06-15 Chong Yidong <cyd@stupidchicken.com>
14635
14636 * font.c (font_parse_fcname): Only one decimal point.
14637 (font_unparse_fcname): Handle data in family and foundry indices
14638 as symbols, not strings.
14639 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14640
14641 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14642
14643 * font.h (font_unparse_gtkname): Add prototype.
14644
146452008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14646
14647 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14648
146492008-06-15 Andreas Schwab <schwab@suse.de>
14650
14651 * font.c (font_update_drivers): Fix crash when no drivers match.
14652
146532008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14654
14655 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14656 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14657
146582008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14659
14660 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14661
146622008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14663
14664 * process.c (Fserial_process_configure, Fprocess_send_eof):
14665 Use EQ to compare Lisp_Objects.
14666
146672008-06-13 Jason Rumney <jasonr@gnu.org>
14668
14669 * w32fns.c (Fw32_select_font): Remove old font API function.
14670
14671 * w32font.c (logfont_to_fcname): New function.
14672 (Fx_select_font): New font dialog function compatible with
14673 GTK/fontconfig version.
14674
14675 * font.c (font_style_symbolic_from_value): New function.
14676 (font_style_symbolic): Use it.
14677
14678 * font.h (font_style_symbolic_from_value): Declare new function.
14679
146802008-06-13 Juanma Barranquero <lekktu@gmail.com>
14681
14682 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14683 <font-width-table>: Fix typos in docstrings.
14684
146852008-06-13 Daniel Engeler <engeler@gmail.com>
14686
14687 These changes add serial port access.
14688 * process.c: Add HAVE_SERIAL.
14689 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14690 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14691 (list_processes_1, select_wrapper, Fstop_process)
14692 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14693 (status_notify): Modify to handle serial processes.
14694 [HAVE_SERIAL] (Fserial_process_configure)
14695 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14696 New functions.
14697 * process.h (struct Lisp_Process): Add `type'.
14698 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14699 New functions.
14700 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14701 serial ports.
b71ac3dd 14702 (serial_open, serial_configure): New functions.
aac0c6e3
MR
14703 * w32.h: Add FILE_SERIAL.
14704 (struct _child_process): Add ovl_read, ovl_write.
14705
147062008-06-13 Kenichi Handa <handa@m17n.org>
14707
14708 * dispextern.h (enum lface_attribute_index): New member
14709 LFACE_FOUNDRY_INDEX.
14710
14711 * font.c (font_score): Delete arg alternate_families. Check only
14712 weight, slant, width, and size. Ignore the difference of alias
14713 style symbols.
14714 (font_sort_entites): Adjust for the above change. Reflect the
14715 order of font-driver to scores.
14716 (font_list_entities): Don't check alternate_familes here.
14717 (font_clear_prop): Handle foundry.
14718 (font_update_lface): Don't parse "foundry-family" form here.
14719 Handle FONT_FOUNDRY_INDEX.
14720 (font_find_for_lface): Likewise. Handle alternate families here.
14721 If registry is nil, try iso8859-1 and ascii-0.
14722 (font_open_for_lface): Pay attention to size in ENTITY.
14723 (font_open_by_name): Simplify by calling font_load_for_lface.
14724 (free_font_driver_list): Delete it.
14725 (font_update_drivers): Preserve the order of backends.
14726 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14727 of font_score and font_sort_entites.
14728 (font_update_sort_order): Likewise.
14729
14730 * xfaces.c (LFACE_FOUNDRY): New macro.
14731 (check_lface_attrs): Check foundry.
14732 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14733 (merge_face_vectors): Check foundry.
14734 (merge_face_ref): Likewise.
14735 (Finternal_set_lisp_face_attribute): Likewise.
14736 (x_update_menu_appearance): Likewise.
14737 (Finternal_get_lisp_face_attribute): Likewise.
14738 (lface_hash): Likewise.
14739 (lface_same_font_attributes_p): Likewise.
14740 (x_supports_face_attributes_p): Likewise.
14741 (tty_supports_face_attributes_p): Likewise.
14742 (Finternal_set_alternative_font_family_alist): Intern strings.
14743 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14744 (realize_default_face): Set LFACE_FOUNDRY (lface).
14745
14746 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14747 font-driver at first.
14748
14749 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14750
147512008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14752
14753 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14754
147552008-06-12 Jim Meyering <meyering@redhat.com>
14756
14757 Make unexec_free handle NULL the same way free does.
14758 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14759
147602008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14761
14762 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14763 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14764 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14765 (WEAK_ALIAS): Simplify.
14766 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14767 when searching a unibyte buffer.
14768
147692008-06-12 Chong Yidong <cyd@stupidchicken.com>
14770
14771 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14772
147732008-06-12 Juanma Barranquero <lekktu@gmail.com>
14774
14775 * w32font.c: Include ctype.h.
14776
147772008-06-11 Jason Rumney <jasonr@gnu.org>
14778
14779 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14780 misreported as space.
14781 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14782 as aliases for registry iso10646-1.
14783
147842008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14785
14786 * buffer.c (clone_per_buffer_values): Skip `name'.
14787
147882008-06-11 Chong Yidong <cyd@stupidchicken.com>
14789
14790 * font.c (font_parse_fcname): Fix last change; accept decimal
14791 points in font size.
14792
147932008-06-10 Jason Rumney <jasonr@gnu.org>
14794
14795 * w32uniscribe.c (add_opentype_font_name_to_list):
14796 Skip non unicode fonts.
14797
147982008-06-10 Chong Yidong <cyd@stupidchicken.com>
14799
14800 * xfns.c (Fx_font_dialog): New function.
14801
14802 * gtkutil.c (xg_dialog_response_cb): Rename from
14803 xg_file_response_callback.
14804 (pop_down_dialog): Rename from pop_down_file_dialog.
14805 (xg_get_file_name): Callers changed.
14806 (xg_get_font_name): New function.
14807
14808 * gtkutil.h (xg_get_font_name): Insert prototype.
14809
148102008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14811
14812 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14813 x_underline_minimum_display_offset.
14814 (syms_of_xdisp): Declare it here rather than in xterm.c.
14815 * dispextern.h (underline_minimum_offset): Declare it.
14816 * w32term.c (x_draw_glyph_string): Use it.
14817 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14818 (syms_of_xterm): Don't declare it any more.
14819 (x_draw_glyph_string): Adjust to the new name.
14820
8719abec 148212008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
14822
14823 * xterm.c (x_underline_minimum_display_offset): New var.
14824 (x_draw_glyph_string): Use it.
14825 (syms_of_xterm): Declare it.
14826
148272008-06-10 Chong Yidong <cyd@stupidchicken.com>
14828
14829 * font.c (font_parse_fcname): Accept GTK-style font names too.
14830
148312008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14832
14833 * dired.c (file_name_completion): Don't return t if the match is exact
14834 but with different capitalization.
14835 * minibuf.c (Ftry_completion): Simplify.
14836
14837 * window.c (Vwindow_point_insertion_type): New var.
14838 (set_window_buffer): Use it.
14839 (syms_of_window): Init and export it to Lisp.
14840
148412008-06-10 Kenichi Handa <handa@m17n.org>
14842
14843 * font.h (font_intern_prop): Prototype adjusted.
14844
14845 * font.c (font_intern_prop): New arg force_symbol.
14846 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14847 Adjust for the change of font_intern_prop.
14848
14849 * ftfont.c (ftfont_pattern_entity):
14850 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14851 (w32_registry):
14852 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14853 the change of font_intern_prop.
14854
148552008-06-09 Juanma Barranquero <lekktu@gmail.com>
14856
14857 * w32menu.c (digest_single_submenu): Declare extern.
14858
148592008-06-09 Jason Rumney <jasonr@gnu.org>
14860
14861 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14862
14863 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14864 (parse_single_submenu): Remove.
14865 (digest_single_submenu): Remove.
14866 (syms_of_w32menu): Don't initialise variables that have moved
14867 to menu.c.
14868 (set_frame_menubar): Sync with version in xmenu.c.
14869 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14870
14871 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14872 Make static again.
14873
148742008-06-09 Jason Rumney <jasonr@gnu.org>
14875
14876 Changes to w32 files related to the move of common menu code
14877 to menu.c on 2008-06-08 by Chong Yidong.
14878
14879 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14880 defs to w32gui.h.
14881 (single_keymap_panes, push_menu_item, push_menu_pane):
14882 Make globally visible.
14883
14884 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14885 (local_free, malloc_widget_value, free_widget_value)
14886 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14887 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14888 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14889 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14890 (menu_items, menu_items_allocated, menu_items_used)
14891 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14892 (init_menu_items, finish_menu_items, discard_menu_items)
14893 (grow_menu_items, push_submenu_start, push_submenu_end)
14894 (push_left_right_boundary, push_menu_pane, push_menu_item)
14895 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14896 (free_menubar_widget_tree_value, parse_single_submenu)
14897 (update_submenu_strings): Remove functions.
14898 (xmalloc_widget_value): Remove and declare extern.
14899
14900 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14901 (OBJ1): Build it.
14902
14903 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14904 (local_heap, local_alloc, local_free, malloc_widget_value)
14905 (free_widget_value): Define here.
14906
149072008-06-09 Kenichi Handa <handa@m17n.org>
14908
14909 * font.h (Qascii_0): Extern it.
14910
14911 * font.c (Qascii_0): New variable.
14912 (syms_of_font): DEFSYM it.
14913 (font_open_by_name): If the registry "iso8859-1" fails, try also
14914 "ascii-0".
14915
14916 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14917
149182008-06-08 Kenichi Handa <handa@m17n.org>
14919
14920 * .gdbinit (xfont): New command.
14921
149222008-06-08 Andreas Schwab <schwab@suse.de>
14923
14924 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14925 * Makefile.in (menu.o): Update dependencies.
14926
14927 * Makefile.in (obj): Always add menu.o.
14928 * emacs.c (main): Always call syms_of_menu.
14929 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14930
149312008-06-08 Chong Yidong <cyd@stupidchicken.com>
14932
14933 * Makefile.in: Compile menu.c.
14934
14935 * lisp.h: Declare syms_of_menu.
14936
14937 * emacs.c (main): Call syms_of_menu.
14938
14939 * keyboard.h: Relocate platform-independent menu definitions from
14940 xmenu.c.
14941
14942 * menu.c: New file. Relocate platform-independent menu
14943 definitions from xmenu.c. Suggested by Adrian Robert.
14944
14945 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 14946 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
14947 (menu_items_used, menu_items_n_panes)
14948 (menu_items_submenu_depth): Move to keyboard.h.
14949 (init_menu_items, finish_menu_items, unuse_menu_items)
14950 (discard_menu_items, restore_menu_items, save_menu_items)
14951 (grow_menu_items, push_submenu_start, push_submenu_end)
14952 (push_left_right_boundary, push_menu_pane, push_menu_item)
14953 (keymap_panes, single_keymap_panes, single_menu_item)
14954 (list_of_panes, list_of_items, find_and_call_menu_selection)
14955 (xmalloc_widget_value, free_menubar_widget_value_tree)
14956 (parse_single_submenu, digest_single_submenu)
14957 (update_submenu_strings): Move to menu.c.
14958
149592008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14960
14961 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14962
149632008-06-06 Miles Bader <miles@gnu.org>
14964
14965 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14966 face, not frame default.
14967
149682008-06-05 Martin Rudalics <rudalics@gmx.at>
14969
14970 * window.c (pop_up_windows, pop_up_frames)
14971 (display_buffer_reuse_frames, Vpop_up_frame_function)
14972 (Vdisplay_buffer_function, Veven_window_heights)
14973 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14974 (Vspecial_display_function, Vsame_window_buffer_names)
14975 (Vsame_window_regexps, split_height_threshold)
14976 (Vsplit_window_preferred_function): Move those vars to window.el.
14977 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14978 (Fdisplay_buffer): Move those functions to window.el.
14979 (syms_of_window): Remove corresponding declarations.
14980 (display_buffer): New function.
14981 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14982 * dispnew.c (Flast_nonminibuf_frame): New function.
14983 * buffer.c (Fpop_to_buffer): Move to window.el.
14984
149852008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14986
14987 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14988
149892008-06-05 Kenichi Handa <handa@m17n.org>
14990
14991 * coding.c (detect_coding): Fix previous change.
14992 (detect_coding_system): Likewise.
14993
149942008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14995
14996 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14997
14998 * keymap.c (Vminibuffer_local_filename_must_match_map):
14999 Rename from Vminibuffer_local_must_match_filename_map.
15000 (syms_of_keymap):
15001 * minibuf.c (Fcompleting_read): Adjust accordingly.
15002 * commands.h: Rename declaration as well.
15003
150042008-06-05 Kenichi Handa <handa@m17n.org>
15005
15006 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15007 family name.
15008 (Ffont_put): Likewise.
15009
15010 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15011 current font-spec.
15012
15013 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15014 is unspecified.
15015
15016 * xfaces.c (realize_x_face): If the font-related face attributes
15017 are the same as those of default face, realize a new fontset from
15018 default->fontset.
15019 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15020
150212008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15022
15023 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15024 (move_it_in_display_line): New wrapper.
15025
15026 * window.c (window_scroll_pixel_based_preserve_x)
15027 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15028 (window_scroll_pixel_based, window_scroll_line_based):
15029 Use them to preserve column positions.
15030 (syms_of_window): Initialize them.
15031
15032 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15033 (HPOS . VPOS) pair.
15034
15035 * dispextern.h (move_it_in_display_line): Declare.
15036
150372008-06-05 Juanma Barranquero <lekktu@gmail.com>
15038
15039 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15040 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15041 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15042
150432008-06-04 Juanma Barranquero <lekktu@gmail.com>
15044
15045 * window.c (Fset_window_parameter): Doc fix.
15046 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15047
150482008-06-04 Joakim Verona <joakim@verona.se>
15049
15050 * window.h (struct window): Add new member window_parameters.
15051
15052 * window.c (Fwindow_parameters, Fwindow_parameter)
15053 (Fset_window_parameter): New defuns.
15054 (syms_of_window): Defsubr the new defuns.
15055 (make_window): Initialize window_parameters to nil.
15056
150572008-06-04 John Paul Wallington <jpw@pobox.com>
15058
15059 * eval.c (Fdefmacro): Doc fix.
15060
150612008-06-04 Kenichi Handa <handa@m17n.org>
15062
15063 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15064 Be sure to call setup_coding_system when we find a proper coding system.
15065 (detect_coding_system): Fix handling of coding->head_ascii.
15066
150672008-06-03 Andreas Schwab <schwab@suse.de>
15068
15069 * font.c (font_prop_validate_spacing): Fix last change.
15070
150712008-06-03 Kenichi Handa <handa@m17n.org>
15072
15073 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15074 (font_parse_fcname): Fix handling of unknown key.
15075
15076 * xfont.c (xfont_list): Try an alias.
15077
15078 * charset.c (char_charset): Return NULL if the arg charset_list is
15079 specified and C doesn't belong to any of them.
15080
150812008-06-02 Chip Coldwell <coldwell@redhat.com>
15082
15083 * font.c (font_pixel_size): Don't take cdr of an integer.
15084
150852008-06-02 Jim Meyering <meyering@redhat.com>
15086
15087 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15088 * alloc.c (xfree): Return right away for a NULL arg.
15089 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15090 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15091 * mac.c (create_apple_event_from_event_ref): Likewise.
15092 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15093 Likewise.
15094 * doprnt.c (doprnt1): Likewise.
15095 * frame.c (frame): Likewise.
15096 * keyboard.c (wipe_kboard): Likewise.
15097 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15098 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15099 * term.c (tty_default_color_capabilities, maybe_fatal)
15100 (delete_tty): Likewise.
15101 * w16select.c (string): Likewise.
15102 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15103 * w32bdf.c (w32_free_bdf_font): Likewise.
15104 * w32fns.c (w32_unload_font): Likewise.
15105 * w32font.c (w32font_close): Likewise.
15106 * window.c (size_window): Likewise.
15107 * xselect.c (receive_incremental_selection): Likewise.
15108 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15109 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15110 * w32.c (stat): Likewise.
15111
15112 Remove useless if-before-free tests.
15113 * editfns.c (Fset_time_zone_rule): Likewise.
15114 * lread.c (nosuffix): Likewise.
15115 * ralloc.c (get_bloc): Likewise.
15116 * regex.c (reg_free): Likewise.
15117 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15118 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15119 * xsmfns.c (smc_save_yourself_CB): Likewise.
15120
151212008-06-02 Kenichi Handa <handa@m17n.org>
15122
15123 * font.c (font_find_for_lface): Handle float font size.
15124 (font_open_for_lface): Likewise.
15125
15126 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15127 comparing the properties.
15128
151292008-06-01 Jason Rumney <jasonr@gnu.org>
15130
15131 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15132 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15133 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15134 Don't add empty script list.
15135 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15136
151372008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15138
15139 * Makefile.in (dot, dotdot): Remove, update users.
15140 ".." has been used elsewhere in the file for a long time.
15141 (LIBXT_STATIC): Remove conditional based on unused variable.
15142
151432008-06-01 Miles Bader <miles@gnu.org>
15144
15145 * xfaces.c (Vface_remapping_alist): New variable.
15146 (syms_of_xfaces): Initialize it.
15147 (enum named_merge_point_kind): New type.
15148 (struct named_merge_point): Add `named_merge_point_kind' field.
15149 (push_named_merge_point): Make cycle detection respect different
15150 named-merge-point kinds.
15151 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15152 Remove face-name alias resolution.
15153 (lface_from_face_name): New definition using
15154 `lface_from_face_name_no_resolve'.
15155 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15156 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15157 (get_lface_attributes): New definition that layers face-remapping on
15158 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15159 (lookup_basic_face): New function.
15160 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15161 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15162 `get_lface_attributes'.
15163 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15164 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15165 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15166
15167 * xdisp.c (init_iterator): Pass base_face_id through
15168 `lookup_basic_face' when we actually use it as a face-id.
15169 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15170 DEFAULT_FACE_ID.
15171
15172 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15173 lookup the initial face-id.
15174
15175 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15176
151772008-06-01 Juanma Barranquero <lekktu@gmail.com>
15178
15179 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15180 (Fremove_text_properties): Fix typos in docstrings.
15181
151822008-05-31 Kenichi Handa <handa@m17n.org>
15183
15184 * font.c (font_list_entities): Fix the car part of data to be
15185 stored in the cache.
15186
15187 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15188
151892008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15190
15191 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15192 Add a `test' argument so another predicate than `equal' can be used.
15193 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15194 (map_char_table): Remove unused vars `c' and `i'.
15195 * lisp.h (Foptimize_char_table): Adjust declaration.
15196 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15197
151982008-05-30 Kenichi Handa <handa@m17n.org>
15199
15200 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15201 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15202 defined.
15203
152042008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15205
15206 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15207 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15208 frame-local settings for the same variable.
15209
152102008-05-30 Kenichi Handa <handa@m17n.org>
15211
15212 * fontset.c (Ffont_info): Move to font.c.
15213 (syms_of_fontset): Delete defsubr of Sfont_info.
15214
15215 * font.c (font_style_to_value, font_score): Delete casting of the
15216 args to xstcasecmp.
15217 (register_font_driver): Increment num_font_drivers only when
15218 registering the driver globally.
15219 (Ffont_info): Move from fontset.c. Handle a font object too.
15220 (syms_of_font): Defsubr Sfont_info.
15221
152222008-05-29 Kenichi Handa <handa@m17n.org>
15223
15224 * coding.h (enum define_coding_utf8_arg_index): New enum.
15225 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15226 coding_attr_utf_bom.
15227 (enum utf_bom_type): Rename from utf_16_bom_type.
15228 (struct utf_16_spec): Adjust for the above change.
15229 (struct coding_system): Add utf_8_bom in `spec' union.
15230
15231 * coding.c (CODING_UTF_8_BOM): New macro.
15232 (enum coding_category): Delete coding_category_utf_8, add
15233 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15234 coding_category_utf_8_sig.
15235 (CATEGORY_MASK_UTF_8): Delete it.
15236 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15237 (CATEGORY_MASK_UTF_8_SIG): New macros.
15238 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15239 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15240 CATEGORY_MASK_UTF_8_SIG.
15241 (CATEGORY_MASK_UTF_8): New macro.
15242 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15243 (detect_coding_utf_8): Check BOM.
15244 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15245 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15246 (encode_coding_utf_16): Likewise.
15247 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15248 (detect_coding, detect_coding_system): Handle utf-8-auto.
15249 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15250 (syms_of_coding): Fix setting up of Vcoding_category_table.
15251
152522008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15253
15254 * process.c (Faccept_process_output): If `millisec' is non-nil,
15255 `seconds' default to 0.
15256 (wait_reading_process_output): Also return non-nil if we read output
15257 from a non-running process.
15258
152592008-05-29 Jason Rumney <jasonr@gnu.org>
15260
15261 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15262 `raster' specified.
15263 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15264 in the uniscribe backend, but disallow any font that has no
15265 unicode subrange support.
15266
152672008-05-29 Juanma Barranquero <lekktu@gmail.com>
15268
15269 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15270 Fix typos in docstrings.
15271
152722008-05-29 Kenichi Handa <handa@m17n.org>
15273
15274 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15275 (Fx_family_fonts): Set frame correctly.
15276
152772008-05-28 Jason Rumney <jasonr@gnu.org>
15278
15279 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15280
152812008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15282
15283 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15284 calling build_annotations.
15285
152862008-05-28 Juanma Barranquero <lekktu@gmail.com>
15287
15288 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15289 (Fencode_coding_string):
15290 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15291 <latin-extra-code-table>: Fix typos in docstrings.
15292 (syms_of_coding) <coding-system-alist>: Doc fix.
15293 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15294
152952008-05-28 Kenichi Handa <handa@m17n.org>
15296
15297 * fontset.c (Ffont_info): Don't call font_close_object.
15298
15299 * font.c (font_parse_family_registry): Use Ffont_put to validate
15300 foundry and family.
15301 (font_delete_unmatched): Don't check spacing.
15302 (font_list_entities): Add spacing to the spec to list fonts.
15303
15304 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15305 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15306
15307 * coding.c (encode_coding_raw_text): Fix previous change.
15308 (encode_coding_object): When the dst_object is a buffer and is
15309 different from src_object, move gap to PT.
15310
153112008-05-27 Chong Yidong <cyd@stupidchicken.com>
15312
15313 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15314
153152008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15316
15317 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15318 all branches. Compute it differently.
15319
15320 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15321
153222008-05-27 Juanma Barranquero <lekktu@gmail.com>
15323
15324 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15325 into "else if () ... else ...".
15326
153272008-05-27 Jason Rumney <jasonr@gnu.org>
15328
15329 * w32font.c (w32font_open_internal): Determine if glyph indices
15330 are likely to work here.
15331
153322008-05-27 Chong Yidong <cyd@stupidchicken.com>
15333
15334 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15335 draw overlap glyphs with appropriate highlighting.
15336
153372008-05-27 Kenichi Handa <handa@m17n.org>
15338
15339 * xfont.c (xfont_open): Fix calculation of font->average_width.
15340
153412008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15342
15343 * casefiddle.c (casify_object): Try to guess better whether the
15344 argument is a byte or a char.
15345
153462008-05-26 Andreas Schwab <schwab@suse.de>
15347
15348 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15349 Always send multiples of format size.
15350
15351 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15352
153532008-05-26 Jason Rumney <jasonr@gnu.org>
15354
15355 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15356 (compute_metrics): Don't set failure if we just cleared the cache.
15357 (w32_weight_table): Remove unused variable.
15358 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15359 backwards compatibility.
15360
153612008-05-25 Kenichi Handa <handa@m17n.org>
15362
15363 * w32term.c (x_draw_glyph_string):
15364 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15365
15366 * xfaces.c: Delete unused function prototypes.
15367 (xstrlwr, font_frame): Delete them.
15368 (clear_face_cache): Delete unused variable.
15369
15370 * xftfont.c (xftfont_open): Delete unused variable.
15371 If underline_thickness is not 1, adjust underline_position.
15372
15373 * ftxfont.c (ftxfont_open): Delete unused variable.
15374
15375 * fontset.c (face_for_char): Optimize for the case of no charset
15376 property.
15377
15378 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15379 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15380 (otf_open, font_otf_capability, generate_otf_features)
15381 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15382 Comment out by surrounding "#if 0" and "#endif" for the moment.
15383 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15384 (syms_of_font): Codes for accessing above commented out.
15385
153862008-05-24 Eli Zaretskii <eliz@gnu.org>
15387
15388 * w32proc.c: Include dispextern.h.
15389
15390 * w32.c: Include dispextern.h.
15391
153922008-05-23 Juanma Barranquero <lekktu@gmail.com>
15393
15394 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15395 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15396 Fix typos in docstrings.
15397
153982008-05-23 Jason Rumney <jasonr@gnu.org>
15399
15400 * xsmfns.c: Remove includes that are already included by config.h.
15401
154022008-05-23 Kenichi Handa <handa@m17n.org>
15403
15404 * charset.c (Qemacs, charset_emacs): New variables.
15405 (char_charset): Fix for non-Unicode characters.
15406 (syms_of_charset): Define charset_emacs.
15407
15408 * w32term.c (x_draw_glyph_string): Be sure to update
15409 s->underline_thickness and s->underline_position. Be sure to draw
15410 underline within the current line area.
15411
15412 * xterm.c (x_draw_glyph_string): Be sure to update
15413 s->underline_thickness and s->underline_position. Be sure to draw
15414 underline within the current line area.
15415
15416 * fontset.c: Delete unused variables and add casting for char *
15417 throughout the file.
15418 (fontset_font): Try the fallback fonts of the current fontset
15419 before consulting the default fontset.
15420
15421 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15422
15423 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15424
154252008-05-22 Jason Rumney <jasonr@gnu.org>
15426
15427 * font.c: Don't include strings.h.
15428
15429 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15430
15431 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15432 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15433 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15434 to call xstrcasecmp.
15435
15436 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15437
15438 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15439
15440 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15441
15442 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15443
154442008-05-22 Kenichi Handa <handa@m17n.org>
15445
15446 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15447
15448 * font.c (font_prop_validate_style): Adjust for the format
15449 change of font_style_table.
15450
15451 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15452 two args.
15453
15454 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15455 two args.
15456
154572008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15458
15459 * minibuf.c (keys_of_minibuf): Delete.
15460 * lisp.h (keys_of_minibuf): Delete.
15461 * emacs.c (main): Don't call keys_of_minibuf.
15462
154632008-05-22 Kenichi Handa <handa@m17n.org>
15464
15465 * ftfont.c (ftfont_resolve_generic_family): Rename from
15466 ftfont_list_generic_family. Return a single family for each
15467 generic family.
15468 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15469 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15470 Call font_add_log.
15471 (ftfont_match): Call font_add_log.
15472
15473 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15474 (FONT_DEBUG): Define it.
15475 (font_add_log): Extern it.
15476 (font_assert): Rename from xassert.
15477
15478 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15479 (xfont_list_family): Call font_add_log.
15480 (xfont_match): Likewise.
15481 (memq_no_quit): Delete.
15482
15483 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15484 call of Ffont_xlfd_name.
15485
15486 * xfaces.c (struct table_entry, slant_table, weight_table)
15487 (swidth_table): Move to font.c.
15488
15489 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15490 xassert are changed to font_assert. Delete many unused variables.
15491 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15492 New variables.
15493 (struct table_entry): Move from xfaces.c and modified.
15494 (weight_table, slant_table, width_table): Move from xfaces.c and
15495 contents adjusted for the change of struct table_entry.
15496 (font_style_to_value, font_style_symbolic): Adjust for the
15497 format change of font_style_table.
15498 (font_parse_family_registry): Don't overwrite existing foundry and
15499 family of font_spec.
15500 (font_score): Fix calculation of diff for sizes.
15501 (font_sort_entites): Call font_add_log.
15502 (font_delete_unmatched): Return a newly created list.
15503 (font_list_entities): Fix previous change. Call font_add_log.
15504 (font_matching_entity, font_open_entity, font_close_entity):
15505 Call font_add_log.
15506 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15507 (Finternal_set_font_style_table): Delete.
15508 (BUILD_STYLE_TABLE): New macro.
15509 (build_style_table): New function.
15510 (Vfont_log, font_log_env_checked): New variables.
15511 (font_add_log): New function.
15512 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15513 Declare Lisp variables "font-weight-table", "font-slant-table",
15514 "font-width-table", and "font-log". Initialize font_style_table.
15515
155162008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15517
15518 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15519
155202008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15521 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15522
15523 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15524 (Vframe_alpha_lower_limit): New variable.
15525 (x_set_alpha): New function.
15526
15527 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15528
15529 * xfns.c (x-create-frame, Qalpha):
15530 Initialize the frame parameter `alpha'.
15531 * xterm.c (OPAQUE, OPACITY): New.
15532 (x_set_frame_alpha): New function.
15533 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15534
15535 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15536 * w32fns.c (w32_frame_parm_handlers): Likewise.
15537
155382008-05-20 Jason Rumney <jasonr@gnu.org>
15539
15540 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15541 truetype fonts to opentype list.
15542
155432008-05-20 Juanma Barranquero <lekktu@gmail.com>
15544
15545 * fontset.c (Ffontset_info): Doc fix.
15546 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15547 <ignore-relative-composition>: Fix typos in docstrings.
15548
15549 * font.c (syms-of-font) <font-encoding-alist>:
15550 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15551 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15552 (Ffont_otf_alternates): Doc fixes.
15553
155542008-05-20 Kenichi Handa <handa@m17n.org>
15555
15556 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15557 font.h through out the file.
15558 (FONT_DRIVERS): Rename from FONTOBJ.
15559 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15560 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15561
15562 * emacs.c (main): Call syms_of_font unconditionally.
15563
15564 * font.h (find_font_encoding): Extern it.
15565
15566 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15567 fontset.c.
194d44e7 15568 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
15569 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15570 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15571 only when HAVE_WINDOW_SYSTEM is defined.
15572 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15573 when HAVE_WINDOW_SYSTEM is defined.
15574
15575 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15576 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15577
15578 * xfaces.c: Include font.h unconditionally.
15579 (merge_face_ref, merge_face_vectors)
15580 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15581
155822008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15583
15584 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15585 indirect_variable.
15586 * eval.c (lisp_indirect_variable): New fun.
15587 (Fuser_variable_p): Use it.
15588
155892008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15590
15591 * lisp.h (indirect_variable):
15592 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15593 Use Lisp_Symbol pointers rather than Lisp_Object.
15594 Adjust callers.
15595 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15596 To this end, change calling-convention.
15597
15598 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15599 if some non-hidden buffers are selected by string&pred.
15600
156012008-05-19 Chong Yidong <cyd@stupidchicken.com>
15602
15603 * process.c (wait_reading_process_output): Always check status
15604 when in batch mode.
15605
156062008-05-19 Kenichi Handa <handa@m17n.org>
15607
15608 * font.c (font_list_entities): Fix handling of cache.
15609 (font_matching_entity): Likewise.
15610
15611 * ftfont.c (cs_iso8859_1): Delete.
15612 (ft_face_cache): New variable.
15613 (struct ftfont_info): New member fc_charset_idx.
15614 (ftfont_build_basic_charsets): Delete.
15615 (fc_charset_table): New variable.
15616 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15617 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15618 Callers changed.
15619 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15620 (ftfont_spec_pattern): New argument fc_charset_idx.
15621 Check registry more rigidly. Change callers.
15622 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15623 change of :font-entity property of the font.
15624
15625 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15626 property of the font.
15627
156282008-05-18 Juanma Barranquero <lekktu@gmail.com>
15629
15630 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15631 (Funencodable_char_position, Fcheck_coding_systems_region)
15632 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15633 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15634 (Ffind_operation_coding_system, Fset_coding_system_priority)
15635 (Fcoding_system_eol_type): Doc fixes.
15636
156372008-05-17 Glenn Morris <rgm@gnu.org>
15638
15639 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15640
156412008-05-16 Eli Zaretskii <eliz@gnu.org>
15642
15643 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15644 and st_gid.
15645
15646 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15647 HAVE_WINDOW_SYSTEM is not defined.
15648
15649 * xfaces.c (merge_face_ref, merge_face_vectors)
15650 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15651 HAVE_WINDOW_SYSTEM is defined.
15652 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15653
156542008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15655
15656 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15657
156582008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15659
15660 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15661
156622008-05-15 Kenichi Handa <handa@m17n.org>
15663
15664 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15665 preference.
15666
156672008-05-15 Glenn Morris <rgm@gnu.org>
15668
15669 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15670
156712008-05-15 Chong Yidong <cyd@stupidchicken.com>
15672
15673 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15674 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15675
15676 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15677
156782008-05-15 Kenichi Handa <handa@m17n.org>
15679
15680 * ftfont.c (ftfont_list): Downcase family name to check generic
15681 families.
15682
15683 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15684 font-spec for QCfont value.
15685
15686 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15687 buffer. Check the return value of it.
15688
156892008-05-14 Jason Rumney <jasonr@gnu.org>
15690
15691 * w32term.c (w32_get_glyph_overhangs): Remove.
15692 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15693
156942008-05-14 Kenichi Handa <handa@m17n.org>
15695
15696 * font.c (font_prop_validate): Make nil a valid value.
15697 (font_clear_cache): Check if the cached vector of entities is nil
15698 or not.
15699
157002008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15701
15702 * emacs.c (main_thread): Conditionalize on
15703 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15704 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15705
15706 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15707 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15708 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15709
157102008-05-14 Kenichi Handa <handa@m17n.org>
15711
15712 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15713 has no corresponding coding system.
15714
157152008-05-14 Jason Rumney <jasonr@gnu.org>
15716
15717 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15718
15719 * w32font.h (w32font_open_internal): Update declaration.
15720
15721 * w32font.c (w32font_open_internal): Change last argument from
15722 w32font_info struct to font object. Fill in font object from
15723 font_entity. Get Outline metrics if possible. Use them to
15724 calculate underline position and thickness. Use xlfd name as name
15725 property. Don't set codepage.
15726 (w32font_open): Pass font_object to w32font_open_internal. Don't
15727 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15728 (w32font_draw): Use s->font.
15729 (clear_cached_metrics): Don't clear non-existent blocks.
15730
15731 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15732 font was not found.
15733 (x_draw_glyph_string): Use underline position and thickness from font.
15734
15735 * w32uniscribe.c (uniscribe_open): Pass font_object to
15736 w32font_open_internal.
15737
157382008-05-14 Kenichi Handa <handa@m17n.org>
15739
15740 These changes are to delete all legacy font-handling codes, and
15741 make Emacs use only font-backends.
15742
15743 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15744 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15745
15746 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15747
15748 * charset.h (Vcharset_non_preferred_head)
15749 (Vcurrent_iso639_language): Extern them.
15750
15751 * charset.c (Vcharset_non_preferred_head): New variable.
15752 (Vcurrent_iso639_language): New variable.
15753 (syms_of_charset): Declare it as a Lisp variable.
15754 (char_charset): Don't check non preferred charsets. As a last
15755 resort, return charset_unicode.
15756 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15757
15758 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15759 conditionals. Don't check enable_font_backend. Delete all codes
15760 used only when USE_FONT_BACKEND is not defined.
15761
15762 * dispextern.h (struct glyph_string): Change type of `font' to
15763 `struct font *'.
15764 (struct glyph_string): New member underline_position and
15765 underline_thickness.
15766 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15767 (struct face): Change type of `font' to `struct font *'. Remove
15768 members `font_name', `font_info_id'.
15769 (per_char_metric, encode_char): Delete externs.
15770 (calc_pixel_width_or_height): Adjust the prototype.
15771
15772 * emacs.c (enable_font_backend): Delete extern.
15773 (main): Don't set enable_font_backend. Don't check the command
15774 line argument "-disable-font-backend".
15775
15776 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15777 (enum font_property_index): New members FONT_DPI_INDEX,
15778 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15779 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15780 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15781 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15782 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15783 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15784 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15785 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15786 (struct font_spec, struct font_entity): New structs.
15787 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15788 (struct font): Many members from old "struct font_info" moved to
15789 here. Members font and entity deleted.
15790 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15791 the new font-related objects.
15792 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15793 (CHECK_FONT_GET_OBJECT): Likewise.
15794 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15795 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15796 (struct font_driver): New members case_sensitive anc check. Type
15797 of the member list and open changed.
15798 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15799 (font_symbolic_width, font_find_object, font_get_spec)
15800 (font_set_lface_from_name): Delete extern.
15801 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15802
15803 * font.c: Include <strings.h>.
15804 (enable_font_backend): Delete it.
15805 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15806 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15807 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15808 (null_string): Delete it.
15809 (null_vector): Make it static.
15810 (font_family_alist): Delete it.
15811 (Qnormal): Extern it.
15812 (QCextra, QClanguage): Delete it.
15813 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15814 (font_make_spec, font_make_entity, font_make_object)
15815 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15816 the string. Callers changed.
15817 (font_pixel_size): Adjusted for the format change of font-related
15818 objects.
15819 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15820 (font_style_to_value, font_style_symbolic): New function.
15821 (build_font_family_alist): Delete it.
15822 (font_registry_charsets): Use Fassoc_string instead of
15823 assq_no_quit.
15824 (font_prop_validate_symbol): Don't return null_string.
15825 (font_prop_validate_style): Adjusted for the change of
15826 style-related values in a font vector.
15827 (font_property_table): Delete entries for QClanguage and
15828 QCantialias, add entries for QCavgwidth.
15829 (get_font_prop_index): Delete the 2nd argument FROM.
15830 (font_prop_validate): Arguments changed.
15831 (font_put_extra): Adjusted for the change of font-related objects.
15832 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15833 (font_parse_fcname, font_unparse_fcname)
15834 (font_prepare_composition): Likewise.
15835 (font_parse_family_registry): Renamed from font_merge_old_spec.
15836 (otf_open): Delete the 1st arg entity.
15837 (font_otf_capability): Adjusted for the above change.
15838 (font_score): New arg alternate_families. Adjusted for the change
15839 of font-related objects.
15840 (font_sort_entites): New arg best_only.
15841 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15842 Delete them.
15843 (font_match_p): Check alternate families.
15844 (font_find_object): Delete it.
15845 (font_check_object): New function.
15846 (font_clear_cache): Adjusted for the change of font-related objects.
15847 (font_delete_unmatched): New arg.
15848 (font_list_entities): Call font_driver->list with a spec that
15849 doesn't specify style-related properties.
15850 (font_matching_entity): Arguments changed. Caller changed.
15851 (font_open_entity): Adjusted for the change of font-related objects.
15852 (font_close_object, font_has_char, font_encode_char)
15853 (font_get_name, font_get_spec): Likewise.
15854 (font_spec_from_name, font_clear_prop, font_update_lface):
15855 New functions.
15856 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15857 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15858 (font_at): Adjusted for the change of font-related objects.
15859 (font_range): New function.
15860 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15861 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15862 (Fcopy_font_spec, Fmerge_font_spec): New function.
15863 (Ffont_family_list): Renamed from list-families.
15864 (Finternal_set_font_style_table): Arguments changed.
15865 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15866 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15867 change of font-related objects.
15868 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15869
15870 * fontset.h (struct font_info): Delete it. Most members go to
15871 struct font.
15872 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15873 (enum FONT_SPEC_INDEX): Delete it.
15874 (font_info, list_fonts_func, load_font_func, query_font_func)
15875 (set_frame_fontset_func, find_ccl_program_func)
15876 (get_font_repertory_func, new_fontset_from_font_name): Delete
15877 externs.
15878 (fontset_from_font_name): Extern it.
15879 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15880 (FONT_INFO_FROM_FACE): Deleted.
15881 (face_for_font): Adjust prototype.
15882
15883 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15884 conditionals. Don't check enable_font_backend. Delete all codes
15885 used only when USE_FONT_BACKEND is not defined.
15886 (get_font_info_func, list_font_func, load_font_func)
15887 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15888 (get_font_repertory_func): Delete them.
15889 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15890 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15891 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15892 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15893 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15894 (fontset_compare_rfontdef): New function.
15895 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15896 rfont-defs by qsort. Adjusted for the change of font-group vector.
15897 (load_font_get_repertory): Deleted.
15898 (fontset_find_font): Use new macros to ref/set elements of
15899 font-def and rfont-def.
15900 (fontset_font): Fix the timing of remembering that no font for C.
15901 (free_face_fontset): Do nothing if the face has no fontset.
15902 (face_suitable_for_char_p): Use new macros to ref/set elements of
15903 rfont-def.
15904 (face_for_char): Likewise. Call face_for_char with font_object.
15905 (fs_load_font): Delete. Delete #pragma surrounding it.
15906 (fs_query_fontset): Use strcasecmp instead of strcmp.
15907 (generate_ascii_font_name): Adjusted for the format change of
15908 font-spec.
15909 (Fset_fontset_font): Likewise. Use new macros to set elements of
15910 font-def.
15911 (Fnew_fontset): Use font_unparse_xlfd to generate
15912 FONTSET_ASCII (fontset).
15913 (new_fontset_from_font_name): Deleted.
15914 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15915 a fontset is already created for the font. FIx updating of
15916 Vfontset_alias_alist.
15917 (fontset_ascii_font): Deleted.
15918 (Ffont_info): Adjusted for the format change of font-spec.
15919 (Finternal_char_font): Likewise.
15920 (Ffontset_info): Likewise.
15921 (syms_of_fontset): Don't check load_font_func.
15922
15923 * fns.c (internal_equal): Handle PREV_FONT.
15924
15925 * frame.h: Delete USE_FONT_BACKEND conditional.
15926
15927 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15928 conditionals. Don't check enable_font_backend. Delete all codes
15929 used only when USE_FONT_BACKEND is not defined.
15930 (x_set_font): Call x_new_font, not x_new_fontset2.
15931 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15932 already set for the frame.
15933
15934 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15935 a font-entity by font_make_entity. Use font_intern_prop instead
15936 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15937 font property. If a font is scalable, set avgwidth property to 0.
15938 Set font-entity property by font_put_extra.
15939 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15940 (ffont_driver): Adjusted for the change of struct font_driver.
15941 (ftfont_spec_pattern): New function.
15942 (ftfont_list): Return a list, not vector.
15943 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15944 (ftfont_list_family): Don't downcase names.
15945 (ftfont_free_entity): Deleted.
15946 (ftfont_open): Return a font-object. Adjusted for the change of
15947 struct font. Get underline_thickness and underline_position from
15948 font property. Don't update dpyinfo->smallest_font_height and
15949 dpyinfo->smallest_char_width.
15950 (ftfont_close): Don't free `struct font'.
15951 (ftfont_has_char): Adjusted for the format change of font-entity.
15952 (ftfont_encode_char, ftfont_text_extents): Likewise.
15953
15954 * ftxfont.c (ftxfont_list): Return a list, not vector.
15955 (ftxfont_open): Return a font-object. Adjusted for the change of
15956 struct font. Get underline_thickness and underline_position from
15957 font property. Don't update dpyinfo->smallest_font_height and
15958 dpyinfo->smallest_char_width.
15959 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15960 (ftxfont_draw): Adjusted for the change of struct font.
15961
15962 * image.c (image_ascent): Don't include "charset.h". Include
15963 "character.h" and "font.h".
15964
15965 * lisp.h (enum pvec_type): New member PREV_FONT.
15966 (Fassoc_string): EXFUN it.
15967
15968 * print.c: Include font.h.
15969 (print_object): Handle font-related objects.
15970
15971 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15972 conditionals. Don't check enable_font_backend. Delete all codes
15973 used only when USE_FONT_BACKEND is not defined.
15974 (handle_auto_composed_prop): Do nothing if it->f is not on a
15975 window system. Check how many following characters can be
15976 displayed by the same font.
15977 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15978 'struct font *'.
15979 (get_char_face_and_encoding): Assign the whole encoding task to
15980 the `encode-char' method of a font driver.
15981 (fill_composite_glyph_string): Adjusted for the change of `struct
15982 face' and `struct glyph_string'.
15983 (fill_glyph_string): Likewise.
15984 (get_per_char_metric): Arguments changed.
15985 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15986 and `struct glyph_string'.
15987 (produce_stretch_glyph, calc_line_height_property)
15988 (x_produce_glyphs): Likewise.
15989
15990 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15991 conditionals. Don't check enable_font_backend. Delete all codes
15992 used only when USE_FONT_BACKEND is not defined. Use
15993 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15994 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15995 (Qp): Extern them.
15996 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15997 Deleted.
15998 (struct font_name): Deleted.
15999 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16000 (compare_fonts_by_sort_order): New function.
16001 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16002 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16003 Deleted.
16004 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16005 compare_fonts_by_sort_order.
16006 (Fx_font_family_list): Call Ffont_family_list.
16007 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16008 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16009 (face_symbolic_slant, face_symbolic_swidth)
16010 (split_font_name_into_vector, build_font_name_from_vector)
16011 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16012 (font_rescale_ratio, split_font_name, build_font_name)
16013 (free_font_names, sort_fonts, x_face_list_fonts)
16014 (face_font_available_p, sorted_font_list, cmp_font_names)
16015 (font_list_1, concat_font_list, font_list, remove_duplicates):
16016 Deleted.
16017 (Fx_list_fonts): Use Ffont_list.
16018 (LFACE_AVGWIDTH): Deleted.
16019 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16020 by FONTP.
16021 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16022 (set_lface_from_font_name): Delete it.
16023 (set_lface_from_font): Renamed from
16024 set_lface_from_font_and_fontset. Caller changed. Don't set
16025 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16026 for face.
16027 (merge_face_vectors): Copy font-spec if necessary.
16028 Clear properties of the font-spec if necessary.
16029 (merge_face_ref): Clear properties of the font-spec if necessary.
16030 (Finternal_set_lisp_face_attribute): Likewise.
16031 (set_font_frame_param): Use font_load_for_lface to load a
16032 font-object, and call Fmodify_frame_parameters with it.
16033 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16034 font name by Ffont_xlfd_name.
16035 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16036 QCslant, and QCwidth.
16037 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16038 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16039 Compare fonts by EQ.
16040 (lookup_non_ascii_face): Deleted.
16041 (face_for_font): The 2nd argument changed.
16042 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16043 Check atomic font properties by case insensitive.
16044 (realize_non_ascii_face): Set face->overstrike correctly.
16045 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16046 (dump_realized_face): Get font name from
16047 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16048
16049 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16050 conditionals. Don't check enable_font_backend. Delete all codes
16051 used only when USE_FONT_BACKEND is not defined.
16052 (xic_create_xfontset): Original code deleted and renamed from
16053 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16054 (x_make_gc): Don't set GCFont in GCs.
16055 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16056 opened by "fixed".
16057 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16058 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16059 get_font_repertory_func.
16060
16061 * xfont.c: Include <stdlib.h> and "ccl.h".
16062 (struct xfont_info): New structure.
16063 (xfont_query_font): Deleted.
16064 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16065 moved from xterm.c.
16066 (xfont_driver): Adjusted for the change of struct font_driver.
16067 (compare_font_names): New function.
16068 (xfont_list_pattern): Sort font names case insensitively. Make
16069 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16070 (xfont_list): Return a list, not vector.
16071 (xfont_match): If the font doesn't have QCname property, generate
16072 a name from the other font properties.
16073 (xfont_open): Return a font-object. Adjusted for the change of
16074 struct font. Get underline_thickness and underline_position from
16075 font property. Don't update dpyinfo->smallest_font_height and
16076 dpyinfo->smallest_char_width.
16077 (xfont_close): Don't free struct font.
16078 (xfont_prepare_face): Adjusted for the change of struct font.
16079 (xfont_done_face): Deleted.
16080 (xfont_has_char): Adjusted for the change of struct font.
16081 (xfont_encode_char, xfont_draw): Likewise.
16082 (xfont_check): New function.
16083
16084 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16085 callback function.
16086 (xftfont_match): Adjusted for the format change of font-entity.
16087 (xftfont_open): Adjusted for the format change of font-entity and
16088 font-object. Adjusted for the change of struct font. Return a
16089 font-object. Don't update dpyinfo->smallest_font_height and
16090 dpyinfo->smallest_char_width.
16091 (xftfont_close): Block input while calling XftFontClose.
16092 (xftfont_prepare_face): Don't block input while calling
16093 xftfont_get_colors. Adjusted for the change of struct font.
16094 (xftfont_shape): Return value of error case fixed.
16095
16096 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16097
16098 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16099 conditionals.
16100 (FONT_WIDTH): Return (f)->max_width.
16101 (struct x_display_info): Delete member `font'.
16102 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16103 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16104 (struct x_output): Change type of `font' to `struct font *'.
16105
16106 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16107 conditionals. Don't check enable_font_backend. Delete all codes
16108 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16109 (x_per_char_metric, x_encode_char): Deleted.
16110 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16111 (x_compute_glyph_string_overhangs): Adjusted for the change of
16112 `struct face'.
16113 (x_draw_glyph_string_foreground)
16114 (x_draw_composite_glyph_string_foreground): Likewise.
16115 (x_draw_glyph_string): Likewise. Use font->underline_position and
16116 font->underline_thickness.
16117 (x_new_font): Renamed from x_new_fontset2.
16118 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16119 (x_check_font): Call `check' method of a font driver.
16120 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16121 (x_query_font, x_get_font_repertory): Deleted.
16122 (x_find_ccl_program): Renamed and moved to xfont.c.
16123 (x_redisplay_interface): Adjusted for the change of `struct
16124 redisplay_interface'.
16125
16126 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16127 conditionals. Don't check enable_font_backend. Delete all codes
16128 used only when USE_FONT_BACKEND is not defined. Surround non-used
16129 code by "#ifdef OLD_FONT" and "endif".
16130 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16131
16132 * w32font.h (struct w32font_info): New member.
16133 (FONT_COMPAT): New macro.
16134 (w32font_open_internal): Prototype adjusted.
16135
16136 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16137 OLD_FONT" and "endif".
16138
16139 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16140 conditionals. Don't check enable_font_backend. Delete all codes
16141 used only when USE_FONT_BACKEND is not defined.
16142 (w32font_open): Return a font-object. Make a font-object by
16143 font_make_object. Adjusted for the change of struct w32font_info.
16144 (w32font_close): Don't free struct font. Adjusted for the change
16145 of struct w32font_info.
16146 (w32font_encode_char, w32font_text_extents, w32font_draw):
16147 Adjusted for the change of struct w32font_info.
16148 (w32font_draw): Likewise.
16149 (w32font_list_internal): Return a list, not vector.
16150 (w32font_open_internal): Change the 4th arg to font-object.
16151 Adjusted for the change of struct w32font_info and font-object format.
16152 (add_font_name_to_list): Don't downcase names.
16153 (w32_enumfont_pattern_entity): Make a font-entity by
16154 font_make_entity. Adjusted for the format change of font-entity.
16155 Use FONT_SET_STYLE to set a style-related font property. If a
16156 font is scalable, set avgwidth property to 0. Set font-entity
16157 property by font_put_extra.
16158 (font_matches_spec): Adjusted for the format change of font-entity.
16159 (w32_weight_table, w32_decode_weight): New variables.
16160 (w32_encode_weight): New function.
16161 (fill_in_logfont): Adjusted for the format change of font-spec.
16162 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16163 weight value.
16164 (w32font_driver): Adjusted for the change of struct font_driver.
16165
16166 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16167 conditionals. Don't check enable_font_backend. Surround non-used
16168 code by "#ifdef OLD_FONT" and "endif".
16169 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16170 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16171
16172 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16173 conditionals. Don't check enable_font_backend. Delete all codes
16174 used only when USE_FONT_BACKEND is not defined. Surround non-used
16175 code by "#ifdef OLD_FONT" and "endif".
16176
16177 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16178 (uniscribe_open): Return value changed to font-object.
16179 Adjusted for the format change of font-object.
16180 (uniscribe_otf_capability): Adjusted for the change of struct font.
16181 (add_opentype_font_name_to_list): Don't downcase names.
16182 (uniscribe_font_driver): Adjusted for the change of struct
16183 font_driver.
16184
161852008-05-13 Chong Yidong <cyd@stupidchicken.com>
16186
16187 * dispnew.c (update_frame_1): Check if tty output is still valid
16188 before flushing it.
16189
161902008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16191
16192 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16193 to Gtk+ menus.
16194
161952008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16196
16197 * dired.c (file_name_completion): Tweak the code so as to always do it
16198 in a single pass. Tighten the scope of some variables.
16199
16200 * dired.c (Qdefault_directory): New var.
16201 (file_name_completion): Use it instead of Fexpand_file_name.
16202 (syms_of_dired): Initialize it.
16203
162042008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16205
16206 * fileio.c (double_dollars): Remove dead code.
16207
162082008-05-10 Eli Zaretskii <eliz@gnu.org>
16209
16210 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16211 Mention w32-get-true-file-attributes in doc string.
16212
16213 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16214
162152008-05-09 Glenn Morris <rgm@gnu.org>
16216
16217 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16218 2008-04-23.
16219
162202008-05-09 Eli Zaretskii <eliz@gnu.org>
16221
16222 Support for reporting owner and group of each file on MS-Windows:
16223 * dired.c (stat_uname, stat_gname): New functions, with special
16224 implementation for w32.
16225 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16226
16227 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16228 (dflt_group_name): New static variable.
16229 (dflt_group): Rename from the_group.
16230 (init_user_info): Init dflt_group fields. Get user's group name
16231 from LookupAccountSid.
16232 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16233 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16234 New initialization states.
16235 (globals_of_w32): Initialize them to zero. Initialize the default
16236 group name to "None".
16237 (GetFileSecurity_Name): New global var, the name of the function
16238 to call for GetFileSecurity.
16239 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16240 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16241 (get_file_security, get_security_descriptor_owner)
16242 (get_security_descriptor_group, is_valid_sid)
16243 (get_file_security_desc, get_rid, get_name_and_id)
16244 (get_file_owner_and_group): New functions.
16245 (stat): Use get_file_security_desc and get_file_owner_and_group to
16246 report the owner and primary group of each file. Don't ignore the
16247 high 32 bits of file's size, now that st_size is 64-bit wide.
16248 Fix test when to get true file attributes.
16249 (init_user_info): Use get_rid instead of equivalent inline code.
16250 (fstat): Don't ignore the high 32 bits of file's size.
16251
162522008-05-09 Chong Yidong <cyd@stupidchicken.com>
16253
16254 * image.c (png_load): Use correct bit-depth for setting background
16255 color.
16256
162572008-05-08 Eli Zaretskii <eliz@gnu.org>
16258
16259 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16260 epa-hook.elc.
16261
162622008-05-08 Juanma Barranquero <lekktu@gmail.com>
16263
16264 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16265
162662008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16267
16268 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16269 because the original parameters are in pure storage now.
16270 (mac_window): Remove unused params. Update callers.
16271
162722008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16273
16274 * lread.c (substitute_object_recurse): Use lower-level primitives.
16275 Don't signal errors when traversing sub-char-tables.
16276 Don't loop over all the possible characters when traversing char-tables.
16277
16278 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16279 just like we do in print.c.
16280
162812008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16282
16283 * minibuf.c (Ftry_completion): Remove code left over from when we used
16284 scmp instead of Fcompare_strings.
16285
162862008-05-04 Juanma Barranquero <lekktu@gmail.com>
16287
16288 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16289
162902008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16291
16292 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16293 Create bitmap context in native byte order.
16294
16295 * macterm.c (XDrawLine)
16296 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16297 context in native byte order.
16298
162992008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16300
16301 * config.in: Regenerate.
16302
16303 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16304 New definitions for Image I/O support.
16305 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16306 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16307 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16308 (mac_data_provider_release_data, image_load_image_io)
16309 [USE_MAC_IMAGE_IO]: New functions.
16310 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16311 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16312 (init_image_func_pointer) [MAC_OSX]: Remove function.
16313 (image_load_quartz2d) [MAC_OSX]: Check availability of
16314 CGImageCreateWithPNGDataProvider at compile time.
16315 Use lowercase `false' for boolean constant.
16316 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16317 Use image_load_image_io.
16318 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16319 Don't check MyCGImageCreateWithPNGDataProvider.
16320 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16321 Don't call init_image_func_pointer.
16322
16323 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16324
16325 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16326 Make variable non-static.
16327 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16328 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16329
16330 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16331 (RED_FROM_ULONG): Mask off higher bits.
16332 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16333
16334 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16335 Include AvailabilityMacros.h.
16336 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16337 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16338
163392008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16340
16341 * chartab.c (Fset_char_table_range): If range is t, really set all
16342 chars to that value.
16343
163442008-05-03 Eli Zaretskii <eliz@gnu.org>
16345
16346 * dired.c (Ffile_attributes): Don't allow the device number become
16347 negative.
16348
163492008-05-02 Daiki Ueno <ueno@unixuser.org>
16350
16351 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16352
163532008-05-02 Juri Linkov <juri@jurta.org>
16354
16355 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16356 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16357 DEFAULT argument as a list of default values in docstrings.
16358
163592008-05-01 Chong Yidong <cyd@stupidchicken.com>
16360
16361 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16362
163632008-05-01 Martin Rudalics <rudalics@gmx.at>
16364
16365 * dispnew.c (change_frame_size_1): Preserve small windows when
16366 shrinking frames by calling set_window_height|width with third
16367 arg 2.
16368
16369 * window.h (struct window): Replace field too_small_ok by field
16370 resize_proportionally.
16371
16372 * window.c (make_window): Initialize resize_proportionally.
16373 (enlarge_window): Temporarily set resize_proportionally to make
16374 sure that shrink_windows does scale the window proportionally.
16375 (shrink_windows): When window has resize_proportionally set try
16376 to shrink it proportionally by stealing from other windows.
16377 (struct saved_window, Fset_window_configuration)
16378 (compare_window_configurations): Handle resize_proportionally.
16379 (WINDOW_TOTAL_SIZE): New macro.
16380 (window_min_size, shrink_windows, size_window): Use it.
16381 (check_min_window_sizes): Remove. Invalid values of
16382 window-min-height|width are handled by window_min_size_2 now.
16383 (size_window, Fsplit_window, enlarge_window)
16384 (adjust_window_trailing_edge, grow_mini_window): Don't call
16385 check_min_window_sizes.
16386 (window_min_size_2, window_min_size_1, window_min_size):
16387 New argument safe_p for retrieving "safe" minimum sizes.
16388 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16389 (adjust_window_trailing_edge, grow_mini_window):
16390 Adjust arguments of window_min_size... functions.
16391 (shrink_windows): Argument min_size removed. New argument
16392 safe_p allows shrinking windows to their safe minimum sizes.
16393 Calculate minimum size and decide whether a window shall be
16394 deleted for each window individually.
16395 (size_window): When nodelete_p equals 2, tell shrink_windows to
16396 delete windows only if their new minimum size is no more safe.
16397 (shrink_window_lowest_first): Call window_min_size_1 to make
16398 sure to preserve modeline of bottom-most window when resizing
16399 the minibuffer.
16400 (Fset_window_configuration, Fcurrent_window_configuration)
16401 (compare_window_configurations): Do not handle
16402 window-min-height|width any more.
16403 (syms_of_window): Clarify window-min-height|width doc-strings.
16404
164052008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16406
16407 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16408 some more. Copy some of the code from Ftry_completions.
16409 Remove special case code that dates back to initial revision when the
16410 slash was only added when necessary and that can't trigger nowadays.
16411
164122008-04-27 Kenichi Handa <handa@m17n.org>
16413
16414 * font.c (font_prop_validate): Signal `error' instead of `font'.
16415
164162008-04-29 Jason Rumney <jasonr@gnu.org>
16417
16418 * w32fns.c (Fw32_battery_status): New defun.
16419 (syms_of_w32fns): Defsubr it.
16420
164212008-04-28 Andreas Schwab <schwab@suse.de>
16422
16423 * dired.c (file_name_completion): Fix another mixing of encoded
16424 and decoded names.
16425
164262008-04-28 Juanma Barranquero <lekktu@gmail.com>
16427
16428 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16429
164302008-04-27 Juanma Barranquero <lekktu@gmail.com>
16431
16432 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16433
164342008-04-27 Andreas Schwab <schwab@suse.de>
16435
16436 * dired.c (file_name_completion): Fix inappropriate mixing of
16437 encoded and decoded names.
16438
16439 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16440
16441 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16442
164432008-04-26 Eli Zaretskii <eliz@gnu.org>
16444
16445 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16446 2008-03-31, it's not needed anymore with `struct stat' definition
16447 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16448 for the same reasons.
16449
164502008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16451
16452 * m/sparc.h: Additional redefinitions for GNU/Linux.
16453
164542008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16455
16456 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16457 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16458 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16459 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16460 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16461 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16462 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16463 Likewise.
16464
16465 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16466 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16467 (mac_ax_number_of_characters): Add externs.
16468 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16469 [USE_MAC_TSM]: Likewise.
16470 (mac_handle_text_input_event) [MAC_OSX]:
16471 Handle kEventTextInputOffsetToPos for no active input area case.
16472 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16473 (mac_handle_document_access_event)
16474 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16475 (install_application_handler) [MAC_OSX]: Register handlers for
16476 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16477 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16478 Register mac_handle_document_access_event.
16479
16480 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16481 Make functions non-static.
16482
164832008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16484
16485 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16486 (read_file_name_completion_ignore_case, insert_default_directory)
16487 (Qdefault_directory): Move to minibuffer.el.
16488 (Fread_file_name): Call the new `read-file-name' instead.
16489
164902008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16491
16492 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16493 Make function non-static.
16494 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16495 Remove function.
16496 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16497 Move to mactoolbox.c.
16498 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16499
16500 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16501 (mac_rect_make): New macro.
16502
16503 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16504 instead of float.
16505 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16506 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16507 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16508 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16509 CGRectMake.
16510 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16511 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16512 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16513 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16514 instead of WindowRef in argument type.
16515 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16516 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16517 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16518 instead of DISPLAY. All uses changed.
16519 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16520 (x_calc_absolute_position): Simplify so as not to use
16521 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16522
16523 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16524 instead of WindowRef in argument type.
16525 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16526 [TARGET_API_MAC_CARBON]: Remove externs.
16527 (create_apple_event, mac_event_parameters_to_lisp)
16528 [TARGET_API_MAC_CARBON]: Add externs.
16529
16530 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16531 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16532 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16533 is clicked.
16534 (x_activate_menubar): Remove extern for saved_menu_event_location.
16535 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16536 Move from mac.c.
16537
165382008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16539
16540 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16541 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16542
165432008-04-23 Jason Rumney <jasonr@gnu.org>
16544
16545 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16546 attributes only for local files.
16547
16548 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16549 default to Qlocal.
16550
165512008-04-22 Juri Linkov <juri@jurta.org>
16552
16553 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16554 read-buffer-to-switch instead of using the letter "B".
16555
165562008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16557
16558 * fileio.c (Qdefault_directory): New variable.
16559 (Fread_file_name): Use it to pass `dir' to the completion functions.
16560
165612008-04-20 Chong Yidong <cyd@stupidchicken.com>
16562
16563 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16564
165652008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16566
16567 * keyboard.c (Vpre_help_message): Remove.
16568 (show_help_echo): Remove default C code.
16569
16570 * dired.c (directory_files_internal, file_name_completion):
16571 Only call ENCODE_FILE if the string is indeed decoded.
16572
165732008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16574
16575 * Makefile.in (TOOLKIT_DEFINES): Remove.
16576 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16577
165782008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16579
16580 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16581 (mactoolbox.o): New target.
16582
16583 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16584 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16585
16586 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16587 Use mac_set_frame_window_background instead of XSetWindowBackground.
16588 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16589 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16590 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16591 instead of SetWindowTitleWithCFString.
16592 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16593 Move function to mactoolbox.c.
16594 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16595 Use mac_set_window_modified instead of SetWindowModified.
16596 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16597 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16598 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16599 FrontNonFloatingWindow. Use mac_activate_window instead of
16600 ActivateWindow. Use mac_active_non_floating_window instead of
16601 ActiveNonFloatingWindow.
16602 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16603 Use mac_show_hourglass and mac_hide_hourglass.
16604 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16605 instead of GetGlobalMouse.
16606 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16607 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16608 Use mac_bring_window_to_front instead of BringToFront.
16609 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16610 mactoolbox.c.
16611 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16612 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16613 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16614 mactoolbox.c.
16615
16616 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16617 (XtPointer): Move typedef from macmenu.c.
16618 (enum button_type): Move enum from macmenu.c.
16619 (widget_value): Move typedef from macmenu.c.
16620 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16621 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16622 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16623 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16624 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16625 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16626 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16627 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16628 (Selection): Move typedef from macselect.c.
16629 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16630 macterm.c.
16631 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16632 (mac_is_window_collapsed, mac_bring_window_to_front)
16633 (mac_send_window_behind, mac_hide_window, mac_show_window)
16634 (mac_collapse_window, mac_front_non_floating_window)
16635 (mac_active_non_floating_window, mac_activate_window)
16636 (mac_move_window_structure, mac_move_window, mac_size_window)
16637 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16638
16639 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16640 (enum mac_menu_kind): Move enum to mactoolbox.c.
16641 (min_menu_id): Move variable to mactoolbox.c.
16642 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16643 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16644 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16645 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16646 [TARGET_API_MAC_CARBON]: Likewise.
16647 (XtPointer): Move typedef to macgui.h.
16648 (enum button_type): Move enum to macgui.h.
16649 (widget_value): Move typedef to macgui.h.
16650 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16651 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16652 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16653 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16654 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16655 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16656 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16657 (popup_activated_flag): Make variable non-static.
16658 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16659 (add_menu_item, fill_menu, dispose_menus):
16660 Move functions to mactoolbox.c.
16661 (restore_show_help_function, menu_target_item_handler)
16662 (install_menu_target_item_handler, mac_handle_dialog_event)
16663 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16664 [TARGET_API_MAC_CARBON]: Likewise.
16665 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16666 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16667 (find_and_call_menu_selection, name_is_separator): Make function
16668 non-static.
16669 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16670 to mactoolbox.c.
16671 (set_frame_menubar): Don't call install_menu_quit_handler.
16672 (menu_item_selection): New variable.
16673 (mac_menu_show): Use create_and_show_popup_menu.
16674 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16675 selection but set variable menu_item_selection. All uses changed.
16676 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16677 Call install_menu_quit_handler. Move to mactoolbox.c.
16678
16679 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16680 (Selection): Move typedef to macgui.h.
16681 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16682 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16683 Make variables non-static.
16684 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16685 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16686 Make functions non-static.
16687 (Vmac_service_selection) [MAC_OSX]: Likewise.
16688 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16689 (mac_valid_selection_target_p, mac_clear_selection)
16690 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16691 (mac_put_selection_value, mac_selection_has_target_p)
16692 (mac_get_selection_value, mac_get_selection_target_list)
16693 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16694 Move functions to mactoolbox.c.
16695 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16696 Likewise.
16697 (copy_scrap_flavor_data, mac_handle_service_event)
16698 (install_service_handler) [MAC_OSX]: Likewise.
16699 (syms_of_macselect) <Vmac_dnd_known_types>:
16700 Use mac_dnd_default_known_types.
16701
16702 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16703 Move to mactoolbox.c.
16704 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16705 (Fx_selection_owner_p): Add EXFUN.
16706 (install_window_handler, remove_window_handler, XSetWindowBackground):
16707 Remove externs.
16708 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16709 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16710 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16711 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16712 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16713 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16714 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16715 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16716 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16717 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16718 (mac_valid_selection_target_p, mac_clear_selection)
16719 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16720 (mac_put_selection_value, mac_selection_has_target_p)
16721 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16722 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16723 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16724 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16725 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16726 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16727 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16728 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16729 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16730
16731 * mactoolbox.c: New file.
16732
167332008-04-18 Jason Rumney <jasonr@gnu.org>
16734
16735 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16736
167372008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16738
16739 * character.c (Fmultibyte_char_to_unibyte):
16740 Return latin1 chars unchanged.
16741
16742 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16743 relocated if it points to `name'.
16744
167452008-04-17 Kenichi Handa <handa@m17n.org>
16746
16747 * data.c (Faset): Allow setting a multibyte character in an
16748 ASCII-only unibyte string.
16749
16750 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16751
167522008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16753
16754 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16755 done in config.h.
16756
167572008-04-16 Juanma Barranquero <lekktu@gmail.com>
16758
16759 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16760 (Fchar_direction): Add usage in the docstring.
16761
167622008-04-15 Chong Yidong <cyd@stupidchicken.com>
16763
16764 * keyboard.c (read_key_sequence): Remove always-true checks.
16765
167662008-04-14 Jason Rumney <jasonr@gnu.org>
16767
16768 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16769 compatibility struct, for better underline positioning.
16770
167712008-04-13 David Hansen <david.hansen@gmx.net>
16772
16773 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16774 string.
16775
167762008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16777
16778 * m/hp800.h (XUINT, XSET): Remove.
16779
167802008-04-12 Juanma Barranquero <lekktu@gmail.com>
16781
16782 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16783 previous change.
16784
167852008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16786
16787 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16788 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16789
167902008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16791
16792 * keymap.h (map_keymap_canonical): Declare.
16793 * xmenu.c (single_keymap_panes): Use it.
16794
167952008-04-11 Glenn Morris <rgm@gnu.org>
16796
16797 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16798 set the target's value to that of the alias.
16799
168002008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16801
16802 * term.c (set_tty_color_mode): Left over typo.
16803
168042008-04-10 Michael Albinus <michael.albinus@gmx.de>
16805
16806 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16807 only after check for file name handler functions. Signal, when
16808 native functionality is not supported.
16809 (syms_of_fileio): Declare it unconditionally.
16810
168112008-04-10 Jason Rumney <jasonr@gnu.org>
16812
16813 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16814 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16815
16816 * w32.c (logon_network_drive): Also logon to remote drives that
16817 are mapped to drive letters.
16818
168192008-04-10 Glenn Morris <rgm@gnu.org>
16820
16821 * xdisp.c (truncate-partial-width-windows): Doc fix.
16822
168232008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16824
16825 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16826 Move functions to minibuffer.el.
16827 (syms_of_fileio): Don't declare them.
16828
168292008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16830
16831 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16832 (syms_of_minibuf): Remove its initialization.
16833
16834 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16835
168362008-04-09 Juanma Barranquero <lekktu@gmail.com>
16837
16838 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16839
168402008-04-09 Jason Rumney <jasonr@gnu.org>
16841
16842 * makefile.w32-in (distclean): Delete makefile too.
16843 (maintainer-clean): New target.
16844
16845 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16846
16847 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16848 for new font backend and composite cases.
16849
168502008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16851
16852 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16853 Most of the code moved to run_timers.
16854 (do_pending_atimers): Call run_timers.
16855 (run_timers): New function.
16856
16857 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16858 run atimers.
16859
16860 * process.c (wait_reading_process_output): The same as above.
16861
168622008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16863
16864 * minibuf.c (last_exact_completion): Remove variable.
16865 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16866 (complete_and_exit_1, complete_and_exit_2)
16867 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16868 (Fdisplay_completion_list, display_completion_list_1)
16869 (Fminibuffer_completion_help, Fself_insert_and_exit)
16870 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16871 minibuffer.el.
16872 (syms_of_minibuf): Remove corresponding initializations.
16873
16874 * keyboard.c (Qdeactivate_mark): New var.
16875 (command_loop_1): Use it to call `deactivate-mark'.
16876 (syms_of_keyboard): Initialize it.
16877
16878 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16879 to another frame.
16880 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16881 Don't call set_tty_color_mode.
16882 (store_frame_param): Reset previous_frame rather than call
16883 set_tty_color_mode.
16884 * term.c (set_tty_color_mode): Rewrite.
16885 * dispextern.h (set_tty_color_mode): New type.
16886 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16887
168882008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16889
16890 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16891 for generic chars, which do not exist any more in emacs-unicode.
16892
168932008-04-08 Michael Albinus <michael.albinus@gmx.de>
16894
16895 * coding.c (detect_coding_emacs_mule)
16896 (Ffind_operation_coding_system): Fix typo.
16897
168982008-04-08 Jason Rumney <jasonr@gnu.org>
16899
16900 * w32uniscribe.c (SNAME): Extract only symbol name.
16901
16902 * w32font.h (struct w32_metric_cache): New struct.
16903 (w32font_info): Use it.
16904 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16905 (CACHE_BLOCKSIZE): New constants.
16906
16907 * w32font.c (Qja, Qko, Qzh): New symbols.
16908 (syms_of_w32font): Initialise them.
16909 (font_matches_spec): Use them to filter by language.
16910 (recompute_cached_metrics): Remove function.
16911 (compute_metrics, clear_cached_metrics): New functions.
16912 (w32font_encode_char): Use them to manage metric cache.
16913 (w32font_text_extents): Cache metrics for all glyphs on demand.
16914 Delay converting glyph indices to WORD until needed.
16915 (w32font_open_internal): Initialize metric cache to empty.
16916 (registry_to_w32_charset): Charset should always be a symbol.
16917 (fill_in_logfont, list_all_matching_fonts): Family should
16918 always be a symbol.
16919
169202008-04-06 Jason Rumney <jasonr@gnu.org>
16921
16922 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16923 Give up if glyph indices not supported. Use uniscribe obtained
16924 ABC widths for individual metrics. Map glyph clusters back to
16925 characters using fClusterStart flag. Return number of glyphs
16926 produced, not chars processed.
16927 (uniscribe_shape): Map char at FROM to current glyph.
16928
169292008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16930
16931 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16932 Use SetMenuItemHierarchicalMenu.
16933
169342008-04-05 Jason Rumney <jasonr@gnu.org>
16935
16936 * image.c (pbm_load): Allow color values up to 65535.
16937 Throw an error if max_color_idx is outside the supported range.
16938 Report an error when image size is invalid.
16939 Read two bytes at a time when raw images have max_color_idx above 255.
16940
aac0c6e3
MR
169412008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16942
16943 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16944 append "CCL: Quitted" when the CCL program is quitted.
16945 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16946
16947 * ccl.h (struct ccl_program): New member quit_silently.
16948
169492008-04-05 Chong Yidong <cyd@stupidchicken.com>
16950
16951 * search.c (compile_pattern_1): Treat non-nil and non-string of
16952 search-spaces-regexp as nil.
16953
16954 * minibuf.c (Fassoc_string): Tweak docstring.
16955
169562008-04-05 Eli Zaretskii <eliz@gnu.org>
16957
16958 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16959 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16960 2008-03-14 to force inode be positive.
16961
16962 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16963 _S_* ones, since we now use our own sys/stat.h.
16964 (stat, fstat): Don't mangle the inode number.
16965 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16966
169672008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16968
16969 * frame.h (struct frame): Give one more bit to `visible' since we use
16970 values larger than 1 to indicate obscured frames on ttys.
16971
16972 * keymap.c (Qkeymap_canonicalize): New var.
16973 (Fmap_keymap_internal): New fun.
16974 (describe_map): Use keymap-canonicalize.
16975
16976 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16977 (Fundo_boundary): Set them.
16978 (syms_of_undo): Initialize them.
16979 (record_point): Use them instead of last_point_position*.
16980 (last_undo_buffer): Change type.
16981
169822008-04-04 Jason Rumney <jasonr@gnu.org>
16983
16984 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16985 (recompute_cached_metrics): Don't set ascent and descent per char.
16986
16987 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16988 (uniscribe_check_otf): Add GC protection before consing.
16989 Rearrange loop for counting features.
16990
169912008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16992
16993 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16994 buffer with byte-size of source buffer.
16995
169962008-04-03 Chong Yidong <cyd@stupidchicken.com>
16997
16998 * callint.c (Fcall_interactively): Handle temporary region even
16999 when shift-select-mode is off.
17000
170012008-04-03 Jason Rumney <jasonr@gnu.org>
17002
17003 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17004
170052008-04-03 Kenichi Handa <handa@m17n.org>
17006
17007 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17008 (CATEGORY_MASK_UTF_16): Likewise.
17009 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17010 binary file.
17011 (detect_coding): Add null-byte detection for a binary file.
17012 (detect_coding_system): Likewise.
17013
170142008-04-03 Jason Rumney <jasonr@gnu.org>
17015
17016 * w32uniscribe.c: New file.
17017
17018 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17019
17020 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17021
17022 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17023 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17024 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17025 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17026 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17027 (Qphonetic): New symbols.
17028 (syms_of_w32font): Initialize them.
17029 (font_supported_scripts): Use them.
17030 (w32font_list_family): List all charsets.
17031 (w32font_text_extents, recompute_cached_metrics): Fix metric
17032 calculations.
17033 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17034 Give opentype fonts their own format.
17035 (font_matches_spec): New arguments backend and logfont.
17036 Handle :otf spec for uniscribe backend.
17037 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17038 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17039
17040 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17041 font backend.
17042 (globals_of_w32fns): Initialize uniscribe font backend.
17043
17044 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17045 dependencies.
17046 (w32uniscribe.$(O)): New file to build.
17047 (FONT_OBJ): Include w32uniscribe.$(O).
17048 (LIBS): Add uniscribe libraries.
17049
17050 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17051
170522008-04-02 Chong Yidong <cyd@stupidchicken.com>
17053
17054 * callint.c (Vshift_select_mode): New var.
17055 (Finteractive): Document new ^ spec.
17056 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17057 is present.
17058
17059 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17060 (command_loop_1): Avoid running the direct display versions of
17061 forward-char and backward-char if shift-selection may occur.
17062 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17063 shift-translation takes place.
17064
17065 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17066 avoid clobbering by define-minor-mode.
17067
17068 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17069 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17070
17071 * syntax.c (Fforward_word): Add ^ interactive spec.
17072
17073 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17074 (Fscroll_right): Add ^ interactive spec.
17075
170762008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17077
17078 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17079
17080 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17081
17082 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17083
170842008-03-31 Juri Linkov <juri@jurta.org>
17085
17086 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17087
170882008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17089
17090 * gtkutil.c (xg_set_geometry): Fix indentation.
17091 (xg_resize_outer_widget): Remove.
17092 (x_wm_size_hint_off): Fix indentation.
17093 (xg_frame_set_char_size): Call flush_and_sync after
17094 gtk_window_resize.
17095 (x_wm_set_size_hint): Pass NULL as geometry window to
17096 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17097 Add menu bar and tool bar height to base height.
17098 (xg_update_frame_menubar, free_frame_menubar)
17099 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17100 (update_frame_tool_bar, free_frame_tool_bar):
17101 Change xg_resize_outer_widget to xg_frame_set_char_size.
17102
171032008-03-30 Michael Albinus <michael.albinus@gmx.de>
17104
17105 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17106 (Fdbus_call_method): New parameter TIMEOUT.
17107 (dbus-send-signal): Optimize UNGCPRO call.
17108
171092008-03-29 Juri Linkov <juri@jurta.org>
17110
17111 * window.c (Fdisplay_buffer): Move call to
17112 Vsplit_window_preferred_function out of conditions that check
17113 if window is eligible for vertical splitting.
17114 When Vsplit_window_preferred_function is non-nil, call it and use
17115 its non-nil return value as window. Otherwise, continue doing
17116 vertical splitting using Fsplit_window with arg horflag=nil.
17117 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17118 default value from `split-window' to nil.
17119
171202008-03-29 Juri Linkov <juri@jurta.org>
17121
17122 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17123 for interactive code letters 'b' and 'B'.
17124
171252008-03-29 Eli Zaretskii <eliz@gnu.org>
17126
17127 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17128 multibyte string.
17129
171302008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17131
17132 * keyboard.c (pending_funcalls): New var.
17133 (timer_check): Run it.
17134 (syms_of_keyboard): Initialize it.
17135 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17136 (Vdelete_terminal_functions): New vars.
17137 (syms_of_terminal): Initialize them.
17138 (Fdelete_terminal): Run delete-terminal-functions.
17139 * xdisp.c (safe_eval): Rewrite.
17140 (safe_call2): New fun.
17141 * frame.c (Qdelete_frame_functions): New var.
17142 (syms_of_frame): Initialize it.
17143 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17144 * lisp.h (safe_call2, pending_funcalls): Declare.
17145
171462008-03-28 Andreas Schwab <schwab@suse.de>
17147
17148 * indent.c (Fmove_to_column): Move declaration before statements.
17149
171502008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17151
17152 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17153 (struct frame): Use bit fields for boolean vars.
17154
17155 * process.c (server_accept_connection): Simplify naming.
17156 (emacs_get_tty_pgrp): Use SDATA.
17157
17158 * coding.c (decode_coding_object): Fix last change.
17159
171602008-03-27 Jason Rumney <jasonr@gnu.org>
17161
17162 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17163
171642008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17165
17166 * charset.c (Fdefine_charset_internal): Change the way of
17167 registering charsets in Vcharset_order_list.
17168 (syms_of_charset): Make the charset `eight-bit' supplementary.
17169
171702008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17171
17172 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17173 operations, to avoid having the difference between pointers
17174 overflow.
17175
171762008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17177
17178 * indent.c (check_display_width): New fun.
17179 (scan_for_column): Use it.
17180
17181 * data.c (syms_of_data): Mark most-positive-fixnum and
17182 most-negative-fixnum as constants.
17183
17184 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17185
17186 * indent.c (scan_for_column): Extract from current_column_1.
17187 Merge with the same code from Fmove_to_column.
17188 (current_column_1, Fmove_to_column): Use it.
17189
171902008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17191
17192 * keymap.c (map_keymap_internal): New fun.
17193 (map_keymap): Use it.
17194 (Fmap_keymap_internal): New fun.
17195 (Fmap_keymap): Remove left-out test from before make_save_value.
17196
17197 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17198
17199 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17200 Use XCAR/XCDR.
17201
17202 * process.h (struct Lisp_Process): Remove filter_multibyte.
17203 * process.c (QCfilter_multibyte): Remove.
17204 (setup_process_coding_systems): Don't use filter_multibyte.
17205 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17206 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17207 (Fset_process_filter_multibyte): Change the coding-system to
17208 approximate the previous behavior.
17209 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17210 coding-system.
17211
17212 * coding.c (decode_coding_object): When not decoding into a buffer,
17213 obey the coding system's preference of (uni|multi)byte.
17214
172152008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17216
17217 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17218 every char is changed and has a different byte-length.
17219 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17220 Fix int -> EMACS_INT.
17221
172222008-03-23 David Hansen <david.hansen@gmx.net>
17223
17224 * dbusbind.c (xd_read_message): Remove extra copying of message
17225 strings. Check for NULL `interface' or `member'.
17226
172272008-03-22 Eli Zaretskii <eliz@gnu.org>
17228
17229 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17230 cFileName a file name that includes `?' characters, use the 8+3
17231 alias in cAlternateFileName instead.
17232
172332008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17234
17235 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17236
172372008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17238
17239 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17240 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17241 work on current_buffer only instead (that was already the case
17242 for some of the code anyway).
17243 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17244 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17245 (SET_PT, SET_PT_BOTH): Adjust.
17246 * intervals.h (set_point, temp_set_point, set_point_both)
17247 (temp_set_point_both): Remove redundant declarations.
17248
172492008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17250
17251 * fileio.c (Finsert_file_contents):
17252 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17253 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17254 when buffer != current_buffer anyway.
17255
172562008-03-20 Andreas Schwab <schwab@suse.de>
17257
17258 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17259 as default.
17260
172612008-03-19 Jason Rumney <jasonr@gnu.org>
17262
17263 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17264 (syms_of_w32fns): Initialize them.
17265 (HOURGLASS_ID): New constant.
17266 (x_window_to_frame): Don't check hourglass_window.
17267 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17268 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17269 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17270 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17271 Only change the cursor if hourglass is not active.
17272 (Fx_create_frame): Initialize frame's current_cursor.
17273 (hourglass_atimer): Remove.
17274 (hourglass_started): New function.
17275 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17276 (show_hourglass): Adapt to w32, changing argument to frame.
17277
17278 * w32term.h (struct w32_output): Remove hourglass_window.
17279 Add current_cursor.
17280
17281 * eval.c (call_debugger, Fsignal):
17282 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17283 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17284 (Fexecute_extended_command, cancel_hourglass_unwind):
17285 * minibuf.c (read_minibuf):
17286 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17287
172882008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17289
17290 * window.c (run_funs): New fun.
17291 (run_window_configuration_change_hook): Use it to run the buffer-local
17292 and the global part of the hook.
17293
17294 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17295 (unwind_format_mode_line): Restore selected window.
17296 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17297
172982008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17299
17300 * editfns.c (Fchar_equal): Check they are valid characters.
17301
17302 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17303
173042008-03-17 Andreas Schwab <schwab@suse.de>
17305
17306 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17307 against a charset.
17308
17309 * lisp.h (Fbuffer_list): Declare.
17310
173112008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 17312
aac0c6e3
MR
17313 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17314 handlebox_widget is != 0.
17315
173162008-03-16 Juri Linkov <juri@jurta.org>
17317
17318 * callint.c (Fcall_interactively): For interactive code letters
17319 'b' and 'B' put the buffer list into the list of default "future"
17320 values of the minibuffer.
17321
173222008-03-16 Andreas Schwab <schwab@suse.de>
17323
17324 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17325 modifiers.
17326
17327 * regex.c (re_match_2_internal): Correct matching of a charset
17328 against latin-1 characters.
17329
173302008-03-16 Kenichi Handa <handa@m17n.org>
17331
17332 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17333 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17334 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17335 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17336 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17337 CHAR_STRING_ADVANCE.
17338 (produce_chars): Fix for the case that the source and the
17339 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17340 instead of CHAR_STRING_ADVANCE.
17341 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17342 STRING_CHAR_ADVANCE.
17343
173442008-03-15 Andreas Schwab <schwab@suse.de>
17345
17346 * regex.c (re_match_2_internal): Correct matching of eight bit
17347 characters in unibyte strings.
17348
173492008-03-15 Martin Rudalics <rudalics@gmx.at>
17350
17351 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17352 at end of range when it coincides with the end of the buffer.
17353
173542008-03-14 Eli Zaretskii <eliz@gnu.org>
17355
17356 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17357
17358 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17359
173602008-03-14 Jason Rumney <jasonr@gnu.org>
17361
17362 * editfns.c (initial_tz): New variable.
17363 (syms_of_editfns): Initialize it.
17364 (Fset_time_zone_rule): Set it when first called.
17365 Use it when TZSTRING is nil.
17366
17367 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17368 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17369 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17370 (globals_of_w32fns): Initialize them.
17371 (compute_tip_xy): Use them to position tooltips.
17372
173732008-03-14 Glenn Morris <rgm@gnu.org>
17374
17375 * emacs.c (main): Revert previous change.
17376 (standard_args): Revert -internal-script back to -scriptload,
17377 and remove the long-option form.
17378
173792008-03-13 Glenn Morris <rgm@gnu.org>
17380
17381 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17382 Remove option -enable-font-backend.
17383
173842008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17385
17386 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17387
173882008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17389
17390 * xterm.c (x_connection_closed): For GTK: If this is the last
17391 terminal just exit without closing the display.
17392
173932008-03-11 Jason Rumney <jasonr@gnu.org>
17394
17395 * w32font.c (w32font_full_name): Use floor to round.
17396
f0131492 173972008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
17398
17399 * sound.c (alsa_configure): Declare vol at beginning of block.
17400
17401 * fontset.c (Ffontset_info): Remove extra semicolon.
17402
174032008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17404
17405 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17406 size of resulting string.
17407
174082008-03-10 Jason Rumney <jasonr@gnu.org>
17409
17410 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17411
174122008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17413
17414 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17415 Don't pretend as if characters with display property haven't been
17416 consumed for string-replacing-string case.
17417
174182008-03-08 Kim F. Storm <storm@cua.dk>
17419
17420 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17421 (get_next_display_element, next_element_from_string)
17422 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17423
174242008-03-08 Andreas Schwab <schwab@suse.de>
17425
17426 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17427
174282008-03-06 Jason Rumney <jasonr@gnu.org>
17429
17430 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17431 when charset not specified. Only translate ANSI to unicode when
17432 font_type is truetype.
17433 (w32font_coverage_ok): New function.
17434 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17435
174362008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17437
17438 * lread.c (Fread_char): Resolve modifiers.
17439 (Fread_char_exclusive): Likewise.
17440
17441 * character.c (char_resolve_modifier_mask): New function.
17442 (char_string): Use char_resolve_modifier_mask.
17443 (Fchar_resolve_modifiers): New function.
17444 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17445 function.
17446
174472008-03-04 Jason Rumney <jasonr@gnu.org>
17448
17449 * makefile.w32-in: Always include w32font.c in the build.
17450 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17451
174522008-03-04 Andreas Schwab <schwab@suse.de>
17453
17454 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17455 (versionclean): Likewise.
17456
174572008-03-04 Juanma Barranquero <lekktu@gmail.com>
17458
17459 * .cvsignore: Add oo.
17460
174612008-03-03 Andreas Schwab <schwab@suse.de>
17462
17463 * coding.c (decode_coding_object): Inhibit gap shrinking while
17464 decoding in place.
17465
174662008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17467
17468 * w32term.c: Remove unused include "gnu.h".
17469 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17470
17471 * gnu.h: Rename to ...
17472 * emacs-icon.h: ... this.
17473 * xterm.c: Use emacs-icon.h instead of gnu.h.
17474 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17475
174762008-03-03 Juanma Barranquero <lekktu@gmail.com>
17477
17478 * w32font.c: Include math.h.
17479
174802008-03-03 Jason Rumney <jasonr@gnu.org>
17481
17482 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17483 Compute options separately.
17484 (w32font_open_internal): Set glyph_idx before caching metrics.
17485
17486 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17487 Define if system headers don't.
17488 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17489 (w32font_encode_char): Don't declare here.
17490
17491 * w32font.c (Quniscribe, QCformat): New symbols.
17492 (syms_of_w32font): Define them.
17493 (w32font_has_char): Indicate uncertainty.
17494 (w32font_encode_char): Encode as glyph point. Make static.
17495 (recompute_cached_metrics): New function.
17496 (w32font_open_internal): Use it. Set font to use glyph points
17497 initially. Set format based on type of font.
17498 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17499 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17500 on it. Set format based on information available here.
17501 (add_font_entity_to_list): Identify backend based on opentype_only.
17502
175032008-03-02 Andreas Schwab <schwab@suse.de>
17504
17505 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17506
17507 * coding.c (decode_coding_big5, produce_chars):
17508 Fix typos in last change.
17509
175102008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17511
17512 * gnu.h: New icon.
17513
175142008-03-02 Kenichi Handa <handa@m17n.org>
17515
17516 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17517 `dos', don't decode '\r' if that is the last in the source.
17518 (decode_coding_utf_16, decode_coding_emacs_mule)
17519 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17520 (decode_coding_raw_text, decode_coding_charset): Likewise.
17521 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17522
175232008-03-01 Jason Rumney <jasonr@gnu.org>
17524
17525 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17526
175272008-03-01 Kim F. Storm <storm@cua.dk>
17528
17529 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17530
175312008-03-01 Jason Rumney <jasonr@gnu.org>
17532
17533 * w32font.c (w32font_full_name): New function.
17534 (w32font_open_internal): Use it.
17535
175362008-03-01 Kim F. Storm <storm@cua.dk>
17537
17538 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17539
175402008-03-01 Jason Rumney <jasonr@gnu.org>
17541
17542 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17543
175442008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17545
17546 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17547 xg_frame_resized when the event is for the edit widget.
17548
17549 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17550
17551 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17552 set_char_size.
17553 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17554 operations on widgets here. Just set frame size if needed.
17555 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17556 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17557 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17558 the whole frame.
17559 (xg_create_tool_bar): Move attachment of the tool bar to
17560 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17561 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17562
175632008-03-01 Jason Rumney <jasonr@gnu.org>
17564
17565 * w32fns.c (w32_msg_pump): Disable debug code.
17566
175672008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17568
17569 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17570
175712008-02-29 Chong Yidong <cyd@stupidchicken.com>
17572
17573 * xdisp.c (next_overlay_string): Don't set
17574 overlay_strings_at_end_processed_p if we're currently reading from
17575 a display string.
17576
175772008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17578
17579 * xdisp.c (get_overlay_strings_1): Fix typo.
17580
175812008-02-29 Chong Yidong <cyd@stupidchicken.com>
17582
17583 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17584
175852008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17586
17587 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17588
17589 * xdisp.c (display_mode_element): Cancel the previous change.
17590 (decode_mode_spec): Likewise.
17591 (handle_auto_composed_prop): Don't make composition if it->string
17592 is a string.
17593
175942008-02-27 Kim F. Storm <storm@cua.dk>
17595
17596 * lisp.h (GLYPH): Change type from int to struct with separate char
17597 and face_id members.
17598 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17599 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17600 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17601 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17602 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17603 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17604 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17605 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17606 handle new Lisp glyph code encoding, either an integer or a cons.
17607
17608 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17609 (GLYPH_ALIAS): Delete.
17610 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17611 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17612 (GLYPH_FROM_CHAR): Replace macro by ...
17613 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17614
17615 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17616 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17617 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17618 (GLYPH_INVALID_P): New macro.
17619 (spec_glyph_lookup_face): Update prototype.
17620
17621 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17622 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17623 new glyph code encoding.
17624 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17625 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17626
17627 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17628 Adapt to new glyph type and new glyph code encoding.
17629
17630 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17631
17632 * indent.c (current_column, current_column_1, Fmove_to_column)
17633 (compute_motion): Adapt to new glyph code encoding.
17634
17635 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17636
176372008-02-27 Chong Yidong <cyd@stupidchicken.com>
17638
17639 * process.c (wait_reading_process_output): Check for window
17640 changes caused by timers.
17641 Suggested by Johan Bockgård.
17642
176432008-02-27 Glenn Morris <rgm@gnu.org>
17644
17645 * emacs.c (USAGE1): Add `--disable-font-backend'.
17646
176472008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17648
17649 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17650 is made to the buffer.
17651
176522008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17653
17654 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17655 (face_at_string_position):
17656 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17657 (face_at_string_position):
17658 * xdisp.c (display_string, next_overlay_change):
17659 * buffer.h (overlays_at):
17660 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17661 Update callers.
17662
176632008-02-26 Chong Yidong <cyd@stupidchicken.com>
17664
17665 * editfns.c (Fformat): Doc fix.
17666
176672008-02-26 Juanma Barranquero <lekktu@gmail.com>
17668
17669 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17670 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17671 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17672
176732008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17674
17675 * buffer.c (Fbuffer_swap_text): New function.
17676 (syms_of_buffer): Defsubr it.
17677
176782008-02-25 Chong Yidong <cyd@stupidchicken.com>
17679
17680 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17681
176822008-02-25 Jason Rumney <jasonr@gnu.org>
17683
17684 * w32font.c (w32font_draw): Draw one character at a time when padding.
17685
176862008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17687
17688 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17689 Handle a nil arg. Use run_window_configuration_change_hook.
17690 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17691 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17692 Use run_window_configuration_change_hook.
17693
176942008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17695
17696 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17697 1-pixel width.
17698
176992008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17700
17701 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17702 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17703 if the glyph in the font is zero pixel with.
17704
17705 * dispextern.h (struct glyph_string): New member padding_p.
17706
17707 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17708
17709 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17710
17711 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17712
17713 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17714
17715 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17716
177172008-02-25 Jason Rumney <jasonr@gnu.org>
17718
17719 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17720
177212008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17722
17723 Allow fine-grained image-cache flushing.
17724 * dispextern.h (struct image): Add `dependencies' field.
17725 (clear_image_caches): Change arg to Lisp_Object.
17726 * image.c (make_image): Initialize `dependencies' field.
17727 (clear_image_cache): Change arg to allow fine-grained flushing.
17728 Perform the flush even if image-cache-eviction-delay is nil.
17729 (clear_image_caches): Change arg to Lisp_Object.
17730 (Fclear_image_cache): Expand meaning of the argument.
17731 (mark_image): Mark `dependencies' field.
17732 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17733 (lface_hash): Use XHASH rather than XFASTINT.
17734 (face_at_buffer_position): Fix int -> EMACS_INT position.
17735 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17736 (select_frame_for_redisplay): Remove code duplication.
17737 (redisplay_internal): Adapt arg to call to clear_image_caches.
17738
177392008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17740
17741 * s/vms4-0.h:
17742 * s/vms4-2.h:
17743 * s/vms4-4.h:
17744 * s/vms5-5.h: Remove, unused.
17745
17746 * s/irix5-2.h:
17747 * s/irix6-0.h:
17748 * s/riscos5.h:
17749 * s/mach-bsd4-3.h:
17750 * m/mips4.h: Remove files for obsolete systems.
17751
17752 * Makefile.in:
17753 * filelock.c:
17754 * unexmips.c:
17755 * m/hp9000s300.h:
17756 * m/iris4d.h:
17757 * s/aix3-1.h:
17758 * s/hpux.h:
17759 * s/msdos.h:
17760 * s/usg5-0.h:
17761 * s/usg5-2-2.h:
17762 * s/usg5-2.h:
17763 * s/usg5-3.h: Remove references to obsolete variables.
17764
17765 * s/irix5-0.h: Remove, move all the contents ...
17766 * s/irix6-5.h: ... here. Simplify.
17767 * config.in: Regenerate.
17768
177692008-02-24 Jason Rumney <jasonr@gnu.org>
17770
17771 * w32term.c (x_draw_glyph_string_background): Clear the background
17772 manually when cleartype is in use.
17773 (x_draw_glyph_string_foreground): Draw text transparently when
17774 cleartype is in use.
17775
17776 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17777 a font into it unless we have to.
17778
177792008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17780
17781 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17782 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 17783
aac0c6e3
MR
177842008-02-18 Jason Rumney <jasonr@gnu.org>
17785
17786 * w32fns.c (Fw32_shell_execute): Encode parameters.
17787
177882008-02-09 Eli Zaretskii <eliz@gnu.org>
17789
17790 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17791
177922008-02-05 Juanma Barranquero <lekktu@gmail.com>
17793
17794 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17795
177962008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17797
17798 * xterm.c (x_set_offset): Don't change the gravity if
17799 CHANGE_GRAVITY is -1.
17800
178012008-02-23 Chong Yidong <cyd@stupidchicken.com>
17802
17803 * fileio.c (auto_save_error_occurred): New var.
17804 (auto_save_error): Set it.
17805 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17806 error occurred.
17807
178082008-02-23 Eli Zaretskii <eliz@gnu.org>
17809
17810 * w32.c (globals_of_w32): Add initializations for
17811 g_b_init_get_sid_sub_authority and
17812 g_b_init_get_sid_sub_authority_count.
17813
178142008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17815
17816 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17817 (font_parse_xlfd): Use them for sanity check.
17818 (Finternal_set_font_style_table): Make sure the table is bijective.
17819
17820 Consolidate the image_cache to the terminal struct.
17821 * termhooks.h (P_): Remove redundant def.
17822 (struct terminal): New field `image_cache'.
17823 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17824 of FRAME_X_IMAGE_CACHE.
17825 * xterm.h (struct x_display_info): Remove image_cache field.
17826 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17827 * w32term.h (struct w32_display_info): Remove image_cache field.
17828 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17829 * macterm.h (struct mac_display_info): Remove image_cache field.
17830 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17831 * xterm.c (x_term_init):
17832 * w32term.c (w32_term_init):
17833 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17834 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17835 Remove declarations.
17836 (clear_image_caches, mark_image_cache): New declarations.
17837 * xfaces.c (clear_face_cache):
17838 * xdisp.c (redisplay_internal): Use clear_image_caches.
17839 * image.c (clear_image_cache): Don't check that a frame is on
17840 a window-system before checking if it shares the same cache.
17841 (clear_image_caches): New function.
17842 (Fclear_image_cache): Use it.
17843 (mark_image): Move from allo.c.
17844 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17845 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17846 (mark_object): Don't call mark_image_cache for frames.
17847 (mark_terminals): Call mark_image_cache.
17848
17849 * lisp.h (Fdelete_terminal): Declare.
17850
17851 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17852 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17853 wrong_type_argument.
17854
178552008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17856
17857 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17858 malayalam.el, and tamil.el. Add sinhala.el.
17859
178602008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17861
17862 * xterm.c (x_connection_closed): Consolidate identical tests.
17863 (x_delete_terminal): Don't crash if called via x_connection_closed.
17864
178652008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17866
17867 * xdisp.c (decode_mode_spec): New arg string.
17868 (display_mode_element): Adjust for the above change.
17869
178702008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17871
17872 * callint.c (Fcall_interactively): Use AREF.
17873
178742008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17875
17876 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17877
178782008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17879
17880 * xfns.c (Fx_show_tip): Set string to " " if empty.
17881
178822008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17883
17884 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17885 with Qt.
17886
178872008-02-17 Kenichi Handa <handa@m17n.org>
17888
17889 * ftfont.c (ftfont_shape): Return Lispy number.
17890
17891 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17892 for GCs.
17893 (Finternal_set_font_selection_order): Call font_update_sort_order
17894 only when enable_font_backend is set.
17895 (realize_x_face): Set face->font_info to that of default face only
17896 when enable_font_backend is set.
17897
17898 * xdisp.c (handle_composition_prop): Set it->c to the fist
17899 character of the composed region.
17900 (fill_composite_glyph_string): Set base_face->font_info to
17901 s->font_info. Get a face for ascii from base_face->ascii_face.
17902 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17903 with a face already decided.
17904 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17905 non-negative.
17906 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17907 call font_prepare_composition unconditionally.
17908
17909 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17910
17911 * xterm.h (struct x_display_info): New member font.
17912
17913 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17914 (x_set_mouse_face_gc, x_new_font): Likewise.
17915 (x_term_init): Setup display_info->font.
17916 (x_delete_terminal): Free display_info->font.
17917
17918 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17919
17920 * ftxfont.c (ftxfont_default_fid): Delete it.
17921 (ftxfont_open): Set xfont->fid to 0.
17922 (ftxfont_end_for_frame): Clear data specific to the frame and the
17923 font-driver.
17924
17925 * xftfont.c (xftfont_default_fid): Delete it.
17926 (xftfont_open): Set xfont->fid to 0.
17927
17928 * fontset.c (FONTSET_OBJLIST): New macro.
17929 (fontset_find_font): Update font-object list of the fontset.
17930 (free_realized_fontset): New function.
17931 (free_face_fontset): Call free_realized_fontset.
17932 (Ffont_info): Call font_close_object only when enable_font_backend
17933 is set.
17934
17935 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17936 [HAVE_NTGUI]: Include w32term.h.
17937 [MAC_OS]: Include macterm.ch.
17938 (font_otf_ValueRecord): Use make_number.
17939 (font_finish_cache): Fix handling of reference count.
17940 (font_clear_cache): Update num_fonts.
17941 (font_open_entity): Update smallest_char_width and
17942 smallest_font_height of the frame.
17943 (font_close_object): Update num_fonts.
17944 (Fclear_font_cache): Fix finding the target cache data.
17945
179462008-02-16 Glenn Morris <rgm@gnu.org>
17947
17948 * fontset.c (Finternal_char_font): Fix compilation warning.
17949
179502008-02-16 Eli Zaretskii <eliz@gnu.org>
17951
17952 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17953 instead of char arrays. Enlarge the size of array passed to
17954 get_token_information.
17955
17956 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17957 warnings.
17958
179592008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17960
17961 * .gdbinit: Don't set `args', it breaks gdb --args.
17962
179632008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17964
17965 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17966 within a narrowed buffer.
17967
179682008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17969
17970 * coding.c (decode_coding_object, encode_coding_object):
17971 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17972
179732008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17974
17975 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17976 hardcoding 1.
17977 (detect_coding_system):
17978 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17979 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17980 * insdel.c (insert_from_gap):
17981 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17982 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17983 (string_to_multibyte):
17984 * character.c (chars_in_text, multibyte_chars_in_text):
17985 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17986
17987 * character.h (FETCH_STRING_CHAR_ADVANCE)
17988 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17989 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17990 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17991
17992 * casefiddle.c (casify_region): Only call after-change and composition
17993 functions on the part of the region that was changed.
17994
17995 * keyboard.c (read_avail_input):
17996 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17997
179982008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17999
18000 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18001 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18002
180032008-02-11 Juanma Barranquero <lekktu@gmail.com>
18004
18005 * w32menu.c (push_submenu_start, push_submenu_end)
18006 (push_left_right_boundary, push_menu_pane, push_menu_item):
18007 * keyboard.c (read_key_sequence): Don't pass args with side effects
18008 to AREF, it fails when compiling with -DENABLE_CHECKING.
18009
180102008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18011
18012 * Makefile.in (${lispsource}international/charprop.el):
18013 Delete this target.
18014
18015 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18016 emacs-unicode-2.
18017
180182008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18019
18020 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18021
180222008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18023
18024 * frame.c (Qnoelisp): New symbol.
18025 (syms_of_frame): Initialize it.
18026 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18027 harmless Elisp code, from a strong `force' from x_connection_closed.
18028 * frame.h (Qnoelisp): Declare.
18029 * xterm.c (x_connection_closed): Pass `noelisp'.
18030
18031 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18032 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18033 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18034 rather than `int' for the type of `type'.
18035
180362008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18037
18038 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18039
18040 * Makefile.in (GNUC): Remove support for gcc-1.x.
18041
180422008-02-10 Richard Stallman <rms@gnu.org>
18043
18044 * lisp.h (ASET): Use AREF, not ASLOT.
18045
180462008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18047
18048 * lisp.h (ASET): Check bounds.
18049
180502008-02-10 Glenn Morris <rgm@gnu.org>
18051
18052 * buffer.c (mode-name): Doc fix.
18053
180542008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18055
18056 * Makefile.in:
18057 * emacs.c:
18058 * gmalloc.c:
18059 * keyboard.c:
18060 * lisp.h:
18061 * m/ibm370aix.h:
18062 * process.c:
18063 * regex.c:
18064 * s/hpux.h:
18065 * sysdep.c:
18066 * sysselect.h:
18067 * systty.h:
18068 * unexec.c:
18069 * w32term.c:
18070 * xsmfns.c:
18071 * xterm.c: Remove code that deals with obsolete variables.
18072
18073 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18074
18075 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18076 nothing else needs it anymore.
18077
180782008-02-09 Eli Zaretskii <eliz@gnu.org>
18079
18080 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18081 instead of unibyte_char_to_multibyte.
18082
180832008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18084
18085 * s/gnu-linux.h: Remove commented out code.
18086
18087 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18088
18089 * Makefile.in: Update what RMS says about using autoconf.
18090 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18091 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18092 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18093 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18094
180952008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18096
18097 * keymap.c (Fkey_description): Move side effect outside of macro call.
18098
18099 * xfaces.c (Finternal_make_lisp_face):
18100 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18101
18102 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18103 (syms_of_fontset): Use ASET.
18104
18105 * fns.c (concat): Move side effect outside of macro call.
18106 (hash_clear): Use ASET.
18107
181082008-02-08 Richard Stallman <rms@gnu.org>
18109
18110 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18111 If FORCE, and frame has a surrogate minibuffer for another frame,
18112 delete the other frame first.
18113
181142008-02-07 Timo Savola <timo.savola@iki.fi>
18115
18116 * xterm.c (x_detect_focus_change): Handle embed client message.
18117 (handle_one_xevent): Ditto.
18118 (handle_one_xevent): If embedded and we get a button press/release,
18119 request focus.
18120 (xembed_set_info, xembed_send_message): New functions.
18121 (x_make_frame_visible): Call xembed_set_info if embedded.
18122 (x_make_frame_invisible): Call xembed_set_info if embedded.
18123 (x_term_init): Initialize Xatom_XEMBED.
18124 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18125 (x_iconify_frame): Ditto.
18126
18127 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18128 (enum xembed_info, enum xembed_message, enum xembed_focus)
18129 (enum xembed_modifier, enum xembed_accelerator): New.
18130 (xembed_set_info, xembed_send_message): Declare.
18131 (FRAME_X_EMBEDDED_P): New.
18132
18133 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18134 gtk_plug_new.
18135
18136 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18137 window ID of a frame.
18138 (x_window): Reparent frame if embedded.
18139 (Fx_create_frame): Don't set border width if embedded.
18140
18141 * emacs.c (USAGE3): Add --parent-id.
18142 (standard_args): Ditto.
18143
181442008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18145
18146 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18147
181482008-02-07 Jim Meyering <meyering@redhat.com>
18149
18150 Use "do...while (0)", not "if (1)...else" in macro definitions.
18151 The latter provokes a warning from gcc about the empty else, when
18152 followed by ";". Also, without that trailing semicolon, it would
18153 silently swallow up any following statement.
18154 * syntax.h (SETUP_SYNTAX_TABLE)
18155 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18156 * buffer.h (DECODE_POSITION): Likewise.
18157 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18158 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18159 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18160 (FETCH_CHAR_ADVANCE): Likewise.
18161 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18162
181632008-02-07 Jim Meyering <meyering@redhat.com>
18164
18165 * lread.c [lint]: Don't include <sys/inode.h>.
18166
181672008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18168
18169 * xselect.c (x_handle_dnd_message):
18170 * xmenu.c (digest_single_submenu, xmenu_show):
18171 * xdisp.c (with_echo_area_buffer_unwind_data)
18172 (format_mode_line_unwind_data, unwind_format_mode_line)
18173 (display_menu_bar):
18174 * eval.c (Ffetch_bytecode):
18175 * doc.c (store_function_docstring):
18176 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18177 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18178 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18179
181802008-02-07 Kenichi Handa <handa@m17n.org>
18181
18182 * ftxfont.c (ftxfont_open): Don't set
18183 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18184
18185 * ftfont.c (ftfont_open): Fix previous change.
18186
181872008-02-06 Jason Rumney <jasonr@gnu.org>
18188
18189 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18190 Use cached metrics for ASCII characters.
18191 (w32font_open_internal): Don't set font's owning_frame.
18192 Cache metrics for ASCII characters.
18193
18194 * w32font.h (struct w32font_info): Add ascii_metrics.
18195 Remove owning_frame.
18196
181972008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18198
18199 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18200 to negative value.
18201
18202 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18203
18204 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18205
18206 * charset.c (syms_of_charset): Set QCtest and Qeq.
18207
182082008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18209
18210 * process.c (Fstart_process):
18211 * callproc.c (Fcall_process): Handle the case where
18212 Funhandled_file_name_directory returns nil.
18213
18214 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18215 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18216 * font.c (check_gstring): Use them and AREF to access the vector before
18217 we know it's really a gstring.
18218 (Ffont_shape_text): Fix typo.
46e722a9 18219 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
18220
18221 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18222 Declare.
18223
18224 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18225
182262008-02-05 Jason Rumney <jasonr@gnu.org>
18227
18228 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18229 Set smallest_font_height and smallest_char_width in display info.
18230
182312008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18232
18233 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18234
182352008-02-05 Miles Bader <miles@gnu.org>
18236
18237 * xfaces.c (get_lface_attributes, merge_named_face)
18238 (lookup_named_face, lookup_derived_face, realize_named_face):
18239 Revert 2008-02-01 change by cyd@stupidchicken.com.
18240
182412008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18242
18243 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18244 fallback fonts.
18245 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18246
182472008-02-04 Jason Rumney <jasonr@gnu.org>
18248
18249 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18250 set full_name.
18251 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18252
182532008-02-03 Jason Rumney <jasonr@gnu.org>
18254
18255 * makefile.w32-in (OBJ1): Include font.o here.
18256 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18257
182582008-02-02 Jason Rumney <jasonr@gnu.org>
18259
18260 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18261
182622008-02-01 Jason Rumney <jasonr@gnu.org>
18263
18264 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18265
18266 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18267
182682008-02-01 Andreas Schwab <schwab@suse.de>
18269
18270 * Makefile.in (shortlisp, lisp): Update for rename of
18271 ../lisp/language/myanmar.el.
18272
182732008-02-01 Chong Yidong <cyd@stupidchicken.com>
18274
18275 * xfaces.c (get_lface_attributes): Delete function.
18276 (merge_named_face, lookup_named_face, lookup_derived_face)
18277 (realize_named_face): Call lface_from_face_name directly, and use
18278 the fact that merge_face_vectors does not alter its FROM argument.
18279
182802008-02-01 Jason Rumney <jasonr@gnu.org>
18281
18282 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18283 input in the default locale. Handle non-Unicode multibyte input.
18284
182852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18286
18287 * fontset.c (reorder_font_vector): Exclude nil elements from the
18288 font group. Don't try multiple fonts.
18289 (fontset_font): Adjust for the above change.
18290 (Finternal_char_font): Return nil if the found font doesn't
18291 contain the character ch.
18292
18293 * Makefile.in (lisp, shortlisp): Add cham.el.
18294
182952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18296
18297 * font.h (FONTP): Make it return 1 also for a font-object.
18298
18299 * .gdbinit (xfontset): New function.
18300
18301 * font.c (font_find_for_lface): Check if the character C is
18302 supported or not only for the first font.
18303
18304 * fontset.c (reorder_font_vector): Fix typo.
18305 (fontset_find_font): Don't add a font-spec specifying a script.
18306 Use 0 (not Qt) for the indication of empty font-group. Change the
18307 format of RFONT-DEF. Return Qt if no font in the font-group
18308 support the character.
18309 (fontset_font): Adjust for the above change. If no font was
18310 found the character, remember that.
18311 (face_for_char): Adjust for the change of RFONT-DEF.
18312 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18313 no font for the target.
18314 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18315
183162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18317
18318 * font.c (font_load_for_face): Handle the case that the font in
18319 face->lface is a string.
18320
183212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18322
18323 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18324
183252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18326
18327 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18328 Fix previous change. If the frame is not on a window system,
18329 signal an error.
18330
183312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18332
18333 * coding.c (decode_coding_object, encode_coding_object): Adjust
18334 marker positions after conversion.
18335
18336 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18337
183382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18339
18340 * font.c (font_find_for_lface): Fix the handling of the return
18341 value of font_has_char.
18342 (Ffont_shape_text): Fix previous change.
18343
18344 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18345 (fontset_ref_and_range): Delete it.
18346 (fontset_find_font): Call char_table_ref_and_range instead of
18347 FONTSET_REF_AND_RANGE.
18348 (make_fontset): Don't setup font groups of Latin here.
18349 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18350 (new_fontset_from_font): Make the specified font the default for
18351 all Latin characters.
18352
183532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18354
18355 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18356 is on a window system before accessing the fontset of the frame.
18357
183582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18359
18360 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18361
18362 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18363 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18364
18365 * font.c (Ffont_shape_text): If the font driver doesn't have a
18366 shaper function, make zero-width glyphs to have at least one-pixel
18367 width. Fix setting of `to' field of glyphs.
18368
183692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18370
18371 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18372 glyphs.
18373
18374 * font.h (struct font_driver): Improve docstring of member `shape'.
18375
183762008-02-01 Kenichi Handa <handa@m17n.org>
18377
18378 * composite.c (syms_of_composite): Fix docstring of
18379 auto-composition-function.
18380
18381 * font.h (LGLYPH_SIZE): New macro.
18382
18383 * font.c (Ffont_fill_gstring): Stop filling when a character not
18384 supported by the font is found.
18385 (Ffont_shape_text): When a shape callback function returns nil,
18386 try at most two more times with larger gstring.
18387 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18388
18389 * xdisp.c (handle_auto_composed_prop): Change the argument to
18390 auto-composition-function.
18391
18392 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18393 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18394 Lispy glyph and store it in the lgstring.
18395
18396 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18397
18398 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18399
184002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18401
18402 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18403
18404 * fontset.c (Vfont_encoding_charset_alist): New variable.
18405 (syms_of_fontset): DEFVAR it.
18406 (reorder_font_vector, fontset_find_font): Optimize for the case of
18407 no need of reordering.
18408 (face_for_char): Map the charset property by
18409 Vfont_encoding_charset_alist.
18410
184112008-02-01 Jason Rumney <jasonr@gnu.org>
18412
18413 * w32font.c (logfonts_match): Don't check adstyle here.
18414 (font_matches_spec): Check here against physical font instead.
18415 (add_font_entity_to_list): Avoid some substitutions.
18416
18417 * font.c (font_parse_fcname): Default weight and slant to normal.
18418 (font_score): Prefer normal fonts if weight or slant unspecified.
18419 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18420 match freetype scores.
18421
184222008-02-01 Jason Rumney <jasonr@gnu.org>
18423
18424 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18425 font, as it may have been deleted.
18426 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18427 most common hyphenless variation.
18428 (logfonts_match): Check generic family.
18429 (font_matches_spec): Don't check generic family here.
18430 (fill_in_logfont): Set generic family based on adstyle.
18431
18432 * w32font.h (w32font_get_cache): Update declaration.
18433
184342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18435
18436 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18437
18438 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18439 If none of the new drivers are available, call font_update_drivers
18440 with the old drivers.
18441
18442 * w32font.c (w32font_get_cache): Adjust the argument type.
18443
18444 * xfont.c (xfont_get_cache): Adjust the argument type.
18445
18446 * font.h (struct font_driver): Change argument type of get_cache.
18447
18448 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18449
18450 * font.c (Ffont_get): Fix arguments to Fassoc.
18451 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18452 (font_clear_cache): New function.
18453 (font_list_entities, font_matching_entity): Use font_get_cache.
18454 (font_update_drivers): Call font_clear_cache when finishing a driver.
18455
18456 * fontset.c (fontset_find_font): Fix previous change.
18457
184582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18459
18460 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18461 dpyinfo->font_table.
18462 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18463 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18464
18465 * font.c (font_at): Handle the case that the arg C is negative.
18466 Handle the unibyte case.
18467 (Ffont_at): Call font_at with the arg C -1.
18468
18469 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18470 the position here, and call font_at with the arg C -1.
18471 Don't check the range of the existing composition at the point.
18472
184732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18474
18475 * fontset.c (fontset_add): New args charset_id and family.
18476 Change caller.
18477 (load_font_get_repertory, fontset_find_font): Assume that
18478 font_spec is always a font-spec object.
18479 (Fset_fontset_font): Always store a font-spec object in a fontset.
18480
18481 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18482 instead of get_property_and_range.
18483
184842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18485
18486 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18487 (xftfont_open): Don't keep locking face.
18488 (xftfont_close): Don't unlock face.
18489 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18490
18491 * fontset.c (fontset_find_font): Don't prefer a font of
18492 supplementary charset.
18493
184942008-02-01 Kenichi Handa <handa@m17n.org>
18495
18496 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18497 script, langsys_tag to langsys, new member script.
18498 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 18499 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
18500 listing to the script specified in that property. Fix arg to
18501 OTF_check_features.
18502
185032008-02-01 Jason Rumney <jasonr@gnu.org>
18504
18505 * w32font.h: New file.
18506
18507 * w32font.c: Include it.
18508 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18509 (w32font_open): Set owning_frame.
18510 (w32font_text_extents): Use owning_frame.
18511 (struct font_callback_data): Add opentype_only field.
18512 (add_font_entity_to_list): Use it to filter fonts.
18513 Don't check against full name.
18514 (w32font_list_internal): New function.
18515 (w32font_list): Use it.
18516 (w32font_match_internal): New function.
18517 (w32font_match): Use it.
18518 (w32font_open_internal): New function.
18519 (w32font_open): Use it.
18520 (w32font_get_cache, w32font_close, w32font_has_char)
18521 (w32font_encode_char, w32font_text_extents, w32font_draw):
18522 Make non-static.
18523
18524 * makefile.w32-in (w32font.o): Depend on w32font.h.
18525
185262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18527
18528 * charset.c (Fdefine_charset_internal): Record a supplementary
18529 charset at the tail of Vcharset_order_list.
18530
18531 * font.c (Ffont_shape_text): Fix the return value.
18532
18533 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18534
18535 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18536
185372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18538
18539 * ftfont.c (struct OpenTypeSpec): New struct.
18540 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18541 (ftfont_get_open_type_spec): New function.
18542 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18543
18544 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18545
185462008-02-01 Jason Rumney <jasonr@gnu.org>
18547
18548 * w32font.c (add_font_entity_to_list): Compare only the beginning
18549 of full name.
18550
185512008-02-01 Kenichi Handa <handa@m17n.org>
18552
18553 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18554 Never return HANDLED_RECOMPUTE_PROPS.
18555
185562008-02-01 Kenichi Handa <handa@m17n.org>
18557
18558 * font.c (font_gstring_produce): Delete it.
18559
18560 * composite.h (COMPOSITION_METHOD):
18561 Handle COMPOSITION_WITH_GLYPH_STRING.
18562
185632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18564
18565 * xfont.c (Qx): Delete.
18566 (syms_of_xfont): Don't initialize Qx.
18567
18568 * composite.h (enum composition_method):
18569 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18570
185712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18572
18573 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18574 (choose_face_font): Accept new form of font-spec.
18575
18576 * frame.h (font_driver_list): Declare it unconditionally.
18577 (struct frame): Define members font_driver_list and font_data_list
18578 unconditionally.
18579
18580 * fontset.c: Include "font.h" unconditionally.
18581 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18582 (Fset_fontset_font): Accept a font-spec object.
18583
18584 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18585 PIXEL_SIZE part a wild card.
18586
18587 * dispextern.h (struct glyph_string): Define members clip and
18588 num_clips unconditionally.
18589 (struct face): Define members font_info and extra unconditionally.
18590
18591 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18592 ftfont_info only when HAVE_LIBOTF is defined.
18593
185942008-02-01 Andreas Schwab <schwab@suse.de>
18595
18596 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18597 and end.
18598
185992008-02-01 Jason Rumney <jasonr@gnu.org>
18600
18601 * w32font.c (w32font_driver): Add new fields.
18602
186032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18604
18605 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18606 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18607 (LIBES): Add @M17N_FLT_CFLAGS@.
18608
18609 * composite.c (compose_text): Don't treat the new style
18610 composition specially.
18611
18612 * emacs.c (main): Call syms_of_font unconditionally.
18613
18614 * font.h (FONT_ENTITY_NOT_LOADABLE)
18615 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18616 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18617 (struct font_driver): New member shape.
18618 (font_registry_charsets): Extern it.
18619 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18620 (font_otf_capability, font_drive_otf): Delete their externs.
18621
18622 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18623 (font_charset_alist, font_registry_charsets): Move from xfont.c
18624 and rename.
18625 (font_prop_validate_otf): New function.
18626 (font_property_table): Register it for QCotf.
18627 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18628 (font_drive_otf): Delete.
18629 (font_prepare_composition): New arg F. Adjust for the change of
18630 lispy gstring.
18631 (font_find_for_lface): New arg C.
18632 (font_load_for_face): Adjust for the change of font_find_for_lface.
18633 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18634 lispy gstring.
18635 (Ffont_shape_text): New function.
18636 (Fopen_font): If the font size is not given, use 12-pixel.
18637 (Ffont_at): New arg STRING.
18638 (syms_of_font): Initalize font_charset_alist.
18639 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18640 conditionally.
18641
18642 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18643 fonts of the same font-spec. Change the format of RFONT-DEF.
18644 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18645 Adjust for the change of RFONT-DEF.
18646 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18647
18648 * ftfont.h: New file.
18649
18650 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18651 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18652 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18653 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18654 font_otf_capability and font_drive_otf, set ftfont_shape.
18655 (ftfont_list): Adjust for the change of :otf property value.
18656 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18657 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18658 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18659 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18660 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18661 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18662
18663 * w32term.c (x_draw_composite_glyph_string_foreground):
18664 Adjust for the change of lispy gstring.
18665
18666 * xdisp.c (handle_composition_prop): Adjust for the change of
18667 lispy gstring. Call a function for auto-composition with the
18668 third arg it->window.
18669 (fill_composite_glyph_string): Adjust for the change of lispy string.
18670 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18671
18672 * xfaces.c (set_font_frame_param): Adjust for the change of
18673 font_find_for_lface.
18674
18675 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18676 (xfont_registry_charsets): Likewise. Change caller.
18677 (syms_of_xfont): Don't handle x_font_charset_alist.
18678
18679 * xftfont.c: Include "ftfont.h".
18680 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18681 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18682 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18683 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18684 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18685 Set xftfont_driver.shape to xftfont_shape.
18686
18687 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18688 the change of lispy gstring.
18689
186902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18691
18692 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18693
186942008-02-01 Jason Rumney <jasonr@gnu.org>
18695
18696 * w32font.c (w32font_draw): Fill background manually.
18697
186982008-02-01 Jason Rumney <jasonr@gnu.org>
18699
18700 * font.c (Qfontp): Remove unused symbol.
18701 (QCantialias): New symbol.
18702 (syms_of_font): Define it.
18703 (font_property_table): Set a validator for QCantialias.
18704
18705 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18706 Define if not already.
18707 (QCfamily): Share with xfaces.c.
18708 (Qstandard, Qsubpixel, Qnatural): New symbols.
18709 (syms_of_w32font): Define them. Don't define QCfamily here.
18710 (w32_antialias_type, lispy_antialias_type): New functions.
18711 (w32_enumfont_pattern_entity): New arg requested_font.
18712 Set antialias parameter if non-default was requested.
18713 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18714
187152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18716
18717 * lread.c (read1): Undo the previous change.
18718
187192008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18720
18721 * frame.c (Fdelete_frame): Call font_update_drivers only when
18722 USE_FONT_BACKEND is defined.
18723
187242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18725
18726 * font.h (struct font_bitmap): New member bits_per_pixel.
18727 (struct font_driver): New members start_for_frame and end_for_frame.
18728 (struct font_data_list): New struct.
18729 (font_put_frame_data, font_get_frame_data): Extern them.
18730
18731 * frame.h (struct frame): New member font_data_list.
18732
18733 * font.c (font_update_drivers): Call driver->start_for_frame and
18734 driver->end_for_frame at proper timings.
18735 (font_put_frame_data, font_get_frame_data): New functions.
18736 (Ffont_spec): Add usage in the docstring.
18737
18738 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18739 (Fdelete_frame): Call font_update_drivers.
18740
18741 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18742 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18743 (xftfont_get_xft_draw): New function.
18744 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18745 (xftfont_end_for_frame): New function.
18746 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18747
18748 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18749 Change argument. Cache GCs in the per-frame data.
18750 (struct ftxfont_frame_data): New struct.
18751 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18752 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18753 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18754 (ftxfont_end_for_frame): New function.
18755 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18756
18757 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18758
187592008-02-01 Kenichi Handa <handa@m17n.org>
18760
18761 * xselect.c (Vselection_coding_system)
18762 (Vnext_selection_coding_system): Delete them.
18763 (syms_of_xselect): Don't declare selection-coding-system and
18764 next-selection-coding-system. They are declared in select.el.
18765
187662008-02-01 Jason Rumney <jasonr@gnu.org>
18767
18768 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18769
18770 * w32fns.c: Include imm.h.
18771 (get_composition_string_fn, get_ime_context_fn): New optional
18772 system functions.
18773 (globals_of_w32fns): Load them from imm32.dll.
18774 (ignore_ime_char): New flag.
18775 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18776 WM_IME_ENDCOMPOSITION messages.
18777
18778 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18779 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18780
187812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18782
18783 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18784 (READCHAR_REPORT_MULTIBYTE): New macro.
18785 (readchar): New 2nd arg MULTIBYTE.
18786 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18787 Make symbol's name multibyte according to the multibyteness of the
18788 source.
18789
187902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18791
18792 * xfaces.c (face_for_overlay_string): Call lookup_face with
18793 correct arguments (fix of synching with the trunk).
18794
187952008-02-01 Kenichi Handa <handa@m17n.org>
18796
18797 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18798 (font_prop_validate_non_neg, font_prop_validate_spacing):
18799 Delete argument prop_index.
18800 (font_property_table): Change arguments to validater. Change Callers.
18801 (font_lispy_object): Delete.
18802 (font_at): Use font_find_object instead fo font_lispy_object.
18803
188042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18805
18806 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18807 and file names.
18808
188092008-02-01 Jason Rumney <jasonr@gnu.org>
18810
18811 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18812 (font_matches_spec): Remove debug output.
18813 (add_font_entity_to_list): Avoid using substituted fonts.
18814
188152008-02-01 Jason Rumney <jasonr@gnu.org>
18816
18817 * doc.c (Fsnarf_documentation):
18818 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18819
188202008-02-01 Miles Bader <miles@gnu.org>
18821
18822 * dispextern.h (struct glyph_row): Only define "clip" field if
18823 HAVE_WINDOW_SYSTEM is defined.
18824
188252008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18826
18827 Fix up multi-tty merge.
18828
18829 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18830 and indentation.
18831
18832 * xfaces.c (free_realized_face, clear_face_gcs):
18833 Include font_done_for_face in the input_blocked section, just in case.
18834
18835 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18836 (get_char_face_and_encoding): Undo last change and remove the *other*
18837 duplicate definition (i.e. keep the one that's better scoped and that
18838 includes code for the font-backend).
18839
18840 * terminal.c (create_terminal): Default keyboard_coding to
18841 `no-conversion' and terminal_coding to `undecided'.
18842
18843 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18844
18845 * fontset.c (free_realized_fontsets): Check that the table entry does
18846 contain a fontset before trying to compare it to `base'.
18847
18848 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18849 syms_of_charset, and syms_of_coding earlier because init_window_once
18850 now needs Vcoding_system_hash_table to be setup.
18851
18852 * coding.h (default_buffer_file_coding): Remove.
18853
18854 * coding.c (default_buffer_file_coding): Remove.
18855 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18856 than ->symbol, and use the terminal-local coding system.
18857 (syms_of_coding): Don't setup the coding-systems that are not
18858 terminal-local.
18859 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18860
18861 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18862 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18863
18864 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18865 in chartab.c and were re-added here by mistake.
18866 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18867
18868 * doc.c (Fsnarf_documentation):
18869 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18870 src to etc.
18871
18872 * ChangeLog.10: Add mistakenly removed entry.
18873
188742008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18875
18876 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18877
188782008-02-01 Miles Bader <miles@gnu.org>
18879
18880 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18881 Add extra args to FACE_FOR_CHAR.
18882
188832008-02-01 Kenichi Handa <handa@m17n.org>
18884
18885 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18886 in sequence.
18887
18888 * chartab.c (map_sub_char_table, map_char_table): If the range
18889 contains just one character, call the function with that character
18890 even if the depth is not 3.
18891
188922008-02-01 Jason Rumney <jasonr@gnu.org>
18893
18894 * w32font.c (w32font_text_extents): Calculate metrics for the
18895 whole string.
18896
188972008-02-01 Jason Rumney <jasonr@gnu.org>
18898
18899 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18900
189012008-02-01 Jason Rumney <jasonr@gnu.org>
18902
18903 * w32term.c (x_set_glyph_string_clipping): Use
18904 get_glyph_string_clip_rects.
18905 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18906 Adjust for the change of struct glyph_string.
18907
18908 * w32font.c (w32font_draw): Do clipping here.
18909
189102008-02-01 Kenichi Handa <handa@m17n.org>
18911
18912 * xftfont.c (xftfont_draw): Adjust for the change of struct
18913 glyph_string.
18914
18915 * xterm.c (x_set_glyph_string_clipping): Use
18916 get_glyph_string_clip_rects.
18917 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18918 Adjust for the change of struct glyph_string.
18919
18920 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18921 the resulting clip(s}.
18922 (expose_overlaps): Add arg r. Change callers. Set it to
18923 row->clip temporarily.
18924 (expose_window): Redraw rows overlapping the exposed area.
18925
18926 * dispextern.h (struct glyph_row): New member clip.
18927 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18928 clip_height, new member clip, and num_clips.
18929
189302008-02-01 Kenichi Handa <handa@m17n.org>
18931
18932 * data.c (Fchar_or_string_p): Fix docstring.
18933
189342008-02-01 Kenichi Handa <handa@m17n.org>
18935
18936 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18937 create a temporary XftDraw object.
18938
189392008-02-01 Kenichi Handa <handa@m17n.org>
18940
18941 * font.c (Ffontp): Fix docstring.
18942
18943 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18944 strong evidence of ISO-2022.
18945
189462008-02-01 Kenichi Handa <handa@m17n.org>
18947
18948 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18949 SYNTAX_ENTRY_FOLLOW_PARENT.
18950
189512008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18952
18953 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18954 its type.
18955 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18956 Update to the new type of weak_hash_tables and next_weak.
18957
18958 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18959 a plain C pointer to Lisp_Hash_Table.
18960
18961 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18962 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18963 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18964 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18965 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18966 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18967 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18968 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18969 (GC_EQ): Remove since they've been identical to their non-GC_
18970 alter-egos ever since the markbit was eradicated.
18971
18972 * alloc.c:
18973 * buffer.c:
18974 * buffer.h:
18975 * data.c:
18976 * fileio.c:
18977 * filelock.c:
18978 * fns.c:
18979 * frame.h:
18980 * lisp.h:
18981 * macterm.c:
18982 * print.c:
18983 * process.c:
18984 * w32fns.c:
18985 * w32menu.c:
18986 * w32term.c:
18987 * xfns.c:
18988 * xmenu.c:
18989 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18990
189912008-02-01 Kenichi Handa <handa@m17n.org>
18992
18993 * chartab.c (map_sub_char_table): Make it work for the top-level
18994 char-table. Fix handling of parent char-table.
18995 (map_char_table): Adjust for the above change.
18996
189972008-02-01 Jason Rumney <jasonr@gnu.org>
18998
18999 * w32font.c (Qgdi): Rename from Qw32.
19000
190012008-02-01 Jason Rumney <jasonr@gnu.org>
19002
19003 * w32bdf.c (get_quoted_string): Make function static.
19004
190052008-02-01 Kenichi Handa <handa@m17n.org>
19006
19007 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19008 bigger ascent and descent than those of the font, use them as
19009 font's ascent and descent.
19010
190112008-02-01 Kenichi Handa <handa@m17n.org>
19012
19013 * Makefile.in (${lispsource}international/charprop.el): Move this
19014 target within "#ifdef HAVE_UNIDATA" and "#endif".
19015
190162008-02-01 Kenichi Handa <handa@m17n.org>
19017
19018 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19019 (shortlisp): Add ../lisp/language/tai-viet.el.
19020
190212008-02-01 Ulrich Mueller <ulm@gentoo.org>
19022
19023 * Makefile.in (${lispsource}international/charprop.el): Depend on
19024 temacs${EXEEXT}.
19025
190262008-02-01 Jason Rumney <jasonr@gnu.org>
19027
19028 * w32font.c (w32font_close): Delete the GDI font object.
19029
19030 * w32menu.c: Include character.h.
19031
19032 * w32proc.c: Likewise.
19033
19034 * w32select.c: Likewise.
19035
19036 * makefile.w32-in (w32proc.o): Depend on character.h.
19037
190382008-02-01 Jason Rumney <jasonr@gnu.org>
19039
19040 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19041
19042 * w32menu.c (syms_of_w32menu): Likewise.
19043
19044 * w32proc.c (syms_of_ntproc): Likewise.
19045
19046 * w32select.c (syms_of_w32select): Likewise.
19047
19048 * w32term.c (syms_of_w32term): Likewise.
19049
190502008-02-01 Jason Rumney <jasonr@gnu.org>
19051
19052 * w32font.c (w32font_draw): Delete brush after using it.
19053
190542008-02-01 Jason Rumney <jasonr@gnu.org>
19055
19056 * w32font.c (w32font_open): Don't set font_idx.
19057 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19058 to font settings.
19059 (w32font_draw): Fill background explicitly.
19060
190612008-02-01 Jason Rumney <jasonr@gnu.org>
19062
19063 * w32term.c (w32_initialize): Don't call w32font_initialize.
19064
19065 * w32font.c (w32font_info): Remove subranges.
19066 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19067 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19068 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19069 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19070 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19071 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19072 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19073 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19074 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19075 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19076 New symbols.
19077 (font_callback_data): New struct.
19078 (w32font_list, w32font_match): Use it.
19079 (w32font_open): Don't populate subranges.
19080 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19081 (w32font_encode_char): Always return unicode code-point as-is.
19082 (w32font_text_extents): Supply a transformation matrix to
19083 GetGlyphOutline. Never look up by glyph index. Avoid looping
19084 twice. Use unicode version of GetTexExtentPoint32 instead of
19085 glyph index version.
19086 (set_fonts_frame): Remove.
19087 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19088 set frame parameter. Use backward compatible fake foundries.
19089 Save generic family in extra slot under QCfamily. Make width slot
19090 constant. Save QCspacing value. Save list of scripts instead of
19091 binary subranges.
19092 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19093 (add_font_entity_to_list): Use font_callback_data struct. Filter
19094 unwanted fonts.
19095 (add_one_font_entity_to_list): Use font_callback_data struct.
19096 (w32_registry): Default to iso10646_1.
19097 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19098 string font registries. Don't fill in font name if it is a generic
19099 family name, fill family instead. Use spacing, family and script
19100 extra info to fill pitch, family and charset fields.
19101 (list_all_matching_fonts): Use font_callback_data struct.
19102 (unicode_range_for_char): Remove.
19103 (font_supported_scripts): New function.
19104 (w32font_initialize): Remove.
19105 (syms_of_w32font): Update which symbols are defined.
19106
191072008-02-01 Jason Rumney <jasonr@gnu.org>
19108
19109 * font.c (font_pixel_size): Reverse assq_no_quit args.
19110
19111 * w32term.h (FONT_WIDTH): Report max width, not average.
19112 (FONT_MAX_WIDTH): Remove.
19113 (FONT_AVG_WIDTH): New macro.
19114
19115 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19116 redefinition of FONT_WIDTH.
19117
19118 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19119 (w32_cache_char_metrics): Use FONT_WIDTH.
19120
19121 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19122
191232008-02-01 Jason Rumney <jasonr@gnu.org>
19124
19125 * w32font.c (w32font_open): Make lfHeight negative.
19126
19127 * w32fns.c (x_default_font_parameter): Use new style font name.
19128 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19129
191302008-02-01 Jason Rumney <jasonr@gnu.org>
19131
19132 * w32font.c (QCsubranges): New symbol.
19133 (w32font_open, w32font_has_char): Get subranges from subproperty
19134 of extra.
19135 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19136 (syms_of_w32font): Define :subranges symbol.
19137
19138 * font.c (font_put_extra): Expose externally.
19139
19140 * font.h (font_put_extra): Move declaration from font.c.
19141
19142 * font.c (Ffont_get): Use font driver to determine otf capability.
19143 (adjust_anchor): Check if driver defines anchor_point before using.
19144
19145 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19146 (w32font_draw): Use options.
19147 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19148 Fix detection of truetype fonts.
19149 (registry_to_w32_charset): Handle charsets other than iso8859-1
19150 expressed as lisp symbols.
19151 (w32_registry): Express charset as lisp symbol.
19152 (fill_in_logfont): Reverse pixel and point height logic.
19153 Don't set width here. Set quality to default.
19154
19155 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19156 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19157
19158 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19159 Remove redundant loop and allocation.
19160
19161 * makefile.w32-in (font.o, w32font.o): New objects.
19162 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19163 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19164
19165 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19166 STORE_XCHARB a valid l-value.
19167
19168 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19169 calculations for non-Truetype fonts.
19170 (x_draw_glyph_string): Sync with xterm.c.
19171 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19172 Remove redundant code.
19173 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19174
19175 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19176 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19177
19178 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19179 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19180
19181 * w32font.c: New file for w32 font backend.
19182
191832008-02-01 Kenichi Handa <handa@m17n.org>
19184
19185 * term.c: Don't include "buffer.h" twice.
19186
191872008-02-01 Kenichi Handa <handa@m17n.org>
19188
19189 * character.c (Funibyte_string): New function.
19190 (syms_of_character): Defsubr it.
19191
191922008-02-01 Jason Rumney <jasonr@gnu.org>
19193
19194 * w32term.c [USE_FONT_BACKEND]:
19195 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19196 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19197 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19198 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19199 (x_free_frame_resources): Sync with xterm.c.
19200
192012008-02-01 Andreas Schwab <schwab@suse.de>
19202
19203 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19204 char-table size.
19205
192062008-02-01 Kenichi Handa <handa@m17n.org>
19207
19208 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19209
192102008-02-01 Kenichi Handa <handa@m17n.org>
19211
19212 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19213 font_otf_gpos, add font_drive_otf.
19214
19215 * fontset.c (fontset_find_font): Pay attention to font size
19216 specified for a font.
19217 (reorder_font_vector): Check contents of font_def.
19218
19219 * font.c (struct otf_list): Delete it.
19220 (otf_list): Make it a lisp variable.
19221 (otf_open): Use lispy otf_list.
19222 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19223 (check_otf_features): New function.
19224 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19225 New functions.
19226 (font_drive_otf): New function merging font_otf_gsub and
19227 font_otf_gpos.
19228 (font_open_for_lface): New arg spec. Change argument order.
19229 (font_load_for_face): Adjust for the change of font_open_for_lface.
19230 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19231 Ffont_otf_gpos.
19232 (syms_of_font): Staticpro otf_list. Delete defsubr of
19233 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19234
19235 * xfaces.c (set_font_frame_param): Adjust for the change of
19236 font_open_for_lface.
19237
19238 * font.h (font_open_for_lface): Adjust prototype.
19239 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19240 member otf_drive.
19241 (font_otf_gsub, font_otf_gpos): Delete externs.
19242 (font_drive_otf): Extern it.
19243
192442008-02-01 Kenichi Handa <handa@m17n.org>
19245
19246 * font.c (font_at): If the window W is not on a window system,
19247 return Qnil.
19248
19249 * coding.c (produce_chars, encode_coding): Don't call
19250 insert_from_gap if no characters to produce.
19251
192522008-02-01 Kenichi Handa <handa@m17n.org>
19253
19254 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19255 Fclear_face_cache.
19256
19257 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19258
192592008-02-01 Miles Bader <miles@gnu.org>
19260
19261 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19262 Parse "--disable-font-backend" option.
19263 (standard_args): Add "--disable-font-backend" option.
19264
192652008-02-01 Kenichi Handa <handa@m17n.org>
19266
19267 * fontset.c (fontset_find_font): New function.
19268 (fontset_font): Use fontset_find_font.
19269 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19270 Register the specified font for all Latin characters.
19271 (new_fontset_from_font): Register the specified font for all Latin
19272 characters.
19273 (dump_fontset): For a realized fontset, include the base fontset
19274 name in the returned vector.
19275
192762008-02-01 Kenichi Handa <handa@m17n.org>
19277
19278 * character.h (CHAR_STRING): Cast C to unsigned on calling
19279 char_string.
19280
19281 * character.c (char_string): Type of arg C changed to unsigned.
19282 Signal an error if C is an invalid character code.
19283
19284 * editfns.c (general_insert_function, Fchar_to_string):
19285 Use CHARACTERP, not INTEGERP.
19286
192872008-02-01 Kenichi Handa <handa@m17n.org>
19288
19289 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19290 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19291
19292 * regex.c (analyse_first): Fix for multibyte characters in "case
19293 charset:" and "case categoryspec:".
19294
192952008-02-01 Andreas Schwab <schwab@suse.de>
19296
19297 * Makefile.in (LIBES): Move standard libraries to the end.
19298
192992008-02-01 Kenichi Handa <handa@m17n.org>
19300
19301 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19302 nonzero, don't shrink the buffer nextb.
19303
19304 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19305
19306 * coding.c (coding_alloc_by_making_gap): New arg offset.
19307 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19308 offset.
19309 (decode_coding_iso_2022): Update coding->safe_charsets.
19310 (decode_coding_gap): Temporarily set
19311 current_buffer->text->inhibit_shrinking to 1.
19312
193132008-02-01 Kenichi Handa <handa@m17n.org>
19314
19315 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19316 indexing into elements of s->cmp and s->char2b.
19317
193182008-02-01 Juanma Barranquero <lekktu@gmail.com>
19319
19320 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19321
193222008-02-01 Kenichi Handa <handa@m17n.org>
19323
19324 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19325 target_multibyte instead of multibyte.
19326 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19327 (bcmp_translate): Change the argument name from multibyte to
19328 target_multibyte.
19329
193302008-02-01 Kenichi Handa <handa@m17n.org>
19331
19332 These changes are to compile a regexp into a pattern that can be
19333 used both for multibyte and unibyte targets.
19334
19335 * Makefile.in (search.o): Depend on charset.h.
19336
19337 * character.c (multibyte_char_to_unibyte_safe): New function.
19338
19339 * search.c: Include "charset.h".
19340 (compile_pattern_1): Delete argument multibyte. Don't set
19341 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19342 (compile_pattern): Don't compare cp->buf.target_multibyte.
19343 Compare cp->buf.charset_unibyte.
19344 (compile_pattern): Set cp->buf.target_multibyte.
19345
19346 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19347
19348 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19349
19350 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19351 multibyte. Change callers.
19352 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19353 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19354 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19355 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19356 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19357 (regex_compile): Make the compiled pattern usable both for
19358 multibyte and unibyte targets.
19359 (analyse_first): Make the fastmap usable both for multibyte and
19360 unibyte targets.
19361 (TRANSLATE_VIA_MULTIBYTE): Delete.
19362 (re_match_2_internal): Pay attention to the case that the
19363 multibyteness of bufp and target may be different.
19364
193652008-02-01 Kenichi Handa <handa@m17n.org>
19366
19367 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19368 empty box occupy at least one column width.
19369
193702008-02-01 Miles Bader <miles@gnu.org>
19371
19372 * Makefile.in: Remove redundant HAVE_XFT clause.
19373
193742008-02-01 Kenichi Handa <handa@m17n.org>
19375
19376 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19377
193782008-02-01 Kenichi Handa <handa@m17n.org>
19379
19380 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19381 being nil.
19382
193832008-02-01 Kenichi Handa <handa@m17n.org>
19384
19385 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19386
193872008-02-01 Kenichi Handa <handa@m17n.org>
19388
19389 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19390
193912008-02-01 Kenichi Handa <handa@m17n.org>
19392
19393 * search.c (simple_search): Fix previous change.
19394
193952008-02-01 Kenichi Handa <handa@m17n.org>
19396
19397 * xftfont.c (ftfont_font_format): Extern declaration.
19398
19399 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19400
19401 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19402 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19403
19404 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19405 (ftfont_font_format): Fix previous change.
19406
19407 * font.h (Ffont_xlfd_name): EXFUN it.
19408
19409 * font.c (font_parse_xlfd): Fix the array size of `f'.
19410 (register_font_driver): Use EQ to compare driver->type.
19411
19412 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19413 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19414 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19415
194162008-02-01 Kenichi Handa <handa@m17n.org>
19417
19418 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19419 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19420
194212008-02-01 Kenichi Handa <handa@m17n.org>
19422
19423 * xfont.c (xfont_open): Set font->format.
19424
19425 * xftfont.c (xftfont_open): Set font->format.
19426
19427 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19428 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19429 (ftfont_open): Set font->format.
19430 (ftfont_font_format): New function.
19431
19432 * font.h (struct font): New member format.
19433
19434 * font.c (Qopentype): New variable.
19435 (syms_of_font): Defsym it.
19436 (Fquery_font): Change the format of the last element of the return
19437 value.
19438
194392008-02-01 Kenichi Handa <handa@m17n.org>
19440
19441 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19442 last resort.
19443
194442008-02-01 Kenichi Handa <handa@m17n.org>
19445
19446 * coding.c (detect_coding_charset): Fix detection of multi-byte
19447 charset.
19448
194492008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19450
19451 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19452
194532008-02-01 Kenichi Handa <handa@m17n.org>
19454
19455 * xdisp.c (get_next_display_element): Set it->face_id for the
19456 first component of a composition.
19457 (x_produce_glyphs): Check if the font is changed or not for composition.
19458
194592008-02-01 Kenichi Handa <handa@m17n.org>
19460
19461 * fontset.c (Qlatin): New variable.
19462 (syms_of_fontset): Define it as a lisp symbol.
19463 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19464
194652008-02-01 Kenichi Handa <handa@m17n.org>
19466
19467 * font.c (font_unparse_fcname): Pay attention to the case that
19468 some of font property is a null string.
19469
194702008-02-01 Kenichi Handa <handa@m17n.org>
19471
19472 * term.c: Include "composite.h".
19473 (encode_terminal_code): Output all components of composition.
19474 Check the size of encode_terminal_src.
19475 (produce_glyphs): For composition, call produce_composite_glyph.
19476 (append_composite_glyph, produce_composite_glyph): New functions.
19477
19478 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19479 is not found, get font_info from the current ascii face.
19480
194812008-02-01 Kenichi Handa <handa@m17n.org>
19482
19483 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19484 buffer-file-name to Qnil before calling insert_from_buffer.
19485
19486 * font.c (font_unparse_fcname): Pay attention to the case that
19487 foundry is a null string.
19488
194892008-02-01 Kenichi Handa <handa@m17n.org>
19490
19491 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19492
19493 * font.c (Qunicode_sip): New variable.
19494 (syms_of_font): Declare it as a Lisp symbol.
19495
19496 * font.h (Qunicode_sip): Extern it.
19497
194982008-02-01 Kenichi Handa <handa@m17n.org>
19499
19500 * composite.c (get_composition_id): Pay attention to TAB component.
19501
19502 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19503 TAB. Adjust for the change of s->char2b which always points to
19504 the first element of allocated memory.
19505
19506 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19507
19508 * xdisp.c (handle_composition_prop): Set it->c to the first
19509 non-TAB component.
19510 (fill_composite_glyph_string): Change argument.
19511 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19512 (x_produce_glyphs): Fix handling of left/right padding.
19513
195142008-02-01 Kenichi Handa <handa@m17n.org>
19515
19516 * coding.c (detect_coding_system): Fix for handling off
19517 inhibit_iso_escape_detection. Fix for the case that no coding
19518 system is defined for a specific coding category.
19519
195202008-02-01 Kenichi Handa <handa@m17n.org>
19521
19522 * font.c (font_matching_entity): Delete unused local var.
19523
19524 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19525 opening a font.
19526
19527 * fileio.c (Finsert_file_contents): On recovering a file, assume
19528 Unix-like eol.
19529 (choose_write_coding_system): On auto-saving a file, force
19530 Unix-like eol.
19531
19532 * coding.c (setup_coding_system): Fix setting of
19533 coding->common_flags based on eol_type.
19534 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19535 inherit from it.
19536
195372008-02-01 Kenichi Handa <handa@m17n.org>
19538
19539 * alloc.c (NSTATICS): Increas to 0x600.
19540
195412008-02-01 Kenichi Handa <handa@m17n.org>
19542
19543 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19544 (ftfont_list): Don't check :name property.
19545 (ftfont_match): New function.
19546 (ftfont_pattern_entity): If the pattern doesn't contain
19547 FC_SPACING, don't assume FC_MONO.
19548
19549 * font.h (struct font_driver): New member `match'.
19550 (font_update_drivers): Adjust prototype.
19551
19552 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19553 property of FONT.
19554 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19555 them unconditionally.
19556 (font_matching_entity): New function.
19557 (font_open_by_name): Try font_matching_entity if exact match is
19558 not found.
19559 (font_update_drivers): Delete the arg FONT. Return a list of
19560 actually used backends. Don't free faces, font caches here.
19561 Don't store data in frame parameters. Don't call x_set_font.
19562 (Ffont_spec): Store :name property as is.
19563 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19564 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19565 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19566 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19567 Call font->driver->otf_gsub instead of font_otf_gsub.
19568
19569 * frame.c (x_set_font_backend): Do more works that were done in
19570 font_update_drivers before.
19571
19572 * xfont.c (xfont_match): New function.
19573 (xfont_driver): Set xfont_driver.match to xfont_match.
19574 (xfont_draw): Set font in GC if necessary.
19575
19576 * ftxfont.c (ftxfont_match): New function.
19577 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19578
19579 * xftfont.c (xftfont_match): New function.
19580 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19581
195822008-02-01 Kenichi Handa <handa@m17n.org>
19583
19584 * font.h (struct font): New member scalable.
19585 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19586 (font_otf_gsub): Adjust prototype.
19587
19588 * font.c (font_otf_capability): Fix handling of the default langsys.
19589 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19590 Check the contents of SPEC.
19591 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19592 (check_gstring): New function.
19593 (REPLACEMENT_CHARACTER): New macro.
19594 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19595 glyph codes of GSTRING.
19596 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19597 (font_prepare_composition): Set cmp->glyph_len.
19598 (font_open_entity): Set font->scalable.
19599 (Ffont_get): Handle :otf property.
19600 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19601 functions.
19602 (Fquery_font): Use font->font.full_name.
19603 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19604 Sfont_otf_alternates.
19605
19606 * ftfont.c (ftfont_open): Set font->font.full_name and
19607 font->font.name properly. Fix calculation of font->font.height
19608 and font->min_width.
19609
19610 * ftxfont.c (ftxfont_create_gcs): New function.
19611 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19612 (ftxfont_draw_backgrond): Fix filling region.
19613 (ftxfont_default_fid): New function.
19614 (ftxfont_open): Set xfont->fid to the return value of
19615 ftxfont_default_fid.
19616 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19617 (ftxfont_done_face): Free only GCs that are created by
19618 ftxfont_create_gcs.
19619 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19620
19621 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19622 Clip to src->width, etc (not src->clip_XXX).
19623
19624 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19625 FontBackend frame parameter.
19626
196272008-02-01 Kenichi Handa <handa@m17n.org>
19628
19629 * font.h (struct font_driver_list): New member `on'.
19630 (Fclear_font_cache): EXFUN it.
19631 (font_update_drivers): Extern it.
19632
19633 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19634 (font_list_entities): Check driver_list->on.
19635 (register_font_driver): Initalize `on' member to 0.
19636 (font_update_drivers): New function.
19637 (Fclear_font_cache): Check driver_list->on.
19638
19639 * frame.h (Qfont_backend): Extern it.
19640 (x_set_font_backend): Extern it.
19641
19642 * frame.c (Qfont_backend): New variable.
19643 (frame_parms): New element for font-backend.
19644 (x_set_font_backend): New function.
19645
19646 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19647 FontBackend frame parameter.
19648 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19649 x_set_font_backend.
19650
19651 * xfont.c (xfont_list): Don't try listing by :name property if the
19652 name is not for XLFD.
19653
196542008-02-01 Kenichi Handa <handa@m17n.org>
19655
19656 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19657 (LGLYPH_SET_TO): New macros.
19658 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19659 element of G is vector or not.
19660 (font_at): Extern it.
19661
19662 * font.c: Include window.h.
19663 (font_lispy_object): New function.
19664 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19665 end of valid glyph.
19666 (font_close_object): Fix getting (struct font *).
19667 (font_at): New function.
19668 (Ffont_get): If FONT is a font-object, get entity from it.
19669 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19670 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19671 range check.
19672 (Ffont_at): New function.
19673 (syms_of_font): Defsubr Sfont_at.
19674
19675 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19676 before the entry for Qcomposition.
19677 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19678 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19679 the font in gstring.
19680 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19681 LGLYPH_FORM (g) to detect the end of valid glyph.
19682 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19683 we are composing with gstring.
19684
19685 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19686 Check if adjustment is vector or not.
19687
19688 * Makefile.in (font.o): Make it depends on window.h.
19689
196902008-02-01 Kenichi Handa <handa@m17n.org>
19691
19692 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19693 adjustment is vector or not.
19694
196952008-02-01 Miles Bader <miles@gnu.org>
19696
19697 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19698
196992008-02-01 Kenichi Handa <handa@m17n.org>
19700
19701 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19702 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19703 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19704
19705 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19706 (DEVICE_DELTA): Fix typo.
19707 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19708 LGLYPH format.
19709
19710 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19711 the change of LGLYPH format.
19712
197132008-02-01 Kenichi Handa <handa@m17n.org>
19714
19715 * ftfont.c (ftfont_list): Fix typo.
19716 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19717
197182008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19719
19720 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19721
19722 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19723 xftface_info is non-NULL.
19724
197252008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19726
19727 * ftfont.c (ftfont_list): Move misplaced #endif.
19728
197292008-02-01 Kenichi Handa <handa@m17n.org>
19730
19731 * ftfont.c (ftfont_list): Pay attention to the case that
19732 FC_CAPABILITY is not defined.
19733
197342008-02-01 Kenichi Handa <handa@m17n.org>
19735
19736 * xftfont.c (xftfont_open): Set charset related members to -1.
19737
19738 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19739 QCname.
19740 (ftfont_open): Set charset related members to -1.
19741
19742 * fontset.c (Votf_script_alist): New variable.
19743 (syms_of_fontset): Initialize it.
19744 (fontset_font): Delete unused variable.
19745
19746 * fontset.h (Votf_script_alist): Extern it.
19747
19748 * font.c (font_find_for_lface): Optimize code.
19749
19750 * font.h (font_close_object, font_merge_old_spec): Extern them.
19751
197522008-02-01 Kenichi Handa <handa@m17n.org>
19753
19754 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19755 (syms_of_font): Initialize them.
19756 (font_pixel_size): Allow float value in dpi.
19757 (font_prop_validate_type): Delete.
19758 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19759 Change caller.
19760 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19761 (font_prop_validate_extra): Delete.
19762 (font_prop_validate_spacing): New function.
19763 (font_property_table): Add elements for all known properties.
19764 (get_font_prop_index): Rename from check_font_prop_name. New
19765 argument FROM. Change caller.
19766 (font_prop_validate): Validate all known properties.
19767 (font_put_extra): Delete argument force. Change caller.
19768 (font_expand_wildcards): Make it static. Fix the way of shrinking
19769 the possible range.
19770 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19771 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19772 Change caller.
19773 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19774 (font_parse_fcname): Delete argument merge. Fix parsing of point
19775 size. Don't validate properties values here. Change caller.
19776 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19777 (font_open_by_name): Delete unused variable.
19778 (Ffont_spec): Likewise. Validate property values.
19779 (Ffont_match_p): New function.
19780
19781 * font.h (QCscalable): Extern it.
19782 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19783
19784 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19785
19786 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19787 (xfont_list_pattern): New function.
19788 (xfont_list): Use xfont_list_pattern.
19789
197902008-02-01 Kenichi Handa <handa@m17n.org>
19791
19792 * font.h (Flist_fonts): EXFUN it.
19793
197942008-02-01 Jason Rumney <jasonr@gnu.org>
19795
19796 * w32term.c (w32_initialize): Add back smoothing_type and
19797 smoothing_enabled definitions.
19798
197992008-02-01 Kenichi Handa <handa@m17n.org>
19800
19801 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19802 s->face->font on determining underline position.
19803
198042008-02-01 Kenichi Handa <handa@m17n.org>
19805
19806 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19807 (font_has_char): Accept font-object too.
19808 (font_find_for_lface): Try at first with a size specified in face.
19809
198102008-02-01 Kenichi Handa <handa@m17n.org>
19811
19812 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19813 font_open_by_name.
19814
198152008-02-01 Kenichi Handa <handa@m17n.org>
19816
19817 * font.h (QCspacing, QCdpi): Extern them.
19818 (enum font_spacing): New enum.
19819 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19820
19821 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19822 (QCspacing, QCdpi): New variables.
19823 (syms_of_font): Initialize them.
19824 (font_pixel_size): New function.
19825 (font_put_extra): New function.
19826 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19827 in FONT_EXTRA.
19828 (font_parse_fcname): Handle enumerated values (e.g. bold).
19829 Fix handling font size. Add QCname property that contains only
19830 unknown properties.
19831 (font_score): Change argument. Change caller. Pay attention to
19832 FONT_PIXEL_SIZE_QUANTUM.
19833 (font_sort_entites, font_list_entities, font_find_for_lface)
19834 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19835 (Ffont_spec): Add QCname property that contains only unknown properties.
19836
19837 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19838 include weight in listing pattern, instead check weight of each
19839 listed font. Don't include scalable in pattern. Pay attention to
19840 FONT_PIXEL_SIZE_QUANTUM.
19841
198422008-02-01 Kenichi Handa <handa@m17n.org>
19843
19844 * font.c (font_parse_fcname): Fix parsing of point-size.
19845 (font_unparse_fcname): Produce symbolic names for style properties.
19846 (font_list_entities): Handle float size correctly.
19847 (font_open_by_name): Prefer `normal' property values if the name
19848 doesn't specify them.
19849
19850 * fontset.c (Finternal_char_font): Use font_get_name, not
19851 Ffont_xlfd_name.
19852
19853 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19854 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19855 pattern. Don't force scalable.
19856
19857 * xftfont.c (xftfont_open): For generating a name, start from
19858 96-byte buffer.
19859
198602008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19861
19862 * frame.h (x_new_fontset2): Fix prototype.
19863
198642008-02-01 Kenichi Handa <handa@m17n.org>
19865
19866 * font.h (struct font_driver): Delete member parse_name.
19867 (font_match_p, font_get_spec, font_parse_fcname)
19868 (font_unparse_fcname): Extern them.
19869 (font_get_name): Adjust prototype.
19870
19871 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19872 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19873 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19874 unnecessary checks for weight, slant, and swidth.
19875 (font_parse_fcname): New function.
19876 (font_unparse_fcname): New function.
19877 (font_parse_name): New function.
19878 (font_match_p): New function.
19879 (font_get_name): Change return value to Lisp string.
19880 (font_get_spec): New function.
19881 (Qunspecified, Qignore_defface): Don't extern them.
19882 (font_find_for_lface): Assume that LFACE is fully specified.
19883 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19884 object, use it for FACE.
19885 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19886 driver->parse_name.
19887 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19888
19889 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19890 prototype.
19891
19892 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19893 argument F. Don't call Fnew_fontset. Instead, directly call
19894 make_fontset.
19895
19896 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19897
19898 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19899 of x_new_fontset2.
19900
19901 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19902 (Qsans__serif): New variables.
19903 (ftfont_generic_family_list): New variable.
19904 (syms_of_ftfont): Initialize the above variables.
19905 (ftfont_pattern_entity): Delete argument NAME.
19906 (ftfont_list_generic_family): New function.
19907 (ftfont_parse_name): Delete this function.
19908 (ftfont_list): Try generic family only when FcFontList found no font.
19909 (ftfont_list_family): Fix args to FcObjectSetBuild.
19910
19911 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19912 object in attrs[LFACE_FONT_INDEX].
19913 (set_lface_from_font_name): Cancel all changes for font-backend.
19914 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19915 function.
19916 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19917 font object in QCfont attribute.
19918 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19919 (realize_default_face) [USE_FONT_BACKEND]: Call
19920 set_lface_from_font_and_fontset.
19921
19922 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19923 "fixed", and signal error here if no suitable font was found.
19924
19925 * xfont.c (xfont_parse_name): Delete this function.
19926
19927 * xftfont.c (xftfont_open): Change coding style of error
19928 handling. Generate fontconfig's fontname pattern.
19929
19930 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19931 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19932
19933 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19934 Both args FONTSET and FONT_OBJECT must be existing ones.
19935
199362008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19937
19938 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19939
199402008-02-01 Kenichi Handa <handa@m17n.org>
19941
19942 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19943
19944 * font.h (struct font): Fix typo.
19945
19946 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19947 XLFD_XXX_INDEX.
19948 (enum xlfd_field_mask): New enum.
19949 (intern_font_field): Changed argument. Change caller. If digits
19950 are followed by non-digits, return a symbol.
19951 (font_expand_wildcards): New function.
19952 (font_parse_xlfd): Fix wildcard handling.
19953 (Ffont_spec): If :name is specified, reflect the info in the other
19954 properties.
19955
19956 * ftfont.c (ftfont_pattern_entity): Fix typo.
19957 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19958 locale.
19959
199602008-02-01 Kenichi Handa <handa@m17n.org>
19961
19962 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19963
19964 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19965 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19966 registry doesn't specify encoding part.
19967 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19968 (font_open_by_name): At first try parsing the name.
19969 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19970 as Lisp symbols.
19971
19972 * fontset.c (reorder_font_vector): Pay attention to the case that
19973 the 3rd element of font_def is nil.
19974 (fontset_font): For the default fontset, append one more fontset
19975 elements for a script-based font specification. Don't add script
19976 attribute on finding a font.
19977 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19978 font name.
19979 (fontset_ascii_font): If a font can't be opened, return nil.
19980
19981 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19982 (ftfont_pattern_entity): New function.
19983 (ftfont_get_cache): Assume that freetype_font_cache is already
19984 initialized.
19985 (ftfont_list): Handle the case that a file is specified in font
19986 name. Use ftfont_pattern_entity to generate entities.
19987 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19988 (syms_of_ftfont): Initialize freetype_font_cache.
19989
19990 * xftfont.c (xftfont_open): Make the font name fontconfig's
19991 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19992 (xftfont_close): Free font->font.name if not NULL.
19993
19994 * xfont.c (xfont_list): If script is specified for a font, return
19995 null_vector.
19996 (xfont_list_family): Declare argument type.
19997
19998 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19999 name, set LFACE_FONT (lface) to nil.
20000
20001 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20002 return Qnil.
20003
200042008-02-01 Kenichi Handa <handa@m17n.org>
20005
20006 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20007 (standard_args): Add "-enable-font-backend".
20008
200092008-02-01 Kenichi Handa <handa@m17n.org>
20010
20011 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20012 (struct xftdraw_list, xftdraw_list): Delete them.
20013 (register_xftdraw, check_xftdraw): Delete them.
20014 (xftfont_prepare_face): Don't call register_xftdraw.
20015 (xftfont_done_face): Don't call check_xftdraw.
20016 (xftfont_draw): Get background color only when with_background is
20017 nonzero.
20018
20019 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20020
200212008-02-01 Kenichi Handa <handa@m17n.org>
20022
20023 These changes are for the new font handling codes.
20024
20025 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20026 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20027 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20028 (FONTSRC, FONTOBJ): New variables.
20029 (obj): Add $(FONTOBJ).
20030 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20031 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20032 @LIBOTF_LIBS@.
20033 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20034 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20035
20036 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20037
20038 * character.h (Vscript_representative_chars): Extern it.
20039
20040 * character.c (Vscript_representative_chars): New variable.
20041 (syms_of_character): Declare it as a Lisp variable.
20042
20043 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20044 enable_font_backend is nonzero, accept the composition method
20045 COMPOSITION_WITH_GLYPH_STRING.
20046
20047 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20048 enumeration COMPOSITION_WITH_GLYPH_STRING.
20049
20050 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20051 members clip_x, clip_y, clip_width, and clip_height.
20052 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20053
20054 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20055 --enable-font-backend. Call syms_of_font.
20056
20057 * fns.c (assoc_no_quit): New function.
20058
20059 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20060 (face_for_font, new_fontset_from_font)
20061 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20062
20063 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20064 (fontset_font, fontset_ascii, face_for_char)
20065 (make_fontset_for_ascii_face, Ffont_info)
20066 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20067 is nonzero, use font-backend mechanism.
20068 (find_font_encoding): Make it non-static.
20069 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20070 New functions.
20071
20072 * frame.h (struct frame): New members resx and resy.
20073 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20074 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20075
20076 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20077 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20078
20079 * lisp.h (assoc_no_quit): Extern it.
20080
20081 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20082 Through out the file, use FONT_INFO_FROM_FACE instead of
20083 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20084 rif->per_char_metric.
20085 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20086 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20087 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20088 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20089 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20090 nonzero, use font-backend mechanism.
20091 (get_per_char_metric): New function.
20092
20093 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20094 (set_lface_from_font_name)
20095 (set_font_frame_param, free_realized_face)
20096 (prepare_face_for_display, clear_face_gcs)
20097 (Finternal_set_font_selection_order, realize_x_face)
20098 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20099 font-backend mechanism.
20100 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20101 (load_face_font) [USE_FONT_BACKEND]: Abort.
20102 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20103 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20104
20105 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20106 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20107 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20108 nonzero, register all available font drivers. Call
20109 x_default_font_parameter for deciding a font.
20110 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20111
20112 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20113 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20114 (x_set_glyph_string_clipping_exactly)
20115 (x_compute_glyph_string_overhangs)
20116 (x_draw_glyph_string_foreground)
20117 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20118 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20119 enable_font_backend is nonzero, use font-backend mechanism.
20120 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20121
201222008-02-01 Kenichi Handa <handa@m17n.org>
20123
20124 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20125 system_eol_type.
20126 (syms_of_coding): Initialize system_eol_type.
20127
20128 * process.c (Fset_process_coding_system): Inherit system's eol
20129 format if necessary.
20130
201312008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20132
20133 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20134
201352008-02-01 Kenichi Handa <handa@m17n.org>
20136
20137 * coding.c (decode_eol): Pay attention to buffer relocation in
20138 del_range_2.
20139 (decode_coding): Call decode_eol before restoring undo_list.
20140
201412008-02-01 Kenichi Handa <handa@m17n.org>
20142
20143 * charset.c (Fdefine_charset_internal): Fix setting of
20144 emacs_mule_bytes.
20145
201462008-02-01 Kenichi Handa <handa@m17n.org>
20147
20148 * keyboard.c (read_char): Check if C is a character or not before
20149 looking up Vkeyboard_translate_table.
20150
201512008-02-01 Kenichi Handa <handa@m17n.org>
20152
20153 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20154 condition to terminate the loop.
20155
201562008-02-01 Kenichi Handa <handa@m17n.org>
20157
20158 * coding.c (produce_composition): Compare charbuf[i] instead of
20159 args[i] against 0.
20160 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20161
201622008-02-01 Kenichi Handa <handa@m17n.org>
20163
20164 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20165 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20166 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20167 detect_coding.
20168 (emacs_mule_char): Handle old style (Emacs 20) component character
20169 of a composition.
20170 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20171 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20172 composition rule.
20173 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20174
201752008-02-01 Kenichi Handa <handa@m17n.org>
20176
20177 * coding.c (encode_coding_ccl): Allocate destination dynamically
20178 when necessary.
20179
201802008-02-01 Kenichi Handa <handa@m17n.org>
20181
20182 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20183 the loop. When quitted, show a proper error message.
20184
201852008-02-01 Kenichi Handa <handa@m17n.org>
20186
20187 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20188 src->clip_head and src->clip_tail temporarily instead of src->hl.
20189
20190 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20191 character sequence.
20192 (Fccl_execute_on_string): Use ASET, not XSET.
20193
201942008-02-01 Kenichi Handa <handa@m17n.org>
20195
20196 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20197
201982008-02-01 Kenichi Handa <handa@m17n.org>
20199
20200 * coding.c (decode_coding): Fix the condition of terminating the
20201 decoding loop.
20202
202032008-02-01 Kenichi Handa <handa@m17n.org>
20204
20205 * data.c (Faset): On setting a character bigger than 255 in a
20206 unibyte string, signal an error instead of make the string multibyte.
20207
202082008-02-01 Kenichi Handa <handa@m17n.org>
20209
20210 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20211 made by a mapping table.
20212
202132008-02-01 Kenichi Handa <handa@m17n.org>
20214
20215 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20216 not.
20217 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20218 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20219
20220 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20221 s->face is NULL or not.
20222
202232008-02-01 Kenichi Handa <handa@m17n.org>
20224
20225 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20226 (x_draw_glyph_string): Fix drawing of right_overhang and
20227 left_overhang around/on cursor.
20228
20229 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20230
202312008-02-01 Kenichi Handa <handa@m17n.org>
20232
20233 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20234
202352008-02-01 Kenichi Handa <handa@m17n.org>
20236
20237 * coding.c (Fdefine_coding_system_internal)
20238 (Fdefine_coding_system_alias): Avoid a duplicated element in
20239 Vcoding_system_alist.
20240
202412008-02-01 Kenichi Handa <handa@m17n.org>
20242
20243 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20244
20245 * coding.c (Qcoding_system_define_form): New variable.
20246 (syms_of_coding): Intern and staticpro it.
20247 (Fcoding_system_p): Check Qcoding_system_define_form.
20248 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20249
20250 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20251 Fcoding_system_p.
20252 (CHECK_CODING_SYSTEM): If ID is not available, call
20253 Fcheck_coding_system.
20254 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20255 Try also Fcheck_coding_system.
20256
202572008-02-01 Kenichi Handa <handa@m17n.org>
20258
20259 * coding.c (code_conversion_restore): GCPRO arg.
20260
202612008-02-01 Kenichi Handa <handa@m17n.org>
20262
20263 * character.c (lisp_string_width): Check multibyteness of STRING.
20264
202652008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20266
20267 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20268 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20269 (decode_mac_font_name): Use decode_coding_c_string instead of
20270 decode_coding.
20271 (x_load_font): Initialize fontp->fontset to -1. Set
20272 fontp->encoding_type.
20273
202742008-02-01 Kenichi Handa <handa@m17n.org>
20275
20276 * search.c (search_buffer): Give up BM search on case-fold-search
20277 if one of a target character has a case-equivalence of different
20278 byte length even if that target charcter is an ASCII.
20279 (simple_search): Fix calculation of byte length of matched text.
20280 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20281
202822008-02-01 Kenichi Handa <handa@m17n.org>
20283
20284 * coding.c (decode_coding): Fix handling of invalid bytes.
20285
202862008-02-01 Kenichi Handa <handa@m17n.org>
20287
20288 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20289 Unicode characters.
20290
202912008-02-01 Kenichi Handa <handa@m17n.org>
20292
20293 * coding.c (encode_coding_object): If a pre-write-conversion
20294 function makes a new buffer, kill it.
20295
202962008-02-01 Kenichi Handa <handa@m17n.org>
20297
20298 * coding.c (QCascii_compatible_p): New variable.
20299 (syms_of_coding): Initialize it.
20300 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20301 calling string_char.
20302 (record_conversion_result): Add `default:' case.
20303 (coding_charset_list): Delete unused variable `coding_type'.
20304 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20305 property in the plist of the coding system.
20306 (Fcoding_system_put): Check QCascii_compatible_p.
20307
203082008-02-01 Miles Bader <miles@gnu.org>
20309
20310 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20311 removed calculation of frame `f', as it's now used.
20312
203132008-02-01 Kenichi Handa <handa@m17n.org>
20314
20315 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20316 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20317 (UNIDATA): New variable.
20318 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20319 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20320 $(RUN_TEMACS) unconditionally.
20321
203222008-02-01 Kenichi Handa <handa@m17n.org>
20323
20324 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20325 (admindir): New variable.
20326 ($(lispsource)international/charprop.el): New target.
20327
203282008-02-01 Miles Bader <miles@gnu.org>
20329
20330 * character.c (chars-in-region): Remove obsolete function.
20331 (syms_of_character): Remove its initialization.
20332
203332008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20334
20335 * w32select.c (validate_coding_system)
20336 (setup_windows_coding_system): New functions.
20337 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20338 setup_windows_coding_system.
20339 (setup_config, Fw32_get_clipboard_data): Use
20340 validate_coding_system.
20341 (Fx_selection_exists): Move call to setup_config to a place
20342 where signals are allowed.
20343
20344 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20345 (Fcheck_coding_system): Add declarations.
20346
203472008-02-01 Kenichi Handa <handa@m17n.org>
20348
20349 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20350
203512008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20352
20353 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20354 string as the second argument for x_new_fontset.
20355
203562008-02-01 Kenichi Handa <handa@m17n.org>
20357
20358 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20359 (encode_coding_object): Use safe_call instead of call2.
20360
203612008-02-01 Kenichi Handa <handa@m17n.org>
20362
20363 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20364
20365 * Makefile.in (lisp): Include charprop.el.
20366
203672008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20368
20369 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20370 Not sure if it's unnecessary.
20371
203722008-02-01 Steven Tamm <steventamm@mac.com>
20373
20374 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20375 some possibly unnecessary fontset checking code that crashed
20376 when creating a new frame.
20377
203782008-02-01 Kenichi Handa <handa@m17n.org>
20379
20380 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20381 lookup_face.
20382
20383 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20384
20385 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20386
203872008-02-01 Kenichi Handa <handa@m17n.org>
20388
20389 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20390 (coding_charset_list): New function.
20391
20392 * coding.h (coding_charset_list): Extern it.
20393
203942008-02-01 Kenichi Handa <handa@m17n.org>
20395
20396 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20397 concatenation of family and registry.
20398
203992008-02-01 Kenichi Handa <handa@m17n.org>
20400
20401 * character.h (BYTE8_STRING): Fix typo.
20402
20403 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20404 string to multibyte (sync to HEAD).
20405
20406 * casefiddle.c (casify_region): Handle changes in byte-length
20407 using replace_range_2 (sync to HEAD).
20408
204092008-02-01 Andreas Schwab <schwab@suse.de>
20410
20411 * chartab.c (map_char_table): GCPRO table and arg.
20412
204132008-02-01 Kenichi Handa <handa@m17n.org>
20414
20415 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20416 already at limit.
20417
204182008-02-01 Kenichi Handa <handa@m17n.org>
20419
20420 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20421 instead of fast_c_string_match_ignore_case.
20422 (find_font_encoding): Change argument to Lisp_Object. Use
20423 fast_string_match_ignore_case instead of
20424 fast_c_string_match_ignore_case. Change caller.
20425
204262008-02-01 Kenichi Handa <handa@m17n.org>
20427
20428 * xdisp.c (get_next_display_element): In unibyte case, decide to
20429 display in octal form by checking a character by
20430 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20431
20432 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20433
20434 * character.c (unibyte_has_multibyte_table): New variable.
20435
20436 * character.h (unibyte_has_multibyte_table): Extern it.
20437 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20438
204392008-02-01 Kenichi Handa <handa@m17n.org>
20440
20441 * coding.c (encode_coding_iso_2022): Fix handling of charset
20442 annotation.
20443
204442008-02-01 Kenichi Handa <handa@m17n.org>
20445
20446 * coding.c (setup_coding_system): If coding_system is nil, use
20447 Qundecided.
20448 (Fterminal_coding_system): Return nil if terminal coding system is
20449 `undecided'.
20450 (syms_of_coding): Define coding-system `undecided' here. Setup
20451 terminal_coding as `undecided'.
20452
204532008-02-01 Kenichi Handa <handa@m17n.org>
20454
20455 * xdisp.c (message_dolog, set_message_1): Call
20456 unibyte_char_to_multibyte with arg type int.
20457
20458 * lread.c (read1): Fix reading of a char-table.
20459
20460 * print.c (print_object): Include sub char-table in circularities
20461 detection.
20462
204632008-02-01 Kenichi Handa <handa@m17n.org>
20464
20465 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20466 Append the found sequences in car of ARGS instead of prepending.
20467
204682008-02-01 Kenichi Handa <handa@m17n.org>
20469
20470 * fileio.c (report_file_error): Make a unibyte string from
20471 strerror (errorno).
20472 (Fsubstitute_in_file_name): Fix the arg to
20473 unibyte_char_to_multibyte. It is evaluated twice.
20474
204752008-02-01 Kenichi Handa <handa@m17n.org>
20476
20477 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20478
204792008-02-01 Kenichi Handa <handa@m17n.org>
20480
20481 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20482 BOM is not found.
20483 (detect_coding, detect_coding_system): Optimization for ISO-2022
20484 when no 8-bit data is found.
20485
204862008-02-01 Jason Rumney <jasonr@gnu.org>
20487
20488 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20489
204902008-02-01 Kenichi Handa <handa@m17n.org>
20491
20492 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20493 CHARS.
20494
204952008-02-01 Steven Tamm <steventamm@mac.com>
20496
20497 * macterm.c (mac_encode_char): Add charset argument and update
20498 to use encoding_type.
20499 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20500 switch to pure fontset.
20501 (decode_mac_font_name): Temporarily remove decoding.
20502 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20503 (x_load_font): Temporarily remove encoding.
20504
205052008-02-01 Kenichi Handa <handa@m17n.org>
20506
20507 * xfaces.c (Fface_font): If frame is not on a window system,
20508 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20509 refer to face->font.
20510 (split_font_name_into_vector, build_font_name_from_vector)
20511 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20512 when HAVE_WINDOW_SYSTEM is defined.
20513
205142008-02-01 Kenichi Handa <handa@m17n.org>
20515
20516 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20517 (x_produce_glyphs): Fix setting of members of cmp in case
20518 cmp->glyph_len is zero.
20519
20520 * fontset.c (Fset_fontset_font): Fix docstring.
20521 (Ffontset_info): Make it backward compatible. New arg ALL.
20522
205232008-02-01 Kim F. Storm <storm@cua.dk>
20524
20525 * process.c (read_process_output): Grow decoding_buf when needed;
20526 this could cause a crash in allocate_string and compact_small_strings.
20527
205282008-02-01 Kenichi Handa <handa@m17n.org>
20529
20530 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20531
205322008-02-01 Kenichi Handa <handa@m17n.org>
20533
20534 * coding.c (setup_coding_system): Set coding->common_flags
20535 correctly for raw-text.
20536 (consume_chars): On encoding unibyte text by raw-text, don't check
20537 multibyte form.
20538 (encode_coding): On encoding by raw-text, never use translation tables.
20539
20540 * fileio.c (e_write): Short cut for the case of no encoding.
20541
205422008-02-01 Kenichi Handa <handa@m17n.org>
20543
20544 * coding.c (detect_coding, detect_coding_system): Delete unused
20545 variables.
20546
205472008-02-01 Kenichi Handa <handa@m17n.org>
20548
20549 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20550 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20551
205522008-02-01 Kenichi Handa <handa@m17n.org>
20553
20554 * coding.c (Ffind_coding_systems_region_internal): Include
20555 raw-text and no-conversion in the result.
20556
205572008-02-01 Kenichi Handa <handa@m17n.org>
20558
20559 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20560 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20561 FONT_DEF.
20562 (font_def_arg, add_arg, from_arg, to_arg): New args.
20563 (set_fontset_font): Change argument.
20564 (Fset_fontset_font): Fix for the case that TARGET is a script
20565 name and charset name.
20566 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20567
205682008-02-01 Kenichi Handa <handa@m17n.org>
20569
20570 * fontset.c (fontset_font): Rename from fontset_face. Change return
20571 value.
20572 (face_suitable_for_char_p, face_for_char): Adjust for the change
20573 of fontset_font.
20574 (make_fontset_for_ascii_face): Fix setting of the fontset element
20575 for ASCII.
20576 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20577 to get a font name.
20578 (Ffontset_info): Adjust for the change of fontset_font.
20579
20580 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20581
20582 * character.h (LEADING_CODE_LATIN_1_MIN)
20583 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20584
205852008-02-01 Kenichi Handa <handa@m17n.org>
20586
20587 * editfns.c (check_translation): New function.
20588 (Ftranslate_region_internal): Handle M:N mapping.
20589
205902008-02-01 Kenichi Handa <handa@m17n.org>
20591
20592 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20593
205942008-02-01 Kenichi Handa <handa@m17n.org>
20595
20596 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20597 goto invalid_code.
20598 (decode_coding_iso_2022): Fix handling of invalid designation.
20599
20600 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20601 after calling code_conversion_save.
20602
206032008-02-01 Kenichi Handa <handa@m17n.org>
20604
20605 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20606
20607 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20608
20609 * fontset.c: Include "intervals.h".
20610 (fontset_face): Fix comparing of Lisp_Objects.
20611 (free_face_fontset, new_fontset_from_font_name): Fix
20612 Lisp_Object/int mixup.
20613
20614 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20615
20616 * coding.c: Add many prototypes for static functions.
20617 (get_translation_table): Allow max_lookup to be NULL.
20618 (decode_coding, Ffind_coding_systems_region_internal)
20619 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20620 get_translation_table with max_lookup NULL.
20621
206222008-02-01 Kenichi Handa <handa@m17n.org>
20623
20624 * coding.c (get_translation_table): Declare it as Lisp_Object.
20625 (LOOKUP_TRANSLATION_TABLE): New macro.
20626 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20627 instead of CHAR_TABLE_REF.
20628
206292008-02-01 Kenichi Handa <handa@m17n.org>
20630
20631 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20632 annotation data format.
20633 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20634 Change arguments FROM and TO to single argument NCHARS. Change caller.
20635 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20636 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20637 (decode_coding_ccl, decode_coding_charset): Pay attention to
20638 coding->charbuf_used.
20639 (get_translation): New function.
20640 (produce_chars): New arguments translation_table and last_block.
20641 Translate characters here. Return number of carryover chars.
20642 Change caller.
20643 (produce_composition): New argument pos. Change caller.
20644 Adjust for the change of annotation data format.
20645 (produce_charset, produce_annotation): Likewise.
20646 (decode_coding, encode_coding): Don't call translate_chars.
20647 (consume_chars): New arg translation_table. Change caller.
20648 (translate_chars): Delete.
20649 (syms_of_coding): Make translation-table's number of extra slots 2.
20650
206512008-02-01 Kenichi Handa <handa@m17n.org>
20652
20653 * search.c (simple_search): Fix setting this_pos_byte in backward
20654 search.
20655
20656 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20657 byte sequence.
20658 (detect_coding_ccl): Fix setting of the variable valids.
20659
206602008-02-01 Kenichi Handa <handa@m17n.org>
20661
20662 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20663
20664 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20665
20666 * editfns.c (Ftranslate_region_internal): Rename from
20667 Ftranslate_region. Accept a char-table in TABLE.
20668 (syms_of_editfns): Defsubr Stranslate_region_internal.
20669
20670 * xfaces.c (set_lface_from_font_name): If a font is specified for
20671 a frame, generate a fontset from the font.
20672 (build_scalable_font_name): If the scalable font is requested for
20673 a specific size, don't change that size.
20674 (try_font_list): Try a scalable font also in the case that a
20675 pattern string is specified.
20676
206772008-02-01 Kenichi Handa <handa@m17n.org>
20678
20679 * xfaces.c (Fface_font): New optional arg CHARACTER.
20680
206812008-02-01 Kenichi Handa <handa@m17n.org>
20682
20683 * charset.h (CHARSET_OFFSET): New macro.
20684
206852008-02-01 Kenichi Handa <handa@m17n.org>
20686
20687 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20688
20689 * fontset.c (fontset_face): Handle the case that repertory is a
20690 char-table.
20691 (find_font_encoding): Return nil for unknown encoding.
20692 (Fset_fontset_font): Ignore a font of unknown encoding.
20693
206942008-02-01 Kenichi Handa <handa@m17n.org>
20695
20696 * keymap.c (describe_vector): Handle default value of a char table.
20697
20698 * fontset.c (fontset_face): Handle fallback fonts correctly.
20699 (Ffontset_info): Return infomation about fallback fonts.
20700
207012008-02-01 Kenichi Handa <handa@m17n.org>
20702
20703 * fontset.c (FONTSET_DEFAULT): New macro.
20704 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20705 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20706 the case that it is nil.
20707 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20708 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20709
20710 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20711 subset or superset.
20712
207132008-02-01 Kenichi Handa <handa@m17n.org>
20714
20715 * emacs.c (main): Call init_charset after syms_of_XXX.
20716
20717 * charset.c (Vcharset_map_directory): Delete.
20718 (Vcharset_map_path): New variable.
20719 (load_charset_map_from_file): Use Vcharset_map_path instead.
20720 (init_charset): Initialize Vcharset_map_path.
20721 (syms_of_charset): Delete declaration of "charset-map-directory",
20722 add declaration of "charset-map-path".
20723
207242008-02-01 Kenichi Handa <handa@m17n.org>
20725
20726 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20727 ASCII only string.
20728
20729 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20730
20731 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20732 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20733
207342008-02-01 Kenichi Handa <handa@m17n.org>
20735
20736 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20737
20738 * coding.c (QCmnemonic, QCdefalut_char)
20739 (QCdecode_translation_table, QCencode_translation_table)
20740 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20741 (get_translation_table): Return a list of translation tables if
20742 necessary.
20743 (decode_coding): Call get_translation_table with ENCODEP 0.
20744 (char_encodable_p): If translation_table is non-nil, always call
20745 translate_char.
20746 (Fdefine_coding_system_internal): Accept list of translation
20747 tables as :encode-translation-table and :decode-translation-table.
20748 (Fcoding_system_put): New function.
20749 (syms_of_coding): Declare new symbols. Defsubr
20750 Scoding_system_put.
20751 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20752 typically JISX0212.
20753
20754 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20755 when the charset is superset type.
20756
20757 * character.c (translate_char): Accept list of translation tables.
20758
207592008-02-01 Kenichi Handa <handa@m17n.org>
20760
20761 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20762 (CODING_ATTR_TRANS_TBL): New macro.
20763
20764 * coding.c (get_translation_table): New function.
20765 (translate_chars): Fix the bug of skipping annotation data.
20766 (decode_coding, encode_coding): Utilize get_translation_table.
20767 (char_encodable_p, Funencodable_char_position): Translate char if
20768 necessary.
20769 (Ffind_coding_systems_region_internal)
20770 (Fcheck_coding_systems_region): Setup translation table for encode
20771 in a coding system attribute vector in advance.
20772 (Fdefine_coding_system_internal): Allow a symbol as translation
20773 table. For shift-jis type coding system, allow 4th charset.
20774
207752008-02-01 Kenichi Handa <handa@m17n.org>
20776
20777 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20778
20779 * xdisp.c (get_next_display_element): Pass -1 as POS to
20780 FACE_FOR_CHAR if displaying a C-string.
20781
207822008-02-01 Kenichi Handa <handa@m17n.org>
20783
20784 * composite.c (get_composition_id): Handle xoff and yoff in a
20785 composition rule.
20786
20787 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20788 (struct composition): New member lbearing and rbearing.
20789
20790 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20791 (x_get_glyph_overhangs): Handle a composition glyph.
20792 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20793
20794 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20795 composition glyph.
20796
207972008-02-01 Kenichi Handa <handa@m17n.org>
20798
20799 * print.c: Include charset.h.
20800 (Vprint_charset_text_property): New variable.
20801 (Qdefault): Extern it.
20802 (PRINT_STRING_NON_CHARSET_FOUND)
20803 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20804 (print_check_string_result): New variable.
20805 (print_check_string_charset_prop): New function.
20806 (print_prune_charset_plist): New variable.
20807 (print_prune_string_charset): New function.
20808 (print_object): Call print_prune_string_charset if
20809 Vprint_charset_text_property is not t.
20810 (print_interval): Print nothing if interval->plist is nil.
20811 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20812 variable. Init and staticpro print_prune_charset_plist.
20813
208142008-02-01 Kenichi Handa <handa@m17n.org>
20815
20816 * fontset.c (new_fontset_from_font_name): Use the specified font
20817 for all characters in the new fontset.
20818
20819 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20820 OBJECT args.
20821
20822 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20823 OBJECT args for composition too.
20824
20825 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20826 OBJECT args.
20827
208282008-02-01 Kenichi Handa <handa@m17n.org>
20829
20830 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20831
20832 * fontset.c (reorder_font_vector): Adjust for the change of
20833 FONT_DEF format.
20834 (fontset_face): New arg id. Change caller.
20835 (face_for_char): New args pos and object.
20836 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20837 (fs_query_fontset): Check NAME by Fassoc too.
20838 (Fset_fontset_font): Allow non-XLFD font name.
20839 (Ffontset_info): Adjust for the change of FONT_DEF format.
20840
20841 * fontset.h (face_for_char): Adjust prototype.
20842
20843 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20844 (append_space, extend_face_to_end_of_line)
20845 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20846 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20847
20848 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20849 POS and OBJECT args.
20850
20851 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20852 POS and OBJECT args.
20853
208542008-02-01 Jason Rumney <jasonr@gnu.org>
20855
20856 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20857 of GlobalAlloc'ed memory.
20858
208592008-02-01 Kenichi Handa <handa@m17n.org>
20860
20861 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20862
20863 * charset.h (charset_table_used): Delete extern.
20864
20865 * charset.c (charset_table_used): Make it static.
20866 (map_charset_chars): Fix args to c_function with.
20867
20868 * chartab.c (map_sub_char_table_for_charset): Fix args to
20869 c_function with.
20870
20871 * coding.h (enum coding_result_code): Delete
20872 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20873
20874 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20875 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20876 (Vlast_code_conversion_error): New variables.
20877 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20878 (ONE_MORE_BYTE): Record error if any instead of signaling an
20879 error. If non-ASCII multibyte char is found, return the negative
20880 value of the code. All callers changed to check it.
20881 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20882 (record_conversion_result): New function. Change all codes setting
20883 coding->result to call this function.
20884 (detect_coding_utf_8, decode_coding_utf_8)
20885 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20886 Don't use the local variable incomplete.
20887 (emacs_mule_char): Change the second arg to `const'.
20888 (decode_coding): Fix of flushing out unprocessed data.
20889 (make_conversion_work_buffer): Fix making of a work buffer.
20890 (decode_coding_object): Return coding->dst_object.
20891
20892 * fontset.c (set_fontset_font): Fix args.
20893
20894 * lisp.h (CHARACTERBITS): Define as 22.
20895
20896 * process.c (send_process): Be sure to set coding->src_multibyte.
20897
20898 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20899
209002008-02-01 Kenichi Handa <handa@m17n.org>
20901
20902 * xdisp.c (handle_auto_composed_prop): Give limit to
20903 Fnext_single_char_property_change.
20904
209052008-02-01 Kenichi Handa <handa@m17n.org>
20906
20907 * composite.c (syms_of_composite): Don't make the composition hash
20908 table weak.
20909
20910 * fontset.c (Fset_fontset_font): Fix docstring.
20911
20912 * lisp.h (detect_coding_system): Adjust prototype.
20913
20914 * fileio.c (kill_workbuf_unwind): Delete this function.
20915 (Finsert_file_contents): Adjust the call of detect_coding_system.
20916 Get conversion_buffer by code_conversion_save. Use the macro
20917 CODING_MAY_REQUIRE_DECODING. After decoding, update
20918 coding_system.
20919
20920 * coding.h (make_conversion_work_buffer): Delete extern.
20921 (code_conversion_save): Extern it.
20922
20923 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20924 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20925 (decode_coding_utf_8): Don't do eol converion.
20926 (detect_coding_utf_16): Check coding->src_chars, not
20927 coding->src_bytes. Add heuristics for those that have no signature.
20928 (decode_coding_emacs_mule, decode_coding_iso_2022)
20929 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20930 Don't do eol converion.
20931 (adjust_coding_eol_type): Return a new coding system.
20932 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20933 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20934 each change.
20935 (decode_coding): Pay attention to undo_list. Do eol conversion for
20936 all types of coding-systems (if necessary).
20937 (Vcode_conversion_work_buf_list): Delete it.
20938 (Vcode_conversion_reused_workbuf): Rename from
20939 Vcode_conversion_reused_work_buf.
20940 (Vcode_conversion_workbuf_name): New variable.
20941 (reused_workbuf_in_use): New variable.
20942 (make_conversion_work_buffer): Delete the arg DEPTH.
20943 (code_conversion_restore): Change argument to cons.
20944 (code_conversion_save): Delete the argument BUFFER. Change callers.
20945 (detect_coding_system): New argument src_chars. Change callers.
20946 Fix for utf-16 detection.
20947 (init_coding_once): Don't use ISO_carriage_return.
20948 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20949 reused_workbuf_in_use.
20950
209512008-02-01 Kenichi Handa <handa@m17n.org>
20952
20953 * keymap.c (store_in_keymap): Pay attention to the case that idx
20954 is a cons specifying a character range.
20955
209562008-02-01 Kenichi Handa <handa@m17n.org>
20957
20958 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20959 HANDLED_RECOMPUTE_PROPS.
20960
20961 * coding.c (Fdefine_coding_system_internal): Fix checking of
20962 ascii compatibility.
20963
209642008-02-01 Kenichi Handa <handa@m17n.org>
20965
20966 * charset.c (find_charsets_in_text): Delete unused locale variable.
20967 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20968
20969 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20970 Resync charset_list to Vemacs_mule_charset_list.
20971
20972 * keymap.c (store_in_keymap): Pay attention to the case that idx
20973 is a cons specifying a character range.
20974
209752008-02-01 Kenichi Handa <handa@m17n.org>
20976
20977 * composite.c (update_compositions): Bind inhibit-read-only, etc
20978 to t before calling remove-list-of-text-properties.
20979
20980 * print.c (print_object): Always print ASCII chars as is.
20981
209822008-02-01 Kenichi Handa <handa@m17n.org>
20983
20984 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20985
20986 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20987 is a char table.
20988
209892008-02-01 Kenichi Handa <handa@m17n.org>
20990
20991 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20992
209932008-02-01 Kenichi Handa <handa@m17n.org>
20994
20995 * xfaces.c (set_lface_from_font_name): Fix for the case that
20996 FONTNAME is not fontset name.
20997
209982008-02-01 Kenichi Handa <handa@m17n.org>
20999
21000 * fns.c (base64_encode_1): Fix previous change.
21001
210022008-02-01 Kenichi Handa <handa@m17n.org>
21003
21004 * fontset.c (set_fontset_font): New function.
21005 (Fset_fontset_font): If a font is specified for a charset, use
21006 map_charset_chars to store the font spec in a fontset.
21007
210082008-02-01 Kenichi Handa <handa@m17n.org>
21009
21010 * fontset.c (fontset_face): Create a fallback fontset on demand.
21011 (make_fontset): Don't create a fallback fontset here.
21012 (free_face_fontset): Free a fallback fontset (if any) too.
21013 (n_auto_fontsets): Delete this variable.
21014 (auto_fontset_alist): New variable.
21015 (new_fontset_from_font_name): Check auto_fontset_alist.
21016 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21017 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21018 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21019 Defsubr Sfontset_list_all.
21020
210212008-02-01 Kenichi Handa <handa@m17n.org>
21022
21023 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21024
210252008-02-01 Kenichi Handa <handa@m17n.org>
21026
21027 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21028
210292008-02-01 Kenichi Handa <handa@m17n.org>
21030
21031 * editfns.c (Fgoto_char): Fix docstring.
21032
210332008-02-01 Kenichi Handa <handa@m17n.org>
21034
21035 * insdel.c (insert_from_gap): Adjust intervals correctly.
21036
210372008-02-01 Jason Rumney <jasonr@gnu.org>
21038
21039 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21040 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21041 (w32_initialize): Try to load it.
21042 (x_get_font_repertory): Use it if available.
21043 (w32_encode_char): Add shortcut for unicode output.
21044
21045 * w32fns.c (w32_load_system_font): Default charset to -1.
21046 (x_to_w32_charset): Match all fonts for unicode.
21047 (w32_to_x_charset): New parameter matching. Don't return partial
21048 or wildcard charsets.
21049 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21050 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21051 (w32_to_x_font): Match charset to real charset.
21052 (enum_font_cb2): Always list unicode versions.
21053
21054 * makefile.w32-in (temacs): Increase EMHEAP.
21055
210562008-02-01 Jason Rumney <jasonr@gnu.org>
21057
21058 * w32term.c (w32_encode_char): New charset parameter.
21059 font_info.encoding becomes encoding_type.
21060 (x_get_font_repertory): New function. Warning: stub only!
21061 (x_new_font): Return quickly if font already set.
21062 (x_new_fontset): fontsetname parameter is Lisp_Object.
21063 Use new fs_query_fontset. Try new_fontset_from_font_name.
21064 Use fontset_name for return value.
21065
21066 * w32term.h: Declare x_get_font_repertory.
21067
21068 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21069 place of find_charset_in_text. Use encode_coding_object in place
21070 of encode_coding.
21071 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21072 decode_coding.
21073
21074 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21075 of x_new_fontset.
21076 (w32_load_system_font): Initialize charset as unicode.
21077 font_info.encoding becomes encoding_type.
21078 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21079 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21080 (syms_of_w32fns): Set get_font_repertory_func.
21081
21082 * w32console.c: Include character.h. Use terminal_encode_buffer
21083 from term.c.
21084 (write_glyphs): Use new version of encode_terminal_code. Use
21085 encode_coding_object in place of encode_coding.
21086
21087 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21088 encoding becomes encoding_type.
21089
21090 * term.c (terminal_encode_buffer): Make externally visible.
21091
21092 * makefile.w32-in: Add character.h dependancies.
21093 (character.o, chartab.o): New targets.
21094
210952008-02-01 Kenichi Handa <handa@m17n.org>
21096
21097 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21098 CODING_ID_EOL_TYPE.
21099
211002008-02-01 Andreas Schwab <schwab@suse.de>
21101
21102 * coding.c (produce_chars): Revert last change.
21103
211042008-02-01 Kenichi Handa <handa@m17n.org>
21105
21106 * charset.h (charset_unicode): Extern it.
21107
21108 * charset.c (string_xstring_p): Check by (C >= 0x100).
21109 (find_charsets_in_text): Change format of the arc CHARSETS. New
21110 arg MULTIBYTE.
21111 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21112 change of find_charsets_in_text.
21113 (Fsplit_char): Fix doc. Never return unknown.
21114
21115 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21116
21117 * coding.c (Fdefine_coding_system_alias): Update
21118 Vcoding_system_list.
21119
21120 * fontset.c (load_font_get_repertory): Pay attention to the case
21121 that ENCODING of a font is specified by a char-table.
21122
21123 * xterm.c (x_get_font_repertory): Handle the case that the
21124 encoding of font is other than Unicode.
21125
211262008-02-01 Kenichi Handa <handa@m17n.org>
21127
21128 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21129 if a character is encodable by the terminal coding system. If
21130 not, produces proper number of `?'s. Update
21131 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21132 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21133
211342008-02-01 Kenichi Handa <handa@m17n.org>
21135
21136 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21137 variables.
21138 (encode_terminal_code): Change argument. Encode multiple
21139 characters at once. Store the result of encoding in
21140 terminal_encode_buffer.
21141 (write_glyphs, insert_glyphs): Adjust for the change of
21142 encode_terminal_code.
21143 (term_init): Initialize terminal_encode_buffer and
21144 terminal_encode_buf_size.
21145
21146 * coding.c (consume_chars): If coding->src_object is nil, don't
21147 check annotation.
21148
211492008-02-01 Kenichi Handa <handa@m17n.org>
21150
21151 * character.c (char_string): Use ASCII_CHAR_P instead of
21152 SINGLE_BYTE_CHAR_P.
21153
211542008-02-01 Kenichi Handa <handa@m17n.org>
21155
21156 * xdisp.c (handle_auto_composed_prop): Check if the last
21157 characters of auto-composed region is newly composed with the
21158 following characters.
21159 (handle_composition_prop): Fix checking of point being inside
21160 composition.
21161
211622008-02-01 Kenichi Handa <handa@m17n.org>
21163
21164 * fns.c (concat): Don't change multibyteness of the result by
21165 concatenating an 8-bit character.
21166
21167 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21168 multibyteness of the result when newelt is an 8-bit character.
21169
211702008-02-01 Dave Love <fx@gnu.org>
21171
21172 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21173 EMACS_INT.
21174
21175 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21176
21177 * xfaces.c (face_numeric_value): Declare dim size_t.
21178 (Finternal_lisp_face_equal_p): Remove unused f.
21179
21180 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21181 (MATRIX_ROW): Remove unused vars.
21182 (draw_glyphs, x_insert_glyphs, fast_find_position)
21183 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21184 byte/char counts.
21185
21186 * regex.c (regex_compile): Remove unused var.
21187
21188 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21189
21190 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21191 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21192
21193 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21194
21195 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21196
21197 * fileio.c (Fwrite_region): Remove unused var.
21198
21199 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21200 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21201
21202 * composite.c (Fremove_list_of_text_properties): Declare.
21203
21204 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21205 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21206 (coding_inherit_eol_type): Remove unused attrs.
21207 (detect_coding): Cast arg of detect_eol.
21208
21209 * charset.c (syms_of_charset): Remove unused var p.
21210 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21211 byte/char counts.
21212
21213 * casetab.c (set_case_table): Remove unused var.
21214
21215 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21216 unused vars.
21217
212182008-02-01 Dave Love <fx@gnu.org>
21219
21220 * xterm.c (x_bitmap_mask): Declare.
21221
212222008-02-01 Dave Love <fx@gnu.org>
21223
21224 * xterm.c (x_term_init): Fix type error.
21225
21226 * lisp.h: Add Funibyte_char_to_multibyte.
21227
21228 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21229 (Fset_coding_system_priority): Doc fix.
21230
21231 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21232
21233 * indent.c (check_composition): Make start and end EMACS_INT.
21234
21235 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21236
21237 * xdisp.c (handle_composition_prop, check_point_in_composition):
21238 Make buffer positions EMACS_INT.
21239
21240 * composite.c (find_composition, run_composition_function)
21241 (update_compositions, Ffind_composition_internal): Make buffer
21242 positions EMACS_INT.
21243
21244 * composite.h (find_composition, update_compositions): Make
21245 position args EMACS_INT.
21246
21247 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21248
21249 * intervals.c (get_property_and_range):
21250 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21251
21252 * unexalpha.c: Don't include varargs.h.
21253
212542008-02-01 Dave Love <fx@gnu.org>
21255
21256 * coding.h (ENCODE_UTF_8): New.
21257
21258 * Makefile.in (gtkutil.o): Depend on coding.h.
21259
21260 * coding.c (Fset_coding_system_priority): Doc fix.
21261
212622008-02-01 Kenichi Handa <handa@m17n.org>
21263
21264 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21265 the case of auto saving.
21266
212672008-02-01 Andreas Schwab <schwab@suse.de>
21268
21269 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21270 `range' from GC.
21271
212722008-02-01 Kenichi Handa <handa@m17n.org>
21273
21274 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21275
212762008-02-01 Kenichi Handa <handa@m17n.org>
21277
21278 * fileio.c (choose_write_coding_system): Return a decided coding system.
21279 (Fwrite_region): Set Vlast_coding_system_used to the return value
21280 of choose_write_coding_system.
21281
212822008-02-01 Kenichi Handa <handa@m17n.org>
21283
21284 * charset.c (Fset_charset_priority): Pay attention to duplicated
21285 arguments.
21286
21287 * coding.c (QCcategory): New variable.
21288 (syms_of_coding): Defsym it. Set all elements of
21289 Vcoding_category_table and their symbol values.
21290 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21291 coding-category-XXX, and coding-category-list.
21292 (Fdefine_coding_system_internal): Add category in the plist.
21293
212942008-02-01 Kenichi Handa <handa@m17n.org>
21295
21296 * callproc.c (Fcall_process): Handle carryover correctly.
21297
21298 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21299 (raw_text_coding_system): Check NILP (coding_system).
21300 (coding_inherit_eol_type): Check NILP (coding_system) and
21301 NILP (parent).
21302 (consume_chars): Fix for the case of raw-text.
21303
21304 * process.c (read_process_output): Handle carryover correctly.
21305
213062008-02-01 Dave Love <fx@gnu.org>
21307
21308 * regex.c (re_search_2): Fix last change.
21309
213102008-02-01 Kenichi Handa <handa@m17n.org>
21311
21312 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21313 target_multibyte. Even in a unibyte case, return a converted
21314 multibyte char.
21315 (GET_CHAR_AFTER): New macro.
21316 (PATFETCH): Translate via multibyte char.
21317 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21318 (SETUP_MULTIBYTE_RANGE): New macro.
21319 (regex_compile): Setup compiled code so that its multibyteness
21320 matches that of a target. Fix the handling of "[X-YZ]" using
21321 SETUP_MULTIBYTE_RANGE.
21322 (analyse_first) <charset>: For filling fastmap for all multibyte
21323 characters, don't check by BASE_LEADING_CODE_P.
21324 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21325 the same as RE_MULTIBYTE_P (bufp) now.
21326 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21327 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21328 (TRANSLATE_VIA_MULTIBYTE): New macro.
21329 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21330 It is the same as RE_MULTIBYTE_P (bufp) now.
21331 <exactn>: Translate via multibyte.
21332 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21333 translate it.
21334 <charset, charset_not>: Fetch a character by
21335 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21336 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21337 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21338 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21339 by GET_CHAR_AFTER.
21340 (bcmp_translate): Likewise.
21341
21342 * search.c (compile_pattern): Check the member target_multibyte,
21343 not the member multibyte of buf.
21344
21345 * lread.c (read1): While reading a string, set force_singlebyte
21346 and force_multibyte correctly.
21347
21348 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21349 up of unibyte_to_multibyte_table.
21350
213512008-02-01 Kenichi Handa <handa@m17n.org>
21352
21353 * coding.c (setup_coding_system): If coding has
21354 post-read-conversion or pre-write-conversion, set
21355 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21356 respectively.
21357 (decode_coding_gap): Run post-read-conversion if any.
21358
21359 * fileio.c (Finsert_file_contents): Even if we read into a
21360 unibyte buffer, check if we must decode the result or not.
21361
213622008-02-01 Kenichi Handa <handa@m17n.org>
21363
21364 * coding.c (make_conversion_work_buffer): Change the work buffer
21365 name to the same one as that of Emacs 21.
21366
213672008-02-01 Kenichi Handa <handa@m17n.org>
21368
21369 * coding.h (make_conversion_work_buffer): Adjust prototype.
21370 (code_conversion_restore): Don't extern it.
21371
21372 * coding.c (detected_mask): Delete unused variable.
21373 (decode_coding_iso_2022): Pay attention to the byte sequence of
21374 CTEXT extended segment, and retain those bytes as is.
21375 (decode_coding_ccl): Delete unused variable `valids'.
21376 (setup_coding_system): Delete unused variable `category'.
21377 (consume_chars): Delete unused variable `category'. Make it work
21378 for non-multibyte case.
21379 (make_conversion_work_buffer): Change argument.
21380 (saved_coding): Delete unused variable.
21381 (code_conversion_restore): Don't check saved_coding->destination.
21382 (code_conversion_save): New function.
21383 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21384 instead of record_unwind_protect.
21385 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21386 (detect_coding_system): Delete unused variable `mask'.
21387 (Fdefine_coding_system_internal): Delete unused variable id.
21388
21389 * fileio.c (kill_workbuf_unwind): New function.
21390 (Finsert_file_contents): On replacing, call
21391 make_conversion_work_buffer with correct args, and call
21392 record_unwind_protect with the first arg kill_workbuf_unwind.
21393
21394 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21395
213962008-02-01 Kenichi Handa <handa@m17n.org>
21397
21398 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21399 (fontset_add): Fix for the case that TO is less than TO1.
21400 (Ffontset_info): Don't use fallback fontset on checking the
21401 default fontset.
21402 (dump_fontset): New function for debugging.
21403
21404 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21405 coding_type is Qcharset.
21406
214072008-02-01 Kenichi Handa <handa@m17n.org>
21408
21409 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21410 (map_char_table): Don't inherit the value from the parent on
21411 initializing VAL. Adjust for the above change.
21412
214132008-02-01 Kenichi Handa <handa@m17n.org>
21414
21415 * coding.c (Qsignature, Qendian): Delete these variables.
21416 (syms_of_coding): Don't initialize them.
21417 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21418 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21419 detect_info->found.
21420 (decode_coding_utf_16): Don't detect BOM here.
21421 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21422 is NOT utf_16_without_bom.
21423 (setup_coding_system): For a coding system of type utf-16, check
21424 if the attribute :endian is Qbig or not (not nil or not), and set
21425 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21426 (detect_coding): If coding type is utf-16 and BOM detection is
21427 required, detect it.
21428 (Fdefine_coding_system_internal): For a coding system of type
21429 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21430
214312008-02-01 Kenichi Handa <handa@m17n.org>
21432
21433 * coding.c (coding_set_source): Fix for the case that the current
21434 buffer is different from coding->src_object.
21435 (decode_coding_object): Don't use the conversion work buffer if
21436 DST_OBJECT is a buffer.
21437
214382008-02-01 Dave Love <fx@gnu.org>
21439
21440 * lread.c (read_emacs_mule_char) [len==2]: Index
21441 emacs_mule_charset correctly.
21442
214432008-02-01 Dave Love <fx@gnu.org>
21444
21445 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21446 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21447 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21448 treated specially.)
21449 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21450 (detected_mask): Remove Big5 bits.
21451
214522008-02-01 Kenichi Handa <handa@m17n.org>
21453
21454 The following changes are to make the font rescaling facility
21455 compatible with Emacs 21.
21456
21457 * xfaces.c (Vface_font_rescale_alist): Rename from
21458 Vface_resizing_fonts.
21459 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21460 (font_rescale_ratio): Rename from font_resizing_ratio.
21461 (split_font_name): Set font->rescale_ratio.
21462 (better_font_p): Pay attention to font->rescale_ratio.
21463 (build_scalable_font_name): Likewise. Change RESX, and RESY
21464 fields.
21465 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21466
214672008-02-01 Kenichi Handa <handa@m17n.org>
21468
21469 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21470 (Qutf_16_le): Remove these variables.
21471 (syms_of_coding): Don't DEFSYM them.
21472 (decode_coding_utf_16): Fix handling of BOM.
21473 (encode_coding_utf_16): Fix handling of BOM.
21474
214752008-02-01 Kenichi Handa <handa@m17n.org>
21476
21477 * fileio.c (Finsert_file_contents): On replacing, before decoding
21478 the file into the work buffer, set point of the work buffer to the end.
21479
214802008-02-01 Dave Love <fx@gnu.org>
21481
21482 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21483
214842008-02-01 Dave Love <fx@gnu.org>
21485
21486 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21487 and fix C types.
21488
214892008-02-01 Kenichi Handa <handa@m17n.org>
21490
21491 * xdisp.c (SKIP_GLYPHS): New macro.
21492 (set_cursor_from_row): Pay attention to string display properties.
21493
21494 * category.c (copy_category_entry): Fix for the case that RANGE
21495 is an integer.
21496
21497 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21498
21499 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21500
215012008-02-01 Kenichi Handa <handa@m17n.org>
21502
21503 * charset.c (Fcharset_id_internal): New function.
21504 (syms_of_charset): Defsubr it.
21505
21506 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21507 with the last arg charset_list acquired from coding.
21508 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21509 the attribute coding_attr_ccl_valids.
21510
21511 * coding.h (enum define_coding_ccl_arg_index): Set the first
21512 member coding_arg_ccl_decoder to coding_arg_max.
21513
21514 * ccl.h (ccl_driver): Adjust prototype.
21515
21516 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21517 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 21518 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
21519 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21520 last arg Qnil.
21521
215222008-02-01 Kenichi Handa <handa@m17n.org>
21523
21524 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21525 call encode_char.
21526
21527 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21528
215292008-02-01 Dave Love <fx@gnu.org>
21530
21531 * composite.c (syms_of_composite): Make composition_hash_table weak.
21532
215332008-02-01 Kenichi Handa <handa@m17n.org>
21534
21535 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21536 (font_name_registry): Don't extern them.
21537 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21538
21539 * fontset.h (Qfontset): Don't extern it.
21540 (new_fontset_from_font_name): Extern it.
21541
21542 * fontset.c: Give 8 extra slots to fontset objects.
21543 (Qfontset_info): New variable.
21544 (syms_of_fontset): Defsym it.
21545 (FONTSET_FALLBACK): New macro.
21546 (fontset_face): Try also the default fontset.
21547 (make_fontset): Realize a fallback fontset from the default fontset.
21548 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21549 using split_font_name_into_vector and build_font_name_from_vector.
21550 (Fset_fontset_font): Access the elements of font_spec by enum
21551 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21552 name by using split_font_name_into_vector.
21553 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21554 generate a proper font name from the fontset name. Update
21555 Vfontset_alias_alist.
21556 (n_auto_fontsets): New variable.
21557 (new_fontset_from_font_name): New function.
21558 (Ffont_info): Store the information about fonts generated from the
21559 default fontset in the first extra slot of the returned char-table.
21560
21561 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21562 (font_name_registry): Delete function.
21563 (split_font_name_into_vector): New function.
21564 (build_font_name_from_vector): New function.
21565 (font_list): The argument REGISTRY is now a list of registry names.
21566 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21567 specifies an explicit font name, return the name as is. Make a
21568 list of registy names.
21569
21570 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21571 of x_new_fontset.
21572 (Fx_create_frame): Don't call x_new_fontset here. Just use
21573 x_list_fonts to check the existence of fonts.
21574
21575 * xterm.h (x_new_fontset): Adjust prototype.
21576
21577 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21578 string. Use new_fontset_from_font_name to create a fontset from a
21579 font name.
21580
215812008-02-01 Kenichi Handa <handa@m17n.org>
21582
21583 * syntax.c (Vfind_word_boundary_function_table): New name for
21584 Vnext_word_boundary_function_table.
21585 (find-word-boundary-function-table): New name for
21586 next-word-boundary-function-table.
21587
215882008-02-01 Dave Love <fx@gnu.org>
21589
21590 * Makefile.in: Fix some dependencies.
21591
21592 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21593 set it to nil before returning.
21594
21595 * composite.c (update_compositions): Fix type error.
21596
21597 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21598
215992008-02-01 Kenichi Handa <handa@m17n.org>
21600
21601 * xterm.c (x_new_font): Optimize for the case that the font is
21602 already set for the frame.
21603
216042008-02-01 Kenichi Handa <handa@m17n.org>
21605
21606 * chartab.c (char_table_ascii): Check if the char table contents
21607 is sub-char-table or not.
21608 (char_table_set, char_table_set_range): Fix argument to
21609 char_table_ascii.
21610
21611 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21612 (detect_coding_utf_8, detect_coding_utf_16)
21613 (detect_coding_emacs_mule, detect_coding_iso_2022)
21614 (detect_coding_sjis, detect_coding_big5)
21615 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21616 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21617 sequence is valid in this coding system. Change callers.
21618 (MAX_ANNOTATION_LENGTH): New macro.
21619 (ADD_ANNOTATION_DATA): New macro.
21620 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21621 ADD_ANNOTATION_DATA. Change the format of annotation data.
21622 (ADD_CHARSET_DATA): New macro.
21623 (emacs_mule_char): New argument ID. Change callers.
21624 (decode_coding_emacs_mule, decode_coding_iso_2022)
21625 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21626 Produce charset annotation data in coding->charbuf.
21627 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21628 to charset annotation data in coding->charbuf.
21629 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21630 coding->common_flags if the coding system is iso-2022 based and
21631 uses designation.
21632 (produce_composition): Adjust for the new annotation data format.
21633 (produce_charset): New function.
21634 (produce_annotation): Handle charset annotation.
21635 (handle_composition_annotation, handle_charset_annotation): New
21636 functions.
21637 (consume_chars): Handle charset annotation. Utilize the above two
21638 functions.
21639 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21640 buffer, get the deleted text as a string and set
21641 coding->src_object to that string.
21642 (detect_coding, detect_coding_system): Use the new struct
21643 coding_detection_info.
21644
21645 * coding.h (struct coding_detection_info): New structure.
21646 (struct coding_system): Adjust prototype of the member `detector'.
21647 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21648
216492008-02-01 Kenichi Handa <handa@m17n.org>
21650
21651 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21652
216532008-02-01 Dave Love <fx@gnu.org>
21654
21655 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21656 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21657 to new local and nullify apropos_accumulate before returning.
21658 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21659
216602008-02-01 Kenichi Handa <handa@m17n.org>
21661
21662 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21663 correctly.
e3eea1fc 21664
aac0c6e3
MR
216652008-02-01 Dave Love <fx@gnu.org>
21666
21667 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21668
216692008-02-01 Kenichi Handa <handa@m17n.org>
21670
21671 The following changes are to make character composition happen
21672 automatically on displaying.
21673
21674 * Makefile.in (lisp, shortlisp): Add composite.elc.
21675
21676 * composite.h (Qauto_composed, Vauto_composition_function)
21677 (Qauto_composition_function): Extern them.
21678
21679 * composite.c (Vcomposition_function_table)
21680 (Qcomposition_function_table): Delete variables.
21681 (Qauto_composed, Vauto_composition_function)
21682 (Qauto_composition_function): New variables.
21683 (run_composition_function): Don't call
21684 compose-chars-after-function.
21685 (update_compositions): Clear `auto-composed' text property.
21686 (compose_chars_in_text): Delete this function.
21687 (syms_of_composite): Staticpro Qauto_composed and
21688 Qauto_composition_function. Declare Vauto_composition_function as
21689 a Lisp variable.
21690
21691 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21692
21693 * xdisp.c (it_props): Add an entry for Qauto_composed.
21694 (handle_auto_composed_prop): New function.
21695
21696 * xselect.c (selection_data_to_lisp_data): Don't call
21697 compose_chars_in_text.
21698
216992008-02-01 Dave Love <fx@gnu.org>
21700
21701 * keyboard.c (read_char): Modify checking around use of
21702 Vkeyboard_translate_table.
21703
21704 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21705 and fix C types.
21706
217072008-02-01 Kenichi Handa <handa@m17n.org>
21708
21709 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21710 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21711 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21712 the case that the last byte is '\r' correctly.
21713 (decode_coding): Flush out the unprocessed data correctly.
21714 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21715
217162008-02-01 Dave Love <fx@gnu.org>
21717
21718 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21719 Add XK_ISO... case.
21720 (xaw_scroll_callback): Revert last change.
21721
217222008-02-01 Kenichi Handa <handa@m17n.org>
21723
21724 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21725
217262008-02-01 Kenichi Handa <handa@m17n.org>
21727
21728 * xfaces.c (Vface_resizing_fonts): New variable.
21729 (struct font_name): New member `resizing_ratio'.
21730 (font_resizing_ratio): New function.
21731 (split_font_name): Set font->resizing_ratio.
21732 (better_font_p): Pay attention to font->resizing_ratio.
21733 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21734 RESX, and RESY fields.
21735 (try_alternative_families): Try scalable fonts if
21736 Vscalable_fonts_allowed is not Qt.
21737 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21738
217392008-02-01 Dave Love <fx@gnu.org>
21740
21741 * xterm.c (xaw_scroll_callback): Cast correctly.
21742
217432008-02-01 Dave Love <fx@gnu.org>
21744
21745 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21746 (lispy_kana_keys): Comment out.
21747 (make_lispy_event) [XK_kana_A]: Comment out.
21748
21749 * xterm.c (xaw_scroll_callback): Cast call_data.
21750 (XTread_socket): Deal with ASCII keysyms.
21751 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21752
217532008-02-01 Dave Love <fx@gnu.org>
21754
21755 * xterm.c (Vx_keysym_table): New.
21756 (syms_of_xterm): Initialize it.
21757 (XTread_socket): Use it.
21758 From head: Eliminate incorrect optimization that tried to avoid
21759 decoding the output of X*LookupString.
21760 (x_get_font_repertory): Delete charset declaration.
21761
217622008-02-01 Kenichi Handa <handa@m17n.org>
21763
21764 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21765 return 0.
21766 (Fdefine_coding_system_internal): Setup
21767 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21768
217692008-02-01 Dave Love <fx@gnu.org>
21770
21771 * coding.c (Fcheck_coding_system): Doc fix.
21772
21773 * editfns.c (Finsert_byte): Return a proper value.
21774
217752008-02-01 Kenichi Handa <handa@m17n.org>
21776
21777 * coding.c (decode_coding): Fix args to translate_chars. Pay
21778 attention to Vstandard_translation_table_for_decode.
21779 (encode_coding): Fix args to translate_chars. Pay attention to
21780 Vstandard_translation_table_for_encode.
21781
21782 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21783 SINGLE_BYTE_CHAR_P.
21784
21785 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21786 not by SINGLE_BYTE_CHAR_P.
21787
21788 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21789 SINGLE_BYTE_CHAR_P.
21790
21791 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21792 SINGLE_BYTE_CHAR_P.
21793
21794 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21795 by SINGLE_BYTE_CHAR_P.
21796
21797 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21798 SINGLE_BYTE_CHAR_P.
21799
218002008-02-01 Dave Love <fx@gnu.org>
21801
21802 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21803
218042008-02-01 Dave Love <fx@gnu.org>
21805
21806 * fns.c (Flanginfo): Fix typo.
21807
21808 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21809
218102008-02-01 Kenichi Handa <handa@m17n.org>
21811
21812 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21813 (detect_coding_emacs_mule, detect_coding_iso_2022)
21814 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21815 incomplete byte sequence. Don't update *mask when correctly detected.
21816 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21817 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21818 (detect_coding, detect_coding_system): Adjust for the changes above.
21819
218202008-02-01 Kenichi Handa <handa@m17n.org>
21821
21822 * character.c (char_string): Rename from
21823 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21824 (string_char): Rename from string_char.
21825
21826 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21827 if C is greater than MAX_3_BYTE_CHAR.
21828 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21829 string_char instead of string_char_with_unification.
21830
218312008-02-01 Dave Love <fx@gnu.org>
21832
21833 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21834
218352008-02-01 Kenichi Handa <handa@m17n.org>
21836
21837 * keymap.c (push_key_description): Pay attention to force_multibyte.
21838
21839 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21840
218412008-02-01 Dave Love <fx@gnu.org>
21842
21843 * charset.c (define_charset_internal): Rename `supprementary'.
21844
21845 * Makefile.in (lisp, shortlisp): Remove latin-N.
21846
218472008-02-01 Dave Love <fx@gnu.org>
21848
21849 * xfns.c (x_window, x_window): Use use_xim.
21850
21851 * xterm.c (use_xim): Initialize.
21852 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21853 (x_term_init): Maybe set use_xim.
21854
21855 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21856
218572008-02-01 Kenichi Handa <handa@m17n.org>
21858
21859 * search.c (search_buffer): Fix case-fold-search of multibyte
21860 characters.
21861 (boyer_moore): Rename the last argument to char_high_bits.
21862
218632008-02-01 Kenichi Handa <handa@m17n.org>
21864
21865 * xdisp.c (display_string): Fix for the case of zero width glyph.
21866
21867 * xfns.c (x_set_font): Change the error message of the case that
21868 x_new_fontset returns Qt.
21869
21870 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21871 (Finternal_set_lisp_face_attribute): Use signal_error for the
21872 error of invalid fontset.
21873
21874 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21875 fontset, return Qt.
21876
218772008-02-01 Dave Love <fx@gnu.org>
21878
21879 * unexelf.c (unexec): Make .got handling not SGI-specific.
21880
21881 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21882
21883 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21884
21885 * keyboard.c (read_key_sequence): Fix type error.
21886
21887 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21888 type error.
21889
21890 * fontset.c (fontset_add): Return Lisp_Object.
21891
218922008-02-01 Dave Love <fx@gnu.org>
21893
21894 * charset.h (charset_ordered_list_tick): Declare extern.
21895
218962008-02-01 Kenichi Handa <handa@m17n.org>
21897
21898 The following changes (and some of 2008-02-01 changes of mine) are
21899 for handling syntax, category, and case conversion for unibyte
21900 characters by converting them to multibyte on the fly. With these
21901 changes, we don't have to setup syntax and case tables for unibyte
21902 characters in each language environment.
21903
21904 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21905 multibyte if necessary.
21906
21907 * bytecode.c (Fbyte_code): Likewise.
21908
21909 * character.h (LEADING_CODE_LATIN_1_MIN)
21910 (LEADING_CODE_LATIN_1_MAX): New macros.
21911 (unibyte_to_multibyte_table): Extern it.
21912 (unibyte_char_to_multibyte): New macro.
21913 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21914 (CHAR_LEADING_CODE): New macro.
21915 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21916
21917 * character.c (unibyte_to_multibyte_table): New variable.
21918 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21919 (multibyte_char_to_unibyte): If C is an eight-bit character,
21920 convert it to the corresponding byte value.
21921
21922 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21923 not 1, signals an error. Update the elements of
21924 unibyte_to_multibyte_table.
21925 (init_charset_once): Initialize unibyte_to_multibyte_table.
21926 (syms_of_charset): Define the charset `iso-8859-1'.
21927
21928 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21929 as is without converting it to unibyte. In a unibyte buffer,
21930 convert C to multibyte before checking the syntax.
21931
21932 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21933
21934 * minibuf.c (Fminibuffer_complete_word): Use the macro
21935 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21936
21937 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21938
21939 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21940 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21941 that is zero, convert an eight-bit char to multibyte.
21942 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21943 non-emacs case.
21944 (PATFETCH): Convert an eight-bit char to multibyte.
21945 (HANDLE_UNIBYTE_RANGE): New macro.
21946 (regex_compile): Setup the compiled pattern for multibyte chars
21947 even if the given regex string is unibyte. Use PATFETCH_RAW
21948 instead of PATFETCH in many places. To handle `charset'
21949 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21950 only for ASCII chars.
21951 (analyse_first) <exactn>: Simplify because the compiled pattern
21952 is multibyte.
21953 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21954 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21955 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21956 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21957 multibyte always 1.
21958 (re_search_2): In emacs, set the locale variable multibyte to 1,
21959 otherwise to 0. New local variable target_multibyte. Check it
21960 to decide the multibyteness of STR1 and STR2. If
21961 target_multibyte is zero, convert unibyte chars to multibyte
21962 before translating and checking fastmap.
21963 (TARGET_CHAR_AND_LENGTH): New macro.
21964 (re_match_2_internal): In emacs, set the locale variable multibyte
21965 to 1, otherwise to 0. New local variable target_multibyte. Check
21966 it to decide the multibyteness of STR1 and STR2. Use
21967 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21968 <charset, charset_not>: If multibyte is nonzero, check fastmap
21969 only for ASCII chars. Call bcmp_translate with
21970 target_multibyte, not with multibyte.
21971 <begline>: Declare the local variable C as `unsigned'.
21972 (bcmp_translate): Change the last arg name to target_multibyte.
21973
21974 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21975 the regexp pattern and the matching target. Set cp->buf.multibyte
21976 to the multibyteness of the regexp pattern. Set
21977 cp->but.target_multibyte to the multibyteness of the matching target.
21978 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21979 FETCH_STRING_CHAR_ADVANCE.
21980 (Freplace_match): Convert unibyte chars to multibyte.
21981
21982 * syntax.c (char_quoted, back_comment, scan_words)
21983 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21984 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21985 unibyte chars to multibyte.
21986 (skip_chars): Delete the arg syntaxp, and move the code for
21987 handling syntaxes to skip_syntaxes. Change callers.
21988 Fix the case that the multibyteness of STRING and the current
21989 buffer doesn't match.
21990 (skip_syntaxes): New function.
21991 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21992 SINGLE_BYTE_CHAR_P.
21993
219942008-02-01 Kenichi Handa <handa@m17n.org>
21995
21996 * xfaces.c (QCfontset): New variable.
21997 (LFACE_FONTSET): New macro.
21998 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21999 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22000 (Finternal_set_lisp_face_attribute)
22001 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22002 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22003 check also LFACE_FONTSET_INDEX.
22004 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22005 attrs[LFACE_FONT_INDEX].
22006 (syms_of_xfaces): Intern and staticpro QCfontset.
22007
22008 * dispextern.h (enum lface_attribute_index): New member
22009 LFACE_FONTSET_INDEX.
22010
22011 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22012
220132008-02-01 Kenichi Handa <handa@m17n.org>
22014
22015 * coding.c (coding_set_destination): Fix coding->destination for
22016 the case converting a region.
22017 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22018 (encode_coding_object): Fix coding->dst_pos and
22019 coding->dst_pos_byte for the case converting a region.
22020
22021 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22022
22023 * character.h (BYTE8_STRING): New macro.
22024
22025 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22026
220272008-02-01 Kenichi Handa <handa@m17n.org>
22028
22029 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22030 characters by octal form.
22031
22032 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22033
22034 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22035 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22036 _fetch_multibyte_char_len.
22037 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22038
22039 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22040
22041 * casefiddle.c (casify_object): Simplify. Handle the case that
22042 the case conversion change the byte length.
22043 (casify_region): Likewise.
22044
22045 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22046
22047 * character.c (_fetch_multibyte_char_len): Delete this variable.
22048 (syms_of_character): Setup Vprintable_chars.
22049
22050 * editfns.c (Fchar_equal): Fix for the unibyte case.
22051 (Finsert_byte): New function.
22052 (syms_of_editfns): Defsubr it.
22053
22054 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22055 of direct code 0x3ffff.
22056
22057 * search.c (Freplace_match): Fix for the unibyte case.
22058
220592008-02-01 Kenichi Handa <handa@m17n.org>
22060
22061 * lread.c (safe_to_load_p): Fix the logic.
22062
22063 * syntax.c (scan_words): Don't treat characters belonging to
22064 different scripts as constituting a word.
22065
22066 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22067
22068 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22069
22070 * emacs.c (main): In the case of --unibyte, instead of aborting on
22071 finding non-empty buffer, make it unibyte.
22072
220732008-02-01 Kenichi Handa <handa@m17n.org>
22074
22075 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22076 to create a fontset.
22077
220782008-02-01 Dave Love <fx@gnu.org>
22079
22080 * character.c (Funibyte_char_to_multibyte): Doc fix.
22081
22082 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22083
220842008-02-01 Kenichi Handa <handa@m17n.org>
22085
22086 * fontset.c (fontset_add): Make the type `int'.
22087 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22088
22089 * character.c (unibyte_char_to_multibyte)
22090 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22091 charset_unibyte, not charset_primary.
22092
22093 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22094
22095 * charset.c (charset_unibyte): Rename from charset_primary.
22096 (Funibyte_charset): Rename from Fprimary_charset.
22097 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22098 (syms_of_charset): Adjust for the above changes.
22099
22100 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22101 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22102 it->multibyte_p is zero.
22103
22104 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22105 Delete extern.
22106
221072008-02-01 Kenichi Handa <handa@m17n.org>
22108
22109 * coding.c (Fdefine_coding_system_internal): Fix category setting
22110 for a coding system of type iso-2022.
22111
221122008-02-01 Kenichi Handa <handa@m17n.org>
22113
22114 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22115
221162008-02-01 Kenichi Handa <handa@m17n.org>
22117
22118 * syntax.c (Vnext_word_boundary_function_table): New variable.
22119 (next-word-boundary-function-table): Declare it as a Lisp variable
22120 in syms_of_syntax.
22121 (scan_words): Call functions in Vnext_word_boundary_function_table
22122 if any.
22123
22124 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22125
22126 * fontset.c (fs_load_font): If fontp->charset is not negative,
22127 return fontp without setting its members.
22128
221292008-02-01 Dave Love <fx@gnu.org>
22130
22131 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22132
22133 * m/sparc.h (HAVE_ALLOCA): Delete.
22134
22135 * s/irix6-5.h: Don't include strings.h.
22136 (bcopy, bzero, bcmp): Don't undef.
22137
22138 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22139
22140 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22141 (TIOCSIGSEND): Don't test IRIX6.
22142 (bcopy, bzero, bcmp): Define conditionally.
22143
221442008-02-01 Kenichi Handa <handa@m17n.org>
22145
22146 * buffer.c (Qas, Qmake, Qto): New variables.
22147 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22148 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22149
22150 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22151 we are inserting a process output into a multibyte buffer.
22152
22153 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22154 multibyte_char_to_unibyte.
22155
22156 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22157 by the primary charset, make it eight-bit char.
22158 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22159
22160 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22161 (charset_8_bit__control, charset_8_bit_graphic)
22162 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22163 (define_charset_internal): New function.
22164 (syms_of_charset): Call define_charset_internal for pre-defined
22165 charsets.
22166
22167 * charset.h (charset_8_bit): Extern it.
22168
22169 * coding.c (make_conversion_work_buffer): Adjust for the change
22170 of Fset_buffer_multibyte.
22171 (encode_coding_raw_text): Increment p0 in the loop.
22172
22173 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22174
22175 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22176 for the change of Fset_buffer_multibyte.
22177
22178 * fns.c (Fstring_to_multibyte): New function.
22179 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22180
221812008-02-01 Dave Love <fx@gnu.org>
22182
22183 * xfns.c (x_put_x_image): Declare args.
22184
22185 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22186 (try_font_list): Declare an arg.
22187
22188 * xdisp.c (message2_nolog, set_message): Declare an arg.
22189
22190 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22191
22192 * syntax.c (scan_sexps_forward): Declare an arg.
22193
22194 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22195 Declare an arg.
22196
22197 * lisp.h (Fnew_fontset): Declare.
22198
22199 * keymap.c (push_key_description): Call CHARACTERP correctly.
22200
22201 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22202 (face_for_char): Delete unused vars.
22203 (Fset_fontset_font): Doc fix. Delete unused vars.
22204
22205 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22206
22207 * composite.c (update_compositions): Declare arg.
22208
22209 * cm.c (calccost, cmgoto): Declare args.
22210
22211 * charset.c: Remove `emacs' conditional. Doc fixes.
22212 (map_char_table_for_charset): Declare.
22213
22214 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22215
22216 * ccl.c: Remove `emacs' conditional.
22217
222182008-02-01 Kenichi Handa <handa@m17n.org>
22219
22220 The following changes are to allow specifying multiple font
22221 patterns for a character range (specified by script or charset).
22222
22223 * Makefile.in (abbrev.o): Depend on syntax.h.
22224 (xfaces.o): Depend on charset.h.
22225
22226 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22227 SINGLE_BYTE_CHAR_P.
22228
22229 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22230
22231 * character.h (Vchar_script_table): Extern it.
22232
22233 * character.c (Vscript_alist): Delete.
22234 (Vchar_script_table, Qchar_script_table): New variable.
22235 (syms_of_character): Declare Vchar_script_table as a lisp variable
22236 and initialize it.
22237
22238 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22239 have property char-table-extra-slots, make no extra slot.
22240
22241 * dispextern.h (struct face): Delete member `charset'.
22242 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22243 SINGLE_BYTE_CHAR_P.
22244 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22245 Add prototypes.
22246 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22247 (generate_ascii_font_name): Rename from generate_ascii_font.
22248
22249 * fontset.h (get_font_repertory_func): New prototype.
22250 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22251 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22252
22253 * fontset.c (Qprepend, Qappend): New variables.
22254 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22255 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22256 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22257 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22258 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22259 (load_font_get_repertory): New functions.
22260 (fontset_set): Delete.
22261 (fontset_face): New arg FACE. Return face ID, not face.
22262 Complete re-write to handle new fontset structure. Change caller.
22263 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22264 (face_for_char): Don't call lookup_face.
22265 (make_fontset_for_ascii_face): New arg FACE.
22266 (fs_load_font): New arg CHARSET_ID. Don't check
22267 Vfont_encoding_alist here.
22268 (find_font_encoding): New function.
22269 (list_fontsets): Use STRINGP, not ! NILP.
22270 (accumulate_script_ranges): New function.
22271 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22272 re-written to handle new fontset structure.
22273 (Ffontset_font): Return a copy of element.
22274 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22275 docstring of font-encoding-alist.
22276
22277 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22278 (Fset_fotset_font): Fix arguments to 5.
22279
22280 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22281
22282 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22283 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22284 (highlight_trailing_whitespace): Adjust for the change of
22285 lookup_named_face.
22286
22287 * xfaces.c: Include charset.h.
22288 (load_face_font): Delete argument C. Change caller.
22289 (generate_ascii_font_name): Rename from generate_ascii_font.
22290 (font_name_registry): New function.
22291 (cache_face): Store ascii faces before non-ascii faces in buckets.
22292 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22293 Lookup only ascii faces.
22294 (lookup_non_ascii_face): New function.
22295 (lookup_named_face): Delete argument C. Change caller.
22296 (lookup_derived_face): Delete argument C. Change caller.
22297 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22298 a string, just call font_list with it.
22299 (choose_face_font): Delete arguments FACE and C. New arg
22300 FONT_SPEC. Change caller.
22301 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22302 Change caller.
22303 (realize_non_ascii_face): New function.
22304 (realize_x_face): Call load_face_font here.
22305 (realize_tty_face): Delete argument C. Change caller.
22306 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22307 get a face ID.
22308 (dump_realized_face): Don't print charset of FACE.
22309
22310 * xfns.c (x_set_font): Always call x_new_fontset and
22311 store_frame_parameter.
22312 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22313 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22314
22315 * xterm.h (x_get_font_repertory): Extern it.
22316
22317 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22318 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22319 it->multibyte_p is zero.
22320 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22321 (x_new_fontset): If FONTSETNAME doesn't match any existing
22322 fontsets, create a new one.
22323 (x_get_font_repertory): New function.
22324
223252008-02-01 Kenichi Handa <handa@m17n.org>
22326
22327 * coding.c (Ffind_coding_systems_region_internal): Detect an
22328 ASCII only string correctly.
22329
22330 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22331 version is 0.
22332
223332008-02-01 Kenichi Handa <handa@m17n.org>
22334
22335 * lread.c: Include "coding.h".
22336 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22337 (load_each_byte, unread_char): New variables.
22338 (readchar_backlog): Delete.
22339 (readchar): Return a character unless load_each_byte is nonzero.
22340 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22341 cons. If unread_char is not -1, simply return it.
22342 (unreadchar): Handle the case that readcharfun is
22343 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22344 (read_multibyte): Delete.
22345 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22346 (read_emacs_mule_char): New functions.
22347 (Fload): Even if the file doesn't have the extension ".elc", if
22348 safe_to_load_p returns a positive version number, assume that the
22349 file contains bytecompiled code. If the version is less than 22,
22350 load the file while decoding multibyte sequences by emacs-mule.
22351 (readevalloop): Don't use readchar_backlog.
22352 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22353 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22354 (read_escape): Delete the arg BYTEREP.
22355 (read1): Set load_each_byte to 1 temporarily while handling
22356 #@NUMBER. Don't call read_multibyte.
22357 (read_vector): Call Fread with a cons. If readcharfun is
22358 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22359 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22360 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22361 and Qload_force_doc_strings.
22362
223632008-02-01 Kenichi Handa <handa@m17n.org>
22364
22365 * xdisp.c (face_before_or_after_it_pos): Call
22366 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22367
223682008-02-01 Kenichi Handa <handa@m17n.org>
22369
22370 * character.h (TRAILING_CODE_P): New macro.
22371 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22372 (string_char_with_unification): Fix prototype.
22373 (Vscript_alist): Extern it.
22374
22375 * character.c (Vscript_alist): New variable.
22376 (string_char_with_unification, str_as_unibyte)
22377 (string_escape_byte8): Add `const' to local variables.
22378 (syms_of_character): Declare script-alist as a Lisp variable.
22379
22380 * charset.h (Vcharset_ordered_list): Extern it.
22381 (charset_ordered_list_tick): Extern it.
22382 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22383 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22384 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22385 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22386 (Funify_charset): Adjust for the change of Funify_charset.
22387
22388 * charset.c (charset_ordered_list_tick): New variable.
22389 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22390 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 22391 deunify instead of unify a charset.
aac0c6e3
MR
22392 (string_xstring_p): Add `const' to local variables.
22393 (find_charsets_in_text): Add `const' to arguments and local variables.
22394 (encode_char): Adjust for the change of Funify_charset. Fix
22395 detecting of invalid code.
22396 (Fset_charset_priority): Increment charset_ordered_list_tick.
22397 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22398 and TO_CODE.
22399
22400 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22401 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22402 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22403 (decode_coding_ccl, consume_chars)
22404 (Ffind_coding_systems_region_internal)
22405 (Fcheck_coding_systems_region): Add `const' to local variables.
22406
22407 * print.c (print_object): Use octal form for printing the
22408 contents of a bool vector.
22409
224102008-02-01 Dave Love <fx@gnu.org>
22411
22412 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22413 <version == 20>: Refuse to load.
22414
224152008-02-01 Dave Love <fx@gnu.org>
22416
22417 * fns.c: Move coding.h.
22418 (Qcodeset, Qdays, Qmonths): New.
22419 (concat): Use CHARACTERP instead of INTEGERP.
22420 (Flocale_codeset): Delete.
22421 (Flanginfo): New function.
22422 (syms_of_fns): Change accordingly.
22423
22424 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22425
224262008-02-01 Dave Love <fx@gnu.org>
22427
22428 * casetab.c (init_casetab_once, init_casetab_once): Fix
22429 CHAR_TABLE_SET call.
22430
22431 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22432
22433 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22434
22435 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22436 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22437 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22438
22439 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22440
22441 * coding.c (ENCODE_DESIGNATION, decode_eol)
22442 (make_conversion_work_buffer, code_conversion_restore)
22443 (Fdefine_coding_system_internal): Convert Lisp types.
22444 (code_conversion_restore): Use EQ, not ==.
22445 (Fencode_coding_string): Fix code_convert_string call.
22446
22447 * coding.h (code_convert_region): Fix prototype.
22448
22449 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22450
22451 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22452 (Ffontset_info): Convert Lisp types.
22453
22454 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22455
22456 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22457
22458 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22459
22460 * chartab.c: Include "...h", not <...h> in some cases.
22461
22462 * callproc.c (Fcall_process): Remove unused variables.
22463
224642008-02-01 Dave Love <fx@gnu.org>
22465
22466 * coding.c (Fset_coding_system_priority): Allow null arg list.
22467
224682008-02-01 Dave Love <fx@gnu.org>
22469
22470 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22471 (Fself_insert_and_exit): Use CHARACTERP.
22472
22473 * callproc.c (Fcall_process): Remove unused vars.
22474
22475 * xterm.c (XTread_socket): Add extra dead keysyms.
22476
22477 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22478
22479 * dispextern.h: Remove prototypes for redraw_frame,
22480 redraw_garbaged_frames.
22481
22482 * cmds.c (Fself_insert_command): Use CHARACTERP.
22483
22484 * chartab.c (make_sub_char_table): Remove unused var.
22485 (Fset_char_table_default, Fmap_char_table): Doc fix.
22486
22487 * keymap.c (access_keymap): Remove generic char code.
22488 (push_key_description): Use CHARACTERP.
22489
224902008-02-01 Dave Love <fx@gnu.org>
22491
22492 * charset.c: Doc fixes.
22493 (Funify_charset): Extra checking.
22494
224952008-02-01 Dave Love <fx@gnu.org>
22496
22497 * lread.c: Remove some unused variables.
22498 (safe_to_load_p): If safe, return the magic number version byte.
22499 (Fload): Maybe use load-with-code-conversion.
22500
225012008-02-01 Kenichi Handa <handa@m17n.org>
22502
22503 * category.c (Fmodify_category_entry): Don't modify the contents
22504 of category_set for characters out of the range. Avoid
22505 unnecessary modification.
22506
22507 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22508 Vchar_unify_table. The default value of the table is now nil.
22509
22510 * character.c (syms_of_character): Setup Vchar_width_table for
22511 eight-bit-control and raw-byte chars.
22512
22513 * charset.h (enum define_charset_arg_index): Delete
22514 charset_arg_parents and add charset_arg_subset and
22515 charset_arg_superset.
22516 (enum charset_attr_index): Delete charset_parents and add
22517 charset_subset and charset_superset.
22518 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22519 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22520 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22521 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22522 (CHARSET_SUPERSET): New macros.
22523 (charset_work): Extern it.
22524 (ENCODE_CHAR): Use charset_work.
22525 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22526 (map_charset_chars): Extern it.
22527
22528 * charset.c (load_charset_map): Set the default value of encoder
22529 and deunifier char-tables to nil.
22530 (map_charset_chars): Change argument. Change callers. Use
22531 map_char_table_for_charset instead of map_char_table.
22532 (Fmap_charset_chars): New optional args from_code and to_code.
22533 (Fdefine_charset_internal): Adjust for the change of
22534 `define-charset' (:parents -> :subset or :superset).
22535 (charset_work): New variable.
22536 (encode_char, syms_of_charset): Adjust for the change of
22537 Fdefine_charset_internal.
22538 (Ffind_charset_string): Setup the vector `charsets' correctly.
22539
22540 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22541 the previous change.
22542 (char_table_ref_and_range): Adjust for the above change.
22543 (map_sub_char_table_for_charset): New function.
22544 (map_char_table_for_charset): New function.
22545
22546 * keymap.c (describe_vector): Handle a char-table directly here.
22547 (describe_char_table): Delete.
22548
22549 * lisp.h (map_charset_chars): Delete.
22550
225512008-02-01 Dave Love <fx@gnu.org>
22552
22553 * fns.c (count_combining): Comment out (unused).
22554 (Flocale_codeset): New.
22555 (syms_of_fns): Defsubr it.
22556
22557 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22558 (size_t): Remove.
22559
225602008-02-01 Dave Love <fx@gnu.org>
22561
22562 * Makefile.in (chartab.o): Depend on charset.h.
22563
225642008-02-01 Kenichi Handa <handa@m17n.org>
22565
22566 * character.c (syms_of_character): Set the default value of
22567 Vprintable_chars to Qnil.
22568
225692008-02-01 Dave Love <fx@gnu.org>
22570
22571 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22572
225732008-02-01 Kenichi Handa <handa@m17n.org>
22574
22575 * charset.c (load_charset_map): Handle the case that from < to
22576 correctly.
22577
22578 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22579 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22580 Pay attention to raw-8-bit chars.
22581
225822008-02-01 Kenichi Handa <handa@m17n.org>
22583
22584 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22585 It is not bytecompiled now.
22586
22587 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22588 (charset_jisx0208): New variables.
22589 (Fdefine_charset_internal): Setup them if appropriate.
22590 (init_charset_once): Initialize them to -1.
22591
22592 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22593 (charset_jisx0208): Extern them.
22594
22595 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22596 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22597 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22598 (setup_iso_safe_charsets): Fix arguments to Fassq.
22599 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22600 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22601 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22602 (encode_coding_iso_2022): Change the 1st arg to
22603 ENCODE_ISO_CHARACTER to a variable.
22604
226052008-02-01 Kenichi Handa <handa@m17n.org>
22606
22607 * charset.h (enum define_charset_arg_index): New enums
22608 charset_arg_min_code and charset_arg_max_code.
22609 (struct charset): New member char_index_offset.
22610
22611 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22612 Take charset->char_index_offset into account.
22613 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22614 args[charset_arg_max_code]. Setup charset.char_index_offset.
22615 (syms_of_charset): Fix args to Fdefine_charset_internal.
22616
226172008-02-01 Dave Love <fx@gnu.org>
22618
22619 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22620
226212008-02-01 Dave Love <fx@gnu.org>
22622
22623 * coding.c: Doc fixes.
22624 (Fcoding_system_aliases): Fix return value.
22625 (Qmac): Remove (duplicated) definition.
22626
226272008-02-01 Dave Love <fx@gnu.org>
22628
362654a6
JB
22629 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22630 New functions.
aac0c6e3
MR
22631
22632 * character.c (Fstring): Doc fix.
22633
22634 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22635
362654a6 22636 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
22637 (font-encoding-alist): Doc fix.
22638
226392008-02-01 Dave Love <fx@gnu.org>
22640
22641 * term.c (costs_set): Declare static, non-initialized for pcc.
22642 (encode_terminal_code): Remove unused var.
22643
22644 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22645 for K&R.
22646
22647 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22648
22649 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22650 (suffixes): Move out of make_subsidiaries for K&R.
22651
22652 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22653
22654 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22655
226562008-02-01 Dave Love <fx@gnu.org>
22657
22658 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22659
22660 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22661
226622008-02-01 Yong Lu <lyongu@asia-infonet.com>
22663
22664 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22665
22666 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22667
226682008-02-01 Kenichi Handa <handa@m17n.org>
22669
22670 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22671 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22672
226732008-02-01 Kenichi Handa <handa@m17n.org>
22674
22675 * coding.c (decode_coding_charset): Adjust for the change of
22676 Fdefine_coding_system_internal.
22677 (Fdefine_coding_system_internal): For a coding system of
22678 `charset' type, store a list of charset IDs in
22679 `charset_attr_charset_valids' element of coding attributes.
22680
226812008-02-01 Kenichi Handa <handa@m17n.org>
22682
22683 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22684 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22685 caller. Handle 2-byte and 3-byte charsets correctly.
22686 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22687 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22688 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22689 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22690 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22691 sequence.
22692 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22693 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22694 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22695 and alt&rule composition.
22696 (decode_coding_iso_2022): Handle composition correctly.
22697 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22698
22699 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22700 re-defining a charset. If the charset has :emacs-mule-id, setup
22701 emacs_mule_bytes.
22702 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22703
227042008-02-01 Kenichi Handa <handa@m17n.org>
22705
22706 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22707 (encode_coding_big5, encode_coding_charset): If coding requires safe
22708 encoding, produce a character specified by
22709 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22710
227112008-02-01 Dave Love <fx@gnu.org>
22712
22713 * xterm.c (XSetIMValues): Declare.
22714
22715 * process.c: Conditionally include sys/wait.h, pty.h.
22716
22717 * print.c (print_object): Fix print format for 64-bit systems.
22718
22719 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22720
22721 * buffer.c (emacs_strerror): Declare.
22722
22723 * fontset.c (Fclear_face_cache): Declare.
22724 (accumulate_font_info): Comment-out (unused).
22725 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22726 variables.
22727
22728 * character.h (string_escape_byte8): Declare.
22729
22730 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22731 unused vars.
22732 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22733 (Fmap_charset_chars): Doc fix.
22734
22735 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22736 (Fset_coding_system_priority, Fset_coding_system_priority)
22737 (Fdefine_coding_system_internal): Doc fix.
22738
227392008-02-01 Dave Love <fx@gnu.org>
22740
22741 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22742
227432008-02-01 Kenichi Handa <handa@m17n.org>
22744
22745 * character.c (string_escape_byte8): Make multibyte string with
22746 correct size.
22747
22748 * charset.c (Fmake_char): Delete unnecessary code.
22749
227502008-02-01 Kenichi Handa <handa@m17n.org>
22751
22752 * xfns.c (x_encode_text): Allocate coding.destination here, and
22753 call encode_coding_object with dst_object Qnil.
22754
22755 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22756 multibyte form correctly.
22757
22758 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22759 against Vfont_encoding_alist.
22760
22761 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22762 handling of charset list.
22763 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22764 (decode_coding_object): Move point to coding->dst_pos before
22765 calling post-read-conversion function.
22766 (encode_coding_object): Give correct arguments to
22767 pre-write-conversion. Ignore the return value of
22768 pre-write-conversion function. Pay attention to the case that
22769 pre-write-conversion changes the current buffer. If dst_object is
22770 Qt, even if coding->src_bytes is zero, allocate at least one byte
22771 to coding->destination.
22772
22773 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22774
22775 * charset.c (Fmake_char): Make it more backward compatible.
22776 (Fmap_charset_chars): Fix docstring.
22777
227782008-02-01 Dave Love <fx@gnu.org>
22779
22780 * coding.c: Doc fixes.
22781 (Fdefine_coding_system_alias): Use names, not symbols, in
22782 coding-system-alist.
22783
227842008-02-01 Kenichi Handa <handa@m17n.org>
22785
22786 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22787 of calling free_realized_face.
22788
227892008-02-01 Yong Lu <lyongu@asia-infonet.com>
22790
22791 * charset.c (read_hex): Don't treat SPC as a comment starter.
22792 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22793 (Fdecode_char): Fix typo.
22794
227952008-02-01 Kenichi Handa <handa@m17n.org>
22796
22797 * charset.h (struct charset): New member `code_space_mask'.
22798
22799 * coding.c (coding_set_source): Delete the local variable beg_byte.
22800 (encode_coding_charset, Fdefine_coding_system_internal):
22801 Delete the local variable charset.
22802 (Fdefine_coding_system_internal): Setup
22803 attrs[coding_attr_charset_valids] correctly.
22804
22805 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22806 member to check if CODE is valid or not.
22807 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22808 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22809 is within the range of charset->min_code and carset->max_code.
22810
228112008-02-01 Dave Love <fx@gnu.org>
22812
22813 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22814
22815 * dispextern.h (generate_ascii_font): Fix return type.
22816
22817 * xfaces.c (generate_ascii_font): Fix arg declaration.
22818
22819 * coding.c (coding_inherit_eol_type)
22820 (Fset_terminal_coding_system_internal)
22821 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22822
228232008-02-01 Kenichi Handa <handa@m17n.org>
22824
22825 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22826 multiple charsets correctly.
22827
228282008-02-01 Kenichi Handa <handa@m17n.org>
22829
22830 * search.c (boyer_moore): Fix handling of multibyte character
22831 translation.
22832
22833 * xdisp.c (display_mode_element): When the variable `elt' is
22834 changed, update `this' and `lisp_string'.
22835
228362008-02-01 Kenichi Handa <handa@m17n.org>
22837
22838 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22839
22840 * callproc.c (Fcall_process): Be sure to give the current buffer
22841 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22842
22843 * charset.c (struct charset_map_entries): New struct.
22844 (load_charset_map): Rename from parse_charset_map. New args
22845 entries and n_entries. Change caller.
22846 (load_charset_map_from_file): Rename from load_charset_map.
22847 Change caller. New arg control_flag. Call load_charset_map at
22848 the tail.
22849 (load_charset_map_from_vector): New function.
22850 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22851 (encode_char): If the charset is compact, change a character index
22852 to a code point.
22853
22854 * coding.c (coding_alloc_by_making_gap): Check the case that the
22855 source and destination are the same correctly.
22856 (decode_coding_raw_text): Set coding->consumed_char and
22857 coding->consumed to 0.
22858 (produce_chars): If coding->chars_at_source is nonzero, update
22859 coding->consumed_char and coding->consumed before calling
22860 alloc_destination.
22861 (Fdefine_coding_system_alias): Register ALIAS in
22862 Vcoding_system_alist.
22863 (syms_of_coding): Define `no-conversion' coding system at the tail.
22864
22865 * fileio.c (Finsert_file_contents): Set coding_system instead of
22866 val. If the current buffer is multibyte, always call
22867 decode_coding_gap.
22868
22869 * xfaces.c (try_font_list): Give higher priority to fontset's
22870 family than face's family.
22871
228722008-02-01 Kenichi Handa <handa@m17n.org>
22873
22874 * callproc.c (Fcall_process): Be sure to give the current buffer
22875 to decode_coding_c_string.
22876
22877 * xfaces.c (try_font_list): Give a family specified in a fontset
22878 higher priority than a family specified in a face.
22879
228802008-02-01 Kenichi Handa <handa@m17n.org>
22881
22882 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22883 Fix arguments to insert_from_buffer.
22884
22885 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22886
228872008-02-01 Kenichi Handa <handa@m17n.org>
22888
22889 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22890 (decode_coding_gap): Set coding->dst_multibyte correctly.
22891
228922008-02-01 Kenichi Handa <handa@m17n.org>
22893
22894 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22895 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22896 (encode_coding_utf_16): Substitute coding->default_char for
22897 non-Unicode characters.
22898 (decode_coding): Don't call record_insert here.
22899 (setup_coding_system): Initialize `surrogate' of
22900 coding->spec.utf_16 to 0.
22901 (EMIT_ONE_BYTE): Fix for multibyte case.
22902
22903 * insdel.c (insert_from_gap): Call record_insert.
22904
229052008-02-01 Kenichi Handa <handa@m17n.org>
22906
22907 * casefiddle.c (casify_region): Fix multibyte case.
22908
22909 * character.c (c_string_width): Add return type `int'.
22910 (char_string_with_unification): Delete arg ADVANCED.
22911
22912 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22913 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22914 (CHAR_STRING_ADVANCE): Make it do-while statement.
22915
22916 * chartab.c (sub_char_table_set_range): Optimize for the case
22917 DEPTH == 3. Add workaround code for a GCC optimization bug.
22918
22919 * charset.c (parse_charset_map): Remove an unused variable.
22920
22921 * coding.c: Delete unused variables.
22922
22923 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22924 earlier. If inserted is zero and the coding system doesn't
22925 require flushing, don't call decode_coding_gap.
22926
22927 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22928
229292008-02-01 Kenichi Handa <handa@m17n.org>
22930
22931 The following changes are for using Unicode as an internal
22932 character model, and use UTF-8 format for buffer/string
22933 representation.
22934
22935 * .gdbinit (xchartable): Adjust for the change of char table structure.
22936 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22937
22938 * Makefile.in (obj): Add character.o and chartab.o.
22939 (lisp, shortlisp): Remove utf-8.elc.
22940 (*.o): For many files, change dependency on charset.h to
22941 character.h, and add dependency on character.h.
22942 (character.o, chartab.o): New targets.
22943
22944 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22945 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22946 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22947 of "charset.h".
22948
22949 * dired.c, filelock.c: Include "character.h".
22950
22951 * alloc.c: Include "character.h" instead of "charset.h".
22952 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22953 (syms_of_alloc): Remove defsubr for Smake_char_table.
22954
22955 * buffer.c: Include "character.h" instead of "charset.h", don't
22956 include "coding.h".
22957 (Fset_buffer_multibyte): Adjust for UTF-8.
22958
22959 * buffer.h: EXFUN Fbuffer_live_p.
22960
22961 * callproc.c: Include "character.h" instead of "charset.h".
22962 (Fcall_process): Big change for the new code-conversion APIs.
22963
22964 * casetab.c: Include "character.h" instead of "charset.h".
22965 (set_canon, set_identity, shuffle): Adjust for the new
22966 map_char_table spec.
22967 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22968 accessing the char table structure.
22969
22970 * chartab.c: New file that implements char table.
22971
22972 * category.c: Include "character.h".
22973 (copy_category_entry): New function.
22974 (copy_category_table): Call map_char_table and copy_category_entry.
22975 (Fmake_category_table): Initialize all top-level slots.
22976 (char_category_set): New function.
22977 (modify_lower_category_set): Delete.
22978 (Fmodify_category_entry): Call char_table_ref_and_range.
22979
22980 * category.h (CATEGORY_SET): Just call char_category_set.
22981
22982 * ccl.c: Include "character.h".
22983 (Qccl, Qcclp): New variables.
22984 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22985 it's less than 256.
22986 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22987 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22988 and DST type.
22989 (ccl_driver): Change types of argument, adjust code accordingly.
22990 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22991 ccl_driver.
22992 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22993
22994 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22995 New members src_multibyte, dst_multibyte, consumed, and produced.
22996 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22997 (CODING_SPEC_CCL_PROGRAM): New macro.
22998 (ccl_driver): Update prototype.
22999 (Qccl, Qcclp, Fccl_program_p): Extern them.
23000 (CHECK_CCL_PROGRAM): New macro.
23001
23002 * character.c, character.h, chartab.c: New files.
23003
23004 * charset.c: Mostly re-written. Move character and multibyte sequence
23005 handling codes to character.c.
23006
23007 * charset.h: Mostly re-written. Move character and multibyte sequence
23008 handling codes to character.h.
23009
23010 * coding.c, coding.h: Mostly re-written.
23011
23012 * composite.c: Include "character.h" instead of "charset.h".
23013 (CHAR_WIDTH): Move to character.h.
23014 (HASH_KEY, HASH_VALUE): Delete.
23015
23016 * composite.h (enum composition_method): Change order of enumeration
23017 symbols.
23018
23019 * data.c: Include "character.h" instead of "charset.h".
23020 (Faref): Call CHAR_TABLE_REF for a char table.
23021 (Faset): Call CHAR_TABLE_SET for a char table.
23022
23023 * dispextern.h (free_realized_face, check_face_attribytes)
23024 (generate_ascii_font): Extern them.
23025 (free_realized_multibyte_face): Delete extern.
23026
23027 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23028 table structure.
23029
23030 * editfns.c: Include "character.h" instead of "charset.h".
23031 (Fchar_to_string): Always call CHAR_STRING.
23032
23033 * emacs.c (main): Call init_charset_once, init_charset,
23034 syms_of_chartab, and syms_of_character.
23035
23036 * fileio.c: Include "character.h" instead of "charset.h".
23037 (Finsert_file_contents): Big change for the new code-conversion API.
23038 (choose_write_coding_system, Fwrite_region): Likewise.
23039 (build_annotations_2): Delete.
23040 (e_write): Big change for the new code-conversion API.
23041
23042 * fns.c: Include "character.h" instead of "charset.h".
23043 (copy_sub_char_table): Move to chartab.c.
23044 (Fcopy_sequence): Call copy_char_table for a char table.
23045 (concat): Delete codes calling count_multibyte.
23046 (string_char_to_byte, string_byte_to_char): Adjust for the new
23047 multibyte form.
23048 (internal_equal): Adjust for the change of char table structure.
23049 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23050 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23051 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23052 (char_table_translate, optimize_sub_char_table)
23053 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23054 chartab.c.
23055 (char_table_ref_and_index): Delete.
23056 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23057 (Fmd5): Call preferred_coding_system instead of accessing
23058 Vcoding_category_list. Adjust for the new code-conversion API.
23059 (syms_of_fns): Move defsubr for char table related functions to
23060 chartab.c.
23061
23062 * fontset.c: Mostly re-written.
23063
23064 * fontset.h (struct font_info): Change type of the member encoding_type.
23065 (enum FONT_SPEC_INDEX): New enum.
23066 (fontset_font_pattern, fs_load_font): Update prototype.
23067 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23068
23069 * indent.c: Include "character.h" instead of "charset.h".
23070 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23071
23072 * insdel.c: Include "character.h" instead of "charset.h".
23073 (copy_text): Don't refer to Vnonascii_translation_table.
23074 (insert_from_gap): New function.
23075
23076 * keyboard.c: Include "character.h" instead of "charset.h".
23077 (command_loop_1): Never call direct_output_forward_char before
23078 a non-ASCII character.
23079 (read_char): If Vkeyboard_translate_table is a char table, always
23080 translate a character.
23081
23082 * keymap.c: Include "character.h".
23083 (store_in_keymap): Handle the case that IDX is a cons.
23084 (Fdefine_key): Handle the case that KEY is a cons and the car part
23085 is also a cons (range).
23086 (push_key_description): Adjust for the new character code.
23087 (describe_vector): Call describe_char_table for a char table.
23088 (describe_char_table): New function.
23089
23090 * keymap.h (describe_char_table): Extern it.
23091
23092 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23093 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23094 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23095 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23096 Delete.
23097 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23098 structure.
23099 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23100 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23101 (CHARTAB_SIZE_BITS_3): New macros.
23102 (chartab_size): Extern it.
23103 (struct Lisp_Char_Table): Re-design.
23104 (struct Lisp_Sub_Char_Table): New structure.
23105 (HASH_KEY, HASH_VALUE): Move from fns.c.
23106 (CHARACTERBITS): Define as 22.
23107 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23108 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23109 (GC_SUB_CHAR_TABLE_P): New macro.
23110 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23111 (code_convert_string_norecord): Deleted extern.
23112 (init_character_once, syms_of_character, init_charset)
23113 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23114
23115 * lread.c: Include "character.h".
23116 (read_multibyte): New arg NBYTES.
23117 (read_escape): Change the meaning of returned *BYTEREP.
23118 (to_multibyte): Delete.
23119 (read1): Adjust the handling of char table and string.
23120
23121 * print.c: Include "character.h" instead of "charset.h".
23122 (print_string): Convert 8-bit raw bytes to octal form by
23123 string_escape_byte8.
23124 (print_object): Adjust for the new multibyte form. Print 8-bit
23125 raw bytes always in octal form. Handle sub char table correctly.
23126
23127 * process.c: Include "character.h" instead of "charset.h".
23128 (read_process_output, send_process): Adjust for the new
23129 code-conversion API.
23130
23131 * puresize.h (BASE_PURESIZE): Increase.
23132
23133 * regex.c: Include "character.h" instead of "charset.h".
23134 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23135 (regex_compile): Accept a range whose starting and ending
23136 character have different leading bytes.
23137 (analyse_first): Adjust for the above change.
23138
23139 * search.c: Include "character.h" instead of "charset.h".
23140 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23141 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23142
23143 * syntax.c: Include "character.h" instead of "charset.h".
23144 (syntax_parent_lookup): Delete.
23145 (Fmodify_syntax_entry): Accept a cons as CHAR.
23146 (skip_chars): Adjust for the new multibyte form.
23147 (init_syntax_once): Call char_table_set_range instead of directly
23148 accessing the structure of a char table.
23149
23150 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23151 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23152 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23153 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23154
23155 * term.c: Include "buffer.h" and "character.h".
23156 (encode_terminal_code, write_glyphs): Adjust for the new
23157 code-conversion API.
23158 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23159
23160 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23161
23162 * xdisp.c: Include "character.h".
23163 (get_next_display_element): Adjust for the new multibyte form.
23164 (disp_char_vector): Adjust for the new char table structure.
23165 (decode_mode_spec_coding): Adjust for the new structure of
23166 coding system.
23167 (decode_mode_spec): Adjust for the new code-conversion API.
23168
23169 * xfaces.c: Include "character.h" instead of "charset.h".
23170 (load_face_font): Adjust for the change of choose_face_font and
23171 FS_LOAD_FONT.
23172 (generate_ascii_font): New function.
23173 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23174 (set_font_frame_param): Adjust for the change of choose_face_font.
23175 (free_realized_face): Make it public.
23176 (free_realized_faces_for_fontset): Rename from
23177 free_realized_multibyte_face. Free also faces realized for ASCII.
23178 (choose_face_font): Change arguments. Adjust for the change of
23179 fontset_font_pattern and FS_LOAD_FONT.
23180
23181 * xfns.c: Include "character.h".
23182 (x_encode_text): Adjust for the new code-conversion API.
23183
23184 * xselect.c: Don't include "charset.h".
23185 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23186
23187 * xterm.c: Include "character.h".
23188 (x_encode_char): New argument CHARSET. Change caller.
23189 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23190 Call ENCODE_CHAR instead of SPLIT_CHAR.
23191 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23192 CHAR_WIDTH instead of CHARSET_WIDTH.
23193 (XTread_socket): Adjust for the new code-conversion API.
23194 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23195 (x_load_font): Adjust for the change of struct font.
23196
231972008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23198
23199 * xfaces.c (face_at_buffer_position): Remove unused vars.
23200
232012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23202
23203 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23204 Fix overflow checking.
23205
232062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23207
23208 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23209 Cancel previous change.
23210
232112008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23212
23213 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23214 ccl->eight_bit_control. Fix check for buffer overflow.
23215 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23216 (ccl_driver): Initialize extra_bytes to 0.
23217
232182008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23219
23220 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23221 return it ORed with ctrl_modifier.
23222
232232008-01-29 Miles Bader <miles@gnu.org>
23224
23225 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23226
232272008-01-28 Jason Rumney <jasonr@gnu.org>
23228
23229 * w32.c (stat): Don't double check for networked drive.
23230
232312008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23232
23233 * window.c (run_window_configuration_change_hook): New function.
23234 Code extracted from set_window_buffer. Set the selected frame.
23235 (set_window_buffer): Use it.
23236 * window.h (run_window_configuration_change_hook): Declare.
23237 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23238
23239 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23240
232412008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23242
23243 * Makefile.in: Remove references to unused macros.
23244
232452008-01-26 Eli Zaretskii <eliz@gnu.org>
23246
23247 * w32.c (g_b_init_get_sid_sub_authority)
23248 (g_b_init_get_sid_sub_authority_count): New static variables.
23249 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23250 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23251 (init_user_info): Use them to retrieve uid and gid.
23252 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23253 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23254 st_uid and st_gid of the file.
23255
232562008-01-26 Jason Rumney <jasonr@gnu.org>
23257
23258 * w32.c (logon_network_drive): New function.
23259 (stat): Use it.
23260
232612008-01-26 Chong Yidong <cyd@stupidchicken.com>
23262
23263 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23264 invisible text covered with an ellipsis.
23265
232662008-01-25 Richard Stallman <rms@gnu.org>
23267
23268 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23269 jump back to beginning. Move some other initializations after that.
23270 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23271 New variables.
23272 (syms_of_xdisp): Init them.
23273
23274 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23275
23276 * buffer.c (reset_buffer_local_variables):
23277 Implement `permanent-local-hook'.
23278 (Qpermanent_local_hook): New variable.
23279 (syms_of_buffer): Init and staticpro it.
23280
232812008-01-25 Michael Albinus <michael.albinus@gmx.de>
23282
23283 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23284
232852008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23286
23287 * fns.c (Fclrhash): Return TABLE.
23288
232892008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23290
23291 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23292 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23293 is set even without positional changes.
23294 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23295
23296 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23297
232982008-01-23 Jason Rumney <jasonr@gnu.org>
23299
23300 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23301
23302 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23303 the unicode range available in MULE by locale-coding-system.
23304 Improve dbcs lead byte detection. Set event timestamp and modifiers
23305 earlier.
23306
233072008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23308
23309 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23310 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23311 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23312 when used on child processes.
23313
233142008-01-21 Michael Albinus <michael.albinus@gmx.de>
23315
23316 * dbusbind.c (Fdbus_method_return_internal): Rename from
23317 Fdbus_method_return.
23318 (Fdbus_unregister_object): Move to dbus.el.
23319 (Fdbus_call_method, Fdbus_method_return_internal)
23320 (Fdbus_send_signal): Improve debug messages.
23321
233222008-01-20 Martin Rudalics <rudalics@gmx.at>
23323
23324 * undo.c (undo_inhibit_record_point): New variable.
23325 (syms_of_undo): Initialize it.
23326 (record_point): Don't record point when undo_inhibit_record_point
23327 is set.
23328
233292008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23330
23331 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23332
23333 * xdisp.c (Qauto_hscroll_mode): New var.
23334 (syms_of_xdisp): Initialize it.
23335 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23336 window's buffer.
23337 (hscroll_windows): Don't check automatic_hscrolling_p here.
23338
23339 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23340 vscroll if we're setting window-buffer to the value it already has.
23341
233422008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23343
23344 * m/intel386.h: Remove references to XENIX.
23345
233462008-01-17 Andreas Schwab <schwab@suse.de>
23347
23348 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23349 instead of HAVE_X86_64_LIB64_DIR.
23350 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23351
233522008-01-17 Glenn Morris <rgm@gnu.org>
23353
23354 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23355 to HAVE_X86_64_LIB64_DIR.
23356
233572008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23358
23359 * s/irix3-3.h:
23360 * s/irix4-0.h:
23361 * s/386-ix.h:
23362 * s/domain.h:
23363 * s/hpux9-x11r4.h:
23364 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23365
23366 * sysdep.c: Remove code containing references to symbols defined
23367 by unsupported systems.
23368
233692008-01-16 Glenn Morris <rgm@gnu.org>
23370
23371 * coding.c (select-safe-coding-system-function): Doc fix.
23372
233732008-01-15 Glenn Morris <rgm@gnu.org>
23374
23375 * config.in: Revert 2008-01-13 change: this is a generated file.
23376
233772008-01-13 Tom Tromey <tromey@redhat.com>
23378
23379 * lisp.h: Fix typo.
23380
233812008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23382
23383 * m/sequent-ptx.h:
23384 * m/sequent.h:
23385 * s/ptx.h:
23386 * s/ptx4-2.h:
23387 * s/ptx4.h: Remove files for systems no longer supported.
23388
23389 * callproc.c (Fcall_process): Fix previous change.
23390
233912008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23392
23393 * unexsunos4.c: Remove file, system not supported anymore.
23394
23395 * m/mips.h:
23396 * m/intel386.h:
23397 * callproc.c:
23398 * config.in:
23399 * ecrt0.c:
23400 * emacs.c:
23401 * fileio.c:
23402 * frame.c:
23403 * getpagesize.h:
23404 * keyboard.c:
23405 * lread.c:
23406 * process.c:
23407 * puresize.h:
23408 * sysdep.c:
23409 * systty.h:
23410 * syswait.h:
23411 * unexec.c:
23412 * xdisp.c:
23413 * alloc.c: Remove code containing references to symbols defined by
23414 unsupported systems.
23415
234162008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23417
23418 * coding.c (detect_coding_mask): Fix previous change.
23419
234202008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23421
23422 * coding.c (detect_coding_iso2022): New arg
23423 latin_extra_code_state. Allow Latin extra codes only
23424 when *latin_extra_code_state is nonzero.
23425 (detect_coding_mask): If there is a NULL byte, detect the encoding
23426 as UTF-16 or binary. If Latin extra codes exist, detect the
23427 encoding as ISO-2022 only when there's no other proper encoding is
23428 found.
23429
234302008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23431
23432 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23433 #ifdef MAC_OS.
23434
234352008-01-08 Richard Stallman <rms@gnu.org>
23436
23437 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23438
234392008-01-06 Nick Roberts <nickrob@snap.net.nz>
23440
23441 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23442 menu bar in parentheses.
23443
234442008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23445
23446 * m/7300.h:
23447 * m/acorn.h:
23448 * m/alliant-2800.h:
23449 * m/alliant.h:
23450 * m/alliant1.h:
23451 * m/alliant4.h:
23452 * m/altos.h:
23453 * m/amdahl.h:
23454 * m/apollo.h:
23455 * m/att3b.h:
23456 * m/aviion-intel.h:
23457 * m/aviion.h:
23458 * m/celerity.h:
23459 * m/clipper.h:
23460 * m/cnvrgnt.h:
23461 * m/convex.h:
23462 * m/cydra5.h:
23463 * m/delta88k.h:
23464 * m/dpx2.h:
23465 * m/dual.h:
23466 * m/elxsi.h:
23467 * m/f301.h:
23468 * m/gould-np1.h:
23469 * m/gould.h:
23470 * m/i860.h:
23471 * m/ibmps2-aix.h:
23472 * m/ibmrt-aix.h:
23473 * m/ibmrt.h:
23474 * m/irist.h:
23475 * m/is386.h:
23476 * m/isi-ov.h:
23477 * m/mega68.h:
23478 * m/mg1.h:
23479 * m/news-r6.h:
23480 * m/news-risc.h:
23481 * m/news.h:
23482 * m/nh3000.h:
23483 * m/nh4000.h:
23484 * m/ns16000.h:
23485 * m/ns32000.h:
23486 * m/nu.h:
23487 * m/orion.h:
23488 * m/orion105.h:
23489 * m/paragon.h:
23490 * m/pfa50.h:
23491 * m/plexus.h:
23492 * m/pyramid.h:
23493 * m/pyrmips.h:
23494 * m/sh3el.h:
23495 * m/sps7.h:
23496 * m/sr2k.h:
23497 * m/stride.h:
23498 * m/sun1.h:
23499 * m/sun2.h:
23500 * m/sun3-68881.h:
23501 * m/sun3-fpa.h:
23502 * m/sun3-soft.h:
23503 * m/sun3.h:
23504 * m/sun386.h:
23505 * m/symmetry.h:
23506 * m/tad68k.h:
23507 * m/tahoe.h:
23508 * m/targon31.h:
23509 * m/tek4300.h:
23510 * m/tekxd88.h:
23511 * m/tower32.h:
23512 * m/tower32v3.h:
23513 * m/ustation.h:
23514 * m/wicat.h:
23515 * m/xps100.h:
23516 * s/cxux.h:
23517 * s/cxux7.h:
23518 * s/dgux.h:
23519 * s/dgux4.h:
23520 * s/dgux5-4-3.h:
23521 * s/dgux5-4r2.h:
23522 * s/esix.h:
23523 * s/esix5r4.h:
23524 * s/hiuxmpp.h:
23525 * s/hiuxwe2.h:
23526 * s/iris3-5.h:
23527 * s/iris3-6.h:
23528 * s/isc2-2.h:
23529 * s/isc3-0.h:
23530 * s/isc4-0.h:
23531 * s/isc4-1.h:
23532 * s/newsos5.h:
23533 * s/newsos6.h:
23534 * s/osf1.h:
23535 * s/osf5-0.h:
23536 * s/riscix1-1.h:
23537 * s/riscix12.h:
23538 * s/sco4.h:
23539 * s/sco5.h:
23540 * s/sunos4-0.h:
23541 * s/sunos4-1.h:
23542 * s/sunos413.h:
23543 * s/sunos4shr.h:
23544 * s/umax.h:
23545 * s/unipl5-2.h:
23546 * s/xenix.h:
23547 * cxux-crt0.s:
23548 * unexapollo.c:
23549 * unexconvex.c:
23550 * unexenix.c:
23551 * unexsni.c: Remove files for systems no longer supported.
23552
23553 * m/intel386.h: Remove references to unsupported systems.
23554
23555 * w32.c (get_emacs_configuration): Remove reference to i860.
23556
23557 * sysdep.c: Remove dead code.
23558
235592008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23560
23561 * s/rtu.h:
23562 * m/masscomp.h: Remove files. Platform is obsolete.
23563
235642008-01-04 Michael Albinus <michael.albinus@gmx.de>
23565
23566 * dbusbind.c (Fdbus_method_return): New function.
23567 (xd_read_message): Add the serial number to the event.
23568 (Fdbus_register_method): Activate the function.
23569
235702008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23571
23572 * keyboard.c (read_key_sequence): Fix typo.
23573
235742008-01-03 Michael Albinus <michael.albinus@gmx.de>
23575
23576 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23577 (xd_signature, xd_append_arg): Handle element type detection for
23578 empty arrays.
23579 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23580 SDATA () calls; this must be solved more general.
23581 (Fdbus_register_signal): Use SBYTES instead of strlen.
23582
235832008-01-03 Magnus Henoch <magnus@zemdatav>
23584
23585 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23586 unsigned int for byte values (necessary for big-endian platform).
23587 (Fdbus_call_method): Handle the case of no returned arguments.
23588
235892007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23590
23591 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23592
235932007-12-31 Magnus Henoch <mange@freemail.hu>
23594
23595 * dbusbind.c (xd_signature): Signature of variant is just "v".
23596
235972007-12-30 Michael Albinus <michael.albinus@gmx.de>
23598
23599 * dbusbind.c: Fix several errors and compiler warnings.
23600 Reported by Tom Tromey <tromey@redhat.com>.
23601 (XD_ERROR, XD_DEBUG_MESSAGE)
23602 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23603 (xd_append_arg): Part for basic D-Bus types rewritten.
23604 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23605 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23606 appropriate.
23607 (xd_read_message): Return Qnil. Don't signal an error; it is not
23608 useful during event reading.
23609 (Fdbus_register_signal): Signal an error if the check for
23610 FUNCTIONP fails.
23611 (Fdbus_register_method): New function. The implementation is not
23612 complete, the call of the function signals an error therefore.
23613 (Fdbus_unregister_object): New function, renamed from
23614 Fdbus_unregister_signal. The initial check signals an error, if
23615 the object is not well formed.
23616
236172007-12-30 Richard Stallman <rms@gnu.org>
23618
23619 * textprop.c (get_char_property_and_overlay):
23620 Signal error if POSITION is out of range in a buffer.
23621
236222007-12-29 Martin Rudalics <rudalics@gmx.at>
23623
23624 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23625 because the original parameters are in pure storage now.
23626
236272007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23628
23629 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23630
236312007-12-22 Eli Zaretskii <eliz@gnu.org>
23632
23633 * callint.c (syms_of_callint) <command-history>: Add reference to
23634 history-length in the doc string.
23635
236362007-12-17 Jason Rumney <jasonr@gnu.org>
23637
23638 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23639 before passing as wParam.
23640
236412007-12-22 Michael Albinus <michael.albinus@gmx.de>
23642
23643 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23644 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23645 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23646 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23647 as number.
23648 (Fdbus_call_method): Fix docstring.
23649
236502007-12-21 Michael Albinus <michael.albinus@gmx.de>
23651
23652 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23653 New macros.
23654 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23655 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23656 Simplify.
23657 (xd_signature): New function.
23658 (xd_append_arg): Compute also signatures. Major rewrite.
23659 (xd_retrieve_arg): Make debug messages friendly.
23660 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23661 Check for signatures of arguments.
23662
236632007-12-19 Michael Albinus <michael.albinus@gmx.de>
23664
23665 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23666 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23667 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23668 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23669 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23670 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23671 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23672 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23673 (xd_retrieve_value): Remove. Functionality included in ...
23674 (xd_append_arg): New function.
23675 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23676
236772007-12-16 Michael Albinus <michael.albinus@gmx.de>
23678
23679 * dbusbind.c (top): Include <stdio.h>.
23680 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23681 dbus_message_new_method_call and dbus_message_new_signal.
23682 (Fdbus_register_signal): Rename unique_name to uname.
23683 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23684 non-existing unique name. Fix typos in matching rule. Return an
23685 object which is useful in Fdbus_unregister_signal.
23686 (Fdbus_unregister_signal): Reimplementation, in order to remove
23687 only the corresponding entry.
23688 (Vdbus_registered_functions_table): Change the order of entries.
23689 Apply these changes in xd_read_message and Fdbus_register_signal.
23690
236912007-12-16 Andreas Schwab <schwab@suse.de>
23692
23693 * fileio.c (Finsert_file_contents): Fix overflow check to not
23694 depend on undefined integer overflow.
23695
236962007-12-14 Jason Rumney <jasonr@gnu.org>
23697
23698 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23699 for characters above 127.
23700
237012007-12-13 Jason Rumney <jasonr@gnu.org>
23702
23703 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23704 before dereferencing array.
23705 (lookup_vk_code): Remove zero comparison.
23706
237072007-12-14 Michael Albinus <michael.albinus@gmx.de>
23708
23709 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23710 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23711 Use `unsigned int' instead of `uint'.
23712 (xd_read_message, Fdbus_register_signal): Split expressions into
23713 multiple lines before operators "&&" and "||", according to the
23714 GNU Coding Standards.
23715
237162007-12-14 Eli Zaretskii <eliz@gnu.org>
23717
23718 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23719
237202007-12-12 Juri Linkov <juri@jurta.org>
23721
23722 * buffer.c (Frename_buffer): In interactive spec replace
23723 `read-buffer' with `read-string' that uses `buffer-name-history'
23724 as history, and the current buffer's name as default.
23725
237262007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23727
23728 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23729 manipulating the backtrace manually.
23730 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23731 (struct backtrace, backtrace_list): Remove.
23732 (command_loop_1): Remove dead var `no_direct'.
23733
23734 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23735 preserve non-built-in buffer-local variables.
23736 (Fkill_all_local_variables): Don't re-create&re-set permanent
23737 buffer-local variables.
23738
237392007-12-09 Juri Linkov <juri@jurta.org>
23740
23741 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23742 Lisp code that uses `read-buffer' with current buffer as default.
23743
237442007-12-08 Michael Albinus <michael.albinus@gmx.de>
23745
23746 * dbusbind.c (xd_read_message): Generate an event for every
23747 registered handler. There might be several handlers registered
23748 for the same signal.
23749 (Fdbus_register_signal): Don't overwrite a registration for the
23750 same signal. Add a new registration if handlers are different.
23751 (Vdbus_registered_functions_table): Rework doc string.
23752
237532007-12-07 Michael Albinus <michael.albinus@gmx.de>
23754
23755 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23756 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23757 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23758 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23759 Unify argument lists.
23760 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23761 arguments and hash table keys. Use unique name for service.
23762 (Fdbus_unregister_signal): Remove checks.
23763 (Vdbus_registered_functions_table): Fix doc string.
23764
237652007-12-05 Magnus Henoch <mange@freemail.hu>
23766
23767 * process.c (make_process): Initialize pty_flag to 0.
23768
237692007-12-05 Jason Rumney <jasonr@gnu.org>
23770
23771 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23772 specified XBMs.
23773
237742007-12-05 Richard Stallman <rms@gnu.org>
23775
23776 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23777
237782007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23779
23780 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23781 New variable.
23782 (mac_try_close_socket) [MAC_OSX]: New function.
23783 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23784 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23785
23786 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23787 Use mac_try_close_socket.
23788
237892007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23790
23791 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23792 reloc_base.
23793 (copy_dysymtab): Compute relocation base here.
23794 (rebase_reloc_address) [__ppc64__]: New function.
23795 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23796 changed.
23797
237982007-12-05 Jason Rumney <jasonr@gnu.org>
23799
23800 * w32proc.c (sys_spawnve): Quote args with wildcards.
23801
238022007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23803
23804 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23805 __objc_* sections.
23806 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23807
238082007-12-05 Michael Albinus <michael.albinus@gmx.de>
23809
23810 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23811 Move check for Vdbus_registered_functions_table to
23812 xd_read_queued_messages.
23813 (xd_read_queued_messages): Protect xd_read_message calls by
23814 internal_condition_case_1.
23815
238162007-12-04 Michael Albinus <michael.albinus@gmx.de>
23817
23818 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23819 Qdbus_system_bus and Qdbus_session_bus, respectively.
23820 (Vdbus_intern_symbols): Remove.
23821 (Vdbus_registered_functions_table): New hash table.
23822 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23823 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23824 Rewrite in order to manage registered functions by hash table
23825 Vdbus_registered_functions_table.
23826
238272007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23828
23829 * xterm.c: Update URL to Window Manager Specification in comment.
23830
238312007-12-02 Michael Albinus <michael.albinus@gmx.de>
23832
23833 * config.in (HAVE_DBUS): Add.
23834
23835 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23836 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23837 (obj): Add $(DBUS_OBJ).
23838 (LIBES): Add $(DBUS_LIBS).
23839 (dbusbind.o): New target.
23840
23841 * dbusbind.c: New file.
23842
23843 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23844
23845 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23846 (Qdbus_event): New Lisp symbol.
23847 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23848 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23849 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23850
23851 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23852
238532007-12-01 Richard Stallman <rms@gnu.org>
23854
23855 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23856
238572007-11-30 Jason Rumney <jasonr@gnu.org>
23858
23859 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23860 (w32con_reset_terminal_modes): Clear screen buffer.
23861 (w32_face_attributes): Don't use color indexes that are out of range.
23862 Only reverse the default colors.
23863
23864 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23865 WINDOWSNT.
23866
23867 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23868
238692007-11-29 Jason Rumney <jasonr@gnu.org>
23870
23871 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23872 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23873 if the terminal colors are initialized.
23874 (unspecified_fg, unspecified_bg): Remove unused declarations.
23875
238762007-11-29 Andreas Schwab <schwab@suse.de>
23877
23878 * keyboard.c (apply_modifiers): Fix typo.
23879
238802007-11-29 Richard Stallman <rms@gnu.org>
23881
23882 * keymap.c (Fcurrent_local_map): Doc fix.
23883
238842007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23885
23886 * s/gnu-kfreebsd.h: New file.
23887
238882007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23889
23890 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23891 Don't cast redundantly.
23892
23893 * keyboard.c (KEY_TO_CHAR): New macro.
23894 (parse_modifiers, apply_modifiers): Accept integer arguments.
23895 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23896 for chars and symbol keys.
23897 After doing such remapping, apply function-key-map again.
23898
238992007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23900
23901 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23902 compiled anymore.
23903
239042007-11-26 Andreas Schwab <schwab@suse.de>
23905
23906 * process.c (list_processes_1): Fix indentation level of the
23907 command column.
23908
239092007-11-23 Andreas Schwab <schwab@suse.de>
23910
23911 * editfns.c (Fformat): Handle %c specially since it requires the
23912 argument to be of type int.
23913
239142007-11-23 Markus Triska <markus.triska@gmx.at>
23915
23916 * emacs.c (main): Call init_editfns before init_process, since
23917 init_process sets Vprocess_connection_type depending on OS release.
23918
239192007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23920
23921 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23922 (find_symbol_value): Use do_symval_forwarding.
23923
23924 * data.c (set_internal): Set the value in the `cons-cell' (for
23925 Buffer_Local_values) not only for frame-local variables.
23926
239272007-11-22 Andreas Schwab <schwab@suse.de>
23928
23929 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23930 values to sprintf.
23931 * keymap.c (Fsingle_key_description): Likewise.
23932 * print.c (print_object): Likewise.
23933
239342007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23935
23936 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23937 file for image is nil.
23938
239392007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23940
23941 * term.c: Include stdarg.h.
23942 (fatal): Implement using varargs.
23943 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23944
239452007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23946
23947 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23948 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23949 Update call to buffer_slot_type_mismatch.
23950 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23951 (buffer_slot_type_mismatch): Update.
23952 * buffer.c (buffer_local_types): Remove.
23953 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23954 (defvar_per_buffer): Set the type in the buffer_objfwd.
23955
239562007-11-21 Jason Rumney <jasonr@gnu.org>
23957
23958 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23959 CreateFileMapping returns NULL on failure.
23960
239612007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23962
23963 * search.c (Fset_match_data): Remove the `evaporate' feature.
23964 (unwind_set_match_data): Don't use the `evaporate' feature.
23965
239662007-11-21 Jason Rumney <jasonr@gnu.org>
23967
23968 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23969
23970 * w32console.c (w32con_write_glyphs): Remove unused variables.
23971
239722007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23973
23974 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23975
23976 * s/darwin.h (MULTI_KBOARD): Remove.
23977
23978 * macfns.c (x_create_tip_frame, Fx_create_frame)
23979 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23980
239812007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23982
23983 * buffer.c (Fbuffer_local_value): Remove redundant test.
23984 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23985 than in `current-buffer' to match the comment.
23986 Do the swap using swap_in_global_binding.
23987
23988 * data.c (store_symval_forwarding, set_internal):
23989 * eval.c (specbind): Remove dead code.
23990
23991 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23992 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23993 Since we do not want to see internal Lisp_*fwd objects here.
23994
239952007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23996
23997 * sysdep.c (init_system_name): Use getaddrinfo if available.
23998
23999 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24000 (x_scroll_bar_note_movement): start, end, with, height in struct
24001 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24002
240032007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24004
24005 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24006
240072007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24008
24009 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24010 This undoes Richard's change of 14-Oct-2002.
24011
24012 * alloc.c (allocate_other_vector):
24013 * lisp.h (allocate_other_vector): Remove.
24014
24015 * window.c (struct save_window_data): Move non-lisp data to the end
24016 and make it `int' rather than Lisp_Object.
24017 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24018 Done wrap/unwrap integer values.
24019 (Fset_window_configuration, compare_window_configurations):
24020 Update use of fields to their new types.
24021
24022 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24023 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24024 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24025 (SET_SCROLL_BAR_X_WINDOW): Remove.
24026 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24027 Access the new x_window field directly.
24028 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24029 Don't wrap/unwrap integers into Lisp_Objects.
24030 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24031 (x_scroll_bar_report_motion):
24032 Don't wrap/unwrap integers into Lisp_Objects.
24033 (x_term_init): Use SDATA.
24034 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24035 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24036 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24037 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24038 * xfns.c (x_set_background_color):
24039 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24040 Access the new x_window field directly.
24041
24042 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24043 (allocate_pseudovector): Make non-static.
24044
24045 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24046 (allocate_pseudovector): Declare.
24047 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24048
240492007-11-15 Andreas Schwab <schwab@suse.de>
24050
24051 * editfns.c (Fformat): Correctly format EMACS_INT values.
24052 Also take precision into account when formatting an integer.
24053
24054 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24055
240562007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24057
24058 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24059 (syms_of_keyboard): Defsubr it.
24060
24061 * data.c (swap_in_global_binding): Fix longstanding bug where
24062 store_symval_forwarding was not called with the right second argument,
24063 thus causing objfwd-ing from being dropped.
24064
240652007-11-14 Juanma Barranquero <lekktu@gmail.com>
24066
24067 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24068 (Fx_display_pixel_height, Fx_display_planes)
24069 (Fx_display_color_cells, Fx_server_max_request_size)
24070 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24071 (Fx_display_visual_class, Fx_display_save_under):
24072 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24073 (Fx_display_pixel_height, Fx_display_planes)
24074 (Fx_display_color_cells, Fx_server_max_request_size)
24075 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24076 (Fx_display_mm_height, Fx_display_mm_width)
24077 (Fx_display_backing_store, Fx_display_visual_class)
24078 (Fw32_select_font, Fx_display_save_under):
24079 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24080 (Fx_display_pixel_height, Fx_display_planes)
24081 (Fx_display_color_cells, Fx_server_max_request_size)
24082 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24083 (Fx_display_save_under): Fix typos in docstrings.
24084
240852007-11-14 Juanma Barranquero <lekktu@gmail.com>
24086
24087 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24088 corresponding to deleted entries; they are an implementation detail.
24089 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24090 Remove variables.
24091 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24092 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24093 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24094 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24095 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24096 (Fw32_define_rgb_color, Fw32_load_color_file)
24097 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24098 Fix typos in docstrings.
24099 (Fx_server_version): Reflow docstring.
24100 (Fw32_shell_execute): Doc fixes.
24101
241022007-11-13 Juanma Barranquero <lekktu@gmail.com>
24103
24104 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24105 if w32_parse_hot_key returned nil.
24106
241072007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24108
24109 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24110
241112007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 24112
aac0c6e3
MR
24113 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24114
24115 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24116
24117 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24118 Remove W32_SCROLL_BAR_CLICK_EVENT.
24119
24120 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24121 Add MULTIMEDIA_KEY_EVENT.
24122
24123 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24124 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24125 (make_lispy_event) [WINDOWSNT]: Use it to translate
24126 MULTIMEDIA_KEY_EVENT.
24127
24128 * w32term.h (WM_APPCOMMAND): Define if not already.
24129 (GET_APPCOMMAND_LPARAM): Likewise.
24130
24131 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24132 WM_APPCOMMAND.
24133
24134 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24135 (syms_of_w32fns): Export and initialize it.
24136 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24137
241382007-11-09 Chong Yidong <cyd@stupidchicken.com>
24139
24140 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24141 twice.
24142
24143 * xdisp.c (handle_face_prop): Fix last change.
24144
241452007-11-09 Richard Stallman <rms@gnu.org>
24146
24147 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24148 not just for after-strings and before-strings.
24149 Call face_for_overlay_string and pass the overlay to it.
24150 (handle_display_prop): Determine whether property came from an overlay.
24151 Pass OVERLAY arg to handle_single_display_spec.
24152 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24153 (load_overlay_strings): Fill in it->string_overlays.
24154 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24155
24156 * xfaces.c (face_for_overlay_string): Function renamed from
24157 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24158
24159 * dispextern.h (struct it): New elt string_overlays.
24160 New elt from_overlay, also in stack.
24161 Rearrange a few elements.
24162 (face_for_overlay_string): Decl renamed from
24163 face_at_buffer_position_no_overlays, and add argument.
24164
241652007-11-09 Richard Stallman <rms@gnu.org>
24166
24167 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24168 to get the base face for an overlay string.
24169
24170 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24171
24172 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24173
24174 * xdisp.c (handle_stop): Move some code out of loop.
24175
241762007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24177
24178 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24179 Fix conversion from Lisp object to ATSUFontID.
24180
241812007-11-09 Jason Rumney <jasonr@gnu.org>
24182
24183 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24184
241852007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24186
24187 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24188 Don't assume regions are aligned to page boundary.
24189 (print_load_command_name): Add LC_UUID if defined.
24190
241912007-11-09 Richard Stallman <rms@gnu.org>
24192
24193 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24194
241952007-11-07 Jason Rumney <jasonr@gnu.org>
24196
24197 * s/windows95.h: Remove.
24198
241992007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24200
24201 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24202 abort with a message on unhandled store_type values.
24203
242042007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24205
24206 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24207 Remove HAVE_X11R5 and HAVE_X11R4.
24208
242092007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24210
24211 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24212
242132007-11-01 Johan Bockgård <bojohan@gnu.org>
24214
24215 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24216 Don't set s->stippled_p here, since it has already been set by
24217 x_set_glyph_string_gc from x_draw_glyph_string.
24218
242192007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24220
24221 * sunfns.c: Remove file.
24222
24223 * m/sun386.h:
24224 * m/sun2.h:
24225 * m/sparc.h: Remove Sun windows code.
24226
242272007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24228
24229 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24230 (init_keyboard): Set current_kboard's window-system to nil.
24231 (tty_read_avail_input): Typo.
24232 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24233
242342007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24235
24236 * s/usg5-4.h:
24237 * s/usg5-3.h:
24238 * s/ptx.h:
24239 * m/is386.h:
24240 * m/ibmps2-aix.h:
24241 * Makefile.in: Remove all mentions of X10.
24242
24243 * dispnew.c (syms_of_display): Don't mention version 10.
24244
242452007-10-28 Juanma Barranquero <lekktu@gmail.com>
24246
24247 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24248 ($(BLD)/abbrev.$(O)): Remove.
24249
242502007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24251
24252 Rewrite abbrev.c in Elisp.
24253 * image.c (Qcount): Don't declare as extern.
24254 (syms_of_image): Initialize and staticpro `Qcount'.
24255 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24256 * emacs.c (main): Don't call syms_of_abbrev.
24257 * Makefile.in (obj): Remove abbrev.o.
24258 (abbrev.o): Remove.
24259 * abbrev.c: Remove.
24260
242612007-10-26 Martin Rudalics <rudalics@gmx.at>
24262
24263 * window.c (window_min_size_2): Don't count header-line.
24264
242652007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24266
24267 * frame.h (struct frame): Move all bit fields after the first bit
24268 field to take advantage of the available space. Group all the
24269 chars together to reduce wasted space due to padding.
24270
242712007-10-26 Juanma Barranquero <lekktu@gmail.com>
24272
24273 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24274
24275 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24276 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24277 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24278 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24279 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24280 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24281 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24282 (last_marked, mark_object_loop_halt): Make static.
24283
24284 * frame.c (syms_of_frame) <delete-frame-functions>:
24285 Fix typo in docstring.
24286
242872007-10-25 Juanma Barranquero <lekktu@gmail.com>
24288
24289 * w32.c (init_environment): Fix tiny memory leak.
24290 (w32_get_resource): Remove unused variable `ok'.
24291
242922007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24293
24294 Make `window-system' into a keyboard-local variable (rather than
24295 frame-local as done originally by multi-tty).
24296
24297 * keyboard.h (struct kboard): Add Vwindow_system.
24298 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24299 (mark_kboards): Mark Vwindow_system.
24300
24301 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24302 (init_display): Don't set the obsolete `window-system' frame-param.
24303
24304 * xterm.c (x_term_init):
24305 * w32term.c (w32_create_terminal):
24306 * term.c (init_tty): Set Vwindow_system.
24307 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24308 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24309
24310 * xfns.c (Fx_create_frame, x_create_tip_frame):
24311 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24312 * macfns.c (Fx_create_frame):
24313 Don't set the obsolete `window-system' frame-param.
24314
24315 * frame.h (Qwindow_system): Remove.
24316 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24317 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24318
243192007-10-24 Richard Stallman <rms@gnu.org>
24320
24321 * frame.c (x_figure_window_size): For fullscreen case,
24322 set USPosition | PPosition without clobbering rest of window_prompting.
24323
24324 * keyboard.c (Fcurrent_idle_time): Doc fix.
24325
24326 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24327
243282007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24329
24330 * process.c (unwind_request_sigio): Only define if __ultrix__.
24331
24332 * callproc.c (child_setup): Remove spurious *.
24333
24334 * lisp.h (Fget_text_property): Declare.
24335 (have_menus_p): Declare it here rather than in sys-dep header files.
24336 * macterm.h (have_menus_p):
24337 * msdos.h (have_menus_p):
24338 * xterm.h (have_menus_p): Remove.
24339
24340 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24341 (Fmake_variable_frame_local): Just check the variable's const-ness
24342 rather than checking nil or t.
24343
243442007-10-22 Jason Rumney <jasonr@gnu.org>
24345
24346 * w32fns.c: Include math.h.
24347 (w32_abort): Declaration moved to nt/config.nt.
24348
24349 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24350 (abort): Redefinition moved to nt/config.nt.
24351
24352 * m/windowsnt.h: Remove.
24353
243542007-10-22 Juanma Barranquero <lekktu@gmail.com>
24355
24356 * emacs.c (Fdump_emacs): Fix typo in message.
24357 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24358 <installation-directory>: Reflow docstring.
24359
243602007-10-22 Juri Linkov <juri@jurta.org>
24361
24362 * minibuf.c: Allow minibuffer default to be a list of default values.
24363 With empty input use the first element of this list as returned default.
24364 (string_to_object)
24365 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24366 (read_minibuf): If defalt is cons, set histstring to its car.
24367 (Fread_string): If default_value is cons, set val to its car.
24368 (Fread_buffer): If def is cons, use its car.
24369 (Fcompleting_read): If defalt is cons, set val to its car.
24370
243712007-10-21 Michael Albinus <michael.albinus@gmx.de>
24372
24373 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24374
243752007-10-20 Juanma Barranquero <lekktu@gmail.com>
24376
24377 * doc.c (Fdocumentation): Check for advice in all cases.
24378
243792007-10-19 Chong Yidong <cyd@stupidchicken.com>
24380
24381 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24382
243832007-10-19 Richard Stallman <rms@gnu.org>
24384
24385 * doc.c (Fdocumentation): Check for and handle an advised function.
24386
243872007-10-19 Juanma Barranquero <lekktu@gmail.com>
24388
24389 * process.c (Fset_process_filter): Doc fix.
24390
243912007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24392
24393 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24394 which caused key-translation-map to applied repeatedly (thus breaking
24395 double-mode).
24396
243972007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24398
24399 * xselect.c (x_own_selection, x_handle_selection_clear)
24400 (x_clear_frame_selections):
24401 * w32menu.c (list_of_panes, list_of_items):
24402 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24403 * textprop.c (validate_plist, interval_has_all_properties)
24404 (interval_has_some_properties, interval_has_some_properties_list)
24405 (add_properties, text_property_list):
24406 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24407 * minibuf.c (Fassoc_string):
24408 * macselect.c (x_own_selection, x_clear_frame_selections)
24409 (Fx_disown_selection_internal):
24410 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24411 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24412
244132007-10-17 Chong Yidong <cyd@stupidchicken.com>
24414
24415 * process.c: Link to libs for calling res_init() if available.
24416 (Fmake_network_process): Call res_init() before getaddrinfo or
24417 gethostbyname, if possible.
24418
244192007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24420
24421 * lread.c (read1): Set pvectype for char_tables.
24422
24423 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24424 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24425 Add type checks.
24426 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24427
24428 * alloc.c (free_misc): Use XMISCTYPE.
24429 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24430
244312007-10-17 Glenn Morris <rgm@gnu.org>
24432
24433 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24434 (syms_of_minibuf): Add Qcompletion_ignore_case.
24435 * dired.c (Qcompletion_ignore_case): Change to external.
24436 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24437 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24438 (Fread_file_name): Use it rather than intern'ing.
24439
24440 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24441 (Fread_coding_system): Ignore case of user input.
24442
244432007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24444
24445 * xdisp.c (handle_display_prop): Ignore display specs after
24446 replacing one when string text is being replaced.
24447 (handle_single_display_spec): Pretend as if characters with display
24448 property haven't been consumed only when buffer text is being replaced.
24449
244502007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24451
24452 * xfns.c (Fx_create_frame, Fx_display_list):
24453 * window.c (window_fixed_size_p, enlarge_window)
24454 (shrink_window_lowest_first):
24455 * macterm.c (init_font_name_table):
24456 * macfns.c (Fx_create_frame, Fx_display_list):
24457 * lread.c (close_load_descs):
24458 * keyboard.c (read_char_x_menu_prompt):
24459 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24460 * coding.c (code_convert_region_unwind): Test the type of an object
24461 rather than just !NILP before extracting data from it.
24462
24463 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24464
24465 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24466 (XMISCANY): New macro.
24467 (XMISCTYPE): Use it.
24468 (struct Lisp_Misc_Any): New type.
24469 (union Lisp_Misc): Use it.
24470 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24471 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24472 (find_symbol_value, set_internal, default_value, Fset_default)
24473 (Fmake_variable_buffer_local, Fmake_local_variable)
24474 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24475 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24476 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24477 * alloc.c (allocate_buffer): Set the size and tag.
24478 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24479 Use XMISCANY.
24480 (die): Follow the GNU convention for error messages.
24481 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24482 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24483 tag any more.
24484 (set_buffer_internal_1):
24485 * frame.c (store_frame_param):
24486 * eval.c (specbind):
24487 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24488
24489 * doc.c (Fsnarf_documentation): Simplify.
24490
244912007-10-14 Juanma Barranquero <lekktu@gmail.com>
24492
24493 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24494 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24495
244962007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24497
24498 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24499
245002007-10-14 Juanma Barranquero <lekktu@gmail.com>
24501
24502 * eval.c (do_autoload): Don't save autoloads.
24503
24504 * data.c (Ffset): Save autoload of the function being set.
24505
245062007-10-07 John Paul Wallington <jpw@pobox.com>
24507
24508 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24509 parameter before setting up faces.
24510
245112007-10-13 Eli Zaretskii <eliz@gnu.org>
24512
24513 * ccl.c (Fregister_code_conversion_map):
24514 * keyboard.c (append_tool_bar_item): Reformat last change.
24515
24516 * lisp.h (eabs): Rename from `abs'. All callers changed.
24517
245182007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24519
24520 * buffer.c (add_overlay_mod_hooklist):
24521 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24522 * fontset.c (make_fontset):
24523 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24524 (append_tool_bar_item):
24525 * macmenu.c (grow_menu_items):
24526 * w32menu.c (grow_menu_items):
24527 * xmenu.c (grow_menu_items): Use larger_vector.
24528
245292007-10-13 Eli Zaretskii <eliz@gnu.org>
24530
24531 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24532 selected frame'' on MSDOS).
24533
245342007-10-12 Martin Rudalics <rudalics@gmx.at>
24535
24536 * frame.c (Qexplicit_name): New variable.
24537 (x_report_frame_params): Report it in parameter alist.
24538 (syms_of_frame): Intern and staticpro it.
24539
245402007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24541
24542 * macfns.c (x_create_tip_frame): Set terminal for frame.
24543
245442007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24545
24546 * frame.c (Qenvironment): Remove.
24547 (syms_of_frame) <Qenvironment>: Don't initialize.
24548 (Fdelete_frame): Don't treat the `environment' param specially.
24549 * frame.h (Qenvironment): Don't declare.
24550 * callproc.c (set_initial_environment): Don't set unused frame param.
24551
24552 * frame.c (Fframe_with_environment): Remove.
24553 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24554
24555 * lisp.h (Fframe_with_environment): Don't declare.
24556
245572007-10-10 Juanma Barranquero <lekktu@gmail.com>
24558
24559 * indent.c (indent_tabs_mode, last_known_column)
24560 (last_known_column_modified): Make static.
24561 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24562
245632007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24564
24565 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24566
245672007-10-09 Jason Rumney <jasonr@gnu.org>
24568
24569 * w32term.c (x_set_window_size): Disable code that attempts to tell
24570 Lisp code about a size change before it actually happens.
24571
245722007-10-09 Richard Stallman <rms@gnu.org>
24573
24574 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24575 return HANDLED_RETURN.
24576
245772007-10-08 Martin Rudalics <rudalics@gmx.at>
24578
24579 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24580 when there's an unread command event.
24581
24582 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24583 window autoselection act appropriately when leaving selected frame.
24584 (syms_of_frame): Initialize focus_follows_mouse.
24585 * frame.h (focus_follows_mouse): Extern it.
24586 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24587 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24588 * msdos.c (dos_rawgetc): Likewise.
24589 * w32term.c (w32_read_socket): Likewise.
24590 * xterm.c (handle_one_xevent): Likewise.
24591 * xdisp.c (syms_of_xdisp): In doc-string of
24592 mouse-autoselect-window mention focus-follows-mouse.
24593
245942007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24595
24596 * macterm.c (mac_load_query_font): Fix missing return value.
24597 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24598 Add BLOCK_INPUT.
24599
246002007-10-08 Richard Stallman <rms@gnu.org>
24601
24602 * xdisp.c (get_window_cursor_type): Implement documented behavior
24603 for cursor-in-non-selected-windows = t.
24604
246052007-10-08 Jason Rumney <jasonr@gnu.org>
24606
24607 * w32.c (w32_get_resource): Always close registry keys.
24608
246092007-10-08 Jason Rumney <jasonr@gnu.org>
24610
24611 * makefile.w32-in (LIBS): Add COMCTL32.
24612
24613 * w32fns.c (globals_of_w32fns): Init common controls.
24614
246152007-10-08 Richard Stallman <rms@gnu.org>
24616
24617 * image.c (our_memory_buffer): Rename from omfib_buffer.
24618
246192007-10-08 Richard Stallman <rms@gnu.org>
24620
24621 * buffer.c (Foverlays_at): Doc fix.
24622
246232007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24624
24625 * fns.c (Fplist_put): Preserve uneven tail data.
24626
246272007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24628
24629 * termhooks.h (enum event_kind): Remove trailing comma.
24630
24631 * frame.h (enum): Remove trailing comma.
24632
246332007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24634
24635 * w32proc.c (delete_child): Don't terminate threads of zombies.
24636
246372007-10-08 Martin Rudalics <rudalics@gmx.at>
24638
24639 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24640
24641 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24642 last-repeatable-command.
24643 (init_kboard): Initialize Vlast_repeatable_command.
24644 (command_loop_1): Set it to real_this_command unless that was
24645 bound to an input event.
24646 (mark_kboards): Mark it.
24647
246482007-10-08 Richard Stallman <rms@gnu.org>
24649
24650 * eval.c (condition-case): Doc fix.
24651
246522007-10-08 Masatake YAMATO <jet@gyve.org>
24653
24654 * xfaces.c (tty_supports_face_attributes_p): Fix code
24655 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24656 was copied and not edited.
24657
246582007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24659
24660 Add new `input-decode-map' keymap and use it for terminal
24661 escape sequences.
24662 * keyboard.h (struct kboard): Add Vinput_decode_map.
24663 Remove Vlocal_key_translation_map.
24664 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24665 (init_kboard): Init input-decode-map.
24666 Replace local-key-translation-map back with key-translation-map.
24667 (syms_of_keyboard): Declare input-decode-map.
24668 Remove local-key-translation-map. Update docstrings.
24669 (mark_kboards): Mark Vinput_decode_map.
24670 Don't mark Vlocal_key_translation_map.
24671 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24672 Replace local-key-translation-map back with key-translation-map.
24673 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24674 Bind in input-decode-map rather than function-key-map.
24675
24676 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24677 This was made redundant by the previous introduction of XSETPVECTYPE.
24678
246792007-10-09 Richard Stallman <rms@gnu.org>
24680
24681 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24682
246832007-09-29 Richard Stallman <rms@gnu.org>
24684
24685 * eval.c (internal_condition_case_2, internal_condition_case_1)
24686 (internal_condition_case): Reenable abort if x_catching_errors ()
24687 to see if that really happens and why.
24688
246892007-10-06 Andreas Schwab <schwab@suse.de>
24690
24691 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24692
246932007-10-04 Juanma Barranquero <lekktu@gmail.com>
24694
24695 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24696
246972007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24698
24699 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24700
247012007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24702
24703 * window.h (struct window):
24704 * window.c (struct save_window_data, struct saved_window):
24705 * termhooks.h (struct terminal):
24706 * process.h (struct Lisp_Process):
24707 * frame.h (struct frame):
24708 * buffer.h (struct buffer):
24709 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24710 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24711 The size field of (pseudo)vectors is now unsigned.
24712 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24713
24714 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24715 Turn `count' into an integer.
24716
24717 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24718 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24719 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24720 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24721 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24722
24723 * alloc.c (allocate_pseudovector): New fun.
24724 (ALLOCATE_PSEUDOVECTOR): New macro.
24725 (allocate_window, allocate_terminal, allocate_frame)
24726 (allocate_process): Use it.
24727 (mark_vectorlike): New function.
24728 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24729 (mark_terminals): Use it.
24730 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24731 (Fmake_byte_code): Use XSETPVECTYPE.
24732
24733 * frame.c (Fframe_parameters): Minor simplification.
24734
24735 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24736
24737 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24738
24739 * buffer.c (Fget_buffer_create, init_buffer_once):
24740 * lread.c (defsubr):
24741 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24742
24743 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24744 defined differently in the m/*.h files.
24745 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24746 (XSETPVECTYPE): New macro.
24747 (XSETPSEUDOVECTOR): Use it.
24748
24749 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24750 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24751
24752 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24753 * lread.c (defvar_per_buffer):
24754 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24755
24756 * window.c (candidate_window_p): Only consider as visible frames that
24757 are on the same terminal.
24758
24759 * m/ibms390x.h (MARKBIT): Remove unused macro.
24760
247612007-10-01 Juanma Barranquero <lekktu@gmail.com>
24762
24763 * lread.c (Fload): Fix typo in docstring.
24764
247652007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24766
24767 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24768 of a non-zero value can't yield zero.
24769
247702007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24771
24772 * term.c (term_clear_mouse_face, term_mouse_highlight)
24773 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24774
24775 * print.c (safe_debug_print): Use XHASH.
24776
24777 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24778 Lisp elements such as tags.
24779 (XHASH): New macro.
24780 (EQ): Use it.
24781 (SREF, SSET, STRING_COPYIN): Use SDATA.
24782 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24783
24784 * alloc.c (mark_terminal): Remove left-over declaration.
24785 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24786 (allocate_vectorlike): Remove type argument. Adjust callers.
24787 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24788 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24789
24790 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24791 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24792 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24793 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24794 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24795 Use them.
24796
24797 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24798 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24799 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24800
248012007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24802
24803 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24804 loaded by default.
24805
248062007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24807
24808 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24809 on this tty.
24810 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24811
24812 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24813 Update all users.
24814 (handle_one_term_event): Use Gpm_DrawPointer.
24815 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24816 Signal errors instead of returning nil. Always return nil.
24817 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24818 Make it a noop if gpm-mouse was not activated.
24819 (syms_of_term): Update names.
24820
248212007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24822
24823 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24824 (init_sys_modes): Check that gpm_tty is the current tty.
24825
24826 * alloc.c (allocate_terminal): Set the vector size to only count the
24827 lisp fields. Initialize those to nil.
24828 (mark_object): Don't treat terminals specially.
24829 (mark_terminal): Remove.
24830 (mark_terminals): Use mark_object instead.
24831
24832 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24833 the GC to the beginning.
24834
24835 * indent.h:
24836 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24837
24838 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24839
248402007-09-25 Jason Rumney <jasonr@gnu.org>
24841
24842 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24843
24844 * w32console.c (create_w32cons_output): Remove.
24845
24846 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24847
24848 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24849 (reset_sys_modes): Use reset_terminal_modes_hook.
24850
248512007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24852
24853 * eval.c (do_autoload): Don't output any message.
24854
248552007-09-24 Juri Linkov <juri@jurta.org>
24856
24857 * emacs.c (standard_args): Change priority of "--no-splash"
24858 from 40 to 3. Add "--no-desktop" with the same priority.
24859
248602007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24861
24862 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24863 and optimize the case where they are all 1.
24864
248652007-09-23 Johannes Weiner <hannes@saeurebad.de>
24866
24867 * lisp.h (abs): Define if not defined.
24868 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24869 Don't define `abs', since it's defined in lisp.h.
24870
248712007-09-22 Eli Zaretskii <eliz@gnu.org>
24872
24873 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24874 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24875 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24876 (init_tty): Use DEV_TTY instead of "/dev/tty".
24877 [WINDOWSNT]: No need to protect from NAME arg being null.
24878
248792007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24880
24881 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24882 up the tty state.
24883
248842007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24885
24886 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24887 (gpm_tty): Change its type.
24888 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24889 (gpm_tty): Change its type and initialize it.
24890 (Fterm_open_connection): Check the frame is indeed a tty.
24891 Use the new gpm_tty.
24892 (Fterm_close_connection): Use the new gpm_tty.
24893 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24894 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24895
248962007-09-21 Juanma Barranquero <lekktu@gmail.com>
24897
24898 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24899 underline_color, to draw strike-through.
24900
249012007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24902
24903 * lisp.h (allocate_terminal): Declare.
24904
24905 * window.c (candidate_window_p): Consider frames that are being placed
24906 by the user as somewhere between visible and iconified.
24907 (window_loop): Prefer windows on the current frame.
24908 (Fselect_window): Move the use of select-frame to the beginning so we
24909 can just delegate all the work (it'll call us back anyway).
24910
24911 * frame.c (Qdisplay_environment_variable):
24912 * frame.h (Qdisplay_environment_variable): Delete.
24913
24914 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24915 of the first arg, since that value may be a union.
24916
24917 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24918 parameter rather than Qdisplay_environment_variable. If all else
24919 fails, look for DISPLAY in initial-environment.
24920
249212007-09-21 Glenn Morris <rgm@gnu.org>
24922
24923 * Makefile.in (emacstool): Remove target.
24924 (lisp, shortlisp): Remove termdev.elc.
24925
249262007-09-21 Markus Triska <markus.triska@gmx.at>
24927
24928 * xterm.c (x_delete_display): Compile session management conditionally.
24929
249302007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24931
24932 * callproc.c (getenv_internal_1): New function.
24933 (getenv_internal): Use it.
24934 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24935
24936 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24937 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24938 (Fset_terminal_parameter): Work with dead terminals as well.
24939 (Fmodify_terminal_parameters): Remove.
24940
24941 * terminal.c (get_terminal): Handle terminals.
24942 Make sure the terminal returned is live.
24943 (create_terminal): Use allocate_terminal.
24944 (mark_terminals): Move to alloc.c.
24945 (delete_terminal): Use terminal->name as liveness status.
24946 NULL out fields after freeing their contents.
24947 Don't deallocate the object.
24948 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24949 rather than an int.
24950 (Fterminal_live_p): Accept non-integer arguments.
24951 (Fterminal_list): Return terminal objects rather than an ints.
24952
24953 * alloc.c (enum mem_type): New member for `terminal' objects.
24954 (allocate_terminal): New function.
24955 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24956 Handle terminals.
24957 (mark_terminal): New fun.
24958 (mark_terminals): Move from terminal.c.
24959
24960 * term.c (get_tty_terminal): Don't treat output_initial specially.
24961 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24962 (delete_tty): Use terminal->name as liveness status.
24963
24964 * termhooks.h (struct terminal): Make it into a pseudovector.
24965 Remove `deleted' replaced by checking `name's nullness.
24966
24967 * print.c (print_object): Handle terminals.
24968
24969 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24970 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24971
24972 * frame.c (make_terminal_frame):
24973 * keyboard.c (tty_read_avail_input):
24974 * w32term.c (x_delete_terminal):
24975 * xfns.c (Fx_create_frame, x_create_tip_frame):
24976 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24977
249782007-09-20 Glenn Morris <rgm@gnu.org>
24979
24980 * process.c (Fmake_network_process): Doc fix.
24981
249822007-09-19 Jason Rumney <jasonr@gnu.org>
24983
24984 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24985
249862007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24987
24988 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24989 Fix a C warning regarding variable constness.
24990
24991 * xterm.c (handle_one_xevent): Fix a C warning.
24992
249932007-09-18 Jason Rumney <jasonr@gnu.org>
24994
24995 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24996
249972007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24998
24999 * gtkutil.c (gdpy_def): New variable.
25000 (xg_initialize): Initialize gdpy_def.
25001 (xg_display_close): If no other display exists, set gdpy_def to a
25002 new connection.
25003
250042007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25005
25006 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25007 when we have no file name for the icon.
25008 (xg_tool_bar_expose_callback): Remove.
25009 (xg_create_tool_bar): Don't connect expose signal to
25010 xg_tool_bar_expose_callback.
25011 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25012
250132007-09-16 Andreas Schwab <schwab@suse.de>
25014
25015 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25016 values instead of zapping them.
25017
250182007-09-14 Glenn Morris <rgm@gnu.org>
25019
25020 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25021 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25022 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25023 scope and rename to omfib_buffer for clarity.
25024 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25025
250262007-09-14 Kenichi Handa <handa@m17n.org>
25027
25028 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25029
250302007-09-13 Jason Rumney <jasonr@gnu.org>
25031
25032 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25033
25034 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25035
25036 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25037 (mac_term_init): Call here instead, passing rif.
25038
250392007-09-13 Glenn Morris <rgm@gnu.org>
25040
25041 * s/hpux.h: No longer define `static' as nothing.
25042
250432007-09-13 Johan Bockgård <bojohan@gnu.org>
25044
25045 * callint.c (Fcall_interactively): Remove unused var `fun'.
25046
250472007-09-12 Romain Francoise <romain@orebokech.com>
25048
25049 * window.c (prefer_window_split_horizontally, display_buffer):
25050 Revert 2007-09-08 change.
25051
250522007-09-12 Glenn Morris <rgm@gnu.org>
25053
25054 * alloca.c: Remove file.
25055 * Makefile.in (alloca): Do not undef.
25056 (allocaobj, alloca.o): Remove.
25057 (otherobj): Remove allocaobj.
25058 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25059 * regex.c (C_ALLOCA): Remove all references and code that was only
25060 used when this was defined.
25061 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25062 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25063 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25064
25065 * Makefile.in (SOURCES, unlock, relock): Delete.
25066
25067 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25068 (menu_grab_callback): All uses changed.
25069
25070 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25071 (x_reply_selection_request): All uses changed.
25072
250732007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25074
25075 * lread.c (load_warn_old_style_backquotes): Change message to look
25076 better when it appears in the middle of byte-compiler messages.
25077
250782007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25079
25080 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25081
25082 * xterm.c (x_create_terminal): Add comment.
25083
25084 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25085
250862007-09-10 Richard Stallman <rms@gnu.org>
25087
25088 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25089
250902007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25091
25092 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25093 (DEFUN): Document `intspec', use it instead of `prompt'.
25094
25095 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25096
25097 * data.c (Finteractive_form): If the interactive specification starts
25098 with a `(', use it as a Lisp form.
25099
25100 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25101 name and file modes.
25102
25103 * callint.c (Fcall_interactively): Comment fixes.
25104
251052007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25106
25107 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25108 and compiled functions.
25109
251102007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25111
25112 * window.c (prefer_window_split_horizontally): New variable.
25113 (display_buffer): Consider splitting window horizontally depending
25114 on prefer_window_split_horizontally.
25115
251162007-09-08 Eli Zaretskii <eliz@gnu.org>
25117
25118 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25119
251202007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25121
25122 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25123
25124 * frame.c (x_set_frame_parameters): Check number is positive before
25125 using XFASTINT.
25126
25127 * window.c (freeze_window_start): Don't presume selected_window holds
25128 a window object.
25129 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25130
251312007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25132
25133 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25134
251352007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25136
25137 * window.c (Vsplit_window_preferred_function): New var.
25138 (Fdisplay_buffer): Use it.
25139 (syms_of_window): Export, and initialize it.
25140
251412007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25142
25143 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25144
251452007-09-06 Glenn Morris <rgm@gnu.org>
25146
25147 * gtkutil.c (menu_grab_callback) <cnt>:
25148 * xselect.c (x_reply_selection_request) <cnt>: Move static
25149 variable to file scope.
25150
251512007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25152
25153 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25154 consistent values of selected_frame and selected_window.
25155
251562007-09-04 Jason Rumney <jasonr@gnu.org>
25157
25158 * w32console.c (initialize_w32_display): Zero unused hooks.
25159
251602007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25161
25162 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25163 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25164
251652007-09-04 Jason Rumney <jasonr@gnu.org>
25166
25167 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25168 in w32console.c. Set up input. Remove XXX comments that have been
25169 confirmed as correct.
25170
25171 * s/ms-w32.h (MULTI_KBOARD): Define.
25172
25173 * w32console.c (one_and_only_w32cons): Remove.
25174 (initialize_w32_display): Take terminal argument.
25175
25176 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25177 initialize_w32_display.
25178 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25179
25180 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25181
25182 * keyboard.c (discard_mouse_events): Discard it.
25183 (make_lispy_event): Translate it to a lisp event.
25184 (lispy_wheel_names): Add wheel-left and right events.
25185 (syms_of_keyboard): Enlarge wheel_syms.
25186
25187 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25188 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25189
25190 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25191
25192 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25193 from WM_MOUSEHWHEEL.
25194 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25195
25196 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25197 terminal.
25198
25199 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25200 keyboard for the terminal.
25201
252022007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25203
25204 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25205 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25206 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25207 and resume-tty-function to resume-tty-hook.
25208 (Fsuspend_tty, Fresume_tty): Use new names.
25209
252102007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25211
25212 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25213 if it starts with "n:".
25214
252152007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25216
25217 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25218
252192007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25220
25221 * frame.h:
25222 * frame.c (Qterm_environment_variable): Remove.
25223 (syms_of_frame): Don't init and staticpro it.
25224
25225 * callproc.c (getenv_internal): Remove special case for $TERM.
25226
25227 * callproc.c (Vinitial_environment): New variable.
25228 (set_initial_environment): Initialize it.
25229 (syms_of_callproc): Declare it.
25230 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25231 TERM under which a process runs is never related to the TERM in which
25232 Emacs is running.
25233
252342007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25235
25236 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25237 * s/darwin.h: ... do it here.
25238
252392007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25240
25241 * lisp.h (set_initial_environment): Rename from set_global_environment.
25242
25243 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25244 removed by mistake on the multi-tty branch.
25245
25246 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25247 (Fmodify_frame_parameters): Return a value.
25248
25249 * image.c (png_load): Comment-out var only used in commented-out code.
25250
25251 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25252 before passing it to mark_object.
25253
25254 * xfaces.c (internal_resolve_face_name): Return a value.
25255 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25256
25257 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25258 (x_icon): Comment-out var only used in commented-out code.
25259
252602007-08-29 Romain Francoise <romain@orebokech.com>
25261
25262 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25263 QUIT hasn't been provided.
25264
252652007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25266
25267 * callproc.c (child_setup, getenv_internal): Use the
25268 display-environment-variable and term-environment-variable frame params.
25269 (set_initial_environment): Initialise Vprocess_environment.
25270
25271 * config.in: Disable multi-keyboard support on a mac.
25272
25273 * frame.c (Qterm_environment_variable)
25274 (Qdisplay_environment_variable): New variables.
25275 (syms_of_frame): Intern and staticpro them.
25276 (Fmake_terminal_frame): Disable output method test.
25277
25278 * frame.h: Declare them here.
25279
25280 * macfns.c (x_set_mouse_color): Get rif from the frame.
25281 (x_set_tool_bar_lines): Don't use updating_frame.
25282 (mac_window): Add 2 new parameters for consistency with other systems.
25283 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25284 frame parameters following what is done in X11 and w32. Don't use
25285 FRAME_MAC_DISPLAY_INFO.
25286 (Fx_open_connection, start_hourglass): Remove window-system check.
25287 (x_create_tip_frame): Get the keyboard from the terminal.
25288
25289 * macmenu.c: Reorder includes.
25290 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25291
25292 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25293 terminal parameter.
25294 (x_clear_frame): Add a frame parameter.
25295 (note_mouse_movement): Get rif from the frame.
25296 (mac_term_init): Initialize the terminal.
25297 (mac_initialize): Make static and move terminal initialization ...
25298 (mac_create_terminal): ... to this new function.
25299
25300 * macterm.h (struct mac_display_info): Add terminal.
25301 (mac_initialize): Delete declaration.
25302
25303 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25304
25305 * sysdep.c: Comment out text after #endif.
25306
25307 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25308 is defined. Better initialize ttys in windows. Use terminal
25309 specific mouse_position_hook.
25310
25311 * termhooks.h (union display_info): Add mac_display_info.
25312
25313 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25314 Set the default minibuffer frame, window_system and the rest of the
25315 frame parameters following what is done in X11.
25316
25317 * w32term.c (w32_initialize): Make static.
25318
25319 * xselect.c (x_handle_selection_clear): Only access
25320 terminal->kboard when MULTI_KBOARD is defined.
25321
25322 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25323 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25324
253252007-08-29 Jason Rumney <jasonr@gnu.org>
25326
25327 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25328 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25329
25330 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25331 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25332
25333 * keyboard.c (restore_kboard_configuration): Only define when
25334 MULTI_KBOARD defined.
25335
25336 * makefile.w32-in: Update dependancies from Makefile.in.
25337 (OBJ1): Add terminal.$(O)
25338
25339 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25340 Don't define function body.
25341 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25342
25343 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25344
25345 * w32.c (request_sigio, unrequest_sigio): Remove.
25346
25347 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25348 (w32con_clear_frame, w32con_clear_end_of_line)
25349 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25350 (w32con_delete_glyphs, w32con_set_terminal_window)
25351 (scroll_line, w32_sys_ring_bell): Add frame arg.
25352 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25353 Add terminal arg.
25354 (PICK_FRAME): Remove.
25355 (w32con_write_glyphs): Use frame specific terminal coding.
25356 (one_and_only_w32cons): New global variable.
25357 (initialize_w32_display): Use it for storing hooks.
25358 (create_w32cons_output): New function.
25359
25360 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25361 arg a frame.
25362
25363 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25364 Set window_system.
25365 (x_set_tool_bar_lines): Don't use updating_frame.
25366 (Fx_create_frame): Set terminal and ref count.
25367 (Fx_open_connection): Remove window-system check.
25368
25369 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25370
25371 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25372 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25373 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25374 Add frame arg.
25375 (x_delete_terminal, w32_create_terminal): New functions.
25376 (w32_term_init): Create a terminal.
25377 (w32_initialize): Move terminal specific initialization to
25378 w32_create_terminal.
25379
25380 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25381 (w32_clear_rect, w32_clear_area): Use background from frame.
25382 (w32_display_info): Add terminal.
25383 (w32_sys_ring_bell, x_delete_display): Declare here.
25384
25385 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25386
25387 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25388
253892007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25390
25391 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25392 Fix get_named_tty calls for the controlling tty.
25393
253942007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25395
194d44e7 25396 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
25397
253982007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25399
25400 * term.c (tty_insert_glyphs): Add missing first parameter.
25401
254022007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25403
25404 * buffer.c (Fbuffer_list, Fbury_buffer):
25405 Take frame->buried_buffer_list into account.
25406
25407 * cm.c (current_tty): New variable, for cmputc().
25408 (cmputc): Use it.
25409 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25410 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25411 (cmgoto): Add tty parameter. Pass it on to calccost().
25412 Use emacs_tputs() instead of tputs().
25413
25414 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25415 tputs().
25416 (current_tty): New variable, for cmputc().
25417 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25418
25419 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25420 (internal_condition_case, internal_condition_case_1)
25421 (internal_condition_case_2): Don't abort when x_catching_errors.
25422
25423 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25424 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25425 prevent crashes caused by bogus longjmps in read_char.
25426
25427 * keymap.h (Fset_keymap_parent): Add EXFUN.
25428
25429 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25430 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25431 Remove redundant definition.
25432
25433 * macfns.c (x_set_mouse_color, x_make_gc):
25434 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25435
25436 * w32term.c (x_free_frame_resources):
25437 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25438 (w32_initialize): Use the accessor macros for terminal characteristics.
25439
25440 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25441 Use the accessor macros for terminal characteristics.
25442 * msdos.c (internal_terminal_init): Use the accessor macros for
25443 terminal characteristics.
25444 (ScreenVisualBell, internal_terminal_init):
25445 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25446
25447 * termopts.h (no_redraw_on_reenter): Declare.
25448
25449 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25450 (mark_terminals, mark_ttys): Declare.
25451 (Fgarbage_collect): Call them.
25452 (mark_object): Mark buried_buffer_list.
25453
25454 * prefix-args.c: Include stdlib.h for exit.
25455
25456 * syssignal.h: Add comment.
25457
25458 * indent.c: Include stdio.h.
25459
25460 * window.h (Vinitial_window_system): Declare.
25461 (Vwindow_system): Delete declaration.
25462
25463 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25464
25465 * image.c (lookup_image): Don't initialize `c' until the xasserts
25466 have been run.
25467
25468 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25469 FRAME_FOREGROUND_PIXEL.
25470
25471 * print.c (print_preprocess): Don't lose print_depth levels while
25472 iterating.
25473
25474 * widget.c (update_from_various_frame_slots):
25475 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25476
25477 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25478 frames.
25479 (window_internal_height): Remove bogus make_number call.
25480 (init_window_once): Call make_terminal_frame with two zero parameters.
25481
25482 * fileio.c (Fread_file_name): Update comment.
25483
25484 * callint.c (Fcall_interactively):
25485 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25486 Make sure it is correctly unwound.
25487
25488 * xsmfns.c (x_session_close): New function.
25489
25490 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25491 Delete declarations.
25492
25493 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25494 (x_output): Remove background_pixel and foreground_pixel fields.
25495 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25496 (x_delete_device, x_session_close): Declare.
25497
25498 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25499 (read_filtered_event): Call `read_char' with a local
25500 `wrong_kboard_jmpbuf'.
25501
25502 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25503 Don't call single_kboard_state. Use FRAME_RIF.
25504
25505 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25506 systems.
25507
25508 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25509 (Fframe_with_environment, Fset_input_meta_mode)
25510 (Fset_quit_char): EXFUN.
25511 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25512 (init_sys_modes, reset_sys_modes): Update prototypes.
25513 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25514
25515 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25516 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25517 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25518 Delete declarations.
25519 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25520 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25521 New declarations.
25522
25523 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25524 already does that during init_display(). Call syms_of_keymap
25525 before syms_of_keyboard. Call `syms_of_terminal'.
25526 Call set_initial_environment, not set_process_environment.
25527 (shut_down_emacs): Call reset_all_sys_modes() instead of
25528 reset_sys_modes().
25529
25530 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25531 (internal_resolve_face_name, resolve_face_name_error): New functions.
25532 (resolve_face_name): Protect against loops and errors thrown by Fget.
25533 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25534 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25535
25536 * scroll.c: Replace CURTTY() with local variables throughout the
25537 file (where applicable).
25538 (calculate_scrolling, calculate_direct_scrolling)
25539 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25540 characteristics.
25541
25542 * keymap.c (Vfunction_key_map): Remove.
25543 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25544 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25545 (Vkey_translation_map): Remove.
25546 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25547 (Fdescribe_buffer_bindings)
25548 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25549 Update for terminal-local key-translation-map.
25550
25551 * Makefile.in (callproc.o): Update dependencies.
25552 (lisp, shortlisp): Add termdev.elc.
25553 (obj): Add terminal.o.
25554 (terminal.o): Add dependencies.
25555 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25556 (data.o, fns.o): Add termhooks.h dependency.
25557 (SOME_MACHINE_LISP): Add dnd.elc.
25558 (minibuf.o): Fix typo.
25559 Update dependencies.
25560
25561 * data.c (do_symval_forwarding, store_symval_forwarding)
25562 (find_symbol_value): Use the selected frame's keyboard, not
25563 current_kboard.
25564
25565 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25566 Vwindow_system.
25567
25568 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25569 Fmenu_bar_open.
25570 (syms_of_xmenu): Update defsubr.
25571 (mouse_position_for_popup, Fx_popup_menu)
25572 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25573 (set_frame_menubar, free_frame_menubar)
b97439ce 25574 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
25575 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25576 an X frame.
25577
25578 * xselect.c (x_own_selection): Abort if not an X frame.
25579 (some_frame_on_display): Check if it is an X frame.
25580 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25581
25582 * coding.c: Include frame.h and termhooks.h.
25583 (terminal_coding, keyboard_coding): Delete.
25584 (Fset_terminal_coding_system_internal)
25585 (Fset_keyboard_coding_system_internal)
25586 (Fkeyboard_coding_system)
25587 (Fterminal_coding_system): Add a terminal parameter.
25588 Get terminal_coding from the terminal.
25589 (init_coding_once): Don't call setup_coding_system here.
25590
25591 * dispextern.h (set_scroll_region, turn_off_insert)
25592 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25593 (tty_clear_end_of_line, tty_setup_colors)
25594 (delete_tty, updating_frame)
25595 (produce_special_glyphs, produce_glyphs, write_glyphs)
25596 (insert_glyphs): Remove.
25597 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25598 (tty_turn_off_highlight, get_tty_size): Add declaration.
25599 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25600
25601 * frame.h (enum output_method): Add output_initial.
25602 (struct x_output): Delete.
25603 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25604 Access foreground_pixel and background_pixel directly from the frame.
25605 (tty_display): Delete.
25606 (struct frame): Add buried_buffer_list, foreground_pixel,
25607 background_pixel and terminal. Delete kboard.
25608 (union output_data): Add tty.
25609 (FRAME_KBOARD): Get the kboard from the terminal.
25610 (FRAME_INITIAL_P): New macro.
25611 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25612 (Qterm_environment_variable, Qdisplay_environment_variable)
25613 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25614 New declarations.
25615
25616 * termchar.h (tty_output, tty_display_info): New structures.
25617 (tty_list): Declare.
25618 (FRAME_TTY, CURTTY): New macros.
25619 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25620 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25621 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25622 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25623
25624 * callproc.c: Include frame.h and termhooks.h, for terminal
25625 parameters.
25626 (add_env): New function.
25627 (child_setup): Use it.
25628 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25629 (getenv_internal): Fix get_terminal_param call.
25630 (Fgetenv_internal, egetenv): Update doc.
25631 (syms_of_callproc): Initialize Vprocess_environment to nil.
25632 Register and initialize them. Remove obsolete defvars. Update doc
25633 strings.
25634 (child_setup): Handle Vlocal_environment_variables.
25635 (getenv_internal): Add terminal parameter.
25636 Handle Vlocal_environment_variables.
25637 (Fgetenv_internal): Add terminal parameter.
25638 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25639 environment in a frame (not terminal) parameter. Update doc strings.
25640 (set_initial_environment): Rename from set_global_environment.
25641 Store Emacs environment in initial frame parameter.
25642
25643 * xdisp.c (redisplay_internal): Update references to
25644 `previous_terminal_frame'.
25645 (display_mode_line, Fformat_mode_line): Replace calls to
25646 `push_frame_kboard' with `push_kboard'.
25647 (get_glyph_string_clip_rects): Add extra parentheses and
25648 braces to prevent compiler warnings.
25649 (calc_pixel_width_or_height): Add xassert to check that the
25650 frame is alive. Don't call `lookup_image' on a termcap frame.
25651 (message2_nolog, message3_nolog, redisplay_internal)
25652 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25653 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25654 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25655 (Fx_display_pixel_width, Fx_display_pixel_height)
25656 (Fx_display_planes, Fx_display_color_cells)
25657 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25658 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25659 (Fx_display_backing_store, Fx_display_visual_class)
25660 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25661 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25662
25663 * xfns.c (x_set_foreground_color x_set_background_color)
25664 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25665 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25666 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25667 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25668 terminal that is being deleted.
25669 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25670 frame parameter, and make sure it overrides any user-supplied setting.
25671 (Fx_close_connection, Fx_synchronize): Unify argument names with
25672 the rest of the DEFUNs.
25673
25674 * dispnew.c (Fsend_string_to_terminal): Update call to
25675 `get_tty_terminal'.
25676 (Fredraw_frame, Fsend_string_to_terminal)
25677 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25678 FRAME_TERMCAP_P and FRAME_TTY.
25679 (window_change_signal): Don't believe width/height values that are
25680 impossibly small.
25681 (Vinitial_window_system): Rename from Vwindow_system.
25682 (termscript, Wcm, rif): Delete.
25683
25684 * termhooks.h (struct terminal): New struct containing the
25685 previously global text display hooks and new members NAME,
25686 DELETED and PARAM_ALIST.
25687 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25688 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25689 (FRAME_RIF): New macros.
25690 (get_terminal_param, get_device): New declarations.
25691 (termscript): Delete declaration.
25692
25693 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25694 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25695 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25696 FRAME_FOREGROUND_PIXEL.
25697 (x_fully_uncatch_errors): Disable definition.
25698 (x_scroll_bar_expose): Fix reference to foreground pixel.
25699 (XTread_socket): Disable loop on all X displays.
25700 (x_delete_terminal): Don't set terminal->deleted and let
25701 delete_terminal delete the frames on the terminal.
25702 (x_delete_display): Doc update to reflect changes in
25703 delete_terminal.
25704 (x_display_info) <terminal>: Move member earlier in the struct.
25705 (deleting_tty): Remove old variable.
25706 (Fsuspend_tty): Call clear_tty_hooks.
25707 (Fresume_tty, init_tty): Call set_tty_hooks.
25708 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25709 errors on X frames.
25710 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25711 (handle_one_xevent): Initialize `f' to NULL.
25712 (x_delete_terminal, x_create_terminal): New functions.
25713 (XTset_terminal_modes, XTreset_terminal_modes)
25714 (XTread_socket, x_connection_closed, x_term_init)
25715 (x_term_init, x_delete_display): Add terminal parameter.
25716 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25717 X connections.
25718
25719 * frame.c: Include termchar.h.
25720 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25721 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25722 (Qdisplay_environment_variable): New vars.
25723 (Fframep): Deal with output_initial.
25724 (Fframe-live-p): Doc fix.
25725 (Fwindow-system): New function.
25726 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25727 (make_terminal_frame): Don't create frames on a terminal that is
25728 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25729 (store_frame_param): Check for found_for_frame before calling XFRAME.
25730 (Fmake_terminal_frame): Handle NULL tty names correctly.
25731 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25732 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25733 frames to refer to a deleted frame in their 'environment parameter.
25734 (Fframe_with_environment): New function.
25735 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25736 (get_future_frame_param): New function.
25737 (Fmake_terminal_frame): Use it.
25738 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25739
25740 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25741 * sysdep.c (reset_sys_modes): Update for renames.
25742
25743 * keyboard.c (tty_read_avail_input): New function.
25744 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25745 (syms_of_keyboard): Defsubr them.
25746 (Fset_input_meta_mode, Fset_quit_char): New functions.
25747 (Fset_input_mode): Split to above functions.
25748 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25749 parameter. Use it in call to `read_char'.
25750 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25751 Set wrong_kboard_jmpbuf correctly in recursive calls.
25752 Use current_kboard to access Vkeyboard_translate_table.
25753 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25754 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25755 Update longjmp invocations. Remember the original current_kboard,
25756 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25757 changes it. Comment out unnecessary calls to
25758 `record_single_kboard_state' and `any_kboard_state'.
25759 Update recursive calls.
25760 (wrong_kboard_jmpbuf): Remove global variable.
25761 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25762 Handle deleted interrupted_kboards correctly; that is a legal
25763 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25764 and read_char calls. Abort if interrupted_kboard died in read_char.
25765 (any_kboard_state, single_kboard_state)
25766 (push_frame_kboard): Remove function.
25767 (pop_kboard): Switch out of single_kboard mode if the kboard has
25768 been deleted. Remove unused variable. Help debugging by not
25769 changing current_kboard unnecessarily. Set current_kboard to the
25770 kboard of the selected frame when the stored kboard object has
25771 been deleted before pop_kboard.
25772 (temporarily_switch_to_single_kboard): Change first parameter to a
25773 frame pointer. Throw an error when caller wants to change kboards
25774 while in single_kboard mode. Don't push_kboard if we weren't in
25775 single kboard state. Don't pop_kboard if we popped into any
25776 kboard state.
25777 (restore_kboard_configuration): Abort if pop_kboard changed the
25778 kboard in single_kboard mode. Call pop_kboard only after setting
25779 up single_kboard mode.
25780 (Frecursive_edit): Switch to single_kboard mode only in nested
25781 command loops.
25782 (cmd_error, command_loop, command_loop_1, timer_check):
25783 Comment out unnecessary call to `any_kboard_state' and
25784 `record_single_kboard_state'.
25785 (delete_kboard): Exit single_kboard mode if we have just deleted
25786 that kboard. Use FRAME_KBOARD.
25787 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25788 `fatal_error_signal'.
25789 (record_single_kboard_state): Don't push_kboard if we weren't in
25790 single kboard state. Don't pop_kboard if we popped into any
25791 kboard state.
25792 (push_frame_kboard): Rename to push_kboard.
25793 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25794 (read_avail_input): Read input from all terminals.
25795 (mark_kboards): Also mark Vkeyboard_translate_table.
25796 (kbd_buffer_store_event_hold): Simplify condition.
25797 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25798 (Vkeyboard_translate_table): Move to struct kboard.
25799 (init_kboard): Initialize Vkeyboard_translate_table.
25800 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25801 Vkeyboard_translate_table. Update doc strings. Update docs of
25802 local-function-key-map and function-key-map.
25803
25804 * terminal.c: New file.
25805
25806 * term.c: Include errno.h.
25807 (Vring_bell_function, device_list, initial_device)
25808 (next_device_id, ring_bell, update_begin, update_end)
25809 (set_terminal_window, cursor_to, raw_cursor_to)
25810 (clear_to_end, clear_frame, clear_end_of_line)
25811 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25812 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25813 (syms_of_term): Move their initialization to terminal.c.
25814 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25815 (Ftty_display_color_cells)
25816 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25817 (clear_tty_hooks, set_tty_hooks)
25818 (init_tty, maybe_fatal): New functions.
25819 (Ftty_type): Return nil if terminal is not on a tty instead of
25820 throwing an error. Doc update.
25821 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25822 Doc update. Initialize new subrs and variables.
25823 (delete_tty): Use terminal->deleted.
25824 (tty_set_terminal_modes): Rename from set_terminal_modes.
25825 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25826 (set_scroll_region): Rename to `tty_set_scroll_region'.
25827 (turn_on_insert): Rename to `tty_turn_on_insert'.
25828 (turn_off_insert): Rename to `tty_turn_off_insert'.
25829 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25830 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25831 (toggle_highligh): Rename to `tty_toggle_highlight'.
25832 (background_highlight): Rename to `tty_background_highlight'.
25833 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25834 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25835 (tty_set_scroll_region, tty_background_highlight)
25836 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25837 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25838 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25839 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25840 Add static modifier.
25841 (tty_reset_terminal_modes, tty_set_terminal_window)
25842 (tty_set_scroll_region, tty_background_highlight)
25843 (tty_highlight_if_desired, tty_cursor_to)
25844 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25845 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25846 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25847 renames.
25848
258492007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25850
25851 * keyboard.c: Qrtl is new.
25852 (parse_tool_bar_item): Handle :rtl keyword.
25853 (syms_of_keyboard): Intern :rtl keyword.
25854
25855 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25856
25857 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25858 so no Lisp code is executed.
25859 (file_for_image, find_rtl_image): New functions.
25860 (xg_get_image_for_pixmap): Use file_for_image.
25861 (update_frame_tool_bar): If direction is RTL, use RTL image if
25862 defined. Use Gtk stock images if defined.
25863
258642007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25865
25866 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25867 for nonexistent or zero-width glyph in composition glyph.
25868
258692007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25870
25871 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25872
25873 * xdisp.c (Finvisible_p): New function.
25874 (syms_of_xdisp): defsubr it.
25875
258762007-08-24 Juanma Barranquero <lekktu@gmail.com>
25877
25878 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25879 Doc fixes.
25880
258812007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25882
25883 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25884
258852007-08-24 Martin Rudalics <rudalics@gmx.at>
25886
25887 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25888 whether decoding has modified buffer contents.
25889
258902007-08-24 Jason Rumney <jasonr@gnu.org>
25891
25892 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25893 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25894 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25895 (init_svg_functions) [HAVE_NTGUI]: New function.
25896 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25897 (svg_load_image): Use them.
25898 (svg_load_image) [HAVE_NTGUI]: Implement background.
25899
259002007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25901
25902 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25903 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25904 (LIBX): Remove @RSVG_LIBS@.
25905 (LIBES): Add $(RSVG_LIBS).
25906
25907 * image.c (svg_load_image): Blend with specified background if exists.
25908 Use IMAGE_BACKGROUND. Add Mac OS Support.
25909
25910 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25911 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25912 Remove macros.
25913 [MAC_OSX] (socket_callback): Do nothing.
25914 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25915 ReceiveNextEvent.
25916 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25917 socket_callback.
25918 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25919
259202007-08-22 Glenn Morris <rgm@gnu.org>
25921
25922 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25923
259242007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25925
25926 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25927
25928 * image.c: Add support for SVG images. Some additional comments
25929 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25930 (svg_image_p): New function to test for SVG image.
25931 (svg_load): New function to load SVG image.
25932 (svg_load_image): New function, helper for svg_load.
25933 (Qsvg): New Lisp_object.
25934 (svg_keyword_index): New enum.
25935 (svg_format): New static `image_keyword' struct.
25936 (svg_type): New static `image_type' struct.
25937 (librsvg/rsvg.h): Include it.
25938
259392007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25940
25941 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25942
259432007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25944
25945 * lread.c (Qold_style_backquotes): New var.
25946 (syms_of_lread): Init and staticpro it.
25947 (load_warn_old_style_backquotes): New fun.
25948 (Fload): Use them to warn about old style backquotes.
25949 (end_of_file_error, Fload): Remove unused vars.
25950
25951 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25952
25953 * lread.c (Vold_style_backquotes): New var.
25954 (syms_of_lread): Init and export it to Elisp.
25955 (read1): Set it when we find an old-style (back)quote.
25956
259572007-08-22 Jason Rumney <jasonr@gnu.org>
25958
25959 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25960
259612007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25962
25963 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25964
259652007-08-19 Richard Stallman <rms@gnu.org>
25966
25967 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25968
259692007-08-19 Andreas Schwab <schwab@suse.de>
25970
25971 * alloc.c (pure): Round PURESIZE up.
25972
259732007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25974
25975 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25976 active frame.
25977
259782007-08-16 Richard Stallman <rms@gnu.org>
25979
25980 * eval.c (Fcommandp): Add parens to clarify.
25981
25982 * minibuf.c (Fall_completions): Use enum for type of table.
25983
25984 * emacs.c (USAGE2): Improve text.
25985
259862007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25987
25988 * term.c (tty_default_color_capabilities): Declare static
25989 variables in file scope, to avoid HPUX compiler problem.
25990
259912007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25992
25993 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25994 to gtk_toolbar_insert.
25995
259962007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25997
25998 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25999
26000 * insdel.c (reset_var_on_error): New fun.
26001 (signal_before_change, signal_after_change):
26002 Use it to reset (after|before)-change-functions to nil in case of error.
26003 Bind inhibit-modification-hooks to t.
26004 Don't bind (after|before)-change-functions to nil while they run.
26005
260062007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26007
26008 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26009 filling pixmap with stippled background.
26010
260112007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26012
26013 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26014 Don't use invisible frame as parent window for repositioning.
26015
260162007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26017
26018 * print.c (new_backquote_output): Rename from old_backquote_output.
26019 (print): Inverse its logic (according to its name) so as to match the
26020 behavior of new_backquote_flag in lread.c.
26021
260222007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26023
26024 * gmalloc.c (posix_memalign): New function.
26025
26026 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26027 ActivateControl/DeactivateControl here.
26028 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26029 frame-notice-user-settings is non-nil.
26030 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26031 for kEventParamFMFontStyle.
26032 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26033 mac_pass_command_to_system and mac_pass_control_to_system here.
26034 (XTread_socket): Call ActivateControl/DeactivateControl here.
26035 (XTread_socket) [TARGET_API_MAC_CARBON]:
26036 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26037 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26038 for window repositioning.
26039
260402007-08-08 Glenn Morris <rgm@gnu.org>
26041
26042 * Replace `iff' in doc-strings and comments.
26043
260442007-08-07 Chong Yidong <cyd@stupidchicken.com>
26045
26046 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26047
260482007-08-07 Martin Rudalics <rudalics@gmx.at>
26049
26050 * fileio.c (Finsert_file_contents): Run format-decode and
26051 after_insert_file_functions on entire buffer when REPLACE is
26052 non-nil and inhibit modification_hooks and point_motion_hooks.
26053 For consistency, run after_insert_file_functions iff something
26054 got inserted. Move signal_after_change and update_compositions
26055 after code running after_insert_file_functions. Make sure that
26056 undo_list doesn't record intermediate steps of the decoding process.
26057
260582007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26059
26060 * emacs.c (main)
26061 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26062 Call malloc_enable_thread on interactive startup.
26063
26064 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26065 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26066 [USE_PTHREAD]: Conditionalize with it.
26067 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26068 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26069 New functions.
26070
260712007-08-06 Chong Yidong <cyd@stupidchicken.com>
26072
26073 * xdisp.c (redisplay_window): When restoring original buffer
26074 position, make sure it is still valid.
26075
26076 * image.c (png_load): Ignore png-supplied background color.
26077
260782007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26079
26080 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26081 Use kCFAbsoluteTimeIntervalSince1970.
26082
26083 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26084 New variable.
26085 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26086 event loop should be quit.
26087 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26088 Quit dialog event loop if quit_dialog_event_loop is set.
26089
26090 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26091 (Selection): New typedef. Use instead of ScrapRef.
26092 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26093 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26094 (mac_clear_selection): Rename from clear_scrap.
26095 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26096 scrap_has_target_type. All uses changed.
26097 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26098 (mac_selection_has_target_p): New functions.
26099 (mac_put_selection_value): Rename from put_scrap_string.
26100 (mac_get_selection_value): Rename from get_scrap_string.
26101 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26102 (put_scrap_private_timestamp, scrap_has_target_type)
26103 (get_scrap_private_timestamp): Remove functions.
26104 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26105 (x_own_selection, x_get_local_selection):
26106 Use mac_valid_selection_value_p.
26107 (x_own_selection): Don't use put_scrap_private_timestamp.
26108 Record OWNERSHIP-INFO into Vselection_alist instead.
26109 (x_get_local_selection): Don't check type if request is local.
26110 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26111 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26112
261132007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26114
26115 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26116 add comment explaining why.
26117
261182007-08-03 Richard Stallman <rms@gnu.org>
26119
26120 * fileio.c (Fvisited_file_modtime): Use make_time.
26121
261222007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26123
26124 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26125 build.
26126
261272007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26128
26129 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26130
261312007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26132
26133 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26134
261352007-07-30 Richard Stallman <rms@gnu.org>
26136
26137 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26138
261392007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26140
26141 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26142
261432007-07-28 Nick Roberts <nickrob@snap.net.nz>
26144
26145 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26146 remote default-directory.
26147
26148 * buffer.c (mode-line-format): Update doc string.
26149
261502007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26151
26152 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26153 scroll bar gap.
26154 (x_scroll_bar_create): Set bar->fringe_extended_p.
26155 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26156 on frame edge. Check fringe background extension. Don't clear
26157 extended fringe background area.
26158
26159 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26160 (w32_fill_area): Enclose multiple statements with do ... while (0).
26161
26162 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26163 Extend fringe background to scroll bar gap.
26164 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26165 Set bar->fringe_extended_p.
26166 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26167 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26168 background extension. Don't clear extended fringe background area.
26169
26170 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26171 New member fringe_extended_p.
26172
261732007-07-25 Glenn Morris <rgm@gnu.org>
26174
26175 * Relicense all FSF files to GPLv3 or later.
26176
26177 * COPYING: Switch to GPLv3.
26178
261792007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26180
26181 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26182
26183 * data.c (Finteractive_form): Check for the presence of an
26184 `interactive-form' symbol property more thoroughly.
26185
26186 * data.c (Finteractive_form): Use an `interactive-form' property if
26187 present, analogous to the function-documentation property.
26188
261892007-07-24 Jason Rumney <jasonr@gnu.org>
26190
26191 * w32fns.c (x_real_positions): Get real position from OS instead of
26192 calculating it.
26193
261942007-07-23 Jason Rumney <jasonr@gnu.org>
26195
26196 * filelock.c (current_lock_owner): Allow for @ sign in username.
26197
261982007-07-22 Nick Roberts <nickrob@snap.net.nz>
26199
26200 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26201 remote default-directory.
26202
26203 * buffer.c (mode-line-format): Describe above case in doc string.
26204
262052007-07-20 Eli Zaretskii <eliz@gnu.org>
26206
26207 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26208 Define if not defined.
26209
262102007-07-18 Jason Rumney <jasonr@gnu.org>
26211
26212 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26213
262142007-07-18 Richard Stallman <rms@gnu.org>
26215
26216 * data.c (Fsetq_default): Doc fix.
26217
26218 * eval.c (Fsetq): Doc fix.
26219
262202007-07-18 Juanma Barranquero <lekktu@gmail.com>
26221
26222 * coding.c (Ffind_operation_coding_system):
26223 * eval.c (For, Fand): Doc fixes.
26224 Reported by Johan Bockgård.
26225
262262007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26227
26228 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26229
26230 * xterm.h: Declare x_ewmh_activate_frame.
26231
26232 * xterm.c (x_ewmh_activate_frame): New function.
26233 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26234
262352007-07-17 Martin Rudalics <rudalics@gmx.at>
26236
26237 * window.c (Fdisplay_buffer): If largest or LRU window is the
26238 only window, split it even if it is not eligible for splitting.
26239 This restores the original behavior broken by the 2007-07-15
26240 change.
26241
262422007-07-17 Glenn Morris <rgm@gnu.org>
26243
26244 * abbrev.c (abbrev_check_chars): New function.
26245 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26246 Call abbrev_check_chars to check abbrev characters are word
26247 constituents. Doc fix.
26248
262492007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26250
26251 * process.c (Fstart_process, Fmake_network_process)
26252 (read_process_output): Fix up last changes.
26253
262542007-07-16 Eli Zaretskii <eliz@gnu.org>
26255
26256 * makefile.w32-in (clean): Don't delete *~.
26257
262582007-07-16 Andreas Schwab <schwab@suse.de>
26259
26260 * window.c (Fdisplay_buffer): Use NILP.
26261 (Fset_window_scroll_bars): Likewise.
26262
262632007-07-15 Martin Rudalics <rudalics@gmx.at>
26264
26265 * window.c (window_min_size_2): New function.
26266 (window_min_size_1, size_window, Fdisplay_buffer)
26267 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26268 windows without mode- or header-lines when window-min-height is
26269 too small.
26270 (size_window): Reset nodelete_p after testing it, following an
26271 earlier note by Kim F. Storm.
26272 (display_buffer): Do not set split_height_threshold to twice the
26273 value of window_min_height to avoid changing the value of a
26274 customizable variable. Rather explicitly check whether the
26275 height of the window that shall be splitted is at least as large
26276 as split_height_threshold.
26277 (Fwindow_full_width_p): New defun.
26278 (syms_of_window): Defsubr it.
26279
26280 * window.h: Add EXFUN for Fwindow_full_width_p.
26281
262822007-07-14 Jason Rumney <jasonr@gnu.org>
26283
26284 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26285
262862007-07-14 Richard Stallman <rms@gnu.org>
26287
26288 * eval.c (maybe_call_debugger): New function.
26289 (find_handler_clause): Use maybe_call_debugger.
26290 Call it when the handler says `debug'.
26291 Eliminate DEBUGGER_VALUE_PTR.
26292 (Fsignal): Eliminate debugger_value.
26293 (Qdebug): New variable.
26294 (syms_of_eval): Initialize it.
26295
262962007-07-14 Juanma Barranquero <lekktu@gmail.com>
26297
26298 * eval.c (Fprogn):
26299 * keyboard.c (Ftrack_mouse):
26300 * print.c (Fwith_output_to_temp_buffer):
26301 * window.c (Fsave_window_excursion): Doc fix.
26302
263032007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26304
26305 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26306
263072007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26308
26309 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26310 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26311 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26312 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26313 Remove unused encoding_carryover.
26314 * process.c: Adjust all functions accordingly.
26315
263162007-07-12 Richard Stallman <rms@gnu.org>
26317
26318 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26319
263202007-07-11 Jason Rumney <jasonr@gnu.org>
26321
26322 * makefile.w32-in (LIBS): Include OLE32.
26323
26324 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26325 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26326
263272007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26328
26329 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26330 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26331 from a Lisp_Object into a bare pointer.
26332 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26333 Adjust the code correspondingly.
26334
26335 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26336
26337 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26338 (term_show_mouse_face): Remove unused var `j'.
26339 (handle_one_term_event): Remove unused vars `i' and `j'.
26340 Don't cast return value of ttyname since it's not necessary.
26341
263422007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26343
26344 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26345 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26346
26347 * fns.c (map_char_table): Use an array of int for `indices' rather than
26348 an array of Lisp_Objects (which are only ever integers anyway).
26349 (Fmap_char_table): Update caller.
26350 * lisp.h: Update prototype.
26351 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26352 * fontset.c (Ffontset_info):
26353 * casetab.c (set_case_table): Update callers.
26354
26355 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26356
26357 * keymap.c (struct accessible_keymaps_data)
26358 (struct where_is_internal_data): New structures.
26359 (accessible_keymaps_1, where_is_internal_1): Use them to change
26360 interface to adhere to the one used by map_keymap.
26361 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26362 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26363
26364 * keymap.h (map_keymap_function_t): More informative prototype.
26365
263662007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26367
26368 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26369 (looking_at_1): Don't change search_regs and last_thing_searched
26370 if `inhibit-changing-match-data' is non-nil.
26371 (string_match_1, search_buffer, set_search_regs): Likewise.
26372 (syms_of_search): Add Lisp level definition for
26373 `inhibit-changing-match-data' and set it to nil.
26374 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26375 start and end of the match, instead of using values in search_regs.
26376
263772007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26378
26379 * minibuf.c (Fcompleting_read): New value `confirm-only'
26380 for `require-match'.
26381
263822007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26383
26384 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26385 part of the 2007-06-27 change to syms_of_fileio.
26386
263872007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26388
26389 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26390 Check WINDOWP before using XWINDOW. Consolidate return statements.
26391
263922007-06-27 Richard Stallman <rms@gnu.org>
26393
26394 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26395
263962007-06-27 Juanma Barranquero <lekktu@gmail.com>
26397
26398 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26399
264002007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26401
26402 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26403 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26404 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26405 (_free_internal, memalign): Use them.
26406 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26407 Initialize to PTHREAD_MUTEX_INITIALIZER.
26408 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26409 (morecore_nolock): Rename from morecore. All uses changed.
26410 Use only nolock versions of internal allocation functions.
26411 (_malloc_internal_nolock, _realloc_internal_nolock)
26412 (_free_internal_nolock): New functions created from
26413 _malloc_internal, _realloc_internal, and _free_internal.
26414 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26415 Copy hook value to automatic variable before its use.
26416 (memalign): Copy hook value to automatic variable before its use.
26417
264182007-06-26 Kenichi Handa <handa@m17n.org>
26419
26420 * coding.c (Ffind_operation_coding_system): Docstring improved.
26421 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26422
264232007-06-25 David Kastrup <dak@gnu.org>
26424
26425 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26426 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26427 cater for additional parameter.
26428
26429 * keymap.h: Adjust number of parameters to `current-active-maps'.
26430
26431 * doc.c (Fsubstitute_command_keys): Adjust call of
26432 `current-active-maps'.
26433
264342007-06-25 David Kastrup <dak@gnu.org>
26435
26436 * callint.c (Fcall_interactively): Make the parsing of interactive
26437 specs somewhat more readable.
26438
264392007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26440
26441 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26442 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26443 if extended background has already been filled.
26444
264452007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26446
26447 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26448 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26449
26450 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26451 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26452 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26453 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26454 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26455 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26456 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26457 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26458 Run timers during dialog popup.
26459 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26460
264612007-06-21 Jason Rumney <jasonr@gnu.org>
26462
26463 * image.c (convert_mono_to_color_image): Swap fore and background.
26464
264652007-06-20 Jason Rumney <jasonr@gnu.org>
26466
26467 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26468 (w32_free_bdf_font): Unmap memory not handle.
26469
264702007-06-20 Sam Steingold <sds@gnu.org>
26471
26472 * gmalloc.c (__morecore): Fix the declaration to comply with the
26473 definition.
26474
264752007-06-20 Juanma Barranquero <lekktu@gmail.com>
26476
26477 * w32term.c (w32_delete_display): Remove leftover declaration.
26478 (w32_define_cursor, w32_initialize): Make static.
26479
26480 * w32.c (_wsa_errlist): Fix typo in error message.
26481 (init_environment): Ignore any environment variable from the
26482 registry having a null value.
26483
264842007-06-20 Glenn Morris <rgm@gnu.org>
26485
26486 * Makefile.in (LIBGIF): Default to -lgif.
26487
264882007-06-17 Jason Rumney <jasonr@gnu.org>
26489
26490 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26491 unicode strings.
26492
264932007-06-16 Juanma Barranquero <lekktu@gmail.com>
26494
26495 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26496 Fix typo in docstring.
26497
264982007-06-16 Eli Zaretskii <eliz@gnu.org>
26499
26500 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26501 and their keybindings.
26502
265032007-06-15 Chong Yidong <cyd@stupidchicken.com>
26504
26505 * composite.c (update_compositions): Fix last fix.
26506
265072007-06-14 Jason Rumney <jasonr@gnu.org>
26508
26509 * w32.c (get_process_times_fn): New function pointer.
26510 (globals_of_w32): Intialize it if present in kernel32.dll.
26511 (w32_get_internal_run_time): New function.
26512
26513 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26514
265152007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26516
26517 * composite.c (update_compositions): Check the validness of
26518 compositions.
26519
265202007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26521
26522 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26523 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26524
26525 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26526 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26527
26528 * macgui.h (USE_MAC_TOOLBAR): New define.
26529
26530 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26531 Return immediately unless popup is activated.
26532
26533 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26534 background to scroll bar gap.
26535 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26536 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26537 scroll bars on frame edge. Check fringe background extension.
26538 Don't clear extended fringe background area.
26539 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26540 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26541 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26542 [USE_MAC_TOOLBAR]: New macros.
26543 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26544 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26545 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26546 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26547 [USE_MAC_TOOLBAR]: New functions.
26548 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26549 manually if previous repositioning has failed.
26550 (mac_handle_keyboard_event): Use precomputed event kind.
26551 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26552 as tool bar item click. Handle mouse movement over tool bar items.
26553
26554 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26555 toolbar_win_gravity.
26556 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26557 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26558 Add externs.
26559
26560 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26561 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26562
265632007-06-14 Chong Yidong <cyd@stupidchicken.com>
26564
26565 * image.c (search_image_cache): Remove unused variable.
26566
265672007-06-13 Chong Yidong <cyd@stupidchicken.com>
26568
26569 * xfns.c, xmenu.c: Link to xaw3d if available.
26570
265712007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26572
26573 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26574 frame_foreground and frame_background.
26575
26576 * image.c (lookup_image): Save frame foreground and background colors.
26577 (search_image_cache): Check if saved and current frame colors match.
26578
265792007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26580
26581 * regex.c (regex_compile): Remove the `regnum' counter.
26582 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26583
265842007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26585
26586 * term.c: Include intervals.h to declare Fget_text_property.
26587
265882007-06-10 Jason Rumney <jasonr@gnu.org>
26589
26590 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26591
265922007-06-08 Juanma Barranquero <lekktu@gmail.com>
26593
26594 * callint.c (Fcall_interactively):
26595 * editfns.c (Fdelete_and_extract_region):
26596 * fileio.c (Fread_file_name):
26597 * fns.c (Fmapconcat):
26598 * keyboard.c (cmd_error_internal):
26599 * keymap.c (Fkey_description):
26600 * lread.c (openp):
26601 * minibuf.c (read_minibuf):
26602 * search.c (wordify):
26603 * sunfns.c (sel_read):
26604 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26605 * xfns.c (x_default_scroll_bar_color_parameter):
26606 * xmenu.c (menu_help_callback):
26607 * xselect.c (Fx_get_atom_name):
26608 * xterm.c (x_term_init): Use empty_unibyte_string.
26609
266102007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26611
26612 * alloc.c (init_strings): Initialize canonical empty strings.
26613 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26614 canonical empty string when the requested size is 0.
26615
26616 * emacs.c (empty_unibyte_string): Rename from empty_string.
26617 (empty_multibyte_string): New canonical empty string.
26618 (syms_of_emacs): Don't initialize empty_string.
26619
26620 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26621 string, if appropriate.
26622 (empty_unibyte_string, empty_multibyte_string): New externs.
26623 (empty_string): Remove extern.
26624
26625 * lread.c (syms_of_lread): Use empty_unibyte_string.
26626
266272007-06-07 Jason Rumney <jasonr@gnu.org>
26628
26629 * s/ms-w32.h: Don't define HAVE_TZNAME.
26630
26631 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26632
266332007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26634
26635 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26636
26637 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26638 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26639
26640 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26641 Don't call next handler.
26642 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26643 Remove argument. Install handler to application.
26644 (set_frame_menubar): Don't change deep_p.
26645 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26646 FRAME_OUTER_TO_INNER_DIFF_Y.
26647 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26648 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26649 [HAVE_DIALOGS]: New macros.
26650 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26651 Use them.
26652 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26653
26654 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26655 init_service_handler. All callers changed. Return OSStatus value.
26656
26657 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26658 All callers changed so as not to call SetPortWindowPort.
26659 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26660 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26661 mac_draw_string_common.
26662 (mac_draw_image_string_qd): Likewise.
26663 (mac_draw_string_common): Use them. Add INLINE.
26664 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26665 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26666 GetGlobalMouse.
26667 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26668 and FRAME_OUTER_TO_INNER_DIFF_Y.
26669 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26670 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26671 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26672 repositioning window to mac_handle_window_event.
26673 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26674 saving window location to mac_handle_window_event
26675 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26676 (install_menu_target_item_handler): Remove argument in extern.
26677 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26678 Also accept command events.
26679 (do_keystroke): New function created from XTread_socket.
26680 (init_command_handler): Remove functions.
26681 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26682 and save window location by kEventWindowShowing and kEventWindowHiding
26683 handlers here. Don't call next handler for window state change and
26684 focus events.
26685 (mac_handle_application_event, mac_handle_keyboard_event)
26686 [TARGET_API_MAC_CARBON]: New functions.
26687 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26688 kEventWindowShowing and kEventWindowHiding events. Move installation
26689 of mouse, font, text input and menu target item handlers to
26690 install_application_handler.
26691 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26692 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26693 New function.
26694 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26695 Register it.
26696 (XTread_socket) [TARGET_API_MAC_CARBON]:
26697 Consolidate SendEventToEventTarget calls.
26698 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26699 Move application activation handler to mac_handle_application_event.
26700 Move keyboard handler to mac_handle_keyboard_event.
26701 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26702 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26703 init_command_handler. Call install_application_handler.
26704
26705 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26706 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26707
267082007-06-07 Glenn Morris <rgm@gnu.org>
26709
26710 * emacs.c (main): Use `emacs-copyright' in --version output.
26711
267122007-06-06 Chong Yidong <cyd@stupidchicken.com>
26713
26714 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26715
267162007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26717
26718 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26719
26720 * macgui.h: Replace WindowPtr with WindowRef.
26721
26722 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26723 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26724 Replace ControlHandle with ControlRef.
26725 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26726
26727 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26728 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26729 Replace ControlHandle with ControlRef.
26730 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26731 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26732
26733 * macterm.h (struct scroll_bar): Rename member control_handle_low
26734 and control_handle_high to control_ref_low and control_ref_high.
26735 All uses changed.
26736 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26737 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26738 respectively. All uses changed.
26739 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26740 (install_window_handler, remove_window_handler): Replace WindowPtr
26741 with WindowRef in externs.
26742
267432007-06-05 Juanma Barranquero <lekktu@gmail.com>
26744
26745 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26746
267472007-06-03 Nick Roberts <nickrob@snap.net.nz>
26748
26749 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26750
26751 * frame.c (Fmouse_position, Fmouse_pixel_position):
26752 Condition on HAVE_GPM too.
26753
26754 * term.c (term_mouse_highlight): Remove unused variables.
26755 (Fterm_open_connection): Set gpm_zerobased to 1.
26756 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26757 Use zero based co-ordinates.
26758 (handle_one_term_event): Report a drag as mouse movement too.
26759
26760 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26761
267622007-06-03 Chong Yidong <cyd@stupidchicken.com>
26763
26764 * image.c (search_image_cache): New function. Require background
26765 color match if background color is unspecified in the image spec.
26766 (uncache_image, lookup_image): Use it.
26767
267682007-06-01 Juanma Barranquero <lekktu@gmail.com>
26769
26770 * window.c (Fshrink_window): Reflow docstring.
26771
267722007-06-02 Chong Yidong <cyd@stupidchicken.com>
26773
26774 * Version 22.1 released.
26775
267762007-06-01 Richard Stallman <rms@gnu.org>
26777
26778 * xfns.c (x_encode_text): Add GCPRO.
26779
267802007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26781
26782 * xfns.c (x_set_name_internal): Save encoded name before
26783 x_encode_text in case string data is relocated.
26784
267852007-05-31 Richard Stallman <rms@gnu.org>
26786
26787 * buffer.c (syms_of_buffer): Doc fix.
26788
267892007-05-30 Nick Roberts <nickrob@snap.net.nz>
26790
26791 * sysdep.c (init_sys_modes): Add rather than replace with
26792 O_NONBLOCK.
26793
26794 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26795 term_mouse_moveto.
26796
26797 * termhooks.h (term_mouse_moveto): New extern.
26798
26799 * term.c (mouse_face_window): Rename...
26800 (Qmouse_face_window): ...to this.
26801 (term_show_mouse_face, term_clear_mouse_face)
26802 (term_mouse_highlight): Use Qmouse_face_window.
26803 (term_mouse_moveto): New function.
26804 (term_mouse_position): Make it work.
26805 (syms_of_term): Uncomment assignment to mouse_position_hook.
26806 Staticpro Qmouse_face_window.
26807
268082007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26809
26810 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26811 around current_column call.
26812
268132007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26814
26815 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26816 * xdisp.c (next_element_from_buffer):
26817 * window.c (delete_window):
26818 * term.c (term_mouse_highlight):
26819 * msdos.c (getdefdir):
26820 * macterm.c (mac_create_bitmap_from_bitmap_data)
26821 (init_font_name_table):
26822 * fns.c (Fsxhash):
26823 * data.c (Fmake_local_variable):
26824 * ccl.c (ccl_driver): Likewise.
26825
268262007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26827
26828 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26829 Call mac_wakeup_from_rne on window size change.
26830
268312007-05-25 Chong Yidong <cyd@stupidchicken.com>
26832
26833 * image.c (uncache_image): Fix typo.
26834
268352007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26836
26837 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26838
268392007-05-22 Richard Stallman <rms@gnu.org>
26840
26841 * xterm.c (x_connection_closed): Remove NO_RETURN.
26842
268432007-05-22 Martin Rudalics <rudalics@gmx.at>
26844
26845 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26846
268472007-05-21 Chong Yidong <cyd@stupidchicken.com>
26848
26849 * image.c (uncache_image): New function.
26850 (Fimage_refresh): New function.
26851
268522007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26853
26854 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26855
268562007-05-20 Nick Roberts <nickrob@snap.net.nz>
26857
26858 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26859 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26860
268612007-05-20 Nick Roberts <nickrob@snap.net.nz>
26862
26863 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26864 conditional on [HAVE_GPM_H].
26865
268662007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26867
26868 * syntax.c (skip_chars): Update syntax-table only after we checked that
26869 the new location is valid.
26870
268712007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26872
26873 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26874 mac_get_window_bounds.
26875
268762007-05-20 Nick Roberts <nickrob@snap.net.nz>
26877
26878 * Makefile.in (LIBGPM): Allow it to be set from configure.
26879 If set then link Emacs with it.
26880
26881 * config.in: Regenerate.
26882
26883 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26884 New externs.
26885
26886 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26887 Include gpm.h.
26888 (handle_one_term_event, term_gpm): New externs.
26889
26890 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26891 and allow it to be interrupted by SIGIO.
26892
26893 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26894 (wait_reading_process_output): Wait on gpm_fd too.
26895 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26896 (add_gpm_wait_descriptor_called_flag): New variable.
26897 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26898
26899 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26900 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26901 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26902 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26903 (make_lispy_event): Add case GPM_CLICK_EVENT.
26904 (read_avail_input): Handle mouse input.
26905
26906 * term.c (write_glyphs_with_face): New function.
26907 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26908 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26909 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26910 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26911 (last_mouse_x, last_mouse_y): New variables.
26912 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26913 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26914 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26915 (Fterm_close_connection): New functions.
26916 (term_init): Initialise mouse_face_window.
26917
269182007-05-19 Chong Yidong <cyd@stupidchicken.com>
26919
26920 * xdisp.c (redisplay_window): If first window line is a
26921 continuation line, recompute the new window start instead of
26922 recentering.
26923
269242007-05-18 Glenn Morris <rgm@gnu.org>
26925
26926 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26927 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26928
269292007-05-17 Glenn Morris <rgm@gnu.org>
26930
26931 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26932
269332007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26934
26935 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26936 dead key repeat and up events.
26937
269382007-05-14 Chong Yidong <cyd@stupidchicken.com>
26939
26940 * image.c (pbm_load): Check image size for monochrome pbm.
26941
269422007-05-13 Chong Yidong <cyd@stupidchicken.com>
26943
26944 * xterm.c (XTread_socket): Revert last change.
26945
269462007-05-12 Chong Yidong <cyd@stupidchicken.com>
26947
26948 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26949
26950 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26951
269522007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26953
26954 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26955 mixup (YAILOM).
26956
269572007-05-07 Andreas Schwab <schwab@suse.de>
26958
26959 * keymap.c (Flookup_key): Fix typo in last change.
26960
269612007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26962
26963 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26964 mapping for unibyte strings.
26965
269662007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26967
26968 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26969 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26970
269712007-04-29 Richard Stallman <rms@gnu.org>
26972
26973 * insdel.c (replace_range): For undo, record insertion first.
26974
269752007-04-29 Andreas Schwab <schwab@suse.de>
26976
26977 * lisp.h (VECSIZE): Use OFFSETOF.
26978
269792007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26980
26981 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26982 disabled lines.
26983
269842007-04-28 Richard Stallman <rms@gnu.org>
26985
26986 * lread.c (read_escape): In a string, \s is always space.
26987
269882007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26989
26990 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26991
26992 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26993 submenu for menu bar items.
26994
26995See ChangeLog.10 for earlier changes.
26996
26997;; Local Variables:
26998;; coding: utf-8
26999;; add-log-time-zone-rule: t
aac0c6e3
MR
27000;; End:
27001
e3eb1dae 27002 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
27003
27004 This file is part of GNU Emacs.
27005
27006 GNU Emacs is free software: you can redistribute it and/or modify
27007 it under the terms of the GNU General Public License as published by
27008 the Free Software Foundation, either version 3 of the License, or
27009 (at your option) any later version.
27010
27011 GNU Emacs is distributed in the hope that it will be useful,
27012 but WITHOUT ANY WARRANTY; without even the implied warranty of
27013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27014 GNU General Public License for more details.
27015
27016 You should have received a copy of the GNU General Public License
27017 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27018
27019;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40