Fix previous merge from Gnus trunk.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
69e847be
EZ
12010-09-17 Eli Zaretskii <eliz@gnu.org>
2
3 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
4 of w32api >= 3.15. (Bug#6989)
5
283357a7
LMI
62010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
7
8 * process.c (wait_reading_process_output): Don't message about
9 accept-process-output unless the time limit really is zero.
10
4ddb20d6
SM
112010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12
13 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
14 int/Lisp_Object mixup).
15
e24ad6dd
J
162010-09-17 Jan Djärv <jan.h.d@swipnet.se>
17
18 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
19 not HELP.
20
fb0cf781
J
212010-09-17 Stephen Berman <stephen.berman@gmx.net>
22
23 * frame.c (Ftool_bar_pixel_width): New function to expose tool
24 bar's pixel width to Lisp (Bug#7048).
25
4ddb20d6
SM
262010-09-14 Juanma Barranquero <lekktu@gmail.com>
27
28 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 29
318a04c6
J
302010-09-17 Jan Djärv <jan.h.d@swipnet.se>
31
32 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
33 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
34
78a21772
KH
352010-09-17 Kenichi Handa <handa@m17n.org>
36
37 * ftfont.c (ftfont_check_otf): Fix previous change.
38
fa3f6039
KH
392010-09-14 Kenichi Handa <handa@m17n.org>
40
41 * ftfont.c (ftfont_check_otf): Fix the case of checking just
42 existence of GSUB or GPOS.
43
2b5491fa
JB
442010-09-14 Juanma Barranquero <lekktu@gmail.com>
45
46 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
47
c97c655f
LMI
482010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
49
2b5491fa 50 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
51 what it does.
52 (parse_string): Return nil when the document can't be parsed.
53
6664fc59 542010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
55
56 * xterm.c (get_current_vm_state): New function.
57 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
58 want_fullscreen so set_wm_state calls are few (Bug#7013).
59 (x_handle_net_wm_state): Move code to get_current_vm_state and
60 call that function.
61
6664fc59 622010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
63
64 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
65
6664fc59 662010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
67
68 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
69 we may use designation or locking-shift.
70
6664fc59 712010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
72
73 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
74 sequence when the source is multibyte.
75
1da70e99
AS
762010-09-14 Andreas Schwab <schwab@linux-m68k.org>
77
6664fc59
JB
78 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
79 Don't make first argument optional. Doc fix.
1da70e99 80
26632d8d
LMI
812010-09-14 Leo <sdl.web@gmail.com> (tiny change)
82
83 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
84 parameters for the doc string.
85
21fa8e37
LMI
862010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
87
88 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
89
5616cc54
SM
902010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
91
92 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
93 (syms_of_fns): Don't defsubr Sy_or_n_p.
94 * lisp.h: Don't declare Fy_or_n_p.
95 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
96
381408e2
LMI
972010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
98
99 * xml.c (Fxml_parse_buffer): New function to parse XML files.
100
1012010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
102
103 * xml.c: New file.
104 (Fhtml_parse_buffer): New function to interface to the libxml2
105 html parsing function.
106
733946e7
JB
1072010-09-05 Juanma Barranquero <lekktu@gmail.com>
108
109 * biditype.h: Regenerate.
110
7574650a
AS
1112010-09-04 Andreas Schwab <schwab@linux-m68k.org>
112
113 * nsimage.m (ns_load_image): Check argument types.
114
115 * image.c: Remove all uses of gcpro.
116 (xpm_load): Check all lisp types.
117 (pbm_load): Likewise.
118 (png_load): Likewise.
119 (jpeg_load): Likewise.
120 (tiff_load): Likewise.
121 (gif_load): Likewise.
122 (imagemagick_load_image): Likewise.
123 (imagemagick_load): Likewise.
124 (svg_load): Likewise.
125 (gs_load): Likewise.
126
6e6b8e25
EZ
1272010-09-04 Eli Zaretskii <eliz@gnu.org>
128
129 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
130 try to reorder grapheme clusters, since LGSTRING should always
131 hold them in the logical order.
132 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
133 return glyph codes in the logical order.
134
dbfe4532
AS
1352010-09-04 Andreas Schwab <schwab@linux-m68k.org>
136
137 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 138 (imagemagick_load_image): Fix type mismatch.
5e5992c2 139 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 140
6d7cc563
JD
1412010-09-02 Jan Djärv <jan.h.d@swipnet.se>
142
143 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
144
145 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
146
147 * xselect.c: Remove declaration of cut-buffer objects and functions.
148 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
149 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
150 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
151 (Fx_rotate_cut_buffers_internal): Remove.
152 (syms_of_xselect): Remove defsubr of above.
153 Remove intern of QCUT_BUFFERn.
154
8f4e9110
SM
1552010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
156
157 * cmds.c (Vblink_paren_function): Remove.
158 (internal_self_insert): Make it insert N chars at a time.
159 Don't call blink-paren-function.
160 (Fself_insert_command): Adjust accordingly.
161 (syms_of_cmds): Don't declare blink-paren-function.
162
d419e1d9
KH
1632010-08-31 Kenichi Handa <handa@m17n.org>
164
165 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
166 characters.
167
168 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
169 (produce_glyphs): Don't set it->char_to_display here.
170 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
171 (produce_special_glyphs): Set temp_it.char_to_display before
172 calling produce_glyphs.
173
174 * xdisp.c (get_next_display_element): Set it->char_to_display
175 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
176 characters.
177 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
178 calling PRODUCE_GLYPHS.
179 (append_space_for_newline): Save and store it->char_to_display.
180 Set it->char_to_display before calling PRODUCE_GLYPHS.
181 (extend_face_to_end_of_line): Set it->char_to_display before
182 calling PRODUCE_GLYPHS.
183 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
184 character to its byte value.
185 (get_char_glyph_code): New function.
186 (produce_stretch_glyph): Set it2.char_to_display too before
187 calling x_produce_glyphs.
188 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
189 non-ASCII characters. Don't set it->char_to_display here.
190 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 191 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 192
b819f760
SM
1932010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
194
195 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
196
07fa68a7
CY
1972010-08-31 Chong Yidong <cyd@stupidchicken.com>
198
199 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
200
cd196f12
SM
2012010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
202
203 * marker.c (Fcopy_marker): Make the first arg optional.
204
49a752bb
KH
2052010-08-30 Kenichi Handa <handa@m17n.org>
206
207 * composite.c (composition_update_it): Fix computing of
208 cmp_it->width.
209
769ae9e1
KH
2102010-08-29 Kenichi Handa <handa@m17n.org>
211
9e69cb05 212 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 213 corresponding bytes.
9e69cb05 214
4520b858
J
2152010-08-29 Jan Djärv <jan.h.d@swipnet.se>
216
217 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
218
fe50eb41
KH
2192010-08-26 Kenichi Handa <handa@m17n.org>
220
221 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
222 on calling composition_compute_stop_pos.
223
f6aa6ec6
KH
2242010-08-25 Kenichi Handa <handa@m17n.org>
225
9dfdbc0a
KH
226 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
227 :otf.
228
f6aa6ec6
KH
229 * composite.c (composition_compute_stop_pos): Don't break
230 composition at PT.
231 (composition_reseat_it): Likewise. Fix calculation of character
232 position starting a composition.
233 (Fcomposition_get_gstring): Don't limit the number of components
234 for automatic composition.
235
ff94e32c
KH
2362010-08-25 Kenichi Handa <handa@m17n.org>
237
238 * composite.c (composition_compute_stop_pos): In forward search,
239 pay attention to the possibility that some character after ENDPOS
240 will be composed with charactrs before ENDPOS.
241
1c409d0b
CY
2422010-08-24 Chong Yidong <cyd@stupidchicken.com>
243
244 * keyboard.c (command_loop_1): Don't clobber primary selection
245 during handle-switch-frame (Bug#6872).
246
0c372655
MA
2472010-08-23 Michael Albinus <michael.albinus@gmx.de>
248
249 * dbusbind.c: Accept UNIX domain sockets as bus address.
250 (Fdbus_close_bus): New function.
251 (Vdbus_registered_buses): New variable.
252 (xd_initialize): Implement string as bus address.
253 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
254 (Fdbus_get_unique_name, Fdbus_call_method)
255 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
256 (Fdbus_method_error_internal, Fdbus_send_signal)
257 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
258 check. This is done in xd_initialize_bus. Adapt doc string, if
259 necessary.
260 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
261 Vdbus_registered_buses.
262 (Vdbus_registered_objects_table): Create hash.
263
7133b7ee
JL
2642010-08-22 Juri Linkov <juri@jurta.org>
265
266 * keyboard.c (Fexecute_extended_command): Move reading a command name
267 with `completing-read' to a new Elisp function `read-extended-command'.
268 Call it to read a command to `function' (bug#5364, bug#5214).
269
198a7a97
CY
2702010-08-22 Chong Yidong <cyd@stupidchicken.com>
271
272 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
273
b0126eac 2742010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
275
276 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
277 instead of SAFE_ALLOCA.
278
b0126eac 2792010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
280
281 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
282 (Bug#6214).
283
b0126eac 2842010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
285
286 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
287
b0126eac
CY
2882010-08-22 Jan Djärv <jan.h.d@swipnet.se>
289
290 * doc.c (Fsnarf_documentation): Initialize skip_file before
291 build-files test.
292
692f3ddc 2932010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 294
692f3ddc
JB
295 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
296 New definitions.
b0126eac
CY
297 (HAVE_TERMIO): Remove.
298
5f2f0bc1
EZ
2992010-08-22 Eli Zaretskii <eliz@gnu.org>
300
b613941b
EZ
301 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
302
a583bbef
EZ
303 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
304 for w32.
305
306 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
307 it's done in nt/config.nt.
308
309 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
310
5f2f0bc1
EZ
311 * unexcoff.c (report_error, make_hdr, write_segment)
312 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
313 Convert argument lists and prototypes to ANSI C.
314 (make_hdr, write_segment): Remove unused variables.
315 (unexec): Remove commented-out line. Initialize `new' to shut up
316 compiler warnings.
317
a7ebc409
DN
3182010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
319
320 Simplify termio code.
321 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
322 HAVE_TERMIO code is obsolete.
323 Replace HAVE_TERMIOS conditionals with !DOS_NT.
324 * systty.h: Do not define HAVE_TCATTR.
325 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
326 Do not define EMACS_HAVE_TTY_PGRP. Only define
327 EMACS_GET_TTY_PGRP for !DOS_NT.
328 * sysdep.c: Include sysselect.h unconditionally. Do not include
329 sys/ioctl.h and termios.h, systty.h does it. Use
330 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
331 (init_baud_rate): Remove HAVE_TERMIO code.
332 (child_setup_tty): Remove HAVE_TERMIO code.
333 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
334 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
335 (new_ltchars, new_tchars): Remove, unused.
336 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
337 code. Remove special casing for __mips__, it was a no-op. Remove
338 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
339 (init_sys_modes): Remove HPUX special case.
340 * process.c: Include stdlib.h unconditionally. Do not include
341 fcntl.h, systty.h does it. Remove conditional code for
342 HAVE_SERIAL, it is always true.
343 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
344 always true when SIGNALS_VIA_CHARACTERS is true.
345 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
346 !WINDOWSNT means HAVE_TERMIOS.
347 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
348 conditional, which is true for all HAVE_TERMIOS systems.
349 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
350 instead of HAVE_TERMIOS.
351 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
352 EMACS_HAVE_TTY_PGRP.
353 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
354 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
355 anyway.
356
40629f17
EZ
3572010-08-21 Eli Zaretskii <eliz@gnu.org>
358
359 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
360 mirroring pixel positions.
361
d931da8c
DN
3622010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
363
b5c76d0c
DN
364 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
365 write only.
366 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
367 malloc_sbrk_used, nothing uses them.
368
74815588
DN
369 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
370 defined, unconditionally defined in lisp.h.
371
f5817d1c
DN
372 * term.c: Do not include <termios.h>, systty.h does it.
373
d931da8c
DN
374 * s/unixware.h (HAVE_TCATTR):
375 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
376 systty.h defines it when HAVE_TERMIOS is defined.
377
ff2de6d2 3782010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 379
b43c883c 380 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 381 terminals: add one-character offset for R2L lines.
b43c883c 382
491a1546
EZ
383 * emacs.c <emacs_version>: Add a comment regarding
384 msdos/mainmake.v2's dependency on the syntax of this declaration.
385
2396cbba
EZ
3862010-08-20 Eli Zaretskii <eliz@gnu.org>
387
388 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
389 position for R2L lines by mirroring the pixel position wrt the
390 text are box. Improve commentary.
391
7df6150a
AS
3922010-08-20 Andreas Schwab <schwab@linux-m68k.org>
393
394 * image.c (imagemagick_clear_image): Remove debugging output.
395
a2e5caf7
SM
3962010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
397
398 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
399 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
400 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
401 self-insert-face.
402 (syms_of_cmds): Initialize the new vars.
403
20d60baf
JR
4042010-08-19 Jason Rumney <jasonr@gnu.org>
405
cc477da7
JR
406 * w32menu.c (set_frame_menubar): Remove call to undefined function.
407
20d60baf
JR
408 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
409
2c0ac867
J
4102010-08-19 Jan Djärv <jan.h.d@swipnet.se>
411
412 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
413
93352106
EZ
4142010-08-18 Eli Zaretskii <eliz@gnu.org>
415
416 * xterm.c (x_draw_bar_cursor):
417 * w32term.c (x_draw_bar_cursor): If the character under cursor is
418 R2L, draw the bar cursor on its right rather than on its left.
419
c785836d
SM
4202010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
421
0193499f
SM
422 * eval.c (Fdefmacro): Only obey one declaration.
423
c785836d
SM
424 * casefiddle.c (casify_region): Setup gl_state.
425
9cb728a5
J
4262010-08-18 Jan Djärv <jan.h.d@swipnet.se>
427
428 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
429
e1e18511
J
4302010-08-18 Jan Djärv <jan.h.d@swipnet.se>
431
432 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
433
64cb6c78
J
4342010-08-18 David De La Harpe Golden <david@harpegolden.net>
435
436 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
437 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
438 QPRIMARY => NXPrimaryPboard.
439 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
440 NXPrimaryPboard => QPRIMARY.
441 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
442 NXSecondaryPboard = SecondarySelection.
443 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
444
0c9b8993
GM
4452010-08-18 Joakim Verona <joakim@verona.se>
446
447 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
448 defined:
449 (imagemagick_image_p): New function to test for ImageMagic image.
450 (imagemagick_load): New function to load ImageMagick image.
451 (imagemagick_load_image): New function, helper for imagemagick_load.
452 (imagemagick-types): New function.
453 (Qimagemagick): New Lisp_object.
454 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 455
c3554f68
SM
4562010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
457
458 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
459 is a string.
460
1ff2e434
J
4612010-08-17 Jan Djärv <jan.h.d@swipnet.se>
462
463 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
464 x_set_tool_bar_position handler.
465
0cc56427
EZ
4662010-08-17 Eli Zaretskii <eliz@gnu.org>
467
468 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
469 x_set_tool_bar_position handler, needed to support changes from
470 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
471
e45a249b
JD
4722010-08-16 Jan Djärv <jan.h.d@swipnet.se>
473
921242c6
J
474 * nsselect.m: include keyboard.h for QPRIMARY, remove its
475 declaration (Bug#6863).
573d150b 476 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 477
e45a249b
JD
478 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
479
480 * keyboard.h (QPRIMARY): Declare (Bug#6864).
481
7c23dd44
CY
4822010-08-16 Chong Yidong <cyd@stupidchicken.com>
483
484 * keyboard.c (command_loop_1): Avoid setting selection twice,
485 since it's done in deactivate-mark as well.
486 (Vselect_active_regions): Change default to t. Replace `lazy'
487 with non-default value `only', meaning only set PRIMARY for
488 temporarily active regions.
489
490 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
491 select-active-regions.
492
0005830c
J
4932010-08-15 Jan Djärv <jan.h.d@swipnet.se>
494
495 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
496 isn't a string.
497
603dfc72
AS
4982010-08-15 Andreas Schwab <schwab@linux-m68k.org>
499
500 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
501
c25ce9d0
J
5022010-08-15 Jan Djärv <jan.h.d@swipnet.se>
503
c3554f68
SM
504 * keyboard.c (parse_tool_bar_item): malloc buf.
505 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
506 new_lbl (Bug#6855).
c25ce9d0 507
5872c762
EZ
5082010-08-14 Eli Zaretskii <eliz@gnu.org>
509
b236615c
EZ
510 * xterm.c (x_draw_stretch_glyph_string):
511 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
512 the cursor on the right edge of the stretch glyph.
513
c3554f68
SM
514 * xdisp.c (window_box_right_offset, window_box_right):
515 Fix commentary.
b236615c 516
5872c762
EZ
517 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
518 direction when point is inside a run of whitespace characters.
519
520 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
521
e66f9a1b
JR
5222010-08-14 Jason Rumney <jasonr@gnu.org>
523
524 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
525
79d6f59e
CY
5262010-08-14 Chong Yidong <cyd@stupidchicken.com>
527
528 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
529
1c9b4129
JR
5302010-08-13 Jason Rumney <jasonr@gnu.org>
531
532 * w32menu.c (simple_dialog_show): Use unicode message box if available.
533 (MessageBoxW_Proc): New function typedef.
534 (unicode-message-box): New function pointer.
535 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
536
2b4e6277
J
5372010-08-13 Jan Djärv <jan.h.d@swipnet.se>
538
539 * frame.h (Qtool_bar_position): Declare.
540
541 * xfns.c (Fx_create_frame): Call x_default_parameter for
542 Qtool_bar_position.
543
94c97d85
EZ
5442010-08-13 Eli Zaretskii <eliz@gnu.org>
545
8ee81892
EZ
546 * unexcoff.c: Remove the parts used when "emacs" is not defined.
547 (report_error, report_error_1): Ditto.
548 (write_segment): Remove "#if 0" unused code.
549 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
550 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
551 (start_of_text): Remove unused function (was used only if NO_REMAP
552 was NOT defined).
553
891ef8f7
EZ
554 * msdos.c (IT_set_face): Fix format string to match argument
555 types.
556 (IT_write_glyphs, IT_note_mode_line_highlight)
557 (IT_set_frame_parameters): Remove unused variables.
558 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
559 (IT_set_terminal_modes): Disambiguate expression in if clause.
560 (Fmsdos_remember_default_colors): Return Qnil.
561 (IT_set_frame_parameters): Add parens to disambiguate boolean
562 expression for logging the cursor type to termscript.
563 (keyboard_layout_list, keypad_translate_map)
564 (grey_key_translate_map): Add braces in inner initializers.
565 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
566 (dos_rawgetc): Remove unused label.
567 (XMenuActivate): Add braces to remove ambiguous `else'.
568 (dos_ttraw): Always return a value.
569 (spawnve): Declare.
570 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
571
572 * dosfns.h (x_set_title): Declare.
573
574 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
575 Remove unused variables.
576
577 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
578 variables.
579 (init_dosfns): Declare get_lim_data.
580 (system_process_attributes): Declare Fget_internal_run_time.
581
38e41e0e
EZ
582 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
583 list to be consistent with menu.h.
584
94c97d85
EZ
585 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
586 warnings due to mixing of "char *" and "const char *".
587
c5683ceb
SM
5882010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
589
590 Introduce a new comment style "c" flag.
591 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
592 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
593 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
594 (syntax_prefix_flag_p): New function.
595 (Fstring_to_syntax): Understand new "c" flag.
596 (Finternal_describe_syntax_value): Recognize new flag; use the
597 SYNTAX_FLAGS_* macros.
598 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
599 comment style to accomodate the new styles.
600 (back_comment, forw_comment, Fforward_comment, scan_lists)
601 (scan_sexps_forward): Update code to obey the new comment style flag.
602
603 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
604
605 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
606
7aee76f4
J
6072010-08-11 Jan Djärv <jan.h.d@swipnet.se>
608
3a46642b
J
609 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
610 first.
94dff98f 611 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
612
613 * gtkutil.h (xg_check_special_colors): Declare.
614
615 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
616 (xg_create_frame_widgets): Connect theme name changes to
617 style_changed_cb.
618
42ca4633
J
619 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
620 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
621 (x_term_init): Use char[] display_opt and name_opt instead of
622 string literal. file is const char*.
623
624 * xsmfns.c (NOSPLASH_OPT): Change to char[].
625 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
626 props. Free them at the end.
627
628 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
629
c5683ceb
SM
630 * xrdb.c (get_system_app): Make path const and use char *p for
631 non-const char.
42ca4633
J
632
633 * xmenu.c (Fx_popup_dialog): error_name is const char*.
634 (xmenu_show): error parameter is const char **. pane_string is const
635 char *.
636 (button_names): Is const char *.
637 (xdialog_show): error_name and pane_string is const.
638
639 * process.h (synch_process_death): Is const char*.
640
641 * w32menu.c (w32_menu_show):
642 * nsmenu.m (ns_menu_show): error parameter is const char **.
643
644 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
645 is const char **.
646
647 * menu.c (Fx_popup_menu): error_name is const.
648
649 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
650 with unsigned char and XtPointer with void *.
651
652 * gtkutil.h: Replace widget_value with struct _widget_value.
653 (enum button_type, struct _widget_value): Remove and use the one from
654 keyboard.h.
655
656 * gtkutil.c (get_utf8_string): Always return an allocated string.
657 Parameter is const.
658 (create_dialog, xg_create_one_menuitem, create_menus)
659 (xg_item_label_same_p, xg_update_menu_item): Free result from
660 get_utf8_string.
661 (xg_separator_p, xg_item_label_same_p): label is const.
662
663 * font.h (font_open_by_name): Make name const.
664
665 * font.c (font_open_by_name): Make name const.
666
667 * floatfns.c (matherr): Use a const char* variable for x->name.
668
669 * emacs.c (main): Pass char[] to putenv instead of literal.
670
671 * callproc.c (synch_process_death): Make const.
672 (Fcall_process): Make signame const.
673
9c5bd55a
J
674 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
675 (addDisplayItemWithImage): Use const char*.
676
677 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
678 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
679
680 * nsfont.m (ns_descriptor_to_entity): Use const char*.
681
682 * keyboard.h (_widget_value): name, value and key are const char*.
683
7aee76f4
J
684 * unexmacosx.c (unexec_error): Use const char *.
685
09d93395
DN
6862010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
687
688 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 689 (font_parse_name, font_open_by_name):
09d93395 690 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 691 (font_parse_name, font_open_by_name): Remove const.
09d93395 692
671d409f
AS
6932010-08-09 Andreas Schwab <schwab@linux-m68k.org>
694
695 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
696 definition.
697
698 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
699 * m/amdx86-64.h: Likewise.
700 * m/arm.h: Likewise.
701 * m/hp800.h: Likewise.
702 * m/ia64.h: Likewise.
703 * m/ibmrs6000.h: Likewise.
704 * m/ibms390.h: Likewise.
705 * m/intel386.h: Likewise.
706 * m/iris4d.h: Likewise.
707 * m/m68k.h: Likewise.
708 * m/macppc.h: Likewise.
709 * m/mips.h: Likewise.
710 * m/sh3.h: Likewise.
711 * m/sparc.h: Likewise.
712 * m/template.h: Likewise.
713 * m/vax.h: Likewise.
714 * m/xtensa.h: Likewise.
715 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
716 WORDS_BIG_ENDIAN.
717 * lisp.h: Likewise.
718 * md5.c: Likewise.
719 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
720
8ea90aa3
DN
7212010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
722
723 Use const char* instead of char*.
724 Reduce the number of warnings with -Wwrite-strings.
725 * xrdb.c (get_environ_db, get_system_name):
726 * unexelf.c (find_section):
727 * term.c (string_cost, string_cost_one_line, per_line_cost)
728 (get_named_tty, init_tty):
729 * sysdep.c (sys_subshell):
730 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
731 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
732 * search.c (Freplace_match):
733 * process.c (Fmake_network_process, send_process, init_process):
734 * lread.c (Fload, init_lread):
735 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
736 * keyboard.c (parse_tool_bar_item, struct event_head):
737 * gtkutil.h (xg_get_font_name):
738 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
739 (make_widget_for_menu_item, make_menu_item, create_menus)
740 (xg_make_tool_item):
741 * font.c (parse_matrix, font_parse_name):
742 * floatfns.c (rounding_driver, float_error_fn_name):
743 * filelock.c (get_boot_time_1, lock_file_1):
744 * fileio.c (barf_or_query_if_file_exists, check_writable):
745 * editfns.c (get_system_name, get_operating_system_release)
746 (Fencode_time, Fset_time_zone_rule):
747 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
748 * buffer.c (defvar_per_buffer): Use const.
749
7815fe19 7502010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 751
692f3ddc 752 * charset.c: Include <stdlib.h>.
7a84eee5
KH
753 (struct charset_sort_data): New struct.
754 (charset_compare): New function.
692f3ddc 755 (Fsort_charsets): New function.
7a84eee5
KH
756 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
757
758 * coding.c (decode_coding_iso_2022): Fix checking of dimension
759 number in CTEXT extended segment.
760
7815fe19 7612010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
762
763 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
764 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
765
7815fe19 7662010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
767
768 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
769 (Fhash_table_size): Fix typos in docstrings.
770 (Fmake_hash_table): Doc fix.
771
7815fe19 7722010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
773
774 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
775 Doc fix (bug#5625).
776
7815fe19 7772010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
778
779 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
780 the MSDOS definition.
781
1b6d8cf0
DN
7822010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
783
675e2c69
DN
784 Use const char* instead of char*.
785 * xterm.c (x_create_toolkit_scroll_bar):
786 * xfont.c (xfont_list_pattern):
787 * xfns.c (x_default_scroll_bar_color_parameter)
788 (xic_create_fontsetname, x_default_font_parameter)
789 (x_screen_planes):
790 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
791 (store_mode_line_string, decode_mode_spec, display_string):
792 * menu.c (digest_single_submenu):
793 * keymap.h (initial_define_key, initial_define_lispy_key):
794 * keymap.c (initial_define_key, initial_define_lispy_key):
795 * image.c (image_error, image_keyword):
796 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
797 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
798 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
799 (ftfont_list, ftfont_match):
800 * frame.c (frame_parm_table):
801 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
802 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
803 (font_add_log, font_deferred_log):
804 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
805 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
806 (font_add_log, font_deferred_log):
807 * emacs.c (argmatch):
808 * dispextern.h (struct it):
809 * coding.c (ENCODE_DESIGNATION):
810 * charset.c (define_charset_internal): Use const.
811
25717ca1
DN
812 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
813
c5683ceb
SM
814 * xrdb.c: Remove include guard.
815 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
816 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
817 realloc->xrealloc instead of using #defines.
818
efb41e21
EZ
8192010-08-08 Eli Zaretskii <eliz@gnu.org>
820
cd21226d 821 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
822 * editfns.c (Fline_beginning_position, Fline_end_position):
823 State in the doc strings that start and end of line are in the
824 logical order.
cd21226d 825
efb41e21
EZ
826 * xdisp.c (display_line): Move the handling of overlay arrow after
827 the call to find_row_edges. (Bug#6699)
828
746812d9
CY
8292010-08-07 Chong Yidong <cyd@stupidchicken.com>
830
831 * keyboard.c (command_loop_1):
832 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
833
9852377f
CY
8342010-08-07 Chong Yidong <cyd@stupidchicken.com>
835
836 * insdel.c (prepare_to_modify_buffer): Save active region text to
837 Vsaved_region_selection.
838
839 * xselect.c (QPRIMARY): Move to keyboard.c.
840
841 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
842 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
843 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 844
0e9c8657
JB
8452010-08-07 Juanma Barranquero <lekktu@gmail.com>
846
847 * alloc.c (lisp_malloc):
848 * buffer.c (set_buffer_internal, set_buffer_internal_1):
849 * charset.h (emacs_mule_charset):
850 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
851 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
852 (bitch_at_user):
853 * lisp.h (Fcheck_coding_system, Fget_text_property)
854 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
855 Remove duplicate declarations.
856
648801d1
DN
8572010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
858
32bc6709
DN
859 * process.c: Simplify include logic.
860
3ef1d108
DN
861 * keyboard.h (quit_char): Add declaration.
862 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
863 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
864 Add declarations.
3ef1d108
DN
865 * sysdep.c:
866 * w32.c: Remove the above declarations.
867
97ec208f
DN
868 Remove extern declarations in .c files, .h files have them.
869 * xterm.c:
870 * xdisp.c:
97ec208f
DN
871 * msdos.c:
872 * image.c:
873 * gtkutil.c:
874 * fileio.c:
875 * eval.c: Remove declarations.
876
94eed851
DN
877 * frame.c (frame_params): Make const.
878
36e053eb
DN
879 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
880
0e843971
DN
881 * emacs.c (emacs_copyright, emacs_version): Make static.
882 (Vinitial_window_system, Vauto_save_list_file_name)
883 (Vinhibit_redisplay): Remove declarations.
884 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
885 for AIX.
886
648801d1
DN
887 Use const for some arrays and functions.
888 * xterm.h (xg_set_icon_from_xpm_data):
889 * xfns.c (xg_set_icon_from_xpm_data):
890 * term.c (fkeys):
891 * keyboard.c (lispy_accent_keys, lispy_function_keys)
892 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
893 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
894 (frame.c frame_parms):
895 * emacs-icon.h (gnu_xpm_bits):
896 * callint.c (callint_argfuns): Use const.
897
8646d999
J
8982010-08-06 Jan Djärv <jan.h.d@swipnet.se>
899
900 * sysdep.c: Move include term.h last of includes (Bug#6812).
901
cb4545ad
EZ
9022010-08-06 Eli Zaretskii <eliz@gnu.org>
903
904 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
905
906 * msdos.c (IT_display_cursor): Log cursor position on termscript.
907
908 * .gdbinit (pgx): Display the avoid_cursor_p flag.
909
da7e2be6
JB
9102010-08-06 Juanma Barranquero <lekktu@gmail.com>
911
912 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
913
3d608a86
J
9142010-08-06 Jan Djärv <jan.h.d@swipnet.se>
915
7908fb60
J
916 * xterm.h (x_get_focus_frame): Declare.
917
918 * keyboard.h (poll_for_input_1): Unconditionally declare.
919
4094bf36
J
920 * nsterm.h (x_set_menu_bar_lines): Declare.
921
922 * window.c: Don't include menu.h, it depends on lots of other .h-files.
923
3d608a86
J
924 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
925
926 * window.c: Include menu.h.
927
928 * unexmacosx.c (print_region_list, print_regions)
929 (build_region_list, find_emacs_zone_regions)
930 (unexec_regions_merge, read_load_commands, dump_it)
931 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
932
933 * term.c: Check HAVE_SYS_IOCTL_H.
934
686b968e 935 * sysdep.c: Check HAVE_TERM_H.
3d608a86 936
686b968e 937 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
938
939 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
940 (ns_ring_bell, ns_defined_color, hide_hourglass)
941 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
942 Convert to ANSI C prototypes.
943 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
944 before code.
945
946 * nsterm.h : Include sysselect.h.
947 (x_sync, x_get_focus_frame, x_set_mouse_position)
948 (x_set_mouse_pixel_position, x_make_frame_visible)
949 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
950 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
951 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
952 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 953 Declare.
3d608a86
J
954
955 * nsmenu.m (popup_activated, name_is_separator)
956 (syms_of_nsmenu): Convert to ANSI C prototypes.
957 (runMenuAt): Prototypes and move declarations before code.
958
959 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
960
961 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
962 prototypes.
963
964 * nsfns.m (have_menus_p, ns_display_info_for_name)
965 (x_set_cursor_type, ns_appkit_version_str)
966 (ns_appkit_version_int, ns_do_applescript)
967 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
968 (syms_of_nsfns): Convert to ANSI C prototypes.
969
970 * menu.h (x_set_menu_bar_line): Declare.
971 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
972
973 * lisp.h (fmod_float): Declare.
974
975 * image.c (xpm_scan, xpm_make_color_table_v)
976 (xpm_put_color_table_v, xpm_get_color_table_v)
977 (xpm_make_color_table_h, xpm_put_color_table_h)
978 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
979 (xpm_load): Convert to ANSI C prototypes.
980
981 * emacs.c: Include nsterm.h if HAVE_NS.
982
983 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
984
fce70521
DN
9852010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
986
987 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
988 subprocesses, only MSDOS does not define HAVE_SOCKETS.
989 (socket_options): Use const char* for name.
990
a11889ab
JB
9912010-08-06 Juanma Barranquero <lekktu@gmail.com>
992
993 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
994
995 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
996 Don't declare xmalloc_widget_value and digest_single_submenu.
997
998 * w32font.c (Qlatin): Remove declaration.
999
1000 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1001
c95b508f 1002 * dired.c (compile_pattern): Restore declaration.
a11889ab 1003
6254cdda
DN
10042010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1005
04bab72c
DN
1006 Remove extern declarations in .c files, .h files have them.
1007 * data.c:
1008 * dired.c:
1009 * editfns.c:
1010 * filelock.c:
1011 * fns.c:
1012 * font.c:
1013 * fontset.c:
1014 * frame.c:
1015 * fringe.c:
1016 * ftfont.c:
1017 * gtkutil.c:
1018 * indent.c:
1019 * keyboard.c:
1020 * keymap.c:
1021 * lread.c:
1022 * menu.c:
1023 * print.c:
1024 * search.c:
1025 * sound.c:
1026 * window.c:
1027 * xdisp.c:
1028 * xfaces.c:
1029 * xfns.c:
1030 * xfont.c:
1031 * xftfont.c:
1032 * xmenu.c:
1033 * xterm.c: Remove declarations.
1034
dff94ed5
DN
1035 Cleanup syssignal.h.
1036 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1037 (main_thread): Move down to remove #ifdef.
1038 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1039 Remove conditional definition following unconditional ones.
1040
99f3388e
DN
1041 * lisp.h: Remove HAVE_SHM code, unused.
1042 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1043 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1044 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1045 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1046 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1047 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1048 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1049 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1050 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1051 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1052 (Qwindow_scroll_functions, Vafter_load_alist)
1053 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1054 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1055 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1056 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1057 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1058 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1059 (initial_argv, last_nonmenu_event, load_in_progress)
1060 (noninteractive_need_newline, scroll_margin): Add declarations.
1061
1062 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1063 declarations, menu.h has them.
1064 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1065 (Vinput_method_function, Qinput_method_function)
1066 (Qevent_symbol_element_mask, last_event_timestamp):
1067 * dispextern.h (Voverflow_newline_into_fringe):
1068 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1069 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1070 (syms_of_w32font, syms_of_nsfont):
1071 * fontset.h (find_font_encoding, Qlatin):
1072 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1073 (Vtool_bar_mode, set_frame_menubar):
1074 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1075 * xterm.h (Qx_gtk_map_stock):
1076 * keymap.h (meta_prefix_char): Add declarations.
1077
9f5dd6f2
DN
1078 * term.c: Remove dead code.
1079
6254cdda
DN
1080 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1081 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1082 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1083 which is what was there before BSD_PGRPS was removed.
1084
29cf3e20
EZ
10852010-08-05 Eli Zaretskii <eliz@gnu.org>
1086
1087 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1088
1089 * unexcoff.c: Renamed from unexec.c.
1090
aaa0a19a
SM
10912010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1092
1093 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1094
8d1d9587
JB
10952010-08-03 Johan Bockgård <bojohan@gnu.org>
1096
1097 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 1098 (Bug#6744)
8d1d9587 1099
9a747ba6
JD
11002010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1101
4d464ae4
JD
1102 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1103 to TRUE if depth of screen is < 16.
1104
ac01763e
JD
1105 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1106 USE_GTK_TOOLTIP.
e0d62a9b
JB
1107 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1108 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 1109 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
1110 USE_GTK_TOOLTIP.
1111 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1112
1113 * xterm.h (USE_GTK_TOOLTIP): New define.
1114 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1115
9a747ba6
JD
1116 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1117 to Control-D (Bug#6771).
1118
7b0815ba
JB
11192010-08-02 Juanma Barranquero <lekktu@gmail.com>
1120
1121 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1122 Wording by Drew Adams <drew.adams@oracle.com>.
1123
aa1859f5
J
11242010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1125
1126 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1127 ttip_lbl.
1128
1129 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1130 calling gtk_widget_queue_draw.
1131 (x_free_frame_resources): Call xg_free_frame_widgets.
1132
1133 * xfns.c (x_gtk_use_system_tooltips): New variable.
1134 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1135 new gtkutil tooltip functions to show the tooltip.
1136 (Fx_hide_tip): Call xg_hide_tooltip.
1137 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1138
1139 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1140 (xg_show_tooltip, xg_hide_tooltip): Declare.
1141
1142 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
1143 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1144 New functions.
aa1859f5
J
1145 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1146 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1147 Remove code that is commented out.
1148
76417ef4
SM
11492010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1150
1151 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1152
16041401
CY
11532010-07-31 Chong Yidong <cyd@stupidchicken.com>
1154
1155 * xselect.c (x_own_selection): Use list4.
1156
2c09a58f
DN
11572010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1158
1159 * buffer.c (Qwindow): Do not define, already defined in data.c.
1160 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1161
59df9fdd 11622010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 1163
59df9fdd
JB
1164 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1165 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1166 * config.in: Undef HAVE_DIRENT_H.
1c97e857 1167 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 1168 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 1169
1b231651
DN
11702010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1171
1172 Rename s/usg5-4.h -> s/usg5-4-common.h.
1173 * s/usg5-4.h: Rename file to ...
1174 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1175 * s/unixware.h:
1176 * s/sol2-6.h:
1177 * s/irix6-5.h: Update includes accordingly.
1178
bfeabdc3
JD
11792010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1180
2ebf1083
J
1181 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1182
bfeabdc3 1183 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
1184 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1185 Remove toolbar_height.
1186 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
1187 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1188 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1189 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1190
1191 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1192
1193 * xfns.c (x_set_tool_bar_position): New function.
1194 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1195 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 1196 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
1197
1198 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1199 and FRAME_TOOLBAR_LEFT_WIDTH.
1200
1201 * gtkutil.h (xg_change_toolbar_position): Declare.
1202
1203 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1204 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1205 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1206 (xg_create_frame_widgets): Create a hobox for placing widgets
1207 vertically. Use gtk_box_pack_start.
1208 (xg_height_or_width_changed): Renamed from xg_height_changed.
1209 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1210 (xg_update_frame_menubar, free_frame_menubar): Change to
1211 xg_height_or_width_changed.
1212 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1213 size correctly. Remove hardcoded 4, instead use handlebox size -
1214 toolbar size.
1215 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 1216 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
1217 (xg_pack_tool_bar): POS is a new parameter.
1218 Set orientation of tool bar based on pos.
1219 Only make handlebox_widget if NULL.
1220 Check if tool bar goes to vbox or hbox depending on pos.
1221 (xg_update_tool_bar_sizes): New function.
686b968e 1222 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
1223 height, call xg_update_tool_bar_sizes instead.
1224 (free_frame_tool_bar): Remove from hbox or vbox depending on
1225 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1226 (xg_change_toolbar_position): New function.
1227
1228 * frame.h (struct frame): Add tool_bar_position.
1229 (Qbottom): Declare.
1230
1231 * frame.c (Qtool_bar_position): New variable.
1232 (make_frame): Set tool_bar_position to Qtop.
1233 (frame_parms): Add tool-bar-position.
1234 (x_report_frame_params): Store tool_bar_position.
1235 (x_set_fringe_width): Reset wm size hint after fringe changes.
1236
26469a38
DN
12372010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1238
1239 Make lisp_time_argument declaration work on all systems.
1240 * lisp.h (lisp_time_argument): Move declaration ...
1241 * systime.h (lisp_time_argument): ... here
1242 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1243
8848b728
JD
12442010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1245
1246 * vm-limit.c (POINTER): Add typedef for it.
1247 (start_of_data): Change return type from POINTER to char *.
1248
1249 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1250 HAVE_WINDOW_SYSTEM.
1251
76fd1ee9
DN
12522010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1253
0441987e
DN
1254 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1255 Remove reference to __osf__, unused.
1256
56a000c7
DN
1257 * mem-limits.h: Remove duplicated includes.
1258 (NULL): Remove definition, unused.
1259 (POINTER): Remove definition.
1260 (start_of_data): Use char* in prototype, as the function
1261 definition does.
1262
e6cba650
DN
1263 Remove extern declarations from .c files, and them to .h files.
1264 * keyboard.h (Qhelp_echo, waiting_for_input)
1265 (input_available_clear_time, ignore_mouse_drag_p)
1266 (Vdouble_click_time, real_this_command, Vthis_original_command):
1267 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1268 (Voverriding_local_map_menu_flag):
1269 * lisp.h (Qinteractive_form, use_file_dialog)
1270 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1271 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1272 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1273 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1274 (Qfunction, debug_on_next_call, Qfield)
1275 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1276 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1277 (Qfile_directory_p, Qinsert_file_contents)
1278 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1279 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1280 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1281 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1282 (Qminibuffer_prompt)
1283 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1284 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1285 (gray_bitmap_bits, xic_create_fontsetname):
1286 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1287
1288 * xsmfns.c (Vuser_login_name):
1289 * xrdb.c (Vdouble_click_time):
1290 * xfaces.c (xic_create_fontsetname):
1291 * w32select.c (waiting_for_input):
1292 * print.c (minibuffer_auto_raise):
1293 * msdos.c (Qhelp_echo):
1294 * macros.c (real_this_command):
1295 * keymap.c (Voverriding_local_map):
1296 * xterm.c (poll_for_input_1, gray_bitmap_width)
1297 (gray_bitmap_height, gray_bitmap_bits;
1298 * xmenu.c ( Voverriding_local_map)
1299 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1300 (use_file_dialog, Xt_app_con):
1301 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1302 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1303 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1304 (Qtool_bar_lines, ignore_mouse_drag_p):
1305 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1306 (Qrear_nonsticky, nconc2):
1307 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1308 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1309 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1310 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1311 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1312 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1313 (gc_in_progress):
1314 * doc.c (Voverriding_local_map, Qremap):
1315 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1316 (Vcompletion_regexp_list):
1317 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1318 (Qcompletion_ignore_case):
1319 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1320 (Vhistory_length, Vthis_original_command, real_this_command)
1321 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1322 * image.c (Qrisky_local_variable):
1323 * fontset.c (QCname):
1324 * fns.c (minibuffer_auto_raise, QCname):
1325 * dispnew.c (char_ins_del_cost):
1326 * composite.c (font_fill_lglyph_metrics):
1327 * cmds.c (Qface, Vtranslation_table_for_input):
1328 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1329 * ccl.c (charset_unicode):
1330 * callproc.c (Vtemporary_file_directory):
1331 * buffer.c (emacs_strerror): Remove extern declarations.
1332
1333 * data.c (Qwindow): Make non-static, used from other files too.
1334 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1335
76fd1ee9
DN
1336 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1337 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1338 * s/usg5-4.h (COFF):
1339 * s/template.h:
1340 * s/msdos.h (COFF, NO_REMAP):
1341 * s/ms-w32.h (NO_REMAP):
1342 * s/hpux10-20.h (NO_REMAP):
1343 * m/sparc.h (SEGMENT_MASK):
1344 * m/m68k.h (NO_REMAP):
1345 * m/intel386.h (SEGMENT_MASK):
1346 * m/arm.h (NO_REMAP):
1347 * m/alpha.h (COFF):
1348 * m/template.h: Remove references to unused defines.
1349
8a52f00a
JD
13502010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1351
1352 * xsettings.c (Ftool_bar_get_system_style): Also check for
1353 Qtext_image_horiz.
1354
1355 * xdisp.c (Qtext_image_horiz): Define.
1356 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 1357 to documentation of tool-bar-style.
8a52f00a
JD
1358
1359 * lisp.h (Qtext_image_horiz): Declare.
1360
1361 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1362 style text_image_horiz.
1363
89dc303e
DN
13642010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1365
60799703
DN
1366 * emacs.c (Fkill_emacs): Remove return statement.
1367
37254dc1
DN
1368 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1369 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1370 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1371 local extern declarations.
1372
71c7345a
DN
1373 * xmenu.c: Do not included lwlib.h, not needed.
1374
6ba577cb
DN
1375 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1376
fdb183d6
DN
1377 * process.c: Move definitions earlier to minimize #ifdefs.
1378
1379 * xterm.h (x_get_customization_string, x_load_resources)
1380 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1381 (x_check_errors, x_property_data_to_lisp, defined_color)
1382 (xic_set_xfontset, x_defined_color): Use const.
1383
1384 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1385 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1386
1387 * xselect.c (selection_data_to_lisp_data)
1388 (x_property_data_to_lisp):
1389 * xrdb.c (x_get_string_resource, file_p)
1390 (x_get_customization_string, magic_file_p, search_magic_path)
1391 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1392 (x_get_string_resource): Use const.
1393
1394 * xfns.c: Include xlwmenu.h when USE_LUCID.
1395 (x_defined_color, xic_set_xfontset): Use const.
1396 (Fx_hide_tip): Remove local extern declaration.
1397
1398 * xfaces.c (Qmouse_face): Remove declaration.
1399 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 1400 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
1401
1402 * xdisp.c (do_mouse_tracking): Remove declaration.
1403 (add_to_log): Use const.
1404
1405 * minibuf.c (Qmouse_face): Remove declaration.
1406
1407 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1408
1409 * keyboard.h (do_mouse_tracking): Add declaration.
1410
1411 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1412 (QCdata, QCtype, Qcenter): Remove declarations.
1413
1414 * frame.c (x_get_resource_string, x_get_string_resource)
1415 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1416 (x_default_parameter): Use const.
1417
1418 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1419 (QCheight, QCsize, QCname): Remove declarations.
1420
1421 * emacs.c (main): Remove local extern declaration.
1422
1423 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1424 declarations.
1425
1426 * dispnew.c: Remove duplicate #include <unistd.h>.
1427 (update_window, update_frame_1, init_display): Remove local extern
1428 declarations.
1429
1430 * dispextern.h (add_to_log): Remove declaration.
1431 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1432 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1433
1434 * dired.c (scmp): Add const.
1435 (directory_files_internal): Remove local extern declaration.
1436
1437 * data.c (Finteractive_form): Use const.
1438
1439 * composite.c (syms_of_composite): Remove local extern declarations.
1440
1441 * charset.c (add_to_log): Remove declaration.
1442
1443 * character.c (strwidth, parse_str_to_multibyte): Add const.
1444
1445 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1446
1447 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1448
89dc303e 1449 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
1450 (Lisp_Subr): Make doc and intspec constant.
1451 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1452 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1453 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1454 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1455 (display_arg): Add declarations.
89dc303e 1456
0ed082fe 14572010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
1458
1459 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1460
0ed082fe
JB
1461 * window.c (Fwindow_height): Doc fix (bug#6518).
1462
14632010-07-27 Juanma Barranquero <lekktu@gmail.com>
1464
1465 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1466
ccaf0336
DN
14672010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1468
977105dc
DN
1469 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1470 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1471 functions.
1472
f5ada890
DN
1473 * frame.h (Qtty_color_mode): Add declaration.
1474
ccaf0336
DN
1475 * lisp.h (Ftop_level, Fexit_recursive_edit)
1476 (Fabort_recursive_edit): Mark as NO_RETURN.
1477
dfe3c90f
KH
14782010-07-26 Kenichi Handa <handa@m17n.org>
1479
1480 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 1481 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 1482
7d383292
JB
14832010-07-26 Juanma Barranquero <lekktu@gmail.com>
1484
1485 * lread.c (unreadpure, mapatoms_1): Make static.
1486
da31e629
JB
14872010-07-25 Juanma Barranquero <lekktu@gmail.com>
1488
1489 * terminfo.c (tparam): Fix prototype of tparm.
1490
7bfa6d77
AS
14912010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1492
dcc19aac
AS
1493 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1494 find start of text segment.
1495 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1496 is defined.
1497
7bfa6d77
AS
1498 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1499
63f9a672
KB
15002010-07-25 Ken Brown <kbrown@cornell.edu>
1501
1502 * vm-limit.c (check_memory_limits): Fix previous change;
1503 accidentally reverted an earlier change.
1504
24933075
KB
15052010-07-25 Ken Brown <kbrown@cornell.edu>
1506
1507 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1508 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1509
361358ea
JB
15102010-07-25 Juanma Barranquero <lekktu@gmail.com>
1511
1512 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1513 * dired.c (opendir, readdir): Fix prototypes.
1514 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1515 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1516 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1517 (telldir): Remove declaration.
1518 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1519 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1520 * syssignal.h (strsignal): Fix prototype.
1521 * term.c (tparam): Fix prototype.
1522 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1523 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1524 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1525 and __morecore.
1526 * w32gui.h (XParseGeometry): Fix prototype.
1527 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1528 * w32term.c (my_set_focus): Declare inside #if 0.
1529 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1530 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1531 (drain_message_queue, get_next_msg, post_msg, parse_button)
1532 (ClipboardSequence_Proc): Fix prototypes.
1533 (wait_for_sync): Remove declaration.
1534
630b9592
JB
15352010-07-24 Juanma Barranquero <lekktu@gmail.com>
1536
1537 * w32fns.c (w32_to_x_color): Remove, unused.
1538
6a0d6611
AS
15392010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1540
1541 * lisp.h: Remove leftover P_.
1542
4e8608ff
DN
15432010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1544
1545 * ecrt0.c, unexalpha.c: Remove files, unused.
1546
c8197983
AS
15472010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1548
1549 * cmds.c (internal_self_insert): Make static.
1550 * lisp.h (internal_self_insert): Remove declaration.
1551
97b372d7
JB
15522010-07-23 Juanma Barranquero <lekktu@gmail.com>
1553
33ac0414
JB
1554 * alloc.c (free_float):
1555 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1556 * frame.c (delete_frame_handler):
1557 * ralloc.c (reorder_bloc):
1558 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1559 Remove unused static functions.
1560
94da8397
JB
1561 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1562 it is called only from NS code.
1563
2e6c8532
JB
1564 * w32term.c (my_set_focus): #ifdef away; it is called only from
1565 "#ifdef 0" code.
1566
97b372d7
JB
1567 * w32fns.c (x_edge_detection):
1568 * xfaces.c (may_use_scalable_font_p):
1569 Remove obsolete static declarations.
1570
7c3320d8
JB
15712010-07-20 Juanma Barranquero <lekktu@gmail.com>
1572
1573 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1574 (emacs_blocked_realloc, uninterrupt_malloc):
1575 * fringe.c (w32_reset_fringes):
1576 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1577 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1578 * sound.c (be2hs, do_play_sound):
1579 * vm-limit.c (get_lim_data, ret_lim_data):
1580 * w32term.c (x_free_frame_resources):
1581 * xfaces.c (x_create_gc, x_free_gc):
1582 Convert definitions to standard C.
1583
d5273788
SM
15842010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1585
1586 * eval.c (Feval, Ffuncall): Use the new names.
1587
1588 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1589 (DEFUN): Add braces around the union initialisation and use ## to
1590 specify the right union alternative and avoid a cast.
1591
8d16a259
JB
15922010-07-18 Juanma Barranquero <lekktu@gmail.com>
1593
1594 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1595
3b8eff32
CY
15962010-07-17 Chong Yidong <cyd@stupidchicken.com>
1597
1598 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1599
499322ce
J
16002010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1601
1602 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1603 is related to the menu bar (Bug#6499).
a628ad9d 1604 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 1605
f6003da5 16062010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
1607
1608 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1609
1610 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1611
1612 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1613 i.e. don't put back ButtonRelease (Bug#6608).
1614
1615 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1616 instead of Window. Call xg_event_is_for_menubar when
1617 USE_GTK (Bug#6499).
1618
1619 * gtkutil.h (xg_event_is_for_menubar): Declare.
1620
1621 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1622
f6003da5 16232010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
1624
1625 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1626 when it's the same as the old foreground. (Bug#6609)
1627
23243f29
J
16282010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1629
1630 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1631 widget is non-null (Bug#6645).
1632
2b23d2a6
AS
16332010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1634
01b564ff
AS
1635 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1636 Convert old-style definition.
1637
2b23d2a6
AS
1638 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1639 timestamp argument.
1640
c4affd2c
EZ
16412010-07-15 Eli Zaretskii <eliz@gnu.org>
1642
1643 * fringe.c (update_window_fringes): Restore mistakenly reverted
1644 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1645
cf28cebc
J
16462010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1647
1648 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1649 (SET_SAVED_KEY_EVENT): Remove (not used).
1650 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1651 remove size parameter.
1652 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1653 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1654 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1655 ButtonRelease.
6b2c4bd9
J
1656 (x_set_window_size_1): scroll_bar_actual_width is always
1657 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
1658
1659 * xdisp.c (pending_menu_activation): Remove extern declaration.
1660 (prepare_menu_bars): Remove setting of pending_menu_activation.
1661
1662 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
1663 (x_activate_menubar): Set popup_activated_flag for Xt also.
1664 Remove setting of pending_menu_activation.
cf28cebc
J
1665 (set_frame_menubar): Remove check of pending_menu_activation.
1666 Declare menubar_size before code. Correct spelling in comment.
1667
f6c1c771
KH
16682010-07-14 Kenichi Handa <handa@m17n.org>
1669
1670 * font.c (font_open_entity): Cancel previous change.
1671 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1672
20477505
EZ
16732010-07-13 Eli Zaretskii <eliz@gnu.org>
1674
77defa9a
EZ
1675 Remove subprocesses #ifdefs.
1676 * process.c <inhibit_sentinels>: Move to the common part.
1677 (Fwaiting_for_user_input_p): Move to the common part; return nil
1678 if async subprocesses aren't supported.
1679 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1680 MS-DOS. Remove "#ifdef subprocesses".
1681 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1682 (gettimeofday): Remove "#ifdef subprocesses".
1683 (wait_without_blocking): Remove function.
1684 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1685 Remove "#ifdef subprocesses".
1686 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1687 compiled on MS-DOS.
1688 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1689 wait_for_termination on MS-DOS.
1690 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1691 initialization of inhibit_sentinels.
1692 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1693 subprocesses" conditional.
1694 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1695 wait_for_termination, since `buffer' cannot be an integer when
1696 async subprocesses are not supported
1697 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1698 for ifdefing away the call to Fprocess_status.
1699
20477505
EZ
1700 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1701 away the entire body of the function.
1702
b3ffc17c
DN
17032010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1704
01faa934
DN
1705 Remove subprocesses #ifdefs from term.c.
1706 * process.c (add_keyboard_wait_descriptor)
1707 (delete_keyboard_wait_descriptor): Move to common section, do
1708 nothing when subprocesses is not defined.
a628ad9d
JB
1709 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1710 Remove subprocesses #ifdefs.
01faa934 1711
b3ffc17c
DN
1712 Convert maybe_fatal to standard C.
1713 * lisp.h (verror): Declare.
1714 * eval.c (verror): New function containing the code from ...
1715 (error): ... this. Call verror.
1716 * term.c (vfatal): New function containing the code from ...
1717 (fatal): ... this. Call vfatal.
1718 (maybe_fatal): Convert to standard C, use variable number of
1719 arguments. Declare as non-return.
1720 (init_tty): Fix maybe_fatal call.
1721
0521f580
DN
17222010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1723
1724 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1725 (_scroll_bar_note_movement): Convert definitions to standard C.
1726 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1727 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1728
ebd15611
DN
17292010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1730
1731 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1732 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1733 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1734 (xaw_jump_callback, xaw_scroll_callback)
1735 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1736 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1737 definitions to standard C.
1738 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1739 (popup_activate_callback, popup_deactivate_callback)
1740 (menu_highlight_callback, menubar_selection_callback)
1741 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1742 (free_frame_menubar, popup_selection_callback, as)
1743 (create_and_show_popup_menu, dialog_selection_callback)
1744 (create_and_show_dialog):
1745 * xfns.c (hack_wm_protocols, x_window):
1746 * xfaces.c (x_update_menu_appearance):
1747 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1748 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1749 (set_frame_size, update_wm_hints, setup_frame_gcs)
1750 (update_various_frame_slots, update_from_various_frame_slots)
1751 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1752 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1753 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1754
de06a2dd
AS
17552010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1756
a628ad9d 1757 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 1758
fc549af9
EZ
17592010-07-12 Eli Zaretskii <eliz@gnu.org>
1760
1761 * process.c (setup_process_coding_systems): Move to the part
1762 shared by non-subprocesses systems, and make its body empty when
1763 subprocesses is not defined.
1764 (close_process_descs): Move to the part shared by non-subprocesses
1765 systems.
1408902e
EZ
1766 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1767 ANSI C.
fc549af9 1768
d5a3eaaf
AS
17692010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1770
1771 * editfns.c (transpose_markers): Convert old-style definition.
1772 * emacs.c (abort, shut_down_emacs, fixup_locale)
1773 (synchronize_system_time_locale)
1774 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1775 * floatfns.c (extract_float, matherr, init_floatfns)
1776 (syms_of_floatfns): Likewise.
1777 * fns.c (make_hash_table): Likewise.
1778 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1779 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1780 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1781 (ftfont_variation_glyphs): Likewise.
1782 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1783 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1784 * lread.c (read_filtered_event): Likewise.
1785 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1786 * process.c (wait_reading_process_output): Likewise.
1787 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1788 * search.c (search_buffer, boyer_moore): Likewise.
1789 * syntax.c (scan_sexps_forward): Likewise.
1790 * xdisp.c (try_scrolling): Likewise.
1791 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1792 (face_at_string_position): Likewise.
1793 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1794 * xselect.c (x_get_window_property, receive_incremental_selection)
1795 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1796 Likewise.
1797 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1798
6f704c76
DN
17992010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1800
ded80a25
DN
1801 * callproc.c (child_setup): Remove subprocesses conditional.
1802 Remove code dealing with SET_EMACS_PRIORITY, unused.
1803
49d937f4 1804 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
1805 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1806
1807 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1808 (__do_global_dtors, __main): Use void in definition.
1809 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1810 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1811 the only users from ...
1812 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1813 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1814 (HAVE_VOLATILE): Remove, unused.
1815
6f704c76
DN
1816 Convert more function definitions to standard C.
1817 * xdisp.c (window_box_edges, handle_single_display_spec)
1818 (display_string): Convert definition to standard C.
1819 * scroll.c (do_direct_scrolling, scrolling_1):
1820 * dispnew.c (allocate_matrices_for_frame_redisplay)
1821 (mirrored_line_dance):
1822 * coding.c (code_convert_string):
1823 * charset.c (map_charset_chars):
1824 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1825 (Fregister_ccl_program, Fregister_code_conversion_map):
1826 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1827 (head_table): Make static and const.
1828
e6cfa7c3
AS
18292010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1830
1831 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1832 (PROFILING_LDFLAGS): Set from substitution.
1833 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1834 CFLAGS last.
1835
892dd565
KH
18362010-07-12 Kenichi Handa <handa@m17n.org>
1837
6f2cdcd1
KH
1838 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1839 (shortlisp): Likewise.
1840
892dd565
KH
1841 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1842
1843 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1844 of FONT_ENTITY_INDEX.
1845 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1846 property, get the property value dynamically.
1847 (Ffont_put): Accept font-entity and font-object too.
1848 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1849 return value changed.
1850 (syms_of_font): Adjusted for the above change.
1851
ae96d47a
AS
18522010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1853
c8fc18ee
AS
1854 * blockinput.h: Remove obsolete comment.
1855
89887d67
AS
1856 * lisp.h: Include <stddef.h>.
1857 (OFFSETOF): Don't define.
1858 (VECSIZE): Use offsetof instead of OFFSETOF.
1859 (PSEUDOVECSIZE): Likewise.
1860 * process.c (conv_sockaddr_to_lisp): Likewise.
1861 * alloc.c: Don't include <stddef.h>.
1862 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1863
ae96d47a
AS
1864 * process.c: Remove obsolete comment.
1865
635c0aa1
CY
18662010-07-11 Chong Yidong <cyd@stupidchicken.com>
1867
1868 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1869
a64df650
AS
18702010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1871
8966b757
AS
1872 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1873 index, rindex.
1874 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1875 * editfns.c (Fuser_full_name, Fformat): Likewise.
1876 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1877 * fileio.c (Ffile_symlink_p): Likewise.
1878 * filelock.c (current_lock_owner): Likewise.
1879 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1880 * fontset.c (fontset_pattern_regexp): Likewise.
1881 * lread.c (read1): Likewise.
1882 * sysdep.c (init_system_name): Likewise.
1883 * xfns.c (select_visual): Likewise.
1884 * s/hpux10-20.h (index, rindex): Don't define.
1885 * s/ms-w32.h (index): Likewise.
1886 * s/usg5-4.h: Likewise.
1887
cf237e27
AS
1888 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1889
a8fe7202
AS
1890 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1891 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1892 (egetenv): Likewise.
1893 * doprnt.c (doprnt): Likewise.
1894 * editfns.c (set_time_zone_rule, format2): Likewise.
1895 * emacs.c (decode_env_path): Likewise.
1896 * eval.c (signal_error, error): Likewise.
1897 * insdel.c (replace_range_2): Likewise.
1898 * keyboard.c (cmd_error_internal): Likewise.
1899 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1900 * print.c (write_string, write_string_1, print_error_message):
1901 Likewise.
1902 * vm-limit.c (warn_function, memory_warnings): Likewise.
1903 * xdisp.c (message1, message1_nolog, message_with_string)
1904 (vmessage, message, message_nolog): Likewise.
1905 * emacs.c: Remove duplicate declaration.
1906 * keyboard.h: Likewise.
1907 * lisp.h: Update prototypes.
1908
bb8e180f
AS
1909 * eval.c: Fix indentation problem.
1910
83380e65
AS
1911 * keyboard.c: Include "process.h"
1912
a64df650
AS
1913 * eval.c: Remove obsolete noinline declaration.
1914 * fns.c: Likewise.
1915
6a8033e1
KR
19162010-07-11 Ken Raeburn <raeburn@raeburn.org>
1917
1918 * doprnt.c (doprnt): Take a va_list argument instead of count and
1919 pointer.
1920 * eval.c (error): Change to a standard-C variadic function.
1921 * xdisp.c (vmessage): Renamed from message, made static, and
1922 changed to take a va_list argument.
1923 (message): New variadic wrapper.
1924 (message_nolog): Now a variadic function, calling vmessage.
1925 * lisp.h: Include stdarg.h for va_list.
1926 (doprnt, error, message, message_nolog): Decls updated.
1927
462aa963
EZ
19282010-07-11 Eli Zaretskii <eliz@gnu.org>
1929
1930 * process.c (syms_of_process) <delete-exited-processes>: Define
1931 even if !subprocesses.
1932 (delete_exited_processes): Ditto.
1933
1934 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1935 (delete_exited_processes): Don't define.
1936
48104462
CY
19372010-07-10 Chong Yidong <cyd@stupidchicken.com>
1938
1939 * frame.c (make_frame): Initialize menu_bar_lines and
1940 tool_bar_lines members.
1941 (make_initial_frame, make_terminal_frame): Initialize
1942 menu_bar_lines using value of menu-bar-mode.
1943
1944 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1945
f388c88a
EZ
19462010-07-10 Eli Zaretskii <eliz@gnu.org>
1947
1948 * process.c: Reshuffle #include's. Condition some of the global
1949 and static variables on `subprocesses'.
1950 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1951 Leave only one implementation.
1952 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1953 (kill_buffer_processes, Flist_system_processes)
1954 (Fprocess_attributes, init_process, syms_of_process): Unify the
1955 implementations for with subprocesses and without them.
1956
723f5a07
J
19572010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1958
1959 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1960 correct size for Motif.
1961 (free_frame_menubar): Call x_set_window_size to update frame size.
1962
1963 * xfns.c (x_window): Set borderWidth to 0 for pane and
1964 EmacsFrame. Frame size calculation is wrong otherwise.
1965
2536a4b7
MA
19662010-07-09 Michael Albinus <michael.albinus@gmx.de>
1967
1968 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1969 allows to suppress errors when polling in Emacs' main loop.
1970 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1971 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1972 (Fdbus_method_error_internal, Fdbus_send_signal)
1973 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1974 (Fdbus_register_method): Use it. (Bug#6579)
1975
5842a27b
DN
19762010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1977
1978 * alloc.c: Convert DEFUNs to standard C.
1979 * buffer.c:
1980 * bytecode.c:
1981 * callint.c:
1982 * callproc.c:
1983 * casefiddle.c:
1984 * casetab.c:
1985 * category.c:
1986 * character.c:
1987 * charset.c:
1988 * chartab.c:
1989 * cmds.c:
1990 * coding.c:
1991 * composite.c:
1992 * data.c:
1993 * dbusbind.c:
1994 * dired.c:
1995 * dispnew.c:
1996 * doc.c:
1997 * dosfns.c:
1998 * editfns.c:
1999 * emacs.c:
2000 * eval.c:
2001 * fileio.c:
2002 * filelock.c:
2003 * floatfns.c:
2004 * fns.c:
2005 * font.c:
2006 * fontset.c:
2007 * frame.c:
2008 * fringe.c:
2009 * image.c:
2010 * indent.c:
2011 * insdel.c:
2012 * keyboard.c:
2013 * keymap.c:
2014 * lread.c:
2015 * macros.c:
2016 * marker.c:
2017 * menu.c:
2018 * minibuf.c:
2019 * msdos.c:
2020 * nsfns.m:
2021 * nsmenu.m:
2022 * nsselect.m:
2023 * print.c:
2024 * process.c:
2025 * search.c:
2026 * sound.c:
2027 * syntax.c:
2028 * term.c:
2029 * terminal.c:
2030 * textprop.c:
2031 * undo.c:
2032 * w16select.c:
2033 * w32console.c:
2034 * w32fns.c:
2035 * w32font.c:
2036 * w32menu.c:
2037 * w32proc.c:
2038 * w32select.c:
2039 * window.c:
2040 * xdisp.c:
2041 * xfaces.c:
2042 * xfns.c:
2043 * xmenu.c:
2044 * xselect.c:
2045 * xsettings.c:
2046 * xsmfns.c: Likewise.
2047
d568829b
EZ
20482010-07-08 Eli Zaretskii <eliz@gnu.org>
2049
2050 * process.c (kbd_is_on_hold, hold_keyboard_input)
2051 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2052
52214050
J
20532010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2054
2055 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2056 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2057 unless USE_LUCID.
2058
313d9eb2
DN
20592010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2060
a628ad9d
JB
2061 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2062 declaration.
d8825aa3 2063
295d0d8f
DN
2064 Clean up include guards.
2065 * tparam.c: Remove include guards for config.h, string.h and code
2066 that assumes #ifndef emacs.
2067 * termcap.c:
2068 * unexalpha.c:
2069 * sysdep.c:
2070 * filemode.c:
2071 * filelock.c:
2072 * bidi.c: Likewise.
2073
49d9e6b0
DN
2074 Remove prefix-args.c
2075 * prefix-args.c: Remove file.
2076 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2077 * Makefile.in (temacs${EXEEXT}): Remove references to
2078 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2079 (mostlyclean): Remove reference to prefix-args.
2080 (prefix-args): Remove.
2081
313d9eb2
DN
2082 Simplify cstart_of_data, start_of_code and related code.
2083 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2084 (start_of_data): Merge into start_of_data function.
2085 * sysdep.c (start_of_text): Remove. Move simplified versions of
2086 it in the only users: unexaix.c and unexec.c.
2087 (read_input_waiting): Remove local declaration of quit_char.
2088 (start, etext): Remove declarations.
2089 (start_of_data): Merge with the version in mem-limits.h and move
2090 to vm-limits.c.
2091 * vm-limit.c (start_of_data): Merged and simplified version of the
2092 code formerly in mem-limits.h and sysdep.c.
2093 * unexec.c (start): New declaration, moved from sysdep.c.
2094 (start_of_text): Simplified version of the code formerly in sysdep.c.
2095 * unexaix.c (start_of_text): Simplified version of the code
2096 formerly in sysdep.c.
2097 * m/alpha.h (HAVE_TEXT_START): Remove.
2098 (TEXT_START): Move ...
2099 * unexalpha.c (TEXT_START): ... here.
2100 * s/hpux10-20.h (TEXT_START): Remove.
2101 * s/darwin.h (TEXT_START):
2102 * m/mips.h (TEXT_START):
2103 * m/macppc.h (HAVE_TEXT_START):
2104 * m/m68k.h (TEXT_START):
2105 * m/iris4d.h (TEXT_START):
2106 * m/intel386.h (TEXT_START):
2107 * m/ibmrs6000.h (TEXT_START):
2108 * m/ia64.h (HAVE_TEXT_START):
2109 * s/msdos.h (TEXT_START): Likewise.
2110
72af86bd
AS
21112010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2112
2113 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2114 (overrun_check_free, xstrdup, allocate_string)
2115 (allocate_string_data, compact_small_strings, Fmake_string)
2116 (make_unibyte_string, make_multibyte_string)
2117 (make_string_from_bytes, make_specified_string, make_float)
2118 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2119 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2120 memcpy, memmove, memset, memcmp.
2121 * atimer.c (start_atimer, set_alarm): Likewise.
2122 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2123 (mmap_realloc, init_buffer_once): Likewise.
2124 * callint.c (Fcall_interactively): Likewise.
2125 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2126 (getenv_internal_1): Likewise.
2127 * casefiddle.c (casify_object): Likewise.
2128 * ccl.c (ccl_driver): Likewise.
2129 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2130 * charset.c (load_charset_map_from_file)
2131 (load_charset_map_from_file, load_charset_map_from_vector)
2132 (Fdefine_charset_internal): Likewise.
2133 * cm.c (Wcm_clear): Likewise.
2134 * coding.c (decode_eol, decode_coding_object)
2135 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2136 * data.c (Faset): Likewise.
2137 * dired.c (directory_files_internal, file_name_completion_stat):
2138 Likewise.
2139 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2140 (clear_glyph_row, copy_row_except_pointers)
2141 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2142 (save_current_matrix, restore_current_matrix)
2143 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2144 (mirror_line_dance, scrolling_window): Likewise.
2145 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2146 Likewise.
2147 * doprnt.c (doprnt): Likewise.
2148 * editfns.c (Fuser_full_name, make_buffer_string_both)
2149 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2150 * emacs.c (sort_args): Likewise.
2151 * eval.c (Fapply, Ffuncall): Likewise.
2152 * fileio.c (Ffile_name_directory, make_temp_name)
2153 (Fexpand_file_name, search_embedded_absfilename)
2154 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2155 (auto_save_error): Likewise.
2156 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2157 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2158 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2159 (Fmake_hash_table): Likewise.
2160 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2161 * ftfont.c (ftfont_text_extents): Likewise.
2162 * getloadavg.c (getloadavg): Likewise.
2163 * image.c (define_image_type, make_image, make_image_cache)
2164 (x_create_x_image_and_pixmap, xbm_image_p)
2165 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2166 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2167 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2168 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2169 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2170 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2171 Likewise.
2172 * indent.c (scan_for_column, compute_motion): Likewise.
2173 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2174 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2175 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2176 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2177 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2178 (store_user_signal_events, menu_bar_items, tool_bar_items)
2179 (process_tool_bar_item, append_tool_bar_item)
2180 (read_char_minibuf_menu_prompt, read_key_sequence)
2181 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2182 Likewise.
2183 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2184 Likewise.
2185 * lisp.h (STRING_COPYIN): Likewise.
2186 * lread.c (Fload, read1, oblookup): Likewise.
2187 * msdos.c (Frecent_doskeys): Likewise.
2188 * nsfns.m (Fx_create_frame): Likewise.
2189 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2190 Likewise.
2191 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2192 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2193 Likewise.
2194 * nsmenu.m (ns_update_menubar): Likewise.
2195 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2196 * print.c (print_unwind, printchar, strout, print_string)
2197 (print_error_message): Likewise.
2198 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2199 (Fmake_network_process, Fnetwork_interface_list)
2200 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2201 (init_process): Likewise.
2202 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2203 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2204 Likewise.
2205 * scroll.c (do_scrolling, do_direct_scrolling)
2206 (scrolling_max_lines_saved): Likewise.
2207 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2208 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2209 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2210 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2211 (emacs_set_tty): Likewise.
2212 * term.c (encode_terminal_code, calculate_costs)
2213 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2214 Likewise.
2215 * termcap.c (tgetst1, gobble_line): Likewise.
2216 * termhooks.h (EVENT_INIT): Likewise.
2217 * tparam.c (tparam1): Likewise.
2218 * unexalpha.c (unexec): Likewise.
2219 * unexec.c (write_segment): Likewise.
2220 * unexmacosx.c (unexec_write_zero): Likewise.
2221 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2222 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2223 * w32font.c (w32font_list_family, w32font_text_extents)
2224 (w32font_list_internal, w32font_match_internal)
2225 (w32font_open_internal, compute_metrics, Fx_select_font):
2226 Likewise.
2227 * w32menu.c (set_frame_menubar, add_menu_item)
2228 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2229 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2230 * w32uniscribe.c (uniscribe_list_family): Likewise.
2231 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2232 * window.c (make_window, replace_window, set_window_buffer)
2233 (Fsplit_window): Likewise.
2234 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2235 (add_to_log, message3, x_consider_frame_title)
2236 (append_space_for_newline, extend_face_to_end_of_line)
2237 (decode_mode_spec_coding, init_glyph_string): Likewise.
2238 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2239 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2240 (face_attr_equal_p, make_realized_face, make_face_cache)
2241 (free_realized_faces, lookup_named_face, smaller_face)
2242 (face_with_height, lookup_derived_face)
2243 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2244 (Finternal_set_font_selection_order, realize_default_face)
2245 (compute_char_face, face_at_buffer_position)
2246 (face_for_overlay_string, face_at_string_position, merge_faces):
2247 Likewise.
2248 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2249 (Fx_window_property, x_create_tip_frame)
2250 (Fx_backspace_delete_keys_p): Likewise.
2251 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2252 (xfont_text_extents): Likewise.
2253 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2254 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2255 * xselect.c (x_queue_event, x_get_window_property)
2256 (receive_incremental_selection): Likewise.
2257 * xsmfns.c (x_session_check_input): Likewise.
2258 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2259 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2260 Likewise.
2261 * character.h (BCOPY_SHORT): Removed.
2262 * config.in: Regenerate.
2263 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2264 * emacs.c (main) [PROFILING]: Don't declare
2265 dump_opcode_frequencies.
2266 * lisp.h (safe_bcopy): Remove declaration.
2267 (memset) [!HAVE_MEMSET]: Declare.
2268 (memcpy) [!HAVE_MEMCPY]: Likewise.
2269 (memmove) [!HAVE_MEMMOVE]: Likewise.
2270 (memcmp) [!HAVE_MEMCMP]: Likewise.
2271 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2272 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2273 Don't define.
2274 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2275 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2276 (BCOPY_DOWNWARD_SAFE): Don't define.
2277 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2278 (memcpy) [!HAVE_MEMCPY]: Define.
2279 (memmove) [!HAVE_MEMMOVE]: Define.
2280 (memcmp) [!HAVE_MEMCMP]: Define.
2281
cb768704
J
22822010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2283
2284 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
2285 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2286 New functions.
cb768704
J
2287 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2288 select on empty input mask.
2289 (init_process): Initialize kbd_is_on_hold to 0.
2290
2291 * process.h (hold_keyboard_input, unhold_keyboard_input)
2292 (kbd_on_hold_p): Declare.
2293
2294 * keyboard.c (input_available_signal): Declare.
2295 (kbd_buffer_nr_stored): New function.
2296 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2297 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2298 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2299 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2300 (tty_read_avail_input): If input is on hold, return.
2301 Don't read more that free slots in kbd_buffer (Bug#6571).
2302
3a8ce822
EZ
23032010-07-07 Eli Zaretskii <eliz@gnu.org>
2304
2305 * msdos.h:
2306 * msdos.c:
2307 * dosfns.c:
2308 * w16select.c: Convert function definitions to ANSI C.
2309
a628ad9d
JB
2310 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2311 Remove unused prototypes.
3a8ce822 2312
cf84bb53
JB
23132010-07-07 Juanma Barranquero <lekktu@gmail.com>
2314
2315 * coding.c, sysdep.c: Convert some more functions to standard C.
2316
1a4990fb
JB
23172010-07-07 Juanma Barranquero <lekktu@gmail.com>
2318
2319 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2320 (encode_coding_object): Use SPECPDL_INDEX.
2321 (syms_of_coding): Use DOS_NT.
2322
c0f2f16b
DN
23232010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2324
48fb6855
DN
2325 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2326
c0f2f16b
DN
2327 Make the function member of Lisp_Subr use standard C prototypes.
2328 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2329 (DECL_ALIGN): Add a cast for the function.
2330 * eval.c (Feval, Ffuncall): Use the proper type for each type
2331 function call.
2332
67aecef9
CY
23332010-07-06 Chong Yidong <cyd@stupidchicken.com>
2334
2335 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2336 fringe face id, so face-remapping-alist works (Bug#6091).
2337
b56ceb92
JB
23382010-07-06 Juanma Barranquero <lekktu@gmail.com>
2339
2340 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2341 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2342 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2343
7af07b96
AS
23442010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2345
2346 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2347 * lisp.h: Declare x_get_keysym_name.
2348 * keyboard.c (modify_event_symbol): Don't declare
2349 x_get_keysym_name here.
2350
69e24e34
DN
23512010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2352
2353 * ecrt0.c: Revert conversion to standard C.
2354
d3da34e0 23552010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
2356
2357 * vm-limit.c (memory_warnings):
2358 * keyboard.c (modify_event_symbol):
2359 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2360 (round2, emacs_rint):
2361 * process.c (send_process, old_sigpipe): Convert function
2362 definitions and declarations to standard C.
2363
23642010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
2365
2366 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2367 * xdisp.c: Convert function definitions to standard C.
2368
2369 * cm.c (cmputc): Arg C is now int, not char.
2370 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2371
00be444c
J
23722010-07-05 James Cloos <cloos@jhcloos.com>
2373
2374 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2375
2376 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2377 _NET_WM_ICON_NAME atoms.
2378
2379 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2380 and _NET_WM_ICON_NAME properties, too, matching what is
2381 done in the Gtk+ case.
2382
e4c8d29a
J
23832010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2384
ff919460
J
2385 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2386
e4c8d29a
J
2387 * xsmfns.c (SSDATA): New macro.
2388 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2389 passed to strlen/strcpy/strcat.
2390 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2391 7:th arg to XChangeProperty to (unsigned char *)
2392
2393 * xsettings.c (something_changedCB, parse_settings)
2394 (apply_xft_settings): Reformat prototype.
2395 (something_changedCB, init_gconf): Remove unused variable i.
2396 (read_settings): Remove unused variable long_len.
2397
2398 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2399 (xg_get_image_for_pixmap, create_dialog)
2400 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2401 (menuitem_highlight_callback, make_menu_item)
2402 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2403 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2404 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2405 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2406 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2407 (xg_tool_bar_item_expose_callback): Reformat prototype.
2408 (xg_update_menubar): GList *group => GSList *group.
2409 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2410 before use.
2411 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2412 to GTK_IMAGE (wimage).
2413
dd4c5104
DN
24142010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2415
898b4c5c
DN
2416 * atimer.c: Use "" instead of <> for local includes for
2417 consistency with the rest of the code.
2418
dd4c5104
DN
2419 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2420 * xrdb.c (get_system_name):
2421 * window.c (shrink_windows):
2422 * syntax.c (forw_comment):
2423 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2424 (ins_del_costs):
2425 * mem-limits.h (start_of_data):
2426 * lread.c (readevalloop):
2427 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2428 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2429 * frame.c (x_get_focus_frame):
2430 * floatfns.c (fmod_float):
2431 * fileio.c (choose_write_coding_system):
2432 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2433 (malloc_initialize_hook, sort_args, synchronize_locale):
2434 * doprnt.c (doprnt):
2435 * dired.c (compile_pattern):
2436 * data.c (fmod_float):
2437 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2438 (map_char_table_for_charset):
2439 * charset.c (define_charset_internal):
2440 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2441 to standard C.
2442
9a39b306 24432010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 2444 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
2445
2446 * lread.c (read1): Fix up last change to not mess up `c'.
2447
e6cb2cbb
JB
24482010-07-04 Juanma Barranquero <lekktu@gmail.com>
2449
2450 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2451
438105ed
JB
24522010-07-04 Juanma Barranquero <lekktu@gmail.com>
2453
2454 Fix prototypes.
2455
e5447b22 2456 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 2457 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
2458 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2459 arg, as required by internal_condition_case_1.
dcc7404b 2460 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
2461 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2462 (analyse_first): Fix "const const".
e5447b22 2463 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 2464 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 2465 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 2466
971de7fb
DN
24672010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2468
2469 * alloc.c: Convert function definitions to standard C.
2470 * atimer.c:
2471 * bidi.c:
2472 * bytecode.c:
2473 * callint.c:
2474 * callproc.c:
2475 * casefiddle.c:
2476 * casetab.c:
2477 * category.c:
2478 * ccl.c:
2479 * character.c:
2480 * charset.c:
2481 * chartab.c:
2482 * cmds.c:
2483 * coding.c:
2484 * composite.c:
2485 * data.c:
2486 * dbusbind.c:
2487 * dired.c:
2488 * dispnew.c:
2489 * doc.c:
2490 * doprnt.c:
2491 * ecrt0.c:
2492 * editfns.c:
2493 * fileio.c:
2494 * filelock.c:
2495 * filemode.c:
2496 * fns.c:
2497 * font.c:
2498 * fontset.c:
2499 * frame.c:
2500 * fringe.c:
2501 * ftfont.c:
2502 * ftxfont.c:
2503 * gtkutil.c:
2504 * indent.c:
2505 * insdel.c:
2506 * intervals.c:
2507 * keymap.c:
2508 * lread.c:
2509 * macros.c:
2510 * marker.c:
2511 * md5.c:
2512 * menu.c:
2513 * minibuf.c:
2514 * prefix-args.c:
2515 * print.c:
2516 * ralloc.c:
2517 * regex.c:
2518 * region-cache.c:
2519 * scroll.c:
2520 * search.c:
2521 * sound.c:
2522 * strftime.c:
2523 * syntax.c:
2524 * sysdep.c:
2525 * termcap.c:
2526 * terminal.c:
2527 * terminfo.c:
2528 * textprop.c:
2529 * tparam.c:
2530 * undo.c:
2531 * unexelf.c:
2532 * window.c:
2533 * xfaces.c:
2534 * xfns.c:
2535 * xfont.c:
2536 * xftfont.c:
2537 * xgselect.c:
2538 * xmenu.c:
2539 * xrdb.c:
2540 * xselect.c:
2541 * xsettings.c:
2542 * xsmfns.c:
2543 * xterm.c: Likewise.
2544
ae492bec
EZ
25452010-07-03 Eli Zaretskii <eliz@gnu.org>
2546
76ea4cc9
EZ
2547 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2548 frames other than the initial one. Fix reversal of colors when
2549 `reverse' is specified in the frame parameters. Call
2550 update_face_from_frame_parameter instead of
2551 internal-set-lisp-face-attribute. Initialize screen colors from
2552 initial_screen_colors[] when f->default_face_done_p is zero,
2553 instead of depending on being called with default-frame-alist as
2554 the alist argument.
2555
2556 * xfaces.c (update_face_from_frame_parameter): Move out of
2557 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2558 with HAVE_WINDOW_SYSTEM.
2559
1e6255ae
EZ
2560 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2561 to menu-bar-mode, if not set in the frame parameters or in
2562 default-frame-alist.
2563
ae492bec
EZ
2564 * w32console.c (sys_tputs): Adjust argument list to prototype in
2565 term.c.
2566
3a35a84c
JB
25672010-07-03 Juanma Barranquero <lekktu@gmail.com>
2568
2569 * lisp.h (memory_warnings): Fix prototype.
2570
2571 * cm.h (evalcost): Fix prototype.
2572
2573 * cm.c (evalcost): Fix arg type.
2574
c532d349
DN
25752010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2576
2577 * term.c (term_clear_mouse_face, Fidentity):
2578 * syssignal.h (signal_handler_t):
2579 * lisp.h (memory_warnings):
2580 * coding.h (preferred_coding_system):
2581 * cm.h (evalcost):
2582 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2583
c0b36d46
EZ
25842010-07-02 Eli Zaretskii <eliz@gnu.org>
2585
2586 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2587 from prototypes.
2588
2589 * msdos.h (load_pixmap): Don't define away.
2590
383e0970
J
25912010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2592
f57e2426
J
2593 * lisp.h:
2594 * atimer.h: Remove define for P_.
2595
2596 * alloc.c: Remove __P and P_ from .c and .m files.
2597 * atimer.c:
2598 * buffer.c:
2599 * callint.c:
2600 * category.c:
2601 * charset.c:
2602 * chartab.c:
2603 * cm.c:
2604 * coding.c:
2605 * composite.c:
2606 * data.c:
2607 * dired.c:
2608 * dispnew.c:
2609 * doc.c:
2610 * editfns.c:
2611 * emacs.c:
2612 * eval.c:
2613 * fileio.c:
2614 * filelock.c:
2615 * fns.c:
2616 * font.c:
2617 * fontset.c:
2618 * frame.c:
2619 * ftfont.c:
2620 * ftxfont.c:
2621 * gmalloc.c:
2622 * gtkutil.c:
2623 * image.c:
2624 * indent.c:
2625 * intervals.c:
2626 * keyboard.c:
2627 * keymap.c:
2628 * lread.c:
2629 * marker.c:
2630 * menu.c:
2631 * minibuf.c:
2632 * print.c:
2633 * process.c:
2634 * scroll.c:
2635 * search.c:
2636 * sound.c:
2637 * strftime.c:
2638 * syntax.c:
2639 * sysdep.c:
2640 * term.c:
2641 * terminal.c:
2642 * textprop.c:
2643 * unexalpha.c:
2644 * w32console.c:
2645 * w32fns.c:
2646 * w32font.c:
2647 * w32menu.c:
2648 * w32term.c:
2649 * w32uniscribe.c:
2650 * window.c:
2651 * xdisp.c:
2652 * xfaces.c:
2653 * xfns.c:
2654 * xfont.c:
2655 * xftfont.c:
2656 * xmenu.c:
2657 * xselect.c:
2658 * xterm.c: Likewise.
2659
383e0970 2660 Remove P_ and __P macros.
f57e2426
J
2661 * atimer.h: Remove P_ and __P macros.
2662 * buffer.h:
383e0970
J
2663 * category.h:
2664 * ccl.h:
2665 * character.h:
2666 * charset.h:
2667 * cm.h:
2668 * coding.h:
2669 * composite.h:
2670 * dispextern.h:
2671 * disptab.h:
9e892c8d 2672 * dosfns.h:
383e0970
J
2673 * font.h:
2674 * fontset.h:
2675 * frame.h:
2676 * gtkutil.h:
2677 * indent.h:
2678 * intervals.h:
2679 * keyboard.h:
2680 * keymap.h:
2681 * lisp.h:
2682 * macros.h:
2683 * md5.h:
2684 * menu.h:
2685 * msdos.h:
2686 * nsterm.h:
2687 * puresize.h:
2688 * region-cache.h:
2689 * syntax.h:
2690 * syssignal.h:
2691 * systime.h:
2692 * termhooks.h:
9e892c8d 2693 * w32font.h:
383e0970
J
2694 * w32term.h:
2695 * widget.h:
2696 * window.h:
2697 * xgselect.h:
2698 * xsettings.h:
2699 * xterm.h: Likewise.
2700
98601119
DN
27012010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2702
d9170db5
DN
2703 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2704
98601119
DN
2705 Cleanup old code.
2706 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2707 * syssignal.h: Remove code for Lynx, not supported anymore.
2708 * vm-limit.c: Remove unused code the depends on emacs not being
2709 defined and NO_LIM_DATA being defined.
2710 * mem-limits.h: Remove dead code.
2711
1f984e12
J
27122010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2713
c49d071a
J
2714 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2715
9d5405ec
J
2716 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2717 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2718
7a18115b
J
2719 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2720 parameters, they are already absolute.
2721
a628ad9d
JB
2722 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2723 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 2724
a628ad9d 2725 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 2726
a628ad9d
JB
2727 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2728 Update FRAME_TOOLBAR_HEIGHT.
581a8100 2729
a628ad9d
JB
2730 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2731 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 2732
c1ef4455
CY
27332010-06-30 Chong Yidong <cyd@stupidchicken.com>
2734
2735 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2736 check default-frame-alist.
2737
ce8f5a9a
AS
27382010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2739
2740 * process.c (create_process): Avoid using invalid file descriptors.
2741
2742 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2743
bf935339
J
27442010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2745
2746 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2747 Improve documentation. Return font regardless of use_system_font.
2748 (syms_of_xsettings): Improve documentation for font-use-system-font.
2749
7c33a057
CY
27502010-07-10 Chong Yidong <cyd@stupidchicken.com>
2751
2ec1b5ee
CY
2752 * xfaces.c (realize_face): Garbage the frame if a face is removed
2753 (Bug#6593).
2754
27552010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2756
2757 * keyboard.c: Remove duplicate <setjmp.h>.
2758 (read_key_sequence): Remove volatile qualifiers.
2759
27602010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2761
2762 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2763 (struct glyph_row): New members left_fringe_offset and
2764 right_fringe_offset.
2765
2766 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2767 specially.
2768 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2769 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2770
2771 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 2772 Take account of bitmap offset.
2ec1b5ee
CY
2773 (draw_window_fringes): Take account of window vscroll.
2774 (update_window_fringes): Likewise. Extend top-aligned top indicator
2775 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2776 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2777 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2778
27792010-07-04 Juanma Barranquero <lekktu@gmail.com>
2780
2781 * w32fns.c (Qtooltip): Declare.
2782 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2783
27842010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2785
2786 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2787 grab on just Press (Bug#6499).
2788
27892010-07-02 Chong Yidong <cyd@stupidchicken.com>
2790
2791 * frame.c (Qtooltip): New var.
2792 (delete_frame): Use it. Fix faulty if statement. Don't update
2793 mode line for tooltip frames. Suggested by Martin Rudalics.
2794
2795 * xfns.c (x_create_tip_frame):
2796 * w32fns.c (x_create_tip_frame): Use it.
2797
27982010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
2799
2800 * xftfont.c (xftfont_open): Check font width one by one also when
2801 spacing is dual.
2802
2803 * ftfont.c (ftfont_open): Ditto.
2804
6259c2ec
GM
28052010-06-30 Glenn Morris <rgm@gnu.org>
2806
a46007e9
GM
2807 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2808
6259c2ec
GM
2809 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2810
2811 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2812 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2813 * s/darwin.h (SYSTEM_MALLOC):
2814 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2815
5d1d3d04
J
28162010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2817
2818 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2819 (ns_get_screen): Don't assign integer to f.
2820 (Fx_display_color_cells): Declarations before statements.
2821
e547b051
J
28222010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2823
5fc8e5bc
J
2824 * xfns.c (x_default_font_parameter): Remove got_from_system
2825 (Bug#6526).
2826
e547b051
J
2827 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2828 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2829 defines based on what configure finds.
2830
2831 * xterm.c (XTflash): Use gtk_widget_get_window.
2832 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2833 gtk_adjustment_get_page_size.
2834 (handle_one_xevent): Use gtk_widget_get_mapped.
2835 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2836 messages.
2837
2838 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2839
2840 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2841 HAVE_GTK_FILE_SELECTION_NEW.
2842
2843 * gtkutil.c (xg_display_open, xg_display_close): Remove
2844 HAVE_GTK_MULTIDISPLAY, it is always defined.
2845 (xg_display_open): Return type is void.
2846 (gtk_widget_set_has_window)
2847 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2848 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2849 (gtk_adjustment_set_page_increment)
2850 (gtk_adjustment_get_step_increment): #define these if not found
2851 by configure.
2852 (remove_submenu): New define based on Gtk+ version.
2853 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2854 gtk_widget_get_window.
2855 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2856 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2857 (create_dialog): Use gtk_dialog_get_action_area and
2858 gtk_dialog_get_content_area.
2859 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2860 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2861 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2862 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2863 g_object_ref and g_object_unref.
2864 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2865 gtk_widget_get_sensitive.
2866 (xg_update_submenu): Use remove_submenu.
2867 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2868 properties instead to get old x and y position.
2869 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2870 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 2871 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
2872 (xg_get_tool_bar_widgets): New function.
2873 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2874 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2875 (toolbar_set_orientation): New #define based on if configure
2876 finds gtk_orientable_set_orientation.
2877 (xg_create_tool_bar): Call toolbar_set_orientation.
2878 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2879 instead of gtk_box_pack_start_defaults.
2880
b9229673
CY
28812010-06-28 Chong Yidong <cyd@stupidchicken.com>
2882
2883 * cmds.c (Fdelete_backward_char): Move into Lisp.
2884
bbc803b0
DN
28852010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2886
2887 * s/freebsd.h (BSD4_2): Remove redundant definition.
2888 bsd-common.h defines it already.
2889
6431f2e6
CY
28902010-06-27 Chong Yidong <cyd@stupidchicken.com>
2891
2892 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2893 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2894 tool-bar-mode, which are now set using these X resources at
2895 startup, to determine the defaults (Bug#2249).
2896
2897 * w32fns.c (Fx_create_frame):
2898 * nsfns.m (Fx_create_frame): Likewise.
2899
2900 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2901
8c079ebb
JB
29022010-06-24 Juanma Barranquero <lekktu@gmail.com>
2903
2904 * gtkutil.c (xg_update_scrollbar_pos):
2905 Avoid C99 mid-block variable declaration.
2906
e9b7ab96
JD
29072010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2908
bc869eca
JD
2909 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2910
2b7e356a 2911 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2912
2913 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2914 if height is less than scroll bar min size.
2915 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2916
e9b7ab96
JD
2917 * xfns.c (x_default_font_parameter): Try to open font from system
2918 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2919
a628ad9d 29202010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2921
2922 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2923
70c4cfbb
EZ
29242010-06-20 Eli Zaretskii <eliz@gnu.org>
2925
2926 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2927 most-positive-fixnum, be extra accurate when scrolling window
2928 start, to avoid missing the cursor line.
2929
ad5a12b5
EZ
29302010-06-19 Eli Zaretskii <eliz@gnu.org>
2931
2932 * xdisp.c (try_scrolling): Compute the limit for searching point
2933 in forward scroll from scroll_max, instead of an arbitrary limit
2934 of 10 screen lines. See
2935 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2936 and
2937 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2938 for details.
2939
2a64315a 29402010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2941
2942 * editfns.c (Fbyte_to_string): Pacify compiler.
2943
288cf4e9
SM
29442010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2945
2946 * lread.c (read1): Phase out old-style backquotes a bit more.
2947
6e6e5760
EZ
29482010-06-12 Eli Zaretskii <eliz@gnu.org>
2949
cbc4fd20
EZ
2950 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2951 bidimirror.h.
2952
2953 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2954
317fbf33
EZ
2955 * bidi.c (bidi_initialize): Remove explicit initialization of
2956 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 2957 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 2958 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
2959
2960 * biditype.h: New file.
2961
cbc4fd20
EZ
2962 * bidimirror.h: New file.
2963
6e6e5760
EZ
2964 * window.c (syms_of_window): Doc fix (bug#6409).
2965
4176cba2
RF
29662010-06-12 Romain Francoise <romain@orebokech.com>
2967
2968 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2969 ediff-hook.
2970
cb4bfcb5
GM
29712010-06-10 Glenn Morris <rgm@gnu.org>
2972
64c60c2f
GM
2973 * editfns.c (Fbyte_to_string): Pacify compiler.
2974
cb4bfcb5
GM
2975 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2976
2ec1b5ee
CY
29772010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2978
2979 * alloc.c (Fmake_byte_code): Don't access undefined argument
2980 (Bug#6517).
2981
29822010-06-25 Chong Yidong <cyd@stupidchicken.com>
2983
2984 * xdisp.c (next_element_from_image): Ensure that after-strings are
2985 read the next time we hit handle_stop (Bug#1336).
2986
29872010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2988
2989 * lread.c (read1): Signal error if #s is not followed by paren.
2990
29912010-06-19 Chong Yidong <cyd@stupidchicken.com>
2992
2993 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2994
2995 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2996
29972010-06-15 Glenn Morris <rgm@gnu.org>
2998
2999 * editfns.c (Fbyte_to_string): Pacify compiler.
3000
e454a4a3
SM
30012010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3002
3003 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3004 Check `object's type before accessing its guts.
3005
c1b1acc2
DN
30062010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3007
3008 * s/usg5-4.h: Fix previous change.
3009 Suggested by Lawrence Mitchell <wence@gmx.li>
3010
657d4c0b
AS
30112010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3012
3013 * minibuf.c (Fall_completions): Add more checks.
3014
9b27fd9f
JB
30152010-06-08 Juanma Barranquero <lekktu@gmail.com>
3016
3017 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3018
a99ebb40
DN
30192010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3020
d7c5d87d
DN
3021 * lread.c (X_OK): Remove, unused.
3022
0263a941
DN
3023 * dispnew.c: Remove obsolete comment.
3024
a99ebb40
DN
3025 Remove INCLUDED_FCNTL.
3026 * xterm.c (INCLUDED_FCNTL):
3027 * callproc.c (INCLUDED_FCNTL):
3028 * alloc.c (INCLUDED_FCNTL):
3029 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3030 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3031
13b5221f
MR
30322010-06-07 Martin Rudalics <rudalics@gmx.at>
3033
3034 * window.c (Fselect_window): Move `record_buffer' up to the
3035 beginning of this function, so the buffer gets recorded
3036 even if the selected window does not change.
3037 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3038
5220357f
JB
30392010-06-07 Juanma Barranquero <lekktu@gmail.com>
3040
3041 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3042 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3043
3085237c
DN
30442010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3045
3046 Remove BSTRING related code, all platforms define it.
3047 * s/usg5-4.h (BSTRING): Remove definition.
3048 * s/template.h (BSTRING):
3049 * s/msdos.h (BSTRING):
3050 * s/ms-w32.h (BSTRING):
3051 * s/hpux10-20.h (BSTRING):
3052 * s/gnu-linux.h (BSTRING):
3053 * s/darwin.h (BSTRING):
3054 * s/cygwin.h (BSTRING):
3055 * s/bsd-common.h (BSTRING):
3056 * s/aix4-2.h (BSTRING): Likewise.
3057 * sysdep.c: Remove code depending on BSTRING not being defined.
3058
409f2919
JB
30592010-06-05 Juanma Barranquero <lekktu@gmail.com>
3060
3061 Remove obsolete macro BASE_LEADING_CODE_P.
3062 * character.h (BASE_LEADING_CODE_P): Remove.
3063 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3064 * buffer.c (Fset_buffer_multibyte):
3065 * indent.c (scan_for_column, compute_motion):
3066 * insdel.c (count_combining_before, count_combining_after):
3067 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3068
087fc47a
JB
30692010-06-04 Juanma Barranquero <lekktu@gmail.com>
3070
3071 Turn `directory-sep-char' into a noop.
3072
3073 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3074 (DIRECTORY_SEP): Define unconditionally.
3075
3076 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3077
3078 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3079 call dostounix_filename directly.
3080
3081 * fileio.c (CORRECT_DIR_SEPS): Remove.
3082 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3083 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3084 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3085 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3086
3087 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3088 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3089
0eb7675e
AS
30902010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3091
a628ad9d
JB
3092 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3093 (Bug#6346)
0eb7675e 3094
78edd3b7
JB
30952010-06-03 Juanma Barranquero <lekktu@gmail.com>
3096
3097 * ccl.c (Fccl_program_p): Fix typo in docstring.
3098
eb697db5
DN
30992010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3100
3101 Move UNEXEC definition to autoconf.
3102 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3103 * s/sol2-10.h (UNEXEC):
3104 * s/irix6-5.h (UNEXEC):
3105 * s/hpux10-20.h (UNEXEC):
3106 * s/gnu-linux.h (UNEXEC):
3107 * s/darwin.h (UNEXEC):
3108 * s/cygwin.h (UNEXEC):
3109 * s/bsd-common.h (UNEXEC):
3110 * s/aix4-2.h (UNEXEC):
3111 * m/alpha.h (UNEXEC): Likewise.
3112 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3113
aa3830c4
JB
31142010-06-03 Juanma Barranquero <lekktu@gmail.com>
3115
3116 Remove obsolete pre-unicode2 macros.
3117 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3118 * composite.c (composition_reseat_it):
3119 * data.c (Faset):
3120 * fns.c (Ffillarray):
3121 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3122 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3123
d234d13e
JL
31242010-06-03 Juri Linkov <juri@jurta.org>
3125
3126 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3127 (Fswitch_to_buffer): Remove unused variable `err'.
3128
0d4bcf4d
GM
31292010-06-03 Glenn Morris <rgm@gnu.org>
3130
e23dc1e2
GM
3131 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3132
05b09564
GM
3133 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3134 now that AH_BOTTOM does it.
3135
824e2978
GM
3136 * m/hp800.h (HAVE_ALLOCA):
3137 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3138
0d4bcf4d
GM
3139 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3140 Remove NOT_C_CODE tests, it is always true now.
3141
c55d2abf
DN
31422010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3143
08a494a3
DN
3144 Fix config.h includes.
3145 * xsettings.c:
3146 * xgselect.c:
3147 * nsterm.m:
3148 * nsselect.m:
3149 * nsimage.m:
3150 * nsfont.m:
3151 * nsfns.m:
3152 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3153 other files do.
3154
75934b1d
DN
3155 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3156
9f32a766
DN
3157 * s/sol2-6.h: Remove obsolete comments.
3158
c55d2abf
DN
3159 Remove unnecessary alloca.h includes.
3160 * keymap.c: Do not include alloca.h, config.h does that.
3161 * sysdep.c: Likewise. Do not define fwrite, not used.
3162
06ac62b4
SM
31632010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3164
3165 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3166 the HAVE_TERMIO where it belongs (bug#6149).
3167
1ab8293c
SM
31682010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3169
3170 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3171 of bug#6305).
3172
6dcfd253
EZ
31732010-05-30 Eli Zaretskii <eliz@gnu.org>
3174
3175 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3176 state is always cached (bug#6306).
3177
6d26bbb2
EZ
31782010-05-29 Eli Zaretskii <eliz@gnu.org>
3179
06fa4a23
EZ
3180 Fix cursor motion in bidi-reordered continued lines.
3181 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3182 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
3183 over continuation lines in bidi-reordered buffers. Return
3184 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3185 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3186
f5783df3
MA
31872010-05-28 Michael Albinus <michael.albinus@gmx.de>
3188
3189 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3190
7d56b2dd
KH
31912010-05-28 Kenichi Handa <handa@m17n.org>
3192
3193 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3194 Don't sheck SPEC if it is nil.
3195 (font_list_entities): Call font_delete_unmatched if
b925d231 3196 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 3197
e58d4ff7
GM
31982010-05-28 Glenn Morris <rgm@gnu.org>
3199
3200 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3201
f1a5d776
CY
32022010-05-27 Chong Yidong <cyd@stupidchicken.com>
3203
3204 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3205 whether to trash.
3206 (internal_delete_file, Frename_file): Callers changed.
3207 (delete_by_moving_to_trash): Doc fix.
3208 (Fdelete_directory_internal): Don't move to trash.
3209
3210 * callproc.c (delete_temp_file):
3211 * buffer.c (Fkill_buffer): Callers changed.
3212
3213 * lisp.h: Update prototype.
3214
f44a59e6
CY
32152010-05-27 Chong Yidong <cyd@stupidchicken.com>
3216
3217 * xdisp.c (redisplay_window): After redisplay, check if point is
3218 still valid before setting it (Bug#6177).
3219
81ac4f35
GM
32202010-05-27 Glenn Morris <rgm@gnu.org>
3221
3222 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3223 Convert comments to Makefile format.
3224
3225 * Makefile.in (bootstrap-clean): No more Makefile.c.
3226
ccd89fb3
GM
32272010-05-26 Glenn Morris <rgm@gnu.org>
3228
90278cb6
GM
3229 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3230 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3231
ccd89fb3
GM
3232 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3233 Remove.
3234 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3235
b7050583
KH
32362010-05-26 Kenichi Handa <handa@m17n.org>
3237
3238 * composite.c (composition_compute_stop_pos): Fix condition for
3239 backward scanning.
3240
e5458003
GM
32412010-05-25 Glenn Morris <rgm@gnu.org>
3242
c345fe90
GM
3243 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3244 Move before TEMACS_LDFLAGS.
3245 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3246 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3247
2e0689ab
GM
3248 * Makefile.in (NOT_C_CODE): No longer define.
3249 (config.h): No longer include.
3250
8009a5e8
GM
3251 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3252 variables it may reference.
3253
e5458003
GM
3254 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3255 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3256
10f72a37
KH
32572010-05-25 Kenichi Handa <handa@m17n.org>
3258
3259 * dispextern.h (struct composition_it): New members rule_idx and
3260 charpos.
3261
3262 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3263 that the character positions of IT point the last character of the
3264 current grapheme cluster.
3265 (next_element_from_composition): Don't change character positions
3266 of IT.
3267 (append_composite_glyph): Set glyph->charpos to
3268 it->cmp_it.charpos.
3269
3270 * composite.c (autocmp_chars): Change the first argument to RULE,
3271 and try composition with RULE only.
3272 (composition_compute_stop_pos): Record the index number of the
3273 composition rule in CMP_IT->rule_idx.
3274 (composition_reseat_it): Call autocmp_chars repeatedly until the
3275 correct rule of the composition is found.
3276 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3277 is at the last character of the current grapheme cluster when
3278 CMP_IT->reversed_p is nonzero.
3279
171eda53 32802010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 3281
171eda53
SM
3282 * editfns.c (Fbyte_to_string): New function.
3283
66a9f7f4
SM
32842010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3285
3286 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3287 Suggested by Masatake YAMATO <yamato@redhat.com>.
3288
d8c315d1
EZ
32892010-05-23 Eli Zaretskii <eliz@gnu.org>
3290
171eda53 3291 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 3292
f5b416d2 32932010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3294
3295 * s/netbsd.h: If terminfo is found, use it in preference to
3296 termcap. (Bug#6190) [Backport from trunk]
3297
0416466c
EZ
32982010-05-19 Eli Zaretskii <eliz@gnu.org>
3299
11117830 3300 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
3301
3302 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3303 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3304 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3305 and maxpos members instead of start.pos and end.pos, respectively.
3306
3307 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3308 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3309 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
3310 (try_window_reusing_current_matrix, try_window_id):
3311 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
3312 (init_from_display_pos, init_iterator): Use EMACS_INT for
3313 character and byte positions.
66a9f7f4 3314 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
3315 arguments for minimum and maximum buffer positions seen by
3316 display_line for this row. Don't use iterator to find the
3317 position following the maximum one; instead, increment the
11117830
EZ
3318 position found by display_line directly. Fix logic; eol_pos
3319 should be tested before the rest. Handle the case of characters
3320 delivered from display vector (bug#6036). Fix tests related to
3321 it->method. Handle the truncated_on_right_p rows.
3322 (RECORD_MAX_MIN_POS): New macro.
3323 (display_line): Use it to record the minimum and maximum buffer
3324 positions for glyphs in the row being assembled. Record the
3325 position of the newline that terminates the line. If word wrap is
3326 in effect, restore minimum and maximum positions seen up to the
3327 wrap point, when iterator returns to it.
3328 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3329 row and cursor not already at point. Restore original pre-bidi
3330 code for unidirectional buffers.
d36fe237
EZ
3331
3332 * dispnew.c (increment_row_positions, check_matrix_invariants):
3333 Increment and check row->start.pos and row->end.pos, in addition
3334 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3335
11117830
EZ
3336 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3337 Display truncated_on_left_p and truncated_on_right_p flags.
3338 Formatting fixes.
3339 (pmtxrows): Display the ordinal number of each row. Don't display
3340 rows beyond the last one.
3341
3342 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3343 it is not copied by bidi_copy_it.
3344
6e83d800
EZ
33452010-05-22 Eli Zaretskii <eliz@gnu.org>
3346
3347 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3348 (Bug#6237)
3349
110683ad
CY
33502010-05-22 Chong Yidong <cyd@stupidchicken.com>
3351
3352 * image.c (Fimage_flush): Rename from image-refresh.
3353
98fe5161
CY
33542010-05-21 Chong Yidong <cyd@stupidchicken.com>
3355
3356 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3357 just one window.
3358
3359 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3360 (clear_image_cache): If the number of cached images is unusually
3361 large, decrease the cache eviction delay (Bug#6230).
3362
e8752c66
GM
33632010-05-21 Glenn Morris <rgm@gnu.org>
3364
66dbf213
GM
3365 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3366 Move these rules to ns.mk.
3367 * ns.mk: New file.
3368
04384b2d
GM
3369 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3370
e8752c66
GM
3371 * Makefile.in (CANNOT_DUMP): New, set by configure.
3372 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3373
2e2bbddb
JL
33742010-05-20 Juri Linkov <juri@jurta.org>
3375
3376 * fileio.c (Fdelete_file): Change interative spec to use
3377 `read-file-name' like in `find-file-read-args' where the default
3378 value is `default-directory' instead of `buffer-file-name'.
3379 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3380
31c4aaf6
KR
33812010-05-20 Kevin Ryde <user42@zip.com.au>
3382
3383 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3384 (Voverriding_terminal_local_map, Vsystem_key_alist)
3385 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3386
9d5cf9b6
GM
33872010-05-20 Glenn Morris <rgm@gnu.org>
3388
3389 * Makefile.in (DEPDIR): New constant.
3390 (DEPFLAGS): Set with configure, not cpp.
3391 (MKDEPDIR): New, set by configure.
3392 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3393 (clean): Use $DEPDIR.
3394 (deps_frag): Include from configure.
3395 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3396 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3397
ead6f8f5
EZ
3398 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3399 reallocation of the cache. (Bug#6210)
3400
7f34aec3
GM
34012010-05-19 Glenn Morris <rgm@gnu.org>
3402
d494e8f2
GM
3403 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3404
c1d0dcfd
GM
3405 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3406 (GNULIB_VAR): Remove.
3407 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3408
3409 * m/ibms390x.h (LINKER):
3410 * m/macppc.h (LINKER) [GNU_LINUX]:
3411 * s/aix4-2.h (ORDINARY_LINK):
3412 * s/cygwin.h (LINKER):
3413 * s/darwin.h (ORDINARY_LINK):
3414 * s/gnu.h (ORDINARY_LINK):
3415 * s/netbsd.h (LINKER):
3416 * s/usg5-4.h (ORDINARY_LINK):
3417 Move to configure.
3418
7f34aec3
GM
3419 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3420
754790b6
CY
34212010-05-18 Chong Yidong <cyd@stupidchicken.com>
3422
3423 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3424 prevent stack overflow if number of arguments is too large
3425 (Bug#6214).
3426
161e44d1
JB
34272010-05-18 Juanma Barranquero <lekktu@gmail.com>
3428
3429 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3430
be4ff9da
GM
34312010-05-18 Glenn Morris <rgm@gnu.org>
3432
9539dc5d
GM
3433 * s/gnu-linux.h: Combine two conditionals.
3434
3435 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
3436 $(POST_ALLOC_OBJ).
3437
40dc6bf4
GM
3438 * Makefile.in (RALLOC_OBJ): New, set by configure.
3439 (rallocobj): Replace with the previous variable.
3440 (otherobj): Use $RALLOC_OBJ.
3441
3442 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3443 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3444
be4ff9da
GM
3445 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3446 (gmallocobj, vmlimitobj): Replace with previous two variables.
3447 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3448
16455a85
GM
34492010-05-17 Glenn Morris <rgm@gnu.org>
3450
3451 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3452 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3453
5fdb7468
GM
34542010-05-16 Glenn Morris <rgm@gnu.org>
3455
7ca1f3f9
GM
3456 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3457
7541dad5
GM
3458 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3459
da53fab9
GM
3460 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3461 trailing "/".
3462
b02a6645
GM
3463 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3464 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3465
8877ca0f
GM
3466 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3467 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3468 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3469 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3470 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3471
5fdb7468
GM
3472 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3473 Remove ${STARTFLAGS}, nothing ever sets it.
3474
95adb4b1
DN
34752010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3476
3477 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3478
676b6304
GM
34792010-05-16 Glenn Morris <rgm@gnu.org>
3480
9beab9ce
GM
3481 * Makefile.in (LIBX_BASE): Always define.
3482
8a95f0e7
GM
3483 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3484
676b6304
GM
3485 * Makefile.in (LIBXT): Always define.
3486
6e546d18
GM
34872010-05-15 Glenn Morris <rgm@gnu.org>
3488
4235ca47 3489 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 3490
6e546d18
GM
3491 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3492 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3493
8c5ff6dd
KR
34942010-05-15 Ken Raeburn <raeburn@raeburn.org>
3495
560bb7ae 3496 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
3497 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3498
8b4eb796
KR
3499 * emacs.c (main): Initialize initial-environment and
3500 process-environment before generating from env, not after.
3501
8c5ff6dd
KR
3502 Handle --version reasonably in CANNOT_DUMP configuration.
3503 * emacs.c (emacs_version, emacs_copyright): New string variables.
3504 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3505 (syms_of_emacs): Defvar them, and initialize them from the C
3506 string variables.
3507 (main): If initialization hasn't been done, print initial version
3508 info from the C strings, instead of starting an interactive session.
3509
dbd3f723
EZ
35102010-05-15 Eli Zaretskii <eliz@gnu.org>
3511
d20e1419
EZ
3512 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3513 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
3514 (bidi_paragraph_init): Remove redundant assertion that we are at
3515 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
3516
3517 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3518 (syms_of_xdisp): Defsubr it.
3519
d36fe237
EZ
3520 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3521
dbd3f723
EZ
3522 * Makefile.in: Fix MSDOS-related comments.
3523
02be533b
GM
35242010-05-15 Glenn Morris <rgm@gnu.org>
3525
1a82cca9
GM
3526 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3527 (really-lwlib, really-oldXMenu): Always define.
3528 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3529
3df7b338
GM
3530 * Makefile.in: Simplify cpp conditional.
3531
2b5f541b
GM
3532 * Makefile.in (${ns_appdir}): Simplify using umask.
3533
02be533b
GM
3534 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3535
4e2db1fe
SM
35362010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3537
3538 * eval.c (specbind): Remove left-over duplicate test.
3539 Disallow let-binding frame-local vars. Add comment.
3540
4b292a22
EZ
35412010-05-14 Eli Zaretskii <eliz@gnu.org>
3542
2fe72643 3543 Make the cache of bidi iterator states dynamically allocated.
1edbd309 3544 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
3545 (bidi_init_it): Call it.
3546 (bidi_cache_iterator_state): Enlarge the cache if needed.
3547
4e2db1fe 3548 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
3549 bidi_get_next_char_visually. All callers changed.
3550
82ebc97b
KH
35512010-05-14 Kenichi Handa <handa@m17n.org>
3552
3553 * dispextern.h (struct composition_it): New member reversed_p.
3554
3555 * composite.c (composition_compute_stop_pos): Search backward if
3556 ENDPOS < CHARPOS.
3557 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3558 Set CMP_IT->reversed_p.
b4b6e17e 3559 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 3560
4e2db1fe
SM
3561 * xdisp.c (set_iterator_to_next):
3562 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
3563 scanning backward. Call composition_compute_stop_pos if scan
3564 direction is changed.
3565 (next_element_from_buffer): Call composition_compute_stop_pos with
3566 negative ENDPOS if we are scanning backward.
3567 (next_element_from_composition): Pay attention to
3568 IT->cmp_it.reversed_p.
3569
0e5d7800
KH
35702010-05-14 Kenichi Handa <handa@m17n.org>
3571
560bb7ae 3572 * font.c (font_range): Return the range for the font found at first.
0e5d7800 3573
cb027b32
GM
35742010-05-14 Glenn Morris <rgm@gnu.org>
3575
177b0288
GM
3576 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3577
fbc00890
GM
3578 * Makefile.in (mktime, X11, register): Move undefs to configure.
3579
f14d1dfd
GM
3580 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3581 (MSDOS_X_OBJ): New variable.
3582 (MSDOS_SUPPORT_REAL): New constant.
3583 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3584 (obj): Use MSDOS_X_OBJ.
3585 (lisp): Use MSDOS_SUPPORT as a variable.
3586
11842bd8
GM
3587 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3588 (GPM_MOUSE_SUPPORT): Now it's a constant.
3589 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3590 not cpp.
3591
489d31a4 3592 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 3593 (ns_appresdir): Remove, unused.
e20f1f07 3594
489d31a4
GM
3595 * Makefile.in (SHELL): Move outside cpp section.
3596
cb027b32
GM
3597 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3598
5a903aa9
GM
35992010-05-13 Glenn Morris <rgm@gnu.org>
3600
3369c79f
GM
3601 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3602 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3603
d5e982a6
GM
3604 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3605 HAVE_WINDOW_SYSTEM must be too.
3606
6192e163
GM
3607 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3608 (lisp): Remove WINNT_SUPPORT.
3609
472c5d6b
GM
3610 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3611 Let configure set these variables (to empty) in this case as well.
3612
0116466b
GM
3613 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3614 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3615
5a903aa9
GM
3616 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3617 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3618 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3619 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3620 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 3621 the values output by configure.
5a903aa9
GM
3622 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3623
1a0d7c06
GM
36242010-05-12 Glenn Morris <rgm@gnu.org>
3625
b5457f14
GM
3626 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3627 (LINKER_WAS_SPECIFIED): Remove.
3628
1a0d7c06
GM
3629 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3630 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3631 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3632 * s/cygwin.h (LIB_GCC):
3633 * s/freebsd.h (LIB_GCC):
3634 * s/gnu-linux.h (LIB_GCC):
3635 * s/msdos.h (LIB_GCC):
3636 * s/netbsd.h (LIB_GCC):
3637 Move to configure.
3638
3ffd4615 36392010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
3640
3641 * ftfont.c: Fix incorrect parentheses of #if condition for
3642 definining M17N_FLT_USE_NEW_FEATURE.
3643
acddf8ae
GM
36442010-05-11 Glenn Morris <rgm@gnu.org>
3645
3646 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3647 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3648
ae5e04fa
EZ
36492010-05-10 Eli Zaretskii <eliz@gnu.org>
3650
3651 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3652 unibyte buffers. See
3653 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3654
7490175b
GM
36552010-05-10 Glenn Morris <rgm@gnu.org>
3656
97efb629
GM
3657 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3658 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3659 (LIBES): Use LIBS_SYSTEM as a variable.
3660 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3661 * s/aix4-2.h (LIBS_SYSTEM):
3662 * s/freebsd.h (LIBS_SYSTEM):
3663 * s/hpux10-20.h (LIBS_SYSTEM):
3664 * s/sol2-6.h (LIBS_SYSTEM):
3665 * s/unixware.h (LIBS_SYSTEM):
3666 Move to configure.
3667
7490175b
GM
3668 * s/aix4-2.h (MAIL_USE_LOCKF):
3669 * s/bsd-common.h (MAIL_USE_FLOCK):
3670 * s/darwin.h (MAIL_USE_FLOCK):
3671 * s/gnu-linux.h (MAIL_USE_FLOCK):
3672 * s/irix6-5.h (MAIL_USE_FLOCK):
3673 * s/template.h (MAIL_USE_FLOCK):
3674 Move to configure.
3675
0235128c 36762010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
3677
3678 * Version 23.2 released.
3679
0235128c 36802010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
3681
3682 * composite.c (autocmp_chars): Save point as marker before calling
3683 auto-composition-function (Bug#5984).
3684
3685 * lisp.h (restore_point_unwind): Add prototype.
3686
3687 * fileio.c (restore_point_unwind): Remove static attribute.
3688
0235128c 36892010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
3690
3691 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3692 new feature of libotf and m17n-flt.
0235128c
SM
3693 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3694 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
3695 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3696 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3697 that OUT is NULL. Use OTF_drive_gsub_with_log and
3698 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3699 OTF_drive_gpos.
3700 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
3701 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3702 Setup mflt_enable_new_feature and mflt_try_otf.
3703
4721152c
J
37042010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3705
3706 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3707
3708 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3709 box and toolbar (Bug #6139).
3710 (xg_create_tool_bar): Remove comment (Bug #6139).
3711 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3712 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3713
ee0a16cf
JB
37142010-05-08 Juanma Barranquero <lekktu@gmail.com>
3715
3716 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3717 Update dependencies.
3718
96d79611
EZ
37192010-05-08 Eli Zaretskii <eliz@gnu.org>
3720
3721 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3722 R2L lines.
3723
40c17879
GM
37242010-05-08 Glenn Morris <rgm@gnu.org>
3725
7b42b29f
GM
3726 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3727
40c17879
GM
3728 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3729 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3730 (termcapobj): Replace with TERMCAP_OBJ.
3731 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3732 (LIBES): Use LIBS_TERMCAP as a variable.
3733
3734 * s/freebsd.h (osreldate.h): No longer include, since this file
3735 does not use __FreeBSD_version any more.
3736
3737 * s/aix4-2.h (TERMINFO):
3738 * s/cygwin.h (TERMINFO):
3739 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3740 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3741 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3742 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3743 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3744 * s/irix6-5.h (TERMINFO):
3745 * s/netbsd.h (LIBS_TERMCAP):
3746 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3747 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3748 * s/usg5-4.h (TERMINFO):
3749 Move to configure.
3750
94b612ad
SM
37512010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3752
3753 * eval.c (unbind_to): Don't unbind a local binding into the global
3754 binding when the local binding disappeared. Inversely, don't unbind
3755 a global binding into a newly created local binding.
3756 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3757 can specify the frame to use, when applicable. Adjust callers.
3758
15e12598 37592010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 3760 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
3761
3762 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3763
f724825e
EZ
37642010-05-07 Eli Zaretskii <eliz@gnu.org>
3765
5cba3209
EZ
3766 * w32fns.c: Include w32.h.
3767 (Fw32_shell_execute): Decode the error message before passing it
3768 to `error'. (Bug#6126)
3769
d16bdfc3
EZ
3770 * msdos.c (dos_set_window_size):
3771 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3772 instead of `XSYMBOL (foo)->value'.
3773
59d93e87
EZ
37742010-05-07 Eli Zaretskii <eliz@gnu.org>
3775
9fdec8bc
EZ
3776 Fix the MS-DOS build, broken by autoconfiscation.
3777
3778 * Makefile.in: Don't use Make-style comments past the "start of
3779 cpp stuff" line.
3780 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3781
3782 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3783 edited directly by msdos/sed1v2.inp).
f724825e 3784
2f86b22b
GM
37852010-05-07 Glenn Morris <rgm@gnu.org>
3786
3787 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3788 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3789 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3790 move out of cpp section.
3791 * s/freebsd.h (LD_SWITCH_SYSTEM):
3792 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3793 * s/netbsd.h (LD_SWITCH_SYSTEM):
3794 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3795
49ebbd65
DN
37962010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3797
3798 Define LIB_STANDARD and START_FILES using autoconf.
3799 * s/usg5-4.h (LIB_STANDARD):
3800 * s/netbsd.h (START_FILES):
3801 * s/irix6-5.h (LIB_STANDARD):
3802 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3803 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3804 * s/freebsd.h (START_FILES):
3805 * s/darwin.h (START_FILES):
3806 * s/cygwin.h (START_FILES):
3807 * s/aix4-2.h (LIB_STANDARD):
3808 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3809 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3810 autoconf, not cpp.
3811
d43c06d6
DN
38122010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3813
28823648
DN
3814 Remove NEED_BSDTTY and NEED_UNISTD_H.
3815 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3816 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3817 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3818 <sys/ptyio.h> and <unistd.h>.
3819
aca00430
DN
3820 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3821
d43c06d6
DN
3822 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3823 * s/gnu.h (START_FILES): Remove empty definition.
3824
3e56b11d
JD
38252010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3826
3827 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3828
e3cf0cde
GM
38292010-05-06 Glenn Morris <rgm@gnu.org>
3830
3831 * Makefile.in (CPP, LN_S): Remove unused variables.
3832
774b9a60
SM
38332010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3834
3835 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3836
4ab92842
LM
38372010-05-05 Lawrence Mitchell <wence@gmx.li>
3838
3839 * m/sparc.h: Fix typo in earlier change.
3840
178f2507
SM
38412010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3842
3843 Misc tweaks.
3844 * eval.c (Fdefvaralias): Remove unintended nested if.
3845 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3846
80f00217 38472010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
3848
3849 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3850
ef03a4e6
DN
38512010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3852
58eb6cf0
DN
3853 Remove BSD_PGRPS.
3854 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3855 * s/gnu-linux.h (BSD_PGRPS): Remove.
3856 * term.c (dissociate_if_controlling_tty):
3857 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3858 (init_sys_modes, reset_sys_modes):
3859 * emacs.c (main):
3860 * callproc.c (Fcall_process, child_setup): Remove code depending
3861 on BSD_PGRPS.
3862
ef03a4e6
DN
3863 Remove POSIX_SIGNALS.
3864 * s/usg5-4.h (POSIX_SIGNALS):
3865 * s/netbsd.h (POSIX_SIGNALS):
3866 * s/msdos.h (POSIX_SIGNALS):
3867 * s/ms-w32.h (POSIX_SIGNALS):
3868 * s/hpux11.h (POSIX_SIGNALS):
3869 * s/gnu.h (POSIX_SIGNALS):
3870 * s/gnu-linux.h (POSIX_SIGNALS):
3871 * s/freebsd.h (POSIX_SIGNALS):
3872 * s/darwin.h (POSIX_SIGNALS):
3873 * s/cygwin.h (POSIX_SIGNALS):
3874 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3875 * s/unixware.h:
3876 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3877 * process.c (create_process):
3878 * syssignal.h:
3879 * sysdep.c (wait_for_termination, init_signals):
3880 * process.c (create_process):
3881 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3882 remove all code that assumes the contrary.
3883
49628785
GM
38842010-05-04 Glenn Morris <rgm@gnu.org>
3885
27a2cdfc
GM
3886 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3887 variable.
3888 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3889 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3890 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3891 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3892 LD_SWITCH_SYSTEM_tmp.
3893 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3894 New variables, set by configure.
3895
eb21eab5
GM
3896 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3897 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3898 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3899 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3900 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3901
49628785
GM
3902 * s/aix4-2.h (C_SWITCH_SYSTEM):
3903 * m/alpha.h (C_SWITCH_MACHINE):
3904 Move to configure.in.
3905 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3906 New variables, set by configure.
3907 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3908 $c_switch_machine and $c_switch_system.
3909
7dff330b
DN
39102010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3911
3912 * s/hpux10-20.h (LIB_STANDARD): New definition.
3913 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3914 on it, not used anymore.
3915
53967e09
CY
39162010-05-03 Chong Yidong <cyd@stupidchicken.com>
3917
3918 * eval.c (internal_condition_case_n): Rename from
3919 internal_condition_case_2.
3920 (internal_condition_case_2): New function.
3921
3922 * xdisp.c (safe_call): Use internal_condition_case_n.
3923
3924 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3925 (internal_delete_file, Frename_file): Callers changed.
3926
3927 * buffer.c (Fkill_buffer):
3928 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3929
3930 * lisp.h: Update prototypes.
3931
3dee6fdb
GM
39322010-05-03 Glenn Morris <rgm@gnu.org>
3933
3934 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3935 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3936 (LIBXT): Set with configure, not cpp.
3937 (LIBX): Remove.
3938 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3939
a101e0fb
DN
39402010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3941
3942 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3943 The FreeBSD is not needed, the default works, Solaris version is
3944 not needed, and the remaining case is not supported by configure.
3945
f63d0028
JD
39462010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3947
3948 * xsmfns.c (CHDIR_OPT): New define.
3949 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3950 restarting emacs.
3951
3952 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3953 shut_down_emacs.
3954
3955 * emacs.c (USAGE1): Mention --chdir.
3956 (main): Handle --chdir.
3957 (standard_args): Add --chdir.
3958 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3959 #5552).
3960
e4814a9f
DN
39612010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3962
cd03c74a
DN
3963 Remove LD_SWITCH_MACHINE.
3964 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3965 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3966
c3a398a1
DN
3967 Clean up IRIX code.
3968 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3969 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3970
87e7285c
DN
3971 Clean up AIX code.
3972 * m/ibmrs6000.inp: Remove file, unused.
3973 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3974 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3975 definition ...
3976 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3977
80f00217
JB
3978 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3979 unused.
e4814a9f 3980
59ca28de
EZ
39812010-05-01 Eli Zaretskii <eliz@gnu.org>
3982
197daef4
EZ
3983 Emulate POSIX_SIGNALS on MS-Windows.
3984
3985 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3986 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
3987
3988 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3989 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3990 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3991
80f00217
JB
3992 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3993 New stubs.
197daef4 3994
af7c7572
EZ
3995 Miscellaneous fixes of bidi display.
3996
59ca28de
EZ
3997 * xdisp.c (find_row_end): New function, refactored from display_line.
3998 (display_line): Use it.
017ea819
EZ
3999 (extend_face_to_end_of_line): In almost-filled rows, extend only
4000 if the row is R2L and not continued.
166e930d 4001 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 4002 Preserve overlay and string info in row->end.
166e930d
EZ
4003 (insert_left_trunc_glyphs): Support addition of left truncation
4004 glyphs to R2L rows.
b47e0dcf 4005 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
4006 glyph between adjacent windows. Fix a crash when a display string
4007 is continued to the next line. Don't return zero if cursor was
4008 found by `cursor' property of a display string.
b47e0dcf
EZ
4009 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4010 test for that explicitly.
59ca28de 4011
7acac9f4
GM
40122010-05-01 Glenn Morris <rgm@gnu.org>
4013
4014 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4015 for clarity.
4016 (OTHER_OBJ): Remove.
4017 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4018 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4019
45841e65
KK
40202010-05-01 Karel Klíč <kklic@redhat.com>
4021
4022 * fileio.c (Ffile_selinux_context): Context functions may return null.
4023
afc61943
DN
40242010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4025
80f00217 4026 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 4027
5a1bb006
GM
40282010-04-30 Glenn Morris <rgm@gnu.org>
4029
4030 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4031 (OTHER_OBJ): Define as a separate variable, for clarity.
4032
210af043
J
40332010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4034
4035 * xsettings.c: include limits.h and update file comment.
4036
0a7df391
GM
40372010-04-30 Glenn Morris <rgm@gnu.org>
4038
d5096f16
GM
4039 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4040 Set with configure, not cpp.
4041 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4042
7eb1ac33
GM
4043 * Makefile.in (mallocobj): Remove.
4044 (otherobj): Simplify using @OTHER_OBJ@.
4045
517d086b
GM
4046 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4047 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4048 Don't bother making nsgui.h dependency platform-specific.
4049
0a7df391
GM
4050 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4051
d6d23852
SM
40522010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4053
d2630aef
SM
4054 * process.c (read_process_output, exec_sentinel): Don't burp if the
4055 sentinel/filter kills the current buffer (bug#6060).
4056
f9dddf52 4057 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
4058 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4059 Remove unused var `args'.
4060 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4061 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4062 * doc.c (store_function_docstring): Use XSETCAR.
4063
f1e3642a
GM
40642010-04-28 Glenn Morris <rgm@gnu.org>
4065
faf535f8
GM
4066 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4067 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4068
c40f9449
GM
4069 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4070
658f86ca
GM
4071 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4072 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4073
bc0b5f61
GM
4074 * Makefile.in (FONT_OBJ): New, set by configure.
4075 (FONT_DRIVERS): Use $FONT_OBJ.
4076
294c50a0
GM
4077 * Makefile.in (LIBXMU): Set with configure, not cpp.
4078 * s/aix4-2.h (LIBXMU):
4079 * s/hpux10-20.h (LIBXMU):
4080 Remove definition, now set in configure.
4081
e6ec4e99
GM
4082 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4083
f1e3642a
GM
4084 * m/amdx86-64.h [i386]: Move this test to configure.in.
4085
c6ea2936
GM
40862010-04-27 Glenn Morris <rgm@gnu.org>
4087
8fdac2c3
GM
4088 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4089 * s/unixware.h (NEED_LIBW): Remove definition.
4090
986fb647
GM
4091 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4092 (TOOLKIT_LIBW): New, set by configure.
4093 (@X_TOOLKIT_TYPE@): No longer define it.
4094
c6ea2936
GM
4095 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4096 (MOTIF_LIBW): Set with configure, not cpp.
4097 * s/aix4-2.h (LIB_MOTIF):
4098 * s/gnu-linux.h (LIB_MOTIF):
4099 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4100
aaa36002
DN
41012010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4102
4103 Reduce CPP usage.
4104 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4105 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
4106 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4107 definitions and undefs. Inline definitions in the only user.
4108 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 4109
b678dd8b
GM
41102010-04-27 Glenn Morris <rgm@gnu.org>
4111
76cda504
GM
4112 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4113 since the defaults (set by the system file) are fine in most cases.
4114 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4115 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4116 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4117 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4118 Remove definitions, since they are set correctly in s/gnu-linux.h.
4119 * s/freebsd.h (START_FILES, LIB_STANDARD):
4120 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4121 * s/hpux10-20.h (START_FILES):
4122 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4123 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4124
b678dd8b
GM
4125 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4126 (MOTIF_LIBW): Use $LIBXP.
4127 (otherobj): Use $WIDGET_OBJ.
4128
9452ded1
DN
41292010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4130
7e10844c
DN
4131 * Makefile.in (LIBS_MACHINE): Remove, unused.
4132
9452ded1
DN
4133 Use autoconf instead of cpp for LIB_MATH.
4134 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4135 * s/cygwin.h (LIB_MATH): Likewise.
4136 * Makefile.in (LIB_MATH): Do not define with cpp.
4137 (LIBES): Use autoconf for LIB_MATH.
4138
fcebfc6a
KH
41392010-04-26 Kenichi Handa <handa@m17n.org>
4140
4141 * composite.c (Ffind_composition_internal): Fix the return value
4142 for an automatic composition.
4143
39e2ad1b
DN
41442010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4145
4146 Remove all NO_ARG_ARRAY uses.
4147 * fns.c (concat2, concat3, nconc2):
4148 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4149 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4150 * m/xtensa.h (NO_ARG_ARRAY):
4151 * m/template.h (NO_ARG_ARRAY):
4152 * m/sparc.h (NO_ARG_ARRAY):
4153 * m/sh3.h (NO_ARG_ARRAY):
4154 * m/mips.h (NO_ARG_ARRAY):
4155 * m/macppc.h (NO_ARG_ARRAY):
4156 * m/iris4d.h (NO_ARG_ARRAY):
4157 * m/intel386.h (NO_ARG_ARRAY):
4158 * m/ibms390x.h (NO_ARG_ARRAY):
4159 * m/ibms390.h (NO_ARG_ARRAY):
4160 * m/ibmrs6000.h (NO_ARG_ARRAY):
4161 * m/ia64.h (NO_ARG_ARRAY):
4162 * m/hp800.h (NO_ARG_ARRAY):
4163 * m/arm.h (NO_ARG_ARRAY):
4164 * m/amdx86-64.h (NO_ARG_ARRAY):
4165 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4166
adf4f59c
EZ
41672010-04-25 Eli Zaretskii <eliz@gnu.org>
4168
6bdf5d65
EZ
4169 * xdisp.c (display_line): Don't assume 2nd call to
4170 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
4171 (iterate_out_of_display_property): New function, body from pop_it.
4172 (pop_it): Use it.
adf4f59c 4173
dfbbda83
GM
41742010-04-24 Glenn Morris <rgm@gnu.org>
4175
4176 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4177 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4178 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4179 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4180
2d4018aa
EZ
41812010-04-24 Eli Zaretskii <eliz@gnu.org>
4182
a49884a6
EZ
4183 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4184 use `get_next_display_element' and `set_iterator_to_next' to
4185 advance to the next character, when looking for the character that
4186 begins the next row.
4187
76db6fcc 4188 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
4189 definition of "struct Lisp_Symbol".
4190
70eab5c1
GM
41912010-04-24 Glenn Morris <rgm@gnu.org>
4192
4193 * Makefile.in (CRT_DIR): New variable, set by configure.
4194 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4195 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4196
1ad4cc3d
DN
41972010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4198
e769f484
DN
4199 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4200
4196ff33
DN
4201 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4202
879b0ee4
DN
4203 Remove redundant flags.
4204 * s/freebsd.h (C_SWITCH_SYSTEM):
4205 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4206 * s/netbsd.h (C_SWITCH_SYSTEM):
4207 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4208 of these.
4209
03cbbcb8
DN
4210 Simplify m/intel386.h.
4211 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4212 user: ecrt0.c.
4213 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4214 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4215 the only user: s/unixware.h.
4216 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4217 from m/intel386.h.
4218 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4219 moved here from m/intel386.h.
4220
1ad4cc3d
DN
4221 * m/mips.h: Remove #if 0 code.
4222
8785b888
EZ
42232010-04-23 Eli Zaretskii <eliz@gnu.org>
4224
728588cc
EZ
4225 Fix display of composed characters from L2R scripts in bidi buffers.
4226 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4227 After advancing IT past the composition, resync the bidi iterator
4228 with IT's position. (Bug#5977)
4229
a63f80b4
DN
42302010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4231
4232 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4233 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4234
ff5dec5c
SM
42352010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4236
4237 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4238
8785b888
EZ
42392010-04-23 Eli Zaretskii <eliz@gnu.org>
4240
58ccf243 4241 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
4242 * xdisp.c (pop_it): When the stack is popped after displaying
4243 from a string, bidi-iterate to exit from the text portion covered
4244 by the `display' property or overlay. (Bug#5988, bug#5920)
4245
feeb1604
DN
42462010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4247
8e324eb6
DN
4248 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4249 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4250
809fcaba
DN
4251 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4252 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4253
ed710380
DN
4254 Simplify STARTFILES definition.
4255 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4256 relying on Makefile.in to define it.
4257 * s/cygwin.h (START_FILES): Likewise.
4258 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4259
feeb1604
DN
4260 Clean up Solaris code.
4261 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4262 (LIB_MOTIF): Remove, configure takes care of this.
4263 (NOT_USING_MOTIF): Remove, unused.
4264 * xrdb.c: Remove #if 0-ed #include.
4265 (SYSV): Remove conditional for old SysV.
4266 * sysdep.c (closedir): Remove conditional code for Solaris,
4267 Solaris has closedir.
4268
a0d0b563
JD
42692010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4270
4271 * xsettings.c (read_and_apply_settings): Check if current_font is
4272 NULL before strcmp (Bug#6001).
4273
56bae7c7
DN
42742010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4275
4276 Clean up HP-UX files.
4277 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4278 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4279 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4280 * s/hpux10-20.h: ... to the only user, here.
4281
372b7a95
EZ
42822010-04-21 Eli Zaretskii <eliz@gnu.org>
4283
4284 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4285 use buffer-local values of paragraph-start and paragraph-separate.
4286 <paragraph_start_re, paragraph_separate_re>: Rename from
4287 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4288 (Bug#5992)
4289
f904c0f9
JD
42902010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4291
4292 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4293 current_tool_bar_style are new.
4294 (store_config_changed_event): Rename from store_font_changed_event.
4295 (XSETTINGS_TOOL_BAR_STYLE): New define.
4296 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4297 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4298 HAVE_XFT.
4299 (something_changedCB): store_font_changed_event is now
c4cc8b9a 4300 store_config_changed_event.
f904c0f9
JD
4301 (parse_settings): Rename from parse_xft_settings. Read
4302 non-xft xsettings outside #ifdef HAVE_XFT.
4303 (read_settings): Renamed from read_xft_settings.
4304 (apply_xft_settings): Take current settings as parameter. Do not
4305 call read_(xft)_settings.
4306 (read_and_apply_settings): New function.
4307 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4308 read_and_apply_settings if there are settings to be read.
4309 (init_xsettings): Renamed from init_xfd_settings.
4310 Call read_and_apply_settings unconditionally.
4311 (xsettings_initialize): Call init_xsettings.
4312 (Ftool_bar_get_system_style): New function.
4313 (syms_of_xsettings): Define Qmonospace_font_name and
4314 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 4315 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 4316 dynamic-setting.
31a01b90 4317 Move misplaced HAVE_GCONF
f904c0f9
JD
4318
4319 * xsettings.h (Ftool_bar_get_system_style): Declare.
4320
4321 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4322 Qtext, Qboth, Qboth_horiz are new.
4323 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4324 Vtool_bar_style, tool_bar_max_label_size.
4325
4326 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4327
4328 * keyboard.c: QClabel is new.
4329 (parse_tool_bar_item): Take out QClabel from tool bar items.
4330 Try to construct a label if ther is no QClabel.
4331 (syms_of_keyboard): Intern :label as QClabel.
4332
4333 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4334 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4335 New.
4336
4337 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4338 dynamic-setting.el.
4339
4340 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4341 (xg_make_tool_item, xg_show_toolbar_item): New function.
4342 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4343 Call xg_make_tool_item to make a tool bar item.
4344 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4345
4346 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4347 into account for toolbars.
4348
c632dfda
JD
43492010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4350
4351 * data.c (make_blv): Declarations before code (Bug#5993).
4352
10efe302
GM
43532010-04-21 Glenn Morris <rgm@gnu.org>
4354
4355 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4356 Define using autoconf, not cpp.
4357 (LIBXSM): New variable, set by autoconf.
4358 (LIBXT): Use $LIBXSM.
4359
4285ac5a
DN
43602010-04-21 Dan Nicolaescu <local_user@dannlt>
4361
3ec759e7
DN
4362 Remove NOMULTIPLEJOBS, unused.
4363 * s/template.h (NOMULTIPLEJOBS):
4364 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4365
4285ac5a
DN
4366 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4367 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4368 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4369 detects -znocombreloc and passes it to the linker
4370 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4371
2807228d
GM
43722010-04-21 Glenn Morris <rgm@gnu.org>
4373
4374 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4375
574c05e2
KK
43762010-04-21 Karel Klíč <kklic@redhat.com>
4377
4378 * Makefile.in (LIBSELINUX_LIBS): New.
4379 (LIBES): Add $LIBSELINUX_LIBS.
4380 * eval.c, lisp.h (call7): New function.
4381 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4382 (Ffile_selinux_context, Fset_file_selinux_context):
4383 New functions.
4384 (Fcopy_file): New parameter preserve-selinux-context.
4385 (Frename_file): Preserve selinux context when renaming by copy-file.
4386
91eac4bb 43872010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 4388 Eli Zaretskii <eliz@gnu.org>
91eac4bb 4389
50426a04
JB
4390 Don't depend on cm.c or termcap.c on Windows, use stubs.
4391 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4392 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4393 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4394 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4395 (sys_tputs, sys_tgetstr): New stubs.
4396 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4397 (tputs, tgetstr): New; define to sys_*.
91eac4bb 4398
938efb77
JB
43992010-04-20 Juanma Barranquero <lekktu@gmail.com>
4400
4401 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4402
b4bf28b7
SM
44032010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4404
8b1e1112
SM
4405 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4406 Just signal a warning rather than an error when inside a let.
4407 (Fmake_variable_frame_local): Add the same test.
4408
933ac235
SM
4409 * font.c (syms_of_font): Make the style table vars read-only.
4410
b4bf28b7
SM
4411 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4412 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4413
4414 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4415
93d68d0c
EZ
44162010-04-20 Eli Zaretskii <eliz@gnu.org>
4417
4418 Fix R2L paragraph display on TTY.
4419
4420 * xdisp.c (unproduce_glyphs): New function.
4421 (display_line): Use it when produced glyphs are discarded from R2L
4422 glyph rows.
4423 (append_composite_glyph): In R2L rows, prepend the glyph rather
4424 than appending it.
4425
4426 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4427 rather than append it. Set up the resolved_level and bidi_type
4428 attributes of the appended glyph.
283ccc18
EZ
4429 (produce_special_glyphs): Mirror the backslash continuation
4430 character in R2L lines.
93d68d0c 4431
283ccc18 4432 Implement display of R2L paragraphs in GUI sessions.
26cdf528 4433
283ccc18
EZ
4434 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4435 append_stretch_glyph.
4436 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4437 off-by-one error in computing x at end of text in the row.
4438 (append_stretch_glyph): In reversed row, prepend the glyph rather
4439 than append it. Set resolved_level and bidi_type of the glyph.
4440 (extend_face_to_end_of_line): If the row is reversed, prepend a
4441 stretch glyph whose width is such that the rightmost glyph will be
4442 drawn at the right margin of the window. Fix off-by-one error on
4443 TTY frames in testing whether a line needs face extension. Fix
4444 face extension at ZV. If this is the last glyph row, use
4445 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4446 region face.
4447 (set_cursor_from_row, display_line): Use
26cdf528
EZ
4448 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4449 row->continuation_lines_width.
283ccc18
EZ
4450 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4451 are at ZV. Fixes a crash when reseated to ZV by
4452 try_window_reusing_current_matrix.
45903529
EZ
4453 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4454 which happens with R2L glyph rows. Fixes a crash when inserting a
4455 character at end of an R2L line.
283ccc18
EZ
4456 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4457 treat them as having zero-width characters. Improve comments.
4458 Don't reverse pos_before and pos_after for reversed glyph rows.
4459 Set cursor.x to negative value when the cursor might be on the
4460 left fringe.
4461 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4462 left fringe, not the right one.
f951a506
EZ
4463 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4464 (erase_phys_cursor): For reversed cursor_row, support cursor on
4465 the left fringe.
4466
283ccc18
EZ
4467 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4468 of continuation indicators on the fringes.
4469 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4470 left fringe.
4471
f951a506
EZ
4472 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4473 draw cursor on the left fringe.
4474
4475 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4476 cursor on the left fringe.
4477
f951a506
EZ
4478 * dispnew.c (update_text_area): Handle reversed desired rows when
4479 the cursor is on the left fringe.
4480 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4481 below, not by 0, for when the cursor is on the left fringe.
4482
3bb49aaf
JD
44832010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4484
4485 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4486 widget is a scrollbar.
4487
c0be27fd
KH
44882010-04-20 Kenichi Handa <handa@m17n.org>
4489
4490 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4491 only when the arg CHARSET_LIST is nil.
4492
ce5b453a
SM
44932010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4494
4495 Make variable forwarding explicit rather the using special values.
4496 Basically, this makes the structure of buffer-local values and object
4497 forwarding explicit in the type of Lisp_Symbols rather than use
4498 special Lisp_Objects for that. This tends to lead to slightly more
4499 verbose code, but is more C-like, simpler, and makes it easier to make
4500 sure we handled all cases, among other things by letting the compiler
4501 help us check it.
4502 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4503 Removing forwarding objects.
4504 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4505 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4506 explicit rather than hiding them inside Lisp_Object "values".
4507 (XFWDTYPE): New macro.
4508 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4509 (XBUFFER_LOCAL_VALUE): Remove.
4510 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4511 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4512 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4513 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4514 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4515 Remove the Lisp_Misc_* header.
4516 (struct Lisp_Buffer_Local_Value): Redefine.
4517 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4518 (struct Lisp_Misc_Any): Add filler to get the right size.
4519 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4520 Lisp_Intfwd.
4521 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4522 (DEFVAR_KBOARD): Allocate a forwarding object.
4523 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4524 (let_shadows_global_binding_p): New function.
4525 (union Lisp_Val_Fwd): New type.
4526 (make_blv): New function.
4527 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4528 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4529 (swap_in_symval_forwarding, find_symbol_value, Fset)
4530 (let_shadows_buffer_binding_p, set_internal, default_value)
4531 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4532 (Fkill_local_variable, Fmake_variable_frame_local)
4533 (Flocal_variable_p, Flocal_variable_if_set_p)
4534 (Fvariable_binding_locus):
4535 * xdisp.c (select_frame_for_redisplay):
4536 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4537 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4538 * frame.c (store_frame_param):
4539 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4540 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4541 value structure.
4542 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4543 (clone_per_buffer_values): Only adjust markers into the current buffer.
4544 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4545 (Fbuffer_local_value, set_buffer_internal_1)
4546 (swap_out_buffer_local_variables):
4547 Adapt to the new symbol value structure.
4548 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4549 (defvar_per_buffer): Take a new arg for the fwd object.
4550 (buffer_lisp_local_variables): Return a proper alist (different fix
4551 for bug#4138).
4552 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4553 (Fgarbage_collect): Don't handle buffer_defaults specially.
4554 (mark_object): Handle new symbol value structure rather than the old
4555 special Lisp_Misc_* objects.
4556 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4557 * term.c (set_tty_color_mode):
4558 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4559 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4560 a buffer_local_flags.
4561 * print.c (print_object): Get rid of impossible forwarding objects.
4562
fd3998ff
EZ
45632010-04-19 Eli Zaretskii <eliz@gnu.org>
4564
4565 * bidi.c (bidi_get_type, bidi_get_category)
4566 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
4567 (bidi_type_of_next_char, bidi_level_of_next_char):
4568 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 4569
e42cd1a7
JB
45702010-04-19 Juanma Barranquero <lekktu@gmail.com>
4571
4572 * dired.c (Ffile_attributes): Fix typo in docstring.
4573
6e104790 45742010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
4575
4576 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4577 NSInteger (Bug#5811).
4578
6e104790 45792010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
4580
4581 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4582 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4583
6e104790 45842010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
4585
4586 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4587
6e104790
SM
45882010-04-19 Chong Yidong <cyd@stupidchicken.com>
4589
4590 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4591 terminal frames (Bug#5837).
4592
37dcfea0
EZ
45932010-04-19 Eli Zaretskii <eliz@gnu.org>
4594
d1da276f
EZ
4595 * .gdbinit (xsubchartable): New command.
4596
37dcfea0
EZ
45972010-04-19 Eli Zaretskii <eliz@gnu.org>
4598
4599 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 4600 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
4601 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4602 and
4603 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4604
e9515805
SM
46052010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4606
4607 * alloc.c (Fpurecopy): Hash-cons if requested.
4608 (syms_of_alloc): Update purify-flag docstring.
4609
22aa44a8
JD
46102010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4611
4612 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4613 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4614
ebb5722e
EZ
46152010-04-17 Eli Zaretskii <eliz@gnu.org>
4616
4617 Fix a crash when an NSM character is inserted at BEGV.
4618
4619 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4620 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4621 NEUTRAL_B or UNKNOWN_BT.
4622
0f4442ef
EZ
46232010-04-16 Eli Zaretskii <eliz@gnu.org>
4624
4625 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4626 other rows with cursor unless they are different from this row and
4627 this row is part of a continued line. (Bug#5943)
4628
7d4e45f8
DN
46292010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4630
4631 * s/freebsd.h: Restore osreldate.h include.
4632 Suggested by Naohiro Aota.
4633
5ba5ec85
J
46342010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4635
4636 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4637
20af301d
CY
46382010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4639
4640 * s/cygwin.h: Avoid linking against static libgcc.
4641
a4b000fb
JL
46422010-04-15 Juri Linkov <juri@jurta.org>
4643
4644 * window.c: Add Qscroll_command.
4645 Remove Vscroll_preserve_screen_position_commands.
4646 (window_scroll_pixel_based, window_scroll_line_based): Check the
4647 `scroll-command' property on the last command instead of searching
4648 the last command in Vscroll_preserve_screen_position_commands.
4649 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4650 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4651 (scroll-preserve-screen-position): Doc fix.
4652 (Vscroll_preserve_screen_position_commands): Remove variable.
4653
bc319ba4
DN
46542010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4655
6bb24457
DN
4656 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4657
19d4c244
DN
46582010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4659
4660 Reduce cpp use in Makefile.in.
4661 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4662 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4663 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4664 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4665 (CRT0_COMPILE): Remove, inline it in the only user.
4666
32129746
JL
46672010-04-14 Juri Linkov <juri@jurta.org>
4668
4669 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4670 `scroll-up-command' and `M-v' from `scroll-down' to
4671 `scroll-down-command'.
4672
9013a7f8
JL
46732010-04-14 Juri Linkov <juri@jurta.org>
4674
4675 * window.c (Vscroll_preserve_screen_position_commands): New variable
4676 with the default value as the list of Qscroll_down and Qscroll_up.
4677 (window_scroll_pixel_based, window_scroll_line_based): Search the
4678 last command in the list Vscroll_preserve_screen_position_commands
4679 instead of comparing with Qscroll_up and Qscroll_down.
4680
4bef8d26
JD
46812010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4682
92848133
JD
4683 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4684 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4685 does that.
4686
4bef8d26
JD
4687 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4688 to zero.
4689
58b963f7
SM
46902010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4691
84164a0d
SM
4692 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4693
2b0a91e7
SM
4694 Try to solve the problem of spurious EOF chars in long lines of text
4695 sent to interactive subprocesses.
4696 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4697 (system_process_attributes): Remove unused var `ttotal'.
4698 * process.c (send_process): Don't bother breaking long line with EOF
4699 chars when talking to ttys any more.
4700 (wait_reading_process_output): Output a warning when called in such
4701 a way that it could block without being interruptible.
4702
58b963f7
SM
4703 Try to detect file modification within the same second.
4704 * buffer.h (struct buffer): New field modtime_size.
4705 * buffer.c (reset_buffer): Initialize it.
4706 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4707 (Fverify_visited_file_modtime): Check it.
4708 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4709 (Fset_visited_file_modtime): Set (or clear) it.
4710
01f5787b
SM
47112010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4712
4713 * process.c (status_notify): Remove unused var `ro'.
4714
83725342
JD
47152010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4716
4717 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4718 more than one visual (Bug#5938).
4719
b9465836
DN
47202010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4721
50426a04
JB
4722 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4723 Undefine.
b9465836 4724
8d9c8ece
DN
47252010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4726
b1f52161
DN
4727 Remove C_SWITCH_SYSTEM_TEMACS.
4728 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4729 (malloc, realloc, free): Use emacs, not temacs for conditional
4730 definition.
4731
4732 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4733 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4734
8d9c8ece
DN
4735 Use autoconf, not cpp for some variables.
4736 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4737 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4738 (ALL_CFLAGS): Use them as make variables.
4739 (really-lwlib, really-oldXMenu): Do not pass them.
4740
1ecb2d3f
JD
47412010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4742
4743 * xmenu.c (apply_systemfont_to_dialog): New.
4744 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4745
3a4fa2f2
SM
47462010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4747
97e53006
SM
4748 * process.c (exec_sentinel): Preserve current-buffer.
4749
3a4fa2f2
SM
4750 * process.c (read_process_output): Move the save-current-buffer to
4751 apply to both the filter and the non-filter branches.
4752
88df7221
DN
47532010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4754
4755 * s/msdos.h (UNEXEC): New definition.
4756
5634ff85
YM
47572010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4758
6eff5c3d
YM
4759 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4760 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4761
4762 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4763 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4764 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4765 TRY_WINDOW_CHECK_MARGINS.
4766
4767 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
4768 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4769 width only when it is for padding.
5634ff85 4770
b13aef54
J
47712010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4772
4773 * xfns.c (Fx_show_tip): Call try_window in a loop until
4774 fonts_changed_p is zero (Bug#2423).
4775
21d28484
EZ
47762010-04-08 Eli Zaretskii <eliz@gnu.org>
4777
4778 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4779 the end of TEXT_AREA. (Bug#5856)
4780
0269ef77
JD
47812010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4782
4783 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4784 HAVE_GCONF.
4785
5930fe97
EZ
47862010-04-08 Eli Zaretskii <eliz@gnu.org>
4787
4788 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4789 prev.orig_type, for resolving type of NSM. (Bug#5858)
4790
99852628
JD
47912010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4792
4793 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4794 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4795 in current_font.
4796 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
4797 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4798 New functions.
4799 (syms_of_xsettings): Initialize current_font.
4800 defsubr Sfont_get_system_normal_font.
99852628 4801
686b968e
JB
4802 * xsettings.h (Ffont_get_system_normal_font)
4803 (xsettings_get_system_normal_font): Declare.
99852628
JD
4804
4805 * xfns.c (extern xlwmenu_default_font): Remove.
4806 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4807 to xlwmenu.c.
4808
4809 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4810 menu items in UTF-8.
4811
4812 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4813 (apply_systemfont_to_menu): New function.
4814 (set_frame_menubar, create_and_show_popup_menu): Call
4815 apply_systemfont_to_menu.
4816
7fc874c4
J
48172010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4818
4819 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4820 FRAME_LINE_TO_PIXEL_Y.
4821
4822 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4823 pixelwidth/height.
4824
863bf481
DN
48252010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4826
5e5a3b92
DN
4827 Simplify code for HP machines.
4828 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4829 for GNU_LINUX, not needed.
4830 (UNEXEC, NEED_BSDTTY): Move definitions...
4831 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4832
863bf481
DN
4833 * m/iris4d.h (UNEXEC): Move definition ...
4834 * s/irix6-5.h (UNEXEC): ... here.
4835
3e6bec3b
JD
48362010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4837
4838 * xfns.c (set_machine_and_pid_properties): New function.
4839 (Fx_create_frame): Call set_machine_and_pid_properties.
4840
2912322b
SM
48412010-04-03 Eli Zaretskii <eliz@gnu.org>
4842
1502b819
EZ
4843 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4844 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4845 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4846
2912322b
SM
4847 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4848 in this function. (Bug#5703)
4849
48502010-04-03 Chong Yidong <cyd@stupidchicken.com>
4851
4852 * nsterm.h: Fix last change.
4853
c435b432
DN
48542010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4855
a568f507
DN
4856 * m/intel386.h (NO_REMAP): Move definition ...
4857 * s/msdos.h (NO_REMAP): ... here.
4858
4cd9f6c2
DN
4859 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4860
c435b432
DN
4861 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4862 used on those platforms.
4863
42a2c622
DN
48642010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4865
4866 Remove extern errno declarations.
4867 * xterm.c:
4868 * xrdb.c:
4869 * w32term.c:
4870 * unexec.c:
4871 * unexaix.c:
4872 * sysdep.c:
4873 * process.c:
4874 * lread.c:
4875 * keyboard.c:
4876 * floatfns.c:
4877 * filelock.c:
4878 * fileio.c:
4879 * emacs.c (main):
4880 * ecrt0.c:
4881 * dispnew.c:
4882 * callproc.c:
4883 * buffer.c: Remove errno extern declarations.
4884 * s/netbsd.h (NEED_ERRNO): Remove.
4885
8224f93d
DN
48862010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4887
4888 Remove all uses of LIBX11_SYSTEM.
4889 * Makefile.in (LIBX11_SYSTEM): Remove.
4890 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4891 instead.
4892
814062c7
EZ
48932010-04-01 Eli Zaretskii <eliz@gnu.org>
4894
ed68db4d
EZ
4895 Remove support for DJGPP v1.x (bug#5813).
4896
4897 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
4898 * s/msdos.h:
4899 * unexec.c (make_hdr, copy_text_and_data):
4900 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4901 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4902 (IT_set_terminal_modes, __write, _rename, gethostname)
4903 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4904 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4905 the value of __DJGPP__.
ed68db4d
EZ
4906 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4907 compatibility code.
8224f93d
DN
4908 * lread.c:
4909 * gmalloc.c (memalign):
4910 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4911 * emacs.c (main):
4912 * dosfns.c (init_dosfns):
ed68db4d
EZ
4913 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4914
52f4d8d5
EZ
49152010-04-01 Eli Zaretskii <eliz@gnu.org>
4916
814062c7
EZ
4917 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4918 string with `cursor' property comes from an `after-string'
4919 overlay. (Bug#5816)
4920
0dc2e11d
GM
49212010-04-01 Glenn Morris <rgm@gnu.org>
4922
4923 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4924 Define as Makefile variables.
4925 (LIBX): Use above variables rather than directly using autoconf.
4926
1d29df59
DN
49272010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4928
4929 Clean up BSD_SYSTEM use.
4930 * xterm.c:
4931 * process.c:
4932 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4933 for including <sys/ioctl.h>.
4934 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4935 code is only used for MSDOS.
4936
1546c559
JL
49372010-03-31 Juri Linkov <juri@jurta.org>
4938
4939 * image.c: Add `Qextension_data'.
4940 (syms_of_image): Initialize and staticpro `Qextension_data'.
4941 (Fimage_metadata): Rename from `Fimage_extension_data'.
4942 (gif_load): Put GIF extension data to the property
4943 `Qextension_data'.
4944
6521c534
CY
49452010-03-31 Chong Yidong <cyd@stupidchicken.com>
4946
4947 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4948 * nsterm.h: Fix prototype.
4949
52c30783
EZ
49502010-03-31 Eli Zaretskii <eliz@gnu.org>
4951
4952 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4953 trailing whitespace in right-to-left rows.
4954
855a0da7
SM
49552010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4956
4957 Get rid of the direct_output optimizations.
4958 * keyboard.c (nonundocount): Remove extern declaration.
4959 (command_loop_1): Remove brittle optimisation for cheap and
4960 common operations.
4961 * xdisp.c (redisplay_internal): Don't bother checking
4962 redisplay_performed_directly_p any more.
4963 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4964 any more.
4965 * dispnew.c (redisplay_performed_directly_p)
4966 (direct_output_for_insert, direct_output_forward_char):
4967 * dispextern.h (redisplay_performed_directly_p)
4968 (direct_output_for_insert, direct_output_forward_char): Remove.
4969 * cmds.c (nonundocount): Make it static.
4970
85738751 49712010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
4972
4973 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4974
85738751 49752010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
4976
4977 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4978 invisible (Bug#5766).
4979
85738751 49802010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 4981
855a0da7
SM
4982 * xdisp.c (x_consider_frame_title, update_window_cursor):
4983 Remove HAVE_NS conditionals.
194d44e7 4984 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
4985
4986 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4987 filename for the title.
4988 (ns_set_doc_edited): Do nothing if the selected window is a
4989 minibuffer window.
4990
4991 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4992 ns_set_doc_edited.
4993
4994 * nsterm.m: Remove unneeded prototype.
4995
85738751 49962010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
4997
4998 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4999 in the DOC file. (Bug#5336)
5000
85738751 50012010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
5002
5003 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5004
75d1428c
SM
50052010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5006
5007 * window.c (keys_of_window): Remove redundant/overridden bindings.
5008
82043cfb
EZ
50092010-03-30 Eli Zaretskii <eliz@gnu.org>
5010
5011 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5012 Restore original behavior when the iterator is not bidi_p.
5013
b5dd0ae7
DN
50142010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5015
5016 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5017
bd924a5d
EZ
50182010-03-30 Eli Zaretskii <eliz@gnu.org>
5019
5020 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5021 are outside the range of cached character positions.
5022
3580374b
JB
50232010-03-30 Juanma Barranquero <lekktu@gmail.com>
5024
5025 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5026
a7b02820
EZ
50272010-03-30 Eli Zaretskii <eliz@gnu.org>
5028
5029 Initial support for bidirectional editing.
5030
5031 * Makefile.in (obj): Include bidi.o.
5032 (bidi.o): New target.
5033
5034 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5035 ($(BLD)/bidi.$(O)): New target.
5036
5037 * bidi.c: New file.
5038
5039 * buffer.h (struct buffer): New members bidi_display_reordering
5040 and bidi_paragraph_direction.
5041
5042 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5043 and bidi_paragraph_direction.
5044 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5045 and bidi-paragraph-direction.
5046 (Fbuffer_swap_text): Swap the values of
5047 bidi_display_reordering and bidi_paragraph_direction.
5048
5049 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5050 (bidi_type_t, bidi_dir_t): New types.
5051 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5052 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5053 prev_stop, base_level_stop, and eol_pos.
5054 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5055 (IT_STACK_SIZE): Enlarge to 5.
5056 (struct glyph_row): New member reversed_p.
5057 <string_buffer_position>: Update prototype.
5058 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5059 glyph_row if bidi_it.paragraph_dir == R2L.
5060 (struct glyph): New members resolved_level and bidi_type.
5061
5062 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5063 processing or buffer's direction is right-to-left.
5064 (prepare_desired_row): Preserve the reversed_p flag.
5065 (row_equal_p): Compare the reversed_p attributes as well.
5066
5067 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5068 bidi_init_it and set it->paragraph_embedding from the current
5069 buffer's value of bidi_paragraph_direction.
5070 (reseat_1): Initialize bidi_it.first_elt.
5071 (set_iterator_to_next, next_element_from_buffer): Use the value of
5072 paragraph_embedding to determine the paragraph direction.
5073 (set_iterator_to_next): Under bidi reordering, call
5074 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5075 new_paragraph flag is set in the bidi iterator.
5076 (next_element_from_buffer): If bidi_it.first_elt is set,
5077 initialize paragraph direction and find the first character to
5078 display in the visual order. If reseated to a middle of a line,
5079 prime the bidi iterator starting at the line's beginning. Handle
5080 the situation where we overstepped stop_charpos due to
5081 non-linearity of the bidi iteration. Likewise for when we back up
5082 beyond the previous stop_charpos. When moving across stop_charpos,
5083 record it in prev_stop.
5084 (display_line): Set row->end and it->start for the next row to the
5085 next character in logical order. Always extend reversed_p rows to
5086 the end of line, even if they end at ZV. Copy the reversed_p flag
5087 to the next glyph row. Keep calling set_cursor_from_row for
5088 bidi-reordered rows even if we already have a possible candidate
5089 for cursor position. Set row_end after all the row's glyphs have
5090 been produced, by looping over the glyphs. Record the position
5091 after EOL in it->eol_pos, and use it to set end_pos of the last
5092 row produced for a continued line.
5093 <Qright_to_left, Qleft_to_right>: New variables.
5094 (syms_of_xdisp): Initialize and staticpro them.
5095 (string_buffer_position_lim): New function.
5096 (string_buffer_position): Most of code moved to
5097 string_buffer_position_lim. Last argument and return value are
5098 now EMACS_INT; all callers changed.
5099 (set_cursor_from_row): Rewritten to support bidirectional text and
5100 reversed glyph rows.
5101 (text_outside_line_unchanged_p, try_window_id): Disable
5102 optimizations if we are reordering bidirectional text and the
5103 paragraph direction can be affected by the change.
5104 (append_glyph, append_composite_glyph)
5105 (produce_image_glyph, append_stretch_glyph): Set the
5106 resolved_level and bidi_type members of each glyph.
5107 (append_glyph): If the glyph row is reversed, prepend the glyph
5108 rather than appending it.
5109 (handle_stop_backwards): New function.
5110 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5111 (reseat): call handle_stop_backwards to recompute prev_stop and
5112 base_level_stop for the new position.
5113 (handle_invisible_prop): Under bidi iteration, skip invisible text
5114 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5115 paragraph direction. Update IT->prev_stop after skipping
5116 invisible text.
5117 (move_it_in_display_line_to): New variables prev_method
5118 and prev_pos. Compare for strict equality in
5119 BUFFER_POS_REACHED_P.
5120 (try_cursor_movement): Examine all the candidate rows that occlude
5121 point, to return the best match. If rows are bidi-reordered
5122 and point moved backwards, back up to the row that is not a
5123 continuation line, and start looking for a suitable row from
5124 there.
5125
5126 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5127 rather than appending, if the glyph_row's reversed_p flag is set.
5128 Set the resolved_level and bidi_type members of each glyph.
5129
5130 * .gdbinit (pbiditype): New command.
5131 (pgx): Use it to display bidi level and type of the glyph.
5132 (pitx): Display some bidi information about the iterator.
5133 (prowlims, pmtxrows): New commands.
5134
32a8894e
DN
51352010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5136
5137 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5138 * s/usg5-4.h (LIBS_DEBUG):
5139 * s/irix6-5.h (C_DEBUG_SWITCH):
5140 * s/gnu-linux.h (LIBS_DEBUG):
5141 * s/darwin.h (LIBS_DEBUG):
5142 * s/bsd-common.h (LIBS_DEBUG):
5143 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5144 * m/iris4d.h (LIBS_DEBUG):
5145 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5146
5147 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5148 (LIBS_DEBUG): Remove definition.
5149
649dbf36
CY
51502010-03-27 Chong Yidong <cyd@stupidchicken.com>
5151
5152 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5153 Windows.
5154
cad4261f
YM
51552010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5156
5157 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5158 `connect' (Bug#5723).
5159
cd591dbc
HE
51602010-03-25 Helmut Eller <eller.helmut@gmail.com>
5161
5162 * process.c (Fmake_network_process): Call `select' for interrupted
5163 `connect' rather than creating new socket (Bug#5173).
5164
e867cb5d 51652010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
5166
5167 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5168
5169 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5170
5171 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5172
e867cb5d 51732010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
5174
5175 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5176 XLoadQueryFont.
5177
e867cb5d 51782010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
5179
5180 * coding.c (decode_coding_ccl): Fix previous change for the
5181 multibyte case.
fb608df3
KH
5182 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5183 case that the output buffer is fullfilled.
5184 (encode_coding): Setup ccl program here.
fbdc1721 5185
5845f0ed
DN
51862010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5187
814fb708
DN
5188 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5189
5845f0ed
DN
5190 Simplify LIBS_MACHINE definitions.
5191 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5192 * m/iris4d.h (LIBS_MACHINE): Likewise.
5193 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5194 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 5195 * s/netbsd.h: Remove commented out code.
5845f0ed 5196
b7064064
DN
51972010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5198
df7734b2
DN
5199 Remove dead code dealing with POSIX_SIGNALS.
5200 * atimer.c (set_alarm): Remove dead code, all USG systems define
5201 POSIX_SIGNALS.
5202 * data.c (arith_error): Likewise.
5203 * keyboard.c (input_available_signal, handle_user_signal)
5204 (interrupt_signal): Likewise.
5205 * process.c (sigchld_handler): Likewise.
5206 (create_process): Remove if 0 code. Remove HPUX conditional when
5207 !defined (POSIX_SIGNALS), it cannot be true.
5208 * syssignal.h: Remove USG5_4 and USG conditionals when
5209 !POSIX_SIGNALS, they cannot be true.
5210
b7064064
DN
5211 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5212 NO_SOCK_SIGIO, not used anymore.
5213
55da5ee3
DN
52142010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5215
0be96e3a
DN
5216 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5217 support vax on BSDs.
5218
55da5ee3
DN
5219 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5220 * s/aix4-2.h (ORDINARY_LINK): ... here.
5221
c0282183
AS
52222010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5223
82c3d67a
AS
5224 * Makefile.in (abs_builddir): Define.
5225 (bootstrap_exe): Use it.
5226 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 5227
3613edce
SM
52282010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5229
5230 * Makefile.in (bootstrap_exe): Use an absolute name.
5231
7f110ddc
DN
52322010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5233
22e87574
DN
5234 Remove support for old GNU/Linux using libc version 5.
5235 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5236 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5237
05a670e6
DN
5238 Consolidate redundant definitions in s/bsd-common.h.
5239 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5240 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5241 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5242 doing it in all files that include this one.
5243 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5244 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5245 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5246 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5247 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5248 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5249 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5250 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5251 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5252
2968f561
DN
5253 Consolidate redundant definitions.
5254 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5255 it's undefined in all files that include this one.
5256 (POSIX_SIGNALS): Define here instead of doing it in all files that
5257 include this one.
5258 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5259 (POSIX_SIGNALS): Do not define.
5260 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5261 (POSIX_SIGNALS): Do not define.
5262 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5263 (POSIX_SIGNALS): Do not define.
5264
15d25dc0
DN
5265 Remove support for old UNIX System V systems.
5266 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5267 * s/usg-5-4-2.h: Remove.
5268
07e339e4
DN
5269 Remove support for Solaris on PPC and for old versions.
5270 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5271 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5272 that cancel each other.
5273 * s/sol2-3.h:
5274 * s/sol2-4.h:
5275 * s/sol2-5.h: Remove.
5276 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5277 (NO_REMAP): Remove, unused.
5278 (UNEXEC): Move definition ...
5279 * s/aix4-2.h (UNEXEC): ... here.
5280
7f110ddc
DN
5281 * s/openbsd.h: Remove support for non-ELF and for systems that do
5282 not support shared libraries.
5283 * s/netbsd.h:
5284 * s/freebsd.h: Likewise.
5285
605f35cd
DN
52862010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5287
5288 Remove non-working support for lynxos 3.0.
5289 * s/lynxos.h: Remove file.
5290
5291 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5292 COFF_BSD_SYMBOLS, nothing defines it anymore.
5293
aed71cf4
DN
52942010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5295
5296 Remove obsolete uses of HAVE_SHM.
5297 * emacs.c (standard_args):
5298 (Fdump_emacs):
5299 (syms_of_emacs): Remove code depending on HAVE_SHM.
5300
5301 * alloc.c: Remove HAVE_SHM dependent definition.
5302
5303 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5304
aded53ff
GM
53052010-03-18 Glenn Morris <rgm@gnu.org>
5306
17284745
GM
5307 * emacs.c (USAGE4): Hard-code bug address.
5308 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5309 (bug_reporting_address): Remove.
5310 (main): Don't call bug_reporting_address.
5311
aded53ff
GM
5312 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5313 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5314
303500aa
CY
53152010-03-15 Chong Yidong <cyd@stupidchicken.com>
5316
5317 * xfns.c (Fx_create_frame):
5318 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5319 on left.
5320
cef3058f
CY
53212010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5322
5323 * editfns.c (Fformat): Account for string precision when computing
5324 field width (Bug#5710).
5325
a647d59d
CY
53262010-03-12 Chong Yidong <cyd@stupidchicken.com>
5327
4fa42018
CY
5328 * xfns.c (Fx_create_frame): Set default to Qright.
5329
a647d59d
CY
5330 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5331 all window systems.
5332
6da23aaa
EZ
53332010-03-12 Eli Zaretskii <eliz@gnu.org>
5334
a96f6398 5335 These changes remove termcap.c from the build on Posix platforms.
83d02def 5336 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
5337 (MSDOS_OBJ): ...to here.
5338 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5339 now identical to when LIBS_TERMCAP is defined.
5340
5341 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5342
5343 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5344
a96f6398 5345 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 5346
288f9fc0
CY
53472010-03-10 Chong Yidong <cyd@stupidchicken.com>
5348
5349 * Branch for 23.2.
5350
d48cd3f4
SM
53512010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5352
5353 Cleanup setup of gl_state in various parts of the code.
5354 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5355 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5356 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5357 (skip_chars):
5358 * regex.c (regex_compile): Use it.
5359 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5360 it's now set in regex_compile when/if we need it.
5361
618db430
SM
53622010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5363
c0335e02
SM
5364 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5365 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5366 (QUIT): Use it to consolidate code and remove redundancy.
5367 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5368
254c06a8
SM
5369 * regex.c (regex_compile): Setup gl_state as well.
5370
618db430
SM
5371 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5372 (in_classes): Use CONSP before XCAR/XCDR.
5373
233f0c9f
CY
53742010-03-03 Chong Yidong <cyd@stupidchicken.com>
5375
5376 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5377 definitions, so that keyboard macros are correctly handled
5378 (Bug#5481).
5379
75f80e63
EZ
53802010-03-02 Eli Zaretskii <eliz@gnu.org>
5381
5382 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5383 text that could be relocated inside the call to emacs_mule_char.
5384 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5385 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5386
dcfb9bc4
KH
53872010-03-02 Kenichi Handa <handa@m17n.org>
5388
fc9a17bc
KH
5389 * character.c (parse_str_as_multibyte): Fix handling of the
5390 multibyte form of raw-bytes.
5391 (str_as_multibyte): Likewise.
5392
dcfb9bc4
KH
5393 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5394 form of raw-bytes.
5395
412c01b6
CY
53962010-02-28 Chong Yidong <cyd@stupidchicken.com>
5397
5398 * charset.c (load_charset_map_from_file)
5399 (load_charset_map_from_vector): Zero out allocated
5400 charset_map_entries before using them.
5401
df7e1ea0
AS
54022010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5403
5404 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5405
fe69a722
CY
54062010-02-27 Chong Yidong <cyd@stupidchicken.com>
5407
4ed28cf4
CY
5408 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5409 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 5410
7379cfce
KH
54112010-02-26 Kenichi Handa <handa@m17n.org>
5412
f88cc4d6
KH
5413 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5414
7379cfce
KH
5415 * xdisp.c (reseat_to_string): Fix previous change.
5416
cf2fdcfb
CY
54172010-02-26 David Reitter <david.reitter@gmail.com>
5418
5419 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5420 Lisp_Object (Bug#4736).
5421
cc6c7c75
KH
54222010-02-25 Kenichi Handa <handa@m17n.org>
5423
5424 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5425
32e737d7
JD
54262010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5427
5428 * xterm.c (XTflash): Move declarations before statements.
5429
5430 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5431 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5432 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5433 (xg_create_tool_bar): Remove unused variables.
5434 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 5435 (xg_create_frame_widgets): Remove variable grav.
32e737d7 5436
676cae9f
CY
54372010-02-21 Chong Yidong <cyd@stupidchicken.com>
5438
5439 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5440
886cc2b8
SM
54412010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5442
5443 * term.c (fatal): Add a final \n if needed (bug#5596).
5444
ddb2d8e2
CY
54452010-02-18 Chong Yidong <cyd@stupidchicken.com>
5446
5447 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5448
2a4f8d3d
GM
54492010-02-18 Glenn Morris <rgm@gnu.org>
5450
5451 * callint.c (Finteractive): Doc fix.
5452
ebaf11b6
KH
54532010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5454
886cc2b8
SM
5455 * coding.c (record_conversion_result):
5456 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
5457 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5458 memory allocation error.
5459
d0396581
KH
54602010-02-17 Kenichi Handa <handa@m17n.org>
5461
886cc2b8
SM
5462 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5463 Fix for the case that the output buffer is fullfilled.
d0396581
KH
5464 (decode_coding): Setup ccl program here. Keep looping when the
5465 decoder stopped because the output buffer is
5466 fullfilled (bug#5534).
5467
5468 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5469
98599f74
JD
54702010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5471
471e4f04 5472 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 5473 bug #5571.
886cc2b8 5474 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 5475 overdrawn.
98599f74 5476
182659ae
JD
54772010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5478
5479 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5480 doing_interact here.
5481 (ice_connection_closed): New function.
5482 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5483 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5484 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5485 returns I/O error.
5486 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5487 bug #5512.
5488
9be32c4e 54892010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
5490
5491 * nsfont.m (nsfont_open): The system's value for the font descent
5492 is negative, so round it down to avoid clipping.
5493
a2f3eb19
CY
54942010-02-06 Chong Yidong <cyd@stupidchicken.com>
5495
5496 * charset.c (load_charset_map_from_file)
5497 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 5498 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 5499
3088147c
CY
55002010-02-05 Chong Yidong <cyd@stupidchicken.com>
5501
5502 * charset.c (load_charset_map_from_file): Allocate large
5503 charset_map_entries structure on the heap rather than the stack.
5504 (Bug#5526).
5505
b57d9029
KH
55062010-01-31 Kenichi Handa <handa@m17n.org>
5507
5508 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 5509 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 5510
c67d885b
CY
55112010-01-31 Chong Yidong <cyd@stupidchicken.com>
5512
5513 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5514 <deactivated@gmail.com> (Bug#3605).
5515
8fab2362
CY
55162010-01-31 David De La Harpe Golden <david@harpegolden.net>
5517
5518 * fileio.c (Frename_file): Correctly rename symlinks to
5519 directories (Bug#5496).
5520
cb2a62f2
CY
55212010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5522
5523 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5524
944c7a26
AS
55252010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5526
5527 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5528
c024ac08
CY
55292010-01-29 Chong Yidong <cyd@stupidchicken.com>
5530
5531 * frame.c (DEFAULT_ROWS): Change default to 35.
5532
5533 * xfns.c (x_default_font_parameter): Change default XFT font to
5534 monospace-10 (Bug#3643).
5535
af93af83
EZ
55362010-01-29 Eli Zaretskii <eliz@gnu.org>
5537
5538 * w32inevt.c (key_event): Remove unnecessary comparison of
5539 event->uChar.AsciiChar with 128.
5540
ca0eb708
CY
55412010-01-28 Chong Yidong <cyd@stupidchicken.com>
5542
b242dbfc
CY
5543 * fileio.c (Frename_file): Fix last change (Bug#5487).
5544
ca0eb708
CY
5545 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5546
5547 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5548
45d45af5
JD
55492010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5550
5551 * xfns.c (Fx_create_frame): Remove window size matching code from
5552 2010-01-15.
a73f9c9d 5553 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 5554
7e233730
JR
55552010-01-27 Jason Rumney <jasonr@gnu.org>
5556
5557 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 5558 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 5559
86e893e3
KH
55602010-01-27 Kenichi Handa <handa@m17n.org>
5561
5562 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 5563 pattern string (Bug#4209).
86e893e3 5564
8719abec
CY
55652010-01-27 David De La Harpe Golden <david@harpegolden.net>
5566
5567 * fileio.c (Frename_file): Call copy-directory and
5568 delete-directory for directories, in order to handle cross-device
5569 renaming (Bug#3353).
5570
844794c8
JD
55712010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5572
aa3e13b5 5573 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 5574 sizes 24 and 10. Bug #3643.
844794c8 5575
bd4b5750
SM
55762010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5577
8dc1adf6 5578 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
5579 * keymap.c (shadow_lookup): Add `remap' arg.
5580 (describe_map, describe_vector): Update calls to shadow_lookup.
5581 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5582 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
5583 perform remapping during shadow_lookup check of remapped_sequences.
5584
285d07e2
CY
55852010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5586
5587 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5588 png_check_sig, which has been removed in libpng 1.4.
5589
c6d09b8d
CY
55902010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5591
5592 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5593 lacks this header file).
5594
3d782998
YM
55952010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5596
5597 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5598 as in Emacs 22.
5599
2aff7c53
YM
56002010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5601
5602 * lisp.h (make_pure_string): String pointer arg now points to const.
5603
5604 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5605 args now point to const.
5606
74327f7a
EZ
56072010-01-22 Eli Zaretskii <eliz@gnu.org>
5608
5609 * lread.c (Fload): Don't treat files without .elc extension as
5610 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5611 them. (bug#5303)
5612
4d1e6632
KH
56132010-01-20 Kenichi Handa <handa@m17n.org>
5614
5615 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5616 treat the source as actual byte sequence.
5617
1fdede8f
AM
56182010-01-19 Alan Mackenzie <acm@muc.de>
5619
5620 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 5621 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
5622 `signal_after_change_p' to `coherent_change_p', and make the
5623 invocation of `modify_region' conditional on it.
5624
67477f30
JD
56252010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5626
5627 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5628 for debug purpose.
5629 (syms_of_xsettings): Declare xft-settings.
5630
244b023e
CY
56312010-01-18 Chong Yidong <cyd@stupidchicken.com>
5632
5633 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5634
617364fe
CY
56352010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5636
5637 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5638
4fe22cdf
CY
56392010-01-16 Chong Yidong <cyd@stupidchicken.com>
5640
5641 * emacs.c (standard_args): Adjust arg priorities to reflect how
5642 they are processed in startup.el.
5643
e118d2be
AS
56442010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5645
5646 * Makefile.in (lisp, shortlisp): Update.
5647
523ae620
SM
56482010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5649
5650 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5651 code, link the new kboard into all_kboard before running Lisp code,
5652 and protect the new terminal with GCPRO (Bug#5365).
5653 (x_term_init): Remove unused var `atom'.
5654 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5655
f0d13888
JD
56562010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5657
5658 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5659 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5660 to find out usable size of the desktop. Don't make frames larger than
ac146f82 5661 this. Bug #3643.
f0d13888 5662
cc320f07
KH
56632010-01-15 Kenichi Handa <handa@m17n.org>
5664
5665 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5666
7ffdf101
CY
56672010-01-15 Chong Yidong <cyd@stupidchicken.com>
5668
5669 * nsterm.m (Qnone): Define.
5670
5671 * nsfns.m (Qnone): Move definition to nsterm.m.
5672
d12bd917
KH
56732010-01-14 Kenichi Handa <handa@m17n.org>
5674
5675 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5676 systems.
5677
d9a7c140
KH
56782010-01-14 Kenichi Handa <handa@m17n.org>
5679
5680 Make auto-composition work on all buffers even if they are
5681 fundamental mode.
5682
5683 * composite.c (Vauto_composition_mode): New variable.
5684 (composition_compute_stop_pos): Check Vauto_composition_mode
5685 instead of Vauto_composition_function.
5686 (composition_adjust_point, Ffind_composition_internal): Likewise.
5687 (syms_of_composite): Declare Lisp variable
5688 "auto-composition-mode" here.
5689
63286bb2
CY
56902010-01-13 Chong Yidong <cyd@stupidchicken.com>
5691
5692 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5693 during call to vendor-specific-keysyms (Bug#5365).
5694
c2623ee7
YM
56952010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5696
5697 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5698 Call SIGNAL_THREAD_CHECK (Bug#5333).
5699
5700 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5701 Call SIGNAL_THREAD_CHECK.
5702
0b5397c2
SM
57032010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5704
5705 Try to fix bug#5314. This is probably not the final word, tho.
5706 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5707 recent-auto-save-p as a side-effect.
5708 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5709 * buffer.c (Fkill_buffer, reset_buffer):
5710 * editfns.c (Fsubst_char_in_region):
5711 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5712 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5713
dc954cb2
KH
57142010-01-13 Kenichi Handa <handa@m17n.org>
5715
5716 Display buffer name, etc. in mode line by composing correctly.
5717
5718 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5719 STRING is not nil.
0b5397c2 5720 (display_mode_element): Adjust for the change of
dc954cb2
KH
5721 decode_mode_spec and display_line.
5722 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5723 (display_string): Handle the case that STRING is non-null and
5724 LISP_STRING is not nil.
5725
0b5397c2
SM
5726 * xterm.c (x_draw_composite_glyph_string_foreground):
5727 Pay attention to s->face->overstrike.
dc954cb2
KH
5728
5729 * composite.c (composition_reseat_it): Don't check PT if STRING is
5730 non nil.
5731
4a00eaca
YM
57322010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5733
5734 * keyboard.c (read_char): Don't apply previous change when current
5735 buffer is unchanged by command execution.
5736
60abb287
JD
57372010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5738
5739 * keyboard.c (read_char): Return after executing from special map.
5740
893db5bc
GM
57412010-01-12 Glenn Morris <rgm@gnu.org>
5742
5743 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5744 bug-gnu-emacs rather than emacs-pretest-bug.
5745
4d03ece0
CY
57462010-01-11 Chong Yidong <cyd@stupidchicken.com>
5747
5748 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5749 initializing the Lisp variables that depend on them.
5750
1df47e38
YM
57512010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5752
5753 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5754 Clear areas that will not be updated after change of menu bar lines.
5755 Clear the menu bar window's current matrix when the window gets empty.
5756
2f1c6384
CY
57572010-01-09 Chong Yidong <cyd@stupidchicken.com>
5758
e398c61c
CY
5759 * intervals.h, textprop.c (extend_property_ranges): Return value
5760 and args changed. Discard properties that begin at or after the
5761 new end (Bug#5306).
5762
5763 * editfns.c (Fformat): Caller changed.
5764
e5a29a10
CY
5765 * nsterm.m (ns_set_default_prefs): Delete function.
5766 (syms_of_nsterm): Initialize ns_command_modifier,
5767 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5768 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5769
2f1c6384
CY
5770 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5771 position (Bug#4040).
5772
d427a9fa
EZ
57732010-01-09 Eli Zaretskii <eliz@gnu.org>
5774
5775 * editfns.c (Ffloat_time): Doc fix.
5776
21b9df2f
JD
57772010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5778
5779 * xfns.c (Fx_create_frame): Don't create frame larger than display
5780 by default bug#3643.
5781
4b00d3b1
YM
57822010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5783
5784 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5785 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5786 windows above internal border.
5787
5788 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5789 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5790 windows above internal border.
5791
5792 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5793 tool bar windows specially.
5794
5795 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5796
5797 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5798 specially.
5799 (XTflash): Take account of menu bar height.
5800
5801 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5802 specially.
5803
5075d853
JD
58042010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5805
ac146f82 5806 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
5807 also be true before we can return early (bug #5339).
5808
474217c8
CY
58092010-01-06 David Reitter <david.reitter@gmail.com>
5810
5811 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5812 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5813 (Bug#3233).
5814
c0e6d47d
JD
58152010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5816
d0cf45b7
JD
5817 * font.c (font_open_entity): Enable chache and call cached_font_ok
5818 for the driver if defined.
5819 (QCuser_spec): New symbol.
5820 (font_spec_from_name): Save name as user-spec.
5821 (font_load_for_lface): Keep user-spec instead of name.
5822 (font_open_by_name): Save name as user-spec.
5823 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 5824 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
5825
5826 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5827 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5828 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5829
5830 * font.h (struct font_driver): Add cached_font_ok.
5831
c0e6d47d
JD
5832 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5833
7c583cd8
JD
58342010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5835
5836 * xterm.c (x_new_font): Move code for setting rows/cols before
5837 resizing ...
ac146f82 5838 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
5839
5840 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
5841 (xg_frame_resized, xg_frame_set_char_size):
5842 Call xg_clear_under_internal_border.
7c583cd8 5843 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 5844
03f77f0a
CY
58452010-01-05 Chong Yidong <cyd@stupidchicken.com>
5846
5847 * keyboard.c (read_key_sequence): Catch keyboard switch after
5848 making a new tty frame (Bug#5095).
5849
2a1ef5be
KH
58502010-01-05 Kenichi Handa <handa@m17n.org>
5851
5852 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5853
e3eb1dae
SM
58542010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5855
5856 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5857 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5858 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5859
777013f2
MA
58602010-01-03 Michael Albinus <michael.albinus@gmx.de>
5861
5862 * dbusbind.c (xd_add_watch): Improve debug message.
5863 (xd_remove_watch): Improve debug message. If DATA is the session
5864 bus, unset D-Bus session environment.
5865 (Fdbus_init_bus): Pass the bus as argument to
5866 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 5867
8932b1c2
CY
58682010-01-01 Chong Yidong <cyd@stupidchicken.com>
5869
87231e2c
CY
5870 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5871
4801c5fa
CY
5872 * lread.c (syms_of_lread): Make it clearer that these are the
5873 names of loaded files (Bug#5068).
5874
8932b1c2
CY
5875 * eval.c (run_hook_with_args): Handle the case where the global
5876 value has the obsolete single-function form (Bug#5026).
5877
11e3c684
CY
58782009-12-27 Chong Yidong <cyd@stupidchicken.com>
5879
5880 * minibuf.c (Fall_completions): Minor optimization.
5881
5b28ce35
EZ
58822009-12-26 Eli Zaretskii <eliz@gnu.org>
5883
5ce6e4f4
JB
5884 * .gdbinit (pgx): Fix display of composite glyphs.
5885 Display cmp.from and cmp.to as well.
5886 (pitx): Fix last change.
5b28ce35 5887
bcffff46
KH
58882009-12-25 Kenichi Handa <handa@m17n.org>
5889
5890 * composite.h (composition_adjust_point): Update prototype.
5891
5892 * composite.c (composition_reseat_it): Don't make a composition
5893 spanning over point.
5894 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5895 composable characters.
5896 (composition_adjust_point): New arg NEW_PT. Callers changed.
5897
5898 * keyboard.c (command_loop_1): Force redisplay if the last point
5899 was within a composition.
5900 (adjust_point_for_property): Don't adjust point for automatic
5901 composition when called after buffer modification.
5902
3f670e9a
EZ
59032009-12-19 Eli Zaretskii <eliz@gnu.org>
5904
5ce6e4f4
JB
5905 * .gdbinit (pitx): Don't use enum names, use their values.
5906 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5907 (pgx): Don't use enum names, use their values.
5908 (pitmethod): New helper command.
5909 (pitx): Use it to display iteration method.
5910 (pgrowit): New command.
5911
ad903955
EZ
5912 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5913
3f670e9a
EZ
5914 Update dependencies in Makefile.in.
5915
5916 * Makefile.in (alloc.o): Depend on termhooks.h.
5917 (atimer.o): Depend on blockinput.h.
5918 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5919 and frame.h.
5920 (callint.o): Depend on systime.h, coding.h, and composite.h.
5921 (callproc.o): Depend on buffer.h.
5922 (casefiddle.o): Don't depend on charset.h.
5923 (casetab.o): Depend on character.h.
5924 (ccl.o): Depend on composite.h.
5925 (chartab.o): Depend on ccl.h.
5926 (cm.o): Depend on dispextern.h.
5927 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5928 (coding.o): Don't depend on $(INTERVALS_H).
5929 (composite.o): Don't depend on dispextern.h explicitly (it's in
5930 $(INTERVALS_H)). Depend on ccl.h.
5931 (data.o): Depend on systime.h, coding.h, composite.h,
5932 dispextern.h, font.h, and ccl.h.
5933 (dired.o): Depend on composite.h.
5934 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5935 composite.h (it's in $(INTERVALS_H)).
5936 (doc.o): Depend on systime.h, coding.h, and composite.h.
5937 (editfns.o): Don't depend explicitly on dispextern.h.
5938 (emacs.o): Depend on frame.h and coding.h.
5939 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5940 (fileio.o): Depend on frame.h and commands.h. Don't depend
5941 explicitly on dispextern.h.
5942 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5943 composite.h.
5944 (fns.o): Don't depend on termhooks.h.
5945 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5946 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5947 coding.h, $(INTERVALS_H), window.h, xterm.h.
5948 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5949 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5950 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5951 fontset.h, ccl.h, and ftfont.h.
5952 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5953 (gtkutil.o): Depend on dispextern.h and composite.h.
5954 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5955 termhooks.h, and ccl.h.
5956 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5957 (intervals.o): Depend on systime.h and coding.h.
5958 (keyboard.o): Depend on composite.h and coding.h.
5959 (keymap.o): Depend on coding.h and frame.h.
5960 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5961 (macros.o): Depend on systime.h, coding.h, and composite.h.
5962 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5963 and atimer.h.
5964 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5965 dispextern.h explicitly.
0b5397c2
SM
5966 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5967 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
5968 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5969 (regex.o): Don't depend on charset.h.
5970 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5971 (search.o): Don't depend explicitly on composite.h.
5972 (sound.o): Depend on atimer.h and systime.h.
5973 (syntax.o): Don't depend explicitly on composite.h.
5974 (sysdep.o): Depend on coding.h and composite.h.
5975 (term.o): Depend on xterm.h and buffer.h.
5976 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5977 (textprop.o): Don't depend on dispextern.h explicitly.
5978 (undo.o): Depend on dispextern.h.
5979 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5980 dispextern.h and composite.h explicitly.
5981 (xdisp.o): Depend on ccl.h.
5982 (xfaces.o): Depend on coding.h and ccl.h.
5983 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5984 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5985 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5986 ftfont.h.
5987 (xgselect.o): New dependency.
5988 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5989 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5990 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5991 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5992 (xsmfns.o): Depend on frame.h and dispextern.h.
5993 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5994 sysselect.h.
5995
7a6f7fea
AS
59962009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5997
5998 * font.c (Fclear_font_cache): Pass correct cache argument to
5999 font_clear_cache.
6000
f4c21026
AS
60012009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6002
6003 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6004 twice.
6005
f7ab0997
CY
60062009-12-15 Chong Yidong <cyd@stupidchicken.com>
6007
6008 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6009 calling file-remote-p. Reported by Jim Meyering.
6010
fa8e045a
MA
60112009-12-15 Michael Albinus <michael.albinus@gmx.de>
6012
6013 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 6014 avoid compiler warnings. (Bug #5217)
fa8e045a 6015
a63dba42
KH
60162009-12-14 Kenichi Handa <handa@m17n.org>
6017
6018 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6019 in 8-bit encoding.
6020
5ce6e4f4 60212009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
6022
6023 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6024 tooltip windows.
6025
223e5fc6
JD
60262009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6027
36acb2a7
JD
6028 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6029 Xatom_net_window_type.
6030
6031 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6032 Xatom_net_window_type.
6033
b8f00677
JD
6034 * xterm.c (my_log_handler): New function.
6035 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 6036 so we can filter out buggy messages. (Bug #5120).
b8f00677 6037
e5f0bc9a
JD
6038 * xterm.c (xg_scroll_callback): Parameter list changed,
6039 use parameter GtkScrollType to determine scroll/line/page.
6040 Only allow dragging if a button < 4 is grabbed (bug #5177).
6041 (xg_end_scroll_callback): New function.
6042 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6043 xg_create_scroll_bar.
6044
6045 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6046 (scroll_end_callback): Remove.
6047 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6048 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 6049 bug #5177.
e5f0bc9a
JD
6050 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6051 bug #5177.
6052
6053 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6054 (xg_create_scroll_bar): Add GCallback end_callback.
6055
223e5fc6
JD
6056 * xftfont.c (QClcdfilter): New variable.
6057 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6058 (syms_of_xftfont): Initialize QClcdfilter.
6059
3c055b77
JD
60602009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6061
6062 * xsettings.c (struct xsettings): Add member seen.
6063 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 6064 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
6065 (apply_xft_settings): Only update Xft settings with what member seen
6066 indicates as new.
6067
05fe33ff
EZ
60682009-12-12 Eli Zaretskii <eliz@gnu.org>
6069
c4cc8b9a 6070 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
6071 (struct glyph): Use EMACS_INT for charpos.
6072 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6073 region_beg_charpos, region_end_charpos,
6074 redisplay_end_trigger_charpos, and also for
6075 iterator_stack_entry.end_charpos and
6076 iterator_stack_entry.stop_charpos.
6077
e8d7886a
JD
60782009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6079
5ce6e4f4 6080 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
6081 (xg_create_scroll_bar): Call scroll_end_callback on button release
6082 event (bug #5177).
6083 (xg_event_is_for_scrollbar): != replaced with ==.
6084
d0db2ec8
KH
60852009-12-12 Kenichi Handa <handa@m17n.org>
6086
6087 * ftfont.c (struct ftfont_info): New member matrix.
6088 (ftfont_open): Setup xftfont_info->matrix.
6089 (MFLTFontFT): New member matrix.
6090 (FLOOR, CEIL, ROUND): New macros.
6091 (ftfont_get_metrics): Handle matrix transformation.
6092 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6093
6094 * xftfont.c (struct xftfont_info): New member matrix.
6095 (xftfont_open): Setup xftfont_info->matrix.
6096
60972009-12-10 Kenichi Handa <handa@m17n.org>
6098
6099 * xdisp.c (append_space_for_newline): Consider face-remapping.
6100
2cc7b62f
AS
61012009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6102
b87dd913
AS
6103 * xsettings.c: Include "keyboard.h".
6104
eba5eb94
AS
6105 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6106
2cc7b62f
AS
6107 Fix implicit function declarations.
6108 * cmds.c: Include "frame.h".
6109 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6110 * frame.h: Move declaration of delete_frame outside of
6111 HAVE_WINDOW_SYSTEM.
6112
a4ef73c8
CY
61132009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6114
6115 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6116
6117 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6118 GTK builds.
6119
944a300c
AS
61202009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6121
6122 * unexelf.c (unexec): Don't search for .data twice.
6123
022eef62
CY
61242009-12-05 Chong Yidong <cyd@stupidchicken.com>
6125
426ac949
CY
6126 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6127 if push failed.
6128 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6129 of push_display_prop (Bug#5000).
6130
022eef62
CY
6131 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6132 value of font_list_entities (Bug#5085).
6133
be95bee9
JB
61342009-12-04 Juanma Barranquero <lekktu@gmail.com>
6135
6136 Fix `string-to-number' to deal consistently with integers and floats.
6137 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6138 trailing characters, not just whitespace.
6139 (read1): Pass new arg 0 to keep old behavior.
6140 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6141 trailing chars, as it is already done for integers. Doc fixes.
6142 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6143
24c2d7ce
EZ
61442009-12-04 Eli Zaretskii <eliz@gnu.org>
6145
0b5397c2
SM
6146 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6147 Delete unused enumeration value.
24c2d7ce 6148
7e694795
EZ
61492009-12-03 Eli Zaretskii <eliz@gnu.org>
6150
6151 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6152
84b31826
SM
61532009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6154
6155 * process.c (Fmake_network_process): Fix up the tests for
6156 "connectionless socket", so they DTRT for seqpacket sockets as well.
6157
f00c449b
SM
61582009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6159
6160 * process.c (Qseqpacket): New symbol.
6161 (HAVE_SEQPACKET): New macro.
6162 (Fmake_network_process): Accept new :type `seqpacket'.
6163 (init_process): Add `seqpacket' feature when applicable.
6164 (syms_of_process): Initialize Qseqpacket.
6165
8096a0ff
YM
61662009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6167
6168 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6169 if entity is Qnil.
6170
3e0de07f
SM
61712009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6172
6173 * print.c (print_preprocess): Preprocess the key_and_value table of
6174 hashtables, even tho they're "hidden" (bug#5082).
6175
abeafb2a
JD
61762009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6177
6178 * frame.c (frame_make_pointer_invisible)
6179 (frame_make_pointer_visible): Declare f before statements.
6180
4bf47195
EZ
61812009-11-28 Eli Zaretskii <eliz@gnu.org>
6182
6183 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6184 omitted dependencies on lisp.h.
6185
c525b3f2
JD
61862009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6187
ece2d4ed
JD
6188 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6189 is NULL.
6190
6191 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6192
6193 * frame.c (frame_make_pointer_invisible)
3e0de07f 6194 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
6195 frame.
6196
c525b3f2
JD
6197 * search.c (simple_search): Remove warning by making *p const.
6198
2f00e299
DN
61992009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6200
6201 * xdisp.c (power_letter): Remove duplicate const.
6202
084b049b
JD
62032009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6204
a1fadc6f
JD
6205 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6206
5ce6e4f4 6207 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
6208 defaults (bug #5025).
6209
28259cac
SM
62102009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6211
6212 * insdel.c (adjust_markers_for_delete): Move it in the
6213 right direction! (bug#4803)
6214
e8e14166
YM
62152009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6216
6217 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6218
6219 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6220
86677b58
GM
62212009-11-24 Glenn Morris <rgm@gnu.org>
6222
6223 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6224
581e51e8
JD
62252009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6226
cfc86c7a
JD
6227 * Makefile.in: Must create deps for ecrt0.o in its rule.
6228
581e51e8
JD
6229 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6230 because that is what Gtk+ font dialog understands.
6231
6232 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6233 of Fcopy_sequence.
6234 (font_open_by_name): Put name given into QCname for font-object returned.
6235
6236 * frame.c (x_set_font): Save original font name as frame parameter
6237 font-parameter.
6238
6239 * xsettings.c (set_default_xft_settings): New function.
6240 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6241 is found.
6242
8b264ecb
AS
62432009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6244
6245 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6246 searching backwards through multibyte buffer.
6247
872870b2
JD
62482009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6249
6250 * xterm.c: #include xgselect.h.
6251 (x_initialize): Call xgselect_initialize.
6252
6253 * xsettings.c (something_changedCB): C++ comments => C comments.
6254 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6255 does that now.
6256
6257 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6258 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6259 (scroll_bar_button_cb): Remove.
5ce6e4f4 6260 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
6261 event.
6262 (xg_create_scroll_bar): Don't bind button-press-event and
6263 button-release-event.
6264
6265 * process.c: Include xgselect.h if defined (USE_GTK) ||
6266 defined (HAVE_GCONF).
6267 (wait_reading_process_output): Call xg_select for the same condition.
6268
6269 * xgselect.c (xg_select): New function to better integrate with
6270 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6271
6272 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6273
6274 * Makefile.in (XOBJ): Add xgselect.o.
6275
62a6e103
AS
62762009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6277
0b5397c2
SM
6278 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6279 Remove ignored second argument. All callers changed.
62a6e103
AS
6280 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6281 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6282 * xdisp.c (string_char_and_length): Likewise.
6283
b0ca0f33
DN
62842009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6285
6286 * xterm.c (x_new_font):
6287 * print.c (print_object):
6288 * cmds.c (Fself_insert_command): Move declarations before statements.
6289
dd5a6279
CY
62902009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6291
6292 * s/cygwin.h: Remove unneeded linker flags.
6293
4a8e097d
JD
62942009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6295
0d1d0d26
JD
6296 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6297
6298 * xsettings.h: Declare xsettings_get_system_font.
6299
6300 * xsettings.c (xsettings_get_system_font): New function.
6301 (init_gconf): No use initiating gconf unless we have Xft also.
6302 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6303 HAVE_GCONF.
6304
4a8e097d
JD
6305 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6306 add a blank entry so it doesn't collapse into nothing.
6307
8ab1650e
SM
63082009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6309
6310 * lread.c (Funintern): Comment out last change.
6311
82c602f0
RS
63122009-11-19 Richard Stallman <rms@gnu.org>
6313
6314 * lread.c (Funintern): Error if symbol is t or nil.
6315
87e32266
SM
63162009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6317
6318 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6319 representation of Lisp integers.
6320 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6321
1b9ac145
AS
63222009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6323
6324 * lisp.h: Remove declaration of Ffont_get_system_font.
6325 * xfns.c: Move include of "xsettings.h".
6326 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6327
dfb3c4c6
JD
63282009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6329
87e32266
SM
6330 * xsettings.c (something_changedCB, Ffont_get_system_font):
6331 Check use_system_font.
dfb3c4c6
JD
6332 (syms_of_xsettings): DEFVAR font-use-system-font.
6333
9370c1d8
AS
63342009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6335
25fe851a
AS
6336 * xfns.c (x_default_font_parameter): Remove dead assignment.
6337
9370c1d8
AS
6338 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6339
637fa988
JD
63402009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6341
87e32266 6342 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 6343 not have FC_LCD_*. #define them if not there.
a6eb20d8 6344
87e32266 6345 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 6346
637fa988
JD
6347 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6348
6349 * xterm.c (handle_one_xevent): Call xft_settings_event for
6350 ClientMessage, PropertyNotify and DestroyNotify.
6351 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6352 Call xsettings_initialize.
6353
6354 * xftfont.c (xftfont_fix_match): New function.
6355 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6356 Call xftfont_fix_match after XftFontMatch.
6357
6358 * xfont.c (xfont_driver): Initialize all members.
6359
87e32266
SM
6360 * xfns.c (x_default_font_parameter):
6361 Try font from Ffont_get_system_font.
637fa988
JD
6362 Do not get font from x_default_parameter if we got one from
6363 Ffont_get_system_font.
87e32266 6364 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
6365
6366 * w32font.c (w32font_driver): Initialize all members.
6367
6368 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6369
6370 * lisp.h: Declare syms_of_xsettings.
6371
87e32266
SM
6372 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6373 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
6374
6375 * ftfont.c (ftfont_filter_properties): New function.
6376
6377 * frame.c (x_set_font): Remove unused variable lval.
6378
87e32266 6379 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
6380
6381 * font.c (font_put_extra): Don't return if val is nil, it means
6382 boolean option is off.
6383 (font_parse_fcname): Collect all extra properties in extra_props
6384 and call filter_properties for all drivers with extra_props and
6385 font as parameter.
87e32266
SM
6386 (font_open_entity): Do not use cache, it does not pick up new
6387 fontconfig settings like hinting.
637fa988
JD
6388 (font_load_for_lface): If spec had a name in it, store it in entity.
6389
a73f9c9d 6390 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
6391
6392 * config.in: HAVE_GCONF is new.
6393
6394 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6395 xsettings.o is new.
6396
5a942932
KH
63972009-11-17 Kenichi Handa <handa@m17n.org>
6398
6399 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6400 back to the default font in case that no suitable font is found.
6401
b7c7a4d1
SM
64022009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6403
6404 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6405 Suggested by Chad Brown <yandros@mit.edu>.
6406 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6407
072f1e39
JD
64082009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6409
6410 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6411
5d1e70a2
AS
64122009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6413
87e32266 6414 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 6415
a53cfbe5
JD
64162009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6417
473a99b7
JD
6418 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6419 has a parent.
6420
a53cfbe5 6421 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 6422 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
6423
6424 * config.in: Generated (AUTO_DEPEND).
6425
f04bb9b2
MA
64262009-11-13 Michael Albinus <michael.albinus@gmx.de>
6427
b7c7a4d1 6428 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
6429 Vdbus_registered_functions_table, because it contains also
6430 properties. Fix docstring.
b7c7a4d1 6431 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 6432
8f11f7ec
SM
64332009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6434
6435 * alloc.c (mark_object): Don't reprocess marked strings.
6436 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6437 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6438
8a605fe8
KH
64392009-11-13 Kenichi Handa <handa@m17n.org>
6440
8f11f7ec 6441 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
6442 semantics of Vword_combining_categories.
6443 (Vword_combining_categories): Describe the slight change of the
6444 semantics.
6445
241c4680
EZ
64462009-11-13 Eli Zaretskii <eliz@gnu.org>
6447
6448 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6449
6450 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6451
5d58e44c
SM
64522009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6453
6454 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6455
5e13f9d3
JB
64562009-11-12 Juanma Barranquero <lekktu@gmail.com>
6457
6458 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6459
cf54c754
DR
64602009-11-11 David Reitter <david.reitter@gmail.com>
6461
6462 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6463 variables to fix 2009-11-09 change.
6464
a4ada374
DN
64652009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6466
91433552
DN
6467 * process.c (ifflag_def): Make flag_sym constant.
6468 (Fnetwork_interface_info): Use a constant pointer.
6469 (ifflag_table):
6470 * xfns.c (cursor_bits):
6471 * xdisp.c (power_letter):
6472 * termcap.c (speeds, esctab):
6473 * sysdep.c (baud_convert):
6474 * keyboard.c (lispy_accent_codes, modifier_names):
6475 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6476 (jpeg_format, tiff_format, gif_format, svg_format)
6477 (interlace_start, interlace_increment, gs_format):
6478 * gtkutil.c (separator_names):
6479 * fringe.c (swap_nibble):
6480 * fns.c (base64_value_to_char, base64_char_to_value):
6481 * fileio.c (make_temp_name_tbl):
6482 * coding.c (suffixes): Make constant.
6483
f4265f6c
DN
6484 * frame.c (make_initial_frame):
6485 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6486 build_string.
6487 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6488
04420943
DN
6489 * s/freebsd.h:
6490 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6491
0a5d24ae
DN
6492 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6493 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6494
a4ada374
DN
6495 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6496 * xterm.c (syms_of_xterm):
6497 * xfaces.c (syms_of_xfaces):
6498 * xdisp.c (syms_of_xdisp):
6499 * lread.c (syms_of_lread):
6500 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6501 build_string.
91433552 6502
a4ada374
DN
6503 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6504
af98fc7f
SM
65052009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6506
8ab1650e 6507 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 6508
e90292a9
JD
65092009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6510
6511 * keyboard.h: Declare timer_check.
6512
6513 * keyboard.c (timer_check_2): New function that does what the old
6514 timer_check did.
6515 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6516 returned, i.e. don't return -1 with timers pending.
6517
6518 * process.c: Remove extern declaration of timer_check.
6519
6520 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6521 even if timer_check returned -1.
6522
af98fc7f
SM
6523 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6524 xg_dialog_data.
e90292a9
JD
6525 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6526 the event loop.
6527 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6528 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6529 Destroy the dialog after xg_dialog_run.
6530
045b83c0
SM
65312009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6532
6533 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6534
1fb99a3a
JD
65352009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6536
6537 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6538
04e452cb
JB
65392009-11-09 Juanma Barranquero <lekktu@gmail.com>
6540
6541 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6542
ef7417fd
SM
65432009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6544
6545 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6546 w32menu.c, and nsmenu.m.
6547 Simplify the obsolete case where position is nil.
6548 (cleanup_popup_menu): New function, moved from nsmenu.m.
6549 (struct skp): Remove slot `notreal'.
6550 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6551 adjust callers.
6552 (single_menu_item): Adjust call to parse_menu_item.
6553 (syms_of_menu): Defsubr x-popup-menu.
6554 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6555 (keymap_panes): Don't export any more.
6556 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6557 (xmenu_show): Declare.
6558 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6559 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6560 * keyboard.h (parse_menu_item): Update declaration.
6561 * xmenu.c (Fx_popup_menu): Remove.
6562 (syms_of_xmenu): Don't defsubr x-popup-menu.
6563 * w32menu.c (Fx_popup_menu): Remove.
6564 (syms_of_w32menu): Don't defsubr x-popup-menu.
6565 * nsmenu.m (cleanup_popup_menu): Remove.
6566 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6567 moved to menu.c's Fx_popup_menu.
6568 (Fx_popup_menu): Remove.
6569 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6570 menu_items (it's done in menu.c already).
6571
424d6179
SM
65722009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6573
6574 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6575 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6576
c0df13a6 65772009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
6578
6579 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 6580 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
6581 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6582 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6583
2de9f71c
SM
65842009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6585
6586 Let integers use up 2 tags to give them one extra bit and thus double
6587 their range.
6588 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6589 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6590 New macros.
6591 (enum Lisp_Type): Use them. Give explicit values.
6592 (Lisp_Type_Limit): Remove.
6593 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6594 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6595 Pay attention to USE_2_TAGS_FOR_INTS.
6596 (INTEGERP): Use LISP_INT_TAG_P.
6597 * fns.c (internal_equal): Simplify the default case.
6598 (sxhash): Use case_Lisp_Int.
6599 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6600 any more.
6601 (Ftype_of): Use case_Lisp_Int.
6602 (store_symval_forwarding): Take into account the fact that Ints can
6603 now have more than one tag.
6604 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 6605 (buffer_slot_type_mismatch):
2de9f71c
SM
6606 * xfaces.c (face_attr_equal_p):
6607 * print.c (print_object):
6608 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6609 Use case_Lisp_Int.
6610
323637a2
EZ
66112009-11-06 Eli Zaretskii <eliz@gnu.org>
6612
7ac65b38
EZ
6613 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6614
323637a2
EZ
6615 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6616 warning.
6617
e511451f
JD
66182009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6619
6620 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6621
6622 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6623
6624 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6625 ButtonPressRelease and MotionNotify (bug#4870).
6626
5e2327cf
DN
66272009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6628
5adc433e
DN
6629 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6630
d67b4f80
DN
6631 * xterm.c (syms_of_xterm):
6632 * xselect.c (syms_of_xselect):
6633 * xmenu.c (syms_of_xmenu):
6634 * xfns.c (syms_of_xfns):
6635 * xfaces.c (syms_of_xfaces):
6636 * xdisp.c (syms_of_xdisp):
6637 * window.c (syms_of_window):
6638 * w32fns.c (syms_of_w32fns):
6639 * undo.c (syms_of_undo):
6640 * textprop.c (syms_of_textprop):
6641 * terminal.c (syms_of_terminal):
6642 * syntax.c (syms_of_syntax):
6643 * sound.c (syms_of_sound):
6644 * search.c (syms_of_search):
6645 * print.c (syms_of_print):
6646 * minibuf.c (syms_of_minibuf):
6647 * macros.c (syms_of_macros):
6648 * keymap.c (syms_of_keymap, initial_define_key)
6649 (initial_define_lispy_key):
6650 * keyboard.c (syms_of_keyboard):
6651 * insdel.c (syms_of_insdel):
6652 * image.c (syms_of_image):
6653 * fringe.c (syms_of_fringe):
6654 * frame.c (syms_of_frame):
6655 * fontset.c (syms_of_fontset):
6656 * fns.c (syms_of_fns):
6657 * fns.c (syms_of_fns):
6658 * fileio.c (syms_of_fileio):
6659 * fileio.c (syms_of_fileio):
6660 * eval.c (syms_of_eval):
6661 * doc.c (syms_of_doc):
6662 * dispnew.c (syms_of_display):
6663 * dired.c (syms_of_dired):
6664 * dbusbind.c (syms_of_dbusbind):
6665 * data.c (syms_of_data):
6666 * composite.c (syms_of_composite):
6667 * coding.c (syms_of_coding):
6668 * cmds.c (syms_of_cmds):
6669 * charset.c (define_charset_internal, syms_of_character):
6670 * ccl.c (syms_of_ccl):
6671 * category.c (syms_of_category, init_category_once):
6672 * casetab.c (syms_of_casetab):
6673 * casefiddle.c (syms_of_casefiddle):
6674 * callint.c (syms_of_callint):
6675 * bytecode.c (syms_of_bytecode):
6676 * buffer.c (keys_of_buffer, syms_of_buffer):
6677 * alloc.c (syms_of_alloc):
6678 * process.c (syms_of_process, init_process):
6679 * lread.c (syms_of_lread, init_obarray):
6680 * font.c (build_style_table):
6681 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6682 intern_c_string, calls to make_pure_string with
6683 make_pure_c_string. Use pure_cons instead of Fcons.
6684
5e2327cf
DN
6685 * process.c (socket_options): Make it const.
6686 (set_socket_option, init_process): Use a const pointer.
6687
6688 * lread.c (intern_c_string): New function.
6689 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6690 (defvar_int): Uset it. Make the name const char*.
6691
6692 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6693 (defvar_int): Update prototypes.
6694 (DEFUN, EXFUN): Support for prototypes is now required.
6695 (intern_c_string): New prototype.
6696 (struct Lisp_Subr): Make symbol_name constant.
6697
6698 * font.c (struct table_entry): Remove unused member. Make NAMES
6699 constant.
6700 (weight_table, slant_table, width_table): Make constant.
6701
6702 * emacs.c (struct standard_args): Make name and longname constant.
6703
6704 * character.h (DEFSYM): Use intern_c_string.
6705
a56eaaef
DN
67062009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6707
6708 * alloc.c (make_pure_c_string): New function.
6709
6710 * eval.c (Fautoload): Purecopy all arguments.
6711
f6a07420
KH
67122009-11-05 Kenichi Handa <handa@m17n.org>
6713
6714 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6715 the buffer in case of replace.
6716
5d28d4b1
DN
67172009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6718
6719 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6720
b349d111
SM
67212009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6722
d528b1ce
SM
6723 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6724 when applicable (bug#4851).
6725
b349d111
SM
6726 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6727 (P_): Support for prototypes is now required.
6728
c38eb027
CY
67292009-10-31 Chong Yidong <cyd@stupidchicken.com>
6730
6731 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6732 (Bug#4827).
6733
0405f8d9
EZ
67342009-10-30 Eli Zaretskii <eliz@gnu.org>
6735
d528b1ce 6736 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 6737
ca0a881a
DN
67382009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6739
6740 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6741
d528b1ce
SM
6742 * lread.c (Fload): Purecopy the file name when building
6743 Vpreloaded_file_list.
ca0a881a 6744
47e0e0e4
JR
67452009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6746
6747 * w32fns.c (syms_of_w32fns): Change default value of
6748 w32-scroll-lock-modifier to nil. (Bug#2827)
6749
057bce6f
JB
67502009-10-26 Juanma Barranquero <lekktu@gmail.com>
6751
782a943e 6752 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 6753
242bc74c
AS
67542009-10-26 Andreas Schwab <schwab@redhat.com>
6755
6756 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6757
522d013a
JB
67582009-10-26 Juanma Barranquero <lekktu@gmail.com>
6759
6760 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6761 For delta < 0, skip check that only makes sense when the mini-window
6762 is going to be enlarged. (Bug#4534)
6763
18060980
CY
67642009-10-25 Chong Yidong <cyd@stupidchicken.com>
6765
6766 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6767 string in menu maps (Bug#4471).
6768
fec8f0fe
CY
67692009-10-24 Chong Yidong <cyd@stupidchicken.com>
6770
6771 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6772 FRAME_NS_VIEW on terminal frames (Bug#4765).
6773
10d66ec0
AS
67742009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6775
1cae01f7
AS
6776 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6777 DBUS_TYPE_UINTnn separately to get proper sign extension.
6778
58a12889
AS
6779 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6780 can properly handle unsigned types.
d528b1ce 6781 (make_uid, make_gid): Remove.
58a12889 6782
987c9327
AS
6783 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6784 types again.
6785
522d013a 6786 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
6787 (system_process_attributes): Likewise.
6788
905a9ed3
DN
67892009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6790
6791 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6792
6793 * eval.c (Fautoload): Purecopy the filename. Simplify.
6794
6795 * category.c (Fdefine_category): Purecopy docstring.
6796
a599b3e8
AS
67972009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6798
7b792fc9
AS
6799 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6800
a599b3e8
AS
6801 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6802
b35ac83e
CY
68032009-10-23 Chong Yidong <cyd@stupidchicken.com>
6804
6805 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6806 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6807 (Bug#4775).
6808
e8903e00
SM
68092009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6810
6811 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6812 (init_fileio_once):
6813 * lisp.h (init_fileio_once): Remove.
6814 * emacs.c (main): Don't call init_fileio_once.
6815
8f43cbf3
DN
68162009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6817
6818 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6819
26898943
AS
68202009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6821
6822 * doprnt.c (doprnt): Fix overflow check.
6823
5c646d5a
JD
68242009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6825
3132a7ea
JD
6826 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6827
5c646d5a
JD
6828 * xterm.h (x_wait_for_event): Declare it.
6829
6830 * xterm.c (pending_event_wait): New variable.
6831 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6832 see pending_event_wait.eventtype.
6833 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
6834 (x_new_font): Call change_frame_size with new rows/columns before we
6835 try to resize the frame.
5c646d5a 6836 (x_wait_for_event): New function.
d528b1ce
SM
6837 (x_set_window_size_1): Don't change gravity unless change_gravity
6838 is set.
5c646d5a
JD
6839 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6840 don't change frame size, instead wait for the ConfigureNotify.
6841 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6842 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6843 (x_initialize): Initialize pending_event_wait.
6844
6845 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6846 size.
6847
6848 * widget.c (EmacsFrameSetValues): Add comment.
6849 (EmacsFrameSetCharSize): Just call x_set_window_size.
6850
6851 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6852 x_wait_for_event.
d528b1ce 6853 (flush_and_sync): Remove again.
5c646d5a
JD
6854 (xg_get_font_name): Suggest monospace if no previous font is known.
6855
e9c1637d
SM
68562009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6857
6858 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 6859 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 6860
5a72cccb
YM
68612009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6862
6863 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6864 processing pending events when event is filtered for input method.
ab04798f 6865 (Bug#3681)
5a72cccb 6866
2629aa37
JB
68672009-10-20 Juanma Barranquero <lekktu@gmail.com>
6868
6869 * fns.c: Add #endif accidentally removed in previous change.
6870
c3417a74
DN
68712009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6872
6873 * fns.c: Remove code for unsupported system: MAC_OS.
6874 * image.c: Likewise. Include setjmp.h.
6875
9685cef2
JD
68762009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6877
6878 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6879 pixel -1 (bug #4742).
6880
d7306fe6
DN
68812009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6882
019d2c4c
DN
6883 * process.c (create_pty): Remove conditionals for no longer
6884 supported systems: UNIPLUS and RTU.
6885
ee6bacd4
DN
6886 * xterm.c:
6887 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6888
d7306fe6
DN
6889 * alloc.c: Do not define struct catchtag.
6890 * eval.c: Move struct catchtag definition ...
6891 * lisp.h: ... here.
6892
6893 * image.c: Move png.h #include earlier to avoid warnings.
6894
6895 * xterm.c:
6896 * xsmfns.c:
6897 * xselect.c:
6898 * xrdb.c:
6899 * xmenu.c:
6900 * xftfont.c:
6901 * xfont.c:
6902 * xfns.c:
6903 * xfaces.c:
6904 * xdisp.c:
6905 * window.c:
6906 * widget.c:
6907 * w32xfns.c:
6908 * w32uniscribe.c:
6909 * w32term.c:
6910 * w32select.c:
6911 * w32reg.c:
6912 * w32proc.c:
6913 * w32menu.c:
6914 * w32inevt.c:
6915 * w32heap.c:
6916 * w32font.c:
6917 * w32fns.c:
6918 * w32console.c:
6919 * w32.c:
6920 * w16select.c:
6921 * vm-limit.c:
6922 * unexsol.c:
6923 * unexec.c:
6924 * unexcw.c:
6925 * unexaix.c:
6926 * undo.c:
6927 * tparam.c:
6928 * textprop.c:
6929 * terminfo.c:
6930 * terminal.c:
6931 * termcap.c:
6932 * term.c:
6933 * syntax.c:
6934 * sound.c:
6935 * sheap.c:
6936 * search.c:
6937 * scroll.c:
6938 * region-cache.c:
6939 * regex.c:
6940 * ralloc.c:
6941 * process.c:
6942 * print.c:
b024548b
DN
6943 * nsterm.m:
6944 * nsselect.m:
6945 * nsmenu.m:
6946 * nsimage.m:
6947 * nsfont.m:
6948 * nsfns.m:
d7306fe6
DN
6949 * msdos.c:
6950 * minibuf.c:
6951 * menu.c:
6952 * marker.c:
6953 * macros.c:
6954 * keymap.c:
6955 * keyboard.c:
6956 * intervals.c:
6957 * insdel.c:
6958 * indent.c:
6959 * gtkutil.c:
6960 * ftxfont.c:
6961 * ftfont.c:
6962 * fringe.c:
6963 * frame.c:
6964 * fontset.c:
6965 * font.c:
6966 * fns.c:
6967 * floatfns.c:
6968 * filelock.c:
6969 * fileio.c:
6970 * emacs.c:
6971 * editfns.c:
6972 * dosfns.c:
6973 * doprnt.c:
6974 * doc.c:
6975 * dispnew.c:
6976 * dired.c:
6977 * dbusbind.c:
6978 * data.c:
6979 * composite.c:
6980 * coding.c:
6981 * cmds.c:
6982 * cm.c:
6983 * chartab.c:
6984 * charset.c:
6985 * character.c:
6986 * ccl.c:
6987 * category.c:
6988 * casetab.c:
6989 * casefiddle.c:
6990 * callproc.c:
6991 * callint.c:
6992 * bytecode.c:
6993 * buffer.c:
6994 * atimer.c: Include setjmp.h. (Bug#4643)
6995
fd5f21e6
SM
69962009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6997
4c0354d7
SM
6998 Remove leftover table unibyte_to_multibyte_table.
6999 * character.c (unibyte_to_multibyte_table): Remove.
7000 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7001 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7002 * character.h (UNIBYTE_TO_CHAR): New macro.
7003 (MAKE_CHAR_MULTIBYTE): Use it.
7004 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7005 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7006 (message_dolog, set_message_1):
7007 * search.c (Freplace_match):
7008 * editfns.c (Fcompare_buffer_substrings):
7009 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7010 (concat):
7011 * insdel.c (copy_text, count_size_as_multibyte):
7012 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7013 * term.c (produce_glyphs):
7014 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7015 * regex.c (RE_CHAR_TO_MULTIBYTE):
7016 * cmds.c (internal_self_insert):
7017 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7018
fd5f21e6
SM
7019 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7020
4418646e
DN
70212009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7022
7023 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7024
35f5c1d2
JB
70252009-10-16 Juanma Barranquero <lekktu@gmail.com>
7026
7027 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7028
a0cd8f6b
AR
70292009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7030
7031 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7032 still needed under Tiger.
7033
7034 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7035
7036 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7037 __Apple__.
7038
7039 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7040
01a8d3fa
KH
70412009-10-15 Kenichi Handa <handa@m17n.org>
7042
7043 * print.c (print_object): Escape a symbol like "2E10" too.
7044
bf6c75c9 70452009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
7046
7047 Cleanups and changes for 64-bit compile under Snow Leopard.
7048 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
7049
7050 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7051
c5959062 7052 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
7053 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7054 cast argument.
7055 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 7056 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
7057
7058 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7059
7060 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7061 where appropriate.
7062
7063 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7064 where appropriate.
6e4780c5
JB
7065 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7066 Use stringWithUTF8String.
bf6c75c9
AR
7067 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7068
6e4780c5
JB
7069 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7070 Add formal protocol mention to inheritance.
bf6c75c9
AR
7071 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7072
6e4780c5
JB
7073 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7074 Fix printf format.
bf6c75c9
AR
7075 (ns_query_color): Use CGFloat where appropriate.
7076 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 7077 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
7078 argument.
7079
3d87f118
AR
7080 * config.in (NS_HAVE_NSINTEGER): Drop.
7081
a95c8102
AR
7082 * dbusbind.c (dbus-method-return-internal)
7083 (dbus-method-error-internal): Use long format in printf, and cast
7084 argument.
7085
7086 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7087 in printf, and cast argument.
7088
6873acca 7089 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
7090 cast argument.
7091
9ec6f100
GM
70922009-10-11 Glenn Morris <rgm@gnu.org>
7093
7094 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7095
5be883cd
JD
70962009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7097
7098 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7099 menu bar with a small width so it doesn't enlarge the frame.
7100
d7a39b51
JB
71012009-10-08 Juanma Barranquero <lekktu@gmail.com>
7102
7103 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7104
0c2b6f8e
GM
71052009-10-06 Glenn Morris <rgm@gnu.org>
7106
7107 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7108 SOME_MACHINE_LISP (this enters indirectly via DOC).
7109
e02131a2
EZ
71102009-10-05 Eli Zaretskii <eliz@gnu.org>
7111
7112 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7113
b4744254
EZ
71142009-10-04 Eli Zaretskii <eliz@gnu.org>
7115
7116 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7117 Doc fix.
7118
dbf64827
JB
71192009-10-03 Martin Rudalics <rudalics@gmx.at>
7120
7121 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7122
e9a0aef8
MA
71232009-10-02 Michael Albinus <michael.albinus@gmx.de>
7124
d528b1ce 7125 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
7126 used anymore outside fileio.c.
7127
7128 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7129
64eb2b56
JB
71302009-10-01 Juanma Barranquero <lekktu@gmail.com>
7131
7132 * lisp.h (Qdelete_directory_internal):
7133 Declare, instead of Qdelete_directory.
7134
7135 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7136
9d28c33e
SM
71372009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7138
7139 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7140
9d8f3bd9
MA
71412009-10-01 Michael Albinus <michael.albinus@gmx.de>
7142
9d28c33e 7143 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
7144 Fdelete_directory. It is not a command anymore. It has no file
7145 name handler.
7146
9694740b
SM
71472009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7148
7149 * xdisp.c (get_next_display_element): Use an enum in last change.
7150
748e162f
KH
71512009-09-28 Kenichi Handa <handa@m17n.org>
7152
9694740b 7153 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
7154 unibyte_display_via_language_environment in handling
7155 Vnobreak_char_display.
7156
17efd58d
AR
71572009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7158
7159 * nsterm.h (ns_app_name): New extern variable.
7160
7161 * nsterm.m (ns_app_name): New variable.
7162 (ns_term_init): Set and use it.
7163 (ns_term_shutdown): Use it.
7164
7165 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7166 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7167
7168 * nsfns.m (ns_set_name_iconic, ns_set_name)
7169 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7170 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7171
9694740b
SM
7172 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7173 Remove double-casting in client_data comparison.
31c2d412 7174
3208cb35
YM
71752009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7176
7177 * keyboard.c (make_lispy_event): Remember last wheel direction.
7178 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7179
b7d552d6
GM
71802009-09-26 Glenn Morris <rgm@gnu.org>
7181
7182 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7183 internal.elc. Add term/pc-win.elc.
7184 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7185 term/x-win.elc.
7186 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7187 term/w32-win.elc.
7188 (NS_SUPPORT): New.
7189 (lisp): Add NS_SUPPORT.
7190 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7191
4ff670a8
DR
71922009-09-25 David Reitter <david.reitter@gmail.com>
7193
7194 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7195 on Mac OS X 10.6+ (bug#4513).
7196
feabfb6c
JB
71972009-09-24 Juanma Barranquero <lekktu@gmail.com>
7198
7199 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
7200 some parts of Emacs code (like font selection) don't grok them.
7201 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 7202
de59072a
AS
72032009-09-24 Andreas Schwab <schwab@redhat.com>
7204
7205 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7206
a489517b
JB
72072009-09-24 Juanma Barranquero <lekktu@gmail.com>
7208
7209 * dired.c (Fdirectory_files): Fix typo in docstring.
7210
0592970c
AR
72112009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7212
7213 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7214 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7215 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7216 under GNUstep.
7217 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7218
7219 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7220 glyph advancement.
7221
48e8a88b
AR
72222009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7223
7224 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 7225 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
7226
7227 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7228 deleted (bug #4492).
7229
e14f0a78
AR
7230 * nsfont.m (Vns_reg_to_script): New lisp variable.
7231 (syms_of_nsfont): Declare it.
7232 (ns_registry_to_script): New function.
7233 (ns_get_req_script): Call it.
7234 (ns_findfonts): Don't give up on non-unicode registry.
7235
7236 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7237
5b650faa
SM
72382009-09-20 Tom Tromey <tromey@redhat.com>
7239
7240 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7241 batch mode (bug#4228).
7242
a489517b 72432009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
7244
7245 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 7246 carefully. (Bug #4339)
0bae4e09 7247
fcfe06f3
CY
72482009-09-18 Chong Yidong <cyd@stupidchicken.com>
7249
d798ba87 7250 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 7251
31642728
AR
72522009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7253
7254 * emacs.c (inhibit_x_resources): Update doc string for NS.
7255 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 7256 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
7257
7258 * nsterm.h (ns_no_defaults): Remove.
7259
7260 * nsterm.m (ns_no_defaults): Remove.
7261 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7262 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
7263 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7264 don't update the NSWindow itself.
7265 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 7266 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
7267
7268 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7269 ns_use_qd_smoothing.
7270
7271 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7272 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 7273 (x-close-connection): Drop PSFlush() under OS X.
a489517b 7274 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 7275
8686ac71
JB
72762009-09-17 Juanma Barranquero <lekktu@gmail.com>
7277
7278 * emacs.c (inhibit_x_resources): New variable.
7279 (main) [HAVE_NS]: Don't process --quick command line option.
7280 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7281
7282 * lisp.h (inhibit_x_resources): Declare it extern.
7283
7284 * w32reg.c (x_get_string_resource):
7285 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7286
e227ba05
EZ
72872009-09-17 Eli Zaretskii <eliz@gnu.org>
7288
362654a6
JB
7289 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7290 Add lisp/term/internal.elc.
e227ba05 7291
742d40e8
SM
72922009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7293
7294 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7295 (bug#4461).
7296
005bd5a2
DN
72972009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7298
7299 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7300
7301 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7302 (OBJECTS_MACHINE): Remove, unused.
7303
f9af9719
SM
73042009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7305
7306 * frame.c (x_get_resource_string): Remove unused.
7307
0307c7d2
JD
73082009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7309
7310 * xterm.c (x_new_font): Call change_frame_size before calling
7311 x_set_window_size, in case frame size won't change.
7312
7313 * frame.c (x_set_font): Remove dead code.
7314
428b13d6
SM
73152009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7316
7317 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7318
5766c380
SM
73192009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7320
7321 * lread.c (Fload): Don't output a message after loading an obsolete
7322 package any more (done in Lisp now).
7323
2fd0161b
CY
73242009-09-12 Chong Yidong <cyd@stupidchicken.com>
7325
7326 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7327
bc5e75b6
SM
73282009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7329
7330 * keymap.c (Fwhere_is_internal): Use nconc2.
7331
c31c985e
AM
73322009-09-11 Alan Mackenzie <acm@muc.de>
7333
7334 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7335 batch mode.
7336
78012bd2
AS
73372009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7338
7339 * xdisp.c (display_mode_element): Detect cycles.
7340
9d889332
SM
73412009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7342
7343 * keymap.c (where_is_internal): Don't erroneously return nil right after
7344 filling the cache.
7345 (where_is_internal_1): Fix up typo.
7346
7ab5d780
GM
73472009-09-11 Glenn Morris <rgm@gnu.org>
7348
7349 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7350 share a common doc-string.
7351
5238a749
SM
73522009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7353
66d77eda
SM
7354 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7355 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7356
5238a749
SM
7357 * keymap.c (QCadvertised_binding): New constant.
7358 (syms_of_keymap): Initialize it.
7359 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7360 if applicable.
7361
19f48442
SM
73622009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7363
50d4ba39
SM
7364 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7365 (parse_menu_item): Streamline since bindings are recomputed all the
7366 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7367 more and don't support lmenu's menu-alias any more either.
7368
a88a5372
SM
7369 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7370 (where_is_internal): Strip it down to only traverse the keymaps.
7371 Move the cache handling from Fwhere_is_internal to here.
7372 (Fwhere_is_internal): Move the handling of remapping and the choice of
7373 the best binding from where_is_internal to here.
7374 Unify the cached/noncached paths, so remapping is also handled
7375 correctly when the cache is used, and so the cache can be used to
7376 speed up remap-handling when applicable.
7377 Give preference to non-remapped bindings.
7378 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7379 non-remapped bindings.
7380 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7381 command remapping.
7382
19f48442
SM
7383 * xdisp.c (display_mode_element): Move list length limit from 50 to
7384 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7385
599498c3 73862009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
7387
7388 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7389
f9b7b5ac
SM
73902009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7391
a53af587
JB
7392 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7393 (Bug#4334)
7394
f9b7b5ac
SM
7395 * keymap.c (where_is_internal): Filter out shadowed remappings.
7396 Assume that where_is_internal returns unshadowed bindings to simplify
7397 the code and get rid of the gotos. Use ASIZE.
7398
04f4b72d
JD
73992009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7400
4da146f2
JD
7401 * xterm.c (x_focus_changed): If we get a focusout and pointer
7402 is invisible, make it visible.
7403
04f4b72d
JD
7404 * xterm.h: Remove condition for declaration of
7405 x_*_window_to_frame.
7406
7cef7ce3
SM
74072009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7408
7409 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7410 initial terminal as well.
7411
a54fa5b7
JD
74122009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7413
7414 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 7415 x_menubar_window_to_frame.
a54fa5b7 7416
50426a04 7417 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
7418 (XTmouse_position): Do not return valid positions
7419 for clicks in the menubar and the toolbar for Gtk+.
7420
7421 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7422 if the widget for the event has the same top level as a frame,
7423 return the frame.
7424 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7425 internal windows, bug #4122.
7426 (x_non_menubar_window_to_frame): Remove.
7427
5a021dd0
GM
74282009-09-02 Glenn Morris <rgm@gnu.org>
7429
7430 * buffer.c (default-major-mode): Move most of the doc from here...
7431 (major-mode): ... to here.
7432
548fe2f3
NR
74332009-08-30 Nick Roberts <nickrob@snap.net.nz>
7434
7435 * process.c (wait_reading_process_output): Keep the descriptor
7436 when pty is used by a non-child process, e.g., in I/O buffer of
7437 GDB this allows inferior to be restarted.
7438
e0840eef
EZ
74392009-08-29 Eli Zaretskii <eliz@gnu.org>
7440
7441 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7442 both branches into one.
7443
82e98df4
SM
74442009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7445
7446 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7447 (main): Use enable-multibyte-characters rather than
7448 default-enable-multibyte-characters. Output a warning message when
7449 running a unibyte session.
7450
890617cb
YM
74512009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7452
7453 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7454 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7455 (copy_data_segment): Also copy __program_vars section.
7456 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7457 (dump_it) [LC_DYLD_INFO]: Use it.
7458
7459 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7460
e7adeadc
EZ
74612009-08-28 Eli Zaretskii <eliz@gnu.org>
7462
7463 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7464 $(SRC)/buildobj.h.
7465 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7466 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7467 $(SRC)/buildobj.h.
7468 (clean): Add buildobj.h.
7469
3ed8bbdc
TZ
74702009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7471
7472 * print.c (print_object): Set escapeflag to 1 when printing
7473 hashtable keys and values.
7474
155a6764
SM
74752009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7476
7477 * lread.c (read_integer): Use doubles (and potentially return a float
7478 number) as we do in string-to-number.
7479 (read1): Use strtol to read integers, signal errors on strtol's
7480 overflow and use floats if strtol's output is too large for
7481 Elisp integers.
7482
877610de
EZ
74832009-08-27 Eli Zaretskii <eliz@gnu.org>
7484
7485 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7486 (make-buildobj-SH): Fix last change.
7487 (SRC): Move to before where it's first used.
7488
ef73e7be
KH
74892009-08-27 Kenichi Handa <handa@m17n.org>
7490
550c8289
KH
7491 * process.c (send_process): Use encode_coding_object instead of
7492 encode_coding_string to perform eol-conversion even if the string
7493 is unibyte.
7494
60afa08d
KH
7495 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7496 character.
7497
ef73e7be 7498 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 7499 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 7500
7b3a82d7
DN
75012009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7502
5654bf63
DN
7503 * callproc.c (Fcall_process): Remove always true #if.
7504
7b3a82d7
DN
7505 * lisp.h: Replace #if 0 code for checking with text pointing to
7506 the --enable-checking configure flag.
7507
7508 * emacs.c (main): Mention the --enable-profiling configure flag
7509 instead of using CFLAGS.
7510
878bde49
KR
75112009-08-26 Ken Raeburn <raeburn@raeburn.org>
7512
7513 * Makefile.in (buildobj.h): New target.
7514 (doc.o): Depend on it.
7515 (temacs${EXEEXT}): Don't generate buildobj.lst.
7516 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7517 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7518 ($(BLD)/doc.$(O)): Depend on it.
7519 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7520 provided by Eli Zaretskii.)
7521 ($(TEMACS)): Don't generate buildobj.lst.
7522 * doc.c: Include buildobj.h.
7523 (buildobj): New static variable.
7524 (Fsnarf_documentation): Use it, instead of opening and reading
7525 buildobj.lst.
7526
1574224c
MA
75272009-08-25 Michael Albinus <michael.albinus@gmx.de>
7528
7529 * dbusbind.c (Fdbus_call_method)
7530 (Fdbus_call_method_asynchronously): Use English numeric format for
7531 timeout values in doc string.
7532
d9da2f45
KH
75332009-08-25 Kenichi Handa <handa@m17n.org>
7534
ef73e7be
KH
7535 * alloc.c (mark_char_table): New function.
7536 (mark_object): Use mark_char_table for a char-table.
7537
d9da2f45
KH
7538 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7539 (CHAR_TABLE_REF): Use it.
7540
c8edcc01
KR
75412009-08-23 Ken Raeburn <raeburn@raeburn.org>
7542
7543 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7544 before invoking the newly build emacs to check for load-path
7545 shadowing.
7546
7763401b
GM
75472009-08-22 Glenn Morris <rgm@gnu.org>
7548
7549 * Makefile.in (bootstrap_exe): New variable.
7550 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7551 Use ${bootstrap_exe}.
7552
729eadda
EZ
75532009-08-22 Eli Zaretskii <eliz@gnu.org>
7554
7555 * coding.h (encode_coding_string): Don't encode unibyte strings.
7556 (Bug#4047)
7557
eb4c6ace
MA
75582009-08-22 Michael Albinus <michael.albinus@gmx.de>
7559
7560 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7561
7562 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7563 intended as hotfix only.
7564 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7565
36e34d1b
AR
75662009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7567
7568 * nsterm.m (ns_get_color): Update documentation properly for last
7569 change, and clean up loose ends in the code left by it. Fix
7570 longstanding bug with 16-bit hex parsing, and add support for
7571 yet another X11 format (rgb:r/g/b) for compatibility.
7572 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7573 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7574
f983eb8a
SM
75752009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7576
7577 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7578
3f56d3c6
MA
75792009-08-20 Michael Albinus <michael.albinus@gmx.de>
7580
7581 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7582 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7583 (xd_initialize, xd_pending_messages): Check, whether
7584 $DBUS_SESSION_BUS_ADDRESS is set.
7585
fb641d68
YM
75862009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7587
7588 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7589
7590 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7591
cf59a374
GM
75922009-08-20 Glenn Morris <rgm@gnu.org>
7593
7594 * emacs.c (system-type): Doc fix.
7595
1373f3be
SM
75962009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7597
7598 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7599 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7600
058ed861
MA
76012009-08-18 Michael Albinus <michael.albinus@gmx.de>
7602
1373f3be
SM
7603 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7604 New functions.
058ed861
MA
7605 (xd_initialize): Revert change from 2009-08-16.
7606
563a866e 76072009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
7608
7609 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 7610 font-group vector, return nil.
5fc05db0 7611
e42bdf01
CY
76122009-08-17 Chong Yidong <cyd@stupidchicken.com>
7613
7614 * process.c (status_notify): Don't perform redisplay.
7615 (Fdelete_process, list_processes_1, process_send_signal):
7616 Expliticly perform redisplay.
7617 (wait_reading_process_output): Always check process status, but
7618 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7619
4230ab74
KR
76202009-08-17 Ken Raeburn <raeburn@raeburn.org>
7621
1373f3be 7622 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
7623 (XFLOAT_INIT): New macro for storing a float value.
7624 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7625 * fns.c (sxhash): Copy out the value of a float in order to
7626 examine its bytes.
7627 * dbusbind.c (xd_append_arg): Likewise.
7628
4230ab74
KR
7629 * emacs.c (main): Don't call syms_of_data twice.
7630
a0645cdd
MA
76312009-08-16 Michael Albinus <michael.albinus@gmx.de>
7632
7633 * dbusbind.c (xd_initialize): Add connection file descriptor to
7634 input_wait_mask, in order to let select() detect, whether a new
7635 message has been arrived.
ca4f31ea 7636 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 7637
485db0ba
MA
76382009-08-15 Michael Albinus <michael.albinus@gmx.de>
7639
1373f3be
SM
7640 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7641 New functions.
485db0ba
MA
7642
7643 * lisp.h (xd_pending_messages): Declare.
7644
7645 * keyboard.c (readable_events): Call xd_pending_messages.
7646
b5b98ff4
CY
76472009-08-15 Chong Yidong <cyd@stupidchicken.com>
7648
1373f3be 7649 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 7650
f8354c6e
CY
7651 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7652
b5b98ff4
CY
7653 * buffer.c (set_buffer_internal_1)
7654 (swap_out_buffer_local_variables): Check for unbound local
7655 variables (Bug#4138).
7656
8b9fc636
EZ
76572009-08-14 Eli Zaretskii <eliz@gnu.org>
7658
7659 * process.c (create_pty): Fix last change.
7660
ce959360
CY
76612009-08-13 Chong Yidong <cyd@stupidchicken.com>
7662
7663 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7664 (xbm_load_image): Caller changed.
64b807c9 7665 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 7666
c7baf7e9
NR
76672009-08-13 Nick Roberts <nickrob@snap.net.nz>
7668
7669 * process.c (create_pty): New function.
7670 (Fstart_process): Use it to allow Emacs to just associate a pty
7671 with the buffer. See associated change in gdb-mi.el.
7672 (list_processes_1): Deal with no program name.
7673 (start_process_unwind): Use pid == -2 to mean no process.
7674
1ac9108a
SM
76752009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7676
7677 * cmds.c (nonundocount): New global variable.
7678 (keys_of_cmds): Initialize it.
7679 (Fself_insert_command): Use it to combine upto 20 sequential chars
7680 into a single undo entry, just like the Qself_insert_command code in
7681 keyboard.c does.
7682 Call frame_make_pointer_invisible, also like the Qself_insert_command
7683 code in keyboard.c does.
7684 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7685 than its own local replacement for it.
7686
e267324c
KR
76872009-08-10 Ken Raeburn <raeburn@raeburn.org>
7688
1ac9108a 7689 * fns.c (concat): Don't re-set string length to its current value.
77437343 7690
1ac9108a
SM
7691 * coding.h (decode_coding_string, encode_coding_string):
7692 Use SBYTES macro.
f0bed503 7693
1ac9108a 7694 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
7695 (doprnt): Merge with doprnt1, discarding lispstrings code.
7696 * lisp.h (doprnt_lisp): Don't declare.
7697
416e006d
JL
76982009-08-07 Juri Linkov <juri@jurta.org>
7699
7700 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7701
6f7d5780
DN
77022009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7703
7704 * print.c (syms_of_print): Undo previous change.
7705
f19a0f5b
TZ
77062009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7707
7708 * lread.c (read1, syms_of_lread): Read hashtables back from the
7709 readable format.
7710
7711 * print.c (print_preprocess, print_object): Print hashtables fully
7712 and readably.
7713 (syms_of_print): Provide 'hashtable-print-readable.
7714
b9173dc2
AR
77152009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7716
7717 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7718 no family set.
7719 (nsfont_open): Handle case when entity has no family.
7720
1586503c
AR
77212009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7722
7723 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7724 element, not a list, for match case.
7725
087048cd
KH
77262009-07-28 Kenichi Handa <handa@m17n.org>
7727
7728 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7729 rigidly.
7730
7731 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7732 font_parse_xlfd. Check font properties more rigidly.
7733
780c2506
DN
77342009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7735
31fd7c5c
JB
7736 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7737 bsd-common.h.
780c2506 7738
a8c0cc18
KH
77392009-07-27 Kenichi Handa <handa@m17n.org>
7740
7741 * xfaces.c (face_with_height): Call font_clear_prop.
7742
4fbe2306
CY
77432009-07-26 Chong Yidong <cyd@stupidchicken.com>
7744
111d9af3
CY
7745 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7746
7747 * xterm.c (x_term_init): Use Qx.
7748
4fbe2306
CY
7749 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7750
1ac9108a 7751 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
7752 (ns_get_color): Revert 2009-07-16 change.
7753
beb0b7f9
EZ
77542009-07-25 Eli Zaretskii <eliz@gnu.org>
7755
7756 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 7757 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 7758
2baf5e76
KR
77592009-07-25 Ken Raeburn <raeburn@raeburn.org>
7760
1ac9108a
SM
7761 * coding.h (decode_coding_string, encode_coding_string):
7762 Use SCHARS macro.
8890e5f5 7763
2baf5e76 7764 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 7765 (load_depth): Delete.
2baf5e76
KR
7766 (Qload_in_progress): New variable.
7767 (load_unwind): Don't reference load_depth or load_in_progress.
7768 (Fload): Likewise; specbind Qload_in_progress instead.
7769 (init_lread): Don't initialize load_depth.
7770 (syms_of_lread): Initialize and protect Qload_in_progress.
7771
1395c6f5
AR
77722009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7773
7774 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7775
4e2f36cf
AR
77762009-07-23 Yavor Doganov <yavor@gnu.org>
7777
7778 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7779
5dd9a6f7
AR
77802009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7781
7782 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
7783 Bugs 3792, 3720, 2402.
7784 (ns_lookup_indexed_color): Check for bad index.
7785 (ns_index_color): Init unused slot to 0.
7786 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7787 Bug 3714, possibly 3082.
5dd9a6f7 7788
c902b920
JR
77892009-07-22 Jason Rumney <jasonr@gnu.org>
7790
1ac9108a
SM
7791 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7792 Position IME window at cursor (Bug#2570).
c902b920
JR
7793 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7794 (globals_of_w32fns): Dynamically load functions required above.
7795
7796 * w32term.c (w32_draw_window_cursor): Send message to reposition
7797 any IME window.
7798
090101cf
CY
77992009-07-21 Chong Yidong <cyd@stupidchicken.com>
7800
7801 * fileio.c: Revert 2009-07-16 changes.
7802 (Vauto_save_include_big_deletions): New variable.
7803 (Fdo_auto_save): Disable auto-save only if
7804 auto-save-include-big-deletions is nil.
7805
e6583e3d
CY
78062009-07-21 Chong Yidong <cyd@stupidchicken.com>
7807
7808 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7809 the overflowed pixels into account (Bug#3879).
7810
ece435a5
KR
78112009-07-21 Ken Raeburn <raeburn@raeburn.org>
7812
7813 * lread.c (load_depth): New variable.
7814 (Fload, load_unwind, init_lread): Set it to the load recursion
7815 depth; set load_in_progress as a simple boolean based on the
7816 current load_depth. (Bug#3892)
7817
40b2d973
AR
78182009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7819
7820 * nsfont.m (ns_has_attribute): Remove.
7821 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7822
10be7e0d
JL
78232009-07-18 Juri Linkov <juri@jurta.org>
7824
7825 * process.c (Fset_process_query_on_exit_flag): Mention killing
7826 a buffer in docstring.
7827
fa055055
KH
78282009-07-17 Kenichi Handa <handa@m17n.org>
7829
7830 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7831
042f7b69
YM
78322009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7833
7834 * nsfns.m (Fns_set_alpha): Remove function.
7835 (syms_of_nsfns): Don't defsubr it.
7836
7837 * nsterm.m (ns_get_color): Remove incompatible color formats.
7838 (ns_color_to_lisp): Generate #rrggbb color format string.
7839
4be941e3
RS
78402009-07-16 Richard Stallman <rms@gnu.org>
7841
7842 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7843 (Fset_buffer_auto_saved): Handle save_length = -2.
7844
4e6b227d
CY
78452009-07-16 Chong Yidong <cyd@stupidchicken.com>
7846
7847 * xterm.c (Qx_gtk_map_stock): New var.
7848
7849 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7850 of calling intern each time.
7851
a1856973
YM
78522009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7853
7854 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7855 does tiling.
7856
7857 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7858
497e54d8
KH
78592009-07-14 Kenichi Handa <handa@m17n.org>
7860
72d36834
KH
7861 * font.c (font_vconcat_entity_vectors): New function.
7862 (struct font_sort_data): New member font_driver_preference.
7863 (font_compare): Check font_driver_preference.
7864 (font_sort_entities): The format of the first argument changed.
7865 (font_delete_unmatched): Likewise.
7866 (font_list_entities): The return type changed.
7867 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
7868 (font_find_for_lface): Adjuste for the above changes.
7869 Don't suppress the checking of C even if the repertory supports it.
7870 (Flist_fonts): Adjust for the above changes.
72d36834 7871
1ac9108a
SM
7872 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7873 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
7874 Reject a font who has adstyle property that is different from a
7875 langname derived from registry property.
1ac9108a 7876 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 7877
b6046155
EZ
78782009-07-13 Eli Zaretskii <eliz@gnu.org>
7879
7880 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7881 local copy of dirfilename.
7882
fb6b6049
KH
78832009-07-13 Kenichi Handa <handa@m17n.org>
7884
e2402a5e
KH
7885 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7886 against max_char.
7887
fb6b6049
KH
7888 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7889 calling XSYMBOL (sym).
7890
65156807
EZ
78912009-07-11 Eli Zaretskii <eliz@gnu.org>
7892
1ac9108a
SM
7893 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7894 New function.
7895 (directory_files_internal) [WINDOWSNT]:
7896 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
7897 the filesystem of the directory is fast or slow.
7898
7899 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7900 file name.
7901 (is_slow_fs): New function.
7902 (stat): Use it to determine whether to issue more system calls to
7903 get accurate file attributes, when w32-get-true-file-attributes is
7904 `local'.
7905
e0ab5fcf
JD
79062009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7907
7908 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7909 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7910 parameter font-parameter as default to the font dialog.
7911
784ceded
KH
79122009-07-10 Kenichi Handa <handa@m17n.org>
7913
7914 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7915
fb8edc0b
EZ
79162009-07-09 Eli Zaretskii <eliz@gnu.org>
7917
1ac9108a 7918 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7919
fb8edc0b
EZ
7920 * w32.c (stat): Treat UNC file names as residing on remote
7921 drives. (Bug#3542)
7922
635c75b1
KH
79232009-07-09 Kenichi Handa <handa@m17n.org>
7924
7925 * fontset.c (fontset_find_font): Fix previous change.
7926
c1d5ce94
MA
79272009-07-08 Michael Albinus <michael.albinus@gmx.de>
7928
7929 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7930 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7931 error flag.
7932
edb61b39
KH
79332009-07-08 Kenichi Handa <handa@m17n.org>
7934
374bf7e4
KH
7935 * fontset.c (fontset_find_font): Fix the logic of handling
7936 charset_matched.
7937 (font_for_char): Delete unused var.
7938 (generate_ascii_font_name): Delete it.
7939
edb61b39
KH
7940 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7941
7942 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7943 (encode_coding_sjis): Fix the code range check.
7944
0f3f018c
CY
79452009-07-07 Chong Yidong <cyd@stupidchicken.com>
7946
7947 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7948 (Fexpand_file_name): Copy string data properly (Bug#3772).
7949
fcaf6f3a
JD
79502009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7951
7952 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7953 first MapNotify.
7954
6809ca75
KH
79552009-07-07 Kenichi Handa <handa@m17n.org>
7956
7957 * character.h (unibyte_has_multibyte_table): Delete extern.
7958 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7959
7960 * charset.c (Fset_charset_priority): Update charset_unibyte.
7961 (syms_of_charset): Initialize charset_unibyte.
7962
7963 * character.c (unibyte_has_multibyte_table): Delete it.
7964 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7965 charset_unibyte.
7966 (multibyte_char_to_unibyte_safe): Likewise.
7967 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7968
1ac9108a 7969 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
7970 (x_produce_glyphs): Likewise.
7971
7972 * .gdbinit (xcharset): Fix the treating $arg0.
7973
ad9e2d54
EZ
79742009-07-04 Eli Zaretskii <eliz@gnu.org>
7975
7976 Emulation of `getloadavg' on MS-Windows.
50426a04 7977 * w32.c: Include float.h.
ad9e2d54
EZ
7978 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7979 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7980 (get_native_system_info, get_system_times): New functions.
7981 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7982 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7983 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7984 g_b_init_get_system_times, and num_of_processors.
7985
0a3472c7
JR
79862009-07-03 Jason Rumney <jasonr@gnu.org>
7987
7988 * w32term.c (w32_initialize): Use standard types.
7989
80904120
EZ
79902009-07-03 Eli Zaretskii <eliz@gnu.org>
7991
7992 * dired.c (Ffile_attributes): Decode user and group names by the
7993 locale's encoding. (Bug#3443)
7994
6978862d
DN
79952009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7996
f8d23104
DN
7997 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7998 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7999
8000 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8001
8002 * term.c (init_tty): Remove spurious #ifdef.
8003
6978862d
DN
8004 * m/mips.h: Mention this file is also used for netbsd.
8005 * m/pmax.h: Remove file.
8006
e044e4fc
JD
80072009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8008
8009 * xterm.h (struct x_display_info): Add invisible_cursor.
8010 (struct x_output): Add current_cursor.
8011
8012 * xterm.c (XTtoggle_invisible_pointer): New function.
8013 (x_define_frame_cursor): Don't define cursor if invisible or the
8014 same as before. Set current_cursor.
8015 (x_create_terminal): Set toggle_invisible_pointer_hook.
8016
8017 * xfns.c (make_invisible_cursor): New function.
8018 (x_set_mouse_color): Call make_invisible_cursor.
8019 Set current_cursor.
8020 (x_window): Set current_cursor.
8021
8022 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8023
8024 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8025 inserting a character.
8026 (read_avail_input): Call frame_make_pointer_visible.
8027
8028 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
8029 (frame_make_pointer_invisible, frame_make_pointer_visible):
8030 New functions.
e044e4fc
JD
8031 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8032
8033 * frame.h: Declare frame_make_pointer_invisible and
8034 frame_make_pointer_visible.
8035 (struct frame): Add pointer_invisible.
8036
574c8efa
JD
80372009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8038
7b507248
JD
8039 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8040 frame isn't visible.
8041 (xg_frame_resized): If width/height is -1, get size of window
8042 from X server.
8043
8044 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8045 for MapNotify.
8046
835bdaa7 8047 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 8048 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 8049 (flush_and_sync): Reintroduce.
574c8efa 8050
3f1c6666 80512009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 8052
31fd7c5c 8053 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
8054
8055 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8056 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8057
8058 * frame.h: Declare Qsticky.
8059
cad9ef74
JD
8060 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8061
8062 * nsfns.m (ns_frame_parm_handlers): Ditto.
8063
8064 * frame.c: Declare Qsticky.
8065 (frame_parms): Add sticky.
8066
8067 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8068
8069 * xterm.h: Declare x_set_sticky.
8070
8071 * xterm.c (x_set_sticky): New function.
8072
69b16610
JD
8073 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8074 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8075 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
8076
8077 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8078
8079 * frame.c: Qmaximized is new.
8080 (x_set_frame_parameters): Do not handle fullscreen specially.
8081 Only set width and height if explicitly set.
8082 (x_set_fullscreen): Handle Qmaximized.
8083 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8084 (syms_of_frame): Initialize Qmaximized.
8085
1ac9108a
SM
8086 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8087 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
8088
8089 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
8090 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8091 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
8092 set gravity to NorthWestGravity when USE_GTK.
8093 (set_wm_state): New function.
31fd7c5c 8094 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
8095 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8096 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 8097 or the case when no window manager is running. That means remove calls
3f1c6666
JD
8098 to x_real_positions and x_fullscreen_adjust.
8099
8100 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8101 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8102 flush_and_sync.
8103 (xg_height_changed): New function.
8104 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
8105 and gtk_window_set_policy. Set frame gravity after parsing the
8106 geometry string.
3f1c6666
JD
8107 (xg_update_frame_menubar, free_frame_menubar)
8108 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8109 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8110 Remove calls to xg_frame_set_char_size.
8111
fd503d99
KH
81122009-07-01 Kenichi Handa <handa@m17n.org>
8113
8114 * keyboard.c (decode_keyboard_code): New function.
8115 (tty_read_avail_input): Decode the input bytes if necessary.
8116
1ac9108a
SM
8117 * coding.c (setup_coding_system):
8118 Initialize coding->carryover_bytes to 0.
fd503d99
KH
8119 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8120 use Qno_conversion.
8121
24ed93fb
YM
81222009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8123
8124 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8125
99061dfc
CY
81262009-06-30 Chong Yidong <cyd@stupidchicken.com>
8127
1ac9108a 8128 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 8129
ff90fbde
JR
81302009-06-30 Jason Rumney <jasonr@gnu.org>
8131
8132 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8133 is already loaded.
8134 Set user model ID if supported (bug#1849).
8135
5f445726
JM
81362009-06-29 Jim Meyering <meyering@redhat.com>
8137
8138 Remove useless if-before-xfree test.
8139 * nsfont.m (nsfont_close): Remove useless test.
8140 * term.c (delete_tty): Likewise.
8141 * w32.c (system_process_attributes): Likewise.
8142 * w32font.c (w32font_close): Likewise.
8143 * xfaces.c (x_free_gc): Likewise.
8144 * xselect.c (buffer): Likewise.
8145
b9607587
AS
81462009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8147
8148 * process.c (send_process): Keep decoded string in a local
8149 variable and protect it from GC. (Bug#3521)
8150
89ba96f4
EZ
81512009-06-28 Eli Zaretskii <eliz@gnu.org>
8152
8153 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8154 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8155
098a1589
CY
81562009-06-28 Chong Yidong <cyd@stupidchicken.com>
8157
485422be
CY
8158 * xdisp.c (start_display, handle_face_prop)
8159 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
8160 (redisplay_window, try_window_id, produce_image_glyph):
8161 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 8162
098a1589
CY
8163 * xterm.c (x_update_window_begin, x_new_focus_frame)
8164 (x_scroll_bar_handle_click, handle_one_xevent)
8165 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8166 (x_make_frame_visible, x_make_frame_invisible)
8167 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8168 code chunks that are now obsolete.
8169
78c38319
MA
81702009-06-28 Michael Albinus <michael.albinus@gmx.de>
8171
8172 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8173 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8174 for hours, when optimzation is enabled.
8175 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8176 (xd_read_message): Make them static.
8177
4189ed40
CY
81782009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8179
8180 * term.c (turn_on_face): Allow simultaneously bold and dim
8181 terminal faces (Bug#3530).
8182
cd9b5e16
CY
81832009-06-27 Chong Yidong <cyd@stupidchicken.com>
8184
4e23bedb
CY
8185 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8186
cd9b5e16
CY
8187 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8188 truncation glyphs (Bug#3686).
8189
07cc3c35
GM
81902009-06-27 Glenn Morris <rgm@gnu.org>
8191
8192 * m/pmax.h: Restore file, with only netbsd portions.
8193
31fd7c5c 81942009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 8195
cd9b5e16 8196 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 8197
42d4a64f
KH
81982009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8199
8200 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8201 the arg FORCE_SYMBOL.
8202
930fe55b 82032009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
8204
8205 * fontset.c (fontset_find_font): When a usable rfont_def is found
8206 in a fallback font-group, make it the first element of the group.
8207
57ebc3fd
CY
82082009-06-24 Chong Yidong <cyd@stupidchicken.com>
8209
8210 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8211
f084f942
KH
82122009-06-24 Kenichi Handa <handa@m17n.org>
8213
8214 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8215 set for C.
8216 (fontset_font): Record the availability of a font for C both in
8217 the realized fontsets of the current one and the default one.
8218
2f686c87
DN
82192009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8220
8221 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8222 conditional, it is always defined on AIX.
8223
666e158e
MB
82242009-06-23 Miles Bader <miles@gnu.org>
8225
8226 * window.c (Vrecenter_redisplay): New variable.
8227 (syms_of_window): Initialize it.
8228 (Qtty): New extern declaration.
8229 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8230
c6da7cd2
JM
82312009-06-23 Jim Meyering <meyering@redhat.com>
8232
1ac9108a
SM
8233 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8234 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 8235 pointer dereferences are guaranteed to be valid.
c6da7cd2 8236
678dca3d
KH
82372009-06-23 Kenichi Handa <handa@m17n.org>
8238
74d75424
KH
8239 * emacs.c (main): Call init_font ().
8240
8241 * font.h (Vfont_log): Extern it.
8242 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8243
8244 * font.c (font_sort_entities, font_list_entities)
8245 (font_matching_entity, font_open_entity)
8246 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8247 (Vfont_log): Delete static.
8248 (font_log_env_checked): Delete this variable.
8249 (font_add_log): Don't check font_log_env_checked.
8250 (font_deferred_log): Check Vfont_log.
8251 (init_font): New function.
8252
678dca3d
KH
8253 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8254
8255 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8256
8257 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8258
8259 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8260
8261 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8262 (face_for_char): Don't call font_deferred_log here.
8263 (font_for_char): Likewise.
8264
8a668709
CY
82652009-06-22 Chong Yidong <cyd@stupidchicken.com>
8266
9a01ee33
CY
8267 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8268 rather than its background_width for drawing the overline and
8269 underline (Bug#489).
8270
8271 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8272 rather than its background_width for drawing the overline and
8273 underline (Bug#489).
ec7c9926
CY
8274 (xg_default_icon_file): New variable.
8275 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8276 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 8277
8a668709
CY
8278 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8279 (load_overlay_strings): Remove externs.
8280 (fast_find_position): Function deleted.
8281 (mouse_face_from_buffer_pos): New function, based on
8282 fast_find_position. Correctly handle before-strings,
8283 display-strings, and after-strings (Bug#1220).
8284 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8285
4d4c02d8
CY
82862009-06-21 Chong Yidong <cyd@stupidchicken.com>
8287
1ac9108a 8288 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
8289 (move_it_in_display_line_to, move_it_in_display_line_to)
8290 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8291
70243478
CY
82922009-06-21 Chong Yidong <cyd@stupidchicken.com>
8293
8294 * Branch for 23.1.
8295
13087e59
JR
82962009-06-21 Jason Rumney <jasonr@gnu.org>
8297
8298 * w32term.c (keyboard_codepage): New static variable.
8299 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8300 (w32_read_socket) [WM_CHAR]: Use it to decode character
8301 input (bug#3237).
8302 (w32_initialize): Initialize it.
8303 (codepage_for_locale): New function.
8304
4735b74e
KR
83052009-06-20 Ken Raeburn <raeburn@raeburn.org>
8306
8307 * process.c (status_message): Pass Faset index argument as a lisp
8308 object, so as to work with USE_LISP_UNION_TYPE.
8309
0e727afa
YM
83102009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8311
8312 * coding.c (Ffind_coding_systems_region_internal):
8313 Cache checked characters.
8314
cf299835
KH
83152009-06-18 Kenichi Handa <handa@m17n.org>
8316
1ac9108a 8317 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 8318
90f20d94
AS
83192009-06-18 Andreas Schwab <aschwab@redhat.com>
8320
8321 * xdisp.c (redisplay_internal): Check that the frame is still
8322 live after redisplay of its windows.
8323 (redisplay_windows): Check that the window is still live.
8324
7f1faf1c
KH
83252009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8326
8327 * coding.c (detect_coding_utf_16): Fix previous change.
8328
cc13543e
KH
83292009-06-16 Kenichi Handa <handa@m17n.org>
8330
8331 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8332 UTF-16 by checking the dispersion of Eth and Oth bytes.
8333
977b85f4
AS
83342009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8335
8336 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8337
66bd43d1
KH
83382009-06-15 Kenichi Handa <handa@m17n.org>
8339
8340 * process.c (status_message): Fix previous change. Be sure to
8341 decode a localized string.
8342
cb5ca9c5
YM
83432009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8344
8345 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8346 add comment explaining why.
8347
ec7709ba 83482009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 8349
ec7709ba 8350 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 8351
4b7f335c
AR
83522009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8353
8354 * nsfont.m (ns_attribute_value): Remove.
8355 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8356 (ns_has_attribute): Shrink the normal range.
8357 (ns_findfonts): Don't worry about requested spec in determining
8358 need for synthItal.
e41820ee 8359 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 8360
73b26103
SZ
83612009-06-14 Seiji Zenitani <zenitani@mac.com>
8362
8363 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8364
5753e4da
KH
83652009-06-11 Kenichi Handa <handa@m17n.org>
8366
8367 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8368 overhang for the static composition case.
8369
3561b671
KH
83702009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8371
5753e4da
KH
8372 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8373 overhang for the automatic composition case.
8374
3561b671
KH
8375 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8376 composition case.
8377
852bbd41
CY
83782009-06-10 Chong Yidong <cyd@stupidchicken.com>
8379
8380 * xdisp.c (get_next_display_element): When handling wrap-prefix
8381 and line-prefix, treat \n as a control character (bug#3502).
8382
9903d1e6
KH
83832009-06-10 Kenichi Handa <handa@m17n.org>
8384
8385 * font.c (font_parse_family_registry): Fix for one-char foundry.
8386 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8387
0bcbaaaa
CY
83882009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8389
8390 * process.c (status_message): Fix handling of multibyte signal
8391 string (Bug#3499).
8392
40aa3f13
JM
83932009-06-09 Jim Meyering <meyering@redhat.com>
8394
1f80c7e2
CY
8395 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8396 color name is missing.
40aa3f13 8397
72d51285
KH
83982009-06-09 Kenichi Handa <handa@m17n.org>
8399
8400 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8401 FROM-CODE and TO-CODE are codepoints of CHARSET.
8402
c1d04d84
AR
84032009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8404
8405 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8406
84072009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8408
8409 Changes to support :script/:lang/:otf in NS font driver.
8410 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8411 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8412 indicate not part of font driver interface, and change callers.
8413 (ns_get_family): Remove pointless null check.
8414 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8415 ns_spec_to_descriptor, ns_descriptor_to_entity.
8416 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8417 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8418 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8419 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8420 (ns_get_req_script, ns_accumulate_script_ranges)
8421 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8422 New functions.
8423 (nsfont_list, nsfont_match): Use ns_findfonts.
8424 (nsfont_open): Use font descriptor instead of traits.
8425 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8426 (dump_glyphstring): Rename to ns_dump_glyphstring.
8427
c7eb9816
AR
8428 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8429
c1d04d84
AR
8430 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8431
8432 * fontset.c (fontset_from_font): Remove NS-specific code.
8433
ec7709ba 84342009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
8435
8436 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8437 nonactive windows.
8438
31fd7c5c 84392009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 8440
1ac9108a 8441 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 8442
68852c13 84432009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
8444
8445 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8446
6756cd1d
CY
84472009-06-07 Chong Yidong <cyd@stupidchicken.com>
8448
8449 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8450 account for the overflowing of newlines into the last glyph on the
8451 display line (Bug#3482).
8452
28bf482a
DR
84532009-06-05 David Reitter <david.reitter@gmail.com>
8454
ec7709ba
JB
8455 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8456 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
8457 Fns_selection_exists_p, Fns_selection_owner_p.
8458
fdb55376
JR
84592009-06-03 Jason Rumney <jasonr@gnu.org>
8460
8461 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8462 available. (Bug#3379)
8463
05129fbe
KH
84642009-05-29 Kenichi Handa <handa@m17n.org>
8465
1ac9108a
SM
8466 * coding.c (get_translation_table):
8467 Check Venable_character_translation.
05129fbe 8468
ec7709ba 84692009-05-26 David Reitter <david.reitter@gmail.com>
15891144 8470
ec7709ba
JB
8471 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8472 (x_make_frame_visible): Move frame to front rather than calling
15891144 8473 ns_raise_frame().
ec7709ba 8474 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 8475 isn't key window.
ec7709ba 8476 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
8477 drawRect may be called by NSView even if the frame is hidden.
8478
ec7709ba
JB
8479 * nsfns.m (Fx_create_frame): Follow other ports in
8480 determining visibility; default to t. Ensure async_visible is set.
15891144 8481
21f73755
EZ
84822009-05-23 Eli Zaretskii <eliz@gnu.org>
8483
8484 * dired.c (Ffile_attributes): Doc fix.
8485
34001e41
CY
84862009-05-22 Chong Yidong <cyd@stupidchicken.com>
8487
8488 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8489
46306a17
SM
84902009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8491
8492 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8493 and xfont_scratch_props.
8494 (syms_of_xfont): Do it here instead.
8495 (xfont_find_ccl_program): Delete, unused.
8496 (xfont_open): Delete unused var `i'.
8497
ef6e0694
KH
84982009-05-21 Kenichi Handa <handa@m17n.org>
8499
8500 * fontset.c (Qlatin): Don't make it static.
8501
46306a17
SM
8502 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8503 New functions.
ef6e0694
KH
8504 (xfont_scripts_cache, xfont_scratch_props): New variables.
8505 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
8506 (xfont_list_pattern): Argument changed. Callers changed.
8507 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
8508 (xfont_list): Don't reject a font spec with :script property.
8509 (xfont_has_char): Fix setting of encoding.
8510 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8511 xfont_scratch_props.
8512
85132009-05-19 Kenichi Handa <handa@m17n.org>
8514
46306a17 8515 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
8516 Callers changed.
8517
85182009-05-18 Kenichi Handa <handa@m17n.org>
8519
8520 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8521
ac71ced7
SM
85222009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8523
8524 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8525 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8526
1c6d1051
YM
85272009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8528
8529 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8530 (x_delete_terminal): Dissociate resource database from display and
8531 then call XrmDestroyDatabase before closing display.
8532
9b9b779c
AR
85332009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8534
8535 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
8536 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8537 whether selected frame is viable before raising it (based on patch
8538 by David Reitter), and improve commentary.
8539 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 8540
cccd42d5
KH
85412009-05-15 Kenichi Handa <handa@m17n.org>
8542
8543 * font.c (Ffont_spec): Check arguments.
8544
337fbd17
CY
85452009-05-14 Chong Yidong <cyd@stupidchicken.com>
8546
8547 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8548 weight when testing attributes (Bug#3282).
8549
47a6002f
JD
85502009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8551
8552 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8553 what we expect to get in the next ConfigureNotify event.
8554
9cb363db
YM
8555 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8556 before Xft one (Bug#1696).
8557
b9126609
CY
85582009-05-07 David Reitter <david.reitter@gmail.com>
8559
8560 * nsfns.m (Fx_display_planes): Compute bitplanes using
8561 NSBitsPerPixelFromDepth (Bug#3207).
8562
27a69fd9
CY
85632009-05-10 Chong Yidong <cyd@stupidchicken.com>
8564
8565 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8566
00f37552
TTN
85672009-05-10 Ulrich Mueller <ulm@gentoo.org>
8568
8569 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8570
2d82a920
DR
85712009-05-07 David Reitter <david.reitter@gmail.com>
8572
ec7709ba
JB
8573 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8574 Respect mouse face background.
2d82a920 8575
46b0d52d
DR
85762009-05-07 David Reitter <david.reitter@gmail.com>
8577
ec7709ba
JB
8578 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8579 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
8580 in ns_update_begin and ns_update_end.
8581
ce1b23bb
SM
85822009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8583
5996e1b7
SM
8584 * nsfns.m (ns_get_screen): Rewrite.
8585 Don't presume selected-frame is of type `ns'.
8586
ba98e3a0
SM
8587 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8588 all drivers.
8589
ce1b23bb
SM
8590 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8591
bcda200f
YM
85922009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8593
8594 * keyboard.h (add_user_signal): Fix typo in extern.
8595
8596 * lisp.h (add_user_signal): Remove extern.
8597
8598 * unexelf.c (unexec): Consider a section to precede the .bss section
8599 if its addresses overlap that of .bss.
8600 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8601 instead of dumping process.
8602
864660a2
SM
86032009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8604
8605 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8606
50da4e56
SM
86072009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8608
8609 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8610
51520a1a
DN
86112009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8612
8613 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8614 any statements.
8615
409ea3a1
AS
86162009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8617
59c4c60f
AS
8618 * process.c (read_process_output): Make sure the current buffer is
8619 always restored.
8620
409ea3a1
AS
8621 * coding.c (record_conversion_result): Don't modify
8622 Vlast_code_conversion_error for successful result.
8623 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8624
56f00ed2
KH
86252009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8626
8627 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 8628 (load_charset_map): Remove unnecessary code.
56f00ed2 8629
4491c9d2
DR
86302009-04-30 David Reitter <david.reitter@gmail.com>
8631
35f5b128 8632 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
8633 through f24.
8634
6970f632
CY
86352009-04-30 Chong Yidong <cyd@stupidchicken.com>
8636
8637 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8638
8639 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8640 face_at_buffer_position.
8641 (face_before_or_after_it_pos, get_next_display_element)
8642 (note_mouse_highlight): Update face_at_buffer_position call.
8643
8644 * term.c (term_mouse_highlight):
8645 * msdos.c (IT_note_mouse_highlight):
8646 * fontset.c (Finternal_char_font):
35f5b128 8647 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
8648
8649 * dispextern.h (face_at_buffer_position): Update prototype.
8650
0c616f63
KH
86512009-04-30 Kenichi Handa <handa@m17n.org>
8652
35f5b128 8653 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 8654
ad3aaf33
AS
86552009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8656
8657 * callproc.c (Fcall_process): Fix GC protection. Make sure
8658 current buffer is always restored.
8659
c3c963a0
YM
86602009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8661
8662 * atimer.c (init_atimer): Also clear stopped_atimers.
8663
8664 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8665
7e3386cb
YM
8666 * process.c (create_process): Clean up merger residues of
8667 2008-07-17 change.
8668
91f68422
CY
86692009-04-29 Ulrich Mueller <ulm@gentoo.org>
8670
8671 * lread.c (Vread_circle): New variable.
8672 (read1): Disable recursive read if Vread_circle is nil.
8673
24b34550
KH
86742009-04-29 Kenichi Handa <handa@m17n.org>
8675
8676 * fontset.h (set_default_ascii_font): Delete extern.
8677
8678 * fontset.c (set_default_ascii_font): Delete this unused function.
8679
8680 * frame.c (x_set_font): When ARG is a font-object, check if the
8681 font-object matches with the ASCII font-spec of the frame's
9c358bda 8682 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 8683
77bf07e1
AS
86842009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8685
8686 * fns.c (Flocale_info): Protect vector from GC during decoding.
8687
8688 * process.c (Fstart_process): Protect argv strings from GC during
8689 encoding.
8690
2c55aacf
AS
86912009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8692
8693 * sysdep.c: Include <ctype.h>.
8694
b892d3c9
DR
86952009-04-27 David Reitter <david.reitter@gmail.com>
8696
35f5b128 8697 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
8698 Remove commented-out code.
8699
9d0644c4
JB
87002009-04-26 Johan Bockgård <bojohan@gnu.org>
8701
8702 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8703
b7053016
JR
87042009-04-25 Jason Rumney <jasonr@gnu.org>
8705
8706 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8707
4e8231f3
YM
87082009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8709
8710 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8711 Swap bytes in short integer if fringe bitmap width > 8.
8712
493dcf2c
KH
87132009-04-23 Kenichi Handa <handa@m17n.org>
8714
8715 * xfaces.c (Fx_list_fonts): If a font size is specified in
8716 PATTERN, set it in returned scalable fonts.
8717
401e9e57
CY
87182009-04-22 Chong Yidong <cyd@stupidchicken.com>
8719
708e05dc
CY
8720 * keyboard.c (Fset_input_meta_mode): Doc fix.
8721
8722 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8723
1ac9108a 8724 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
8725
8726 * coding.c (Fterminal_coding_system): Doc fix.
8727
8728 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8729 (Fx_display_pixel_height, Fx_display_planes)
8730 (Fx_display_color_cells, Fx_server_max_request_size)
8731 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8732 (Fx_display_mm_height, Fx_display_mm_width)
8733 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
8734 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8735 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
8736 (check_x_display_info): Handle terminal objects instead of
8737 terminal ids.
8738
401e9e57
CY
8739 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8740 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
8741 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8742 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 8743
df80c7f0
KH
87442009-04-21 Kenichi Handa <handa@m17n.org>
8745
5a8f12af 8746 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 8747 (font_score): Check AVGWIDTH too.
908567ef 8748
df80c7f0
KH
8749 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8750 worst case.
1ac9108a
SM
8751 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8752 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 8753
705af33f
JR
87542009-04-19 Jason Rumney <jasonr@gnu.org>
8755
8756 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 8757 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
8758
8759 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8760 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8761 get_phys_cursor_geometry.
8762
b71ac3dd 8763 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
8764 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8765 using get_phys_cursor_geometry.
8766
8767 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8768 correctly calculated.
8769
dc2933eb
JD
87702009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8771
1ac9108a
SM
8772 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8773 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
8774 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8775 is deprecated.
8776
973e7849
AS
87772009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8778
8779 * font.c (font_put_frame_data): Use xfree instead of free.
8780
314d66f4
JB
87812009-04-17 Juanma Barranquero <lekktu@gmail.com>
8782
8783 * w32font.c (Qja, Qko): Remove declarations.
8784 (syms_of_w32font): Don't DEFSYM them.
8785
cf702558
CY
87862009-04-17 Chong Yidong <cyd@stupidchicken.com>
8787
8788 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8789
8790 * font.h (Qja, Qko): Extern them.
8791
8792 * ftfont.c (Qja, Qko): Remove declarations.
8793
8794 * xfont.c (Qja, Qko): Remove declarations.
8795
b50504f5
KH
87962009-04-17 Kenichi Handa <handa@m17n.org>
8797
bde25748
KH
8798 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8799 string from a vector to handle Latin-1 characters correctly.
8800
b50504f5
KH
8801 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8802 entity even if the cache hits.
8803
f4646fff
AS
88042009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8805
8806 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 8807 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 8808
e7deaab0
AS
8809 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8810 * lisp.h: Adjust prototypes.
8811
0a0e7d49
CY
88122009-04-16 Chong Yidong <cyd@stupidchicken.com>
8813
8814 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8815 change (Bug#3003).
8816
3c908a57
KH
88172009-04-16 Kenichi Handa <handa@m17n.org>
8818
1ac9108a 8819 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
8820
8821 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8822 adstyle.
8823
8824 * ftfont.c (Qja, Qko): Don't make them static.
8825 (enum ftfont_cache_for): New enum.
8826 (fc_charset_table): Undo the previous change.
8827 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
8828 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8829 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
8830 non-scarable font, try to get AVERAGE_WIDTH.
8831 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8832 Change ft_face_cache from a list of a hash-table. Don't check
8833 `ja' and `ko' adstyle here.
8834 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8835 FTFONT_CACHE_FOR_CHARET.
8836 (ftfont_get_charset): Undo the previous change.
1ac9108a 8837 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
8838 (ftfont_close): Likewise.
8839 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8840
8841 * font.c (font_sort_entites): Change the meaning of the arg
8842 BEST-ONLY. Don't optimize for VEC of lenght 1.
8843 (font_select_entity): Just return the value of font_sort_entites.
8844
8845 * xfaces.c (merge_face_vectors): Reflect font properties in
8846 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8847 font_clear_prop if a face attribute doesn't change.
8848
3c908a57
KH
8849 * charset.h (charset_ksc5601): Extern it.
8850
8851 * charset.c (charset_ksc5601): New variable.
8852 (Fdefine_charset_internal): Set charset_ksc5601.
8853 (init_charset_once): Initialize charset_ksc5601 to -1.
8854
d65859c3
DN
88552009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8856
8857 * fileio.c (history_delete_duplicates): Remove unused declaration.
8858
8859 * callint.c (history_delete_duplicates): New declaration.
8860 (Fcall_interactively): Remove command history duplicates when
8861 history_delete_duplicates is true.
8862
3ba010e5
EZ
88632009-04-14 Eli Zaretskii <eliz@gnu.org>
8864
8865 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8866
06f19b91
KH
88672009-04-14 Kenichi Handa <handa@m17n.org>
8868
8869 * font.c (Ffont_info): Fix docstring. Fix the second element of
8870 the returned value (bug#2949).
8871
2cce8bfc
CY
88722009-04-14 Chong Yidong <cyd@stupidchicken.com>
8873
8874 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8875
d156542d
KH
88762009-04-14 Kenichi Handa <handa@m17n.org>
8877
8878 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8879 encoding charset is ascii_compatible.
8880
8881 * charset.c (Fdefine_charset_internal): Make charset
8882 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8883 code_offset is 0, and covers all ASCII characters.
8884
86fa089e
SM
88852009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8886
8887 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8888 (ns_string_to_pasteboard_internal):
8889 * nsmenu.m (process_dialog):
8890 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8891 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8892 * lisp.h (Fx_load_color_file): Declare.
8893
a8a3728b
KH
88942009-04-13 Kenichi Handa <handa@m17n.org>
8895
1ac9108a 8896 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
8897 (font_select_entity): Suppress the code to optimize for the same
8898 kind of fonts.
8899 (font_load_for_lface): Get a font that supports at least ASCII
8900 characters.
8901
8902 * ftfont.c (Qja, Qko): New variables.
8903 (fc_charset_table): Delete uniquifier data for iso8859-1.
8904 (ftfont_get_latin1_charset): New function.
8905 (get_adstyle_property): New function.
8906 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8907 bitmap fonts.
8908 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8909 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8910 `ko' or `ja'.
8911 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8912 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8913 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8914 property.
8915 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8916 (syms_of_ftfont): DEFSYM Qja and Qko.
8917
483670b5
KH
89182009-04-09 Kenichi Handa <handa@m17n.org>
8919
12b55765
KH
8920 * charset.c (map_charset_chars): For a charset of `superset'
8921 method, fix calculation of code range.
8922
483670b5
KH
8923 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8924 from the list of extra properties.
8925 (font_clear_prop): Be sure to delete `:name' font property.
8926
57d3b93b
KH
89272009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8928
b4b2c2ca
YM
8929 * dispnew.c (redraw_overlapping_rows): Fix detection of
8930 overlapping for topmost and bottommost rows.
8931
1ac9108a 8932 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8933
472c3609
JR
89342009-04-06 Jason Rumney <jasonr@gnu.org>
8935
8936 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8937
ab193662
KH
89382009-04-06 Kenichi Handa <handa@m17n.org>
8939
8940 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8941
8942 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8943
0c26f026
KH
89442009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8945
8946 * ftfont.c (ftfont_open): Fix checking of the return value of
8947 FT_Load_Char. Fix setting font->underline_thickness.
8948
e173bbce
CY
89492009-04-04 Chong Yidong <cyd@stupidchicken.com>
8950
8951 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8952 (Fterminal_parameters, Fterminal_parameter)
8953 (Fset_terminal_parameter): In doc string, refer to terminal
8954 objects rather than terminal ids.
8955
693a2698
EZ
89562009-04-04 Eli Zaretskii <eliz@gnu.org>
8957
8958 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8959 ret_lim_data. (Bug#2867)
8960
d5221487
CY
89612009-04-03 Chong Yidong <cyd@stupidchicken.com>
8962
8963 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8964 so they don't get wider than the window, matching 2006-01-23
8965 change to the partner function in xdisp.c (Bug#2800).
8966
223509a3
KH
89672009-04-03 Kenichi Handa <handa@m17n.org>
8968
8969 * print.c (print_object): Make each lowest sub_char_table start a
8970 new line (Bug#2866).
8971
74fcd0b1
KH
89722009-04-02 Kenichi Handa <handa@m17n.org>
8973
8974 * fontset.c (fontset_font): Record no-font when a fontset
8975 explicitly tells not to try another font-specs.
8976
c542407d
SM
89772009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8978
8979 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8980
e3869731
KH
89812009-03-30 Kenichi Handa <handa@m17n.org>
8982
d8d2f142
KH
8983 * fontset.c (fontset_from_font): Specify only registry in a
8984 font-spec for all characters supported by that registry.
8985
e3869731
KH
8986 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8987 even if HAVE_M17N_FLT is not defined.
8988
5da5f805
CY
89892009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8990
8991 * ftfont.c: Conditionalize prototyping and use of
8992 ftfont_variation_glyphs.
8993
ab226c50
SM
89942009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8995
9628fed7
SM
8996 * frame.c (delete_frame): Work around compiler bug.
8997
8998 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8999 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9000 Some more EMACS_INT.
9001 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9002
9003 * xdisp.c (dump_glyph): Fix typo.
9004
ae19ba7c
SM
9005 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9006 (adjust_markers_gap_motion, adjust_markers_for_delete)
9007 (adjust_markers_for_insert, adjust_point)
9008 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9009 (make_gap, copy_text, count_size_as_multibyte, insert)
9010 (insert_and_inherit, insert_before_markers)
9011 (insert_before_markers_and_inherit, insert_1)
9012 (count_combining_before, count_combining_after, insert_1_both)
9013 (insert_from_string, insert_from_string_before_markers)
9014 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9015 (insert_from_buffer_1, adjust_after_replace)
9016 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9017 (replace_range_2, del_range, del_range_1, del_range_byte)
9018 (del_range_both, del_range_2, modify_region)
9019 (prepare_to_modify_buffer, signal_before_change)
9020 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9021 for buffer positions and sizes.
9022 * lisp.h: Adjust prototypes accordingly.
9023
9024 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9025 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9026 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9027
ab226c50
SM
9028 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9029
46dfb8fb
JD
90302009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9031
9032 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9033 lines and columns so we keep the same pixel height and width.
9034
9035 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9036 the property _NET_WM_STATE has changed.
46dfb8fb
JD
9037 (x_handle_net_wm_state): New function to update frame parameter
9038 fullscreen.
9039 (x_term_init): Initialize atoms for _NET_WM_STATE.
9040
9041 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9042
d347e494
SM
90432009-03-27 Kevin Ryde <user42@zip.com.au>
9044
9045 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9046 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9047 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9048 (Fgpm_mouse_stop): Pass that new parameter.
9049 * termhooks.h (close_gpm): Adjust prototype.
9050
84db11d6
SM
90512009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9052
c95a5008
SM
9053 * lisp.h (Fx_focus_frame): Declare.
9054
84db11d6
SM
9055 * callint.c (Fcall_interactively): For '^' just delegate the work to
9056 handle-shift-selection.
9057 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9058
0a1958d6
CY
90592009-03-24 Chong Yidong <cyd@stupidchicken.com>
9060
0bfdff23
CY
9061 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9062
0a1958d6
CY
9063 * data.c (Qinteractive_form): New variable.
9064 (Finteractive_form): Use it.
9065
9066 * eval.c (Fcommandp): Use Qinteractive_form.
9067
58aec0d6
JR
90682009-03-24 Jason Rumney <jasonr@gnu.org>
9069
9070 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9071 Calculate total size precisely. Decode environment variables
9072 before substituting. (Bug#38)
9073
553dd618
KH
90742009-03-24 Kenichi Handa <handa@m17n.org>
9075
9076 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 9077 encoding (Bug#2722).
553dd618 9078
c39ea606
JD
90792009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9080
9081 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9082 that gdpy is set.
9083
bc9b2b5e
AM
90842009-03-22 Alan Mackenzie <acm@muc.de>
9085
9086 * callint.c (Finteractive): Clarify the doc string - even
9087 promptless elements need \n separators.
9088
9f995a76
JR
90892009-03-22 Jason Rumney <jasonr@gnu.org>
9090
9091 * w32term.c (syms_of_w32term): Doc fix for
9092 x-use-underline-position-properties.
9093
22749e9a
EZ
90942009-03-21 Eli Zaretskii <eliz@gnu.org>
9095
9096 * w32.c (getpwuid): Change argument type to unsigned.
9097 (struct w32_id): Change type of `rid' member to unsigned.
9098 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9099 argument ID to unsigned. All callers changed.
9100 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9101
e00553bf
EZ
91022009-03-20 Eli Zaretskii <eliz@gnu.org>
9103
9104 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9105 negative, produce a float value.
9106
9107 * dired.c (make_uid, make_gid): New functions.
9108 (Ffile_attributes): Use them to avoid negative UID and GID.
9109
f761d6b6
JB
91102009-03-20 Juanma Barranquero <lekktu@gmail.com>
9111
9112 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9113 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9114 Fix typos in docstrings.
9115
d507f8d7
KH
91162009-03-19 Kenichi Handa <handa@m17n.org>
9117
9118 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
9119 changed, use font_load_for_lface to get a new font object.
9120 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
9121
9122 * frame.c (x_set_font): Handle the case that ARG is a cons.
9123
c68845e0
GM
91242009-03-19 Glenn Morris <rgm@gnu.org>
9125
9126 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9127
bfa49dd1
CY
91282009-03-19 Chong Yidong <cyd@stupidchicken.com>
9129
9130 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9131
8458d4c1
KH
91322009-03-19 Kenichi Handa <handa@m17n.org>
9133
9134 * charset.c (load_charset_map_from_file): When a mapfile can't be
9135 loaded, signal an error.
9136
78e7d1fe
EZ
91372009-03-18 Eli Zaretskii <eliz@gnu.org>
9138
9139 * dired.c (Ffile_attributes): Make sure UID and GID are always
9140 positive, even if the value is too large for a positive EMACS_INT.
9141 Doc fix.
9142
9143 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9144
5da9fdfa
YM
91452009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9146
9147 * xmenu.c (xdialog_show): Move Fredisplay call ...
9148 (Fx_popup_dialog): ... here.
9149
7519c40d
SM
91502009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9151
9152 * dired.c (file_name_completion): Disable the first optimization just
9153 installed, since it is not implemented correctly.
9154
2cd298e2
SM
91552009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9156
9157 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 9158 only if the entry can affect bestmatch.
2cd298e2
SM
9159 Stop the search early, as Ftry_completion already does.
9160
48d37adf
CY
91612009-03-17 Chong Yidong <cyd@stupidchicken.com>
9162
e10c9c93 9163 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 9164
9286b16a
CY
91652009-03-15 Chong Yidong <cyd@stupidchicken.com>
9166
9167 * keyboard.c (parse_menu_item): Don't display remappings as menu
9168 equivalent bindings (Bug#788).
9169
f7b146dc
JR
91702009-03-15 Jason Rumney <jasonr@gnu.org>
9171
9172 * w32term.h (WM_EMACS_PAINT): New message.
9173 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9174 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9175 before passing to lisp thread. (Bug#950)
9176
f761d6b6 91772009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 9178
d93f9575
CY
9179 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9180 variable as it was never reset.
9181 (ns_term_init): Remove initialization of Lisp-settable defaults
9182 and ns_expand_space.
9183 (-setPanelFromDefaultValues): Remove ns_expand_space.
9184 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9185 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
9186 i.e. no additional spacing, similar to Carbon port.
9187
d93f9575
CY
9188 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9189 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 9190
305018ec
JD
91912009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9192
9193 * sound.c (alsa_configure): Remove call to deprecated
9194 snd_pcm_sw_params_set_xfer_align.
9195
f761d6b6 91962009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
9197
9198 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9199 after clicking in a detached tool bar.
9200 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9201
46e722a9
SM
92022009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9203
348db3dd
SM
9204 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9205 int/Lisp_Object mixup).
46e722a9 9206
a3d16f39
KH
92072009-03-13 Kenichi Handa <handa@m17n.org>
9208
9209 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 9210 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
9211 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9212 (set_fontset_font): Change ARG to a vector. Handle range_list in
9213 ARG correctly.
9214 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 9215 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
9216 the above change.
9217 (fontset_from_font): Fix previous change.
fe24f56a 9218 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
9219 entry. If FONTSET is the default fontset, don't set the extra
9220 slot of the returning char-table.
9221
b066e6b6
JB
92222009-03-12 Juanma Barranquero <lekktu@gmail.com>
9223
9224 * nsfns.m (Fx_close_connection): Doc fix.
9225 (Fns_do_applescript): Reflow docstring.
9226 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9227 (Fx_display_pixel_width, Fx_display_pixel_height)
9228 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9229 Fix typos in docstrings.
9230 (Fns_set_alpha): Fix typos in error messages.
9231
d472514e 92322009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 9233
d472514e 9234 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
9235 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9236 were used for such events.
9237
d472514e
JB
9238 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9239 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 9240
d472514e 9241 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
9242 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9243
fb930676
KH
92442009-03-11 Kenichi Handa <handa@m17n.org>
9245
ff85581a
KH
9246 * font.h (font_open_by_spec): Extern it.
9247
c50b7e98
KH
9248 * font.c (font_open_by_spec): New function.
9249 (font_open_by_name): Use font_open_by_spec.
9250
fb930676
KH
9251 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9252 fontset of the frame.
9253
9254 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9255 modify the default font of frames that use this fontset.
9256 (num_auto_fontsets): New variable.
9257 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9258 name. Be sure to set FONTSET_ASCII to the correct font name.
9259 (update_auto_fontset_alist): New function.
9260
df4e8455
JB
92612009-03-11 Juanma Barranquero <lekktu@gmail.com>
9262
9263 * makefile.w32-in: Update dependencies.
9264
0a375797
AR
92652009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9266
9267 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9268
61313fa3
SM
92692009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9270
9271 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9272
b55103fb
CY
92732009-03-10 Chong Yidong <cyd@stupidchicken.com>
9274
9275 * lread.c (Feval_buffer): Doc fix.
9276
dde2559c
KH
92772009-03-09 Kenichi Handa <handa@m17n.org>
9278
9279 * charset.c (Qfile_name_handler_alist): Extern it.
9280 (load_charset_map_from_file): Temporarily bind
9281 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9282
df4e8455 92832009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 9284
47f588bb
GM
9285 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9286 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 9287
4ddf94bd
AR
92882009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9289
4c9bdfc2
AR
9290 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9291 (x_set_window_size): Change back to calculated method of setting
9292 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
9293 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9294 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9295
fe41ae9e
AR
9296 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9297
4c9bdfc2
AR
9298 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9299 accelerator in parens under GNUstep.
9300
825d0875
KH
93012009-03-06 Kenichi Handa <handa@m17n.org>
9302
9303 These changes are to detect incorrect composition sequence without
f3b3be74 9304 looking ahead the source. (Bug#2370)
825d0875
KH
9305
9306 * coding.h: Include "composite.h".
9307 (enum compisition_state): New enum.
9308 (struct compisition_status): New struct.
9309 (struct iso_2022_spec): New member cmp_status.
9310 (struct emacs_mule_spec): New struct.
9311 (struct coding_system): New members ctext_extended_segment_len and
9312 embedded_utf_8. Change the union member
9313 spec.emacs_mule_full_support to spec.emacs_mule.
9314
9315 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9316 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 9317 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
9318 (ADD_COMPOSITION_DATA): New arg nbytes.
9319 (emacs_mule_char): New arg cmp_status.
9320 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9321 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9322 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9323 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9324 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9325 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9326 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9327 (EMACS_MULE_COMPOSITION_END): New macro.
9328 (emacs_mule_finish_composition): New function.
9329 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9330 (decode_coding_emacs_mule): Avoid long looking ahead while
9331 handling composition.
9332 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9333 (ENCODE_COMPOSITION_RULE): New macro.
9334 (finish_composition): New function.
9335 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9336 (DECODE_COMPOSITION_START): New implementation.
9337 (DECODE_COMPOSITION_END): Likewise.
9338 (STORE_COMPOSITION_RULE): New macro.
9339 (decode_coding_iso_2022): Avoid long looking ahead while handling
9340 composition, CTEXT extended segment, and embedded UTF-8.
9341 (setup_coding_system): For a coding of type iso-2022, reset
9342 CODING_ISO_EXTSEGMENT_LEN (coding) and
9343 CODING_ISO_EMBEDDED_UTF_8 (coding).
9344 (get_translation): Delete arguments last_block, from_nchars,
9345 to_nchars. Callers changed.
9346 (produce_chars): Don't modify charbuf. Adjusted for the change of
9347 get_translation.
98a326f7 9348 (produce_composition): Adjust for the new annotation sequence.
825d0875 9349 (handle_composition_annotation): Likewise.
98a326f7 9350 (consume_chars): Adjust for the change of get_translation.
825d0875 9351
ccbc4452
AR
93522009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9353
4ddf94bd 9354 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 9355
988a7ddb
KH
93562009-03-05 Kenichi Handa <handa@m17n.org>
9357
9358 * font.c (font_select_entity): New function.
9359 (font_find_for_lface): Use font_select_entity to select a font.
9360
9361 * fontset.c (fontset_find_font): If a font found without
a8a3728b 9362 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
9363 font with C restriction.
9364
98a326f7 93652009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 9366
be1bce46 9367 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 9368
10ea2b82
JR
93692009-03-04 Jason Rumney <jasonr@gnu.org>
9370
2c93b248 9371 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 9372 characters that have already been read. (Bug#2569)
2c93b248 9373
10ea2b82
JR
9374 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9375 Log an error message if check_image_size failed.
9376 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 9377 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 9378
71a0c011
EZ
93792009-03-02 Eli Zaretskii <eliz@gnu.org>
9380
9381 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9382 when decoding process output.
9383
2f63bba8
RS
93842009-03-01 Richard M Stallman <rms@gnu.org>
9385
9386 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9387
9388 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9389
0a9564cb
EZ
93902009-02-28 Eli Zaretskii <eliz@gnu.org>
9391
9392 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9393 (decode_coding_emacs_mule, decode_coding_iso_2022)
9394 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9395 (decode_coding_raw_text, decode_coding_charset)
9396 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9397 Honor inhibit-eol-conversion. (Bug #2186)
9398
449148b3
JR
93992009-02-28 Jason Rumney <jasonr@gnu.org>
9400
9401 * coding.c (detect_coding_charset): If not checking latin extra,
9402 fail on characters between 0x80 and 0xA0. (Bug#2354)
9403
a4aee864
EZ
94042009-02-28 Eli Zaretskii <eliz@gnu.org>
9405
9406 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 9407 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 9408
d88bee5a
GM
94092009-02-27 Glenn Morris <rgm@gnu.org>
9410
9411 * callint.c (Finteractive): Doc fix.
9412
a808f22d
KH
94132009-02-27 Kenichi Handa <handa@m17n.org>
9414
9415 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9416
caf8d60c
CY
94172009-02-27 Chong Yidong <cyd@stupidchicken.com>
9418
9419 * font.c (font_style_to_value): Set value for unknown symbols to
9420 100 instead of 255.
b61137ea
CY
9421 (weight_table, slant_table, width_table): Treat "unspecified" as
9422 the default value.
caf8d60c 9423
1a0de25c
JB
94242009-02-26 Juanma Barranquero <lekktu@gmail.com>
9425
9426 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9427
8fc45744
JB
94282009-02-25 Juanma Barranquero <lekktu@gmail.com>
9429
107bd7d1
JB
9430 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9431 error as soon as a recursive load is detected.
8fc45744 9432
f097e223
AR
94332009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9434
9435 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9436 before caching.
9437
8810a12f
KH
94382009-02-24 Kenichi Handa <handa@m17n.org>
9439
9440 * fontset.c (fontset_find_font): Fix the condition for checking
9441 unavailable font.
9442
2c7d1565
GM
94432009-02-24 Glenn Morris <rgm@gnu.org>
9444
9445 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9446 whitespace that confuses documentation.
9447
a20878b6
MB
94482009-02-23 Miles Bader <miles@gnu.org>
9449
9450 * process.c (Flist_system_processes, Fprocess_attributes)
9451 (syms_of_process): Rename `system-process-attributes' to
9452 `process-attributes'.
9453
b3b58c01
AS
94542009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9455
1b3b981b
AS
9456 * coding.h (struct coding_system): Make safe_charsets a pointer to
9457 unsigned char.
9458 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9459 being 255.
9460 (SAFE_CHARSET_P): Likewise.
9461 (setup_iso_safe_charsets): Properly setup safe_charsets.
9462 (Fdefine_coding_system_internal): Likewise.
9463 (setup_coding_system): Likewise. Remove unneeded casts.
9464 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9465 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9466 unneeded casts.
9467
b3b58c01
AS
9468 * insdel.c (del_range_2): Don't modify gap contents when called
9469 from decode_coding_object. (Bug#1809)
9470
0b6f228c
CY
94712009-02-21 Chong Yidong <cyd@stupidchicken.com>
9472
9473 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9474 Qfont_object.
9475 (Ftype_of): Recognize font objects.
9476
9477 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9478
9479 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9480 moved to data.c.
9481
52f8870b
AR
94822009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9483
9484 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9485 async_iconified. Based on a patch by Christian Lynbech
9486 <christian.lynbech@tieto.com>.
9487 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9488
7087d5e9
GM
94892009-02-20 Glenn Morris <rgm@gnu.org>
9490
9491 * syntax.c (Fskip_chars_forward): Fix doc typo.
9492
41d2ceef
CY
94932009-02-20 Chong Yidong <cyd@stupidchicken.com>
9494
9495 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9496
1a3b7ca6
CY
94972009-02-19 Chong Yidong <cyd@stupidchicken.com>
9498
9499 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9500
73cce38d
KH
95012009-02-19 Kenichi Handa <handa@m17n.org>
9502
9503 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 9504 Don't overflow coding->carryover. (Bug#2370)
73cce38d 9505
a51092ee
DN
95062009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9507
9508 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9509
c423ecca
KH
95102009-02-18 Kenichi Handa <handa@m17n.org>
9511
9512 * font.c (font_check_otf_features): Fix handling of `nil' element.
9513 (Ffont_spec): Describe :lang and :otf in the docstring.
9514
4c1958f4
AS
95152009-02-16 Andreas Schwab <schwab@suse.de>
9516
9517 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9518 string.
9519
5704f39a
KH
95202009-02-16 Kenichi Handa <handa@m17n.org>
9521
9522 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 9523 (Bug#1723)
5704f39a 9524
8f0085aa
CY
95252009-02-14 Chong Yidong <cyd@stupidchicken.com>
9526
a057d86a 9527 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
9528
9529 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9530 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9531
aff01dd9
EZ
95322009-02-14 Eli Zaretskii <eliz@gnu.org>
9533
9534 * msdos.c (MAX_SCREEN_BUF): New macro.
9535 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9536 Encode the entire run of glyphs sharing the same face, instead of
9537 doing that one glyph at a time (fixes a bug with displaying
9538 double-size characters).
9539
ba301db3
AR
95402009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9541
9542 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9543
9544 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9545 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 9546 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
9547
9548 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 9549 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 9550
51d861de
SM
95512009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9552
ac146f82 9553 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
9554 invisible areas.
9555
7fed8996
JR
95562009-02-12 Jason Rumney <jasonr@gnu.org>
9557
631ea4fb
JR
9558 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9559 (add_font_entity_to_list): Call check_face_name even when family
9560 is unspecified.
9561
cb4a3e42
JR
9562 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9563 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 9564 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 9565
7fed8996 9566 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 9567 raster fonts. (Bug#2219)
7fed8996 9568
895416e3
KH
95692009-02-12 Kenichi Handa <handa@m17n.org>
9570
9571 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9572 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9573 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 9574 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9575 (find_automatic_composition): While looking forward and backward,
9576 check static composition. Fix where to stop looking forward.
9577 (composition_adjust_point): Fix checking of static composition.
9578 (Fcomposition_get_gstring): Pay attention to
1dacf998 9579 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9580
9581 * lisp.h (fast_looking_at): Extern it.
9582
9583 * search.c (fast_looking_at): New function.
9584
51d861de 9585 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
9586 <struct glyph>.u.cmp.to.
9587 (append_composite_glyph): Likewise.
9588
51d861de 9589 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
9590 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9591 composition.
51d861de 9592 (append_composite_glyph): Adjust for the change of
895416e3
KH
9593 <strcut glyph>.u.cmp.to.
9594
8510724d
JB
95952009-02-11 Juanma Barranquero <lekktu@gmail.com>
9596
9597 * casetab.c (init_casetab_once):
9598 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9599 * font.c (font_update_lface):
9600 * fontset.c (Fnew_fontset):
9601 * ftfont.c (ftfont_drive_otf):
9602 * xfont.c (xfont_open):
9603 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9604
294fa707
SM
96052009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9606
9607 * fileio.c (Fwrite_region): !NILP -> CONSP.
9608
b5bfebec
AS
96092009-02-10 Andreas Schwab <schwab@suse.de>
9610
9611 * process.c (send_process): Properly relocate pointer into data
adab88bd 9612 when using encoded data. (Bug#2272)
b5bfebec 9613
cb84a2be
KH
96142009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9615
9616 * coding.c (detect_coding_charset): Fix previous change.
9617
89e09428
JR
96182009-02-08 Jason Rumney <jasonr@gnu.org>
9619
9620 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 9621 disappeared while hourglass was displayed. (Bug #2193)
89e09428 9622
4470a277
AS
96232009-02-07 Andreas Schwab <schwab@suse.de>
9624
9625 * unexelf.c (unexec): Fix error message.
9626
3175b12a
AR
96272009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9628
9629 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 9630 when modal window is active. (Bug #2152)
3175b12a
AR
9631 (applicationShouldTerminate:): Remove now-unneeded while loop
9632 around NSRunAlertPanel.
9633
9634 * nsmenu.m (popupSession): New file-global variable.
9635 (pop_down_menu): End the popupSession before closing dialog.
9636 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9637 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9638 don't query NSApp for events (just sleep instead).
9639
8434d0b8
EZ
96402009-02-07 Eli Zaretskii <eliz@gnu.org>
9641
51d861de
SM
9642 * coding.c (syms_of_coding) <translation-table-for-input>:
9643 Modify doc string to discourage use for character code unification.
8434d0b8 9644
aa82edfd
CY
96452009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9646
9647 * atimer.c (run_timers): Update pending_atimers.
9648
2d283c7c
CY
96492009-02-06 Chong Yidong <cyd@stupidchicken.com>
9650
eb306cab
CY
9651 * image.c (svg_load_image): Fix last change.
9652
2d283c7c
CY
9653 * xfns.c (Fx_create_frame): Signal an error if no font is
9654 found (Bug#2147).
9655
4d8e170e
JB
96562009-02-05 Juanma Barranquero <lekktu@gmail.com>
9657
9658 * character.c (syms_of_character) <script-representative-chars>:
9659 Fix typo in docstring.
9660
c96169a0
AR
96612009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9662
9663 * nsmenu.m (pop_down_menu): New function.
9664 (ns_popup_dialog): Call it on unwind.
9665 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9666 call timer_check() (Bug#2154).
9667 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9668 handling_signal is set.
9669 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9670
31fd7c5c 9671 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
9672
9673 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9674
9675 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9676
51d861de
SM
9677 * keyboard.c (poll_for_input_1, handle_async_input):
9678 Set handling_signal under HAVE_NS.
c96169a0 9679
aacd8ba1
GM
96802009-02-04 Glenn Morris <rgm@gnu.org>
9681
9682 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9683
4cb75c4b
KH
96842009-02-04 Kenichi Handa <handa@m17n.org>
9685
9686 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9687
9688 * charset.c (Fchar_charset): New optional arg restriction.
9689
9690 * coding.h (coding_system_charset_list): Extern it.
9691
9692 * coding.c (coding_system_charset_list): New function.
9693
9694 * composite.c: Include coding.h and termhooks.h.
9695 (composition_gstring_p): Fix for the terminal case.
9696 (composition_gstring_width): Likewise.
9697 (fill_gstring_body): Likewise.
9698 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9699 the frame.
9700 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9701 is within a composition.
867d4bb3 9702 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
9703
9704 * term.c (encode_terminal_code): Fix handling of composition.
9705 (produce_composite_glyph): For static composition, get pixel_width
9706 from struct composition.
9707
826ba17e
AS
97082009-02-02 Andreas Schwab <schwab@suse.de>
9709
9710 * unexelf.c (unexec): Handle unaligned bss offset.
9711
8ad093db
AR
97122009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9713
9714 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9715 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 9716
8ad093db
AR
9717 * keyboard.c (handle_interrupt): Don't call
9718 quit_throw_to_read_char() under NS.
d0a76a6e 9719
8ad093db
AR
9720 * blockinput.h: Remove NS-specific code.
9721
4d18a7a2
DN
97222009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9723
db878925
DN
9724 * dispnew.c (window_change_signal): Don't try to get the size of a
9725 suspended tty frame.
9726 * term.c (Fresume_tty): Resize if the size has changed while the
9727 tty was suspended.
9728
4d18a7a2
DN
9729 * alloc.c (mark_stack): Properly conditionalize previous change.
9730
8984df7c
JB
97312009-01-30 Juanma Barranquero <lekktu@gmail.com>
9732
9733 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9734 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9735 Remove; this code is not used on Windows.
9736
75f4f1ac
EZ
97372009-01-30 Eli Zaretskii <eliz@gnu.org>
9738
9739 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9740 EOLs that also has stray ^M characters.
9741
07a1e794
JB
97422009-01-30 Juanma Barranquero <lekktu@gmail.com>
9743
9744 * atimer.c (run_timers, alarm_signal_handler):
9745 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9746 * w32inevt.c (w32_console_read_socket):
9747 * w32term.c (w32_read_socket):
9748 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9749
a8b11cc9
CY
97502009-01-30 Chong Yidong <cyd@stupidchicken.com>
9751
9752 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9753 Initialize it as a relative filename pattern.
9754 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9755 (Fcall_process_region): Simplify temp file creation using
9756 temporary-file-directory.
9757
c279587b
EZ
97582009-01-29 Eli Zaretskii <eliz@gnu.org>
9759
9760 * msdos.c: Rename pending_signals to msdos_pending_signals.
9761 (sig_suspender, sigprocmask): Adjust.
9762
a8fe3242
CY
97632009-01-29 Chong Yidong <cyd@stupidchicken.com>
9764
9765 * keyboard.c (pending_signals): New var.
9766 (poll_for_input, input_available_signal, init_keyboard): Set it.
9767 (process_pending_signals): New function.
9768
9769 * lisp.h (QUIT): Check pending_signals instead of
9770 interrupt_input_pending. Use process_pending_signals.
9771
51d861de 9772 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 9773
51d861de 9774 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
9775
9776 * sysdep.c (emacs_write): Use process_pending_signals.
9777
9778 * xterm.c (XTread_socket): Update pending_signals.
9779
9780 * w32term.c (w32_read_socket): Update pending_signals.
9781
9782 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9783
6570a1c4
KH
97842009-01-29 Kenichi Handa <handa@m17n.org>
9785
9786 * xftfont.c (xftfont_has_char): New function.
9787 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9788
d72a4afa
AR
97892009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9790
9791 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9792 under GNUstep.
9793 (ns_query_color): New declaration.
9794
9795 * nsterm.m (ns_confirm_quit): New variable.
9796 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9797 (EmacsApp-applicationShouldTerminate:): Use it.
9798 (EmacsPrefsController): Let user set it.
9799 (ns_query_color): New function.
9800 (ns_defined_color): Use it.
9801 (ns_initialize): Drop.
9802 (ns_term_init): Add two lines from ns_initialize(), and set
9803 input_interrupt_mode to nil.
9804
9805 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 9806 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 9807
9fe78804
KH
98082009-01-28 Kenichi Handa <handa@m17n.org>
9809
9810 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
9811 (fontset_get_font_group): Remember that no font-group is specified
9812 for C.
9fe78804 9813
fa57de36
CY
98142009-01-27 Chong Yidong <cyd@stupidchicken.com>
9815
930600e9
CY
9816 * fns.c (concat): Check for string overflow (bug#1787).
9817
fa57de36
CY
9818 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9819 Quadruple undo limits (bug#1501).
9820
7179ce7b
KH
98212009-01-27 Kenichi Handa <handa@m17n.org>
9822
9823 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9824 directly use GT_Get_Char_index.
9825
9826 * xftfont.c (struct xftfont_info): New member `index'.
9827
9828 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 9829 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 9830
5be8fcc0
CY
98312009-01-26 Kenichi Handa <handa@m17n.org>
9832
9833 * fontset.c (fontset_find_font): Fix handling of non-cons return
9834 value of fontset_get_font_group.
9835 (fontset_font): Revert last change.
9836
19ae3e61
JR
98372009-01-26 Jason Rumney <jasonr@gnu.org>
9838
9839 * w32font.c (w32font_list_internal): Return quickly if registry is
9840 unknown. Simplify final return.
9841 (add_font_entity_to_list): Break complex logic down into more
9842 manageable chunks. Move unknown registry check to
9843 w32font_list_internal.
9844
8612b71a
AR
98452009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9846
9847 Changes to remove Feval calls from GUI under NS.
9848
d8038940
JB
9849 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9850 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
9851 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9852
9853 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9854 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9855 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9856 instead of NON_ASCII_KEYSTROKE_EVENT.
9857 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9858 (EmacsApp-applicationShouldTerminate:): Query user.
9859 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9860 instead of Feval.
9861
9862 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9863
9864 * keyboard.c (kbd_buffer_get_event): Check for it.
9865 (keys_of_keyboard): Define lispy keys for
9866 ns-put/unput-working-text.
9867
9868 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9869 versions.
9870 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9871
6288ae55
CY
98722009-01-25 Chong Yidong <cyd@stupidchicken.com>
9873
9874 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 9875 setting current_buffer directly. (Bug#2044)
6288ae55 9876
289e7f8f
CY
98772009-01-24 Chong Yidong <cyd@stupidchicken.com>
9878
5ce87308 9879 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 9880 any work. (Bug#1952, bug#1990).
5ce87308 9881
64cc3cf6 9882 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 9883
b3243e6f
AR
98842009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9885
9886 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
9887 (ns_no_defaults): New declaration.
9888 (main): Use it.
e0d2e69a 9889
d900b2af 9890 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 9891
d900b2af 9892 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 9893
d900b2af
AR
9894 * nsterm.m (ns_no_defaults): New variable.
9895 (ns_initialize): Don't read defaults when ns_no_defaults.
9896 (EmacsView-readSelectionFromPasteboard:)
9897 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 9898 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
9899 (ns_dumpglyphs_stretch): New function.
9900 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9901 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9902
e0d2e69a
AR
9903 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9904
3ac71f5d
CY
99052009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9906
9907 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9908 call for Sparc64.
9909
3fe53a83
AR
99102009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9911
9912 * nsfns.m:
9913 * nsgui.h:
9914 * nsmenu.m:
9915 * nsselect.m:
9916 * nsterm.h:
9917 * nsterm.m: Remove '23' comments that indicated code added during
9918 update from emacs-20 -> emacs-23.
9919
10f87c6f 99202009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9921
9922 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9923 ns_alternate_modifier. (Bug#1217)
a3b53a85 9924
c7cef62d
AR
9925 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9926 Display all shortcuts, including those w/o super modifier.
9927
575fb8bd
AR
9928 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9929
918b848b
CY
99302009-01-22 Chong Yidong <cyd@stupidchicken.com>
9931
9932 * fileio.c (Vwrite_region_post_annotation_function)
9933 (Vwrite_region_annotation_buffers): New vars.
9934 (build_annotations_unwind): Just reset
9935 Vwrite_region_annotation_buffers.
9936 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9937 Call write-region-post-annotation-function.
9938 (build_annotations): Add to Vwrite_region_annotation_buffers if
9939 buffer changes.
9940
a39e2539
AR
99412009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9942
9943 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9944 Tiger.
51d861de
SM
9945 * nsfns.m (ns_do_applescript):
9946 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9947
35ed44db
AR
99482009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9949
9950 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9951
cbe0b5bf
AR
99522009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9953
9954 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 9955
6049d3a0
AR
9956 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9957
9958 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
9959 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9960 handle Ctrl-tab. (Bug#1841)
9961 (ns_get_color): Use unsigned long long for scanned hex string value.
9962 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 9963 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 9964 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 9965 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 9966 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 9967 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 9968 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 9969
d3810c21 9970 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 9971 DPI. (Bug#1316)
d3810c21
AR
9972 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9973 values in onTiger section.
4c7077c3 9974
e301e634
CY
99752009-01-19 Chong Yidong <cyd@stupidchicken.com>
9976
7f82490b
CY
9977 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9978 Check return value of font_spec_from_name.
64cc3cf6 9979 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
9980
9981 * font.c (font_spec_from_name): Return Qnil if font name could not
9982 be parsed.
9983 (font_parse_name): Treat a `?' character as part of an XLFD.
9984
e301e634
CY
9985 * fns.c (Fsubstring): Doc fix.
9986
1c0db158
KH
99872009-01-19 Kenichi Handa <handa@m17n.org>
9988
51d861de 9989 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
9990 (ftfont_list): Likewise.
9991
acf20901
JB
99922009-01-18 Juanma Barranquero <lekktu@gmail.com>
9993
fff4e459
JB
9994 * dbusbind.c (Fdbus_register_signal):
9995 * process.c (conv_sockaddr_to_lisp):
9996 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9997
acf20901
JB
9998 * callproc.c (Fgetenv_internal): Doc fix.
9999
e7abcdfb
CY
100002009-01-16 Chong Yidong <cyd@stupidchicken.com>
10001
10002 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10003 it is not even used.
10004
b60861e6
GM
100052009-01-16 Glenn Morris <rgm@gnu.org>
10006
10007 * font.c (Ffont_variation_glyphs): Silence compiler.
10008
8db52afe
JB
100092009-01-15 Juanma Barranquero <lekktu@gmail.com>
10010
10011 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10012 Reported by David Robinow <drobinow@gmail.com>.
10013
4cddb209
KH
100142009-01-15 Kenichi Handa <handa@m17n.org>
10015
51d861de 10016 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 10017
f247f67b
JR
100182009-01-14 Jason Rumney <jasonr@gnu.org>
10019
10020 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 10021 never a fontset. (Bug#1562)
f247f67b 10022
f56a4450
KH
100232009-01-14 Kenichi Handa <handa@m17n.org>
10024
10025 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 10026 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 10027
4e99855e
CY
100282009-01-13 Chong Yidong <cyd@stupidchicken.com>
10029
10030 * font.c (font_clear_prop): If clearing the family, clear the font
10031 width index too.
10032
fff4e459 10033 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 10034
24f01470
JB
100352009-01-12 Juanma Barranquero <lekktu@gmail.com>
10036
10037 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10038 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10039 functions, use sizeof.
10040
a41240a3
MR
100412009-01-12 Martin Rudalics <rudalics@gmx.at>
10042
10043 * keyboard.c (read_char): Fix case where last_nonmenu_event
10044 returned a bad value with submenus. (Bug#447)
10045
944636b8
CY
100462009-01-12 Chong Yidong <cyd@stupidchicken.com>
10047
10048 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10049 family, clear the font width index too.
10050
0dad7c6f
JR
100512009-01-11 Jason Rumney <jasonr@gnu.org>
10052
10053 * keyboard.c (cmd_error_internal): Exit when errors occur before
10054 frame creation and not in daemon mode. (Bug#1836)
10055
7c2363af
CY
100562009-01-10 Chong Yidong <cyd@stupidchicken.com>
10057
10058 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10059 of a display vector, backtrack.
10060 (try_window_reusing_current_matrix): Check glyph type before
10061 referencing charpos member.
10062
97b1b294
EZ
100632009-01-10 Eli Zaretskii <eliz@gnu.org>
10064
10065 Fix Bug #876:
10066
10067 * coding.c (inhibit_null_byte_detection): New variable.
10068 (detect_coding, detect_coding_system): Don't pay attention to null
10069 bytes if inhibit_null_byte_detection is non-zero.
51d861de 10070 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
10071 <inhibit-iso-escape-detection>: Doc fix.
10072
4624b6e3
JR
100732009-01-09 Jason Rumney <jasonr@gnu.org>
10074
10075 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 10076 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
10077 Only report Unicode Plane 2 fonts as unicode-sip.
10078
323b840c
CY
100792009-01-09 Chong Yidong <cyd@stupidchicken.com>
10080
51d861de
SM
10081 * xfaces.c (Fx_font_family_list): Delete function.
10082 Move compatibility version to faces.el.
323b840c 10083
51d861de 10084 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 10085
eba7400d
MR
100862009-01-09 Martin Rudalics <rudalics@gmx.at>
10087
10088 * frame.c (x_set_frame_parameters): Remember requested value for
10089 fullscreen before it's reset by the parameter handler.
10090
4b09796d
GM
100912009-01-09 Glenn Morris <rgm@gnu.org>
10092
10093 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 10094 (last_command_event): ... and update all users.
4b09796d
GM
10095 (last_input_char): For clarity, rename to...
10096 (last_input_event): ... and update all users.
10097 (last-command-char, last-input-char): Move to subr.el as aliases.
10098 * cmds.c, commands.h: Update for last_command_char rename.
10099
14ccea62
CY
101002009-01-08 Chong Yidong <cyd@stupidchicken.com>
10101
51d861de 10102 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 10103
5f004711
JR
101042009-01-08 Jason Rumney <jasonr@gnu.org>
10105
10106 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10107 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10108 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10109 Don't declare.
fff4e459 10110 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
10111 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10112
b71f6f73
KH
101132009-01-07 Kenichi Handa <handa@m17n.org>
10114
50b06221 10115 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 10116 remember the coding system used for decoding in
50b06221
KH
10117 coding_system (Bug#1039).
10118
b71f6f73 10119 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 10120 breaking the loop. (Bug#870)
b71f6f73
KH
10121 (decode_coding_utf_16, decode_coding_emacs_mule)
10122 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10123 (decode_coding_charset): Likewise.
10124
56f668f7
MR
101252009-01-05 Martin Rudalics <rudalics@gmx.at>
10126
10127 * frame.c (x_set_frame_parameters): Make sure height (width) get
10128 applied when fullwidth (fullheight) is set. (Bug#1522)
10129
5da9424d
JB
101302009-01-04 Juanma Barranquero <lekktu@gmail.com>
10131
10132 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10133 (utc_base): Declare as ULONGLONG, not long double.
10134 (convert_time_raw): Delete.
10135 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10136 (initialize_utc_base): New function.
10137 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10138 (convert_from_time_t): Use initialize_utc_base; compute result with
10139 64-bit arithmetic.
10140 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10141
c4605e09
EZ
101422009-01-03 Eli Zaretskii <eliz@gnu.org>
10143
9acef61c 10144 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
10145 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10146 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10147 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10148 [!subprocesses]: Define.
10149 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10150 (Flist_system_processes, Fsystem_process_attributes)
10151 [!subprocesses]: Call list_system_processes and
10152 system_process_attributes instead of returning Qnil.
10153
9acef61c
JB
10154 * dosfns.c (system_process_attributes, list_system_processes):
10155 New functions.
c4605e09
EZ
10156
10157 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10158
10159 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10160 Don't use the default (no-op) implementation.
10161
8b7d0a16
JR
101622009-01-03 Jason Rumney <jasonr@gnu.org>
10163
a6d46bc1
JR
10164 * keyboard.c (parse_modifiers_uncached): Wheel events are
10165 clicks (bug#687).
10166
8b7d0a16
JR
10167 * w32term.c (x_query_colors, x_query_color): New functions.
10168
10169 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10170 (svg_load_image): Cast returned pointers from dynamically loaded
10171 functions. Eliminate W32 specific code.
10172
bfe11752
DN
101732009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10174
89e2438a
DN
10175 * nsfns.m (x_set_foreground_color, x_set_background_color)
10176 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10177 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10178 x_ prefix instead of ns_. Update references.
10179 (syms_of_nsfns): Add a FIXME comment.
10180
10181 * nsterm.m (x_set_cursor_type): New prototype.
10182 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10183
bfe11752
DN
10184 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10185 for Solaris instead of incorrectly providing Qutime and Qcutime.
10186
031da700
EZ
101872009-01-02 Eli Zaretskii <eliz@gnu.org>
10188
10189 * w32.c (process_times): Compute sum of utime and stime.
10190 (system_process_attributes): Add Qtime to the alist.
10191
10192 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10193 and add them to the alist.
10194
10195 * process.c (top level) <Qtime, Qctime>: New variables.
10196 (syms_of_process): staticpro them.
10197 (Fsystem_process_attributes): Add their documentation to the doc
10198 string.
10199
10200 * process.h: Declare Qtime and Qctime.
10201
df23bf08
JR
102022009-01-02 Jason Rumney <jasonr@gnu.org>
10203
9acef61c 10204 * image.c (Qgobject): New symbol.
df23bf08
JR
10205 (syms_of_image): Initialize it.
10206 (init_svg_functions): Load some functions from gobject library.
10207
5bbdf7aa
DN
102082009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10209
10210 * frame.c (make_terminal_frame): Remove redundant code and useless
10211 block.
10212
63136da6
AS
102132009-01-01 Andreas Schwab <schwab@suse.de>
10214
10215 * process.c (conv_sockaddr_to_lisp): Add workaround for
10216 getsockname bug on BSD.
10217
9ef69046
CY
102182009-01-01 Chong Yidong <cyd@stupidchicken.com>
10219
d6fafbe0
CY
10220 * xfns.c (x_create_tip_frame): Set border width of the X window.
10221
51d861de 10222 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 10223
f9c34147
JR
102242009-01-01 Jason Rumney <jasonr@gnu.org>
10225
9acef61c 10226 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
10227 Don't block input, as per earlier xterm.c changes.
10228
f5497e45
AR
102292008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10230
10231 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10232 (ns_appkit_version_int): New function.
10233 (x-server-version): Use ns_appkit_version_int and follow 21+
10234 convention of returning 3 integers.
10235
c19cab20
KH
102362008-12-30 Kenichi Handa <handa@m17n.org>
10237
10238 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10239 (CHAR_SURROGATE_PAIR_P): New macro.
10240
10241 * font.h (struct font_driver): New member get_variation_glyphs.
10242
9acef61c 10243 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
10244 (Ffont_variation_glyphs): New function.
10245 (syms_of_font): Defsubr it.
10246
10247 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10248 ftfont_variation_glyphs.
10249 (setup_otf_gstring): New function.
10250 (ftfont_drive_otf): Use it.
10251 (ftfont_shape_by_flt): Handle variation selector.
10252 (ftfont_variation_glyphs): New function.
10253
28cd591f
MR
102542008-12-30 Martin Rudalics <rudalics@gmx.at>
10255
10256 * frame.c (Vemacs_iconified): Remove.
10257
7f714baf
JR
102582008-12-30 Jason Rumney <jasonr@gnu.org>
10259
10260 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 10261 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 10262
9d2d22ab
CY
102632008-12-30 Chong Yidong <cyd@stupidchicken.com>
10264
10265 * indent.c (Fvertical_motion): Don't advance iterator if we have
10266 reseated to the desired position.
10267
10268 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10269 checking for pos match.
10270
545312c2
KH
102712008-12-30 Kenichi Handa <handa@m17n.org>
10272
1ede3eb6
KH
10273 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10274 just get the low 8-bit of the code.
10275
545312c2
KH
10276 * font.c (font_intern_prop): Validate str as multibyte.
10277
bd7bbf29
DN
102782008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10279
31e0750e
DN
10280 * dispextern.h (struct face): Move lface and hash from the middle
10281 of bitfields.
10282
bd7bbf29
DN
10283 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10284
b5672e7c
DN
102852008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10286
10287 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10288 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10289 instead of intervals.h.
10290
d704470f
AS
102912008-12-26 Andreas Schwab <schwab@suse.de>
10292
10293 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10294 cons.
10295
54b33868
MR
102962008-12-26 Martin Rudalics <rudalics@gmx.at>
10297
10298 * textprop.c (Qminibuffer_prompt): New variable.
10299 (syms_of_textprop): Initialize it.
10300 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10301 in minibuffer-prompt face. (Bug#1662)
10302
40b615d6
JR
103032008-12-25 Jason Rumney <jasonr@gnu.org>
10304
10305 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10306
baae5c2d
JR
103072008-12-24 Jason Rumney <jasonr@gnu.org>
10308
10309 * ralloc.c (r_alloc_reset_variable): New function.
10310
10311 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 10312 record of what points where. (Bug#716)
baae5c2d 10313
a9051c88
DN
103142008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10315
10316 * minibuf.c (read_minibuf): Follow the non-interactive case when
10317 running as a daemon, before detaching.
10318
8b146312
AS
103192008-12-22 Andreas Schwab <schwab@suse.de>
10320
10321 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10322 * gtkutil.c (free_widget_value): Use xfree instead of free.
10323
56f2de10
MR
103242008-12-22 Martin Rudalics <rudalics@gmx.at>
10325
10326 * frame.c (delete_frame): New function derived from
10327 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10328 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10329 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10330 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10331 * frame.h: Extern delete_frame.
10332 * window.c (window_loop):
10333 * terminal.c (delete_terminal):
10334 * xterm.c (x_connection_closed):
10335 * xfns.c (Fx_hide_tip):
9acef61c 10336 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 10337
1fc200d6
JR
103382008-12-21 Jason Rumney <jasonr@gnu.org>
10339
10340 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10341 when character maps to .notdef character.
10342
5e252df2
SM
103432008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10344
10345 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10346
99b72cc4
JR
103472008-12-20 Jason Rumney <jasonr@gnu.org>
10348
10349 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 10350 a graphical frame on Windows. (Bug#1325)
99b72cc4 10351
acc49a52
JD
103522008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10353
10354 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10355
6ea15123
CY
103562008-12-20 Chong Yidong <cyd@stupidchicken.com>
10357
10358 * minibuf.c (Fread_buffer): Doc fix.
10359
b2dab6c8
JR
103602008-12-20 Jason Rumney <jasonr@gnu.org>
10361
54ea0c87 10362 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 10363 server name in UNC paths. (Bug#719)
54ea0c87 10364
b2dab6c8 10365 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 10366 charbuf. (Bug#1035)
b2dab6c8 10367
6d1921be
DN
103682008-12-19 Daniel Engeler <engeler@gmail.com>
10369
10370 * sysdep.c (serial_configure): Fix typo.
10371
53934c98
DN
103722008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10373
10374 * sysdep.c: Include alloca.h.
f4f634e8
DN
10375 (system_process_attributes): Add implementation for Solaris.
10376
10377 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 10378
06e111a6
DN
103792008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10380
10381 Reorganize implementation of Flist_system_processes and
10382 Fsystem_process_attributes. No functional changes.
10383 * process.c: Don't #include pwd.h, grp.h and limits.h.
10384 (Flist_system_processes): Just call list_system_processes.
10385 (Fsystem_process_attributes): Just call system_process_attributes.
10386 (procfs_list_system_processes, time_from_jiffies)
10387 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10388 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10389
10390 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10391 (list_system_processes): Rename from
10392 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10393 Provide a do nothing implementation.
10394 (system_process_attributes): Rename from
10395 procfs_list_system_processes.
10396 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 10397 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
10398
10399 * w32.c (list_system_processes): Rename from
10400 w32_list_system_processes.
10401 (system_process_attributes): Rename from
10402 w32_system_process_attributes.
10403
10404 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10405
10406 * process.h (w32_list_system_processes)
10407 (w32_system_process_attributes): Remove.
362654a6
JB
10408 (list_system_processes, system_process_attributes):
10409 New prototypes.
06e111a6 10410
6a705b23
KH
104112008-12-19 Kenichi Handa <handa@m17n.org>
10412
10413 * xfont.c (xfont_decode_coding_xlfd): New function.
10414 (xfont_encode_coding_xlfd): New function.
10415 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10416 (xfont_list): Decode and encode XLFD by iso-8859-1.
10417 (xfont_match): Likewise.
10418 (xfont_list_family): Likewise.
10419 (xfont_open): Likewise.
10420
d66c0241 10421 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
10422 names are utf-8.
10423
d66c0241 10424 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
10425 names are utf-8.
10426
5a130941
JD
104272008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10428
10429 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10430 changed.
bfd20325
JD
10431 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10432 clicked on a detached tool bar button.
5a130941 10433
fd95644b
DN
104342008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10435
10436 * emacs.c (main): Print and error and exit when no data is read
10437 from the pipe.
10438
e6eee6ae
JR
104392008-12-17 Jason Rumney <jasonr@gnu.org>
10440
10441 * w32font.c (w32font_has_char): Always return -1.
10442
a35dd56b
KH
104432008-12-16 Kenichi Handa <handa@m17n.org>
10444
10445 * font.c (font_open_entity): Fix previous change.
10446
0e3635c2
DN
104472008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10448
10449 * process.c: Include <limits.h>.
10450
d4835507 104512008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
10452
10453 * font.c (font_update_drivers): Fix mistake in reconstructing the
10454 driver list.
10455
104562008-12-16 Chong Yidong <cyd@stupidchicken.com>
10457
10458 * font.c (font_clear_cache): Fix format of font cache data.
10459
e2cbc401
CY
104602008-12-15 Chong Yidong <cyd@stupidchicken.com>
10461
10462 * xftfont.c (xftfont_open): Free Xft font pattern if
10463 XftFontOpenPattern fails.
10464
10465 * xterm.c (x_free_frame_resources): Remove extraneous call to
10466 free_frame_faces.
10467
b131d535
CY
104682008-12-13 Chong Yidong <cyd@stupidchicken.com>
10469
10470 * xterm.c (x_delete_display): Move xim_close_dpy call to
10471 x_delete_terminal.
10472 (x_delete_terminal): Call xim_close_dpy.
10473
e6df5336
JR
104742008-12-13 Jason Rumney <jasonr@gnu.org>
10475
10476 * w32font.c (intern_font_name): New function.
10477 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10478 (w32font_open_internal, Fx_select_font): Decode font name.
10479 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10480
10481 * w32font.h (intern_font_name): Declare new function.
10482
10483 * w32uniscribe.c (add_opentype_font_name_to_list):
10484 Use intern_font_name.
10485
20d68145
CY
104862008-12-13 Chong Yidong <cyd@stupidchicken.com>
10487
9f2554de
CY
10488 * frame.c (Fdelete_frame): Call free_font_driver_list.
10489
3d9bec9a
CY
10490 * font.c (free_font_driver_list): Implement missing function.
10491
20d68145
CY
10492 * w32term.c (w32_term_init): Don't initialize the image cache
10493 here; it will be done in init_frame_faces.
10494
10495 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10496 (struct x_display_info): Remove unused member null_pixel. New
10497 member xim_callback_data.
10498
10499 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10500 (xim_initialize): Save pointer to callback function data.
10501 (xim_close_dpy): Free callback function data. Call XCloseIM,
10502 reverting 2008-11-04 change by David Smith.
10503 (x_term_init): Don't initialize the image cache here; it will be
10504 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10505 (x_delete_display): Free x_dnd_atoms member.
10506
96f9306b
KH
105072008-12-13 Kenichi Handa <handa@m17n.org>
10508
6dec9044
JB
10509 * font.c (font_rescale_ratio): Moved from xfaces.c.
10510 Argument type changed. Handle a font-spec too.
96f9306b 10511 (font_score): Check Vface_font_rescale_alist.
6dec9044 10512 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
10513
10514 * xfaces.c (font_rescale_ratio): Moved to font.c.
10515
8d5b4964
CY
105162008-12-13 Chong Yidong <cyd@stupidchicken.com>
10517
10518 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10519
e6df5336
JR
105202008-12-12 Jason Rumney <jasonr@gnu.org>
10521
10522 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10523 Vwindow_system_version to the real w32 major version.
10524
97c6058a
DN
105252008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10526
10527 * term.c (init_tty): Move setting the terminal name before the
10528 potential user: maybe_fatal.
10529
ec4e88d7
CY
105302008-12-11 Chong Yidong <cyd@stupidchicken.com>
10531
d4835507
JB
10532 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10533 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 10534
b4233ec9
JR
105352008-12-11 Jason Rumney <jasonr@gnu.org>
10536
8ec71e23 10537 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 10538 SYMBOL_CHARSET. (Bug#547)
8ec71e23 10539
b4233ec9 10540 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 10541 size for surrogates. (Bug#1096, bug#872)
b4233ec9 10542
011a0143
JB
105432008-12-11 Juanma Barranquero <lekktu@gmail.com>
10544
10545 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10546
3c309f34
JB
105472008-12-11 Juanma Barranquero <lekktu@gmail.com>
10548
10549 * process.c (Fsystem_process_attributes, syms_of_process):
10550 Fix typo in name of Ssystem_process_attributes.
10551 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10552
fedc6ab5
JB
105532008-12-11 Juanma Barranquero <lekktu@gmail.com>
10554
10555 * syntax.c (Fmodify_syntax_entry): Doc fix.
10556
ba3de0e8
JB
105572008-12-10 Juanma Barranquero <lekktu@gmail.com>
10558
10559 * font.c (Ffont_spec): Move usage to end of docstring.
10560
174f1c74
JR
105612008-12-10 Jason Rumney <jasonr@gnu.org>
10562
10563 * w32font.c (Qcham): New symbol.
10564 (font_supported_scripts): Add cham, and comments for other new
10565 scripts in bitfield from OpenType spec.
9d32f818
JR
10566 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10567 contain characters beyond the bmp.
174f1c74 10568
7b649478
KH
105692008-12-10 Kenichi Handa <handa@m17n.org>
10570
10571 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 10572 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
10573 Qunicode_sip.
10574
2133e2d1
JB
105752008-12-10 Juanma Barranquero <lekktu@gmail.com>
10576
10577 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10578 (Fcoding_system_put): Use QCdefault_char.
10579 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10580
9af886ee
CY
105812008-12-09 Chong Yidong <cyd@stupidchicken.com>
10582
74d819eb
CY
10583 * xftfont.c (syms_of_xftfont): Fix typo.
10584
4ccfa1c0 10585 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 10586
7c19d3ae
DN
105872008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10588
10589 * emacs.c (main): Close daemon_pipe on exec.
10590
567826bb
CY
105912008-12-08 Chong Yidong <cyd@stupidchicken.com>
10592
10593 * termchar.h (struct tty): New members termcap_term_buffer and
10594 termcap_strings_buffer.
10595
10596 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 10597 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
10598 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10599 All callers changed.
10600 (init_tty): Store termcap data and string buffers in new struct
10601 tty members termcap_term_buffer and termcap_strings_buffer.
10602 (delete_tty): Free them.
4ccfa1c0 10603 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 10604
aa96c42b
SZ
106052008-12-07 Seiji Zenitani <zenitani@mac.com>
10606
10607 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 10608 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 10609
b7e1d896
CY
106102008-12-06 Chong Yidong <cyd@stupidchicken.com>
10611
10612 * coding.c (make_conversion_work_buffer): Disable buffer
10613 modification hooks in the work buffer.
10614
b5ec91a5
EZ
106152008-12-05 Eli Zaretskii <eliz@gnu.org>
10616
10617 * process.c (procfs_system_process_attributes): If `nread' has a
10618 negative value, assign zero to it.
10619
a5d2a52b
CY
106202008-12-05 Chong Yidong <cyd@stupidchicken.com>
10621
68c5540b 10622 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 10623
7bf1bb21
KH
106242008-12-05 Kenichi Handa <handa@m17n.org>
10625
10626 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10627 second character is a combining character.
10628
2fdc7d00
EZ
106292008-12-05 Eli Zaretskii <eliz@gnu.org>
10630
10631 * process.c (procfs_system_process_attributes): Don't use cmd,
10632 cmdsize, and q without initializing them first.
10633
bf6bfba8
JR
106342008-12-04 Jason Rumney <jasonr@gnu.org>
10635
10636 * w32font.c (w32font_draw): Initialize orig_clip before getting
10637 it, and delete it when finished.
10638
a3b1a468
DN
106392008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10640
10641 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10642 case when running as a daemon before detaching.
10643
8b8be8eb
JB
106442008-12-03 Juanma Barranquero <lekktu@gmail.com>
10645
805f2638 10646 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 10647
b1bde622
KH
106482008-12-03 Kenichi Handa <handa@m17n.org>
10649
e500c47d
KH
10650 * font.c (font_at): Set `multibyte' at first.
10651
ca516334
KH
10652 * coding.c (decode_coding_charset): Check type of an element of
10653 vector VALIDS.
7bf1bb21 10654 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 10655
4ccfa1c0 10656 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
10657 (font_for_char): Likewise.
10658
1e5ecd37
CY
106592008-12-03 Chong Yidong <cyd@stupidchicken.com>
10660
d5b01609 10661 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
10662 (font_update_lface): Handle fonts with corrupted size specs,
10663 i.e. non-int and non-float.
d5b01609 10664
11e3a6e4 10665 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 10666 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 10667 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 10668
ab06788b
CY
10669 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10670
1e5ecd37 10671 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 10672 underline_minimum_offset for underline position.
1e5ecd37 10673
63c125ab
DN
106742008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10675
10676 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10677
10678 * character.c (c_string_width): Specify the type for LEN.
10679
3a8406e1
KH
106802008-12-03 Kenichi Handa <handa@m17n.org>
10681
4ccfa1c0 10682 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 10683 (decode_coding_utf_8): Likewise.
4ccfa1c0 10684 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 10685 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 10686
651df7d9
CY
106872008-12-02 Chong Yidong <cyd@stupidchicken.com>
10688
10689 * keyboard.c (make_lispy_position): Only use PT if the selected
10690 window is current.
10691
1f625c6c
AS
106922008-12-02 Andreas Schwab <schwab@suse.de>
10693
f7741ce9
AS
10694 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10695
1f625c6c
AS
10696 * doprnt.c (doprnt1): Fix size of charbuf.
10697
92bc2678
CY
106982008-12-02 Chong Yidong <cyd@stupidchicken.com>
10699
10700 * keyboard.c (timer_check): Revert last change.
10701
93b9e8cc
JB
107022008-12-02 Juanma Barranquero <lekktu@gmail.com>
10703
10704 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10705
fd7a37d5
JB
107062008-12-01 Juanma Barranquero <lekktu@gmail.com>
10707
10708 * makefile.w32-in: Update dependencies.
10709 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10710
c115043b
AS
107112008-12-01 Andreas Schwab <schwab@suse.de>
10712
10713 * font.c (register_font_driver): Use xmalloc.
10714 (font_put_frame_data): Likewise.
10715
f5668d2a
CY
107162008-12-01 Chong Yidong <cyd@stupidchicken.com>
10717
860d96be
CY
10718 * xfaces.c (realize_x_face): Make abort condition clearer.
10719
f5668d2a
CY
10720 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10721
379c17e7
CY
107222008-11-30 Chong Yidong <cyd@stupidchicken.com>
10723
10724 * keyboard.c (timer_check): After a timer runs, ensure that the
10725 selected window's buffer is current.
10726
35f36d65
JB
107272008-11-30 Juanma Barranquero <lekktu@gmail.com>
10728
f952c61c
JB
10729 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10730 It was accidentally restored by the Unicode merge.
10731
35f36d65
JB
10732 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10733
b23077df
JB
107342008-11-29 Juanma Barranquero <lekktu@gmail.com>
10735
10736 * w32proc.c: Include "coding.h".
10737 (Fw32_short_file_name): Encode filename passed to Windows API.
10738 (Fw32_long_file_name): Encode filename passed to Windows API and
10739 decode back the result. (Bug#1433)
10740
b8ebe9dd
KH
107412008-11-29 Kenichi Handa <handa@m17n.org>
10742
8cc53f96
KH
10743 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10744 not before accessing it.
10745
b8ebe9dd
KH
10746 * charset.c (Fdefine_charset_internal): After calculating
10747 min_char, max_char, and fastmap, copy the charset structure again.
10748 (encode_char): Fix the previous change.
10749
59bc82c0
SZ
107502008-11-28 Seiji Zenitani <zenitani@mac.com>
10751
10752 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10753
10754 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10755
10756 * nsterm.m (x_set_frame_alpha): New function.
10757
32247e3d
EZ
107582008-11-27 Eli Zaretskii <eliz@gnu.org>
10759
10760 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10761
b003e5ff
JB
107622008-11-27 Juanma Barranquero <lekktu@gmail.com>
10763
10764 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10765 pointer to check_face_name.
10766
708550f5
KH
107672008-11-27 Kenichi Handa <handa@m17n.org>
10768
10769 * category.h (SET_CATEGORY_SET): Call set_category_set.
10770 (set_category_set): Extern it.
10771
10772 * category.c (hash_get_category_set): New function.
10773 (Fmodify_category_entry): Adjusted for the change of
10774 char_table_ref_and_range. Call hash_get_category_set to get a
10775 category set to store in the table.
10776
10777 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10778 Funify_charset.
10779
2ae37cf0 10780 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
10781 (DECODE_CHAR): Check if the decoder vector is ready.
10782 (ENCODE_CHAR): Check if the encoder char-table is ready.
10783 (maybe_unify_char): Extern it.
10784
10785 * charset.c (Vchar_unified_charset_table): Delete it.
10786 (inhibit_load_charset_map): New variable.
10787 (temp_charset_work): New variable.
10788 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10789 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10790 New macros.
10791 (load_charset_map): Meaning of control_flag changed. If
10792 inhibit_load_charset_map is nonzero, setup a table in
10793 temp_charset_work.
10794 (load_charset): New argument control_flag.
10795 (map_charset_for_dump): New function.
10796 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10797 map_charset_for_dump.
10798 (Fdefine_charset_internal): If the charset method is MAP, load
10799 mapping tables by calling load_charset.
10800 (Funify_charset): Don't load a mapping table but directly set
10801 Vchar_unify_table.
10802 (maybe_unify_char): New function.
10803 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10804 Handle the case of inhibit_load_charset_map being nonzero.
10805 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10806 Handle the case of inhibit_load_charset_map being nonzero.
10807 (Fclear_charset_maps): Just free temp_charset_work.
10808 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10809 variable.
10810
10811 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10812 change of char_table_ref_and_range.
10813 (char_table_ref_and_range): Change the meaning of argument FROM
10814 and TO. Now the caller must provide initial values for *FROM
10815 and *TO.
10816
10817 * fontset.c (fontset_add): Adjusted for the change of
10818 char_table_ref_and_range.
10819 (fontset_get_font_group): Likewise.
10820 (Ffontset_info): Likewise.
10821
10822 * keymap.c (describe_vector): Adjusted for the change of
10823 char_table_ref_and_range. For char-table, put boundary between
10824 non-ASCII and 8-bit characters.
10825
10826 * print.c (print_object): For bool-vector, delete unnecessary
10827 check of ASCII_BYTE_P.
10828
9196133b
JR
108292008-11-26 Jason Rumney <jasonr@gnu.org>
10830
10831 * w32font.c (w32font_open_internal): Don't include external
9acef61c 10832 leading in font height. (Bug#879)
9196133b 10833
9f688acf
GM
108342008-11-26 Glenn Morris <rgm@gnu.org>
10835
10836 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10837 redefinition with ifdef. (Bug#1383)
10838
90d19aff
AR
108392008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10840
10841 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10842
4ccfa1c0 108432008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
10844
10845 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10846 New EmacsView methods.
10847 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10848 Fixes bug #1048,1357,1414.
10849
108502008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10851
10852 Fix bug #1362.
10853 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10854 is not an indexed color.
10855 * nsterm.m (free_indexed_color): Add argument checking.
10856 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10857
e7d5ecb3
CY
108582008-11-24 Chong Yidong <cyd@stupidchicken.com>
10859
10860 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10861 Document confirm-after-completion value for
10862 minibuffer-completion-confirm.
10863
c285743c
JR
108642008-11-24 Jason Rumney <jasonr@gnu.org>
10865
10866 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10867 warning.
10868
b0857706
JR
108692008-11-23 Jason Rumney <jasonr@gnu.org>
10870
10871 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10872 restored before returning.
10873
10874 * w32font.c (check_face_name): New function.
10875 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 10876 fonts. (Bug#642)
b0857706 10877
ee50ff07
MR
108782008-11-22 Martin Rudalics <rudalics@gmx.at>
10879
10880 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10881 confirm-nonexistent-file-or-buffer in doc-string.
10882
b8ff72fa
SM
108832008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10884
10885 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10886 Fix copy/paste typo. Add checks.
10887
cee53ed4
KH
108882008-11-21 Kenichi Handa <handa@m17n.org>
10889
10890 * coding.c (detect_coding_iso_2022): Reject invalid composition
10891 sequence.
10892 (DECODE_COMPOSITION_START): If the current source is the last
10893 block, and the current composition doesn't end, regard this
10894 sequence as invalid.
10895 (decode_coding_iso_2022): Handle invalid composition sequence.
10896
f6ef1e65
MR
108972008-11-20 Martin Rudalics <rudalics@gmx.at>
10898
10899 * window.c (coordinates_in_window): Don't return
10900 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10901 line when the window is not the rightmost one. (Bug#1372)
10902
e08b1705
MR
109032008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10904
10905 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10906
ad98e89f
EZ
109072008-11-15 Eli Zaretskii <eliz@gnu.org>
10908
10909 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10910 and bright_bg if noninteractive is non-zero.
10911
fb098a4b
CY
109122008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10913
10914 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10915 x_draw_glyph_string_background.
10916
10917 * w32term.c (x_draw_glyph_string): Likewise.
10918
ce952b6e
CY
109192008-11-15 Chong Yidong <cyd@stupidchicken.com>
10920
10921 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10922 the next glyph string once past the overhang width.
10923
10924 * nsterm.m (ns_draw_glyph_string): Likewise.
10925
10926 * w32term.c (x_draw_glyph_string): Likewise.
10927
26ea7079
CY
109282008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10929
10930 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10931 double file close.
10932
1c33c906
MR
109332008-11-14 Martin Rudalics <rudalics@gmx.at>
10934
10935 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10936 dedicated status of window before attempting to display another
10937 buffer in it.
10938
8fc29035
JB
109392008-11-14 Juanma Barranquero <lekktu@gmail.com>
10940
10941 * msdos.c (Fmsdos_long_file_names):
10942 (syms_of_msdos) <dos-unsupported-char-glyph>:
10943 * dosfns.c (Fint86): Fix typos in docstrings.
10944
55fb4286
EZ
109452008-11-14 Eli Zaretskii <eliz@gnu.org>
10946
10947 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10948
3fda0315
KY
109492008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10950
10951 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10952
7e849c17
CY
109532008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10954
10955 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10956
10957 * frame.h: Negative alpha means "don't touch".
10958
10959 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10960
10961 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10962
b9fd67bd
DN
109632008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10964
10965 * hftctl.c:
10966 * chpdef.h:
10967 * acldef.h: Remove files used only for systems no longer supported.
10968
10969 * Makefile.in: Fix .o alphabetical ordering.
10970 (hftctl.o): Remove dependency, file removed.
10971 (keymap.o, print.o): Depend on charset.h.
10972
d5998e03
KH
109732008-11-10 Kenichi Handa <handa@m17n.org>
10974
2ae37cf0 10975 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 10976
be70e183
CY
109772008-11-08 Chong Yidong <cyd@stupidchicken.com>
10978
10979 * dired.c (file_name_completion): If completion_ignore_case is
10980 enabled, ignore case when checking completion-regexp-list.
10981
7cf94eac
EZ
109822008-11-08 Eli Zaretskii <eliz@gnu.org>
10983
10984 * vm-limit.c (get_lim_data): Fix last change.
10985
ee107a89
KH
109862008-11-08 Kenichi Handa <handa@m17n.org>
10987
10988 * character.c (Fget_byte): New function.
10989 (syms_of_character): Defsubr Fget_byte.
10990
5fd15622
CY
109912008-11-07 Chong Yidong <cyd@stupidchicken.com>
10992
10993 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10994 cursor position is valid after scrolling.
10995
13d62fad
JB
109962008-11-06 Juanma Barranquero <lekktu@gmail.com>
10997
10998 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10999
a1dd2936
GM
110002008-11-06 Glenn Morris <rgm@gnu.org>
11001
11002 * xterm.c (handle_one_xevent): Don't let popup menus cause
11003 mouse-autoselect-window related window switching. (Bug#1261)
11004
860cd236
CY
110052008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11006
11007 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11008
653a3150
AS
110092008-11-04 Andreas Schwab <schwab@suse.de>
11010
11011 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11012
870f5cac
CY
110132008-11-03 Chong Yidong <cyd@stupidchicken.com>
11014
11015 * xfns.c (Fx_wm_set_size_hint): New function.
11016
1e02f3cb
MR
110172008-11-03 Martin Rudalics <rudalics@gmx.at>
11018
11019 * textprop.c (Fprevious_single_char_property_change): Return 0
11020 when there's no change in a string. (Bug#1301)
11021
e630dfc6
MR
110222008-11-02 Martin Rudalics <rudalics@gmx.at>
11023
11024 * frame.c (do_switch_frame): New argument NORECORD passed to
11025 Fselect_window.
11026 (Fselect_frame): New argument NORECORD passed to
11027 do_switch_frame.
11028 (Fset_frame_selected_window): New argument NORECORD passed to
11029 Fselect_frame.
11030 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11031 in call of do_switch_frame.
11032 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11033 Handle NORECORD argument in call of Fselect_frame.
11034 * lisp.h (do_switch_frame, Fselect_frame)
11035 (Fset_frame_selected_window): Adjust declarations.
11036 * window.c (select_frame_norecord): New function.
11037 (run_window_configuration_change_hook): Use it and call
11038 Fselect_frame with NORECORD set.
11039 (Fselect_window): Pass NORECORD to Fselect_frame.
11040 (Fset_window_configuration): Handle NORECORD argument in call of
11041 do_switch_frame.
11042 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11043 Fset_frame_selected_window.
11044 * keyboard.c (command_loop_1): Handle NORECORD in call of
11045 Fselect_frame (currently ifdefd).
11046
9020b223
GM
110472008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11048
11049 * emacs.c (USAGE2): Untabify.
11050
793ffee8
SM
110512008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11052
11053 * composite.c (fill_gstring_header): Fix copy/paste typo.
11054
ab6d1131
MR
110552008-10-31 Martin Rudalics <rudalics@gmx.at>
11056
11057 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11058 (Fother_window): Rename argument and rewrite doc-string.
11059 (select_window_norecord): Fix return value. (Bug#1276)
11060
601a9cf1
JB
110612008-10-30 Juanma Barranquero <lekktu@gmail.com>
11062
11063 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11064 new frames overriding foreground for tooltips. Based on similar patch
11065 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11066
813b0652
CY
110672008-10-29 Chong Yidong <cyd@stupidchicken.com>
11068
11069 * emacs.c (Fdaemon_initialized): Initialize nfd.
11070
4414f58f
MR
110712008-10-29 Martin Rudalics <rudalics@gmx.at>
11072
11073 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11074 (Fwindow_text_height): Clarify doc-strings.
11075 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11076 doc-string of window-scroll-functions.
11077
ecdcaa09
RS
110782008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11079
11080 * category.c (syms_of_category): Fix typo in docstring.
11081
23fe745a
JB
110822008-10-28 Juanma Barranquero <lekktu@gmail.com>
11083
11084 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11085 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11086 Fix typos in docstrings.
11087
ff808935
DN
110882008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11089
11090 * emacs.c (daemon_pipe): Make non-static.
11091 (IS_DAEMON): Move definition ...
11092 * lisp.h (IS_DAEMON): ... here.
11093 (daemon_pipe): Declare.
11094 (is_daemon): Remove.
11095 * dispnew.c (init_display): Use IS_DAEMON.
11096
fc012771
SM
110972008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11098
11099 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11100 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11101
11102 * emacs.c (is_daemon): Remove.
11103 (main): Don't set is_daemon.
11104 (IS_DAEMON): New macro.
11105 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 11106 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
11107 parent exits.
11108 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11109
d8bdbe6f
CY
111102008-10-27 Chong Yidong <cyd@stupidchicken.com>
11111
d1a072bf
CY
11112 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11113 over-sized glyph, draw it with the default glyph width.
11114
e2e325aa
CY
11115 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11116 glyph, draw it with the default glyph width.
11117
11118 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11119 glyph, draw it with the default glyph width.
11120
d8bdbe6f
CY
11121 * xdisp.c (try_scrolling): When computing the distance from the
11122 scroll margin to PT, try moving some distance past the window
11123 bottom before giving up.
11124
7bfac547
MR
111252008-10-27 Martin Rudalics <rudalics@gmx.at>
11126
11127 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11128 (Fset_window_buffer): Explain in doc-string that a window can be
11129 "strongly" dedicated to its buffer.
11130
4ff029f6
DN
111312008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11132
11133 * emacs.c (daemon_name): New variable.
11134 (main): Deal with --daemon=SERVER_NAME.
11135 (Fdaemonp): Return a name if one was passed to --daemon.
11136
5790ef40
DN
111372008-10-26 Romain Francoise <romain@orebokech.com>
11138
f9bd0df9 11139 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
11140 (main): Create a pipe before forking, make the parent exit only after
11141 the child has closed its end of the pipe. Move closing the
11142 descriptors ...
11143 (Fdaemon_initialized): ... here. New function.
11144
f5385255
SM
111452008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11146
4d632321
SM
11147 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11148 the previous unoptimized table.
11149
f5385255
SM
11150 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11151 the distinction between non-nil and non-t value of `dedicated'.
11152
6c56a0f3
CY
111532008-10-25 Chong Yidong <cyd@stupidchicken.com>
11154
11155 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 11156 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 11157
fec89261
MR
111582008-10-25 Martin Rudalics <rudalics@gmx.at>
11159
11160 * window.c (Fget_buffer_window, Fdelete_windows_on)
11161 (Freplace_buffer_in_windows): Make buffer argument optional and
11162 rename to buffer_or_name.
11163
34fcddd0
CY
111642008-10-24 Chong Yidong <cyd@stupidchicken.com>
11165
f5385255
SM
11166 * xdisp.c (handle_single_display_spec, handle_display_prop):
11167 Undo 2005-05-16 change.
34fcddd0
CY
11168 (handle_stop): Pop iterator if it's loaded with an empty string.
11169 (get_overlay_strings_1): Don't save iterator if it's loaded with
11170 an empty string (bug#1201).
11171
064766f2
KH
111722008-10-24 Kenichi Handa <handa@m17n.org>
11173
11174 * ftfont.c (ftfont_otf_features): Fix previous change.
11175 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11176 calling ftfont_otf_features.
11177
f9bd0df9 111782008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
11179
11180 * font.c (font_match_p): Fix for the case that a vector of
11181 characters is in script-representative-chars.
11182
1dae9197
MA
111832008-10-24 Michael Albinus <michael.albinus@gmx.de>
11184
11185 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 11186 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
11187 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11188 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 11189 macro. (Bug#1186)
1dae9197 11190
f9bd0df9 111912008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
11192
11193 * s/sol2-10.h: New file.
11194
878a4584
JB
111952008-10-23 Juanma Barranquero <lekktu@gmail.com>
11196
11197 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11198 poor beast has survived 9+ years and the jump from xterm.c!).
11199
cd265ca6
MR
112002008-10-23 Martin Rudalics <rudalics@gmx.at>
11201
11202 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11203 Reword doc-string.
f5385255 11204 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 11205
472a4dc9
JB
112062008-10-23 Juanma Barranquero <lekktu@gmail.com>
11207
11208 * character.c (syms_of_character) <script-representative-chars>:
11209 <unicode-category-table>: Doc fixes.
11210
159bd5a2
NF
112112008-10-23 Noah Friedman <friedman@splode.com>
11212
11213 * coding.c (make_conversion_work_buffer): Check that
11214 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11215 Fget_buffer_create.
11216
49f9c344
KH
112172008-10-23 Kenichi Handa <handa@m17n.org>
11218
11219 * font.c (font_add_log): Check the values of extra properties.
11220
12bb3111
MR
112212008-10-22 Martin Rudalics <rudalics@gmx.at>
11222
11223 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11224 Reword doc-string.
11225 (Fset_window_parameter): Use NILP.
11226 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 11227 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 11228
bbeb4e99
JB
112292008-10-22 Juanma Barranquero <lekktu@gmail.com>
11230
11231 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11232
112332008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
11234
11235 * nsfns.m (ns_appkit_version): New function.
11236 (x-server-version): Use it.
11237 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11238 (x-server-vendor): Don't check_ns().
11239
11240 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11241
a9b555d3
JB
112422008-10-22 Juanma Barranquero <lekktu@gmail.com>
11243
11244 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11245 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11246
4626499f
KH
112472008-10-22 Kenichi Handa <handa@m17n.org>
11248
e3681952
KH
11249 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11250 scripts.
11251
4626499f
KH
11252 * category.c (word_boundary_p): Check scripts instead of charset.
11253 Handle nil value in word-separating-categories and
11254 word-combining-categories.
11255 (syms_of_category): Fix docstrings of word-separating-categories
11256 and word-combining-categories.
11257
1560f91a
EZ
112582008-10-21 Eli Zaretskii <eliz@gnu.org>
11259
11260 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11261 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11262
f4668441
MR
112632008-10-21 Martin Rudalics <rudalics@gmx.at>
11264
11265 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11266 Rename arg "buffer" to "buffer_or_name".
11267 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11268 it optional.
11269 (no_switch_window): Remove since the return value is not used.
a9b555d3 11270 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
11271 Consider window as dedicated when Fwindow_dedicated_p returns a
11272 non-nil value.
11273 * lisp.h: Remove prototype for no_switch_window.
11274
fd75ddb2
JD
112752008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11276
11277 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 11278 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 11279
07295713
KH
112802008-10-21 Kenichi Handa <handa@m17n.org>
11281
11282 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11283 check Vlatin_extra_code_table.
11284
712adc82
EZ
112852008-10-20 Eli Zaretskii <eliz@gnu.org>
11286
11287 * fileio.c (Fset_file_modes): Doc fix.
11288
f549eb0b
MA
112892008-10-19 Michael Albinus <michael.albinus@gmx.de>
11290
11291 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11292 in arrays.
11293
aac0c6e3
MR
112942008-10-19 Martin Rudalics <rudalics@gmx.at>
11295
11296 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11297 Mention kill-buffer in doc-string.
11298 (Fset_window_buffer): Reinsert tem check removed in last commit.
11299 (Fenlarge_window, Fshrink_window): Have argument names and
11300 doc-string follow Elisp manual more closely.
11301
113022008-10-18 Eli Zaretskii <eliz@gnu.org>
11303
11304 * fileio.c (Fset_file_modes): Doc fix.
11305
113062008-10-18 Martin Rudalics <rudalics@gmx.at>
11307
11308 * window.c (Fwindow_width, Fset_window_start)
11309 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
11310 (Fdelete_windows_on, Freplace_buffer_in_windows):
11311 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
11312 (Fwindow_dedicated_p): Make window argument optional.
11313 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11314 (Fset_window_buffer): Respect any non-nil dedicated value for
11315 window. Rename "buffer" argument to "buffer_or_name".
11316
113172008-10-18 Ulrich Mueller <ulm@gentoo.org>
11318
11319 * m/sh3.h: New file, machine description for SuperH.
11320
113212008-10-17 Martin Rudalics <rudalics@gmx.at>
11322
11323 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11324
113252008-10-17 Kenichi Handa <handa@m17n.org>
11326
11327 * ftfont.c (ftfont_otf_features): Fix indexing
11328 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11329
113302008-10-16 Magnus Henoch <mange@freemail.hu>
11331
11332 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11333 (Fdbus_call_method_asynchronously): Ditto.
11334 This change makes C-h f display the argument list.
11335
113362008-10-16 Chong Yidong <cyd@stupidchicken.com>
11337
11338 * fileio.c (Fexpand_file_name): Doc fix.
11339
11340 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11341 of :foreground and :background equivalent to unspecified (20.x
11342 compatibility).
11343
113442008-10-15 Eli Zaretskii <eliz@gnu.org>
11345
11346 * buffer.c (syms_of_buffer): Doc fix.
11347
113482008-10-14 Kenichi Handa <handa@m17n.org>
11349
11350 * font.c (font_clear_prop): When clearing font width, clear the
11351 average width field too.
11352
113532008-10-12 Andreas Schwab <schwab@suse.de>
11354
11355 * ftfont.c (ftfont_shape_by_flt): Make static.
11356 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11357
11358 * font.c: Don't include <m17n-flt.h>.
11359
113602008-10-10 Eli Zaretskii <eliz@gnu.org>
11361
11362 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11363
113642008-10-09 Eli Zaretskii <eliz@gnu.org>
11365
11366 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11367 away code.
11368
113692008-10-09 Chong Yidong <cyd@stupidchicken.com>
11370
11371 * dispnew.c (update_text_area): Avoid looping due to large glyph
11372 overhangs (bug#1070).
11373
113742008-10-09 Kenichi Handa <handa@m17n.org>
11375
11376 * fontset.c (face_for_char): If face->fontset is negative, just
11377 return ascii_face.
11378
f5385255
SM
11379 * font.c (font_delete_unmatched): Fix previous change.
11380 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
11381
113822008-10-09 Martin Rudalics <rudalics@gmx.at>
11383
11384 * frame.c (Fraise_frame): On text-only terminals select frame in
11385 order to make it visible. (Bug#1061)
11386
113872008-10-08 Chong Yidong <cyd@stupidchicken.com>
11388
11389 * fontset.c (fontset_find_font): Check frame validity.
11390
113912008-10-07 Chong Yidong <cyd@stupidchicken.com>
11392
a9b555d3 11393 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
11394 (xg_display_close): Allow Emacs to close all displays (bug#985).
11395
113962008-10-06 Andreas Schwab <schwab@suse.de>
11397
f5385255 11398 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
11399
114002008-10-06 Chong Yidong <cyd@stupidchicken.com>
11401
f5385255 11402 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 11403
a9b555d3 11404 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
11405
11406 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11407 during initialization.
11408
114092008-10-04 Eli Zaretskii <eliz@gnu.org>
11410
11411 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11412 whole thing on MSDOS frames as well as on a TTY.
11413
11414 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11415 well as for TTY.
11416 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11417 well as on a TTY.
11418
11419 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11420 as well as for TTY.
11421
11422 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11423
11424 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11425 MSDOS frames as well.
11426
114272008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11428
11429 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11430 correct arguments.
b71ac3dd 11431 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
11432
114332008-10-03 Glenn Morris <rgm@gnu.org>
11434
11435 * emacs.c (USAGE1): Add --daemon.
11436
114372008-10-02 Eli Zaretskii <eliz@gnu.org>
11438
11439 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11440 100, so it's in percents as advertised.
11441
114422008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11443
11444 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11445 (ns_output.current_cursor, ns_output.desired_cursor)
11446 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11447 (FRAME_NEW_CURSOR_COLOR): Remove.
11448
11449 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 11450 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
11451 enumeration (HOLLOW_BOX_CURSOR, etc.).
11452
11453 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11454 (draw_window_cursor): Simplify code.
f5385255
SM
11455 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11456 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 11457 updates manually.
a9b555d3
JB
11458 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11459 Use core Emacs cursor types.
aac0c6e3 11460
b8ff72fa 11461 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
11462
114632008-10-02 Martin Rudalics <rudalics@gmx.at>
11464
11465 * process.c (Faccept_process_output): Fix doc-string.
11466
114672008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11468
11469 * gmalloc.c (__sbrk): Also define for uClibc.
11470
11471 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11472 for uClibc.
11473
114742008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11475
11476 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11477 styles.
11478 (nsfont_open): Reenable the cache.
11479
114802008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11481
11482 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11483 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11484
114852008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11486
11487 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11488 a suspended terminal.
11489
114902008-09-30 Michael Albinus <michael.albinus@gmx.de>
11491
11492 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11493
114942008-09-30 Eli Zaretskii <eliz@gnu.org>
11495
11496 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11497
114982008-09-30 Chong Yidong <cyd@stupidchicken.com>
11499
11500 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11501 in a continued line coincides with a line beginning.
11502
115032008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11504
11505 * nsfont.m (nsfont_trait_distance): Fix bug.
11506 (nsfont_list): Return a list rather than a vector (syncs with Handa
11507 changes of 2008-05-14).
11508 (nsfont_open): Improve logging.
11509
115102008-09-29 Andreas Schwab <schwab@suse.de>
11511
11512 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11513
115142008-09-28 Martin Rudalics <rudalics@gmx.at>
11515
11516 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11517 name as char-resolve-modifiers.
11518 Reported by: Markus Triska <markus.triska@gmx.at>
11519
115202008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11521
11522 * dispnew.c (init_display): Return earlier when running as a daemon.
11523
115242008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11525
11526 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11527
115282008-09-27 Eli Zaretskii <eliz@gnu.org>
11529
11530 * composite.c (Fcomposition_get_gstring)
11531 (Fcompose_region_internal, Fcompose_string_internal)
11532 (Ffind_composition_internal): Doc fix.
11533 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11534 (syms_of_composite) <auto-composition-function>: Doc fix.
11535 (syms_of_composite) <composition-function-table>: Doc fix.
11536
115372008-09-25 Chong Yidong <cyd@stupidchicken.com>
11538
11539 * search.c (wordify): New argument for lax word-ends.
11540 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11541
115422008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11543
11544 * lisp.h (is_daemon): Declare.
11545 * dispnew.c (init_display): Do not try to initialize the terminal
11546 when running as a daemon.
11547
115482008-09-22 Chong Yidong <cyd@stupidchicken.com>
11549
11550 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11551 x_display_pixel_height.
11552
115532008-09-22 Martin Rudalics <rudalics@gmx.at>
11554
11555 * undo.c (record_point): Don't call Fundo_boundary for first
11556 change. (Bug#731)
11557
115582008-09-22 Juanma Barranquero <lekktu@gmail.com>
11559
11560 * emacs.c (Fdaemonp): Doc fix.
11561
115622008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11563
11564 * emacs.c (main): Place #ifdef in the proper place.
11565
115662008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11567
11568 * emacs.c (standard_args): Add --daemon.
11569 (main): Disconnect from the terminal when --daemon is passed.
11570 (is_daemon): New variable.
11571 (Fdaemonp): New function.
11572 (syms_of_emacs): Defsubr it.
11573
115742008-09-20 Chong Yidong <cyd@stupidchicken.com>
11575
11576 * xdisp.c (get_next_display_element): Handle string display
11577 correctly when checking for the end of a box run.
11578
115792008-09-20 Glenn Morris <rgm@gnu.org>
11580
11581 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11582 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11583 (Frename_file): Avoid copying to trash if a rename involves
11584 a delete. (Bug#964).
11585
115862008-09-20 Eli Zaretskii <eliz@gnu.org>
11587
11588 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11589 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11590 frames as well as termcap frames.
11591 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11592 get_named_tty.
11593
115942008-09-19 Eli Zaretskii <eliz@gnu.org>
11595
11596 * process.c (procfs_system_process_attributes): Fix cmdline in
11597 case /proc/PID/cmdline is empty.
11598
11599 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11600 x_display_pixel_height.
11601
116022008-09-19 Juanma Barranquero <lekktu@gmail.com>
11603
11604 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11605
11606 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11607 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11608
116092008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11610
11611 * dispextern.h (struct it): Move line_wrap away from the middle of
11612 bitfields. Move voffset in struct iterator_stack_entry after the
11613 bitfields. Move tab_width near after another short.
11614
116152008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11616
11617 * frame.h (struct frame): Move alpha from the middle of bitfields.
11618
11619 * window.h (struct window): Move frozen_window_start_p after the
11620 rest of the bitfields to reduce padding.
11621
116222008-09-18 Chong Yidong <cyd@stupidchicken.com>
11623
11624 * xterm.h (x_display_info): Remove `height' and `width' members.
11625
11626 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11627
11628 * w32term.h (w32_display_info): Remove `height', `width',
11629 `height_in', and `width_in' members.
11630
b8ff72fa
SM
11631 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11632 New functions.
aac0c6e3
MR
11633 (x_calc_absolute_position): Use them.
11634 (x_term_init): Omit removed `height' and `width' members.
11635
b8ff72fa
SM
11636 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11637 New functions.
aac0c6e3
MR
11638 (w32_read_socket, x_calc_absolute_position): Use them.
11639 (w32_initialize_display_info, w32_term_init): Omit removed members
11640 of w32_display_info.
11641
b8ff72fa
SM
11642 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11643 New functions.
11644 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 11645
b8ff72fa
SM
11646 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11647 New functions.
aac0c6e3
MR
11648 (x_calc_absolute_position): Use them.
11649 (x_term_init): Omit removed `height' and `width' members.
11650
11651 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
11652 (compute_tip_xy):
11653 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
11654 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11655 x_display_pixel_width.
11656
116572008-09-18 Kenichi Handa <handa@m17n.org>
11658
11659 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11660 (composition_compute_stop_pos): Fix handling of static composition.
11661 (Fcomposition_get_gstring): Check FROM and TO at first.
11662
116632008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11664
46e722a9 11665 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
11666 mixup (YAILOM).
11667
116682008-09-17 Chong Yidong <cyd@stupidchicken.com>
11669
11670 * indent.c (Fvertical_motion): Use position reported by iterator
11671 instead of PT for determining screen motion (bug#943).
11672
116732008-09-17 Romain Francoise <romain@orebokech.com>
11674
11675 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11676
116772008-09-17 Kenichi Handa <handa@m17n.org>
11678
11679 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11680
11681 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11682 if necessary.
11683
116842008-09-16 Kenichi Handa <handa@m17n.org>
11685
11686 * coding.c (make_conversion_work_buffer): Avoid calling
11687 Fget_buffer_create if it is not necessary.
11688
116892008-09-15 Martin Rudalics <rudalics@gmx.at>
11690
11691 * window.c (Fselect_window): Don't update window_select_count and
11692 use_time when norecord is not nil.
11693
116942008-09-14 Kenichi Handa <handa@m17n.org>
11695
11696 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11697 specpdl_ptr.
11698
116992008-09-12 Kenichi Handa <handa@m17n.org>
11700
11701 * indent.c (scan_for_column): Don't handle automatic composition
11702 if the current buffer is not associated with a window.
11703
11704 * composite.c (composition_reseat_it): If the current buffer is
11705 not associated with a window, ignore the automatic composition.
11706 (find_automatic_composition): Likewise.
11707
117082008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11709
11710 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11711 (Fgpm_mouse_stop): Use it.
11712 * termhooks.h (close_gpm): Declare.
11713 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11714 connection if Gpm_GetEvent fails.
11715
11716 * window.c (set_window_buffer): Always preserve current-buffer.
11717
117182008-09-12 Glenn Morris <rgm@gnu.org>
11719
11720 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11721
117222008-09-11 Glenn Morris <rgm@gnu.org>
11723
11724 * charset.c (charset-map-path): Doc fix.
11725
117262008-09-10 Kenichi Handa <handa@m17n.org>
11727
11728 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11729
11730 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11731 compose a grapheme cluster with the preceding base glyph.
11732
11733 * composite.c (composition_compute_stop_pos): Fix previous change.
11734 Reset cmp_it->id to -1 at first.
11735
117362008-09-10 Glenn Morris <rgm@gnu.org>
11737
11738 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11739
117402008-09-09 Chong Yidong <cyd@stupidchicken.com>
11741
11742 * keyboard.c (read_key_sequence): Reapply translation maps when
11743 switching keyboards.
11744
117452008-09-09 Kenichi Handa <handa@m17n.org>
11746
11747 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11748 characters.
11749
11750 * composite.c (FORWARD_CHAR): Fix calculation
11751 of (POSITION).pos_byte.
11752 (composition_compute_stop_pos): Limit the search of composition to
11753 at most 500 characters ahead. If we reach the limit or find a
11754 newline, set cmp_it->ch to -2 and return 0.
11755 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11756
117572008-09-08 Kenichi Handa <handa@m17n.org>
11758
11759 * indent.c (Fvertical_motion): Be sure to set
11760 it_overshoot_expected if it.cmp_it.id is non-negative.
11761
117622008-09-07 Andreas Schwab <schwab@suse.de>
11763
11764 * callproc.c (Fcall_process): Don't hold references to string data
11765 across garbage collection. Move initialisation of new_argv down
11766 to avoid compiler bug.
11767
117682008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11769
11770 * process.c (Fsystem_process_attributes): Doc fix.
11771
117722008-09-07 Chong Yidong <cyd@stupidchicken.com>
11773
11774 * callproc.c (Fcall_process): Canonicalize current directory name.
11775
11776 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11777 iterator advances to the next line if the current line ends in a
11778 continued tab.
11779
117802008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11781
11782 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11783 member to point to cmp_from.
11784
11785 * xdisp.c: Doc fix for references to gidx data member.
11786
117872008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11788
11789 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11790
117912008-09-07 Kenichi Handa <handa@m17n.org>
11792
11793 * composite.c (FORWARD_CHAR): Check STOP after
11794 incrementing (POSITION).pos.
11795
117962008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11797
11798 * process.c (Fsystem_process_attributes): Doc fix.
11799
118002008-09-06 Chong Yidong <cyd@stupidchicken.com>
11801
11802 * keyboard.c (Ftop_level): Doc fix.
11803
118042008-09-06 Eli Zaretskii <eliz@gnu.org>
11805
11806 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11807 minibuffer, don't let lower part of menu invade the echo area.
11808
11809 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11810 "char *q" to access menu text and advance through it. Revert the
11811 change that displayed ">" instead of ASCII character 0x10.
11812
118132008-09-05 Eli Zaretskii <eliz@gnu.org>
11814
11815 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11816 toggle boxes and radio buttons on MS-DOS as well.
11817
118182008-09-05 Kenichi Handa <handa@m17n.org>
11819
11820 * composite.c (autocmp_chars): Check lookback count.
11821 (composition_compute_stop_pos): Set cmp_it->lookback.
11822 (composition_reseat_it): Check lookback count.
11823 (struct position_record): New struct.
11824 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11825 (find_automatic_composition): New function.
11826 (composition_adjust_point): Use find_automatic_composition.
11827
11828 * dispextern.h (struct composition_it): New member lookback.
11829
118302008-09-02 Chong Yidong <cyd@stupidchicken.com>
11831
11832 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11833 if moving by a single line.
11834
118352008-09-02 Andreas Schwab <schwab@suse.de>
11836
11837 * xterm.c (x_delete_display): Fix merge error.
11838
11839 * fileio.c (Fexpand_file_name): Remove unused variables.
11840
118412008-09-02 Eli Zaretskii <eliz@gnu.org>
11842
11843 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11844 storage on all platforms, not just on DOS_NT.
11845
118462008-09-02 Jason Rumney <jasonr@gnu.org>
11847
b8ff72fa
SM
11848 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11849 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
11850
118512008-09-01 Chong Yidong <cyd@stupidchicken.com>
11852
11853 * xfaces.c (Finternal_set_alternative_font_family_alist)
11854 (Finternal_set_alternative_font_registry_alist): Properly copy
11855 entire alist structure.
11856
118572008-09-01 Kenichi Handa <handa@m17n.org>
11858
d66c0241 11859 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 11860 representative chars of the script is a vector.
d66c0241
JB
11861 (ftfont_list): Handle the case where the representative chars of
11862 the script is a vector.
aac0c6e3
MR
11863
11864 * character.c (syms_of_character): Docstring of
11865 script-representative-chars fixed.
11866
118672008-08-31 Eli Zaretskii <eliz@gnu.org>
11868
11869 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11870 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11871 the menu. Allocate larger buffer for `text', to account for
11872 possible ^C characters.
11873
118742008-08-31 Martin Rudalics <rudalics@gmx.at>
11875
11876 * xdisp.c (prepare_menu_bars): Don't call
11877 Vwindow_size_change_functions with arg Qt.
11878
118792008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11880
11881 * font.h (font_range):
11882 * fileio.c (report_file_error):
46e722a9
SM
11883 * composite.c (composition_update_it): Yet another int/Lisp_Object
11884 mixup (YAILOM).
aac0c6e3
MR
11885
118862008-08-30 Glenn Morris <rgm@gnu.org>
11887
11888 * data.c (Fmake_variable_frame_local): Doc fix.
11889
11890 * frame.c (Fmodify_frame_parameters): Doc fix.
11891
118922008-08-30 Eli Zaretskii <eliz@gnu.org>
11893
11894 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11895 needed by GetTokenInformation.
11896 (w32_system_process_attributes): Check return values of all system
11897 APIs.
11898
11899 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11900 only when the state changes.
11901 (IT_update_begin, IT_update_end): Add termscript trace.
11902
11903 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11904 clipboard is unavailable. Set dst to NULL if it doesn't point to
11905 malloc'ed data.
11906 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11907 passing random values to xfree.
11908
11909 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11910 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11911
119122008-08-29 Jason Rumney <jasonr@gnu.org>
11913
11914 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11915
119162008-08-29 Eli Zaretskii <eliz@gnu.org>
11917
11918 * composite.c (fill_gstring_body): Avoid compiler warnings.
11919
11920 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11921 LGLYPH_SET_CODE to avoid compiler warnings.
11922
2ae37cf0 11923 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11924
11925 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11926
11927 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11928 LGLYPH_SET_CODE.
11929
119302008-08-29 Kenichi Handa <handa@m17n.org>
11931
11932 * fileio.c (report_file_error): Don't downcase the first character
11933 of errstring if it is still unibyte.
11934
119352008-08-29 Kenichi Handa <handa@m17n.org>
11936
11937 These changes are to re-implement the automatic composition so
11938 that it doesn't use text properties.
11939
11940 * Makefile.in (ftfont.o): Depend on composite.h.
11941 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11942
11943 * character.h (Vunicode_category_table): Extern it.
11944
11945 * character.c (Vunicode_category_table): New variable.
11946 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11947
11948 * chartab.c (optimize_sub_char_table): Perform more greedy
11949 optimization.
11950
b8ff72fa
SM
11951 * composite.h (enum composition_method):
11952 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
11953 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11954 (Vcomposition_function_table): Extern it.
11955 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11956 (composition_gstring_put_cache, composition_gstring_from_id)
11957 (composition_gstring_p, composition_gstring_width)
11958 (composition_compute_stop_pos, composition_reseat_it)
11959 (composition_update_it, composition_adjust_point): Extern them.
11960 (Fcomposition_get_gstring): EXFUN it.
11961
d66c0241 11962 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
11963 (Vcomposition_function_table)
11964 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
11965 (gstring_hash_table, gstring_work, gstring_work_headers):
11966 New variables.
aac0c6e3
MR
11967 (gstring_lookup_cache, composition_gstring_put_cache)
11968 (composition_gstring_from_id, composition_gstring_p)
11969 (composition_gstring_width, fill_gstring_header)
11970 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11971 (composition_reseat_it, composition_update_it)
b8ff72fa 11972 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
11973 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11974 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 11975 Defsubr composition_get_gstring.
aac0c6e3
MR
11976
11977 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11978 cmp_id.
11979 (struct glyph_string): Delete the member gidx. New members
11980 cmp_id, cmp_from, and cmp_to.
11981 (enum it_method): Delete GET_FROM_COMPOSITION.
11982 (struct composition_it): New struct.
11983 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11984 Delete c, len, cmp_id, cmp_len in u.comp.
11985
11986 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 11987 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 11988 (enum lglyph_indices): Likewise.
b8ff72fa 11989 (font_range): Adjust extern.
aac0c6e3
MR
11990 (font_fill_lglyph_metrics): Extern it.
11991
11992 * font.c (QCf): New variable.
11993 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11994 (font_prepare_composition): Delete this function.
11995 (font_range): Type and arguments changed.
11996 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11997 (font_fill_lglyph_metrics): New function.
b8ff72fa 11998 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 11999 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
12000 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12001 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
12002
12003 * fontset.h (font_for_char): Extern it.
12004
12005 * fontset.c (font_for_char): New function.
12006
12007 * ftfont.c: Include composite.h.
12008 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 12009 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
12010
12011 * indent.c: Include composite.h and dispextern.h.
12012 (check_composition): Delete this function.
12013 (scan_for_column): Handle composition by
12014 composition_compute_stop_pos, composition_reseat_it, and
12015 composition_update_it.
12016 (compute_motion): Likewise.
12017 (Fvertical_motion): Fix checking of composition.
12018
12019 * keyboard.c (adjust_point_for_property): Check composition by
12020 composition_adjust_point.
12021
b8ff72fa 12022 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
12023 struct glyph_string.
12024
b8ff72fa
SM
12025 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12026 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
12027 struct glyph.
12028 (produce_composite_glyph): Likewise.
12029
b8ff72fa
SM
12030 * w32term.c (x_draw_composite_glyph_string_foreground):
12031 Adjust for the change of struct glyph_string.
aac0c6e3
MR
12032 (x_draw_glyph_string): Likewise.
12033
12034 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12035 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12036
12037 * xdisp.c: Include font.h.
12038 (it_props): Delete the entry for Qauto_composed.
12039 (init_iterator): Initialize it->cmp_it.id to -1.
12040 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 12041 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
12042 (handle_auto_composed_prop): Delete it.
12043 (handle_composition_prop): Handle only static composition.
12044 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12045 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 12046 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
12047 (pop_it): Likewise.
12048 (get_next_element): Delete next_element_from_composition.
12049 (CHAR_COMPOSED_P): New macro.
12050 (get_next_display_element): For automatic composition, get a face
12051 from the font in the glyph-string.
12052 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 12053 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
12054 (next_element_from_string): Check if the character at the current
12055 position is composed by CHAR_COMPOSED_P.
12056 (next_element_from_buffer): Likewise.
d66c0241
JB
12057 (next_element_from_composition): Adjust for the change of struct it.
12058 Update it->cmp_it.
b8ff72fa
SM
12059 (dump_glyph): Adjust for the change of struct glyph.
12060 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
12061 it and struct glyph. Don't handle automatic composition here.
12062 (fill_gstring_glyph_string): New function.
12063 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 12064 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
12065 (BUILD_GSTRING_GLYPH_STRING): New macro.
12066 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12067 automatic composition.
b8ff72fa 12068 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 12069 struct glyph.
b8ff72fa 12070 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 12071
b8ff72fa 12072 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
12073 the change of struct glyph_string.
12074 (x_draw_glyph_string): Likewise.
12075
120762008-08-29 Glenn Morris <rgm@gnu.org>
12077
12078 * buffer.c (word-wrap): Doc fix.
12079 * xdisp.c (truncate-partial-width-windows): Doc fix.
12080 Increase default to 50.
12081
120822008-08-29 Chong Yidong <cyd@stupidchicken.com>
12083
12084 * xdisp.c (update_tool_bar_unwind): New function.
12085 (update_tool_bar): Temporarily set selected frame before building
12086 tool-bar items.
12087
120882008-08-28 Michael Albinus <michael.albinus@gmx.de>
12089
12090 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12091 snprintf, respectively.
12092 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12093
120942008-08-28 Chong Yidong <cyd@stupidchicken.com>
12095
12096 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12097 LDFLAGS to GNUstep CC invocation.
12098
120992008-08-27 Chong Yidong <cyd@stupidchicken.com>
12100
12101 * indent.c (Fvertical_motion): Revert last change. Handle the
12102 general case where we are moving forward, and PT spans multiple
12103 screen lines.
12104
12105 * eval.c (find_handler_clause): Temporarily increase
12106 max-lisp-eval-depth while printing the backtrace buffer, to
12107 guarantee that help-mode code can run.
12108
121092008-08-27 Eli Zaretskii <eliz@gnu.org>
12110
12111 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12112 colors under -rv.
12113 (IT_set_frame_parameters): Don't swap foreground and background
12114 colors if `(reverse . t)' is present in the frame properties.
12115 (internal_terminal_init): Call init_frame_faces only for the
12116 initial frame.
12117
121182008-08-27 Andreas Schwab <schwab@suse.de>
12119
12120 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12121
121222008-08-27 Andreas Schwab <schwab@suse.de>
12123
12124 * search.c (search_buffer): Set char_base to zero only at the end.
12125
121262008-08-27 Kenichi Handa <handa@m17n.org>
12127
b8ff72fa 12128 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
12129
121302008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12131
12132 * xterm.c (x_term_init): Temporarily hide the partially
12133 initialized terminal while calling vendor-specific-keysyms.
12134
121352008-08-26 Eli Zaretskii <eliz@gnu.org>
12136
12137 * msdos.c (internal_terminal_init): Most initializations done only
12138 once, especially initial_screen_colors[] and termscript open.
12139
121402008-08-26 Chong Yidong <cyd@stupidchicken.com>
12141
12142 * eval.c (Fcondition_case): Doc fix.
12143
12144 * widgetprv.h (EmacsFramePart): Change font member to the new font
12145 struct.
12146
12147 * widget.c: Include character.h and font.h for XSETFONT.
12148 (setup_frame_gcs): Compute X font id from font struct, just once.
12149
121502008-08-26 Eli Zaretskii <eliz@gnu.org>
12151
12152 * term.c (get_named_tty): Fix last change.
12153
121542008-08-26 Chong Yidong <cyd@stupidchicken.com>
12155
12156 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 12157 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
12158
121592008-08-25 Eli Zaretskii <eliz@gnu.org>
12160
12161 * frame.c (do_switch_frame): Mark previously displayed frame as
12162 obscured for FRAME_MSDOS_P frames as well.
12163
121642008-08-24 Eli Zaretskii <eliz@gnu.org>
12165
12166 * frame.c (make_terminal_frame): Initialize f->terminal,
12167 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12168 Set the top frame to newly created frame.
12169 (Fmake_terminal_frame): Reuse the_only_display_info.
12170
12171 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12172 estimating available memory.
12173
b97439ce 121742008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
12175
12176 * nsterm.m (ns_draw_window_cursor): Don't call
12177 NSDisableScreenUpdates and NSEnableScreenUpdates on
12178 non-NS_IMPL_COCOA systems.
12179
121802008-08-23 Andreas Schwab <schwab@suse.de>
12181
12182 * process.c (procfs_system_process_attributes): Fix use of
12183 uninitialized variables.
12184
121852008-08-23 Eli Zaretskii <eliz@gnu.org>
12186
12187 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12188
12189 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12190 calling tty-set-up-initial-frame-faces.
12191
b8ff72fa
SM
12192 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12193 Allow MSDOS frames along with X frames.
aac0c6e3
MR
12194
12195 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12196 addition to output_termcap.
12197
12198 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12199
12200 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12201 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12202 highlight.
12203
12204 * process.c [!subprocesses]: Define QCname.
12205 (syms_of_process): Intern and staticpro it.
12206
12207 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
12208 Adjust for changes in encoding/decoding routines.
12209 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
12210 encode_coding and decode_coding.
12211
b8ff72fa 12212 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
12213
12214 * dosfns.c: Include frame.h before termhooks.h.
12215 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12216 variable termscript.
12217
12218 * s/msdos.h (USER_FULL_NAME): Define.
12219 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12220
12221 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12222 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12223 pw->pw_gecos.
12224
12225 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12226 SELECTED_FRAME as additional (1st) argument.
12227 (tty_read_avail_input): Handle output_msdos_raw in
12228 addition to output_termcap.
12229
12230 * msdos.c: Include frame.h before termhooks.h.
12231 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12232 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12233 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12234 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12235 (IT_set_terminal_modes, IT_reset_terminal_modes)
12236 (IT_set_frame_parameters): Use tty->termscript instead of a global
12237 variable termscript.
12238 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12239 global variable terminal_coding. Don't refer to
12240 Vnonascii_translation_table.
12241 (internal_terminal_init): Set Vwindow_system in current_kboard.
12242 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12243 Announce date and time of session start, if termscript is open.
12244 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
12245 term.c:init_tty). Open termscript only of not already open.
12246 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
12247 here instead of dos_ttraw. Don't initialize display if this is an
12248 initial tty. Don't set FRAME_FONT.
12249 (Vwindow_system_version): Bump to 23.
12250 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12251 is available, set up mouse_position_hook.
12252 (dos_ttraw, IT_set_terminal_modes): If called with initial
12253 terminal, do nothing.
12254 (IT_set_frame_parameters): Handle the Qtty_type frame
12255 parameter by calling internal_terminal_init.
12256 (dos_set_window_size, show_mouse_face)
12257 (clear_mouse_face, IT_note_mode_line_highlight)
12258 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12259 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12260 (initialize_msdos_display): New function.
12261 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12262 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12263 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12264 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 12265 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
12266 (request_sigio, unrequest_sigio): Don't define, now defined on
12267 sysdep.c.
12268 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12269
12270 * term.c [MSDOS]: Include msdos.h.
12271 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12272 conditional to DOS_NT. Allow only one call to this function in a
12273 session. Don't allocate a new struct tty_display_info; instead,
12274 reuse the_only_display_info. Call get_tty_size to get screen
12275 dimensions. Call init_baud_rate to set bad_rate.
12276 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12277 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 12278 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
12279 (get_tty_terminal, get_named_tty, Ftty_type)
12280 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12281 output_termcap.
b8ff72fa
SM
12282 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12283 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 12284 only when subprocesses are supported.
aac0c6e3
MR
12285
12286 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12287 f->output_data.x.
12288 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12289 terminal devices.
12290
5582fbc7 12291 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
12292 x_output.
12293 (FRAME_FONT): Use output_data.tty.
12294 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
12295 (struct x_display_info): Rename from display_info. Update all users in
12296 msdos.c.
aac0c6e3 12297 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 12298 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
12299 (dos_ttraw): Update prototype.
12300
12301 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12302 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12303
123042008-08-23 Jason Rumney <jasonr@gnu.org>
12305
12306 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12307 (fn_TIFFSetDirectory): New library function used.
12308 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12309 (tiff_load): Use :index to select among multiple images. Set count
12310 property when multiple images exist.
12311 (gif_format): Use :index, not :image.
12312
123132008-08-23 Chong Yidong <cyd@stupidchicken.com>
12314
12315 * xdisp.c (try_scrolling): Check INT_MAX instead of
12316 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12317 to obtain INT_MAX.
12318
123192008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12320
12321 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12322
123232008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12324
12325 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12326 GNUstep library location.
12327
123282008-08-21 Chong Yidong <cyd@stupidchicken.com>
12329
12330 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12331 before using it.
12332
12333 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12334
123352008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12336
12337 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12338 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12339 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12340 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12341 (EmacsApp-cursor_blink_handler): Remove declaration.
12342 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12343 match 01 Feb 2008 changes in xterm.c.
12344 (ns_read_socket): Add cast to avoid warning.
12345 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12346 GNUstep.
12347
123482008-08-20 Chong Yidong <cyd@stupidchicken.com>
12349
12350 * xselect.c (x_get_foreign_selection): Return nil if desired
12351 selection could not be obtained, instead of signalling an error.
12352
123532008-08-20 David Reitter <david.reitter@gmail.com>
12354
12355 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12356 * nsterm.m: Remove ns-specific code for cursor blinking.
12357 (ns_draw_window_cursor): Clear cursor properly rather than
12358 redrawing the area. Respect width of bar cursors.
12359 These changes enable the use of generic blink-cursor-mode and
12360 generic cursor types in NS and support smooth cursor movements (do
12361 not blink off after command).
12362 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12363 Nextstep, too.
12364
123652008-08-19 Kenichi Handa <handa@m17n.org>
12366
12367 * font.c (Vfont_log_deferred): New variable.
12368 (font_add_log): Check Vfont_log_deferred.
12369 (font_deferred_log): New function.
12370
12371 * font.h (font_deferred_log): Extern it.
12372
12373 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12374 for sorting.
12375 (face_for_char): Use deferred log.
12376
123772008-08-18 Kenichi Handa <handa@m17n.org>
12378
12379 * fontset.c (face_for_char): Add font log.
12380
12381 * font.c (font_add_log): Add the font properties :script, :lang,
12382 and :otf in the log.
12383
123842008-08-17 Chong Yidong <cyd@stupidchicken.com>
12385
12386 * xdisp.c: Remove dead code.
12387 (handle_invisible_prop, next_overlay_string): Defer call to
12388 setup_for_ellipsis.
12389 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12390
123912008-08-15 Chong Yidong <cyd@stupidchicken.com>
12392
12393 * xfaces.c (lookup_derived_face): Properly handle possible zero
12394 return value of get_lface_attributes.
12395 (merge_faces): Don't tell lookup_derived_face to signal an error
12396 if face is not found.
12397
12398 * dired.c (Fdirectory_files): Doc fix.
12399
12400 * process.c (make_process): Initialize kill_without_query struct
12401 member.
12402
124032008-08-15 Eli Zaretskii <eliz@gnu.org>
12404
12405 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12406 Alternative calculation of totphys for Visual Studio 6.
12407
12408 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12409
12410 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12411 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12412 All users changed.
12413 (stat): Only root directory passed to GetDriveType. Allow RAM
12414 disk as well as local fixed disk when w32-get-true-file-attributes
12415 is set to `local'.
12416 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12417 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12418 (w32_cached_id, w32_add_to_cache): New functions.
12419 (get_name_and_id): Look account names in the cache before calling
12420 lookup_account_sid.
12421 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12422 New initialization flags.
12423 (globals_of_w32): Initialize them to zero.
12424 (w32_system_process_attributes): Use w32_cached_id and
12425 w32_add_to_cache.
12426
124272008-08-14 Lawrence Mitchell <wence@gmx.li>
12428
12429 * lread.c (Fread_char, Fread_char_exclusive): If no character
12430 event is read before timeout is reached, return nil, rather than
12431 converting to a number.
12432
124332008-08-14 Chong Yidong <cyd@stupidchicken.com>
12434
12435 * fns.c (use_dialog_box): Doc fix.
12436
12437 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12438 on OS X.
12439
124402008-08-13 Chong Yidong <cyd@stupidchicken.com>
12441
12442 * frame.c (Qns_parse_geometry): New var.
12443 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12444
124452008-08-11 Chong Yidong <cyd@stupidchicken.com>
12446
12447 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12448 space character in calculating tabs.
12449
124502008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12451
12452 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12453
124542008-08-10 Glenn Morris <rgm@gnu.org>
12455
12456 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12457 silence gcc "limited range of data type" warnings in some
12458 make_fixnum_or_float calls.
12459
124602008-08-09 Eli Zaretskii <eliz@gnu.org>
12461
12462 * w32.c (w32_system_process_attributes): If the process does not
12463 exist, return nil.
12464
12465 * w32.c: Include thelp32.h, psapi.h and coding.h.
12466 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12467 declarations.
12468 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12469 (Process32Next_Proc): New typedefs.
12470 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12471 (g_b_init_process32_next, g_b_init_open_thread_token)
12472 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12473 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12474 (g_b_init_get_process_working_set_size)
12475 (g_b_init_global_memory_status_ex): New static variables.
12476 (globals_of_w32): Initialize them.
12477 (create_toolhelp32_snapshot, process32_first, process32_next)
12478 (open_thread_token, impersonate_self, revert_to_self)
12479 (get_process_memory_info, get_process_working_set_size)
12480 (global_memory_status, global_memory_status_ex): New wrapper
12481 functions.
12482 (w32_list_system_processes, w32_system_process_attributes)
12483 (enable_privilege, restore_privilege, ltime, process_times):
12484 New functions.
12485 (convert_time_raw): New function.
12486 (convert_time): Remove conversion of FILETIME into time in 100
12487 nsec units, call convert_time_raw instead.
12488
12489 * process.h (w32_list_system_processes, w32_system_process_attributes):
12490 Add prototypes.
12491 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12492 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12493 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12494 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12495
12496 * process.c (Fsystem_process_attributes): Doc fix.
12497
124982008-08-08 Chong Yidong <cyd@stupidchicken.com>
12499
12500 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12501 a continued multi-char glyph; if so, advance to the actual glyph.
12502
125032008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12504
12505 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12506
12507 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12508 (.m.o): Use it.
12509 * config.in: Regenerate.
12510
125112008-08-07 Chong Yidong <cyd@stupidchicken.com>
12512
12513 * xdisp.c (redisplay_window): Revert last change.
12514 (try_window): Check bottom scroll margin too.
12515
125162008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12517
12518 * config.in: Regenerate.
12519
12520 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12521 -list-load-path-shadows'.
12522 (nsgui.h): Reduce number of things depending on it.
12523
125242008-08-06 Chong Yidong <cyd@stupidchicken.com>
12525
12526 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12527 instead of window-end which does the wrong thing at eob.
12528 (try_cursor_movement): Minor optimization.
12529 (redisplay_window): If scroll margin is defined, don't assume
12530 window doesn't need scrolling.
12531
125322008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12533
12534 * config.in: Regenerate.
12535
12536 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12537 (mostlyclean): Don't delete *.d under NS.
12538
12539 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12540
125412008-08-06 Kenichi Handa <handa@m17n.org>
12542
12543 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12544
125452008-08-06 Andreas Schwab <schwab@suse.de>
12546
12547 * config.in: Regenerate.
12548
125492008-08-05 Chong Yidong <cyd@stupidchicken.com>
12550
12551 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12552 forcing a window start.
12553
12554 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12555 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12556
125572008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12558
12559 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12560 argument.
12561
125622008-08-05 Juanma Barranquero <lekktu@gmail.com>
12563
12564 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12565 <scroll-down-aggressively, before-change-functions>:
12566 <after-change-functions>: Reflow docstrings.
12567
125682008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 12569 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
12570
12571 Dock menu customization, based on a patch by Ken Raeburn, plus some
12572 other fixes.
12573 * nsmenu.m (dockMenu): New variable.
12574 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12575
12576 * nsterm.h (dockMenu): Declare.
12577
12578 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12579 (ns_term_init): Initialize dockMenu.
12580 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12581 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12582 left.
12583
12584 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12585
125862008-08-04 Chong Yidong <cyd@stupidchicken.com>
12587
12588 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12589
12590 * config.in: Regenerate.
12591
125922008-08-04 Seiji Zenitani <zenitani@mac.com>
12593
12594 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12595
125962008-08-04 Chong Yidong <cyd@stupidchicken.com>
12597
12598 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12599
126002008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12601
12602 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12603
12604 * keyboard.h: Comment an #endif.
12605
12606 * lisp.h (have_menus_p): Adjust comment.
12607
12608 * menu.c (find_and_return_menu_selection): Fix comparison with
12609 client_data.
12610
12611 * nsmenu.m (popup_activated_flag): New variable.
12612 (popup_activated): New function.
12613 (menu-or-popup-active-p): New exported lisp definition.
12614 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12615 when popup done.
12616 (ns_popup_dialog): Set popup_activated_flag.
12617
12618 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12619 version for GNUstep (handled by conditional typedef in nsterm.m).
12620 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12621 in rgb.txt).
12622
12623 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12624
12625 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12626
12627 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12628
12629 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12630 shortcircuit if popup_activated like GTK and X toolkit.
12631
12632 * m/inter386.h: Change DARWIN to DARWIN_OS.
12633
12634 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12635 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12636 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12637 comment on NO_SOCK_SIGIO.
12638
126392008-08-03 Chong Yidong <cyd@stupidchicken.com>
12640
12641 * nsterm.m (windowDidResize): Remove stopModal call.
12642
126432008-08-03 Andreas Schwab <schwab@suse.de>
12644
12645 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12646 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12647
126482008-08-02 Chong Yidong <cyd@stupidchicken.com>
12649
12650 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12651 Don't use uninitialized pointer variable when using getrlimit.
12652
126532008-08-02 Jason Rumney <jasonr@gnu.org>
12654
12655 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12656
126572008-08-02 Eli Zaretskii <eliz@gnu.org>
12658
12659 * alloc.c (NSTATICS): Bump to 0x640.
12660
12661 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12662
12663 * lisp.h: Add prototype for directory_files_internal.
12664
12665 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12666 New functions.
12667 (syms_of_process): Defsubr them. Add initializations for various
12668 Q* symbols used in procfs_system_process_attributes.
12669 (procfs_list_system_processes, procfs_system_process_attributes)
12670 [HAVE_PROCFS]: New functions.
12671 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12672 (procfs_get_total_memory): New functions.
12673
126742008-08-01 Juanma Barranquero <lekktu@gmail.com>
12675
12676 * xfaces.c (Fx_load_color_file): Fix previous change;
12677 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12678
126792008-08-01 Michael Albinus <michael.albinus@gmx.de>
12680
12681 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12682
126832008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12684
12685 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12686
126872008-08-01 Chong Yidong <cyd@stupidchicken.com>
12688
12689 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12690
12691 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12692 define NSApplicationDelegateReplySuccess.
12693 (EmacsView -converstationIdentifier): Use long instead of
12694 NSInteger for GNUstep, since it doesn't have NSInteger.
12695
12696 * xmenu.c: Revert last change.
12697
12698 * keyboard.h: Fix last change.
12699
127002008-08-01 Juanma Barranquero <lekktu@gmail.com>
12701
12702 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12703 on Windows.
12704
127052008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12706
12707 Warning clearing and clean-up in NS port.
12708 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12709 Add prototypes.
12710 * nsgui.h (FACE_DEFAULT): Remove, unused.
12711 (XGCValues): Change colors to unsigned long.
12712 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12713 nsterm.m.
12714 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12715 (ns_list_fonts): Remove, unused.
12716 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12717 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12718 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12719 (nsfont_draw): Compare face colors to 0, not nil.
12720 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12721 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12722 (-addSubmenuWithTitle:): Use NSMenuItem class.
12723 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12724 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12725 (ns_clip_to_row): Make gc arg a BOOL.
12726 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12727 ns_clip_to_row() call.
12728 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12729 used). Cast FRAME_FONT assignments.
12730 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12731 (ns_string_to_lispmod): Change arg to const char.
12732 (ns_term_init): Use NSMenuItem class.
12733 (EmacsApp -openFile:): Move to different section of file.
12734 (EmacsApp -application:openFiles:): Don't return a value, call
12735 -replyToOpenOrPrint:.
12736 (EmacsView -keyDown:): Fix up cast.
12737 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12738 (EmacsView -menuDown:): Cast tag in call to
12739 find_and_call_menu_selection().
12740 (ns_list_fonts): Remove, unused.
12741 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12742 (ns_fontname_to_xlfd): Make static.
12743 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12744 Remove prototypes (now in keyboard.h).
12745 (next_menubar_widget_id): Remove, unused.
12746 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12747 Remove prototypes (now in keyboard.h).
12748 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12749
127502008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12751
12752 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12753 (floatfns.o): Depend on syssignal.h.
12754 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12755
12756 * systty.h: Fix previous change that removed BSD_TERMIOS.
12757 Add comments to #ifdefs.
12758
127592008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12760
12761 * w32fns.c (w32-load-color-file): Remove.
12762 (x-open-connection): Use renamed Fx_load_color_file.
12763 * xfaces.c (x-load-color-file): Add.
12764 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12765 Emacs.clr.
12766 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12767
127682008-07-31 Michael Albinus <michael.albinus@gmx.de>
12769
12770 * dbusbind.c (Fdbus_call_method_asynchronously)
12771 (Fdbus_method_error_internal): New defuns.
12772 (xd_read_message): Handle also reply messages.
12773 (Vdbus_registered_functions_table): Extend docstring.
12774
127752008-07-31 Juanma Barranquero <lekktu@gmail.com>
12776
12777 * keyboard.c (gobble_input): Fix previous change.
12778
127792008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12780
12781 * bitmaps/README:
12782 * xfns.c:
12783 * termcap.c:
12784 * term.c:
12785 * syswait.h:
12786 * systty.h:
12787 * systime.h:
12788 * syssignal.h:
12789 * sysdep.c:
12790 * process.h:
12791 * process.c:
12792 * print.c:
12793 * ndir.h:
12794 * lread.c:
12795 * keyboard.c:
12796 * getpagesize.h:
12797 * floatfns.c:
12798 * fileio.c:
12799 * emacs.c:
12800 * doc.c:
12801 * dispnew.c:
12802 * dired.c:
12803 * data.c:
12804 * callproc.c:
12805 * buffer.c:
12806 * README:
12807 * Makefile.in:
12808 * s/template.h:
12809 * s/msdos.h:
12810 * m/vax.h: Remove VMS support.
12811 * s/vms.h:
12812 * vlimit.h:
12813 * uaf.h:
12814 * temacs.opt:
12815 * param.h:
12816 * ioctl.h: Remove file.
12817
128182008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12819
12820 * s/ms-w32.h (MULTI_KBOARD): Remove.
12821 * xterm.c:
12822 * xselect.c:
12823 * xfns.c:
12824 * window.c:
12825 * w32term.c:
12826 * w32fns.c:
12827 * terminal.c:
12828 * termhooks.h:
12829 * term.c:
12830 * sysdep.c:
12831 * keyboard.h:
12832 * keyboard.c:
12833 * frame.h:
12834 * frame.c:
12835 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12836 * config.in: Regenerate.
12837
128382008-07-30 Jason Rumney <jasonr@gnu.org>
12839
12840 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12841
12842 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12843 (w32font_open_internal): Get unicode version of textmetrics.
12844 Don't enable or disable glyph indices here.
12845 (w32font_open): Disable use of glyph indices.
12846
12847 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12848
128492008-07-30 Chong Yidong <cyd@stupidchicken.com>
12850
12851 * minibuf.c (Vread_buffer_function): Doc fix.
12852
128532008-07-30 John Paul Wallington <jpw@pobox.com>
12854
12855 * minibuf.c (read_buffer_completion_ignore_case): New var.
12856 (Fread_buffer): Use it.
12857
128582008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12859
12860 * systty.h (sensemode): Remove empty #if. Remove reference to
12861 BSD_TERMIOS, unused.
12862
12863 * sysdep.c: Remove reference to DGUX.
12864 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12865
12866 * config.in: Regenerate.
12867
128682008-07-30 Jason Rumney <jasonr@gnu.org>
12869
12870 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12871
128722008-07-29 Jason Rumney <jasonr@gnu.org>
12873
12874 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12875 is populated.
12876 (uniscribe_encode_char): Always use uniscribe.
12877 Avoid using context if cache is populated.
12878
128792008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12880
12881 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12882 open menu.
12883
12884 * gtkutil.c (menu_nav_ended): Remove.
12885 (create_menus): Remove signal connect for menu_nav_ended.
12886
128872008-07-28 Chong Yidong <cyd@stupidchicken.com>
12888
12889 * xdisp.c (redisplay_window): Check return value of
12890 compute_window_start_on_continuation_line before forcing a window
12891 start.
12892
128932008-07-28 Jason Rumney <jasonr@gnu.org>
12894
12895 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12896
12897 * w32term.c (w32_enable_unicode_output, cleartype_active):
12898 Remove obsolete display options.
12899 (x_draw_glyph_string_background): Don't use old cleartype_active
12900 workaround.
12901 (w32_initialize): Remove cleartype_active initialization.
12902 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12903
129042008-07-28 Andreas Schwab <schwab@suse.de>
12905
12906 * lisp.h (init_weak_hash_tables, syms_of_font)
12907 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12908 (remove_hash_entry): Don't declare.
12909 * eval.c (maybe_call_debugger): Make static and move before use.
12910 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12911 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12912 * xterm.h (x_set_frame_alpha): Declare.
12913
129142008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12915
12916 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12917 (create_menus): Connect selection-done to menu_nav_ended.
12918
129192008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12920
12921 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12922 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12923 parameter with read of 'alpha' one.
12924 (Qns_frame_parameter): Remove.
5582fbc7 12925 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12926 (next-selection-coding-system, Vselection_coding_system)
12927 (Vnext_selection_coding_system): Drop.
12928
129292008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12930
12931 * nsfns.m (do-applescript, do_applescript): Rename to
12932 ns-do-applescript, ns_do_applescript, and move within file.
12933
129342008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12935
12936 Remove support for Mac Carbon.
12937 * mactoolbox.c:
12938 * macterm.h:
12939 * macterm.c:
12940 * macselect.c:
12941 * macmenu.c:
12942 * macgui.h:
12943 * macfns.c:
12944 * mac.c: Remove file.
12945 * s/darwin.h:
12946 * m/intel386.h:
12947 * xfaces.c:
12948 * xdisp.c:
12949 * window.c:
12950 * tparam.c:
12951 * termhooks.h:
12952 * termcap.c:
12953 * term.c:
12954 * syssignal.h:
12955 * sysselect.h:
12956 * sysdep.c:
12957 * process.c:
12958 * lread.c:
12959 * lisp.h:
12960 * keyboard.c:
12961 * image.c:
12962 * fringe.c:
12963 * frame.h:
12964 * frame.c:
12965 * fontset.c:
12966 * font.h:
12967 * font.c:
12968 * fns.c:
12969 * fileio.c:
12970 * emacs.c:
12971 * dispnew.c:
12972 * dispextern.h:
12973 * config.in:
12974 * atimer.c:
2ae37cf0 12975 * Makefile.in: Remove code for Carbon.
aac0c6e3 12976
f0131492 129772008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12978
12979 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12980
129812008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12982
12983 * macterm.h (kCGBitmapByteOrder32Host): New define for
12984 non-universal SDKs.
12985
12986 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12987 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12988
12989 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12990 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12991
129922008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12993
12994 * w32inevt.c: Include dispextern.h.
12995
129962008-07-26 Andreas Schwab <schwab@suse.de>
12997
12998 * print.c (print_object): Fix off-by-one in last change.
12999
130002008-07-25 Juanma Barranquero <lekktu@gmail.com>
13001
13002 * term.c (syms_of_term): Don't initialize default_orig_pair,
13003 default_set_foreground and default_set_background on Windows.
13004
130052008-07-25 Jason Rumney <jasonr@gnu.org>
13006
13007 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13008 ScriptItemize. Clean up return value checking. Remove unused
13009 variables.
13010 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13011 shaping engine.
13012
13013 * w32font.c (w32font_has_char): Handle the case where we can't
13014 determine the script for a character.
13015
130162008-07-25 Chong Yidong <cyd@stupidchicken.com>
13017
13018 * term.c (syms_of_term): Initialize default_orig_pair,
13019 default_set_foreground, and default_set_background.
13020
13021 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13022 clash (bug#86).
13023 (getloadavg): Callers changed.
13024
13025 * image.c (svg_load_image): Fix last change.
13026 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13027 image size is valid. Use g_object_unref instead of deprecated
13028 rsvg_handle_free to free rsvg handle.
13029 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13030
130312008-07-25 Jason Rumney <jasonr@gnu.org>
13032
13033 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13034 surrogates before looking up glyph index.
13035 (w32font_text_extents): Encode as surrogates if falling back to
13036 functions that need UTF-16 wide chars.
13037
13038 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13039 BMP as surrogates before looking up glyph index.
13040
130412008-07-25 Chong Yidong <cyd@stupidchicken.com>
13042
13043 * image.c (svg_load_image): Check for failure in return value of
13044 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13045
130462008-07-25 Jason Rumney <jasonr@gnu.org>
13047
13048 * w32font.c (Fx_select_font): Reverse sense of second arg.
13049
130502008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13051
13052 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13053 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13054
13055 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13056 (PURESIZE): Use it.
13057
130582008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13059
13060 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13061 * m/alpha.h (TEXT_END):
13062 * m/ibmrs6000.h (TEXT_END):
13063 * m/macppc.h (TEXT_END):
13064 * s/darwin.h (TEXT_END):
13065 * s/msdos.h (TEXT_END): Remove, unused.
13066 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13067 * s/cygwin.h: Remove comment.
13068
13069 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13070 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13071 * m/intel386.h (DOT_GLOBAL_START):
13072 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13073 (USG): Remove, file not used on USG platforms.
13074
13075 * Makefile.in (HAVE_X11): Remove empty #else.
13076
130772008-07-24 Andreas Schwab <schwab@suse.de>
13078
13079 * fileio.c (Finsert_file_contents): Properly adjust undo list
13080 after format conversion.
13081
130822008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13083
13084 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13085 (menu_nav_ended): Remove.
13086 (create_menus): Remove signal connect for menu_nav_ended.
13087 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13088 create_menus.
13089 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13090
130912008-07-23 Jason Rumney <jasonr@gnu.org>
13092
13093 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13094 with opened font.
13095 (w32font_open): Set font type to gdi.
13096
13097 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13098
130992008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13100
13101 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13102 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13103 defines it.
13104 * unexec.c (ADDR_CORRECT): Define unconditionally.
13105
13106 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13107
13108 * unexec.c: Remove code depending on !COFF and USG, the file is
13109 not used for such systems.
13110
13111 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13112 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13113 (LD_SWITCH_SYSTEM_1): Remove, update users.
13114
13115 * s/darwin.h (DATA_END):
13116 * m/intel386.h (DATA_END):
13117 * m/ibmrs6000.h (DATA_END):
13118 * m/alpha.h (DATA_END): Remove, unused.
13119
13120 * config.in: Regenerate.
13121 * s/ms-w32.h (subprocesses): Define unconditionally.
13122 * s/template.h (subprocesses): Update comment.
13123 * s/vms.h (subprocesses):
13124 * s/usg5-4.h (subprocesses):
13125 * s/hpux10-20.h (subprocesses):
13126 * s/gnu-linux.h (subprocesses):
13127 * s/cygwin.h (subprocesses):
13128 * s/bsd-common.h (subprocesses):
13129 * s/aix4-2.h (subprocesses):
13130 * s/darwin.h (subprocesses): Do not define, defined by default now.
13131
13132 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13133 Remove all references.
13134 (temacs): Add GNUstep specific ld flags.
13135
13136 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13137 similarly to what X does.
13138
131392008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13140
13141 * nsfns.m (x-list-fonts): Remove.
13142 (syms_of_nsfns): Drop the x-list-fonts declaration.
13143 * nsterm.m: Get rid of remaining "//" comments.
13144
131452008-07-22 Chong Yidong <cyd@stupidchicken.com>
13146
13147 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13148
13149 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13150 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13151 (Fns_own_selection_internal, Fx_disown_selection_internal)
13152 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13153
13154 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13155 ... */' style of docstrings. Doc fixes.
13156
131572008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13158
13159 * terminfo.c (UP, BC, PC): Undo previous change.
13160
13161 * nsfns.m: Rename ns prefixed functions/variables to the
13162 corresponding x versions. Update references.
13163
131642008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13165
13166 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13167
131682008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13169
13170 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13171 Remove forwarding functions.
13172 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13173 non-static.
13174 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13175 non-static.
13176 (ns_frame_parm_handlers): Use the new names.
13177 (syms_of_nsfns): Move to the end of file.
13178
13179 * nsterm.m (syms_of_nsterm): Move to the end of file.
13180
13181 * dispnew.c (init_display): Remove code for X10.
13182
131832008-07-22 Jason Rumney <jasonr@gnu.org>
13184
13185 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13186 bare drive.
13187
131882008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13189
13190 * nsterm.m (syms_of_nsterm): Remove debugging println.
13191
131922008-07-22 David Reitter <david.reitter@gmail.com>
13193
13194 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13195 Carbon implementation of the same functionality: execute arbitrary
13196 AppleScript code.
13197
131982008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13199
13200 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13201 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13202 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13203 (Fx_display_mm_height, Fx_display_mm_width)
13204 (Fx_display_backing_store, Fx_display_visual_class)
13205 (Fx_display_save_under, Fx_open_connection)
13206 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13207 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13208 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13209 (Fx_display_pixel_width, Fx_display_pixel_height)
13210 (Fx_display_usable_bounds, Fx_display_planes)
13211 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13212 ... */' style of docstrings.
13213
132142008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13215
13216 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13217 on this platform.
13218 (mips):
13219 * m/iris4d.h (mips): Do not define.
13220 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13221
13222 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13223
13224 * image.c:
13225 * nsfns.m:
13226 * nsselect.m:
13227 * nsterm.h:
13228 * nsterm.m: Rename ns prefixed functions/variables to the
13229 corresponding x versions. Update references.
13230
13231 * m/ibms390x.h (NO_REMAP): Do not undefine.
13232
13233 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13234
132352008-07-21 Chong Yidong <cyd@stupidchicken.com>
13236
13237 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13238 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13239 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13240 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13241 (Fns_display_mm_height, Fns_display_mm_width)
13242 (Fns_display_backing_store, Fns_display_visual_class)
13243 (Fns_display_save_under, Fns_open_connection)
13244 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13245 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13246 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13247 (Fns_display_pixel_width, Fns_display_pixel_height)
13248 (Fns_display_usable_bounds, Fx_display_planes)
13249 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13250
132512008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13252
13253 * print.c (print_object): Check print_depth before searching for
13254 circularities.
13255
132562008-07-21 Michael Albinus <michael.albinus@gmx.de>
13257
13258 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13259 only sprintf.
13260
132612008-07-21 Kenichi Handa <handa@m17n.org>
13262
13263 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13264
132652008-07-20 Andreas Schwab <schwab@suse.de>
13266
13267 * syntax.c (find_start_pos, find_start_value)
13268 (find_start_value_byte, find_start_begv, find_defun_start)
13269 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13270
132712008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13272
13273 * s/sol2-3.h: Insert contents of s/sol2.h.
13274 (LD_SWITCH_SYSTEM): Remove redundant definition.
13275 * s/sol2.h: Remove, unused.
13276
132772008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13278
13279 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13280
132812008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13282
13283 * Makefile.in (ns_appdir): Fix typo in find command.
13284
132852008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13286
13287 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13288
13289 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13290 added not supported anymore.
13291
13292 * s/usg5-4-2.h (LIBS_SYSTEM):
13293 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13294
13295 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13296 * s/lynxos.h (GETPGRP_NO_ARG):
13297 * s/hpux10-20.h (NO_SIOCTL_H):
13298 * s/gnu.h (GETPGRP_NO_ARG):
13299 * s/gnu-linux.h (NO_SIOCTL_H):
13300 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13301 * s/cygwin.h (GETPGRP_NO_ARG):
13302 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13303 (C_DEBUG_SWITCH): Remove duplicate definition.
13304
13305 * m/ibms390.h: Remove boilerplate comments.
13306
13307 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13308
13309 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13310 (wait_reading_process_output): Remove code for SunOS, platform not
13311 supported anymore. Use SOLARIS2 instead of sun.
13312
133132008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13314
13315 * font.c (font_open_by_name): Under NS, default lface height to zero.
13316 (font_open_for_lface): Under NS, set size based on frame fontsize.
13317 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13318 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13319
133202008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13321
13322 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13323 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13324 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13325 YES/NO.
13326 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13327 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13328 * Makefile.in (clean): Clear out build destination dir.
13329
133302008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13331
13332 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13333 xterm, xselect.
13334 * lisp.h: Remove declaration of hash_remove.
13335 * nsgui.h: Remove redefinitions of hash_remove.
13336 * fns.c (hash_remove): Rename to hash_remove_from_table.
13337
133382008-07-19 Seiji Zenitani <zenitani@mac.com>
13339
13340 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13341 strdup() the family UTF8String before modifying it.
13342
133432008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13344
13345 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13346 NS_FACE_BACKGROUND with 0 instead of nil.
13347 * nsfont.m (nsfont_draw): Same.
13348
133492008-07-19 Chong Yidong <cyd@stupidchicken.com>
13350
13351 * nsfns.m (ns_set_background_color): Fix crash.
13352
133532008-07-18 Chong Yidong <cyd@stupidchicken.com>
13354
13355 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13356
133572008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13358
13359 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13360
133612008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13362
13363 * gtkutil.c: Include <config.h> instead of "config.h".
13364
13365 * lisp.h (Foverlay_buffer): Add EXFUN.
13366
13367 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13368 child process to complete child_setup. Undo 2005-09-21 change.
13369
13370 * s/darwin.h: Mention setsid after vfork.
13371
133722008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13373
13374 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13375 Depend on macgui.h.
13376
13377 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13378 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13379
13380 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13381 and f19.
13382 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13383
13384 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13385 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13386 Remove enumerators.
13387
13388 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13389 Check if FACE_FROM_ID returns NULL.
13390
133912008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13392
13393 * w32inevt.c (change_frame_size): Remove extern declaration.
13394 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13395 change_frame_size.
13396
133972008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13398
13399 * getloadavg.c: Revert last change (2008-07-15).
13400
134012008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13402
13403 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 13404 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
13405 from configure.
13406
134072008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13408
13409 * s/sol2.h:
13410 * s/sol2-4.h: Reorganize conditionals.
13411
13412 * ecrt0.c: Remove code depending on m68000, not used anymore.
13413
13414 * fns.c (hash_remove): Make static.
13415 * lisp.h (hash_remove): Don't prototype.
13416
13417 * m/ibmrs6000.h:
13418 * m/ibms390x.h:
13419 * m/macppc.h: Remove boilerplate comments.
13420
13421 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13422 Solaris, which does not need them.
13423
13424 * m/vax.h: Remove comments about unsupported systems.
13425
13426 * s/darwin.h: Reorganize ifdefs.
13427
134282008-07-17 Andreas Schwab <schwab@suse.de>
13429
13430 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13431
134322008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13433
13434 Use SDATA. Follow coding convention of placing operators at
13435 beginning of next line rather than end of previous line, and placing
13436 spaces around infix operators.
13437
13438 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13439 in case it was defined already.
13440 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13441 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13442 ns_default.
13443 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13444 Lisp_Objects.
13445 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13446 (ns_defined_color, ns_color_to_lisp): Declare.
13447 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13448 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13449 it's accepted even with USE_LISP_UNION_TYPE.
13450 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13451 (update_frame_tool_bar): Remove apparently obsolete tests for
13452 non-integerness of f->tool_bar_lines.
13453 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13454 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13455 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13456 (nsfont_open): Don't confuse NULL for Qnil.
13457 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13458 * menu.h (find_and_call_menu_selection):
13459 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13460 (find_and_return_menu_selection): Always return something.
13461 * frame.h: Include dispextern.h for Display_Info.
13462 (display_x_get_resource): Declare.
13463
134642008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13465
13466 * syntax.c: Remove stdio.h include accidentally introduced in
13467 Emacs.app commit.
13468 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13469 NS_IMPL_COCOA.
13470 * keyboard.c (handle_async_input, input_available_signal): Remove
13471 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13472
134732008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13474
13475 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13476 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13477 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13478 Use SDATA.
13479
13480 * keymap.c: Remove all NS-specific code.
13481 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13482 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13483 where_is_preferred_modifier, return a different value depending on how
13484 preferred is the binding.
13485 (where_is_internal): Adjust accordingly.
13486 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13487 Adjust to new preferred_sequence_p.
13488 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13489 * keyboard.c (parse_solitary_modifier): Not static any more.
13490 * keyboard.h (parse_solitary_modifier): Declare.
13491
134922008-07-16 Andreas Schwab <schwab@suse.de>
13493
13494 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13495 of easymenu.
13496
134972008-07-16 Chong Yidong <cyd@stupidchicken.com>
13498
13499 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13500 that we don't move off the line.
13501
135022008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13503
13504 * keyboard.c (Qsuper): Remove.
13505 (parse_menu_item): Don't call where_is_internal specially for NS.
13506
135072008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13508
13509 * s/gnu-linux.h: Remove boilerplate comments.
13510
13511 * m/alpha.h (__ELF__): Consolidate conditions.
13512
13513 * m/m68k.h (linux): Use GNU_LINUX instead.
13514 Remove boilerplate comments.
13515
13516 * m/intel386.h: Undo refactoring from previous change.
13517 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13518 too, remove dead code.
13519 (linux): Use GNU_LINUX instead.
13520
135212008-07-16 Jason Rumney <jasonr@gnu.org>
13522
13523 * w32gui.h: Repeat 26 June changes lost by last change.
13524
135252008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13526
13527 * systty.h: Remove code for Aix on 386, unsupported platform.
13528
13529 * s/ms-w32.h: Remove boilerplate comments.
13530 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13531
13532 * s/gnu-linux.h (TERM): Remove support.
13533 (HAVE_SYSVIPC): Remove, unused.
13534 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13535 for this system.
13536
13537 * process.c: Remove support for IRIS, unused.
13538 Remove support for TERM, not relevant anymore.
13539
13540 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13541 used with the definition.
13542
13543 * s/aix4-2.h (static): Do not undef.
13544
13545 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13546 only used on Aix.
13547 (HAVE_SYSVIPC): Remove, unused.
13548
13549 * m/hp800.h (CANNOT_DUMP): Do not undef.
13550
13551 * m/alpha.h: Fix comment.
13552
13553 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13554 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13555 used by this configuration.
13556 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13557 * unexec.c: Remove code depending on HPUX and
13558 USG_SHARED_LIBRARIES, not used with this file. Remove code
13559 depending on IRIS, unused. Remove if 0-ed code.
13560
13561 * s/template.h: Remove comments about static.
13562
13563 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13564 Remove if 0-ed code.
13565 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13566 were the same as the default.
13567 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13568 Remove boilerplate comments.
13569 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13570 (HAVE_SYSVIPC): Remove, unused.
13571 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13572
13573 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13574 Remove boilerplate comments.
13575 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13576 Remove boilerplate comments.
13577 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13578 Remove boilerplate comments.
13579 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13580
13581 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13582 USG systems which do not use DATA_SEG_BITS.
13583 Refactor code. Remove boilerplate comments.
13584
13585 * m/ibms390.h:
13586 * m/m68k.h:
13587 * s/bsd-common.h:
13588 * s/cygwin.h:
13589 * s/darwin.h:
13590 * s/freebsd.h:
13591 * s/gnu.h:
13592 * s/msdos.h: Remove boilerplate comments.
13593
13594 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 13595 do not use this file.
aac0c6e3
MR
13596 (IRIS_4D): Remove, unused.
13597
13598 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 13599 do not use this file.
aac0c6e3
MR
13600 (SIGN_EXTEND_CHAR):
13601 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13602 * unexmips.c: Remove file, unused.
13603
13604 * editfns.c (Fuser_full_name): Replace the only use of
13605 USER_FULL_NAME with its value.
13606 * config.in: Regenerate.
13607
136082008-07-16 David Reitter <david.reitter@gmail.com>
13609
13610 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13611 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13612
136132008-07-16 Glenn Morris <rgm@gnu.org>
13614
13615 * emacs.c (system-type): Doc fix.
13616
136172008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13618
13619 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13620 If the cache doesn't work, let's fix it, rather than work around it.
13621
136222008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13623
13624 * Makefile.in: Correct additions for nsfont.o in last commit.
13625 * nsfont.m: New file (forgot last commit).
13626
136272008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13628
13629 * callproc.c (set_initial_environment): Initialize
13630 Vprocess_environment under CANNOT_DUMP (fixes crash when
13631 batch-compiling for bootstrap).
13632
136332008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 13634 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 13635
c4cc8b9a
JB
13636 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13637 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
13638
136392008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13640
13641 Changes and additions for NeXTstep windowing system (Cocoa and
13642 GNUstep) support.
13643
13644 * Makefile.in:
13645 * config.in: Support defines and build commands for NS port.
13646 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13647 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13648 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13649 windowing.
13650 (struct face): Add synth_ital field.
13651 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13652 (init_display): Initialize Vinitial_window_system to "ns" when so
13653 compiled.
13654 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13655 (display_arg): Use under NS.
13656 (main): Under NS, allocate autorelease pool and handle command line
13657 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13658 (standard_args): Add NS-specific args.
13659 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13660 * font.c (DEFAULT_ENCODING): New variable.
13661 (font_find_for_lface): Use it.
13662 (syms_of_font): Load syms_of_nsfont under NS.
13663 * font.h: Declare nsfont_driver when compiled under NS.
13664 * fontset.c: When compiling under NS, include nsterm.h.
13665 (fontset_from_font): Autoconstruct fontset under NS.
13666 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13667 symbol, document and use it.
13668 (do_switch_frame): When for_deletion under Cocoa, add
13669 Fraise_frame(Qnil).
13670 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13671 (x_get_arg): Allow "yes" and "no" as boolean values.
13672 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13673 Qright under Cocoa.
13674 (focus-follows-mouse): Default to 0 under NS.
13675 * frame.h (enum output_method): Add output_ns.
13676 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13677 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13678 (FRAME_WINDOW_P): NS-specific definition.
13679 * fringe.c (max_used_fringe_bitmap): Make public.
13680 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13681 (getloadavg): Use NeXT code under descendant OS's.
13682 * image.c (includes and header section, x_create_bitmap_from_data)
13683 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13684 (image_background_transparent, x_clear_image_1)
13685 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13686 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13687 (x_to_xcolors, x_from_xcolors, x_disable_image)
13688 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13689 other GUIs, including XPM support using code originally written for
13690 Carbon GUI.
13691 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13692 using NS API.
13693 (image_ascent): Use font metrics macros instead of direct struct field
13694 access.
13695 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13696 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13697 Also, handle NS as GTK for menu bar purposes.
13698 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13699 toolkit where they differ.
13700 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13701 use cachelist, still needed under NS.
13702 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13703 (struct widget_value): Define it here for menu.c.
13704 * keymap.c (includes): Include modifier internals.
13705 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13706 NS.
13707 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13708 support for preferring sequences using certain modifiers, specified by
13709 the FIRSTONLY argument.
13710 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13711 under NS GNUstep implementation.
13712 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13713 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13714 * menu.c: Include nsterm.h under NS.
13715 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13716 (free_menubar_widget_tree_value, update_submenu_strings)
13717 (find_and_call_menu_selection): Treat NS as X and NT.
13718 (find_and_return_menu_selection): New function, used for popup menus.
13719 * nsgui.h:
13720 * nsterm.h:
13721 * nsfns.m:
13722 * nsimage.m:
13723 * nsmenu.m:
13724 * nsselect.m:
13725 * nsterm.m: New files.
13726 * process.c (wait_reading_process_output): Under NS, call ns_select()
13727 instead of plain select().
13728 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13729 beginning of buffer.
13730 * sysselect.h (init_process): Rename when compiling under Cocoa to
13731 avoid name conflict.
13732 * termhooks.h (display_info): Add ns_display_info to union.
13733 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13734 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13735 COCOA environment.
13736 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13737 unexec() signature. (Note, this will dump, but the resulting file
13738 crashes; unexosx is used instead; keeping around for reference and
13739 possible aid in getting dump working under GNUstep.)
13740 * w32gui.h (button_type, widget_value): Remove definitions (now in
13741 keyboard.h).
13742 * window.c: Include nsterm.h when compiling under NS.
13743 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13744 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13745 other GUI windowing systems.
13746 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13747 GTK.
13748 (x_consider_frame_title): Under NS, set icon type and frame
13749 modified-state indicator; use ns_set_name_as_filename() when using
13750 formatted title.
13751 (update_window_cursor): Make public when compiling under NS.
13752 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13753 (hourglass_atimer, Vhourglass_delay
13754 * xfaces.c (header section, init_frame_faces, clear_font_table)
13755 (defined_color, unload_color, x_face_list_fonts)
13756 (prepare_face_for_display): Add NS support parallel to other GUIs.
13757 Emulate GCs like other non-X GUIs.
13758 (split_font_name): Don't lowercase font name under NS.
13759 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13760 under NS.
13761 * s/darwin.h: Add support for compilation under NS.
13762
137632008-07-15 Jason Rumney <jasonr@gnu.org>
13764
13765 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13766 (w32_show_hourglass): Rename from show_hourglass.
13767 (w32_hide_hourglass): Rename from hide_hourglass.
13768 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13769 (Vhourglass_delay): Declare extern.
13770 (hourglass_started): Remove.
13771
13772 * xdisp.c (Vhourglass_delay): Remove static.
13773 (hourglass_started, start_hourglass, cancel_hourglass):
13774 Don't include these versions on WINDOWSNT.
13775
137762008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13777
13778 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13779 variables (formerly in xfns.c).
13780 (show_hourglass, hide_hourglass): New prototypes (same).
13781 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13782 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13783 in xfns.c).
13784 (syms_of_xdisp): Declare/initialize display-hourglass,
13785 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13786 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13787 formerly in xfns.c.
13788 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13789 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13790 (start_hourglass, cancel_hourglass): Remove.
13791 (show_hourglass, hide_hourglass): Remove prototypes and static
13792 modifiers.
13793 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13794 hourglass_atimer, hourglass_shown_p declaration/initialization.
13795 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13796 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13797 (start_hourglass, cancel_hourglass): Remove.
13798 (show_hourglass, hide_hourglass): Remove prototypes and static
13799 modifiers.
13800 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13801 hourglass_atimer, hourglass_shown_p declaration/initialization.
13802 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13803 (DEFAULT_HOURGLASS_DELAY): Remove.
13804 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13805 hourglass_shown_p declaration/initialization.
13806
138072008-07-14 Jason Rumney <jasonr@gnu.org>
13808
13809 * w32fns.c (w32_get_arg): Remove wrapper function.
13810 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13811 directly.
13812 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13813
138142008-07-14 Kenichi Handa <handa@m17n.org>
13815
13816 * xfont.c (xfont_open): Add workaround for X's bug.
13817
138182008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13819
13820 * fontset.c: Include <stdio.h> unconditionally.
13821
138222008-07-13 Michael Albinus <michael.albinus@gmx.de>
13823
13824 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13825 for filtering.
13826
138272008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13828
13829 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13830
13831 * m/macppc.h:
13832 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13833
c4cc8b9a 13834 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
13835 (SPECIAL_EMACS_INT):
13836 * m/ia64.h (SPECIAL_EMACS_INT):
13837 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13838 * s/gnu.h (NLIST_STRUCT):
13839 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13840 * s/gnu-linux.h (LINUX):
13841 * s/msdos.h (HAVE_FACES):
13842 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13843
13844 * systty.h:
13845 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13846 anymore.
13847
138482008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13849
13850 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13851 always defined as int.
13852
13853 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13854 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13855 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13856 * s/freebsd.h (HAVE_WAIT_HEADER):
13857 * s/bsd-common.h (HAVE_UNION_WAIT):
13858 * s/aix4-2.h (HAVE_WAIT_HEADER):
13859 * m/mips.h (HAVE_UNION_WAIT):
13860 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13861 (COFF, static): Do not define, they are undefined later in the file.
13862
13863 * process.c (update_status): Don't use a union.
13864 (status_convert):
13865 (sigchld_handler): Use int instead of WAITTYPE.
13866
138672008-07-12 Chong Yidong <cyd@stupidchicken.com>
13868
13869 * indent.c (Fvertical_motion): Restore hscroll before moving to
13870 goal column.
13871
138722008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13873
13874 * lisp.h: Remove left over code.
13875
138762008-07-11 Andreas Schwab <schwab@suse.de>
13877
13878 * lisp.h: Fix logic in last change.
13879
13880 * menu.h: New file.
13881 * menu.c: Include it.
13882 * xmenu.c: Likewise.
13883 * Makefile.in: Update dependencies.
13884
138852008-07-11 Kenichi Handa <handa@m17n.org>
13886
13887 * fontset.c (fontset_from_font): Cancel the previous change.
13888
138892008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13890
13891 * lisp.h:
13892 * w32heap.c:
13893 * emacs.c:
13894 * alloc.c: Replace all references of NO_UNION_TYPE with
13895 USE_LISP_UNION_TYPE.
13896
13897 * m/xtensa.h (NO_UNION_TYPE):
13898 * m/vax.h (NO_UNION_TYPE):
13899 * m/template.h (NO_UNION_TYPE):
13900 * m/sparc.h (NO_UNION_TYPE):
13901 * m/mips.h (NO_UNION_TYPE):
13902 * m/macppc.h (NO_UNION_TYPE):
13903 * m/m68k.h (NO_UNION_TYPE):
13904 * m/iris4d.h (NO_UNION_TYPE):
13905 * m/intel386.h (NO_UNION_TYPE):
13906 * m/ibms390x.h (NO_UNION_TYPE):
13907 * m/ibms390.h (NO_UNION_TYPE):
13908 * m/ibmrs6000.h (NO_UNION_TYPE):
13909 * m/ia64.h (NO_UNION_TYPE):
13910 * m/hp800.h (NO_UNION_TYPE):
13911 * m/arm.h (NO_UNION_TYPE):
13912 * m/amdx86-64.h (NO_UNION_TYPE):
13913 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13914 defining it the same.
13915
139162008-07-10 Chong Yidong <cyd@stupidchicken.com>
13917
13918 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13919
139202008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13921
13922 * fileio.c:
50426a04 13923 * sysdep.c:
aac0c6e3
MR
13924 * systty.h:
13925 * m/ibmrs6000.h:
13926 * m/iris4d.h:
13927 * s/aix4-2.h:
13928 * s/freebsd.h:
13929 * s/gnu-linux.h:
13930 * s/hpux10-20.h:
13931 * s/hpux11.h:
13932 * s/netbsd.h:
13933 * s/sol2-3.h:
13934 * s/sol2-4.h:
13935 * s/sol2.h:
13936 * s/usg5-4.h:
13937 * s/vms.h: Remove references to unused variables.
13938
139392008-07-10 Andreas Schwab <schwab@suse.de>
13940
13941 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13942 pattern before matching the generic family.
13943
139442008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13945
13946 * unexec.c:
13947 * s/vms.h:
13948 * s/usg5-4-2.h:
13949 * s/sol2-5.h:
13950 * s/freebsd.h:
13951 * s/darwin.h: Remove dead code.
13952
13953 * m/template.h:
13954 * m/sparc.h:
13955 * m/mips.h:
13956 * m/m68k.h:
13957 * m/iris4d.h:
13958 * m/intel386.h:
13959 * m/ibms390x.h:
13960 * m/ibms390.h:
13961 * m/ia64.h:
13962 * m/hp800.h:
13963 * m/arm.h:
13964 * m/amdx86-64.h: Remove dead code and references to unused
13965 and compiler defined symbols.
13966
13967 * unexmips.c:
13968 * unexelf.c: Remove references to desupported systems.
13969
13970 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13971
13972 * m/powermac.h: Remove boilerplate comments.
13973 (NO_REMAP): Remove unused definition.
13974
13975 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13976 define them.
13977
139782008-07-10 Kenichi Handa <handa@m17n.org>
13979
13980 * xfont.c (xfont_open): Log the reason of failure.
13981
139822008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13983
13984 * fontset.c (fontset_get_font_group):
13985 * font.c (font_check_otf): Specify argument types.
13986
139872008-07-09 Kenichi Handa <handa@m17n.org>
13988
13989 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13990 non-ASCII char is found.
13991
13992 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13993 (reorder_font_vector): Change the arg preferred_family to font.
13994 Prefer the spec matching with font.
13995 (fontset_get_font_group): New function.
13996 (fontset_find_font): Change the format of an element of a realized
13997 fontset. Use fontset_get_font_group.
13998 (fontset_font): Try the current fontset, the default fontset, the
13999 fallbacks of the current fontset, and the fallbacks of the default
14000 fontset in this order.
14001 (face_for_char): Delete the shortcut to use the current font.
14002 (fontset_from_font): Don't set fonts for Latin in the fontset.
14003
14004 * font.h (font_make_object, font_match_p): Adjust prototypes.
14005
14006 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14007
14008 * font.c (font_make_object): New arg entity and pixelsize.
14009 (font_check_otf_features, font_check_otf): New functions.
14010 (font_match_p): Check :lang, :script, and :otf properties.
14011
14012 * xfont.c (xfont_open): Adjust it for the change of
14013 font_make_object.
14014 (xfont_text_extents): Fix initial setting of metrics.
14015
14016 * ftfont.c (struct ftfont_info): New member index, delete member
14017 fc_charset_idx. Make the member order compatible with struct
14018 xftfont_info.
14019 (fc_charset_table): Change charset names to registry names.
14020 (ftfont_pattern_entity): Delete the args registry and
14021 fc_charset_idx. Change the value of :font-entity property
14022 to (FONTNAME . INDEX). Always set :registry property to
14023 `iso10646-1'.
14024 (struct ftfont_cache_data): New struct.
14025 (ftfont_lookup_cache): New arg for_face.
14026 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14027 (ftfont_driver): Set the member otf_capability.
14028 (ftfont_get_charset): Adjust it for the change of
14029 fc_charset_table.
14030 (OTF_TAG_SYM): New macro.
14031 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14032 for the change of fc_charset_table.
14033 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14034 ftfont_pattern_entity. Add FC_INDEX to objset.
14035 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14036 and ftfont_pattern_entity.
14037 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14038 font_make_object, struct ftfont_info.
14039 (ftfont_has_char): Use ftfont_get_fc_charset.
14040 (ftfont_otf_features, ftfont_otf_capability): New functions.
14041 (ftfont_shape): Use ftfont_get_otf.
14042 (ftfont_text_extents): Fix initial setting of metrics.
14043
14044 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14045 member order compatible with struct ftfont_info.
14046 (xftfont_open): Add FC_CHARSET to the pattern. Set
14047 xftfont_info->ft_size. Don't unlock the face. Check BDF
14048 properties if appropriate.
14049 (xftfont_close): Unlock the face.
14050 (xftfont_anchor_point, xftfont_shape): Deleted.
14051 (syms_of_xftfont): Don't set members anchor_point and shape of
14052 xftfont_driver.
14053
14054 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14055 font_make_object.
14056
14057 * w32font.c (w32font_open): Adjust it for the change of
14058 font_make_object.
14059 (w32font_open_internal): Don't set properties of font_object here.
14060
140612008-07-08 Chong Yidong <cyd@stupidchicken.com>
14062
14063 * macfns.c (x_create_tip_frame):
14064 * w32fns.c (x_create_tip_frame):
14065 * xfns.c (x_create_tip_frame): Pass parameter argument to
14066 face-set-after-frame-default.
14067
14068 * xfaces.c (Finternal_merge_in_global_face): Save merged
14069 attributes for the default face back into the face vector.
14070
140712008-07-08 Andreas Schwab <schwab@suse.de>
14072
14073 * fontset.h: Declare fontset_from_font. Don't declare
14074 new_fontset_from_font and fontset_from_font_name.
14075 * xterm.c: Include "fontset.h".
14076 * Makefile.in (xterm.o): Update dependencies.
14077
140782008-07-08 Glenn Morris <rgm@gnu.org>
14079
14080 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14081 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14082
140832008-07-07 Chong Yidong <cyd@stupidchicken.com>
14084
14085 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14086 (x_set_frame_parameters): Don't bind it.
14087
140882008-07-07 Juanma Barranquero <lekktu@gmail.com>
14089
14090 * w32fns.c (map_w32_filename): Declare extern.
14091
140922008-07-07 Jason Rumney <jasonr@gnu.org>
14093
14094 * w32term.c (WS_EX_LAYERED): Define if not already.
14095
140962008-07-06 Chong Yidong <cyd@stupidchicken.com>
14097
14098 * xfaces.c (set_font_frame_param): Don't try to set the font
14099 parameter if it is still unspecified in the lface.
14100
141012008-07-05 Chong Yidong <cyd@stupidchicken.com>
14102
14103 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14104 face if it didn't already exist.
14105
14106 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14107
141082008-07-05 Andreas Schwab <schwab@suse.de>
14109
14110 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14111
141122008-07-05 Chong Yidong <cyd@stupidchicken.com>
14113
14114 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14115 word-wrapping.
14116 (IT_DISPLAYING_WHITESPACE): New macro.
14117 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14118 when word-wrapping. Simplify word-wrapping logic. Use correct
14119 pixel positions when saving copies of the iterator.
14120 (display_line): Use proper wrap point if the last character on a
14121 line was preceded by whitespace.
14122
141232008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14124
14125 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14126
141272008-07-04 Kenichi Handa <handa@m17n.org>
14128
14129 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14130
14131 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14132
141332008-07-02 Jason Rumney <jasonr@gnu.org>
14134
14135 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 14136 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
14137
14138 * xdisp.c (next_element_from_display_vector): Move assignment out
14139 of if statement.
14140
141412008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14142
14143 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14144
14145 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14146 (syms_of_fileio): Initialize and export them.
14147 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14148
14149 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14150 (Fsystem_move_file_to_trash): New function.
14151 (syms_of_w32fns): Export it to lisp.
14152
141532008-07-01 Jason Rumney <jasonr@gnu.org>
14154
14155 * w32font.c (w32font_text_extents): Don't count overhang as part
14156 of width.
14157
141582008-06-30 Miles Bader <miles@gnu.org>
14159
14160 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14161 Add `avoid_cursor_p' field.
14162
14163 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14164 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14165 (append_glyph, append_composite_glyph, produce_image_glyph)
14166 (append_stretch_glyph): Initialize avoid_cursor_p.
14167 (get_it_property): Rename from `get_line_height_property'.
14168 (x_produce_glyphs): Use get_it_property.
14169 (handle_line_prefix, push_display_prop): New functions.
14170 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14171 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14172 New variables.
14173 (syms_of_xdisp): Initialize them.
14174
141752008-06-30 Kenichi Handa <handa@m17n.org>
14176
14177 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14178 XftDefaultSubstitute (they are called in XftFontMatch).
14179 (xftfont_open): Fix args to ftfont_font_format.
14180
14181 * ftfont.c (fc_charset_table): New member lang.
14182 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 14183 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
14184 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14185 (ftfont_open): Fix args to ftfont_font_format.
14186 (ftfont_font_format): New arg filename.
14187
141882008-06-30 Chong Yidong <cyd@stupidchicken.com>
14189
14190 * xfaces.c (Finternal_merge_in_global_face): If default face was
14191 modified, realize it again. Update the font face attribute.
14192
141932008-06-29 Jason Rumney <jasonr@gnu.org>
14194
14195 * w32term.c (x_set_frame_alpha): Fix logic.
14196
141972008-06-29 Kenichi Handa <handa@m17n.org>
14198
14199 * fontset.c (Finternal_char_font): Return font-object instead of
14200 font-name.
14201
14202 * composite.c (get_composition_id): Fix the width calculation for TAB.
14203
142042008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14205
14206 * indent.c (Fvertical_motion): Properly handle float column arg.
14207
142082008-06-28 Jason Rumney <jasonr@gnu.org>
14209
14210 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14211 (pfnSetLayeredWindowAttributes): New function pointer.
14212 (w32_initialize): Initialize it when supported.
14213 (x_set_frame_alpha): New function.
14214
14215 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14216 (w32_frame_parm_handlers): Set alpha handler.
14217
14218 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14219
142202008-06-27 Jason Rumney <jasonr@gnu.org>
14221
14222 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14223 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14224 (w32_to_x_charset, x_to_w32_charset)
14225 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14226 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14227 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14228 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14229 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14230 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14231 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14232 (Qw32_charset_unicode): Remove.
14233 (syms_of_w32fns): Update for above changes.
14234
14235 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14236 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14237 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14238 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14239 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14240 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14241 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14242 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14243 (syms_of_w32font): Update for above changes.
14244
142452008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14246
14247 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14248 removed #if.
14249 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14250
142512008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 14252 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
14253
14254 * makefile.w32-in (LOCAL_FLAGS):
14255 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14256
14257 * sysdep.c (_spawnlp, _getpid):
14258 Declare with explicit _cdecl instead of _CRTAPI1.
14259
14260 * editfns.c (Fget_internal_run_time):
14261 Check for WINDOWSNT with #ifdef, not #if.
14262
142632008-06-26 Jason Rumney <jasonr@gnu.org>
14264
14265 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14266
14267 * w32term.c (x_draw_glyph_string_foreground)
14268 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14269 Use FONT_HANDLE macro.
14270 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14271
14272 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14273 (uniscribe_encode_char): Use FONT_HANDLE macro.
14274
14275 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14276 (w32font_text_extents): Use precast w32_font.
14277 (w32font_close): Free cached metrics.
14278 (w32font_open_internal): Allocate space for name on stack.
14279
142802008-06-26 Chong Yidong <cyd@stupidchicken.com>
14281
14282 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14283
142842008-06-26 Jason Rumney <jasonr@gnu.org>
14285
14286 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14287 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14288
142892008-06-26 Juanma Barranquero <lekktu@gmail.com>
14290
14291 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14292
142932008-06-26 Jason Rumney <jasonr@gnu.org>
14294
14295 * w32bdf.c, w32bdf.h: Remove obsolete files.
14296
14297 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14298
14299 * w32gui.h: Don't include w32bdf.h.
14300 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14301 Remove obsolete font support.
14302
14303 * w32font.h (struct w32font_info): Remove compat_w32_font.
14304 Add hfont member.
14305 (FONT_COMPAT): Remove obsolete macro.
14306
14307 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14308 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14309 (w32font_open_internal): Remove compat code. Set new hfont member.
14310 (Fx_select_font): Use new hfont member.
14311
14312 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14313 (uniscribe_encode_char): Use new hfont member.
14314
14315 * w32term.c (x_draw_glyph_string_foreground)
14316 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14317 (x_draw_glyph_string): Use metrics in w32font_info.
14318
143192008-06-26 Kenichi Handa <handa@m17n.org>
14320
14321 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14322
143232008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14324
14325 * unexnext.c:
14326 * m/ews4800.h:
14327 * m/hp9000s300.h:
14328 * m/ibm370aix.h:
14329 * m/mips-siemens.h:
14330 * m/ncr386.h:
14331 * m/next.h:
14332 * m/pmax.h:
14333 * m/powerpcle.h:
14334 * m/tandem-s2.h:
14335 * s/386bsd.h:
14336 * s/bsd386.h:
14337 * s/bsd4-1.h:
14338 * s/bsd4-2.h:
14339 * s/bsdos2-1.h:
14340 * s/bsdos2.h:
14341 * s/bsdos3.h:
14342 * s/bsdos4.h:
14343 * s/nextstep.h:
14344 * s/ultrix4-3.h:
14345 * s/usg5-0.h:
14346 * s/usg5-2-2.h:
14347 * s/usg5-2.h:
14348 * s/usg5-4-3.h:
14349 * s/ux4800.h:
14350 * s/uxpds.h:
14351 * s/uxpv.h: Remove support for obsolete systems.
14352 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 14353 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
14354 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14355 Remove, insert contents in s/aix4-2.h.
14356 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14357 * s/bsd4-3.h: Rename to ...
14358 * s/bsd-common.h: ... this.
14359 * data.c:
14360 * doc.c:
14361 * ecrt0.c:
14362 * emacs.c:
14363 * fileio.c:
14364 * floatfns.c:
14365 * keyboard.c:
14366 * mem-limits.h:
14367 * print.c:
14368 * process.c:
14369 * sysdep.c:
14370 * syssignal.h:
14371 * systty.h:
14372 * syswait.h:
14373 * term.c:
14374 * unexec.c:
14375 * unexelf.c:
14376 * unexhp9k800.c:
14377 * m/hp800.h:
14378 * m/ibmrs6000.h:
14379 * m/mips.h:
14380 * m/vax.h:
14381 * s/darwin.h:
14382 * s/freebsd.h:
14383 * s/gnu.h:
14384 * s/ms-w32.h:
14385 * s/msdos.h:
14386 * s/netbsd.h:
14387 * s/template.h: Remove references to obsolete variables.
14388
14389 * Makefile.in: Add dependencies for all unexec files.
14390 (admindir): Remove unused variable.
14391 (UNEXEC_SRC): Remove references.
14392
143932008-06-25 Chong Yidong <cyd@stupidchicken.com>
14394
14395 * xfns.c (x_default_font_parameter): If Xft is available, first
14396 try Monospace-12 for the default font.
14397
143982008-06-25 Jason Rumney <jasonr@gnu.org>
14399
14400 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14401
144022008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14403
14404 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14405
14406 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14407
144082008-06-25 Juanma Barranquero <lekktu@gmail.com>
14409
14410 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14411 <scroll-conservatively>: Fix typo in docstring.
14412
14413 * xselect.c (Fx_send_client_event): Doc fix.
14414
144152008-06-25 Kenichi Handa <handa@m17n.org>
14416
14417 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14418
14419 * font.c (font_parse_fcname): Remove unused variables.
14420 (font_sort_entites): Delete the arg SPEC. Caller changed.
14421 Fix for the case of ! best_only.
14422 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14423
14424 * lisp.h (Fstring_to_unibyte): EXFUN it.
14425
14426 * character.h (str_to_unibyte): Extern it.
14427
14428 * character.c (str_to_unibyte): New function.
14429
14430 * fns.c (Fstring_to_unibyte): New function.
14431 (syms_of_fns): Defsubr it.
14432
144332008-06-24 Kenichi Handa <handa@m17n.org>
14434
14435 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14436 DPI too.
14437 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14438
144392008-06-24 Andreas Schwab <schwab@suse.de>
14440
14441 * Makefile.in (${lispsource}loaddefs.el): Rename from
14442 ../lisp/loaddefs.el.
14443 (bootstrap-clean): Do what distclean does but don't remove
14444 Makefile.
14445 (distclean): Depend on bootstrap-clean and remove Makefile.
14446
144472008-06-24 Chong Yidong <cyd@stupidchicken.com>
14448
14449 * buffer.h (struct buffer): New member word_wrap.
14450
14451 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14452 word-wrap.
14453 (init_buffer_once): Initialize them.
14454
14455 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14456 line_wrap enum possessing three possible values.
14457
14458 * termopts.h: Replace truncate_partial_width_windows with
14459 Vtruncate_partial_width_windows.
14460
14461 * dispnew.c (direct_output_for_insert): Avoid direct output when
14462 inserting a space with word wrap on.
14463
14464 * indent.c (compute_motion): Obey integer values of
14465 truncate-partial-width-windows.
14466
14467 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14468 replacing truncate_partial_width_windows.
14469 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14470 truncate only if the window width is below that integer.
14471 (start_display, resize_mini_window, produce_stretch_glyph)
14472 (display_string, move_it_in_display_line_to): Use line_wrap.
14473 (back_to_previous_visible_line_start, reseat_1): Reset
14474 string_from_display_prop_p.
14475 (display_line): Extend default face to end of line when wrapping.
14476
144772008-06-24 Kim F. Storm <storm@cua.dk>
14478
14479 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14480 to wrap continued lines at word boundaries.
14481
144822008-06-24 Jason Rumney <jasonr@gnu.org>
14483
14484 * font.c (Ffont_face_attributes): Multiply pixel size before point
14485 conversion to avoid multiplying rounding error.
14486
144872008-06-23 Jason Rumney <jasonr@gnu.org>
14488
14489 * w32term.c (x_draw_glyph_string_background)
14490 (x_draw_glyph_string): Remove old bdf font code.
14491
14492 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14493
144942008-06-22 Kenichi Handa <handa@m17n.org>
14495
14496 * font.c (font_find_for_lface): Try the adstyle specified in
14497 the property of LFACE_FONT of LFACE (if any).
14498
144992008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14500 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14501
14502 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14503
145042008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14505
14506 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14507 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14508 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14509 (witness-emacs): Remove.
14510 (lisp, shortlisp): Move loaddefs.el earlier.
14511 (mostlyclean): Forget about witness-emacs.
14512
145132008-06-22 Glenn Morris <rgm@gnu.org>
14514
14515 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14516 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14517
145182008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14519
14520 * Makefile.in (PRECOMP): Remove.
14521 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14522 (witness-emacs): Run `compile-first'.
14523 (.el.elc): Use the new compile-onefile target.
14524
145252008-06-21 Kenichi Handa <handa@m17n.org>
14526
14527 * xftfont.c (xftfont_open): Handle QCembolden only when
14528 FC_EMBOLDEN is defined.
14529
145302008-06-21 Andreas Schwab <schwab@suse.de>
14531
14532 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14533 (.el.elc): Likewise.
14534
145352008-06-21 Miles Bader <miles@gnu.org>
14536
14537 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14538 build dir, not the lisp source dir.
14539
145402008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14541
14542 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14543 (bootstrapclean): Remove.
14544 (.el.elc): New rule.
14545 (PRECOMP): New var.
14546 (../lisp/subdirs.el): Remove.
14547 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14548 (witness-emacs): New target.
14549 (mostlyclean): Remove witness-emacs as well.
14550 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14551 Add witness-emacs dependency.
14552
145532008-06-20 Chong Yidong <cyd@stupidchicken.com>
14554
14555 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14556 defined by the font.
14557
145582008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14559
14560 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14561 (bootstrap-clean): New target that keeps TAGS around.
14562 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14563 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14564
145652008-06-20 Jason Rumney <jasonr@gnu.org>
14566
14567 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14568 Remove obsolete font code.
14569
14570 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14571 to determine language support.
14572
145732008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14574
14575 * sysdep.c (cfsetspeed): New fun extracted from the code.
14576 (cfmakeraw): Move before first use.
14577
145782008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14579
14580 * sysdep.c (cfmakeraw): Provide fallback implementation.
14581 (serial_configure): Provide fallback implementation of cfsetspeed.
14582
145832008-06-20 Kenichi Handa <handa@m17n.org>
14584
14585 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14586 the pattern.
14587
14588 * fontset.c (fontset_from_font): Copy font_spec before changing
14589 the elements.
14590
14591 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14592
145932008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14594
14595 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14596 for explicit `font' parameters.
14597
14598 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14599
146002008-06-19 Kenichi Handa <handa@m17n.org>
14601
14602 * frame.c: Include <ctype.h>.
14603 (x_set_font_backend): Allow spacing characters in the X resource
14604 for FontBackend.
14605
146062008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14607
14608 * w32fns.c, xfns.c (Qfont_param): New var.
14609 (syms_of_w32fns): Initialize it.
14610 (x_default_font_parameter): Record explicit `font' into
14611 `font-parameter'.
14612
146132008-06-18 Kenichi Handa <handa@m17n.org>
14614
14615 * font.c (font_parse_xlfd): Fix previous change.
14616 (font_parse_fcname): Don't use :fc-unknown-spec.
14617 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14618 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14619 (font_add_log): Prepend the driver name to the resulting fonts.
14620
14621 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14622 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14623 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14624
14625 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14626 (QCembolden): New variables.
14627 (syms_of_xftfont): DEFSYM them.
14628 (xftfont_open): Call XftFontMatch. Don't trust the result of
14629 XftTextExtents8 if the pixel_size is less than 5.
14630
146312008-06-18 Andreas Schwab <schwab@suse.de>
14632
14633 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14634 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14635
146362008-06-18 Jason Rumney <jasonr@gnu.org>
14637
14638 * w32font.c (w32font_list, w32font_match): Add logging.
14639
14640 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14641
146422008-06-17 Chong Yidong <cyd@stupidchicken.com>
14643
14644 * font.c (font_parse_fcname): Store divider characters for
14645 unknown-spec list. For known key symbols, intern using correct
14646 symbol name.
14647
146482008-06-17 Kenichi Handa <handa@m17n.org>
14649
14650 * xfaces.c (realize_default_face): If the frame is not on window
14651 system, set the fontset of face to nil.
14652
146532008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14654
14655 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14656
146572008-06-16 Juanma Barranquero <lekktu@gmail.com>
14658
14659 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14660 (build_font_name_from_vector): Delete externs.
14661
14662 * xfaces.c (struct font_name): Don't declare.
14663
146642008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14665
14666 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14667
146682008-06-16 Chong Yidong <cyd@stupidchicken.com>
14669
14670 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14671
146722008-06-16 Juanma Barranquero <lekktu@gmail.com>
14673
14674 * font.c (Ffont_spec): Fix usage in docstring.
14675 (Ffont_face_attributes): Doc fix.
14676
146772008-06-16 Andreas Schwab <schwab@suse.de>
14678
14679 * font.c (Ffont_face_attributes): Fix definition.
14680
146812008-06-16 Jason Rumney <jasonr@gnu.org>
14682
14683 * font.h (font_style_symbolic_from_value): Remove.
14684
14685 * font.c (font_style_symbolic_from_value): Remove.
14686 (font_style_symbolic): Revert to pre 2008-06-13 version.
14687
14688 * w32font.c (w32_to_fc_weight): New function.
14689 (w32font_full_name, logfont_to_fcname): Use it.
14690
146912008-06-16 Kenichi Handa <handa@m17n.org>
14692
14693 * font.c (font_check_object): Delete it.
14694 (font_clear_cache): Check if a font-object is alive.
14695 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14696 font-object to nil.
14697 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14698 (font_at): Don't call font_check_object.
14699 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14700
147012008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14702
14703 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14704
147052008-06-16 Chong Yidong <cyd@stupidchicken.com>
14706
14707 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14708
147092008-06-15 Chong Yidong <cyd@stupidchicken.com>
14710
14711 * font.c (font_parse_fcname): Only one decimal point.
14712 (font_unparse_fcname): Handle data in family and foundry indices
14713 as symbols, not strings.
14714 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14715
14716 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14717
14718 * font.h (font_unparse_gtkname): Add prototype.
14719
147202008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14721
14722 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14723
147242008-06-15 Andreas Schwab <schwab@suse.de>
14725
14726 * font.c (font_update_drivers): Fix crash when no drivers match.
14727
147282008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14729
14730 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14731 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14732
147332008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14734
14735 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14736
147372008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14738
14739 * process.c (Fserial_process_configure, Fprocess_send_eof):
14740 Use EQ to compare Lisp_Objects.
14741
147422008-06-13 Jason Rumney <jasonr@gnu.org>
14743
14744 * w32fns.c (Fw32_select_font): Remove old font API function.
14745
14746 * w32font.c (logfont_to_fcname): New function.
14747 (Fx_select_font): New font dialog function compatible with
14748 GTK/fontconfig version.
14749
14750 * font.c (font_style_symbolic_from_value): New function.
14751 (font_style_symbolic): Use it.
14752
14753 * font.h (font_style_symbolic_from_value): Declare new function.
14754
147552008-06-13 Juanma Barranquero <lekktu@gmail.com>
14756
14757 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14758 <font-width-table>: Fix typos in docstrings.
14759
147602008-06-13 Daniel Engeler <engeler@gmail.com>
14761
14762 These changes add serial port access.
14763 * process.c: Add HAVE_SERIAL.
14764 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14765 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14766 (list_processes_1, select_wrapper, Fstop_process)
14767 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14768 (status_notify): Modify to handle serial processes.
14769 [HAVE_SERIAL] (Fserial_process_configure)
14770 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14771 New functions.
14772 * process.h (struct Lisp_Process): Add `type'.
14773 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14774 New functions.
14775 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14776 serial ports.
b71ac3dd 14777 (serial_open, serial_configure): New functions.
aac0c6e3
MR
14778 * w32.h: Add FILE_SERIAL.
14779 (struct _child_process): Add ovl_read, ovl_write.
14780
147812008-06-13 Kenichi Handa <handa@m17n.org>
14782
14783 * dispextern.h (enum lface_attribute_index): New member
14784 LFACE_FOUNDRY_INDEX.
14785
14786 * font.c (font_score): Delete arg alternate_families. Check only
14787 weight, slant, width, and size. Ignore the difference of alias
14788 style symbols.
14789 (font_sort_entites): Adjust for the above change. Reflect the
14790 order of font-driver to scores.
14791 (font_list_entities): Don't check alternate_familes here.
14792 (font_clear_prop): Handle foundry.
14793 (font_update_lface): Don't parse "foundry-family" form here.
14794 Handle FONT_FOUNDRY_INDEX.
14795 (font_find_for_lface): Likewise. Handle alternate families here.
14796 If registry is nil, try iso8859-1 and ascii-0.
14797 (font_open_for_lface): Pay attention to size in ENTITY.
14798 (font_open_by_name): Simplify by calling font_load_for_lface.
14799 (free_font_driver_list): Delete it.
14800 (font_update_drivers): Preserve the order of backends.
14801 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14802 of font_score and font_sort_entites.
14803 (font_update_sort_order): Likewise.
14804
14805 * xfaces.c (LFACE_FOUNDRY): New macro.
14806 (check_lface_attrs): Check foundry.
14807 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14808 (merge_face_vectors): Check foundry.
14809 (merge_face_ref): Likewise.
14810 (Finternal_set_lisp_face_attribute): Likewise.
14811 (x_update_menu_appearance): Likewise.
14812 (Finternal_get_lisp_face_attribute): Likewise.
14813 (lface_hash): Likewise.
14814 (lface_same_font_attributes_p): Likewise.
14815 (x_supports_face_attributes_p): Likewise.
14816 (tty_supports_face_attributes_p): Likewise.
14817 (Finternal_set_alternative_font_family_alist): Intern strings.
14818 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14819 (realize_default_face): Set LFACE_FOUNDRY (lface).
14820
14821 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14822 font-driver at first.
14823
14824 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14825
148262008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14827
14828 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14829
148302008-06-12 Jim Meyering <meyering@redhat.com>
14831
14832 Make unexec_free handle NULL the same way free does.
14833 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14834
148352008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14836
14837 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14838 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14839 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14840 (WEAK_ALIAS): Simplify.
14841 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14842 when searching a unibyte buffer.
14843
148442008-06-12 Chong Yidong <cyd@stupidchicken.com>
14845
14846 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14847
148482008-06-12 Juanma Barranquero <lekktu@gmail.com>
14849
14850 * w32font.c: Include ctype.h.
14851
148522008-06-11 Jason Rumney <jasonr@gnu.org>
14853
14854 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14855 misreported as space.
14856 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14857 as aliases for registry iso10646-1.
14858
148592008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14860
14861 * buffer.c (clone_per_buffer_values): Skip `name'.
14862
148632008-06-11 Chong Yidong <cyd@stupidchicken.com>
14864
14865 * font.c (font_parse_fcname): Fix last change; accept decimal
14866 points in font size.
14867
148682008-06-10 Jason Rumney <jasonr@gnu.org>
14869
14870 * w32uniscribe.c (add_opentype_font_name_to_list):
14871 Skip non unicode fonts.
14872
148732008-06-10 Chong Yidong <cyd@stupidchicken.com>
14874
14875 * xfns.c (Fx_font_dialog): New function.
14876
14877 * gtkutil.c (xg_dialog_response_cb): Rename from
14878 xg_file_response_callback.
14879 (pop_down_dialog): Rename from pop_down_file_dialog.
14880 (xg_get_file_name): Callers changed.
14881 (xg_get_font_name): New function.
14882
14883 * gtkutil.h (xg_get_font_name): Insert prototype.
14884
148852008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14886
14887 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14888 x_underline_minimum_display_offset.
14889 (syms_of_xdisp): Declare it here rather than in xterm.c.
14890 * dispextern.h (underline_minimum_offset): Declare it.
14891 * w32term.c (x_draw_glyph_string): Use it.
14892 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14893 (syms_of_xterm): Don't declare it any more.
14894 (x_draw_glyph_string): Adjust to the new name.
14895
8719abec 148962008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
14897
14898 * xterm.c (x_underline_minimum_display_offset): New var.
14899 (x_draw_glyph_string): Use it.
14900 (syms_of_xterm): Declare it.
14901
149022008-06-10 Chong Yidong <cyd@stupidchicken.com>
14903
14904 * font.c (font_parse_fcname): Accept GTK-style font names too.
14905
149062008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14907
14908 * dired.c (file_name_completion): Don't return t if the match is exact
14909 but with different capitalization.
14910 * minibuf.c (Ftry_completion): Simplify.
14911
14912 * window.c (Vwindow_point_insertion_type): New var.
14913 (set_window_buffer): Use it.
14914 (syms_of_window): Init and export it to Lisp.
14915
149162008-06-10 Kenichi Handa <handa@m17n.org>
14917
14918 * font.h (font_intern_prop): Prototype adjusted.
14919
14920 * font.c (font_intern_prop): New arg force_symbol.
14921 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14922 Adjust for the change of font_intern_prop.
14923
14924 * ftfont.c (ftfont_pattern_entity):
14925 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14926 (w32_registry):
14927 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14928 the change of font_intern_prop.
14929
149302008-06-09 Juanma Barranquero <lekktu@gmail.com>
14931
14932 * w32menu.c (digest_single_submenu): Declare extern.
14933
149342008-06-09 Jason Rumney <jasonr@gnu.org>
14935
14936 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14937
14938 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14939 (parse_single_submenu): Remove.
14940 (digest_single_submenu): Remove.
14941 (syms_of_w32menu): Don't initialise variables that have moved
14942 to menu.c.
14943 (set_frame_menubar): Sync with version in xmenu.c.
14944 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14945
14946 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14947 Make static again.
14948
149492008-06-09 Jason Rumney <jasonr@gnu.org>
14950
14951 Changes to w32 files related to the move of common menu code
14952 to menu.c on 2008-06-08 by Chong Yidong.
14953
14954 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14955 defs to w32gui.h.
14956 (single_keymap_panes, push_menu_item, push_menu_pane):
14957 Make globally visible.
14958
14959 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14960 (local_free, malloc_widget_value, free_widget_value)
14961 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14962 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14963 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14964 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14965 (menu_items, menu_items_allocated, menu_items_used)
14966 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14967 (init_menu_items, finish_menu_items, discard_menu_items)
14968 (grow_menu_items, push_submenu_start, push_submenu_end)
14969 (push_left_right_boundary, push_menu_pane, push_menu_item)
14970 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14971 (free_menubar_widget_tree_value, parse_single_submenu)
14972 (update_submenu_strings): Remove functions.
14973 (xmalloc_widget_value): Remove and declare extern.
14974
14975 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14976 (OBJ1): Build it.
14977
14978 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14979 (local_heap, local_alloc, local_free, malloc_widget_value)
14980 (free_widget_value): Define here.
14981
149822008-06-09 Kenichi Handa <handa@m17n.org>
14983
14984 * font.h (Qascii_0): Extern it.
14985
14986 * font.c (Qascii_0): New variable.
14987 (syms_of_font): DEFSYM it.
14988 (font_open_by_name): If the registry "iso8859-1" fails, try also
14989 "ascii-0".
14990
14991 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14992
149932008-06-08 Kenichi Handa <handa@m17n.org>
14994
14995 * .gdbinit (xfont): New command.
14996
149972008-06-08 Andreas Schwab <schwab@suse.de>
14998
14999 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15000 * Makefile.in (menu.o): Update dependencies.
15001
15002 * Makefile.in (obj): Always add menu.o.
15003 * emacs.c (main): Always call syms_of_menu.
15004 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15005
150062008-06-08 Chong Yidong <cyd@stupidchicken.com>
15007
15008 * Makefile.in: Compile menu.c.
15009
15010 * lisp.h: Declare syms_of_menu.
15011
15012 * emacs.c (main): Call syms_of_menu.
15013
15014 * keyboard.h: Relocate platform-independent menu definitions from
15015 xmenu.c.
15016
15017 * menu.c: New file. Relocate platform-independent menu
15018 definitions from xmenu.c. Suggested by Adrian Robert.
15019
15020 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 15021 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
15022 (menu_items_used, menu_items_n_panes)
15023 (menu_items_submenu_depth): Move to keyboard.h.
15024 (init_menu_items, finish_menu_items, unuse_menu_items)
15025 (discard_menu_items, restore_menu_items, save_menu_items)
15026 (grow_menu_items, push_submenu_start, push_submenu_end)
15027 (push_left_right_boundary, push_menu_pane, push_menu_item)
15028 (keymap_panes, single_keymap_panes, single_menu_item)
15029 (list_of_panes, list_of_items, find_and_call_menu_selection)
15030 (xmalloc_widget_value, free_menubar_widget_value_tree)
15031 (parse_single_submenu, digest_single_submenu)
15032 (update_submenu_strings): Move to menu.c.
15033
150342008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15035
15036 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15037
150382008-06-06 Miles Bader <miles@gnu.org>
15039
15040 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15041 face, not frame default.
15042
150432008-06-05 Martin Rudalics <rudalics@gmx.at>
15044
15045 * window.c (pop_up_windows, pop_up_frames)
15046 (display_buffer_reuse_frames, Vpop_up_frame_function)
15047 (Vdisplay_buffer_function, Veven_window_heights)
15048 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15049 (Vspecial_display_function, Vsame_window_buffer_names)
15050 (Vsame_window_regexps, split_height_threshold)
15051 (Vsplit_window_preferred_function): Move those vars to window.el.
15052 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15053 (Fdisplay_buffer): Move those functions to window.el.
15054 (syms_of_window): Remove corresponding declarations.
15055 (display_buffer): New function.
15056 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15057 * dispnew.c (Flast_nonminibuf_frame): New function.
15058 * buffer.c (Fpop_to_buffer): Move to window.el.
15059
150602008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15061
15062 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15063
150642008-06-05 Kenichi Handa <handa@m17n.org>
15065
15066 * coding.c (detect_coding): Fix previous change.
15067 (detect_coding_system): Likewise.
15068
150692008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15070
15071 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15072
15073 * keymap.c (Vminibuffer_local_filename_must_match_map):
15074 Rename from Vminibuffer_local_must_match_filename_map.
15075 (syms_of_keymap):
15076 * minibuf.c (Fcompleting_read): Adjust accordingly.
15077 * commands.h: Rename declaration as well.
15078
150792008-06-05 Kenichi Handa <handa@m17n.org>
15080
15081 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15082 family name.
15083 (Ffont_put): Likewise.
15084
15085 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15086 current font-spec.
15087
15088 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15089 is unspecified.
15090
15091 * xfaces.c (realize_x_face): If the font-related face attributes
15092 are the same as those of default face, realize a new fontset from
15093 default->fontset.
15094 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15095
150962008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15097
15098 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15099 (move_it_in_display_line): New wrapper.
15100
15101 * window.c (window_scroll_pixel_based_preserve_x)
15102 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15103 (window_scroll_pixel_based, window_scroll_line_based):
15104 Use them to preserve column positions.
15105 (syms_of_window): Initialize them.
15106
15107 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15108 (HPOS . VPOS) pair.
15109
15110 * dispextern.h (move_it_in_display_line): Declare.
15111
151122008-06-05 Juanma Barranquero <lekktu@gmail.com>
15113
15114 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15115 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15116 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15117
151182008-06-04 Juanma Barranquero <lekktu@gmail.com>
15119
15120 * window.c (Fset_window_parameter): Doc fix.
15121 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15122
151232008-06-04 Joakim Verona <joakim@verona.se>
15124
15125 * window.h (struct window): Add new member window_parameters.
15126
15127 * window.c (Fwindow_parameters, Fwindow_parameter)
15128 (Fset_window_parameter): New defuns.
15129 (syms_of_window): Defsubr the new defuns.
15130 (make_window): Initialize window_parameters to nil.
15131
151322008-06-04 John Paul Wallington <jpw@pobox.com>
15133
15134 * eval.c (Fdefmacro): Doc fix.
15135
151362008-06-04 Kenichi Handa <handa@m17n.org>
15137
15138 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15139 Be sure to call setup_coding_system when we find a proper coding system.
15140 (detect_coding_system): Fix handling of coding->head_ascii.
15141
151422008-06-03 Andreas Schwab <schwab@suse.de>
15143
15144 * font.c (font_prop_validate_spacing): Fix last change.
15145
151462008-06-03 Kenichi Handa <handa@m17n.org>
15147
15148 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15149 (font_parse_fcname): Fix handling of unknown key.
15150
15151 * xfont.c (xfont_list): Try an alias.
15152
15153 * charset.c (char_charset): Return NULL if the arg charset_list is
15154 specified and C doesn't belong to any of them.
15155
151562008-06-02 Chip Coldwell <coldwell@redhat.com>
15157
15158 * font.c (font_pixel_size): Don't take cdr of an integer.
15159
151602008-06-02 Jim Meyering <meyering@redhat.com>
15161
15162 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15163 * alloc.c (xfree): Return right away for a NULL arg.
15164 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15165 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15166 * mac.c (create_apple_event_from_event_ref): Likewise.
15167 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15168 Likewise.
15169 * doprnt.c (doprnt1): Likewise.
15170 * frame.c (frame): Likewise.
15171 * keyboard.c (wipe_kboard): Likewise.
15172 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15173 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15174 * term.c (tty_default_color_capabilities, maybe_fatal)
15175 (delete_tty): Likewise.
15176 * w16select.c (string): Likewise.
15177 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15178 * w32bdf.c (w32_free_bdf_font): Likewise.
15179 * w32fns.c (w32_unload_font): Likewise.
15180 * w32font.c (w32font_close): Likewise.
15181 * window.c (size_window): Likewise.
15182 * xselect.c (receive_incremental_selection): Likewise.
15183 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15184 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15185 * w32.c (stat): Likewise.
15186
15187 Remove useless if-before-free tests.
15188 * editfns.c (Fset_time_zone_rule): Likewise.
15189 * lread.c (nosuffix): Likewise.
15190 * ralloc.c (get_bloc): Likewise.
15191 * regex.c (reg_free): Likewise.
15192 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15193 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15194 * xsmfns.c (smc_save_yourself_CB): Likewise.
15195
151962008-06-02 Kenichi Handa <handa@m17n.org>
15197
15198 * font.c (font_find_for_lface): Handle float font size.
15199 (font_open_for_lface): Likewise.
15200
15201 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15202 comparing the properties.
15203
152042008-06-01 Jason Rumney <jasonr@gnu.org>
15205
15206 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15207 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15208 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15209 Don't add empty script list.
15210 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15211
152122008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15213
15214 * Makefile.in (dot, dotdot): Remove, update users.
15215 ".." has been used elsewhere in the file for a long time.
15216 (LIBXT_STATIC): Remove conditional based on unused variable.
15217
152182008-06-01 Miles Bader <miles@gnu.org>
15219
15220 * xfaces.c (Vface_remapping_alist): New variable.
15221 (syms_of_xfaces): Initialize it.
15222 (enum named_merge_point_kind): New type.
15223 (struct named_merge_point): Add `named_merge_point_kind' field.
15224 (push_named_merge_point): Make cycle detection respect different
15225 named-merge-point kinds.
15226 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15227 Remove face-name alias resolution.
15228 (lface_from_face_name): New definition using
15229 `lface_from_face_name_no_resolve'.
15230 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15231 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15232 (get_lface_attributes): New definition that layers face-remapping on
15233 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15234 (lookup_basic_face): New function.
15235 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15236 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15237 `get_lface_attributes'.
15238 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15239 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15240 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15241
15242 * xdisp.c (init_iterator): Pass base_face_id through
15243 `lookup_basic_face' when we actually use it as a face-id.
15244 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15245 DEFAULT_FACE_ID.
15246
15247 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15248 lookup the initial face-id.
15249
15250 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15251
152522008-06-01 Juanma Barranquero <lekktu@gmail.com>
15253
15254 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15255 (Fremove_text_properties): Fix typos in docstrings.
15256
152572008-05-31 Kenichi Handa <handa@m17n.org>
15258
15259 * font.c (font_list_entities): Fix the car part of data to be
15260 stored in the cache.
15261
15262 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15263
152642008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15265
15266 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15267 Add a `test' argument so another predicate than `equal' can be used.
15268 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15269 (map_char_table): Remove unused vars `c' and `i'.
15270 * lisp.h (Foptimize_char_table): Adjust declaration.
15271 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15272
152732008-05-30 Kenichi Handa <handa@m17n.org>
15274
15275 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15276 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15277 defined.
15278
152792008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15280
15281 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15282 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15283 frame-local settings for the same variable.
15284
152852008-05-30 Kenichi Handa <handa@m17n.org>
15286
15287 * fontset.c (Ffont_info): Move to font.c.
15288 (syms_of_fontset): Delete defsubr of Sfont_info.
15289
15290 * font.c (font_style_to_value, font_score): Delete casting of the
15291 args to xstcasecmp.
15292 (register_font_driver): Increment num_font_drivers only when
15293 registering the driver globally.
15294 (Ffont_info): Move from fontset.c. Handle a font object too.
15295 (syms_of_font): Defsubr Sfont_info.
15296
152972008-05-29 Kenichi Handa <handa@m17n.org>
15298
15299 * coding.h (enum define_coding_utf8_arg_index): New enum.
15300 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15301 coding_attr_utf_bom.
15302 (enum utf_bom_type): Rename from utf_16_bom_type.
15303 (struct utf_16_spec): Adjust for the above change.
15304 (struct coding_system): Add utf_8_bom in `spec' union.
15305
15306 * coding.c (CODING_UTF_8_BOM): New macro.
15307 (enum coding_category): Delete coding_category_utf_8, add
15308 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15309 coding_category_utf_8_sig.
15310 (CATEGORY_MASK_UTF_8): Delete it.
15311 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15312 (CATEGORY_MASK_UTF_8_SIG): New macros.
15313 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15314 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15315 CATEGORY_MASK_UTF_8_SIG.
15316 (CATEGORY_MASK_UTF_8): New macro.
15317 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15318 (detect_coding_utf_8): Check BOM.
15319 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15320 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15321 (encode_coding_utf_16): Likewise.
15322 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15323 (detect_coding, detect_coding_system): Handle utf-8-auto.
15324 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15325 (syms_of_coding): Fix setting up of Vcoding_category_table.
15326
153272008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15328
15329 * process.c (Faccept_process_output): If `millisec' is non-nil,
15330 `seconds' default to 0.
15331 (wait_reading_process_output): Also return non-nil if we read output
15332 from a non-running process.
15333
153342008-05-29 Jason Rumney <jasonr@gnu.org>
15335
15336 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15337 `raster' specified.
15338 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15339 in the uniscribe backend, but disallow any font that has no
15340 unicode subrange support.
15341
153422008-05-29 Juanma Barranquero <lekktu@gmail.com>
15343
15344 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15345 Fix typos in docstrings.
15346
153472008-05-29 Kenichi Handa <handa@m17n.org>
15348
15349 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15350 (Fx_family_fonts): Set frame correctly.
15351
153522008-05-28 Jason Rumney <jasonr@gnu.org>
15353
15354 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15355
153562008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15357
15358 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15359 calling build_annotations.
15360
153612008-05-28 Juanma Barranquero <lekktu@gmail.com>
15362
15363 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15364 (Fencode_coding_string):
15365 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15366 <latin-extra-code-table>: Fix typos in docstrings.
15367 (syms_of_coding) <coding-system-alist>: Doc fix.
15368 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15369
153702008-05-28 Kenichi Handa <handa@m17n.org>
15371
15372 * fontset.c (Ffont_info): Don't call font_close_object.
15373
15374 * font.c (font_parse_family_registry): Use Ffont_put to validate
15375 foundry and family.
15376 (font_delete_unmatched): Don't check spacing.
15377 (font_list_entities): Add spacing to the spec to list fonts.
15378
15379 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15380 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15381
15382 * coding.c (encode_coding_raw_text): Fix previous change.
15383 (encode_coding_object): When the dst_object is a buffer and is
15384 different from src_object, move gap to PT.
15385
153862008-05-27 Chong Yidong <cyd@stupidchicken.com>
15387
15388 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15389
153902008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15391
15392 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15393 all branches. Compute it differently.
15394
15395 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15396
153972008-05-27 Juanma Barranquero <lekktu@gmail.com>
15398
15399 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15400 into "else if () ... else ...".
15401
154022008-05-27 Jason Rumney <jasonr@gnu.org>
15403
15404 * w32font.c (w32font_open_internal): Determine if glyph indices
15405 are likely to work here.
15406
154072008-05-27 Chong Yidong <cyd@stupidchicken.com>
15408
15409 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15410 draw overlap glyphs with appropriate highlighting.
15411
154122008-05-27 Kenichi Handa <handa@m17n.org>
15413
15414 * xfont.c (xfont_open): Fix calculation of font->average_width.
15415
154162008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15417
15418 * casefiddle.c (casify_object): Try to guess better whether the
15419 argument is a byte or a char.
15420
154212008-05-26 Andreas Schwab <schwab@suse.de>
15422
15423 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15424 Always send multiples of format size.
15425
15426 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15427
154282008-05-26 Jason Rumney <jasonr@gnu.org>
15429
15430 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15431 (compute_metrics): Don't set failure if we just cleared the cache.
15432 (w32_weight_table): Remove unused variable.
15433 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15434 backwards compatibility.
15435
154362008-05-25 Kenichi Handa <handa@m17n.org>
15437
15438 * w32term.c (x_draw_glyph_string):
15439 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15440
15441 * xfaces.c: Delete unused function prototypes.
15442 (xstrlwr, font_frame): Delete them.
15443 (clear_face_cache): Delete unused variable.
15444
15445 * xftfont.c (xftfont_open): Delete unused variable.
15446 If underline_thickness is not 1, adjust underline_position.
15447
15448 * ftxfont.c (ftxfont_open): Delete unused variable.
15449
15450 * fontset.c (face_for_char): Optimize for the case of no charset
15451 property.
15452
15453 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15454 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15455 (otf_open, font_otf_capability, generate_otf_features)
15456 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15457 Comment out by surrounding "#if 0" and "#endif" for the moment.
15458 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15459 (syms_of_font): Codes for accessing above commented out.
15460
154612008-05-24 Eli Zaretskii <eliz@gnu.org>
15462
15463 * w32proc.c: Include dispextern.h.
15464
15465 * w32.c: Include dispextern.h.
15466
154672008-05-23 Juanma Barranquero <lekktu@gmail.com>
15468
15469 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15470 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15471 Fix typos in docstrings.
15472
154732008-05-23 Jason Rumney <jasonr@gnu.org>
15474
15475 * xsmfns.c: Remove includes that are already included by config.h.
15476
154772008-05-23 Kenichi Handa <handa@m17n.org>
15478
15479 * charset.c (Qemacs, charset_emacs): New variables.
15480 (char_charset): Fix for non-Unicode characters.
15481 (syms_of_charset): Define charset_emacs.
15482
15483 * w32term.c (x_draw_glyph_string): Be sure to update
15484 s->underline_thickness and s->underline_position. Be sure to draw
15485 underline within the current line area.
15486
15487 * xterm.c (x_draw_glyph_string): Be sure to update
15488 s->underline_thickness and s->underline_position. Be sure to draw
15489 underline within the current line area.
15490
15491 * fontset.c: Delete unused variables and add casting for char *
15492 throughout the file.
15493 (fontset_font): Try the fallback fonts of the current fontset
15494 before consulting the default fontset.
15495
15496 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15497
15498 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15499
155002008-05-22 Jason Rumney <jasonr@gnu.org>
15501
15502 * font.c: Don't include strings.h.
15503
15504 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15505
15506 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15507 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15508 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15509 to call xstrcasecmp.
15510
15511 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15512
15513 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15514
15515 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15516
15517 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15518
155192008-05-22 Kenichi Handa <handa@m17n.org>
15520
15521 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15522
15523 * font.c (font_prop_validate_style): Adjust for the format
15524 change of font_style_table.
15525
15526 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15527 two args.
15528
15529 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15530 two args.
15531
155322008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15533
15534 * minibuf.c (keys_of_minibuf): Delete.
15535 * lisp.h (keys_of_minibuf): Delete.
15536 * emacs.c (main): Don't call keys_of_minibuf.
15537
155382008-05-22 Kenichi Handa <handa@m17n.org>
15539
15540 * ftfont.c (ftfont_resolve_generic_family): Rename from
15541 ftfont_list_generic_family. Return a single family for each
15542 generic family.
15543 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15544 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15545 Call font_add_log.
15546 (ftfont_match): Call font_add_log.
15547
15548 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15549 (FONT_DEBUG): Define it.
15550 (font_add_log): Extern it.
15551 (font_assert): Rename from xassert.
15552
15553 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15554 (xfont_list_family): Call font_add_log.
15555 (xfont_match): Likewise.
15556 (memq_no_quit): Delete.
15557
15558 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15559 call of Ffont_xlfd_name.
15560
15561 * xfaces.c (struct table_entry, slant_table, weight_table)
15562 (swidth_table): Move to font.c.
15563
15564 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15565 xassert are changed to font_assert. Delete many unused variables.
15566 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15567 New variables.
15568 (struct table_entry): Move from xfaces.c and modified.
15569 (weight_table, slant_table, width_table): Move from xfaces.c and
15570 contents adjusted for the change of struct table_entry.
15571 (font_style_to_value, font_style_symbolic): Adjust for the
15572 format change of font_style_table.
15573 (font_parse_family_registry): Don't overwrite existing foundry and
15574 family of font_spec.
15575 (font_score): Fix calculation of diff for sizes.
15576 (font_sort_entites): Call font_add_log.
15577 (font_delete_unmatched): Return a newly created list.
15578 (font_list_entities): Fix previous change. Call font_add_log.
15579 (font_matching_entity, font_open_entity, font_close_entity):
15580 Call font_add_log.
15581 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15582 (Finternal_set_font_style_table): Delete.
15583 (BUILD_STYLE_TABLE): New macro.
15584 (build_style_table): New function.
15585 (Vfont_log, font_log_env_checked): New variables.
15586 (font_add_log): New function.
15587 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15588 Declare Lisp variables "font-weight-table", "font-slant-table",
15589 "font-width-table", and "font-log". Initialize font_style_table.
15590
155912008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15592
15593 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15594
155952008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15596 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15597
15598 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15599 (Vframe_alpha_lower_limit): New variable.
15600 (x_set_alpha): New function.
15601
15602 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15603
15604 * xfns.c (x-create-frame, Qalpha):
15605 Initialize the frame parameter `alpha'.
15606 * xterm.c (OPAQUE, OPACITY): New.
15607 (x_set_frame_alpha): New function.
15608 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15609
15610 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15611 * w32fns.c (w32_frame_parm_handlers): Likewise.
15612
156132008-05-20 Jason Rumney <jasonr@gnu.org>
15614
15615 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15616 truetype fonts to opentype list.
15617
156182008-05-20 Juanma Barranquero <lekktu@gmail.com>
15619
15620 * fontset.c (Ffontset_info): Doc fix.
15621 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15622 <ignore-relative-composition>: Fix typos in docstrings.
15623
15624 * font.c (syms-of-font) <font-encoding-alist>:
15625 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15626 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15627 (Ffont_otf_alternates): Doc fixes.
15628
156292008-05-20 Kenichi Handa <handa@m17n.org>
15630
15631 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15632 font.h through out the file.
15633 (FONT_DRIVERS): Rename from FONTOBJ.
15634 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15635 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15636
15637 * emacs.c (main): Call syms_of_font unconditionally.
15638
15639 * font.h (find_font_encoding): Extern it.
15640
15641 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15642 fontset.c.
194d44e7 15643 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
15644 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15645 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15646 only when HAVE_WINDOW_SYSTEM is defined.
15647 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15648 when HAVE_WINDOW_SYSTEM is defined.
15649
15650 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15651 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15652
15653 * xfaces.c: Include font.h unconditionally.
15654 (merge_face_ref, merge_face_vectors)
15655 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15656
156572008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15658
15659 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15660 indirect_variable.
15661 * eval.c (lisp_indirect_variable): New fun.
15662 (Fuser_variable_p): Use it.
15663
156642008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15665
15666 * lisp.h (indirect_variable):
15667 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15668 Use Lisp_Symbol pointers rather than Lisp_Object.
15669 Adjust callers.
15670 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15671 To this end, change calling-convention.
15672
15673 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15674 if some non-hidden buffers are selected by string&pred.
15675
156762008-05-19 Chong Yidong <cyd@stupidchicken.com>
15677
15678 * process.c (wait_reading_process_output): Always check status
15679 when in batch mode.
15680
156812008-05-19 Kenichi Handa <handa@m17n.org>
15682
15683 * font.c (font_list_entities): Fix handling of cache.
15684 (font_matching_entity): Likewise.
15685
15686 * ftfont.c (cs_iso8859_1): Delete.
15687 (ft_face_cache): New variable.
15688 (struct ftfont_info): New member fc_charset_idx.
15689 (ftfont_build_basic_charsets): Delete.
15690 (fc_charset_table): New variable.
15691 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15692 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15693 Callers changed.
15694 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15695 (ftfont_spec_pattern): New argument fc_charset_idx.
15696 Check registry more rigidly. Change callers.
15697 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15698 change of :font-entity property of the font.
15699
15700 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15701 property of the font.
15702
157032008-05-18 Juanma Barranquero <lekktu@gmail.com>
15704
15705 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15706 (Funencodable_char_position, Fcheck_coding_systems_region)
15707 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15708 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15709 (Ffind_operation_coding_system, Fset_coding_system_priority)
15710 (Fcoding_system_eol_type): Doc fixes.
15711
157122008-05-17 Glenn Morris <rgm@gnu.org>
15713
15714 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15715
157162008-05-16 Eli Zaretskii <eliz@gnu.org>
15717
15718 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15719 and st_gid.
15720
15721 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15722 HAVE_WINDOW_SYSTEM is not defined.
15723
15724 * xfaces.c (merge_face_ref, merge_face_vectors)
15725 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15726 HAVE_WINDOW_SYSTEM is defined.
15727 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15728
157292008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15730
15731 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15732
157332008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15734
15735 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15736
157372008-05-15 Kenichi Handa <handa@m17n.org>
15738
15739 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15740 preference.
15741
157422008-05-15 Glenn Morris <rgm@gnu.org>
15743
15744 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15745
157462008-05-15 Chong Yidong <cyd@stupidchicken.com>
15747
15748 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15749 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15750
15751 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15752
157532008-05-15 Kenichi Handa <handa@m17n.org>
15754
15755 * ftfont.c (ftfont_list): Downcase family name to check generic
15756 families.
15757
15758 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15759 font-spec for QCfont value.
15760
15761 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15762 buffer. Check the return value of it.
15763
157642008-05-14 Jason Rumney <jasonr@gnu.org>
15765
15766 * w32term.c (w32_get_glyph_overhangs): Remove.
15767 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15768
157692008-05-14 Kenichi Handa <handa@m17n.org>
15770
15771 * font.c (font_prop_validate): Make nil a valid value.
15772 (font_clear_cache): Check if the cached vector of entities is nil
15773 or not.
15774
157752008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15776
15777 * emacs.c (main_thread): Conditionalize on
15778 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15779 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15780
15781 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15782 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15783 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15784
157852008-05-14 Kenichi Handa <handa@m17n.org>
15786
15787 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15788 has no corresponding coding system.
15789
157902008-05-14 Jason Rumney <jasonr@gnu.org>
15791
15792 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15793
15794 * w32font.h (w32font_open_internal): Update declaration.
15795
15796 * w32font.c (w32font_open_internal): Change last argument from
15797 w32font_info struct to font object. Fill in font object from
15798 font_entity. Get Outline metrics if possible. Use them to
15799 calculate underline position and thickness. Use xlfd name as name
15800 property. Don't set codepage.
15801 (w32font_open): Pass font_object to w32font_open_internal. Don't
15802 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15803 (w32font_draw): Use s->font.
15804 (clear_cached_metrics): Don't clear non-existent blocks.
15805
15806 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15807 font was not found.
15808 (x_draw_glyph_string): Use underline position and thickness from font.
15809
15810 * w32uniscribe.c (uniscribe_open): Pass font_object to
15811 w32font_open_internal.
15812
158132008-05-14 Kenichi Handa <handa@m17n.org>
15814
15815 These changes are to delete all legacy font-handling codes, and
15816 make Emacs use only font-backends.
15817
15818 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15819 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15820
15821 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15822
15823 * charset.h (Vcharset_non_preferred_head)
15824 (Vcurrent_iso639_language): Extern them.
15825
15826 * charset.c (Vcharset_non_preferred_head): New variable.
15827 (Vcurrent_iso639_language): New variable.
15828 (syms_of_charset): Declare it as a Lisp variable.
15829 (char_charset): Don't check non preferred charsets. As a last
15830 resort, return charset_unicode.
15831 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15832
15833 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15834 conditionals. Don't check enable_font_backend. Delete all codes
15835 used only when USE_FONT_BACKEND is not defined.
15836
15837 * dispextern.h (struct glyph_string): Change type of `font' to
15838 `struct font *'.
15839 (struct glyph_string): New member underline_position and
15840 underline_thickness.
15841 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15842 (struct face): Change type of `font' to `struct font *'. Remove
15843 members `font_name', `font_info_id'.
15844 (per_char_metric, encode_char): Delete externs.
15845 (calc_pixel_width_or_height): Adjust the prototype.
15846
15847 * emacs.c (enable_font_backend): Delete extern.
15848 (main): Don't set enable_font_backend. Don't check the command
15849 line argument "-disable-font-backend".
15850
15851 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15852 (enum font_property_index): New members FONT_DPI_INDEX,
15853 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15854 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15855 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15856 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15857 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15858 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15859 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15860 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15861 (struct font_spec, struct font_entity): New structs.
15862 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15863 (struct font): Many members from old "struct font_info" moved to
15864 here. Members font and entity deleted.
15865 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15866 the new font-related objects.
15867 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15868 (CHECK_FONT_GET_OBJECT): Likewise.
15869 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15870 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15871 (struct font_driver): New members case_sensitive anc check. Type
15872 of the member list and open changed.
15873 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15874 (font_symbolic_width, font_find_object, font_get_spec)
15875 (font_set_lface_from_name): Delete extern.
15876 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15877
15878 * font.c: Include <strings.h>.
15879 (enable_font_backend): Delete it.
15880 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15881 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15882 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15883 (null_string): Delete it.
15884 (null_vector): Make it static.
15885 (font_family_alist): Delete it.
15886 (Qnormal): Extern it.
15887 (QCextra, QClanguage): Delete it.
15888 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15889 (font_make_spec, font_make_entity, font_make_object)
15890 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15891 the string. Callers changed.
15892 (font_pixel_size): Adjusted for the format change of font-related
15893 objects.
15894 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15895 (font_style_to_value, font_style_symbolic): New function.
15896 (build_font_family_alist): Delete it.
15897 (font_registry_charsets): Use Fassoc_string instead of
15898 assq_no_quit.
15899 (font_prop_validate_symbol): Don't return null_string.
15900 (font_prop_validate_style): Adjusted for the change of
15901 style-related values in a font vector.
15902 (font_property_table): Delete entries for QClanguage and
15903 QCantialias, add entries for QCavgwidth.
15904 (get_font_prop_index): Delete the 2nd argument FROM.
15905 (font_prop_validate): Arguments changed.
15906 (font_put_extra): Adjusted for the change of font-related objects.
15907 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15908 (font_parse_fcname, font_unparse_fcname)
15909 (font_prepare_composition): Likewise.
15910 (font_parse_family_registry): Renamed from font_merge_old_spec.
15911 (otf_open): Delete the 1st arg entity.
15912 (font_otf_capability): Adjusted for the above change.
15913 (font_score): New arg alternate_families. Adjusted for the change
15914 of font-related objects.
15915 (font_sort_entites): New arg best_only.
15916 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15917 Delete them.
15918 (font_match_p): Check alternate families.
15919 (font_find_object): Delete it.
15920 (font_check_object): New function.
15921 (font_clear_cache): Adjusted for the change of font-related objects.
15922 (font_delete_unmatched): New arg.
15923 (font_list_entities): Call font_driver->list with a spec that
15924 doesn't specify style-related properties.
15925 (font_matching_entity): Arguments changed. Caller changed.
15926 (font_open_entity): Adjusted for the change of font-related objects.
15927 (font_close_object, font_has_char, font_encode_char)
15928 (font_get_name, font_get_spec): Likewise.
15929 (font_spec_from_name, font_clear_prop, font_update_lface):
15930 New functions.
15931 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15932 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15933 (font_at): Adjusted for the change of font-related objects.
15934 (font_range): New function.
15935 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15936 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15937 (Fcopy_font_spec, Fmerge_font_spec): New function.
15938 (Ffont_family_list): Renamed from list-families.
15939 (Finternal_set_font_style_table): Arguments changed.
15940 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15941 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15942 change of font-related objects.
15943 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15944
15945 * fontset.h (struct font_info): Delete it. Most members go to
15946 struct font.
15947 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15948 (enum FONT_SPEC_INDEX): Delete it.
15949 (font_info, list_fonts_func, load_font_func, query_font_func)
15950 (set_frame_fontset_func, find_ccl_program_func)
15951 (get_font_repertory_func, new_fontset_from_font_name): Delete
15952 externs.
15953 (fontset_from_font_name): Extern it.
15954 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15955 (FONT_INFO_FROM_FACE): Deleted.
15956 (face_for_font): Adjust prototype.
15957
15958 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15959 conditionals. Don't check enable_font_backend. Delete all codes
15960 used only when USE_FONT_BACKEND is not defined.
15961 (get_font_info_func, list_font_func, load_font_func)
15962 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15963 (get_font_repertory_func): Delete them.
15964 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15965 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15966 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15967 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15968 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15969 (fontset_compare_rfontdef): New function.
15970 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15971 rfont-defs by qsort. Adjusted for the change of font-group vector.
15972 (load_font_get_repertory): Deleted.
15973 (fontset_find_font): Use new macros to ref/set elements of
15974 font-def and rfont-def.
15975 (fontset_font): Fix the timing of remembering that no font for C.
15976 (free_face_fontset): Do nothing if the face has no fontset.
15977 (face_suitable_for_char_p): Use new macros to ref/set elements of
15978 rfont-def.
15979 (face_for_char): Likewise. Call face_for_char with font_object.
15980 (fs_load_font): Delete. Delete #pragma surrounding it.
15981 (fs_query_fontset): Use strcasecmp instead of strcmp.
15982 (generate_ascii_font_name): Adjusted for the format change of
15983 font-spec.
15984 (Fset_fontset_font): Likewise. Use new macros to set elements of
15985 font-def.
15986 (Fnew_fontset): Use font_unparse_xlfd to generate
15987 FONTSET_ASCII (fontset).
15988 (new_fontset_from_font_name): Deleted.
15989 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15990 a fontset is already created for the font. FIx updating of
15991 Vfontset_alias_alist.
15992 (fontset_ascii_font): Deleted.
15993 (Ffont_info): Adjusted for the format change of font-spec.
15994 (Finternal_char_font): Likewise.
15995 (Ffontset_info): Likewise.
15996 (syms_of_fontset): Don't check load_font_func.
15997
15998 * fns.c (internal_equal): Handle PREV_FONT.
15999
16000 * frame.h: Delete USE_FONT_BACKEND conditional.
16001
16002 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16003 conditionals. Don't check enable_font_backend. Delete all codes
16004 used only when USE_FONT_BACKEND is not defined.
16005 (x_set_font): Call x_new_font, not x_new_fontset2.
16006 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16007 already set for the frame.
16008
16009 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16010 a font-entity by font_make_entity. Use font_intern_prop instead
16011 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16012 font property. If a font is scalable, set avgwidth property to 0.
16013 Set font-entity property by font_put_extra.
16014 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16015 (ffont_driver): Adjusted for the change of struct font_driver.
16016 (ftfont_spec_pattern): New function.
16017 (ftfont_list): Return a list, not vector.
16018 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16019 (ftfont_list_family): Don't downcase names.
16020 (ftfont_free_entity): Deleted.
16021 (ftfont_open): Return a font-object. Adjusted for the change of
16022 struct font. Get underline_thickness and underline_position from
16023 font property. Don't update dpyinfo->smallest_font_height and
16024 dpyinfo->smallest_char_width.
16025 (ftfont_close): Don't free `struct font'.
16026 (ftfont_has_char): Adjusted for the format change of font-entity.
16027 (ftfont_encode_char, ftfont_text_extents): Likewise.
16028
16029 * ftxfont.c (ftxfont_list): Return a list, not vector.
16030 (ftxfont_open): Return a font-object. Adjusted for the change of
16031 struct font. Get underline_thickness and underline_position from
16032 font property. Don't update dpyinfo->smallest_font_height and
16033 dpyinfo->smallest_char_width.
16034 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16035 (ftxfont_draw): Adjusted for the change of struct font.
16036
16037 * image.c (image_ascent): Don't include "charset.h". Include
16038 "character.h" and "font.h".
16039
16040 * lisp.h (enum pvec_type): New member PREV_FONT.
16041 (Fassoc_string): EXFUN it.
16042
16043 * print.c: Include font.h.
16044 (print_object): Handle font-related objects.
16045
16046 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16047 conditionals. Don't check enable_font_backend. Delete all codes
16048 used only when USE_FONT_BACKEND is not defined.
16049 (handle_auto_composed_prop): Do nothing if it->f is not on a
16050 window system. Check how many following characters can be
16051 displayed by the same font.
16052 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16053 'struct font *'.
16054 (get_char_face_and_encoding): Assign the whole encoding task to
16055 the `encode-char' method of a font driver.
16056 (fill_composite_glyph_string): Adjusted for the change of `struct
16057 face' and `struct glyph_string'.
16058 (fill_glyph_string): Likewise.
16059 (get_per_char_metric): Arguments changed.
16060 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16061 and `struct glyph_string'.
16062 (produce_stretch_glyph, calc_line_height_property)
16063 (x_produce_glyphs): Likewise.
16064
16065 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16066 conditionals. Don't check enable_font_backend. Delete all codes
16067 used only when USE_FONT_BACKEND is not defined. Use
16068 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16069 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16070 (Qp): Extern them.
16071 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16072 Deleted.
16073 (struct font_name): Deleted.
16074 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16075 (compare_fonts_by_sort_order): New function.
16076 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16077 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16078 Deleted.
16079 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16080 compare_fonts_by_sort_order.
16081 (Fx_font_family_list): Call Ffont_family_list.
16082 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16083 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16084 (face_symbolic_slant, face_symbolic_swidth)
16085 (split_font_name_into_vector, build_font_name_from_vector)
16086 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16087 (font_rescale_ratio, split_font_name, build_font_name)
16088 (free_font_names, sort_fonts, x_face_list_fonts)
16089 (face_font_available_p, sorted_font_list, cmp_font_names)
16090 (font_list_1, concat_font_list, font_list, remove_duplicates):
16091 Deleted.
16092 (Fx_list_fonts): Use Ffont_list.
16093 (LFACE_AVGWIDTH): Deleted.
16094 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16095 by FONTP.
16096 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16097 (set_lface_from_font_name): Delete it.
16098 (set_lface_from_font): Renamed from
16099 set_lface_from_font_and_fontset. Caller changed. Don't set
16100 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16101 for face.
16102 (merge_face_vectors): Copy font-spec if necessary.
16103 Clear properties of the font-spec if necessary.
16104 (merge_face_ref): Clear properties of the font-spec if necessary.
16105 (Finternal_set_lisp_face_attribute): Likewise.
16106 (set_font_frame_param): Use font_load_for_lface to load a
16107 font-object, and call Fmodify_frame_parameters with it.
16108 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16109 font name by Ffont_xlfd_name.
16110 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16111 QCslant, and QCwidth.
16112 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16113 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16114 Compare fonts by EQ.
16115 (lookup_non_ascii_face): Deleted.
16116 (face_for_font): The 2nd argument changed.
16117 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16118 Check atomic font properties by case insensitive.
16119 (realize_non_ascii_face): Set face->overstrike correctly.
16120 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16121 (dump_realized_face): Get font name from
16122 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16123
16124 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16125 conditionals. Don't check enable_font_backend. Delete all codes
16126 used only when USE_FONT_BACKEND is not defined.
16127 (xic_create_xfontset): Original code deleted and renamed from
16128 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16129 (x_make_gc): Don't set GCFont in GCs.
16130 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16131 opened by "fixed".
16132 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16133 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16134 get_font_repertory_func.
16135
16136 * xfont.c: Include <stdlib.h> and "ccl.h".
16137 (struct xfont_info): New structure.
16138 (xfont_query_font): Deleted.
16139 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16140 moved from xterm.c.
16141 (xfont_driver): Adjusted for the change of struct font_driver.
16142 (compare_font_names): New function.
16143 (xfont_list_pattern): Sort font names case insensitively. Make
16144 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16145 (xfont_list): Return a list, not vector.
16146 (xfont_match): If the font doesn't have QCname property, generate
16147 a name from the other font properties.
16148 (xfont_open): Return a font-object. Adjusted for the change of
16149 struct font. Get underline_thickness and underline_position from
16150 font property. Don't update dpyinfo->smallest_font_height and
16151 dpyinfo->smallest_char_width.
16152 (xfont_close): Don't free struct font.
16153 (xfont_prepare_face): Adjusted for the change of struct font.
16154 (xfont_done_face): Deleted.
16155 (xfont_has_char): Adjusted for the change of struct font.
16156 (xfont_encode_char, xfont_draw): Likewise.
16157 (xfont_check): New function.
16158
16159 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16160 callback function.
16161 (xftfont_match): Adjusted for the format change of font-entity.
16162 (xftfont_open): Adjusted for the format change of font-entity and
16163 font-object. Adjusted for the change of struct font. Return a
16164 font-object. Don't update dpyinfo->smallest_font_height and
16165 dpyinfo->smallest_char_width.
16166 (xftfont_close): Block input while calling XftFontClose.
16167 (xftfont_prepare_face): Don't block input while calling
16168 xftfont_get_colors. Adjusted for the change of struct font.
16169 (xftfont_shape): Return value of error case fixed.
16170
16171 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16172
16173 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16174 conditionals.
16175 (FONT_WIDTH): Return (f)->max_width.
16176 (struct x_display_info): Delete member `font'.
16177 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16178 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16179 (struct x_output): Change type of `font' to `struct font *'.
16180
16181 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16182 conditionals. Don't check enable_font_backend. Delete all codes
16183 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16184 (x_per_char_metric, x_encode_char): Deleted.
16185 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16186 (x_compute_glyph_string_overhangs): Adjusted for the change of
16187 `struct face'.
16188 (x_draw_glyph_string_foreground)
16189 (x_draw_composite_glyph_string_foreground): Likewise.
16190 (x_draw_glyph_string): Likewise. Use font->underline_position and
16191 font->underline_thickness.
16192 (x_new_font): Renamed from x_new_fontset2.
16193 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16194 (x_check_font): Call `check' method of a font driver.
16195 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16196 (x_query_font, x_get_font_repertory): Deleted.
16197 (x_find_ccl_program): Renamed and moved to xfont.c.
16198 (x_redisplay_interface): Adjusted for the change of `struct
16199 redisplay_interface'.
16200
16201 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16202 conditionals. Don't check enable_font_backend. Delete all codes
16203 used only when USE_FONT_BACKEND is not defined. Surround non-used
16204 code by "#ifdef OLD_FONT" and "endif".
16205 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16206
16207 * w32font.h (struct w32font_info): New member.
16208 (FONT_COMPAT): New macro.
16209 (w32font_open_internal): Prototype adjusted.
16210
16211 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16212 OLD_FONT" and "endif".
16213
16214 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16215 conditionals. Don't check enable_font_backend. Delete all codes
16216 used only when USE_FONT_BACKEND is not defined.
16217 (w32font_open): Return a font-object. Make a font-object by
16218 font_make_object. Adjusted for the change of struct w32font_info.
16219 (w32font_close): Don't free struct font. Adjusted for the change
16220 of struct w32font_info.
16221 (w32font_encode_char, w32font_text_extents, w32font_draw):
16222 Adjusted for the change of struct w32font_info.
16223 (w32font_draw): Likewise.
16224 (w32font_list_internal): Return a list, not vector.
16225 (w32font_open_internal): Change the 4th arg to font-object.
16226 Adjusted for the change of struct w32font_info and font-object format.
16227 (add_font_name_to_list): Don't downcase names.
16228 (w32_enumfont_pattern_entity): Make a font-entity by
16229 font_make_entity. Adjusted for the format change of font-entity.
16230 Use FONT_SET_STYLE to set a style-related font property. If a
16231 font is scalable, set avgwidth property to 0. Set font-entity
16232 property by font_put_extra.
16233 (font_matches_spec): Adjusted for the format change of font-entity.
16234 (w32_weight_table, w32_decode_weight): New variables.
16235 (w32_encode_weight): New function.
16236 (fill_in_logfont): Adjusted for the format change of font-spec.
16237 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16238 weight value.
16239 (w32font_driver): Adjusted for the change of struct font_driver.
16240
16241 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16242 conditionals. Don't check enable_font_backend. Surround non-used
16243 code by "#ifdef OLD_FONT" and "endif".
16244 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16245 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16246
16247 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16248 conditionals. Don't check enable_font_backend. Delete all codes
16249 used only when USE_FONT_BACKEND is not defined. Surround non-used
16250 code by "#ifdef OLD_FONT" and "endif".
16251
16252 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16253 (uniscribe_open): Return value changed to font-object.
16254 Adjusted for the format change of font-object.
16255 (uniscribe_otf_capability): Adjusted for the change of struct font.
16256 (add_opentype_font_name_to_list): Don't downcase names.
16257 (uniscribe_font_driver): Adjusted for the change of struct
16258 font_driver.
16259
162602008-05-13 Chong Yidong <cyd@stupidchicken.com>
16261
16262 * dispnew.c (update_frame_1): Check if tty output is still valid
16263 before flushing it.
16264
162652008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16266
16267 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16268 to Gtk+ menus.
16269
162702008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16271
16272 * dired.c (file_name_completion): Tweak the code so as to always do it
16273 in a single pass. Tighten the scope of some variables.
16274
16275 * dired.c (Qdefault_directory): New var.
16276 (file_name_completion): Use it instead of Fexpand_file_name.
16277 (syms_of_dired): Initialize it.
16278
162792008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16280
16281 * fileio.c (double_dollars): Remove dead code.
16282
162832008-05-10 Eli Zaretskii <eliz@gnu.org>
16284
16285 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16286 Mention w32-get-true-file-attributes in doc string.
16287
16288 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16289
162902008-05-09 Glenn Morris <rgm@gnu.org>
16291
16292 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16293 2008-04-23.
16294
162952008-05-09 Eli Zaretskii <eliz@gnu.org>
16296
16297 Support for reporting owner and group of each file on MS-Windows:
16298 * dired.c (stat_uname, stat_gname): New functions, with special
16299 implementation for w32.
16300 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16301
16302 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16303 (dflt_group_name): New static variable.
16304 (dflt_group): Rename from the_group.
16305 (init_user_info): Init dflt_group fields. Get user's group name
16306 from LookupAccountSid.
16307 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16308 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16309 New initialization states.
16310 (globals_of_w32): Initialize them to zero. Initialize the default
16311 group name to "None".
16312 (GetFileSecurity_Name): New global var, the name of the function
16313 to call for GetFileSecurity.
16314 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16315 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16316 (get_file_security, get_security_descriptor_owner)
16317 (get_security_descriptor_group, is_valid_sid)
16318 (get_file_security_desc, get_rid, get_name_and_id)
16319 (get_file_owner_and_group): New functions.
16320 (stat): Use get_file_security_desc and get_file_owner_and_group to
16321 report the owner and primary group of each file. Don't ignore the
16322 high 32 bits of file's size, now that st_size is 64-bit wide.
16323 Fix test when to get true file attributes.
16324 (init_user_info): Use get_rid instead of equivalent inline code.
16325 (fstat): Don't ignore the high 32 bits of file's size.
16326
163272008-05-09 Chong Yidong <cyd@stupidchicken.com>
16328
16329 * image.c (png_load): Use correct bit-depth for setting background
16330 color.
16331
163322008-05-08 Eli Zaretskii <eliz@gnu.org>
16333
16334 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16335 epa-hook.elc.
16336
163372008-05-08 Juanma Barranquero <lekktu@gmail.com>
16338
16339 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16340
163412008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16342
16343 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16344 because the original parameters are in pure storage now.
16345 (mac_window): Remove unused params. Update callers.
16346
163472008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16348
16349 * lread.c (substitute_object_recurse): Use lower-level primitives.
16350 Don't signal errors when traversing sub-char-tables.
16351 Don't loop over all the possible characters when traversing char-tables.
16352
16353 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16354 just like we do in print.c.
16355
163562008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16357
16358 * minibuf.c (Ftry_completion): Remove code left over from when we used
16359 scmp instead of Fcompare_strings.
16360
163612008-05-04 Juanma Barranquero <lekktu@gmail.com>
16362
16363 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16364
163652008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16366
16367 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16368 Create bitmap context in native byte order.
16369
16370 * macterm.c (XDrawLine)
16371 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16372 context in native byte order.
16373
163742008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16375
16376 * config.in: Regenerate.
16377
16378 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16379 New definitions for Image I/O support.
16380 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16381 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16382 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16383 (mac_data_provider_release_data, image_load_image_io)
16384 [USE_MAC_IMAGE_IO]: New functions.
16385 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16386 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16387 (init_image_func_pointer) [MAC_OSX]: Remove function.
16388 (image_load_quartz2d) [MAC_OSX]: Check availability of
16389 CGImageCreateWithPNGDataProvider at compile time.
16390 Use lowercase `false' for boolean constant.
16391 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16392 Use image_load_image_io.
16393 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16394 Don't check MyCGImageCreateWithPNGDataProvider.
16395 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16396 Don't call init_image_func_pointer.
16397
16398 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16399
16400 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16401 Make variable non-static.
16402 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16403 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16404
16405 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16406 (RED_FROM_ULONG): Mask off higher bits.
16407 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16408
16409 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16410 Include AvailabilityMacros.h.
16411 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16412 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16413
164142008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16415
16416 * chartab.c (Fset_char_table_range): If range is t, really set all
16417 chars to that value.
16418
164192008-05-03 Eli Zaretskii <eliz@gnu.org>
16420
16421 * dired.c (Ffile_attributes): Don't allow the device number become
16422 negative.
16423
164242008-05-02 Daiki Ueno <ueno@unixuser.org>
16425
16426 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16427
164282008-05-02 Juri Linkov <juri@jurta.org>
16429
16430 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16431 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16432 DEFAULT argument as a list of default values in docstrings.
16433
164342008-05-01 Chong Yidong <cyd@stupidchicken.com>
16435
16436 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16437
164382008-05-01 Martin Rudalics <rudalics@gmx.at>
16439
16440 * dispnew.c (change_frame_size_1): Preserve small windows when
16441 shrinking frames by calling set_window_height|width with third
16442 arg 2.
16443
16444 * window.h (struct window): Replace field too_small_ok by field
16445 resize_proportionally.
16446
16447 * window.c (make_window): Initialize resize_proportionally.
16448 (enlarge_window): Temporarily set resize_proportionally to make
16449 sure that shrink_windows does scale the window proportionally.
16450 (shrink_windows): When window has resize_proportionally set try
16451 to shrink it proportionally by stealing from other windows.
16452 (struct saved_window, Fset_window_configuration)
16453 (compare_window_configurations): Handle resize_proportionally.
16454 (WINDOW_TOTAL_SIZE): New macro.
16455 (window_min_size, shrink_windows, size_window): Use it.
16456 (check_min_window_sizes): Remove. Invalid values of
16457 window-min-height|width are handled by window_min_size_2 now.
16458 (size_window, Fsplit_window, enlarge_window)
16459 (adjust_window_trailing_edge, grow_mini_window): Don't call
16460 check_min_window_sizes.
16461 (window_min_size_2, window_min_size_1, window_min_size):
16462 New argument safe_p for retrieving "safe" minimum sizes.
16463 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16464 (adjust_window_trailing_edge, grow_mini_window):
16465 Adjust arguments of window_min_size... functions.
16466 (shrink_windows): Argument min_size removed. New argument
16467 safe_p allows shrinking windows to their safe minimum sizes.
16468 Calculate minimum size and decide whether a window shall be
16469 deleted for each window individually.
16470 (size_window): When nodelete_p equals 2, tell shrink_windows to
16471 delete windows only if their new minimum size is no more safe.
16472 (shrink_window_lowest_first): Call window_min_size_1 to make
16473 sure to preserve modeline of bottom-most window when resizing
16474 the minibuffer.
16475 (Fset_window_configuration, Fcurrent_window_configuration)
16476 (compare_window_configurations): Do not handle
16477 window-min-height|width any more.
16478 (syms_of_window): Clarify window-min-height|width doc-strings.
16479
164802008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16481
16482 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16483 some more. Copy some of the code from Ftry_completions.
16484 Remove special case code that dates back to initial revision when the
16485 slash was only added when necessary and that can't trigger nowadays.
16486
164872008-04-27 Kenichi Handa <handa@m17n.org>
16488
16489 * font.c (font_prop_validate): Signal `error' instead of `font'.
16490
164912008-04-29 Jason Rumney <jasonr@gnu.org>
16492
16493 * w32fns.c (Fw32_battery_status): New defun.
16494 (syms_of_w32fns): Defsubr it.
16495
164962008-04-28 Andreas Schwab <schwab@suse.de>
16497
16498 * dired.c (file_name_completion): Fix another mixing of encoded
16499 and decoded names.
16500
165012008-04-28 Juanma Barranquero <lekktu@gmail.com>
16502
16503 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16504
165052008-04-27 Juanma Barranquero <lekktu@gmail.com>
16506
16507 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16508
165092008-04-27 Andreas Schwab <schwab@suse.de>
16510
16511 * dired.c (file_name_completion): Fix inappropriate mixing of
16512 encoded and decoded names.
16513
16514 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16515
16516 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16517
165182008-04-26 Eli Zaretskii <eliz@gnu.org>
16519
16520 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16521 2008-03-31, it's not needed anymore with `struct stat' definition
16522 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16523 for the same reasons.
16524
165252008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16526
16527 * m/sparc.h: Additional redefinitions for GNU/Linux.
16528
165292008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16530
16531 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16532 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16533 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16534 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16535 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16536 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16537 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16538 Likewise.
16539
16540 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16541 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16542 (mac_ax_number_of_characters): Add externs.
16543 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16544 [USE_MAC_TSM]: Likewise.
16545 (mac_handle_text_input_event) [MAC_OSX]:
16546 Handle kEventTextInputOffsetToPos for no active input area case.
16547 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16548 (mac_handle_document_access_event)
16549 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16550 (install_application_handler) [MAC_OSX]: Register handlers for
16551 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16552 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16553 Register mac_handle_document_access_event.
16554
16555 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16556 Make functions non-static.
16557
165582008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16559
16560 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16561 (read_file_name_completion_ignore_case, insert_default_directory)
16562 (Qdefault_directory): Move to minibuffer.el.
16563 (Fread_file_name): Call the new `read-file-name' instead.
16564
165652008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16566
16567 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16568 Make function non-static.
16569 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16570 Remove function.
16571 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16572 Move to mactoolbox.c.
16573 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16574
16575 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16576 (mac_rect_make): New macro.
16577
16578 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16579 instead of float.
16580 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16581 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16582 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16583 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16584 CGRectMake.
16585 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16586 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16587 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16588 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16589 instead of WindowRef in argument type.
16590 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16591 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16592 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16593 instead of DISPLAY. All uses changed.
16594 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16595 (x_calc_absolute_position): Simplify so as not to use
16596 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16597
16598 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16599 instead of WindowRef in argument type.
16600 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16601 [TARGET_API_MAC_CARBON]: Remove externs.
16602 (create_apple_event, mac_event_parameters_to_lisp)
16603 [TARGET_API_MAC_CARBON]: Add externs.
16604
16605 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16606 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16607 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16608 is clicked.
16609 (x_activate_menubar): Remove extern for saved_menu_event_location.
16610 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16611 Move from mac.c.
16612
166132008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16614
16615 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16616 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16617
166182008-04-23 Jason Rumney <jasonr@gnu.org>
16619
16620 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16621 attributes only for local files.
16622
16623 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16624 default to Qlocal.
16625
166262008-04-22 Juri Linkov <juri@jurta.org>
16627
16628 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16629 read-buffer-to-switch instead of using the letter "B".
16630
166312008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16632
16633 * fileio.c (Qdefault_directory): New variable.
16634 (Fread_file_name): Use it to pass `dir' to the completion functions.
16635
166362008-04-20 Chong Yidong <cyd@stupidchicken.com>
16637
16638 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16639
166402008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16641
16642 * keyboard.c (Vpre_help_message): Remove.
16643 (show_help_echo): Remove default C code.
16644
16645 * dired.c (directory_files_internal, file_name_completion):
16646 Only call ENCODE_FILE if the string is indeed decoded.
16647
166482008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16649
16650 * Makefile.in (TOOLKIT_DEFINES): Remove.
16651 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16652
166532008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16654
16655 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16656 (mactoolbox.o): New target.
16657
16658 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16659 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16660
16661 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16662 Use mac_set_frame_window_background instead of XSetWindowBackground.
16663 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16664 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16665 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16666 instead of SetWindowTitleWithCFString.
16667 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16668 Move function to mactoolbox.c.
16669 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16670 Use mac_set_window_modified instead of SetWindowModified.
16671 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16672 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16673 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16674 FrontNonFloatingWindow. Use mac_activate_window instead of
16675 ActivateWindow. Use mac_active_non_floating_window instead of
16676 ActiveNonFloatingWindow.
16677 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16678 Use mac_show_hourglass and mac_hide_hourglass.
16679 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16680 instead of GetGlobalMouse.
16681 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16682 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16683 Use mac_bring_window_to_front instead of BringToFront.
16684 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16685 mactoolbox.c.
16686 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16687 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16688 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16689 mactoolbox.c.
16690
16691 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16692 (XtPointer): Move typedef from macmenu.c.
16693 (enum button_type): Move enum from macmenu.c.
16694 (widget_value): Move typedef from macmenu.c.
16695 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16696 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16697 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16698 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16699 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16700 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16701 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16702 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16703 (Selection): Move typedef from macselect.c.
16704 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16705 macterm.c.
16706 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16707 (mac_is_window_collapsed, mac_bring_window_to_front)
16708 (mac_send_window_behind, mac_hide_window, mac_show_window)
16709 (mac_collapse_window, mac_front_non_floating_window)
16710 (mac_active_non_floating_window, mac_activate_window)
16711 (mac_move_window_structure, mac_move_window, mac_size_window)
16712 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16713
16714 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16715 (enum mac_menu_kind): Move enum to mactoolbox.c.
16716 (min_menu_id): Move variable to mactoolbox.c.
16717 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16718 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16719 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16720 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16721 [TARGET_API_MAC_CARBON]: Likewise.
16722 (XtPointer): Move typedef to macgui.h.
16723 (enum button_type): Move enum to macgui.h.
16724 (widget_value): Move typedef to macgui.h.
16725 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16726 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16727 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16728 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16729 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16730 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16731 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16732 (popup_activated_flag): Make variable non-static.
16733 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16734 (add_menu_item, fill_menu, dispose_menus):
16735 Move functions to mactoolbox.c.
16736 (restore_show_help_function, menu_target_item_handler)
16737 (install_menu_target_item_handler, mac_handle_dialog_event)
16738 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16739 [TARGET_API_MAC_CARBON]: Likewise.
16740 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16741 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16742 (find_and_call_menu_selection, name_is_separator): Make function
16743 non-static.
16744 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16745 to mactoolbox.c.
16746 (set_frame_menubar): Don't call install_menu_quit_handler.
16747 (menu_item_selection): New variable.
16748 (mac_menu_show): Use create_and_show_popup_menu.
16749 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16750 selection but set variable menu_item_selection. All uses changed.
16751 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16752 Call install_menu_quit_handler. Move to mactoolbox.c.
16753
16754 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16755 (Selection): Move typedef to macgui.h.
16756 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16757 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16758 Make variables non-static.
16759 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16760 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16761 Make functions non-static.
16762 (Vmac_service_selection) [MAC_OSX]: Likewise.
16763 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16764 (mac_valid_selection_target_p, mac_clear_selection)
16765 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16766 (mac_put_selection_value, mac_selection_has_target_p)
16767 (mac_get_selection_value, mac_get_selection_target_list)
16768 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16769 Move functions to mactoolbox.c.
16770 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16771 Likewise.
16772 (copy_scrap_flavor_data, mac_handle_service_event)
16773 (install_service_handler) [MAC_OSX]: Likewise.
16774 (syms_of_macselect) <Vmac_dnd_known_types>:
16775 Use mac_dnd_default_known_types.
16776
16777 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16778 Move to mactoolbox.c.
16779 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16780 (Fx_selection_owner_p): Add EXFUN.
16781 (install_window_handler, remove_window_handler, XSetWindowBackground):
16782 Remove externs.
16783 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16784 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16785 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16786 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16787 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16788 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16789 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16790 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16791 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16792 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16793 (mac_valid_selection_target_p, mac_clear_selection)
16794 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16795 (mac_put_selection_value, mac_selection_has_target_p)
16796 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16797 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16798 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16799 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16800 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16801 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16802 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16803 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16804 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16805
16806 * mactoolbox.c: New file.
16807
168082008-04-18 Jason Rumney <jasonr@gnu.org>
16809
16810 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16811
168122008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16813
16814 * character.c (Fmultibyte_char_to_unibyte):
16815 Return latin1 chars unchanged.
16816
16817 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16818 relocated if it points to `name'.
16819
168202008-04-17 Kenichi Handa <handa@m17n.org>
16821
16822 * data.c (Faset): Allow setting a multibyte character in an
16823 ASCII-only unibyte string.
16824
16825 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16826
168272008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16828
16829 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16830 done in config.h.
16831
168322008-04-16 Juanma Barranquero <lekktu@gmail.com>
16833
16834 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16835 (Fchar_direction): Add usage in the docstring.
16836
168372008-04-15 Chong Yidong <cyd@stupidchicken.com>
16838
16839 * keyboard.c (read_key_sequence): Remove always-true checks.
16840
168412008-04-14 Jason Rumney <jasonr@gnu.org>
16842
16843 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16844 compatibility struct, for better underline positioning.
16845
168462008-04-13 David Hansen <david.hansen@gmx.net>
16847
16848 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16849 string.
16850
168512008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16852
16853 * m/hp800.h (XUINT, XSET): Remove.
16854
168552008-04-12 Juanma Barranquero <lekktu@gmail.com>
16856
16857 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16858 previous change.
16859
168602008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16861
16862 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16863 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16864
168652008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16866
16867 * keymap.h (map_keymap_canonical): Declare.
16868 * xmenu.c (single_keymap_panes): Use it.
16869
168702008-04-11 Glenn Morris <rgm@gnu.org>
16871
16872 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16873 set the target's value to that of the alias.
16874
168752008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16876
16877 * term.c (set_tty_color_mode): Left over typo.
16878
168792008-04-10 Michael Albinus <michael.albinus@gmx.de>
16880
16881 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16882 only after check for file name handler functions. Signal, when
16883 native functionality is not supported.
16884 (syms_of_fileio): Declare it unconditionally.
16885
168862008-04-10 Jason Rumney <jasonr@gnu.org>
16887
16888 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16889 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16890
16891 * w32.c (logon_network_drive): Also logon to remote drives that
16892 are mapped to drive letters.
16893
168942008-04-10 Glenn Morris <rgm@gnu.org>
16895
16896 * xdisp.c (truncate-partial-width-windows): Doc fix.
16897
168982008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16899
16900 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16901 Move functions to minibuffer.el.
16902 (syms_of_fileio): Don't declare them.
16903
169042008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16905
16906 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16907 (syms_of_minibuf): Remove its initialization.
16908
16909 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16910
169112008-04-09 Juanma Barranquero <lekktu@gmail.com>
16912
16913 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16914
169152008-04-09 Jason Rumney <jasonr@gnu.org>
16916
16917 * makefile.w32-in (distclean): Delete makefile too.
16918 (maintainer-clean): New target.
16919
16920 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16921
16922 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16923 for new font backend and composite cases.
16924
169252008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16926
16927 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16928 Most of the code moved to run_timers.
16929 (do_pending_atimers): Call run_timers.
16930 (run_timers): New function.
16931
16932 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16933 run atimers.
16934
16935 * process.c (wait_reading_process_output): The same as above.
16936
169372008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16938
16939 * minibuf.c (last_exact_completion): Remove variable.
16940 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16941 (complete_and_exit_1, complete_and_exit_2)
16942 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16943 (Fdisplay_completion_list, display_completion_list_1)
16944 (Fminibuffer_completion_help, Fself_insert_and_exit)
16945 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16946 minibuffer.el.
16947 (syms_of_minibuf): Remove corresponding initializations.
16948
16949 * keyboard.c (Qdeactivate_mark): New var.
16950 (command_loop_1): Use it to call `deactivate-mark'.
16951 (syms_of_keyboard): Initialize it.
16952
16953 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16954 to another frame.
16955 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16956 Don't call set_tty_color_mode.
16957 (store_frame_param): Reset previous_frame rather than call
16958 set_tty_color_mode.
16959 * term.c (set_tty_color_mode): Rewrite.
16960 * dispextern.h (set_tty_color_mode): New type.
16961 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16962
169632008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16964
16965 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16966 for generic chars, which do not exist any more in emacs-unicode.
16967
169682008-04-08 Michael Albinus <michael.albinus@gmx.de>
16969
16970 * coding.c (detect_coding_emacs_mule)
16971 (Ffind_operation_coding_system): Fix typo.
16972
169732008-04-08 Jason Rumney <jasonr@gnu.org>
16974
16975 * w32uniscribe.c (SNAME): Extract only symbol name.
16976
16977 * w32font.h (struct w32_metric_cache): New struct.
16978 (w32font_info): Use it.
16979 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16980 (CACHE_BLOCKSIZE): New constants.
16981
16982 * w32font.c (Qja, Qko, Qzh): New symbols.
16983 (syms_of_w32font): Initialise them.
16984 (font_matches_spec): Use them to filter by language.
16985 (recompute_cached_metrics): Remove function.
16986 (compute_metrics, clear_cached_metrics): New functions.
16987 (w32font_encode_char): Use them to manage metric cache.
16988 (w32font_text_extents): Cache metrics for all glyphs on demand.
16989 Delay converting glyph indices to WORD until needed.
16990 (w32font_open_internal): Initialize metric cache to empty.
16991 (registry_to_w32_charset): Charset should always be a symbol.
16992 (fill_in_logfont, list_all_matching_fonts): Family should
16993 always be a symbol.
16994
169952008-04-06 Jason Rumney <jasonr@gnu.org>
16996
16997 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16998 Give up if glyph indices not supported. Use uniscribe obtained
16999 ABC widths for individual metrics. Map glyph clusters back to
17000 characters using fClusterStart flag. Return number of glyphs
17001 produced, not chars processed.
17002 (uniscribe_shape): Map char at FROM to current glyph.
17003
170042008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17005
17006 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17007 Use SetMenuItemHierarchicalMenu.
17008
170092008-04-05 Jason Rumney <jasonr@gnu.org>
17010
17011 * image.c (pbm_load): Allow color values up to 65535.
17012 Throw an error if max_color_idx is outside the supported range.
17013 Report an error when image size is invalid.
17014 Read two bytes at a time when raw images have max_color_idx above 255.
17015
aac0c6e3
MR
170162008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17017
17018 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17019 append "CCL: Quitted" when the CCL program is quitted.
17020 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17021
17022 * ccl.h (struct ccl_program): New member quit_silently.
17023
170242008-04-05 Chong Yidong <cyd@stupidchicken.com>
17025
17026 * search.c (compile_pattern_1): Treat non-nil and non-string of
17027 search-spaces-regexp as nil.
17028
17029 * minibuf.c (Fassoc_string): Tweak docstring.
17030
170312008-04-05 Eli Zaretskii <eliz@gnu.org>
17032
17033 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17034 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17035 2008-03-14 to force inode be positive.
17036
17037 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17038 _S_* ones, since we now use our own sys/stat.h.
17039 (stat, fstat): Don't mangle the inode number.
17040 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17041
170422008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17043
17044 * frame.h (struct frame): Give one more bit to `visible' since we use
17045 values larger than 1 to indicate obscured frames on ttys.
17046
17047 * keymap.c (Qkeymap_canonicalize): New var.
17048 (Fmap_keymap_internal): New fun.
17049 (describe_map): Use keymap-canonicalize.
17050
17051 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17052 (Fundo_boundary): Set them.
17053 (syms_of_undo): Initialize them.
17054 (record_point): Use them instead of last_point_position*.
17055 (last_undo_buffer): Change type.
17056
170572008-04-04 Jason Rumney <jasonr@gnu.org>
17058
17059 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17060 (recompute_cached_metrics): Don't set ascent and descent per char.
17061
17062 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17063 (uniscribe_check_otf): Add GC protection before consing.
17064 Rearrange loop for counting features.
17065
170662008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17067
17068 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17069 buffer with byte-size of source buffer.
17070
170712008-04-03 Chong Yidong <cyd@stupidchicken.com>
17072
17073 * callint.c (Fcall_interactively): Handle temporary region even
17074 when shift-select-mode is off.
17075
170762008-04-03 Jason Rumney <jasonr@gnu.org>
17077
17078 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17079
170802008-04-03 Kenichi Handa <handa@m17n.org>
17081
17082 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17083 (CATEGORY_MASK_UTF_16): Likewise.
17084 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17085 binary file.
17086 (detect_coding): Add null-byte detection for a binary file.
17087 (detect_coding_system): Likewise.
17088
170892008-04-03 Jason Rumney <jasonr@gnu.org>
17090
17091 * w32uniscribe.c: New file.
17092
17093 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17094
17095 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17096
17097 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17098 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17099 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17100 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17101 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17102 (Qphonetic): New symbols.
17103 (syms_of_w32font): Initialize them.
17104 (font_supported_scripts): Use them.
17105 (w32font_list_family): List all charsets.
17106 (w32font_text_extents, recompute_cached_metrics): Fix metric
17107 calculations.
17108 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17109 Give opentype fonts their own format.
17110 (font_matches_spec): New arguments backend and logfont.
17111 Handle :otf spec for uniscribe backend.
17112 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17113 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17114
17115 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17116 font backend.
17117 (globals_of_w32fns): Initialize uniscribe font backend.
17118
17119 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17120 dependencies.
17121 (w32uniscribe.$(O)): New file to build.
17122 (FONT_OBJ): Include w32uniscribe.$(O).
17123 (LIBS): Add uniscribe libraries.
17124
17125 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17126
171272008-04-02 Chong Yidong <cyd@stupidchicken.com>
17128
17129 * callint.c (Vshift_select_mode): New var.
17130 (Finteractive): Document new ^ spec.
17131 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17132 is present.
17133
17134 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17135 (command_loop_1): Avoid running the direct display versions of
17136 forward-char and backward-char if shift-selection may occur.
17137 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17138 shift-translation takes place.
17139
17140 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17141 avoid clobbering by define-minor-mode.
17142
17143 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17144 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17145
17146 * syntax.c (Fforward_word): Add ^ interactive spec.
17147
17148 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17149 (Fscroll_right): Add ^ interactive spec.
17150
171512008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17152
17153 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17154
17155 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17156
17157 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17158
171592008-03-31 Juri Linkov <juri@jurta.org>
17160
17161 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17162
171632008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17164
17165 * gtkutil.c (xg_set_geometry): Fix indentation.
17166 (xg_resize_outer_widget): Remove.
17167 (x_wm_size_hint_off): Fix indentation.
17168 (xg_frame_set_char_size): Call flush_and_sync after
17169 gtk_window_resize.
17170 (x_wm_set_size_hint): Pass NULL as geometry window to
17171 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17172 Add menu bar and tool bar height to base height.
17173 (xg_update_frame_menubar, free_frame_menubar)
17174 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17175 (update_frame_tool_bar, free_frame_tool_bar):
17176 Change xg_resize_outer_widget to xg_frame_set_char_size.
17177
171782008-03-30 Michael Albinus <michael.albinus@gmx.de>
17179
17180 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17181 (Fdbus_call_method): New parameter TIMEOUT.
17182 (dbus-send-signal): Optimize UNGCPRO call.
17183
171842008-03-29 Juri Linkov <juri@jurta.org>
17185
17186 * window.c (Fdisplay_buffer): Move call to
17187 Vsplit_window_preferred_function out of conditions that check
17188 if window is eligible for vertical splitting.
17189 When Vsplit_window_preferred_function is non-nil, call it and use
17190 its non-nil return value as window. Otherwise, continue doing
17191 vertical splitting using Fsplit_window with arg horflag=nil.
17192 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17193 default value from `split-window' to nil.
17194
171952008-03-29 Juri Linkov <juri@jurta.org>
17196
17197 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17198 for interactive code letters 'b' and 'B'.
17199
172002008-03-29 Eli Zaretskii <eliz@gnu.org>
17201
17202 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17203 multibyte string.
17204
172052008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17206
17207 * keyboard.c (pending_funcalls): New var.
17208 (timer_check): Run it.
17209 (syms_of_keyboard): Initialize it.
17210 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17211 (Vdelete_terminal_functions): New vars.
17212 (syms_of_terminal): Initialize them.
17213 (Fdelete_terminal): Run delete-terminal-functions.
17214 * xdisp.c (safe_eval): Rewrite.
17215 (safe_call2): New fun.
17216 * frame.c (Qdelete_frame_functions): New var.
17217 (syms_of_frame): Initialize it.
17218 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17219 * lisp.h (safe_call2, pending_funcalls): Declare.
17220
172212008-03-28 Andreas Schwab <schwab@suse.de>
17222
17223 * indent.c (Fmove_to_column): Move declaration before statements.
17224
172252008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17226
17227 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17228 (struct frame): Use bit fields for boolean vars.
17229
17230 * process.c (server_accept_connection): Simplify naming.
17231 (emacs_get_tty_pgrp): Use SDATA.
17232
17233 * coding.c (decode_coding_object): Fix last change.
17234
172352008-03-27 Jason Rumney <jasonr@gnu.org>
17236
17237 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17238
172392008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17240
17241 * charset.c (Fdefine_charset_internal): Change the way of
17242 registering charsets in Vcharset_order_list.
17243 (syms_of_charset): Make the charset `eight-bit' supplementary.
17244
172452008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17246
17247 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17248 operations, to avoid having the difference between pointers
17249 overflow.
17250
172512008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17252
17253 * indent.c (check_display_width): New fun.
17254 (scan_for_column): Use it.
17255
17256 * data.c (syms_of_data): Mark most-positive-fixnum and
17257 most-negative-fixnum as constants.
17258
17259 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17260
17261 * indent.c (scan_for_column): Extract from current_column_1.
17262 Merge with the same code from Fmove_to_column.
17263 (current_column_1, Fmove_to_column): Use it.
17264
172652008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17266
17267 * keymap.c (map_keymap_internal): New fun.
17268 (map_keymap): Use it.
17269 (Fmap_keymap_internal): New fun.
17270 (Fmap_keymap): Remove left-out test from before make_save_value.
17271
17272 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17273
17274 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17275 Use XCAR/XCDR.
17276
17277 * process.h (struct Lisp_Process): Remove filter_multibyte.
17278 * process.c (QCfilter_multibyte): Remove.
17279 (setup_process_coding_systems): Don't use filter_multibyte.
17280 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17281 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17282 (Fset_process_filter_multibyte): Change the coding-system to
17283 approximate the previous behavior.
17284 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17285 coding-system.
17286
17287 * coding.c (decode_coding_object): When not decoding into a buffer,
17288 obey the coding system's preference of (uni|multi)byte.
17289
172902008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17291
17292 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17293 every char is changed and has a different byte-length.
17294 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17295 Fix int -> EMACS_INT.
17296
172972008-03-23 David Hansen <david.hansen@gmx.net>
17298
17299 * dbusbind.c (xd_read_message): Remove extra copying of message
17300 strings. Check for NULL `interface' or `member'.
17301
173022008-03-22 Eli Zaretskii <eliz@gnu.org>
17303
17304 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17305 cFileName a file name that includes `?' characters, use the 8+3
17306 alias in cAlternateFileName instead.
17307
173082008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17309
17310 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17311
173122008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17313
17314 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17315 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17316 work on current_buffer only instead (that was already the case
17317 for some of the code anyway).
17318 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17319 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17320 (SET_PT, SET_PT_BOTH): Adjust.
17321 * intervals.h (set_point, temp_set_point, set_point_both)
17322 (temp_set_point_both): Remove redundant declarations.
17323
173242008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17325
17326 * fileio.c (Finsert_file_contents):
17327 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17328 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17329 when buffer != current_buffer anyway.
17330
173312008-03-20 Andreas Schwab <schwab@suse.de>
17332
17333 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17334 as default.
17335
173362008-03-19 Jason Rumney <jasonr@gnu.org>
17337
17338 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17339 (syms_of_w32fns): Initialize them.
17340 (HOURGLASS_ID): New constant.
17341 (x_window_to_frame): Don't check hourglass_window.
17342 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17343 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17344 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17345 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17346 Only change the cursor if hourglass is not active.
17347 (Fx_create_frame): Initialize frame's current_cursor.
17348 (hourglass_atimer): Remove.
17349 (hourglass_started): New function.
17350 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17351 (show_hourglass): Adapt to w32, changing argument to frame.
17352
17353 * w32term.h (struct w32_output): Remove hourglass_window.
17354 Add current_cursor.
17355
17356 * eval.c (call_debugger, Fsignal):
17357 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17358 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17359 (Fexecute_extended_command, cancel_hourglass_unwind):
17360 * minibuf.c (read_minibuf):
17361 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17362
173632008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17364
17365 * window.c (run_funs): New fun.
17366 (run_window_configuration_change_hook): Use it to run the buffer-local
17367 and the global part of the hook.
17368
17369 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17370 (unwind_format_mode_line): Restore selected window.
17371 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17372
173732008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17374
17375 * editfns.c (Fchar_equal): Check they are valid characters.
17376
17377 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17378
173792008-03-17 Andreas Schwab <schwab@suse.de>
17380
17381 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17382 against a charset.
17383
17384 * lisp.h (Fbuffer_list): Declare.
17385
173862008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 17387
aac0c6e3
MR
17388 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17389 handlebox_widget is != 0.
17390
173912008-03-16 Juri Linkov <juri@jurta.org>
17392
17393 * callint.c (Fcall_interactively): For interactive code letters
17394 'b' and 'B' put the buffer list into the list of default "future"
17395 values of the minibuffer.
17396
173972008-03-16 Andreas Schwab <schwab@suse.de>
17398
17399 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17400 modifiers.
17401
17402 * regex.c (re_match_2_internal): Correct matching of a charset
17403 against latin-1 characters.
17404
174052008-03-16 Kenichi Handa <handa@m17n.org>
17406
17407 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17408 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17409 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17410 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17411 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17412 CHAR_STRING_ADVANCE.
17413 (produce_chars): Fix for the case that the source and the
17414 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17415 instead of CHAR_STRING_ADVANCE.
17416 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17417 STRING_CHAR_ADVANCE.
17418
174192008-03-15 Andreas Schwab <schwab@suse.de>
17420
17421 * regex.c (re_match_2_internal): Correct matching of eight bit
17422 characters in unibyte strings.
17423
174242008-03-15 Martin Rudalics <rudalics@gmx.at>
17425
17426 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17427 at end of range when it coincides with the end of the buffer.
17428
174292008-03-14 Eli Zaretskii <eliz@gnu.org>
17430
17431 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17432
17433 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17434
174352008-03-14 Jason Rumney <jasonr@gnu.org>
17436
17437 * editfns.c (initial_tz): New variable.
17438 (syms_of_editfns): Initialize it.
17439 (Fset_time_zone_rule): Set it when first called.
17440 Use it when TZSTRING is nil.
17441
17442 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17443 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17444 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17445 (globals_of_w32fns): Initialize them.
17446 (compute_tip_xy): Use them to position tooltips.
17447
174482008-03-14 Glenn Morris <rgm@gnu.org>
17449
17450 * emacs.c (main): Revert previous change.
17451 (standard_args): Revert -internal-script back to -scriptload,
17452 and remove the long-option form.
17453
174542008-03-13 Glenn Morris <rgm@gnu.org>
17455
17456 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17457 Remove option -enable-font-backend.
17458
174592008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17460
17461 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17462
174632008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17464
17465 * xterm.c (x_connection_closed): For GTK: If this is the last
17466 terminal just exit without closing the display.
17467
174682008-03-11 Jason Rumney <jasonr@gnu.org>
17469
17470 * w32font.c (w32font_full_name): Use floor to round.
17471
f0131492 174722008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
17473
17474 * sound.c (alsa_configure): Declare vol at beginning of block.
17475
17476 * fontset.c (Ffontset_info): Remove extra semicolon.
17477
174782008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17479
17480 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17481 size of resulting string.
17482
174832008-03-10 Jason Rumney <jasonr@gnu.org>
17484
17485 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17486
174872008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17488
17489 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17490 Don't pretend as if characters with display property haven't been
17491 consumed for string-replacing-string case.
17492
174932008-03-08 Kim F. Storm <storm@cua.dk>
17494
17495 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17496 (get_next_display_element, next_element_from_string)
17497 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17498
174992008-03-08 Andreas Schwab <schwab@suse.de>
17500
17501 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17502
175032008-03-06 Jason Rumney <jasonr@gnu.org>
17504
17505 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17506 when charset not specified. Only translate ANSI to unicode when
17507 font_type is truetype.
17508 (w32font_coverage_ok): New function.
17509 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17510
175112008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17512
17513 * lread.c (Fread_char): Resolve modifiers.
17514 (Fread_char_exclusive): Likewise.
17515
17516 * character.c (char_resolve_modifier_mask): New function.
17517 (char_string): Use char_resolve_modifier_mask.
17518 (Fchar_resolve_modifiers): New function.
17519 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17520 function.
17521
175222008-03-04 Jason Rumney <jasonr@gnu.org>
17523
17524 * makefile.w32-in: Always include w32font.c in the build.
17525 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17526
175272008-03-04 Andreas Schwab <schwab@suse.de>
17528
17529 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17530 (versionclean): Likewise.
17531
175322008-03-04 Juanma Barranquero <lekktu@gmail.com>
17533
17534 * .cvsignore: Add oo.
17535
175362008-03-03 Andreas Schwab <schwab@suse.de>
17537
17538 * coding.c (decode_coding_object): Inhibit gap shrinking while
17539 decoding in place.
17540
175412008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17542
17543 * w32term.c: Remove unused include "gnu.h".
17544 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17545
17546 * gnu.h: Rename to ...
17547 * emacs-icon.h: ... this.
17548 * xterm.c: Use emacs-icon.h instead of gnu.h.
17549 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17550
175512008-03-03 Juanma Barranquero <lekktu@gmail.com>
17552
17553 * w32font.c: Include math.h.
17554
175552008-03-03 Jason Rumney <jasonr@gnu.org>
17556
17557 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17558 Compute options separately.
17559 (w32font_open_internal): Set glyph_idx before caching metrics.
17560
17561 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17562 Define if system headers don't.
17563 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17564 (w32font_encode_char): Don't declare here.
17565
17566 * w32font.c (Quniscribe, QCformat): New symbols.
17567 (syms_of_w32font): Define them.
17568 (w32font_has_char): Indicate uncertainty.
17569 (w32font_encode_char): Encode as glyph point. Make static.
17570 (recompute_cached_metrics): New function.
17571 (w32font_open_internal): Use it. Set font to use glyph points
17572 initially. Set format based on type of font.
17573 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17574 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17575 on it. Set format based on information available here.
17576 (add_font_entity_to_list): Identify backend based on opentype_only.
17577
175782008-03-02 Andreas Schwab <schwab@suse.de>
17579
17580 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17581
17582 * coding.c (decode_coding_big5, produce_chars):
17583 Fix typos in last change.
17584
175852008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17586
17587 * gnu.h: New icon.
17588
175892008-03-02 Kenichi Handa <handa@m17n.org>
17590
17591 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17592 `dos', don't decode '\r' if that is the last in the source.
17593 (decode_coding_utf_16, decode_coding_emacs_mule)
17594 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17595 (decode_coding_raw_text, decode_coding_charset): Likewise.
17596 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17597
175982008-03-01 Jason Rumney <jasonr@gnu.org>
17599
17600 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17601
176022008-03-01 Kim F. Storm <storm@cua.dk>
17603
17604 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17605
176062008-03-01 Jason Rumney <jasonr@gnu.org>
17607
17608 * w32font.c (w32font_full_name): New function.
17609 (w32font_open_internal): Use it.
17610
176112008-03-01 Kim F. Storm <storm@cua.dk>
17612
17613 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17614
176152008-03-01 Jason Rumney <jasonr@gnu.org>
17616
17617 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17618
176192008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17620
17621 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17622 xg_frame_resized when the event is for the edit widget.
17623
17624 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17625
17626 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17627 set_char_size.
17628 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17629 operations on widgets here. Just set frame size if needed.
17630 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17631 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17632 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17633 the whole frame.
17634 (xg_create_tool_bar): Move attachment of the tool bar to
17635 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17636 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17637
176382008-03-01 Jason Rumney <jasonr@gnu.org>
17639
17640 * w32fns.c (w32_msg_pump): Disable debug code.
17641
176422008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17643
17644 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17645
176462008-02-29 Chong Yidong <cyd@stupidchicken.com>
17647
17648 * xdisp.c (next_overlay_string): Don't set
17649 overlay_strings_at_end_processed_p if we're currently reading from
17650 a display string.
17651
176522008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17653
17654 * xdisp.c (get_overlay_strings_1): Fix typo.
17655
176562008-02-29 Chong Yidong <cyd@stupidchicken.com>
17657
17658 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17659
176602008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17661
17662 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17663
17664 * xdisp.c (display_mode_element): Cancel the previous change.
17665 (decode_mode_spec): Likewise.
17666 (handle_auto_composed_prop): Don't make composition if it->string
17667 is a string.
17668
176692008-02-27 Kim F. Storm <storm@cua.dk>
17670
17671 * lisp.h (GLYPH): Change type from int to struct with separate char
17672 and face_id members.
17673 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17674 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17675 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17676 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17677 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17678 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17679 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17680 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17681 handle new Lisp glyph code encoding, either an integer or a cons.
17682
17683 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17684 (GLYPH_ALIAS): Delete.
17685 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17686 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17687 (GLYPH_FROM_CHAR): Replace macro by ...
17688 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17689
17690 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17691 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17692 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17693 (GLYPH_INVALID_P): New macro.
17694 (spec_glyph_lookup_face): Update prototype.
17695
17696 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17697 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17698 new glyph code encoding.
17699 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17700 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17701
17702 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17703 Adapt to new glyph type and new glyph code encoding.
17704
17705 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17706
17707 * indent.c (current_column, current_column_1, Fmove_to_column)
17708 (compute_motion): Adapt to new glyph code encoding.
17709
17710 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17711
177122008-02-27 Chong Yidong <cyd@stupidchicken.com>
17713
17714 * process.c (wait_reading_process_output): Check for window
17715 changes caused by timers.
17716 Suggested by Johan Bockgård.
17717
177182008-02-27 Glenn Morris <rgm@gnu.org>
17719
17720 * emacs.c (USAGE1): Add `--disable-font-backend'.
17721
177222008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17723
17724 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17725 is made to the buffer.
17726
177272008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17728
17729 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17730 (face_at_string_position):
17731 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17732 (face_at_string_position):
17733 * xdisp.c (display_string, next_overlay_change):
17734 * buffer.h (overlays_at):
17735 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17736 Update callers.
17737
177382008-02-26 Chong Yidong <cyd@stupidchicken.com>
17739
17740 * editfns.c (Fformat): Doc fix.
17741
177422008-02-26 Juanma Barranquero <lekktu@gmail.com>
17743
17744 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17745 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17746 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17747
177482008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17749
17750 * buffer.c (Fbuffer_swap_text): New function.
17751 (syms_of_buffer): Defsubr it.
17752
177532008-02-25 Chong Yidong <cyd@stupidchicken.com>
17754
17755 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17756
177572008-02-25 Jason Rumney <jasonr@gnu.org>
17758
17759 * w32font.c (w32font_draw): Draw one character at a time when padding.
17760
177612008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17762
17763 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17764 Handle a nil arg. Use run_window_configuration_change_hook.
17765 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17766 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17767 Use run_window_configuration_change_hook.
17768
177692008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17770
17771 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17772 1-pixel width.
17773
177742008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17775
17776 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17777 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17778 if the glyph in the font is zero pixel with.
17779
17780 * dispextern.h (struct glyph_string): New member padding_p.
17781
17782 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17783
17784 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17785
17786 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17787
17788 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17789
17790 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17791
177922008-02-25 Jason Rumney <jasonr@gnu.org>
17793
17794 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17795
177962008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17797
17798 Allow fine-grained image-cache flushing.
17799 * dispextern.h (struct image): Add `dependencies' field.
17800 (clear_image_caches): Change arg to Lisp_Object.
17801 * image.c (make_image): Initialize `dependencies' field.
17802 (clear_image_cache): Change arg to allow fine-grained flushing.
17803 Perform the flush even if image-cache-eviction-delay is nil.
17804 (clear_image_caches): Change arg to Lisp_Object.
17805 (Fclear_image_cache): Expand meaning of the argument.
17806 (mark_image): Mark `dependencies' field.
17807 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17808 (lface_hash): Use XHASH rather than XFASTINT.
17809 (face_at_buffer_position): Fix int -> EMACS_INT position.
17810 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17811 (select_frame_for_redisplay): Remove code duplication.
17812 (redisplay_internal): Adapt arg to call to clear_image_caches.
17813
178142008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17815
17816 * s/vms4-0.h:
17817 * s/vms4-2.h:
17818 * s/vms4-4.h:
17819 * s/vms5-5.h: Remove, unused.
17820
17821 * s/irix5-2.h:
17822 * s/irix6-0.h:
17823 * s/riscos5.h:
17824 * s/mach-bsd4-3.h:
17825 * m/mips4.h: Remove files for obsolete systems.
17826
17827 * Makefile.in:
17828 * filelock.c:
17829 * unexmips.c:
17830 * m/hp9000s300.h:
17831 * m/iris4d.h:
17832 * s/aix3-1.h:
17833 * s/hpux.h:
17834 * s/msdos.h:
17835 * s/usg5-0.h:
17836 * s/usg5-2-2.h:
17837 * s/usg5-2.h:
17838 * s/usg5-3.h: Remove references to obsolete variables.
17839
17840 * s/irix5-0.h: Remove, move all the contents ...
17841 * s/irix6-5.h: ... here. Simplify.
17842 * config.in: Regenerate.
17843
178442008-02-24 Jason Rumney <jasonr@gnu.org>
17845
17846 * w32term.c (x_draw_glyph_string_background): Clear the background
17847 manually when cleartype is in use.
17848 (x_draw_glyph_string_foreground): Draw text transparently when
17849 cleartype is in use.
17850
17851 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17852 a font into it unless we have to.
17853
178542008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17855
17856 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17857 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 17858
aac0c6e3
MR
178592008-02-18 Jason Rumney <jasonr@gnu.org>
17860
17861 * w32fns.c (Fw32_shell_execute): Encode parameters.
17862
178632008-02-09 Eli Zaretskii <eliz@gnu.org>
17864
17865 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17866
178672008-02-05 Juanma Barranquero <lekktu@gmail.com>
17868
17869 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17870
178712008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17872
17873 * xterm.c (x_set_offset): Don't change the gravity if
17874 CHANGE_GRAVITY is -1.
17875
178762008-02-23 Chong Yidong <cyd@stupidchicken.com>
17877
17878 * fileio.c (auto_save_error_occurred): New var.
17879 (auto_save_error): Set it.
17880 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17881 error occurred.
17882
178832008-02-23 Eli Zaretskii <eliz@gnu.org>
17884
17885 * w32.c (globals_of_w32): Add initializations for
17886 g_b_init_get_sid_sub_authority and
17887 g_b_init_get_sid_sub_authority_count.
17888
178892008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17890
17891 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17892 (font_parse_xlfd): Use them for sanity check.
17893 (Finternal_set_font_style_table): Make sure the table is bijective.
17894
17895 Consolidate the image_cache to the terminal struct.
17896 * termhooks.h (P_): Remove redundant def.
17897 (struct terminal): New field `image_cache'.
17898 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17899 of FRAME_X_IMAGE_CACHE.
17900 * xterm.h (struct x_display_info): Remove image_cache field.
17901 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17902 * w32term.h (struct w32_display_info): Remove image_cache field.
17903 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17904 * macterm.h (struct mac_display_info): Remove image_cache field.
17905 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17906 * xterm.c (x_term_init):
17907 * w32term.c (w32_term_init):
17908 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17909 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17910 Remove declarations.
17911 (clear_image_caches, mark_image_cache): New declarations.
17912 * xfaces.c (clear_face_cache):
17913 * xdisp.c (redisplay_internal): Use clear_image_caches.
17914 * image.c (clear_image_cache): Don't check that a frame is on
17915 a window-system before checking if it shares the same cache.
17916 (clear_image_caches): New function.
17917 (Fclear_image_cache): Use it.
17918 (mark_image): Move from allo.c.
17919 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17920 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17921 (mark_object): Don't call mark_image_cache for frames.
17922 (mark_terminals): Call mark_image_cache.
17923
17924 * lisp.h (Fdelete_terminal): Declare.
17925
17926 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17927 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17928 wrong_type_argument.
17929
179302008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17931
17932 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17933 malayalam.el, and tamil.el. Add sinhala.el.
17934
179352008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17936
17937 * xterm.c (x_connection_closed): Consolidate identical tests.
17938 (x_delete_terminal): Don't crash if called via x_connection_closed.
17939
179402008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17941
17942 * xdisp.c (decode_mode_spec): New arg string.
17943 (display_mode_element): Adjust for the above change.
17944
179452008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17946
17947 * callint.c (Fcall_interactively): Use AREF.
17948
179492008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17950
17951 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17952
179532008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17954
17955 * xfns.c (Fx_show_tip): Set string to " " if empty.
17956
179572008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17958
17959 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17960 with Qt.
17961
179622008-02-17 Kenichi Handa <handa@m17n.org>
17963
17964 * ftfont.c (ftfont_shape): Return Lispy number.
17965
17966 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17967 for GCs.
17968 (Finternal_set_font_selection_order): Call font_update_sort_order
17969 only when enable_font_backend is set.
17970 (realize_x_face): Set face->font_info to that of default face only
17971 when enable_font_backend is set.
17972
17973 * xdisp.c (handle_composition_prop): Set it->c to the fist
17974 character of the composed region.
17975 (fill_composite_glyph_string): Set base_face->font_info to
17976 s->font_info. Get a face for ascii from base_face->ascii_face.
17977 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17978 with a face already decided.
17979 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17980 non-negative.
17981 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17982 call font_prepare_composition unconditionally.
17983
17984 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17985
17986 * xterm.h (struct x_display_info): New member font.
17987
17988 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17989 (x_set_mouse_face_gc, x_new_font): Likewise.
17990 (x_term_init): Setup display_info->font.
17991 (x_delete_terminal): Free display_info->font.
17992
17993 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17994
17995 * ftxfont.c (ftxfont_default_fid): Delete it.
17996 (ftxfont_open): Set xfont->fid to 0.
17997 (ftxfont_end_for_frame): Clear data specific to the frame and the
17998 font-driver.
17999
18000 * xftfont.c (xftfont_default_fid): Delete it.
18001 (xftfont_open): Set xfont->fid to 0.
18002
18003 * fontset.c (FONTSET_OBJLIST): New macro.
18004 (fontset_find_font): Update font-object list of the fontset.
18005 (free_realized_fontset): New function.
18006 (free_face_fontset): Call free_realized_fontset.
18007 (Ffont_info): Call font_close_object only when enable_font_backend
18008 is set.
18009
18010 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18011 [HAVE_NTGUI]: Include w32term.h.
18012 [MAC_OS]: Include macterm.ch.
18013 (font_otf_ValueRecord): Use make_number.
18014 (font_finish_cache): Fix handling of reference count.
18015 (font_clear_cache): Update num_fonts.
18016 (font_open_entity): Update smallest_char_width and
18017 smallest_font_height of the frame.
18018 (font_close_object): Update num_fonts.
18019 (Fclear_font_cache): Fix finding the target cache data.
18020
180212008-02-16 Glenn Morris <rgm@gnu.org>
18022
18023 * fontset.c (Finternal_char_font): Fix compilation warning.
18024
180252008-02-16 Eli Zaretskii <eliz@gnu.org>
18026
18027 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18028 instead of char arrays. Enlarge the size of array passed to
18029 get_token_information.
18030
18031 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18032 warnings.
18033
180342008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18035
18036 * .gdbinit: Don't set `args', it breaks gdb --args.
18037
180382008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18039
18040 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18041 within a narrowed buffer.
18042
180432008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18044
18045 * coding.c (decode_coding_object, encode_coding_object):
18046 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18047
180482008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18049
18050 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18051 hardcoding 1.
18052 (detect_coding_system):
18053 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18054 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18055 * insdel.c (insert_from_gap):
18056 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18057 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18058 (string_to_multibyte):
18059 * character.c (chars_in_text, multibyte_chars_in_text):
18060 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18061
18062 * character.h (FETCH_STRING_CHAR_ADVANCE)
18063 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18064 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18065 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18066
18067 * casefiddle.c (casify_region): Only call after-change and composition
18068 functions on the part of the region that was changed.
18069
18070 * keyboard.c (read_avail_input):
18071 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18072
180732008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18074
18075 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18076 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18077
180782008-02-11 Juanma Barranquero <lekktu@gmail.com>
18079
18080 * w32menu.c (push_submenu_start, push_submenu_end)
18081 (push_left_right_boundary, push_menu_pane, push_menu_item):
18082 * keyboard.c (read_key_sequence): Don't pass args with side effects
18083 to AREF, it fails when compiling with -DENABLE_CHECKING.
18084
180852008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18086
18087 * Makefile.in (${lispsource}international/charprop.el):
18088 Delete this target.
18089
18090 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18091 emacs-unicode-2.
18092
180932008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18094
18095 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18096
180972008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18098
18099 * frame.c (Qnoelisp): New symbol.
18100 (syms_of_frame): Initialize it.
18101 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18102 harmless Elisp code, from a strong `force' from x_connection_closed.
18103 * frame.h (Qnoelisp): Declare.
18104 * xterm.c (x_connection_closed): Pass `noelisp'.
18105
18106 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18107 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18108 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18109 rather than `int' for the type of `type'.
18110
181112008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18112
18113 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18114
18115 * Makefile.in (GNUC): Remove support for gcc-1.x.
18116
181172008-02-10 Richard Stallman <rms@gnu.org>
18118
18119 * lisp.h (ASET): Use AREF, not ASLOT.
18120
181212008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18122
18123 * lisp.h (ASET): Check bounds.
18124
181252008-02-10 Glenn Morris <rgm@gnu.org>
18126
18127 * buffer.c (mode-name): Doc fix.
18128
181292008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18130
18131 * Makefile.in:
18132 * emacs.c:
18133 * gmalloc.c:
18134 * keyboard.c:
18135 * lisp.h:
18136 * m/ibm370aix.h:
18137 * process.c:
18138 * regex.c:
18139 * s/hpux.h:
18140 * sysdep.c:
18141 * sysselect.h:
18142 * systty.h:
18143 * unexec.c:
18144 * w32term.c:
18145 * xsmfns.c:
18146 * xterm.c: Remove code that deals with obsolete variables.
18147
18148 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18149
18150 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18151 nothing else needs it anymore.
18152
181532008-02-09 Eli Zaretskii <eliz@gnu.org>
18154
18155 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18156 instead of unibyte_char_to_multibyte.
18157
181582008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18159
18160 * s/gnu-linux.h: Remove commented out code.
18161
18162 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18163
18164 * Makefile.in: Update what RMS says about using autoconf.
18165 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18166 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18167 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18168 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18169
181702008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18171
18172 * keymap.c (Fkey_description): Move side effect outside of macro call.
18173
18174 * xfaces.c (Finternal_make_lisp_face):
18175 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18176
18177 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18178 (syms_of_fontset): Use ASET.
18179
18180 * fns.c (concat): Move side effect outside of macro call.
18181 (hash_clear): Use ASET.
18182
181832008-02-08 Richard Stallman <rms@gnu.org>
18184
18185 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18186 If FORCE, and frame has a surrogate minibuffer for another frame,
18187 delete the other frame first.
18188
181892008-02-07 Timo Savola <timo.savola@iki.fi>
18190
18191 * xterm.c (x_detect_focus_change): Handle embed client message.
18192 (handle_one_xevent): Ditto.
18193 (handle_one_xevent): If embedded and we get a button press/release,
18194 request focus.
18195 (xembed_set_info, xembed_send_message): New functions.
18196 (x_make_frame_visible): Call xembed_set_info if embedded.
18197 (x_make_frame_invisible): Call xembed_set_info if embedded.
18198 (x_term_init): Initialize Xatom_XEMBED.
18199 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18200 (x_iconify_frame): Ditto.
18201
18202 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18203 (enum xembed_info, enum xembed_message, enum xembed_focus)
18204 (enum xembed_modifier, enum xembed_accelerator): New.
18205 (xembed_set_info, xembed_send_message): Declare.
18206 (FRAME_X_EMBEDDED_P): New.
18207
18208 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18209 gtk_plug_new.
18210
18211 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18212 window ID of a frame.
18213 (x_window): Reparent frame if embedded.
18214 (Fx_create_frame): Don't set border width if embedded.
18215
18216 * emacs.c (USAGE3): Add --parent-id.
18217 (standard_args): Ditto.
18218
182192008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18220
18221 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18222
182232008-02-07 Jim Meyering <meyering@redhat.com>
18224
18225 Use "do...while (0)", not "if (1)...else" in macro definitions.
18226 The latter provokes a warning from gcc about the empty else, when
18227 followed by ";". Also, without that trailing semicolon, it would
18228 silently swallow up any following statement.
18229 * syntax.h (SETUP_SYNTAX_TABLE)
18230 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18231 * buffer.h (DECODE_POSITION): Likewise.
18232 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18233 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18234 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18235 (FETCH_CHAR_ADVANCE): Likewise.
18236 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18237
182382008-02-07 Jim Meyering <meyering@redhat.com>
18239
18240 * lread.c [lint]: Don't include <sys/inode.h>.
18241
182422008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18243
18244 * xselect.c (x_handle_dnd_message):
18245 * xmenu.c (digest_single_submenu, xmenu_show):
18246 * xdisp.c (with_echo_area_buffer_unwind_data)
18247 (format_mode_line_unwind_data, unwind_format_mode_line)
18248 (display_menu_bar):
18249 * eval.c (Ffetch_bytecode):
18250 * doc.c (store_function_docstring):
18251 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18252 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18253 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18254
182552008-02-07 Kenichi Handa <handa@m17n.org>
18256
18257 * ftxfont.c (ftxfont_open): Don't set
18258 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18259
18260 * ftfont.c (ftfont_open): Fix previous change.
18261
182622008-02-06 Jason Rumney <jasonr@gnu.org>
18263
18264 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18265 Use cached metrics for ASCII characters.
18266 (w32font_open_internal): Don't set font's owning_frame.
18267 Cache metrics for ASCII characters.
18268
18269 * w32font.h (struct w32font_info): Add ascii_metrics.
18270 Remove owning_frame.
18271
182722008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18273
18274 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18275 to negative value.
18276
18277 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18278
18279 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18280
18281 * charset.c (syms_of_charset): Set QCtest and Qeq.
18282
182832008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18284
18285 * process.c (Fstart_process):
18286 * callproc.c (Fcall_process): Handle the case where
18287 Funhandled_file_name_directory returns nil.
18288
18289 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18290 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18291 * font.c (check_gstring): Use them and AREF to access the vector before
18292 we know it's really a gstring.
18293 (Ffont_shape_text): Fix typo.
46e722a9 18294 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
18295
18296 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18297 Declare.
18298
18299 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18300
183012008-02-05 Jason Rumney <jasonr@gnu.org>
18302
18303 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18304 Set smallest_font_height and smallest_char_width in display info.
18305
183062008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18307
18308 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18309
183102008-02-05 Miles Bader <miles@gnu.org>
18311
18312 * xfaces.c (get_lface_attributes, merge_named_face)
18313 (lookup_named_face, lookup_derived_face, realize_named_face):
18314 Revert 2008-02-01 change by cyd@stupidchicken.com.
18315
183162008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18317
18318 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18319 fallback fonts.
18320 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18321
183222008-02-04 Jason Rumney <jasonr@gnu.org>
18323
18324 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18325 set full_name.
18326 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18327
183282008-02-03 Jason Rumney <jasonr@gnu.org>
18329
18330 * makefile.w32-in (OBJ1): Include font.o here.
18331 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18332
183332008-02-02 Jason Rumney <jasonr@gnu.org>
18334
18335 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18336
183372008-02-01 Jason Rumney <jasonr@gnu.org>
18338
18339 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18340
18341 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18342
183432008-02-01 Andreas Schwab <schwab@suse.de>
18344
18345 * Makefile.in (shortlisp, lisp): Update for rename of
18346 ../lisp/language/myanmar.el.
18347
183482008-02-01 Chong Yidong <cyd@stupidchicken.com>
18349
18350 * xfaces.c (get_lface_attributes): Delete function.
18351 (merge_named_face, lookup_named_face, lookup_derived_face)
18352 (realize_named_face): Call lface_from_face_name directly, and use
18353 the fact that merge_face_vectors does not alter its FROM argument.
18354
183552008-02-01 Jason Rumney <jasonr@gnu.org>
18356
18357 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18358 input in the default locale. Handle non-Unicode multibyte input.
18359
183602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18361
18362 * fontset.c (reorder_font_vector): Exclude nil elements from the
18363 font group. Don't try multiple fonts.
18364 (fontset_font): Adjust for the above change.
18365 (Finternal_char_font): Return nil if the found font doesn't
18366 contain the character ch.
18367
18368 * Makefile.in (lisp, shortlisp): Add cham.el.
18369
183702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18371
18372 * font.h (FONTP): Make it return 1 also for a font-object.
18373
18374 * .gdbinit (xfontset): New function.
18375
18376 * font.c (font_find_for_lface): Check if the character C is
18377 supported or not only for the first font.
18378
18379 * fontset.c (reorder_font_vector): Fix typo.
18380 (fontset_find_font): Don't add a font-spec specifying a script.
18381 Use 0 (not Qt) for the indication of empty font-group. Change the
18382 format of RFONT-DEF. Return Qt if no font in the font-group
18383 support the character.
18384 (fontset_font): Adjust for the above change. If no font was
18385 found the character, remember that.
18386 (face_for_char): Adjust for the change of RFONT-DEF.
18387 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18388 no font for the target.
18389 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18390
183912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18392
18393 * font.c (font_load_for_face): Handle the case that the font in
18394 face->lface is a string.
18395
183962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18397
18398 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18399
184002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18401
18402 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18403 Fix previous change. If the frame is not on a window system,
18404 signal an error.
18405
184062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18407
18408 * coding.c (decode_coding_object, encode_coding_object): Adjust
18409 marker positions after conversion.
18410
18411 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18412
184132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18414
18415 * font.c (font_find_for_lface): Fix the handling of the return
18416 value of font_has_char.
18417 (Ffont_shape_text): Fix previous change.
18418
18419 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18420 (fontset_ref_and_range): Delete it.
18421 (fontset_find_font): Call char_table_ref_and_range instead of
18422 FONTSET_REF_AND_RANGE.
18423 (make_fontset): Don't setup font groups of Latin here.
18424 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18425 (new_fontset_from_font): Make the specified font the default for
18426 all Latin characters.
18427
184282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18429
18430 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18431 is on a window system before accessing the fontset of the frame.
18432
184332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18434
18435 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18436
18437 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18438 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18439
18440 * font.c (Ffont_shape_text): If the font driver doesn't have a
18441 shaper function, make zero-width glyphs to have at least one-pixel
18442 width. Fix setting of `to' field of glyphs.
18443
184442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18445
18446 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18447 glyphs.
18448
18449 * font.h (struct font_driver): Improve docstring of member `shape'.
18450
184512008-02-01 Kenichi Handa <handa@m17n.org>
18452
18453 * composite.c (syms_of_composite): Fix docstring of
18454 auto-composition-function.
18455
18456 * font.h (LGLYPH_SIZE): New macro.
18457
18458 * font.c (Ffont_fill_gstring): Stop filling when a character not
18459 supported by the font is found.
18460 (Ffont_shape_text): When a shape callback function returns nil,
18461 try at most two more times with larger gstring.
18462 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18463
18464 * xdisp.c (handle_auto_composed_prop): Change the argument to
18465 auto-composition-function.
18466
18467 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18468 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18469 Lispy glyph and store it in the lgstring.
18470
18471 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18472
18473 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18474
184752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18476
18477 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18478
18479 * fontset.c (Vfont_encoding_charset_alist): New variable.
18480 (syms_of_fontset): DEFVAR it.
18481 (reorder_font_vector, fontset_find_font): Optimize for the case of
18482 no need of reordering.
18483 (face_for_char): Map the charset property by
18484 Vfont_encoding_charset_alist.
18485
184862008-02-01 Jason Rumney <jasonr@gnu.org>
18487
18488 * w32font.c (logfonts_match): Don't check adstyle here.
18489 (font_matches_spec): Check here against physical font instead.
18490 (add_font_entity_to_list): Avoid some substitutions.
18491
18492 * font.c (font_parse_fcname): Default weight and slant to normal.
18493 (font_score): Prefer normal fonts if weight or slant unspecified.
18494 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18495 match freetype scores.
18496
184972008-02-01 Jason Rumney <jasonr@gnu.org>
18498
18499 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18500 font, as it may have been deleted.
18501 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18502 most common hyphenless variation.
18503 (logfonts_match): Check generic family.
18504 (font_matches_spec): Don't check generic family here.
18505 (fill_in_logfont): Set generic family based on adstyle.
18506
18507 * w32font.h (w32font_get_cache): Update declaration.
18508
185092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18510
18511 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18512
18513 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18514 If none of the new drivers are available, call font_update_drivers
18515 with the old drivers.
18516
18517 * w32font.c (w32font_get_cache): Adjust the argument type.
18518
18519 * xfont.c (xfont_get_cache): Adjust the argument type.
18520
18521 * font.h (struct font_driver): Change argument type of get_cache.
18522
18523 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18524
18525 * font.c (Ffont_get): Fix arguments to Fassoc.
18526 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18527 (font_clear_cache): New function.
18528 (font_list_entities, font_matching_entity): Use font_get_cache.
18529 (font_update_drivers): Call font_clear_cache when finishing a driver.
18530
18531 * fontset.c (fontset_find_font): Fix previous change.
18532
185332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18534
18535 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18536 dpyinfo->font_table.
18537 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18538 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18539
18540 * font.c (font_at): Handle the case that the arg C is negative.
18541 Handle the unibyte case.
18542 (Ffont_at): Call font_at with the arg C -1.
18543
18544 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18545 the position here, and call font_at with the arg C -1.
18546 Don't check the range of the existing composition at the point.
18547
185482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18549
18550 * fontset.c (fontset_add): New args charset_id and family.
18551 Change caller.
18552 (load_font_get_repertory, fontset_find_font): Assume that
18553 font_spec is always a font-spec object.
18554 (Fset_fontset_font): Always store a font-spec object in a fontset.
18555
18556 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18557 instead of get_property_and_range.
18558
185592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18560
18561 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18562 (xftfont_open): Don't keep locking face.
18563 (xftfont_close): Don't unlock face.
18564 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18565
18566 * fontset.c (fontset_find_font): Don't prefer a font of
18567 supplementary charset.
18568
185692008-02-01 Kenichi Handa <handa@m17n.org>
18570
18571 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18572 script, langsys_tag to langsys, new member script.
18573 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 18574 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
18575 listing to the script specified in that property. Fix arg to
18576 OTF_check_features.
18577
185782008-02-01 Jason Rumney <jasonr@gnu.org>
18579
18580 * w32font.h: New file.
18581
18582 * w32font.c: Include it.
18583 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18584 (w32font_open): Set owning_frame.
18585 (w32font_text_extents): Use owning_frame.
18586 (struct font_callback_data): Add opentype_only field.
18587 (add_font_entity_to_list): Use it to filter fonts.
18588 Don't check against full name.
18589 (w32font_list_internal): New function.
18590 (w32font_list): Use it.
18591 (w32font_match_internal): New function.
18592 (w32font_match): Use it.
18593 (w32font_open_internal): New function.
18594 (w32font_open): Use it.
18595 (w32font_get_cache, w32font_close, w32font_has_char)
18596 (w32font_encode_char, w32font_text_extents, w32font_draw):
18597 Make non-static.
18598
18599 * makefile.w32-in (w32font.o): Depend on w32font.h.
18600
186012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18602
18603 * charset.c (Fdefine_charset_internal): Record a supplementary
18604 charset at the tail of Vcharset_order_list.
18605
18606 * font.c (Ffont_shape_text): Fix the return value.
18607
18608 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18609
18610 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18611
186122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18613
18614 * ftfont.c (struct OpenTypeSpec): New struct.
18615 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18616 (ftfont_get_open_type_spec): New function.
18617 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18618
18619 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18620
186212008-02-01 Jason Rumney <jasonr@gnu.org>
18622
18623 * w32font.c (add_font_entity_to_list): Compare only the beginning
18624 of full name.
18625
186262008-02-01 Kenichi Handa <handa@m17n.org>
18627
18628 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18629 Never return HANDLED_RECOMPUTE_PROPS.
18630
186312008-02-01 Kenichi Handa <handa@m17n.org>
18632
18633 * font.c (font_gstring_produce): Delete it.
18634
18635 * composite.h (COMPOSITION_METHOD):
18636 Handle COMPOSITION_WITH_GLYPH_STRING.
18637
186382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18639
18640 * xfont.c (Qx): Delete.
18641 (syms_of_xfont): Don't initialize Qx.
18642
18643 * composite.h (enum composition_method):
18644 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18645
186462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18647
18648 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18649 (choose_face_font): Accept new form of font-spec.
18650
18651 * frame.h (font_driver_list): Declare it unconditionally.
18652 (struct frame): Define members font_driver_list and font_data_list
18653 unconditionally.
18654
18655 * fontset.c: Include "font.h" unconditionally.
18656 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18657 (Fset_fontset_font): Accept a font-spec object.
18658
18659 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18660 PIXEL_SIZE part a wild card.
18661
18662 * dispextern.h (struct glyph_string): Define members clip and
18663 num_clips unconditionally.
18664 (struct face): Define members font_info and extra unconditionally.
18665
18666 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18667 ftfont_info only when HAVE_LIBOTF is defined.
18668
186692008-02-01 Andreas Schwab <schwab@suse.de>
18670
18671 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18672 and end.
18673
186742008-02-01 Jason Rumney <jasonr@gnu.org>
18675
18676 * w32font.c (w32font_driver): Add new fields.
18677
186782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18679
18680 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18681 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18682 (LIBES): Add @M17N_FLT_CFLAGS@.
18683
18684 * composite.c (compose_text): Don't treat the new style
18685 composition specially.
18686
18687 * emacs.c (main): Call syms_of_font unconditionally.
18688
18689 * font.h (FONT_ENTITY_NOT_LOADABLE)
18690 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18691 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18692 (struct font_driver): New member shape.
18693 (font_registry_charsets): Extern it.
18694 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18695 (font_otf_capability, font_drive_otf): Delete their externs.
18696
18697 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18698 (font_charset_alist, font_registry_charsets): Move from xfont.c
18699 and rename.
18700 (font_prop_validate_otf): New function.
18701 (font_property_table): Register it for QCotf.
18702 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18703 (font_drive_otf): Delete.
18704 (font_prepare_composition): New arg F. Adjust for the change of
18705 lispy gstring.
18706 (font_find_for_lface): New arg C.
18707 (font_load_for_face): Adjust for the change of font_find_for_lface.
18708 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18709 lispy gstring.
18710 (Ffont_shape_text): New function.
18711 (Fopen_font): If the font size is not given, use 12-pixel.
18712 (Ffont_at): New arg STRING.
18713 (syms_of_font): Initalize font_charset_alist.
18714 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18715 conditionally.
18716
18717 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18718 fonts of the same font-spec. Change the format of RFONT-DEF.
18719 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18720 Adjust for the change of RFONT-DEF.
18721 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18722
18723 * ftfont.h: New file.
18724
18725 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18726 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18727 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18728 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18729 font_otf_capability and font_drive_otf, set ftfont_shape.
18730 (ftfont_list): Adjust for the change of :otf property value.
18731 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18732 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18733 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18734 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18735 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18736 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18737
18738 * w32term.c (x_draw_composite_glyph_string_foreground):
18739 Adjust for the change of lispy gstring.
18740
18741 * xdisp.c (handle_composition_prop): Adjust for the change of
18742 lispy gstring. Call a function for auto-composition with the
18743 third arg it->window.
18744 (fill_composite_glyph_string): Adjust for the change of lispy string.
18745 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18746
18747 * xfaces.c (set_font_frame_param): Adjust for the change of
18748 font_find_for_lface.
18749
18750 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18751 (xfont_registry_charsets): Likewise. Change caller.
18752 (syms_of_xfont): Don't handle x_font_charset_alist.
18753
18754 * xftfont.c: Include "ftfont.h".
18755 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18756 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18757 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18758 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18759 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18760 Set xftfont_driver.shape to xftfont_shape.
18761
18762 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18763 the change of lispy gstring.
18764
187652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18766
18767 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18768
187692008-02-01 Jason Rumney <jasonr@gnu.org>
18770
18771 * w32font.c (w32font_draw): Fill background manually.
18772
187732008-02-01 Jason Rumney <jasonr@gnu.org>
18774
18775 * font.c (Qfontp): Remove unused symbol.
18776 (QCantialias): New symbol.
18777 (syms_of_font): Define it.
18778 (font_property_table): Set a validator for QCantialias.
18779
18780 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18781 Define if not already.
18782 (QCfamily): Share with xfaces.c.
18783 (Qstandard, Qsubpixel, Qnatural): New symbols.
18784 (syms_of_w32font): Define them. Don't define QCfamily here.
18785 (w32_antialias_type, lispy_antialias_type): New functions.
18786 (w32_enumfont_pattern_entity): New arg requested_font.
18787 Set antialias parameter if non-default was requested.
18788 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18789
187902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18791
18792 * lread.c (read1): Undo the previous change.
18793
187942008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18795
18796 * frame.c (Fdelete_frame): Call font_update_drivers only when
18797 USE_FONT_BACKEND is defined.
18798
187992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18800
18801 * font.h (struct font_bitmap): New member bits_per_pixel.
18802 (struct font_driver): New members start_for_frame and end_for_frame.
18803 (struct font_data_list): New struct.
18804 (font_put_frame_data, font_get_frame_data): Extern them.
18805
18806 * frame.h (struct frame): New member font_data_list.
18807
18808 * font.c (font_update_drivers): Call driver->start_for_frame and
18809 driver->end_for_frame at proper timings.
18810 (font_put_frame_data, font_get_frame_data): New functions.
18811 (Ffont_spec): Add usage in the docstring.
18812
18813 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18814 (Fdelete_frame): Call font_update_drivers.
18815
18816 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18817 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18818 (xftfont_get_xft_draw): New function.
18819 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18820 (xftfont_end_for_frame): New function.
18821 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18822
18823 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18824 Change argument. Cache GCs in the per-frame data.
18825 (struct ftxfont_frame_data): New struct.
18826 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18827 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18828 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18829 (ftxfont_end_for_frame): New function.
18830 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18831
18832 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18833
188342008-02-01 Kenichi Handa <handa@m17n.org>
18835
18836 * xselect.c (Vselection_coding_system)
18837 (Vnext_selection_coding_system): Delete them.
18838 (syms_of_xselect): Don't declare selection-coding-system and
18839 next-selection-coding-system. They are declared in select.el.
18840
188412008-02-01 Jason Rumney <jasonr@gnu.org>
18842
18843 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18844
18845 * w32fns.c: Include imm.h.
18846 (get_composition_string_fn, get_ime_context_fn): New optional
18847 system functions.
18848 (globals_of_w32fns): Load them from imm32.dll.
18849 (ignore_ime_char): New flag.
18850 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18851 WM_IME_ENDCOMPOSITION messages.
18852
18853 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18854 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18855
188562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18857
18858 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18859 (READCHAR_REPORT_MULTIBYTE): New macro.
18860 (readchar): New 2nd arg MULTIBYTE.
18861 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18862 Make symbol's name multibyte according to the multibyteness of the
18863 source.
18864
188652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18866
18867 * xfaces.c (face_for_overlay_string): Call lookup_face with
18868 correct arguments (fix of synching with the trunk).
18869
188702008-02-01 Kenichi Handa <handa@m17n.org>
18871
18872 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18873 (font_prop_validate_non_neg, font_prop_validate_spacing):
18874 Delete argument prop_index.
18875 (font_property_table): Change arguments to validater. Change Callers.
18876 (font_lispy_object): Delete.
18877 (font_at): Use font_find_object instead fo font_lispy_object.
18878
188792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18880
18881 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18882 and file names.
18883
188842008-02-01 Jason Rumney <jasonr@gnu.org>
18885
18886 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18887 (font_matches_spec): Remove debug output.
18888 (add_font_entity_to_list): Avoid using substituted fonts.
18889
188902008-02-01 Jason Rumney <jasonr@gnu.org>
18891
18892 * doc.c (Fsnarf_documentation):
18893 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18894
188952008-02-01 Miles Bader <miles@gnu.org>
18896
18897 * dispextern.h (struct glyph_row): Only define "clip" field if
18898 HAVE_WINDOW_SYSTEM is defined.
18899
189002008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18901
18902 Fix up multi-tty merge.
18903
18904 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18905 and indentation.
18906
18907 * xfaces.c (free_realized_face, clear_face_gcs):
18908 Include font_done_for_face in the input_blocked section, just in case.
18909
18910 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18911 (get_char_face_and_encoding): Undo last change and remove the *other*
18912 duplicate definition (i.e. keep the one that's better scoped and that
18913 includes code for the font-backend).
18914
18915 * terminal.c (create_terminal): Default keyboard_coding to
18916 `no-conversion' and terminal_coding to `undecided'.
18917
18918 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18919
18920 * fontset.c (free_realized_fontsets): Check that the table entry does
18921 contain a fontset before trying to compare it to `base'.
18922
18923 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18924 syms_of_charset, and syms_of_coding earlier because init_window_once
18925 now needs Vcoding_system_hash_table to be setup.
18926
18927 * coding.h (default_buffer_file_coding): Remove.
18928
18929 * coding.c (default_buffer_file_coding): Remove.
18930 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18931 than ->symbol, and use the terminal-local coding system.
18932 (syms_of_coding): Don't setup the coding-systems that are not
18933 terminal-local.
18934 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18935
18936 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18937 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18938
18939 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18940 in chartab.c and were re-added here by mistake.
18941 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18942
18943 * doc.c (Fsnarf_documentation):
18944 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18945 src to etc.
18946
18947 * ChangeLog.10: Add mistakenly removed entry.
18948
189492008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18950
18951 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18952
189532008-02-01 Miles Bader <miles@gnu.org>
18954
18955 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18956 Add extra args to FACE_FOR_CHAR.
18957
189582008-02-01 Kenichi Handa <handa@m17n.org>
18959
18960 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18961 in sequence.
18962
18963 * chartab.c (map_sub_char_table, map_char_table): If the range
18964 contains just one character, call the function with that character
18965 even if the depth is not 3.
18966
189672008-02-01 Jason Rumney <jasonr@gnu.org>
18968
18969 * w32font.c (w32font_text_extents): Calculate metrics for the
18970 whole string.
18971
189722008-02-01 Jason Rumney <jasonr@gnu.org>
18973
18974 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18975
189762008-02-01 Jason Rumney <jasonr@gnu.org>
18977
18978 * w32term.c (x_set_glyph_string_clipping): Use
18979 get_glyph_string_clip_rects.
18980 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18981 Adjust for the change of struct glyph_string.
18982
18983 * w32font.c (w32font_draw): Do clipping here.
18984
189852008-02-01 Kenichi Handa <handa@m17n.org>
18986
18987 * xftfont.c (xftfont_draw): Adjust for the change of struct
18988 glyph_string.
18989
18990 * xterm.c (x_set_glyph_string_clipping): Use
18991 get_glyph_string_clip_rects.
18992 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18993 Adjust for the change of struct glyph_string.
18994
18995 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18996 the resulting clip(s}.
18997 (expose_overlaps): Add arg r. Change callers. Set it to
18998 row->clip temporarily.
18999 (expose_window): Redraw rows overlapping the exposed area.
19000
19001 * dispextern.h (struct glyph_row): New member clip.
19002 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19003 clip_height, new member clip, and num_clips.
19004
190052008-02-01 Kenichi Handa <handa@m17n.org>
19006
19007 * data.c (Fchar_or_string_p): Fix docstring.
19008
190092008-02-01 Kenichi Handa <handa@m17n.org>
19010
19011 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19012 create a temporary XftDraw object.
19013
190142008-02-01 Kenichi Handa <handa@m17n.org>
19015
19016 * font.c (Ffontp): Fix docstring.
19017
19018 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19019 strong evidence of ISO-2022.
19020
190212008-02-01 Kenichi Handa <handa@m17n.org>
19022
19023 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19024 SYNTAX_ENTRY_FOLLOW_PARENT.
19025
190262008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19027
19028 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19029 its type.
19030 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19031 Update to the new type of weak_hash_tables and next_weak.
19032
19033 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19034 a plain C pointer to Lisp_Hash_Table.
19035
19036 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19037 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19038 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19039 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19040 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19041 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19042 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19043 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19044 (GC_EQ): Remove since they've been identical to their non-GC_
19045 alter-egos ever since the markbit was eradicated.
19046
19047 * alloc.c:
19048 * buffer.c:
19049 * buffer.h:
19050 * data.c:
19051 * fileio.c:
19052 * filelock.c:
19053 * fns.c:
19054 * frame.h:
19055 * lisp.h:
19056 * macterm.c:
19057 * print.c:
19058 * process.c:
19059 * w32fns.c:
19060 * w32menu.c:
19061 * w32term.c:
19062 * xfns.c:
19063 * xmenu.c:
19064 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19065
190662008-02-01 Kenichi Handa <handa@m17n.org>
19067
19068 * chartab.c (map_sub_char_table): Make it work for the top-level
19069 char-table. Fix handling of parent char-table.
19070 (map_char_table): Adjust for the above change.
19071
190722008-02-01 Jason Rumney <jasonr@gnu.org>
19073
19074 * w32font.c (Qgdi): Rename from Qw32.
19075
190762008-02-01 Jason Rumney <jasonr@gnu.org>
19077
19078 * w32bdf.c (get_quoted_string): Make function static.
19079
190802008-02-01 Kenichi Handa <handa@m17n.org>
19081
19082 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19083 bigger ascent and descent than those of the font, use them as
19084 font's ascent and descent.
19085
190862008-02-01 Kenichi Handa <handa@m17n.org>
19087
19088 * Makefile.in (${lispsource}international/charprop.el): Move this
19089 target within "#ifdef HAVE_UNIDATA" and "#endif".
19090
190912008-02-01 Kenichi Handa <handa@m17n.org>
19092
19093 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19094 (shortlisp): Add ../lisp/language/tai-viet.el.
19095
190962008-02-01 Ulrich Mueller <ulm@gentoo.org>
19097
19098 * Makefile.in (${lispsource}international/charprop.el): Depend on
19099 temacs${EXEEXT}.
19100
191012008-02-01 Jason Rumney <jasonr@gnu.org>
19102
19103 * w32font.c (w32font_close): Delete the GDI font object.
19104
19105 * w32menu.c: Include character.h.
19106
19107 * w32proc.c: Likewise.
19108
19109 * w32select.c: Likewise.
19110
19111 * makefile.w32-in (w32proc.o): Depend on character.h.
19112
191132008-02-01 Jason Rumney <jasonr@gnu.org>
19114
19115 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19116
19117 * w32menu.c (syms_of_w32menu): Likewise.
19118
19119 * w32proc.c (syms_of_ntproc): Likewise.
19120
19121 * w32select.c (syms_of_w32select): Likewise.
19122
19123 * w32term.c (syms_of_w32term): Likewise.
19124
191252008-02-01 Jason Rumney <jasonr@gnu.org>
19126
19127 * w32font.c (w32font_draw): Delete brush after using it.
19128
191292008-02-01 Jason Rumney <jasonr@gnu.org>
19130
19131 * w32font.c (w32font_open): Don't set font_idx.
19132 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19133 to font settings.
19134 (w32font_draw): Fill background explicitly.
19135
191362008-02-01 Jason Rumney <jasonr@gnu.org>
19137
19138 * w32term.c (w32_initialize): Don't call w32font_initialize.
19139
19140 * w32font.c (w32font_info): Remove subranges.
19141 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19142 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19143 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19144 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19145 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19146 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19147 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19148 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19149 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19150 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19151 New symbols.
19152 (font_callback_data): New struct.
19153 (w32font_list, w32font_match): Use it.
19154 (w32font_open): Don't populate subranges.
19155 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19156 (w32font_encode_char): Always return unicode code-point as-is.
19157 (w32font_text_extents): Supply a transformation matrix to
19158 GetGlyphOutline. Never look up by glyph index. Avoid looping
19159 twice. Use unicode version of GetTexExtentPoint32 instead of
19160 glyph index version.
19161 (set_fonts_frame): Remove.
19162 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19163 set frame parameter. Use backward compatible fake foundries.
19164 Save generic family in extra slot under QCfamily. Make width slot
19165 constant. Save QCspacing value. Save list of scripts instead of
19166 binary subranges.
19167 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19168 (add_font_entity_to_list): Use font_callback_data struct. Filter
19169 unwanted fonts.
19170 (add_one_font_entity_to_list): Use font_callback_data struct.
19171 (w32_registry): Default to iso10646_1.
19172 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19173 string font registries. Don't fill in font name if it is a generic
19174 family name, fill family instead. Use spacing, family and script
19175 extra info to fill pitch, family and charset fields.
19176 (list_all_matching_fonts): Use font_callback_data struct.
19177 (unicode_range_for_char): Remove.
19178 (font_supported_scripts): New function.
19179 (w32font_initialize): Remove.
19180 (syms_of_w32font): Update which symbols are defined.
19181
191822008-02-01 Jason Rumney <jasonr@gnu.org>
19183
19184 * font.c (font_pixel_size): Reverse assq_no_quit args.
19185
19186 * w32term.h (FONT_WIDTH): Report max width, not average.
19187 (FONT_MAX_WIDTH): Remove.
19188 (FONT_AVG_WIDTH): New macro.
19189
19190 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19191 redefinition of FONT_WIDTH.
19192
19193 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19194 (w32_cache_char_metrics): Use FONT_WIDTH.
19195
19196 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19197
191982008-02-01 Jason Rumney <jasonr@gnu.org>
19199
19200 * w32font.c (w32font_open): Make lfHeight negative.
19201
19202 * w32fns.c (x_default_font_parameter): Use new style font name.
19203 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19204
192052008-02-01 Jason Rumney <jasonr@gnu.org>
19206
19207 * w32font.c (QCsubranges): New symbol.
19208 (w32font_open, w32font_has_char): Get subranges from subproperty
19209 of extra.
19210 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19211 (syms_of_w32font): Define :subranges symbol.
19212
19213 * font.c (font_put_extra): Expose externally.
19214
19215 * font.h (font_put_extra): Move declaration from font.c.
19216
19217 * font.c (Ffont_get): Use font driver to determine otf capability.
19218 (adjust_anchor): Check if driver defines anchor_point before using.
19219
19220 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19221 (w32font_draw): Use options.
19222 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19223 Fix detection of truetype fonts.
19224 (registry_to_w32_charset): Handle charsets other than iso8859-1
19225 expressed as lisp symbols.
19226 (w32_registry): Express charset as lisp symbol.
19227 (fill_in_logfont): Reverse pixel and point height logic.
19228 Don't set width here. Set quality to default.
19229
19230 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19231 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19232
19233 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19234 Remove redundant loop and allocation.
19235
19236 * makefile.w32-in (font.o, w32font.o): New objects.
19237 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19238 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19239
19240 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19241 STORE_XCHARB a valid l-value.
19242
19243 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19244 calculations for non-Truetype fonts.
19245 (x_draw_glyph_string): Sync with xterm.c.
19246 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19247 Remove redundant code.
19248 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19249
19250 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19251 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19252
19253 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19254 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19255
19256 * w32font.c: New file for w32 font backend.
19257
192582008-02-01 Kenichi Handa <handa@m17n.org>
19259
19260 * term.c: Don't include "buffer.h" twice.
19261
192622008-02-01 Kenichi Handa <handa@m17n.org>
19263
19264 * character.c (Funibyte_string): New function.
19265 (syms_of_character): Defsubr it.
19266
192672008-02-01 Jason Rumney <jasonr@gnu.org>
19268
19269 * w32term.c [USE_FONT_BACKEND]:
19270 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19271 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19272 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19273 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19274 (x_free_frame_resources): Sync with xterm.c.
19275
192762008-02-01 Andreas Schwab <schwab@suse.de>
19277
19278 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19279 char-table size.
19280
192812008-02-01 Kenichi Handa <handa@m17n.org>
19282
19283 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19284
192852008-02-01 Kenichi Handa <handa@m17n.org>
19286
19287 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19288 font_otf_gpos, add font_drive_otf.
19289
19290 * fontset.c (fontset_find_font): Pay attention to font size
19291 specified for a font.
19292 (reorder_font_vector): Check contents of font_def.
19293
19294 * font.c (struct otf_list): Delete it.
19295 (otf_list): Make it a lisp variable.
19296 (otf_open): Use lispy otf_list.
19297 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19298 (check_otf_features): New function.
19299 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19300 New functions.
19301 (font_drive_otf): New function merging font_otf_gsub and
19302 font_otf_gpos.
19303 (font_open_for_lface): New arg spec. Change argument order.
19304 (font_load_for_face): Adjust for the change of font_open_for_lface.
19305 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19306 Ffont_otf_gpos.
19307 (syms_of_font): Staticpro otf_list. Delete defsubr of
19308 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19309
19310 * xfaces.c (set_font_frame_param): Adjust for the change of
19311 font_open_for_lface.
19312
19313 * font.h (font_open_for_lface): Adjust prototype.
19314 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19315 member otf_drive.
19316 (font_otf_gsub, font_otf_gpos): Delete externs.
19317 (font_drive_otf): Extern it.
19318
193192008-02-01 Kenichi Handa <handa@m17n.org>
19320
19321 * font.c (font_at): If the window W is not on a window system,
19322 return Qnil.
19323
19324 * coding.c (produce_chars, encode_coding): Don't call
19325 insert_from_gap if no characters to produce.
19326
193272008-02-01 Kenichi Handa <handa@m17n.org>
19328
19329 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19330 Fclear_face_cache.
19331
19332 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19333
193342008-02-01 Miles Bader <miles@gnu.org>
19335
19336 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19337 Parse "--disable-font-backend" option.
19338 (standard_args): Add "--disable-font-backend" option.
19339
193402008-02-01 Kenichi Handa <handa@m17n.org>
19341
19342 * fontset.c (fontset_find_font): New function.
19343 (fontset_font): Use fontset_find_font.
19344 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19345 Register the specified font for all Latin characters.
19346 (new_fontset_from_font): Register the specified font for all Latin
19347 characters.
19348 (dump_fontset): For a realized fontset, include the base fontset
19349 name in the returned vector.
19350
193512008-02-01 Kenichi Handa <handa@m17n.org>
19352
19353 * character.h (CHAR_STRING): Cast C to unsigned on calling
19354 char_string.
19355
19356 * character.c (char_string): Type of arg C changed to unsigned.
19357 Signal an error if C is an invalid character code.
19358
19359 * editfns.c (general_insert_function, Fchar_to_string):
19360 Use CHARACTERP, not INTEGERP.
19361
193622008-02-01 Kenichi Handa <handa@m17n.org>
19363
19364 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19365 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19366
19367 * regex.c (analyse_first): Fix for multibyte characters in "case
19368 charset:" and "case categoryspec:".
19369
193702008-02-01 Andreas Schwab <schwab@suse.de>
19371
19372 * Makefile.in (LIBES): Move standard libraries to the end.
19373
193742008-02-01 Kenichi Handa <handa@m17n.org>
19375
19376 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19377 nonzero, don't shrink the buffer nextb.
19378
19379 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19380
19381 * coding.c (coding_alloc_by_making_gap): New arg offset.
19382 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19383 offset.
19384 (decode_coding_iso_2022): Update coding->safe_charsets.
19385 (decode_coding_gap): Temporarily set
19386 current_buffer->text->inhibit_shrinking to 1.
19387
193882008-02-01 Kenichi Handa <handa@m17n.org>
19389
19390 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19391 indexing into elements of s->cmp and s->char2b.
19392
193932008-02-01 Juanma Barranquero <lekktu@gmail.com>
19394
19395 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19396
193972008-02-01 Kenichi Handa <handa@m17n.org>
19398
19399 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19400 target_multibyte instead of multibyte.
19401 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19402 (bcmp_translate): Change the argument name from multibyte to
19403 target_multibyte.
19404
194052008-02-01 Kenichi Handa <handa@m17n.org>
19406
19407 These changes are to compile a regexp into a pattern that can be
19408 used both for multibyte and unibyte targets.
19409
19410 * Makefile.in (search.o): Depend on charset.h.
19411
19412 * character.c (multibyte_char_to_unibyte_safe): New function.
19413
19414 * search.c: Include "charset.h".
19415 (compile_pattern_1): Delete argument multibyte. Don't set
19416 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19417 (compile_pattern): Don't compare cp->buf.target_multibyte.
19418 Compare cp->buf.charset_unibyte.
19419 (compile_pattern): Set cp->buf.target_multibyte.
19420
19421 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19422
19423 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19424
19425 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19426 multibyte. Change callers.
19427 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19428 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19429 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19430 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19431 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19432 (regex_compile): Make the compiled pattern usable both for
19433 multibyte and unibyte targets.
19434 (analyse_first): Make the fastmap usable both for multibyte and
19435 unibyte targets.
19436 (TRANSLATE_VIA_MULTIBYTE): Delete.
19437 (re_match_2_internal): Pay attention to the case that the
19438 multibyteness of bufp and target may be different.
19439
194402008-02-01 Kenichi Handa <handa@m17n.org>
19441
19442 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19443 empty box occupy at least one column width.
19444
194452008-02-01 Miles Bader <miles@gnu.org>
19446
19447 * Makefile.in: Remove redundant HAVE_XFT clause.
19448
194492008-02-01 Kenichi Handa <handa@m17n.org>
19450
19451 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19452
194532008-02-01 Kenichi Handa <handa@m17n.org>
19454
19455 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19456 being nil.
19457
194582008-02-01 Kenichi Handa <handa@m17n.org>
19459
19460 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19461
194622008-02-01 Kenichi Handa <handa@m17n.org>
19463
19464 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19465
194662008-02-01 Kenichi Handa <handa@m17n.org>
19467
19468 * search.c (simple_search): Fix previous change.
19469
194702008-02-01 Kenichi Handa <handa@m17n.org>
19471
19472 * xftfont.c (ftfont_font_format): Extern declaration.
19473
19474 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19475
19476 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19477 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19478
19479 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19480 (ftfont_font_format): Fix previous change.
19481
19482 * font.h (Ffont_xlfd_name): EXFUN it.
19483
19484 * font.c (font_parse_xlfd): Fix the array size of `f'.
19485 (register_font_driver): Use EQ to compare driver->type.
19486
19487 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19488 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19489 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19490
194912008-02-01 Kenichi Handa <handa@m17n.org>
19492
19493 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19494 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19495
194962008-02-01 Kenichi Handa <handa@m17n.org>
19497
19498 * xfont.c (xfont_open): Set font->format.
19499
19500 * xftfont.c (xftfont_open): Set font->format.
19501
19502 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19503 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19504 (ftfont_open): Set font->format.
19505 (ftfont_font_format): New function.
19506
19507 * font.h (struct font): New member format.
19508
19509 * font.c (Qopentype): New variable.
19510 (syms_of_font): Defsym it.
19511 (Fquery_font): Change the format of the last element of the return
19512 value.
19513
195142008-02-01 Kenichi Handa <handa@m17n.org>
19515
19516 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19517 last resort.
19518
195192008-02-01 Kenichi Handa <handa@m17n.org>
19520
19521 * coding.c (detect_coding_charset): Fix detection of multi-byte
19522 charset.
19523
195242008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19525
19526 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19527
195282008-02-01 Kenichi Handa <handa@m17n.org>
19529
19530 * xdisp.c (get_next_display_element): Set it->face_id for the
19531 first component of a composition.
19532 (x_produce_glyphs): Check if the font is changed or not for composition.
19533
195342008-02-01 Kenichi Handa <handa@m17n.org>
19535
19536 * fontset.c (Qlatin): New variable.
19537 (syms_of_fontset): Define it as a lisp symbol.
19538 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19539
195402008-02-01 Kenichi Handa <handa@m17n.org>
19541
19542 * font.c (font_unparse_fcname): Pay attention to the case that
19543 some of font property is a null string.
19544
195452008-02-01 Kenichi Handa <handa@m17n.org>
19546
19547 * term.c: Include "composite.h".
19548 (encode_terminal_code): Output all components of composition.
19549 Check the size of encode_terminal_src.
19550 (produce_glyphs): For composition, call produce_composite_glyph.
19551 (append_composite_glyph, produce_composite_glyph): New functions.
19552
19553 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19554 is not found, get font_info from the current ascii face.
19555
195562008-02-01 Kenichi Handa <handa@m17n.org>
19557
19558 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19559 buffer-file-name to Qnil before calling insert_from_buffer.
19560
19561 * font.c (font_unparse_fcname): Pay attention to the case that
19562 foundry is a null string.
19563
195642008-02-01 Kenichi Handa <handa@m17n.org>
19565
19566 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19567
19568 * font.c (Qunicode_sip): New variable.
19569 (syms_of_font): Declare it as a Lisp symbol.
19570
19571 * font.h (Qunicode_sip): Extern it.
19572
195732008-02-01 Kenichi Handa <handa@m17n.org>
19574
19575 * composite.c (get_composition_id): Pay attention to TAB component.
19576
19577 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19578 TAB. Adjust for the change of s->char2b which always points to
19579 the first element of allocated memory.
19580
19581 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19582
19583 * xdisp.c (handle_composition_prop): Set it->c to the first
19584 non-TAB component.
19585 (fill_composite_glyph_string): Change argument.
19586 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19587 (x_produce_glyphs): Fix handling of left/right padding.
19588
195892008-02-01 Kenichi Handa <handa@m17n.org>
19590
19591 * coding.c (detect_coding_system): Fix for handling off
19592 inhibit_iso_escape_detection. Fix for the case that no coding
19593 system is defined for a specific coding category.
19594
195952008-02-01 Kenichi Handa <handa@m17n.org>
19596
19597 * font.c (font_matching_entity): Delete unused local var.
19598
19599 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19600 opening a font.
19601
19602 * fileio.c (Finsert_file_contents): On recovering a file, assume
19603 Unix-like eol.
19604 (choose_write_coding_system): On auto-saving a file, force
19605 Unix-like eol.
19606
19607 * coding.c (setup_coding_system): Fix setting of
19608 coding->common_flags based on eol_type.
19609 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19610 inherit from it.
19611
196122008-02-01 Kenichi Handa <handa@m17n.org>
19613
19614 * alloc.c (NSTATICS): Increas to 0x600.
19615
196162008-02-01 Kenichi Handa <handa@m17n.org>
19617
19618 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19619 (ftfont_list): Don't check :name property.
19620 (ftfont_match): New function.
19621 (ftfont_pattern_entity): If the pattern doesn't contain
19622 FC_SPACING, don't assume FC_MONO.
19623
19624 * font.h (struct font_driver): New member `match'.
19625 (font_update_drivers): Adjust prototype.
19626
19627 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19628 property of FONT.
19629 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19630 them unconditionally.
19631 (font_matching_entity): New function.
19632 (font_open_by_name): Try font_matching_entity if exact match is
19633 not found.
19634 (font_update_drivers): Delete the arg FONT. Return a list of
19635 actually used backends. Don't free faces, font caches here.
19636 Don't store data in frame parameters. Don't call x_set_font.
19637 (Ffont_spec): Store :name property as is.
19638 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19639 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19640 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19641 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19642 Call font->driver->otf_gsub instead of font_otf_gsub.
19643
19644 * frame.c (x_set_font_backend): Do more works that were done in
19645 font_update_drivers before.
19646
19647 * xfont.c (xfont_match): New function.
19648 (xfont_driver): Set xfont_driver.match to xfont_match.
19649 (xfont_draw): Set font in GC if necessary.
19650
19651 * ftxfont.c (ftxfont_match): New function.
19652 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19653
19654 * xftfont.c (xftfont_match): New function.
19655 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19656
196572008-02-01 Kenichi Handa <handa@m17n.org>
19658
19659 * font.h (struct font): New member scalable.
19660 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19661 (font_otf_gsub): Adjust prototype.
19662
19663 * font.c (font_otf_capability): Fix handling of the default langsys.
19664 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19665 Check the contents of SPEC.
19666 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19667 (check_gstring): New function.
19668 (REPLACEMENT_CHARACTER): New macro.
19669 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19670 glyph codes of GSTRING.
19671 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19672 (font_prepare_composition): Set cmp->glyph_len.
19673 (font_open_entity): Set font->scalable.
19674 (Ffont_get): Handle :otf property.
19675 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19676 functions.
19677 (Fquery_font): Use font->font.full_name.
19678 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19679 Sfont_otf_alternates.
19680
19681 * ftfont.c (ftfont_open): Set font->font.full_name and
19682 font->font.name properly. Fix calculation of font->font.height
19683 and font->min_width.
19684
19685 * ftxfont.c (ftxfont_create_gcs): New function.
19686 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19687 (ftxfont_draw_backgrond): Fix filling region.
19688 (ftxfont_default_fid): New function.
19689 (ftxfont_open): Set xfont->fid to the return value of
19690 ftxfont_default_fid.
19691 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19692 (ftxfont_done_face): Free only GCs that are created by
19693 ftxfont_create_gcs.
19694 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19695
19696 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19697 Clip to src->width, etc (not src->clip_XXX).
19698
19699 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19700 FontBackend frame parameter.
19701
197022008-02-01 Kenichi Handa <handa@m17n.org>
19703
19704 * font.h (struct font_driver_list): New member `on'.
19705 (Fclear_font_cache): EXFUN it.
19706 (font_update_drivers): Extern it.
19707
19708 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19709 (font_list_entities): Check driver_list->on.
19710 (register_font_driver): Initalize `on' member to 0.
19711 (font_update_drivers): New function.
19712 (Fclear_font_cache): Check driver_list->on.
19713
19714 * frame.h (Qfont_backend): Extern it.
19715 (x_set_font_backend): Extern it.
19716
19717 * frame.c (Qfont_backend): New variable.
19718 (frame_parms): New element for font-backend.
19719 (x_set_font_backend): New function.
19720
19721 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19722 FontBackend frame parameter.
19723 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19724 x_set_font_backend.
19725
19726 * xfont.c (xfont_list): Don't try listing by :name property if the
19727 name is not for XLFD.
19728
197292008-02-01 Kenichi Handa <handa@m17n.org>
19730
19731 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19732 (LGLYPH_SET_TO): New macros.
19733 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19734 element of G is vector or not.
19735 (font_at): Extern it.
19736
19737 * font.c: Include window.h.
19738 (font_lispy_object): New function.
19739 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19740 end of valid glyph.
19741 (font_close_object): Fix getting (struct font *).
19742 (font_at): New function.
19743 (Ffont_get): If FONT is a font-object, get entity from it.
19744 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19745 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19746 range check.
19747 (Ffont_at): New function.
19748 (syms_of_font): Defsubr Sfont_at.
19749
19750 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19751 before the entry for Qcomposition.
19752 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19753 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19754 the font in gstring.
19755 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19756 LGLYPH_FORM (g) to detect the end of valid glyph.
19757 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19758 we are composing with gstring.
19759
19760 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19761 Check if adjustment is vector or not.
19762
19763 * Makefile.in (font.o): Make it depends on window.h.
19764
197652008-02-01 Kenichi Handa <handa@m17n.org>
19766
19767 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19768 adjustment is vector or not.
19769
197702008-02-01 Miles Bader <miles@gnu.org>
19771
19772 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19773
197742008-02-01 Kenichi Handa <handa@m17n.org>
19775
19776 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19777 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19778 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19779
19780 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19781 (DEVICE_DELTA): Fix typo.
19782 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19783 LGLYPH format.
19784
19785 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19786 the change of LGLYPH format.
19787
197882008-02-01 Kenichi Handa <handa@m17n.org>
19789
19790 * ftfont.c (ftfont_list): Fix typo.
19791 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19792
197932008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19794
19795 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19796
19797 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19798 xftface_info is non-NULL.
19799
198002008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19801
19802 * ftfont.c (ftfont_list): Move misplaced #endif.
19803
198042008-02-01 Kenichi Handa <handa@m17n.org>
19805
19806 * ftfont.c (ftfont_list): Pay attention to the case that
19807 FC_CAPABILITY is not defined.
19808
198092008-02-01 Kenichi Handa <handa@m17n.org>
19810
19811 * xftfont.c (xftfont_open): Set charset related members to -1.
19812
19813 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19814 QCname.
19815 (ftfont_open): Set charset related members to -1.
19816
19817 * fontset.c (Votf_script_alist): New variable.
19818 (syms_of_fontset): Initialize it.
19819 (fontset_font): Delete unused variable.
19820
19821 * fontset.h (Votf_script_alist): Extern it.
19822
19823 * font.c (font_find_for_lface): Optimize code.
19824
19825 * font.h (font_close_object, font_merge_old_spec): Extern them.
19826
198272008-02-01 Kenichi Handa <handa@m17n.org>
19828
19829 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19830 (syms_of_font): Initialize them.
19831 (font_pixel_size): Allow float value in dpi.
19832 (font_prop_validate_type): Delete.
19833 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19834 Change caller.
19835 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19836 (font_prop_validate_extra): Delete.
19837 (font_prop_validate_spacing): New function.
19838 (font_property_table): Add elements for all known properties.
19839 (get_font_prop_index): Rename from check_font_prop_name. New
19840 argument FROM. Change caller.
19841 (font_prop_validate): Validate all known properties.
19842 (font_put_extra): Delete argument force. Change caller.
19843 (font_expand_wildcards): Make it static. Fix the way of shrinking
19844 the possible range.
19845 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19846 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19847 Change caller.
19848 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19849 (font_parse_fcname): Delete argument merge. Fix parsing of point
19850 size. Don't validate properties values here. Change caller.
19851 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19852 (font_open_by_name): Delete unused variable.
19853 (Ffont_spec): Likewise. Validate property values.
19854 (Ffont_match_p): New function.
19855
19856 * font.h (QCscalable): Extern it.
19857 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19858
19859 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19860
19861 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19862 (xfont_list_pattern): New function.
19863 (xfont_list): Use xfont_list_pattern.
19864
198652008-02-01 Kenichi Handa <handa@m17n.org>
19866
19867 * font.h (Flist_fonts): EXFUN it.
19868
198692008-02-01 Jason Rumney <jasonr@gnu.org>
19870
19871 * w32term.c (w32_initialize): Add back smoothing_type and
19872 smoothing_enabled definitions.
19873
198742008-02-01 Kenichi Handa <handa@m17n.org>
19875
19876 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19877 s->face->font on determining underline position.
19878
198792008-02-01 Kenichi Handa <handa@m17n.org>
19880
19881 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19882 (font_has_char): Accept font-object too.
19883 (font_find_for_lface): Try at first with a size specified in face.
19884
198852008-02-01 Kenichi Handa <handa@m17n.org>
19886
19887 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19888 font_open_by_name.
19889
198902008-02-01 Kenichi Handa <handa@m17n.org>
19891
19892 * font.h (QCspacing, QCdpi): Extern them.
19893 (enum font_spacing): New enum.
19894 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19895
19896 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19897 (QCspacing, QCdpi): New variables.
19898 (syms_of_font): Initialize them.
19899 (font_pixel_size): New function.
19900 (font_put_extra): New function.
19901 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19902 in FONT_EXTRA.
19903 (font_parse_fcname): Handle enumerated values (e.g. bold).
19904 Fix handling font size. Add QCname property that contains only
19905 unknown properties.
19906 (font_score): Change argument. Change caller. Pay attention to
19907 FONT_PIXEL_SIZE_QUANTUM.
19908 (font_sort_entites, font_list_entities, font_find_for_lface)
19909 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19910 (Ffont_spec): Add QCname property that contains only unknown properties.
19911
19912 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19913 include weight in listing pattern, instead check weight of each
19914 listed font. Don't include scalable in pattern. Pay attention to
19915 FONT_PIXEL_SIZE_QUANTUM.
19916
199172008-02-01 Kenichi Handa <handa@m17n.org>
19918
19919 * font.c (font_parse_fcname): Fix parsing of point-size.
19920 (font_unparse_fcname): Produce symbolic names for style properties.
19921 (font_list_entities): Handle float size correctly.
19922 (font_open_by_name): Prefer `normal' property values if the name
19923 doesn't specify them.
19924
19925 * fontset.c (Finternal_char_font): Use font_get_name, not
19926 Ffont_xlfd_name.
19927
19928 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19929 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19930 pattern. Don't force scalable.
19931
19932 * xftfont.c (xftfont_open): For generating a name, start from
19933 96-byte buffer.
19934
199352008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19936
19937 * frame.h (x_new_fontset2): Fix prototype.
19938
199392008-02-01 Kenichi Handa <handa@m17n.org>
19940
19941 * font.h (struct font_driver): Delete member parse_name.
19942 (font_match_p, font_get_spec, font_parse_fcname)
19943 (font_unparse_fcname): Extern them.
19944 (font_get_name): Adjust prototype.
19945
19946 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19947 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19948 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19949 unnecessary checks for weight, slant, and swidth.
19950 (font_parse_fcname): New function.
19951 (font_unparse_fcname): New function.
19952 (font_parse_name): New function.
19953 (font_match_p): New function.
19954 (font_get_name): Change return value to Lisp string.
19955 (font_get_spec): New function.
19956 (Qunspecified, Qignore_defface): Don't extern them.
19957 (font_find_for_lface): Assume that LFACE is fully specified.
19958 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19959 object, use it for FACE.
19960 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19961 driver->parse_name.
19962 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19963
19964 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19965 prototype.
19966
19967 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19968 argument F. Don't call Fnew_fontset. Instead, directly call
19969 make_fontset.
19970
19971 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19972
19973 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19974 of x_new_fontset2.
19975
19976 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19977 (Qsans__serif): New variables.
19978 (ftfont_generic_family_list): New variable.
19979 (syms_of_ftfont): Initialize the above variables.
19980 (ftfont_pattern_entity): Delete argument NAME.
19981 (ftfont_list_generic_family): New function.
19982 (ftfont_parse_name): Delete this function.
19983 (ftfont_list): Try generic family only when FcFontList found no font.
19984 (ftfont_list_family): Fix args to FcObjectSetBuild.
19985
19986 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19987 object in attrs[LFACE_FONT_INDEX].
19988 (set_lface_from_font_name): Cancel all changes for font-backend.
19989 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19990 function.
19991 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19992 font object in QCfont attribute.
19993 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19994 (realize_default_face) [USE_FONT_BACKEND]: Call
19995 set_lface_from_font_and_fontset.
19996
19997 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19998 "fixed", and signal error here if no suitable font was found.
19999
20000 * xfont.c (xfont_parse_name): Delete this function.
20001
20002 * xftfont.c (xftfont_open): Change coding style of error
20003 handling. Generate fontconfig's fontname pattern.
20004
20005 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20006 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20007
20008 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20009 Both args FONTSET and FONT_OBJECT must be existing ones.
20010
200112008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20012
20013 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20014
200152008-02-01 Kenichi Handa <handa@m17n.org>
20016
20017 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20018
20019 * font.h (struct font): Fix typo.
20020
20021 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20022 XLFD_XXX_INDEX.
20023 (enum xlfd_field_mask): New enum.
20024 (intern_font_field): Changed argument. Change caller. If digits
20025 are followed by non-digits, return a symbol.
20026 (font_expand_wildcards): New function.
20027 (font_parse_xlfd): Fix wildcard handling.
20028 (Ffont_spec): If :name is specified, reflect the info in the other
20029 properties.
20030
20031 * ftfont.c (ftfont_pattern_entity): Fix typo.
20032 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20033 locale.
20034
200352008-02-01 Kenichi Handa <handa@m17n.org>
20036
20037 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20038
20039 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20040 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20041 registry doesn't specify encoding part.
20042 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20043 (font_open_by_name): At first try parsing the name.
20044 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20045 as Lisp symbols.
20046
20047 * fontset.c (reorder_font_vector): Pay attention to the case that
20048 the 3rd element of font_def is nil.
20049 (fontset_font): For the default fontset, append one more fontset
20050 elements for a script-based font specification. Don't add script
20051 attribute on finding a font.
20052 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20053 font name.
20054 (fontset_ascii_font): If a font can't be opened, return nil.
20055
20056 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20057 (ftfont_pattern_entity): New function.
20058 (ftfont_get_cache): Assume that freetype_font_cache is already
20059 initialized.
20060 (ftfont_list): Handle the case that a file is specified in font
20061 name. Use ftfont_pattern_entity to generate entities.
20062 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20063 (syms_of_ftfont): Initialize freetype_font_cache.
20064
20065 * xftfont.c (xftfont_open): Make the font name fontconfig's
20066 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20067 (xftfont_close): Free font->font.name if not NULL.
20068
20069 * xfont.c (xfont_list): If script is specified for a font, return
20070 null_vector.
20071 (xfont_list_family): Declare argument type.
20072
20073 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20074 name, set LFACE_FONT (lface) to nil.
20075
20076 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20077 return Qnil.
20078
200792008-02-01 Kenichi Handa <handa@m17n.org>
20080
20081 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20082 (standard_args): Add "-enable-font-backend".
20083
200842008-02-01 Kenichi Handa <handa@m17n.org>
20085
20086 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20087 (struct xftdraw_list, xftdraw_list): Delete them.
20088 (register_xftdraw, check_xftdraw): Delete them.
20089 (xftfont_prepare_face): Don't call register_xftdraw.
20090 (xftfont_done_face): Don't call check_xftdraw.
20091 (xftfont_draw): Get background color only when with_background is
20092 nonzero.
20093
20094 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20095
200962008-02-01 Kenichi Handa <handa@m17n.org>
20097
20098 These changes are for the new font handling codes.
20099
20100 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20101 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20102 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20103 (FONTSRC, FONTOBJ): New variables.
20104 (obj): Add $(FONTOBJ).
20105 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20106 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20107 @LIBOTF_LIBS@.
20108 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20109 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20110
20111 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20112
20113 * character.h (Vscript_representative_chars): Extern it.
20114
20115 * character.c (Vscript_representative_chars): New variable.
20116 (syms_of_character): Declare it as a Lisp variable.
20117
20118 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20119 enable_font_backend is nonzero, accept the composition method
20120 COMPOSITION_WITH_GLYPH_STRING.
20121
20122 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20123 enumeration COMPOSITION_WITH_GLYPH_STRING.
20124
20125 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20126 members clip_x, clip_y, clip_width, and clip_height.
20127 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20128
20129 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20130 --enable-font-backend. Call syms_of_font.
20131
20132 * fns.c (assoc_no_quit): New function.
20133
20134 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20135 (face_for_font, new_fontset_from_font)
20136 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20137
20138 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20139 (fontset_font, fontset_ascii, face_for_char)
20140 (make_fontset_for_ascii_face, Ffont_info)
20141 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20142 is nonzero, use font-backend mechanism.
20143 (find_font_encoding): Make it non-static.
20144 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20145 New functions.
20146
20147 * frame.h (struct frame): New members resx and resy.
20148 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20149 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20150
20151 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20152 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20153
20154 * lisp.h (assoc_no_quit): Extern it.
20155
20156 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20157 Through out the file, use FONT_INFO_FROM_FACE instead of
20158 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20159 rif->per_char_metric.
20160 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20161 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20162 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20163 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20164 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20165 nonzero, use font-backend mechanism.
20166 (get_per_char_metric): New function.
20167
20168 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20169 (set_lface_from_font_name)
20170 (set_font_frame_param, free_realized_face)
20171 (prepare_face_for_display, clear_face_gcs)
20172 (Finternal_set_font_selection_order, realize_x_face)
20173 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20174 font-backend mechanism.
20175 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20176 (load_face_font) [USE_FONT_BACKEND]: Abort.
20177 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20178 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20179
20180 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20181 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20182 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20183 nonzero, register all available font drivers. Call
20184 x_default_font_parameter for deciding a font.
20185 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20186
20187 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20188 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20189 (x_set_glyph_string_clipping_exactly)
20190 (x_compute_glyph_string_overhangs)
20191 (x_draw_glyph_string_foreground)
20192 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20193 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20194 enable_font_backend is nonzero, use font-backend mechanism.
20195 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20196
201972008-02-01 Kenichi Handa <handa@m17n.org>
20198
20199 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20200 system_eol_type.
20201 (syms_of_coding): Initialize system_eol_type.
20202
20203 * process.c (Fset_process_coding_system): Inherit system's eol
20204 format if necessary.
20205
202062008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20207
20208 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20209
202102008-02-01 Kenichi Handa <handa@m17n.org>
20211
20212 * coding.c (decode_eol): Pay attention to buffer relocation in
20213 del_range_2.
20214 (decode_coding): Call decode_eol before restoring undo_list.
20215
202162008-02-01 Kenichi Handa <handa@m17n.org>
20217
20218 * charset.c (Fdefine_charset_internal): Fix setting of
20219 emacs_mule_bytes.
20220
202212008-02-01 Kenichi Handa <handa@m17n.org>
20222
20223 * keyboard.c (read_char): Check if C is a character or not before
20224 looking up Vkeyboard_translate_table.
20225
202262008-02-01 Kenichi Handa <handa@m17n.org>
20227
20228 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20229 condition to terminate the loop.
20230
202312008-02-01 Kenichi Handa <handa@m17n.org>
20232
20233 * coding.c (produce_composition): Compare charbuf[i] instead of
20234 args[i] against 0.
20235 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20236
202372008-02-01 Kenichi Handa <handa@m17n.org>
20238
20239 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20240 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20241 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20242 detect_coding.
20243 (emacs_mule_char): Handle old style (Emacs 20) component character
20244 of a composition.
20245 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20246 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20247 composition rule.
20248 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20249
202502008-02-01 Kenichi Handa <handa@m17n.org>
20251
20252 * coding.c (encode_coding_ccl): Allocate destination dynamically
20253 when necessary.
20254
202552008-02-01 Kenichi Handa <handa@m17n.org>
20256
20257 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20258 the loop. When quitted, show a proper error message.
20259
202602008-02-01 Kenichi Handa <handa@m17n.org>
20261
20262 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20263 src->clip_head and src->clip_tail temporarily instead of src->hl.
20264
20265 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20266 character sequence.
20267 (Fccl_execute_on_string): Use ASET, not XSET.
20268
202692008-02-01 Kenichi Handa <handa@m17n.org>
20270
20271 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20272
202732008-02-01 Kenichi Handa <handa@m17n.org>
20274
20275 * coding.c (decode_coding): Fix the condition of terminating the
20276 decoding loop.
20277
202782008-02-01 Kenichi Handa <handa@m17n.org>
20279
20280 * data.c (Faset): On setting a character bigger than 255 in a
20281 unibyte string, signal an error instead of make the string multibyte.
20282
202832008-02-01 Kenichi Handa <handa@m17n.org>
20284
20285 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20286 made by a mapping table.
20287
202882008-02-01 Kenichi Handa <handa@m17n.org>
20289
20290 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20291 not.
20292 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20293 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20294
20295 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20296 s->face is NULL or not.
20297
202982008-02-01 Kenichi Handa <handa@m17n.org>
20299
20300 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20301 (x_draw_glyph_string): Fix drawing of right_overhang and
20302 left_overhang around/on cursor.
20303
20304 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20305
203062008-02-01 Kenichi Handa <handa@m17n.org>
20307
20308 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20309
203102008-02-01 Kenichi Handa <handa@m17n.org>
20311
20312 * coding.c (Fdefine_coding_system_internal)
20313 (Fdefine_coding_system_alias): Avoid a duplicated element in
20314 Vcoding_system_alist.
20315
203162008-02-01 Kenichi Handa <handa@m17n.org>
20317
20318 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20319
20320 * coding.c (Qcoding_system_define_form): New variable.
20321 (syms_of_coding): Intern and staticpro it.
20322 (Fcoding_system_p): Check Qcoding_system_define_form.
20323 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20324
20325 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20326 Fcoding_system_p.
20327 (CHECK_CODING_SYSTEM): If ID is not available, call
20328 Fcheck_coding_system.
20329 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20330 Try also Fcheck_coding_system.
20331
203322008-02-01 Kenichi Handa <handa@m17n.org>
20333
20334 * coding.c (code_conversion_restore): GCPRO arg.
20335
203362008-02-01 Kenichi Handa <handa@m17n.org>
20337
20338 * character.c (lisp_string_width): Check multibyteness of STRING.
20339
203402008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20341
20342 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20343 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20344 (decode_mac_font_name): Use decode_coding_c_string instead of
20345 decode_coding.
20346 (x_load_font): Initialize fontp->fontset to -1. Set
20347 fontp->encoding_type.
20348
203492008-02-01 Kenichi Handa <handa@m17n.org>
20350
20351 * search.c (search_buffer): Give up BM search on case-fold-search
20352 if one of a target character has a case-equivalence of different
3b59c351 20353 byte length even if that target character is an ASCII.
aac0c6e3
MR
20354 (simple_search): Fix calculation of byte length of matched text.
20355 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20356
203572008-02-01 Kenichi Handa <handa@m17n.org>
20358
20359 * coding.c (decode_coding): Fix handling of invalid bytes.
20360
203612008-02-01 Kenichi Handa <handa@m17n.org>
20362
20363 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20364 Unicode characters.
20365
203662008-02-01 Kenichi Handa <handa@m17n.org>
20367
20368 * coding.c (encode_coding_object): If a pre-write-conversion
20369 function makes a new buffer, kill it.
20370
203712008-02-01 Kenichi Handa <handa@m17n.org>
20372
20373 * coding.c (QCascii_compatible_p): New variable.
20374 (syms_of_coding): Initialize it.
20375 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20376 calling string_char.
20377 (record_conversion_result): Add `default:' case.
20378 (coding_charset_list): Delete unused variable `coding_type'.
20379 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20380 property in the plist of the coding system.
20381 (Fcoding_system_put): Check QCascii_compatible_p.
20382
203832008-02-01 Miles Bader <miles@gnu.org>
20384
20385 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20386 removed calculation of frame `f', as it's now used.
20387
203882008-02-01 Kenichi Handa <handa@m17n.org>
20389
20390 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20391 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20392 (UNIDATA): New variable.
20393 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20394 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20395 $(RUN_TEMACS) unconditionally.
20396
203972008-02-01 Kenichi Handa <handa@m17n.org>
20398
20399 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20400 (admindir): New variable.
20401 ($(lispsource)international/charprop.el): New target.
20402
204032008-02-01 Miles Bader <miles@gnu.org>
20404
20405 * character.c (chars-in-region): Remove obsolete function.
20406 (syms_of_character): Remove its initialization.
20407
204082008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20409
20410 * w32select.c (validate_coding_system)
20411 (setup_windows_coding_system): New functions.
20412 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20413 setup_windows_coding_system.
20414 (setup_config, Fw32_get_clipboard_data): Use
20415 validate_coding_system.
20416 (Fx_selection_exists): Move call to setup_config to a place
20417 where signals are allowed.
20418
20419 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20420 (Fcheck_coding_system): Add declarations.
20421
204222008-02-01 Kenichi Handa <handa@m17n.org>
20423
20424 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20425
204262008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20427
20428 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20429 string as the second argument for x_new_fontset.
20430
204312008-02-01 Kenichi Handa <handa@m17n.org>
20432
20433 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20434 (encode_coding_object): Use safe_call instead of call2.
20435
204362008-02-01 Kenichi Handa <handa@m17n.org>
20437
20438 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20439
20440 * Makefile.in (lisp): Include charprop.el.
20441
204422008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20443
20444 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20445 Not sure if it's unnecessary.
20446
204472008-02-01 Steven Tamm <steventamm@mac.com>
20448
20449 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20450 some possibly unnecessary fontset checking code that crashed
20451 when creating a new frame.
20452
204532008-02-01 Kenichi Handa <handa@m17n.org>
20454
20455 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20456 lookup_face.
20457
20458 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20459
20460 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20461
204622008-02-01 Kenichi Handa <handa@m17n.org>
20463
20464 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20465 (coding_charset_list): New function.
20466
20467 * coding.h (coding_charset_list): Extern it.
20468
204692008-02-01 Kenichi Handa <handa@m17n.org>
20470
20471 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20472 concatenation of family and registry.
20473
204742008-02-01 Kenichi Handa <handa@m17n.org>
20475
20476 * character.h (BYTE8_STRING): Fix typo.
20477
20478 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20479 string to multibyte (sync to HEAD).
20480
20481 * casefiddle.c (casify_region): Handle changes in byte-length
20482 using replace_range_2 (sync to HEAD).
20483
204842008-02-01 Andreas Schwab <schwab@suse.de>
20485
20486 * chartab.c (map_char_table): GCPRO table and arg.
20487
204882008-02-01 Kenichi Handa <handa@m17n.org>
20489
20490 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20491 already at limit.
20492
204932008-02-01 Kenichi Handa <handa@m17n.org>
20494
20495 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20496 instead of fast_c_string_match_ignore_case.
20497 (find_font_encoding): Change argument to Lisp_Object. Use
20498 fast_string_match_ignore_case instead of
20499 fast_c_string_match_ignore_case. Change caller.
20500
205012008-02-01 Kenichi Handa <handa@m17n.org>
20502
20503 * xdisp.c (get_next_display_element): In unibyte case, decide to
20504 display in octal form by checking a character by
20505 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20506
20507 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20508
20509 * character.c (unibyte_has_multibyte_table): New variable.
20510
20511 * character.h (unibyte_has_multibyte_table): Extern it.
20512 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20513
205142008-02-01 Kenichi Handa <handa@m17n.org>
20515
20516 * coding.c (encode_coding_iso_2022): Fix handling of charset
20517 annotation.
20518
205192008-02-01 Kenichi Handa <handa@m17n.org>
20520
20521 * coding.c (setup_coding_system): If coding_system is nil, use
20522 Qundecided.
20523 (Fterminal_coding_system): Return nil if terminal coding system is
20524 `undecided'.
20525 (syms_of_coding): Define coding-system `undecided' here. Setup
20526 terminal_coding as `undecided'.
20527
205282008-02-01 Kenichi Handa <handa@m17n.org>
20529
20530 * xdisp.c (message_dolog, set_message_1): Call
20531 unibyte_char_to_multibyte with arg type int.
20532
20533 * lread.c (read1): Fix reading of a char-table.
20534
20535 * print.c (print_object): Include sub char-table in circularities
20536 detection.
20537
205382008-02-01 Kenichi Handa <handa@m17n.org>
20539
20540 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20541 Append the found sequences in car of ARGS instead of prepending.
20542
205432008-02-01 Kenichi Handa <handa@m17n.org>
20544
20545 * fileio.c (report_file_error): Make a unibyte string from
20546 strerror (errorno).
20547 (Fsubstitute_in_file_name): Fix the arg to
20548 unibyte_char_to_multibyte. It is evaluated twice.
20549
205502008-02-01 Kenichi Handa <handa@m17n.org>
20551
20552 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20553
205542008-02-01 Kenichi Handa <handa@m17n.org>
20555
20556 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20557 BOM is not found.
20558 (detect_coding, detect_coding_system): Optimization for ISO-2022
20559 when no 8-bit data is found.
20560
205612008-02-01 Jason Rumney <jasonr@gnu.org>
20562
20563 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20564
205652008-02-01 Kenichi Handa <handa@m17n.org>
20566
20567 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20568 CHARS.
20569
205702008-02-01 Steven Tamm <steventamm@mac.com>
20571
20572 * macterm.c (mac_encode_char): Add charset argument and update
20573 to use encoding_type.
20574 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20575 switch to pure fontset.
20576 (decode_mac_font_name): Temporarily remove decoding.
20577 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20578 (x_load_font): Temporarily remove encoding.
20579
205802008-02-01 Kenichi Handa <handa@m17n.org>
20581
20582 * xfaces.c (Fface_font): If frame is not on a window system,
20583 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20584 refer to face->font.
20585 (split_font_name_into_vector, build_font_name_from_vector)
20586 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20587 when HAVE_WINDOW_SYSTEM is defined.
20588
205892008-02-01 Kenichi Handa <handa@m17n.org>
20590
20591 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20592 (x_produce_glyphs): Fix setting of members of cmp in case
20593 cmp->glyph_len is zero.
20594
20595 * fontset.c (Fset_fontset_font): Fix docstring.
20596 (Ffontset_info): Make it backward compatible. New arg ALL.
20597
205982008-02-01 Kim F. Storm <storm@cua.dk>
20599
20600 * process.c (read_process_output): Grow decoding_buf when needed;
20601 this could cause a crash in allocate_string and compact_small_strings.
20602
206032008-02-01 Kenichi Handa <handa@m17n.org>
20604
20605 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20606
206072008-02-01 Kenichi Handa <handa@m17n.org>
20608
20609 * coding.c (setup_coding_system): Set coding->common_flags
20610 correctly for raw-text.
20611 (consume_chars): On encoding unibyte text by raw-text, don't check
20612 multibyte form.
20613 (encode_coding): On encoding by raw-text, never use translation tables.
20614
20615 * fileio.c (e_write): Short cut for the case of no encoding.
20616
206172008-02-01 Kenichi Handa <handa@m17n.org>
20618
20619 * coding.c (detect_coding, detect_coding_system): Delete unused
20620 variables.
20621
206222008-02-01 Kenichi Handa <handa@m17n.org>
20623
20624 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20625 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20626
206272008-02-01 Kenichi Handa <handa@m17n.org>
20628
20629 * coding.c (Ffind_coding_systems_region_internal): Include
20630 raw-text and no-conversion in the result.
20631
206322008-02-01 Kenichi Handa <handa@m17n.org>
20633
20634 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20635 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20636 FONT_DEF.
20637 (font_def_arg, add_arg, from_arg, to_arg): New args.
20638 (set_fontset_font): Change argument.
20639 (Fset_fontset_font): Fix for the case that TARGET is a script
20640 name and charset name.
20641 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20642
206432008-02-01 Kenichi Handa <handa@m17n.org>
20644
20645 * fontset.c (fontset_font): Rename from fontset_face. Change return
20646 value.
20647 (face_suitable_for_char_p, face_for_char): Adjust for the change
20648 of fontset_font.
20649 (make_fontset_for_ascii_face): Fix setting of the fontset element
20650 for ASCII.
20651 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20652 to get a font name.
20653 (Ffontset_info): Adjust for the change of fontset_font.
20654
20655 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20656
20657 * character.h (LEADING_CODE_LATIN_1_MIN)
20658 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20659
206602008-02-01 Kenichi Handa <handa@m17n.org>
20661
20662 * editfns.c (check_translation): New function.
20663 (Ftranslate_region_internal): Handle M:N mapping.
20664
206652008-02-01 Kenichi Handa <handa@m17n.org>
20666
20667 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20668
206692008-02-01 Kenichi Handa <handa@m17n.org>
20670
20671 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20672 goto invalid_code.
20673 (decode_coding_iso_2022): Fix handling of invalid designation.
20674
20675 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20676 after calling code_conversion_save.
20677
206782008-02-01 Kenichi Handa <handa@m17n.org>
20679
20680 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20681
20682 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20683
20684 * fontset.c: Include "intervals.h".
20685 (fontset_face): Fix comparing of Lisp_Objects.
20686 (free_face_fontset, new_fontset_from_font_name): Fix
20687 Lisp_Object/int mixup.
20688
20689 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20690
20691 * coding.c: Add many prototypes for static functions.
20692 (get_translation_table): Allow max_lookup to be NULL.
20693 (decode_coding, Ffind_coding_systems_region_internal)
20694 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20695 get_translation_table with max_lookup NULL.
20696
206972008-02-01 Kenichi Handa <handa@m17n.org>
20698
20699 * coding.c (get_translation_table): Declare it as Lisp_Object.
20700 (LOOKUP_TRANSLATION_TABLE): New macro.
20701 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20702 instead of CHAR_TABLE_REF.
20703
207042008-02-01 Kenichi Handa <handa@m17n.org>
20705
20706 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20707 annotation data format.
20708 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20709 Change arguments FROM and TO to single argument NCHARS. Change caller.
20710 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20711 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20712 (decode_coding_ccl, decode_coding_charset): Pay attention to
20713 coding->charbuf_used.
20714 (get_translation): New function.
20715 (produce_chars): New arguments translation_table and last_block.
20716 Translate characters here. Return number of carryover chars.
20717 Change caller.
20718 (produce_composition): New argument pos. Change caller.
20719 Adjust for the change of annotation data format.
20720 (produce_charset, produce_annotation): Likewise.
20721 (decode_coding, encode_coding): Don't call translate_chars.
20722 (consume_chars): New arg translation_table. Change caller.
20723 (translate_chars): Delete.
20724 (syms_of_coding): Make translation-table's number of extra slots 2.
20725
207262008-02-01 Kenichi Handa <handa@m17n.org>
20727
20728 * search.c (simple_search): Fix setting this_pos_byte in backward
20729 search.
20730
20731 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20732 byte sequence.
20733 (detect_coding_ccl): Fix setting of the variable valids.
20734
207352008-02-01 Kenichi Handa <handa@m17n.org>
20736
20737 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20738
20739 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20740
20741 * editfns.c (Ftranslate_region_internal): Rename from
20742 Ftranslate_region. Accept a char-table in TABLE.
20743 (syms_of_editfns): Defsubr Stranslate_region_internal.
20744
20745 * xfaces.c (set_lface_from_font_name): If a font is specified for
20746 a frame, generate a fontset from the font.
20747 (build_scalable_font_name): If the scalable font is requested for
20748 a specific size, don't change that size.
20749 (try_font_list): Try a scalable font also in the case that a
20750 pattern string is specified.
20751
207522008-02-01 Kenichi Handa <handa@m17n.org>
20753
20754 * xfaces.c (Fface_font): New optional arg CHARACTER.
20755
207562008-02-01 Kenichi Handa <handa@m17n.org>
20757
20758 * charset.h (CHARSET_OFFSET): New macro.
20759
207602008-02-01 Kenichi Handa <handa@m17n.org>
20761
20762 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20763
20764 * fontset.c (fontset_face): Handle the case that repertory is a
20765 char-table.
20766 (find_font_encoding): Return nil for unknown encoding.
20767 (Fset_fontset_font): Ignore a font of unknown encoding.
20768
207692008-02-01 Kenichi Handa <handa@m17n.org>
20770
20771 * keymap.c (describe_vector): Handle default value of a char table.
20772
20773 * fontset.c (fontset_face): Handle fallback fonts correctly.
20774 (Ffontset_info): Return infomation about fallback fonts.
20775
207762008-02-01 Kenichi Handa <handa@m17n.org>
20777
20778 * fontset.c (FONTSET_DEFAULT): New macro.
20779 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20780 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20781 the case that it is nil.
20782 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20783 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20784
20785 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20786 subset or superset.
20787
207882008-02-01 Kenichi Handa <handa@m17n.org>
20789
20790 * emacs.c (main): Call init_charset after syms_of_XXX.
20791
20792 * charset.c (Vcharset_map_directory): Delete.
20793 (Vcharset_map_path): New variable.
20794 (load_charset_map_from_file): Use Vcharset_map_path instead.
20795 (init_charset): Initialize Vcharset_map_path.
20796 (syms_of_charset): Delete declaration of "charset-map-directory",
20797 add declaration of "charset-map-path".
20798
207992008-02-01 Kenichi Handa <handa@m17n.org>
20800
20801 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20802 ASCII only string.
20803
20804 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20805
20806 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20807 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20808
208092008-02-01 Kenichi Handa <handa@m17n.org>
20810
20811 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20812
20813 * coding.c (QCmnemonic, QCdefalut_char)
20814 (QCdecode_translation_table, QCencode_translation_table)
20815 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20816 (get_translation_table): Return a list of translation tables if
20817 necessary.
20818 (decode_coding): Call get_translation_table with ENCODEP 0.
20819 (char_encodable_p): If translation_table is non-nil, always call
20820 translate_char.
20821 (Fdefine_coding_system_internal): Accept list of translation
20822 tables as :encode-translation-table and :decode-translation-table.
20823 (Fcoding_system_put): New function.
20824 (syms_of_coding): Declare new symbols. Defsubr
20825 Scoding_system_put.
20826 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20827 typically JISX0212.
20828
20829 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20830 when the charset is superset type.
20831
20832 * character.c (translate_char): Accept list of translation tables.
20833
208342008-02-01 Kenichi Handa <handa@m17n.org>
20835
20836 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20837 (CODING_ATTR_TRANS_TBL): New macro.
20838
20839 * coding.c (get_translation_table): New function.
20840 (translate_chars): Fix the bug of skipping annotation data.
20841 (decode_coding, encode_coding): Utilize get_translation_table.
20842 (char_encodable_p, Funencodable_char_position): Translate char if
20843 necessary.
20844 (Ffind_coding_systems_region_internal)
20845 (Fcheck_coding_systems_region): Setup translation table for encode
20846 in a coding system attribute vector in advance.
20847 (Fdefine_coding_system_internal): Allow a symbol as translation
20848 table. For shift-jis type coding system, allow 4th charset.
20849
208502008-02-01 Kenichi Handa <handa@m17n.org>
20851
20852 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20853
20854 * xdisp.c (get_next_display_element): Pass -1 as POS to
20855 FACE_FOR_CHAR if displaying a C-string.
20856
208572008-02-01 Kenichi Handa <handa@m17n.org>
20858
20859 * composite.c (get_composition_id): Handle xoff and yoff in a
20860 composition rule.
20861
20862 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20863 (struct composition): New member lbearing and rbearing.
20864
20865 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20866 (x_get_glyph_overhangs): Handle a composition glyph.
20867 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20868
20869 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20870 composition glyph.
20871
208722008-02-01 Kenichi Handa <handa@m17n.org>
20873
20874 * print.c: Include charset.h.
20875 (Vprint_charset_text_property): New variable.
20876 (Qdefault): Extern it.
20877 (PRINT_STRING_NON_CHARSET_FOUND)
20878 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20879 (print_check_string_result): New variable.
20880 (print_check_string_charset_prop): New function.
20881 (print_prune_charset_plist): New variable.
20882 (print_prune_string_charset): New function.
20883 (print_object): Call print_prune_string_charset if
20884 Vprint_charset_text_property is not t.
20885 (print_interval): Print nothing if interval->plist is nil.
20886 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20887 variable. Init and staticpro print_prune_charset_plist.
20888
208892008-02-01 Kenichi Handa <handa@m17n.org>
20890
20891 * fontset.c (new_fontset_from_font_name): Use the specified font
20892 for all characters in the new fontset.
20893
20894 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20895 OBJECT args.
20896
20897 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20898 OBJECT args for composition too.
20899
20900 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20901 OBJECT args.
20902
209032008-02-01 Kenichi Handa <handa@m17n.org>
20904
20905 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20906
20907 * fontset.c (reorder_font_vector): Adjust for the change of
20908 FONT_DEF format.
20909 (fontset_face): New arg id. Change caller.
20910 (face_for_char): New args pos and object.
20911 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20912 (fs_query_fontset): Check NAME by Fassoc too.
20913 (Fset_fontset_font): Allow non-XLFD font name.
20914 (Ffontset_info): Adjust for the change of FONT_DEF format.
20915
20916 * fontset.h (face_for_char): Adjust prototype.
20917
20918 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20919 (append_space, extend_face_to_end_of_line)
20920 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20921 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20922
20923 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20924 POS and OBJECT args.
20925
20926 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20927 POS and OBJECT args.
20928
209292008-02-01 Jason Rumney <jasonr@gnu.org>
20930
20931 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20932 of GlobalAlloc'ed memory.
20933
209342008-02-01 Kenichi Handa <handa@m17n.org>
20935
20936 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20937
20938 * charset.h (charset_table_used): Delete extern.
20939
20940 * charset.c (charset_table_used): Make it static.
20941 (map_charset_chars): Fix args to c_function with.
20942
20943 * chartab.c (map_sub_char_table_for_charset): Fix args to
20944 c_function with.
20945
20946 * coding.h (enum coding_result_code): Delete
20947 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20948
20949 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20950 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20951 (Vlast_code_conversion_error): New variables.
20952 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20953 (ONE_MORE_BYTE): Record error if any instead of signaling an
20954 error. If non-ASCII multibyte char is found, return the negative
20955 value of the code. All callers changed to check it.
20956 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20957 (record_conversion_result): New function. Change all codes setting
20958 coding->result to call this function.
20959 (detect_coding_utf_8, decode_coding_utf_8)
20960 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20961 Don't use the local variable incomplete.
20962 (emacs_mule_char): Change the second arg to `const'.
20963 (decode_coding): Fix of flushing out unprocessed data.
20964 (make_conversion_work_buffer): Fix making of a work buffer.
20965 (decode_coding_object): Return coding->dst_object.
20966
20967 * fontset.c (set_fontset_font): Fix args.
20968
20969 * lisp.h (CHARACTERBITS): Define as 22.
20970
20971 * process.c (send_process): Be sure to set coding->src_multibyte.
20972
20973 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20974
209752008-02-01 Kenichi Handa <handa@m17n.org>
20976
20977 * xdisp.c (handle_auto_composed_prop): Give limit to
20978 Fnext_single_char_property_change.
20979
209802008-02-01 Kenichi Handa <handa@m17n.org>
20981
20982 * composite.c (syms_of_composite): Don't make the composition hash
20983 table weak.
20984
20985 * fontset.c (Fset_fontset_font): Fix docstring.
20986
20987 * lisp.h (detect_coding_system): Adjust prototype.
20988
20989 * fileio.c (kill_workbuf_unwind): Delete this function.
20990 (Finsert_file_contents): Adjust the call of detect_coding_system.
20991 Get conversion_buffer by code_conversion_save. Use the macro
20992 CODING_MAY_REQUIRE_DECODING. After decoding, update
20993 coding_system.
20994
20995 * coding.h (make_conversion_work_buffer): Delete extern.
20996 (code_conversion_save): Extern it.
20997
20998 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20999 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21000 (decode_coding_utf_8): Don't do eol converion.
21001 (detect_coding_utf_16): Check coding->src_chars, not
21002 coding->src_bytes. Add heuristics for those that have no signature.
21003 (decode_coding_emacs_mule, decode_coding_iso_2022)
21004 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21005 Don't do eol converion.
21006 (adjust_coding_eol_type): Return a new coding system.
21007 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21008 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21009 each change.
21010 (decode_coding): Pay attention to undo_list. Do eol conversion for
21011 all types of coding-systems (if necessary).
21012 (Vcode_conversion_work_buf_list): Delete it.
21013 (Vcode_conversion_reused_workbuf): Rename from
21014 Vcode_conversion_reused_work_buf.
21015 (Vcode_conversion_workbuf_name): New variable.
21016 (reused_workbuf_in_use): New variable.
21017 (make_conversion_work_buffer): Delete the arg DEPTH.
21018 (code_conversion_restore): Change argument to cons.
21019 (code_conversion_save): Delete the argument BUFFER. Change callers.
21020 (detect_coding_system): New argument src_chars. Change callers.
21021 Fix for utf-16 detection.
21022 (init_coding_once): Don't use ISO_carriage_return.
21023 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21024 reused_workbuf_in_use.
21025
210262008-02-01 Kenichi Handa <handa@m17n.org>
21027
21028 * keymap.c (store_in_keymap): Pay attention to the case that idx
21029 is a cons specifying a character range.
21030
210312008-02-01 Kenichi Handa <handa@m17n.org>
21032
21033 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21034 HANDLED_RECOMPUTE_PROPS.
21035
21036 * coding.c (Fdefine_coding_system_internal): Fix checking of
21037 ascii compatibility.
21038
210392008-02-01 Kenichi Handa <handa@m17n.org>
21040
21041 * charset.c (find_charsets_in_text): Delete unused locale variable.
21042 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21043
21044 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21045 Resync charset_list to Vemacs_mule_charset_list.
21046
21047 * keymap.c (store_in_keymap): Pay attention to the case that idx
21048 is a cons specifying a character range.
21049
210502008-02-01 Kenichi Handa <handa@m17n.org>
21051
21052 * composite.c (update_compositions): Bind inhibit-read-only, etc
21053 to t before calling remove-list-of-text-properties.
21054
21055 * print.c (print_object): Always print ASCII chars as is.
21056
210572008-02-01 Kenichi Handa <handa@m17n.org>
21058
21059 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21060
21061 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21062 is a char table.
21063
210642008-02-01 Kenichi Handa <handa@m17n.org>
21065
21066 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21067
210682008-02-01 Kenichi Handa <handa@m17n.org>
21069
21070 * xfaces.c (set_lface_from_font_name): Fix for the case that
21071 FONTNAME is not fontset name.
21072
210732008-02-01 Kenichi Handa <handa@m17n.org>
21074
21075 * fns.c (base64_encode_1): Fix previous change.
21076
210772008-02-01 Kenichi Handa <handa@m17n.org>
21078
21079 * fontset.c (set_fontset_font): New function.
21080 (Fset_fontset_font): If a font is specified for a charset, use
21081 map_charset_chars to store the font spec in a fontset.
21082
210832008-02-01 Kenichi Handa <handa@m17n.org>
21084
21085 * fontset.c (fontset_face): Create a fallback fontset on demand.
21086 (make_fontset): Don't create a fallback fontset here.
21087 (free_face_fontset): Free a fallback fontset (if any) too.
21088 (n_auto_fontsets): Delete this variable.
21089 (auto_fontset_alist): New variable.
21090 (new_fontset_from_font_name): Check auto_fontset_alist.
21091 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21092 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21093 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21094 Defsubr Sfontset_list_all.
21095
210962008-02-01 Kenichi Handa <handa@m17n.org>
21097
21098 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21099
211002008-02-01 Kenichi Handa <handa@m17n.org>
21101
21102 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21103
211042008-02-01 Kenichi Handa <handa@m17n.org>
21105
21106 * editfns.c (Fgoto_char): Fix docstring.
21107
211082008-02-01 Kenichi Handa <handa@m17n.org>
21109
21110 * insdel.c (insert_from_gap): Adjust intervals correctly.
21111
211122008-02-01 Jason Rumney <jasonr@gnu.org>
21113
21114 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21115 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21116 (w32_initialize): Try to load it.
21117 (x_get_font_repertory): Use it if available.
21118 (w32_encode_char): Add shortcut for unicode output.
21119
21120 * w32fns.c (w32_load_system_font): Default charset to -1.
21121 (x_to_w32_charset): Match all fonts for unicode.
21122 (w32_to_x_charset): New parameter matching. Don't return partial
21123 or wildcard charsets.
21124 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21125 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21126 (w32_to_x_font): Match charset to real charset.
21127 (enum_font_cb2): Always list unicode versions.
21128
21129 * makefile.w32-in (temacs): Increase EMHEAP.
21130
211312008-02-01 Jason Rumney <jasonr@gnu.org>
21132
21133 * w32term.c (w32_encode_char): New charset parameter.
21134 font_info.encoding becomes encoding_type.
21135 (x_get_font_repertory): New function. Warning: stub only!
21136 (x_new_font): Return quickly if font already set.
21137 (x_new_fontset): fontsetname parameter is Lisp_Object.
21138 Use new fs_query_fontset. Try new_fontset_from_font_name.
21139 Use fontset_name for return value.
21140
21141 * w32term.h: Declare x_get_font_repertory.
21142
21143 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21144 place of find_charset_in_text. Use encode_coding_object in place
21145 of encode_coding.
21146 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21147 decode_coding.
21148
21149 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21150 of x_new_fontset.
21151 (w32_load_system_font): Initialize charset as unicode.
21152 font_info.encoding becomes encoding_type.
21153 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21154 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21155 (syms_of_w32fns): Set get_font_repertory_func.
21156
21157 * w32console.c: Include character.h. Use terminal_encode_buffer
21158 from term.c.
21159 (write_glyphs): Use new version of encode_terminal_code. Use
21160 encode_coding_object in place of encode_coding.
21161
21162 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21163 encoding becomes encoding_type.
21164
21165 * term.c (terminal_encode_buffer): Make externally visible.
21166
21167 * makefile.w32-in: Add character.h dependancies.
21168 (character.o, chartab.o): New targets.
21169
211702008-02-01 Kenichi Handa <handa@m17n.org>
21171
21172 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21173 CODING_ID_EOL_TYPE.
21174
211752008-02-01 Andreas Schwab <schwab@suse.de>
21176
21177 * coding.c (produce_chars): Revert last change.
21178
211792008-02-01 Kenichi Handa <handa@m17n.org>
21180
21181 * charset.h (charset_unicode): Extern it.
21182
21183 * charset.c (string_xstring_p): Check by (C >= 0x100).
21184 (find_charsets_in_text): Change format of the arc CHARSETS. New
21185 arg MULTIBYTE.
21186 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21187 change of find_charsets_in_text.
21188 (Fsplit_char): Fix doc. Never return unknown.
21189
21190 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21191
21192 * coding.c (Fdefine_coding_system_alias): Update
21193 Vcoding_system_list.
21194
21195 * fontset.c (load_font_get_repertory): Pay attention to the case
21196 that ENCODING of a font is specified by a char-table.
21197
21198 * xterm.c (x_get_font_repertory): Handle the case that the
21199 encoding of font is other than Unicode.
21200
212012008-02-01 Kenichi Handa <handa@m17n.org>
21202
21203 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21204 if a character is encodable by the terminal coding system. If
21205 not, produces proper number of `?'s. Update
21206 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21207 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21208
212092008-02-01 Kenichi Handa <handa@m17n.org>
21210
21211 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21212 variables.
21213 (encode_terminal_code): Change argument. Encode multiple
21214 characters at once. Store the result of encoding in
21215 terminal_encode_buffer.
21216 (write_glyphs, insert_glyphs): Adjust for the change of
21217 encode_terminal_code.
21218 (term_init): Initialize terminal_encode_buffer and
21219 terminal_encode_buf_size.
21220
21221 * coding.c (consume_chars): If coding->src_object is nil, don't
21222 check annotation.
21223
212242008-02-01 Kenichi Handa <handa@m17n.org>
21225
21226 * character.c (char_string): Use ASCII_CHAR_P instead of
21227 SINGLE_BYTE_CHAR_P.
21228
212292008-02-01 Kenichi Handa <handa@m17n.org>
21230
21231 * xdisp.c (handle_auto_composed_prop): Check if the last
21232 characters of auto-composed region is newly composed with the
21233 following characters.
21234 (handle_composition_prop): Fix checking of point being inside
21235 composition.
21236
212372008-02-01 Kenichi Handa <handa@m17n.org>
21238
21239 * fns.c (concat): Don't change multibyteness of the result by
21240 concatenating an 8-bit character.
21241
21242 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21243 multibyteness of the result when newelt is an 8-bit character.
21244
212452008-02-01 Dave Love <fx@gnu.org>
21246
21247 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21248 EMACS_INT.
21249
21250 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21251
21252 * xfaces.c (face_numeric_value): Declare dim size_t.
21253 (Finternal_lisp_face_equal_p): Remove unused f.
21254
21255 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21256 (MATRIX_ROW): Remove unused vars.
21257 (draw_glyphs, x_insert_glyphs, fast_find_position)
21258 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21259 byte/char counts.
21260
21261 * regex.c (regex_compile): Remove unused var.
21262
21263 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21264
21265 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21266 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21267
21268 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21269
21270 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21271
21272 * fileio.c (Fwrite_region): Remove unused var.
21273
21274 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21275 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21276
21277 * composite.c (Fremove_list_of_text_properties): Declare.
21278
21279 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21280 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21281 (coding_inherit_eol_type): Remove unused attrs.
21282 (detect_coding): Cast arg of detect_eol.
21283
21284 * charset.c (syms_of_charset): Remove unused var p.
21285 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21286 byte/char counts.
21287
21288 * casetab.c (set_case_table): Remove unused var.
21289
21290 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21291 unused vars.
21292
212932008-02-01 Dave Love <fx@gnu.org>
21294
21295 * xterm.c (x_bitmap_mask): Declare.
21296
212972008-02-01 Dave Love <fx@gnu.org>
21298
21299 * xterm.c (x_term_init): Fix type error.
21300
21301 * lisp.h: Add Funibyte_char_to_multibyte.
21302
21303 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21304 (Fset_coding_system_priority): Doc fix.
21305
21306 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21307
21308 * indent.c (check_composition): Make start and end EMACS_INT.
21309
21310 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21311
21312 * xdisp.c (handle_composition_prop, check_point_in_composition):
21313 Make buffer positions EMACS_INT.
21314
21315 * composite.c (find_composition, run_composition_function)
21316 (update_compositions, Ffind_composition_internal): Make buffer
21317 positions EMACS_INT.
21318
21319 * composite.h (find_composition, update_compositions): Make
21320 position args EMACS_INT.
21321
21322 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21323
21324 * intervals.c (get_property_and_range):
21325 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21326
21327 * unexalpha.c: Don't include varargs.h.
21328
213292008-02-01 Dave Love <fx@gnu.org>
21330
21331 * coding.h (ENCODE_UTF_8): New.
21332
21333 * Makefile.in (gtkutil.o): Depend on coding.h.
21334
21335 * coding.c (Fset_coding_system_priority): Doc fix.
21336
213372008-02-01 Kenichi Handa <handa@m17n.org>
21338
21339 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21340 the case of auto saving.
21341
213422008-02-01 Andreas Schwab <schwab@suse.de>
21343
21344 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21345 `range' from GC.
21346
213472008-02-01 Kenichi Handa <handa@m17n.org>
21348
21349 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21350
213512008-02-01 Kenichi Handa <handa@m17n.org>
21352
21353 * fileio.c (choose_write_coding_system): Return a decided coding system.
21354 (Fwrite_region): Set Vlast_coding_system_used to the return value
21355 of choose_write_coding_system.
21356
213572008-02-01 Kenichi Handa <handa@m17n.org>
21358
21359 * charset.c (Fset_charset_priority): Pay attention to duplicated
21360 arguments.
21361
21362 * coding.c (QCcategory): New variable.
21363 (syms_of_coding): Defsym it. Set all elements of
21364 Vcoding_category_table and their symbol values.
21365 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21366 coding-category-XXX, and coding-category-list.
21367 (Fdefine_coding_system_internal): Add category in the plist.
21368
213692008-02-01 Kenichi Handa <handa@m17n.org>
21370
21371 * callproc.c (Fcall_process): Handle carryover correctly.
21372
21373 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21374 (raw_text_coding_system): Check NILP (coding_system).
21375 (coding_inherit_eol_type): Check NILP (coding_system) and
21376 NILP (parent).
21377 (consume_chars): Fix for the case of raw-text.
21378
21379 * process.c (read_process_output): Handle carryover correctly.
21380
213812008-02-01 Dave Love <fx@gnu.org>
21382
21383 * regex.c (re_search_2): Fix last change.
21384
213852008-02-01 Kenichi Handa <handa@m17n.org>
21386
21387 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21388 target_multibyte. Even in a unibyte case, return a converted
21389 multibyte char.
21390 (GET_CHAR_AFTER): New macro.
21391 (PATFETCH): Translate via multibyte char.
21392 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21393 (SETUP_MULTIBYTE_RANGE): New macro.
21394 (regex_compile): Setup compiled code so that its multibyteness
21395 matches that of a target. Fix the handling of "[X-YZ]" using
21396 SETUP_MULTIBYTE_RANGE.
21397 (analyse_first) <charset>: For filling fastmap for all multibyte
21398 characters, don't check by BASE_LEADING_CODE_P.
21399 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21400 the same as RE_MULTIBYTE_P (bufp) now.
21401 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21402 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21403 (TRANSLATE_VIA_MULTIBYTE): New macro.
21404 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21405 It is the same as RE_MULTIBYTE_P (bufp) now.
21406 <exactn>: Translate via multibyte.
21407 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21408 translate it.
21409 <charset, charset_not>: Fetch a character by
21410 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21411 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21412 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21413 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21414 by GET_CHAR_AFTER.
21415 (bcmp_translate): Likewise.
21416
21417 * search.c (compile_pattern): Check the member target_multibyte,
21418 not the member multibyte of buf.
21419
21420 * lread.c (read1): While reading a string, set force_singlebyte
21421 and force_multibyte correctly.
21422
21423 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21424 up of unibyte_to_multibyte_table.
21425
214262008-02-01 Kenichi Handa <handa@m17n.org>
21427
21428 * coding.c (setup_coding_system): If coding has
21429 post-read-conversion or pre-write-conversion, set
21430 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21431 respectively.
21432 (decode_coding_gap): Run post-read-conversion if any.
21433
21434 * fileio.c (Finsert_file_contents): Even if we read into a
21435 unibyte buffer, check if we must decode the result or not.
21436
214372008-02-01 Kenichi Handa <handa@m17n.org>
21438
21439 * coding.c (make_conversion_work_buffer): Change the work buffer
21440 name to the same one as that of Emacs 21.
21441
214422008-02-01 Kenichi Handa <handa@m17n.org>
21443
21444 * coding.h (make_conversion_work_buffer): Adjust prototype.
21445 (code_conversion_restore): Don't extern it.
21446
21447 * coding.c (detected_mask): Delete unused variable.
21448 (decode_coding_iso_2022): Pay attention to the byte sequence of
21449 CTEXT extended segment, and retain those bytes as is.
21450 (decode_coding_ccl): Delete unused variable `valids'.
21451 (setup_coding_system): Delete unused variable `category'.
21452 (consume_chars): Delete unused variable `category'. Make it work
21453 for non-multibyte case.
21454 (make_conversion_work_buffer): Change argument.
21455 (saved_coding): Delete unused variable.
21456 (code_conversion_restore): Don't check saved_coding->destination.
21457 (code_conversion_save): New function.
21458 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21459 instead of record_unwind_protect.
21460 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21461 (detect_coding_system): Delete unused variable `mask'.
21462 (Fdefine_coding_system_internal): Delete unused variable id.
21463
21464 * fileio.c (kill_workbuf_unwind): New function.
21465 (Finsert_file_contents): On replacing, call
21466 make_conversion_work_buffer with correct args, and call
21467 record_unwind_protect with the first arg kill_workbuf_unwind.
21468
21469 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21470
214712008-02-01 Kenichi Handa <handa@m17n.org>
21472
21473 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21474 (fontset_add): Fix for the case that TO is less than TO1.
21475 (Ffontset_info): Don't use fallback fontset on checking the
21476 default fontset.
21477 (dump_fontset): New function for debugging.
21478
21479 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21480 coding_type is Qcharset.
21481
214822008-02-01 Kenichi Handa <handa@m17n.org>
21483
21484 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21485 (map_char_table): Don't inherit the value from the parent on
21486 initializing VAL. Adjust for the above change.
21487
214882008-02-01 Kenichi Handa <handa@m17n.org>
21489
21490 * coding.c (Qsignature, Qendian): Delete these variables.
21491 (syms_of_coding): Don't initialize them.
21492 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21493 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21494 detect_info->found.
21495 (decode_coding_utf_16): Don't detect BOM here.
21496 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21497 is NOT utf_16_without_bom.
21498 (setup_coding_system): For a coding system of type utf-16, check
21499 if the attribute :endian is Qbig or not (not nil or not), and set
21500 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21501 (detect_coding): If coding type is utf-16 and BOM detection is
21502 required, detect it.
21503 (Fdefine_coding_system_internal): For a coding system of type
21504 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21505
215062008-02-01 Kenichi Handa <handa@m17n.org>
21507
21508 * coding.c (coding_set_source): Fix for the case that the current
21509 buffer is different from coding->src_object.
21510 (decode_coding_object): Don't use the conversion work buffer if
21511 DST_OBJECT is a buffer.
21512
215132008-02-01 Dave Love <fx@gnu.org>
21514
21515 * lread.c (read_emacs_mule_char) [len==2]: Index
21516 emacs_mule_charset correctly.
21517
215182008-02-01 Dave Love <fx@gnu.org>
21519
21520 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21521 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21522 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21523 treated specially.)
21524 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21525 (detected_mask): Remove Big5 bits.
21526
215272008-02-01 Kenichi Handa <handa@m17n.org>
21528
21529 The following changes are to make the font rescaling facility
21530 compatible with Emacs 21.
21531
21532 * xfaces.c (Vface_font_rescale_alist): Rename from
21533 Vface_resizing_fonts.
21534 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21535 (font_rescale_ratio): Rename from font_resizing_ratio.
21536 (split_font_name): Set font->rescale_ratio.
21537 (better_font_p): Pay attention to font->rescale_ratio.
21538 (build_scalable_font_name): Likewise. Change RESX, and RESY
21539 fields.
21540 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21541
215422008-02-01 Kenichi Handa <handa@m17n.org>
21543
21544 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21545 (Qutf_16_le): Remove these variables.
21546 (syms_of_coding): Don't DEFSYM them.
21547 (decode_coding_utf_16): Fix handling of BOM.
21548 (encode_coding_utf_16): Fix handling of BOM.
21549
215502008-02-01 Kenichi Handa <handa@m17n.org>
21551
21552 * fileio.c (Finsert_file_contents): On replacing, before decoding
21553 the file into the work buffer, set point of the work buffer to the end.
21554
215552008-02-01 Dave Love <fx@gnu.org>
21556
21557 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21558
215592008-02-01 Dave Love <fx@gnu.org>
21560
21561 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21562 and fix C types.
21563
215642008-02-01 Kenichi Handa <handa@m17n.org>
21565
21566 * xdisp.c (SKIP_GLYPHS): New macro.
21567 (set_cursor_from_row): Pay attention to string display properties.
21568
21569 * category.c (copy_category_entry): Fix for the case that RANGE
21570 is an integer.
21571
21572 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21573
21574 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21575
215762008-02-01 Kenichi Handa <handa@m17n.org>
21577
21578 * charset.c (Fcharset_id_internal): New function.
21579 (syms_of_charset): Defsubr it.
21580
21581 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21582 with the last arg charset_list acquired from coding.
21583 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21584 the attribute coding_attr_ccl_valids.
21585
21586 * coding.h (enum define_coding_ccl_arg_index): Set the first
21587 member coding_arg_ccl_decoder to coding_arg_max.
21588
21589 * ccl.h (ccl_driver): Adjust prototype.
21590
21591 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21592 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 21593 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
21594 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21595 last arg Qnil.
21596
215972008-02-01 Kenichi Handa <handa@m17n.org>
21598
21599 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21600 call encode_char.
21601
21602 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21603
216042008-02-01 Dave Love <fx@gnu.org>
21605
21606 * composite.c (syms_of_composite): Make composition_hash_table weak.
21607
216082008-02-01 Kenichi Handa <handa@m17n.org>
21609
21610 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21611 (font_name_registry): Don't extern them.
21612 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21613
21614 * fontset.h (Qfontset): Don't extern it.
21615 (new_fontset_from_font_name): Extern it.
21616
21617 * fontset.c: Give 8 extra slots to fontset objects.
21618 (Qfontset_info): New variable.
21619 (syms_of_fontset): Defsym it.
21620 (FONTSET_FALLBACK): New macro.
21621 (fontset_face): Try also the default fontset.
21622 (make_fontset): Realize a fallback fontset from the default fontset.
21623 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21624 using split_font_name_into_vector and build_font_name_from_vector.
21625 (Fset_fontset_font): Access the elements of font_spec by enum
21626 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21627 name by using split_font_name_into_vector.
21628 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21629 generate a proper font name from the fontset name. Update
21630 Vfontset_alias_alist.
21631 (n_auto_fontsets): New variable.
21632 (new_fontset_from_font_name): New function.
21633 (Ffont_info): Store the information about fonts generated from the
21634 default fontset in the first extra slot of the returned char-table.
21635
21636 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21637 (font_name_registry): Delete function.
21638 (split_font_name_into_vector): New function.
21639 (build_font_name_from_vector): New function.
21640 (font_list): The argument REGISTRY is now a list of registry names.
21641 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21642 specifies an explicit font name, return the name as is. Make a
21643 list of registy names.
21644
21645 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21646 of x_new_fontset.
21647 (Fx_create_frame): Don't call x_new_fontset here. Just use
21648 x_list_fonts to check the existence of fonts.
21649
21650 * xterm.h (x_new_fontset): Adjust prototype.
21651
21652 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21653 string. Use new_fontset_from_font_name to create a fontset from a
21654 font name.
21655
216562008-02-01 Kenichi Handa <handa@m17n.org>
21657
21658 * syntax.c (Vfind_word_boundary_function_table): New name for
21659 Vnext_word_boundary_function_table.
21660 (find-word-boundary-function-table): New name for
21661 next-word-boundary-function-table.
21662
216632008-02-01 Dave Love <fx@gnu.org>
21664
21665 * Makefile.in: Fix some dependencies.
21666
21667 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21668 set it to nil before returning.
21669
21670 * composite.c (update_compositions): Fix type error.
21671
21672 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21673
216742008-02-01 Kenichi Handa <handa@m17n.org>
21675
21676 * xterm.c (x_new_font): Optimize for the case that the font is
21677 already set for the frame.
21678
216792008-02-01 Kenichi Handa <handa@m17n.org>
21680
21681 * chartab.c (char_table_ascii): Check if the char table contents
21682 is sub-char-table or not.
21683 (char_table_set, char_table_set_range): Fix argument to
21684 char_table_ascii.
21685
21686 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21687 (detect_coding_utf_8, detect_coding_utf_16)
21688 (detect_coding_emacs_mule, detect_coding_iso_2022)
21689 (detect_coding_sjis, detect_coding_big5)
21690 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21691 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21692 sequence is valid in this coding system. Change callers.
21693 (MAX_ANNOTATION_LENGTH): New macro.
21694 (ADD_ANNOTATION_DATA): New macro.
21695 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21696 ADD_ANNOTATION_DATA. Change the format of annotation data.
21697 (ADD_CHARSET_DATA): New macro.
21698 (emacs_mule_char): New argument ID. Change callers.
21699 (decode_coding_emacs_mule, decode_coding_iso_2022)
21700 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21701 Produce charset annotation data in coding->charbuf.
21702 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21703 to charset annotation data in coding->charbuf.
21704 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21705 coding->common_flags if the coding system is iso-2022 based and
21706 uses designation.
21707 (produce_composition): Adjust for the new annotation data format.
21708 (produce_charset): New function.
21709 (produce_annotation): Handle charset annotation.
21710 (handle_composition_annotation, handle_charset_annotation): New
21711 functions.
21712 (consume_chars): Handle charset annotation. Utilize the above two
21713 functions.
21714 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21715 buffer, get the deleted text as a string and set
21716 coding->src_object to that string.
21717 (detect_coding, detect_coding_system): Use the new struct
21718 coding_detection_info.
21719
21720 * coding.h (struct coding_detection_info): New structure.
21721 (struct coding_system): Adjust prototype of the member `detector'.
21722 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21723
217242008-02-01 Kenichi Handa <handa@m17n.org>
21725
21726 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21727
217282008-02-01 Dave Love <fx@gnu.org>
21729
21730 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21731 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21732 to new local and nullify apropos_accumulate before returning.
21733 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21734
217352008-02-01 Kenichi Handa <handa@m17n.org>
21736
21737 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21738 correctly.
e3eea1fc 21739
aac0c6e3
MR
217402008-02-01 Dave Love <fx@gnu.org>
21741
21742 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21743
217442008-02-01 Kenichi Handa <handa@m17n.org>
21745
21746 The following changes are to make character composition happen
21747 automatically on displaying.
21748
21749 * Makefile.in (lisp, shortlisp): Add composite.elc.
21750
21751 * composite.h (Qauto_composed, Vauto_composition_function)
21752 (Qauto_composition_function): Extern them.
21753
21754 * composite.c (Vcomposition_function_table)
21755 (Qcomposition_function_table): Delete variables.
21756 (Qauto_composed, Vauto_composition_function)
21757 (Qauto_composition_function): New variables.
21758 (run_composition_function): Don't call
21759 compose-chars-after-function.
21760 (update_compositions): Clear `auto-composed' text property.
21761 (compose_chars_in_text): Delete this function.
21762 (syms_of_composite): Staticpro Qauto_composed and
21763 Qauto_composition_function. Declare Vauto_composition_function as
21764 a Lisp variable.
21765
21766 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21767
21768 * xdisp.c (it_props): Add an entry for Qauto_composed.
21769 (handle_auto_composed_prop): New function.
21770
21771 * xselect.c (selection_data_to_lisp_data): Don't call
21772 compose_chars_in_text.
21773
217742008-02-01 Dave Love <fx@gnu.org>
21775
21776 * keyboard.c (read_char): Modify checking around use of
21777 Vkeyboard_translate_table.
21778
21779 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21780 and fix C types.
21781
217822008-02-01 Kenichi Handa <handa@m17n.org>
21783
21784 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21785 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21786 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21787 the case that the last byte is '\r' correctly.
21788 (decode_coding): Flush out the unprocessed data correctly.
21789 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21790
217912008-02-01 Dave Love <fx@gnu.org>
21792
21793 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21794 Add XK_ISO... case.
21795 (xaw_scroll_callback): Revert last change.
21796
217972008-02-01 Kenichi Handa <handa@m17n.org>
21798
21799 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21800
218012008-02-01 Kenichi Handa <handa@m17n.org>
21802
21803 * xfaces.c (Vface_resizing_fonts): New variable.
21804 (struct font_name): New member `resizing_ratio'.
21805 (font_resizing_ratio): New function.
21806 (split_font_name): Set font->resizing_ratio.
21807 (better_font_p): Pay attention to font->resizing_ratio.
21808 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21809 RESX, and RESY fields.
21810 (try_alternative_families): Try scalable fonts if
21811 Vscalable_fonts_allowed is not Qt.
21812 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21813
218142008-02-01 Dave Love <fx@gnu.org>
21815
21816 * xterm.c (xaw_scroll_callback): Cast correctly.
21817
218182008-02-01 Dave Love <fx@gnu.org>
21819
21820 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21821 (lispy_kana_keys): Comment out.
21822 (make_lispy_event) [XK_kana_A]: Comment out.
21823
21824 * xterm.c (xaw_scroll_callback): Cast call_data.
21825 (XTread_socket): Deal with ASCII keysyms.
21826 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21827
218282008-02-01 Dave Love <fx@gnu.org>
21829
21830 * xterm.c (Vx_keysym_table): New.
21831 (syms_of_xterm): Initialize it.
21832 (XTread_socket): Use it.
21833 From head: Eliminate incorrect optimization that tried to avoid
21834 decoding the output of X*LookupString.
21835 (x_get_font_repertory): Delete charset declaration.
21836
218372008-02-01 Kenichi Handa <handa@m17n.org>
21838
21839 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21840 return 0.
21841 (Fdefine_coding_system_internal): Setup
21842 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21843
218442008-02-01 Dave Love <fx@gnu.org>
21845
21846 * coding.c (Fcheck_coding_system): Doc fix.
21847
21848 * editfns.c (Finsert_byte): Return a proper value.
21849
218502008-02-01 Kenichi Handa <handa@m17n.org>
21851
21852 * coding.c (decode_coding): Fix args to translate_chars. Pay
21853 attention to Vstandard_translation_table_for_decode.
21854 (encode_coding): Fix args to translate_chars. Pay attention to
21855 Vstandard_translation_table_for_encode.
21856
21857 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21858 SINGLE_BYTE_CHAR_P.
21859
21860 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21861 not by SINGLE_BYTE_CHAR_P.
21862
21863 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21864 SINGLE_BYTE_CHAR_P.
21865
21866 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21867 SINGLE_BYTE_CHAR_P.
21868
21869 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21870 by SINGLE_BYTE_CHAR_P.
21871
21872 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21873 SINGLE_BYTE_CHAR_P.
21874
218752008-02-01 Dave Love <fx@gnu.org>
21876
21877 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21878
218792008-02-01 Dave Love <fx@gnu.org>
21880
21881 * fns.c (Flanginfo): Fix typo.
21882
21883 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21884
218852008-02-01 Kenichi Handa <handa@m17n.org>
21886
21887 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21888 (detect_coding_emacs_mule, detect_coding_iso_2022)
21889 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21890 incomplete byte sequence. Don't update *mask when correctly detected.
21891 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21892 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21893 (detect_coding, detect_coding_system): Adjust for the changes above.
21894
218952008-02-01 Kenichi Handa <handa@m17n.org>
21896
21897 * character.c (char_string): Rename from
21898 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21899 (string_char): Rename from string_char.
21900
21901 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21902 if C is greater than MAX_3_BYTE_CHAR.
21903 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21904 string_char instead of string_char_with_unification.
21905
219062008-02-01 Dave Love <fx@gnu.org>
21907
21908 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21909
219102008-02-01 Kenichi Handa <handa@m17n.org>
21911
21912 * keymap.c (push_key_description): Pay attention to force_multibyte.
21913
21914 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21915
219162008-02-01 Dave Love <fx@gnu.org>
21917
21918 * charset.c (define_charset_internal): Rename `supprementary'.
21919
21920 * Makefile.in (lisp, shortlisp): Remove latin-N.
21921
219222008-02-01 Dave Love <fx@gnu.org>
21923
21924 * xfns.c (x_window, x_window): Use use_xim.
21925
21926 * xterm.c (use_xim): Initialize.
21927 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21928 (x_term_init): Maybe set use_xim.
21929
21930 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21931
219322008-02-01 Kenichi Handa <handa@m17n.org>
21933
21934 * search.c (search_buffer): Fix case-fold-search of multibyte
21935 characters.
21936 (boyer_moore): Rename the last argument to char_high_bits.
21937
219382008-02-01 Kenichi Handa <handa@m17n.org>
21939
21940 * xdisp.c (display_string): Fix for the case of zero width glyph.
21941
21942 * xfns.c (x_set_font): Change the error message of the case that
21943 x_new_fontset returns Qt.
21944
21945 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21946 (Finternal_set_lisp_face_attribute): Use signal_error for the
21947 error of invalid fontset.
21948
21949 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21950 fontset, return Qt.
21951
219522008-02-01 Dave Love <fx@gnu.org>
21953
21954 * unexelf.c (unexec): Make .got handling not SGI-specific.
21955
21956 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21957
21958 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21959
21960 * keyboard.c (read_key_sequence): Fix type error.
21961
21962 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21963 type error.
21964
21965 * fontset.c (fontset_add): Return Lisp_Object.
21966
219672008-02-01 Dave Love <fx@gnu.org>
21968
21969 * charset.h (charset_ordered_list_tick): Declare extern.
21970
219712008-02-01 Kenichi Handa <handa@m17n.org>
21972
21973 The following changes (and some of 2008-02-01 changes of mine) are
21974 for handling syntax, category, and case conversion for unibyte
21975 characters by converting them to multibyte on the fly. With these
21976 changes, we don't have to setup syntax and case tables for unibyte
21977 characters in each language environment.
21978
21979 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21980 multibyte if necessary.
21981
21982 * bytecode.c (Fbyte_code): Likewise.
21983
21984 * character.h (LEADING_CODE_LATIN_1_MIN)
21985 (LEADING_CODE_LATIN_1_MAX): New macros.
21986 (unibyte_to_multibyte_table): Extern it.
21987 (unibyte_char_to_multibyte): New macro.
21988 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21989 (CHAR_LEADING_CODE): New macro.
21990 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21991
21992 * character.c (unibyte_to_multibyte_table): New variable.
21993 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21994 (multibyte_char_to_unibyte): If C is an eight-bit character,
21995 convert it to the corresponding byte value.
21996
21997 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21998 not 1, signals an error. Update the elements of
21999 unibyte_to_multibyte_table.
22000 (init_charset_once): Initialize unibyte_to_multibyte_table.
22001 (syms_of_charset): Define the charset `iso-8859-1'.
22002
22003 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22004 as is without converting it to unibyte. In a unibyte buffer,
22005 convert C to multibyte before checking the syntax.
22006
22007 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22008
22009 * minibuf.c (Fminibuffer_complete_word): Use the macro
22010 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22011
22012 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22013
22014 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22015 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22016 that is zero, convert an eight-bit char to multibyte.
22017 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22018 non-emacs case.
22019 (PATFETCH): Convert an eight-bit char to multibyte.
22020 (HANDLE_UNIBYTE_RANGE): New macro.
22021 (regex_compile): Setup the compiled pattern for multibyte chars
22022 even if the given regex string is unibyte. Use PATFETCH_RAW
22023 instead of PATFETCH in many places. To handle `charset'
22024 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22025 only for ASCII chars.
22026 (analyse_first) <exactn>: Simplify because the compiled pattern
22027 is multibyte.
22028 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22029 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22030 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22031 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22032 multibyte always 1.
22033 (re_search_2): In emacs, set the locale variable multibyte to 1,
22034 otherwise to 0. New local variable target_multibyte. Check it
22035 to decide the multibyteness of STR1 and STR2. If
22036 target_multibyte is zero, convert unibyte chars to multibyte
22037 before translating and checking fastmap.
22038 (TARGET_CHAR_AND_LENGTH): New macro.
22039 (re_match_2_internal): In emacs, set the locale variable multibyte
22040 to 1, otherwise to 0. New local variable target_multibyte. Check
22041 it to decide the multibyteness of STR1 and STR2. Use
22042 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22043 <charset, charset_not>: If multibyte is nonzero, check fastmap
22044 only for ASCII chars. Call bcmp_translate with
22045 target_multibyte, not with multibyte.
22046 <begline>: Declare the local variable C as `unsigned'.
22047 (bcmp_translate): Change the last arg name to target_multibyte.
22048
22049 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22050 the regexp pattern and the matching target. Set cp->buf.multibyte
22051 to the multibyteness of the regexp pattern. Set
22052 cp->but.target_multibyte to the multibyteness of the matching target.
22053 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22054 FETCH_STRING_CHAR_ADVANCE.
22055 (Freplace_match): Convert unibyte chars to multibyte.
22056
22057 * syntax.c (char_quoted, back_comment, scan_words)
22058 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22059 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22060 unibyte chars to multibyte.
22061 (skip_chars): Delete the arg syntaxp, and move the code for
22062 handling syntaxes to skip_syntaxes. Change callers.
22063 Fix the case that the multibyteness of STRING and the current
22064 buffer doesn't match.
22065 (skip_syntaxes): New function.
22066 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22067 SINGLE_BYTE_CHAR_P.
22068
220692008-02-01 Kenichi Handa <handa@m17n.org>
22070
22071 * xfaces.c (QCfontset): New variable.
22072 (LFACE_FONTSET): New macro.
22073 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22074 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22075 (Finternal_set_lisp_face_attribute)
22076 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22077 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22078 check also LFACE_FONTSET_INDEX.
22079 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22080 attrs[LFACE_FONT_INDEX].
22081 (syms_of_xfaces): Intern and staticpro QCfontset.
22082
22083 * dispextern.h (enum lface_attribute_index): New member
22084 LFACE_FONTSET_INDEX.
22085
22086 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22087
220882008-02-01 Kenichi Handa <handa@m17n.org>
22089
22090 * coding.c (coding_set_destination): Fix coding->destination for
22091 the case converting a region.
22092 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22093 (encode_coding_object): Fix coding->dst_pos and
22094 coding->dst_pos_byte for the case converting a region.
22095
22096 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22097
22098 * character.h (BYTE8_STRING): New macro.
22099
22100 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22101
221022008-02-01 Kenichi Handa <handa@m17n.org>
22103
22104 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22105 characters by octal form.
22106
22107 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22108
22109 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22110 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22111 _fetch_multibyte_char_len.
22112 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22113
22114 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22115
22116 * casefiddle.c (casify_object): Simplify. Handle the case that
22117 the case conversion change the byte length.
22118 (casify_region): Likewise.
22119
22120 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22121
22122 * character.c (_fetch_multibyte_char_len): Delete this variable.
22123 (syms_of_character): Setup Vprintable_chars.
22124
22125 * editfns.c (Fchar_equal): Fix for the unibyte case.
22126 (Finsert_byte): New function.
22127 (syms_of_editfns): Defsubr it.
22128
22129 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22130 of direct code 0x3ffff.
22131
22132 * search.c (Freplace_match): Fix for the unibyte case.
22133
221342008-02-01 Kenichi Handa <handa@m17n.org>
22135
22136 * lread.c (safe_to_load_p): Fix the logic.
22137
22138 * syntax.c (scan_words): Don't treat characters belonging to
22139 different scripts as constituting a word.
22140
22141 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22142
22143 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22144
22145 * emacs.c (main): In the case of --unibyte, instead of aborting on
22146 finding non-empty buffer, make it unibyte.
22147
221482008-02-01 Kenichi Handa <handa@m17n.org>
22149
22150 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22151 to create a fontset.
22152
221532008-02-01 Dave Love <fx@gnu.org>
22154
22155 * character.c (Funibyte_char_to_multibyte): Doc fix.
22156
22157 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22158
221592008-02-01 Kenichi Handa <handa@m17n.org>
22160
22161 * fontset.c (fontset_add): Make the type `int'.
22162 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22163
22164 * character.c (unibyte_char_to_multibyte)
22165 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22166 charset_unibyte, not charset_primary.
22167
22168 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22169
22170 * charset.c (charset_unibyte): Rename from charset_primary.
22171 (Funibyte_charset): Rename from Fprimary_charset.
22172 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22173 (syms_of_charset): Adjust for the above changes.
22174
22175 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22176 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22177 it->multibyte_p is zero.
22178
22179 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22180 Delete extern.
22181
221822008-02-01 Kenichi Handa <handa@m17n.org>
22183
22184 * coding.c (Fdefine_coding_system_internal): Fix category setting
22185 for a coding system of type iso-2022.
22186
221872008-02-01 Kenichi Handa <handa@m17n.org>
22188
22189 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22190
221912008-02-01 Kenichi Handa <handa@m17n.org>
22192
22193 * syntax.c (Vnext_word_boundary_function_table): New variable.
22194 (next-word-boundary-function-table): Declare it as a Lisp variable
22195 in syms_of_syntax.
22196 (scan_words): Call functions in Vnext_word_boundary_function_table
22197 if any.
22198
22199 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22200
22201 * fontset.c (fs_load_font): If fontp->charset is not negative,
22202 return fontp without setting its members.
22203
222042008-02-01 Dave Love <fx@gnu.org>
22205
22206 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22207
22208 * m/sparc.h (HAVE_ALLOCA): Delete.
22209
22210 * s/irix6-5.h: Don't include strings.h.
22211 (bcopy, bzero, bcmp): Don't undef.
22212
22213 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22214
22215 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22216 (TIOCSIGSEND): Don't test IRIX6.
22217 (bcopy, bzero, bcmp): Define conditionally.
22218
222192008-02-01 Kenichi Handa <handa@m17n.org>
22220
22221 * buffer.c (Qas, Qmake, Qto): New variables.
22222 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22223 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22224
22225 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22226 we are inserting a process output into a multibyte buffer.
22227
22228 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22229 multibyte_char_to_unibyte.
22230
22231 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22232 by the primary charset, make it eight-bit char.
22233 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22234
22235 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22236 (charset_8_bit__control, charset_8_bit_graphic)
22237 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22238 (define_charset_internal): New function.
22239 (syms_of_charset): Call define_charset_internal for pre-defined
22240 charsets.
22241
22242 * charset.h (charset_8_bit): Extern it.
22243
22244 * coding.c (make_conversion_work_buffer): Adjust for the change
22245 of Fset_buffer_multibyte.
22246 (encode_coding_raw_text): Increment p0 in the loop.
22247
22248 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22249
22250 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22251 for the change of Fset_buffer_multibyte.
22252
22253 * fns.c (Fstring_to_multibyte): New function.
22254 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22255
222562008-02-01 Dave Love <fx@gnu.org>
22257
22258 * xfns.c (x_put_x_image): Declare args.
22259
22260 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22261 (try_font_list): Declare an arg.
22262
22263 * xdisp.c (message2_nolog, set_message): Declare an arg.
22264
22265 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22266
22267 * syntax.c (scan_sexps_forward): Declare an arg.
22268
22269 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22270 Declare an arg.
22271
22272 * lisp.h (Fnew_fontset): Declare.
22273
22274 * keymap.c (push_key_description): Call CHARACTERP correctly.
22275
22276 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22277 (face_for_char): Delete unused vars.
22278 (Fset_fontset_font): Doc fix. Delete unused vars.
22279
22280 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22281
22282 * composite.c (update_compositions): Declare arg.
22283
22284 * cm.c (calccost, cmgoto): Declare args.
22285
22286 * charset.c: Remove `emacs' conditional. Doc fixes.
22287 (map_char_table_for_charset): Declare.
22288
22289 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22290
22291 * ccl.c: Remove `emacs' conditional.
22292
222932008-02-01 Kenichi Handa <handa@m17n.org>
22294
22295 The following changes are to allow specifying multiple font
22296 patterns for a character range (specified by script or charset).
22297
22298 * Makefile.in (abbrev.o): Depend on syntax.h.
22299 (xfaces.o): Depend on charset.h.
22300
22301 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22302 SINGLE_BYTE_CHAR_P.
22303
22304 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22305
22306 * character.h (Vchar_script_table): Extern it.
22307
22308 * character.c (Vscript_alist): Delete.
22309 (Vchar_script_table, Qchar_script_table): New variable.
22310 (syms_of_character): Declare Vchar_script_table as a lisp variable
22311 and initialize it.
22312
22313 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22314 have property char-table-extra-slots, make no extra slot.
22315
22316 * dispextern.h (struct face): Delete member `charset'.
22317 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22318 SINGLE_BYTE_CHAR_P.
22319 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22320 Add prototypes.
22321 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22322 (generate_ascii_font_name): Rename from generate_ascii_font.
22323
22324 * fontset.h (get_font_repertory_func): New prototype.
22325 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22326 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22327
22328 * fontset.c (Qprepend, Qappend): New variables.
22329 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22330 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22331 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22332 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22333 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22334 (load_font_get_repertory): New functions.
22335 (fontset_set): Delete.
22336 (fontset_face): New arg FACE. Return face ID, not face.
22337 Complete re-write to handle new fontset structure. Change caller.
22338 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22339 (face_for_char): Don't call lookup_face.
22340 (make_fontset_for_ascii_face): New arg FACE.
22341 (fs_load_font): New arg CHARSET_ID. Don't check
22342 Vfont_encoding_alist here.
22343 (find_font_encoding): New function.
22344 (list_fontsets): Use STRINGP, not ! NILP.
22345 (accumulate_script_ranges): New function.
22346 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22347 re-written to handle new fontset structure.
22348 (Ffontset_font): Return a copy of element.
22349 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22350 docstring of font-encoding-alist.
22351
22352 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22353 (Fset_fotset_font): Fix arguments to 5.
22354
22355 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22356
22357 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22358 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22359 (highlight_trailing_whitespace): Adjust for the change of
22360 lookup_named_face.
22361
22362 * xfaces.c: Include charset.h.
22363 (load_face_font): Delete argument C. Change caller.
22364 (generate_ascii_font_name): Rename from generate_ascii_font.
22365 (font_name_registry): New function.
22366 (cache_face): Store ascii faces before non-ascii faces in buckets.
22367 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22368 Lookup only ascii faces.
22369 (lookup_non_ascii_face): New function.
22370 (lookup_named_face): Delete argument C. Change caller.
22371 (lookup_derived_face): Delete argument C. Change caller.
22372 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22373 a string, just call font_list with it.
22374 (choose_face_font): Delete arguments FACE and C. New arg
22375 FONT_SPEC. Change caller.
22376 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22377 Change caller.
22378 (realize_non_ascii_face): New function.
22379 (realize_x_face): Call load_face_font here.
22380 (realize_tty_face): Delete argument C. Change caller.
22381 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22382 get a face ID.
22383 (dump_realized_face): Don't print charset of FACE.
22384
22385 * xfns.c (x_set_font): Always call x_new_fontset and
22386 store_frame_parameter.
22387 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22388 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22389
22390 * xterm.h (x_get_font_repertory): Extern it.
22391
22392 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22393 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22394 it->multibyte_p is zero.
22395 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22396 (x_new_fontset): If FONTSETNAME doesn't match any existing
22397 fontsets, create a new one.
22398 (x_get_font_repertory): New function.
22399
224002008-02-01 Kenichi Handa <handa@m17n.org>
22401
22402 * coding.c (Ffind_coding_systems_region_internal): Detect an
22403 ASCII only string correctly.
22404
22405 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22406 version is 0.
22407
224082008-02-01 Kenichi Handa <handa@m17n.org>
22409
22410 * lread.c: Include "coding.h".
22411 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22412 (load_each_byte, unread_char): New variables.
22413 (readchar_backlog): Delete.
22414 (readchar): Return a character unless load_each_byte is nonzero.
22415 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22416 cons. If unread_char is not -1, simply return it.
22417 (unreadchar): Handle the case that readcharfun is
22418 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22419 (read_multibyte): Delete.
22420 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22421 (read_emacs_mule_char): New functions.
22422 (Fload): Even if the file doesn't have the extension ".elc", if
22423 safe_to_load_p returns a positive version number, assume that the
22424 file contains bytecompiled code. If the version is less than 22,
22425 load the file while decoding multibyte sequences by emacs-mule.
22426 (readevalloop): Don't use readchar_backlog.
22427 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22428 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22429 (read_escape): Delete the arg BYTEREP.
22430 (read1): Set load_each_byte to 1 temporarily while handling
22431 #@NUMBER. Don't call read_multibyte.
22432 (read_vector): Call Fread with a cons. If readcharfun is
22433 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22434 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22435 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22436 and Qload_force_doc_strings.
22437
224382008-02-01 Kenichi Handa <handa@m17n.org>
22439
22440 * xdisp.c (face_before_or_after_it_pos): Call
22441 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22442
224432008-02-01 Kenichi Handa <handa@m17n.org>
22444
22445 * character.h (TRAILING_CODE_P): New macro.
22446 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22447 (string_char_with_unification): Fix prototype.
22448 (Vscript_alist): Extern it.
22449
22450 * character.c (Vscript_alist): New variable.
22451 (string_char_with_unification, str_as_unibyte)
22452 (string_escape_byte8): Add `const' to local variables.
22453 (syms_of_character): Declare script-alist as a Lisp variable.
22454
22455 * charset.h (Vcharset_ordered_list): Extern it.
22456 (charset_ordered_list_tick): Extern it.
22457 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22458 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22459 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22460 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22461 (Funify_charset): Adjust for the change of Funify_charset.
22462
22463 * charset.c (charset_ordered_list_tick): New variable.
22464 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22465 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 22466 deunify instead of unify a charset.
aac0c6e3
MR
22467 (string_xstring_p): Add `const' to local variables.
22468 (find_charsets_in_text): Add `const' to arguments and local variables.
22469 (encode_char): Adjust for the change of Funify_charset. Fix
22470 detecting of invalid code.
22471 (Fset_charset_priority): Increment charset_ordered_list_tick.
22472 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22473 and TO_CODE.
22474
22475 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22476 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22477 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22478 (decode_coding_ccl, consume_chars)
22479 (Ffind_coding_systems_region_internal)
22480 (Fcheck_coding_systems_region): Add `const' to local variables.
22481
22482 * print.c (print_object): Use octal form for printing the
22483 contents of a bool vector.
22484
224852008-02-01 Dave Love <fx@gnu.org>
22486
22487 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22488 <version == 20>: Refuse to load.
22489
224902008-02-01 Dave Love <fx@gnu.org>
22491
22492 * fns.c: Move coding.h.
22493 (Qcodeset, Qdays, Qmonths): New.
22494 (concat): Use CHARACTERP instead of INTEGERP.
22495 (Flocale_codeset): Delete.
22496 (Flanginfo): New function.
22497 (syms_of_fns): Change accordingly.
22498
22499 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22500
225012008-02-01 Dave Love <fx@gnu.org>
22502
22503 * casetab.c (init_casetab_once, init_casetab_once): Fix
22504 CHAR_TABLE_SET call.
22505
22506 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22507
22508 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22509
22510 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22511 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22512 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22513
22514 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22515
22516 * coding.c (ENCODE_DESIGNATION, decode_eol)
22517 (make_conversion_work_buffer, code_conversion_restore)
22518 (Fdefine_coding_system_internal): Convert Lisp types.
22519 (code_conversion_restore): Use EQ, not ==.
22520 (Fencode_coding_string): Fix code_convert_string call.
22521
22522 * coding.h (code_convert_region): Fix prototype.
22523
22524 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22525
22526 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22527 (Ffontset_info): Convert Lisp types.
22528
22529 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22530
22531 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22532
22533 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22534
22535 * chartab.c: Include "...h", not <...h> in some cases.
22536
22537 * callproc.c (Fcall_process): Remove unused variables.
22538
225392008-02-01 Dave Love <fx@gnu.org>
22540
22541 * coding.c (Fset_coding_system_priority): Allow null arg list.
22542
225432008-02-01 Dave Love <fx@gnu.org>
22544
22545 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22546 (Fself_insert_and_exit): Use CHARACTERP.
22547
22548 * callproc.c (Fcall_process): Remove unused vars.
22549
22550 * xterm.c (XTread_socket): Add extra dead keysyms.
22551
22552 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22553
22554 * dispextern.h: Remove prototypes for redraw_frame,
22555 redraw_garbaged_frames.
22556
22557 * cmds.c (Fself_insert_command): Use CHARACTERP.
22558
22559 * chartab.c (make_sub_char_table): Remove unused var.
22560 (Fset_char_table_default, Fmap_char_table): Doc fix.
22561
22562 * keymap.c (access_keymap): Remove generic char code.
22563 (push_key_description): Use CHARACTERP.
22564
225652008-02-01 Dave Love <fx@gnu.org>
22566
22567 * charset.c: Doc fixes.
22568 (Funify_charset): Extra checking.
22569
225702008-02-01 Dave Love <fx@gnu.org>
22571
22572 * lread.c: Remove some unused variables.
22573 (safe_to_load_p): If safe, return the magic number version byte.
22574 (Fload): Maybe use load-with-code-conversion.
22575
225762008-02-01 Kenichi Handa <handa@m17n.org>
22577
22578 * category.c (Fmodify_category_entry): Don't modify the contents
22579 of category_set for characters out of the range. Avoid
22580 unnecessary modification.
22581
22582 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22583 Vchar_unify_table. The default value of the table is now nil.
22584
22585 * character.c (syms_of_character): Setup Vchar_width_table for
22586 eight-bit-control and raw-byte chars.
22587
22588 * charset.h (enum define_charset_arg_index): Delete
22589 charset_arg_parents and add charset_arg_subset and
22590 charset_arg_superset.
22591 (enum charset_attr_index): Delete charset_parents and add
22592 charset_subset and charset_superset.
22593 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22594 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22595 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22596 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22597 (CHARSET_SUPERSET): New macros.
22598 (charset_work): Extern it.
22599 (ENCODE_CHAR): Use charset_work.
22600 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22601 (map_charset_chars): Extern it.
22602
22603 * charset.c (load_charset_map): Set the default value of encoder
22604 and deunifier char-tables to nil.
22605 (map_charset_chars): Change argument. Change callers. Use
22606 map_char_table_for_charset instead of map_char_table.
22607 (Fmap_charset_chars): New optional args from_code and to_code.
22608 (Fdefine_charset_internal): Adjust for the change of
22609 `define-charset' (:parents -> :subset or :superset).
22610 (charset_work): New variable.
22611 (encode_char, syms_of_charset): Adjust for the change of
22612 Fdefine_charset_internal.
22613 (Ffind_charset_string): Setup the vector `charsets' correctly.
22614
22615 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22616 the previous change.
22617 (char_table_ref_and_range): Adjust for the above change.
22618 (map_sub_char_table_for_charset): New function.
22619 (map_char_table_for_charset): New function.
22620
22621 * keymap.c (describe_vector): Handle a char-table directly here.
22622 (describe_char_table): Delete.
22623
22624 * lisp.h (map_charset_chars): Delete.
22625
226262008-02-01 Dave Love <fx@gnu.org>
22627
22628 * fns.c (count_combining): Comment out (unused).
22629 (Flocale_codeset): New.
22630 (syms_of_fns): Defsubr it.
22631
22632 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22633 (size_t): Remove.
22634
226352008-02-01 Dave Love <fx@gnu.org>
22636
22637 * Makefile.in (chartab.o): Depend on charset.h.
22638
226392008-02-01 Kenichi Handa <handa@m17n.org>
22640
22641 * character.c (syms_of_character): Set the default value of
22642 Vprintable_chars to Qnil.
22643
226442008-02-01 Dave Love <fx@gnu.org>
22645
22646 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22647
226482008-02-01 Kenichi Handa <handa@m17n.org>
22649
22650 * charset.c (load_charset_map): Handle the case that from < to
22651 correctly.
22652
22653 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22654 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22655 Pay attention to raw-8-bit chars.
22656
226572008-02-01 Kenichi Handa <handa@m17n.org>
22658
22659 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22660 It is not bytecompiled now.
22661
22662 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22663 (charset_jisx0208): New variables.
22664 (Fdefine_charset_internal): Setup them if appropriate.
22665 (init_charset_once): Initialize them to -1.
22666
22667 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22668 (charset_jisx0208): Extern them.
22669
22670 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22671 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22672 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22673 (setup_iso_safe_charsets): Fix arguments to Fassq.
22674 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22675 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22676 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22677 (encode_coding_iso_2022): Change the 1st arg to
22678 ENCODE_ISO_CHARACTER to a variable.
22679
226802008-02-01 Kenichi Handa <handa@m17n.org>
22681
22682 * charset.h (enum define_charset_arg_index): New enums
22683 charset_arg_min_code and charset_arg_max_code.
22684 (struct charset): New member char_index_offset.
22685
22686 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22687 Take charset->char_index_offset into account.
22688 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22689 args[charset_arg_max_code]. Setup charset.char_index_offset.
22690 (syms_of_charset): Fix args to Fdefine_charset_internal.
22691
226922008-02-01 Dave Love <fx@gnu.org>
22693
22694 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22695
226962008-02-01 Dave Love <fx@gnu.org>
22697
22698 * coding.c: Doc fixes.
22699 (Fcoding_system_aliases): Fix return value.
22700 (Qmac): Remove (duplicated) definition.
22701
227022008-02-01 Dave Love <fx@gnu.org>
22703
362654a6
JB
22704 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22705 New functions.
aac0c6e3
MR
22706
22707 * character.c (Fstring): Doc fix.
22708
22709 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22710
362654a6 22711 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
22712 (font-encoding-alist): Doc fix.
22713
227142008-02-01 Dave Love <fx@gnu.org>
22715
22716 * term.c (costs_set): Declare static, non-initialized for pcc.
22717 (encode_terminal_code): Remove unused var.
22718
22719 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22720 for K&R.
22721
22722 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22723
22724 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22725 (suffixes): Move out of make_subsidiaries for K&R.
22726
22727 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22728
22729 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22730
227312008-02-01 Dave Love <fx@gnu.org>
22732
22733 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22734
22735 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22736
227372008-02-01 Yong Lu <lyongu@asia-infonet.com>
22738
22739 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22740
22741 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22742
227432008-02-01 Kenichi Handa <handa@m17n.org>
22744
22745 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22746 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22747
227482008-02-01 Kenichi Handa <handa@m17n.org>
22749
22750 * coding.c (decode_coding_charset): Adjust for the change of
22751 Fdefine_coding_system_internal.
22752 (Fdefine_coding_system_internal): For a coding system of
22753 `charset' type, store a list of charset IDs in
22754 `charset_attr_charset_valids' element of coding attributes.
22755
227562008-02-01 Kenichi Handa <handa@m17n.org>
22757
22758 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22759 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22760 caller. Handle 2-byte and 3-byte charsets correctly.
22761 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22762 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22763 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22764 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22765 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22766 sequence.
22767 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22768 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22769 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22770 and alt&rule composition.
22771 (decode_coding_iso_2022): Handle composition correctly.
22772 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22773
22774 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22775 re-defining a charset. If the charset has :emacs-mule-id, setup
22776 emacs_mule_bytes.
22777 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22778
227792008-02-01 Kenichi Handa <handa@m17n.org>
22780
22781 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22782 (encode_coding_big5, encode_coding_charset): If coding requires safe
22783 encoding, produce a character specified by
22784 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22785
227862008-02-01 Dave Love <fx@gnu.org>
22787
22788 * xterm.c (XSetIMValues): Declare.
22789
22790 * process.c: Conditionally include sys/wait.h, pty.h.
22791
22792 * print.c (print_object): Fix print format for 64-bit systems.
22793
22794 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22795
22796 * buffer.c (emacs_strerror): Declare.
22797
22798 * fontset.c (Fclear_face_cache): Declare.
22799 (accumulate_font_info): Comment-out (unused).
22800 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22801 variables.
22802
22803 * character.h (string_escape_byte8): Declare.
22804
22805 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22806 unused vars.
22807 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22808 (Fmap_charset_chars): Doc fix.
22809
22810 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22811 (Fset_coding_system_priority, Fset_coding_system_priority)
22812 (Fdefine_coding_system_internal): Doc fix.
22813
228142008-02-01 Dave Love <fx@gnu.org>
22815
22816 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22817
228182008-02-01 Kenichi Handa <handa@m17n.org>
22819
22820 * character.c (string_escape_byte8): Make multibyte string with
22821 correct size.
22822
22823 * charset.c (Fmake_char): Delete unnecessary code.
22824
228252008-02-01 Kenichi Handa <handa@m17n.org>
22826
22827 * xfns.c (x_encode_text): Allocate coding.destination here, and
22828 call encode_coding_object with dst_object Qnil.
22829
22830 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22831 multibyte form correctly.
22832
22833 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22834 against Vfont_encoding_alist.
22835
22836 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22837 handling of charset list.
22838 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22839 (decode_coding_object): Move point to coding->dst_pos before
22840 calling post-read-conversion function.
22841 (encode_coding_object): Give correct arguments to
22842 pre-write-conversion. Ignore the return value of
22843 pre-write-conversion function. Pay attention to the case that
22844 pre-write-conversion changes the current buffer. If dst_object is
22845 Qt, even if coding->src_bytes is zero, allocate at least one byte
22846 to coding->destination.
22847
22848 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22849
22850 * charset.c (Fmake_char): Make it more backward compatible.
22851 (Fmap_charset_chars): Fix docstring.
22852
228532008-02-01 Dave Love <fx@gnu.org>
22854
22855 * coding.c: Doc fixes.
22856 (Fdefine_coding_system_alias): Use names, not symbols, in
22857 coding-system-alist.
22858
228592008-02-01 Kenichi Handa <handa@m17n.org>
22860
22861 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22862 of calling free_realized_face.
22863
228642008-02-01 Yong Lu <lyongu@asia-infonet.com>
22865
22866 * charset.c (read_hex): Don't treat SPC as a comment starter.
22867 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22868 (Fdecode_char): Fix typo.
22869
228702008-02-01 Kenichi Handa <handa@m17n.org>
22871
22872 * charset.h (struct charset): New member `code_space_mask'.
22873
22874 * coding.c (coding_set_source): Delete the local variable beg_byte.
22875 (encode_coding_charset, Fdefine_coding_system_internal):
22876 Delete the local variable charset.
22877 (Fdefine_coding_system_internal): Setup
22878 attrs[coding_attr_charset_valids] correctly.
22879
22880 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22881 member to check if CODE is valid or not.
22882 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22883 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22884 is within the range of charset->min_code and carset->max_code.
22885
228862008-02-01 Dave Love <fx@gnu.org>
22887
22888 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22889
22890 * dispextern.h (generate_ascii_font): Fix return type.
22891
22892 * xfaces.c (generate_ascii_font): Fix arg declaration.
22893
22894 * coding.c (coding_inherit_eol_type)
22895 (Fset_terminal_coding_system_internal)
22896 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22897
228982008-02-01 Kenichi Handa <handa@m17n.org>
22899
22900 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22901 multiple charsets correctly.
22902
229032008-02-01 Kenichi Handa <handa@m17n.org>
22904
22905 * search.c (boyer_moore): Fix handling of multibyte character
22906 translation.
22907
22908 * xdisp.c (display_mode_element): When the variable `elt' is
22909 changed, update `this' and `lisp_string'.
22910
229112008-02-01 Kenichi Handa <handa@m17n.org>
22912
22913 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22914
22915 * callproc.c (Fcall_process): Be sure to give the current buffer
22916 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22917
22918 * charset.c (struct charset_map_entries): New struct.
22919 (load_charset_map): Rename from parse_charset_map. New args
22920 entries and n_entries. Change caller.
22921 (load_charset_map_from_file): Rename from load_charset_map.
22922 Change caller. New arg control_flag. Call load_charset_map at
22923 the tail.
22924 (load_charset_map_from_vector): New function.
22925 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22926 (encode_char): If the charset is compact, change a character index
22927 to a code point.
22928
22929 * coding.c (coding_alloc_by_making_gap): Check the case that the
22930 source and destination are the same correctly.
22931 (decode_coding_raw_text): Set coding->consumed_char and
22932 coding->consumed to 0.
22933 (produce_chars): If coding->chars_at_source is nonzero, update
22934 coding->consumed_char and coding->consumed before calling
22935 alloc_destination.
22936 (Fdefine_coding_system_alias): Register ALIAS in
22937 Vcoding_system_alist.
22938 (syms_of_coding): Define `no-conversion' coding system at the tail.
22939
22940 * fileio.c (Finsert_file_contents): Set coding_system instead of
22941 val. If the current buffer is multibyte, always call
22942 decode_coding_gap.
22943
22944 * xfaces.c (try_font_list): Give higher priority to fontset's
22945 family than face's family.
22946
229472008-02-01 Kenichi Handa <handa@m17n.org>
22948
22949 * callproc.c (Fcall_process): Be sure to give the current buffer
22950 to decode_coding_c_string.
22951
22952 * xfaces.c (try_font_list): Give a family specified in a fontset
22953 higher priority than a family specified in a face.
22954
229552008-02-01 Kenichi Handa <handa@m17n.org>
22956
22957 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22958 Fix arguments to insert_from_buffer.
22959
22960 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22961
229622008-02-01 Kenichi Handa <handa@m17n.org>
22963
22964 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22965 (decode_coding_gap): Set coding->dst_multibyte correctly.
22966
229672008-02-01 Kenichi Handa <handa@m17n.org>
22968
22969 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22970 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22971 (encode_coding_utf_16): Substitute coding->default_char for
22972 non-Unicode characters.
22973 (decode_coding): Don't call record_insert here.
22974 (setup_coding_system): Initialize `surrogate' of
22975 coding->spec.utf_16 to 0.
22976 (EMIT_ONE_BYTE): Fix for multibyte case.
22977
22978 * insdel.c (insert_from_gap): Call record_insert.
22979
229802008-02-01 Kenichi Handa <handa@m17n.org>
22981
22982 * casefiddle.c (casify_region): Fix multibyte case.
22983
22984 * character.c (c_string_width): Add return type `int'.
22985 (char_string_with_unification): Delete arg ADVANCED.
22986
22987 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22988 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22989 (CHAR_STRING_ADVANCE): Make it do-while statement.
22990
22991 * chartab.c (sub_char_table_set_range): Optimize for the case
22992 DEPTH == 3. Add workaround code for a GCC optimization bug.
22993
22994 * charset.c (parse_charset_map): Remove an unused variable.
22995
22996 * coding.c: Delete unused variables.
22997
22998 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22999 earlier. If inserted is zero and the coding system doesn't
23000 require flushing, don't call decode_coding_gap.
23001
23002 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23003
230042008-02-01 Kenichi Handa <handa@m17n.org>
23005
23006 The following changes are for using Unicode as an internal
23007 character model, and use UTF-8 format for buffer/string
23008 representation.
23009
23010 * .gdbinit (xchartable): Adjust for the change of char table structure.
23011 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23012
23013 * Makefile.in (obj): Add character.o and chartab.o.
23014 (lisp, shortlisp): Remove utf-8.elc.
23015 (*.o): For many files, change dependency on charset.h to
23016 character.h, and add dependency on character.h.
23017 (character.o, chartab.o): New targets.
23018
23019 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23020 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23021 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23022 of "charset.h".
23023
23024 * dired.c, filelock.c: Include "character.h".
23025
23026 * alloc.c: Include "character.h" instead of "charset.h".
23027 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23028 (syms_of_alloc): Remove defsubr for Smake_char_table.
23029
23030 * buffer.c: Include "character.h" instead of "charset.h", don't
23031 include "coding.h".
23032 (Fset_buffer_multibyte): Adjust for UTF-8.
23033
23034 * buffer.h: EXFUN Fbuffer_live_p.
23035
23036 * callproc.c: Include "character.h" instead of "charset.h".
23037 (Fcall_process): Big change for the new code-conversion APIs.
23038
23039 * casetab.c: Include "character.h" instead of "charset.h".
23040 (set_canon, set_identity, shuffle): Adjust for the new
23041 map_char_table spec.
23042 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23043 accessing the char table structure.
23044
23045 * chartab.c: New file that implements char table.
23046
23047 * category.c: Include "character.h".
23048 (copy_category_entry): New function.
23049 (copy_category_table): Call map_char_table and copy_category_entry.
23050 (Fmake_category_table): Initialize all top-level slots.
23051 (char_category_set): New function.
23052 (modify_lower_category_set): Delete.
23053 (Fmodify_category_entry): Call char_table_ref_and_range.
23054
23055 * category.h (CATEGORY_SET): Just call char_category_set.
23056
23057 * ccl.c: Include "character.h".
23058 (Qccl, Qcclp): New variables.
23059 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23060 it's less than 256.
23061 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23062 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23063 and DST type.
23064 (ccl_driver): Change types of argument, adjust code accordingly.
23065 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23066 ccl_driver.
23067 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23068
23069 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23070 New members src_multibyte, dst_multibyte, consumed, and produced.
23071 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23072 (CODING_SPEC_CCL_PROGRAM): New macro.
23073 (ccl_driver): Update prototype.
23074 (Qccl, Qcclp, Fccl_program_p): Extern them.
23075 (CHECK_CCL_PROGRAM): New macro.
23076
23077 * character.c, character.h, chartab.c: New files.
23078
23079 * charset.c: Mostly re-written. Move character and multibyte sequence
23080 handling codes to character.c.
23081
23082 * charset.h: Mostly re-written. Move character and multibyte sequence
23083 handling codes to character.h.
23084
23085 * coding.c, coding.h: Mostly re-written.
23086
23087 * composite.c: Include "character.h" instead of "charset.h".
23088 (CHAR_WIDTH): Move to character.h.
23089 (HASH_KEY, HASH_VALUE): Delete.
23090
23091 * composite.h (enum composition_method): Change order of enumeration
23092 symbols.
23093
23094 * data.c: Include "character.h" instead of "charset.h".
23095 (Faref): Call CHAR_TABLE_REF for a char table.
23096 (Faset): Call CHAR_TABLE_SET for a char table.
23097
23098 * dispextern.h (free_realized_face, check_face_attribytes)
23099 (generate_ascii_font): Extern them.
23100 (free_realized_multibyte_face): Delete extern.
23101
23102 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23103 table structure.
23104
23105 * editfns.c: Include "character.h" instead of "charset.h".
23106 (Fchar_to_string): Always call CHAR_STRING.
23107
23108 * emacs.c (main): Call init_charset_once, init_charset,
23109 syms_of_chartab, and syms_of_character.
23110
23111 * fileio.c: Include "character.h" instead of "charset.h".
23112 (Finsert_file_contents): Big change for the new code-conversion API.
23113 (choose_write_coding_system, Fwrite_region): Likewise.
23114 (build_annotations_2): Delete.
23115 (e_write): Big change for the new code-conversion API.
23116
23117 * fns.c: Include "character.h" instead of "charset.h".
23118 (copy_sub_char_table): Move to chartab.c.
23119 (Fcopy_sequence): Call copy_char_table for a char table.
23120 (concat): Delete codes calling count_multibyte.
23121 (string_char_to_byte, string_byte_to_char): Adjust for the new
23122 multibyte form.
23123 (internal_equal): Adjust for the change of char table structure.
23124 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23125 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23126 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23127 (char_table_translate, optimize_sub_char_table)
23128 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23129 chartab.c.
23130 (char_table_ref_and_index): Delete.
23131 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23132 (Fmd5): Call preferred_coding_system instead of accessing
23133 Vcoding_category_list. Adjust for the new code-conversion API.
23134 (syms_of_fns): Move defsubr for char table related functions to
23135 chartab.c.
23136
23137 * fontset.c: Mostly re-written.
23138
23139 * fontset.h (struct font_info): Change type of the member encoding_type.
23140 (enum FONT_SPEC_INDEX): New enum.
23141 (fontset_font_pattern, fs_load_font): Update prototype.
23142 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23143
23144 * indent.c: Include "character.h" instead of "charset.h".
23145 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23146
23147 * insdel.c: Include "character.h" instead of "charset.h".
23148 (copy_text): Don't refer to Vnonascii_translation_table.
23149 (insert_from_gap): New function.
23150
23151 * keyboard.c: Include "character.h" instead of "charset.h".
23152 (command_loop_1): Never call direct_output_forward_char before
23153 a non-ASCII character.
23154 (read_char): If Vkeyboard_translate_table is a char table, always
23155 translate a character.
23156
23157 * keymap.c: Include "character.h".
23158 (store_in_keymap): Handle the case that IDX is a cons.
23159 (Fdefine_key): Handle the case that KEY is a cons and the car part
23160 is also a cons (range).
23161 (push_key_description): Adjust for the new character code.
23162 (describe_vector): Call describe_char_table for a char table.
23163 (describe_char_table): New function.
23164
23165 * keymap.h (describe_char_table): Extern it.
23166
23167 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23168 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23169 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23170 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23171 Delete.
23172 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23173 structure.
23174 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23175 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23176 (CHARTAB_SIZE_BITS_3): New macros.
23177 (chartab_size): Extern it.
23178 (struct Lisp_Char_Table): Re-design.
23179 (struct Lisp_Sub_Char_Table): New structure.
23180 (HASH_KEY, HASH_VALUE): Move from fns.c.
23181 (CHARACTERBITS): Define as 22.
23182 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23183 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23184 (GC_SUB_CHAR_TABLE_P): New macro.
23185 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23186 (code_convert_string_norecord): Deleted extern.
23187 (init_character_once, syms_of_character, init_charset)
23188 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23189
23190 * lread.c: Include "character.h".
23191 (read_multibyte): New arg NBYTES.
23192 (read_escape): Change the meaning of returned *BYTEREP.
23193 (to_multibyte): Delete.
23194 (read1): Adjust the handling of char table and string.
23195
23196 * print.c: Include "character.h" instead of "charset.h".
23197 (print_string): Convert 8-bit raw bytes to octal form by
23198 string_escape_byte8.
23199 (print_object): Adjust for the new multibyte form. Print 8-bit
23200 raw bytes always in octal form. Handle sub char table correctly.
23201
23202 * process.c: Include "character.h" instead of "charset.h".
23203 (read_process_output, send_process): Adjust for the new
23204 code-conversion API.
23205
23206 * puresize.h (BASE_PURESIZE): Increase.
23207
23208 * regex.c: Include "character.h" instead of "charset.h".
23209 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23210 (regex_compile): Accept a range whose starting and ending
23211 character have different leading bytes.
23212 (analyse_first): Adjust for the above change.
23213
23214 * search.c: Include "character.h" instead of "charset.h".
23215 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23216 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23217
23218 * syntax.c: Include "character.h" instead of "charset.h".
23219 (syntax_parent_lookup): Delete.
23220 (Fmodify_syntax_entry): Accept a cons as CHAR.
23221 (skip_chars): Adjust for the new multibyte form.
23222 (init_syntax_once): Call char_table_set_range instead of directly
23223 accessing the structure of a char table.
23224
23225 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23226 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23227 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23228 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23229
23230 * term.c: Include "buffer.h" and "character.h".
23231 (encode_terminal_code, write_glyphs): Adjust for the new
23232 code-conversion API.
23233 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23234
23235 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23236
23237 * xdisp.c: Include "character.h".
23238 (get_next_display_element): Adjust for the new multibyte form.
23239 (disp_char_vector): Adjust for the new char table structure.
23240 (decode_mode_spec_coding): Adjust for the new structure of
23241 coding system.
23242 (decode_mode_spec): Adjust for the new code-conversion API.
23243
23244 * xfaces.c: Include "character.h" instead of "charset.h".
23245 (load_face_font): Adjust for the change of choose_face_font and
23246 FS_LOAD_FONT.
23247 (generate_ascii_font): New function.
23248 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23249 (set_font_frame_param): Adjust for the change of choose_face_font.
23250 (free_realized_face): Make it public.
23251 (free_realized_faces_for_fontset): Rename from
23252 free_realized_multibyte_face. Free also faces realized for ASCII.
23253 (choose_face_font): Change arguments. Adjust for the change of
23254 fontset_font_pattern and FS_LOAD_FONT.
23255
23256 * xfns.c: Include "character.h".
23257 (x_encode_text): Adjust for the new code-conversion API.
23258
23259 * xselect.c: Don't include "charset.h".
23260 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23261
23262 * xterm.c: Include "character.h".
23263 (x_encode_char): New argument CHARSET. Change caller.
23264 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23265 Call ENCODE_CHAR instead of SPLIT_CHAR.
23266 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23267 CHAR_WIDTH instead of CHARSET_WIDTH.
23268 (XTread_socket): Adjust for the new code-conversion API.
23269 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23270 (x_load_font): Adjust for the change of struct font.
23271
232722008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23273
23274 * xfaces.c (face_at_buffer_position): Remove unused vars.
23275
232762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23277
23278 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23279 Fix overflow checking.
23280
232812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23282
23283 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23284 Cancel previous change.
23285
232862008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23287
23288 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23289 ccl->eight_bit_control. Fix check for buffer overflow.
23290 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23291 (ccl_driver): Initialize extra_bytes to 0.
23292
232932008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23294
23295 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23296 return it ORed with ctrl_modifier.
23297
232982008-01-29 Miles Bader <miles@gnu.org>
23299
23300 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23301
233022008-01-28 Jason Rumney <jasonr@gnu.org>
23303
23304 * w32.c (stat): Don't double check for networked drive.
23305
233062008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23307
23308 * window.c (run_window_configuration_change_hook): New function.
23309 Code extracted from set_window_buffer. Set the selected frame.
23310 (set_window_buffer): Use it.
23311 * window.h (run_window_configuration_change_hook): Declare.
23312 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23313
23314 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23315
233162008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23317
23318 * Makefile.in: Remove references to unused macros.
23319
233202008-01-26 Eli Zaretskii <eliz@gnu.org>
23321
23322 * w32.c (g_b_init_get_sid_sub_authority)
23323 (g_b_init_get_sid_sub_authority_count): New static variables.
23324 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23325 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23326 (init_user_info): Use them to retrieve uid and gid.
23327 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23328 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23329 st_uid and st_gid of the file.
23330
233312008-01-26 Jason Rumney <jasonr@gnu.org>
23332
23333 * w32.c (logon_network_drive): New function.
23334 (stat): Use it.
23335
233362008-01-26 Chong Yidong <cyd@stupidchicken.com>
23337
23338 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23339 invisible text covered with an ellipsis.
23340
233412008-01-25 Richard Stallman <rms@gnu.org>
23342
23343 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23344 jump back to beginning. Move some other initializations after that.
23345 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23346 New variables.
23347 (syms_of_xdisp): Init them.
23348
23349 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23350
23351 * buffer.c (reset_buffer_local_variables):
23352 Implement `permanent-local-hook'.
23353 (Qpermanent_local_hook): New variable.
23354 (syms_of_buffer): Init and staticpro it.
23355
233562008-01-25 Michael Albinus <michael.albinus@gmx.de>
23357
23358 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23359
233602008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23361
23362 * fns.c (Fclrhash): Return TABLE.
23363
233642008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23365
23366 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23367 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23368 is set even without positional changes.
23369 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23370
23371 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23372
233732008-01-23 Jason Rumney <jasonr@gnu.org>
23374
23375 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23376
23377 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23378 the unicode range available in MULE by locale-coding-system.
23379 Improve dbcs lead byte detection. Set event timestamp and modifiers
23380 earlier.
23381
233822008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23383
23384 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23385 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23386 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23387 when used on child processes.
23388
233892008-01-21 Michael Albinus <michael.albinus@gmx.de>
23390
23391 * dbusbind.c (Fdbus_method_return_internal): Rename from
23392 Fdbus_method_return.
23393 (Fdbus_unregister_object): Move to dbus.el.
23394 (Fdbus_call_method, Fdbus_method_return_internal)
23395 (Fdbus_send_signal): Improve debug messages.
23396
233972008-01-20 Martin Rudalics <rudalics@gmx.at>
23398
23399 * undo.c (undo_inhibit_record_point): New variable.
23400 (syms_of_undo): Initialize it.
23401 (record_point): Don't record point when undo_inhibit_record_point
23402 is set.
23403
234042008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23405
23406 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23407
23408 * xdisp.c (Qauto_hscroll_mode): New var.
23409 (syms_of_xdisp): Initialize it.
23410 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23411 window's buffer.
23412 (hscroll_windows): Don't check automatic_hscrolling_p here.
23413
23414 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23415 vscroll if we're setting window-buffer to the value it already has.
23416
234172008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23418
23419 * m/intel386.h: Remove references to XENIX.
23420
234212008-01-17 Andreas Schwab <schwab@suse.de>
23422
23423 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23424 instead of HAVE_X86_64_LIB64_DIR.
23425 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23426
234272008-01-17 Glenn Morris <rgm@gnu.org>
23428
23429 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23430 to HAVE_X86_64_LIB64_DIR.
23431
234322008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23433
23434 * s/irix3-3.h:
23435 * s/irix4-0.h:
23436 * s/386-ix.h:
23437 * s/domain.h:
23438 * s/hpux9-x11r4.h:
23439 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23440
23441 * sysdep.c: Remove code containing references to symbols defined
23442 by unsupported systems.
23443
234442008-01-16 Glenn Morris <rgm@gnu.org>
23445
23446 * coding.c (select-safe-coding-system-function): Doc fix.
23447
234482008-01-15 Glenn Morris <rgm@gnu.org>
23449
23450 * config.in: Revert 2008-01-13 change: this is a generated file.
23451
234522008-01-13 Tom Tromey <tromey@redhat.com>
23453
23454 * lisp.h: Fix typo.
23455
234562008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23457
23458 * m/sequent-ptx.h:
23459 * m/sequent.h:
23460 * s/ptx.h:
23461 * s/ptx4-2.h:
23462 * s/ptx4.h: Remove files for systems no longer supported.
23463
23464 * callproc.c (Fcall_process): Fix previous change.
23465
234662008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23467
23468 * unexsunos4.c: Remove file, system not supported anymore.
23469
23470 * m/mips.h:
23471 * m/intel386.h:
23472 * callproc.c:
23473 * config.in:
23474 * ecrt0.c:
23475 * emacs.c:
23476 * fileio.c:
23477 * frame.c:
23478 * getpagesize.h:
23479 * keyboard.c:
23480 * lread.c:
23481 * process.c:
23482 * puresize.h:
23483 * sysdep.c:
23484 * systty.h:
23485 * syswait.h:
23486 * unexec.c:
23487 * xdisp.c:
23488 * alloc.c: Remove code containing references to symbols defined by
23489 unsupported systems.
23490
234912008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23492
23493 * coding.c (detect_coding_mask): Fix previous change.
23494
234952008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23496
23497 * coding.c (detect_coding_iso2022): New arg
23498 latin_extra_code_state. Allow Latin extra codes only
23499 when *latin_extra_code_state is nonzero.
23500 (detect_coding_mask): If there is a NULL byte, detect the encoding
23501 as UTF-16 or binary. If Latin extra codes exist, detect the
23502 encoding as ISO-2022 only when there's no other proper encoding is
23503 found.
23504
235052008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23506
23507 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23508 #ifdef MAC_OS.
23509
235102008-01-08 Richard Stallman <rms@gnu.org>
23511
23512 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23513
235142008-01-06 Nick Roberts <nickrob@snap.net.nz>
23515
23516 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23517 menu bar in parentheses.
23518
235192008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23520
23521 * m/7300.h:
23522 * m/acorn.h:
23523 * m/alliant-2800.h:
23524 * m/alliant.h:
23525 * m/alliant1.h:
23526 * m/alliant4.h:
23527 * m/altos.h:
23528 * m/amdahl.h:
23529 * m/apollo.h:
23530 * m/att3b.h:
23531 * m/aviion-intel.h:
23532 * m/aviion.h:
23533 * m/celerity.h:
23534 * m/clipper.h:
23535 * m/cnvrgnt.h:
23536 * m/convex.h:
23537 * m/cydra5.h:
23538 * m/delta88k.h:
23539 * m/dpx2.h:
23540 * m/dual.h:
23541 * m/elxsi.h:
23542 * m/f301.h:
23543 * m/gould-np1.h:
23544 * m/gould.h:
23545 * m/i860.h:
23546 * m/ibmps2-aix.h:
23547 * m/ibmrt-aix.h:
23548 * m/ibmrt.h:
23549 * m/irist.h:
23550 * m/is386.h:
23551 * m/isi-ov.h:
23552 * m/mega68.h:
23553 * m/mg1.h:
23554 * m/news-r6.h:
23555 * m/news-risc.h:
23556 * m/news.h:
23557 * m/nh3000.h:
23558 * m/nh4000.h:
23559 * m/ns16000.h:
23560 * m/ns32000.h:
23561 * m/nu.h:
23562 * m/orion.h:
23563 * m/orion105.h:
23564 * m/paragon.h:
23565 * m/pfa50.h:
23566 * m/plexus.h:
23567 * m/pyramid.h:
23568 * m/pyrmips.h:
23569 * m/sh3el.h:
23570 * m/sps7.h:
23571 * m/sr2k.h:
23572 * m/stride.h:
23573 * m/sun1.h:
23574 * m/sun2.h:
23575 * m/sun3-68881.h:
23576 * m/sun3-fpa.h:
23577 * m/sun3-soft.h:
23578 * m/sun3.h:
23579 * m/sun386.h:
23580 * m/symmetry.h:
23581 * m/tad68k.h:
23582 * m/tahoe.h:
23583 * m/targon31.h:
23584 * m/tek4300.h:
23585 * m/tekxd88.h:
23586 * m/tower32.h:
23587 * m/tower32v3.h:
23588 * m/ustation.h:
23589 * m/wicat.h:
23590 * m/xps100.h:
23591 * s/cxux.h:
23592 * s/cxux7.h:
23593 * s/dgux.h:
23594 * s/dgux4.h:
23595 * s/dgux5-4-3.h:
23596 * s/dgux5-4r2.h:
23597 * s/esix.h:
23598 * s/esix5r4.h:
23599 * s/hiuxmpp.h:
23600 * s/hiuxwe2.h:
23601 * s/iris3-5.h:
23602 * s/iris3-6.h:
23603 * s/isc2-2.h:
23604 * s/isc3-0.h:
23605 * s/isc4-0.h:
23606 * s/isc4-1.h:
23607 * s/newsos5.h:
23608 * s/newsos6.h:
23609 * s/osf1.h:
23610 * s/osf5-0.h:
23611 * s/riscix1-1.h:
23612 * s/riscix12.h:
23613 * s/sco4.h:
23614 * s/sco5.h:
23615 * s/sunos4-0.h:
23616 * s/sunos4-1.h:
23617 * s/sunos413.h:
23618 * s/sunos4shr.h:
23619 * s/umax.h:
23620 * s/unipl5-2.h:
23621 * s/xenix.h:
23622 * cxux-crt0.s:
23623 * unexapollo.c:
23624 * unexconvex.c:
23625 * unexenix.c:
23626 * unexsni.c: Remove files for systems no longer supported.
23627
23628 * m/intel386.h: Remove references to unsupported systems.
23629
23630 * w32.c (get_emacs_configuration): Remove reference to i860.
23631
23632 * sysdep.c: Remove dead code.
23633
236342008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23635
23636 * s/rtu.h:
23637 * m/masscomp.h: Remove files. Platform is obsolete.
23638
236392008-01-04 Michael Albinus <michael.albinus@gmx.de>
23640
23641 * dbusbind.c (Fdbus_method_return): New function.
23642 (xd_read_message): Add the serial number to the event.
23643 (Fdbus_register_method): Activate the function.
23644
236452008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23646
23647 * keyboard.c (read_key_sequence): Fix typo.
23648
236492008-01-03 Michael Albinus <michael.albinus@gmx.de>
23650
23651 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23652 (xd_signature, xd_append_arg): Handle element type detection for
23653 empty arrays.
23654 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23655 SDATA () calls; this must be solved more general.
23656 (Fdbus_register_signal): Use SBYTES instead of strlen.
23657
236582008-01-03 Magnus Henoch <magnus@zemdatav>
23659
23660 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23661 unsigned int for byte values (necessary for big-endian platform).
23662 (Fdbus_call_method): Handle the case of no returned arguments.
23663
236642007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23665
23666 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23667
236682007-12-31 Magnus Henoch <mange@freemail.hu>
23669
23670 * dbusbind.c (xd_signature): Signature of variant is just "v".
23671
236722007-12-30 Michael Albinus <michael.albinus@gmx.de>
23673
23674 * dbusbind.c: Fix several errors and compiler warnings.
23675 Reported by Tom Tromey <tromey@redhat.com>.
23676 (XD_ERROR, XD_DEBUG_MESSAGE)
23677 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23678 (xd_append_arg): Part for basic D-Bus types rewritten.
23679 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23680 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23681 appropriate.
23682 (xd_read_message): Return Qnil. Don't signal an error; it is not
23683 useful during event reading.
23684 (Fdbus_register_signal): Signal an error if the check for
23685 FUNCTIONP fails.
23686 (Fdbus_register_method): New function. The implementation is not
23687 complete, the call of the function signals an error therefore.
23688 (Fdbus_unregister_object): New function, renamed from
23689 Fdbus_unregister_signal. The initial check signals an error, if
23690 the object is not well formed.
23691
236922007-12-30 Richard Stallman <rms@gnu.org>
23693
23694 * textprop.c (get_char_property_and_overlay):
23695 Signal error if POSITION is out of range in a buffer.
23696
236972007-12-29 Martin Rudalics <rudalics@gmx.at>
23698
23699 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23700 because the original parameters are in pure storage now.
23701
237022007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23703
23704 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23705
237062007-12-22 Eli Zaretskii <eliz@gnu.org>
23707
23708 * callint.c (syms_of_callint) <command-history>: Add reference to
23709 history-length in the doc string.
23710
237112007-12-17 Jason Rumney <jasonr@gnu.org>
23712
23713 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23714 before passing as wParam.
23715
237162007-12-22 Michael Albinus <michael.albinus@gmx.de>
23717
23718 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23719 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23720 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23721 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23722 as number.
23723 (Fdbus_call_method): Fix docstring.
23724
237252007-12-21 Michael Albinus <michael.albinus@gmx.de>
23726
23727 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23728 New macros.
23729 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23730 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23731 Simplify.
23732 (xd_signature): New function.
23733 (xd_append_arg): Compute also signatures. Major rewrite.
23734 (xd_retrieve_arg): Make debug messages friendly.
23735 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23736 Check for signatures of arguments.
23737
237382007-12-19 Michael Albinus <michael.albinus@gmx.de>
23739
23740 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23741 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23742 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23743 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23744 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23745 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23746 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23747 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23748 (xd_retrieve_value): Remove. Functionality included in ...
23749 (xd_append_arg): New function.
23750 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23751
237522007-12-16 Michael Albinus <michael.albinus@gmx.de>
23753
23754 * dbusbind.c (top): Include <stdio.h>.
23755 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23756 dbus_message_new_method_call and dbus_message_new_signal.
23757 (Fdbus_register_signal): Rename unique_name to uname.
23758 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23759 non-existing unique name. Fix typos in matching rule. Return an
23760 object which is useful in Fdbus_unregister_signal.
23761 (Fdbus_unregister_signal): Reimplementation, in order to remove
23762 only the corresponding entry.
23763 (Vdbus_registered_functions_table): Change the order of entries.
23764 Apply these changes in xd_read_message and Fdbus_register_signal.
23765
237662007-12-16 Andreas Schwab <schwab@suse.de>
23767
23768 * fileio.c (Finsert_file_contents): Fix overflow check to not
23769 depend on undefined integer overflow.
23770
237712007-12-14 Jason Rumney <jasonr@gnu.org>
23772
23773 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23774 for characters above 127.
23775
237762007-12-13 Jason Rumney <jasonr@gnu.org>
23777
23778 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23779 before dereferencing array.
23780 (lookup_vk_code): Remove zero comparison.
23781
237822007-12-14 Michael Albinus <michael.albinus@gmx.de>
23783
23784 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23785 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23786 Use `unsigned int' instead of `uint'.
23787 (xd_read_message, Fdbus_register_signal): Split expressions into
23788 multiple lines before operators "&&" and "||", according to the
23789 GNU Coding Standards.
23790
237912007-12-14 Eli Zaretskii <eliz@gnu.org>
23792
23793 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23794
237952007-12-12 Juri Linkov <juri@jurta.org>
23796
23797 * buffer.c (Frename_buffer): In interactive spec replace
23798 `read-buffer' with `read-string' that uses `buffer-name-history'
23799 as history, and the current buffer's name as default.
23800
238012007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23802
23803 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23804 manipulating the backtrace manually.
23805 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23806 (struct backtrace, backtrace_list): Remove.
23807 (command_loop_1): Remove dead var `no_direct'.
23808
23809 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23810 preserve non-built-in buffer-local variables.
23811 (Fkill_all_local_variables): Don't re-create&re-set permanent
23812 buffer-local variables.
23813
238142007-12-09 Juri Linkov <juri@jurta.org>
23815
23816 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23817 Lisp code that uses `read-buffer' with current buffer as default.
23818
238192007-12-08 Michael Albinus <michael.albinus@gmx.de>
23820
23821 * dbusbind.c (xd_read_message): Generate an event for every
23822 registered handler. There might be several handlers registered
23823 for the same signal.
23824 (Fdbus_register_signal): Don't overwrite a registration for the
23825 same signal. Add a new registration if handlers are different.
23826 (Vdbus_registered_functions_table): Rework doc string.
23827
238282007-12-07 Michael Albinus <michael.albinus@gmx.de>
23829
23830 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23831 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23832 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23833 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23834 Unify argument lists.
23835 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23836 arguments and hash table keys. Use unique name for service.
23837 (Fdbus_unregister_signal): Remove checks.
23838 (Vdbus_registered_functions_table): Fix doc string.
23839
238402007-12-05 Magnus Henoch <mange@freemail.hu>
23841
23842 * process.c (make_process): Initialize pty_flag to 0.
23843
238442007-12-05 Jason Rumney <jasonr@gnu.org>
23845
23846 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23847 specified XBMs.
23848
238492007-12-05 Richard Stallman <rms@gnu.org>
23850
23851 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23852
238532007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23854
23855 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23856 New variable.
23857 (mac_try_close_socket) [MAC_OSX]: New function.
23858 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23859 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23860
23861 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23862 Use mac_try_close_socket.
23863
238642007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23865
23866 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23867 reloc_base.
23868 (copy_dysymtab): Compute relocation base here.
23869 (rebase_reloc_address) [__ppc64__]: New function.
23870 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23871 changed.
23872
238732007-12-05 Jason Rumney <jasonr@gnu.org>
23874
23875 * w32proc.c (sys_spawnve): Quote args with wildcards.
23876
238772007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23878
23879 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23880 __objc_* sections.
23881 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23882
238832007-12-05 Michael Albinus <michael.albinus@gmx.de>
23884
23885 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23886 Move check for Vdbus_registered_functions_table to
23887 xd_read_queued_messages.
23888 (xd_read_queued_messages): Protect xd_read_message calls by
23889 internal_condition_case_1.
23890
238912007-12-04 Michael Albinus <michael.albinus@gmx.de>
23892
23893 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23894 Qdbus_system_bus and Qdbus_session_bus, respectively.
23895 (Vdbus_intern_symbols): Remove.
23896 (Vdbus_registered_functions_table): New hash table.
23897 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23898 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23899 Rewrite in order to manage registered functions by hash table
23900 Vdbus_registered_functions_table.
23901
239022007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23903
23904 * xterm.c: Update URL to Window Manager Specification in comment.
23905
239062007-12-02 Michael Albinus <michael.albinus@gmx.de>
23907
23908 * config.in (HAVE_DBUS): Add.
23909
23910 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23911 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23912 (obj): Add $(DBUS_OBJ).
23913 (LIBES): Add $(DBUS_LIBS).
23914 (dbusbind.o): New target.
23915
23916 * dbusbind.c: New file.
23917
23918 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23919
23920 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23921 (Qdbus_event): New Lisp symbol.
23922 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23923 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23924 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23925
23926 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23927
239282007-12-01 Richard Stallman <rms@gnu.org>
23929
23930 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23931
239322007-11-30 Jason Rumney <jasonr@gnu.org>
23933
23934 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23935 (w32con_reset_terminal_modes): Clear screen buffer.
23936 (w32_face_attributes): Don't use color indexes that are out of range.
23937 Only reverse the default colors.
23938
23939 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23940 WINDOWSNT.
23941
23942 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23943
239442007-11-29 Jason Rumney <jasonr@gnu.org>
23945
23946 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23947 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23948 if the terminal colors are initialized.
23949 (unspecified_fg, unspecified_bg): Remove unused declarations.
23950
239512007-11-29 Andreas Schwab <schwab@suse.de>
23952
23953 * keyboard.c (apply_modifiers): Fix typo.
23954
239552007-11-29 Richard Stallman <rms@gnu.org>
23956
23957 * keymap.c (Fcurrent_local_map): Doc fix.
23958
239592007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23960
23961 * s/gnu-kfreebsd.h: New file.
23962
239632007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23964
23965 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23966 Don't cast redundantly.
23967
23968 * keyboard.c (KEY_TO_CHAR): New macro.
23969 (parse_modifiers, apply_modifiers): Accept integer arguments.
23970 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23971 for chars and symbol keys.
23972 After doing such remapping, apply function-key-map again.
23973
239742007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23975
23976 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23977 compiled anymore.
23978
239792007-11-26 Andreas Schwab <schwab@suse.de>
23980
23981 * process.c (list_processes_1): Fix indentation level of the
23982 command column.
23983
239842007-11-23 Andreas Schwab <schwab@suse.de>
23985
23986 * editfns.c (Fformat): Handle %c specially since it requires the
23987 argument to be of type int.
23988
239892007-11-23 Markus Triska <markus.triska@gmx.at>
23990
23991 * emacs.c (main): Call init_editfns before init_process, since
23992 init_process sets Vprocess_connection_type depending on OS release.
23993
239942007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23995
23996 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23997 (find_symbol_value): Use do_symval_forwarding.
23998
23999 * data.c (set_internal): Set the value in the `cons-cell' (for
24000 Buffer_Local_values) not only for frame-local variables.
24001
240022007-11-22 Andreas Schwab <schwab@suse.de>
24003
24004 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24005 values to sprintf.
24006 * keymap.c (Fsingle_key_description): Likewise.
24007 * print.c (print_object): Likewise.
24008
240092007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24010
24011 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24012 file for image is nil.
24013
240142007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24015
24016 * term.c: Include stdarg.h.
24017 (fatal): Implement using varargs.
24018 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24019
240202007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24021
24022 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24023 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24024 Update call to buffer_slot_type_mismatch.
24025 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24026 (buffer_slot_type_mismatch): Update.
24027 * buffer.c (buffer_local_types): Remove.
24028 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24029 (defvar_per_buffer): Set the type in the buffer_objfwd.
24030
240312007-11-21 Jason Rumney <jasonr@gnu.org>
24032
24033 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24034 CreateFileMapping returns NULL on failure.
24035
240362007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24037
24038 * search.c (Fset_match_data): Remove the `evaporate' feature.
24039 (unwind_set_match_data): Don't use the `evaporate' feature.
24040
240412007-11-21 Jason Rumney <jasonr@gnu.org>
24042
24043 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24044
24045 * w32console.c (w32con_write_glyphs): Remove unused variables.
24046
240472007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24048
24049 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24050
24051 * s/darwin.h (MULTI_KBOARD): Remove.
24052
24053 * macfns.c (x_create_tip_frame, Fx_create_frame)
24054 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24055
240562007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24057
24058 * buffer.c (Fbuffer_local_value): Remove redundant test.
24059 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24060 than in `current-buffer' to match the comment.
24061 Do the swap using swap_in_global_binding.
24062
24063 * data.c (store_symval_forwarding, set_internal):
24064 * eval.c (specbind): Remove dead code.
24065
24066 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24067 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24068 Since we do not want to see internal Lisp_*fwd objects here.
24069
240702007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24071
24072 * sysdep.c (init_system_name): Use getaddrinfo if available.
24073
24074 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24075 (x_scroll_bar_note_movement): start, end, with, height in struct
24076 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24077
240782007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24079
24080 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24081
240822007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24083
24084 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24085 This undoes Richard's change of 14-Oct-2002.
24086
24087 * alloc.c (allocate_other_vector):
24088 * lisp.h (allocate_other_vector): Remove.
24089
24090 * window.c (struct save_window_data): Move non-lisp data to the end
24091 and make it `int' rather than Lisp_Object.
24092 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24093 Done wrap/unwrap integer values.
24094 (Fset_window_configuration, compare_window_configurations):
24095 Update use of fields to their new types.
24096
24097 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24098 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24099 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24100 (SET_SCROLL_BAR_X_WINDOW): Remove.
24101 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24102 Access the new x_window field directly.
24103 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24104 Don't wrap/unwrap integers into Lisp_Objects.
24105 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24106 (x_scroll_bar_report_motion):
24107 Don't wrap/unwrap integers into Lisp_Objects.
24108 (x_term_init): Use SDATA.
24109 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24110 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24111 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24112 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24113 * xfns.c (x_set_background_color):
24114 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24115 Access the new x_window field directly.
24116
24117 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24118 (allocate_pseudovector): Make non-static.
24119
24120 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24121 (allocate_pseudovector): Declare.
24122 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24123
241242007-11-15 Andreas Schwab <schwab@suse.de>
24125
24126 * editfns.c (Fformat): Correctly format EMACS_INT values.
24127 Also take precision into account when formatting an integer.
24128
24129 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24130
241312007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24132
24133 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24134 (syms_of_keyboard): Defsubr it.
24135
24136 * data.c (swap_in_global_binding): Fix longstanding bug where
24137 store_symval_forwarding was not called with the right second argument,
24138 thus causing objfwd-ing from being dropped.
24139
241402007-11-14 Juanma Barranquero <lekktu@gmail.com>
24141
24142 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24143 (Fx_display_pixel_height, Fx_display_planes)
24144 (Fx_display_color_cells, Fx_server_max_request_size)
24145 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24146 (Fx_display_visual_class, Fx_display_save_under):
24147 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24148 (Fx_display_pixel_height, Fx_display_planes)
24149 (Fx_display_color_cells, Fx_server_max_request_size)
24150 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24151 (Fx_display_mm_height, Fx_display_mm_width)
24152 (Fx_display_backing_store, Fx_display_visual_class)
24153 (Fw32_select_font, Fx_display_save_under):
24154 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24155 (Fx_display_pixel_height, Fx_display_planes)
24156 (Fx_display_color_cells, Fx_server_max_request_size)
24157 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24158 (Fx_display_save_under): Fix typos in docstrings.
24159
241602007-11-14 Juanma Barranquero <lekktu@gmail.com>
24161
24162 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24163 corresponding to deleted entries; they are an implementation detail.
24164 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24165 Remove variables.
24166 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24167 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24168 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24169 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24170 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24171 (Fw32_define_rgb_color, Fw32_load_color_file)
24172 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24173 Fix typos in docstrings.
24174 (Fx_server_version): Reflow docstring.
24175 (Fw32_shell_execute): Doc fixes.
24176
241772007-11-13 Juanma Barranquero <lekktu@gmail.com>
24178
24179 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24180 if w32_parse_hot_key returned nil.
24181
241822007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24183
24184 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24185
241862007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 24187
aac0c6e3
MR
24188 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24189
24190 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24191
24192 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24193 Remove W32_SCROLL_BAR_CLICK_EVENT.
24194
24195 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24196 Add MULTIMEDIA_KEY_EVENT.
24197
24198 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24199 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24200 (make_lispy_event) [WINDOWSNT]: Use it to translate
24201 MULTIMEDIA_KEY_EVENT.
24202
24203 * w32term.h (WM_APPCOMMAND): Define if not already.
24204 (GET_APPCOMMAND_LPARAM): Likewise.
24205
24206 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24207 WM_APPCOMMAND.
24208
24209 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24210 (syms_of_w32fns): Export and initialize it.
24211 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24212
242132007-11-09 Chong Yidong <cyd@stupidchicken.com>
24214
24215 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24216 twice.
24217
24218 * xdisp.c (handle_face_prop): Fix last change.
24219
242202007-11-09 Richard Stallman <rms@gnu.org>
24221
24222 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24223 not just for after-strings and before-strings.
24224 Call face_for_overlay_string and pass the overlay to it.
24225 (handle_display_prop): Determine whether property came from an overlay.
24226 Pass OVERLAY arg to handle_single_display_spec.
24227 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24228 (load_overlay_strings): Fill in it->string_overlays.
24229 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24230
24231 * xfaces.c (face_for_overlay_string): Function renamed from
24232 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24233
24234 * dispextern.h (struct it): New elt string_overlays.
24235 New elt from_overlay, also in stack.
24236 Rearrange a few elements.
24237 (face_for_overlay_string): Decl renamed from
24238 face_at_buffer_position_no_overlays, and add argument.
24239
242402007-11-09 Richard Stallman <rms@gnu.org>
24241
24242 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24243 to get the base face for an overlay string.
24244
24245 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24246
24247 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24248
24249 * xdisp.c (handle_stop): Move some code out of loop.
24250
242512007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24252
24253 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24254 Fix conversion from Lisp object to ATSUFontID.
24255
242562007-11-09 Jason Rumney <jasonr@gnu.org>
24257
24258 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24259
242602007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24261
24262 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24263 Don't assume regions are aligned to page boundary.
24264 (print_load_command_name): Add LC_UUID if defined.
24265
242662007-11-09 Richard Stallman <rms@gnu.org>
24267
24268 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24269
242702007-11-07 Jason Rumney <jasonr@gnu.org>
24271
24272 * s/windows95.h: Remove.
24273
242742007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24275
24276 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24277 abort with a message on unhandled store_type values.
24278
242792007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24280
24281 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24282 Remove HAVE_X11R5 and HAVE_X11R4.
24283
242842007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24285
24286 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24287
242882007-11-01 Johan Bockgård <bojohan@gnu.org>
24289
24290 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24291 Don't set s->stippled_p here, since it has already been set by
24292 x_set_glyph_string_gc from x_draw_glyph_string.
24293
242942007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24295
24296 * sunfns.c: Remove file.
24297
24298 * m/sun386.h:
24299 * m/sun2.h:
24300 * m/sparc.h: Remove Sun windows code.
24301
243022007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24303
24304 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24305 (init_keyboard): Set current_kboard's window-system to nil.
24306 (tty_read_avail_input): Typo.
24307 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24308
243092007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24310
24311 * s/usg5-4.h:
24312 * s/usg5-3.h:
24313 * s/ptx.h:
24314 * m/is386.h:
24315 * m/ibmps2-aix.h:
24316 * Makefile.in: Remove all mentions of X10.
24317
24318 * dispnew.c (syms_of_display): Don't mention version 10.
24319
243202007-10-28 Juanma Barranquero <lekktu@gmail.com>
24321
24322 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24323 ($(BLD)/abbrev.$(O)): Remove.
24324
243252007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24326
24327 Rewrite abbrev.c in Elisp.
24328 * image.c (Qcount): Don't declare as extern.
24329 (syms_of_image): Initialize and staticpro `Qcount'.
24330 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24331 * emacs.c (main): Don't call syms_of_abbrev.
24332 * Makefile.in (obj): Remove abbrev.o.
24333 (abbrev.o): Remove.
24334 * abbrev.c: Remove.
24335
243362007-10-26 Martin Rudalics <rudalics@gmx.at>
24337
24338 * window.c (window_min_size_2): Don't count header-line.
24339
243402007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24341
24342 * frame.h (struct frame): Move all bit fields after the first bit
24343 field to take advantage of the available space. Group all the
24344 chars together to reduce wasted space due to padding.
24345
243462007-10-26 Juanma Barranquero <lekktu@gmail.com>
24347
24348 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24349
24350 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24351 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24352 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24353 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24354 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24355 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24356 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24357 (last_marked, mark_object_loop_halt): Make static.
24358
24359 * frame.c (syms_of_frame) <delete-frame-functions>:
24360 Fix typo in docstring.
24361
243622007-10-25 Juanma Barranquero <lekktu@gmail.com>
24363
24364 * w32.c (init_environment): Fix tiny memory leak.
24365 (w32_get_resource): Remove unused variable `ok'.
24366
243672007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24368
24369 Make `window-system' into a keyboard-local variable (rather than
24370 frame-local as done originally by multi-tty).
24371
24372 * keyboard.h (struct kboard): Add Vwindow_system.
24373 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24374 (mark_kboards): Mark Vwindow_system.
24375
24376 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24377 (init_display): Don't set the obsolete `window-system' frame-param.
24378
24379 * xterm.c (x_term_init):
24380 * w32term.c (w32_create_terminal):
24381 * term.c (init_tty): Set Vwindow_system.
24382 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24383 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24384
24385 * xfns.c (Fx_create_frame, x_create_tip_frame):
24386 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24387 * macfns.c (Fx_create_frame):
24388 Don't set the obsolete `window-system' frame-param.
24389
24390 * frame.h (Qwindow_system): Remove.
24391 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24392 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24393
243942007-10-24 Richard Stallman <rms@gnu.org>
24395
24396 * frame.c (x_figure_window_size): For fullscreen case,
24397 set USPosition | PPosition without clobbering rest of window_prompting.
24398
24399 * keyboard.c (Fcurrent_idle_time): Doc fix.
24400
24401 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24402
244032007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24404
24405 * process.c (unwind_request_sigio): Only define if __ultrix__.
24406
24407 * callproc.c (child_setup): Remove spurious *.
24408
24409 * lisp.h (Fget_text_property): Declare.
24410 (have_menus_p): Declare it here rather than in sys-dep header files.
24411 * macterm.h (have_menus_p):
24412 * msdos.h (have_menus_p):
24413 * xterm.h (have_menus_p): Remove.
24414
24415 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24416 (Fmake_variable_frame_local): Just check the variable's const-ness
24417 rather than checking nil or t.
24418
244192007-10-22 Jason Rumney <jasonr@gnu.org>
24420
24421 * w32fns.c: Include math.h.
24422 (w32_abort): Declaration moved to nt/config.nt.
24423
24424 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24425 (abort): Redefinition moved to nt/config.nt.
24426
24427 * m/windowsnt.h: Remove.
24428
244292007-10-22 Juanma Barranquero <lekktu@gmail.com>
24430
24431 * emacs.c (Fdump_emacs): Fix typo in message.
24432 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24433 <installation-directory>: Reflow docstring.
24434
244352007-10-22 Juri Linkov <juri@jurta.org>
24436
24437 * minibuf.c: Allow minibuffer default to be a list of default values.
24438 With empty input use the first element of this list as returned default.
24439 (string_to_object)
24440 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24441 (read_minibuf): If defalt is cons, set histstring to its car.
24442 (Fread_string): If default_value is cons, set val to its car.
24443 (Fread_buffer): If def is cons, use its car.
24444 (Fcompleting_read): If defalt is cons, set val to its car.
24445
244462007-10-21 Michael Albinus <michael.albinus@gmx.de>
24447
24448 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24449
244502007-10-20 Juanma Barranquero <lekktu@gmail.com>
24451
24452 * doc.c (Fdocumentation): Check for advice in all cases.
24453
244542007-10-19 Chong Yidong <cyd@stupidchicken.com>
24455
24456 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24457
244582007-10-19 Richard Stallman <rms@gnu.org>
24459
24460 * doc.c (Fdocumentation): Check for and handle an advised function.
24461
244622007-10-19 Juanma Barranquero <lekktu@gmail.com>
24463
24464 * process.c (Fset_process_filter): Doc fix.
24465
244662007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24467
24468 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24469 which caused key-translation-map to applied repeatedly (thus breaking
24470 double-mode).
24471
244722007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24473
24474 * xselect.c (x_own_selection, x_handle_selection_clear)
24475 (x_clear_frame_selections):
24476 * w32menu.c (list_of_panes, list_of_items):
24477 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24478 * textprop.c (validate_plist, interval_has_all_properties)
24479 (interval_has_some_properties, interval_has_some_properties_list)
24480 (add_properties, text_property_list):
24481 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24482 * minibuf.c (Fassoc_string):
24483 * macselect.c (x_own_selection, x_clear_frame_selections)
24484 (Fx_disown_selection_internal):
24485 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24486 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24487
244882007-10-17 Chong Yidong <cyd@stupidchicken.com>
24489
24490 * process.c: Link to libs for calling res_init() if available.
24491 (Fmake_network_process): Call res_init() before getaddrinfo or
24492 gethostbyname, if possible.
24493
244942007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24495
24496 * lread.c (read1): Set pvectype for char_tables.
24497
24498 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24499 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24500 Add type checks.
24501 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24502
24503 * alloc.c (free_misc): Use XMISCTYPE.
24504 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24505
245062007-10-17 Glenn Morris <rgm@gnu.org>
24507
24508 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24509 (syms_of_minibuf): Add Qcompletion_ignore_case.
24510 * dired.c (Qcompletion_ignore_case): Change to external.
24511 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24512 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24513 (Fread_file_name): Use it rather than intern'ing.
24514
24515 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24516 (Fread_coding_system): Ignore case of user input.
24517
245182007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24519
24520 * xdisp.c (handle_display_prop): Ignore display specs after
24521 replacing one when string text is being replaced.
24522 (handle_single_display_spec): Pretend as if characters with display
24523 property haven't been consumed only when buffer text is being replaced.
24524
245252007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24526
24527 * xfns.c (Fx_create_frame, Fx_display_list):
24528 * window.c (window_fixed_size_p, enlarge_window)
24529 (shrink_window_lowest_first):
24530 * macterm.c (init_font_name_table):
24531 * macfns.c (Fx_create_frame, Fx_display_list):
24532 * lread.c (close_load_descs):
24533 * keyboard.c (read_char_x_menu_prompt):
24534 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24535 * coding.c (code_convert_region_unwind): Test the type of an object
24536 rather than just !NILP before extracting data from it.
24537
24538 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24539
24540 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24541 (XMISCANY): New macro.
24542 (XMISCTYPE): Use it.
24543 (struct Lisp_Misc_Any): New type.
24544 (union Lisp_Misc): Use it.
24545 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24546 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24547 (find_symbol_value, set_internal, default_value, Fset_default)
24548 (Fmake_variable_buffer_local, Fmake_local_variable)
24549 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24550 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24551 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24552 * alloc.c (allocate_buffer): Set the size and tag.
24553 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24554 Use XMISCANY.
24555 (die): Follow the GNU convention for error messages.
24556 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24557 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24558 tag any more.
24559 (set_buffer_internal_1):
24560 * frame.c (store_frame_param):
24561 * eval.c (specbind):
24562 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24563
24564 * doc.c (Fsnarf_documentation): Simplify.
24565
245662007-10-14 Juanma Barranquero <lekktu@gmail.com>
24567
24568 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24569 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24570
245712007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24572
24573 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24574
245752007-10-14 Juanma Barranquero <lekktu@gmail.com>
24576
24577 * eval.c (do_autoload): Don't save autoloads.
24578
24579 * data.c (Ffset): Save autoload of the function being set.
24580
245812007-10-07 John Paul Wallington <jpw@pobox.com>
24582
24583 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24584 parameter before setting up faces.
24585
245862007-10-13 Eli Zaretskii <eliz@gnu.org>
24587
24588 * ccl.c (Fregister_code_conversion_map):
24589 * keyboard.c (append_tool_bar_item): Reformat last change.
24590
24591 * lisp.h (eabs): Rename from `abs'. All callers changed.
24592
245932007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24594
24595 * buffer.c (add_overlay_mod_hooklist):
24596 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24597 * fontset.c (make_fontset):
24598 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24599 (append_tool_bar_item):
24600 * macmenu.c (grow_menu_items):
24601 * w32menu.c (grow_menu_items):
24602 * xmenu.c (grow_menu_items): Use larger_vector.
24603
246042007-10-13 Eli Zaretskii <eliz@gnu.org>
24605
24606 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24607 selected frame'' on MSDOS).
24608
246092007-10-12 Martin Rudalics <rudalics@gmx.at>
24610
24611 * frame.c (Qexplicit_name): New variable.
24612 (x_report_frame_params): Report it in parameter alist.
24613 (syms_of_frame): Intern and staticpro it.
24614
246152007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24616
24617 * macfns.c (x_create_tip_frame): Set terminal for frame.
24618
246192007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24620
24621 * frame.c (Qenvironment): Remove.
24622 (syms_of_frame) <Qenvironment>: Don't initialize.
24623 (Fdelete_frame): Don't treat the `environment' param specially.
24624 * frame.h (Qenvironment): Don't declare.
24625 * callproc.c (set_initial_environment): Don't set unused frame param.
24626
24627 * frame.c (Fframe_with_environment): Remove.
24628 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24629
24630 * lisp.h (Fframe_with_environment): Don't declare.
24631
246322007-10-10 Juanma Barranquero <lekktu@gmail.com>
24633
24634 * indent.c (indent_tabs_mode, last_known_column)
24635 (last_known_column_modified): Make static.
24636 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24637
246382007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24639
24640 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24641
246422007-10-09 Jason Rumney <jasonr@gnu.org>
24643
24644 * w32term.c (x_set_window_size): Disable code that attempts to tell
24645 Lisp code about a size change before it actually happens.
24646
246472007-10-09 Richard Stallman <rms@gnu.org>
24648
24649 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24650 return HANDLED_RETURN.
24651
246522007-10-08 Martin Rudalics <rudalics@gmx.at>
24653
24654 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24655 when there's an unread command event.
24656
24657 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24658 window autoselection act appropriately when leaving selected frame.
24659 (syms_of_frame): Initialize focus_follows_mouse.
24660 * frame.h (focus_follows_mouse): Extern it.
24661 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24662 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24663 * msdos.c (dos_rawgetc): Likewise.
24664 * w32term.c (w32_read_socket): Likewise.
24665 * xterm.c (handle_one_xevent): Likewise.
24666 * xdisp.c (syms_of_xdisp): In doc-string of
24667 mouse-autoselect-window mention focus-follows-mouse.
24668
246692007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24670
24671 * macterm.c (mac_load_query_font): Fix missing return value.
24672 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24673 Add BLOCK_INPUT.
24674
246752007-10-08 Richard Stallman <rms@gnu.org>
24676
24677 * xdisp.c (get_window_cursor_type): Implement documented behavior
24678 for cursor-in-non-selected-windows = t.
24679
246802007-10-08 Jason Rumney <jasonr@gnu.org>
24681
24682 * w32.c (w32_get_resource): Always close registry keys.
24683
246842007-10-08 Jason Rumney <jasonr@gnu.org>
24685
24686 * makefile.w32-in (LIBS): Add COMCTL32.
24687
24688 * w32fns.c (globals_of_w32fns): Init common controls.
24689
246902007-10-08 Richard Stallman <rms@gnu.org>
24691
24692 * image.c (our_memory_buffer): Rename from omfib_buffer.
24693
246942007-10-08 Richard Stallman <rms@gnu.org>
24695
24696 * buffer.c (Foverlays_at): Doc fix.
24697
246982007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24699
24700 * fns.c (Fplist_put): Preserve uneven tail data.
24701
247022007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24703
24704 * termhooks.h (enum event_kind): Remove trailing comma.
24705
24706 * frame.h (enum): Remove trailing comma.
24707
247082007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24709
24710 * w32proc.c (delete_child): Don't terminate threads of zombies.
24711
247122007-10-08 Martin Rudalics <rudalics@gmx.at>
24713
24714 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24715
24716 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24717 last-repeatable-command.
24718 (init_kboard): Initialize Vlast_repeatable_command.
24719 (command_loop_1): Set it to real_this_command unless that was
24720 bound to an input event.
24721 (mark_kboards): Mark it.
24722
247232007-10-08 Richard Stallman <rms@gnu.org>
24724
24725 * eval.c (condition-case): Doc fix.
24726
247272007-10-08 Masatake YAMATO <jet@gyve.org>
24728
24729 * xfaces.c (tty_supports_face_attributes_p): Fix code
24730 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24731 was copied and not edited.
24732
247332007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24734
24735 Add new `input-decode-map' keymap and use it for terminal
24736 escape sequences.
24737 * keyboard.h (struct kboard): Add Vinput_decode_map.
24738 Remove Vlocal_key_translation_map.
24739 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24740 (init_kboard): Init input-decode-map.
24741 Replace local-key-translation-map back with key-translation-map.
24742 (syms_of_keyboard): Declare input-decode-map.
24743 Remove local-key-translation-map. Update docstrings.
24744 (mark_kboards): Mark Vinput_decode_map.
24745 Don't mark Vlocal_key_translation_map.
24746 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24747 Replace local-key-translation-map back with key-translation-map.
24748 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24749 Bind in input-decode-map rather than function-key-map.
24750
24751 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24752 This was made redundant by the previous introduction of XSETPVECTYPE.
24753
247542007-10-09 Richard Stallman <rms@gnu.org>
24755
24756 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24757
247582007-09-29 Richard Stallman <rms@gnu.org>
24759
24760 * eval.c (internal_condition_case_2, internal_condition_case_1)
24761 (internal_condition_case): Reenable abort if x_catching_errors ()
24762 to see if that really happens and why.
24763
247642007-10-06 Andreas Schwab <schwab@suse.de>
24765
24766 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24767
247682007-10-04 Juanma Barranquero <lekktu@gmail.com>
24769
24770 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24771
247722007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24773
24774 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24775
247762007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24777
24778 * window.h (struct window):
24779 * window.c (struct save_window_data, struct saved_window):
24780 * termhooks.h (struct terminal):
24781 * process.h (struct Lisp_Process):
24782 * frame.h (struct frame):
24783 * buffer.h (struct buffer):
24784 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24785 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24786 The size field of (pseudo)vectors is now unsigned.
24787 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24788
24789 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24790 Turn `count' into an integer.
24791
24792 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24793 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24794 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24795 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24796 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24797
24798 * alloc.c (allocate_pseudovector): New fun.
24799 (ALLOCATE_PSEUDOVECTOR): New macro.
24800 (allocate_window, allocate_terminal, allocate_frame)
24801 (allocate_process): Use it.
24802 (mark_vectorlike): New function.
24803 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24804 (mark_terminals): Use it.
24805 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24806 (Fmake_byte_code): Use XSETPVECTYPE.
24807
24808 * frame.c (Fframe_parameters): Minor simplification.
24809
24810 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24811
24812 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24813
24814 * buffer.c (Fget_buffer_create, init_buffer_once):
24815 * lread.c (defsubr):
24816 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24817
24818 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24819 defined differently in the m/*.h files.
24820 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24821 (XSETPVECTYPE): New macro.
24822 (XSETPSEUDOVECTOR): Use it.
24823
24824 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24825 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24826
24827 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24828 * lread.c (defvar_per_buffer):
24829 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24830
24831 * window.c (candidate_window_p): Only consider as visible frames that
24832 are on the same terminal.
24833
24834 * m/ibms390x.h (MARKBIT): Remove unused macro.
24835
248362007-10-01 Juanma Barranquero <lekktu@gmail.com>
24837
24838 * lread.c (Fload): Fix typo in docstring.
24839
248402007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24841
24842 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24843 of a non-zero value can't yield zero.
24844
248452007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24846
24847 * term.c (term_clear_mouse_face, term_mouse_highlight)
24848 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24849
24850 * print.c (safe_debug_print): Use XHASH.
24851
24852 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24853 Lisp elements such as tags.
24854 (XHASH): New macro.
24855 (EQ): Use it.
24856 (SREF, SSET, STRING_COPYIN): Use SDATA.
24857 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24858
24859 * alloc.c (mark_terminal): Remove left-over declaration.
24860 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24861 (allocate_vectorlike): Remove type argument. Adjust callers.
24862 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24863 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24864
24865 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24866 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24867 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24868 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24869 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24870 Use them.
24871
24872 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24873 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24874 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24875
248762007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24877
24878 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24879 loaded by default.
24880
248812007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24882
24883 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24884 on this tty.
24885 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24886
24887 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24888 Update all users.
24889 (handle_one_term_event): Use Gpm_DrawPointer.
24890 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24891 Signal errors instead of returning nil. Always return nil.
24892 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24893 Make it a noop if gpm-mouse was not activated.
24894 (syms_of_term): Update names.
24895
248962007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24897
24898 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24899 (init_sys_modes): Check that gpm_tty is the current tty.
24900
24901 * alloc.c (allocate_terminal): Set the vector size to only count the
24902 lisp fields. Initialize those to nil.
24903 (mark_object): Don't treat terminals specially.
24904 (mark_terminal): Remove.
24905 (mark_terminals): Use mark_object instead.
24906
24907 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24908 the GC to the beginning.
24909
24910 * indent.h:
24911 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24912
24913 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24914
249152007-09-25 Jason Rumney <jasonr@gnu.org>
24916
24917 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24918
24919 * w32console.c (create_w32cons_output): Remove.
24920
24921 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24922
24923 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24924 (reset_sys_modes): Use reset_terminal_modes_hook.
24925
249262007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24927
24928 * eval.c (do_autoload): Don't output any message.
24929
249302007-09-24 Juri Linkov <juri@jurta.org>
24931
24932 * emacs.c (standard_args): Change priority of "--no-splash"
24933 from 40 to 3. Add "--no-desktop" with the same priority.
24934
249352007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24936
24937 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24938 and optimize the case where they are all 1.
24939
249402007-09-23 Johannes Weiner <hannes@saeurebad.de>
24941
24942 * lisp.h (abs): Define if not defined.
24943 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24944 Don't define `abs', since it's defined in lisp.h.
24945
249462007-09-22 Eli Zaretskii <eliz@gnu.org>
24947
24948 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24949 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24950 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24951 (init_tty): Use DEV_TTY instead of "/dev/tty".
24952 [WINDOWSNT]: No need to protect from NAME arg being null.
24953
249542007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24955
24956 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24957 up the tty state.
24958
249592007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24960
24961 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24962 (gpm_tty): Change its type.
24963 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24964 (gpm_tty): Change its type and initialize it.
24965 (Fterm_open_connection): Check the frame is indeed a tty.
24966 Use the new gpm_tty.
24967 (Fterm_close_connection): Use the new gpm_tty.
24968 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24969 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24970
249712007-09-21 Juanma Barranquero <lekktu@gmail.com>
24972
24973 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24974 underline_color, to draw strike-through.
24975
249762007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24977
24978 * lisp.h (allocate_terminal): Declare.
24979
24980 * window.c (candidate_window_p): Consider frames that are being placed
24981 by the user as somewhere between visible and iconified.
24982 (window_loop): Prefer windows on the current frame.
24983 (Fselect_window): Move the use of select-frame to the beginning so we
24984 can just delegate all the work (it'll call us back anyway).
24985
24986 * frame.c (Qdisplay_environment_variable):
24987 * frame.h (Qdisplay_environment_variable): Delete.
24988
24989 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24990 of the first arg, since that value may be a union.
24991
24992 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24993 parameter rather than Qdisplay_environment_variable. If all else
24994 fails, look for DISPLAY in initial-environment.
24995
249962007-09-21 Glenn Morris <rgm@gnu.org>
24997
24998 * Makefile.in (emacstool): Remove target.
24999 (lisp, shortlisp): Remove termdev.elc.
25000
250012007-09-21 Markus Triska <markus.triska@gmx.at>
25002
25003 * xterm.c (x_delete_display): Compile session management conditionally.
25004
250052007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25006
25007 * callproc.c (getenv_internal_1): New function.
25008 (getenv_internal): Use it.
25009 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25010
25011 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25012 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25013 (Fset_terminal_parameter): Work with dead terminals as well.
25014 (Fmodify_terminal_parameters): Remove.
25015
25016 * terminal.c (get_terminal): Handle terminals.
25017 Make sure the terminal returned is live.
25018 (create_terminal): Use allocate_terminal.
25019 (mark_terminals): Move to alloc.c.
25020 (delete_terminal): Use terminal->name as liveness status.
25021 NULL out fields after freeing their contents.
25022 Don't deallocate the object.
25023 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25024 rather than an int.
25025 (Fterminal_live_p): Accept non-integer arguments.
25026 (Fterminal_list): Return terminal objects rather than an ints.
25027
25028 * alloc.c (enum mem_type): New member for `terminal' objects.
25029 (allocate_terminal): New function.
25030 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25031 Handle terminals.
25032 (mark_terminal): New fun.
25033 (mark_terminals): Move from terminal.c.
25034
25035 * term.c (get_tty_terminal): Don't treat output_initial specially.
25036 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25037 (delete_tty): Use terminal->name as liveness status.
25038
25039 * termhooks.h (struct terminal): Make it into a pseudovector.
25040 Remove `deleted' replaced by checking `name's nullness.
25041
25042 * print.c (print_object): Handle terminals.
25043
25044 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25045 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25046
25047 * frame.c (make_terminal_frame):
25048 * keyboard.c (tty_read_avail_input):
25049 * w32term.c (x_delete_terminal):
25050 * xfns.c (Fx_create_frame, x_create_tip_frame):
25051 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25052
250532007-09-20 Glenn Morris <rgm@gnu.org>
25054
25055 * process.c (Fmake_network_process): Doc fix.
25056
250572007-09-19 Jason Rumney <jasonr@gnu.org>
25058
25059 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25060
250612007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25062
25063 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25064 Fix a C warning regarding variable constness.
25065
25066 * xterm.c (handle_one_xevent): Fix a C warning.
25067
250682007-09-18 Jason Rumney <jasonr@gnu.org>
25069
25070 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25071
250722007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25073
25074 * gtkutil.c (gdpy_def): New variable.
25075 (xg_initialize): Initialize gdpy_def.
25076 (xg_display_close): If no other display exists, set gdpy_def to a
25077 new connection.
25078
250792007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25080
25081 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25082 when we have no file name for the icon.
25083 (xg_tool_bar_expose_callback): Remove.
25084 (xg_create_tool_bar): Don't connect expose signal to
25085 xg_tool_bar_expose_callback.
25086 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25087
250882007-09-16 Andreas Schwab <schwab@suse.de>
25089
25090 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25091 values instead of zapping them.
25092
250932007-09-14 Glenn Morris <rgm@gnu.org>
25094
25095 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25096 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25097 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25098 scope and rename to omfib_buffer for clarity.
25099 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25100
251012007-09-14 Kenichi Handa <handa@m17n.org>
25102
25103 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25104
251052007-09-13 Jason Rumney <jasonr@gnu.org>
25106
25107 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25108
25109 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25110
25111 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25112 (mac_term_init): Call here instead, passing rif.
25113
251142007-09-13 Glenn Morris <rgm@gnu.org>
25115
25116 * s/hpux.h: No longer define `static' as nothing.
25117
251182007-09-13 Johan Bockgård <bojohan@gnu.org>
25119
25120 * callint.c (Fcall_interactively): Remove unused var `fun'.
25121
251222007-09-12 Romain Francoise <romain@orebokech.com>
25123
25124 * window.c (prefer_window_split_horizontally, display_buffer):
25125 Revert 2007-09-08 change.
25126
251272007-09-12 Glenn Morris <rgm@gnu.org>
25128
25129 * alloca.c: Remove file.
25130 * Makefile.in (alloca): Do not undef.
25131 (allocaobj, alloca.o): Remove.
25132 (otherobj): Remove allocaobj.
25133 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25134 * regex.c (C_ALLOCA): Remove all references and code that was only
25135 used when this was defined.
25136 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25137 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25138 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25139
25140 * Makefile.in (SOURCES, unlock, relock): Delete.
25141
25142 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25143 (menu_grab_callback): All uses changed.
25144
25145 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25146 (x_reply_selection_request): All uses changed.
25147
251482007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25149
25150 * lread.c (load_warn_old_style_backquotes): Change message to look
25151 better when it appears in the middle of byte-compiler messages.
25152
251532007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25154
25155 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25156
25157 * xterm.c (x_create_terminal): Add comment.
25158
25159 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25160
251612007-09-10 Richard Stallman <rms@gnu.org>
25162
25163 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25164
251652007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25166
25167 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25168 (DEFUN): Document `intspec', use it instead of `prompt'.
25169
25170 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25171
25172 * data.c (Finteractive_form): If the interactive specification starts
25173 with a `(', use it as a Lisp form.
25174
25175 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25176 name and file modes.
25177
25178 * callint.c (Fcall_interactively): Comment fixes.
25179
251802007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25181
25182 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25183 and compiled functions.
25184
251852007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25186
25187 * window.c (prefer_window_split_horizontally): New variable.
25188 (display_buffer): Consider splitting window horizontally depending
25189 on prefer_window_split_horizontally.
25190
251912007-09-08 Eli Zaretskii <eliz@gnu.org>
25192
25193 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25194
251952007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25196
25197 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25198
25199 * frame.c (x_set_frame_parameters): Check number is positive before
25200 using XFASTINT.
25201
25202 * window.c (freeze_window_start): Don't presume selected_window holds
25203 a window object.
25204 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25205
252062007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25207
25208 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25209
252102007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25211
25212 * window.c (Vsplit_window_preferred_function): New var.
25213 (Fdisplay_buffer): Use it.
25214 (syms_of_window): Export, and initialize it.
25215
252162007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25217
25218 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25219
252202007-09-06 Glenn Morris <rgm@gnu.org>
25221
25222 * gtkutil.c (menu_grab_callback) <cnt>:
25223 * xselect.c (x_reply_selection_request) <cnt>: Move static
25224 variable to file scope.
25225
252262007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25227
25228 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25229 consistent values of selected_frame and selected_window.
25230
252312007-09-04 Jason Rumney <jasonr@gnu.org>
25232
25233 * w32console.c (initialize_w32_display): Zero unused hooks.
25234
252352007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25236
25237 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25238 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25239
252402007-09-04 Jason Rumney <jasonr@gnu.org>
25241
25242 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25243 in w32console.c. Set up input. Remove XXX comments that have been
25244 confirmed as correct.
25245
25246 * s/ms-w32.h (MULTI_KBOARD): Define.
25247
25248 * w32console.c (one_and_only_w32cons): Remove.
25249 (initialize_w32_display): Take terminal argument.
25250
25251 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25252 initialize_w32_display.
25253 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25254
25255 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25256
25257 * keyboard.c (discard_mouse_events): Discard it.
25258 (make_lispy_event): Translate it to a lisp event.
25259 (lispy_wheel_names): Add wheel-left and right events.
25260 (syms_of_keyboard): Enlarge wheel_syms.
25261
25262 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25263 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25264
25265 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25266
25267 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25268 from WM_MOUSEHWHEEL.
25269 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25270
25271 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25272 terminal.
25273
25274 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25275 keyboard for the terminal.
25276
252772007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25278
25279 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25280 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25281 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25282 and resume-tty-function to resume-tty-hook.
25283 (Fsuspend_tty, Fresume_tty): Use new names.
25284
252852007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25286
25287 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25288 if it starts with "n:".
25289
252902007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25291
25292 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25293
252942007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25295
25296 * frame.h:
25297 * frame.c (Qterm_environment_variable): Remove.
25298 (syms_of_frame): Don't init and staticpro it.
25299
25300 * callproc.c (getenv_internal): Remove special case for $TERM.
25301
25302 * callproc.c (Vinitial_environment): New variable.
25303 (set_initial_environment): Initialize it.
25304 (syms_of_callproc): Declare it.
25305 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25306 TERM under which a process runs is never related to the TERM in which
25307 Emacs is running.
25308
253092007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25310
25311 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25312 * s/darwin.h: ... do it here.
25313
253142007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25315
25316 * lisp.h (set_initial_environment): Rename from set_global_environment.
25317
25318 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25319 removed by mistake on the multi-tty branch.
25320
25321 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25322 (Fmodify_frame_parameters): Return a value.
25323
25324 * image.c (png_load): Comment-out var only used in commented-out code.
25325
25326 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25327 before passing it to mark_object.
25328
25329 * xfaces.c (internal_resolve_face_name): Return a value.
25330 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25331
25332 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25333 (x_icon): Comment-out var only used in commented-out code.
25334
253352007-08-29 Romain Francoise <romain@orebokech.com>
25336
25337 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25338 QUIT hasn't been provided.
25339
253402007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25341
25342 * callproc.c (child_setup, getenv_internal): Use the
25343 display-environment-variable and term-environment-variable frame params.
25344 (set_initial_environment): Initialise Vprocess_environment.
25345
25346 * config.in: Disable multi-keyboard support on a mac.
25347
25348 * frame.c (Qterm_environment_variable)
25349 (Qdisplay_environment_variable): New variables.
25350 (syms_of_frame): Intern and staticpro them.
25351 (Fmake_terminal_frame): Disable output method test.
25352
25353 * frame.h: Declare them here.
25354
25355 * macfns.c (x_set_mouse_color): Get rif from the frame.
25356 (x_set_tool_bar_lines): Don't use updating_frame.
25357 (mac_window): Add 2 new parameters for consistency with other systems.
25358 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25359 frame parameters following what is done in X11 and w32. Don't use
25360 FRAME_MAC_DISPLAY_INFO.
25361 (Fx_open_connection, start_hourglass): Remove window-system check.
25362 (x_create_tip_frame): Get the keyboard from the terminal.
25363
25364 * macmenu.c: Reorder includes.
25365 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25366
25367 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25368 terminal parameter.
25369 (x_clear_frame): Add a frame parameter.
25370 (note_mouse_movement): Get rif from the frame.
25371 (mac_term_init): Initialize the terminal.
25372 (mac_initialize): Make static and move terminal initialization ...
25373 (mac_create_terminal): ... to this new function.
25374
25375 * macterm.h (struct mac_display_info): Add terminal.
25376 (mac_initialize): Delete declaration.
25377
25378 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25379
25380 * sysdep.c: Comment out text after #endif.
25381
25382 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25383 is defined. Better initialize ttys in windows. Use terminal
25384 specific mouse_position_hook.
25385
25386 * termhooks.h (union display_info): Add mac_display_info.
25387
25388 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25389 Set the default minibuffer frame, window_system and the rest of the
25390 frame parameters following what is done in X11.
25391
25392 * w32term.c (w32_initialize): Make static.
25393
25394 * xselect.c (x_handle_selection_clear): Only access
25395 terminal->kboard when MULTI_KBOARD is defined.
25396
25397 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25398 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25399
254002007-08-29 Jason Rumney <jasonr@gnu.org>
25401
25402 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25403 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25404
25405 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25406 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25407
25408 * keyboard.c (restore_kboard_configuration): Only define when
25409 MULTI_KBOARD defined.
25410
25411 * makefile.w32-in: Update dependancies from Makefile.in.
25412 (OBJ1): Add terminal.$(O)
25413
25414 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25415 Don't define function body.
25416 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25417
25418 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25419
25420 * w32.c (request_sigio, unrequest_sigio): Remove.
25421
25422 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25423 (w32con_clear_frame, w32con_clear_end_of_line)
25424 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25425 (w32con_delete_glyphs, w32con_set_terminal_window)
25426 (scroll_line, w32_sys_ring_bell): Add frame arg.
25427 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25428 Add terminal arg.
25429 (PICK_FRAME): Remove.
25430 (w32con_write_glyphs): Use frame specific terminal coding.
25431 (one_and_only_w32cons): New global variable.
25432 (initialize_w32_display): Use it for storing hooks.
25433 (create_w32cons_output): New function.
25434
25435 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25436 arg a frame.
25437
25438 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25439 Set window_system.
25440 (x_set_tool_bar_lines): Don't use updating_frame.
25441 (Fx_create_frame): Set terminal and ref count.
25442 (Fx_open_connection): Remove window-system check.
25443
25444 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25445
25446 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25447 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25448 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25449 Add frame arg.
25450 (x_delete_terminal, w32_create_terminal): New functions.
25451 (w32_term_init): Create a terminal.
25452 (w32_initialize): Move terminal specific initialization to
25453 w32_create_terminal.
25454
25455 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25456 (w32_clear_rect, w32_clear_area): Use background from frame.
25457 (w32_display_info): Add terminal.
25458 (w32_sys_ring_bell, x_delete_display): Declare here.
25459
25460 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25461
25462 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25463
254642007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25465
25466 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25467 Fix get_named_tty calls for the controlling tty.
25468
254692007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25470
194d44e7 25471 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
25472
254732007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25474
25475 * term.c (tty_insert_glyphs): Add missing first parameter.
25476
254772007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25478
25479 * buffer.c (Fbuffer_list, Fbury_buffer):
25480 Take frame->buried_buffer_list into account.
25481
25482 * cm.c (current_tty): New variable, for cmputc().
25483 (cmputc): Use it.
25484 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25485 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25486 (cmgoto): Add tty parameter. Pass it on to calccost().
25487 Use emacs_tputs() instead of tputs().
25488
25489 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25490 tputs().
25491 (current_tty): New variable, for cmputc().
25492 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25493
25494 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25495 (internal_condition_case, internal_condition_case_1)
25496 (internal_condition_case_2): Don't abort when x_catching_errors.
25497
25498 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25499 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25500 prevent crashes caused by bogus longjmps in read_char.
25501
25502 * keymap.h (Fset_keymap_parent): Add EXFUN.
25503
25504 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25505 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25506 Remove redundant definition.
25507
25508 * macfns.c (x_set_mouse_color, x_make_gc):
25509 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25510
25511 * w32term.c (x_free_frame_resources):
25512 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25513 (w32_initialize): Use the accessor macros for terminal characteristics.
25514
25515 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25516 Use the accessor macros for terminal characteristics.
25517 * msdos.c (internal_terminal_init): Use the accessor macros for
25518 terminal characteristics.
25519 (ScreenVisualBell, internal_terminal_init):
25520 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25521
25522 * termopts.h (no_redraw_on_reenter): Declare.
25523
25524 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25525 (mark_terminals, mark_ttys): Declare.
25526 (Fgarbage_collect): Call them.
25527 (mark_object): Mark buried_buffer_list.
25528
25529 * prefix-args.c: Include stdlib.h for exit.
25530
25531 * syssignal.h: Add comment.
25532
25533 * indent.c: Include stdio.h.
25534
25535 * window.h (Vinitial_window_system): Declare.
25536 (Vwindow_system): Delete declaration.
25537
25538 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25539
25540 * image.c (lookup_image): Don't initialize `c' until the xasserts
25541 have been run.
25542
25543 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25544 FRAME_FOREGROUND_PIXEL.
25545
25546 * print.c (print_preprocess): Don't lose print_depth levels while
25547 iterating.
25548
25549 * widget.c (update_from_various_frame_slots):
25550 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25551
25552 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25553 frames.
25554 (window_internal_height): Remove bogus make_number call.
25555 (init_window_once): Call make_terminal_frame with two zero parameters.
25556
25557 * fileio.c (Fread_file_name): Update comment.
25558
25559 * callint.c (Fcall_interactively):
25560 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25561 Make sure it is correctly unwound.
25562
25563 * xsmfns.c (x_session_close): New function.
25564
25565 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25566 Delete declarations.
25567
25568 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25569 (x_output): Remove background_pixel and foreground_pixel fields.
25570 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25571 (x_delete_device, x_session_close): Declare.
25572
25573 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25574 (read_filtered_event): Call `read_char' with a local
25575 `wrong_kboard_jmpbuf'.
25576
25577 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25578 Don't call single_kboard_state. Use FRAME_RIF.
25579
25580 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25581 systems.
25582
25583 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25584 (Fframe_with_environment, Fset_input_meta_mode)
25585 (Fset_quit_char): EXFUN.
25586 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25587 (init_sys_modes, reset_sys_modes): Update prototypes.
25588 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25589
25590 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25591 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25592 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25593 Delete declarations.
25594 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25595 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25596 New declarations.
25597
25598 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25599 already does that during init_display(). Call syms_of_keymap
25600 before syms_of_keyboard. Call `syms_of_terminal'.
25601 Call set_initial_environment, not set_process_environment.
25602 (shut_down_emacs): Call reset_all_sys_modes() instead of
25603 reset_sys_modes().
25604
25605 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25606 (internal_resolve_face_name, resolve_face_name_error): New functions.
25607 (resolve_face_name): Protect against loops and errors thrown by Fget.
25608 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25609 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25610
25611 * scroll.c: Replace CURTTY() with local variables throughout the
25612 file (where applicable).
25613 (calculate_scrolling, calculate_direct_scrolling)
25614 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25615 characteristics.
25616
25617 * keymap.c (Vfunction_key_map): Remove.
25618 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25619 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25620 (Vkey_translation_map): Remove.
25621 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25622 (Fdescribe_buffer_bindings)
25623 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25624 Update for terminal-local key-translation-map.
25625
25626 * Makefile.in (callproc.o): Update dependencies.
25627 (lisp, shortlisp): Add termdev.elc.
25628 (obj): Add terminal.o.
25629 (terminal.o): Add dependencies.
25630 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25631 (data.o, fns.o): Add termhooks.h dependency.
25632 (SOME_MACHINE_LISP): Add dnd.elc.
25633 (minibuf.o): Fix typo.
25634 Update dependencies.
25635
25636 * data.c (do_symval_forwarding, store_symval_forwarding)
25637 (find_symbol_value): Use the selected frame's keyboard, not
25638 current_kboard.
25639
25640 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25641 Vwindow_system.
25642
25643 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25644 Fmenu_bar_open.
25645 (syms_of_xmenu): Update defsubr.
25646 (mouse_position_for_popup, Fx_popup_menu)
25647 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25648 (set_frame_menubar, free_frame_menubar)
b97439ce 25649 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
25650 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25651 an X frame.
25652
25653 * xselect.c (x_own_selection): Abort if not an X frame.
25654 (some_frame_on_display): Check if it is an X frame.
25655 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25656
25657 * coding.c: Include frame.h and termhooks.h.
25658 (terminal_coding, keyboard_coding): Delete.
25659 (Fset_terminal_coding_system_internal)
25660 (Fset_keyboard_coding_system_internal)
25661 (Fkeyboard_coding_system)
25662 (Fterminal_coding_system): Add a terminal parameter.
25663 Get terminal_coding from the terminal.
25664 (init_coding_once): Don't call setup_coding_system here.
25665
25666 * dispextern.h (set_scroll_region, turn_off_insert)
25667 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25668 (tty_clear_end_of_line, tty_setup_colors)
25669 (delete_tty, updating_frame)
25670 (produce_special_glyphs, produce_glyphs, write_glyphs)
25671 (insert_glyphs): Remove.
25672 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25673 (tty_turn_off_highlight, get_tty_size): Add declaration.
25674 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25675
25676 * frame.h (enum output_method): Add output_initial.
25677 (struct x_output): Delete.
25678 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25679 Access foreground_pixel and background_pixel directly from the frame.
25680 (tty_display): Delete.
25681 (struct frame): Add buried_buffer_list, foreground_pixel,
25682 background_pixel and terminal. Delete kboard.
25683 (union output_data): Add tty.
25684 (FRAME_KBOARD): Get the kboard from the terminal.
25685 (FRAME_INITIAL_P): New macro.
25686 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25687 (Qterm_environment_variable, Qdisplay_environment_variable)
25688 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25689 New declarations.
25690
25691 * termchar.h (tty_output, tty_display_info): New structures.
25692 (tty_list): Declare.
25693 (FRAME_TTY, CURTTY): New macros.
25694 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25695 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25696 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25697 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25698
25699 * callproc.c: Include frame.h and termhooks.h, for terminal
25700 parameters.
25701 (add_env): New function.
25702 (child_setup): Use it.
25703 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25704 (getenv_internal): Fix get_terminal_param call.
25705 (Fgetenv_internal, egetenv): Update doc.
25706 (syms_of_callproc): Initialize Vprocess_environment to nil.
25707 Register and initialize them. Remove obsolete defvars. Update doc
25708 strings.
25709 (child_setup): Handle Vlocal_environment_variables.
25710 (getenv_internal): Add terminal parameter.
25711 Handle Vlocal_environment_variables.
25712 (Fgetenv_internal): Add terminal parameter.
25713 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25714 environment in a frame (not terminal) parameter. Update doc strings.
25715 (set_initial_environment): Rename from set_global_environment.
25716 Store Emacs environment in initial frame parameter.
25717
25718 * xdisp.c (redisplay_internal): Update references to
25719 `previous_terminal_frame'.
25720 (display_mode_line, Fformat_mode_line): Replace calls to
25721 `push_frame_kboard' with `push_kboard'.
25722 (get_glyph_string_clip_rects): Add extra parentheses and
25723 braces to prevent compiler warnings.
25724 (calc_pixel_width_or_height): Add xassert to check that the
25725 frame is alive. Don't call `lookup_image' on a termcap frame.
25726 (message2_nolog, message3_nolog, redisplay_internal)
25727 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25728 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25729 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25730 (Fx_display_pixel_width, Fx_display_pixel_height)
25731 (Fx_display_planes, Fx_display_color_cells)
25732 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25733 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25734 (Fx_display_backing_store, Fx_display_visual_class)
25735 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25736 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25737
25738 * xfns.c (x_set_foreground_color x_set_background_color)
25739 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25740 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25741 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25742 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25743 terminal that is being deleted.
25744 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25745 frame parameter, and make sure it overrides any user-supplied setting.
25746 (Fx_close_connection, Fx_synchronize): Unify argument names with
25747 the rest of the DEFUNs.
25748
25749 * dispnew.c (Fsend_string_to_terminal): Update call to
25750 `get_tty_terminal'.
25751 (Fredraw_frame, Fsend_string_to_terminal)
25752 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25753 FRAME_TERMCAP_P and FRAME_TTY.
25754 (window_change_signal): Don't believe width/height values that are
25755 impossibly small.
25756 (Vinitial_window_system): Rename from Vwindow_system.
25757 (termscript, Wcm, rif): Delete.
25758
25759 * termhooks.h (struct terminal): New struct containing the
25760 previously global text display hooks and new members NAME,
25761 DELETED and PARAM_ALIST.
25762 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25763 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25764 (FRAME_RIF): New macros.
25765 (get_terminal_param, get_device): New declarations.
25766 (termscript): Delete declaration.
25767
25768 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25769 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25770 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25771 FRAME_FOREGROUND_PIXEL.
25772 (x_fully_uncatch_errors): Disable definition.
25773 (x_scroll_bar_expose): Fix reference to foreground pixel.
25774 (XTread_socket): Disable loop on all X displays.
25775 (x_delete_terminal): Don't set terminal->deleted and let
25776 delete_terminal delete the frames on the terminal.
25777 (x_delete_display): Doc update to reflect changes in
25778 delete_terminal.
25779 (x_display_info) <terminal>: Move member earlier in the struct.
25780 (deleting_tty): Remove old variable.
25781 (Fsuspend_tty): Call clear_tty_hooks.
25782 (Fresume_tty, init_tty): Call set_tty_hooks.
25783 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25784 errors on X frames.
25785 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25786 (handle_one_xevent): Initialize `f' to NULL.
25787 (x_delete_terminal, x_create_terminal): New functions.
25788 (XTset_terminal_modes, XTreset_terminal_modes)
25789 (XTread_socket, x_connection_closed, x_term_init)
25790 (x_term_init, x_delete_display): Add terminal parameter.
25791 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25792 X connections.
25793
25794 * frame.c: Include termchar.h.
25795 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25796 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25797 (Qdisplay_environment_variable): New vars.
25798 (Fframep): Deal with output_initial.
25799 (Fframe-live-p): Doc fix.
25800 (Fwindow-system): New function.
25801 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25802 (make_terminal_frame): Don't create frames on a terminal that is
25803 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25804 (store_frame_param): Check for found_for_frame before calling XFRAME.
25805 (Fmake_terminal_frame): Handle NULL tty names correctly.
25806 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25807 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25808 frames to refer to a deleted frame in their 'environment parameter.
25809 (Fframe_with_environment): New function.
25810 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25811 (get_future_frame_param): New function.
25812 (Fmake_terminal_frame): Use it.
25813 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25814
25815 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25816 * sysdep.c (reset_sys_modes): Update for renames.
25817
25818 * keyboard.c (tty_read_avail_input): New function.
25819 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25820 (syms_of_keyboard): Defsubr them.
25821 (Fset_input_meta_mode, Fset_quit_char): New functions.
25822 (Fset_input_mode): Split to above functions.
25823 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25824 parameter. Use it in call to `read_char'.
25825 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25826 Set wrong_kboard_jmpbuf correctly in recursive calls.
25827 Use current_kboard to access Vkeyboard_translate_table.
25828 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25829 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25830 Update longjmp invocations. Remember the original current_kboard,
25831 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25832 changes it. Comment out unnecessary calls to
25833 `record_single_kboard_state' and `any_kboard_state'.
25834 Update recursive calls.
25835 (wrong_kboard_jmpbuf): Remove global variable.
25836 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25837 Handle deleted interrupted_kboards correctly; that is a legal
25838 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25839 and read_char calls. Abort if interrupted_kboard died in read_char.
25840 (any_kboard_state, single_kboard_state)
25841 (push_frame_kboard): Remove function.
25842 (pop_kboard): Switch out of single_kboard mode if the kboard has
25843 been deleted. Remove unused variable. Help debugging by not
25844 changing current_kboard unnecessarily. Set current_kboard to the
25845 kboard of the selected frame when the stored kboard object has
25846 been deleted before pop_kboard.
25847 (temporarily_switch_to_single_kboard): Change first parameter to a
25848 frame pointer. Throw an error when caller wants to change kboards
25849 while in single_kboard mode. Don't push_kboard if we weren't in
25850 single kboard state. Don't pop_kboard if we popped into any
25851 kboard state.
25852 (restore_kboard_configuration): Abort if pop_kboard changed the
25853 kboard in single_kboard mode. Call pop_kboard only after setting
25854 up single_kboard mode.
25855 (Frecursive_edit): Switch to single_kboard mode only in nested
25856 command loops.
25857 (cmd_error, command_loop, command_loop_1, timer_check):
25858 Comment out unnecessary call to `any_kboard_state' and
25859 `record_single_kboard_state'.
25860 (delete_kboard): Exit single_kboard mode if we have just deleted
25861 that kboard. Use FRAME_KBOARD.
25862 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25863 `fatal_error_signal'.
25864 (record_single_kboard_state): Don't push_kboard if we weren't in
25865 single kboard state. Don't pop_kboard if we popped into any
25866 kboard state.
25867 (push_frame_kboard): Rename to push_kboard.
25868 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25869 (read_avail_input): Read input from all terminals.
25870 (mark_kboards): Also mark Vkeyboard_translate_table.
25871 (kbd_buffer_store_event_hold): Simplify condition.
25872 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25873 (Vkeyboard_translate_table): Move to struct kboard.
25874 (init_kboard): Initialize Vkeyboard_translate_table.
25875 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25876 Vkeyboard_translate_table. Update doc strings. Update docs of
25877 local-function-key-map and function-key-map.
25878
25879 * terminal.c: New file.
25880
25881 * term.c: Include errno.h.
25882 (Vring_bell_function, device_list, initial_device)
25883 (next_device_id, ring_bell, update_begin, update_end)
25884 (set_terminal_window, cursor_to, raw_cursor_to)
25885 (clear_to_end, clear_frame, clear_end_of_line)
25886 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25887 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25888 (syms_of_term): Move their initialization to terminal.c.
25889 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25890 (Ftty_display_color_cells)
25891 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25892 (clear_tty_hooks, set_tty_hooks)
25893 (init_tty, maybe_fatal): New functions.
25894 (Ftty_type): Return nil if terminal is not on a tty instead of
25895 throwing an error. Doc update.
25896 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25897 Doc update. Initialize new subrs and variables.
25898 (delete_tty): Use terminal->deleted.
25899 (tty_set_terminal_modes): Rename from set_terminal_modes.
25900 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25901 (set_scroll_region): Rename to `tty_set_scroll_region'.
25902 (turn_on_insert): Rename to `tty_turn_on_insert'.
25903 (turn_off_insert): Rename to `tty_turn_off_insert'.
25904 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25905 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25906 (toggle_highligh): Rename to `tty_toggle_highlight'.
25907 (background_highlight): Rename to `tty_background_highlight'.
25908 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25909 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25910 (tty_set_scroll_region, tty_background_highlight)
25911 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25912 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25913 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25914 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25915 Add static modifier.
25916 (tty_reset_terminal_modes, tty_set_terminal_window)
25917 (tty_set_scroll_region, tty_background_highlight)
25918 (tty_highlight_if_desired, tty_cursor_to)
25919 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25920 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25921 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25922 renames.
25923
259242007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25925
25926 * keyboard.c: Qrtl is new.
25927 (parse_tool_bar_item): Handle :rtl keyword.
25928 (syms_of_keyboard): Intern :rtl keyword.
25929
25930 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25931
25932 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25933 so no Lisp code is executed.
25934 (file_for_image, find_rtl_image): New functions.
25935 (xg_get_image_for_pixmap): Use file_for_image.
25936 (update_frame_tool_bar): If direction is RTL, use RTL image if
25937 defined. Use Gtk stock images if defined.
25938
259392007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25940
25941 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25942 for nonexistent or zero-width glyph in composition glyph.
25943
259442007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25945
25946 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25947
25948 * xdisp.c (Finvisible_p): New function.
25949 (syms_of_xdisp): defsubr it.
25950
259512007-08-24 Juanma Barranquero <lekktu@gmail.com>
25952
25953 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25954 Doc fixes.
25955
259562007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25957
25958 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25959
259602007-08-24 Martin Rudalics <rudalics@gmx.at>
25961
25962 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25963 whether decoding has modified buffer contents.
25964
259652007-08-24 Jason Rumney <jasonr@gnu.org>
25966
25967 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25968 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25969 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25970 (init_svg_functions) [HAVE_NTGUI]: New function.
25971 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25972 (svg_load_image): Use them.
25973 (svg_load_image) [HAVE_NTGUI]: Implement background.
25974
259752007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25976
25977 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25978 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25979 (LIBX): Remove @RSVG_LIBS@.
25980 (LIBES): Add $(RSVG_LIBS).
25981
25982 * image.c (svg_load_image): Blend with specified background if exists.
25983 Use IMAGE_BACKGROUND. Add Mac OS Support.
25984
25985 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25986 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25987 Remove macros.
25988 [MAC_OSX] (socket_callback): Do nothing.
25989 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25990 ReceiveNextEvent.
25991 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25992 socket_callback.
25993 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25994
259952007-08-22 Glenn Morris <rgm@gnu.org>
25996
25997 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25998
259992007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26000
26001 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26002
26003 * image.c: Add support for SVG images. Some additional comments
26004 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26005 (svg_image_p): New function to test for SVG image.
26006 (svg_load): New function to load SVG image.
26007 (svg_load_image): New function, helper for svg_load.
26008 (Qsvg): New Lisp_object.
26009 (svg_keyword_index): New enum.
26010 (svg_format): New static `image_keyword' struct.
26011 (svg_type): New static `image_type' struct.
26012 (librsvg/rsvg.h): Include it.
26013
260142007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26015
26016 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26017
260182007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26019
26020 * lread.c (Qold_style_backquotes): New var.
26021 (syms_of_lread): Init and staticpro it.
26022 (load_warn_old_style_backquotes): New fun.
26023 (Fload): Use them to warn about old style backquotes.
26024 (end_of_file_error, Fload): Remove unused vars.
26025
26026 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26027
26028 * lread.c (Vold_style_backquotes): New var.
26029 (syms_of_lread): Init and export it to Elisp.
26030 (read1): Set it when we find an old-style (back)quote.
26031
260322007-08-22 Jason Rumney <jasonr@gnu.org>
26033
26034 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26035
260362007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26037
26038 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26039
260402007-08-19 Richard Stallman <rms@gnu.org>
26041
26042 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26043
260442007-08-19 Andreas Schwab <schwab@suse.de>
26045
26046 * alloc.c (pure): Round PURESIZE up.
26047
260482007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26049
26050 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26051 active frame.
26052
260532007-08-16 Richard Stallman <rms@gnu.org>
26054
26055 * eval.c (Fcommandp): Add parens to clarify.
26056
26057 * minibuf.c (Fall_completions): Use enum for type of table.
26058
26059 * emacs.c (USAGE2): Improve text.
26060
260612007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26062
26063 * term.c (tty_default_color_capabilities): Declare static
26064 variables in file scope, to avoid HPUX compiler problem.
26065
260662007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26067
26068 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26069 to gtk_toolbar_insert.
26070
260712007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26072
26073 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26074
26075 * insdel.c (reset_var_on_error): New fun.
26076 (signal_before_change, signal_after_change):
26077 Use it to reset (after|before)-change-functions to nil in case of error.
26078 Bind inhibit-modification-hooks to t.
26079 Don't bind (after|before)-change-functions to nil while they run.
26080
260812007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26082
26083 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26084 filling pixmap with stippled background.
26085
260862007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26087
26088 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26089 Don't use invisible frame as parent window for repositioning.
26090
260912007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26092
26093 * print.c (new_backquote_output): Rename from old_backquote_output.
26094 (print): Inverse its logic (according to its name) so as to match the
26095 behavior of new_backquote_flag in lread.c.
26096
260972007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26098
26099 * gmalloc.c (posix_memalign): New function.
26100
26101 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26102 ActivateControl/DeactivateControl here.
26103 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26104 frame-notice-user-settings is non-nil.
26105 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26106 for kEventParamFMFontStyle.
26107 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26108 mac_pass_command_to_system and mac_pass_control_to_system here.
26109 (XTread_socket): Call ActivateControl/DeactivateControl here.
26110 (XTread_socket) [TARGET_API_MAC_CARBON]:
26111 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26112 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26113 for window repositioning.
26114
261152007-08-08 Glenn Morris <rgm@gnu.org>
26116
26117 * Replace `iff' in doc-strings and comments.
26118
261192007-08-07 Chong Yidong <cyd@stupidchicken.com>
26120
26121 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26122
261232007-08-07 Martin Rudalics <rudalics@gmx.at>
26124
26125 * fileio.c (Finsert_file_contents): Run format-decode and
26126 after_insert_file_functions on entire buffer when REPLACE is
26127 non-nil and inhibit modification_hooks and point_motion_hooks.
26128 For consistency, run after_insert_file_functions iff something
26129 got inserted. Move signal_after_change and update_compositions
26130 after code running after_insert_file_functions. Make sure that
26131 undo_list doesn't record intermediate steps of the decoding process.
26132
261332007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26134
26135 * emacs.c (main)
26136 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26137 Call malloc_enable_thread on interactive startup.
26138
26139 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26140 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26141 [USE_PTHREAD]: Conditionalize with it.
26142 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26143 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26144 New functions.
26145
261462007-08-06 Chong Yidong <cyd@stupidchicken.com>
26147
26148 * xdisp.c (redisplay_window): When restoring original buffer
26149 position, make sure it is still valid.
26150
26151 * image.c (png_load): Ignore png-supplied background color.
26152
261532007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26154
26155 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26156 Use kCFAbsoluteTimeIntervalSince1970.
26157
26158 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26159 New variable.
26160 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26161 event loop should be quit.
26162 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26163 Quit dialog event loop if quit_dialog_event_loop is set.
26164
26165 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26166 (Selection): New typedef. Use instead of ScrapRef.
26167 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26168 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26169 (mac_clear_selection): Rename from clear_scrap.
26170 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26171 scrap_has_target_type. All uses changed.
26172 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26173 (mac_selection_has_target_p): New functions.
26174 (mac_put_selection_value): Rename from put_scrap_string.
26175 (mac_get_selection_value): Rename from get_scrap_string.
26176 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26177 (put_scrap_private_timestamp, scrap_has_target_type)
26178 (get_scrap_private_timestamp): Remove functions.
26179 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26180 (x_own_selection, x_get_local_selection):
26181 Use mac_valid_selection_value_p.
26182 (x_own_selection): Don't use put_scrap_private_timestamp.
26183 Record OWNERSHIP-INFO into Vselection_alist instead.
26184 (x_get_local_selection): Don't check type if request is local.
26185 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26186 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26187
261882007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26189
26190 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26191 add comment explaining why.
26192
261932007-08-03 Richard Stallman <rms@gnu.org>
26194
26195 * fileio.c (Fvisited_file_modtime): Use make_time.
26196
261972007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26198
26199 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26200 build.
26201
262022007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26203
26204 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26205
262062007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26207
26208 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26209
262102007-07-30 Richard Stallman <rms@gnu.org>
26211
26212 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26213
262142007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26215
26216 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26217
262182007-07-28 Nick Roberts <nickrob@snap.net.nz>
26219
26220 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26221 remote default-directory.
26222
26223 * buffer.c (mode-line-format): Update doc string.
26224
262252007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26226
26227 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26228 scroll bar gap.
26229 (x_scroll_bar_create): Set bar->fringe_extended_p.
26230 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26231 on frame edge. Check fringe background extension. Don't clear
26232 extended fringe background area.
26233
26234 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26235 (w32_fill_area): Enclose multiple statements with do ... while (0).
26236
26237 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26238 Extend fringe background to scroll bar gap.
26239 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26240 Set bar->fringe_extended_p.
26241 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26242 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26243 background extension. Don't clear extended fringe background area.
26244
26245 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26246 New member fringe_extended_p.
26247
262482007-07-25 Glenn Morris <rgm@gnu.org>
26249
26250 * Relicense all FSF files to GPLv3 or later.
26251
26252 * COPYING: Switch to GPLv3.
26253
262542007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26255
26256 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26257
26258 * data.c (Finteractive_form): Check for the presence of an
26259 `interactive-form' symbol property more thoroughly.
26260
26261 * data.c (Finteractive_form): Use an `interactive-form' property if
26262 present, analogous to the function-documentation property.
26263
262642007-07-24 Jason Rumney <jasonr@gnu.org>
26265
26266 * w32fns.c (x_real_positions): Get real position from OS instead of
26267 calculating it.
26268
262692007-07-23 Jason Rumney <jasonr@gnu.org>
26270
26271 * filelock.c (current_lock_owner): Allow for @ sign in username.
26272
262732007-07-22 Nick Roberts <nickrob@snap.net.nz>
26274
26275 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26276 remote default-directory.
26277
26278 * buffer.c (mode-line-format): Describe above case in doc string.
26279
262802007-07-20 Eli Zaretskii <eliz@gnu.org>
26281
26282 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26283 Define if not defined.
26284
262852007-07-18 Jason Rumney <jasonr@gnu.org>
26286
26287 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26288
262892007-07-18 Richard Stallman <rms@gnu.org>
26290
26291 * data.c (Fsetq_default): Doc fix.
26292
26293 * eval.c (Fsetq): Doc fix.
26294
262952007-07-18 Juanma Barranquero <lekktu@gmail.com>
26296
26297 * coding.c (Ffind_operation_coding_system):
26298 * eval.c (For, Fand): Doc fixes.
26299 Reported by Johan Bockgård.
26300
263012007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26302
26303 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26304
26305 * xterm.h: Declare x_ewmh_activate_frame.
26306
26307 * xterm.c (x_ewmh_activate_frame): New function.
26308 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26309
263102007-07-17 Martin Rudalics <rudalics@gmx.at>
26311
26312 * window.c (Fdisplay_buffer): If largest or LRU window is the
26313 only window, split it even if it is not eligible for splitting.
26314 This restores the original behavior broken by the 2007-07-15
26315 change.
26316
263172007-07-17 Glenn Morris <rgm@gnu.org>
26318
26319 * abbrev.c (abbrev_check_chars): New function.
26320 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26321 Call abbrev_check_chars to check abbrev characters are word
26322 constituents. Doc fix.
26323
263242007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26325
26326 * process.c (Fstart_process, Fmake_network_process)
26327 (read_process_output): Fix up last changes.
26328
263292007-07-16 Eli Zaretskii <eliz@gnu.org>
26330
26331 * makefile.w32-in (clean): Don't delete *~.
26332
263332007-07-16 Andreas Schwab <schwab@suse.de>
26334
26335 * window.c (Fdisplay_buffer): Use NILP.
26336 (Fset_window_scroll_bars): Likewise.
26337
263382007-07-15 Martin Rudalics <rudalics@gmx.at>
26339
26340 * window.c (window_min_size_2): New function.
26341 (window_min_size_1, size_window, Fdisplay_buffer)
26342 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26343 windows without mode- or header-lines when window-min-height is
26344 too small.
26345 (size_window): Reset nodelete_p after testing it, following an
26346 earlier note by Kim F. Storm.
26347 (display_buffer): Do not set split_height_threshold to twice the
26348 value of window_min_height to avoid changing the value of a
26349 customizable variable. Rather explicitly check whether the
26350 height of the window that shall be splitted is at least as large
26351 as split_height_threshold.
26352 (Fwindow_full_width_p): New defun.
26353 (syms_of_window): Defsubr it.
26354
26355 * window.h: Add EXFUN for Fwindow_full_width_p.
26356
263572007-07-14 Jason Rumney <jasonr@gnu.org>
26358
26359 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26360
263612007-07-14 Richard Stallman <rms@gnu.org>
26362
26363 * eval.c (maybe_call_debugger): New function.
26364 (find_handler_clause): Use maybe_call_debugger.
26365 Call it when the handler says `debug'.
26366 Eliminate DEBUGGER_VALUE_PTR.
26367 (Fsignal): Eliminate debugger_value.
26368 (Qdebug): New variable.
26369 (syms_of_eval): Initialize it.
26370
263712007-07-14 Juanma Barranquero <lekktu@gmail.com>
26372
26373 * eval.c (Fprogn):
26374 * keyboard.c (Ftrack_mouse):
26375 * print.c (Fwith_output_to_temp_buffer):
26376 * window.c (Fsave_window_excursion): Doc fix.
26377
263782007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26379
26380 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26381
263822007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26383
26384 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26385 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26386 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26387 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26388 Remove unused encoding_carryover.
26389 * process.c: Adjust all functions accordingly.
26390
263912007-07-12 Richard Stallman <rms@gnu.org>
26392
26393 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26394
263952007-07-11 Jason Rumney <jasonr@gnu.org>
26396
26397 * makefile.w32-in (LIBS): Include OLE32.
26398
26399 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26400 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26401
264022007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26403
26404 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26405 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26406 from a Lisp_Object into a bare pointer.
26407 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26408 Adjust the code correspondingly.
26409
26410 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26411
26412 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26413 (term_show_mouse_face): Remove unused var `j'.
26414 (handle_one_term_event): Remove unused vars `i' and `j'.
26415 Don't cast return value of ttyname since it's not necessary.
26416
264172007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26418
26419 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26420 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26421
26422 * fns.c (map_char_table): Use an array of int for `indices' rather than
26423 an array of Lisp_Objects (which are only ever integers anyway).
26424 (Fmap_char_table): Update caller.
26425 * lisp.h: Update prototype.
26426 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26427 * fontset.c (Ffontset_info):
26428 * casetab.c (set_case_table): Update callers.
26429
26430 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26431
26432 * keymap.c (struct accessible_keymaps_data)
26433 (struct where_is_internal_data): New structures.
26434 (accessible_keymaps_1, where_is_internal_1): Use them to change
26435 interface to adhere to the one used by map_keymap.
26436 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26437 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26438
26439 * keymap.h (map_keymap_function_t): More informative prototype.
26440
264412007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26442
26443 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26444 (looking_at_1): Don't change search_regs and last_thing_searched
26445 if `inhibit-changing-match-data' is non-nil.
26446 (string_match_1, search_buffer, set_search_regs): Likewise.
26447 (syms_of_search): Add Lisp level definition for
26448 `inhibit-changing-match-data' and set it to nil.
26449 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26450 start and end of the match, instead of using values in search_regs.
26451
264522007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26453
26454 * minibuf.c (Fcompleting_read): New value `confirm-only'
26455 for `require-match'.
26456
264572007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26458
26459 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26460 part of the 2007-06-27 change to syms_of_fileio.
26461
264622007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26463
26464 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26465 Check WINDOWP before using XWINDOW. Consolidate return statements.
26466
264672007-06-27 Richard Stallman <rms@gnu.org>
26468
26469 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26470
264712007-06-27 Juanma Barranquero <lekktu@gmail.com>
26472
26473 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26474
264752007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26476
26477 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26478 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26479 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26480 (_free_internal, memalign): Use them.
26481 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26482 Initialize to PTHREAD_MUTEX_INITIALIZER.
26483 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26484 (morecore_nolock): Rename from morecore. All uses changed.
26485 Use only nolock versions of internal allocation functions.
26486 (_malloc_internal_nolock, _realloc_internal_nolock)
26487 (_free_internal_nolock): New functions created from
26488 _malloc_internal, _realloc_internal, and _free_internal.
26489 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26490 Copy hook value to automatic variable before its use.
26491 (memalign): Copy hook value to automatic variable before its use.
26492
264932007-06-26 Kenichi Handa <handa@m17n.org>
26494
26495 * coding.c (Ffind_operation_coding_system): Docstring improved.
26496 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26497
264982007-06-25 David Kastrup <dak@gnu.org>
26499
26500 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26501 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26502 cater for additional parameter.
26503
26504 * keymap.h: Adjust number of parameters to `current-active-maps'.
26505
26506 * doc.c (Fsubstitute_command_keys): Adjust call of
26507 `current-active-maps'.
26508
265092007-06-25 David Kastrup <dak@gnu.org>
26510
26511 * callint.c (Fcall_interactively): Make the parsing of interactive
26512 specs somewhat more readable.
26513
265142007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26515
26516 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26517 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26518 if extended background has already been filled.
26519
265202007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26521
26522 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26523 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26524
26525 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26526 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26527 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26528 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26529 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26530 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26531 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26532 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26533 Run timers during dialog popup.
26534 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26535
265362007-06-21 Jason Rumney <jasonr@gnu.org>
26537
26538 * image.c (convert_mono_to_color_image): Swap fore and background.
26539
265402007-06-20 Jason Rumney <jasonr@gnu.org>
26541
26542 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26543 (w32_free_bdf_font): Unmap memory not handle.
26544
265452007-06-20 Sam Steingold <sds@gnu.org>
26546
26547 * gmalloc.c (__morecore): Fix the declaration to comply with the
26548 definition.
26549
265502007-06-20 Juanma Barranquero <lekktu@gmail.com>
26551
26552 * w32term.c (w32_delete_display): Remove leftover declaration.
26553 (w32_define_cursor, w32_initialize): Make static.
26554
26555 * w32.c (_wsa_errlist): Fix typo in error message.
26556 (init_environment): Ignore any environment variable from the
26557 registry having a null value.
26558
265592007-06-20 Glenn Morris <rgm@gnu.org>
26560
26561 * Makefile.in (LIBGIF): Default to -lgif.
26562
265632007-06-17 Jason Rumney <jasonr@gnu.org>
26564
26565 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26566 unicode strings.
26567
265682007-06-16 Juanma Barranquero <lekktu@gmail.com>
26569
26570 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26571 Fix typo in docstring.
26572
265732007-06-16 Eli Zaretskii <eliz@gnu.org>
26574
26575 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26576 and their keybindings.
26577
265782007-06-15 Chong Yidong <cyd@stupidchicken.com>
26579
26580 * composite.c (update_compositions): Fix last fix.
26581
265822007-06-14 Jason Rumney <jasonr@gnu.org>
26583
26584 * w32.c (get_process_times_fn): New function pointer.
26585 (globals_of_w32): Intialize it if present in kernel32.dll.
26586 (w32_get_internal_run_time): New function.
26587
26588 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26589
265902007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26591
26592 * composite.c (update_compositions): Check the validness of
26593 compositions.
26594
265952007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26596
26597 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26598 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26599
26600 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26601 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26602
26603 * macgui.h (USE_MAC_TOOLBAR): New define.
26604
26605 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26606 Return immediately unless popup is activated.
26607
26608 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26609 background to scroll bar gap.
26610 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26611 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26612 scroll bars on frame edge. Check fringe background extension.
26613 Don't clear extended fringe background area.
26614 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26615 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26616 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26617 [USE_MAC_TOOLBAR]: New macros.
26618 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26619 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26620 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26621 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26622 [USE_MAC_TOOLBAR]: New functions.
26623 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26624 manually if previous repositioning has failed.
26625 (mac_handle_keyboard_event): Use precomputed event kind.
26626 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26627 as tool bar item click. Handle mouse movement over tool bar items.
26628
26629 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26630 toolbar_win_gravity.
26631 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26632 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26633 Add externs.
26634
26635 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26636 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26637
266382007-06-14 Chong Yidong <cyd@stupidchicken.com>
26639
26640 * image.c (search_image_cache): Remove unused variable.
26641
266422007-06-13 Chong Yidong <cyd@stupidchicken.com>
26643
26644 * xfns.c, xmenu.c: Link to xaw3d if available.
26645
266462007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26647
26648 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26649 frame_foreground and frame_background.
26650
26651 * image.c (lookup_image): Save frame foreground and background colors.
26652 (search_image_cache): Check if saved and current frame colors match.
26653
266542007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26655
26656 * regex.c (regex_compile): Remove the `regnum' counter.
26657 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26658
266592007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26660
26661 * term.c: Include intervals.h to declare Fget_text_property.
26662
266632007-06-10 Jason Rumney <jasonr@gnu.org>
26664
26665 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26666
266672007-06-08 Juanma Barranquero <lekktu@gmail.com>
26668
26669 * callint.c (Fcall_interactively):
26670 * editfns.c (Fdelete_and_extract_region):
26671 * fileio.c (Fread_file_name):
26672 * fns.c (Fmapconcat):
26673 * keyboard.c (cmd_error_internal):
26674 * keymap.c (Fkey_description):
26675 * lread.c (openp):
26676 * minibuf.c (read_minibuf):
26677 * search.c (wordify):
26678 * sunfns.c (sel_read):
26679 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26680 * xfns.c (x_default_scroll_bar_color_parameter):
26681 * xmenu.c (menu_help_callback):
26682 * xselect.c (Fx_get_atom_name):
26683 * xterm.c (x_term_init): Use empty_unibyte_string.
26684
266852007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26686
26687 * alloc.c (init_strings): Initialize canonical empty strings.
26688 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26689 canonical empty string when the requested size is 0.
26690
26691 * emacs.c (empty_unibyte_string): Rename from empty_string.
26692 (empty_multibyte_string): New canonical empty string.
26693 (syms_of_emacs): Don't initialize empty_string.
26694
26695 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26696 string, if appropriate.
26697 (empty_unibyte_string, empty_multibyte_string): New externs.
26698 (empty_string): Remove extern.
26699
26700 * lread.c (syms_of_lread): Use empty_unibyte_string.
26701
267022007-06-07 Jason Rumney <jasonr@gnu.org>
26703
26704 * s/ms-w32.h: Don't define HAVE_TZNAME.
26705
26706 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26707
267082007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26709
26710 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26711
26712 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26713 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26714
26715 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26716 Don't call next handler.
26717 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26718 Remove argument. Install handler to application.
26719 (set_frame_menubar): Don't change deep_p.
26720 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26721 FRAME_OUTER_TO_INNER_DIFF_Y.
26722 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26723 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26724 [HAVE_DIALOGS]: New macros.
26725 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26726 Use them.
26727 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26728
26729 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26730 init_service_handler. All callers changed. Return OSStatus value.
26731
26732 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26733 All callers changed so as not to call SetPortWindowPort.
26734 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26735 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26736 mac_draw_string_common.
26737 (mac_draw_image_string_qd): Likewise.
26738 (mac_draw_string_common): Use them. Add INLINE.
26739 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26740 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26741 GetGlobalMouse.
26742 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26743 and FRAME_OUTER_TO_INNER_DIFF_Y.
26744 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26745 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26746 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26747 repositioning window to mac_handle_window_event.
26748 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26749 saving window location to mac_handle_window_event
26750 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26751 (install_menu_target_item_handler): Remove argument in extern.
26752 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26753 Also accept command events.
26754 (do_keystroke): New function created from XTread_socket.
26755 (init_command_handler): Remove functions.
26756 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26757 and save window location by kEventWindowShowing and kEventWindowHiding
26758 handlers here. Don't call next handler for window state change and
26759 focus events.
26760 (mac_handle_application_event, mac_handle_keyboard_event)
26761 [TARGET_API_MAC_CARBON]: New functions.
26762 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26763 kEventWindowShowing and kEventWindowHiding events. Move installation
26764 of mouse, font, text input and menu target item handlers to
26765 install_application_handler.
26766 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26767 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26768 New function.
26769 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26770 Register it.
26771 (XTread_socket) [TARGET_API_MAC_CARBON]:
26772 Consolidate SendEventToEventTarget calls.
26773 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26774 Move application activation handler to mac_handle_application_event.
26775 Move keyboard handler to mac_handle_keyboard_event.
26776 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26777 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26778 init_command_handler. Call install_application_handler.
26779
26780 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26781 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26782
267832007-06-07 Glenn Morris <rgm@gnu.org>
26784
26785 * emacs.c (main): Use `emacs-copyright' in --version output.
26786
267872007-06-06 Chong Yidong <cyd@stupidchicken.com>
26788
26789 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26790
267912007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26792
26793 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26794
26795 * macgui.h: Replace WindowPtr with WindowRef.
26796
26797 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26798 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26799 Replace ControlHandle with ControlRef.
26800 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26801
26802 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26803 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26804 Replace ControlHandle with ControlRef.
26805 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26806 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26807
26808 * macterm.h (struct scroll_bar): Rename member control_handle_low
26809 and control_handle_high to control_ref_low and control_ref_high.
26810 All uses changed.
26811 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26812 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26813 respectively. All uses changed.
26814 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26815 (install_window_handler, remove_window_handler): Replace WindowPtr
26816 with WindowRef in externs.
26817
268182007-06-05 Juanma Barranquero <lekktu@gmail.com>
26819
26820 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26821
268222007-06-03 Nick Roberts <nickrob@snap.net.nz>
26823
26824 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26825
26826 * frame.c (Fmouse_position, Fmouse_pixel_position):
26827 Condition on HAVE_GPM too.
26828
26829 * term.c (term_mouse_highlight): Remove unused variables.
26830 (Fterm_open_connection): Set gpm_zerobased to 1.
26831 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26832 Use zero based co-ordinates.
26833 (handle_one_term_event): Report a drag as mouse movement too.
26834
26835 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26836
268372007-06-03 Chong Yidong <cyd@stupidchicken.com>
26838
26839 * image.c (search_image_cache): New function. Require background
26840 color match if background color is unspecified in the image spec.
26841 (uncache_image, lookup_image): Use it.
26842
268432007-06-01 Juanma Barranquero <lekktu@gmail.com>
26844
26845 * window.c (Fshrink_window): Reflow docstring.
26846
268472007-06-02 Chong Yidong <cyd@stupidchicken.com>
26848
26849 * Version 22.1 released.
26850
268512007-06-01 Richard Stallman <rms@gnu.org>
26852
26853 * xfns.c (x_encode_text): Add GCPRO.
26854
268552007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26856
26857 * xfns.c (x_set_name_internal): Save encoded name before
26858 x_encode_text in case string data is relocated.
26859
268602007-05-31 Richard Stallman <rms@gnu.org>
26861
26862 * buffer.c (syms_of_buffer): Doc fix.
26863
268642007-05-30 Nick Roberts <nickrob@snap.net.nz>
26865
26866 * sysdep.c (init_sys_modes): Add rather than replace with
26867 O_NONBLOCK.
26868
26869 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26870 term_mouse_moveto.
26871
26872 * termhooks.h (term_mouse_moveto): New extern.
26873
26874 * term.c (mouse_face_window): Rename...
26875 (Qmouse_face_window): ...to this.
26876 (term_show_mouse_face, term_clear_mouse_face)
26877 (term_mouse_highlight): Use Qmouse_face_window.
26878 (term_mouse_moveto): New function.
26879 (term_mouse_position): Make it work.
26880 (syms_of_term): Uncomment assignment to mouse_position_hook.
26881 Staticpro Qmouse_face_window.
26882
268832007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26884
26885 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26886 around current_column call.
26887
268882007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26889
26890 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26891 * xdisp.c (next_element_from_buffer):
26892 * window.c (delete_window):
26893 * term.c (term_mouse_highlight):
26894 * msdos.c (getdefdir):
26895 * macterm.c (mac_create_bitmap_from_bitmap_data)
26896 (init_font_name_table):
26897 * fns.c (Fsxhash):
26898 * data.c (Fmake_local_variable):
26899 * ccl.c (ccl_driver): Likewise.
26900
269012007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26902
26903 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26904 Call mac_wakeup_from_rne on window size change.
26905
269062007-05-25 Chong Yidong <cyd@stupidchicken.com>
26907
26908 * image.c (uncache_image): Fix typo.
26909
269102007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26911
26912 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26913
269142007-05-22 Richard Stallman <rms@gnu.org>
26915
26916 * xterm.c (x_connection_closed): Remove NO_RETURN.
26917
269182007-05-22 Martin Rudalics <rudalics@gmx.at>
26919
26920 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26921
269222007-05-21 Chong Yidong <cyd@stupidchicken.com>
26923
26924 * image.c (uncache_image): New function.
26925 (Fimage_refresh): New function.
26926
269272007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26928
26929 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26930
269312007-05-20 Nick Roberts <nickrob@snap.net.nz>
26932
26933 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26934 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26935
269362007-05-20 Nick Roberts <nickrob@snap.net.nz>
26937
26938 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26939 conditional on [HAVE_GPM_H].
26940
269412007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26942
26943 * syntax.c (skip_chars): Update syntax-table only after we checked that
26944 the new location is valid.
26945
269462007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26947
26948 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26949 mac_get_window_bounds.
26950
269512007-05-20 Nick Roberts <nickrob@snap.net.nz>
26952
26953 * Makefile.in (LIBGPM): Allow it to be set from configure.
26954 If set then link Emacs with it.
26955
26956 * config.in: Regenerate.
26957
26958 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26959 New externs.
26960
26961 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26962 Include gpm.h.
26963 (handle_one_term_event, term_gpm): New externs.
26964
26965 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26966 and allow it to be interrupted by SIGIO.
26967
26968 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26969 (wait_reading_process_output): Wait on gpm_fd too.
26970 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26971 (add_gpm_wait_descriptor_called_flag): New variable.
26972 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26973
26974 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26975 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26976 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26977 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26978 (make_lispy_event): Add case GPM_CLICK_EVENT.
26979 (read_avail_input): Handle mouse input.
26980
26981 * term.c (write_glyphs_with_face): New function.
26982 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26983 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26984 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26985 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26986 (last_mouse_x, last_mouse_y): New variables.
26987 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26988 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26989 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26990 (Fterm_close_connection): New functions.
26991 (term_init): Initialise mouse_face_window.
26992
269932007-05-19 Chong Yidong <cyd@stupidchicken.com>
26994
26995 * xdisp.c (redisplay_window): If first window line is a
26996 continuation line, recompute the new window start instead of
26997 recentering.
26998
269992007-05-18 Glenn Morris <rgm@gnu.org>
27000
27001 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27002 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27003
270042007-05-17 Glenn Morris <rgm@gnu.org>
27005
27006 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27007
270082007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27009
27010 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27011 dead key repeat and up events.
27012
270132007-05-14 Chong Yidong <cyd@stupidchicken.com>
27014
27015 * image.c (pbm_load): Check image size for monochrome pbm.
27016
270172007-05-13 Chong Yidong <cyd@stupidchicken.com>
27018
27019 * xterm.c (XTread_socket): Revert last change.
27020
270212007-05-12 Chong Yidong <cyd@stupidchicken.com>
27022
27023 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27024
27025 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27026
270272007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27028
27029 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27030 mixup (YAILOM).
27031
270322007-05-07 Andreas Schwab <schwab@suse.de>
27033
27034 * keymap.c (Flookup_key): Fix typo in last change.
27035
270362007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27037
27038 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27039 mapping for unibyte strings.
27040
270412007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27042
27043 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27044 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27045
270462007-04-29 Richard Stallman <rms@gnu.org>
27047
27048 * insdel.c (replace_range): For undo, record insertion first.
27049
270502007-04-29 Andreas Schwab <schwab@suse.de>
27051
27052 * lisp.h (VECSIZE): Use OFFSETOF.
27053
270542007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27055
27056 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27057 disabled lines.
27058
270592007-04-28 Richard Stallman <rms@gnu.org>
27060
27061 * lread.c (read_escape): In a string, \s is always space.
27062
270632007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27064
27065 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27066
27067 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27068 submenu for menu bar items.
27069
27070See ChangeLog.10 for earlier changes.
27071
27072;; Local Variables:
27073;; coding: utf-8
27074;; add-log-time-zone-rule: t
aac0c6e3
MR
27075;; End:
27076
e3eb1dae 27077 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
27078
27079 This file is part of GNU Emacs.
27080
27081 GNU Emacs is free software: you can redistribute it and/or modify
27082 it under the terms of the GNU General Public License as published by
27083 the Free Software Foundation, either version 3 of the License, or
27084 (at your option) any later version.
27085
27086 GNU Emacs is distributed in the hope that it will be useful,
27087 but WITHOUT ANY WARRANTY; without even the implied warranty of
27088 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27089 GNU General Public License for more details.
27090
27091 You should have received a copy of the GNU General Public License
27092 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27093
27094;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40