pop3.el (pop3-wait-for-messages): Use pop3-accept-process-output instead of nnheader...
[bpt/emacs.git] / src / ChangeLog
CommitLineData
78a21772
KH
12010-09-17 Kenichi Handa <handa@m17n.org>
2
3 * ftfont.c (ftfont_check_otf): Fix previous change.
4
fa3f6039
KH
52010-09-14 Kenichi Handa <handa@m17n.org>
6
7 * ftfont.c (ftfont_check_otf): Fix the case of checking just
8 existence of GSUB or GPOS.
9
2b5491fa
JB
102010-09-14 Juanma Barranquero <lekktu@gmail.com>
11
12 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
13
c97c655f
LMI
142010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
15
2b5491fa 16 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
17 what it does.
18 (parse_string): Return nil when the document can't be parsed.
19
6664fc59 202010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
21
22 * xterm.c (get_current_vm_state): New function.
23 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
24 want_fullscreen so set_wm_state calls are few (Bug#7013).
25 (x_handle_net_wm_state): Move code to get_current_vm_state and
26 call that function.
27
6664fc59 282010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
29
30 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
31
6664fc59 322010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
33
34 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
35 we may use designation or locking-shift.
36
6664fc59 372010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
38
39 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
40 sequence when the source is multibyte.
41
1da70e99
AS
422010-09-14 Andreas Schwab <schwab@linux-m68k.org>
43
6664fc59
JB
44 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
45 Don't make first argument optional. Doc fix.
1da70e99 46
26632d8d
LMI
472010-09-14 Leo <sdl.web@gmail.com> (tiny change)
48
49 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
50 parameters for the doc string.
51
21fa8e37
LMI
522010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
53
54 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
55
5616cc54
SM
562010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
57
58 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
59 (syms_of_fns): Don't defsubr Sy_or_n_p.
60 * lisp.h: Don't declare Fy_or_n_p.
61 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
62
381408e2
LMI
632010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
64
65 * xml.c (Fxml_parse_buffer): New function to parse XML files.
66
672010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
68
69 * xml.c: New file.
70 (Fhtml_parse_buffer): New function to interface to the libxml2
71 html parsing function.
72
733946e7
JB
732010-09-05 Juanma Barranquero <lekktu@gmail.com>
74
75 * biditype.h: Regenerate.
76
7574650a
AS
772010-09-04 Andreas Schwab <schwab@linux-m68k.org>
78
79 * nsimage.m (ns_load_image): Check argument types.
80
81 * image.c: Remove all uses of gcpro.
82 (xpm_load): Check all lisp types.
83 (pbm_load): Likewise.
84 (png_load): Likewise.
85 (jpeg_load): Likewise.
86 (tiff_load): Likewise.
87 (gif_load): Likewise.
88 (imagemagick_load_image): Likewise.
89 (imagemagick_load): Likewise.
90 (svg_load): Likewise.
91 (gs_load): Likewise.
92
6e6b8e25
EZ
932010-09-04 Eli Zaretskii <eliz@gnu.org>
94
95 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
96 try to reorder grapheme clusters, since LGSTRING should always
97 hold them in the logical order.
98 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
99 return glyph codes in the logical order.
100
dbfe4532
AS
1012010-09-04 Andreas Schwab <schwab@linux-m68k.org>
102
103 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 104 (imagemagick_load_image): Fix type mismatch.
5e5992c2 105 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 106
6d7cc563
JD
1072010-09-02 Jan Djärv <jan.h.d@swipnet.se>
108
109 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
110
111 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
112
113 * xselect.c: Remove declaration of cut-buffer objects and functions.
114 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
115 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
116 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
117 (Fx_rotate_cut_buffers_internal): Remove.
118 (syms_of_xselect): Remove defsubr of above.
119 Remove intern of QCUT_BUFFERn.
120
8f4e9110
SM
1212010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
122
123 * cmds.c (Vblink_paren_function): Remove.
124 (internal_self_insert): Make it insert N chars at a time.
125 Don't call blink-paren-function.
126 (Fself_insert_command): Adjust accordingly.
127 (syms_of_cmds): Don't declare blink-paren-function.
128
d419e1d9
KH
1292010-08-31 Kenichi Handa <handa@m17n.org>
130
131 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
132 characters.
133
134 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
135 (produce_glyphs): Don't set it->char_to_display here.
136 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
137 (produce_special_glyphs): Set temp_it.char_to_display before
138 calling produce_glyphs.
139
140 * xdisp.c (get_next_display_element): Set it->char_to_display
141 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
142 characters.
143 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
144 calling PRODUCE_GLYPHS.
145 (append_space_for_newline): Save and store it->char_to_display.
146 Set it->char_to_display before calling PRODUCE_GLYPHS.
147 (extend_face_to_end_of_line): Set it->char_to_display before
148 calling PRODUCE_GLYPHS.
149 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
150 character to its byte value.
151 (get_char_glyph_code): New function.
152 (produce_stretch_glyph): Set it2.char_to_display too before
153 calling x_produce_glyphs.
154 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
155 non-ASCII characters. Don't set it->char_to_display here.
156 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 157 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 158
b819f760
SM
1592010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
160
161 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
162
07fa68a7
CY
1632010-08-31 Chong Yidong <cyd@stupidchicken.com>
164
165 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
166
cd196f12
SM
1672010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
168
169 * marker.c (Fcopy_marker): Make the first arg optional.
170
49a752bb
KH
1712010-08-30 Kenichi Handa <handa@m17n.org>
172
173 * composite.c (composition_update_it): Fix computing of
174 cmp_it->width.
175
769ae9e1
KH
1762010-08-29 Kenichi Handa <handa@m17n.org>
177
9e69cb05 178 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 179 corresponding bytes.
9e69cb05 180
4520b858
J
1812010-08-29 Jan Djärv <jan.h.d@swipnet.se>
182
183 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
184
fe50eb41
KH
1852010-08-26 Kenichi Handa <handa@m17n.org>
186
187 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
188 on calling composition_compute_stop_pos.
189
f6aa6ec6
KH
1902010-08-25 Kenichi Handa <handa@m17n.org>
191
9dfdbc0a
KH
192 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
193 :otf.
194
f6aa6ec6
KH
195 * composite.c (composition_compute_stop_pos): Don't break
196 composition at PT.
197 (composition_reseat_it): Likewise. Fix calculation of character
198 position starting a composition.
199 (Fcomposition_get_gstring): Don't limit the number of components
200 for automatic composition.
201
ff94e32c
KH
2022010-08-25 Kenichi Handa <handa@m17n.org>
203
204 * composite.c (composition_compute_stop_pos): In forward search,
205 pay attention to the possibility that some character after ENDPOS
206 will be composed with charactrs before ENDPOS.
207
1c409d0b
CY
2082010-08-24 Chong Yidong <cyd@stupidchicken.com>
209
210 * keyboard.c (command_loop_1): Don't clobber primary selection
211 during handle-switch-frame (Bug#6872).
212
0c372655
MA
2132010-08-23 Michael Albinus <michael.albinus@gmx.de>
214
215 * dbusbind.c: Accept UNIX domain sockets as bus address.
216 (Fdbus_close_bus): New function.
217 (Vdbus_registered_buses): New variable.
218 (xd_initialize): Implement string as bus address.
219 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
220 (Fdbus_get_unique_name, Fdbus_call_method)
221 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
222 (Fdbus_method_error_internal, Fdbus_send_signal)
223 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
224 check. This is done in xd_initialize_bus. Adapt doc string, if
225 necessary.
226 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
227 Vdbus_registered_buses.
228 (Vdbus_registered_objects_table): Create hash.
229
7133b7ee
JL
2302010-08-22 Juri Linkov <juri@jurta.org>
231
232 * keyboard.c (Fexecute_extended_command): Move reading a command name
233 with `completing-read' to a new Elisp function `read-extended-command'.
234 Call it to read a command to `function' (bug#5364, bug#5214).
235
198a7a97
CY
2362010-08-22 Chong Yidong <cyd@stupidchicken.com>
237
238 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
239
b0126eac 2402010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
241
242 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
243 instead of SAFE_ALLOCA.
244
b0126eac 2452010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
246
247 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
248 (Bug#6214).
249
b0126eac 2502010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
251
252 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
253
b0126eac
CY
2542010-08-22 Jan Djärv <jan.h.d@swipnet.se>
255
256 * doc.c (Fsnarf_documentation): Initialize skip_file before
257 build-files test.
258
692f3ddc 2592010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 260
692f3ddc
JB
261 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
262 New definitions.
b0126eac
CY
263 (HAVE_TERMIO): Remove.
264
5f2f0bc1
EZ
2652010-08-22 Eli Zaretskii <eliz@gnu.org>
266
b613941b
EZ
267 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
268
a583bbef
EZ
269 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
270 for w32.
271
272 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
273 it's done in nt/config.nt.
274
275 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
276
5f2f0bc1
EZ
277 * unexcoff.c (report_error, make_hdr, write_segment)
278 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
279 Convert argument lists and prototypes to ANSI C.
280 (make_hdr, write_segment): Remove unused variables.
281 (unexec): Remove commented-out line. Initialize `new' to shut up
282 compiler warnings.
283
a7ebc409
DN
2842010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
285
286 Simplify termio code.
287 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
288 HAVE_TERMIO code is obsolete.
289 Replace HAVE_TERMIOS conditionals with !DOS_NT.
290 * systty.h: Do not define HAVE_TCATTR.
291 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
292 Do not define EMACS_HAVE_TTY_PGRP. Only define
293 EMACS_GET_TTY_PGRP for !DOS_NT.
294 * sysdep.c: Include sysselect.h unconditionally. Do not include
295 sys/ioctl.h and termios.h, systty.h does it. Use
296 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
297 (init_baud_rate): Remove HAVE_TERMIO code.
298 (child_setup_tty): Remove HAVE_TERMIO code.
299 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
300 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
301 (new_ltchars, new_tchars): Remove, unused.
302 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
303 code. Remove special casing for __mips__, it was a no-op. Remove
304 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
305 (init_sys_modes): Remove HPUX special case.
306 * process.c: Include stdlib.h unconditionally. Do not include
307 fcntl.h, systty.h does it. Remove conditional code for
308 HAVE_SERIAL, it is always true.
309 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
310 always true when SIGNALS_VIA_CHARACTERS is true.
311 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
312 !WINDOWSNT means HAVE_TERMIOS.
313 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
314 conditional, which is true for all HAVE_TERMIOS systems.
315 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
316 instead of HAVE_TERMIOS.
317 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
318 EMACS_HAVE_TTY_PGRP.
319 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
320 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
321 anyway.
322
40629f17
EZ
3232010-08-21 Eli Zaretskii <eliz@gnu.org>
324
325 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
326 mirroring pixel positions.
327
d931da8c
DN
3282010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
329
b5c76d0c
DN
330 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
331 write only.
332 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
333 malloc_sbrk_used, nothing uses them.
334
74815588
DN
335 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
336 defined, unconditionally defined in lisp.h.
337
f5817d1c
DN
338 * term.c: Do not include <termios.h>, systty.h does it.
339
d931da8c
DN
340 * s/unixware.h (HAVE_TCATTR):
341 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
342 systty.h defines it when HAVE_TERMIOS is defined.
343
ff2de6d2 3442010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 345
b43c883c 346 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 347 terminals: add one-character offset for R2L lines.
b43c883c 348
491a1546
EZ
349 * emacs.c <emacs_version>: Add a comment regarding
350 msdos/mainmake.v2's dependency on the syntax of this declaration.
351
2396cbba
EZ
3522010-08-20 Eli Zaretskii <eliz@gnu.org>
353
354 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
355 position for R2L lines by mirroring the pixel position wrt the
356 text are box. Improve commentary.
357
7df6150a
AS
3582010-08-20 Andreas Schwab <schwab@linux-m68k.org>
359
360 * image.c (imagemagick_clear_image): Remove debugging output.
361
a2e5caf7
SM
3622010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
363
364 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
365 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
366 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
367 self-insert-face.
368 (syms_of_cmds): Initialize the new vars.
369
20d60baf
JR
3702010-08-19 Jason Rumney <jasonr@gnu.org>
371
cc477da7
JR
372 * w32menu.c (set_frame_menubar): Remove call to undefined function.
373
20d60baf
JR
374 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
375
2c0ac867
J
3762010-08-19 Jan Djärv <jan.h.d@swipnet.se>
377
378 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
379
93352106
EZ
3802010-08-18 Eli Zaretskii <eliz@gnu.org>
381
382 * xterm.c (x_draw_bar_cursor):
383 * w32term.c (x_draw_bar_cursor): If the character under cursor is
384 R2L, draw the bar cursor on its right rather than on its left.
385
c785836d
SM
3862010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
387
0193499f
SM
388 * eval.c (Fdefmacro): Only obey one declaration.
389
c785836d
SM
390 * casefiddle.c (casify_region): Setup gl_state.
391
9cb728a5
J
3922010-08-18 Jan Djärv <jan.h.d@swipnet.se>
393
394 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
395
e1e18511
J
3962010-08-18 Jan Djärv <jan.h.d@swipnet.se>
397
398 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
399
64cb6c78
J
4002010-08-18 David De La Harpe Golden <david@harpegolden.net>
401
402 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
403 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
404 QPRIMARY => NXPrimaryPboard.
405 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
406 NXPrimaryPboard => QPRIMARY.
407 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
408 NXSecondaryPboard = SecondarySelection.
409 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
410
0c9b8993
GM
4112010-08-18 Joakim Verona <joakim@verona.se>
412
413 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
414 defined:
415 (imagemagick_image_p): New function to test for ImageMagic image.
416 (imagemagick_load): New function to load ImageMagick image.
417 (imagemagick_load_image): New function, helper for imagemagick_load.
418 (imagemagick-types): New function.
419 (Qimagemagick): New Lisp_object.
420 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 421
c3554f68
SM
4222010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
423
424 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
425 is a string.
426
1ff2e434
J
4272010-08-17 Jan Djärv <jan.h.d@swipnet.se>
428
429 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
430 x_set_tool_bar_position handler.
431
0cc56427
EZ
4322010-08-17 Eli Zaretskii <eliz@gnu.org>
433
434 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
435 x_set_tool_bar_position handler, needed to support changes from
436 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
437
e45a249b
JD
4382010-08-16 Jan Djärv <jan.h.d@swipnet.se>
439
921242c6
J
440 * nsselect.m: include keyboard.h for QPRIMARY, remove its
441 declaration (Bug#6863).
573d150b 442 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 443
e45a249b
JD
444 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
445
446 * keyboard.h (QPRIMARY): Declare (Bug#6864).
447
7c23dd44
CY
4482010-08-16 Chong Yidong <cyd@stupidchicken.com>
449
450 * keyboard.c (command_loop_1): Avoid setting selection twice,
451 since it's done in deactivate-mark as well.
452 (Vselect_active_regions): Change default to t. Replace `lazy'
453 with non-default value `only', meaning only set PRIMARY for
454 temporarily active regions.
455
456 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
457 select-active-regions.
458
0005830c
J
4592010-08-15 Jan Djärv <jan.h.d@swipnet.se>
460
461 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
462 isn't a string.
463
603dfc72
AS
4642010-08-15 Andreas Schwab <schwab@linux-m68k.org>
465
466 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
467
c25ce9d0
J
4682010-08-15 Jan Djärv <jan.h.d@swipnet.se>
469
c3554f68
SM
470 * keyboard.c (parse_tool_bar_item): malloc buf.
471 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
472 new_lbl (Bug#6855).
c25ce9d0 473
5872c762
EZ
4742010-08-14 Eli Zaretskii <eliz@gnu.org>
475
b236615c
EZ
476 * xterm.c (x_draw_stretch_glyph_string):
477 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
478 the cursor on the right edge of the stretch glyph.
479
c3554f68
SM
480 * xdisp.c (window_box_right_offset, window_box_right):
481 Fix commentary.
b236615c 482
5872c762
EZ
483 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
484 direction when point is inside a run of whitespace characters.
485
486 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
487
e66f9a1b
JR
4882010-08-14 Jason Rumney <jasonr@gnu.org>
489
490 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
491
79d6f59e
CY
4922010-08-14 Chong Yidong <cyd@stupidchicken.com>
493
494 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
495
1c9b4129
JR
4962010-08-13 Jason Rumney <jasonr@gnu.org>
497
498 * w32menu.c (simple_dialog_show): Use unicode message box if available.
499 (MessageBoxW_Proc): New function typedef.
500 (unicode-message-box): New function pointer.
501 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
502
2b4e6277
J
5032010-08-13 Jan Djärv <jan.h.d@swipnet.se>
504
505 * frame.h (Qtool_bar_position): Declare.
506
507 * xfns.c (Fx_create_frame): Call x_default_parameter for
508 Qtool_bar_position.
509
94c97d85
EZ
5102010-08-13 Eli Zaretskii <eliz@gnu.org>
511
8ee81892
EZ
512 * unexcoff.c: Remove the parts used when "emacs" is not defined.
513 (report_error, report_error_1): Ditto.
514 (write_segment): Remove "#if 0" unused code.
515 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
516 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
517 (start_of_text): Remove unused function (was used only if NO_REMAP
518 was NOT defined).
519
891ef8f7
EZ
520 * msdos.c (IT_set_face): Fix format string to match argument
521 types.
522 (IT_write_glyphs, IT_note_mode_line_highlight)
523 (IT_set_frame_parameters): Remove unused variables.
524 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
525 (IT_set_terminal_modes): Disambiguate expression in if clause.
526 (Fmsdos_remember_default_colors): Return Qnil.
527 (IT_set_frame_parameters): Add parens to disambiguate boolean
528 expression for logging the cursor type to termscript.
529 (keyboard_layout_list, keypad_translate_map)
530 (grey_key_translate_map): Add braces in inner initializers.
531 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
532 (dos_rawgetc): Remove unused label.
533 (XMenuActivate): Add braces to remove ambiguous `else'.
534 (dos_ttraw): Always return a value.
535 (spawnve): Declare.
536 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
537
538 * dosfns.h (x_set_title): Declare.
539
540 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
541 Remove unused variables.
542
543 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
544 variables.
545 (init_dosfns): Declare get_lim_data.
546 (system_process_attributes): Declare Fget_internal_run_time.
547
38e41e0e
EZ
548 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
549 list to be consistent with menu.h.
550
94c97d85
EZ
551 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
552 warnings due to mixing of "char *" and "const char *".
553
c5683ceb
SM
5542010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
555
556 Introduce a new comment style "c" flag.
557 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
558 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
559 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
560 (syntax_prefix_flag_p): New function.
561 (Fstring_to_syntax): Understand new "c" flag.
562 (Finternal_describe_syntax_value): Recognize new flag; use the
563 SYNTAX_FLAGS_* macros.
564 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
565 comment style to accomodate the new styles.
566 (back_comment, forw_comment, Fforward_comment, scan_lists)
567 (scan_sexps_forward): Update code to obey the new comment style flag.
568
569 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
570
571 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
572
7aee76f4
J
5732010-08-11 Jan Djärv <jan.h.d@swipnet.se>
574
3a46642b
J
575 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
576 first.
94dff98f 577 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
578
579 * gtkutil.h (xg_check_special_colors): Declare.
580
581 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
582 (xg_create_frame_widgets): Connect theme name changes to
583 style_changed_cb.
584
42ca4633
J
585 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
586 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
587 (x_term_init): Use char[] display_opt and name_opt instead of
588 string literal. file is const char*.
589
590 * xsmfns.c (NOSPLASH_OPT): Change to char[].
591 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
592 props. Free them at the end.
593
594 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
595
c5683ceb
SM
596 * xrdb.c (get_system_app): Make path const and use char *p for
597 non-const char.
42ca4633
J
598
599 * xmenu.c (Fx_popup_dialog): error_name is const char*.
600 (xmenu_show): error parameter is const char **. pane_string is const
601 char *.
602 (button_names): Is const char *.
603 (xdialog_show): error_name and pane_string is const.
604
605 * process.h (synch_process_death): Is const char*.
606
607 * w32menu.c (w32_menu_show):
608 * nsmenu.m (ns_menu_show): error parameter is const char **.
609
610 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
611 is const char **.
612
613 * menu.c (Fx_popup_menu): error_name is const.
614
615 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
616 with unsigned char and XtPointer with void *.
617
618 * gtkutil.h: Replace widget_value with struct _widget_value.
619 (enum button_type, struct _widget_value): Remove and use the one from
620 keyboard.h.
621
622 * gtkutil.c (get_utf8_string): Always return an allocated string.
623 Parameter is const.
624 (create_dialog, xg_create_one_menuitem, create_menus)
625 (xg_item_label_same_p, xg_update_menu_item): Free result from
626 get_utf8_string.
627 (xg_separator_p, xg_item_label_same_p): label is const.
628
629 * font.h (font_open_by_name): Make name const.
630
631 * font.c (font_open_by_name): Make name const.
632
633 * floatfns.c (matherr): Use a const char* variable for x->name.
634
635 * emacs.c (main): Pass char[] to putenv instead of literal.
636
637 * callproc.c (synch_process_death): Make const.
638 (Fcall_process): Make signame const.
639
9c5bd55a
J
640 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
641 (addDisplayItemWithImage): Use const char*.
642
643 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
644 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
645
646 * nsfont.m (ns_descriptor_to_entity): Use const char*.
647
648 * keyboard.h (_widget_value): name, value and key are const char*.
649
7aee76f4
J
650 * unexmacosx.c (unexec_error): Use const char *.
651
09d93395
DN
6522010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
653
654 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 655 (font_parse_name, font_open_by_name):
09d93395 656 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 657 (font_parse_name, font_open_by_name): Remove const.
09d93395 658
671d409f
AS
6592010-08-09 Andreas Schwab <schwab@linux-m68k.org>
660
661 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
662 definition.
663
664 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
665 * m/amdx86-64.h: Likewise.
666 * m/arm.h: Likewise.
667 * m/hp800.h: Likewise.
668 * m/ia64.h: Likewise.
669 * m/ibmrs6000.h: Likewise.
670 * m/ibms390.h: Likewise.
671 * m/intel386.h: Likewise.
672 * m/iris4d.h: Likewise.
673 * m/m68k.h: Likewise.
674 * m/macppc.h: Likewise.
675 * m/mips.h: Likewise.
676 * m/sh3.h: Likewise.
677 * m/sparc.h: Likewise.
678 * m/template.h: Likewise.
679 * m/vax.h: Likewise.
680 * m/xtensa.h: Likewise.
681 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
682 WORDS_BIG_ENDIAN.
683 * lisp.h: Likewise.
684 * md5.c: Likewise.
685 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
686
8ea90aa3
DN
6872010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
688
689 Use const char* instead of char*.
690 Reduce the number of warnings with -Wwrite-strings.
691 * xrdb.c (get_environ_db, get_system_name):
692 * unexelf.c (find_section):
693 * term.c (string_cost, string_cost_one_line, per_line_cost)
694 (get_named_tty, init_tty):
695 * sysdep.c (sys_subshell):
696 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
697 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
698 * search.c (Freplace_match):
699 * process.c (Fmake_network_process, send_process, init_process):
700 * lread.c (Fload, init_lread):
701 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
702 * keyboard.c (parse_tool_bar_item, struct event_head):
703 * gtkutil.h (xg_get_font_name):
704 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
705 (make_widget_for_menu_item, make_menu_item, create_menus)
706 (xg_make_tool_item):
707 * font.c (parse_matrix, font_parse_name):
708 * floatfns.c (rounding_driver, float_error_fn_name):
709 * filelock.c (get_boot_time_1, lock_file_1):
710 * fileio.c (barf_or_query_if_file_exists, check_writable):
711 * editfns.c (get_system_name, get_operating_system_release)
712 (Fencode_time, Fset_time_zone_rule):
713 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
714 * buffer.c (defvar_per_buffer): Use const.
715
7815fe19 7162010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 717
692f3ddc 718 * charset.c: Include <stdlib.h>.
7a84eee5
KH
719 (struct charset_sort_data): New struct.
720 (charset_compare): New function.
692f3ddc 721 (Fsort_charsets): New function.
7a84eee5
KH
722 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
723
724 * coding.c (decode_coding_iso_2022): Fix checking of dimension
725 number in CTEXT extended segment.
726
7815fe19 7272010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
728
729 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
730 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
731
7815fe19 7322010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
733
734 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
735 (Fhash_table_size): Fix typos in docstrings.
736 (Fmake_hash_table): Doc fix.
737
7815fe19 7382010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
739
740 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
741 Doc fix (bug#5625).
742
7815fe19 7432010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
744
745 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
746 the MSDOS definition.
747
1b6d8cf0
DN
7482010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
749
675e2c69
DN
750 Use const char* instead of char*.
751 * xterm.c (x_create_toolkit_scroll_bar):
752 * xfont.c (xfont_list_pattern):
753 * xfns.c (x_default_scroll_bar_color_parameter)
754 (xic_create_fontsetname, x_default_font_parameter)
755 (x_screen_planes):
756 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
757 (store_mode_line_string, decode_mode_spec, display_string):
758 * menu.c (digest_single_submenu):
759 * keymap.h (initial_define_key, initial_define_lispy_key):
760 * keymap.c (initial_define_key, initial_define_lispy_key):
761 * image.c (image_error, image_keyword):
762 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
763 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
764 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
765 (ftfont_list, ftfont_match):
766 * frame.c (frame_parm_table):
767 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
768 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
769 (font_add_log, font_deferred_log):
770 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
771 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
772 (font_add_log, font_deferred_log):
773 * emacs.c (argmatch):
774 * dispextern.h (struct it):
775 * coding.c (ENCODE_DESIGNATION):
776 * charset.c (define_charset_internal): Use const.
777
25717ca1
DN
778 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
779
c5683ceb
SM
780 * xrdb.c: Remove include guard.
781 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
782 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
783 realloc->xrealloc instead of using #defines.
784
efb41e21
EZ
7852010-08-08 Eli Zaretskii <eliz@gnu.org>
786
cd21226d 787 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
788 * editfns.c (Fline_beginning_position, Fline_end_position):
789 State in the doc strings that start and end of line are in the
790 logical order.
cd21226d 791
efb41e21
EZ
792 * xdisp.c (display_line): Move the handling of overlay arrow after
793 the call to find_row_edges. (Bug#6699)
794
746812d9
CY
7952010-08-07 Chong Yidong <cyd@stupidchicken.com>
796
797 * keyboard.c (command_loop_1):
798 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
799
9852377f
CY
8002010-08-07 Chong Yidong <cyd@stupidchicken.com>
801
802 * insdel.c (prepare_to_modify_buffer): Save active region text to
803 Vsaved_region_selection.
804
805 * xselect.c (QPRIMARY): Move to keyboard.c.
806
807 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
808 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
809 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 810
0e9c8657
JB
8112010-08-07 Juanma Barranquero <lekktu@gmail.com>
812
813 * alloc.c (lisp_malloc):
814 * buffer.c (set_buffer_internal, set_buffer_internal_1):
815 * charset.h (emacs_mule_charset):
816 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
817 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
818 (bitch_at_user):
819 * lisp.h (Fcheck_coding_system, Fget_text_property)
820 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
821 Remove duplicate declarations.
822
648801d1
DN
8232010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
824
32bc6709
DN
825 * process.c: Simplify include logic.
826
3ef1d108
DN
827 * keyboard.h (quit_char): Add declaration.
828 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
829 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
830 Add declarations.
3ef1d108
DN
831 * sysdep.c:
832 * w32.c: Remove the above declarations.
833
97ec208f
DN
834 Remove extern declarations in .c files, .h files have them.
835 * xterm.c:
836 * xdisp.c:
97ec208f
DN
837 * msdos.c:
838 * image.c:
839 * gtkutil.c:
840 * fileio.c:
841 * eval.c: Remove declarations.
842
94eed851
DN
843 * frame.c (frame_params): Make const.
844
36e053eb
DN
845 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
846
0e843971
DN
847 * emacs.c (emacs_copyright, emacs_version): Make static.
848 (Vinitial_window_system, Vauto_save_list_file_name)
849 (Vinhibit_redisplay): Remove declarations.
850 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
851 for AIX.
852
648801d1
DN
853 Use const for some arrays and functions.
854 * xterm.h (xg_set_icon_from_xpm_data):
855 * xfns.c (xg_set_icon_from_xpm_data):
856 * term.c (fkeys):
857 * keyboard.c (lispy_accent_keys, lispy_function_keys)
858 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
859 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
860 (frame.c frame_parms):
861 * emacs-icon.h (gnu_xpm_bits):
862 * callint.c (callint_argfuns): Use const.
863
8646d999
J
8642010-08-06 Jan Djärv <jan.h.d@swipnet.se>
865
866 * sysdep.c: Move include term.h last of includes (Bug#6812).
867
cb4545ad
EZ
8682010-08-06 Eli Zaretskii <eliz@gnu.org>
869
870 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
871
872 * msdos.c (IT_display_cursor): Log cursor position on termscript.
873
874 * .gdbinit (pgx): Display the avoid_cursor_p flag.
875
da7e2be6
JB
8762010-08-06 Juanma Barranquero <lekktu@gmail.com>
877
878 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
879
3d608a86
J
8802010-08-06 Jan Djärv <jan.h.d@swipnet.se>
881
7908fb60
J
882 * xterm.h (x_get_focus_frame): Declare.
883
884 * keyboard.h (poll_for_input_1): Unconditionally declare.
885
4094bf36
J
886 * nsterm.h (x_set_menu_bar_lines): Declare.
887
888 * window.c: Don't include menu.h, it depends on lots of other .h-files.
889
3d608a86
J
890 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
891
892 * window.c: Include menu.h.
893
894 * unexmacosx.c (print_region_list, print_regions)
895 (build_region_list, find_emacs_zone_regions)
896 (unexec_regions_merge, read_load_commands, dump_it)
897 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
898
899 * term.c: Check HAVE_SYS_IOCTL_H.
900
686b968e 901 * sysdep.c: Check HAVE_TERM_H.
3d608a86 902
686b968e 903 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
904
905 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
906 (ns_ring_bell, ns_defined_color, hide_hourglass)
907 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
908 Convert to ANSI C prototypes.
909 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
910 before code.
911
912 * nsterm.h : Include sysselect.h.
913 (x_sync, x_get_focus_frame, x_set_mouse_position)
914 (x_set_mouse_pixel_position, x_make_frame_visible)
915 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
916 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
917 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
918 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 919 Declare.
3d608a86
J
920
921 * nsmenu.m (popup_activated, name_is_separator)
922 (syms_of_nsmenu): Convert to ANSI C prototypes.
923 (runMenuAt): Prototypes and move declarations before code.
924
925 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
926
927 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
928 prototypes.
929
930 * nsfns.m (have_menus_p, ns_display_info_for_name)
931 (x_set_cursor_type, ns_appkit_version_str)
932 (ns_appkit_version_int, ns_do_applescript)
933 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
934 (syms_of_nsfns): Convert to ANSI C prototypes.
935
936 * menu.h (x_set_menu_bar_line): Declare.
937 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
938
939 * lisp.h (fmod_float): Declare.
940
941 * image.c (xpm_scan, xpm_make_color_table_v)
942 (xpm_put_color_table_v, xpm_get_color_table_v)
943 (xpm_make_color_table_h, xpm_put_color_table_h)
944 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
945 (xpm_load): Convert to ANSI C prototypes.
946
947 * emacs.c: Include nsterm.h if HAVE_NS.
948
949 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
950
fce70521
DN
9512010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
952
953 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
954 subprocesses, only MSDOS does not define HAVE_SOCKETS.
955 (socket_options): Use const char* for name.
956
a11889ab
JB
9572010-08-06 Juanma Barranquero <lekktu@gmail.com>
958
959 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
960
961 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
962 Don't declare xmalloc_widget_value and digest_single_submenu.
963
964 * w32font.c (Qlatin): Remove declaration.
965
966 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
967
c95b508f 968 * dired.c (compile_pattern): Restore declaration.
a11889ab 969
6254cdda
DN
9702010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
971
04bab72c
DN
972 Remove extern declarations in .c files, .h files have them.
973 * data.c:
974 * dired.c:
975 * editfns.c:
976 * filelock.c:
977 * fns.c:
978 * font.c:
979 * fontset.c:
980 * frame.c:
981 * fringe.c:
982 * ftfont.c:
983 * gtkutil.c:
984 * indent.c:
985 * keyboard.c:
986 * keymap.c:
987 * lread.c:
988 * menu.c:
989 * print.c:
990 * search.c:
991 * sound.c:
992 * window.c:
993 * xdisp.c:
994 * xfaces.c:
995 * xfns.c:
996 * xfont.c:
997 * xftfont.c:
998 * xmenu.c:
999 * xterm.c: Remove declarations.
1000
dff94ed5
DN
1001 Cleanup syssignal.h.
1002 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1003 (main_thread): Move down to remove #ifdef.
1004 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1005 Remove conditional definition following unconditional ones.
1006
99f3388e
DN
1007 * lisp.h: Remove HAVE_SHM code, unused.
1008 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1009 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1010 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1011 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1012 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1013 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1014 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1015 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1016 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1017 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1018 (Qwindow_scroll_functions, Vafter_load_alist)
1019 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1020 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1021 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1022 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1023 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1024 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1025 (initial_argv, last_nonmenu_event, load_in_progress)
1026 (noninteractive_need_newline, scroll_margin): Add declarations.
1027
1028 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1029 declarations, menu.h has them.
1030 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1031 (Vinput_method_function, Qinput_method_function)
1032 (Qevent_symbol_element_mask, last_event_timestamp):
1033 * dispextern.h (Voverflow_newline_into_fringe):
1034 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1035 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1036 (syms_of_w32font, syms_of_nsfont):
1037 * fontset.h (find_font_encoding, Qlatin):
1038 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1039 (Vtool_bar_mode, set_frame_menubar):
1040 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1041 * xterm.h (Qx_gtk_map_stock):
1042 * keymap.h (meta_prefix_char): Add declarations.
1043
9f5dd6f2
DN
1044 * term.c: Remove dead code.
1045
6254cdda
DN
1046 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1047 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1048 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1049 which is what was there before BSD_PGRPS was removed.
1050
29cf3e20
EZ
10512010-08-05 Eli Zaretskii <eliz@gnu.org>
1052
1053 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1054
1055 * unexcoff.c: Renamed from unexec.c.
1056
aaa0a19a
SM
10572010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1058
1059 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1060
8d1d9587
JB
10612010-08-03 Johan Bockgård <bojohan@gnu.org>
1062
1063 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 1064 (Bug#6744)
8d1d9587 1065
9a747ba6
JD
10662010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1067
4d464ae4
JD
1068 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1069 to TRUE if depth of screen is < 16.
1070
ac01763e
JD
1071 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1072 USE_GTK_TOOLTIP.
e0d62a9b
JB
1073 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1074 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 1075 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
1076 USE_GTK_TOOLTIP.
1077 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1078
1079 * xterm.h (USE_GTK_TOOLTIP): New define.
1080 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1081
9a747ba6
JD
1082 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1083 to Control-D (Bug#6771).
1084
7b0815ba
JB
10852010-08-02 Juanma Barranquero <lekktu@gmail.com>
1086
1087 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1088 Wording by Drew Adams <drew.adams@oracle.com>.
1089
aa1859f5
J
10902010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1091
1092 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1093 ttip_lbl.
1094
1095 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1096 calling gtk_widget_queue_draw.
1097 (x_free_frame_resources): Call xg_free_frame_widgets.
1098
1099 * xfns.c (x_gtk_use_system_tooltips): New variable.
1100 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1101 new gtkutil tooltip functions to show the tooltip.
1102 (Fx_hide_tip): Call xg_hide_tooltip.
1103 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1104
1105 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1106 (xg_show_tooltip, xg_hide_tooltip): Declare.
1107
1108 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
1109 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1110 New functions.
aa1859f5
J
1111 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1112 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1113 Remove code that is commented out.
1114
76417ef4
SM
11152010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1116
1117 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1118
16041401
CY
11192010-07-31 Chong Yidong <cyd@stupidchicken.com>
1120
1121 * xselect.c (x_own_selection): Use list4.
1122
2c09a58f
DN
11232010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1124
1125 * buffer.c (Qwindow): Do not define, already defined in data.c.
1126 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1127
59df9fdd 11282010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 1129
59df9fdd
JB
1130 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1131 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1132 * config.in: Undef HAVE_DIRENT_H.
1c97e857 1133 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 1134 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 1135
1b231651
DN
11362010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1137
1138 Rename s/usg5-4.h -> s/usg5-4-common.h.
1139 * s/usg5-4.h: Rename file to ...
1140 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1141 * s/unixware.h:
1142 * s/sol2-6.h:
1143 * s/irix6-5.h: Update includes accordingly.
1144
bfeabdc3
JD
11452010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1146
2ebf1083
J
1147 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1148
bfeabdc3 1149 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
1150 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1151 Remove toolbar_height.
1152 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
1153 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1154 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1155 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1156
1157 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1158
1159 * xfns.c (x_set_tool_bar_position): New function.
1160 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1161 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 1162 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
1163
1164 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1165 and FRAME_TOOLBAR_LEFT_WIDTH.
1166
1167 * gtkutil.h (xg_change_toolbar_position): Declare.
1168
1169 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1170 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1171 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1172 (xg_create_frame_widgets): Create a hobox for placing widgets
1173 vertically. Use gtk_box_pack_start.
1174 (xg_height_or_width_changed): Renamed from xg_height_changed.
1175 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1176 (xg_update_frame_menubar, free_frame_menubar): Change to
1177 xg_height_or_width_changed.
1178 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1179 size correctly. Remove hardcoded 4, instead use handlebox size -
1180 toolbar size.
1181 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 1182 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
1183 (xg_pack_tool_bar): POS is a new parameter.
1184 Set orientation of tool bar based on pos.
1185 Only make handlebox_widget if NULL.
1186 Check if tool bar goes to vbox or hbox depending on pos.
1187 (xg_update_tool_bar_sizes): New function.
686b968e 1188 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
1189 height, call xg_update_tool_bar_sizes instead.
1190 (free_frame_tool_bar): Remove from hbox or vbox depending on
1191 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1192 (xg_change_toolbar_position): New function.
1193
1194 * frame.h (struct frame): Add tool_bar_position.
1195 (Qbottom): Declare.
1196
1197 * frame.c (Qtool_bar_position): New variable.
1198 (make_frame): Set tool_bar_position to Qtop.
1199 (frame_parms): Add tool-bar-position.
1200 (x_report_frame_params): Store tool_bar_position.
1201 (x_set_fringe_width): Reset wm size hint after fringe changes.
1202
26469a38
DN
12032010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1204
1205 Make lisp_time_argument declaration work on all systems.
1206 * lisp.h (lisp_time_argument): Move declaration ...
1207 * systime.h (lisp_time_argument): ... here
1208 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1209
8848b728
JD
12102010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1211
1212 * vm-limit.c (POINTER): Add typedef for it.
1213 (start_of_data): Change return type from POINTER to char *.
1214
1215 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1216 HAVE_WINDOW_SYSTEM.
1217
76fd1ee9
DN
12182010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1219
0441987e
DN
1220 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1221 Remove reference to __osf__, unused.
1222
56a000c7
DN
1223 * mem-limits.h: Remove duplicated includes.
1224 (NULL): Remove definition, unused.
1225 (POINTER): Remove definition.
1226 (start_of_data): Use char* in prototype, as the function
1227 definition does.
1228
e6cba650
DN
1229 Remove extern declarations from .c files, and them to .h files.
1230 * keyboard.h (Qhelp_echo, waiting_for_input)
1231 (input_available_clear_time, ignore_mouse_drag_p)
1232 (Vdouble_click_time, real_this_command, Vthis_original_command):
1233 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1234 (Voverriding_local_map_menu_flag):
1235 * lisp.h (Qinteractive_form, use_file_dialog)
1236 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1237 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1238 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1239 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1240 (Qfunction, debug_on_next_call, Qfield)
1241 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1242 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1243 (Qfile_directory_p, Qinsert_file_contents)
1244 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1245 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1246 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1247 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1248 (Qminibuffer_prompt)
1249 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1250 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1251 (gray_bitmap_bits, xic_create_fontsetname):
1252 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1253
1254 * xsmfns.c (Vuser_login_name):
1255 * xrdb.c (Vdouble_click_time):
1256 * xfaces.c (xic_create_fontsetname):
1257 * w32select.c (waiting_for_input):
1258 * print.c (minibuffer_auto_raise):
1259 * msdos.c (Qhelp_echo):
1260 * macros.c (real_this_command):
1261 * keymap.c (Voverriding_local_map):
1262 * xterm.c (poll_for_input_1, gray_bitmap_width)
1263 (gray_bitmap_height, gray_bitmap_bits;
1264 * xmenu.c ( Voverriding_local_map)
1265 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1266 (use_file_dialog, Xt_app_con):
1267 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1268 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1269 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1270 (Qtool_bar_lines, ignore_mouse_drag_p):
1271 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1272 (Qrear_nonsticky, nconc2):
1273 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1274 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1275 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1276 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1277 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1278 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1279 (gc_in_progress):
1280 * doc.c (Voverriding_local_map, Qremap):
1281 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1282 (Vcompletion_regexp_list):
1283 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1284 (Qcompletion_ignore_case):
1285 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1286 (Vhistory_length, Vthis_original_command, real_this_command)
1287 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1288 * image.c (Qrisky_local_variable):
1289 * fontset.c (QCname):
1290 * fns.c (minibuffer_auto_raise, QCname):
1291 * dispnew.c (char_ins_del_cost):
1292 * composite.c (font_fill_lglyph_metrics):
1293 * cmds.c (Qface, Vtranslation_table_for_input):
1294 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1295 * ccl.c (charset_unicode):
1296 * callproc.c (Vtemporary_file_directory):
1297 * buffer.c (emacs_strerror): Remove extern declarations.
1298
1299 * data.c (Qwindow): Make non-static, used from other files too.
1300 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1301
76fd1ee9
DN
1302 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1303 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1304 * s/usg5-4.h (COFF):
1305 * s/template.h:
1306 * s/msdos.h (COFF, NO_REMAP):
1307 * s/ms-w32.h (NO_REMAP):
1308 * s/hpux10-20.h (NO_REMAP):
1309 * m/sparc.h (SEGMENT_MASK):
1310 * m/m68k.h (NO_REMAP):
1311 * m/intel386.h (SEGMENT_MASK):
1312 * m/arm.h (NO_REMAP):
1313 * m/alpha.h (COFF):
1314 * m/template.h: Remove references to unused defines.
1315
8a52f00a
JD
13162010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1317
1318 * xsettings.c (Ftool_bar_get_system_style): Also check for
1319 Qtext_image_horiz.
1320
1321 * xdisp.c (Qtext_image_horiz): Define.
1322 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 1323 to documentation of tool-bar-style.
8a52f00a
JD
1324
1325 * lisp.h (Qtext_image_horiz): Declare.
1326
1327 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1328 style text_image_horiz.
1329
89dc303e
DN
13302010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1331
60799703
DN
1332 * emacs.c (Fkill_emacs): Remove return statement.
1333
37254dc1
DN
1334 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1335 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1336 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1337 local extern declarations.
1338
71c7345a
DN
1339 * xmenu.c: Do not included lwlib.h, not needed.
1340
6ba577cb
DN
1341 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1342
fdb183d6
DN
1343 * process.c: Move definitions earlier to minimize #ifdefs.
1344
1345 * xterm.h (x_get_customization_string, x_load_resources)
1346 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1347 (x_check_errors, x_property_data_to_lisp, defined_color)
1348 (xic_set_xfontset, x_defined_color): Use const.
1349
1350 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1351 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1352
1353 * xselect.c (selection_data_to_lisp_data)
1354 (x_property_data_to_lisp):
1355 * xrdb.c (x_get_string_resource, file_p)
1356 (x_get_customization_string, magic_file_p, search_magic_path)
1357 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1358 (x_get_string_resource): Use const.
1359
1360 * xfns.c: Include xlwmenu.h when USE_LUCID.
1361 (x_defined_color, xic_set_xfontset): Use const.
1362 (Fx_hide_tip): Remove local extern declaration.
1363
1364 * xfaces.c (Qmouse_face): Remove declaration.
1365 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 1366 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
1367
1368 * xdisp.c (do_mouse_tracking): Remove declaration.
1369 (add_to_log): Use const.
1370
1371 * minibuf.c (Qmouse_face): Remove declaration.
1372
1373 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1374
1375 * keyboard.h (do_mouse_tracking): Add declaration.
1376
1377 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1378 (QCdata, QCtype, Qcenter): Remove declarations.
1379
1380 * frame.c (x_get_resource_string, x_get_string_resource)
1381 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1382 (x_default_parameter): Use const.
1383
1384 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1385 (QCheight, QCsize, QCname): Remove declarations.
1386
1387 * emacs.c (main): Remove local extern declaration.
1388
1389 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1390 declarations.
1391
1392 * dispnew.c: Remove duplicate #include <unistd.h>.
1393 (update_window, update_frame_1, init_display): Remove local extern
1394 declarations.
1395
1396 * dispextern.h (add_to_log): Remove declaration.
1397 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1398 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1399
1400 * dired.c (scmp): Add const.
1401 (directory_files_internal): Remove local extern declaration.
1402
1403 * data.c (Finteractive_form): Use const.
1404
1405 * composite.c (syms_of_composite): Remove local extern declarations.
1406
1407 * charset.c (add_to_log): Remove declaration.
1408
1409 * character.c (strwidth, parse_str_to_multibyte): Add const.
1410
1411 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1412
1413 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1414
89dc303e 1415 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
1416 (Lisp_Subr): Make doc and intspec constant.
1417 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1418 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1419 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1420 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1421 (display_arg): Add declarations.
89dc303e 1422
0ed082fe 14232010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
1424
1425 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1426
0ed082fe
JB
1427 * window.c (Fwindow_height): Doc fix (bug#6518).
1428
14292010-07-27 Juanma Barranquero <lekktu@gmail.com>
1430
1431 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1432
ccaf0336
DN
14332010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1434
977105dc
DN
1435 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1436 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1437 functions.
1438
f5ada890
DN
1439 * frame.h (Qtty_color_mode): Add declaration.
1440
ccaf0336
DN
1441 * lisp.h (Ftop_level, Fexit_recursive_edit)
1442 (Fabort_recursive_edit): Mark as NO_RETURN.
1443
dfe3c90f
KH
14442010-07-26 Kenichi Handa <handa@m17n.org>
1445
1446 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 1447 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 1448
7d383292
JB
14492010-07-26 Juanma Barranquero <lekktu@gmail.com>
1450
1451 * lread.c (unreadpure, mapatoms_1): Make static.
1452
da31e629
JB
14532010-07-25 Juanma Barranquero <lekktu@gmail.com>
1454
1455 * terminfo.c (tparam): Fix prototype of tparm.
1456
7bfa6d77
AS
14572010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1458
dcc19aac
AS
1459 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1460 find start of text segment.
1461 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1462 is defined.
1463
7bfa6d77
AS
1464 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1465
63f9a672
KB
14662010-07-25 Ken Brown <kbrown@cornell.edu>
1467
1468 * vm-limit.c (check_memory_limits): Fix previous change;
1469 accidentally reverted an earlier change.
1470
24933075
KB
14712010-07-25 Ken Brown <kbrown@cornell.edu>
1472
1473 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1474 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1475
361358ea
JB
14762010-07-25 Juanma Barranquero <lekktu@gmail.com>
1477
1478 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1479 * dired.c (opendir, readdir): Fix prototypes.
1480 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1481 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1482 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1483 (telldir): Remove declaration.
1484 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1485 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1486 * syssignal.h (strsignal): Fix prototype.
1487 * term.c (tparam): Fix prototype.
1488 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1489 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1490 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1491 and __morecore.
1492 * w32gui.h (XParseGeometry): Fix prototype.
1493 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1494 * w32term.c (my_set_focus): Declare inside #if 0.
1495 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1496 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1497 (drain_message_queue, get_next_msg, post_msg, parse_button)
1498 (ClipboardSequence_Proc): Fix prototypes.
1499 (wait_for_sync): Remove declaration.
1500
630b9592
JB
15012010-07-24 Juanma Barranquero <lekktu@gmail.com>
1502
1503 * w32fns.c (w32_to_x_color): Remove, unused.
1504
6a0d6611
AS
15052010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1506
1507 * lisp.h: Remove leftover P_.
1508
4e8608ff
DN
15092010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1510
1511 * ecrt0.c, unexalpha.c: Remove files, unused.
1512
c8197983
AS
15132010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1514
1515 * cmds.c (internal_self_insert): Make static.
1516 * lisp.h (internal_self_insert): Remove declaration.
1517
97b372d7
JB
15182010-07-23 Juanma Barranquero <lekktu@gmail.com>
1519
33ac0414
JB
1520 * alloc.c (free_float):
1521 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1522 * frame.c (delete_frame_handler):
1523 * ralloc.c (reorder_bloc):
1524 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1525 Remove unused static functions.
1526
94da8397
JB
1527 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1528 it is called only from NS code.
1529
2e6c8532
JB
1530 * w32term.c (my_set_focus): #ifdef away; it is called only from
1531 "#ifdef 0" code.
1532
97b372d7
JB
1533 * w32fns.c (x_edge_detection):
1534 * xfaces.c (may_use_scalable_font_p):
1535 Remove obsolete static declarations.
1536
7c3320d8
JB
15372010-07-20 Juanma Barranquero <lekktu@gmail.com>
1538
1539 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1540 (emacs_blocked_realloc, uninterrupt_malloc):
1541 * fringe.c (w32_reset_fringes):
1542 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1543 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1544 * sound.c (be2hs, do_play_sound):
1545 * vm-limit.c (get_lim_data, ret_lim_data):
1546 * w32term.c (x_free_frame_resources):
1547 * xfaces.c (x_create_gc, x_free_gc):
1548 Convert definitions to standard C.
1549
d5273788
SM
15502010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1551
1552 * eval.c (Feval, Ffuncall): Use the new names.
1553
1554 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1555 (DEFUN): Add braces around the union initialisation and use ## to
1556 specify the right union alternative and avoid a cast.
1557
8d16a259
JB
15582010-07-18 Juanma Barranquero <lekktu@gmail.com>
1559
1560 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1561
3b8eff32
CY
15622010-07-17 Chong Yidong <cyd@stupidchicken.com>
1563
1564 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1565
499322ce
J
15662010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1567
1568 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1569 is related to the menu bar (Bug#6499).
a628ad9d 1570 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 1571
f6003da5 15722010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
1573
1574 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1575
1576 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1577
1578 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1579 i.e. don't put back ButtonRelease (Bug#6608).
1580
1581 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1582 instead of Window. Call xg_event_is_for_menubar when
1583 USE_GTK (Bug#6499).
1584
1585 * gtkutil.h (xg_event_is_for_menubar): Declare.
1586
1587 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1588
f6003da5 15892010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
1590
1591 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1592 when it's the same as the old foreground. (Bug#6609)
1593
23243f29
J
15942010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1595
1596 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1597 widget is non-null (Bug#6645).
1598
2b23d2a6
AS
15992010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1600
01b564ff
AS
1601 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1602 Convert old-style definition.
1603
2b23d2a6
AS
1604 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1605 timestamp argument.
1606
c4affd2c
EZ
16072010-07-15 Eli Zaretskii <eliz@gnu.org>
1608
1609 * fringe.c (update_window_fringes): Restore mistakenly reverted
1610 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1611
cf28cebc
J
16122010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1613
1614 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1615 (SET_SAVED_KEY_EVENT): Remove (not used).
1616 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1617 remove size parameter.
1618 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1619 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1620 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1621 ButtonRelease.
6b2c4bd9
J
1622 (x_set_window_size_1): scroll_bar_actual_width is always
1623 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
1624
1625 * xdisp.c (pending_menu_activation): Remove extern declaration.
1626 (prepare_menu_bars): Remove setting of pending_menu_activation.
1627
1628 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
1629 (x_activate_menubar): Set popup_activated_flag for Xt also.
1630 Remove setting of pending_menu_activation.
cf28cebc
J
1631 (set_frame_menubar): Remove check of pending_menu_activation.
1632 Declare menubar_size before code. Correct spelling in comment.
1633
f6c1c771
KH
16342010-07-14 Kenichi Handa <handa@m17n.org>
1635
1636 * font.c (font_open_entity): Cancel previous change.
1637 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1638
20477505
EZ
16392010-07-13 Eli Zaretskii <eliz@gnu.org>
1640
77defa9a
EZ
1641 Remove subprocesses #ifdefs.
1642 * process.c <inhibit_sentinels>: Move to the common part.
1643 (Fwaiting_for_user_input_p): Move to the common part; return nil
1644 if async subprocesses aren't supported.
1645 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1646 MS-DOS. Remove "#ifdef subprocesses".
1647 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1648 (gettimeofday): Remove "#ifdef subprocesses".
1649 (wait_without_blocking): Remove function.
1650 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1651 Remove "#ifdef subprocesses".
1652 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1653 compiled on MS-DOS.
1654 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1655 wait_for_termination on MS-DOS.
1656 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1657 initialization of inhibit_sentinels.
1658 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1659 subprocesses" conditional.
1660 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1661 wait_for_termination, since `buffer' cannot be an integer when
1662 async subprocesses are not supported
1663 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1664 for ifdefing away the call to Fprocess_status.
1665
20477505
EZ
1666 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1667 away the entire body of the function.
1668
b3ffc17c
DN
16692010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1670
01faa934
DN
1671 Remove subprocesses #ifdefs from term.c.
1672 * process.c (add_keyboard_wait_descriptor)
1673 (delete_keyboard_wait_descriptor): Move to common section, do
1674 nothing when subprocesses is not defined.
a628ad9d
JB
1675 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1676 Remove subprocesses #ifdefs.
01faa934 1677
b3ffc17c
DN
1678 Convert maybe_fatal to standard C.
1679 * lisp.h (verror): Declare.
1680 * eval.c (verror): New function containing the code from ...
1681 (error): ... this. Call verror.
1682 * term.c (vfatal): New function containing the code from ...
1683 (fatal): ... this. Call vfatal.
1684 (maybe_fatal): Convert to standard C, use variable number of
1685 arguments. Declare as non-return.
1686 (init_tty): Fix maybe_fatal call.
1687
0521f580
DN
16882010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1689
1690 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1691 (_scroll_bar_note_movement): Convert definitions to standard C.
1692 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1693 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1694
ebd15611
DN
16952010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1696
1697 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1698 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1699 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1700 (xaw_jump_callback, xaw_scroll_callback)
1701 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1702 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1703 definitions to standard C.
1704 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1705 (popup_activate_callback, popup_deactivate_callback)
1706 (menu_highlight_callback, menubar_selection_callback)
1707 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1708 (free_frame_menubar, popup_selection_callback, as)
1709 (create_and_show_popup_menu, dialog_selection_callback)
1710 (create_and_show_dialog):
1711 * xfns.c (hack_wm_protocols, x_window):
1712 * xfaces.c (x_update_menu_appearance):
1713 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1714 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1715 (set_frame_size, update_wm_hints, setup_frame_gcs)
1716 (update_various_frame_slots, update_from_various_frame_slots)
1717 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1718 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1719 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1720
de06a2dd
AS
17212010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1722
a628ad9d 1723 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 1724
fc549af9
EZ
17252010-07-12 Eli Zaretskii <eliz@gnu.org>
1726
1727 * process.c (setup_process_coding_systems): Move to the part
1728 shared by non-subprocesses systems, and make its body empty when
1729 subprocesses is not defined.
1730 (close_process_descs): Move to the part shared by non-subprocesses
1731 systems.
1408902e
EZ
1732 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1733 ANSI C.
fc549af9 1734
d5a3eaaf
AS
17352010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1736
1737 * editfns.c (transpose_markers): Convert old-style definition.
1738 * emacs.c (abort, shut_down_emacs, fixup_locale)
1739 (synchronize_system_time_locale)
1740 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1741 * floatfns.c (extract_float, matherr, init_floatfns)
1742 (syms_of_floatfns): Likewise.
1743 * fns.c (make_hash_table): Likewise.
1744 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1745 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1746 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1747 (ftfont_variation_glyphs): Likewise.
1748 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1749 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1750 * lread.c (read_filtered_event): Likewise.
1751 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1752 * process.c (wait_reading_process_output): Likewise.
1753 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1754 * search.c (search_buffer, boyer_moore): Likewise.
1755 * syntax.c (scan_sexps_forward): Likewise.
1756 * xdisp.c (try_scrolling): Likewise.
1757 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1758 (face_at_string_position): Likewise.
1759 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1760 * xselect.c (x_get_window_property, receive_incremental_selection)
1761 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1762 Likewise.
1763 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1764
6f704c76
DN
17652010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1766
ded80a25
DN
1767 * callproc.c (child_setup): Remove subprocesses conditional.
1768 Remove code dealing with SET_EMACS_PRIORITY, unused.
1769
49d937f4 1770 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
1771 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1772
1773 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1774 (__do_global_dtors, __main): Use void in definition.
1775 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1776 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1777 the only users from ...
1778 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1779 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1780 (HAVE_VOLATILE): Remove, unused.
1781
6f704c76
DN
1782 Convert more function definitions to standard C.
1783 * xdisp.c (window_box_edges, handle_single_display_spec)
1784 (display_string): Convert definition to standard C.
1785 * scroll.c (do_direct_scrolling, scrolling_1):
1786 * dispnew.c (allocate_matrices_for_frame_redisplay)
1787 (mirrored_line_dance):
1788 * coding.c (code_convert_string):
1789 * charset.c (map_charset_chars):
1790 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1791 (Fregister_ccl_program, Fregister_code_conversion_map):
1792 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1793 (head_table): Make static and const.
1794
e6cfa7c3
AS
17952010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1796
1797 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1798 (PROFILING_LDFLAGS): Set from substitution.
1799 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1800 CFLAGS last.
1801
892dd565
KH
18022010-07-12 Kenichi Handa <handa@m17n.org>
1803
6f2cdcd1
KH
1804 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1805 (shortlisp): Likewise.
1806
892dd565
KH
1807 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1808
1809 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1810 of FONT_ENTITY_INDEX.
1811 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1812 property, get the property value dynamically.
1813 (Ffont_put): Accept font-entity and font-object too.
1814 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1815 return value changed.
1816 (syms_of_font): Adjusted for the above change.
1817
ae96d47a
AS
18182010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1819
c8fc18ee
AS
1820 * blockinput.h: Remove obsolete comment.
1821
89887d67
AS
1822 * lisp.h: Include <stddef.h>.
1823 (OFFSETOF): Don't define.
1824 (VECSIZE): Use offsetof instead of OFFSETOF.
1825 (PSEUDOVECSIZE): Likewise.
1826 * process.c (conv_sockaddr_to_lisp): Likewise.
1827 * alloc.c: Don't include <stddef.h>.
1828 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1829
ae96d47a
AS
1830 * process.c: Remove obsolete comment.
1831
635c0aa1
CY
18322010-07-11 Chong Yidong <cyd@stupidchicken.com>
1833
1834 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1835
a64df650
AS
18362010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1837
8966b757
AS
1838 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1839 index, rindex.
1840 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1841 * editfns.c (Fuser_full_name, Fformat): Likewise.
1842 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1843 * fileio.c (Ffile_symlink_p): Likewise.
1844 * filelock.c (current_lock_owner): Likewise.
1845 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1846 * fontset.c (fontset_pattern_regexp): Likewise.
1847 * lread.c (read1): Likewise.
1848 * sysdep.c (init_system_name): Likewise.
1849 * xfns.c (select_visual): Likewise.
1850 * s/hpux10-20.h (index, rindex): Don't define.
1851 * s/ms-w32.h (index): Likewise.
1852 * s/usg5-4.h: Likewise.
1853
cf237e27
AS
1854 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1855
a8fe7202
AS
1856 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1857 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1858 (egetenv): Likewise.
1859 * doprnt.c (doprnt): Likewise.
1860 * editfns.c (set_time_zone_rule, format2): Likewise.
1861 * emacs.c (decode_env_path): Likewise.
1862 * eval.c (signal_error, error): Likewise.
1863 * insdel.c (replace_range_2): Likewise.
1864 * keyboard.c (cmd_error_internal): Likewise.
1865 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1866 * print.c (write_string, write_string_1, print_error_message):
1867 Likewise.
1868 * vm-limit.c (warn_function, memory_warnings): Likewise.
1869 * xdisp.c (message1, message1_nolog, message_with_string)
1870 (vmessage, message, message_nolog): Likewise.
1871 * emacs.c: Remove duplicate declaration.
1872 * keyboard.h: Likewise.
1873 * lisp.h: Update prototypes.
1874
bb8e180f
AS
1875 * eval.c: Fix indentation problem.
1876
83380e65
AS
1877 * keyboard.c: Include "process.h"
1878
a64df650
AS
1879 * eval.c: Remove obsolete noinline declaration.
1880 * fns.c: Likewise.
1881
6a8033e1
KR
18822010-07-11 Ken Raeburn <raeburn@raeburn.org>
1883
1884 * doprnt.c (doprnt): Take a va_list argument instead of count and
1885 pointer.
1886 * eval.c (error): Change to a standard-C variadic function.
1887 * xdisp.c (vmessage): Renamed from message, made static, and
1888 changed to take a va_list argument.
1889 (message): New variadic wrapper.
1890 (message_nolog): Now a variadic function, calling vmessage.
1891 * lisp.h: Include stdarg.h for va_list.
1892 (doprnt, error, message, message_nolog): Decls updated.
1893
462aa963
EZ
18942010-07-11 Eli Zaretskii <eliz@gnu.org>
1895
1896 * process.c (syms_of_process) <delete-exited-processes>: Define
1897 even if !subprocesses.
1898 (delete_exited_processes): Ditto.
1899
1900 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1901 (delete_exited_processes): Don't define.
1902
48104462
CY
19032010-07-10 Chong Yidong <cyd@stupidchicken.com>
1904
1905 * frame.c (make_frame): Initialize menu_bar_lines and
1906 tool_bar_lines members.
1907 (make_initial_frame, make_terminal_frame): Initialize
1908 menu_bar_lines using value of menu-bar-mode.
1909
1910 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1911
f388c88a
EZ
19122010-07-10 Eli Zaretskii <eliz@gnu.org>
1913
1914 * process.c: Reshuffle #include's. Condition some of the global
1915 and static variables on `subprocesses'.
1916 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1917 Leave only one implementation.
1918 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1919 (kill_buffer_processes, Flist_system_processes)
1920 (Fprocess_attributes, init_process, syms_of_process): Unify the
1921 implementations for with subprocesses and without them.
1922
723f5a07
J
19232010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1924
1925 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1926 correct size for Motif.
1927 (free_frame_menubar): Call x_set_window_size to update frame size.
1928
1929 * xfns.c (x_window): Set borderWidth to 0 for pane and
1930 EmacsFrame. Frame size calculation is wrong otherwise.
1931
2536a4b7
MA
19322010-07-09 Michael Albinus <michael.albinus@gmx.de>
1933
1934 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1935 allows to suppress errors when polling in Emacs' main loop.
1936 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1937 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1938 (Fdbus_method_error_internal, Fdbus_send_signal)
1939 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1940 (Fdbus_register_method): Use it. (Bug#6579)
1941
5842a27b
DN
19422010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1943
1944 * alloc.c: Convert DEFUNs to standard C.
1945 * buffer.c:
1946 * bytecode.c:
1947 * callint.c:
1948 * callproc.c:
1949 * casefiddle.c:
1950 * casetab.c:
1951 * category.c:
1952 * character.c:
1953 * charset.c:
1954 * chartab.c:
1955 * cmds.c:
1956 * coding.c:
1957 * composite.c:
1958 * data.c:
1959 * dbusbind.c:
1960 * dired.c:
1961 * dispnew.c:
1962 * doc.c:
1963 * dosfns.c:
1964 * editfns.c:
1965 * emacs.c:
1966 * eval.c:
1967 * fileio.c:
1968 * filelock.c:
1969 * floatfns.c:
1970 * fns.c:
1971 * font.c:
1972 * fontset.c:
1973 * frame.c:
1974 * fringe.c:
1975 * image.c:
1976 * indent.c:
1977 * insdel.c:
1978 * keyboard.c:
1979 * keymap.c:
1980 * lread.c:
1981 * macros.c:
1982 * marker.c:
1983 * menu.c:
1984 * minibuf.c:
1985 * msdos.c:
1986 * nsfns.m:
1987 * nsmenu.m:
1988 * nsselect.m:
1989 * print.c:
1990 * process.c:
1991 * search.c:
1992 * sound.c:
1993 * syntax.c:
1994 * term.c:
1995 * terminal.c:
1996 * textprop.c:
1997 * undo.c:
1998 * w16select.c:
1999 * w32console.c:
2000 * w32fns.c:
2001 * w32font.c:
2002 * w32menu.c:
2003 * w32proc.c:
2004 * w32select.c:
2005 * window.c:
2006 * xdisp.c:
2007 * xfaces.c:
2008 * xfns.c:
2009 * xmenu.c:
2010 * xselect.c:
2011 * xsettings.c:
2012 * xsmfns.c: Likewise.
2013
d568829b
EZ
20142010-07-08 Eli Zaretskii <eliz@gnu.org>
2015
2016 * process.c (kbd_is_on_hold, hold_keyboard_input)
2017 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2018
52214050
J
20192010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2020
2021 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2022 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2023 unless USE_LUCID.
2024
313d9eb2
DN
20252010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2026
a628ad9d
JB
2027 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2028 declaration.
d8825aa3 2029
295d0d8f
DN
2030 Clean up include guards.
2031 * tparam.c: Remove include guards for config.h, string.h and code
2032 that assumes #ifndef emacs.
2033 * termcap.c:
2034 * unexalpha.c:
2035 * sysdep.c:
2036 * filemode.c:
2037 * filelock.c:
2038 * bidi.c: Likewise.
2039
49d9e6b0
DN
2040 Remove prefix-args.c
2041 * prefix-args.c: Remove file.
2042 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2043 * Makefile.in (temacs${EXEEXT}): Remove references to
2044 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2045 (mostlyclean): Remove reference to prefix-args.
2046 (prefix-args): Remove.
2047
313d9eb2
DN
2048 Simplify cstart_of_data, start_of_code and related code.
2049 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2050 (start_of_data): Merge into start_of_data function.
2051 * sysdep.c (start_of_text): Remove. Move simplified versions of
2052 it in the only users: unexaix.c and unexec.c.
2053 (read_input_waiting): Remove local declaration of quit_char.
2054 (start, etext): Remove declarations.
2055 (start_of_data): Merge with the version in mem-limits.h and move
2056 to vm-limits.c.
2057 * vm-limit.c (start_of_data): Merged and simplified version of the
2058 code formerly in mem-limits.h and sysdep.c.
2059 * unexec.c (start): New declaration, moved from sysdep.c.
2060 (start_of_text): Simplified version of the code formerly in sysdep.c.
2061 * unexaix.c (start_of_text): Simplified version of the code
2062 formerly in sysdep.c.
2063 * m/alpha.h (HAVE_TEXT_START): Remove.
2064 (TEXT_START): Move ...
2065 * unexalpha.c (TEXT_START): ... here.
2066 * s/hpux10-20.h (TEXT_START): Remove.
2067 * s/darwin.h (TEXT_START):
2068 * m/mips.h (TEXT_START):
2069 * m/macppc.h (HAVE_TEXT_START):
2070 * m/m68k.h (TEXT_START):
2071 * m/iris4d.h (TEXT_START):
2072 * m/intel386.h (TEXT_START):
2073 * m/ibmrs6000.h (TEXT_START):
2074 * m/ia64.h (HAVE_TEXT_START):
2075 * s/msdos.h (TEXT_START): Likewise.
2076
72af86bd
AS
20772010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2078
2079 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2080 (overrun_check_free, xstrdup, allocate_string)
2081 (allocate_string_data, compact_small_strings, Fmake_string)
2082 (make_unibyte_string, make_multibyte_string)
2083 (make_string_from_bytes, make_specified_string, make_float)
2084 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2085 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2086 memcpy, memmove, memset, memcmp.
2087 * atimer.c (start_atimer, set_alarm): Likewise.
2088 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2089 (mmap_realloc, init_buffer_once): Likewise.
2090 * callint.c (Fcall_interactively): Likewise.
2091 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2092 (getenv_internal_1): Likewise.
2093 * casefiddle.c (casify_object): Likewise.
2094 * ccl.c (ccl_driver): Likewise.
2095 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2096 * charset.c (load_charset_map_from_file)
2097 (load_charset_map_from_file, load_charset_map_from_vector)
2098 (Fdefine_charset_internal): Likewise.
2099 * cm.c (Wcm_clear): Likewise.
2100 * coding.c (decode_eol, decode_coding_object)
2101 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2102 * data.c (Faset): Likewise.
2103 * dired.c (directory_files_internal, file_name_completion_stat):
2104 Likewise.
2105 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2106 (clear_glyph_row, copy_row_except_pointers)
2107 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2108 (save_current_matrix, restore_current_matrix)
2109 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2110 (mirror_line_dance, scrolling_window): Likewise.
2111 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2112 Likewise.
2113 * doprnt.c (doprnt): Likewise.
2114 * editfns.c (Fuser_full_name, make_buffer_string_both)
2115 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2116 * emacs.c (sort_args): Likewise.
2117 * eval.c (Fapply, Ffuncall): Likewise.
2118 * fileio.c (Ffile_name_directory, make_temp_name)
2119 (Fexpand_file_name, search_embedded_absfilename)
2120 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2121 (auto_save_error): Likewise.
2122 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2123 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2124 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2125 (Fmake_hash_table): Likewise.
2126 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2127 * ftfont.c (ftfont_text_extents): Likewise.
2128 * getloadavg.c (getloadavg): Likewise.
2129 * image.c (define_image_type, make_image, make_image_cache)
2130 (x_create_x_image_and_pixmap, xbm_image_p)
2131 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2132 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2133 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2134 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2135 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2136 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2137 Likewise.
2138 * indent.c (scan_for_column, compute_motion): Likewise.
2139 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2140 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2141 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2142 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2143 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2144 (store_user_signal_events, menu_bar_items, tool_bar_items)
2145 (process_tool_bar_item, append_tool_bar_item)
2146 (read_char_minibuf_menu_prompt, read_key_sequence)
2147 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2148 Likewise.
2149 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2150 Likewise.
2151 * lisp.h (STRING_COPYIN): Likewise.
2152 * lread.c (Fload, read1, oblookup): Likewise.
2153 * msdos.c (Frecent_doskeys): Likewise.
2154 * nsfns.m (Fx_create_frame): Likewise.
2155 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2156 Likewise.
2157 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2158 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2159 Likewise.
2160 * nsmenu.m (ns_update_menubar): Likewise.
2161 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2162 * print.c (print_unwind, printchar, strout, print_string)
2163 (print_error_message): Likewise.
2164 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2165 (Fmake_network_process, Fnetwork_interface_list)
2166 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2167 (init_process): Likewise.
2168 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2169 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2170 Likewise.
2171 * scroll.c (do_scrolling, do_direct_scrolling)
2172 (scrolling_max_lines_saved): Likewise.
2173 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2174 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2175 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2176 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2177 (emacs_set_tty): Likewise.
2178 * term.c (encode_terminal_code, calculate_costs)
2179 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2180 Likewise.
2181 * termcap.c (tgetst1, gobble_line): Likewise.
2182 * termhooks.h (EVENT_INIT): Likewise.
2183 * tparam.c (tparam1): Likewise.
2184 * unexalpha.c (unexec): Likewise.
2185 * unexec.c (write_segment): Likewise.
2186 * unexmacosx.c (unexec_write_zero): Likewise.
2187 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2188 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2189 * w32font.c (w32font_list_family, w32font_text_extents)
2190 (w32font_list_internal, w32font_match_internal)
2191 (w32font_open_internal, compute_metrics, Fx_select_font):
2192 Likewise.
2193 * w32menu.c (set_frame_menubar, add_menu_item)
2194 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2195 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2196 * w32uniscribe.c (uniscribe_list_family): Likewise.
2197 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2198 * window.c (make_window, replace_window, set_window_buffer)
2199 (Fsplit_window): Likewise.
2200 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2201 (add_to_log, message3, x_consider_frame_title)
2202 (append_space_for_newline, extend_face_to_end_of_line)
2203 (decode_mode_spec_coding, init_glyph_string): Likewise.
2204 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2205 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2206 (face_attr_equal_p, make_realized_face, make_face_cache)
2207 (free_realized_faces, lookup_named_face, smaller_face)
2208 (face_with_height, lookup_derived_face)
2209 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2210 (Finternal_set_font_selection_order, realize_default_face)
2211 (compute_char_face, face_at_buffer_position)
2212 (face_for_overlay_string, face_at_string_position, merge_faces):
2213 Likewise.
2214 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2215 (Fx_window_property, x_create_tip_frame)
2216 (Fx_backspace_delete_keys_p): Likewise.
2217 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2218 (xfont_text_extents): Likewise.
2219 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2220 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2221 * xselect.c (x_queue_event, x_get_window_property)
2222 (receive_incremental_selection): Likewise.
2223 * xsmfns.c (x_session_check_input): Likewise.
2224 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2225 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2226 Likewise.
2227 * character.h (BCOPY_SHORT): Removed.
2228 * config.in: Regenerate.
2229 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2230 * emacs.c (main) [PROFILING]: Don't declare
2231 dump_opcode_frequencies.
2232 * lisp.h (safe_bcopy): Remove declaration.
2233 (memset) [!HAVE_MEMSET]: Declare.
2234 (memcpy) [!HAVE_MEMCPY]: Likewise.
2235 (memmove) [!HAVE_MEMMOVE]: Likewise.
2236 (memcmp) [!HAVE_MEMCMP]: Likewise.
2237 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2238 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2239 Don't define.
2240 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2241 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2242 (BCOPY_DOWNWARD_SAFE): Don't define.
2243 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2244 (memcpy) [!HAVE_MEMCPY]: Define.
2245 (memmove) [!HAVE_MEMMOVE]: Define.
2246 (memcmp) [!HAVE_MEMCMP]: Define.
2247
cb768704
J
22482010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2249
2250 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
2251 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2252 New functions.
cb768704
J
2253 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2254 select on empty input mask.
2255 (init_process): Initialize kbd_is_on_hold to 0.
2256
2257 * process.h (hold_keyboard_input, unhold_keyboard_input)
2258 (kbd_on_hold_p): Declare.
2259
2260 * keyboard.c (input_available_signal): Declare.
2261 (kbd_buffer_nr_stored): New function.
2262 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2263 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2264 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2265 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2266 (tty_read_avail_input): If input is on hold, return.
2267 Don't read more that free slots in kbd_buffer (Bug#6571).
2268
3a8ce822
EZ
22692010-07-07 Eli Zaretskii <eliz@gnu.org>
2270
2271 * msdos.h:
2272 * msdos.c:
2273 * dosfns.c:
2274 * w16select.c: Convert function definitions to ANSI C.
2275
a628ad9d
JB
2276 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2277 Remove unused prototypes.
3a8ce822 2278
cf84bb53
JB
22792010-07-07 Juanma Barranquero <lekktu@gmail.com>
2280
2281 * coding.c, sysdep.c: Convert some more functions to standard C.
2282
1a4990fb
JB
22832010-07-07 Juanma Barranquero <lekktu@gmail.com>
2284
2285 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2286 (encode_coding_object): Use SPECPDL_INDEX.
2287 (syms_of_coding): Use DOS_NT.
2288
c0f2f16b
DN
22892010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2290
48fb6855
DN
2291 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2292
c0f2f16b
DN
2293 Make the function member of Lisp_Subr use standard C prototypes.
2294 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2295 (DECL_ALIGN): Add a cast for the function.
2296 * eval.c (Feval, Ffuncall): Use the proper type for each type
2297 function call.
2298
67aecef9
CY
22992010-07-06 Chong Yidong <cyd@stupidchicken.com>
2300
2301 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2302 fringe face id, so face-remapping-alist works (Bug#6091).
2303
b56ceb92
JB
23042010-07-06 Juanma Barranquero <lekktu@gmail.com>
2305
2306 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2307 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2308 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2309
7af07b96
AS
23102010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2311
2312 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2313 * lisp.h: Declare x_get_keysym_name.
2314 * keyboard.c (modify_event_symbol): Don't declare
2315 x_get_keysym_name here.
2316
69e24e34
DN
23172010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2318
2319 * ecrt0.c: Revert conversion to standard C.
2320
d3da34e0 23212010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
2322
2323 * vm-limit.c (memory_warnings):
2324 * keyboard.c (modify_event_symbol):
2325 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2326 (round2, emacs_rint):
2327 * process.c (send_process, old_sigpipe): Convert function
2328 definitions and declarations to standard C.
2329
23302010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
2331
2332 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2333 * xdisp.c: Convert function definitions to standard C.
2334
2335 * cm.c (cmputc): Arg C is now int, not char.
2336 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2337
00be444c
J
23382010-07-05 James Cloos <cloos@jhcloos.com>
2339
2340 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2341
2342 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2343 _NET_WM_ICON_NAME atoms.
2344
2345 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2346 and _NET_WM_ICON_NAME properties, too, matching what is
2347 done in the Gtk+ case.
2348
e4c8d29a
J
23492010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2350
ff919460
J
2351 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2352
e4c8d29a
J
2353 * xsmfns.c (SSDATA): New macro.
2354 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2355 passed to strlen/strcpy/strcat.
2356 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2357 7:th arg to XChangeProperty to (unsigned char *)
2358
2359 * xsettings.c (something_changedCB, parse_settings)
2360 (apply_xft_settings): Reformat prototype.
2361 (something_changedCB, init_gconf): Remove unused variable i.
2362 (read_settings): Remove unused variable long_len.
2363
2364 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2365 (xg_get_image_for_pixmap, create_dialog)
2366 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2367 (menuitem_highlight_callback, make_menu_item)
2368 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2369 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2370 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2371 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2372 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2373 (xg_tool_bar_item_expose_callback): Reformat prototype.
2374 (xg_update_menubar): GList *group => GSList *group.
2375 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2376 before use.
2377 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2378 to GTK_IMAGE (wimage).
2379
dd4c5104
DN
23802010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2381
898b4c5c
DN
2382 * atimer.c: Use "" instead of <> for local includes for
2383 consistency with the rest of the code.
2384
dd4c5104
DN
2385 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2386 * xrdb.c (get_system_name):
2387 * window.c (shrink_windows):
2388 * syntax.c (forw_comment):
2389 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2390 (ins_del_costs):
2391 * mem-limits.h (start_of_data):
2392 * lread.c (readevalloop):
2393 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2394 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2395 * frame.c (x_get_focus_frame):
2396 * floatfns.c (fmod_float):
2397 * fileio.c (choose_write_coding_system):
2398 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2399 (malloc_initialize_hook, sort_args, synchronize_locale):
2400 * doprnt.c (doprnt):
2401 * dired.c (compile_pattern):
2402 * data.c (fmod_float):
2403 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2404 (map_char_table_for_charset):
2405 * charset.c (define_charset_internal):
2406 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2407 to standard C.
2408
9a39b306 24092010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 2410 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
2411
2412 * lread.c (read1): Fix up last change to not mess up `c'.
2413
e6cb2cbb
JB
24142010-07-04 Juanma Barranquero <lekktu@gmail.com>
2415
2416 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2417
438105ed
JB
24182010-07-04 Juanma Barranquero <lekktu@gmail.com>
2419
2420 Fix prototypes.
2421
e5447b22 2422 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 2423 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
2424 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2425 arg, as required by internal_condition_case_1.
dcc7404b 2426 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
2427 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2428 (analyse_first): Fix "const const".
e5447b22 2429 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 2430 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 2431 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 2432
971de7fb
DN
24332010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2434
2435 * alloc.c: Convert function definitions to standard C.
2436 * atimer.c:
2437 * bidi.c:
2438 * bytecode.c:
2439 * callint.c:
2440 * callproc.c:
2441 * casefiddle.c:
2442 * casetab.c:
2443 * category.c:
2444 * ccl.c:
2445 * character.c:
2446 * charset.c:
2447 * chartab.c:
2448 * cmds.c:
2449 * coding.c:
2450 * composite.c:
2451 * data.c:
2452 * dbusbind.c:
2453 * dired.c:
2454 * dispnew.c:
2455 * doc.c:
2456 * doprnt.c:
2457 * ecrt0.c:
2458 * editfns.c:
2459 * fileio.c:
2460 * filelock.c:
2461 * filemode.c:
2462 * fns.c:
2463 * font.c:
2464 * fontset.c:
2465 * frame.c:
2466 * fringe.c:
2467 * ftfont.c:
2468 * ftxfont.c:
2469 * gtkutil.c:
2470 * indent.c:
2471 * insdel.c:
2472 * intervals.c:
2473 * keymap.c:
2474 * lread.c:
2475 * macros.c:
2476 * marker.c:
2477 * md5.c:
2478 * menu.c:
2479 * minibuf.c:
2480 * prefix-args.c:
2481 * print.c:
2482 * ralloc.c:
2483 * regex.c:
2484 * region-cache.c:
2485 * scroll.c:
2486 * search.c:
2487 * sound.c:
2488 * strftime.c:
2489 * syntax.c:
2490 * sysdep.c:
2491 * termcap.c:
2492 * terminal.c:
2493 * terminfo.c:
2494 * textprop.c:
2495 * tparam.c:
2496 * undo.c:
2497 * unexelf.c:
2498 * window.c:
2499 * xfaces.c:
2500 * xfns.c:
2501 * xfont.c:
2502 * xftfont.c:
2503 * xgselect.c:
2504 * xmenu.c:
2505 * xrdb.c:
2506 * xselect.c:
2507 * xsettings.c:
2508 * xsmfns.c:
2509 * xterm.c: Likewise.
2510
ae492bec
EZ
25112010-07-03 Eli Zaretskii <eliz@gnu.org>
2512
76ea4cc9
EZ
2513 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2514 frames other than the initial one. Fix reversal of colors when
2515 `reverse' is specified in the frame parameters. Call
2516 update_face_from_frame_parameter instead of
2517 internal-set-lisp-face-attribute. Initialize screen colors from
2518 initial_screen_colors[] when f->default_face_done_p is zero,
2519 instead of depending on being called with default-frame-alist as
2520 the alist argument.
2521
2522 * xfaces.c (update_face_from_frame_parameter): Move out of
2523 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2524 with HAVE_WINDOW_SYSTEM.
2525
1e6255ae
EZ
2526 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2527 to menu-bar-mode, if not set in the frame parameters or in
2528 default-frame-alist.
2529
ae492bec
EZ
2530 * w32console.c (sys_tputs): Adjust argument list to prototype in
2531 term.c.
2532
3a35a84c
JB
25332010-07-03 Juanma Barranquero <lekktu@gmail.com>
2534
2535 * lisp.h (memory_warnings): Fix prototype.
2536
2537 * cm.h (evalcost): Fix prototype.
2538
2539 * cm.c (evalcost): Fix arg type.
2540
c532d349
DN
25412010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2542
2543 * term.c (term_clear_mouse_face, Fidentity):
2544 * syssignal.h (signal_handler_t):
2545 * lisp.h (memory_warnings):
2546 * coding.h (preferred_coding_system):
2547 * cm.h (evalcost):
2548 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2549
c0b36d46
EZ
25502010-07-02 Eli Zaretskii <eliz@gnu.org>
2551
2552 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2553 from prototypes.
2554
2555 * msdos.h (load_pixmap): Don't define away.
2556
383e0970
J
25572010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2558
f57e2426
J
2559 * lisp.h:
2560 * atimer.h: Remove define for P_.
2561
2562 * alloc.c: Remove __P and P_ from .c and .m files.
2563 * atimer.c:
2564 * buffer.c:
2565 * callint.c:
2566 * category.c:
2567 * charset.c:
2568 * chartab.c:
2569 * cm.c:
2570 * coding.c:
2571 * composite.c:
2572 * data.c:
2573 * dired.c:
2574 * dispnew.c:
2575 * doc.c:
2576 * editfns.c:
2577 * emacs.c:
2578 * eval.c:
2579 * fileio.c:
2580 * filelock.c:
2581 * fns.c:
2582 * font.c:
2583 * fontset.c:
2584 * frame.c:
2585 * ftfont.c:
2586 * ftxfont.c:
2587 * gmalloc.c:
2588 * gtkutil.c:
2589 * image.c:
2590 * indent.c:
2591 * intervals.c:
2592 * keyboard.c:
2593 * keymap.c:
2594 * lread.c:
2595 * marker.c:
2596 * menu.c:
2597 * minibuf.c:
2598 * print.c:
2599 * process.c:
2600 * scroll.c:
2601 * search.c:
2602 * sound.c:
2603 * strftime.c:
2604 * syntax.c:
2605 * sysdep.c:
2606 * term.c:
2607 * terminal.c:
2608 * textprop.c:
2609 * unexalpha.c:
2610 * w32console.c:
2611 * w32fns.c:
2612 * w32font.c:
2613 * w32menu.c:
2614 * w32term.c:
2615 * w32uniscribe.c:
2616 * window.c:
2617 * xdisp.c:
2618 * xfaces.c:
2619 * xfns.c:
2620 * xfont.c:
2621 * xftfont.c:
2622 * xmenu.c:
2623 * xselect.c:
2624 * xterm.c: Likewise.
2625
383e0970 2626 Remove P_ and __P macros.
f57e2426
J
2627 * atimer.h: Remove P_ and __P macros.
2628 * buffer.h:
383e0970
J
2629 * category.h:
2630 * ccl.h:
2631 * character.h:
2632 * charset.h:
2633 * cm.h:
2634 * coding.h:
2635 * composite.h:
2636 * dispextern.h:
2637 * disptab.h:
9e892c8d 2638 * dosfns.h:
383e0970
J
2639 * font.h:
2640 * fontset.h:
2641 * frame.h:
2642 * gtkutil.h:
2643 * indent.h:
2644 * intervals.h:
2645 * keyboard.h:
2646 * keymap.h:
2647 * lisp.h:
2648 * macros.h:
2649 * md5.h:
2650 * menu.h:
2651 * msdos.h:
2652 * nsterm.h:
2653 * puresize.h:
2654 * region-cache.h:
2655 * syntax.h:
2656 * syssignal.h:
2657 * systime.h:
2658 * termhooks.h:
9e892c8d 2659 * w32font.h:
383e0970
J
2660 * w32term.h:
2661 * widget.h:
2662 * window.h:
2663 * xgselect.h:
2664 * xsettings.h:
2665 * xterm.h: Likewise.
2666
98601119
DN
26672010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2668
d9170db5
DN
2669 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2670
98601119
DN
2671 Cleanup old code.
2672 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2673 * syssignal.h: Remove code for Lynx, not supported anymore.
2674 * vm-limit.c: Remove unused code the depends on emacs not being
2675 defined and NO_LIM_DATA being defined.
2676 * mem-limits.h: Remove dead code.
2677
1f984e12
J
26782010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2679
c49d071a
J
2680 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2681
9d5405ec
J
2682 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2683 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2684
7a18115b
J
2685 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2686 parameters, they are already absolute.
2687
a628ad9d
JB
2688 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2689 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 2690
a628ad9d 2691 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 2692
a628ad9d
JB
2693 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2694 Update FRAME_TOOLBAR_HEIGHT.
581a8100 2695
a628ad9d
JB
2696 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2697 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 2698
c1ef4455
CY
26992010-06-30 Chong Yidong <cyd@stupidchicken.com>
2700
2701 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2702 check default-frame-alist.
2703
ce8f5a9a
AS
27042010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2705
2706 * process.c (create_process): Avoid using invalid file descriptors.
2707
2708 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2709
bf935339
J
27102010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2711
2712 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2713 Improve documentation. Return font regardless of use_system_font.
2714 (syms_of_xsettings): Improve documentation for font-use-system-font.
2715
7c33a057
CY
27162010-07-10 Chong Yidong <cyd@stupidchicken.com>
2717
2ec1b5ee
CY
2718 * xfaces.c (realize_face): Garbage the frame if a face is removed
2719 (Bug#6593).
2720
27212010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2722
2723 * keyboard.c: Remove duplicate <setjmp.h>.
2724 (read_key_sequence): Remove volatile qualifiers.
2725
27262010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2727
2728 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2729 (struct glyph_row): New members left_fringe_offset and
2730 right_fringe_offset.
2731
2732 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2733 specially.
2734 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2735 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2736
2737 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 2738 Take account of bitmap offset.
2ec1b5ee
CY
2739 (draw_window_fringes): Take account of window vscroll.
2740 (update_window_fringes): Likewise. Extend top-aligned top indicator
2741 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2742 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2743 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2744
27452010-07-04 Juanma Barranquero <lekktu@gmail.com>
2746
2747 * w32fns.c (Qtooltip): Declare.
2748 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2749
27502010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2751
2752 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2753 grab on just Press (Bug#6499).
2754
27552010-07-02 Chong Yidong <cyd@stupidchicken.com>
2756
2757 * frame.c (Qtooltip): New var.
2758 (delete_frame): Use it. Fix faulty if statement. Don't update
2759 mode line for tooltip frames. Suggested by Martin Rudalics.
2760
2761 * xfns.c (x_create_tip_frame):
2762 * w32fns.c (x_create_tip_frame): Use it.
2763
27642010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
2765
2766 * xftfont.c (xftfont_open): Check font width one by one also when
2767 spacing is dual.
2768
2769 * ftfont.c (ftfont_open): Ditto.
2770
6259c2ec
GM
27712010-06-30 Glenn Morris <rgm@gnu.org>
2772
a46007e9
GM
2773 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2774
6259c2ec
GM
2775 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2776
2777 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2778 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2779 * s/darwin.h (SYSTEM_MALLOC):
2780 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2781
5d1d3d04
J
27822010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2783
2784 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2785 (ns_get_screen): Don't assign integer to f.
2786 (Fx_display_color_cells): Declarations before statements.
2787
e547b051
J
27882010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2789
5fc8e5bc
J
2790 * xfns.c (x_default_font_parameter): Remove got_from_system
2791 (Bug#6526).
2792
e547b051
J
2793 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2794 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2795 defines based on what configure finds.
2796
2797 * xterm.c (XTflash): Use gtk_widget_get_window.
2798 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2799 gtk_adjustment_get_page_size.
2800 (handle_one_xevent): Use gtk_widget_get_mapped.
2801 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2802 messages.
2803
2804 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2805
2806 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2807 HAVE_GTK_FILE_SELECTION_NEW.
2808
2809 * gtkutil.c (xg_display_open, xg_display_close): Remove
2810 HAVE_GTK_MULTIDISPLAY, it is always defined.
2811 (xg_display_open): Return type is void.
2812 (gtk_widget_set_has_window)
2813 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2814 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2815 (gtk_adjustment_set_page_increment)
2816 (gtk_adjustment_get_step_increment): #define these if not found
2817 by configure.
2818 (remove_submenu): New define based on Gtk+ version.
2819 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2820 gtk_widget_get_window.
2821 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2822 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2823 (create_dialog): Use gtk_dialog_get_action_area and
2824 gtk_dialog_get_content_area.
2825 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2826 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2827 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2828 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2829 g_object_ref and g_object_unref.
2830 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2831 gtk_widget_get_sensitive.
2832 (xg_update_submenu): Use remove_submenu.
2833 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2834 properties instead to get old x and y position.
2835 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2836 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 2837 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
2838 (xg_get_tool_bar_widgets): New function.
2839 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2840 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2841 (toolbar_set_orientation): New #define based on if configure
2842 finds gtk_orientable_set_orientation.
2843 (xg_create_tool_bar): Call toolbar_set_orientation.
2844 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2845 instead of gtk_box_pack_start_defaults.
2846
b9229673
CY
28472010-06-28 Chong Yidong <cyd@stupidchicken.com>
2848
2849 * cmds.c (Fdelete_backward_char): Move into Lisp.
2850
bbc803b0
DN
28512010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2852
2853 * s/freebsd.h (BSD4_2): Remove redundant definition.
2854 bsd-common.h defines it already.
2855
6431f2e6
CY
28562010-06-27 Chong Yidong <cyd@stupidchicken.com>
2857
2858 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2859 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2860 tool-bar-mode, which are now set using these X resources at
2861 startup, to determine the defaults (Bug#2249).
2862
2863 * w32fns.c (Fx_create_frame):
2864 * nsfns.m (Fx_create_frame): Likewise.
2865
2866 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2867
8c079ebb
JB
28682010-06-24 Juanma Barranquero <lekktu@gmail.com>
2869
2870 * gtkutil.c (xg_update_scrollbar_pos):
2871 Avoid C99 mid-block variable declaration.
2872
e9b7ab96
JD
28732010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2874
bc869eca
JD
2875 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2876
2b7e356a 2877 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2878
2879 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2880 if height is less than scroll bar min size.
2881 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2882
e9b7ab96
JD
2883 * xfns.c (x_default_font_parameter): Try to open font from system
2884 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2885
a628ad9d 28862010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2887
2888 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2889
70c4cfbb
EZ
28902010-06-20 Eli Zaretskii <eliz@gnu.org>
2891
2892 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2893 most-positive-fixnum, be extra accurate when scrolling window
2894 start, to avoid missing the cursor line.
2895
ad5a12b5
EZ
28962010-06-19 Eli Zaretskii <eliz@gnu.org>
2897
2898 * xdisp.c (try_scrolling): Compute the limit for searching point
2899 in forward scroll from scroll_max, instead of an arbitrary limit
2900 of 10 screen lines. See
2901 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2902 and
2903 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2904 for details.
2905
2a64315a 29062010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2907
2908 * editfns.c (Fbyte_to_string): Pacify compiler.
2909
288cf4e9
SM
29102010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2911
2912 * lread.c (read1): Phase out old-style backquotes a bit more.
2913
6e6e5760
EZ
29142010-06-12 Eli Zaretskii <eliz@gnu.org>
2915
cbc4fd20
EZ
2916 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2917 bidimirror.h.
2918
2919 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2920
317fbf33
EZ
2921 * bidi.c (bidi_initialize): Remove explicit initialization of
2922 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 2923 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 2924 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
2925
2926 * biditype.h: New file.
2927
cbc4fd20
EZ
2928 * bidimirror.h: New file.
2929
6e6e5760
EZ
2930 * window.c (syms_of_window): Doc fix (bug#6409).
2931
4176cba2
RF
29322010-06-12 Romain Francoise <romain@orebokech.com>
2933
2934 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2935 ediff-hook.
2936
cb4bfcb5
GM
29372010-06-10 Glenn Morris <rgm@gnu.org>
2938
64c60c2f
GM
2939 * editfns.c (Fbyte_to_string): Pacify compiler.
2940
cb4bfcb5
GM
2941 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2942
2ec1b5ee
CY
29432010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2944
2945 * alloc.c (Fmake_byte_code): Don't access undefined argument
2946 (Bug#6517).
2947
29482010-06-25 Chong Yidong <cyd@stupidchicken.com>
2949
2950 * xdisp.c (next_element_from_image): Ensure that after-strings are
2951 read the next time we hit handle_stop (Bug#1336).
2952
29532010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2954
2955 * lread.c (read1): Signal error if #s is not followed by paren.
2956
29572010-06-19 Chong Yidong <cyd@stupidchicken.com>
2958
2959 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2960
2961 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2962
29632010-06-15 Glenn Morris <rgm@gnu.org>
2964
2965 * editfns.c (Fbyte_to_string): Pacify compiler.
2966
e454a4a3
SM
29672010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2968
2969 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2970 Check `object's type before accessing its guts.
2971
c1b1acc2
DN
29722010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2973
2974 * s/usg5-4.h: Fix previous change.
2975 Suggested by Lawrence Mitchell <wence@gmx.li>
2976
657d4c0b
AS
29772010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2978
2979 * minibuf.c (Fall_completions): Add more checks.
2980
9b27fd9f
JB
29812010-06-08 Juanma Barranquero <lekktu@gmail.com>
2982
2983 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2984
a99ebb40
DN
29852010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2986
d7c5d87d
DN
2987 * lread.c (X_OK): Remove, unused.
2988
0263a941
DN
2989 * dispnew.c: Remove obsolete comment.
2990
a99ebb40
DN
2991 Remove INCLUDED_FCNTL.
2992 * xterm.c (INCLUDED_FCNTL):
2993 * callproc.c (INCLUDED_FCNTL):
2994 * alloc.c (INCLUDED_FCNTL):
2995 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2996 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2997
13b5221f
MR
29982010-06-07 Martin Rudalics <rudalics@gmx.at>
2999
3000 * window.c (Fselect_window): Move `record_buffer' up to the
3001 beginning of this function, so the buffer gets recorded
3002 even if the selected window does not change.
3003 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3004
5220357f
JB
30052010-06-07 Juanma Barranquero <lekktu@gmail.com>
3006
3007 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3008 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3009
3085237c
DN
30102010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3011
3012 Remove BSTRING related code, all platforms define it.
3013 * s/usg5-4.h (BSTRING): Remove definition.
3014 * s/template.h (BSTRING):
3015 * s/msdos.h (BSTRING):
3016 * s/ms-w32.h (BSTRING):
3017 * s/hpux10-20.h (BSTRING):
3018 * s/gnu-linux.h (BSTRING):
3019 * s/darwin.h (BSTRING):
3020 * s/cygwin.h (BSTRING):
3021 * s/bsd-common.h (BSTRING):
3022 * s/aix4-2.h (BSTRING): Likewise.
3023 * sysdep.c: Remove code depending on BSTRING not being defined.
3024
409f2919
JB
30252010-06-05 Juanma Barranquero <lekktu@gmail.com>
3026
3027 Remove obsolete macro BASE_LEADING_CODE_P.
3028 * character.h (BASE_LEADING_CODE_P): Remove.
3029 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3030 * buffer.c (Fset_buffer_multibyte):
3031 * indent.c (scan_for_column, compute_motion):
3032 * insdel.c (count_combining_before, count_combining_after):
3033 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3034
087fc47a
JB
30352010-06-04 Juanma Barranquero <lekktu@gmail.com>
3036
3037 Turn `directory-sep-char' into a noop.
3038
3039 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3040 (DIRECTORY_SEP): Define unconditionally.
3041
3042 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3043
3044 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3045 call dostounix_filename directly.
3046
3047 * fileio.c (CORRECT_DIR_SEPS): Remove.
3048 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3049 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3050 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3051 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3052
3053 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3054 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3055
0eb7675e
AS
30562010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3057
a628ad9d
JB
3058 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3059 (Bug#6346)
0eb7675e 3060
78edd3b7
JB
30612010-06-03 Juanma Barranquero <lekktu@gmail.com>
3062
3063 * ccl.c (Fccl_program_p): Fix typo in docstring.
3064
eb697db5
DN
30652010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3066
3067 Move UNEXEC definition to autoconf.
3068 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3069 * s/sol2-10.h (UNEXEC):
3070 * s/irix6-5.h (UNEXEC):
3071 * s/hpux10-20.h (UNEXEC):
3072 * s/gnu-linux.h (UNEXEC):
3073 * s/darwin.h (UNEXEC):
3074 * s/cygwin.h (UNEXEC):
3075 * s/bsd-common.h (UNEXEC):
3076 * s/aix4-2.h (UNEXEC):
3077 * m/alpha.h (UNEXEC): Likewise.
3078 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3079
aa3830c4
JB
30802010-06-03 Juanma Barranquero <lekktu@gmail.com>
3081
3082 Remove obsolete pre-unicode2 macros.
3083 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3084 * composite.c (composition_reseat_it):
3085 * data.c (Faset):
3086 * fns.c (Ffillarray):
3087 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3088 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3089
d234d13e
JL
30902010-06-03 Juri Linkov <juri@jurta.org>
3091
3092 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3093 (Fswitch_to_buffer): Remove unused variable `err'.
3094
0d4bcf4d
GM
30952010-06-03 Glenn Morris <rgm@gnu.org>
3096
e23dc1e2
GM
3097 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3098
05b09564
GM
3099 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3100 now that AH_BOTTOM does it.
3101
824e2978
GM
3102 * m/hp800.h (HAVE_ALLOCA):
3103 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3104
0d4bcf4d
GM
3105 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3106 Remove NOT_C_CODE tests, it is always true now.
3107
c55d2abf
DN
31082010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3109
08a494a3
DN
3110 Fix config.h includes.
3111 * xsettings.c:
3112 * xgselect.c:
3113 * nsterm.m:
3114 * nsselect.m:
3115 * nsimage.m:
3116 * nsfont.m:
3117 * nsfns.m:
3118 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3119 other files do.
3120
75934b1d
DN
3121 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3122
9f32a766
DN
3123 * s/sol2-6.h: Remove obsolete comments.
3124
c55d2abf
DN
3125 Remove unnecessary alloca.h includes.
3126 * keymap.c: Do not include alloca.h, config.h does that.
3127 * sysdep.c: Likewise. Do not define fwrite, not used.
3128
06ac62b4
SM
31292010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3130
3131 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3132 the HAVE_TERMIO where it belongs (bug#6149).
3133
1ab8293c
SM
31342010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3135
3136 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3137 of bug#6305).
3138
6dcfd253
EZ
31392010-05-30 Eli Zaretskii <eliz@gnu.org>
3140
3141 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3142 state is always cached (bug#6306).
3143
6d26bbb2
EZ
31442010-05-29 Eli Zaretskii <eliz@gnu.org>
3145
06fa4a23
EZ
3146 Fix cursor motion in bidi-reordered continued lines.
3147 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3148 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
3149 over continuation lines in bidi-reordered buffers. Return
3150 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3151 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3152
f5783df3
MA
31532010-05-28 Michael Albinus <michael.albinus@gmx.de>
3154
3155 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3156
7d56b2dd
KH
31572010-05-28 Kenichi Handa <handa@m17n.org>
3158
3159 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3160 Don't sheck SPEC if it is nil.
3161 (font_list_entities): Call font_delete_unmatched if
b925d231 3162 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 3163
e58d4ff7
GM
31642010-05-28 Glenn Morris <rgm@gnu.org>
3165
3166 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3167
f1a5d776
CY
31682010-05-27 Chong Yidong <cyd@stupidchicken.com>
3169
3170 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3171 whether to trash.
3172 (internal_delete_file, Frename_file): Callers changed.
3173 (delete_by_moving_to_trash): Doc fix.
3174 (Fdelete_directory_internal): Don't move to trash.
3175
3176 * callproc.c (delete_temp_file):
3177 * buffer.c (Fkill_buffer): Callers changed.
3178
3179 * lisp.h: Update prototype.
3180
f44a59e6
CY
31812010-05-27 Chong Yidong <cyd@stupidchicken.com>
3182
3183 * xdisp.c (redisplay_window): After redisplay, check if point is
3184 still valid before setting it (Bug#6177).
3185
81ac4f35
GM
31862010-05-27 Glenn Morris <rgm@gnu.org>
3187
3188 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3189 Convert comments to Makefile format.
3190
3191 * Makefile.in (bootstrap-clean): No more Makefile.c.
3192
ccd89fb3
GM
31932010-05-26 Glenn Morris <rgm@gnu.org>
3194
90278cb6
GM
3195 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3196 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3197
ccd89fb3
GM
3198 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3199 Remove.
3200 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3201
b7050583
KH
32022010-05-26 Kenichi Handa <handa@m17n.org>
3203
3204 * composite.c (composition_compute_stop_pos): Fix condition for
3205 backward scanning.
3206
e5458003
GM
32072010-05-25 Glenn Morris <rgm@gnu.org>
3208
c345fe90
GM
3209 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3210 Move before TEMACS_LDFLAGS.
3211 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3212 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3213
2e0689ab
GM
3214 * Makefile.in (NOT_C_CODE): No longer define.
3215 (config.h): No longer include.
3216
8009a5e8
GM
3217 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3218 variables it may reference.
3219
e5458003
GM
3220 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3221 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3222
10f72a37
KH
32232010-05-25 Kenichi Handa <handa@m17n.org>
3224
3225 * dispextern.h (struct composition_it): New members rule_idx and
3226 charpos.
3227
3228 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3229 that the character positions of IT point the last character of the
3230 current grapheme cluster.
3231 (next_element_from_composition): Don't change character positions
3232 of IT.
3233 (append_composite_glyph): Set glyph->charpos to
3234 it->cmp_it.charpos.
3235
3236 * composite.c (autocmp_chars): Change the first argument to RULE,
3237 and try composition with RULE only.
3238 (composition_compute_stop_pos): Record the index number of the
3239 composition rule in CMP_IT->rule_idx.
3240 (composition_reseat_it): Call autocmp_chars repeatedly until the
3241 correct rule of the composition is found.
3242 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3243 is at the last character of the current grapheme cluster when
3244 CMP_IT->reversed_p is nonzero.
3245
171eda53 32462010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 3247
171eda53
SM
3248 * editfns.c (Fbyte_to_string): New function.
3249
66a9f7f4
SM
32502010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3251
3252 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3253 Suggested by Masatake YAMATO <yamato@redhat.com>.
3254
d8c315d1
EZ
32552010-05-23 Eli Zaretskii <eliz@gnu.org>
3256
171eda53 3257 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 3258
f5b416d2 32592010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3260
3261 * s/netbsd.h: If terminfo is found, use it in preference to
3262 termcap. (Bug#6190) [Backport from trunk]
3263
0416466c
EZ
32642010-05-19 Eli Zaretskii <eliz@gnu.org>
3265
11117830 3266 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
3267
3268 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3269 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3270 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3271 and maxpos members instead of start.pos and end.pos, respectively.
3272
3273 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3274 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3275 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
3276 (try_window_reusing_current_matrix, try_window_id):
3277 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
3278 (init_from_display_pos, init_iterator): Use EMACS_INT for
3279 character and byte positions.
66a9f7f4 3280 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
3281 arguments for minimum and maximum buffer positions seen by
3282 display_line for this row. Don't use iterator to find the
3283 position following the maximum one; instead, increment the
11117830
EZ
3284 position found by display_line directly. Fix logic; eol_pos
3285 should be tested before the rest. Handle the case of characters
3286 delivered from display vector (bug#6036). Fix tests related to
3287 it->method. Handle the truncated_on_right_p rows.
3288 (RECORD_MAX_MIN_POS): New macro.
3289 (display_line): Use it to record the minimum and maximum buffer
3290 positions for glyphs in the row being assembled. Record the
3291 position of the newline that terminates the line. If word wrap is
3292 in effect, restore minimum and maximum positions seen up to the
3293 wrap point, when iterator returns to it.
3294 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3295 row and cursor not already at point. Restore original pre-bidi
3296 code for unidirectional buffers.
d36fe237
EZ
3297
3298 * dispnew.c (increment_row_positions, check_matrix_invariants):
3299 Increment and check row->start.pos and row->end.pos, in addition
3300 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3301
11117830
EZ
3302 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3303 Display truncated_on_left_p and truncated_on_right_p flags.
3304 Formatting fixes.
3305 (pmtxrows): Display the ordinal number of each row. Don't display
3306 rows beyond the last one.
3307
3308 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3309 it is not copied by bidi_copy_it.
3310
6e83d800
EZ
33112010-05-22 Eli Zaretskii <eliz@gnu.org>
3312
3313 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3314 (Bug#6237)
3315
110683ad
CY
33162010-05-22 Chong Yidong <cyd@stupidchicken.com>
3317
3318 * image.c (Fimage_flush): Rename from image-refresh.
3319
98fe5161
CY
33202010-05-21 Chong Yidong <cyd@stupidchicken.com>
3321
3322 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3323 just one window.
3324
3325 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3326 (clear_image_cache): If the number of cached images is unusually
3327 large, decrease the cache eviction delay (Bug#6230).
3328
e8752c66
GM
33292010-05-21 Glenn Morris <rgm@gnu.org>
3330
66dbf213
GM
3331 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3332 Move these rules to ns.mk.
3333 * ns.mk: New file.
3334
04384b2d
GM
3335 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3336
e8752c66
GM
3337 * Makefile.in (CANNOT_DUMP): New, set by configure.
3338 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3339
2e2bbddb
JL
33402010-05-20 Juri Linkov <juri@jurta.org>
3341
3342 * fileio.c (Fdelete_file): Change interative spec to use
3343 `read-file-name' like in `find-file-read-args' where the default
3344 value is `default-directory' instead of `buffer-file-name'.
3345 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3346
31c4aaf6
KR
33472010-05-20 Kevin Ryde <user42@zip.com.au>
3348
3349 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3350 (Voverriding_terminal_local_map, Vsystem_key_alist)
3351 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3352
9d5cf9b6
GM
33532010-05-20 Glenn Morris <rgm@gnu.org>
3354
3355 * Makefile.in (DEPDIR): New constant.
3356 (DEPFLAGS): Set with configure, not cpp.
3357 (MKDEPDIR): New, set by configure.
3358 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3359 (clean): Use $DEPDIR.
3360 (deps_frag): Include from configure.
3361 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3362 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3363
ead6f8f5
EZ
3364 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3365 reallocation of the cache. (Bug#6210)
3366
7f34aec3
GM
33672010-05-19 Glenn Morris <rgm@gnu.org>
3368
d494e8f2
GM
3369 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3370
c1d0dcfd
GM
3371 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3372 (GNULIB_VAR): Remove.
3373 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3374
3375 * m/ibms390x.h (LINKER):
3376 * m/macppc.h (LINKER) [GNU_LINUX]:
3377 * s/aix4-2.h (ORDINARY_LINK):
3378 * s/cygwin.h (LINKER):
3379 * s/darwin.h (ORDINARY_LINK):
3380 * s/gnu.h (ORDINARY_LINK):
3381 * s/netbsd.h (LINKER):
3382 * s/usg5-4.h (ORDINARY_LINK):
3383 Move to configure.
3384
7f34aec3
GM
3385 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3386
754790b6
CY
33872010-05-18 Chong Yidong <cyd@stupidchicken.com>
3388
3389 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3390 prevent stack overflow if number of arguments is too large
3391 (Bug#6214).
3392
161e44d1
JB
33932010-05-18 Juanma Barranquero <lekktu@gmail.com>
3394
3395 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3396
be4ff9da
GM
33972010-05-18 Glenn Morris <rgm@gnu.org>
3398
9539dc5d
GM
3399 * s/gnu-linux.h: Combine two conditionals.
3400
3401 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
3402 $(POST_ALLOC_OBJ).
3403
40dc6bf4
GM
3404 * Makefile.in (RALLOC_OBJ): New, set by configure.
3405 (rallocobj): Replace with the previous variable.
3406 (otherobj): Use $RALLOC_OBJ.
3407
3408 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3409 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3410
be4ff9da
GM
3411 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3412 (gmallocobj, vmlimitobj): Replace with previous two variables.
3413 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3414
16455a85
GM
34152010-05-17 Glenn Morris <rgm@gnu.org>
3416
3417 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3418 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3419
5fdb7468
GM
34202010-05-16 Glenn Morris <rgm@gnu.org>
3421
7ca1f3f9
GM
3422 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3423
7541dad5
GM
3424 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3425
da53fab9
GM
3426 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3427 trailing "/".
3428
b02a6645
GM
3429 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3430 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3431
8877ca0f
GM
3432 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3433 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3434 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3435 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3436 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3437
5fdb7468
GM
3438 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3439 Remove ${STARTFLAGS}, nothing ever sets it.
3440
95adb4b1
DN
34412010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3442
3443 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3444
676b6304
GM
34452010-05-16 Glenn Morris <rgm@gnu.org>
3446
9beab9ce
GM
3447 * Makefile.in (LIBX_BASE): Always define.
3448
8a95f0e7
GM
3449 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3450
676b6304
GM
3451 * Makefile.in (LIBXT): Always define.
3452
6e546d18
GM
34532010-05-15 Glenn Morris <rgm@gnu.org>
3454
4235ca47 3455 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 3456
6e546d18
GM
3457 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3458 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3459
8c5ff6dd
KR
34602010-05-15 Ken Raeburn <raeburn@raeburn.org>
3461
560bb7ae 3462 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
3463 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3464
8b4eb796
KR
3465 * emacs.c (main): Initialize initial-environment and
3466 process-environment before generating from env, not after.
3467
8c5ff6dd
KR
3468 Handle --version reasonably in CANNOT_DUMP configuration.
3469 * emacs.c (emacs_version, emacs_copyright): New string variables.
3470 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3471 (syms_of_emacs): Defvar them, and initialize them from the C
3472 string variables.
3473 (main): If initialization hasn't been done, print initial version
3474 info from the C strings, instead of starting an interactive session.
3475
dbd3f723
EZ
34762010-05-15 Eli Zaretskii <eliz@gnu.org>
3477
d20e1419
EZ
3478 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3479 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
3480 (bidi_paragraph_init): Remove redundant assertion that we are at
3481 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
3482
3483 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3484 (syms_of_xdisp): Defsubr it.
3485
d36fe237
EZ
3486 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3487
dbd3f723
EZ
3488 * Makefile.in: Fix MSDOS-related comments.
3489
02be533b
GM
34902010-05-15 Glenn Morris <rgm@gnu.org>
3491
1a82cca9
GM
3492 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3493 (really-lwlib, really-oldXMenu): Always define.
3494 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3495
3df7b338
GM
3496 * Makefile.in: Simplify cpp conditional.
3497
2b5f541b
GM
3498 * Makefile.in (${ns_appdir}): Simplify using umask.
3499
02be533b
GM
3500 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3501
4e2db1fe
SM
35022010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3503
3504 * eval.c (specbind): Remove left-over duplicate test.
3505 Disallow let-binding frame-local vars. Add comment.
3506
4b292a22
EZ
35072010-05-14 Eli Zaretskii <eliz@gnu.org>
3508
2fe72643 3509 Make the cache of bidi iterator states dynamically allocated.
1edbd309 3510 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
3511 (bidi_init_it): Call it.
3512 (bidi_cache_iterator_state): Enlarge the cache if needed.
3513
4e2db1fe 3514 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
3515 bidi_get_next_char_visually. All callers changed.
3516
82ebc97b
KH
35172010-05-14 Kenichi Handa <handa@m17n.org>
3518
3519 * dispextern.h (struct composition_it): New member reversed_p.
3520
3521 * composite.c (composition_compute_stop_pos): Search backward if
3522 ENDPOS < CHARPOS.
3523 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3524 Set CMP_IT->reversed_p.
b4b6e17e 3525 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 3526
4e2db1fe
SM
3527 * xdisp.c (set_iterator_to_next):
3528 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
3529 scanning backward. Call composition_compute_stop_pos if scan
3530 direction is changed.
3531 (next_element_from_buffer): Call composition_compute_stop_pos with
3532 negative ENDPOS if we are scanning backward.
3533 (next_element_from_composition): Pay attention to
3534 IT->cmp_it.reversed_p.
3535
0e5d7800
KH
35362010-05-14 Kenichi Handa <handa@m17n.org>
3537
560bb7ae 3538 * font.c (font_range): Return the range for the font found at first.
0e5d7800 3539
cb027b32
GM
35402010-05-14 Glenn Morris <rgm@gnu.org>
3541
177b0288
GM
3542 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3543
fbc00890
GM
3544 * Makefile.in (mktime, X11, register): Move undefs to configure.
3545
f14d1dfd
GM
3546 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3547 (MSDOS_X_OBJ): New variable.
3548 (MSDOS_SUPPORT_REAL): New constant.
3549 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3550 (obj): Use MSDOS_X_OBJ.
3551 (lisp): Use MSDOS_SUPPORT as a variable.
3552
11842bd8
GM
3553 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3554 (GPM_MOUSE_SUPPORT): Now it's a constant.
3555 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3556 not cpp.
3557
489d31a4 3558 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 3559 (ns_appresdir): Remove, unused.
e20f1f07 3560
489d31a4
GM
3561 * Makefile.in (SHELL): Move outside cpp section.
3562
cb027b32
GM
3563 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3564
5a903aa9
GM
35652010-05-13 Glenn Morris <rgm@gnu.org>
3566
3369c79f
GM
3567 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3568 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3569
d5e982a6
GM
3570 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3571 HAVE_WINDOW_SYSTEM must be too.
3572
6192e163
GM
3573 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3574 (lisp): Remove WINNT_SUPPORT.
3575
472c5d6b
GM
3576 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3577 Let configure set these variables (to empty) in this case as well.
3578
0116466b
GM
3579 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3580 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3581
5a903aa9
GM
3582 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3583 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3584 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3585 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3586 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 3587 the values output by configure.
5a903aa9
GM
3588 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3589
1a0d7c06
GM
35902010-05-12 Glenn Morris <rgm@gnu.org>
3591
b5457f14
GM
3592 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3593 (LINKER_WAS_SPECIFIED): Remove.
3594
1a0d7c06
GM
3595 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3596 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3597 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3598 * s/cygwin.h (LIB_GCC):
3599 * s/freebsd.h (LIB_GCC):
3600 * s/gnu-linux.h (LIB_GCC):
3601 * s/msdos.h (LIB_GCC):
3602 * s/netbsd.h (LIB_GCC):
3603 Move to configure.
3604
3ffd4615 36052010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
3606
3607 * ftfont.c: Fix incorrect parentheses of #if condition for
3608 definining M17N_FLT_USE_NEW_FEATURE.
3609
acddf8ae
GM
36102010-05-11 Glenn Morris <rgm@gnu.org>
3611
3612 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3613 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3614
ae5e04fa
EZ
36152010-05-10 Eli Zaretskii <eliz@gnu.org>
3616
3617 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3618 unibyte buffers. See
3619 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3620
7490175b
GM
36212010-05-10 Glenn Morris <rgm@gnu.org>
3622
97efb629
GM
3623 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3624 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3625 (LIBES): Use LIBS_SYSTEM as a variable.
3626 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3627 * s/aix4-2.h (LIBS_SYSTEM):
3628 * s/freebsd.h (LIBS_SYSTEM):
3629 * s/hpux10-20.h (LIBS_SYSTEM):
3630 * s/sol2-6.h (LIBS_SYSTEM):
3631 * s/unixware.h (LIBS_SYSTEM):
3632 Move to configure.
3633
7490175b
GM
3634 * s/aix4-2.h (MAIL_USE_LOCKF):
3635 * s/bsd-common.h (MAIL_USE_FLOCK):
3636 * s/darwin.h (MAIL_USE_FLOCK):
3637 * s/gnu-linux.h (MAIL_USE_FLOCK):
3638 * s/irix6-5.h (MAIL_USE_FLOCK):
3639 * s/template.h (MAIL_USE_FLOCK):
3640 Move to configure.
3641
0235128c 36422010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
3643
3644 * Version 23.2 released.
3645
0235128c 36462010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
3647
3648 * composite.c (autocmp_chars): Save point as marker before calling
3649 auto-composition-function (Bug#5984).
3650
3651 * lisp.h (restore_point_unwind): Add prototype.
3652
3653 * fileio.c (restore_point_unwind): Remove static attribute.
3654
0235128c 36552010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
3656
3657 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3658 new feature of libotf and m17n-flt.
0235128c
SM
3659 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3660 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
3661 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3662 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3663 that OUT is NULL. Use OTF_drive_gsub_with_log and
3664 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3665 OTF_drive_gpos.
3666 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
3667 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3668 Setup mflt_enable_new_feature and mflt_try_otf.
3669
4721152c
J
36702010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3671
3672 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3673
3674 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3675 box and toolbar (Bug #6139).
3676 (xg_create_tool_bar): Remove comment (Bug #6139).
3677 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3678 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3679
ee0a16cf
JB
36802010-05-08 Juanma Barranquero <lekktu@gmail.com>
3681
3682 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3683 Update dependencies.
3684
96d79611
EZ
36852010-05-08 Eli Zaretskii <eliz@gnu.org>
3686
3687 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3688 R2L lines.
3689
40c17879
GM
36902010-05-08 Glenn Morris <rgm@gnu.org>
3691
7b42b29f
GM
3692 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3693
40c17879
GM
3694 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3695 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3696 (termcapobj): Replace with TERMCAP_OBJ.
3697 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3698 (LIBES): Use LIBS_TERMCAP as a variable.
3699
3700 * s/freebsd.h (osreldate.h): No longer include, since this file
3701 does not use __FreeBSD_version any more.
3702
3703 * s/aix4-2.h (TERMINFO):
3704 * s/cygwin.h (TERMINFO):
3705 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3706 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3707 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3708 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3709 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3710 * s/irix6-5.h (TERMINFO):
3711 * s/netbsd.h (LIBS_TERMCAP):
3712 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3713 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3714 * s/usg5-4.h (TERMINFO):
3715 Move to configure.
3716
94b612ad
SM
37172010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3718
3719 * eval.c (unbind_to): Don't unbind a local binding into the global
3720 binding when the local binding disappeared. Inversely, don't unbind
3721 a global binding into a newly created local binding.
3722 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3723 can specify the frame to use, when applicable. Adjust callers.
3724
15e12598 37252010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 3726 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
3727
3728 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3729
f724825e
EZ
37302010-05-07 Eli Zaretskii <eliz@gnu.org>
3731
5cba3209
EZ
3732 * w32fns.c: Include w32.h.
3733 (Fw32_shell_execute): Decode the error message before passing it
3734 to `error'. (Bug#6126)
3735
d16bdfc3
EZ
3736 * msdos.c (dos_set_window_size):
3737 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3738 instead of `XSYMBOL (foo)->value'.
3739
59d93e87
EZ
37402010-05-07 Eli Zaretskii <eliz@gnu.org>
3741
9fdec8bc
EZ
3742 Fix the MS-DOS build, broken by autoconfiscation.
3743
3744 * Makefile.in: Don't use Make-style comments past the "start of
3745 cpp stuff" line.
3746 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3747
3748 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3749 edited directly by msdos/sed1v2.inp).
f724825e 3750
2f86b22b
GM
37512010-05-07 Glenn Morris <rgm@gnu.org>
3752
3753 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3754 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3755 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3756 move out of cpp section.
3757 * s/freebsd.h (LD_SWITCH_SYSTEM):
3758 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3759 * s/netbsd.h (LD_SWITCH_SYSTEM):
3760 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3761
49ebbd65
DN
37622010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3763
3764 Define LIB_STANDARD and START_FILES using autoconf.
3765 * s/usg5-4.h (LIB_STANDARD):
3766 * s/netbsd.h (START_FILES):
3767 * s/irix6-5.h (LIB_STANDARD):
3768 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3769 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3770 * s/freebsd.h (START_FILES):
3771 * s/darwin.h (START_FILES):
3772 * s/cygwin.h (START_FILES):
3773 * s/aix4-2.h (LIB_STANDARD):
3774 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3775 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3776 autoconf, not cpp.
3777
d43c06d6
DN
37782010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3779
28823648
DN
3780 Remove NEED_BSDTTY and NEED_UNISTD_H.
3781 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3782 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3783 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3784 <sys/ptyio.h> and <unistd.h>.
3785
aca00430
DN
3786 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3787
d43c06d6
DN
3788 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3789 * s/gnu.h (START_FILES): Remove empty definition.
3790
3e56b11d
JD
37912010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3792
3793 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3794
e3cf0cde
GM
37952010-05-06 Glenn Morris <rgm@gnu.org>
3796
3797 * Makefile.in (CPP, LN_S): Remove unused variables.
3798
774b9a60
SM
37992010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3800
3801 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3802
4ab92842
LM
38032010-05-05 Lawrence Mitchell <wence@gmx.li>
3804
3805 * m/sparc.h: Fix typo in earlier change.
3806
178f2507
SM
38072010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3808
3809 Misc tweaks.
3810 * eval.c (Fdefvaralias): Remove unintended nested if.
3811 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3812
80f00217 38132010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
3814
3815 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3816
ef03a4e6
DN
38172010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3818
58eb6cf0
DN
3819 Remove BSD_PGRPS.
3820 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3821 * s/gnu-linux.h (BSD_PGRPS): Remove.
3822 * term.c (dissociate_if_controlling_tty):
3823 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3824 (init_sys_modes, reset_sys_modes):
3825 * emacs.c (main):
3826 * callproc.c (Fcall_process, child_setup): Remove code depending
3827 on BSD_PGRPS.
3828
ef03a4e6
DN
3829 Remove POSIX_SIGNALS.
3830 * s/usg5-4.h (POSIX_SIGNALS):
3831 * s/netbsd.h (POSIX_SIGNALS):
3832 * s/msdos.h (POSIX_SIGNALS):
3833 * s/ms-w32.h (POSIX_SIGNALS):
3834 * s/hpux11.h (POSIX_SIGNALS):
3835 * s/gnu.h (POSIX_SIGNALS):
3836 * s/gnu-linux.h (POSIX_SIGNALS):
3837 * s/freebsd.h (POSIX_SIGNALS):
3838 * s/darwin.h (POSIX_SIGNALS):
3839 * s/cygwin.h (POSIX_SIGNALS):
3840 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3841 * s/unixware.h:
3842 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3843 * process.c (create_process):
3844 * syssignal.h:
3845 * sysdep.c (wait_for_termination, init_signals):
3846 * process.c (create_process):
3847 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3848 remove all code that assumes the contrary.
3849
49628785
GM
38502010-05-04 Glenn Morris <rgm@gnu.org>
3851
27a2cdfc
GM
3852 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3853 variable.
3854 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3855 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3856 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3857 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3858 LD_SWITCH_SYSTEM_tmp.
3859 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3860 New variables, set by configure.
3861
eb21eab5
GM
3862 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3863 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3864 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3865 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3866 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3867
49628785
GM
3868 * s/aix4-2.h (C_SWITCH_SYSTEM):
3869 * m/alpha.h (C_SWITCH_MACHINE):
3870 Move to configure.in.
3871 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3872 New variables, set by configure.
3873 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3874 $c_switch_machine and $c_switch_system.
3875
7dff330b
DN
38762010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3877
3878 * s/hpux10-20.h (LIB_STANDARD): New definition.
3879 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3880 on it, not used anymore.
3881
53967e09
CY
38822010-05-03 Chong Yidong <cyd@stupidchicken.com>
3883
3884 * eval.c (internal_condition_case_n): Rename from
3885 internal_condition_case_2.
3886 (internal_condition_case_2): New function.
3887
3888 * xdisp.c (safe_call): Use internal_condition_case_n.
3889
3890 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3891 (internal_delete_file, Frename_file): Callers changed.
3892
3893 * buffer.c (Fkill_buffer):
3894 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3895
3896 * lisp.h: Update prototypes.
3897
3dee6fdb
GM
38982010-05-03 Glenn Morris <rgm@gnu.org>
3899
3900 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3901 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3902 (LIBXT): Set with configure, not cpp.
3903 (LIBX): Remove.
3904 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3905
a101e0fb
DN
39062010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3907
3908 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3909 The FreeBSD is not needed, the default works, Solaris version is
3910 not needed, and the remaining case is not supported by configure.
3911
f63d0028
JD
39122010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3913
3914 * xsmfns.c (CHDIR_OPT): New define.
3915 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3916 restarting emacs.
3917
3918 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3919 shut_down_emacs.
3920
3921 * emacs.c (USAGE1): Mention --chdir.
3922 (main): Handle --chdir.
3923 (standard_args): Add --chdir.
3924 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3925 #5552).
3926
e4814a9f
DN
39272010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3928
cd03c74a
DN
3929 Remove LD_SWITCH_MACHINE.
3930 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3931 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3932
c3a398a1
DN
3933 Clean up IRIX code.
3934 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3935 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3936
87e7285c
DN
3937 Clean up AIX code.
3938 * m/ibmrs6000.inp: Remove file, unused.
3939 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3940 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3941 definition ...
3942 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3943
80f00217
JB
3944 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3945 unused.
e4814a9f 3946
59ca28de
EZ
39472010-05-01 Eli Zaretskii <eliz@gnu.org>
3948
197daef4
EZ
3949 Emulate POSIX_SIGNALS on MS-Windows.
3950
3951 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3952 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
3953
3954 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3955 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3956 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3957
80f00217
JB
3958 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3959 New stubs.
197daef4 3960
af7c7572
EZ
3961 Miscellaneous fixes of bidi display.
3962
59ca28de
EZ
3963 * xdisp.c (find_row_end): New function, refactored from display_line.
3964 (display_line): Use it.
017ea819
EZ
3965 (extend_face_to_end_of_line): In almost-filled rows, extend only
3966 if the row is R2L and not continued.
166e930d 3967 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 3968 Preserve overlay and string info in row->end.
166e930d
EZ
3969 (insert_left_trunc_glyphs): Support addition of left truncation
3970 glyphs to R2L rows.
b47e0dcf 3971 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
3972 glyph between adjacent windows. Fix a crash when a display string
3973 is continued to the next line. Don't return zero if cursor was
3974 found by `cursor' property of a display string.
b47e0dcf
EZ
3975 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3976 test for that explicitly.
59ca28de 3977
7acac9f4
GM
39782010-05-01 Glenn Morris <rgm@gnu.org>
3979
3980 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3981 for clarity.
3982 (OTHER_OBJ): Remove.
3983 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3984 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3985
45841e65
KK
39862010-05-01 Karel Klíč <kklic@redhat.com>
3987
3988 * fileio.c (Ffile_selinux_context): Context functions may return null.
3989
afc61943
DN
39902010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3991
80f00217 3992 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 3993
5a1bb006
GM
39942010-04-30 Glenn Morris <rgm@gnu.org>
3995
3996 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3997 (OTHER_OBJ): Define as a separate variable, for clarity.
3998
210af043
J
39992010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4000
4001 * xsettings.c: include limits.h and update file comment.
4002
0a7df391
GM
40032010-04-30 Glenn Morris <rgm@gnu.org>
4004
d5096f16
GM
4005 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4006 Set with configure, not cpp.
4007 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4008
7eb1ac33
GM
4009 * Makefile.in (mallocobj): Remove.
4010 (otherobj): Simplify using @OTHER_OBJ@.
4011
517d086b
GM
4012 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4013 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4014 Don't bother making nsgui.h dependency platform-specific.
4015
0a7df391
GM
4016 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4017
d6d23852
SM
40182010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4019
d2630aef
SM
4020 * process.c (read_process_output, exec_sentinel): Don't burp if the
4021 sentinel/filter kills the current buffer (bug#6060).
4022
f9dddf52 4023 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
4024 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4025 Remove unused var `args'.
4026 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4027 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4028 * doc.c (store_function_docstring): Use XSETCAR.
4029
f1e3642a
GM
40302010-04-28 Glenn Morris <rgm@gnu.org>
4031
faf535f8
GM
4032 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4033 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4034
c40f9449
GM
4035 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4036
658f86ca
GM
4037 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4038 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4039
bc0b5f61
GM
4040 * Makefile.in (FONT_OBJ): New, set by configure.
4041 (FONT_DRIVERS): Use $FONT_OBJ.
4042
294c50a0
GM
4043 * Makefile.in (LIBXMU): Set with configure, not cpp.
4044 * s/aix4-2.h (LIBXMU):
4045 * s/hpux10-20.h (LIBXMU):
4046 Remove definition, now set in configure.
4047
e6ec4e99
GM
4048 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4049
f1e3642a
GM
4050 * m/amdx86-64.h [i386]: Move this test to configure.in.
4051
c6ea2936
GM
40522010-04-27 Glenn Morris <rgm@gnu.org>
4053
8fdac2c3
GM
4054 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4055 * s/unixware.h (NEED_LIBW): Remove definition.
4056
986fb647
GM
4057 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4058 (TOOLKIT_LIBW): New, set by configure.
4059 (@X_TOOLKIT_TYPE@): No longer define it.
4060
c6ea2936
GM
4061 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4062 (MOTIF_LIBW): Set with configure, not cpp.
4063 * s/aix4-2.h (LIB_MOTIF):
4064 * s/gnu-linux.h (LIB_MOTIF):
4065 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4066
aaa36002
DN
40672010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4068
4069 Reduce CPP usage.
4070 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4071 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
4072 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4073 definitions and undefs. Inline definitions in the only user.
4074 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 4075
b678dd8b
GM
40762010-04-27 Glenn Morris <rgm@gnu.org>
4077
76cda504
GM
4078 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4079 since the defaults (set by the system file) are fine in most cases.
4080 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4081 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4082 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4083 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4084 Remove definitions, since they are set correctly in s/gnu-linux.h.
4085 * s/freebsd.h (START_FILES, LIB_STANDARD):
4086 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4087 * s/hpux10-20.h (START_FILES):
4088 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4089 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4090
b678dd8b
GM
4091 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4092 (MOTIF_LIBW): Use $LIBXP.
4093 (otherobj): Use $WIDGET_OBJ.
4094
9452ded1
DN
40952010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4096
7e10844c
DN
4097 * Makefile.in (LIBS_MACHINE): Remove, unused.
4098
9452ded1
DN
4099 Use autoconf instead of cpp for LIB_MATH.
4100 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4101 * s/cygwin.h (LIB_MATH): Likewise.
4102 * Makefile.in (LIB_MATH): Do not define with cpp.
4103 (LIBES): Use autoconf for LIB_MATH.
4104
fcebfc6a
KH
41052010-04-26 Kenichi Handa <handa@m17n.org>
4106
4107 * composite.c (Ffind_composition_internal): Fix the return value
4108 for an automatic composition.
4109
39e2ad1b
DN
41102010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4111
4112 Remove all NO_ARG_ARRAY uses.
4113 * fns.c (concat2, concat3, nconc2):
4114 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4115 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4116 * m/xtensa.h (NO_ARG_ARRAY):
4117 * m/template.h (NO_ARG_ARRAY):
4118 * m/sparc.h (NO_ARG_ARRAY):
4119 * m/sh3.h (NO_ARG_ARRAY):
4120 * m/mips.h (NO_ARG_ARRAY):
4121 * m/macppc.h (NO_ARG_ARRAY):
4122 * m/iris4d.h (NO_ARG_ARRAY):
4123 * m/intel386.h (NO_ARG_ARRAY):
4124 * m/ibms390x.h (NO_ARG_ARRAY):
4125 * m/ibms390.h (NO_ARG_ARRAY):
4126 * m/ibmrs6000.h (NO_ARG_ARRAY):
4127 * m/ia64.h (NO_ARG_ARRAY):
4128 * m/hp800.h (NO_ARG_ARRAY):
4129 * m/arm.h (NO_ARG_ARRAY):
4130 * m/amdx86-64.h (NO_ARG_ARRAY):
4131 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4132
adf4f59c
EZ
41332010-04-25 Eli Zaretskii <eliz@gnu.org>
4134
6bdf5d65
EZ
4135 * xdisp.c (display_line): Don't assume 2nd call to
4136 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
4137 (iterate_out_of_display_property): New function, body from pop_it.
4138 (pop_it): Use it.
adf4f59c 4139
dfbbda83
GM
41402010-04-24 Glenn Morris <rgm@gnu.org>
4141
4142 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4143 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4144 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4145 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4146
2d4018aa
EZ
41472010-04-24 Eli Zaretskii <eliz@gnu.org>
4148
a49884a6
EZ
4149 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4150 use `get_next_display_element' and `set_iterator_to_next' to
4151 advance to the next character, when looking for the character that
4152 begins the next row.
4153
76db6fcc 4154 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
4155 definition of "struct Lisp_Symbol".
4156
70eab5c1
GM
41572010-04-24 Glenn Morris <rgm@gnu.org>
4158
4159 * Makefile.in (CRT_DIR): New variable, set by configure.
4160 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4161 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4162
1ad4cc3d
DN
41632010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4164
e769f484
DN
4165 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4166
4196ff33
DN
4167 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4168
879b0ee4
DN
4169 Remove redundant flags.
4170 * s/freebsd.h (C_SWITCH_SYSTEM):
4171 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4172 * s/netbsd.h (C_SWITCH_SYSTEM):
4173 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4174 of these.
4175
03cbbcb8
DN
4176 Simplify m/intel386.h.
4177 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4178 user: ecrt0.c.
4179 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4180 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4181 the only user: s/unixware.h.
4182 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4183 from m/intel386.h.
4184 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4185 moved here from m/intel386.h.
4186
1ad4cc3d
DN
4187 * m/mips.h: Remove #if 0 code.
4188
8785b888
EZ
41892010-04-23 Eli Zaretskii <eliz@gnu.org>
4190
728588cc
EZ
4191 Fix display of composed characters from L2R scripts in bidi buffers.
4192 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4193 After advancing IT past the composition, resync the bidi iterator
4194 with IT's position. (Bug#5977)
4195
a63f80b4
DN
41962010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4197
4198 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4199 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4200
ff5dec5c
SM
42012010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4202
4203 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4204
8785b888
EZ
42052010-04-23 Eli Zaretskii <eliz@gnu.org>
4206
58ccf243 4207 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
4208 * xdisp.c (pop_it): When the stack is popped after displaying
4209 from a string, bidi-iterate to exit from the text portion covered
4210 by the `display' property or overlay. (Bug#5988, bug#5920)
4211
feeb1604
DN
42122010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4213
8e324eb6
DN
4214 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4215 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4216
809fcaba
DN
4217 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4218 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4219
ed710380
DN
4220 Simplify STARTFILES definition.
4221 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4222 relying on Makefile.in to define it.
4223 * s/cygwin.h (START_FILES): Likewise.
4224 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4225
feeb1604
DN
4226 Clean up Solaris code.
4227 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4228 (LIB_MOTIF): Remove, configure takes care of this.
4229 (NOT_USING_MOTIF): Remove, unused.
4230 * xrdb.c: Remove #if 0-ed #include.
4231 (SYSV): Remove conditional for old SysV.
4232 * sysdep.c (closedir): Remove conditional code for Solaris,
4233 Solaris has closedir.
4234
a0d0b563
JD
42352010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4236
4237 * xsettings.c (read_and_apply_settings): Check if current_font is
4238 NULL before strcmp (Bug#6001).
4239
56bae7c7
DN
42402010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4241
4242 Clean up HP-UX files.
4243 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4244 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4245 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4246 * s/hpux10-20.h: ... to the only user, here.
4247
372b7a95
EZ
42482010-04-21 Eli Zaretskii <eliz@gnu.org>
4249
4250 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4251 use buffer-local values of paragraph-start and paragraph-separate.
4252 <paragraph_start_re, paragraph_separate_re>: Rename from
4253 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4254 (Bug#5992)
4255
f904c0f9
JD
42562010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4257
4258 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4259 current_tool_bar_style are new.
4260 (store_config_changed_event): Rename from store_font_changed_event.
4261 (XSETTINGS_TOOL_BAR_STYLE): New define.
4262 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4263 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4264 HAVE_XFT.
4265 (something_changedCB): store_font_changed_event is now
c4cc8b9a 4266 store_config_changed_event.
f904c0f9
JD
4267 (parse_settings): Rename from parse_xft_settings. Read
4268 non-xft xsettings outside #ifdef HAVE_XFT.
4269 (read_settings): Renamed from read_xft_settings.
4270 (apply_xft_settings): Take current settings as parameter. Do not
4271 call read_(xft)_settings.
4272 (read_and_apply_settings): New function.
4273 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4274 read_and_apply_settings if there are settings to be read.
4275 (init_xsettings): Renamed from init_xfd_settings.
4276 Call read_and_apply_settings unconditionally.
4277 (xsettings_initialize): Call init_xsettings.
4278 (Ftool_bar_get_system_style): New function.
4279 (syms_of_xsettings): Define Qmonospace_font_name and
4280 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 4281 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 4282 dynamic-setting.
31a01b90 4283 Move misplaced HAVE_GCONF
f904c0f9
JD
4284
4285 * xsettings.h (Ftool_bar_get_system_style): Declare.
4286
4287 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4288 Qtext, Qboth, Qboth_horiz are new.
4289 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4290 Vtool_bar_style, tool_bar_max_label_size.
4291
4292 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4293
4294 * keyboard.c: QClabel is new.
4295 (parse_tool_bar_item): Take out QClabel from tool bar items.
4296 Try to construct a label if ther is no QClabel.
4297 (syms_of_keyboard): Intern :label as QClabel.
4298
4299 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4300 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4301 New.
4302
4303 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4304 dynamic-setting.el.
4305
4306 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4307 (xg_make_tool_item, xg_show_toolbar_item): New function.
4308 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4309 Call xg_make_tool_item to make a tool bar item.
4310 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4311
4312 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4313 into account for toolbars.
4314
c632dfda
JD
43152010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4316
4317 * data.c (make_blv): Declarations before code (Bug#5993).
4318
10efe302
GM
43192010-04-21 Glenn Morris <rgm@gnu.org>
4320
4321 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4322 Define using autoconf, not cpp.
4323 (LIBXSM): New variable, set by autoconf.
4324 (LIBXT): Use $LIBXSM.
4325
4285ac5a
DN
43262010-04-21 Dan Nicolaescu <local_user@dannlt>
4327
3ec759e7
DN
4328 Remove NOMULTIPLEJOBS, unused.
4329 * s/template.h (NOMULTIPLEJOBS):
4330 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4331
4285ac5a
DN
4332 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4333 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4334 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4335 detects -znocombreloc and passes it to the linker
4336 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4337
2807228d
GM
43382010-04-21 Glenn Morris <rgm@gnu.org>
4339
4340 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4341
574c05e2
KK
43422010-04-21 Karel Klíč <kklic@redhat.com>
4343
4344 * Makefile.in (LIBSELINUX_LIBS): New.
4345 (LIBES): Add $LIBSELINUX_LIBS.
4346 * eval.c, lisp.h (call7): New function.
4347 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4348 (Ffile_selinux_context, Fset_file_selinux_context):
4349 New functions.
4350 (Fcopy_file): New parameter preserve-selinux-context.
4351 (Frename_file): Preserve selinux context when renaming by copy-file.
4352
91eac4bb 43532010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 4354 Eli Zaretskii <eliz@gnu.org>
91eac4bb 4355
50426a04
JB
4356 Don't depend on cm.c or termcap.c on Windows, use stubs.
4357 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4358 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4359 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4360 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4361 (sys_tputs, sys_tgetstr): New stubs.
4362 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4363 (tputs, tgetstr): New; define to sys_*.
91eac4bb 4364
938efb77
JB
43652010-04-20 Juanma Barranquero <lekktu@gmail.com>
4366
4367 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4368
b4bf28b7
SM
43692010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4370
8b1e1112
SM
4371 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4372 Just signal a warning rather than an error when inside a let.
4373 (Fmake_variable_frame_local): Add the same test.
4374
933ac235
SM
4375 * font.c (syms_of_font): Make the style table vars read-only.
4376
b4bf28b7
SM
4377 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4378 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4379
4380 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4381
93d68d0c
EZ
43822010-04-20 Eli Zaretskii <eliz@gnu.org>
4383
4384 Fix R2L paragraph display on TTY.
4385
4386 * xdisp.c (unproduce_glyphs): New function.
4387 (display_line): Use it when produced glyphs are discarded from R2L
4388 glyph rows.
4389 (append_composite_glyph): In R2L rows, prepend the glyph rather
4390 than appending it.
4391
4392 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4393 rather than append it. Set up the resolved_level and bidi_type
4394 attributes of the appended glyph.
283ccc18
EZ
4395 (produce_special_glyphs): Mirror the backslash continuation
4396 character in R2L lines.
93d68d0c 4397
283ccc18 4398 Implement display of R2L paragraphs in GUI sessions.
26cdf528 4399
283ccc18
EZ
4400 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4401 append_stretch_glyph.
4402 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4403 off-by-one error in computing x at end of text in the row.
4404 (append_stretch_glyph): In reversed row, prepend the glyph rather
4405 than append it. Set resolved_level and bidi_type of the glyph.
4406 (extend_face_to_end_of_line): If the row is reversed, prepend a
4407 stretch glyph whose width is such that the rightmost glyph will be
4408 drawn at the right margin of the window. Fix off-by-one error on
4409 TTY frames in testing whether a line needs face extension. Fix
4410 face extension at ZV. If this is the last glyph row, use
4411 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4412 region face.
4413 (set_cursor_from_row, display_line): Use
26cdf528
EZ
4414 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4415 row->continuation_lines_width.
283ccc18
EZ
4416 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4417 are at ZV. Fixes a crash when reseated to ZV by
4418 try_window_reusing_current_matrix.
45903529
EZ
4419 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4420 which happens with R2L glyph rows. Fixes a crash when inserting a
4421 character at end of an R2L line.
283ccc18
EZ
4422 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4423 treat them as having zero-width characters. Improve comments.
4424 Don't reverse pos_before and pos_after for reversed glyph rows.
4425 Set cursor.x to negative value when the cursor might be on the
4426 left fringe.
4427 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4428 left fringe, not the right one.
f951a506
EZ
4429 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4430 (erase_phys_cursor): For reversed cursor_row, support cursor on
4431 the left fringe.
4432
283ccc18
EZ
4433 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4434 of continuation indicators on the fringes.
4435 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4436 left fringe.
4437
f951a506
EZ
4438 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4439 draw cursor on the left fringe.
4440
4441 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4442 cursor on the left fringe.
4443
f951a506
EZ
4444 * dispnew.c (update_text_area): Handle reversed desired rows when
4445 the cursor is on the left fringe.
4446 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4447 below, not by 0, for when the cursor is on the left fringe.
4448
3bb49aaf
JD
44492010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4450
4451 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4452 widget is a scrollbar.
4453
c0be27fd
KH
44542010-04-20 Kenichi Handa <handa@m17n.org>
4455
4456 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4457 only when the arg CHARSET_LIST is nil.
4458
ce5b453a
SM
44592010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4460
4461 Make variable forwarding explicit rather the using special values.
4462 Basically, this makes the structure of buffer-local values and object
4463 forwarding explicit in the type of Lisp_Symbols rather than use
4464 special Lisp_Objects for that. This tends to lead to slightly more
4465 verbose code, but is more C-like, simpler, and makes it easier to make
4466 sure we handled all cases, among other things by letting the compiler
4467 help us check it.
4468 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4469 Removing forwarding objects.
4470 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4471 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4472 explicit rather than hiding them inside Lisp_Object "values".
4473 (XFWDTYPE): New macro.
4474 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4475 (XBUFFER_LOCAL_VALUE): Remove.
4476 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4477 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4478 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4479 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4480 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4481 Remove the Lisp_Misc_* header.
4482 (struct Lisp_Buffer_Local_Value): Redefine.
4483 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4484 (struct Lisp_Misc_Any): Add filler to get the right size.
4485 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4486 Lisp_Intfwd.
4487 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4488 (DEFVAR_KBOARD): Allocate a forwarding object.
4489 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4490 (let_shadows_global_binding_p): New function.
4491 (union Lisp_Val_Fwd): New type.
4492 (make_blv): New function.
4493 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4494 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4495 (swap_in_symval_forwarding, find_symbol_value, Fset)
4496 (let_shadows_buffer_binding_p, set_internal, default_value)
4497 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4498 (Fkill_local_variable, Fmake_variable_frame_local)
4499 (Flocal_variable_p, Flocal_variable_if_set_p)
4500 (Fvariable_binding_locus):
4501 * xdisp.c (select_frame_for_redisplay):
4502 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4503 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4504 * frame.c (store_frame_param):
4505 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4506 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4507 value structure.
4508 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4509 (clone_per_buffer_values): Only adjust markers into the current buffer.
4510 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4511 (Fbuffer_local_value, set_buffer_internal_1)
4512 (swap_out_buffer_local_variables):
4513 Adapt to the new symbol value structure.
4514 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4515 (defvar_per_buffer): Take a new arg for the fwd object.
4516 (buffer_lisp_local_variables): Return a proper alist (different fix
4517 for bug#4138).
4518 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4519 (Fgarbage_collect): Don't handle buffer_defaults specially.
4520 (mark_object): Handle new symbol value structure rather than the old
4521 special Lisp_Misc_* objects.
4522 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4523 * term.c (set_tty_color_mode):
4524 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4525 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4526 a buffer_local_flags.
4527 * print.c (print_object): Get rid of impossible forwarding objects.
4528
fd3998ff
EZ
45292010-04-19 Eli Zaretskii <eliz@gnu.org>
4530
4531 * bidi.c (bidi_get_type, bidi_get_category)
4532 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
4533 (bidi_type_of_next_char, bidi_level_of_next_char):
4534 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 4535
e42cd1a7
JB
45362010-04-19 Juanma Barranquero <lekktu@gmail.com>
4537
4538 * dired.c (Ffile_attributes): Fix typo in docstring.
4539
6e104790 45402010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
4541
4542 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4543 NSInteger (Bug#5811).
4544
6e104790 45452010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
4546
4547 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4548 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4549
6e104790 45502010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
4551
4552 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4553
6e104790
SM
45542010-04-19 Chong Yidong <cyd@stupidchicken.com>
4555
4556 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4557 terminal frames (Bug#5837).
4558
37dcfea0
EZ
45592010-04-19 Eli Zaretskii <eliz@gnu.org>
4560
d1da276f
EZ
4561 * .gdbinit (xsubchartable): New command.
4562
37dcfea0
EZ
45632010-04-19 Eli Zaretskii <eliz@gnu.org>
4564
4565 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 4566 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
4567 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4568 and
4569 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4570
e9515805
SM
45712010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4572
4573 * alloc.c (Fpurecopy): Hash-cons if requested.
4574 (syms_of_alloc): Update purify-flag docstring.
4575
22aa44a8
JD
45762010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4577
4578 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4579 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4580
ebb5722e
EZ
45812010-04-17 Eli Zaretskii <eliz@gnu.org>
4582
4583 Fix a crash when an NSM character is inserted at BEGV.
4584
4585 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4586 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4587 NEUTRAL_B or UNKNOWN_BT.
4588
0f4442ef
EZ
45892010-04-16 Eli Zaretskii <eliz@gnu.org>
4590
4591 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4592 other rows with cursor unless they are different from this row and
4593 this row is part of a continued line. (Bug#5943)
4594
7d4e45f8
DN
45952010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4596
4597 * s/freebsd.h: Restore osreldate.h include.
4598 Suggested by Naohiro Aota.
4599
5ba5ec85
J
46002010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4601
4602 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4603
20af301d
CY
46042010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4605
4606 * s/cygwin.h: Avoid linking against static libgcc.
4607
a4b000fb
JL
46082010-04-15 Juri Linkov <juri@jurta.org>
4609
4610 * window.c: Add Qscroll_command.
4611 Remove Vscroll_preserve_screen_position_commands.
4612 (window_scroll_pixel_based, window_scroll_line_based): Check the
4613 `scroll-command' property on the last command instead of searching
4614 the last command in Vscroll_preserve_screen_position_commands.
4615 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4616 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4617 (scroll-preserve-screen-position): Doc fix.
4618 (Vscroll_preserve_screen_position_commands): Remove variable.
4619
bc319ba4
DN
46202010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4621
6bb24457
DN
4622 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4623
19d4c244
DN
46242010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4625
4626 Reduce cpp use in Makefile.in.
4627 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4628 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4629 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4630 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4631 (CRT0_COMPILE): Remove, inline it in the only user.
4632
32129746
JL
46332010-04-14 Juri Linkov <juri@jurta.org>
4634
4635 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4636 `scroll-up-command' and `M-v' from `scroll-down' to
4637 `scroll-down-command'.
4638
9013a7f8
JL
46392010-04-14 Juri Linkov <juri@jurta.org>
4640
4641 * window.c (Vscroll_preserve_screen_position_commands): New variable
4642 with the default value as the list of Qscroll_down and Qscroll_up.
4643 (window_scroll_pixel_based, window_scroll_line_based): Search the
4644 last command in the list Vscroll_preserve_screen_position_commands
4645 instead of comparing with Qscroll_up and Qscroll_down.
4646
4bef8d26
JD
46472010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4648
92848133
JD
4649 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4650 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4651 does that.
4652
4bef8d26
JD
4653 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4654 to zero.
4655
58b963f7
SM
46562010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4657
84164a0d
SM
4658 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4659
2b0a91e7
SM
4660 Try to solve the problem of spurious EOF chars in long lines of text
4661 sent to interactive subprocesses.
4662 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4663 (system_process_attributes): Remove unused var `ttotal'.
4664 * process.c (send_process): Don't bother breaking long line with EOF
4665 chars when talking to ttys any more.
4666 (wait_reading_process_output): Output a warning when called in such
4667 a way that it could block without being interruptible.
4668
58b963f7
SM
4669 Try to detect file modification within the same second.
4670 * buffer.h (struct buffer): New field modtime_size.
4671 * buffer.c (reset_buffer): Initialize it.
4672 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4673 (Fverify_visited_file_modtime): Check it.
4674 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4675 (Fset_visited_file_modtime): Set (or clear) it.
4676
01f5787b
SM
46772010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4678
4679 * process.c (status_notify): Remove unused var `ro'.
4680
83725342
JD
46812010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4682
4683 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4684 more than one visual (Bug#5938).
4685
b9465836
DN
46862010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4687
50426a04
JB
4688 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4689 Undefine.
b9465836 4690
8d9c8ece
DN
46912010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4692
b1f52161
DN
4693 Remove C_SWITCH_SYSTEM_TEMACS.
4694 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4695 (malloc, realloc, free): Use emacs, not temacs for conditional
4696 definition.
4697
4698 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4699 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4700
8d9c8ece
DN
4701 Use autoconf, not cpp for some variables.
4702 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4703 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4704 (ALL_CFLAGS): Use them as make variables.
4705 (really-lwlib, really-oldXMenu): Do not pass them.
4706
1ecb2d3f
JD
47072010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4708
4709 * xmenu.c (apply_systemfont_to_dialog): New.
4710 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4711
3a4fa2f2
SM
47122010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4713
97e53006
SM
4714 * process.c (exec_sentinel): Preserve current-buffer.
4715
3a4fa2f2
SM
4716 * process.c (read_process_output): Move the save-current-buffer to
4717 apply to both the filter and the non-filter branches.
4718
88df7221
DN
47192010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4720
4721 * s/msdos.h (UNEXEC): New definition.
4722
5634ff85
YM
47232010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4724
6eff5c3d
YM
4725 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4726 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4727
4728 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4729 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4730 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4731 TRY_WINDOW_CHECK_MARGINS.
4732
4733 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
4734 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4735 width only when it is for padding.
5634ff85 4736
b13aef54
J
47372010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4738
4739 * xfns.c (Fx_show_tip): Call try_window in a loop until
4740 fonts_changed_p is zero (Bug#2423).
4741
21d28484
EZ
47422010-04-08 Eli Zaretskii <eliz@gnu.org>
4743
4744 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4745 the end of TEXT_AREA. (Bug#5856)
4746
0269ef77
JD
47472010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4748
4749 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4750 HAVE_GCONF.
4751
5930fe97
EZ
47522010-04-08 Eli Zaretskii <eliz@gnu.org>
4753
4754 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4755 prev.orig_type, for resolving type of NSM. (Bug#5858)
4756
99852628
JD
47572010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4758
4759 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4760 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4761 in current_font.
4762 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
4763 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4764 New functions.
4765 (syms_of_xsettings): Initialize current_font.
4766 defsubr Sfont_get_system_normal_font.
99852628 4767
686b968e
JB
4768 * xsettings.h (Ffont_get_system_normal_font)
4769 (xsettings_get_system_normal_font): Declare.
99852628
JD
4770
4771 * xfns.c (extern xlwmenu_default_font): Remove.
4772 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4773 to xlwmenu.c.
4774
4775 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4776 menu items in UTF-8.
4777
4778 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4779 (apply_systemfont_to_menu): New function.
4780 (set_frame_menubar, create_and_show_popup_menu): Call
4781 apply_systemfont_to_menu.
4782
7fc874c4
J
47832010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4784
4785 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4786 FRAME_LINE_TO_PIXEL_Y.
4787
4788 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4789 pixelwidth/height.
4790
863bf481
DN
47912010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4792
5e5a3b92
DN
4793 Simplify code for HP machines.
4794 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4795 for GNU_LINUX, not needed.
4796 (UNEXEC, NEED_BSDTTY): Move definitions...
4797 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4798
863bf481
DN
4799 * m/iris4d.h (UNEXEC): Move definition ...
4800 * s/irix6-5.h (UNEXEC): ... here.
4801
3e6bec3b
JD
48022010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4803
4804 * xfns.c (set_machine_and_pid_properties): New function.
4805 (Fx_create_frame): Call set_machine_and_pid_properties.
4806
2912322b
SM
48072010-04-03 Eli Zaretskii <eliz@gnu.org>
4808
1502b819
EZ
4809 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4810 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4811 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4812
2912322b
SM
4813 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4814 in this function. (Bug#5703)
4815
48162010-04-03 Chong Yidong <cyd@stupidchicken.com>
4817
4818 * nsterm.h: Fix last change.
4819
c435b432
DN
48202010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4821
a568f507
DN
4822 * m/intel386.h (NO_REMAP): Move definition ...
4823 * s/msdos.h (NO_REMAP): ... here.
4824
4cd9f6c2
DN
4825 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4826
c435b432
DN
4827 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4828 used on those platforms.
4829
42a2c622
DN
48302010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4831
4832 Remove extern errno declarations.
4833 * xterm.c:
4834 * xrdb.c:
4835 * w32term.c:
4836 * unexec.c:
4837 * unexaix.c:
4838 * sysdep.c:
4839 * process.c:
4840 * lread.c:
4841 * keyboard.c:
4842 * floatfns.c:
4843 * filelock.c:
4844 * fileio.c:
4845 * emacs.c (main):
4846 * ecrt0.c:
4847 * dispnew.c:
4848 * callproc.c:
4849 * buffer.c: Remove errno extern declarations.
4850 * s/netbsd.h (NEED_ERRNO): Remove.
4851
8224f93d
DN
48522010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4853
4854 Remove all uses of LIBX11_SYSTEM.
4855 * Makefile.in (LIBX11_SYSTEM): Remove.
4856 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4857 instead.
4858
814062c7
EZ
48592010-04-01 Eli Zaretskii <eliz@gnu.org>
4860
ed68db4d
EZ
4861 Remove support for DJGPP v1.x (bug#5813).
4862
4863 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
4864 * s/msdos.h:
4865 * unexec.c (make_hdr, copy_text_and_data):
4866 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4867 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4868 (IT_set_terminal_modes, __write, _rename, gethostname)
4869 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4870 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4871 the value of __DJGPP__.
ed68db4d
EZ
4872 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4873 compatibility code.
8224f93d
DN
4874 * lread.c:
4875 * gmalloc.c (memalign):
4876 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4877 * emacs.c (main):
4878 * dosfns.c (init_dosfns):
ed68db4d
EZ
4879 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4880
52f4d8d5
EZ
48812010-04-01 Eli Zaretskii <eliz@gnu.org>
4882
814062c7
EZ
4883 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4884 string with `cursor' property comes from an `after-string'
4885 overlay. (Bug#5816)
4886
0dc2e11d
GM
48872010-04-01 Glenn Morris <rgm@gnu.org>
4888
4889 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4890 Define as Makefile variables.
4891 (LIBX): Use above variables rather than directly using autoconf.
4892
1d29df59
DN
48932010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4894
4895 Clean up BSD_SYSTEM use.
4896 * xterm.c:
4897 * process.c:
4898 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4899 for including <sys/ioctl.h>.
4900 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4901 code is only used for MSDOS.
4902
1546c559
JL
49032010-03-31 Juri Linkov <juri@jurta.org>
4904
4905 * image.c: Add `Qextension_data'.
4906 (syms_of_image): Initialize and staticpro `Qextension_data'.
4907 (Fimage_metadata): Rename from `Fimage_extension_data'.
4908 (gif_load): Put GIF extension data to the property
4909 `Qextension_data'.
4910
6521c534
CY
49112010-03-31 Chong Yidong <cyd@stupidchicken.com>
4912
4913 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4914 * nsterm.h: Fix prototype.
4915
52c30783
EZ
49162010-03-31 Eli Zaretskii <eliz@gnu.org>
4917
4918 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4919 trailing whitespace in right-to-left rows.
4920
855a0da7
SM
49212010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4922
4923 Get rid of the direct_output optimizations.
4924 * keyboard.c (nonundocount): Remove extern declaration.
4925 (command_loop_1): Remove brittle optimisation for cheap and
4926 common operations.
4927 * xdisp.c (redisplay_internal): Don't bother checking
4928 redisplay_performed_directly_p any more.
4929 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4930 any more.
4931 * dispnew.c (redisplay_performed_directly_p)
4932 (direct_output_for_insert, direct_output_forward_char):
4933 * dispextern.h (redisplay_performed_directly_p)
4934 (direct_output_for_insert, direct_output_forward_char): Remove.
4935 * cmds.c (nonundocount): Make it static.
4936
85738751 49372010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
4938
4939 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4940
85738751 49412010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
4942
4943 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4944 invisible (Bug#5766).
4945
85738751 49462010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 4947
855a0da7
SM
4948 * xdisp.c (x_consider_frame_title, update_window_cursor):
4949 Remove HAVE_NS conditionals.
194d44e7 4950 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
4951
4952 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4953 filename for the title.
4954 (ns_set_doc_edited): Do nothing if the selected window is a
4955 minibuffer window.
4956
4957 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4958 ns_set_doc_edited.
4959
4960 * nsterm.m: Remove unneeded prototype.
4961
85738751 49622010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
4963
4964 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4965 in the DOC file. (Bug#5336)
4966
85738751 49672010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
4968
4969 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4970
75d1428c
SM
49712010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4972
4973 * window.c (keys_of_window): Remove redundant/overridden bindings.
4974
82043cfb
EZ
49752010-03-30 Eli Zaretskii <eliz@gnu.org>
4976
4977 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4978 Restore original behavior when the iterator is not bidi_p.
4979
b5dd0ae7
DN
49802010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4981
4982 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4983
bd924a5d
EZ
49842010-03-30 Eli Zaretskii <eliz@gnu.org>
4985
4986 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4987 are outside the range of cached character positions.
4988
3580374b
JB
49892010-03-30 Juanma Barranquero <lekktu@gmail.com>
4990
4991 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4992
a7b02820
EZ
49932010-03-30 Eli Zaretskii <eliz@gnu.org>
4994
4995 Initial support for bidirectional editing.
4996
4997 * Makefile.in (obj): Include bidi.o.
4998 (bidi.o): New target.
4999
5000 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5001 ($(BLD)/bidi.$(O)): New target.
5002
5003 * bidi.c: New file.
5004
5005 * buffer.h (struct buffer): New members bidi_display_reordering
5006 and bidi_paragraph_direction.
5007
5008 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5009 and bidi_paragraph_direction.
5010 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5011 and bidi-paragraph-direction.
5012 (Fbuffer_swap_text): Swap the values of
5013 bidi_display_reordering and bidi_paragraph_direction.
5014
5015 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5016 (bidi_type_t, bidi_dir_t): New types.
5017 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5018 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5019 prev_stop, base_level_stop, and eol_pos.
5020 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5021 (IT_STACK_SIZE): Enlarge to 5.
5022 (struct glyph_row): New member reversed_p.
5023 <string_buffer_position>: Update prototype.
5024 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5025 glyph_row if bidi_it.paragraph_dir == R2L.
5026 (struct glyph): New members resolved_level and bidi_type.
5027
5028 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5029 processing or buffer's direction is right-to-left.
5030 (prepare_desired_row): Preserve the reversed_p flag.
5031 (row_equal_p): Compare the reversed_p attributes as well.
5032
5033 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5034 bidi_init_it and set it->paragraph_embedding from the current
5035 buffer's value of bidi_paragraph_direction.
5036 (reseat_1): Initialize bidi_it.first_elt.
5037 (set_iterator_to_next, next_element_from_buffer): Use the value of
5038 paragraph_embedding to determine the paragraph direction.
5039 (set_iterator_to_next): Under bidi reordering, call
5040 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5041 new_paragraph flag is set in the bidi iterator.
5042 (next_element_from_buffer): If bidi_it.first_elt is set,
5043 initialize paragraph direction and find the first character to
5044 display in the visual order. If reseated to a middle of a line,
5045 prime the bidi iterator starting at the line's beginning. Handle
5046 the situation where we overstepped stop_charpos due to
5047 non-linearity of the bidi iteration. Likewise for when we back up
5048 beyond the previous stop_charpos. When moving across stop_charpos,
5049 record it in prev_stop.
5050 (display_line): Set row->end and it->start for the next row to the
5051 next character in logical order. Always extend reversed_p rows to
5052 the end of line, even if they end at ZV. Copy the reversed_p flag
5053 to the next glyph row. Keep calling set_cursor_from_row for
5054 bidi-reordered rows even if we already have a possible candidate
5055 for cursor position. Set row_end after all the row's glyphs have
5056 been produced, by looping over the glyphs. Record the position
5057 after EOL in it->eol_pos, and use it to set end_pos of the last
5058 row produced for a continued line.
5059 <Qright_to_left, Qleft_to_right>: New variables.
5060 (syms_of_xdisp): Initialize and staticpro them.
5061 (string_buffer_position_lim): New function.
5062 (string_buffer_position): Most of code moved to
5063 string_buffer_position_lim. Last argument and return value are
5064 now EMACS_INT; all callers changed.
5065 (set_cursor_from_row): Rewritten to support bidirectional text and
5066 reversed glyph rows.
5067 (text_outside_line_unchanged_p, try_window_id): Disable
5068 optimizations if we are reordering bidirectional text and the
5069 paragraph direction can be affected by the change.
5070 (append_glyph, append_composite_glyph)
5071 (produce_image_glyph, append_stretch_glyph): Set the
5072 resolved_level and bidi_type members of each glyph.
5073 (append_glyph): If the glyph row is reversed, prepend the glyph
5074 rather than appending it.
5075 (handle_stop_backwards): New function.
5076 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5077 (reseat): call handle_stop_backwards to recompute prev_stop and
5078 base_level_stop for the new position.
5079 (handle_invisible_prop): Under bidi iteration, skip invisible text
5080 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5081 paragraph direction. Update IT->prev_stop after skipping
5082 invisible text.
5083 (move_it_in_display_line_to): New variables prev_method
5084 and prev_pos. Compare for strict equality in
5085 BUFFER_POS_REACHED_P.
5086 (try_cursor_movement): Examine all the candidate rows that occlude
5087 point, to return the best match. If rows are bidi-reordered
5088 and point moved backwards, back up to the row that is not a
5089 continuation line, and start looking for a suitable row from
5090 there.
5091
5092 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5093 rather than appending, if the glyph_row's reversed_p flag is set.
5094 Set the resolved_level and bidi_type members of each glyph.
5095
5096 * .gdbinit (pbiditype): New command.
5097 (pgx): Use it to display bidi level and type of the glyph.
5098 (pitx): Display some bidi information about the iterator.
5099 (prowlims, pmtxrows): New commands.
5100
32a8894e
DN
51012010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5102
5103 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5104 * s/usg5-4.h (LIBS_DEBUG):
5105 * s/irix6-5.h (C_DEBUG_SWITCH):
5106 * s/gnu-linux.h (LIBS_DEBUG):
5107 * s/darwin.h (LIBS_DEBUG):
5108 * s/bsd-common.h (LIBS_DEBUG):
5109 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5110 * m/iris4d.h (LIBS_DEBUG):
5111 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5112
5113 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5114 (LIBS_DEBUG): Remove definition.
5115
649dbf36
CY
51162010-03-27 Chong Yidong <cyd@stupidchicken.com>
5117
5118 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5119 Windows.
5120
cad4261f
YM
51212010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5122
5123 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5124 `connect' (Bug#5723).
5125
cd591dbc
HE
51262010-03-25 Helmut Eller <eller.helmut@gmail.com>
5127
5128 * process.c (Fmake_network_process): Call `select' for interrupted
5129 `connect' rather than creating new socket (Bug#5173).
5130
e867cb5d 51312010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
5132
5133 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5134
5135 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5136
5137 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5138
e867cb5d 51392010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
5140
5141 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5142 XLoadQueryFont.
5143
e867cb5d 51442010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
5145
5146 * coding.c (decode_coding_ccl): Fix previous change for the
5147 multibyte case.
fb608df3
KH
5148 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5149 case that the output buffer is fullfilled.
5150 (encode_coding): Setup ccl program here.
fbdc1721 5151
5845f0ed
DN
51522010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5153
814fb708
DN
5154 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5155
5845f0ed
DN
5156 Simplify LIBS_MACHINE definitions.
5157 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5158 * m/iris4d.h (LIBS_MACHINE): Likewise.
5159 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5160 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 5161 * s/netbsd.h: Remove commented out code.
5845f0ed 5162
b7064064
DN
51632010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5164
df7734b2
DN
5165 Remove dead code dealing with POSIX_SIGNALS.
5166 * atimer.c (set_alarm): Remove dead code, all USG systems define
5167 POSIX_SIGNALS.
5168 * data.c (arith_error): Likewise.
5169 * keyboard.c (input_available_signal, handle_user_signal)
5170 (interrupt_signal): Likewise.
5171 * process.c (sigchld_handler): Likewise.
5172 (create_process): Remove if 0 code. Remove HPUX conditional when
5173 !defined (POSIX_SIGNALS), it cannot be true.
5174 * syssignal.h: Remove USG5_4 and USG conditionals when
5175 !POSIX_SIGNALS, they cannot be true.
5176
b7064064
DN
5177 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5178 NO_SOCK_SIGIO, not used anymore.
5179
55da5ee3
DN
51802010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5181
0be96e3a
DN
5182 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5183 support vax on BSDs.
5184
55da5ee3
DN
5185 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5186 * s/aix4-2.h (ORDINARY_LINK): ... here.
5187
c0282183
AS
51882010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5189
82c3d67a
AS
5190 * Makefile.in (abs_builddir): Define.
5191 (bootstrap_exe): Use it.
5192 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 5193
3613edce
SM
51942010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5195
5196 * Makefile.in (bootstrap_exe): Use an absolute name.
5197
7f110ddc
DN
51982010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5199
22e87574
DN
5200 Remove support for old GNU/Linux using libc version 5.
5201 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5202 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5203
05a670e6
DN
5204 Consolidate redundant definitions in s/bsd-common.h.
5205 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5206 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5207 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5208 doing it in all files that include this one.
5209 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5210 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5211 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5212 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5213 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5214 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5215 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5216 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5217 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5218
2968f561
DN
5219 Consolidate redundant definitions.
5220 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5221 it's undefined in all files that include this one.
5222 (POSIX_SIGNALS): Define here instead of doing it in all files that
5223 include this one.
5224 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5225 (POSIX_SIGNALS): Do not define.
5226 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5227 (POSIX_SIGNALS): Do not define.
5228 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5229 (POSIX_SIGNALS): Do not define.
5230
15d25dc0
DN
5231 Remove support for old UNIX System V systems.
5232 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5233 * s/usg-5-4-2.h: Remove.
5234
07e339e4
DN
5235 Remove support for Solaris on PPC and for old versions.
5236 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5237 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5238 that cancel each other.
5239 * s/sol2-3.h:
5240 * s/sol2-4.h:
5241 * s/sol2-5.h: Remove.
5242 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5243 (NO_REMAP): Remove, unused.
5244 (UNEXEC): Move definition ...
5245 * s/aix4-2.h (UNEXEC): ... here.
5246
7f110ddc
DN
5247 * s/openbsd.h: Remove support for non-ELF and for systems that do
5248 not support shared libraries.
5249 * s/netbsd.h:
5250 * s/freebsd.h: Likewise.
5251
605f35cd
DN
52522010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5253
5254 Remove non-working support for lynxos 3.0.
5255 * s/lynxos.h: Remove file.
5256
5257 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5258 COFF_BSD_SYMBOLS, nothing defines it anymore.
5259
aed71cf4
DN
52602010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5261
5262 Remove obsolete uses of HAVE_SHM.
5263 * emacs.c (standard_args):
5264 (Fdump_emacs):
5265 (syms_of_emacs): Remove code depending on HAVE_SHM.
5266
5267 * alloc.c: Remove HAVE_SHM dependent definition.
5268
5269 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5270
aded53ff
GM
52712010-03-18 Glenn Morris <rgm@gnu.org>
5272
17284745
GM
5273 * emacs.c (USAGE4): Hard-code bug address.
5274 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5275 (bug_reporting_address): Remove.
5276 (main): Don't call bug_reporting_address.
5277
aded53ff
GM
5278 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5279 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5280
303500aa
CY
52812010-03-15 Chong Yidong <cyd@stupidchicken.com>
5282
5283 * xfns.c (Fx_create_frame):
5284 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5285 on left.
5286
cef3058f
CY
52872010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5288
5289 * editfns.c (Fformat): Account for string precision when computing
5290 field width (Bug#5710).
5291
a647d59d
CY
52922010-03-12 Chong Yidong <cyd@stupidchicken.com>
5293
4fa42018
CY
5294 * xfns.c (Fx_create_frame): Set default to Qright.
5295
a647d59d
CY
5296 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5297 all window systems.
5298
6da23aaa
EZ
52992010-03-12 Eli Zaretskii <eliz@gnu.org>
5300
a96f6398 5301 These changes remove termcap.c from the build on Posix platforms.
83d02def 5302 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
5303 (MSDOS_OBJ): ...to here.
5304 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5305 now identical to when LIBS_TERMCAP is defined.
5306
5307 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5308
5309 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5310
a96f6398 5311 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 5312
288f9fc0
CY
53132010-03-10 Chong Yidong <cyd@stupidchicken.com>
5314
5315 * Branch for 23.2.
5316
d48cd3f4
SM
53172010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5318
5319 Cleanup setup of gl_state in various parts of the code.
5320 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5321 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5322 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5323 (skip_chars):
5324 * regex.c (regex_compile): Use it.
5325 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5326 it's now set in regex_compile when/if we need it.
5327
618db430
SM
53282010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5329
c0335e02
SM
5330 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5331 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5332 (QUIT): Use it to consolidate code and remove redundancy.
5333 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5334
254c06a8
SM
5335 * regex.c (regex_compile): Setup gl_state as well.
5336
618db430
SM
5337 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5338 (in_classes): Use CONSP before XCAR/XCDR.
5339
233f0c9f
CY
53402010-03-03 Chong Yidong <cyd@stupidchicken.com>
5341
5342 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5343 definitions, so that keyboard macros are correctly handled
5344 (Bug#5481).
5345
75f80e63
EZ
53462010-03-02 Eli Zaretskii <eliz@gnu.org>
5347
5348 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5349 text that could be relocated inside the call to emacs_mule_char.
5350 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5351 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5352
dcfb9bc4
KH
53532010-03-02 Kenichi Handa <handa@m17n.org>
5354
fc9a17bc
KH
5355 * character.c (parse_str_as_multibyte): Fix handling of the
5356 multibyte form of raw-bytes.
5357 (str_as_multibyte): Likewise.
5358
dcfb9bc4
KH
5359 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5360 form of raw-bytes.
5361
412c01b6
CY
53622010-02-28 Chong Yidong <cyd@stupidchicken.com>
5363
5364 * charset.c (load_charset_map_from_file)
5365 (load_charset_map_from_vector): Zero out allocated
5366 charset_map_entries before using them.
5367
df7e1ea0
AS
53682010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5369
5370 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5371
fe69a722
CY
53722010-02-27 Chong Yidong <cyd@stupidchicken.com>
5373
4ed28cf4
CY
5374 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5375 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 5376
7379cfce
KH
53772010-02-26 Kenichi Handa <handa@m17n.org>
5378
f88cc4d6
KH
5379 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5380
7379cfce
KH
5381 * xdisp.c (reseat_to_string): Fix previous change.
5382
cf2fdcfb
CY
53832010-02-26 David Reitter <david.reitter@gmail.com>
5384
5385 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5386 Lisp_Object (Bug#4736).
5387
cc6c7c75
KH
53882010-02-25 Kenichi Handa <handa@m17n.org>
5389
5390 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5391
32e737d7
JD
53922010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5393
5394 * xterm.c (XTflash): Move declarations before statements.
5395
5396 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5397 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5398 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5399 (xg_create_tool_bar): Remove unused variables.
5400 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 5401 (xg_create_frame_widgets): Remove variable grav.
32e737d7 5402
676cae9f
CY
54032010-02-21 Chong Yidong <cyd@stupidchicken.com>
5404
5405 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5406
886cc2b8
SM
54072010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5408
5409 * term.c (fatal): Add a final \n if needed (bug#5596).
5410
ddb2d8e2
CY
54112010-02-18 Chong Yidong <cyd@stupidchicken.com>
5412
5413 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5414
2a4f8d3d
GM
54152010-02-18 Glenn Morris <rgm@gnu.org>
5416
5417 * callint.c (Finteractive): Doc fix.
5418
ebaf11b6
KH
54192010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5420
886cc2b8
SM
5421 * coding.c (record_conversion_result):
5422 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
5423 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5424 memory allocation error.
5425
d0396581
KH
54262010-02-17 Kenichi Handa <handa@m17n.org>
5427
886cc2b8
SM
5428 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5429 Fix for the case that the output buffer is fullfilled.
d0396581
KH
5430 (decode_coding): Setup ccl program here. Keep looping when the
5431 decoder stopped because the output buffer is
5432 fullfilled (bug#5534).
5433
5434 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5435
98599f74
JD
54362010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5437
471e4f04 5438 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 5439 bug #5571.
886cc2b8 5440 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 5441 overdrawn.
98599f74 5442
182659ae
JD
54432010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5444
5445 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5446 doing_interact here.
5447 (ice_connection_closed): New function.
5448 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5449 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5450 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5451 returns I/O error.
5452 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5453 bug #5512.
5454
9be32c4e 54552010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
5456
5457 * nsfont.m (nsfont_open): The system's value for the font descent
5458 is negative, so round it down to avoid clipping.
5459
a2f3eb19
CY
54602010-02-06 Chong Yidong <cyd@stupidchicken.com>
5461
5462 * charset.c (load_charset_map_from_file)
5463 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 5464 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 5465
3088147c
CY
54662010-02-05 Chong Yidong <cyd@stupidchicken.com>
5467
5468 * charset.c (load_charset_map_from_file): Allocate large
5469 charset_map_entries structure on the heap rather than the stack.
5470 (Bug#5526).
5471
b57d9029
KH
54722010-01-31 Kenichi Handa <handa@m17n.org>
5473
5474 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 5475 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 5476
c67d885b
CY
54772010-01-31 Chong Yidong <cyd@stupidchicken.com>
5478
5479 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5480 <deactivated@gmail.com> (Bug#3605).
5481
8fab2362
CY
54822010-01-31 David De La Harpe Golden <david@harpegolden.net>
5483
5484 * fileio.c (Frename_file): Correctly rename symlinks to
5485 directories (Bug#5496).
5486
cb2a62f2
CY
54872010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5488
5489 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5490
944c7a26
AS
54912010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5492
5493 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5494
c024ac08
CY
54952010-01-29 Chong Yidong <cyd@stupidchicken.com>
5496
5497 * frame.c (DEFAULT_ROWS): Change default to 35.
5498
5499 * xfns.c (x_default_font_parameter): Change default XFT font to
5500 monospace-10 (Bug#3643).
5501
af93af83
EZ
55022010-01-29 Eli Zaretskii <eliz@gnu.org>
5503
5504 * w32inevt.c (key_event): Remove unnecessary comparison of
5505 event->uChar.AsciiChar with 128.
5506
ca0eb708
CY
55072010-01-28 Chong Yidong <cyd@stupidchicken.com>
5508
b242dbfc
CY
5509 * fileio.c (Frename_file): Fix last change (Bug#5487).
5510
ca0eb708
CY
5511 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5512
5513 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5514
45d45af5
JD
55152010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5516
5517 * xfns.c (Fx_create_frame): Remove window size matching code from
5518 2010-01-15.
a73f9c9d 5519 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 5520
7e233730
JR
55212010-01-27 Jason Rumney <jasonr@gnu.org>
5522
5523 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 5524 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 5525
86e893e3
KH
55262010-01-27 Kenichi Handa <handa@m17n.org>
5527
5528 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 5529 pattern string (Bug#4209).
86e893e3 5530
8719abec
CY
55312010-01-27 David De La Harpe Golden <david@harpegolden.net>
5532
5533 * fileio.c (Frename_file): Call copy-directory and
5534 delete-directory for directories, in order to handle cross-device
5535 renaming (Bug#3353).
5536
844794c8
JD
55372010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5538
aa3e13b5 5539 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 5540 sizes 24 and 10. Bug #3643.
844794c8 5541
bd4b5750
SM
55422010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5543
8dc1adf6 5544 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
5545 * keymap.c (shadow_lookup): Add `remap' arg.
5546 (describe_map, describe_vector): Update calls to shadow_lookup.
5547 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5548 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
5549 perform remapping during shadow_lookup check of remapped_sequences.
5550
285d07e2
CY
55512010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5552
5553 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5554 png_check_sig, which has been removed in libpng 1.4.
5555
c6d09b8d
CY
55562010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5557
5558 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5559 lacks this header file).
5560
3d782998
YM
55612010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5562
5563 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5564 as in Emacs 22.
5565
2aff7c53
YM
55662010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5567
5568 * lisp.h (make_pure_string): String pointer arg now points to const.
5569
5570 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5571 args now point to const.
5572
74327f7a
EZ
55732010-01-22 Eli Zaretskii <eliz@gnu.org>
5574
5575 * lread.c (Fload): Don't treat files without .elc extension as
5576 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5577 them. (bug#5303)
5578
4d1e6632
KH
55792010-01-20 Kenichi Handa <handa@m17n.org>
5580
5581 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5582 treat the source as actual byte sequence.
5583
1fdede8f
AM
55842010-01-19 Alan Mackenzie <acm@muc.de>
5585
5586 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 5587 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
5588 `signal_after_change_p' to `coherent_change_p', and make the
5589 invocation of `modify_region' conditional on it.
5590
67477f30
JD
55912010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5592
5593 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5594 for debug purpose.
5595 (syms_of_xsettings): Declare xft-settings.
5596
244b023e
CY
55972010-01-18 Chong Yidong <cyd@stupidchicken.com>
5598
5599 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5600
617364fe
CY
56012010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5602
5603 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5604
4fe22cdf
CY
56052010-01-16 Chong Yidong <cyd@stupidchicken.com>
5606
5607 * emacs.c (standard_args): Adjust arg priorities to reflect how
5608 they are processed in startup.el.
5609
e118d2be
AS
56102010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5611
5612 * Makefile.in (lisp, shortlisp): Update.
5613
523ae620
SM
56142010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5615
5616 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5617 code, link the new kboard into all_kboard before running Lisp code,
5618 and protect the new terminal with GCPRO (Bug#5365).
5619 (x_term_init): Remove unused var `atom'.
5620 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5621
f0d13888
JD
56222010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5623
5624 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5625 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5626 to find out usable size of the desktop. Don't make frames larger than
ac146f82 5627 this. Bug #3643.
f0d13888 5628
cc320f07
KH
56292010-01-15 Kenichi Handa <handa@m17n.org>
5630
5631 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5632
7ffdf101
CY
56332010-01-15 Chong Yidong <cyd@stupidchicken.com>
5634
5635 * nsterm.m (Qnone): Define.
5636
5637 * nsfns.m (Qnone): Move definition to nsterm.m.
5638
d12bd917
KH
56392010-01-14 Kenichi Handa <handa@m17n.org>
5640
5641 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5642 systems.
5643
d9a7c140
KH
56442010-01-14 Kenichi Handa <handa@m17n.org>
5645
5646 Make auto-composition work on all buffers even if they are
5647 fundamental mode.
5648
5649 * composite.c (Vauto_composition_mode): New variable.
5650 (composition_compute_stop_pos): Check Vauto_composition_mode
5651 instead of Vauto_composition_function.
5652 (composition_adjust_point, Ffind_composition_internal): Likewise.
5653 (syms_of_composite): Declare Lisp variable
5654 "auto-composition-mode" here.
5655
63286bb2
CY
56562010-01-13 Chong Yidong <cyd@stupidchicken.com>
5657
5658 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5659 during call to vendor-specific-keysyms (Bug#5365).
5660
c2623ee7
YM
56612010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5662
5663 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5664 Call SIGNAL_THREAD_CHECK (Bug#5333).
5665
5666 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5667 Call SIGNAL_THREAD_CHECK.
5668
0b5397c2
SM
56692010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5670
5671 Try to fix bug#5314. This is probably not the final word, tho.
5672 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5673 recent-auto-save-p as a side-effect.
5674 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5675 * buffer.c (Fkill_buffer, reset_buffer):
5676 * editfns.c (Fsubst_char_in_region):
5677 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5678 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5679
dc954cb2
KH
56802010-01-13 Kenichi Handa <handa@m17n.org>
5681
5682 Display buffer name, etc. in mode line by composing correctly.
5683
5684 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5685 STRING is not nil.
0b5397c2 5686 (display_mode_element): Adjust for the change of
dc954cb2
KH
5687 decode_mode_spec and display_line.
5688 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5689 (display_string): Handle the case that STRING is non-null and
5690 LISP_STRING is not nil.
5691
0b5397c2
SM
5692 * xterm.c (x_draw_composite_glyph_string_foreground):
5693 Pay attention to s->face->overstrike.
dc954cb2
KH
5694
5695 * composite.c (composition_reseat_it): Don't check PT if STRING is
5696 non nil.
5697
4a00eaca
YM
56982010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5699
5700 * keyboard.c (read_char): Don't apply previous change when current
5701 buffer is unchanged by command execution.
5702
60abb287
JD
57032010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5704
5705 * keyboard.c (read_char): Return after executing from special map.
5706
893db5bc
GM
57072010-01-12 Glenn Morris <rgm@gnu.org>
5708
5709 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5710 bug-gnu-emacs rather than emacs-pretest-bug.
5711
4d03ece0
CY
57122010-01-11 Chong Yidong <cyd@stupidchicken.com>
5713
5714 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5715 initializing the Lisp variables that depend on them.
5716
1df47e38
YM
57172010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5718
5719 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5720 Clear areas that will not be updated after change of menu bar lines.
5721 Clear the menu bar window's current matrix when the window gets empty.
5722
2f1c6384
CY
57232010-01-09 Chong Yidong <cyd@stupidchicken.com>
5724
e398c61c
CY
5725 * intervals.h, textprop.c (extend_property_ranges): Return value
5726 and args changed. Discard properties that begin at or after the
5727 new end (Bug#5306).
5728
5729 * editfns.c (Fformat): Caller changed.
5730
e5a29a10
CY
5731 * nsterm.m (ns_set_default_prefs): Delete function.
5732 (syms_of_nsterm): Initialize ns_command_modifier,
5733 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5734 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5735
2f1c6384
CY
5736 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5737 position (Bug#4040).
5738
d427a9fa
EZ
57392010-01-09 Eli Zaretskii <eliz@gnu.org>
5740
5741 * editfns.c (Ffloat_time): Doc fix.
5742
21b9df2f
JD
57432010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5744
5745 * xfns.c (Fx_create_frame): Don't create frame larger than display
5746 by default bug#3643.
5747
4b00d3b1
YM
57482010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5749
5750 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5751 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5752 windows above internal border.
5753
5754 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5755 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5756 windows above internal border.
5757
5758 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5759 tool bar windows specially.
5760
5761 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5762
5763 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5764 specially.
5765 (XTflash): Take account of menu bar height.
5766
5767 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5768 specially.
5769
5075d853
JD
57702010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5771
ac146f82 5772 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
5773 also be true before we can return early (bug #5339).
5774
474217c8
CY
57752010-01-06 David Reitter <david.reitter@gmail.com>
5776
5777 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5778 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5779 (Bug#3233).
5780
c0e6d47d
JD
57812010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5782
d0cf45b7
JD
5783 * font.c (font_open_entity): Enable chache and call cached_font_ok
5784 for the driver if defined.
5785 (QCuser_spec): New symbol.
5786 (font_spec_from_name): Save name as user-spec.
5787 (font_load_for_lface): Keep user-spec instead of name.
5788 (font_open_by_name): Save name as user-spec.
5789 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 5790 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
5791
5792 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5793 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5794 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5795
5796 * font.h (struct font_driver): Add cached_font_ok.
5797
c0e6d47d
JD
5798 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5799
7c583cd8
JD
58002010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5801
5802 * xterm.c (x_new_font): Move code for setting rows/cols before
5803 resizing ...
ac146f82 5804 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
5805
5806 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
5807 (xg_frame_resized, xg_frame_set_char_size):
5808 Call xg_clear_under_internal_border.
7c583cd8 5809 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 5810
03f77f0a
CY
58112010-01-05 Chong Yidong <cyd@stupidchicken.com>
5812
5813 * keyboard.c (read_key_sequence): Catch keyboard switch after
5814 making a new tty frame (Bug#5095).
5815
2a1ef5be
KH
58162010-01-05 Kenichi Handa <handa@m17n.org>
5817
5818 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5819
e3eb1dae
SM
58202010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5821
5822 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5823 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5824 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5825
777013f2
MA
58262010-01-03 Michael Albinus <michael.albinus@gmx.de>
5827
5828 * dbusbind.c (xd_add_watch): Improve debug message.
5829 (xd_remove_watch): Improve debug message. If DATA is the session
5830 bus, unset D-Bus session environment.
5831 (Fdbus_init_bus): Pass the bus as argument to
5832 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 5833
8932b1c2
CY
58342010-01-01 Chong Yidong <cyd@stupidchicken.com>
5835
87231e2c
CY
5836 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5837
4801c5fa
CY
5838 * lread.c (syms_of_lread): Make it clearer that these are the
5839 names of loaded files (Bug#5068).
5840
8932b1c2
CY
5841 * eval.c (run_hook_with_args): Handle the case where the global
5842 value has the obsolete single-function form (Bug#5026).
5843
11e3c684
CY
58442009-12-27 Chong Yidong <cyd@stupidchicken.com>
5845
5846 * minibuf.c (Fall_completions): Minor optimization.
5847
5b28ce35
EZ
58482009-12-26 Eli Zaretskii <eliz@gnu.org>
5849
5ce6e4f4
JB
5850 * .gdbinit (pgx): Fix display of composite glyphs.
5851 Display cmp.from and cmp.to as well.
5852 (pitx): Fix last change.
5b28ce35 5853
bcffff46
KH
58542009-12-25 Kenichi Handa <handa@m17n.org>
5855
5856 * composite.h (composition_adjust_point): Update prototype.
5857
5858 * composite.c (composition_reseat_it): Don't make a composition
5859 spanning over point.
5860 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5861 composable characters.
5862 (composition_adjust_point): New arg NEW_PT. Callers changed.
5863
5864 * keyboard.c (command_loop_1): Force redisplay if the last point
5865 was within a composition.
5866 (adjust_point_for_property): Don't adjust point for automatic
5867 composition when called after buffer modification.
5868
3f670e9a
EZ
58692009-12-19 Eli Zaretskii <eliz@gnu.org>
5870
5ce6e4f4
JB
5871 * .gdbinit (pitx): Don't use enum names, use their values.
5872 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5873 (pgx): Don't use enum names, use their values.
5874 (pitmethod): New helper command.
5875 (pitx): Use it to display iteration method.
5876 (pgrowit): New command.
5877
ad903955
EZ
5878 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5879
3f670e9a
EZ
5880 Update dependencies in Makefile.in.
5881
5882 * Makefile.in (alloc.o): Depend on termhooks.h.
5883 (atimer.o): Depend on blockinput.h.
5884 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5885 and frame.h.
5886 (callint.o): Depend on systime.h, coding.h, and composite.h.
5887 (callproc.o): Depend on buffer.h.
5888 (casefiddle.o): Don't depend on charset.h.
5889 (casetab.o): Depend on character.h.
5890 (ccl.o): Depend on composite.h.
5891 (chartab.o): Depend on ccl.h.
5892 (cm.o): Depend on dispextern.h.
5893 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5894 (coding.o): Don't depend on $(INTERVALS_H).
5895 (composite.o): Don't depend on dispextern.h explicitly (it's in
5896 $(INTERVALS_H)). Depend on ccl.h.
5897 (data.o): Depend on systime.h, coding.h, composite.h,
5898 dispextern.h, font.h, and ccl.h.
5899 (dired.o): Depend on composite.h.
5900 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5901 composite.h (it's in $(INTERVALS_H)).
5902 (doc.o): Depend on systime.h, coding.h, and composite.h.
5903 (editfns.o): Don't depend explicitly on dispextern.h.
5904 (emacs.o): Depend on frame.h and coding.h.
5905 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5906 (fileio.o): Depend on frame.h and commands.h. Don't depend
5907 explicitly on dispextern.h.
5908 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5909 composite.h.
5910 (fns.o): Don't depend on termhooks.h.
5911 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5912 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5913 coding.h, $(INTERVALS_H), window.h, xterm.h.
5914 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5915 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5916 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5917 fontset.h, ccl.h, and ftfont.h.
5918 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5919 (gtkutil.o): Depend on dispextern.h and composite.h.
5920 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5921 termhooks.h, and ccl.h.
5922 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5923 (intervals.o): Depend on systime.h and coding.h.
5924 (keyboard.o): Depend on composite.h and coding.h.
5925 (keymap.o): Depend on coding.h and frame.h.
5926 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5927 (macros.o): Depend on systime.h, coding.h, and composite.h.
5928 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5929 and atimer.h.
5930 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5931 dispextern.h explicitly.
0b5397c2
SM
5932 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5933 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
5934 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5935 (regex.o): Don't depend on charset.h.
5936 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5937 (search.o): Don't depend explicitly on composite.h.
5938 (sound.o): Depend on atimer.h and systime.h.
5939 (syntax.o): Don't depend explicitly on composite.h.
5940 (sysdep.o): Depend on coding.h and composite.h.
5941 (term.o): Depend on xterm.h and buffer.h.
5942 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5943 (textprop.o): Don't depend on dispextern.h explicitly.
5944 (undo.o): Depend on dispextern.h.
5945 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5946 dispextern.h and composite.h explicitly.
5947 (xdisp.o): Depend on ccl.h.
5948 (xfaces.o): Depend on coding.h and ccl.h.
5949 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5950 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5951 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5952 ftfont.h.
5953 (xgselect.o): New dependency.
5954 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5955 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5956 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5957 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5958 (xsmfns.o): Depend on frame.h and dispextern.h.
5959 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5960 sysselect.h.
5961
7a6f7fea
AS
59622009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5963
5964 * font.c (Fclear_font_cache): Pass correct cache argument to
5965 font_clear_cache.
5966
f4c21026
AS
59672009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5968
5969 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5970 twice.
5971
f7ab0997
CY
59722009-12-15 Chong Yidong <cyd@stupidchicken.com>
5973
5974 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5975 calling file-remote-p. Reported by Jim Meyering.
5976
fa8e045a
MA
59772009-12-15 Michael Albinus <michael.albinus@gmx.de>
5978
5979 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 5980 avoid compiler warnings. (Bug #5217)
fa8e045a 5981
a63dba42
KH
59822009-12-14 Kenichi Handa <handa@m17n.org>
5983
5984 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5985 in 8-bit encoding.
5986
5ce6e4f4 59872009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
5988
5989 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5990 tooltip windows.
5991
223e5fc6
JD
59922009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5993
36acb2a7
JD
5994 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5995 Xatom_net_window_type.
5996
5997 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5998 Xatom_net_window_type.
5999
b8f00677
JD
6000 * xterm.c (my_log_handler): New function.
6001 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 6002 so we can filter out buggy messages. (Bug #5120).
b8f00677 6003
e5f0bc9a
JD
6004 * xterm.c (xg_scroll_callback): Parameter list changed,
6005 use parameter GtkScrollType to determine scroll/line/page.
6006 Only allow dragging if a button < 4 is grabbed (bug #5177).
6007 (xg_end_scroll_callback): New function.
6008 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6009 xg_create_scroll_bar.
6010
6011 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6012 (scroll_end_callback): Remove.
6013 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6014 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 6015 bug #5177.
e5f0bc9a
JD
6016 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6017 bug #5177.
6018
6019 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6020 (xg_create_scroll_bar): Add GCallback end_callback.
6021
223e5fc6
JD
6022 * xftfont.c (QClcdfilter): New variable.
6023 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6024 (syms_of_xftfont): Initialize QClcdfilter.
6025
3c055b77
JD
60262009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6027
6028 * xsettings.c (struct xsettings): Add member seen.
6029 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 6030 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
6031 (apply_xft_settings): Only update Xft settings with what member seen
6032 indicates as new.
6033
05fe33ff
EZ
60342009-12-12 Eli Zaretskii <eliz@gnu.org>
6035
c4cc8b9a 6036 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
6037 (struct glyph): Use EMACS_INT for charpos.
6038 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6039 region_beg_charpos, region_end_charpos,
6040 redisplay_end_trigger_charpos, and also for
6041 iterator_stack_entry.end_charpos and
6042 iterator_stack_entry.stop_charpos.
6043
e8d7886a
JD
60442009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6045
5ce6e4f4 6046 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
6047 (xg_create_scroll_bar): Call scroll_end_callback on button release
6048 event (bug #5177).
6049 (xg_event_is_for_scrollbar): != replaced with ==.
6050
d0db2ec8
KH
60512009-12-12 Kenichi Handa <handa@m17n.org>
6052
6053 * ftfont.c (struct ftfont_info): New member matrix.
6054 (ftfont_open): Setup xftfont_info->matrix.
6055 (MFLTFontFT): New member matrix.
6056 (FLOOR, CEIL, ROUND): New macros.
6057 (ftfont_get_metrics): Handle matrix transformation.
6058 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6059
6060 * xftfont.c (struct xftfont_info): New member matrix.
6061 (xftfont_open): Setup xftfont_info->matrix.
6062
60632009-12-10 Kenichi Handa <handa@m17n.org>
6064
6065 * xdisp.c (append_space_for_newline): Consider face-remapping.
6066
2cc7b62f
AS
60672009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6068
b87dd913
AS
6069 * xsettings.c: Include "keyboard.h".
6070
eba5eb94
AS
6071 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6072
2cc7b62f
AS
6073 Fix implicit function declarations.
6074 * cmds.c: Include "frame.h".
6075 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6076 * frame.h: Move declaration of delete_frame outside of
6077 HAVE_WINDOW_SYSTEM.
6078
a4ef73c8
CY
60792009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6080
6081 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6082
6083 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6084 GTK builds.
6085
944a300c
AS
60862009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6087
6088 * unexelf.c (unexec): Don't search for .data twice.
6089
022eef62
CY
60902009-12-05 Chong Yidong <cyd@stupidchicken.com>
6091
426ac949
CY
6092 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6093 if push failed.
6094 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6095 of push_display_prop (Bug#5000).
6096
022eef62
CY
6097 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6098 value of font_list_entities (Bug#5085).
6099
be95bee9
JB
61002009-12-04 Juanma Barranquero <lekktu@gmail.com>
6101
6102 Fix `string-to-number' to deal consistently with integers and floats.
6103 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6104 trailing characters, not just whitespace.
6105 (read1): Pass new arg 0 to keep old behavior.
6106 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6107 trailing chars, as it is already done for integers. Doc fixes.
6108 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6109
24c2d7ce
EZ
61102009-12-04 Eli Zaretskii <eliz@gnu.org>
6111
0b5397c2
SM
6112 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6113 Delete unused enumeration value.
24c2d7ce 6114
7e694795
EZ
61152009-12-03 Eli Zaretskii <eliz@gnu.org>
6116
6117 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6118
84b31826
SM
61192009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6120
6121 * process.c (Fmake_network_process): Fix up the tests for
6122 "connectionless socket", so they DTRT for seqpacket sockets as well.
6123
f00c449b
SM
61242009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6125
6126 * process.c (Qseqpacket): New symbol.
6127 (HAVE_SEQPACKET): New macro.
6128 (Fmake_network_process): Accept new :type `seqpacket'.
6129 (init_process): Add `seqpacket' feature when applicable.
6130 (syms_of_process): Initialize Qseqpacket.
6131
8096a0ff
YM
61322009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6133
6134 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6135 if entity is Qnil.
6136
3e0de07f
SM
61372009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6138
6139 * print.c (print_preprocess): Preprocess the key_and_value table of
6140 hashtables, even tho they're "hidden" (bug#5082).
6141
abeafb2a
JD
61422009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6143
6144 * frame.c (frame_make_pointer_invisible)
6145 (frame_make_pointer_visible): Declare f before statements.
6146
4bf47195
EZ
61472009-11-28 Eli Zaretskii <eliz@gnu.org>
6148
6149 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6150 omitted dependencies on lisp.h.
6151
c525b3f2
JD
61522009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6153
ece2d4ed
JD
6154 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6155 is NULL.
6156
6157 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6158
6159 * frame.c (frame_make_pointer_invisible)
3e0de07f 6160 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
6161 frame.
6162
c525b3f2
JD
6163 * search.c (simple_search): Remove warning by making *p const.
6164
2f00e299
DN
61652009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6166
6167 * xdisp.c (power_letter): Remove duplicate const.
6168
084b049b
JD
61692009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6170
a1fadc6f
JD
6171 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6172
5ce6e4f4 6173 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
6174 defaults (bug #5025).
6175
28259cac
SM
61762009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6177
6178 * insdel.c (adjust_markers_for_delete): Move it in the
6179 right direction! (bug#4803)
6180
e8e14166
YM
61812009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6182
6183 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6184
6185 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6186
86677b58
GM
61872009-11-24 Glenn Morris <rgm@gnu.org>
6188
6189 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6190
581e51e8
JD
61912009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6192
cfc86c7a
JD
6193 * Makefile.in: Must create deps for ecrt0.o in its rule.
6194
581e51e8
JD
6195 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6196 because that is what Gtk+ font dialog understands.
6197
6198 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6199 of Fcopy_sequence.
6200 (font_open_by_name): Put name given into QCname for font-object returned.
6201
6202 * frame.c (x_set_font): Save original font name as frame parameter
6203 font-parameter.
6204
6205 * xsettings.c (set_default_xft_settings): New function.
6206 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6207 is found.
6208
8b264ecb
AS
62092009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6210
6211 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6212 searching backwards through multibyte buffer.
6213
872870b2
JD
62142009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6215
6216 * xterm.c: #include xgselect.h.
6217 (x_initialize): Call xgselect_initialize.
6218
6219 * xsettings.c (something_changedCB): C++ comments => C comments.
6220 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6221 does that now.
6222
6223 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6224 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6225 (scroll_bar_button_cb): Remove.
5ce6e4f4 6226 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
6227 event.
6228 (xg_create_scroll_bar): Don't bind button-press-event and
6229 button-release-event.
6230
6231 * process.c: Include xgselect.h if defined (USE_GTK) ||
6232 defined (HAVE_GCONF).
6233 (wait_reading_process_output): Call xg_select for the same condition.
6234
6235 * xgselect.c (xg_select): New function to better integrate with
6236 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6237
6238 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6239
6240 * Makefile.in (XOBJ): Add xgselect.o.
6241
62a6e103
AS
62422009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6243
0b5397c2
SM
6244 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6245 Remove ignored second argument. All callers changed.
62a6e103
AS
6246 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6247 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6248 * xdisp.c (string_char_and_length): Likewise.
6249
b0ca0f33
DN
62502009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6251
6252 * xterm.c (x_new_font):
6253 * print.c (print_object):
6254 * cmds.c (Fself_insert_command): Move declarations before statements.
6255
dd5a6279
CY
62562009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6257
6258 * s/cygwin.h: Remove unneeded linker flags.
6259
4a8e097d
JD
62602009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6261
0d1d0d26
JD
6262 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6263
6264 * xsettings.h: Declare xsettings_get_system_font.
6265
6266 * xsettings.c (xsettings_get_system_font): New function.
6267 (init_gconf): No use initiating gconf unless we have Xft also.
6268 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6269 HAVE_GCONF.
6270
4a8e097d
JD
6271 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6272 add a blank entry so it doesn't collapse into nothing.
6273
8ab1650e
SM
62742009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6275
6276 * lread.c (Funintern): Comment out last change.
6277
82c602f0
RS
62782009-11-19 Richard Stallman <rms@gnu.org>
6279
6280 * lread.c (Funintern): Error if symbol is t or nil.
6281
87e32266
SM
62822009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6283
6284 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6285 representation of Lisp integers.
6286 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6287
1b9ac145
AS
62882009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6289
6290 * lisp.h: Remove declaration of Ffont_get_system_font.
6291 * xfns.c: Move include of "xsettings.h".
6292 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6293
dfb3c4c6
JD
62942009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6295
87e32266
SM
6296 * xsettings.c (something_changedCB, Ffont_get_system_font):
6297 Check use_system_font.
dfb3c4c6
JD
6298 (syms_of_xsettings): DEFVAR font-use-system-font.
6299
9370c1d8
AS
63002009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6301
25fe851a
AS
6302 * xfns.c (x_default_font_parameter): Remove dead assignment.
6303
9370c1d8
AS
6304 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6305
637fa988
JD
63062009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6307
87e32266 6308 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 6309 not have FC_LCD_*. #define them if not there.
a6eb20d8 6310
87e32266 6311 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 6312
637fa988
JD
6313 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6314
6315 * xterm.c (handle_one_xevent): Call xft_settings_event for
6316 ClientMessage, PropertyNotify and DestroyNotify.
6317 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6318 Call xsettings_initialize.
6319
6320 * xftfont.c (xftfont_fix_match): New function.
6321 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6322 Call xftfont_fix_match after XftFontMatch.
6323
6324 * xfont.c (xfont_driver): Initialize all members.
6325
87e32266
SM
6326 * xfns.c (x_default_font_parameter):
6327 Try font from Ffont_get_system_font.
637fa988
JD
6328 Do not get font from x_default_parameter if we got one from
6329 Ffont_get_system_font.
87e32266 6330 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
6331
6332 * w32font.c (w32font_driver): Initialize all members.
6333
6334 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6335
6336 * lisp.h: Declare syms_of_xsettings.
6337
87e32266
SM
6338 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6339 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
6340
6341 * ftfont.c (ftfont_filter_properties): New function.
6342
6343 * frame.c (x_set_font): Remove unused variable lval.
6344
87e32266 6345 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
6346
6347 * font.c (font_put_extra): Don't return if val is nil, it means
6348 boolean option is off.
6349 (font_parse_fcname): Collect all extra properties in extra_props
6350 and call filter_properties for all drivers with extra_props and
6351 font as parameter.
87e32266
SM
6352 (font_open_entity): Do not use cache, it does not pick up new
6353 fontconfig settings like hinting.
637fa988
JD
6354 (font_load_for_lface): If spec had a name in it, store it in entity.
6355
a73f9c9d 6356 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
6357
6358 * config.in: HAVE_GCONF is new.
6359
6360 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6361 xsettings.o is new.
6362
5a942932
KH
63632009-11-17 Kenichi Handa <handa@m17n.org>
6364
6365 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6366 back to the default font in case that no suitable font is found.
6367
b7c7a4d1
SM
63682009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6369
6370 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6371 Suggested by Chad Brown <yandros@mit.edu>.
6372 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6373
072f1e39
JD
63742009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6375
6376 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6377
5d1e70a2
AS
63782009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6379
87e32266 6380 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 6381
a53cfbe5
JD
63822009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6383
473a99b7
JD
6384 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6385 has a parent.
6386
a53cfbe5 6387 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 6388 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
6389
6390 * config.in: Generated (AUTO_DEPEND).
6391
f04bb9b2
MA
63922009-11-13 Michael Albinus <michael.albinus@gmx.de>
6393
b7c7a4d1 6394 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
6395 Vdbus_registered_functions_table, because it contains also
6396 properties. Fix docstring.
b7c7a4d1 6397 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 6398
8f11f7ec
SM
63992009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6400
6401 * alloc.c (mark_object): Don't reprocess marked strings.
6402 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6403 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6404
8a605fe8
KH
64052009-11-13 Kenichi Handa <handa@m17n.org>
6406
8f11f7ec 6407 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
6408 semantics of Vword_combining_categories.
6409 (Vword_combining_categories): Describe the slight change of the
6410 semantics.
6411
241c4680
EZ
64122009-11-13 Eli Zaretskii <eliz@gnu.org>
6413
6414 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6415
6416 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6417
5d58e44c
SM
64182009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6419
6420 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6421
5e13f9d3
JB
64222009-11-12 Juanma Barranquero <lekktu@gmail.com>
6423
6424 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6425
cf54c754
DR
64262009-11-11 David Reitter <david.reitter@gmail.com>
6427
6428 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6429 variables to fix 2009-11-09 change.
6430
a4ada374
DN
64312009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6432
91433552
DN
6433 * process.c (ifflag_def): Make flag_sym constant.
6434 (Fnetwork_interface_info): Use a constant pointer.
6435 (ifflag_table):
6436 * xfns.c (cursor_bits):
6437 * xdisp.c (power_letter):
6438 * termcap.c (speeds, esctab):
6439 * sysdep.c (baud_convert):
6440 * keyboard.c (lispy_accent_codes, modifier_names):
6441 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6442 (jpeg_format, tiff_format, gif_format, svg_format)
6443 (interlace_start, interlace_increment, gs_format):
6444 * gtkutil.c (separator_names):
6445 * fringe.c (swap_nibble):
6446 * fns.c (base64_value_to_char, base64_char_to_value):
6447 * fileio.c (make_temp_name_tbl):
6448 * coding.c (suffixes): Make constant.
6449
f4265f6c
DN
6450 * frame.c (make_initial_frame):
6451 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6452 build_string.
6453 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6454
04420943
DN
6455 * s/freebsd.h:
6456 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6457
0a5d24ae
DN
6458 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6459 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6460
a4ada374
DN
6461 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6462 * xterm.c (syms_of_xterm):
6463 * xfaces.c (syms_of_xfaces):
6464 * xdisp.c (syms_of_xdisp):
6465 * lread.c (syms_of_lread):
6466 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6467 build_string.
91433552 6468
a4ada374
DN
6469 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6470
af98fc7f
SM
64712009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6472
8ab1650e 6473 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 6474
e90292a9
JD
64752009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6476
6477 * keyboard.h: Declare timer_check.
6478
6479 * keyboard.c (timer_check_2): New function that does what the old
6480 timer_check did.
6481 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6482 returned, i.e. don't return -1 with timers pending.
6483
6484 * process.c: Remove extern declaration of timer_check.
6485
6486 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6487 even if timer_check returned -1.
6488
af98fc7f
SM
6489 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6490 xg_dialog_data.
e90292a9
JD
6491 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6492 the event loop.
6493 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6494 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6495 Destroy the dialog after xg_dialog_run.
6496
045b83c0
SM
64972009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6498
6499 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6500
1fb99a3a
JD
65012009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6502
6503 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6504
04e452cb
JB
65052009-11-09 Juanma Barranquero <lekktu@gmail.com>
6506
6507 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6508
ef7417fd
SM
65092009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6510
6511 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6512 w32menu.c, and nsmenu.m.
6513 Simplify the obsolete case where position is nil.
6514 (cleanup_popup_menu): New function, moved from nsmenu.m.
6515 (struct skp): Remove slot `notreal'.
6516 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6517 adjust callers.
6518 (single_menu_item): Adjust call to parse_menu_item.
6519 (syms_of_menu): Defsubr x-popup-menu.
6520 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6521 (keymap_panes): Don't export any more.
6522 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6523 (xmenu_show): Declare.
6524 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6525 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6526 * keyboard.h (parse_menu_item): Update declaration.
6527 * xmenu.c (Fx_popup_menu): Remove.
6528 (syms_of_xmenu): Don't defsubr x-popup-menu.
6529 * w32menu.c (Fx_popup_menu): Remove.
6530 (syms_of_w32menu): Don't defsubr x-popup-menu.
6531 * nsmenu.m (cleanup_popup_menu): Remove.
6532 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6533 moved to menu.c's Fx_popup_menu.
6534 (Fx_popup_menu): Remove.
6535 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6536 menu_items (it's done in menu.c already).
6537
424d6179
SM
65382009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6539
6540 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6541 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6542
c0df13a6 65432009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
6544
6545 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 6546 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
6547 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6548 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6549
2de9f71c
SM
65502009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6551
6552 Let integers use up 2 tags to give them one extra bit and thus double
6553 their range.
6554 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6555 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6556 New macros.
6557 (enum Lisp_Type): Use them. Give explicit values.
6558 (Lisp_Type_Limit): Remove.
6559 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6560 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6561 Pay attention to USE_2_TAGS_FOR_INTS.
6562 (INTEGERP): Use LISP_INT_TAG_P.
6563 * fns.c (internal_equal): Simplify the default case.
6564 (sxhash): Use case_Lisp_Int.
6565 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6566 any more.
6567 (Ftype_of): Use case_Lisp_Int.
6568 (store_symval_forwarding): Take into account the fact that Ints can
6569 now have more than one tag.
6570 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 6571 (buffer_slot_type_mismatch):
2de9f71c
SM
6572 * xfaces.c (face_attr_equal_p):
6573 * print.c (print_object):
6574 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6575 Use case_Lisp_Int.
6576
323637a2
EZ
65772009-11-06 Eli Zaretskii <eliz@gnu.org>
6578
7ac65b38
EZ
6579 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6580
323637a2
EZ
6581 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6582 warning.
6583
e511451f
JD
65842009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6585
6586 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6587
6588 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6589
6590 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6591 ButtonPressRelease and MotionNotify (bug#4870).
6592
5e2327cf
DN
65932009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6594
5adc433e
DN
6595 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6596
d67b4f80
DN
6597 * xterm.c (syms_of_xterm):
6598 * xselect.c (syms_of_xselect):
6599 * xmenu.c (syms_of_xmenu):
6600 * xfns.c (syms_of_xfns):
6601 * xfaces.c (syms_of_xfaces):
6602 * xdisp.c (syms_of_xdisp):
6603 * window.c (syms_of_window):
6604 * w32fns.c (syms_of_w32fns):
6605 * undo.c (syms_of_undo):
6606 * textprop.c (syms_of_textprop):
6607 * terminal.c (syms_of_terminal):
6608 * syntax.c (syms_of_syntax):
6609 * sound.c (syms_of_sound):
6610 * search.c (syms_of_search):
6611 * print.c (syms_of_print):
6612 * minibuf.c (syms_of_minibuf):
6613 * macros.c (syms_of_macros):
6614 * keymap.c (syms_of_keymap, initial_define_key)
6615 (initial_define_lispy_key):
6616 * keyboard.c (syms_of_keyboard):
6617 * insdel.c (syms_of_insdel):
6618 * image.c (syms_of_image):
6619 * fringe.c (syms_of_fringe):
6620 * frame.c (syms_of_frame):
6621 * fontset.c (syms_of_fontset):
6622 * fns.c (syms_of_fns):
6623 * fns.c (syms_of_fns):
6624 * fileio.c (syms_of_fileio):
6625 * fileio.c (syms_of_fileio):
6626 * eval.c (syms_of_eval):
6627 * doc.c (syms_of_doc):
6628 * dispnew.c (syms_of_display):
6629 * dired.c (syms_of_dired):
6630 * dbusbind.c (syms_of_dbusbind):
6631 * data.c (syms_of_data):
6632 * composite.c (syms_of_composite):
6633 * coding.c (syms_of_coding):
6634 * cmds.c (syms_of_cmds):
6635 * charset.c (define_charset_internal, syms_of_character):
6636 * ccl.c (syms_of_ccl):
6637 * category.c (syms_of_category, init_category_once):
6638 * casetab.c (syms_of_casetab):
6639 * casefiddle.c (syms_of_casefiddle):
6640 * callint.c (syms_of_callint):
6641 * bytecode.c (syms_of_bytecode):
6642 * buffer.c (keys_of_buffer, syms_of_buffer):
6643 * alloc.c (syms_of_alloc):
6644 * process.c (syms_of_process, init_process):
6645 * lread.c (syms_of_lread, init_obarray):
6646 * font.c (build_style_table):
6647 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6648 intern_c_string, calls to make_pure_string with
6649 make_pure_c_string. Use pure_cons instead of Fcons.
6650
5e2327cf
DN
6651 * process.c (socket_options): Make it const.
6652 (set_socket_option, init_process): Use a const pointer.
6653
6654 * lread.c (intern_c_string): New function.
6655 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6656 (defvar_int): Uset it. Make the name const char*.
6657
6658 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6659 (defvar_int): Update prototypes.
6660 (DEFUN, EXFUN): Support for prototypes is now required.
6661 (intern_c_string): New prototype.
6662 (struct Lisp_Subr): Make symbol_name constant.
6663
6664 * font.c (struct table_entry): Remove unused member. Make NAMES
6665 constant.
6666 (weight_table, slant_table, width_table): Make constant.
6667
6668 * emacs.c (struct standard_args): Make name and longname constant.
6669
6670 * character.h (DEFSYM): Use intern_c_string.
6671
a56eaaef
DN
66722009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6673
6674 * alloc.c (make_pure_c_string): New function.
6675
6676 * eval.c (Fautoload): Purecopy all arguments.
6677
f6a07420
KH
66782009-11-05 Kenichi Handa <handa@m17n.org>
6679
6680 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6681 the buffer in case of replace.
6682
5d28d4b1
DN
66832009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6684
6685 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6686
b349d111
SM
66872009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6688
d528b1ce
SM
6689 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6690 when applicable (bug#4851).
6691
b349d111
SM
6692 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6693 (P_): Support for prototypes is now required.
6694
c38eb027
CY
66952009-10-31 Chong Yidong <cyd@stupidchicken.com>
6696
6697 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6698 (Bug#4827).
6699
0405f8d9
EZ
67002009-10-30 Eli Zaretskii <eliz@gnu.org>
6701
d528b1ce 6702 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 6703
ca0a881a
DN
67042009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6705
6706 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6707
d528b1ce
SM
6708 * lread.c (Fload): Purecopy the file name when building
6709 Vpreloaded_file_list.
ca0a881a 6710
47e0e0e4
JR
67112009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6712
6713 * w32fns.c (syms_of_w32fns): Change default value of
6714 w32-scroll-lock-modifier to nil. (Bug#2827)
6715
057bce6f
JB
67162009-10-26 Juanma Barranquero <lekktu@gmail.com>
6717
782a943e 6718 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 6719
242bc74c
AS
67202009-10-26 Andreas Schwab <schwab@redhat.com>
6721
6722 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6723
522d013a
JB
67242009-10-26 Juanma Barranquero <lekktu@gmail.com>
6725
6726 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6727 For delta < 0, skip check that only makes sense when the mini-window
6728 is going to be enlarged. (Bug#4534)
6729
18060980
CY
67302009-10-25 Chong Yidong <cyd@stupidchicken.com>
6731
6732 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6733 string in menu maps (Bug#4471).
6734
fec8f0fe
CY
67352009-10-24 Chong Yidong <cyd@stupidchicken.com>
6736
6737 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6738 FRAME_NS_VIEW on terminal frames (Bug#4765).
6739
10d66ec0
AS
67402009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6741
1cae01f7
AS
6742 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6743 DBUS_TYPE_UINTnn separately to get proper sign extension.
6744
58a12889
AS
6745 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6746 can properly handle unsigned types.
d528b1ce 6747 (make_uid, make_gid): Remove.
58a12889 6748
987c9327
AS
6749 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6750 types again.
6751
522d013a 6752 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
6753 (system_process_attributes): Likewise.
6754
905a9ed3
DN
67552009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6756
6757 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6758
6759 * eval.c (Fautoload): Purecopy the filename. Simplify.
6760
6761 * category.c (Fdefine_category): Purecopy docstring.
6762
a599b3e8
AS
67632009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6764
7b792fc9
AS
6765 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6766
a599b3e8
AS
6767 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6768
b35ac83e
CY
67692009-10-23 Chong Yidong <cyd@stupidchicken.com>
6770
6771 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6772 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6773 (Bug#4775).
6774
e8903e00
SM
67752009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6776
6777 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6778 (init_fileio_once):
6779 * lisp.h (init_fileio_once): Remove.
6780 * emacs.c (main): Don't call init_fileio_once.
6781
8f43cbf3
DN
67822009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6783
6784 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6785
26898943
AS
67862009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6787
6788 * doprnt.c (doprnt): Fix overflow check.
6789
5c646d5a
JD
67902009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6791
3132a7ea
JD
6792 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6793
5c646d5a
JD
6794 * xterm.h (x_wait_for_event): Declare it.
6795
6796 * xterm.c (pending_event_wait): New variable.
6797 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6798 see pending_event_wait.eventtype.
6799 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
6800 (x_new_font): Call change_frame_size with new rows/columns before we
6801 try to resize the frame.
5c646d5a 6802 (x_wait_for_event): New function.
d528b1ce
SM
6803 (x_set_window_size_1): Don't change gravity unless change_gravity
6804 is set.
5c646d5a
JD
6805 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6806 don't change frame size, instead wait for the ConfigureNotify.
6807 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6808 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6809 (x_initialize): Initialize pending_event_wait.
6810
6811 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6812 size.
6813
6814 * widget.c (EmacsFrameSetValues): Add comment.
6815 (EmacsFrameSetCharSize): Just call x_set_window_size.
6816
6817 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6818 x_wait_for_event.
d528b1ce 6819 (flush_and_sync): Remove again.
5c646d5a
JD
6820 (xg_get_font_name): Suggest monospace if no previous font is known.
6821
e9c1637d
SM
68222009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6823
6824 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 6825 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 6826
5a72cccb
YM
68272009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6828
6829 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6830 processing pending events when event is filtered for input method.
ab04798f 6831 (Bug#3681)
5a72cccb 6832
2629aa37
JB
68332009-10-20 Juanma Barranquero <lekktu@gmail.com>
6834
6835 * fns.c: Add #endif accidentally removed in previous change.
6836
c3417a74
DN
68372009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6838
6839 * fns.c: Remove code for unsupported system: MAC_OS.
6840 * image.c: Likewise. Include setjmp.h.
6841
9685cef2
JD
68422009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6843
6844 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6845 pixel -1 (bug #4742).
6846
d7306fe6
DN
68472009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6848
019d2c4c
DN
6849 * process.c (create_pty): Remove conditionals for no longer
6850 supported systems: UNIPLUS and RTU.
6851
ee6bacd4
DN
6852 * xterm.c:
6853 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6854
d7306fe6
DN
6855 * alloc.c: Do not define struct catchtag.
6856 * eval.c: Move struct catchtag definition ...
6857 * lisp.h: ... here.
6858
6859 * image.c: Move png.h #include earlier to avoid warnings.
6860
6861 * xterm.c:
6862 * xsmfns.c:
6863 * xselect.c:
6864 * xrdb.c:
6865 * xmenu.c:
6866 * xftfont.c:
6867 * xfont.c:
6868 * xfns.c:
6869 * xfaces.c:
6870 * xdisp.c:
6871 * window.c:
6872 * widget.c:
6873 * w32xfns.c:
6874 * w32uniscribe.c:
6875 * w32term.c:
6876 * w32select.c:
6877 * w32reg.c:
6878 * w32proc.c:
6879 * w32menu.c:
6880 * w32inevt.c:
6881 * w32heap.c:
6882 * w32font.c:
6883 * w32fns.c:
6884 * w32console.c:
6885 * w32.c:
6886 * w16select.c:
6887 * vm-limit.c:
6888 * unexsol.c:
6889 * unexec.c:
6890 * unexcw.c:
6891 * unexaix.c:
6892 * undo.c:
6893 * tparam.c:
6894 * textprop.c:
6895 * terminfo.c:
6896 * terminal.c:
6897 * termcap.c:
6898 * term.c:
6899 * syntax.c:
6900 * sound.c:
6901 * sheap.c:
6902 * search.c:
6903 * scroll.c:
6904 * region-cache.c:
6905 * regex.c:
6906 * ralloc.c:
6907 * process.c:
6908 * print.c:
b024548b
DN
6909 * nsterm.m:
6910 * nsselect.m:
6911 * nsmenu.m:
6912 * nsimage.m:
6913 * nsfont.m:
6914 * nsfns.m:
d7306fe6
DN
6915 * msdos.c:
6916 * minibuf.c:
6917 * menu.c:
6918 * marker.c:
6919 * macros.c:
6920 * keymap.c:
6921 * keyboard.c:
6922 * intervals.c:
6923 * insdel.c:
6924 * indent.c:
6925 * gtkutil.c:
6926 * ftxfont.c:
6927 * ftfont.c:
6928 * fringe.c:
6929 * frame.c:
6930 * fontset.c:
6931 * font.c:
6932 * fns.c:
6933 * floatfns.c:
6934 * filelock.c:
6935 * fileio.c:
6936 * emacs.c:
6937 * editfns.c:
6938 * dosfns.c:
6939 * doprnt.c:
6940 * doc.c:
6941 * dispnew.c:
6942 * dired.c:
6943 * dbusbind.c:
6944 * data.c:
6945 * composite.c:
6946 * coding.c:
6947 * cmds.c:
6948 * cm.c:
6949 * chartab.c:
6950 * charset.c:
6951 * character.c:
6952 * ccl.c:
6953 * category.c:
6954 * casetab.c:
6955 * casefiddle.c:
6956 * callproc.c:
6957 * callint.c:
6958 * bytecode.c:
6959 * buffer.c:
6960 * atimer.c: Include setjmp.h. (Bug#4643)
6961
fd5f21e6
SM
69622009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6963
4c0354d7
SM
6964 Remove leftover table unibyte_to_multibyte_table.
6965 * character.c (unibyte_to_multibyte_table): Remove.
6966 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6967 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6968 * character.h (UNIBYTE_TO_CHAR): New macro.
6969 (MAKE_CHAR_MULTIBYTE): Use it.
6970 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6971 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6972 (message_dolog, set_message_1):
6973 * search.c (Freplace_match):
6974 * editfns.c (Fcompare_buffer_substrings):
6975 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6976 (concat):
6977 * insdel.c (copy_text, count_size_as_multibyte):
6978 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6979 * term.c (produce_glyphs):
6980 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6981 * regex.c (RE_CHAR_TO_MULTIBYTE):
6982 * cmds.c (internal_self_insert):
6983 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6984
fd5f21e6
SM
6985 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6986
4418646e
DN
69872009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6988
6989 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6990
35f5c1d2
JB
69912009-10-16 Juanma Barranquero <lekktu@gmail.com>
6992
6993 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6994
a0cd8f6b
AR
69952009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6996
6997 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6998 still needed under Tiger.
6999
7000 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7001
7002 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7003 __Apple__.
7004
7005 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7006
01a8d3fa
KH
70072009-10-15 Kenichi Handa <handa@m17n.org>
7008
7009 * print.c (print_object): Escape a symbol like "2E10" too.
7010
bf6c75c9 70112009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
7012
7013 Cleanups and changes for 64-bit compile under Snow Leopard.
7014 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
7015
7016 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7017
c5959062 7018 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
7019 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7020 cast argument.
7021 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 7022 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
7023
7024 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7025
7026 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7027 where appropriate.
7028
7029 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7030 where appropriate.
6e4780c5
JB
7031 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7032 Use stringWithUTF8String.
bf6c75c9
AR
7033 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7034
6e4780c5
JB
7035 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7036 Add formal protocol mention to inheritance.
bf6c75c9
AR
7037 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7038
6e4780c5
JB
7039 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7040 Fix printf format.
bf6c75c9
AR
7041 (ns_query_color): Use CGFloat where appropriate.
7042 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 7043 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
7044 argument.
7045
3d87f118
AR
7046 * config.in (NS_HAVE_NSINTEGER): Drop.
7047
a95c8102
AR
7048 * dbusbind.c (dbus-method-return-internal)
7049 (dbus-method-error-internal): Use long format in printf, and cast
7050 argument.
7051
7052 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7053 in printf, and cast argument.
7054
6873acca 7055 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
7056 cast argument.
7057
9ec6f100
GM
70582009-10-11 Glenn Morris <rgm@gnu.org>
7059
7060 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7061
5be883cd
JD
70622009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7063
7064 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7065 menu bar with a small width so it doesn't enlarge the frame.
7066
d7a39b51
JB
70672009-10-08 Juanma Barranquero <lekktu@gmail.com>
7068
7069 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7070
0c2b6f8e
GM
70712009-10-06 Glenn Morris <rgm@gnu.org>
7072
7073 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7074 SOME_MACHINE_LISP (this enters indirectly via DOC).
7075
e02131a2
EZ
70762009-10-05 Eli Zaretskii <eliz@gnu.org>
7077
7078 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7079
b4744254
EZ
70802009-10-04 Eli Zaretskii <eliz@gnu.org>
7081
7082 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7083 Doc fix.
7084
dbf64827
JB
70852009-10-03 Martin Rudalics <rudalics@gmx.at>
7086
7087 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7088
e9a0aef8
MA
70892009-10-02 Michael Albinus <michael.albinus@gmx.de>
7090
d528b1ce 7091 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
7092 used anymore outside fileio.c.
7093
7094 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7095
64eb2b56
JB
70962009-10-01 Juanma Barranquero <lekktu@gmail.com>
7097
7098 * lisp.h (Qdelete_directory_internal):
7099 Declare, instead of Qdelete_directory.
7100
7101 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7102
9d28c33e
SM
71032009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7104
7105 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7106
9d8f3bd9
MA
71072009-10-01 Michael Albinus <michael.albinus@gmx.de>
7108
9d28c33e 7109 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
7110 Fdelete_directory. It is not a command anymore. It has no file
7111 name handler.
7112
9694740b
SM
71132009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7114
7115 * xdisp.c (get_next_display_element): Use an enum in last change.
7116
748e162f
KH
71172009-09-28 Kenichi Handa <handa@m17n.org>
7118
9694740b 7119 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
7120 unibyte_display_via_language_environment in handling
7121 Vnobreak_char_display.
7122
17efd58d
AR
71232009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7124
7125 * nsterm.h (ns_app_name): New extern variable.
7126
7127 * nsterm.m (ns_app_name): New variable.
7128 (ns_term_init): Set and use it.
7129 (ns_term_shutdown): Use it.
7130
7131 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7132 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7133
7134 * nsfns.m (ns_set_name_iconic, ns_set_name)
7135 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7136 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7137
9694740b
SM
7138 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7139 Remove double-casting in client_data comparison.
31c2d412 7140
3208cb35
YM
71412009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7142
7143 * keyboard.c (make_lispy_event): Remember last wheel direction.
7144 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7145
b7d552d6
GM
71462009-09-26 Glenn Morris <rgm@gnu.org>
7147
7148 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7149 internal.elc. Add term/pc-win.elc.
7150 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7151 term/x-win.elc.
7152 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7153 term/w32-win.elc.
7154 (NS_SUPPORT): New.
7155 (lisp): Add NS_SUPPORT.
7156 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7157
4ff670a8
DR
71582009-09-25 David Reitter <david.reitter@gmail.com>
7159
7160 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7161 on Mac OS X 10.6+ (bug#4513).
7162
feabfb6c
JB
71632009-09-24 Juanma Barranquero <lekktu@gmail.com>
7164
7165 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
7166 some parts of Emacs code (like font selection) don't grok them.
7167 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 7168
de59072a
AS
71692009-09-24 Andreas Schwab <schwab@redhat.com>
7170
7171 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7172
a489517b
JB
71732009-09-24 Juanma Barranquero <lekktu@gmail.com>
7174
7175 * dired.c (Fdirectory_files): Fix typo in docstring.
7176
0592970c
AR
71772009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7178
7179 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7180 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7181 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7182 under GNUstep.
7183 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7184
7185 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7186 glyph advancement.
7187
48e8a88b
AR
71882009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7189
7190 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 7191 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
7192
7193 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7194 deleted (bug #4492).
7195
e14f0a78
AR
7196 * nsfont.m (Vns_reg_to_script): New lisp variable.
7197 (syms_of_nsfont): Declare it.
7198 (ns_registry_to_script): New function.
7199 (ns_get_req_script): Call it.
7200 (ns_findfonts): Don't give up on non-unicode registry.
7201
7202 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7203
5b650faa
SM
72042009-09-20 Tom Tromey <tromey@redhat.com>
7205
7206 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7207 batch mode (bug#4228).
7208
a489517b 72092009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
7210
7211 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 7212 carefully. (Bug #4339)
0bae4e09 7213
fcfe06f3
CY
72142009-09-18 Chong Yidong <cyd@stupidchicken.com>
7215
d798ba87 7216 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 7217
31642728
AR
72182009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7219
7220 * emacs.c (inhibit_x_resources): Update doc string for NS.
7221 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 7222 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
7223
7224 * nsterm.h (ns_no_defaults): Remove.
7225
7226 * nsterm.m (ns_no_defaults): Remove.
7227 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7228 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
7229 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7230 don't update the NSWindow itself.
7231 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 7232 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
7233
7234 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7235 ns_use_qd_smoothing.
7236
7237 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7238 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 7239 (x-close-connection): Drop PSFlush() under OS X.
a489517b 7240 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 7241
8686ac71
JB
72422009-09-17 Juanma Barranquero <lekktu@gmail.com>
7243
7244 * emacs.c (inhibit_x_resources): New variable.
7245 (main) [HAVE_NS]: Don't process --quick command line option.
7246 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7247
7248 * lisp.h (inhibit_x_resources): Declare it extern.
7249
7250 * w32reg.c (x_get_string_resource):
7251 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7252
e227ba05
EZ
72532009-09-17 Eli Zaretskii <eliz@gnu.org>
7254
362654a6
JB
7255 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7256 Add lisp/term/internal.elc.
e227ba05 7257
742d40e8
SM
72582009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7259
7260 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7261 (bug#4461).
7262
005bd5a2
DN
72632009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7264
7265 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7266
7267 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7268 (OBJECTS_MACHINE): Remove, unused.
7269
f9af9719
SM
72702009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7271
7272 * frame.c (x_get_resource_string): Remove unused.
7273
0307c7d2
JD
72742009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7275
7276 * xterm.c (x_new_font): Call change_frame_size before calling
7277 x_set_window_size, in case frame size won't change.
7278
7279 * frame.c (x_set_font): Remove dead code.
7280
428b13d6
SM
72812009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7282
7283 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7284
5766c380
SM
72852009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7286
7287 * lread.c (Fload): Don't output a message after loading an obsolete
7288 package any more (done in Lisp now).
7289
2fd0161b
CY
72902009-09-12 Chong Yidong <cyd@stupidchicken.com>
7291
7292 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7293
bc5e75b6
SM
72942009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7295
7296 * keymap.c (Fwhere_is_internal): Use nconc2.
7297
c31c985e
AM
72982009-09-11 Alan Mackenzie <acm@muc.de>
7299
7300 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7301 batch mode.
7302
78012bd2
AS
73032009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7304
7305 * xdisp.c (display_mode_element): Detect cycles.
7306
9d889332
SM
73072009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7308
7309 * keymap.c (where_is_internal): Don't erroneously return nil right after
7310 filling the cache.
7311 (where_is_internal_1): Fix up typo.
7312
7ab5d780
GM
73132009-09-11 Glenn Morris <rgm@gnu.org>
7314
7315 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7316 share a common doc-string.
7317
5238a749
SM
73182009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7319
66d77eda
SM
7320 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7321 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7322
5238a749
SM
7323 * keymap.c (QCadvertised_binding): New constant.
7324 (syms_of_keymap): Initialize it.
7325 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7326 if applicable.
7327
19f48442
SM
73282009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7329
50d4ba39
SM
7330 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7331 (parse_menu_item): Streamline since bindings are recomputed all the
7332 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7333 more and don't support lmenu's menu-alias any more either.
7334
a88a5372
SM
7335 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7336 (where_is_internal): Strip it down to only traverse the keymaps.
7337 Move the cache handling from Fwhere_is_internal to here.
7338 (Fwhere_is_internal): Move the handling of remapping and the choice of
7339 the best binding from where_is_internal to here.
7340 Unify the cached/noncached paths, so remapping is also handled
7341 correctly when the cache is used, and so the cache can be used to
7342 speed up remap-handling when applicable.
7343 Give preference to non-remapped bindings.
7344 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7345 non-remapped bindings.
7346 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7347 command remapping.
7348
19f48442
SM
7349 * xdisp.c (display_mode_element): Move list length limit from 50 to
7350 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7351
599498c3 73522009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
7353
7354 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7355
f9b7b5ac
SM
73562009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7357
a53af587
JB
7358 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7359 (Bug#4334)
7360
f9b7b5ac
SM
7361 * keymap.c (where_is_internal): Filter out shadowed remappings.
7362 Assume that where_is_internal returns unshadowed bindings to simplify
7363 the code and get rid of the gotos. Use ASIZE.
7364
04f4b72d
JD
73652009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7366
4da146f2
JD
7367 * xterm.c (x_focus_changed): If we get a focusout and pointer
7368 is invisible, make it visible.
7369
04f4b72d
JD
7370 * xterm.h: Remove condition for declaration of
7371 x_*_window_to_frame.
7372
7cef7ce3
SM
73732009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7374
7375 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7376 initial terminal as well.
7377
a54fa5b7
JD
73782009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7379
7380 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 7381 x_menubar_window_to_frame.
a54fa5b7 7382
50426a04 7383 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
7384 (XTmouse_position): Do not return valid positions
7385 for clicks in the menubar and the toolbar for Gtk+.
7386
7387 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7388 if the widget for the event has the same top level as a frame,
7389 return the frame.
7390 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7391 internal windows, bug #4122.
7392 (x_non_menubar_window_to_frame): Remove.
7393
5a021dd0
GM
73942009-09-02 Glenn Morris <rgm@gnu.org>
7395
7396 * buffer.c (default-major-mode): Move most of the doc from here...
7397 (major-mode): ... to here.
7398
548fe2f3
NR
73992009-08-30 Nick Roberts <nickrob@snap.net.nz>
7400
7401 * process.c (wait_reading_process_output): Keep the descriptor
7402 when pty is used by a non-child process, e.g., in I/O buffer of
7403 GDB this allows inferior to be restarted.
7404
e0840eef
EZ
74052009-08-29 Eli Zaretskii <eliz@gnu.org>
7406
7407 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7408 both branches into one.
7409
82e98df4
SM
74102009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7411
7412 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7413 (main): Use enable-multibyte-characters rather than
7414 default-enable-multibyte-characters. Output a warning message when
7415 running a unibyte session.
7416
890617cb
YM
74172009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7418
7419 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7420 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7421 (copy_data_segment): Also copy __program_vars section.
7422 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7423 (dump_it) [LC_DYLD_INFO]: Use it.
7424
7425 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7426
e7adeadc
EZ
74272009-08-28 Eli Zaretskii <eliz@gnu.org>
7428
7429 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7430 $(SRC)/buildobj.h.
7431 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7432 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7433 $(SRC)/buildobj.h.
7434 (clean): Add buildobj.h.
7435
3ed8bbdc
TZ
74362009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7437
7438 * print.c (print_object): Set escapeflag to 1 when printing
7439 hashtable keys and values.
7440
155a6764
SM
74412009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7442
7443 * lread.c (read_integer): Use doubles (and potentially return a float
7444 number) as we do in string-to-number.
7445 (read1): Use strtol to read integers, signal errors on strtol's
7446 overflow and use floats if strtol's output is too large for
7447 Elisp integers.
7448
877610de
EZ
74492009-08-27 Eli Zaretskii <eliz@gnu.org>
7450
7451 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7452 (make-buildobj-SH): Fix last change.
7453 (SRC): Move to before where it's first used.
7454
ef73e7be
KH
74552009-08-27 Kenichi Handa <handa@m17n.org>
7456
550c8289
KH
7457 * process.c (send_process): Use encode_coding_object instead of
7458 encode_coding_string to perform eol-conversion even if the string
7459 is unibyte.
7460
60afa08d
KH
7461 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7462 character.
7463
ef73e7be 7464 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 7465 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 7466
7b3a82d7
DN
74672009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7468
5654bf63
DN
7469 * callproc.c (Fcall_process): Remove always true #if.
7470
7b3a82d7
DN
7471 * lisp.h: Replace #if 0 code for checking with text pointing to
7472 the --enable-checking configure flag.
7473
7474 * emacs.c (main): Mention the --enable-profiling configure flag
7475 instead of using CFLAGS.
7476
878bde49
KR
74772009-08-26 Ken Raeburn <raeburn@raeburn.org>
7478
7479 * Makefile.in (buildobj.h): New target.
7480 (doc.o): Depend on it.
7481 (temacs${EXEEXT}): Don't generate buildobj.lst.
7482 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7483 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7484 ($(BLD)/doc.$(O)): Depend on it.
7485 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7486 provided by Eli Zaretskii.)
7487 ($(TEMACS)): Don't generate buildobj.lst.
7488 * doc.c: Include buildobj.h.
7489 (buildobj): New static variable.
7490 (Fsnarf_documentation): Use it, instead of opening and reading
7491 buildobj.lst.
7492
1574224c
MA
74932009-08-25 Michael Albinus <michael.albinus@gmx.de>
7494
7495 * dbusbind.c (Fdbus_call_method)
7496 (Fdbus_call_method_asynchronously): Use English numeric format for
7497 timeout values in doc string.
7498
d9da2f45
KH
74992009-08-25 Kenichi Handa <handa@m17n.org>
7500
ef73e7be
KH
7501 * alloc.c (mark_char_table): New function.
7502 (mark_object): Use mark_char_table for a char-table.
7503
d9da2f45
KH
7504 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7505 (CHAR_TABLE_REF): Use it.
7506
c8edcc01
KR
75072009-08-23 Ken Raeburn <raeburn@raeburn.org>
7508
7509 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7510 before invoking the newly build emacs to check for load-path
7511 shadowing.
7512
7763401b
GM
75132009-08-22 Glenn Morris <rgm@gnu.org>
7514
7515 * Makefile.in (bootstrap_exe): New variable.
7516 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7517 Use ${bootstrap_exe}.
7518
729eadda
EZ
75192009-08-22 Eli Zaretskii <eliz@gnu.org>
7520
7521 * coding.h (encode_coding_string): Don't encode unibyte strings.
7522 (Bug#4047)
7523
eb4c6ace
MA
75242009-08-22 Michael Albinus <michael.albinus@gmx.de>
7525
7526 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7527
7528 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7529 intended as hotfix only.
7530 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7531
36e34d1b
AR
75322009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7533
7534 * nsterm.m (ns_get_color): Update documentation properly for last
7535 change, and clean up loose ends in the code left by it. Fix
7536 longstanding bug with 16-bit hex parsing, and add support for
7537 yet another X11 format (rgb:r/g/b) for compatibility.
7538 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7539 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7540
f983eb8a
SM
75412009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7542
7543 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7544
3f56d3c6
MA
75452009-08-20 Michael Albinus <michael.albinus@gmx.de>
7546
7547 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7548 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7549 (xd_initialize, xd_pending_messages): Check, whether
7550 $DBUS_SESSION_BUS_ADDRESS is set.
7551
fb641d68
YM
75522009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7553
7554 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7555
7556 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7557
cf59a374
GM
75582009-08-20 Glenn Morris <rgm@gnu.org>
7559
7560 * emacs.c (system-type): Doc fix.
7561
1373f3be
SM
75622009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7563
7564 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7565 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7566
058ed861
MA
75672009-08-18 Michael Albinus <michael.albinus@gmx.de>
7568
1373f3be
SM
7569 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7570 New functions.
058ed861
MA
7571 (xd_initialize): Revert change from 2009-08-16.
7572
563a866e 75732009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
7574
7575 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 7576 font-group vector, return nil.
5fc05db0 7577
e42bdf01
CY
75782009-08-17 Chong Yidong <cyd@stupidchicken.com>
7579
7580 * process.c (status_notify): Don't perform redisplay.
7581 (Fdelete_process, list_processes_1, process_send_signal):
7582 Expliticly perform redisplay.
7583 (wait_reading_process_output): Always check process status, but
7584 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7585
4230ab74
KR
75862009-08-17 Ken Raeburn <raeburn@raeburn.org>
7587
1373f3be 7588 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
7589 (XFLOAT_INIT): New macro for storing a float value.
7590 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7591 * fns.c (sxhash): Copy out the value of a float in order to
7592 examine its bytes.
7593 * dbusbind.c (xd_append_arg): Likewise.
7594
4230ab74
KR
7595 * emacs.c (main): Don't call syms_of_data twice.
7596
a0645cdd
MA
75972009-08-16 Michael Albinus <michael.albinus@gmx.de>
7598
7599 * dbusbind.c (xd_initialize): Add connection file descriptor to
7600 input_wait_mask, in order to let select() detect, whether a new
7601 message has been arrived.
ca4f31ea 7602 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 7603
485db0ba
MA
76042009-08-15 Michael Albinus <michael.albinus@gmx.de>
7605
1373f3be
SM
7606 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7607 New functions.
485db0ba
MA
7608
7609 * lisp.h (xd_pending_messages): Declare.
7610
7611 * keyboard.c (readable_events): Call xd_pending_messages.
7612
b5b98ff4
CY
76132009-08-15 Chong Yidong <cyd@stupidchicken.com>
7614
1373f3be 7615 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 7616
f8354c6e
CY
7617 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7618
b5b98ff4
CY
7619 * buffer.c (set_buffer_internal_1)
7620 (swap_out_buffer_local_variables): Check for unbound local
7621 variables (Bug#4138).
7622
8b9fc636
EZ
76232009-08-14 Eli Zaretskii <eliz@gnu.org>
7624
7625 * process.c (create_pty): Fix last change.
7626
ce959360
CY
76272009-08-13 Chong Yidong <cyd@stupidchicken.com>
7628
7629 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7630 (xbm_load_image): Caller changed.
64b807c9 7631 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 7632
c7baf7e9
NR
76332009-08-13 Nick Roberts <nickrob@snap.net.nz>
7634
7635 * process.c (create_pty): New function.
7636 (Fstart_process): Use it to allow Emacs to just associate a pty
7637 with the buffer. See associated change in gdb-mi.el.
7638 (list_processes_1): Deal with no program name.
7639 (start_process_unwind): Use pid == -2 to mean no process.
7640
1ac9108a
SM
76412009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7642
7643 * cmds.c (nonundocount): New global variable.
7644 (keys_of_cmds): Initialize it.
7645 (Fself_insert_command): Use it to combine upto 20 sequential chars
7646 into a single undo entry, just like the Qself_insert_command code in
7647 keyboard.c does.
7648 Call frame_make_pointer_invisible, also like the Qself_insert_command
7649 code in keyboard.c does.
7650 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7651 than its own local replacement for it.
7652
e267324c
KR
76532009-08-10 Ken Raeburn <raeburn@raeburn.org>
7654
1ac9108a 7655 * fns.c (concat): Don't re-set string length to its current value.
77437343 7656
1ac9108a
SM
7657 * coding.h (decode_coding_string, encode_coding_string):
7658 Use SBYTES macro.
f0bed503 7659
1ac9108a 7660 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
7661 (doprnt): Merge with doprnt1, discarding lispstrings code.
7662 * lisp.h (doprnt_lisp): Don't declare.
7663
416e006d
JL
76642009-08-07 Juri Linkov <juri@jurta.org>
7665
7666 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7667
6f7d5780
DN
76682009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7669
7670 * print.c (syms_of_print): Undo previous change.
7671
f19a0f5b
TZ
76722009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7673
7674 * lread.c (read1, syms_of_lread): Read hashtables back from the
7675 readable format.
7676
7677 * print.c (print_preprocess, print_object): Print hashtables fully
7678 and readably.
7679 (syms_of_print): Provide 'hashtable-print-readable.
7680
b9173dc2
AR
76812009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7682
7683 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7684 no family set.
7685 (nsfont_open): Handle case when entity has no family.
7686
1586503c
AR
76872009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7688
7689 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7690 element, not a list, for match case.
7691
087048cd
KH
76922009-07-28 Kenichi Handa <handa@m17n.org>
7693
7694 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7695 rigidly.
7696
7697 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7698 font_parse_xlfd. Check font properties more rigidly.
7699
780c2506
DN
77002009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7701
31fd7c5c
JB
7702 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7703 bsd-common.h.
780c2506 7704
a8c0cc18
KH
77052009-07-27 Kenichi Handa <handa@m17n.org>
7706
7707 * xfaces.c (face_with_height): Call font_clear_prop.
7708
4fbe2306
CY
77092009-07-26 Chong Yidong <cyd@stupidchicken.com>
7710
111d9af3
CY
7711 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7712
7713 * xterm.c (x_term_init): Use Qx.
7714
4fbe2306
CY
7715 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7716
1ac9108a 7717 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
7718 (ns_get_color): Revert 2009-07-16 change.
7719
beb0b7f9
EZ
77202009-07-25 Eli Zaretskii <eliz@gnu.org>
7721
7722 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 7723 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 7724
2baf5e76
KR
77252009-07-25 Ken Raeburn <raeburn@raeburn.org>
7726
1ac9108a
SM
7727 * coding.h (decode_coding_string, encode_coding_string):
7728 Use SCHARS macro.
8890e5f5 7729
2baf5e76 7730 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 7731 (load_depth): Delete.
2baf5e76
KR
7732 (Qload_in_progress): New variable.
7733 (load_unwind): Don't reference load_depth or load_in_progress.
7734 (Fload): Likewise; specbind Qload_in_progress instead.
7735 (init_lread): Don't initialize load_depth.
7736 (syms_of_lread): Initialize and protect Qload_in_progress.
7737
1395c6f5
AR
77382009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7739
7740 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7741
4e2f36cf
AR
77422009-07-23 Yavor Doganov <yavor@gnu.org>
7743
7744 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7745
5dd9a6f7
AR
77462009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7747
7748 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
7749 Bugs 3792, 3720, 2402.
7750 (ns_lookup_indexed_color): Check for bad index.
7751 (ns_index_color): Init unused slot to 0.
7752 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7753 Bug 3714, possibly 3082.
5dd9a6f7 7754
c902b920
JR
77552009-07-22 Jason Rumney <jasonr@gnu.org>
7756
1ac9108a
SM
7757 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7758 Position IME window at cursor (Bug#2570).
c902b920
JR
7759 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7760 (globals_of_w32fns): Dynamically load functions required above.
7761
7762 * w32term.c (w32_draw_window_cursor): Send message to reposition
7763 any IME window.
7764
090101cf
CY
77652009-07-21 Chong Yidong <cyd@stupidchicken.com>
7766
7767 * fileio.c: Revert 2009-07-16 changes.
7768 (Vauto_save_include_big_deletions): New variable.
7769 (Fdo_auto_save): Disable auto-save only if
7770 auto-save-include-big-deletions is nil.
7771
e6583e3d
CY
77722009-07-21 Chong Yidong <cyd@stupidchicken.com>
7773
7774 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7775 the overflowed pixels into account (Bug#3879).
7776
ece435a5
KR
77772009-07-21 Ken Raeburn <raeburn@raeburn.org>
7778
7779 * lread.c (load_depth): New variable.
7780 (Fload, load_unwind, init_lread): Set it to the load recursion
7781 depth; set load_in_progress as a simple boolean based on the
7782 current load_depth. (Bug#3892)
7783
40b2d973
AR
77842009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7785
7786 * nsfont.m (ns_has_attribute): Remove.
7787 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7788
10be7e0d
JL
77892009-07-18 Juri Linkov <juri@jurta.org>
7790
7791 * process.c (Fset_process_query_on_exit_flag): Mention killing
7792 a buffer in docstring.
7793
fa055055
KH
77942009-07-17 Kenichi Handa <handa@m17n.org>
7795
7796 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7797
042f7b69
YM
77982009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7799
7800 * nsfns.m (Fns_set_alpha): Remove function.
7801 (syms_of_nsfns): Don't defsubr it.
7802
7803 * nsterm.m (ns_get_color): Remove incompatible color formats.
7804 (ns_color_to_lisp): Generate #rrggbb color format string.
7805
4be941e3
RS
78062009-07-16 Richard Stallman <rms@gnu.org>
7807
7808 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7809 (Fset_buffer_auto_saved): Handle save_length = -2.
7810
4e6b227d
CY
78112009-07-16 Chong Yidong <cyd@stupidchicken.com>
7812
7813 * xterm.c (Qx_gtk_map_stock): New var.
7814
7815 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7816 of calling intern each time.
7817
a1856973
YM
78182009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7819
7820 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7821 does tiling.
7822
7823 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7824
497e54d8
KH
78252009-07-14 Kenichi Handa <handa@m17n.org>
7826
72d36834
KH
7827 * font.c (font_vconcat_entity_vectors): New function.
7828 (struct font_sort_data): New member font_driver_preference.
7829 (font_compare): Check font_driver_preference.
7830 (font_sort_entities): The format of the first argument changed.
7831 (font_delete_unmatched): Likewise.
7832 (font_list_entities): The return type changed.
7833 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
7834 (font_find_for_lface): Adjuste for the above changes.
7835 Don't suppress the checking of C even if the repertory supports it.
7836 (Flist_fonts): Adjust for the above changes.
72d36834 7837
1ac9108a
SM
7838 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7839 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
7840 Reject a font who has adstyle property that is different from a
7841 langname derived from registry property.
1ac9108a 7842 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 7843
b6046155
EZ
78442009-07-13 Eli Zaretskii <eliz@gnu.org>
7845
7846 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7847 local copy of dirfilename.
7848
fb6b6049
KH
78492009-07-13 Kenichi Handa <handa@m17n.org>
7850
e2402a5e
KH
7851 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7852 against max_char.
7853
fb6b6049
KH
7854 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7855 calling XSYMBOL (sym).
7856
65156807
EZ
78572009-07-11 Eli Zaretskii <eliz@gnu.org>
7858
1ac9108a
SM
7859 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7860 New function.
7861 (directory_files_internal) [WINDOWSNT]:
7862 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
7863 the filesystem of the directory is fast or slow.
7864
7865 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7866 file name.
7867 (is_slow_fs): New function.
7868 (stat): Use it to determine whether to issue more system calls to
7869 get accurate file attributes, when w32-get-true-file-attributes is
7870 `local'.
7871
e0ab5fcf
JD
78722009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7873
7874 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7875 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7876 parameter font-parameter as default to the font dialog.
7877
784ceded
KH
78782009-07-10 Kenichi Handa <handa@m17n.org>
7879
7880 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7881
fb8edc0b
EZ
78822009-07-09 Eli Zaretskii <eliz@gnu.org>
7883
1ac9108a 7884 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7885
fb8edc0b
EZ
7886 * w32.c (stat): Treat UNC file names as residing on remote
7887 drives. (Bug#3542)
7888
635c75b1
KH
78892009-07-09 Kenichi Handa <handa@m17n.org>
7890
7891 * fontset.c (fontset_find_font): Fix previous change.
7892
c1d5ce94
MA
78932009-07-08 Michael Albinus <michael.albinus@gmx.de>
7894
7895 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7896 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7897 error flag.
7898
edb61b39
KH
78992009-07-08 Kenichi Handa <handa@m17n.org>
7900
374bf7e4
KH
7901 * fontset.c (fontset_find_font): Fix the logic of handling
7902 charset_matched.
7903 (font_for_char): Delete unused var.
7904 (generate_ascii_font_name): Delete it.
7905
edb61b39
KH
7906 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7907
7908 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7909 (encode_coding_sjis): Fix the code range check.
7910
0f3f018c
CY
79112009-07-07 Chong Yidong <cyd@stupidchicken.com>
7912
7913 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7914 (Fexpand_file_name): Copy string data properly (Bug#3772).
7915
fcaf6f3a
JD
79162009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7917
7918 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7919 first MapNotify.
7920
6809ca75
KH
79212009-07-07 Kenichi Handa <handa@m17n.org>
7922
7923 * character.h (unibyte_has_multibyte_table): Delete extern.
7924 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7925
7926 * charset.c (Fset_charset_priority): Update charset_unibyte.
7927 (syms_of_charset): Initialize charset_unibyte.
7928
7929 * character.c (unibyte_has_multibyte_table): Delete it.
7930 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7931 charset_unibyte.
7932 (multibyte_char_to_unibyte_safe): Likewise.
7933 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7934
1ac9108a 7935 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
7936 (x_produce_glyphs): Likewise.
7937
7938 * .gdbinit (xcharset): Fix the treating $arg0.
7939
ad9e2d54
EZ
79402009-07-04 Eli Zaretskii <eliz@gnu.org>
7941
7942 Emulation of `getloadavg' on MS-Windows.
50426a04 7943 * w32.c: Include float.h.
ad9e2d54
EZ
7944 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7945 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7946 (get_native_system_info, get_system_times): New functions.
7947 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7948 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7949 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7950 g_b_init_get_system_times, and num_of_processors.
7951
0a3472c7
JR
79522009-07-03 Jason Rumney <jasonr@gnu.org>
7953
7954 * w32term.c (w32_initialize): Use standard types.
7955
80904120
EZ
79562009-07-03 Eli Zaretskii <eliz@gnu.org>
7957
7958 * dired.c (Ffile_attributes): Decode user and group names by the
7959 locale's encoding. (Bug#3443)
7960
6978862d
DN
79612009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7962
f8d23104
DN
7963 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7964 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7965
7966 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7967
7968 * term.c (init_tty): Remove spurious #ifdef.
7969
6978862d
DN
7970 * m/mips.h: Mention this file is also used for netbsd.
7971 * m/pmax.h: Remove file.
7972
e044e4fc
JD
79732009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7974
7975 * xterm.h (struct x_display_info): Add invisible_cursor.
7976 (struct x_output): Add current_cursor.
7977
7978 * xterm.c (XTtoggle_invisible_pointer): New function.
7979 (x_define_frame_cursor): Don't define cursor if invisible or the
7980 same as before. Set current_cursor.
7981 (x_create_terminal): Set toggle_invisible_pointer_hook.
7982
7983 * xfns.c (make_invisible_cursor): New function.
7984 (x_set_mouse_color): Call make_invisible_cursor.
7985 Set current_cursor.
7986 (x_window): Set current_cursor.
7987
7988 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7989
7990 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7991 inserting a character.
7992 (read_avail_input): Call frame_make_pointer_visible.
7993
7994 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
7995 (frame_make_pointer_invisible, frame_make_pointer_visible):
7996 New functions.
e044e4fc
JD
7997 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7998
7999 * frame.h: Declare frame_make_pointer_invisible and
8000 frame_make_pointer_visible.
8001 (struct frame): Add pointer_invisible.
8002
574c8efa
JD
80032009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8004
7b507248
JD
8005 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8006 frame isn't visible.
8007 (xg_frame_resized): If width/height is -1, get size of window
8008 from X server.
8009
8010 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8011 for MapNotify.
8012
835bdaa7 8013 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 8014 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 8015 (flush_and_sync): Reintroduce.
574c8efa 8016
3f1c6666 80172009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 8018
31fd7c5c 8019 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
8020
8021 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8022 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8023
8024 * frame.h: Declare Qsticky.
8025
cad9ef74
JD
8026 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8027
8028 * nsfns.m (ns_frame_parm_handlers): Ditto.
8029
8030 * frame.c: Declare Qsticky.
8031 (frame_parms): Add sticky.
8032
8033 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8034
8035 * xterm.h: Declare x_set_sticky.
8036
8037 * xterm.c (x_set_sticky): New function.
8038
69b16610
JD
8039 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8040 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8041 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
8042
8043 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8044
8045 * frame.c: Qmaximized is new.
8046 (x_set_frame_parameters): Do not handle fullscreen specially.
8047 Only set width and height if explicitly set.
8048 (x_set_fullscreen): Handle Qmaximized.
8049 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8050 (syms_of_frame): Initialize Qmaximized.
8051
1ac9108a
SM
8052 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8053 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
8054
8055 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
8056 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8057 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
8058 set gravity to NorthWestGravity when USE_GTK.
8059 (set_wm_state): New function.
31fd7c5c 8060 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
8061 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8062 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 8063 or the case when no window manager is running. That means remove calls
3f1c6666
JD
8064 to x_real_positions and x_fullscreen_adjust.
8065
8066 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8067 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8068 flush_and_sync.
8069 (xg_height_changed): New function.
8070 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
8071 and gtk_window_set_policy. Set frame gravity after parsing the
8072 geometry string.
3f1c6666
JD
8073 (xg_update_frame_menubar, free_frame_menubar)
8074 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8075 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8076 Remove calls to xg_frame_set_char_size.
8077
fd503d99
KH
80782009-07-01 Kenichi Handa <handa@m17n.org>
8079
8080 * keyboard.c (decode_keyboard_code): New function.
8081 (tty_read_avail_input): Decode the input bytes if necessary.
8082
1ac9108a
SM
8083 * coding.c (setup_coding_system):
8084 Initialize coding->carryover_bytes to 0.
fd503d99
KH
8085 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8086 use Qno_conversion.
8087
24ed93fb
YM
80882009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8089
8090 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8091
99061dfc
CY
80922009-06-30 Chong Yidong <cyd@stupidchicken.com>
8093
1ac9108a 8094 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 8095
ff90fbde
JR
80962009-06-30 Jason Rumney <jasonr@gnu.org>
8097
8098 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8099 is already loaded.
8100 Set user model ID if supported (bug#1849).
8101
5f445726
JM
81022009-06-29 Jim Meyering <meyering@redhat.com>
8103
8104 Remove useless if-before-xfree test.
8105 * nsfont.m (nsfont_close): Remove useless test.
8106 * term.c (delete_tty): Likewise.
8107 * w32.c (system_process_attributes): Likewise.
8108 * w32font.c (w32font_close): Likewise.
8109 * xfaces.c (x_free_gc): Likewise.
8110 * xselect.c (buffer): Likewise.
8111
b9607587
AS
81122009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8113
8114 * process.c (send_process): Keep decoded string in a local
8115 variable and protect it from GC. (Bug#3521)
8116
89ba96f4
EZ
81172009-06-28 Eli Zaretskii <eliz@gnu.org>
8118
8119 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8120 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8121
098a1589
CY
81222009-06-28 Chong Yidong <cyd@stupidchicken.com>
8123
485422be
CY
8124 * xdisp.c (start_display, handle_face_prop)
8125 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
8126 (redisplay_window, try_window_id, produce_image_glyph):
8127 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 8128
098a1589
CY
8129 * xterm.c (x_update_window_begin, x_new_focus_frame)
8130 (x_scroll_bar_handle_click, handle_one_xevent)
8131 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8132 (x_make_frame_visible, x_make_frame_invisible)
8133 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8134 code chunks that are now obsolete.
8135
78c38319
MA
81362009-06-28 Michael Albinus <michael.albinus@gmx.de>
8137
8138 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8139 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8140 for hours, when optimzation is enabled.
8141 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8142 (xd_read_message): Make them static.
8143
4189ed40
CY
81442009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8145
8146 * term.c (turn_on_face): Allow simultaneously bold and dim
8147 terminal faces (Bug#3530).
8148
cd9b5e16
CY
81492009-06-27 Chong Yidong <cyd@stupidchicken.com>
8150
4e23bedb
CY
8151 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8152
cd9b5e16
CY
8153 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8154 truncation glyphs (Bug#3686).
8155
07cc3c35
GM
81562009-06-27 Glenn Morris <rgm@gnu.org>
8157
8158 * m/pmax.h: Restore file, with only netbsd portions.
8159
31fd7c5c 81602009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 8161
cd9b5e16 8162 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 8163
42d4a64f
KH
81642009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8165
8166 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8167 the arg FORCE_SYMBOL.
8168
930fe55b 81692009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
8170
8171 * fontset.c (fontset_find_font): When a usable rfont_def is found
8172 in a fallback font-group, make it the first element of the group.
8173
57ebc3fd
CY
81742009-06-24 Chong Yidong <cyd@stupidchicken.com>
8175
8176 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8177
f084f942
KH
81782009-06-24 Kenichi Handa <handa@m17n.org>
8179
8180 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8181 set for C.
8182 (fontset_font): Record the availability of a font for C both in
8183 the realized fontsets of the current one and the default one.
8184
2f686c87
DN
81852009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8186
8187 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8188 conditional, it is always defined on AIX.
8189
666e158e
MB
81902009-06-23 Miles Bader <miles@gnu.org>
8191
8192 * window.c (Vrecenter_redisplay): New variable.
8193 (syms_of_window): Initialize it.
8194 (Qtty): New extern declaration.
8195 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8196
c6da7cd2
JM
81972009-06-23 Jim Meyering <meyering@redhat.com>
8198
1ac9108a
SM
8199 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8200 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 8201 pointer dereferences are guaranteed to be valid.
c6da7cd2 8202
678dca3d
KH
82032009-06-23 Kenichi Handa <handa@m17n.org>
8204
74d75424
KH
8205 * emacs.c (main): Call init_font ().
8206
8207 * font.h (Vfont_log): Extern it.
8208 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8209
8210 * font.c (font_sort_entities, font_list_entities)
8211 (font_matching_entity, font_open_entity)
8212 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8213 (Vfont_log): Delete static.
8214 (font_log_env_checked): Delete this variable.
8215 (font_add_log): Don't check font_log_env_checked.
8216 (font_deferred_log): Check Vfont_log.
8217 (init_font): New function.
8218
678dca3d
KH
8219 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8220
8221 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8222
8223 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8224
8225 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8226
8227 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8228 (face_for_char): Don't call font_deferred_log here.
8229 (font_for_char): Likewise.
8230
8a668709
CY
82312009-06-22 Chong Yidong <cyd@stupidchicken.com>
8232
9a01ee33
CY
8233 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8234 rather than its background_width for drawing the overline and
8235 underline (Bug#489).
8236
8237 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8238 rather than its background_width for drawing the overline and
8239 underline (Bug#489).
ec7c9926
CY
8240 (xg_default_icon_file): New variable.
8241 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8242 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 8243
8a668709
CY
8244 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8245 (load_overlay_strings): Remove externs.
8246 (fast_find_position): Function deleted.
8247 (mouse_face_from_buffer_pos): New function, based on
8248 fast_find_position. Correctly handle before-strings,
8249 display-strings, and after-strings (Bug#1220).
8250 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8251
4d4c02d8
CY
82522009-06-21 Chong Yidong <cyd@stupidchicken.com>
8253
1ac9108a 8254 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
8255 (move_it_in_display_line_to, move_it_in_display_line_to)
8256 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8257
70243478
CY
82582009-06-21 Chong Yidong <cyd@stupidchicken.com>
8259
8260 * Branch for 23.1.
8261
13087e59
JR
82622009-06-21 Jason Rumney <jasonr@gnu.org>
8263
8264 * w32term.c (keyboard_codepage): New static variable.
8265 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8266 (w32_read_socket) [WM_CHAR]: Use it to decode character
8267 input (bug#3237).
8268 (w32_initialize): Initialize it.
8269 (codepage_for_locale): New function.
8270
4735b74e
KR
82712009-06-20 Ken Raeburn <raeburn@raeburn.org>
8272
8273 * process.c (status_message): Pass Faset index argument as a lisp
8274 object, so as to work with USE_LISP_UNION_TYPE.
8275
0e727afa
YM
82762009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8277
8278 * coding.c (Ffind_coding_systems_region_internal):
8279 Cache checked characters.
8280
cf299835
KH
82812009-06-18 Kenichi Handa <handa@m17n.org>
8282
1ac9108a 8283 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 8284
90f20d94
AS
82852009-06-18 Andreas Schwab <aschwab@redhat.com>
8286
8287 * xdisp.c (redisplay_internal): Check that the frame is still
8288 live after redisplay of its windows.
8289 (redisplay_windows): Check that the window is still live.
8290
7f1faf1c
KH
82912009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8292
8293 * coding.c (detect_coding_utf_16): Fix previous change.
8294
cc13543e
KH
82952009-06-16 Kenichi Handa <handa@m17n.org>
8296
8297 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8298 UTF-16 by checking the dispersion of Eth and Oth bytes.
8299
977b85f4
AS
83002009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8301
8302 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8303
66bd43d1
KH
83042009-06-15 Kenichi Handa <handa@m17n.org>
8305
8306 * process.c (status_message): Fix previous change. Be sure to
8307 decode a localized string.
8308
cb5ca9c5
YM
83092009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8310
8311 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8312 add comment explaining why.
8313
ec7709ba 83142009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 8315
ec7709ba 8316 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 8317
4b7f335c
AR
83182009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8319
8320 * nsfont.m (ns_attribute_value): Remove.
8321 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8322 (ns_has_attribute): Shrink the normal range.
8323 (ns_findfonts): Don't worry about requested spec in determining
8324 need for synthItal.
e41820ee 8325 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 8326
73b26103
SZ
83272009-06-14 Seiji Zenitani <zenitani@mac.com>
8328
8329 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8330
5753e4da
KH
83312009-06-11 Kenichi Handa <handa@m17n.org>
8332
8333 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8334 overhang for the static composition case.
8335
3561b671
KH
83362009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8337
5753e4da
KH
8338 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8339 overhang for the automatic composition case.
8340
3561b671
KH
8341 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8342 composition case.
8343
852bbd41
CY
83442009-06-10 Chong Yidong <cyd@stupidchicken.com>
8345
8346 * xdisp.c (get_next_display_element): When handling wrap-prefix
8347 and line-prefix, treat \n as a control character (bug#3502).
8348
9903d1e6
KH
83492009-06-10 Kenichi Handa <handa@m17n.org>
8350
8351 * font.c (font_parse_family_registry): Fix for one-char foundry.
8352 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8353
0bcbaaaa
CY
83542009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8355
8356 * process.c (status_message): Fix handling of multibyte signal
8357 string (Bug#3499).
8358
40aa3f13
JM
83592009-06-09 Jim Meyering <meyering@redhat.com>
8360
1f80c7e2
CY
8361 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8362 color name is missing.
40aa3f13 8363
72d51285
KH
83642009-06-09 Kenichi Handa <handa@m17n.org>
8365
8366 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8367 FROM-CODE and TO-CODE are codepoints of CHARSET.
8368
c1d04d84
AR
83692009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8370
8371 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8372
83732009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8374
8375 Changes to support :script/:lang/:otf in NS font driver.
8376 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8377 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8378 indicate not part of font driver interface, and change callers.
8379 (ns_get_family): Remove pointless null check.
8380 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8381 ns_spec_to_descriptor, ns_descriptor_to_entity.
8382 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8383 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8384 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8385 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8386 (ns_get_req_script, ns_accumulate_script_ranges)
8387 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8388 New functions.
8389 (nsfont_list, nsfont_match): Use ns_findfonts.
8390 (nsfont_open): Use font descriptor instead of traits.
8391 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8392 (dump_glyphstring): Rename to ns_dump_glyphstring.
8393
c7eb9816
AR
8394 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8395
c1d04d84
AR
8396 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8397
8398 * fontset.c (fontset_from_font): Remove NS-specific code.
8399
ec7709ba 84002009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
8401
8402 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8403 nonactive windows.
8404
31fd7c5c 84052009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 8406
1ac9108a 8407 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 8408
68852c13 84092009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
8410
8411 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8412
6756cd1d
CY
84132009-06-07 Chong Yidong <cyd@stupidchicken.com>
8414
8415 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8416 account for the overflowing of newlines into the last glyph on the
8417 display line (Bug#3482).
8418
28bf482a
DR
84192009-06-05 David Reitter <david.reitter@gmail.com>
8420
ec7709ba
JB
8421 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8422 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
8423 Fns_selection_exists_p, Fns_selection_owner_p.
8424
fdb55376
JR
84252009-06-03 Jason Rumney <jasonr@gnu.org>
8426
8427 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8428 available. (Bug#3379)
8429
05129fbe
KH
84302009-05-29 Kenichi Handa <handa@m17n.org>
8431
1ac9108a
SM
8432 * coding.c (get_translation_table):
8433 Check Venable_character_translation.
05129fbe 8434
ec7709ba 84352009-05-26 David Reitter <david.reitter@gmail.com>
15891144 8436
ec7709ba
JB
8437 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8438 (x_make_frame_visible): Move frame to front rather than calling
15891144 8439 ns_raise_frame().
ec7709ba 8440 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 8441 isn't key window.
ec7709ba 8442 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
8443 drawRect may be called by NSView even if the frame is hidden.
8444
ec7709ba
JB
8445 * nsfns.m (Fx_create_frame): Follow other ports in
8446 determining visibility; default to t. Ensure async_visible is set.
15891144 8447
21f73755
EZ
84482009-05-23 Eli Zaretskii <eliz@gnu.org>
8449
8450 * dired.c (Ffile_attributes): Doc fix.
8451
34001e41
CY
84522009-05-22 Chong Yidong <cyd@stupidchicken.com>
8453
8454 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8455
46306a17
SM
84562009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8457
8458 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8459 and xfont_scratch_props.
8460 (syms_of_xfont): Do it here instead.
8461 (xfont_find_ccl_program): Delete, unused.
8462 (xfont_open): Delete unused var `i'.
8463
ef6e0694
KH
84642009-05-21 Kenichi Handa <handa@m17n.org>
8465
8466 * fontset.c (Qlatin): Don't make it static.
8467
46306a17
SM
8468 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8469 New functions.
ef6e0694
KH
8470 (xfont_scripts_cache, xfont_scratch_props): New variables.
8471 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
8472 (xfont_list_pattern): Argument changed. Callers changed.
8473 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
8474 (xfont_list): Don't reject a font spec with :script property.
8475 (xfont_has_char): Fix setting of encoding.
8476 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8477 xfont_scratch_props.
8478
84792009-05-19 Kenichi Handa <handa@m17n.org>
8480
46306a17 8481 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
8482 Callers changed.
8483
84842009-05-18 Kenichi Handa <handa@m17n.org>
8485
8486 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8487
ac71ced7
SM
84882009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8489
8490 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8491 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8492
1c6d1051
YM
84932009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8494
8495 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8496 (x_delete_terminal): Dissociate resource database from display and
8497 then call XrmDestroyDatabase before closing display.
8498
9b9b779c
AR
84992009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8500
8501 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
8502 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8503 whether selected frame is viable before raising it (based on patch
8504 by David Reitter), and improve commentary.
8505 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 8506
cccd42d5
KH
85072009-05-15 Kenichi Handa <handa@m17n.org>
8508
8509 * font.c (Ffont_spec): Check arguments.
8510
337fbd17
CY
85112009-05-14 Chong Yidong <cyd@stupidchicken.com>
8512
8513 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8514 weight when testing attributes (Bug#3282).
8515
47a6002f
JD
85162009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8517
8518 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8519 what we expect to get in the next ConfigureNotify event.
8520
9cb363db
YM
8521 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8522 before Xft one (Bug#1696).
8523
b9126609
CY
85242009-05-07 David Reitter <david.reitter@gmail.com>
8525
8526 * nsfns.m (Fx_display_planes): Compute bitplanes using
8527 NSBitsPerPixelFromDepth (Bug#3207).
8528
27a69fd9
CY
85292009-05-10 Chong Yidong <cyd@stupidchicken.com>
8530
8531 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8532
00f37552
TTN
85332009-05-10 Ulrich Mueller <ulm@gentoo.org>
8534
8535 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8536
2d82a920
DR
85372009-05-07 David Reitter <david.reitter@gmail.com>
8538
ec7709ba
JB
8539 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8540 Respect mouse face background.
2d82a920 8541
46b0d52d
DR
85422009-05-07 David Reitter <david.reitter@gmail.com>
8543
ec7709ba
JB
8544 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8545 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
8546 in ns_update_begin and ns_update_end.
8547
ce1b23bb
SM
85482009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8549
5996e1b7
SM
8550 * nsfns.m (ns_get_screen): Rewrite.
8551 Don't presume selected-frame is of type `ns'.
8552
ba98e3a0
SM
8553 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8554 all drivers.
8555
ce1b23bb
SM
8556 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8557
bcda200f
YM
85582009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8559
8560 * keyboard.h (add_user_signal): Fix typo in extern.
8561
8562 * lisp.h (add_user_signal): Remove extern.
8563
8564 * unexelf.c (unexec): Consider a section to precede the .bss section
8565 if its addresses overlap that of .bss.
8566 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8567 instead of dumping process.
8568
864660a2
SM
85692009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8570
8571 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8572
50da4e56
SM
85732009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8574
8575 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8576
51520a1a
DN
85772009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8578
8579 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8580 any statements.
8581
409ea3a1
AS
85822009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8583
59c4c60f
AS
8584 * process.c (read_process_output): Make sure the current buffer is
8585 always restored.
8586
409ea3a1
AS
8587 * coding.c (record_conversion_result): Don't modify
8588 Vlast_code_conversion_error for successful result.
8589 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8590
56f00ed2
KH
85912009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8592
8593 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 8594 (load_charset_map): Remove unnecessary code.
56f00ed2 8595
4491c9d2
DR
85962009-04-30 David Reitter <david.reitter@gmail.com>
8597
35f5b128 8598 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
8599 through f24.
8600
6970f632
CY
86012009-04-30 Chong Yidong <cyd@stupidchicken.com>
8602
8603 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8604
8605 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8606 face_at_buffer_position.
8607 (face_before_or_after_it_pos, get_next_display_element)
8608 (note_mouse_highlight): Update face_at_buffer_position call.
8609
8610 * term.c (term_mouse_highlight):
8611 * msdos.c (IT_note_mouse_highlight):
8612 * fontset.c (Finternal_char_font):
35f5b128 8613 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
8614
8615 * dispextern.h (face_at_buffer_position): Update prototype.
8616
0c616f63
KH
86172009-04-30 Kenichi Handa <handa@m17n.org>
8618
35f5b128 8619 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 8620
ad3aaf33
AS
86212009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8622
8623 * callproc.c (Fcall_process): Fix GC protection. Make sure
8624 current buffer is always restored.
8625
c3c963a0
YM
86262009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8627
8628 * atimer.c (init_atimer): Also clear stopped_atimers.
8629
8630 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8631
7e3386cb
YM
8632 * process.c (create_process): Clean up merger residues of
8633 2008-07-17 change.
8634
91f68422
CY
86352009-04-29 Ulrich Mueller <ulm@gentoo.org>
8636
8637 * lread.c (Vread_circle): New variable.
8638 (read1): Disable recursive read if Vread_circle is nil.
8639
24b34550
KH
86402009-04-29 Kenichi Handa <handa@m17n.org>
8641
8642 * fontset.h (set_default_ascii_font): Delete extern.
8643
8644 * fontset.c (set_default_ascii_font): Delete this unused function.
8645
8646 * frame.c (x_set_font): When ARG is a font-object, check if the
8647 font-object matches with the ASCII font-spec of the frame's
9c358bda 8648 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 8649
77bf07e1
AS
86502009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8651
8652 * fns.c (Flocale_info): Protect vector from GC during decoding.
8653
8654 * process.c (Fstart_process): Protect argv strings from GC during
8655 encoding.
8656
2c55aacf
AS
86572009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8658
8659 * sysdep.c: Include <ctype.h>.
8660
b892d3c9
DR
86612009-04-27 David Reitter <david.reitter@gmail.com>
8662
35f5b128 8663 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
8664 Remove commented-out code.
8665
9d0644c4
JB
86662009-04-26 Johan Bockgård <bojohan@gnu.org>
8667
8668 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8669
b7053016
JR
86702009-04-25 Jason Rumney <jasonr@gnu.org>
8671
8672 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8673
4e8231f3
YM
86742009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8675
8676 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8677 Swap bytes in short integer if fringe bitmap width > 8.
8678
493dcf2c
KH
86792009-04-23 Kenichi Handa <handa@m17n.org>
8680
8681 * xfaces.c (Fx_list_fonts): If a font size is specified in
8682 PATTERN, set it in returned scalable fonts.
8683
401e9e57
CY
86842009-04-22 Chong Yidong <cyd@stupidchicken.com>
8685
708e05dc
CY
8686 * keyboard.c (Fset_input_meta_mode): Doc fix.
8687
8688 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8689
1ac9108a 8690 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
8691
8692 * coding.c (Fterminal_coding_system): Doc fix.
8693
8694 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8695 (Fx_display_pixel_height, Fx_display_planes)
8696 (Fx_display_color_cells, Fx_server_max_request_size)
8697 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8698 (Fx_display_mm_height, Fx_display_mm_width)
8699 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
8700 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8701 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
8702 (check_x_display_info): Handle terminal objects instead of
8703 terminal ids.
8704
401e9e57
CY
8705 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8706 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
8707 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8708 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 8709
df80c7f0
KH
87102009-04-21 Kenichi Handa <handa@m17n.org>
8711
5a8f12af 8712 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 8713 (font_score): Check AVGWIDTH too.
908567ef 8714
df80c7f0
KH
8715 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8716 worst case.
1ac9108a
SM
8717 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8718 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 8719
705af33f
JR
87202009-04-19 Jason Rumney <jasonr@gnu.org>
8721
8722 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 8723 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
8724
8725 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8726 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8727 get_phys_cursor_geometry.
8728
b71ac3dd 8729 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
8730 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8731 using get_phys_cursor_geometry.
8732
8733 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8734 correctly calculated.
8735
dc2933eb
JD
87362009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8737
1ac9108a
SM
8738 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8739 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
8740 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8741 is deprecated.
8742
973e7849
AS
87432009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8744
8745 * font.c (font_put_frame_data): Use xfree instead of free.
8746
314d66f4
JB
87472009-04-17 Juanma Barranquero <lekktu@gmail.com>
8748
8749 * w32font.c (Qja, Qko): Remove declarations.
8750 (syms_of_w32font): Don't DEFSYM them.
8751
cf702558
CY
87522009-04-17 Chong Yidong <cyd@stupidchicken.com>
8753
8754 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8755
8756 * font.h (Qja, Qko): Extern them.
8757
8758 * ftfont.c (Qja, Qko): Remove declarations.
8759
8760 * xfont.c (Qja, Qko): Remove declarations.
8761
b50504f5
KH
87622009-04-17 Kenichi Handa <handa@m17n.org>
8763
bde25748
KH
8764 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8765 string from a vector to handle Latin-1 characters correctly.
8766
b50504f5
KH
8767 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8768 entity even if the cache hits.
8769
f4646fff
AS
87702009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8771
8772 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 8773 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 8774
e7deaab0
AS
8775 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8776 * lisp.h: Adjust prototypes.
8777
0a0e7d49
CY
87782009-04-16 Chong Yidong <cyd@stupidchicken.com>
8779
8780 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8781 change (Bug#3003).
8782
3c908a57
KH
87832009-04-16 Kenichi Handa <handa@m17n.org>
8784
1ac9108a 8785 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
8786
8787 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8788 adstyle.
8789
8790 * ftfont.c (Qja, Qko): Don't make them static.
8791 (enum ftfont_cache_for): New enum.
8792 (fc_charset_table): Undo the previous change.
8793 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
8794 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8795 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
8796 non-scarable font, try to get AVERAGE_WIDTH.
8797 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8798 Change ft_face_cache from a list of a hash-table. Don't check
8799 `ja' and `ko' adstyle here.
8800 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8801 FTFONT_CACHE_FOR_CHARET.
8802 (ftfont_get_charset): Undo the previous change.
1ac9108a 8803 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
8804 (ftfont_close): Likewise.
8805 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8806
8807 * font.c (font_sort_entites): Change the meaning of the arg
8808 BEST-ONLY. Don't optimize for VEC of lenght 1.
8809 (font_select_entity): Just return the value of font_sort_entites.
8810
8811 * xfaces.c (merge_face_vectors): Reflect font properties in
8812 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8813 font_clear_prop if a face attribute doesn't change.
8814
3c908a57
KH
8815 * charset.h (charset_ksc5601): Extern it.
8816
8817 * charset.c (charset_ksc5601): New variable.
8818 (Fdefine_charset_internal): Set charset_ksc5601.
8819 (init_charset_once): Initialize charset_ksc5601 to -1.
8820
d65859c3
DN
88212009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8822
8823 * fileio.c (history_delete_duplicates): Remove unused declaration.
8824
8825 * callint.c (history_delete_duplicates): New declaration.
8826 (Fcall_interactively): Remove command history duplicates when
8827 history_delete_duplicates is true.
8828
3ba010e5
EZ
88292009-04-14 Eli Zaretskii <eliz@gnu.org>
8830
8831 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8832
06f19b91
KH
88332009-04-14 Kenichi Handa <handa@m17n.org>
8834
8835 * font.c (Ffont_info): Fix docstring. Fix the second element of
8836 the returned value (bug#2949).
8837
2cce8bfc
CY
88382009-04-14 Chong Yidong <cyd@stupidchicken.com>
8839
8840 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8841
d156542d
KH
88422009-04-14 Kenichi Handa <handa@m17n.org>
8843
8844 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8845 encoding charset is ascii_compatible.
8846
8847 * charset.c (Fdefine_charset_internal): Make charset
8848 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8849 code_offset is 0, and covers all ASCII characters.
8850
86fa089e
SM
88512009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8852
8853 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8854 (ns_string_to_pasteboard_internal):
8855 * nsmenu.m (process_dialog):
8856 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8857 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8858 * lisp.h (Fx_load_color_file): Declare.
8859
a8a3728b
KH
88602009-04-13 Kenichi Handa <handa@m17n.org>
8861
1ac9108a 8862 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
8863 (font_select_entity): Suppress the code to optimize for the same
8864 kind of fonts.
8865 (font_load_for_lface): Get a font that supports at least ASCII
8866 characters.
8867
8868 * ftfont.c (Qja, Qko): New variables.
8869 (fc_charset_table): Delete uniquifier data for iso8859-1.
8870 (ftfont_get_latin1_charset): New function.
8871 (get_adstyle_property): New function.
8872 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8873 bitmap fonts.
8874 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8875 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8876 `ko' or `ja'.
8877 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8878 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8879 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8880 property.
8881 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8882 (syms_of_ftfont): DEFSYM Qja and Qko.
8883
483670b5
KH
88842009-04-09 Kenichi Handa <handa@m17n.org>
8885
12b55765
KH
8886 * charset.c (map_charset_chars): For a charset of `superset'
8887 method, fix calculation of code range.
8888
483670b5
KH
8889 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8890 from the list of extra properties.
8891 (font_clear_prop): Be sure to delete `:name' font property.
8892
57d3b93b
KH
88932009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8894
b4b2c2ca
YM
8895 * dispnew.c (redraw_overlapping_rows): Fix detection of
8896 overlapping for topmost and bottommost rows.
8897
1ac9108a 8898 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8899
472c3609
JR
89002009-04-06 Jason Rumney <jasonr@gnu.org>
8901
8902 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8903
ab193662
KH
89042009-04-06 Kenichi Handa <handa@m17n.org>
8905
8906 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8907
8908 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8909
0c26f026
KH
89102009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8911
8912 * ftfont.c (ftfont_open): Fix checking of the return value of
8913 FT_Load_Char. Fix setting font->underline_thickness.
8914
e173bbce
CY
89152009-04-04 Chong Yidong <cyd@stupidchicken.com>
8916
8917 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8918 (Fterminal_parameters, Fterminal_parameter)
8919 (Fset_terminal_parameter): In doc string, refer to terminal
8920 objects rather than terminal ids.
8921
693a2698
EZ
89222009-04-04 Eli Zaretskii <eliz@gnu.org>
8923
8924 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8925 ret_lim_data. (Bug#2867)
8926
d5221487
CY
89272009-04-03 Chong Yidong <cyd@stupidchicken.com>
8928
8929 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8930 so they don't get wider than the window, matching 2006-01-23
8931 change to the partner function in xdisp.c (Bug#2800).
8932
223509a3
KH
89332009-04-03 Kenichi Handa <handa@m17n.org>
8934
8935 * print.c (print_object): Make each lowest sub_char_table start a
8936 new line (Bug#2866).
8937
74fcd0b1
KH
89382009-04-02 Kenichi Handa <handa@m17n.org>
8939
8940 * fontset.c (fontset_font): Record no-font when a fontset
8941 explicitly tells not to try another font-specs.
8942
c542407d
SM
89432009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8944
8945 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8946
e3869731
KH
89472009-03-30 Kenichi Handa <handa@m17n.org>
8948
d8d2f142
KH
8949 * fontset.c (fontset_from_font): Specify only registry in a
8950 font-spec for all characters supported by that registry.
8951
e3869731
KH
8952 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8953 even if HAVE_M17N_FLT is not defined.
8954
5da5f805
CY
89552009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8956
8957 * ftfont.c: Conditionalize prototyping and use of
8958 ftfont_variation_glyphs.
8959
ab226c50
SM
89602009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8961
9628fed7
SM
8962 * frame.c (delete_frame): Work around compiler bug.
8963
8964 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8965 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8966 Some more EMACS_INT.
8967 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8968
8969 * xdisp.c (dump_glyph): Fix typo.
8970
ae19ba7c
SM
8971 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8972 (adjust_markers_gap_motion, adjust_markers_for_delete)
8973 (adjust_markers_for_insert, adjust_point)
8974 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8975 (make_gap, copy_text, count_size_as_multibyte, insert)
8976 (insert_and_inherit, insert_before_markers)
8977 (insert_before_markers_and_inherit, insert_1)
8978 (count_combining_before, count_combining_after, insert_1_both)
8979 (insert_from_string, insert_from_string_before_markers)
8980 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8981 (insert_from_buffer_1, adjust_after_replace)
8982 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8983 (replace_range_2, del_range, del_range_1, del_range_byte)
8984 (del_range_both, del_range_2, modify_region)
8985 (prepare_to_modify_buffer, signal_before_change)
8986 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8987 for buffer positions and sizes.
8988 * lisp.h: Adjust prototypes accordingly.
8989
8990 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8991 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8992 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8993
ab226c50
SM
8994 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8995
46dfb8fb
JD
89962009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8997
8998 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8999 lines and columns so we keep the same pixel height and width.
9000
9001 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9002 the property _NET_WM_STATE has changed.
46dfb8fb
JD
9003 (x_handle_net_wm_state): New function to update frame parameter
9004 fullscreen.
9005 (x_term_init): Initialize atoms for _NET_WM_STATE.
9006
9007 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9008
d347e494
SM
90092009-03-27 Kevin Ryde <user42@zip.com.au>
9010
9011 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9012 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9013 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9014 (Fgpm_mouse_stop): Pass that new parameter.
9015 * termhooks.h (close_gpm): Adjust prototype.
9016
84db11d6
SM
90172009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9018
c95a5008
SM
9019 * lisp.h (Fx_focus_frame): Declare.
9020
84db11d6
SM
9021 * callint.c (Fcall_interactively): For '^' just delegate the work to
9022 handle-shift-selection.
9023 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9024
0a1958d6
CY
90252009-03-24 Chong Yidong <cyd@stupidchicken.com>
9026
0bfdff23
CY
9027 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9028
0a1958d6
CY
9029 * data.c (Qinteractive_form): New variable.
9030 (Finteractive_form): Use it.
9031
9032 * eval.c (Fcommandp): Use Qinteractive_form.
9033
58aec0d6
JR
90342009-03-24 Jason Rumney <jasonr@gnu.org>
9035
9036 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9037 Calculate total size precisely. Decode environment variables
9038 before substituting. (Bug#38)
9039
553dd618
KH
90402009-03-24 Kenichi Handa <handa@m17n.org>
9041
9042 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 9043 encoding (Bug#2722).
553dd618 9044
c39ea606
JD
90452009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9046
9047 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9048 that gdpy is set.
9049
bc9b2b5e
AM
90502009-03-22 Alan Mackenzie <acm@muc.de>
9051
9052 * callint.c (Finteractive): Clarify the doc string - even
9053 promptless elements need \n separators.
9054
9f995a76
JR
90552009-03-22 Jason Rumney <jasonr@gnu.org>
9056
9057 * w32term.c (syms_of_w32term): Doc fix for
9058 x-use-underline-position-properties.
9059
22749e9a
EZ
90602009-03-21 Eli Zaretskii <eliz@gnu.org>
9061
9062 * w32.c (getpwuid): Change argument type to unsigned.
9063 (struct w32_id): Change type of `rid' member to unsigned.
9064 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9065 argument ID to unsigned. All callers changed.
9066 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9067
e00553bf
EZ
90682009-03-20 Eli Zaretskii <eliz@gnu.org>
9069
9070 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9071 negative, produce a float value.
9072
9073 * dired.c (make_uid, make_gid): New functions.
9074 (Ffile_attributes): Use them to avoid negative UID and GID.
9075
f761d6b6
JB
90762009-03-20 Juanma Barranquero <lekktu@gmail.com>
9077
9078 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9079 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9080 Fix typos in docstrings.
9081
d507f8d7
KH
90822009-03-19 Kenichi Handa <handa@m17n.org>
9083
9084 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
9085 changed, use font_load_for_lface to get a new font object.
9086 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
9087
9088 * frame.c (x_set_font): Handle the case that ARG is a cons.
9089
c68845e0
GM
90902009-03-19 Glenn Morris <rgm@gnu.org>
9091
9092 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9093
bfa49dd1
CY
90942009-03-19 Chong Yidong <cyd@stupidchicken.com>
9095
9096 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9097
8458d4c1
KH
90982009-03-19 Kenichi Handa <handa@m17n.org>
9099
9100 * charset.c (load_charset_map_from_file): When a mapfile can't be
9101 loaded, signal an error.
9102
78e7d1fe
EZ
91032009-03-18 Eli Zaretskii <eliz@gnu.org>
9104
9105 * dired.c (Ffile_attributes): Make sure UID and GID are always
9106 positive, even if the value is too large for a positive EMACS_INT.
9107 Doc fix.
9108
9109 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9110
5da9fdfa
YM
91112009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9112
9113 * xmenu.c (xdialog_show): Move Fredisplay call ...
9114 (Fx_popup_dialog): ... here.
9115
7519c40d
SM
91162009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9117
9118 * dired.c (file_name_completion): Disable the first optimization just
9119 installed, since it is not implemented correctly.
9120
2cd298e2
SM
91212009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9122
9123 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 9124 only if the entry can affect bestmatch.
2cd298e2
SM
9125 Stop the search early, as Ftry_completion already does.
9126
48d37adf
CY
91272009-03-17 Chong Yidong <cyd@stupidchicken.com>
9128
e10c9c93 9129 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 9130
9286b16a
CY
91312009-03-15 Chong Yidong <cyd@stupidchicken.com>
9132
9133 * keyboard.c (parse_menu_item): Don't display remappings as menu
9134 equivalent bindings (Bug#788).
9135
f7b146dc
JR
91362009-03-15 Jason Rumney <jasonr@gnu.org>
9137
9138 * w32term.h (WM_EMACS_PAINT): New message.
9139 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9140 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9141 before passing to lisp thread. (Bug#950)
9142
f761d6b6 91432009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 9144
d93f9575
CY
9145 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9146 variable as it was never reset.
9147 (ns_term_init): Remove initialization of Lisp-settable defaults
9148 and ns_expand_space.
9149 (-setPanelFromDefaultValues): Remove ns_expand_space.
9150 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9151 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
9152 i.e. no additional spacing, similar to Carbon port.
9153
d93f9575
CY
9154 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9155 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 9156
305018ec
JD
91572009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9158
9159 * sound.c (alsa_configure): Remove call to deprecated
9160 snd_pcm_sw_params_set_xfer_align.
9161
f761d6b6 91622009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
9163
9164 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9165 after clicking in a detached tool bar.
9166 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9167
46e722a9
SM
91682009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9169
348db3dd
SM
9170 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9171 int/Lisp_Object mixup).
46e722a9 9172
a3d16f39
KH
91732009-03-13 Kenichi Handa <handa@m17n.org>
9174
9175 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 9176 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
9177 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9178 (set_fontset_font): Change ARG to a vector. Handle range_list in
9179 ARG correctly.
9180 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 9181 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
9182 the above change.
9183 (fontset_from_font): Fix previous change.
fe24f56a 9184 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
9185 entry. If FONTSET is the default fontset, don't set the extra
9186 slot of the returning char-table.
9187
b066e6b6
JB
91882009-03-12 Juanma Barranquero <lekktu@gmail.com>
9189
9190 * nsfns.m (Fx_close_connection): Doc fix.
9191 (Fns_do_applescript): Reflow docstring.
9192 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9193 (Fx_display_pixel_width, Fx_display_pixel_height)
9194 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9195 Fix typos in docstrings.
9196 (Fns_set_alpha): Fix typos in error messages.
9197
d472514e 91982009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 9199
d472514e 9200 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
9201 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9202 were used for such events.
9203
d472514e
JB
9204 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9205 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 9206
d472514e 9207 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
9208 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9209
fb930676
KH
92102009-03-11 Kenichi Handa <handa@m17n.org>
9211
ff85581a
KH
9212 * font.h (font_open_by_spec): Extern it.
9213
c50b7e98
KH
9214 * font.c (font_open_by_spec): New function.
9215 (font_open_by_name): Use font_open_by_spec.
9216
fb930676
KH
9217 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9218 fontset of the frame.
9219
9220 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9221 modify the default font of frames that use this fontset.
9222 (num_auto_fontsets): New variable.
9223 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9224 name. Be sure to set FONTSET_ASCII to the correct font name.
9225 (update_auto_fontset_alist): New function.
9226
df4e8455
JB
92272009-03-11 Juanma Barranquero <lekktu@gmail.com>
9228
9229 * makefile.w32-in: Update dependencies.
9230
0a375797
AR
92312009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9232
9233 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9234
61313fa3
SM
92352009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9236
9237 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9238
b55103fb
CY
92392009-03-10 Chong Yidong <cyd@stupidchicken.com>
9240
9241 * lread.c (Feval_buffer): Doc fix.
9242
dde2559c
KH
92432009-03-09 Kenichi Handa <handa@m17n.org>
9244
9245 * charset.c (Qfile_name_handler_alist): Extern it.
9246 (load_charset_map_from_file): Temporarily bind
9247 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9248
df4e8455 92492009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 9250
47f588bb
GM
9251 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9252 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 9253
4ddf94bd
AR
92542009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9255
4c9bdfc2
AR
9256 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9257 (x_set_window_size): Change back to calculated method of setting
9258 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
9259 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9260 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9261
fe41ae9e
AR
9262 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9263
4c9bdfc2
AR
9264 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9265 accelerator in parens under GNUstep.
9266
825d0875
KH
92672009-03-06 Kenichi Handa <handa@m17n.org>
9268
9269 These changes are to detect incorrect composition sequence without
f3b3be74 9270 looking ahead the source. (Bug#2370)
825d0875
KH
9271
9272 * coding.h: Include "composite.h".
9273 (enum compisition_state): New enum.
9274 (struct compisition_status): New struct.
9275 (struct iso_2022_spec): New member cmp_status.
9276 (struct emacs_mule_spec): New struct.
9277 (struct coding_system): New members ctext_extended_segment_len and
9278 embedded_utf_8. Change the union member
9279 spec.emacs_mule_full_support to spec.emacs_mule.
9280
9281 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9282 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 9283 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
9284 (ADD_COMPOSITION_DATA): New arg nbytes.
9285 (emacs_mule_char): New arg cmp_status.
9286 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9287 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9288 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9289 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9290 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9291 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9292 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9293 (EMACS_MULE_COMPOSITION_END): New macro.
9294 (emacs_mule_finish_composition): New function.
9295 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9296 (decode_coding_emacs_mule): Avoid long looking ahead while
9297 handling composition.
9298 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9299 (ENCODE_COMPOSITION_RULE): New macro.
9300 (finish_composition): New function.
9301 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9302 (DECODE_COMPOSITION_START): New implementation.
9303 (DECODE_COMPOSITION_END): Likewise.
9304 (STORE_COMPOSITION_RULE): New macro.
9305 (decode_coding_iso_2022): Avoid long looking ahead while handling
9306 composition, CTEXT extended segment, and embedded UTF-8.
9307 (setup_coding_system): For a coding of type iso-2022, reset
9308 CODING_ISO_EXTSEGMENT_LEN (coding) and
9309 CODING_ISO_EMBEDDED_UTF_8 (coding).
9310 (get_translation): Delete arguments last_block, from_nchars,
9311 to_nchars. Callers changed.
9312 (produce_chars): Don't modify charbuf. Adjusted for the change of
9313 get_translation.
98a326f7 9314 (produce_composition): Adjust for the new annotation sequence.
825d0875 9315 (handle_composition_annotation): Likewise.
98a326f7 9316 (consume_chars): Adjust for the change of get_translation.
825d0875 9317
ccbc4452
AR
93182009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9319
4ddf94bd 9320 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 9321
988a7ddb
KH
93222009-03-05 Kenichi Handa <handa@m17n.org>
9323
9324 * font.c (font_select_entity): New function.
9325 (font_find_for_lface): Use font_select_entity to select a font.
9326
9327 * fontset.c (fontset_find_font): If a font found without
a8a3728b 9328 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
9329 font with C restriction.
9330
98a326f7 93312009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 9332
be1bce46 9333 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 9334
10ea2b82
JR
93352009-03-04 Jason Rumney <jasonr@gnu.org>
9336
2c93b248 9337 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 9338 characters that have already been read. (Bug#2569)
2c93b248 9339
10ea2b82
JR
9340 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9341 Log an error message if check_image_size failed.
9342 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 9343 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 9344
71a0c011
EZ
93452009-03-02 Eli Zaretskii <eliz@gnu.org>
9346
9347 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9348 when decoding process output.
9349
2f63bba8
RS
93502009-03-01 Richard M Stallman <rms@gnu.org>
9351
9352 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9353
9354 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9355
0a9564cb
EZ
93562009-02-28 Eli Zaretskii <eliz@gnu.org>
9357
9358 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9359 (decode_coding_emacs_mule, decode_coding_iso_2022)
9360 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9361 (decode_coding_raw_text, decode_coding_charset)
9362 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9363 Honor inhibit-eol-conversion. (Bug #2186)
9364
449148b3
JR
93652009-02-28 Jason Rumney <jasonr@gnu.org>
9366
9367 * coding.c (detect_coding_charset): If not checking latin extra,
9368 fail on characters between 0x80 and 0xA0. (Bug#2354)
9369
a4aee864
EZ
93702009-02-28 Eli Zaretskii <eliz@gnu.org>
9371
9372 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 9373 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 9374
d88bee5a
GM
93752009-02-27 Glenn Morris <rgm@gnu.org>
9376
9377 * callint.c (Finteractive): Doc fix.
9378
a808f22d
KH
93792009-02-27 Kenichi Handa <handa@m17n.org>
9380
9381 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9382
caf8d60c
CY
93832009-02-27 Chong Yidong <cyd@stupidchicken.com>
9384
9385 * font.c (font_style_to_value): Set value for unknown symbols to
9386 100 instead of 255.
b61137ea
CY
9387 (weight_table, slant_table, width_table): Treat "unspecified" as
9388 the default value.
caf8d60c 9389
1a0de25c
JB
93902009-02-26 Juanma Barranquero <lekktu@gmail.com>
9391
9392 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9393
8fc45744
JB
93942009-02-25 Juanma Barranquero <lekktu@gmail.com>
9395
107bd7d1
JB
9396 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9397 error as soon as a recursive load is detected.
8fc45744 9398
f097e223
AR
93992009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9400
9401 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9402 before caching.
9403
8810a12f
KH
94042009-02-24 Kenichi Handa <handa@m17n.org>
9405
9406 * fontset.c (fontset_find_font): Fix the condition for checking
9407 unavailable font.
9408
2c7d1565
GM
94092009-02-24 Glenn Morris <rgm@gnu.org>
9410
9411 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9412 whitespace that confuses documentation.
9413
a20878b6
MB
94142009-02-23 Miles Bader <miles@gnu.org>
9415
9416 * process.c (Flist_system_processes, Fprocess_attributes)
9417 (syms_of_process): Rename `system-process-attributes' to
9418 `process-attributes'.
9419
b3b58c01
AS
94202009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9421
1b3b981b
AS
9422 * coding.h (struct coding_system): Make safe_charsets a pointer to
9423 unsigned char.
9424 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9425 being 255.
9426 (SAFE_CHARSET_P): Likewise.
9427 (setup_iso_safe_charsets): Properly setup safe_charsets.
9428 (Fdefine_coding_system_internal): Likewise.
9429 (setup_coding_system): Likewise. Remove unneeded casts.
9430 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9431 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9432 unneeded casts.
9433
b3b58c01
AS
9434 * insdel.c (del_range_2): Don't modify gap contents when called
9435 from decode_coding_object. (Bug#1809)
9436
0b6f228c
CY
94372009-02-21 Chong Yidong <cyd@stupidchicken.com>
9438
9439 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9440 Qfont_object.
9441 (Ftype_of): Recognize font objects.
9442
9443 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9444
9445 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9446 moved to data.c.
9447
52f8870b
AR
94482009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9449
9450 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9451 async_iconified. Based on a patch by Christian Lynbech
9452 <christian.lynbech@tieto.com>.
9453 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9454
7087d5e9
GM
94552009-02-20 Glenn Morris <rgm@gnu.org>
9456
9457 * syntax.c (Fskip_chars_forward): Fix doc typo.
9458
41d2ceef
CY
94592009-02-20 Chong Yidong <cyd@stupidchicken.com>
9460
9461 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9462
1a3b7ca6
CY
94632009-02-19 Chong Yidong <cyd@stupidchicken.com>
9464
9465 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9466
73cce38d
KH
94672009-02-19 Kenichi Handa <handa@m17n.org>
9468
9469 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 9470 Don't overflow coding->carryover. (Bug#2370)
73cce38d 9471
a51092ee
DN
94722009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9473
9474 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9475
c423ecca
KH
94762009-02-18 Kenichi Handa <handa@m17n.org>
9477
9478 * font.c (font_check_otf_features): Fix handling of `nil' element.
9479 (Ffont_spec): Describe :lang and :otf in the docstring.
9480
4c1958f4
AS
94812009-02-16 Andreas Schwab <schwab@suse.de>
9482
9483 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9484 string.
9485
5704f39a
KH
94862009-02-16 Kenichi Handa <handa@m17n.org>
9487
9488 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 9489 (Bug#1723)
5704f39a 9490
8f0085aa
CY
94912009-02-14 Chong Yidong <cyd@stupidchicken.com>
9492
a057d86a 9493 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
9494
9495 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9496 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9497
aff01dd9
EZ
94982009-02-14 Eli Zaretskii <eliz@gnu.org>
9499
9500 * msdos.c (MAX_SCREEN_BUF): New macro.
9501 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9502 Encode the entire run of glyphs sharing the same face, instead of
9503 doing that one glyph at a time (fixes a bug with displaying
9504 double-size characters).
9505
ba301db3
AR
95062009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9507
9508 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9509
9510 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9511 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 9512 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
9513
9514 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 9515 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 9516
51d861de
SM
95172009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9518
ac146f82 9519 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
9520 invisible areas.
9521
7fed8996
JR
95222009-02-12 Jason Rumney <jasonr@gnu.org>
9523
631ea4fb
JR
9524 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9525 (add_font_entity_to_list): Call check_face_name even when family
9526 is unspecified.
9527
cb4a3e42
JR
9528 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9529 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 9530 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 9531
7fed8996 9532 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 9533 raster fonts. (Bug#2219)
7fed8996 9534
895416e3
KH
95352009-02-12 Kenichi Handa <handa@m17n.org>
9536
9537 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9538 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9539 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 9540 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9541 (find_automatic_composition): While looking forward and backward,
9542 check static composition. Fix where to stop looking forward.
9543 (composition_adjust_point): Fix checking of static composition.
9544 (Fcomposition_get_gstring): Pay attention to
1dacf998 9545 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9546
9547 * lisp.h (fast_looking_at): Extern it.
9548
9549 * search.c (fast_looking_at): New function.
9550
51d861de 9551 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
9552 <struct glyph>.u.cmp.to.
9553 (append_composite_glyph): Likewise.
9554
51d861de 9555 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
9556 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9557 composition.
51d861de 9558 (append_composite_glyph): Adjust for the change of
895416e3
KH
9559 <strcut glyph>.u.cmp.to.
9560
8510724d
JB
95612009-02-11 Juanma Barranquero <lekktu@gmail.com>
9562
9563 * casetab.c (init_casetab_once):
9564 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9565 * font.c (font_update_lface):
9566 * fontset.c (Fnew_fontset):
9567 * ftfont.c (ftfont_drive_otf):
9568 * xfont.c (xfont_open):
9569 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9570
294fa707
SM
95712009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9572
9573 * fileio.c (Fwrite_region): !NILP -> CONSP.
9574
b5bfebec
AS
95752009-02-10 Andreas Schwab <schwab@suse.de>
9576
9577 * process.c (send_process): Properly relocate pointer into data
adab88bd 9578 when using encoded data. (Bug#2272)
b5bfebec 9579
cb84a2be
KH
95802009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9581
9582 * coding.c (detect_coding_charset): Fix previous change.
9583
89e09428
JR
95842009-02-08 Jason Rumney <jasonr@gnu.org>
9585
9586 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 9587 disappeared while hourglass was displayed. (Bug #2193)
89e09428 9588
4470a277
AS
95892009-02-07 Andreas Schwab <schwab@suse.de>
9590
9591 * unexelf.c (unexec): Fix error message.
9592
3175b12a
AR
95932009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9594
9595 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 9596 when modal window is active. (Bug #2152)
3175b12a
AR
9597 (applicationShouldTerminate:): Remove now-unneeded while loop
9598 around NSRunAlertPanel.
9599
9600 * nsmenu.m (popupSession): New file-global variable.
9601 (pop_down_menu): End the popupSession before closing dialog.
9602 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9603 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9604 don't query NSApp for events (just sleep instead).
9605
8434d0b8
EZ
96062009-02-07 Eli Zaretskii <eliz@gnu.org>
9607
51d861de
SM
9608 * coding.c (syms_of_coding) <translation-table-for-input>:
9609 Modify doc string to discourage use for character code unification.
8434d0b8 9610
aa82edfd
CY
96112009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9612
9613 * atimer.c (run_timers): Update pending_atimers.
9614
2d283c7c
CY
96152009-02-06 Chong Yidong <cyd@stupidchicken.com>
9616
eb306cab
CY
9617 * image.c (svg_load_image): Fix last change.
9618
2d283c7c
CY
9619 * xfns.c (Fx_create_frame): Signal an error if no font is
9620 found (Bug#2147).
9621
4d8e170e
JB
96222009-02-05 Juanma Barranquero <lekktu@gmail.com>
9623
9624 * character.c (syms_of_character) <script-representative-chars>:
9625 Fix typo in docstring.
9626
c96169a0
AR
96272009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9628
9629 * nsmenu.m (pop_down_menu): New function.
9630 (ns_popup_dialog): Call it on unwind.
9631 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9632 call timer_check() (Bug#2154).
9633 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9634 handling_signal is set.
9635 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9636
31fd7c5c 9637 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
9638
9639 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9640
9641 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9642
51d861de
SM
9643 * keyboard.c (poll_for_input_1, handle_async_input):
9644 Set handling_signal under HAVE_NS.
c96169a0 9645
aacd8ba1
GM
96462009-02-04 Glenn Morris <rgm@gnu.org>
9647
9648 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9649
4cb75c4b
KH
96502009-02-04 Kenichi Handa <handa@m17n.org>
9651
9652 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9653
9654 * charset.c (Fchar_charset): New optional arg restriction.
9655
9656 * coding.h (coding_system_charset_list): Extern it.
9657
9658 * coding.c (coding_system_charset_list): New function.
9659
9660 * composite.c: Include coding.h and termhooks.h.
9661 (composition_gstring_p): Fix for the terminal case.
9662 (composition_gstring_width): Likewise.
9663 (fill_gstring_body): Likewise.
9664 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9665 the frame.
9666 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9667 is within a composition.
867d4bb3 9668 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
9669
9670 * term.c (encode_terminal_code): Fix handling of composition.
9671 (produce_composite_glyph): For static composition, get pixel_width
9672 from struct composition.
9673
826ba17e
AS
96742009-02-02 Andreas Schwab <schwab@suse.de>
9675
9676 * unexelf.c (unexec): Handle unaligned bss offset.
9677
8ad093db
AR
96782009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9679
9680 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9681 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 9682
8ad093db
AR
9683 * keyboard.c (handle_interrupt): Don't call
9684 quit_throw_to_read_char() under NS.
d0a76a6e 9685
8ad093db
AR
9686 * blockinput.h: Remove NS-specific code.
9687
4d18a7a2
DN
96882009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9689
db878925
DN
9690 * dispnew.c (window_change_signal): Don't try to get the size of a
9691 suspended tty frame.
9692 * term.c (Fresume_tty): Resize if the size has changed while the
9693 tty was suspended.
9694
4d18a7a2
DN
9695 * alloc.c (mark_stack): Properly conditionalize previous change.
9696
8984df7c
JB
96972009-01-30 Juanma Barranquero <lekktu@gmail.com>
9698
9699 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9700 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9701 Remove; this code is not used on Windows.
9702
75f4f1ac
EZ
97032009-01-30 Eli Zaretskii <eliz@gnu.org>
9704
9705 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9706 EOLs that also has stray ^M characters.
9707
07a1e794
JB
97082009-01-30 Juanma Barranquero <lekktu@gmail.com>
9709
9710 * atimer.c (run_timers, alarm_signal_handler):
9711 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9712 * w32inevt.c (w32_console_read_socket):
9713 * w32term.c (w32_read_socket):
9714 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9715
a8b11cc9
CY
97162009-01-30 Chong Yidong <cyd@stupidchicken.com>
9717
9718 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9719 Initialize it as a relative filename pattern.
9720 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9721 (Fcall_process_region): Simplify temp file creation using
9722 temporary-file-directory.
9723
c279587b
EZ
97242009-01-29 Eli Zaretskii <eliz@gnu.org>
9725
9726 * msdos.c: Rename pending_signals to msdos_pending_signals.
9727 (sig_suspender, sigprocmask): Adjust.
9728
a8fe3242
CY
97292009-01-29 Chong Yidong <cyd@stupidchicken.com>
9730
9731 * keyboard.c (pending_signals): New var.
9732 (poll_for_input, input_available_signal, init_keyboard): Set it.
9733 (process_pending_signals): New function.
9734
9735 * lisp.h (QUIT): Check pending_signals instead of
9736 interrupt_input_pending. Use process_pending_signals.
9737
51d861de 9738 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 9739
51d861de 9740 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
9741
9742 * sysdep.c (emacs_write): Use process_pending_signals.
9743
9744 * xterm.c (XTread_socket): Update pending_signals.
9745
9746 * w32term.c (w32_read_socket): Update pending_signals.
9747
9748 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9749
6570a1c4
KH
97502009-01-29 Kenichi Handa <handa@m17n.org>
9751
9752 * xftfont.c (xftfont_has_char): New function.
9753 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9754
d72a4afa
AR
97552009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9756
9757 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9758 under GNUstep.
9759 (ns_query_color): New declaration.
9760
9761 * nsterm.m (ns_confirm_quit): New variable.
9762 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9763 (EmacsApp-applicationShouldTerminate:): Use it.
9764 (EmacsPrefsController): Let user set it.
9765 (ns_query_color): New function.
9766 (ns_defined_color): Use it.
9767 (ns_initialize): Drop.
9768 (ns_term_init): Add two lines from ns_initialize(), and set
9769 input_interrupt_mode to nil.
9770
9771 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 9772 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 9773
9fe78804
KH
97742009-01-28 Kenichi Handa <handa@m17n.org>
9775
9776 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
9777 (fontset_get_font_group): Remember that no font-group is specified
9778 for C.
9fe78804 9779
fa57de36
CY
97802009-01-27 Chong Yidong <cyd@stupidchicken.com>
9781
930600e9
CY
9782 * fns.c (concat): Check for string overflow (bug#1787).
9783
fa57de36
CY
9784 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9785 Quadruple undo limits (bug#1501).
9786
7179ce7b
KH
97872009-01-27 Kenichi Handa <handa@m17n.org>
9788
9789 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9790 directly use GT_Get_Char_index.
9791
9792 * xftfont.c (struct xftfont_info): New member `index'.
9793
9794 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 9795 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 9796
5be8fcc0
CY
97972009-01-26 Kenichi Handa <handa@m17n.org>
9798
9799 * fontset.c (fontset_find_font): Fix handling of non-cons return
9800 value of fontset_get_font_group.
9801 (fontset_font): Revert last change.
9802
19ae3e61
JR
98032009-01-26 Jason Rumney <jasonr@gnu.org>
9804
9805 * w32font.c (w32font_list_internal): Return quickly if registry is
9806 unknown. Simplify final return.
9807 (add_font_entity_to_list): Break complex logic down into more
9808 manageable chunks. Move unknown registry check to
9809 w32font_list_internal.
9810
8612b71a
AR
98112009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9812
9813 Changes to remove Feval calls from GUI under NS.
9814
d8038940
JB
9815 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9816 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
9817 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9818
9819 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9820 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9821 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9822 instead of NON_ASCII_KEYSTROKE_EVENT.
9823 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9824 (EmacsApp-applicationShouldTerminate:): Query user.
9825 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9826 instead of Feval.
9827
9828 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9829
9830 * keyboard.c (kbd_buffer_get_event): Check for it.
9831 (keys_of_keyboard): Define lispy keys for
9832 ns-put/unput-working-text.
9833
9834 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9835 versions.
9836 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9837
6288ae55
CY
98382009-01-25 Chong Yidong <cyd@stupidchicken.com>
9839
9840 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 9841 setting current_buffer directly. (Bug#2044)
6288ae55 9842
289e7f8f
CY
98432009-01-24 Chong Yidong <cyd@stupidchicken.com>
9844
5ce87308 9845 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 9846 any work. (Bug#1952, bug#1990).
5ce87308 9847
64cc3cf6 9848 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 9849
b3243e6f
AR
98502009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9851
9852 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
9853 (ns_no_defaults): New declaration.
9854 (main): Use it.
e0d2e69a 9855
d900b2af 9856 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 9857
d900b2af 9858 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 9859
d900b2af
AR
9860 * nsterm.m (ns_no_defaults): New variable.
9861 (ns_initialize): Don't read defaults when ns_no_defaults.
9862 (EmacsView-readSelectionFromPasteboard:)
9863 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 9864 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
9865 (ns_dumpglyphs_stretch): New function.
9866 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9867 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9868
e0d2e69a
AR
9869 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9870
3ac71f5d
CY
98712009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9872
9873 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9874 call for Sparc64.
9875
3fe53a83
AR
98762009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9877
9878 * nsfns.m:
9879 * nsgui.h:
9880 * nsmenu.m:
9881 * nsselect.m:
9882 * nsterm.h:
9883 * nsterm.m: Remove '23' comments that indicated code added during
9884 update from emacs-20 -> emacs-23.
9885
10f87c6f 98862009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9887
9888 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9889 ns_alternate_modifier. (Bug#1217)
a3b53a85 9890
c7cef62d
AR
9891 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9892 Display all shortcuts, including those w/o super modifier.
9893
575fb8bd
AR
9894 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9895
918b848b
CY
98962009-01-22 Chong Yidong <cyd@stupidchicken.com>
9897
9898 * fileio.c (Vwrite_region_post_annotation_function)
9899 (Vwrite_region_annotation_buffers): New vars.
9900 (build_annotations_unwind): Just reset
9901 Vwrite_region_annotation_buffers.
9902 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9903 Call write-region-post-annotation-function.
9904 (build_annotations): Add to Vwrite_region_annotation_buffers if
9905 buffer changes.
9906
a39e2539
AR
99072009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9908
9909 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9910 Tiger.
51d861de
SM
9911 * nsfns.m (ns_do_applescript):
9912 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9913
35ed44db
AR
99142009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9915
9916 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9917
cbe0b5bf
AR
99182009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9919
9920 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 9921
6049d3a0
AR
9922 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9923
9924 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
9925 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9926 handle Ctrl-tab. (Bug#1841)
9927 (ns_get_color): Use unsigned long long for scanned hex string value.
9928 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 9929 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 9930 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 9931 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 9932 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 9933 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 9934 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 9935
d3810c21 9936 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 9937 DPI. (Bug#1316)
d3810c21
AR
9938 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9939 values in onTiger section.
4c7077c3 9940
e301e634
CY
99412009-01-19 Chong Yidong <cyd@stupidchicken.com>
9942
7f82490b
CY
9943 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9944 Check return value of font_spec_from_name.
64cc3cf6 9945 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
9946
9947 * font.c (font_spec_from_name): Return Qnil if font name could not
9948 be parsed.
9949 (font_parse_name): Treat a `?' character as part of an XLFD.
9950
e301e634
CY
9951 * fns.c (Fsubstring): Doc fix.
9952
1c0db158
KH
99532009-01-19 Kenichi Handa <handa@m17n.org>
9954
51d861de 9955 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
9956 (ftfont_list): Likewise.
9957
acf20901
JB
99582009-01-18 Juanma Barranquero <lekktu@gmail.com>
9959
fff4e459
JB
9960 * dbusbind.c (Fdbus_register_signal):
9961 * process.c (conv_sockaddr_to_lisp):
9962 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9963
acf20901
JB
9964 * callproc.c (Fgetenv_internal): Doc fix.
9965
e7abcdfb
CY
99662009-01-16 Chong Yidong <cyd@stupidchicken.com>
9967
9968 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9969 it is not even used.
9970
b60861e6
GM
99712009-01-16 Glenn Morris <rgm@gnu.org>
9972
9973 * font.c (Ffont_variation_glyphs): Silence compiler.
9974
8db52afe
JB
99752009-01-15 Juanma Barranquero <lekktu@gmail.com>
9976
9977 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9978 Reported by David Robinow <drobinow@gmail.com>.
9979
4cddb209
KH
99802009-01-15 Kenichi Handa <handa@m17n.org>
9981
51d861de 9982 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 9983
f247f67b
JR
99842009-01-14 Jason Rumney <jasonr@gnu.org>
9985
9986 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 9987 never a fontset. (Bug#1562)
f247f67b 9988
f56a4450
KH
99892009-01-14 Kenichi Handa <handa@m17n.org>
9990
9991 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 9992 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 9993
4e99855e
CY
99942009-01-13 Chong Yidong <cyd@stupidchicken.com>
9995
9996 * font.c (font_clear_prop): If clearing the family, clear the font
9997 width index too.
9998
fff4e459 9999 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 10000
24f01470
JB
100012009-01-12 Juanma Barranquero <lekktu@gmail.com>
10002
10003 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10004 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10005 functions, use sizeof.
10006
a41240a3
MR
100072009-01-12 Martin Rudalics <rudalics@gmx.at>
10008
10009 * keyboard.c (read_char): Fix case where last_nonmenu_event
10010 returned a bad value with submenus. (Bug#447)
10011
944636b8
CY
100122009-01-12 Chong Yidong <cyd@stupidchicken.com>
10013
10014 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10015 family, clear the font width index too.
10016
0dad7c6f
JR
100172009-01-11 Jason Rumney <jasonr@gnu.org>
10018
10019 * keyboard.c (cmd_error_internal): Exit when errors occur before
10020 frame creation and not in daemon mode. (Bug#1836)
10021
7c2363af
CY
100222009-01-10 Chong Yidong <cyd@stupidchicken.com>
10023
10024 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10025 of a display vector, backtrack.
10026 (try_window_reusing_current_matrix): Check glyph type before
10027 referencing charpos member.
10028
97b1b294
EZ
100292009-01-10 Eli Zaretskii <eliz@gnu.org>
10030
10031 Fix Bug #876:
10032
10033 * coding.c (inhibit_null_byte_detection): New variable.
10034 (detect_coding, detect_coding_system): Don't pay attention to null
10035 bytes if inhibit_null_byte_detection is non-zero.
51d861de 10036 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
10037 <inhibit-iso-escape-detection>: Doc fix.
10038
4624b6e3
JR
100392009-01-09 Jason Rumney <jasonr@gnu.org>
10040
10041 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 10042 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
10043 Only report Unicode Plane 2 fonts as unicode-sip.
10044
323b840c
CY
100452009-01-09 Chong Yidong <cyd@stupidchicken.com>
10046
51d861de
SM
10047 * xfaces.c (Fx_font_family_list): Delete function.
10048 Move compatibility version to faces.el.
323b840c 10049
51d861de 10050 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 10051
eba7400d
MR
100522009-01-09 Martin Rudalics <rudalics@gmx.at>
10053
10054 * frame.c (x_set_frame_parameters): Remember requested value for
10055 fullscreen before it's reset by the parameter handler.
10056
4b09796d
GM
100572009-01-09 Glenn Morris <rgm@gnu.org>
10058
10059 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 10060 (last_command_event): ... and update all users.
4b09796d
GM
10061 (last_input_char): For clarity, rename to...
10062 (last_input_event): ... and update all users.
10063 (last-command-char, last-input-char): Move to subr.el as aliases.
10064 * cmds.c, commands.h: Update for last_command_char rename.
10065
14ccea62
CY
100662009-01-08 Chong Yidong <cyd@stupidchicken.com>
10067
51d861de 10068 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 10069
5f004711
JR
100702009-01-08 Jason Rumney <jasonr@gnu.org>
10071
10072 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10073 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10074 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10075 Don't declare.
fff4e459 10076 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
10077 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10078
b71f6f73
KH
100792009-01-07 Kenichi Handa <handa@m17n.org>
10080
50b06221 10081 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 10082 remember the coding system used for decoding in
50b06221
KH
10083 coding_system (Bug#1039).
10084
b71f6f73 10085 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 10086 breaking the loop. (Bug#870)
b71f6f73
KH
10087 (decode_coding_utf_16, decode_coding_emacs_mule)
10088 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10089 (decode_coding_charset): Likewise.
10090
56f668f7
MR
100912009-01-05 Martin Rudalics <rudalics@gmx.at>
10092
10093 * frame.c (x_set_frame_parameters): Make sure height (width) get
10094 applied when fullwidth (fullheight) is set. (Bug#1522)
10095
5da9424d
JB
100962009-01-04 Juanma Barranquero <lekktu@gmail.com>
10097
10098 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10099 (utc_base): Declare as ULONGLONG, not long double.
10100 (convert_time_raw): Delete.
10101 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10102 (initialize_utc_base): New function.
10103 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10104 (convert_from_time_t): Use initialize_utc_base; compute result with
10105 64-bit arithmetic.
10106 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10107
c4605e09
EZ
101082009-01-03 Eli Zaretskii <eliz@gnu.org>
10109
9acef61c 10110 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
10111 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10112 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10113 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10114 [!subprocesses]: Define.
10115 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10116 (Flist_system_processes, Fsystem_process_attributes)
10117 [!subprocesses]: Call list_system_processes and
10118 system_process_attributes instead of returning Qnil.
10119
9acef61c
JB
10120 * dosfns.c (system_process_attributes, list_system_processes):
10121 New functions.
c4605e09
EZ
10122
10123 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10124
10125 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10126 Don't use the default (no-op) implementation.
10127
8b7d0a16
JR
101282009-01-03 Jason Rumney <jasonr@gnu.org>
10129
a6d46bc1
JR
10130 * keyboard.c (parse_modifiers_uncached): Wheel events are
10131 clicks (bug#687).
10132
8b7d0a16
JR
10133 * w32term.c (x_query_colors, x_query_color): New functions.
10134
10135 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10136 (svg_load_image): Cast returned pointers from dynamically loaded
10137 functions. Eliminate W32 specific code.
10138
bfe11752
DN
101392009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10140
89e2438a
DN
10141 * nsfns.m (x_set_foreground_color, x_set_background_color)
10142 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10143 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10144 x_ prefix instead of ns_. Update references.
10145 (syms_of_nsfns): Add a FIXME comment.
10146
10147 * nsterm.m (x_set_cursor_type): New prototype.
10148 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10149
bfe11752
DN
10150 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10151 for Solaris instead of incorrectly providing Qutime and Qcutime.
10152
031da700
EZ
101532009-01-02 Eli Zaretskii <eliz@gnu.org>
10154
10155 * w32.c (process_times): Compute sum of utime and stime.
10156 (system_process_attributes): Add Qtime to the alist.
10157
10158 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10159 and add them to the alist.
10160
10161 * process.c (top level) <Qtime, Qctime>: New variables.
10162 (syms_of_process): staticpro them.
10163 (Fsystem_process_attributes): Add their documentation to the doc
10164 string.
10165
10166 * process.h: Declare Qtime and Qctime.
10167
df23bf08
JR
101682009-01-02 Jason Rumney <jasonr@gnu.org>
10169
9acef61c 10170 * image.c (Qgobject): New symbol.
df23bf08
JR
10171 (syms_of_image): Initialize it.
10172 (init_svg_functions): Load some functions from gobject library.
10173
5bbdf7aa
DN
101742009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10175
10176 * frame.c (make_terminal_frame): Remove redundant code and useless
10177 block.
10178
63136da6
AS
101792009-01-01 Andreas Schwab <schwab@suse.de>
10180
10181 * process.c (conv_sockaddr_to_lisp): Add workaround for
10182 getsockname bug on BSD.
10183
9ef69046
CY
101842009-01-01 Chong Yidong <cyd@stupidchicken.com>
10185
d6fafbe0
CY
10186 * xfns.c (x_create_tip_frame): Set border width of the X window.
10187
51d861de 10188 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 10189
f9c34147
JR
101902009-01-01 Jason Rumney <jasonr@gnu.org>
10191
9acef61c 10192 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
10193 Don't block input, as per earlier xterm.c changes.
10194
f5497e45
AR
101952008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10196
10197 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10198 (ns_appkit_version_int): New function.
10199 (x-server-version): Use ns_appkit_version_int and follow 21+
10200 convention of returning 3 integers.
10201
c19cab20
KH
102022008-12-30 Kenichi Handa <handa@m17n.org>
10203
10204 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10205 (CHAR_SURROGATE_PAIR_P): New macro.
10206
10207 * font.h (struct font_driver): New member get_variation_glyphs.
10208
9acef61c 10209 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
10210 (Ffont_variation_glyphs): New function.
10211 (syms_of_font): Defsubr it.
10212
10213 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10214 ftfont_variation_glyphs.
10215 (setup_otf_gstring): New function.
10216 (ftfont_drive_otf): Use it.
10217 (ftfont_shape_by_flt): Handle variation selector.
10218 (ftfont_variation_glyphs): New function.
10219
28cd591f
MR
102202008-12-30 Martin Rudalics <rudalics@gmx.at>
10221
10222 * frame.c (Vemacs_iconified): Remove.
10223
7f714baf
JR
102242008-12-30 Jason Rumney <jasonr@gnu.org>
10225
10226 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 10227 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 10228
9d2d22ab
CY
102292008-12-30 Chong Yidong <cyd@stupidchicken.com>
10230
10231 * indent.c (Fvertical_motion): Don't advance iterator if we have
10232 reseated to the desired position.
10233
10234 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10235 checking for pos match.
10236
545312c2
KH
102372008-12-30 Kenichi Handa <handa@m17n.org>
10238
1ede3eb6
KH
10239 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10240 just get the low 8-bit of the code.
10241
545312c2
KH
10242 * font.c (font_intern_prop): Validate str as multibyte.
10243
bd7bbf29
DN
102442008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10245
31e0750e
DN
10246 * dispextern.h (struct face): Move lface and hash from the middle
10247 of bitfields.
10248
bd7bbf29
DN
10249 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10250
b5672e7c
DN
102512008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10252
10253 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10254 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10255 instead of intervals.h.
10256
d704470f
AS
102572008-12-26 Andreas Schwab <schwab@suse.de>
10258
10259 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10260 cons.
10261
54b33868
MR
102622008-12-26 Martin Rudalics <rudalics@gmx.at>
10263
10264 * textprop.c (Qminibuffer_prompt): New variable.
10265 (syms_of_textprop): Initialize it.
10266 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10267 in minibuffer-prompt face. (Bug#1662)
10268
40b615d6
JR
102692008-12-25 Jason Rumney <jasonr@gnu.org>
10270
10271 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10272
baae5c2d
JR
102732008-12-24 Jason Rumney <jasonr@gnu.org>
10274
10275 * ralloc.c (r_alloc_reset_variable): New function.
10276
10277 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 10278 record of what points where. (Bug#716)
baae5c2d 10279
a9051c88
DN
102802008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10281
10282 * minibuf.c (read_minibuf): Follow the non-interactive case when
10283 running as a daemon, before detaching.
10284
8b146312
AS
102852008-12-22 Andreas Schwab <schwab@suse.de>
10286
10287 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10288 * gtkutil.c (free_widget_value): Use xfree instead of free.
10289
56f2de10
MR
102902008-12-22 Martin Rudalics <rudalics@gmx.at>
10291
10292 * frame.c (delete_frame): New function derived from
10293 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10294 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10295 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10296 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10297 * frame.h: Extern delete_frame.
10298 * window.c (window_loop):
10299 * terminal.c (delete_terminal):
10300 * xterm.c (x_connection_closed):
10301 * xfns.c (Fx_hide_tip):
9acef61c 10302 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 10303
1fc200d6
JR
103042008-12-21 Jason Rumney <jasonr@gnu.org>
10305
10306 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10307 when character maps to .notdef character.
10308
5e252df2
SM
103092008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10310
10311 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10312
99b72cc4
JR
103132008-12-20 Jason Rumney <jasonr@gnu.org>
10314
10315 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 10316 a graphical frame on Windows. (Bug#1325)
99b72cc4 10317
acc49a52
JD
103182008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10319
10320 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10321
6ea15123
CY
103222008-12-20 Chong Yidong <cyd@stupidchicken.com>
10323
10324 * minibuf.c (Fread_buffer): Doc fix.
10325
b2dab6c8
JR
103262008-12-20 Jason Rumney <jasonr@gnu.org>
10327
54ea0c87 10328 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 10329 server name in UNC paths. (Bug#719)
54ea0c87 10330
b2dab6c8 10331 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 10332 charbuf. (Bug#1035)
b2dab6c8 10333
6d1921be
DN
103342008-12-19 Daniel Engeler <engeler@gmail.com>
10335
10336 * sysdep.c (serial_configure): Fix typo.
10337
53934c98
DN
103382008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10339
10340 * sysdep.c: Include alloca.h.
f4f634e8
DN
10341 (system_process_attributes): Add implementation for Solaris.
10342
10343 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 10344
06e111a6
DN
103452008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10346
10347 Reorganize implementation of Flist_system_processes and
10348 Fsystem_process_attributes. No functional changes.
10349 * process.c: Don't #include pwd.h, grp.h and limits.h.
10350 (Flist_system_processes): Just call list_system_processes.
10351 (Fsystem_process_attributes): Just call system_process_attributes.
10352 (procfs_list_system_processes, time_from_jiffies)
10353 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10354 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10355
10356 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10357 (list_system_processes): Rename from
10358 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10359 Provide a do nothing implementation.
10360 (system_process_attributes): Rename from
10361 procfs_list_system_processes.
10362 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 10363 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
10364
10365 * w32.c (list_system_processes): Rename from
10366 w32_list_system_processes.
10367 (system_process_attributes): Rename from
10368 w32_system_process_attributes.
10369
10370 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10371
10372 * process.h (w32_list_system_processes)
10373 (w32_system_process_attributes): Remove.
362654a6
JB
10374 (list_system_processes, system_process_attributes):
10375 New prototypes.
06e111a6 10376
6a705b23
KH
103772008-12-19 Kenichi Handa <handa@m17n.org>
10378
10379 * xfont.c (xfont_decode_coding_xlfd): New function.
10380 (xfont_encode_coding_xlfd): New function.
10381 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10382 (xfont_list): Decode and encode XLFD by iso-8859-1.
10383 (xfont_match): Likewise.
10384 (xfont_list_family): Likewise.
10385 (xfont_open): Likewise.
10386
d66c0241 10387 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
10388 names are utf-8.
10389
d66c0241 10390 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
10391 names are utf-8.
10392
5a130941
JD
103932008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10394
10395 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10396 changed.
bfd20325
JD
10397 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10398 clicked on a detached tool bar button.
5a130941 10399
fd95644b
DN
104002008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10401
10402 * emacs.c (main): Print and error and exit when no data is read
10403 from the pipe.
10404
e6eee6ae
JR
104052008-12-17 Jason Rumney <jasonr@gnu.org>
10406
10407 * w32font.c (w32font_has_char): Always return -1.
10408
a35dd56b
KH
104092008-12-16 Kenichi Handa <handa@m17n.org>
10410
10411 * font.c (font_open_entity): Fix previous change.
10412
0e3635c2
DN
104132008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10414
10415 * process.c: Include <limits.h>.
10416
d4835507 104172008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
10418
10419 * font.c (font_update_drivers): Fix mistake in reconstructing the
10420 driver list.
10421
104222008-12-16 Chong Yidong <cyd@stupidchicken.com>
10423
10424 * font.c (font_clear_cache): Fix format of font cache data.
10425
e2cbc401
CY
104262008-12-15 Chong Yidong <cyd@stupidchicken.com>
10427
10428 * xftfont.c (xftfont_open): Free Xft font pattern if
10429 XftFontOpenPattern fails.
10430
10431 * xterm.c (x_free_frame_resources): Remove extraneous call to
10432 free_frame_faces.
10433
b131d535
CY
104342008-12-13 Chong Yidong <cyd@stupidchicken.com>
10435
10436 * xterm.c (x_delete_display): Move xim_close_dpy call to
10437 x_delete_terminal.
10438 (x_delete_terminal): Call xim_close_dpy.
10439
e6df5336
JR
104402008-12-13 Jason Rumney <jasonr@gnu.org>
10441
10442 * w32font.c (intern_font_name): New function.
10443 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10444 (w32font_open_internal, Fx_select_font): Decode font name.
10445 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10446
10447 * w32font.h (intern_font_name): Declare new function.
10448
10449 * w32uniscribe.c (add_opentype_font_name_to_list):
10450 Use intern_font_name.
10451
20d68145
CY
104522008-12-13 Chong Yidong <cyd@stupidchicken.com>
10453
9f2554de
CY
10454 * frame.c (Fdelete_frame): Call free_font_driver_list.
10455
3d9bec9a
CY
10456 * font.c (free_font_driver_list): Implement missing function.
10457
20d68145
CY
10458 * w32term.c (w32_term_init): Don't initialize the image cache
10459 here; it will be done in init_frame_faces.
10460
10461 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10462 (struct x_display_info): Remove unused member null_pixel. New
10463 member xim_callback_data.
10464
10465 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10466 (xim_initialize): Save pointer to callback function data.
10467 (xim_close_dpy): Free callback function data. Call XCloseIM,
10468 reverting 2008-11-04 change by David Smith.
10469 (x_term_init): Don't initialize the image cache here; it will be
10470 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10471 (x_delete_display): Free x_dnd_atoms member.
10472
96f9306b
KH
104732008-12-13 Kenichi Handa <handa@m17n.org>
10474
6dec9044
JB
10475 * font.c (font_rescale_ratio): Moved from xfaces.c.
10476 Argument type changed. Handle a font-spec too.
96f9306b 10477 (font_score): Check Vface_font_rescale_alist.
6dec9044 10478 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
10479
10480 * xfaces.c (font_rescale_ratio): Moved to font.c.
10481
8d5b4964
CY
104822008-12-13 Chong Yidong <cyd@stupidchicken.com>
10483
10484 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10485
e6df5336
JR
104862008-12-12 Jason Rumney <jasonr@gnu.org>
10487
10488 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10489 Vwindow_system_version to the real w32 major version.
10490
97c6058a
DN
104912008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10492
10493 * term.c (init_tty): Move setting the terminal name before the
10494 potential user: maybe_fatal.
10495
ec4e88d7
CY
104962008-12-11 Chong Yidong <cyd@stupidchicken.com>
10497
d4835507
JB
10498 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10499 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 10500
b4233ec9
JR
105012008-12-11 Jason Rumney <jasonr@gnu.org>
10502
8ec71e23 10503 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 10504 SYMBOL_CHARSET. (Bug#547)
8ec71e23 10505
b4233ec9 10506 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 10507 size for surrogates. (Bug#1096, bug#872)
b4233ec9 10508
011a0143
JB
105092008-12-11 Juanma Barranquero <lekktu@gmail.com>
10510
10511 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10512
3c309f34
JB
105132008-12-11 Juanma Barranquero <lekktu@gmail.com>
10514
10515 * process.c (Fsystem_process_attributes, syms_of_process):
10516 Fix typo in name of Ssystem_process_attributes.
10517 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10518
fedc6ab5
JB
105192008-12-11 Juanma Barranquero <lekktu@gmail.com>
10520
10521 * syntax.c (Fmodify_syntax_entry): Doc fix.
10522
ba3de0e8
JB
105232008-12-10 Juanma Barranquero <lekktu@gmail.com>
10524
10525 * font.c (Ffont_spec): Move usage to end of docstring.
10526
174f1c74
JR
105272008-12-10 Jason Rumney <jasonr@gnu.org>
10528
10529 * w32font.c (Qcham): New symbol.
10530 (font_supported_scripts): Add cham, and comments for other new
10531 scripts in bitfield from OpenType spec.
9d32f818
JR
10532 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10533 contain characters beyond the bmp.
174f1c74 10534
7b649478
KH
105352008-12-10 Kenichi Handa <handa@m17n.org>
10536
10537 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 10538 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
10539 Qunicode_sip.
10540
2133e2d1
JB
105412008-12-10 Juanma Barranquero <lekktu@gmail.com>
10542
10543 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10544 (Fcoding_system_put): Use QCdefault_char.
10545 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10546
9af886ee
CY
105472008-12-09 Chong Yidong <cyd@stupidchicken.com>
10548
74d819eb
CY
10549 * xftfont.c (syms_of_xftfont): Fix typo.
10550
4ccfa1c0 10551 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 10552
7c19d3ae
DN
105532008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10554
10555 * emacs.c (main): Close daemon_pipe on exec.
10556
567826bb
CY
105572008-12-08 Chong Yidong <cyd@stupidchicken.com>
10558
10559 * termchar.h (struct tty): New members termcap_term_buffer and
10560 termcap_strings_buffer.
10561
10562 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 10563 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
10564 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10565 All callers changed.
10566 (init_tty): Store termcap data and string buffers in new struct
10567 tty members termcap_term_buffer and termcap_strings_buffer.
10568 (delete_tty): Free them.
4ccfa1c0 10569 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 10570
aa96c42b
SZ
105712008-12-07 Seiji Zenitani <zenitani@mac.com>
10572
10573 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 10574 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 10575
b7e1d896
CY
105762008-12-06 Chong Yidong <cyd@stupidchicken.com>
10577
10578 * coding.c (make_conversion_work_buffer): Disable buffer
10579 modification hooks in the work buffer.
10580
b5ec91a5
EZ
105812008-12-05 Eli Zaretskii <eliz@gnu.org>
10582
10583 * process.c (procfs_system_process_attributes): If `nread' has a
10584 negative value, assign zero to it.
10585
a5d2a52b
CY
105862008-12-05 Chong Yidong <cyd@stupidchicken.com>
10587
68c5540b 10588 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 10589
7bf1bb21
KH
105902008-12-05 Kenichi Handa <handa@m17n.org>
10591
10592 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10593 second character is a combining character.
10594
2fdc7d00
EZ
105952008-12-05 Eli Zaretskii <eliz@gnu.org>
10596
10597 * process.c (procfs_system_process_attributes): Don't use cmd,
10598 cmdsize, and q without initializing them first.
10599
bf6bfba8
JR
106002008-12-04 Jason Rumney <jasonr@gnu.org>
10601
10602 * w32font.c (w32font_draw): Initialize orig_clip before getting
10603 it, and delete it when finished.
10604
a3b1a468
DN
106052008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10606
10607 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10608 case when running as a daemon before detaching.
10609
8b8be8eb
JB
106102008-12-03 Juanma Barranquero <lekktu@gmail.com>
10611
805f2638 10612 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 10613
b1bde622
KH
106142008-12-03 Kenichi Handa <handa@m17n.org>
10615
e500c47d
KH
10616 * font.c (font_at): Set `multibyte' at first.
10617
ca516334
KH
10618 * coding.c (decode_coding_charset): Check type of an element of
10619 vector VALIDS.
7bf1bb21 10620 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 10621
4ccfa1c0 10622 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
10623 (font_for_char): Likewise.
10624
1e5ecd37
CY
106252008-12-03 Chong Yidong <cyd@stupidchicken.com>
10626
d5b01609 10627 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
10628 (font_update_lface): Handle fonts with corrupted size specs,
10629 i.e. non-int and non-float.
d5b01609 10630
11e3a6e4 10631 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 10632 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 10633 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 10634
ab06788b
CY
10635 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10636
1e5ecd37 10637 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 10638 underline_minimum_offset for underline position.
1e5ecd37 10639
63c125ab
DN
106402008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10641
10642 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10643
10644 * character.c (c_string_width): Specify the type for LEN.
10645
3a8406e1
KH
106462008-12-03 Kenichi Handa <handa@m17n.org>
10647
4ccfa1c0 10648 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 10649 (decode_coding_utf_8): Likewise.
4ccfa1c0 10650 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 10651 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 10652
651df7d9
CY
106532008-12-02 Chong Yidong <cyd@stupidchicken.com>
10654
10655 * keyboard.c (make_lispy_position): Only use PT if the selected
10656 window is current.
10657
1f625c6c
AS
106582008-12-02 Andreas Schwab <schwab@suse.de>
10659
f7741ce9
AS
10660 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10661
1f625c6c
AS
10662 * doprnt.c (doprnt1): Fix size of charbuf.
10663
92bc2678
CY
106642008-12-02 Chong Yidong <cyd@stupidchicken.com>
10665
10666 * keyboard.c (timer_check): Revert last change.
10667
93b9e8cc
JB
106682008-12-02 Juanma Barranquero <lekktu@gmail.com>
10669
10670 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10671
fd7a37d5
JB
106722008-12-01 Juanma Barranquero <lekktu@gmail.com>
10673
10674 * makefile.w32-in: Update dependencies.
10675 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10676
c115043b
AS
106772008-12-01 Andreas Schwab <schwab@suse.de>
10678
10679 * font.c (register_font_driver): Use xmalloc.
10680 (font_put_frame_data): Likewise.
10681
f5668d2a
CY
106822008-12-01 Chong Yidong <cyd@stupidchicken.com>
10683
860d96be
CY
10684 * xfaces.c (realize_x_face): Make abort condition clearer.
10685
f5668d2a
CY
10686 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10687
379c17e7
CY
106882008-11-30 Chong Yidong <cyd@stupidchicken.com>
10689
10690 * keyboard.c (timer_check): After a timer runs, ensure that the
10691 selected window's buffer is current.
10692
35f36d65
JB
106932008-11-30 Juanma Barranquero <lekktu@gmail.com>
10694
f952c61c
JB
10695 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10696 It was accidentally restored by the Unicode merge.
10697
35f36d65
JB
10698 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10699
b23077df
JB
107002008-11-29 Juanma Barranquero <lekktu@gmail.com>
10701
10702 * w32proc.c: Include "coding.h".
10703 (Fw32_short_file_name): Encode filename passed to Windows API.
10704 (Fw32_long_file_name): Encode filename passed to Windows API and
10705 decode back the result. (Bug#1433)
10706
b8ebe9dd
KH
107072008-11-29 Kenichi Handa <handa@m17n.org>
10708
8cc53f96
KH
10709 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10710 not before accessing it.
10711
b8ebe9dd
KH
10712 * charset.c (Fdefine_charset_internal): After calculating
10713 min_char, max_char, and fastmap, copy the charset structure again.
10714 (encode_char): Fix the previous change.
10715
59bc82c0
SZ
107162008-11-28 Seiji Zenitani <zenitani@mac.com>
10717
10718 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10719
10720 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10721
10722 * nsterm.m (x_set_frame_alpha): New function.
10723
32247e3d
EZ
107242008-11-27 Eli Zaretskii <eliz@gnu.org>
10725
10726 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10727
b003e5ff
JB
107282008-11-27 Juanma Barranquero <lekktu@gmail.com>
10729
10730 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10731 pointer to check_face_name.
10732
708550f5
KH
107332008-11-27 Kenichi Handa <handa@m17n.org>
10734
10735 * category.h (SET_CATEGORY_SET): Call set_category_set.
10736 (set_category_set): Extern it.
10737
10738 * category.c (hash_get_category_set): New function.
10739 (Fmodify_category_entry): Adjusted for the change of
10740 char_table_ref_and_range. Call hash_get_category_set to get a
10741 category set to store in the table.
10742
10743 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10744 Funify_charset.
10745
2ae37cf0 10746 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
10747 (DECODE_CHAR): Check if the decoder vector is ready.
10748 (ENCODE_CHAR): Check if the encoder char-table is ready.
10749 (maybe_unify_char): Extern it.
10750
10751 * charset.c (Vchar_unified_charset_table): Delete it.
10752 (inhibit_load_charset_map): New variable.
10753 (temp_charset_work): New variable.
10754 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10755 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10756 New macros.
10757 (load_charset_map): Meaning of control_flag changed. If
10758 inhibit_load_charset_map is nonzero, setup a table in
10759 temp_charset_work.
10760 (load_charset): New argument control_flag.
10761 (map_charset_for_dump): New function.
10762 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10763 map_charset_for_dump.
10764 (Fdefine_charset_internal): If the charset method is MAP, load
10765 mapping tables by calling load_charset.
10766 (Funify_charset): Don't load a mapping table but directly set
10767 Vchar_unify_table.
10768 (maybe_unify_char): New function.
10769 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10770 Handle the case of inhibit_load_charset_map being nonzero.
10771 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10772 Handle the case of inhibit_load_charset_map being nonzero.
10773 (Fclear_charset_maps): Just free temp_charset_work.
10774 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10775 variable.
10776
10777 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10778 change of char_table_ref_and_range.
10779 (char_table_ref_and_range): Change the meaning of argument FROM
10780 and TO. Now the caller must provide initial values for *FROM
10781 and *TO.
10782
10783 * fontset.c (fontset_add): Adjusted for the change of
10784 char_table_ref_and_range.
10785 (fontset_get_font_group): Likewise.
10786 (Ffontset_info): Likewise.
10787
10788 * keymap.c (describe_vector): Adjusted for the change of
10789 char_table_ref_and_range. For char-table, put boundary between
10790 non-ASCII and 8-bit characters.
10791
10792 * print.c (print_object): For bool-vector, delete unnecessary
10793 check of ASCII_BYTE_P.
10794
9196133b
JR
107952008-11-26 Jason Rumney <jasonr@gnu.org>
10796
10797 * w32font.c (w32font_open_internal): Don't include external
9acef61c 10798 leading in font height. (Bug#879)
9196133b 10799
9f688acf
GM
108002008-11-26 Glenn Morris <rgm@gnu.org>
10801
10802 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10803 redefinition with ifdef. (Bug#1383)
10804
90d19aff
AR
108052008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10806
10807 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10808
4ccfa1c0 108092008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
10810
10811 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10812 New EmacsView methods.
10813 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10814 Fixes bug #1048,1357,1414.
10815
108162008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10817
10818 Fix bug #1362.
10819 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10820 is not an indexed color.
10821 * nsterm.m (free_indexed_color): Add argument checking.
10822 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10823
e7d5ecb3
CY
108242008-11-24 Chong Yidong <cyd@stupidchicken.com>
10825
10826 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10827 Document confirm-after-completion value for
10828 minibuffer-completion-confirm.
10829
c285743c
JR
108302008-11-24 Jason Rumney <jasonr@gnu.org>
10831
10832 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10833 warning.
10834
b0857706
JR
108352008-11-23 Jason Rumney <jasonr@gnu.org>
10836
10837 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10838 restored before returning.
10839
10840 * w32font.c (check_face_name): New function.
10841 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 10842 fonts. (Bug#642)
b0857706 10843
ee50ff07
MR
108442008-11-22 Martin Rudalics <rudalics@gmx.at>
10845
10846 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10847 confirm-nonexistent-file-or-buffer in doc-string.
10848
b8ff72fa
SM
108492008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10850
10851 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10852 Fix copy/paste typo. Add checks.
10853
cee53ed4
KH
108542008-11-21 Kenichi Handa <handa@m17n.org>
10855
10856 * coding.c (detect_coding_iso_2022): Reject invalid composition
10857 sequence.
10858 (DECODE_COMPOSITION_START): If the current source is the last
10859 block, and the current composition doesn't end, regard this
10860 sequence as invalid.
10861 (decode_coding_iso_2022): Handle invalid composition sequence.
10862
f6ef1e65
MR
108632008-11-20 Martin Rudalics <rudalics@gmx.at>
10864
10865 * window.c (coordinates_in_window): Don't return
10866 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10867 line when the window is not the rightmost one. (Bug#1372)
10868
e08b1705
MR
108692008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10870
10871 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10872
ad98e89f
EZ
108732008-11-15 Eli Zaretskii <eliz@gnu.org>
10874
10875 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10876 and bright_bg if noninteractive is non-zero.
10877
fb098a4b
CY
108782008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10879
10880 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10881 x_draw_glyph_string_background.
10882
10883 * w32term.c (x_draw_glyph_string): Likewise.
10884
ce952b6e
CY
108852008-11-15 Chong Yidong <cyd@stupidchicken.com>
10886
10887 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10888 the next glyph string once past the overhang width.
10889
10890 * nsterm.m (ns_draw_glyph_string): Likewise.
10891
10892 * w32term.c (x_draw_glyph_string): Likewise.
10893
26ea7079
CY
108942008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10895
10896 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10897 double file close.
10898
1c33c906
MR
108992008-11-14 Martin Rudalics <rudalics@gmx.at>
10900
10901 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10902 dedicated status of window before attempting to display another
10903 buffer in it.
10904
8fc29035
JB
109052008-11-14 Juanma Barranquero <lekktu@gmail.com>
10906
10907 * msdos.c (Fmsdos_long_file_names):
10908 (syms_of_msdos) <dos-unsupported-char-glyph>:
10909 * dosfns.c (Fint86): Fix typos in docstrings.
10910
55fb4286
EZ
109112008-11-14 Eli Zaretskii <eliz@gnu.org>
10912
10913 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10914
3fda0315
KY
109152008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10916
10917 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10918
7e849c17
CY
109192008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10920
10921 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10922
10923 * frame.h: Negative alpha means "don't touch".
10924
10925 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10926
10927 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10928
b9fd67bd
DN
109292008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10930
10931 * hftctl.c:
10932 * chpdef.h:
10933 * acldef.h: Remove files used only for systems no longer supported.
10934
10935 * Makefile.in: Fix .o alphabetical ordering.
10936 (hftctl.o): Remove dependency, file removed.
10937 (keymap.o, print.o): Depend on charset.h.
10938
d5998e03
KH
109392008-11-10 Kenichi Handa <handa@m17n.org>
10940
2ae37cf0 10941 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 10942
be70e183
CY
109432008-11-08 Chong Yidong <cyd@stupidchicken.com>
10944
10945 * dired.c (file_name_completion): If completion_ignore_case is
10946 enabled, ignore case when checking completion-regexp-list.
10947
7cf94eac
EZ
109482008-11-08 Eli Zaretskii <eliz@gnu.org>
10949
10950 * vm-limit.c (get_lim_data): Fix last change.
10951
ee107a89
KH
109522008-11-08 Kenichi Handa <handa@m17n.org>
10953
10954 * character.c (Fget_byte): New function.
10955 (syms_of_character): Defsubr Fget_byte.
10956
5fd15622
CY
109572008-11-07 Chong Yidong <cyd@stupidchicken.com>
10958
10959 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10960 cursor position is valid after scrolling.
10961
13d62fad
JB
109622008-11-06 Juanma Barranquero <lekktu@gmail.com>
10963
10964 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10965
a1dd2936
GM
109662008-11-06 Glenn Morris <rgm@gnu.org>
10967
10968 * xterm.c (handle_one_xevent): Don't let popup menus cause
10969 mouse-autoselect-window related window switching. (Bug#1261)
10970
860cd236
CY
109712008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10972
10973 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10974
653a3150
AS
109752008-11-04 Andreas Schwab <schwab@suse.de>
10976
10977 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10978
870f5cac
CY
109792008-11-03 Chong Yidong <cyd@stupidchicken.com>
10980
10981 * xfns.c (Fx_wm_set_size_hint): New function.
10982
1e02f3cb
MR
109832008-11-03 Martin Rudalics <rudalics@gmx.at>
10984
10985 * textprop.c (Fprevious_single_char_property_change): Return 0
10986 when there's no change in a string. (Bug#1301)
10987
e630dfc6
MR
109882008-11-02 Martin Rudalics <rudalics@gmx.at>
10989
10990 * frame.c (do_switch_frame): New argument NORECORD passed to
10991 Fselect_window.
10992 (Fselect_frame): New argument NORECORD passed to
10993 do_switch_frame.
10994 (Fset_frame_selected_window): New argument NORECORD passed to
10995 Fselect_frame.
10996 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10997 in call of do_switch_frame.
10998 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10999 Handle NORECORD argument in call of Fselect_frame.
11000 * lisp.h (do_switch_frame, Fselect_frame)
11001 (Fset_frame_selected_window): Adjust declarations.
11002 * window.c (select_frame_norecord): New function.
11003 (run_window_configuration_change_hook): Use it and call
11004 Fselect_frame with NORECORD set.
11005 (Fselect_window): Pass NORECORD to Fselect_frame.
11006 (Fset_window_configuration): Handle NORECORD argument in call of
11007 do_switch_frame.
11008 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11009 Fset_frame_selected_window.
11010 * keyboard.c (command_loop_1): Handle NORECORD in call of
11011 Fselect_frame (currently ifdefd).
11012
9020b223
GM
110132008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11014
11015 * emacs.c (USAGE2): Untabify.
11016
793ffee8
SM
110172008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11018
11019 * composite.c (fill_gstring_header): Fix copy/paste typo.
11020
ab6d1131
MR
110212008-10-31 Martin Rudalics <rudalics@gmx.at>
11022
11023 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11024 (Fother_window): Rename argument and rewrite doc-string.
11025 (select_window_norecord): Fix return value. (Bug#1276)
11026
601a9cf1
JB
110272008-10-30 Juanma Barranquero <lekktu@gmail.com>
11028
11029 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11030 new frames overriding foreground for tooltips. Based on similar patch
11031 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11032
813b0652
CY
110332008-10-29 Chong Yidong <cyd@stupidchicken.com>
11034
11035 * emacs.c (Fdaemon_initialized): Initialize nfd.
11036
4414f58f
MR
110372008-10-29 Martin Rudalics <rudalics@gmx.at>
11038
11039 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11040 (Fwindow_text_height): Clarify doc-strings.
11041 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11042 doc-string of window-scroll-functions.
11043
ecdcaa09
RS
110442008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11045
11046 * category.c (syms_of_category): Fix typo in docstring.
11047
23fe745a
JB
110482008-10-28 Juanma Barranquero <lekktu@gmail.com>
11049
11050 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11051 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11052 Fix typos in docstrings.
11053
ff808935
DN
110542008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11055
11056 * emacs.c (daemon_pipe): Make non-static.
11057 (IS_DAEMON): Move definition ...
11058 * lisp.h (IS_DAEMON): ... here.
11059 (daemon_pipe): Declare.
11060 (is_daemon): Remove.
11061 * dispnew.c (init_display): Use IS_DAEMON.
11062
fc012771
SM
110632008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11064
11065 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11066 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11067
11068 * emacs.c (is_daemon): Remove.
11069 (main): Don't set is_daemon.
11070 (IS_DAEMON): New macro.
11071 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 11072 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
11073 parent exits.
11074 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11075
d8bdbe6f
CY
110762008-10-27 Chong Yidong <cyd@stupidchicken.com>
11077
d1a072bf
CY
11078 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11079 over-sized glyph, draw it with the default glyph width.
11080
e2e325aa
CY
11081 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11082 glyph, draw it with the default glyph width.
11083
11084 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11085 glyph, draw it with the default glyph width.
11086
d8bdbe6f
CY
11087 * xdisp.c (try_scrolling): When computing the distance from the
11088 scroll margin to PT, try moving some distance past the window
11089 bottom before giving up.
11090
7bfac547
MR
110912008-10-27 Martin Rudalics <rudalics@gmx.at>
11092
11093 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11094 (Fset_window_buffer): Explain in doc-string that a window can be
11095 "strongly" dedicated to its buffer.
11096
4ff029f6
DN
110972008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11098
11099 * emacs.c (daemon_name): New variable.
11100 (main): Deal with --daemon=SERVER_NAME.
11101 (Fdaemonp): Return a name if one was passed to --daemon.
11102
5790ef40
DN
111032008-10-26 Romain Francoise <romain@orebokech.com>
11104
f9bd0df9 11105 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
11106 (main): Create a pipe before forking, make the parent exit only after
11107 the child has closed its end of the pipe. Move closing the
11108 descriptors ...
11109 (Fdaemon_initialized): ... here. New function.
11110
f5385255
SM
111112008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11112
4d632321
SM
11113 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11114 the previous unoptimized table.
11115
f5385255
SM
11116 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11117 the distinction between non-nil and non-t value of `dedicated'.
11118
6c56a0f3
CY
111192008-10-25 Chong Yidong <cyd@stupidchicken.com>
11120
11121 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 11122 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 11123
fec89261
MR
111242008-10-25 Martin Rudalics <rudalics@gmx.at>
11125
11126 * window.c (Fget_buffer_window, Fdelete_windows_on)
11127 (Freplace_buffer_in_windows): Make buffer argument optional and
11128 rename to buffer_or_name.
11129
34fcddd0
CY
111302008-10-24 Chong Yidong <cyd@stupidchicken.com>
11131
f5385255
SM
11132 * xdisp.c (handle_single_display_spec, handle_display_prop):
11133 Undo 2005-05-16 change.
34fcddd0
CY
11134 (handle_stop): Pop iterator if it's loaded with an empty string.
11135 (get_overlay_strings_1): Don't save iterator if it's loaded with
11136 an empty string (bug#1201).
11137
064766f2
KH
111382008-10-24 Kenichi Handa <handa@m17n.org>
11139
11140 * ftfont.c (ftfont_otf_features): Fix previous change.
11141 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11142 calling ftfont_otf_features.
11143
f9bd0df9 111442008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
11145
11146 * font.c (font_match_p): Fix for the case that a vector of
11147 characters is in script-representative-chars.
11148
1dae9197
MA
111492008-10-24 Michael Albinus <michael.albinus@gmx.de>
11150
11151 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 11152 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
11153 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11154 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 11155 macro. (Bug#1186)
1dae9197 11156
f9bd0df9 111572008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
11158
11159 * s/sol2-10.h: New file.
11160
878a4584
JB
111612008-10-23 Juanma Barranquero <lekktu@gmail.com>
11162
11163 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11164 poor beast has survived 9+ years and the jump from xterm.c!).
11165
cd265ca6
MR
111662008-10-23 Martin Rudalics <rudalics@gmx.at>
11167
11168 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11169 Reword doc-string.
f5385255 11170 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 11171
472a4dc9
JB
111722008-10-23 Juanma Barranquero <lekktu@gmail.com>
11173
11174 * character.c (syms_of_character) <script-representative-chars>:
11175 <unicode-category-table>: Doc fixes.
11176
159bd5a2
NF
111772008-10-23 Noah Friedman <friedman@splode.com>
11178
11179 * coding.c (make_conversion_work_buffer): Check that
11180 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11181 Fget_buffer_create.
11182
49f9c344
KH
111832008-10-23 Kenichi Handa <handa@m17n.org>
11184
11185 * font.c (font_add_log): Check the values of extra properties.
11186
12bb3111
MR
111872008-10-22 Martin Rudalics <rudalics@gmx.at>
11188
11189 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11190 Reword doc-string.
11191 (Fset_window_parameter): Use NILP.
11192 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 11193 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 11194
bbeb4e99
JB
111952008-10-22 Juanma Barranquero <lekktu@gmail.com>
11196
11197 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11198
111992008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
11200
11201 * nsfns.m (ns_appkit_version): New function.
11202 (x-server-version): Use it.
11203 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11204 (x-server-vendor): Don't check_ns().
11205
11206 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11207
a9b555d3
JB
112082008-10-22 Juanma Barranquero <lekktu@gmail.com>
11209
11210 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11211 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11212
4626499f
KH
112132008-10-22 Kenichi Handa <handa@m17n.org>
11214
e3681952
KH
11215 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11216 scripts.
11217
4626499f
KH
11218 * category.c (word_boundary_p): Check scripts instead of charset.
11219 Handle nil value in word-separating-categories and
11220 word-combining-categories.
11221 (syms_of_category): Fix docstrings of word-separating-categories
11222 and word-combining-categories.
11223
1560f91a
EZ
112242008-10-21 Eli Zaretskii <eliz@gnu.org>
11225
11226 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11227 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11228
f4668441
MR
112292008-10-21 Martin Rudalics <rudalics@gmx.at>
11230
11231 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11232 Rename arg "buffer" to "buffer_or_name".
11233 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11234 it optional.
11235 (no_switch_window): Remove since the return value is not used.
a9b555d3 11236 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
11237 Consider window as dedicated when Fwindow_dedicated_p returns a
11238 non-nil value.
11239 * lisp.h: Remove prototype for no_switch_window.
11240
fd75ddb2
JD
112412008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11242
11243 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 11244 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 11245
07295713
KH
112462008-10-21 Kenichi Handa <handa@m17n.org>
11247
11248 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11249 check Vlatin_extra_code_table.
11250
712adc82
EZ
112512008-10-20 Eli Zaretskii <eliz@gnu.org>
11252
11253 * fileio.c (Fset_file_modes): Doc fix.
11254
f549eb0b
MA
112552008-10-19 Michael Albinus <michael.albinus@gmx.de>
11256
11257 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11258 in arrays.
11259
aac0c6e3
MR
112602008-10-19 Martin Rudalics <rudalics@gmx.at>
11261
11262 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11263 Mention kill-buffer in doc-string.
11264 (Fset_window_buffer): Reinsert tem check removed in last commit.
11265 (Fenlarge_window, Fshrink_window): Have argument names and
11266 doc-string follow Elisp manual more closely.
11267
112682008-10-18 Eli Zaretskii <eliz@gnu.org>
11269
11270 * fileio.c (Fset_file_modes): Doc fix.
11271
112722008-10-18 Martin Rudalics <rudalics@gmx.at>
11273
11274 * window.c (Fwindow_width, Fset_window_start)
11275 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
11276 (Fdelete_windows_on, Freplace_buffer_in_windows):
11277 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
11278 (Fwindow_dedicated_p): Make window argument optional.
11279 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11280 (Fset_window_buffer): Respect any non-nil dedicated value for
11281 window. Rename "buffer" argument to "buffer_or_name".
11282
112832008-10-18 Ulrich Mueller <ulm@gentoo.org>
11284
11285 * m/sh3.h: New file, machine description for SuperH.
11286
112872008-10-17 Martin Rudalics <rudalics@gmx.at>
11288
11289 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11290
112912008-10-17 Kenichi Handa <handa@m17n.org>
11292
11293 * ftfont.c (ftfont_otf_features): Fix indexing
11294 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11295
112962008-10-16 Magnus Henoch <mange@freemail.hu>
11297
11298 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11299 (Fdbus_call_method_asynchronously): Ditto.
11300 This change makes C-h f display the argument list.
11301
113022008-10-16 Chong Yidong <cyd@stupidchicken.com>
11303
11304 * fileio.c (Fexpand_file_name): Doc fix.
11305
11306 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11307 of :foreground and :background equivalent to unspecified (20.x
11308 compatibility).
11309
113102008-10-15 Eli Zaretskii <eliz@gnu.org>
11311
11312 * buffer.c (syms_of_buffer): Doc fix.
11313
113142008-10-14 Kenichi Handa <handa@m17n.org>
11315
11316 * font.c (font_clear_prop): When clearing font width, clear the
11317 average width field too.
11318
113192008-10-12 Andreas Schwab <schwab@suse.de>
11320
11321 * ftfont.c (ftfont_shape_by_flt): Make static.
11322 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11323
11324 * font.c: Don't include <m17n-flt.h>.
11325
113262008-10-10 Eli Zaretskii <eliz@gnu.org>
11327
11328 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11329
113302008-10-09 Eli Zaretskii <eliz@gnu.org>
11331
11332 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11333 away code.
11334
113352008-10-09 Chong Yidong <cyd@stupidchicken.com>
11336
11337 * dispnew.c (update_text_area): Avoid looping due to large glyph
11338 overhangs (bug#1070).
11339
113402008-10-09 Kenichi Handa <handa@m17n.org>
11341
11342 * fontset.c (face_for_char): If face->fontset is negative, just
11343 return ascii_face.
11344
f5385255
SM
11345 * font.c (font_delete_unmatched): Fix previous change.
11346 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
11347
113482008-10-09 Martin Rudalics <rudalics@gmx.at>
11349
11350 * frame.c (Fraise_frame): On text-only terminals select frame in
11351 order to make it visible. (Bug#1061)
11352
113532008-10-08 Chong Yidong <cyd@stupidchicken.com>
11354
11355 * fontset.c (fontset_find_font): Check frame validity.
11356
113572008-10-07 Chong Yidong <cyd@stupidchicken.com>
11358
a9b555d3 11359 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
11360 (xg_display_close): Allow Emacs to close all displays (bug#985).
11361
113622008-10-06 Andreas Schwab <schwab@suse.de>
11363
f5385255 11364 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
11365
113662008-10-06 Chong Yidong <cyd@stupidchicken.com>
11367
f5385255 11368 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 11369
a9b555d3 11370 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
11371
11372 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11373 during initialization.
11374
113752008-10-04 Eli Zaretskii <eliz@gnu.org>
11376
11377 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11378 whole thing on MSDOS frames as well as on a TTY.
11379
11380 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11381 well as for TTY.
11382 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11383 well as on a TTY.
11384
11385 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11386 as well as for TTY.
11387
11388 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11389
11390 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11391 MSDOS frames as well.
11392
113932008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11394
11395 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11396 correct arguments.
b71ac3dd 11397 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
11398
113992008-10-03 Glenn Morris <rgm@gnu.org>
11400
11401 * emacs.c (USAGE1): Add --daemon.
11402
114032008-10-02 Eli Zaretskii <eliz@gnu.org>
11404
11405 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11406 100, so it's in percents as advertised.
11407
114082008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11409
11410 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11411 (ns_output.current_cursor, ns_output.desired_cursor)
11412 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11413 (FRAME_NEW_CURSOR_COLOR): Remove.
11414
11415 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 11416 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
11417 enumeration (HOLLOW_BOX_CURSOR, etc.).
11418
11419 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11420 (draw_window_cursor): Simplify code.
f5385255
SM
11421 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11422 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 11423 updates manually.
a9b555d3
JB
11424 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11425 Use core Emacs cursor types.
aac0c6e3 11426
b8ff72fa 11427 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
11428
114292008-10-02 Martin Rudalics <rudalics@gmx.at>
11430
11431 * process.c (Faccept_process_output): Fix doc-string.
11432
114332008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11434
11435 * gmalloc.c (__sbrk): Also define for uClibc.
11436
11437 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11438 for uClibc.
11439
114402008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11441
11442 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11443 styles.
11444 (nsfont_open): Reenable the cache.
11445
114462008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11447
11448 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11449 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11450
114512008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11452
11453 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11454 a suspended terminal.
11455
114562008-09-30 Michael Albinus <michael.albinus@gmx.de>
11457
11458 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11459
114602008-09-30 Eli Zaretskii <eliz@gnu.org>
11461
11462 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11463
114642008-09-30 Chong Yidong <cyd@stupidchicken.com>
11465
11466 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11467 in a continued line coincides with a line beginning.
11468
114692008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11470
11471 * nsfont.m (nsfont_trait_distance): Fix bug.
11472 (nsfont_list): Return a list rather than a vector (syncs with Handa
11473 changes of 2008-05-14).
11474 (nsfont_open): Improve logging.
11475
114762008-09-29 Andreas Schwab <schwab@suse.de>
11477
11478 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11479
114802008-09-28 Martin Rudalics <rudalics@gmx.at>
11481
11482 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11483 name as char-resolve-modifiers.
11484 Reported by: Markus Triska <markus.triska@gmx.at>
11485
114862008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11487
11488 * dispnew.c (init_display): Return earlier when running as a daemon.
11489
114902008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11491
11492 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11493
114942008-09-27 Eli Zaretskii <eliz@gnu.org>
11495
11496 * composite.c (Fcomposition_get_gstring)
11497 (Fcompose_region_internal, Fcompose_string_internal)
11498 (Ffind_composition_internal): Doc fix.
11499 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11500 (syms_of_composite) <auto-composition-function>: Doc fix.
11501 (syms_of_composite) <composition-function-table>: Doc fix.
11502
115032008-09-25 Chong Yidong <cyd@stupidchicken.com>
11504
11505 * search.c (wordify): New argument for lax word-ends.
11506 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11507
115082008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11509
11510 * lisp.h (is_daemon): Declare.
11511 * dispnew.c (init_display): Do not try to initialize the terminal
11512 when running as a daemon.
11513
115142008-09-22 Chong Yidong <cyd@stupidchicken.com>
11515
11516 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11517 x_display_pixel_height.
11518
115192008-09-22 Martin Rudalics <rudalics@gmx.at>
11520
11521 * undo.c (record_point): Don't call Fundo_boundary for first
11522 change. (Bug#731)
11523
115242008-09-22 Juanma Barranquero <lekktu@gmail.com>
11525
11526 * emacs.c (Fdaemonp): Doc fix.
11527
115282008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11529
11530 * emacs.c (main): Place #ifdef in the proper place.
11531
115322008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11533
11534 * emacs.c (standard_args): Add --daemon.
11535 (main): Disconnect from the terminal when --daemon is passed.
11536 (is_daemon): New variable.
11537 (Fdaemonp): New function.
11538 (syms_of_emacs): Defsubr it.
11539
115402008-09-20 Chong Yidong <cyd@stupidchicken.com>
11541
11542 * xdisp.c (get_next_display_element): Handle string display
11543 correctly when checking for the end of a box run.
11544
115452008-09-20 Glenn Morris <rgm@gnu.org>
11546
11547 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11548 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11549 (Frename_file): Avoid copying to trash if a rename involves
11550 a delete. (Bug#964).
11551
115522008-09-20 Eli Zaretskii <eliz@gnu.org>
11553
11554 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11555 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11556 frames as well as termcap frames.
11557 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11558 get_named_tty.
11559
115602008-09-19 Eli Zaretskii <eliz@gnu.org>
11561
11562 * process.c (procfs_system_process_attributes): Fix cmdline in
11563 case /proc/PID/cmdline is empty.
11564
11565 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11566 x_display_pixel_height.
11567
115682008-09-19 Juanma Barranquero <lekktu@gmail.com>
11569
11570 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11571
11572 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11573 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11574
115752008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11576
11577 * dispextern.h (struct it): Move line_wrap away from the middle of
11578 bitfields. Move voffset in struct iterator_stack_entry after the
11579 bitfields. Move tab_width near after another short.
11580
115812008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11582
11583 * frame.h (struct frame): Move alpha from the middle of bitfields.
11584
11585 * window.h (struct window): Move frozen_window_start_p after the
11586 rest of the bitfields to reduce padding.
11587
115882008-09-18 Chong Yidong <cyd@stupidchicken.com>
11589
11590 * xterm.h (x_display_info): Remove `height' and `width' members.
11591
11592 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11593
11594 * w32term.h (w32_display_info): Remove `height', `width',
11595 `height_in', and `width_in' members.
11596
b8ff72fa
SM
11597 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11598 New functions.
aac0c6e3
MR
11599 (x_calc_absolute_position): Use them.
11600 (x_term_init): Omit removed `height' and `width' members.
11601
b8ff72fa
SM
11602 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11603 New functions.
aac0c6e3
MR
11604 (w32_read_socket, x_calc_absolute_position): Use them.
11605 (w32_initialize_display_info, w32_term_init): Omit removed members
11606 of w32_display_info.
11607
b8ff72fa
SM
11608 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11609 New functions.
11610 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 11611
b8ff72fa
SM
11612 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11613 New functions.
aac0c6e3
MR
11614 (x_calc_absolute_position): Use them.
11615 (x_term_init): Omit removed `height' and `width' members.
11616
11617 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
11618 (compute_tip_xy):
11619 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
11620 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11621 x_display_pixel_width.
11622
116232008-09-18 Kenichi Handa <handa@m17n.org>
11624
11625 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11626 (composition_compute_stop_pos): Fix handling of static composition.
11627 (Fcomposition_get_gstring): Check FROM and TO at first.
11628
116292008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11630
46e722a9 11631 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
11632 mixup (YAILOM).
11633
116342008-09-17 Chong Yidong <cyd@stupidchicken.com>
11635
11636 * indent.c (Fvertical_motion): Use position reported by iterator
11637 instead of PT for determining screen motion (bug#943).
11638
116392008-09-17 Romain Francoise <romain@orebokech.com>
11640
11641 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11642
116432008-09-17 Kenichi Handa <handa@m17n.org>
11644
11645 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11646
11647 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11648 if necessary.
11649
116502008-09-16 Kenichi Handa <handa@m17n.org>
11651
11652 * coding.c (make_conversion_work_buffer): Avoid calling
11653 Fget_buffer_create if it is not necessary.
11654
116552008-09-15 Martin Rudalics <rudalics@gmx.at>
11656
11657 * window.c (Fselect_window): Don't update window_select_count and
11658 use_time when norecord is not nil.
11659
116602008-09-14 Kenichi Handa <handa@m17n.org>
11661
11662 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11663 specpdl_ptr.
11664
116652008-09-12 Kenichi Handa <handa@m17n.org>
11666
11667 * indent.c (scan_for_column): Don't handle automatic composition
11668 if the current buffer is not associated with a window.
11669
11670 * composite.c (composition_reseat_it): If the current buffer is
11671 not associated with a window, ignore the automatic composition.
11672 (find_automatic_composition): Likewise.
11673
116742008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11675
11676 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11677 (Fgpm_mouse_stop): Use it.
11678 * termhooks.h (close_gpm): Declare.
11679 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11680 connection if Gpm_GetEvent fails.
11681
11682 * window.c (set_window_buffer): Always preserve current-buffer.
11683
116842008-09-12 Glenn Morris <rgm@gnu.org>
11685
11686 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11687
116882008-09-11 Glenn Morris <rgm@gnu.org>
11689
11690 * charset.c (charset-map-path): Doc fix.
11691
116922008-09-10 Kenichi Handa <handa@m17n.org>
11693
11694 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11695
11696 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11697 compose a grapheme cluster with the preceding base glyph.
11698
11699 * composite.c (composition_compute_stop_pos): Fix previous change.
11700 Reset cmp_it->id to -1 at first.
11701
117022008-09-10 Glenn Morris <rgm@gnu.org>
11703
11704 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11705
117062008-09-09 Chong Yidong <cyd@stupidchicken.com>
11707
11708 * keyboard.c (read_key_sequence): Reapply translation maps when
11709 switching keyboards.
11710
117112008-09-09 Kenichi Handa <handa@m17n.org>
11712
11713 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11714 characters.
11715
11716 * composite.c (FORWARD_CHAR): Fix calculation
11717 of (POSITION).pos_byte.
11718 (composition_compute_stop_pos): Limit the search of composition to
11719 at most 500 characters ahead. If we reach the limit or find a
11720 newline, set cmp_it->ch to -2 and return 0.
11721 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11722
117232008-09-08 Kenichi Handa <handa@m17n.org>
11724
11725 * indent.c (Fvertical_motion): Be sure to set
11726 it_overshoot_expected if it.cmp_it.id is non-negative.
11727
117282008-09-07 Andreas Schwab <schwab@suse.de>
11729
11730 * callproc.c (Fcall_process): Don't hold references to string data
11731 across garbage collection. Move initialisation of new_argv down
11732 to avoid compiler bug.
11733
117342008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11735
11736 * process.c (Fsystem_process_attributes): Doc fix.
11737
117382008-09-07 Chong Yidong <cyd@stupidchicken.com>
11739
11740 * callproc.c (Fcall_process): Canonicalize current directory name.
11741
11742 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11743 iterator advances to the next line if the current line ends in a
11744 continued tab.
11745
117462008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11747
11748 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11749 member to point to cmp_from.
11750
11751 * xdisp.c: Doc fix for references to gidx data member.
11752
117532008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11754
11755 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11756
117572008-09-07 Kenichi Handa <handa@m17n.org>
11758
11759 * composite.c (FORWARD_CHAR): Check STOP after
11760 incrementing (POSITION).pos.
11761
117622008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11763
11764 * process.c (Fsystem_process_attributes): Doc fix.
11765
117662008-09-06 Chong Yidong <cyd@stupidchicken.com>
11767
11768 * keyboard.c (Ftop_level): Doc fix.
11769
117702008-09-06 Eli Zaretskii <eliz@gnu.org>
11771
11772 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11773 minibuffer, don't let lower part of menu invade the echo area.
11774
11775 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11776 "char *q" to access menu text and advance through it. Revert the
11777 change that displayed ">" instead of ASCII character 0x10.
11778
117792008-09-05 Eli Zaretskii <eliz@gnu.org>
11780
11781 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11782 toggle boxes and radio buttons on MS-DOS as well.
11783
117842008-09-05 Kenichi Handa <handa@m17n.org>
11785
11786 * composite.c (autocmp_chars): Check lookback count.
11787 (composition_compute_stop_pos): Set cmp_it->lookback.
11788 (composition_reseat_it): Check lookback count.
11789 (struct position_record): New struct.
11790 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11791 (find_automatic_composition): New function.
11792 (composition_adjust_point): Use find_automatic_composition.
11793
11794 * dispextern.h (struct composition_it): New member lookback.
11795
117962008-09-02 Chong Yidong <cyd@stupidchicken.com>
11797
11798 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11799 if moving by a single line.
11800
118012008-09-02 Andreas Schwab <schwab@suse.de>
11802
11803 * xterm.c (x_delete_display): Fix merge error.
11804
11805 * fileio.c (Fexpand_file_name): Remove unused variables.
11806
118072008-09-02 Eli Zaretskii <eliz@gnu.org>
11808
11809 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11810 storage on all platforms, not just on DOS_NT.
11811
118122008-09-02 Jason Rumney <jasonr@gnu.org>
11813
b8ff72fa
SM
11814 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11815 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
11816
118172008-09-01 Chong Yidong <cyd@stupidchicken.com>
11818
11819 * xfaces.c (Finternal_set_alternative_font_family_alist)
11820 (Finternal_set_alternative_font_registry_alist): Properly copy
11821 entire alist structure.
11822
118232008-09-01 Kenichi Handa <handa@m17n.org>
11824
d66c0241 11825 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 11826 representative chars of the script is a vector.
d66c0241
JB
11827 (ftfont_list): Handle the case where the representative chars of
11828 the script is a vector.
aac0c6e3
MR
11829
11830 * character.c (syms_of_character): Docstring of
11831 script-representative-chars fixed.
11832
118332008-08-31 Eli Zaretskii <eliz@gnu.org>
11834
11835 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11836 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11837 the menu. Allocate larger buffer for `text', to account for
11838 possible ^C characters.
11839
118402008-08-31 Martin Rudalics <rudalics@gmx.at>
11841
11842 * xdisp.c (prepare_menu_bars): Don't call
11843 Vwindow_size_change_functions with arg Qt.
11844
118452008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11846
11847 * font.h (font_range):
11848 * fileio.c (report_file_error):
46e722a9
SM
11849 * composite.c (composition_update_it): Yet another int/Lisp_Object
11850 mixup (YAILOM).
aac0c6e3
MR
11851
118522008-08-30 Glenn Morris <rgm@gnu.org>
11853
11854 * data.c (Fmake_variable_frame_local): Doc fix.
11855
11856 * frame.c (Fmodify_frame_parameters): Doc fix.
11857
118582008-08-30 Eli Zaretskii <eliz@gnu.org>
11859
11860 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11861 needed by GetTokenInformation.
11862 (w32_system_process_attributes): Check return values of all system
11863 APIs.
11864
11865 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11866 only when the state changes.
11867 (IT_update_begin, IT_update_end): Add termscript trace.
11868
11869 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11870 clipboard is unavailable. Set dst to NULL if it doesn't point to
11871 malloc'ed data.
11872 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11873 passing random values to xfree.
11874
11875 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11876 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11877
118782008-08-29 Jason Rumney <jasonr@gnu.org>
11879
11880 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11881
118822008-08-29 Eli Zaretskii <eliz@gnu.org>
11883
11884 * composite.c (fill_gstring_body): Avoid compiler warnings.
11885
11886 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11887 LGLYPH_SET_CODE to avoid compiler warnings.
11888
2ae37cf0 11889 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11890
11891 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11892
11893 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11894 LGLYPH_SET_CODE.
11895
118962008-08-29 Kenichi Handa <handa@m17n.org>
11897
11898 * fileio.c (report_file_error): Don't downcase the first character
11899 of errstring if it is still unibyte.
11900
119012008-08-29 Kenichi Handa <handa@m17n.org>
11902
11903 These changes are to re-implement the automatic composition so
11904 that it doesn't use text properties.
11905
11906 * Makefile.in (ftfont.o): Depend on composite.h.
11907 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11908
11909 * character.h (Vunicode_category_table): Extern it.
11910
11911 * character.c (Vunicode_category_table): New variable.
11912 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11913
11914 * chartab.c (optimize_sub_char_table): Perform more greedy
11915 optimization.
11916
b8ff72fa
SM
11917 * composite.h (enum composition_method):
11918 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
11919 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11920 (Vcomposition_function_table): Extern it.
11921 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11922 (composition_gstring_put_cache, composition_gstring_from_id)
11923 (composition_gstring_p, composition_gstring_width)
11924 (composition_compute_stop_pos, composition_reseat_it)
11925 (composition_update_it, composition_adjust_point): Extern them.
11926 (Fcomposition_get_gstring): EXFUN it.
11927
d66c0241 11928 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
11929 (Vcomposition_function_table)
11930 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
11931 (gstring_hash_table, gstring_work, gstring_work_headers):
11932 New variables.
aac0c6e3
MR
11933 (gstring_lookup_cache, composition_gstring_put_cache)
11934 (composition_gstring_from_id, composition_gstring_p)
11935 (composition_gstring_width, fill_gstring_header)
11936 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11937 (composition_reseat_it, composition_update_it)
b8ff72fa 11938 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
11939 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11940 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 11941 Defsubr composition_get_gstring.
aac0c6e3
MR
11942
11943 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11944 cmp_id.
11945 (struct glyph_string): Delete the member gidx. New members
11946 cmp_id, cmp_from, and cmp_to.
11947 (enum it_method): Delete GET_FROM_COMPOSITION.
11948 (struct composition_it): New struct.
11949 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11950 Delete c, len, cmp_id, cmp_len in u.comp.
11951
11952 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 11953 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 11954 (enum lglyph_indices): Likewise.
b8ff72fa 11955 (font_range): Adjust extern.
aac0c6e3
MR
11956 (font_fill_lglyph_metrics): Extern it.
11957
11958 * font.c (QCf): New variable.
11959 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11960 (font_prepare_composition): Delete this function.
11961 (font_range): Type and arguments changed.
11962 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11963 (font_fill_lglyph_metrics): New function.
b8ff72fa 11964 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 11965 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
11966 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11967 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
11968
11969 * fontset.h (font_for_char): Extern it.
11970
11971 * fontset.c (font_for_char): New function.
11972
11973 * ftfont.c: Include composite.h.
11974 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 11975 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
11976
11977 * indent.c: Include composite.h and dispextern.h.
11978 (check_composition): Delete this function.
11979 (scan_for_column): Handle composition by
11980 composition_compute_stop_pos, composition_reseat_it, and
11981 composition_update_it.
11982 (compute_motion): Likewise.
11983 (Fvertical_motion): Fix checking of composition.
11984
11985 * keyboard.c (adjust_point_for_property): Check composition by
11986 composition_adjust_point.
11987
b8ff72fa 11988 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
11989 struct glyph_string.
11990
b8ff72fa
SM
11991 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11992 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
11993 struct glyph.
11994 (produce_composite_glyph): Likewise.
11995
b8ff72fa
SM
11996 * w32term.c (x_draw_composite_glyph_string_foreground):
11997 Adjust for the change of struct glyph_string.
aac0c6e3
MR
11998 (x_draw_glyph_string): Likewise.
11999
12000 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12001 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12002
12003 * xdisp.c: Include font.h.
12004 (it_props): Delete the entry for Qauto_composed.
12005 (init_iterator): Initialize it->cmp_it.id to -1.
12006 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 12007 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
12008 (handle_auto_composed_prop): Delete it.
12009 (handle_composition_prop): Handle only static composition.
12010 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12011 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 12012 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
12013 (pop_it): Likewise.
12014 (get_next_element): Delete next_element_from_composition.
12015 (CHAR_COMPOSED_P): New macro.
12016 (get_next_display_element): For automatic composition, get a face
12017 from the font in the glyph-string.
12018 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 12019 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
12020 (next_element_from_string): Check if the character at the current
12021 position is composed by CHAR_COMPOSED_P.
12022 (next_element_from_buffer): Likewise.
d66c0241
JB
12023 (next_element_from_composition): Adjust for the change of struct it.
12024 Update it->cmp_it.
b8ff72fa
SM
12025 (dump_glyph): Adjust for the change of struct glyph.
12026 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
12027 it and struct glyph. Don't handle automatic composition here.
12028 (fill_gstring_glyph_string): New function.
12029 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 12030 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
12031 (BUILD_GSTRING_GLYPH_STRING): New macro.
12032 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12033 automatic composition.
b8ff72fa 12034 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 12035 struct glyph.
b8ff72fa 12036 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 12037
b8ff72fa 12038 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
12039 the change of struct glyph_string.
12040 (x_draw_glyph_string): Likewise.
12041
120422008-08-29 Glenn Morris <rgm@gnu.org>
12043
12044 * buffer.c (word-wrap): Doc fix.
12045 * xdisp.c (truncate-partial-width-windows): Doc fix.
12046 Increase default to 50.
12047
120482008-08-29 Chong Yidong <cyd@stupidchicken.com>
12049
12050 * xdisp.c (update_tool_bar_unwind): New function.
12051 (update_tool_bar): Temporarily set selected frame before building
12052 tool-bar items.
12053
120542008-08-28 Michael Albinus <michael.albinus@gmx.de>
12055
12056 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12057 snprintf, respectively.
12058 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12059
120602008-08-28 Chong Yidong <cyd@stupidchicken.com>
12061
12062 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12063 LDFLAGS to GNUstep CC invocation.
12064
120652008-08-27 Chong Yidong <cyd@stupidchicken.com>
12066
12067 * indent.c (Fvertical_motion): Revert last change. Handle the
12068 general case where we are moving forward, and PT spans multiple
12069 screen lines.
12070
12071 * eval.c (find_handler_clause): Temporarily increase
12072 max-lisp-eval-depth while printing the backtrace buffer, to
12073 guarantee that help-mode code can run.
12074
120752008-08-27 Eli Zaretskii <eliz@gnu.org>
12076
12077 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12078 colors under -rv.
12079 (IT_set_frame_parameters): Don't swap foreground and background
12080 colors if `(reverse . t)' is present in the frame properties.
12081 (internal_terminal_init): Call init_frame_faces only for the
12082 initial frame.
12083
120842008-08-27 Andreas Schwab <schwab@suse.de>
12085
12086 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12087
120882008-08-27 Andreas Schwab <schwab@suse.de>
12089
12090 * search.c (search_buffer): Set char_base to zero only at the end.
12091
120922008-08-27 Kenichi Handa <handa@m17n.org>
12093
b8ff72fa 12094 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
12095
120962008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12097
12098 * xterm.c (x_term_init): Temporarily hide the partially
12099 initialized terminal while calling vendor-specific-keysyms.
12100
121012008-08-26 Eli Zaretskii <eliz@gnu.org>
12102
12103 * msdos.c (internal_terminal_init): Most initializations done only
12104 once, especially initial_screen_colors[] and termscript open.
12105
121062008-08-26 Chong Yidong <cyd@stupidchicken.com>
12107
12108 * eval.c (Fcondition_case): Doc fix.
12109
12110 * widgetprv.h (EmacsFramePart): Change font member to the new font
12111 struct.
12112
12113 * widget.c: Include character.h and font.h for XSETFONT.
12114 (setup_frame_gcs): Compute X font id from font struct, just once.
12115
121162008-08-26 Eli Zaretskii <eliz@gnu.org>
12117
12118 * term.c (get_named_tty): Fix last change.
12119
121202008-08-26 Chong Yidong <cyd@stupidchicken.com>
12121
12122 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 12123 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
12124
121252008-08-25 Eli Zaretskii <eliz@gnu.org>
12126
12127 * frame.c (do_switch_frame): Mark previously displayed frame as
12128 obscured for FRAME_MSDOS_P frames as well.
12129
121302008-08-24 Eli Zaretskii <eliz@gnu.org>
12131
12132 * frame.c (make_terminal_frame): Initialize f->terminal,
12133 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12134 Set the top frame to newly created frame.
12135 (Fmake_terminal_frame): Reuse the_only_display_info.
12136
12137 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12138 estimating available memory.
12139
b97439ce 121402008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
12141
12142 * nsterm.m (ns_draw_window_cursor): Don't call
12143 NSDisableScreenUpdates and NSEnableScreenUpdates on
12144 non-NS_IMPL_COCOA systems.
12145
121462008-08-23 Andreas Schwab <schwab@suse.de>
12147
12148 * process.c (procfs_system_process_attributes): Fix use of
12149 uninitialized variables.
12150
121512008-08-23 Eli Zaretskii <eliz@gnu.org>
12152
12153 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12154
12155 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12156 calling tty-set-up-initial-frame-faces.
12157
b8ff72fa
SM
12158 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12159 Allow MSDOS frames along with X frames.
aac0c6e3
MR
12160
12161 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12162 addition to output_termcap.
12163
12164 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12165
12166 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12167 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12168 highlight.
12169
12170 * process.c [!subprocesses]: Define QCname.
12171 (syms_of_process): Intern and staticpro it.
12172
12173 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
12174 Adjust for changes in encoding/decoding routines.
12175 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
12176 encode_coding and decode_coding.
12177
b8ff72fa 12178 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
12179
12180 * dosfns.c: Include frame.h before termhooks.h.
12181 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12182 variable termscript.
12183
12184 * s/msdos.h (USER_FULL_NAME): Define.
12185 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12186
12187 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12188 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12189 pw->pw_gecos.
12190
12191 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12192 SELECTED_FRAME as additional (1st) argument.
12193 (tty_read_avail_input): Handle output_msdos_raw in
12194 addition to output_termcap.
12195
12196 * msdos.c: Include frame.h before termhooks.h.
12197 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12198 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12199 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12200 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12201 (IT_set_terminal_modes, IT_reset_terminal_modes)
12202 (IT_set_frame_parameters): Use tty->termscript instead of a global
12203 variable termscript.
12204 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12205 global variable terminal_coding. Don't refer to
12206 Vnonascii_translation_table.
12207 (internal_terminal_init): Set Vwindow_system in current_kboard.
12208 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12209 Announce date and time of session start, if termscript is open.
12210 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
12211 term.c:init_tty). Open termscript only of not already open.
12212 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
12213 here instead of dos_ttraw. Don't initialize display if this is an
12214 initial tty. Don't set FRAME_FONT.
12215 (Vwindow_system_version): Bump to 23.
12216 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12217 is available, set up mouse_position_hook.
12218 (dos_ttraw, IT_set_terminal_modes): If called with initial
12219 terminal, do nothing.
12220 (IT_set_frame_parameters): Handle the Qtty_type frame
12221 parameter by calling internal_terminal_init.
12222 (dos_set_window_size, show_mouse_face)
12223 (clear_mouse_face, IT_note_mode_line_highlight)
12224 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12225 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12226 (initialize_msdos_display): New function.
12227 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12228 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12229 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12230 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 12231 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
12232 (request_sigio, unrequest_sigio): Don't define, now defined on
12233 sysdep.c.
12234 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12235
12236 * term.c [MSDOS]: Include msdos.h.
12237 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12238 conditional to DOS_NT. Allow only one call to this function in a
12239 session. Don't allocate a new struct tty_display_info; instead,
12240 reuse the_only_display_info. Call get_tty_size to get screen
12241 dimensions. Call init_baud_rate to set bad_rate.
12242 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12243 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 12244 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
12245 (get_tty_terminal, get_named_tty, Ftty_type)
12246 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12247 output_termcap.
b8ff72fa
SM
12248 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12249 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 12250 only when subprocesses are supported.
aac0c6e3
MR
12251
12252 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12253 f->output_data.x.
12254 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12255 terminal devices.
12256
5582fbc7 12257 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
12258 x_output.
12259 (FRAME_FONT): Use output_data.tty.
12260 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
12261 (struct x_display_info): Rename from display_info. Update all users in
12262 msdos.c.
aac0c6e3 12263 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 12264 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
12265 (dos_ttraw): Update prototype.
12266
12267 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12268 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12269
122702008-08-23 Jason Rumney <jasonr@gnu.org>
12271
12272 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12273 (fn_TIFFSetDirectory): New library function used.
12274 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12275 (tiff_load): Use :index to select among multiple images. Set count
12276 property when multiple images exist.
12277 (gif_format): Use :index, not :image.
12278
122792008-08-23 Chong Yidong <cyd@stupidchicken.com>
12280
12281 * xdisp.c (try_scrolling): Check INT_MAX instead of
12282 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12283 to obtain INT_MAX.
12284
122852008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12286
12287 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12288
122892008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12290
12291 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12292 GNUstep library location.
12293
122942008-08-21 Chong Yidong <cyd@stupidchicken.com>
12295
12296 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12297 before using it.
12298
12299 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12300
123012008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12302
12303 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12304 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12305 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12306 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12307 (EmacsApp-cursor_blink_handler): Remove declaration.
12308 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12309 match 01 Feb 2008 changes in xterm.c.
12310 (ns_read_socket): Add cast to avoid warning.
12311 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12312 GNUstep.
12313
123142008-08-20 Chong Yidong <cyd@stupidchicken.com>
12315
12316 * xselect.c (x_get_foreign_selection): Return nil if desired
12317 selection could not be obtained, instead of signalling an error.
12318
123192008-08-20 David Reitter <david.reitter@gmail.com>
12320
12321 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12322 * nsterm.m: Remove ns-specific code for cursor blinking.
12323 (ns_draw_window_cursor): Clear cursor properly rather than
12324 redrawing the area. Respect width of bar cursors.
12325 These changes enable the use of generic blink-cursor-mode and
12326 generic cursor types in NS and support smooth cursor movements (do
12327 not blink off after command).
12328 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12329 Nextstep, too.
12330
123312008-08-19 Kenichi Handa <handa@m17n.org>
12332
12333 * font.c (Vfont_log_deferred): New variable.
12334 (font_add_log): Check Vfont_log_deferred.
12335 (font_deferred_log): New function.
12336
12337 * font.h (font_deferred_log): Extern it.
12338
12339 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12340 for sorting.
12341 (face_for_char): Use deferred log.
12342
123432008-08-18 Kenichi Handa <handa@m17n.org>
12344
12345 * fontset.c (face_for_char): Add font log.
12346
12347 * font.c (font_add_log): Add the font properties :script, :lang,
12348 and :otf in the log.
12349
123502008-08-17 Chong Yidong <cyd@stupidchicken.com>
12351
12352 * xdisp.c: Remove dead code.
12353 (handle_invisible_prop, next_overlay_string): Defer call to
12354 setup_for_ellipsis.
12355 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12356
123572008-08-15 Chong Yidong <cyd@stupidchicken.com>
12358
12359 * xfaces.c (lookup_derived_face): Properly handle possible zero
12360 return value of get_lface_attributes.
12361 (merge_faces): Don't tell lookup_derived_face to signal an error
12362 if face is not found.
12363
12364 * dired.c (Fdirectory_files): Doc fix.
12365
12366 * process.c (make_process): Initialize kill_without_query struct
12367 member.
12368
123692008-08-15 Eli Zaretskii <eliz@gnu.org>
12370
12371 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12372 Alternative calculation of totphys for Visual Studio 6.
12373
12374 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12375
12376 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12377 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12378 All users changed.
12379 (stat): Only root directory passed to GetDriveType. Allow RAM
12380 disk as well as local fixed disk when w32-get-true-file-attributes
12381 is set to `local'.
12382 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12383 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12384 (w32_cached_id, w32_add_to_cache): New functions.
12385 (get_name_and_id): Look account names in the cache before calling
12386 lookup_account_sid.
12387 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12388 New initialization flags.
12389 (globals_of_w32): Initialize them to zero.
12390 (w32_system_process_attributes): Use w32_cached_id and
12391 w32_add_to_cache.
12392
123932008-08-14 Lawrence Mitchell <wence@gmx.li>
12394
12395 * lread.c (Fread_char, Fread_char_exclusive): If no character
12396 event is read before timeout is reached, return nil, rather than
12397 converting to a number.
12398
123992008-08-14 Chong Yidong <cyd@stupidchicken.com>
12400
12401 * fns.c (use_dialog_box): Doc fix.
12402
12403 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12404 on OS X.
12405
124062008-08-13 Chong Yidong <cyd@stupidchicken.com>
12407
12408 * frame.c (Qns_parse_geometry): New var.
12409 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12410
124112008-08-11 Chong Yidong <cyd@stupidchicken.com>
12412
12413 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12414 space character in calculating tabs.
12415
124162008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12417
12418 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12419
124202008-08-10 Glenn Morris <rgm@gnu.org>
12421
12422 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12423 silence gcc "limited range of data type" warnings in some
12424 make_fixnum_or_float calls.
12425
124262008-08-09 Eli Zaretskii <eliz@gnu.org>
12427
12428 * w32.c (w32_system_process_attributes): If the process does not
12429 exist, return nil.
12430
12431 * w32.c: Include thelp32.h, psapi.h and coding.h.
12432 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12433 declarations.
12434 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12435 (Process32Next_Proc): New typedefs.
12436 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12437 (g_b_init_process32_next, g_b_init_open_thread_token)
12438 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12439 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12440 (g_b_init_get_process_working_set_size)
12441 (g_b_init_global_memory_status_ex): New static variables.
12442 (globals_of_w32): Initialize them.
12443 (create_toolhelp32_snapshot, process32_first, process32_next)
12444 (open_thread_token, impersonate_self, revert_to_self)
12445 (get_process_memory_info, get_process_working_set_size)
12446 (global_memory_status, global_memory_status_ex): New wrapper
12447 functions.
12448 (w32_list_system_processes, w32_system_process_attributes)
12449 (enable_privilege, restore_privilege, ltime, process_times):
12450 New functions.
12451 (convert_time_raw): New function.
12452 (convert_time): Remove conversion of FILETIME into time in 100
12453 nsec units, call convert_time_raw instead.
12454
12455 * process.h (w32_list_system_processes, w32_system_process_attributes):
12456 Add prototypes.
12457 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12458 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12459 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12460 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12461
12462 * process.c (Fsystem_process_attributes): Doc fix.
12463
124642008-08-08 Chong Yidong <cyd@stupidchicken.com>
12465
12466 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12467 a continued multi-char glyph; if so, advance to the actual glyph.
12468
124692008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12470
12471 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12472
12473 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12474 (.m.o): Use it.
12475 * config.in: Regenerate.
12476
124772008-08-07 Chong Yidong <cyd@stupidchicken.com>
12478
12479 * xdisp.c (redisplay_window): Revert last change.
12480 (try_window): Check bottom scroll margin too.
12481
124822008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12483
12484 * config.in: Regenerate.
12485
12486 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12487 -list-load-path-shadows'.
12488 (nsgui.h): Reduce number of things depending on it.
12489
124902008-08-06 Chong Yidong <cyd@stupidchicken.com>
12491
12492 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12493 instead of window-end which does the wrong thing at eob.
12494 (try_cursor_movement): Minor optimization.
12495 (redisplay_window): If scroll margin is defined, don't assume
12496 window doesn't need scrolling.
12497
124982008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12499
12500 * config.in: Regenerate.
12501
12502 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12503 (mostlyclean): Don't delete *.d under NS.
12504
12505 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12506
125072008-08-06 Kenichi Handa <handa@m17n.org>
12508
12509 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12510
125112008-08-06 Andreas Schwab <schwab@suse.de>
12512
12513 * config.in: Regenerate.
12514
125152008-08-05 Chong Yidong <cyd@stupidchicken.com>
12516
12517 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12518 forcing a window start.
12519
12520 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12521 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12522
125232008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12524
12525 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12526 argument.
12527
125282008-08-05 Juanma Barranquero <lekktu@gmail.com>
12529
12530 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12531 <scroll-down-aggressively, before-change-functions>:
12532 <after-change-functions>: Reflow docstrings.
12533
125342008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 12535 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
12536
12537 Dock menu customization, based on a patch by Ken Raeburn, plus some
12538 other fixes.
12539 * nsmenu.m (dockMenu): New variable.
12540 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12541
12542 * nsterm.h (dockMenu): Declare.
12543
12544 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12545 (ns_term_init): Initialize dockMenu.
12546 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12547 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12548 left.
12549
12550 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12551
125522008-08-04 Chong Yidong <cyd@stupidchicken.com>
12553
12554 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12555
12556 * config.in: Regenerate.
12557
125582008-08-04 Seiji Zenitani <zenitani@mac.com>
12559
12560 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12561
125622008-08-04 Chong Yidong <cyd@stupidchicken.com>
12563
12564 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12565
125662008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12567
12568 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12569
12570 * keyboard.h: Comment an #endif.
12571
12572 * lisp.h (have_menus_p): Adjust comment.
12573
12574 * menu.c (find_and_return_menu_selection): Fix comparison with
12575 client_data.
12576
12577 * nsmenu.m (popup_activated_flag): New variable.
12578 (popup_activated): New function.
12579 (menu-or-popup-active-p): New exported lisp definition.
12580 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12581 when popup done.
12582 (ns_popup_dialog): Set popup_activated_flag.
12583
12584 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12585 version for GNUstep (handled by conditional typedef in nsterm.m).
12586 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12587 in rgb.txt).
12588
12589 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12590
12591 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12592
12593 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12594
12595 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12596 shortcircuit if popup_activated like GTK and X toolkit.
12597
12598 * m/inter386.h: Change DARWIN to DARWIN_OS.
12599
12600 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12601 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12602 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12603 comment on NO_SOCK_SIGIO.
12604
126052008-08-03 Chong Yidong <cyd@stupidchicken.com>
12606
12607 * nsterm.m (windowDidResize): Remove stopModal call.
12608
126092008-08-03 Andreas Schwab <schwab@suse.de>
12610
12611 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12612 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12613
126142008-08-02 Chong Yidong <cyd@stupidchicken.com>
12615
12616 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12617 Don't use uninitialized pointer variable when using getrlimit.
12618
126192008-08-02 Jason Rumney <jasonr@gnu.org>
12620
12621 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12622
126232008-08-02 Eli Zaretskii <eliz@gnu.org>
12624
12625 * alloc.c (NSTATICS): Bump to 0x640.
12626
12627 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12628
12629 * lisp.h: Add prototype for directory_files_internal.
12630
12631 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12632 New functions.
12633 (syms_of_process): Defsubr them. Add initializations for various
12634 Q* symbols used in procfs_system_process_attributes.
12635 (procfs_list_system_processes, procfs_system_process_attributes)
12636 [HAVE_PROCFS]: New functions.
12637 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12638 (procfs_get_total_memory): New functions.
12639
126402008-08-01 Juanma Barranquero <lekktu@gmail.com>
12641
12642 * xfaces.c (Fx_load_color_file): Fix previous change;
12643 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12644
126452008-08-01 Michael Albinus <michael.albinus@gmx.de>
12646
12647 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12648
126492008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12650
12651 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12652
126532008-08-01 Chong Yidong <cyd@stupidchicken.com>
12654
12655 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12656
12657 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12658 define NSApplicationDelegateReplySuccess.
12659 (EmacsView -converstationIdentifier): Use long instead of
12660 NSInteger for GNUstep, since it doesn't have NSInteger.
12661
12662 * xmenu.c: Revert last change.
12663
12664 * keyboard.h: Fix last change.
12665
126662008-08-01 Juanma Barranquero <lekktu@gmail.com>
12667
12668 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12669 on Windows.
12670
126712008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12672
12673 Warning clearing and clean-up in NS port.
12674 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12675 Add prototypes.
12676 * nsgui.h (FACE_DEFAULT): Remove, unused.
12677 (XGCValues): Change colors to unsigned long.
12678 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12679 nsterm.m.
12680 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12681 (ns_list_fonts): Remove, unused.
12682 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12683 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12684 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12685 (nsfont_draw): Compare face colors to 0, not nil.
12686 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12687 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12688 (-addSubmenuWithTitle:): Use NSMenuItem class.
12689 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12690 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12691 (ns_clip_to_row): Make gc arg a BOOL.
12692 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12693 ns_clip_to_row() call.
12694 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12695 used). Cast FRAME_FONT assignments.
12696 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12697 (ns_string_to_lispmod): Change arg to const char.
12698 (ns_term_init): Use NSMenuItem class.
12699 (EmacsApp -openFile:): Move to different section of file.
12700 (EmacsApp -application:openFiles:): Don't return a value, call
12701 -replyToOpenOrPrint:.
12702 (EmacsView -keyDown:): Fix up cast.
12703 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12704 (EmacsView -menuDown:): Cast tag in call to
12705 find_and_call_menu_selection().
12706 (ns_list_fonts): Remove, unused.
12707 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12708 (ns_fontname_to_xlfd): Make static.
12709 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12710 Remove prototypes (now in keyboard.h).
12711 (next_menubar_widget_id): Remove, unused.
12712 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12713 Remove prototypes (now in keyboard.h).
12714 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12715
127162008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12717
12718 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12719 (floatfns.o): Depend on syssignal.h.
12720 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12721
12722 * systty.h: Fix previous change that removed BSD_TERMIOS.
12723 Add comments to #ifdefs.
12724
127252008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12726
12727 * w32fns.c (w32-load-color-file): Remove.
12728 (x-open-connection): Use renamed Fx_load_color_file.
12729 * xfaces.c (x-load-color-file): Add.
12730 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12731 Emacs.clr.
12732 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12733
127342008-07-31 Michael Albinus <michael.albinus@gmx.de>
12735
12736 * dbusbind.c (Fdbus_call_method_asynchronously)
12737 (Fdbus_method_error_internal): New defuns.
12738 (xd_read_message): Handle also reply messages.
12739 (Vdbus_registered_functions_table): Extend docstring.
12740
127412008-07-31 Juanma Barranquero <lekktu@gmail.com>
12742
12743 * keyboard.c (gobble_input): Fix previous change.
12744
127452008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12746
12747 * bitmaps/README:
12748 * xfns.c:
12749 * termcap.c:
12750 * term.c:
12751 * syswait.h:
12752 * systty.h:
12753 * systime.h:
12754 * syssignal.h:
12755 * sysdep.c:
12756 * process.h:
12757 * process.c:
12758 * print.c:
12759 * ndir.h:
12760 * lread.c:
12761 * keyboard.c:
12762 * getpagesize.h:
12763 * floatfns.c:
12764 * fileio.c:
12765 * emacs.c:
12766 * doc.c:
12767 * dispnew.c:
12768 * dired.c:
12769 * data.c:
12770 * callproc.c:
12771 * buffer.c:
12772 * README:
12773 * Makefile.in:
12774 * s/template.h:
12775 * s/msdos.h:
12776 * m/vax.h: Remove VMS support.
12777 * s/vms.h:
12778 * vlimit.h:
12779 * uaf.h:
12780 * temacs.opt:
12781 * param.h:
12782 * ioctl.h: Remove file.
12783
127842008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12785
12786 * s/ms-w32.h (MULTI_KBOARD): Remove.
12787 * xterm.c:
12788 * xselect.c:
12789 * xfns.c:
12790 * window.c:
12791 * w32term.c:
12792 * w32fns.c:
12793 * terminal.c:
12794 * termhooks.h:
12795 * term.c:
12796 * sysdep.c:
12797 * keyboard.h:
12798 * keyboard.c:
12799 * frame.h:
12800 * frame.c:
12801 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12802 * config.in: Regenerate.
12803
128042008-07-30 Jason Rumney <jasonr@gnu.org>
12805
12806 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12807
12808 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12809 (w32font_open_internal): Get unicode version of textmetrics.
12810 Don't enable or disable glyph indices here.
12811 (w32font_open): Disable use of glyph indices.
12812
12813 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12814
128152008-07-30 Chong Yidong <cyd@stupidchicken.com>
12816
12817 * minibuf.c (Vread_buffer_function): Doc fix.
12818
128192008-07-30 John Paul Wallington <jpw@pobox.com>
12820
12821 * minibuf.c (read_buffer_completion_ignore_case): New var.
12822 (Fread_buffer): Use it.
12823
128242008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12825
12826 * systty.h (sensemode): Remove empty #if. Remove reference to
12827 BSD_TERMIOS, unused.
12828
12829 * sysdep.c: Remove reference to DGUX.
12830 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12831
12832 * config.in: Regenerate.
12833
128342008-07-30 Jason Rumney <jasonr@gnu.org>
12835
12836 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12837
128382008-07-29 Jason Rumney <jasonr@gnu.org>
12839
12840 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12841 is populated.
12842 (uniscribe_encode_char): Always use uniscribe.
12843 Avoid using context if cache is populated.
12844
128452008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12846
12847 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12848 open menu.
12849
12850 * gtkutil.c (menu_nav_ended): Remove.
12851 (create_menus): Remove signal connect for menu_nav_ended.
12852
128532008-07-28 Chong Yidong <cyd@stupidchicken.com>
12854
12855 * xdisp.c (redisplay_window): Check return value of
12856 compute_window_start_on_continuation_line before forcing a window
12857 start.
12858
128592008-07-28 Jason Rumney <jasonr@gnu.org>
12860
12861 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12862
12863 * w32term.c (w32_enable_unicode_output, cleartype_active):
12864 Remove obsolete display options.
12865 (x_draw_glyph_string_background): Don't use old cleartype_active
12866 workaround.
12867 (w32_initialize): Remove cleartype_active initialization.
12868 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12869
128702008-07-28 Andreas Schwab <schwab@suse.de>
12871
12872 * lisp.h (init_weak_hash_tables, syms_of_font)
12873 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12874 (remove_hash_entry): Don't declare.
12875 * eval.c (maybe_call_debugger): Make static and move before use.
12876 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12877 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12878 * xterm.h (x_set_frame_alpha): Declare.
12879
128802008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12881
12882 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12883 (create_menus): Connect selection-done to menu_nav_ended.
12884
128852008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12886
12887 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12888 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12889 parameter with read of 'alpha' one.
12890 (Qns_frame_parameter): Remove.
5582fbc7 12891 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12892 (next-selection-coding-system, Vselection_coding_system)
12893 (Vnext_selection_coding_system): Drop.
12894
128952008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12896
12897 * nsfns.m (do-applescript, do_applescript): Rename to
12898 ns-do-applescript, ns_do_applescript, and move within file.
12899
129002008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12901
12902 Remove support for Mac Carbon.
12903 * mactoolbox.c:
12904 * macterm.h:
12905 * macterm.c:
12906 * macselect.c:
12907 * macmenu.c:
12908 * macgui.h:
12909 * macfns.c:
12910 * mac.c: Remove file.
12911 * s/darwin.h:
12912 * m/intel386.h:
12913 * xfaces.c:
12914 * xdisp.c:
12915 * window.c:
12916 * tparam.c:
12917 * termhooks.h:
12918 * termcap.c:
12919 * term.c:
12920 * syssignal.h:
12921 * sysselect.h:
12922 * sysdep.c:
12923 * process.c:
12924 * lread.c:
12925 * lisp.h:
12926 * keyboard.c:
12927 * image.c:
12928 * fringe.c:
12929 * frame.h:
12930 * frame.c:
12931 * fontset.c:
12932 * font.h:
12933 * font.c:
12934 * fns.c:
12935 * fileio.c:
12936 * emacs.c:
12937 * dispnew.c:
12938 * dispextern.h:
12939 * config.in:
12940 * atimer.c:
2ae37cf0 12941 * Makefile.in: Remove code for Carbon.
aac0c6e3 12942
f0131492 129432008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12944
12945 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12946
129472008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12948
12949 * macterm.h (kCGBitmapByteOrder32Host): New define for
12950 non-universal SDKs.
12951
12952 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12953 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12954
12955 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12956 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12957
129582008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12959
12960 * w32inevt.c: Include dispextern.h.
12961
129622008-07-26 Andreas Schwab <schwab@suse.de>
12963
12964 * print.c (print_object): Fix off-by-one in last change.
12965
129662008-07-25 Juanma Barranquero <lekktu@gmail.com>
12967
12968 * term.c (syms_of_term): Don't initialize default_orig_pair,
12969 default_set_foreground and default_set_background on Windows.
12970
129712008-07-25 Jason Rumney <jasonr@gnu.org>
12972
12973 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12974 ScriptItemize. Clean up return value checking. Remove unused
12975 variables.
12976 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12977 shaping engine.
12978
12979 * w32font.c (w32font_has_char): Handle the case where we can't
12980 determine the script for a character.
12981
129822008-07-25 Chong Yidong <cyd@stupidchicken.com>
12983
12984 * term.c (syms_of_term): Initialize default_orig_pair,
12985 default_set_foreground, and default_set_background.
12986
12987 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12988 clash (bug#86).
12989 (getloadavg): Callers changed.
12990
12991 * image.c (svg_load_image): Fix last change.
12992 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12993 image size is valid. Use g_object_unref instead of deprecated
12994 rsvg_handle_free to free rsvg handle.
12995 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12996
129972008-07-25 Jason Rumney <jasonr@gnu.org>
12998
12999 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13000 surrogates before looking up glyph index.
13001 (w32font_text_extents): Encode as surrogates if falling back to
13002 functions that need UTF-16 wide chars.
13003
13004 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13005 BMP as surrogates before looking up glyph index.
13006
130072008-07-25 Chong Yidong <cyd@stupidchicken.com>
13008
13009 * image.c (svg_load_image): Check for failure in return value of
13010 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13011
130122008-07-25 Jason Rumney <jasonr@gnu.org>
13013
13014 * w32font.c (Fx_select_font): Reverse sense of second arg.
13015
130162008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13017
13018 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13019 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13020
13021 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13022 (PURESIZE): Use it.
13023
130242008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13025
13026 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13027 * m/alpha.h (TEXT_END):
13028 * m/ibmrs6000.h (TEXT_END):
13029 * m/macppc.h (TEXT_END):
13030 * s/darwin.h (TEXT_END):
13031 * s/msdos.h (TEXT_END): Remove, unused.
13032 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13033 * s/cygwin.h: Remove comment.
13034
13035 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13036 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13037 * m/intel386.h (DOT_GLOBAL_START):
13038 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13039 (USG): Remove, file not used on USG platforms.
13040
13041 * Makefile.in (HAVE_X11): Remove empty #else.
13042
130432008-07-24 Andreas Schwab <schwab@suse.de>
13044
13045 * fileio.c (Finsert_file_contents): Properly adjust undo list
13046 after format conversion.
13047
130482008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13049
13050 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13051 (menu_nav_ended): Remove.
13052 (create_menus): Remove signal connect for menu_nav_ended.
13053 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13054 create_menus.
13055 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13056
130572008-07-23 Jason Rumney <jasonr@gnu.org>
13058
13059 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13060 with opened font.
13061 (w32font_open): Set font type to gdi.
13062
13063 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13064
130652008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13066
13067 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13068 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13069 defines it.
13070 * unexec.c (ADDR_CORRECT): Define unconditionally.
13071
13072 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13073
13074 * unexec.c: Remove code depending on !COFF and USG, the file is
13075 not used for such systems.
13076
13077 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13078 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13079 (LD_SWITCH_SYSTEM_1): Remove, update users.
13080
13081 * s/darwin.h (DATA_END):
13082 * m/intel386.h (DATA_END):
13083 * m/ibmrs6000.h (DATA_END):
13084 * m/alpha.h (DATA_END): Remove, unused.
13085
13086 * config.in: Regenerate.
13087 * s/ms-w32.h (subprocesses): Define unconditionally.
13088 * s/template.h (subprocesses): Update comment.
13089 * s/vms.h (subprocesses):
13090 * s/usg5-4.h (subprocesses):
13091 * s/hpux10-20.h (subprocesses):
13092 * s/gnu-linux.h (subprocesses):
13093 * s/cygwin.h (subprocesses):
13094 * s/bsd-common.h (subprocesses):
13095 * s/aix4-2.h (subprocesses):
13096 * s/darwin.h (subprocesses): Do not define, defined by default now.
13097
13098 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13099 Remove all references.
13100 (temacs): Add GNUstep specific ld flags.
13101
13102 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13103 similarly to what X does.
13104
131052008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13106
13107 * nsfns.m (x-list-fonts): Remove.
13108 (syms_of_nsfns): Drop the x-list-fonts declaration.
13109 * nsterm.m: Get rid of remaining "//" comments.
13110
131112008-07-22 Chong Yidong <cyd@stupidchicken.com>
13112
13113 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13114
13115 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13116 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13117 (Fns_own_selection_internal, Fx_disown_selection_internal)
13118 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13119
13120 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13121 ... */' style of docstrings. Doc fixes.
13122
131232008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13124
13125 * terminfo.c (UP, BC, PC): Undo previous change.
13126
13127 * nsfns.m: Rename ns prefixed functions/variables to the
13128 corresponding x versions. Update references.
13129
131302008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13131
13132 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13133
131342008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13135
13136 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13137 Remove forwarding functions.
13138 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13139 non-static.
13140 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13141 non-static.
13142 (ns_frame_parm_handlers): Use the new names.
13143 (syms_of_nsfns): Move to the end of file.
13144
13145 * nsterm.m (syms_of_nsterm): Move to the end of file.
13146
13147 * dispnew.c (init_display): Remove code for X10.
13148
131492008-07-22 Jason Rumney <jasonr@gnu.org>
13150
13151 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13152 bare drive.
13153
131542008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13155
13156 * nsterm.m (syms_of_nsterm): Remove debugging println.
13157
131582008-07-22 David Reitter <david.reitter@gmail.com>
13159
13160 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13161 Carbon implementation of the same functionality: execute arbitrary
13162 AppleScript code.
13163
131642008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13165
13166 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13167 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13168 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13169 (Fx_display_mm_height, Fx_display_mm_width)
13170 (Fx_display_backing_store, Fx_display_visual_class)
13171 (Fx_display_save_under, Fx_open_connection)
13172 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13173 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13174 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13175 (Fx_display_pixel_width, Fx_display_pixel_height)
13176 (Fx_display_usable_bounds, Fx_display_planes)
13177 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13178 ... */' style of docstrings.
13179
131802008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13181
13182 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13183 on this platform.
13184 (mips):
13185 * m/iris4d.h (mips): Do not define.
13186 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13187
13188 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13189
13190 * image.c:
13191 * nsfns.m:
13192 * nsselect.m:
13193 * nsterm.h:
13194 * nsterm.m: Rename ns prefixed functions/variables to the
13195 corresponding x versions. Update references.
13196
13197 * m/ibms390x.h (NO_REMAP): Do not undefine.
13198
13199 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13200
132012008-07-21 Chong Yidong <cyd@stupidchicken.com>
13202
13203 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13204 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13205 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13206 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13207 (Fns_display_mm_height, Fns_display_mm_width)
13208 (Fns_display_backing_store, Fns_display_visual_class)
13209 (Fns_display_save_under, Fns_open_connection)
13210 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13211 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13212 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13213 (Fns_display_pixel_width, Fns_display_pixel_height)
13214 (Fns_display_usable_bounds, Fx_display_planes)
13215 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13216
132172008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13218
13219 * print.c (print_object): Check print_depth before searching for
13220 circularities.
13221
132222008-07-21 Michael Albinus <michael.albinus@gmx.de>
13223
13224 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13225 only sprintf.
13226
132272008-07-21 Kenichi Handa <handa@m17n.org>
13228
13229 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13230
132312008-07-20 Andreas Schwab <schwab@suse.de>
13232
13233 * syntax.c (find_start_pos, find_start_value)
13234 (find_start_value_byte, find_start_begv, find_defun_start)
13235 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13236
132372008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13238
13239 * s/sol2-3.h: Insert contents of s/sol2.h.
13240 (LD_SWITCH_SYSTEM): Remove redundant definition.
13241 * s/sol2.h: Remove, unused.
13242
132432008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13244
13245 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13246
132472008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13248
13249 * Makefile.in (ns_appdir): Fix typo in find command.
13250
132512008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13252
13253 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13254
13255 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13256 added not supported anymore.
13257
13258 * s/usg5-4-2.h (LIBS_SYSTEM):
13259 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13260
13261 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13262 * s/lynxos.h (GETPGRP_NO_ARG):
13263 * s/hpux10-20.h (NO_SIOCTL_H):
13264 * s/gnu.h (GETPGRP_NO_ARG):
13265 * s/gnu-linux.h (NO_SIOCTL_H):
13266 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13267 * s/cygwin.h (GETPGRP_NO_ARG):
13268 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13269 (C_DEBUG_SWITCH): Remove duplicate definition.
13270
13271 * m/ibms390.h: Remove boilerplate comments.
13272
13273 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13274
13275 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13276 (wait_reading_process_output): Remove code for SunOS, platform not
13277 supported anymore. Use SOLARIS2 instead of sun.
13278
132792008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13280
13281 * font.c (font_open_by_name): Under NS, default lface height to zero.
13282 (font_open_for_lface): Under NS, set size based on frame fontsize.
13283 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13284 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13285
132862008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13287
13288 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13289 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13290 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13291 YES/NO.
13292 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13293 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13294 * Makefile.in (clean): Clear out build destination dir.
13295
132962008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13297
13298 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13299 xterm, xselect.
13300 * lisp.h: Remove declaration of hash_remove.
13301 * nsgui.h: Remove redefinitions of hash_remove.
13302 * fns.c (hash_remove): Rename to hash_remove_from_table.
13303
133042008-07-19 Seiji Zenitani <zenitani@mac.com>
13305
13306 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13307 strdup() the family UTF8String before modifying it.
13308
133092008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13310
13311 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13312 NS_FACE_BACKGROUND with 0 instead of nil.
13313 * nsfont.m (nsfont_draw): Same.
13314
133152008-07-19 Chong Yidong <cyd@stupidchicken.com>
13316
13317 * nsfns.m (ns_set_background_color): Fix crash.
13318
133192008-07-18 Chong Yidong <cyd@stupidchicken.com>
13320
13321 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13322
133232008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13324
13325 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13326
133272008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13328
13329 * gtkutil.c: Include <config.h> instead of "config.h".
13330
13331 * lisp.h (Foverlay_buffer): Add EXFUN.
13332
13333 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13334 child process to complete child_setup. Undo 2005-09-21 change.
13335
13336 * s/darwin.h: Mention setsid after vfork.
13337
133382008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13339
13340 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13341 Depend on macgui.h.
13342
13343 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13344 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13345
13346 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13347 and f19.
13348 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13349
13350 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13351 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13352 Remove enumerators.
13353
13354 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13355 Check if FACE_FROM_ID returns NULL.
13356
133572008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13358
13359 * w32inevt.c (change_frame_size): Remove extern declaration.
13360 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13361 change_frame_size.
13362
133632008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13364
13365 * getloadavg.c: Revert last change (2008-07-15).
13366
133672008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13368
13369 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 13370 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
13371 from configure.
13372
133732008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13374
13375 * s/sol2.h:
13376 * s/sol2-4.h: Reorganize conditionals.
13377
13378 * ecrt0.c: Remove code depending on m68000, not used anymore.
13379
13380 * fns.c (hash_remove): Make static.
13381 * lisp.h (hash_remove): Don't prototype.
13382
13383 * m/ibmrs6000.h:
13384 * m/ibms390x.h:
13385 * m/macppc.h: Remove boilerplate comments.
13386
13387 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13388 Solaris, which does not need them.
13389
13390 * m/vax.h: Remove comments about unsupported systems.
13391
13392 * s/darwin.h: Reorganize ifdefs.
13393
133942008-07-17 Andreas Schwab <schwab@suse.de>
13395
13396 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13397
133982008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13399
13400 Use SDATA. Follow coding convention of placing operators at
13401 beginning of next line rather than end of previous line, and placing
13402 spaces around infix operators.
13403
13404 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13405 in case it was defined already.
13406 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13407 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13408 ns_default.
13409 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13410 Lisp_Objects.
13411 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13412 (ns_defined_color, ns_color_to_lisp): Declare.
13413 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13414 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13415 it's accepted even with USE_LISP_UNION_TYPE.
13416 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13417 (update_frame_tool_bar): Remove apparently obsolete tests for
13418 non-integerness of f->tool_bar_lines.
13419 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13420 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13421 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13422 (nsfont_open): Don't confuse NULL for Qnil.
13423 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13424 * menu.h (find_and_call_menu_selection):
13425 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13426 (find_and_return_menu_selection): Always return something.
13427 * frame.h: Include dispextern.h for Display_Info.
13428 (display_x_get_resource): Declare.
13429
134302008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13431
13432 * syntax.c: Remove stdio.h include accidentally introduced in
13433 Emacs.app commit.
13434 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13435 NS_IMPL_COCOA.
13436 * keyboard.c (handle_async_input, input_available_signal): Remove
13437 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13438
134392008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13440
13441 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13442 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13443 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13444 Use SDATA.
13445
13446 * keymap.c: Remove all NS-specific code.
13447 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13448 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13449 where_is_preferred_modifier, return a different value depending on how
13450 preferred is the binding.
13451 (where_is_internal): Adjust accordingly.
13452 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13453 Adjust to new preferred_sequence_p.
13454 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13455 * keyboard.c (parse_solitary_modifier): Not static any more.
13456 * keyboard.h (parse_solitary_modifier): Declare.
13457
134582008-07-16 Andreas Schwab <schwab@suse.de>
13459
13460 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13461 of easymenu.
13462
134632008-07-16 Chong Yidong <cyd@stupidchicken.com>
13464
13465 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13466 that we don't move off the line.
13467
134682008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13469
13470 * keyboard.c (Qsuper): Remove.
13471 (parse_menu_item): Don't call where_is_internal specially for NS.
13472
134732008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13474
13475 * s/gnu-linux.h: Remove boilerplate comments.
13476
13477 * m/alpha.h (__ELF__): Consolidate conditions.
13478
13479 * m/m68k.h (linux): Use GNU_LINUX instead.
13480 Remove boilerplate comments.
13481
13482 * m/intel386.h: Undo refactoring from previous change.
13483 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13484 too, remove dead code.
13485 (linux): Use GNU_LINUX instead.
13486
134872008-07-16 Jason Rumney <jasonr@gnu.org>
13488
13489 * w32gui.h: Repeat 26 June changes lost by last change.
13490
134912008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13492
13493 * systty.h: Remove code for Aix on 386, unsupported platform.
13494
13495 * s/ms-w32.h: Remove boilerplate comments.
13496 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13497
13498 * s/gnu-linux.h (TERM): Remove support.
13499 (HAVE_SYSVIPC): Remove, unused.
13500 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13501 for this system.
13502
13503 * process.c: Remove support for IRIS, unused.
13504 Remove support for TERM, not relevant anymore.
13505
13506 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13507 used with the definition.
13508
13509 * s/aix4-2.h (static): Do not undef.
13510
13511 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13512 only used on Aix.
13513 (HAVE_SYSVIPC): Remove, unused.
13514
13515 * m/hp800.h (CANNOT_DUMP): Do not undef.
13516
13517 * m/alpha.h: Fix comment.
13518
13519 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13520 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13521 used by this configuration.
13522 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13523 * unexec.c: Remove code depending on HPUX and
13524 USG_SHARED_LIBRARIES, not used with this file. Remove code
13525 depending on IRIS, unused. Remove if 0-ed code.
13526
13527 * s/template.h: Remove comments about static.
13528
13529 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13530 Remove if 0-ed code.
13531 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13532 were the same as the default.
13533 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13534 Remove boilerplate comments.
13535 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13536 (HAVE_SYSVIPC): Remove, unused.
13537 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13538
13539 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13540 Remove boilerplate comments.
13541 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13542 Remove boilerplate comments.
13543 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13544 Remove boilerplate comments.
13545 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13546
13547 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13548 USG systems which do not use DATA_SEG_BITS.
13549 Refactor code. Remove boilerplate comments.
13550
13551 * m/ibms390.h:
13552 * m/m68k.h:
13553 * s/bsd-common.h:
13554 * s/cygwin.h:
13555 * s/darwin.h:
13556 * s/freebsd.h:
13557 * s/gnu.h:
13558 * s/msdos.h: Remove boilerplate comments.
13559
13560 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 13561 do not use this file.
aac0c6e3
MR
13562 (IRIS_4D): Remove, unused.
13563
13564 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 13565 do not use this file.
aac0c6e3
MR
13566 (SIGN_EXTEND_CHAR):
13567 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13568 * unexmips.c: Remove file, unused.
13569
13570 * editfns.c (Fuser_full_name): Replace the only use of
13571 USER_FULL_NAME with its value.
13572 * config.in: Regenerate.
13573
135742008-07-16 David Reitter <david.reitter@gmail.com>
13575
13576 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13577 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13578
135792008-07-16 Glenn Morris <rgm@gnu.org>
13580
13581 * emacs.c (system-type): Doc fix.
13582
135832008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13584
13585 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13586 If the cache doesn't work, let's fix it, rather than work around it.
13587
135882008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13589
13590 * Makefile.in: Correct additions for nsfont.o in last commit.
13591 * nsfont.m: New file (forgot last commit).
13592
135932008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13594
13595 * callproc.c (set_initial_environment): Initialize
13596 Vprocess_environment under CANNOT_DUMP (fixes crash when
13597 batch-compiling for bootstrap).
13598
135992008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 13600 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 13601
c4cc8b9a
JB
13602 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13603 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
13604
136052008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13606
13607 Changes and additions for NeXTstep windowing system (Cocoa and
13608 GNUstep) support.
13609
13610 * Makefile.in:
13611 * config.in: Support defines and build commands for NS port.
13612 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13613 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13614 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13615 windowing.
13616 (struct face): Add synth_ital field.
13617 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13618 (init_display): Initialize Vinitial_window_system to "ns" when so
13619 compiled.
13620 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13621 (display_arg): Use under NS.
13622 (main): Under NS, allocate autorelease pool and handle command line
13623 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13624 (standard_args): Add NS-specific args.
13625 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13626 * font.c (DEFAULT_ENCODING): New variable.
13627 (font_find_for_lface): Use it.
13628 (syms_of_font): Load syms_of_nsfont under NS.
13629 * font.h: Declare nsfont_driver when compiled under NS.
13630 * fontset.c: When compiling under NS, include nsterm.h.
13631 (fontset_from_font): Autoconstruct fontset under NS.
13632 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13633 symbol, document and use it.
13634 (do_switch_frame): When for_deletion under Cocoa, add
13635 Fraise_frame(Qnil).
13636 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13637 (x_get_arg): Allow "yes" and "no" as boolean values.
13638 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13639 Qright under Cocoa.
13640 (focus-follows-mouse): Default to 0 under NS.
13641 * frame.h (enum output_method): Add output_ns.
13642 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13643 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13644 (FRAME_WINDOW_P): NS-specific definition.
13645 * fringe.c (max_used_fringe_bitmap): Make public.
13646 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13647 (getloadavg): Use NeXT code under descendant OS's.
13648 * image.c (includes and header section, x_create_bitmap_from_data)
13649 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13650 (image_background_transparent, x_clear_image_1)
13651 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13652 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13653 (x_to_xcolors, x_from_xcolors, x_disable_image)
13654 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13655 other GUIs, including XPM support using code originally written for
13656 Carbon GUI.
13657 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13658 using NS API.
13659 (image_ascent): Use font metrics macros instead of direct struct field
13660 access.
13661 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13662 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13663 Also, handle NS as GTK for menu bar purposes.
13664 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13665 toolkit where they differ.
13666 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13667 use cachelist, still needed under NS.
13668 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13669 (struct widget_value): Define it here for menu.c.
13670 * keymap.c (includes): Include modifier internals.
13671 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13672 NS.
13673 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13674 support for preferring sequences using certain modifiers, specified by
13675 the FIRSTONLY argument.
13676 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13677 under NS GNUstep implementation.
13678 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13679 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13680 * menu.c: Include nsterm.h under NS.
13681 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13682 (free_menubar_widget_tree_value, update_submenu_strings)
13683 (find_and_call_menu_selection): Treat NS as X and NT.
13684 (find_and_return_menu_selection): New function, used for popup menus.
13685 * nsgui.h:
13686 * nsterm.h:
13687 * nsfns.m:
13688 * nsimage.m:
13689 * nsmenu.m:
13690 * nsselect.m:
13691 * nsterm.m: New files.
13692 * process.c (wait_reading_process_output): Under NS, call ns_select()
13693 instead of plain select().
13694 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13695 beginning of buffer.
13696 * sysselect.h (init_process): Rename when compiling under Cocoa to
13697 avoid name conflict.
13698 * termhooks.h (display_info): Add ns_display_info to union.
13699 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13700 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13701 COCOA environment.
13702 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13703 unexec() signature. (Note, this will dump, but the resulting file
13704 crashes; unexosx is used instead; keeping around for reference and
13705 possible aid in getting dump working under GNUstep.)
13706 * w32gui.h (button_type, widget_value): Remove definitions (now in
13707 keyboard.h).
13708 * window.c: Include nsterm.h when compiling under NS.
13709 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13710 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13711 other GUI windowing systems.
13712 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13713 GTK.
13714 (x_consider_frame_title): Under NS, set icon type and frame
13715 modified-state indicator; use ns_set_name_as_filename() when using
13716 formatted title.
13717 (update_window_cursor): Make public when compiling under NS.
13718 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13719 (hourglass_atimer, Vhourglass_delay
13720 * xfaces.c (header section, init_frame_faces, clear_font_table)
13721 (defined_color, unload_color, x_face_list_fonts)
13722 (prepare_face_for_display): Add NS support parallel to other GUIs.
13723 Emulate GCs like other non-X GUIs.
13724 (split_font_name): Don't lowercase font name under NS.
13725 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13726 under NS.
13727 * s/darwin.h: Add support for compilation under NS.
13728
137292008-07-15 Jason Rumney <jasonr@gnu.org>
13730
13731 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13732 (w32_show_hourglass): Rename from show_hourglass.
13733 (w32_hide_hourglass): Rename from hide_hourglass.
13734 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13735 (Vhourglass_delay): Declare extern.
13736 (hourglass_started): Remove.
13737
13738 * xdisp.c (Vhourglass_delay): Remove static.
13739 (hourglass_started, start_hourglass, cancel_hourglass):
13740 Don't include these versions on WINDOWSNT.
13741
137422008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13743
13744 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13745 variables (formerly in xfns.c).
13746 (show_hourglass, hide_hourglass): New prototypes (same).
13747 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13748 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13749 in xfns.c).
13750 (syms_of_xdisp): Declare/initialize display-hourglass,
13751 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13752 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13753 formerly in xfns.c.
13754 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13755 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13756 (start_hourglass, cancel_hourglass): Remove.
13757 (show_hourglass, hide_hourglass): Remove prototypes and static
13758 modifiers.
13759 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13760 hourglass_atimer, hourglass_shown_p declaration/initialization.
13761 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13762 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13763 (start_hourglass, cancel_hourglass): Remove.
13764 (show_hourglass, hide_hourglass): Remove prototypes and static
13765 modifiers.
13766 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13767 hourglass_atimer, hourglass_shown_p declaration/initialization.
13768 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13769 (DEFAULT_HOURGLASS_DELAY): Remove.
13770 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13771 hourglass_shown_p declaration/initialization.
13772
137732008-07-14 Jason Rumney <jasonr@gnu.org>
13774
13775 * w32fns.c (w32_get_arg): Remove wrapper function.
13776 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13777 directly.
13778 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13779
137802008-07-14 Kenichi Handa <handa@m17n.org>
13781
13782 * xfont.c (xfont_open): Add workaround for X's bug.
13783
137842008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13785
13786 * fontset.c: Include <stdio.h> unconditionally.
13787
137882008-07-13 Michael Albinus <michael.albinus@gmx.de>
13789
13790 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13791 for filtering.
13792
137932008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13794
13795 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13796
13797 * m/macppc.h:
13798 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13799
c4cc8b9a 13800 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
13801 (SPECIAL_EMACS_INT):
13802 * m/ia64.h (SPECIAL_EMACS_INT):
13803 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13804 * s/gnu.h (NLIST_STRUCT):
13805 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13806 * s/gnu-linux.h (LINUX):
13807 * s/msdos.h (HAVE_FACES):
13808 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13809
13810 * systty.h:
13811 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13812 anymore.
13813
138142008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13815
13816 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13817 always defined as int.
13818
13819 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13820 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13821 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13822 * s/freebsd.h (HAVE_WAIT_HEADER):
13823 * s/bsd-common.h (HAVE_UNION_WAIT):
13824 * s/aix4-2.h (HAVE_WAIT_HEADER):
13825 * m/mips.h (HAVE_UNION_WAIT):
13826 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13827 (COFF, static): Do not define, they are undefined later in the file.
13828
13829 * process.c (update_status): Don't use a union.
13830 (status_convert):
13831 (sigchld_handler): Use int instead of WAITTYPE.
13832
138332008-07-12 Chong Yidong <cyd@stupidchicken.com>
13834
13835 * indent.c (Fvertical_motion): Restore hscroll before moving to
13836 goal column.
13837
138382008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13839
13840 * lisp.h: Remove left over code.
13841
138422008-07-11 Andreas Schwab <schwab@suse.de>
13843
13844 * lisp.h: Fix logic in last change.
13845
13846 * menu.h: New file.
13847 * menu.c: Include it.
13848 * xmenu.c: Likewise.
13849 * Makefile.in: Update dependencies.
13850
138512008-07-11 Kenichi Handa <handa@m17n.org>
13852
13853 * fontset.c (fontset_from_font): Cancel the previous change.
13854
138552008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13856
13857 * lisp.h:
13858 * w32heap.c:
13859 * emacs.c:
13860 * alloc.c: Replace all references of NO_UNION_TYPE with
13861 USE_LISP_UNION_TYPE.
13862
13863 * m/xtensa.h (NO_UNION_TYPE):
13864 * m/vax.h (NO_UNION_TYPE):
13865 * m/template.h (NO_UNION_TYPE):
13866 * m/sparc.h (NO_UNION_TYPE):
13867 * m/mips.h (NO_UNION_TYPE):
13868 * m/macppc.h (NO_UNION_TYPE):
13869 * m/m68k.h (NO_UNION_TYPE):
13870 * m/iris4d.h (NO_UNION_TYPE):
13871 * m/intel386.h (NO_UNION_TYPE):
13872 * m/ibms390x.h (NO_UNION_TYPE):
13873 * m/ibms390.h (NO_UNION_TYPE):
13874 * m/ibmrs6000.h (NO_UNION_TYPE):
13875 * m/ia64.h (NO_UNION_TYPE):
13876 * m/hp800.h (NO_UNION_TYPE):
13877 * m/arm.h (NO_UNION_TYPE):
13878 * m/amdx86-64.h (NO_UNION_TYPE):
13879 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13880 defining it the same.
13881
138822008-07-10 Chong Yidong <cyd@stupidchicken.com>
13883
13884 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13885
138862008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13887
13888 * fileio.c:
50426a04 13889 * sysdep.c:
aac0c6e3
MR
13890 * systty.h:
13891 * m/ibmrs6000.h:
13892 * m/iris4d.h:
13893 * s/aix4-2.h:
13894 * s/freebsd.h:
13895 * s/gnu-linux.h:
13896 * s/hpux10-20.h:
13897 * s/hpux11.h:
13898 * s/netbsd.h:
13899 * s/sol2-3.h:
13900 * s/sol2-4.h:
13901 * s/sol2.h:
13902 * s/usg5-4.h:
13903 * s/vms.h: Remove references to unused variables.
13904
139052008-07-10 Andreas Schwab <schwab@suse.de>
13906
13907 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13908 pattern before matching the generic family.
13909
139102008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13911
13912 * unexec.c:
13913 * s/vms.h:
13914 * s/usg5-4-2.h:
13915 * s/sol2-5.h:
13916 * s/freebsd.h:
13917 * s/darwin.h: Remove dead code.
13918
13919 * m/template.h:
13920 * m/sparc.h:
13921 * m/mips.h:
13922 * m/m68k.h:
13923 * m/iris4d.h:
13924 * m/intel386.h:
13925 * m/ibms390x.h:
13926 * m/ibms390.h:
13927 * m/ia64.h:
13928 * m/hp800.h:
13929 * m/arm.h:
13930 * m/amdx86-64.h: Remove dead code and references to unused
13931 and compiler defined symbols.
13932
13933 * unexmips.c:
13934 * unexelf.c: Remove references to desupported systems.
13935
13936 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13937
13938 * m/powermac.h: Remove boilerplate comments.
13939 (NO_REMAP): Remove unused definition.
13940
13941 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13942 define them.
13943
139442008-07-10 Kenichi Handa <handa@m17n.org>
13945
13946 * xfont.c (xfont_open): Log the reason of failure.
13947
139482008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13949
13950 * fontset.c (fontset_get_font_group):
13951 * font.c (font_check_otf): Specify argument types.
13952
139532008-07-09 Kenichi Handa <handa@m17n.org>
13954
13955 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13956 non-ASCII char is found.
13957
13958 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13959 (reorder_font_vector): Change the arg preferred_family to font.
13960 Prefer the spec matching with font.
13961 (fontset_get_font_group): New function.
13962 (fontset_find_font): Change the format of an element of a realized
13963 fontset. Use fontset_get_font_group.
13964 (fontset_font): Try the current fontset, the default fontset, the
13965 fallbacks of the current fontset, and the fallbacks of the default
13966 fontset in this order.
13967 (face_for_char): Delete the shortcut to use the current font.
13968 (fontset_from_font): Don't set fonts for Latin in the fontset.
13969
13970 * font.h (font_make_object, font_match_p): Adjust prototypes.
13971
13972 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13973
13974 * font.c (font_make_object): New arg entity and pixelsize.
13975 (font_check_otf_features, font_check_otf): New functions.
13976 (font_match_p): Check :lang, :script, and :otf properties.
13977
13978 * xfont.c (xfont_open): Adjust it for the change of
13979 font_make_object.
13980 (xfont_text_extents): Fix initial setting of metrics.
13981
13982 * ftfont.c (struct ftfont_info): New member index, delete member
13983 fc_charset_idx. Make the member order compatible with struct
13984 xftfont_info.
13985 (fc_charset_table): Change charset names to registry names.
13986 (ftfont_pattern_entity): Delete the args registry and
13987 fc_charset_idx. Change the value of :font-entity property
13988 to (FONTNAME . INDEX). Always set :registry property to
13989 `iso10646-1'.
13990 (struct ftfont_cache_data): New struct.
13991 (ftfont_lookup_cache): New arg for_face.
13992 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13993 (ftfont_driver): Set the member otf_capability.
13994 (ftfont_get_charset): Adjust it for the change of
13995 fc_charset_table.
13996 (OTF_TAG_SYM): New macro.
13997 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13998 for the change of fc_charset_table.
13999 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14000 ftfont_pattern_entity. Add FC_INDEX to objset.
14001 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14002 and ftfont_pattern_entity.
14003 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14004 font_make_object, struct ftfont_info.
14005 (ftfont_has_char): Use ftfont_get_fc_charset.
14006 (ftfont_otf_features, ftfont_otf_capability): New functions.
14007 (ftfont_shape): Use ftfont_get_otf.
14008 (ftfont_text_extents): Fix initial setting of metrics.
14009
14010 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14011 member order compatible with struct ftfont_info.
14012 (xftfont_open): Add FC_CHARSET to the pattern. Set
14013 xftfont_info->ft_size. Don't unlock the face. Check BDF
14014 properties if appropriate.
14015 (xftfont_close): Unlock the face.
14016 (xftfont_anchor_point, xftfont_shape): Deleted.
14017 (syms_of_xftfont): Don't set members anchor_point and shape of
14018 xftfont_driver.
14019
14020 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14021 font_make_object.
14022
14023 * w32font.c (w32font_open): Adjust it for the change of
14024 font_make_object.
14025 (w32font_open_internal): Don't set properties of font_object here.
14026
140272008-07-08 Chong Yidong <cyd@stupidchicken.com>
14028
14029 * macfns.c (x_create_tip_frame):
14030 * w32fns.c (x_create_tip_frame):
14031 * xfns.c (x_create_tip_frame): Pass parameter argument to
14032 face-set-after-frame-default.
14033
14034 * xfaces.c (Finternal_merge_in_global_face): Save merged
14035 attributes for the default face back into the face vector.
14036
140372008-07-08 Andreas Schwab <schwab@suse.de>
14038
14039 * fontset.h: Declare fontset_from_font. Don't declare
14040 new_fontset_from_font and fontset_from_font_name.
14041 * xterm.c: Include "fontset.h".
14042 * Makefile.in (xterm.o): Update dependencies.
14043
140442008-07-08 Glenn Morris <rgm@gnu.org>
14045
14046 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14047 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14048
140492008-07-07 Chong Yidong <cyd@stupidchicken.com>
14050
14051 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14052 (x_set_frame_parameters): Don't bind it.
14053
140542008-07-07 Juanma Barranquero <lekktu@gmail.com>
14055
14056 * w32fns.c (map_w32_filename): Declare extern.
14057
140582008-07-07 Jason Rumney <jasonr@gnu.org>
14059
14060 * w32term.c (WS_EX_LAYERED): Define if not already.
14061
140622008-07-06 Chong Yidong <cyd@stupidchicken.com>
14063
14064 * xfaces.c (set_font_frame_param): Don't try to set the font
14065 parameter if it is still unspecified in the lface.
14066
140672008-07-05 Chong Yidong <cyd@stupidchicken.com>
14068
14069 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14070 face if it didn't already exist.
14071
14072 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14073
140742008-07-05 Andreas Schwab <schwab@suse.de>
14075
14076 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14077
140782008-07-05 Chong Yidong <cyd@stupidchicken.com>
14079
14080 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14081 word-wrapping.
14082 (IT_DISPLAYING_WHITESPACE): New macro.
14083 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14084 when word-wrapping. Simplify word-wrapping logic. Use correct
14085 pixel positions when saving copies of the iterator.
14086 (display_line): Use proper wrap point if the last character on a
14087 line was preceded by whitespace.
14088
140892008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14090
14091 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14092
140932008-07-04 Kenichi Handa <handa@m17n.org>
14094
14095 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14096
14097 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14098
140992008-07-02 Jason Rumney <jasonr@gnu.org>
14100
14101 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 14102 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
14103
14104 * xdisp.c (next_element_from_display_vector): Move assignment out
14105 of if statement.
14106
141072008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14108
14109 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14110
14111 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14112 (syms_of_fileio): Initialize and export them.
14113 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14114
14115 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14116 (Fsystem_move_file_to_trash): New function.
14117 (syms_of_w32fns): Export it to lisp.
14118
141192008-07-01 Jason Rumney <jasonr@gnu.org>
14120
14121 * w32font.c (w32font_text_extents): Don't count overhang as part
14122 of width.
14123
141242008-06-30 Miles Bader <miles@gnu.org>
14125
14126 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14127 Add `avoid_cursor_p' field.
14128
14129 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14130 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14131 (append_glyph, append_composite_glyph, produce_image_glyph)
14132 (append_stretch_glyph): Initialize avoid_cursor_p.
14133 (get_it_property): Rename from `get_line_height_property'.
14134 (x_produce_glyphs): Use get_it_property.
14135 (handle_line_prefix, push_display_prop): New functions.
14136 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14137 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14138 New variables.
14139 (syms_of_xdisp): Initialize them.
14140
141412008-06-30 Kenichi Handa <handa@m17n.org>
14142
14143 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14144 XftDefaultSubstitute (they are called in XftFontMatch).
14145 (xftfont_open): Fix args to ftfont_font_format.
14146
14147 * ftfont.c (fc_charset_table): New member lang.
14148 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 14149 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
14150 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14151 (ftfont_open): Fix args to ftfont_font_format.
14152 (ftfont_font_format): New arg filename.
14153
141542008-06-30 Chong Yidong <cyd@stupidchicken.com>
14155
14156 * xfaces.c (Finternal_merge_in_global_face): If default face was
14157 modified, realize it again. Update the font face attribute.
14158
141592008-06-29 Jason Rumney <jasonr@gnu.org>
14160
14161 * w32term.c (x_set_frame_alpha): Fix logic.
14162
141632008-06-29 Kenichi Handa <handa@m17n.org>
14164
14165 * fontset.c (Finternal_char_font): Return font-object instead of
14166 font-name.
14167
14168 * composite.c (get_composition_id): Fix the width calculation for TAB.
14169
141702008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14171
14172 * indent.c (Fvertical_motion): Properly handle float column arg.
14173
141742008-06-28 Jason Rumney <jasonr@gnu.org>
14175
14176 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14177 (pfnSetLayeredWindowAttributes): New function pointer.
14178 (w32_initialize): Initialize it when supported.
14179 (x_set_frame_alpha): New function.
14180
14181 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14182 (w32_frame_parm_handlers): Set alpha handler.
14183
14184 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14185
141862008-06-27 Jason Rumney <jasonr@gnu.org>
14187
14188 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14189 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14190 (w32_to_x_charset, x_to_w32_charset)
14191 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14192 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14193 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14194 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14195 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14196 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14197 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14198 (Qw32_charset_unicode): Remove.
14199 (syms_of_w32fns): Update for above changes.
14200
14201 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14202 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14203 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14204 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14205 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14206 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14207 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14208 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14209 (syms_of_w32font): Update for above changes.
14210
142112008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14212
14213 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14214 removed #if.
14215 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14216
142172008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 14218 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
14219
14220 * makefile.w32-in (LOCAL_FLAGS):
14221 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14222
14223 * sysdep.c (_spawnlp, _getpid):
14224 Declare with explicit _cdecl instead of _CRTAPI1.
14225
14226 * editfns.c (Fget_internal_run_time):
14227 Check for WINDOWSNT with #ifdef, not #if.
14228
142292008-06-26 Jason Rumney <jasonr@gnu.org>
14230
14231 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14232
14233 * w32term.c (x_draw_glyph_string_foreground)
14234 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14235 Use FONT_HANDLE macro.
14236 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14237
14238 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14239 (uniscribe_encode_char): Use FONT_HANDLE macro.
14240
14241 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14242 (w32font_text_extents): Use precast w32_font.
14243 (w32font_close): Free cached metrics.
14244 (w32font_open_internal): Allocate space for name on stack.
14245
142462008-06-26 Chong Yidong <cyd@stupidchicken.com>
14247
14248 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14249
142502008-06-26 Jason Rumney <jasonr@gnu.org>
14251
14252 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14253 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14254
142552008-06-26 Juanma Barranquero <lekktu@gmail.com>
14256
14257 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14258
142592008-06-26 Jason Rumney <jasonr@gnu.org>
14260
14261 * w32bdf.c, w32bdf.h: Remove obsolete files.
14262
14263 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14264
14265 * w32gui.h: Don't include w32bdf.h.
14266 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14267 Remove obsolete font support.
14268
14269 * w32font.h (struct w32font_info): Remove compat_w32_font.
14270 Add hfont member.
14271 (FONT_COMPAT): Remove obsolete macro.
14272
14273 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14274 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14275 (w32font_open_internal): Remove compat code. Set new hfont member.
14276 (Fx_select_font): Use new hfont member.
14277
14278 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14279 (uniscribe_encode_char): Use new hfont member.
14280
14281 * w32term.c (x_draw_glyph_string_foreground)
14282 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14283 (x_draw_glyph_string): Use metrics in w32font_info.
14284
142852008-06-26 Kenichi Handa <handa@m17n.org>
14286
14287 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14288
142892008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14290
14291 * unexnext.c:
14292 * m/ews4800.h:
14293 * m/hp9000s300.h:
14294 * m/ibm370aix.h:
14295 * m/mips-siemens.h:
14296 * m/ncr386.h:
14297 * m/next.h:
14298 * m/pmax.h:
14299 * m/powerpcle.h:
14300 * m/tandem-s2.h:
14301 * s/386bsd.h:
14302 * s/bsd386.h:
14303 * s/bsd4-1.h:
14304 * s/bsd4-2.h:
14305 * s/bsdos2-1.h:
14306 * s/bsdos2.h:
14307 * s/bsdos3.h:
14308 * s/bsdos4.h:
14309 * s/nextstep.h:
14310 * s/ultrix4-3.h:
14311 * s/usg5-0.h:
14312 * s/usg5-2-2.h:
14313 * s/usg5-2.h:
14314 * s/usg5-4-3.h:
14315 * s/ux4800.h:
14316 * s/uxpds.h:
14317 * s/uxpv.h: Remove support for obsolete systems.
14318 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 14319 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
14320 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14321 Remove, insert contents in s/aix4-2.h.
14322 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14323 * s/bsd4-3.h: Rename to ...
14324 * s/bsd-common.h: ... this.
14325 * data.c:
14326 * doc.c:
14327 * ecrt0.c:
14328 * emacs.c:
14329 * fileio.c:
14330 * floatfns.c:
14331 * keyboard.c:
14332 * mem-limits.h:
14333 * print.c:
14334 * process.c:
14335 * sysdep.c:
14336 * syssignal.h:
14337 * systty.h:
14338 * syswait.h:
14339 * term.c:
14340 * unexec.c:
14341 * unexelf.c:
14342 * unexhp9k800.c:
14343 * m/hp800.h:
14344 * m/ibmrs6000.h:
14345 * m/mips.h:
14346 * m/vax.h:
14347 * s/darwin.h:
14348 * s/freebsd.h:
14349 * s/gnu.h:
14350 * s/ms-w32.h:
14351 * s/msdos.h:
14352 * s/netbsd.h:
14353 * s/template.h: Remove references to obsolete variables.
14354
14355 * Makefile.in: Add dependencies for all unexec files.
14356 (admindir): Remove unused variable.
14357 (UNEXEC_SRC): Remove references.
14358
143592008-06-25 Chong Yidong <cyd@stupidchicken.com>
14360
14361 * xfns.c (x_default_font_parameter): If Xft is available, first
14362 try Monospace-12 for the default font.
14363
143642008-06-25 Jason Rumney <jasonr@gnu.org>
14365
14366 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14367
143682008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14369
14370 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14371
14372 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14373
143742008-06-25 Juanma Barranquero <lekktu@gmail.com>
14375
14376 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14377 <scroll-conservatively>: Fix typo in docstring.
14378
14379 * xselect.c (Fx_send_client_event): Doc fix.
14380
143812008-06-25 Kenichi Handa <handa@m17n.org>
14382
14383 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14384
14385 * font.c (font_parse_fcname): Remove unused variables.
14386 (font_sort_entites): Delete the arg SPEC. Caller changed.
14387 Fix for the case of ! best_only.
14388 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14389
14390 * lisp.h (Fstring_to_unibyte): EXFUN it.
14391
14392 * character.h (str_to_unibyte): Extern it.
14393
14394 * character.c (str_to_unibyte): New function.
14395
14396 * fns.c (Fstring_to_unibyte): New function.
14397 (syms_of_fns): Defsubr it.
14398
143992008-06-24 Kenichi Handa <handa@m17n.org>
14400
14401 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14402 DPI too.
14403 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14404
144052008-06-24 Andreas Schwab <schwab@suse.de>
14406
14407 * Makefile.in (${lispsource}loaddefs.el): Rename from
14408 ../lisp/loaddefs.el.
14409 (bootstrap-clean): Do what distclean does but don't remove
14410 Makefile.
14411 (distclean): Depend on bootstrap-clean and remove Makefile.
14412
144132008-06-24 Chong Yidong <cyd@stupidchicken.com>
14414
14415 * buffer.h (struct buffer): New member word_wrap.
14416
14417 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14418 word-wrap.
14419 (init_buffer_once): Initialize them.
14420
14421 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14422 line_wrap enum possessing three possible values.
14423
14424 * termopts.h: Replace truncate_partial_width_windows with
14425 Vtruncate_partial_width_windows.
14426
14427 * dispnew.c (direct_output_for_insert): Avoid direct output when
14428 inserting a space with word wrap on.
14429
14430 * indent.c (compute_motion): Obey integer values of
14431 truncate-partial-width-windows.
14432
14433 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14434 replacing truncate_partial_width_windows.
14435 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14436 truncate only if the window width is below that integer.
14437 (start_display, resize_mini_window, produce_stretch_glyph)
14438 (display_string, move_it_in_display_line_to): Use line_wrap.
14439 (back_to_previous_visible_line_start, reseat_1): Reset
14440 string_from_display_prop_p.
14441 (display_line): Extend default face to end of line when wrapping.
14442
144432008-06-24 Kim F. Storm <storm@cua.dk>
14444
14445 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14446 to wrap continued lines at word boundaries.
14447
144482008-06-24 Jason Rumney <jasonr@gnu.org>
14449
14450 * font.c (Ffont_face_attributes): Multiply pixel size before point
14451 conversion to avoid multiplying rounding error.
14452
144532008-06-23 Jason Rumney <jasonr@gnu.org>
14454
14455 * w32term.c (x_draw_glyph_string_background)
14456 (x_draw_glyph_string): Remove old bdf font code.
14457
14458 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14459
144602008-06-22 Kenichi Handa <handa@m17n.org>
14461
14462 * font.c (font_find_for_lface): Try the adstyle specified in
14463 the property of LFACE_FONT of LFACE (if any).
14464
144652008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14466 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14467
14468 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14469
144702008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14471
14472 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14473 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14474 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14475 (witness-emacs): Remove.
14476 (lisp, shortlisp): Move loaddefs.el earlier.
14477 (mostlyclean): Forget about witness-emacs.
14478
144792008-06-22 Glenn Morris <rgm@gnu.org>
14480
14481 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14482 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14483
144842008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14485
14486 * Makefile.in (PRECOMP): Remove.
14487 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14488 (witness-emacs): Run `compile-first'.
14489 (.el.elc): Use the new compile-onefile target.
14490
144912008-06-21 Kenichi Handa <handa@m17n.org>
14492
14493 * xftfont.c (xftfont_open): Handle QCembolden only when
14494 FC_EMBOLDEN is defined.
14495
144962008-06-21 Andreas Schwab <schwab@suse.de>
14497
14498 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14499 (.el.elc): Likewise.
14500
145012008-06-21 Miles Bader <miles@gnu.org>
14502
14503 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14504 build dir, not the lisp source dir.
14505
145062008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14507
14508 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14509 (bootstrapclean): Remove.
14510 (.el.elc): New rule.
14511 (PRECOMP): New var.
14512 (../lisp/subdirs.el): Remove.
14513 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14514 (witness-emacs): New target.
14515 (mostlyclean): Remove witness-emacs as well.
14516 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14517 Add witness-emacs dependency.
14518
145192008-06-20 Chong Yidong <cyd@stupidchicken.com>
14520
14521 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14522 defined by the font.
14523
145242008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14525
14526 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14527 (bootstrap-clean): New target that keeps TAGS around.
14528 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14529 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14530
145312008-06-20 Jason Rumney <jasonr@gnu.org>
14532
14533 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14534 Remove obsolete font code.
14535
14536 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14537 to determine language support.
14538
145392008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14540
14541 * sysdep.c (cfsetspeed): New fun extracted from the code.
14542 (cfmakeraw): Move before first use.
14543
145442008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14545
14546 * sysdep.c (cfmakeraw): Provide fallback implementation.
14547 (serial_configure): Provide fallback implementation of cfsetspeed.
14548
145492008-06-20 Kenichi Handa <handa@m17n.org>
14550
14551 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14552 the pattern.
14553
14554 * fontset.c (fontset_from_font): Copy font_spec before changing
14555 the elements.
14556
14557 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14558
145592008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14560
14561 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14562 for explicit `font' parameters.
14563
14564 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14565
145662008-06-19 Kenichi Handa <handa@m17n.org>
14567
14568 * frame.c: Include <ctype.h>.
14569 (x_set_font_backend): Allow spacing characters in the X resource
14570 for FontBackend.
14571
145722008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14573
14574 * w32fns.c, xfns.c (Qfont_param): New var.
14575 (syms_of_w32fns): Initialize it.
14576 (x_default_font_parameter): Record explicit `font' into
14577 `font-parameter'.
14578
145792008-06-18 Kenichi Handa <handa@m17n.org>
14580
14581 * font.c (font_parse_xlfd): Fix previous change.
14582 (font_parse_fcname): Don't use :fc-unknown-spec.
14583 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14584 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14585 (font_add_log): Prepend the driver name to the resulting fonts.
14586
14587 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14588 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14589 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14590
14591 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14592 (QCembolden): New variables.
14593 (syms_of_xftfont): DEFSYM them.
14594 (xftfont_open): Call XftFontMatch. Don't trust the result of
14595 XftTextExtents8 if the pixel_size is less than 5.
14596
145972008-06-18 Andreas Schwab <schwab@suse.de>
14598
14599 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14600 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14601
146022008-06-18 Jason Rumney <jasonr@gnu.org>
14603
14604 * w32font.c (w32font_list, w32font_match): Add logging.
14605
14606 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14607
146082008-06-17 Chong Yidong <cyd@stupidchicken.com>
14609
14610 * font.c (font_parse_fcname): Store divider characters for
14611 unknown-spec list. For known key symbols, intern using correct
14612 symbol name.
14613
146142008-06-17 Kenichi Handa <handa@m17n.org>
14615
14616 * xfaces.c (realize_default_face): If the frame is not on window
14617 system, set the fontset of face to nil.
14618
146192008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14620
14621 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14622
146232008-06-16 Juanma Barranquero <lekktu@gmail.com>
14624
14625 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14626 (build_font_name_from_vector): Delete externs.
14627
14628 * xfaces.c (struct font_name): Don't declare.
14629
146302008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14631
14632 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14633
146342008-06-16 Chong Yidong <cyd@stupidchicken.com>
14635
14636 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14637
146382008-06-16 Juanma Barranquero <lekktu@gmail.com>
14639
14640 * font.c (Ffont_spec): Fix usage in docstring.
14641 (Ffont_face_attributes): Doc fix.
14642
146432008-06-16 Andreas Schwab <schwab@suse.de>
14644
14645 * font.c (Ffont_face_attributes): Fix definition.
14646
146472008-06-16 Jason Rumney <jasonr@gnu.org>
14648
14649 * font.h (font_style_symbolic_from_value): Remove.
14650
14651 * font.c (font_style_symbolic_from_value): Remove.
14652 (font_style_symbolic): Revert to pre 2008-06-13 version.
14653
14654 * w32font.c (w32_to_fc_weight): New function.
14655 (w32font_full_name, logfont_to_fcname): Use it.
14656
146572008-06-16 Kenichi Handa <handa@m17n.org>
14658
14659 * font.c (font_check_object): Delete it.
14660 (font_clear_cache): Check if a font-object is alive.
14661 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14662 font-object to nil.
14663 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14664 (font_at): Don't call font_check_object.
14665 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14666
146672008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14668
14669 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14670
146712008-06-16 Chong Yidong <cyd@stupidchicken.com>
14672
14673 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14674
146752008-06-15 Chong Yidong <cyd@stupidchicken.com>
14676
14677 * font.c (font_parse_fcname): Only one decimal point.
14678 (font_unparse_fcname): Handle data in family and foundry indices
14679 as symbols, not strings.
14680 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14681
14682 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14683
14684 * font.h (font_unparse_gtkname): Add prototype.
14685
146862008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14687
14688 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14689
146902008-06-15 Andreas Schwab <schwab@suse.de>
14691
14692 * font.c (font_update_drivers): Fix crash when no drivers match.
14693
146942008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14695
14696 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14697 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14698
146992008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14700
14701 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14702
147032008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14704
14705 * process.c (Fserial_process_configure, Fprocess_send_eof):
14706 Use EQ to compare Lisp_Objects.
14707
147082008-06-13 Jason Rumney <jasonr@gnu.org>
14709
14710 * w32fns.c (Fw32_select_font): Remove old font API function.
14711
14712 * w32font.c (logfont_to_fcname): New function.
14713 (Fx_select_font): New font dialog function compatible with
14714 GTK/fontconfig version.
14715
14716 * font.c (font_style_symbolic_from_value): New function.
14717 (font_style_symbolic): Use it.
14718
14719 * font.h (font_style_symbolic_from_value): Declare new function.
14720
147212008-06-13 Juanma Barranquero <lekktu@gmail.com>
14722
14723 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14724 <font-width-table>: Fix typos in docstrings.
14725
147262008-06-13 Daniel Engeler <engeler@gmail.com>
14727
14728 These changes add serial port access.
14729 * process.c: Add HAVE_SERIAL.
14730 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14731 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14732 (list_processes_1, select_wrapper, Fstop_process)
14733 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14734 (status_notify): Modify to handle serial processes.
14735 [HAVE_SERIAL] (Fserial_process_configure)
14736 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14737 New functions.
14738 * process.h (struct Lisp_Process): Add `type'.
14739 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14740 New functions.
14741 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14742 serial ports.
b71ac3dd 14743 (serial_open, serial_configure): New functions.
aac0c6e3
MR
14744 * w32.h: Add FILE_SERIAL.
14745 (struct _child_process): Add ovl_read, ovl_write.
14746
147472008-06-13 Kenichi Handa <handa@m17n.org>
14748
14749 * dispextern.h (enum lface_attribute_index): New member
14750 LFACE_FOUNDRY_INDEX.
14751
14752 * font.c (font_score): Delete arg alternate_families. Check only
14753 weight, slant, width, and size. Ignore the difference of alias
14754 style symbols.
14755 (font_sort_entites): Adjust for the above change. Reflect the
14756 order of font-driver to scores.
14757 (font_list_entities): Don't check alternate_familes here.
14758 (font_clear_prop): Handle foundry.
14759 (font_update_lface): Don't parse "foundry-family" form here.
14760 Handle FONT_FOUNDRY_INDEX.
14761 (font_find_for_lface): Likewise. Handle alternate families here.
14762 If registry is nil, try iso8859-1 and ascii-0.
14763 (font_open_for_lface): Pay attention to size in ENTITY.
14764 (font_open_by_name): Simplify by calling font_load_for_lface.
14765 (free_font_driver_list): Delete it.
14766 (font_update_drivers): Preserve the order of backends.
14767 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14768 of font_score and font_sort_entites.
14769 (font_update_sort_order): Likewise.
14770
14771 * xfaces.c (LFACE_FOUNDRY): New macro.
14772 (check_lface_attrs): Check foundry.
14773 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14774 (merge_face_vectors): Check foundry.
14775 (merge_face_ref): Likewise.
14776 (Finternal_set_lisp_face_attribute): Likewise.
14777 (x_update_menu_appearance): Likewise.
14778 (Finternal_get_lisp_face_attribute): Likewise.
14779 (lface_hash): Likewise.
14780 (lface_same_font_attributes_p): Likewise.
14781 (x_supports_face_attributes_p): Likewise.
14782 (tty_supports_face_attributes_p): Likewise.
14783 (Finternal_set_alternative_font_family_alist): Intern strings.
14784 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14785 (realize_default_face): Set LFACE_FOUNDRY (lface).
14786
14787 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14788 font-driver at first.
14789
14790 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14791
147922008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14793
14794 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14795
147962008-06-12 Jim Meyering <meyering@redhat.com>
14797
14798 Make unexec_free handle NULL the same way free does.
14799 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14800
148012008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14802
14803 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14804 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14805 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14806 (WEAK_ALIAS): Simplify.
14807 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14808 when searching a unibyte buffer.
14809
148102008-06-12 Chong Yidong <cyd@stupidchicken.com>
14811
14812 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14813
148142008-06-12 Juanma Barranquero <lekktu@gmail.com>
14815
14816 * w32font.c: Include ctype.h.
14817
148182008-06-11 Jason Rumney <jasonr@gnu.org>
14819
14820 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14821 misreported as space.
14822 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14823 as aliases for registry iso10646-1.
14824
148252008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14826
14827 * buffer.c (clone_per_buffer_values): Skip `name'.
14828
148292008-06-11 Chong Yidong <cyd@stupidchicken.com>
14830
14831 * font.c (font_parse_fcname): Fix last change; accept decimal
14832 points in font size.
14833
148342008-06-10 Jason Rumney <jasonr@gnu.org>
14835
14836 * w32uniscribe.c (add_opentype_font_name_to_list):
14837 Skip non unicode fonts.
14838
148392008-06-10 Chong Yidong <cyd@stupidchicken.com>
14840
14841 * xfns.c (Fx_font_dialog): New function.
14842
14843 * gtkutil.c (xg_dialog_response_cb): Rename from
14844 xg_file_response_callback.
14845 (pop_down_dialog): Rename from pop_down_file_dialog.
14846 (xg_get_file_name): Callers changed.
14847 (xg_get_font_name): New function.
14848
14849 * gtkutil.h (xg_get_font_name): Insert prototype.
14850
148512008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14852
14853 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14854 x_underline_minimum_display_offset.
14855 (syms_of_xdisp): Declare it here rather than in xterm.c.
14856 * dispextern.h (underline_minimum_offset): Declare it.
14857 * w32term.c (x_draw_glyph_string): Use it.
14858 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14859 (syms_of_xterm): Don't declare it any more.
14860 (x_draw_glyph_string): Adjust to the new name.
14861
8719abec 148622008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
14863
14864 * xterm.c (x_underline_minimum_display_offset): New var.
14865 (x_draw_glyph_string): Use it.
14866 (syms_of_xterm): Declare it.
14867
148682008-06-10 Chong Yidong <cyd@stupidchicken.com>
14869
14870 * font.c (font_parse_fcname): Accept GTK-style font names too.
14871
148722008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14873
14874 * dired.c (file_name_completion): Don't return t if the match is exact
14875 but with different capitalization.
14876 * minibuf.c (Ftry_completion): Simplify.
14877
14878 * window.c (Vwindow_point_insertion_type): New var.
14879 (set_window_buffer): Use it.
14880 (syms_of_window): Init and export it to Lisp.
14881
148822008-06-10 Kenichi Handa <handa@m17n.org>
14883
14884 * font.h (font_intern_prop): Prototype adjusted.
14885
14886 * font.c (font_intern_prop): New arg force_symbol.
14887 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14888 Adjust for the change of font_intern_prop.
14889
14890 * ftfont.c (ftfont_pattern_entity):
14891 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14892 (w32_registry):
14893 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14894 the change of font_intern_prop.
14895
148962008-06-09 Juanma Barranquero <lekktu@gmail.com>
14897
14898 * w32menu.c (digest_single_submenu): Declare extern.
14899
149002008-06-09 Jason Rumney <jasonr@gnu.org>
14901
14902 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14903
14904 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14905 (parse_single_submenu): Remove.
14906 (digest_single_submenu): Remove.
14907 (syms_of_w32menu): Don't initialise variables that have moved
14908 to menu.c.
14909 (set_frame_menubar): Sync with version in xmenu.c.
14910 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14911
14912 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14913 Make static again.
14914
149152008-06-09 Jason Rumney <jasonr@gnu.org>
14916
14917 Changes to w32 files related to the move of common menu code
14918 to menu.c on 2008-06-08 by Chong Yidong.
14919
14920 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14921 defs to w32gui.h.
14922 (single_keymap_panes, push_menu_item, push_menu_pane):
14923 Make globally visible.
14924
14925 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14926 (local_free, malloc_widget_value, free_widget_value)
14927 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14928 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14929 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14930 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14931 (menu_items, menu_items_allocated, menu_items_used)
14932 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14933 (init_menu_items, finish_menu_items, discard_menu_items)
14934 (grow_menu_items, push_submenu_start, push_submenu_end)
14935 (push_left_right_boundary, push_menu_pane, push_menu_item)
14936 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14937 (free_menubar_widget_tree_value, parse_single_submenu)
14938 (update_submenu_strings): Remove functions.
14939 (xmalloc_widget_value): Remove and declare extern.
14940
14941 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14942 (OBJ1): Build it.
14943
14944 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14945 (local_heap, local_alloc, local_free, malloc_widget_value)
14946 (free_widget_value): Define here.
14947
149482008-06-09 Kenichi Handa <handa@m17n.org>
14949
14950 * font.h (Qascii_0): Extern it.
14951
14952 * font.c (Qascii_0): New variable.
14953 (syms_of_font): DEFSYM it.
14954 (font_open_by_name): If the registry "iso8859-1" fails, try also
14955 "ascii-0".
14956
14957 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14958
149592008-06-08 Kenichi Handa <handa@m17n.org>
14960
14961 * .gdbinit (xfont): New command.
14962
149632008-06-08 Andreas Schwab <schwab@suse.de>
14964
14965 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14966 * Makefile.in (menu.o): Update dependencies.
14967
14968 * Makefile.in (obj): Always add menu.o.
14969 * emacs.c (main): Always call syms_of_menu.
14970 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14971
149722008-06-08 Chong Yidong <cyd@stupidchicken.com>
14973
14974 * Makefile.in: Compile menu.c.
14975
14976 * lisp.h: Declare syms_of_menu.
14977
14978 * emacs.c (main): Call syms_of_menu.
14979
14980 * keyboard.h: Relocate platform-independent menu definitions from
14981 xmenu.c.
14982
14983 * menu.c: New file. Relocate platform-independent menu
14984 definitions from xmenu.c. Suggested by Adrian Robert.
14985
14986 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 14987 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
14988 (menu_items_used, menu_items_n_panes)
14989 (menu_items_submenu_depth): Move to keyboard.h.
14990 (init_menu_items, finish_menu_items, unuse_menu_items)
14991 (discard_menu_items, restore_menu_items, save_menu_items)
14992 (grow_menu_items, push_submenu_start, push_submenu_end)
14993 (push_left_right_boundary, push_menu_pane, push_menu_item)
14994 (keymap_panes, single_keymap_panes, single_menu_item)
14995 (list_of_panes, list_of_items, find_and_call_menu_selection)
14996 (xmalloc_widget_value, free_menubar_widget_value_tree)
14997 (parse_single_submenu, digest_single_submenu)
14998 (update_submenu_strings): Move to menu.c.
14999
150002008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15001
15002 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15003
150042008-06-06 Miles Bader <miles@gnu.org>
15005
15006 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15007 face, not frame default.
15008
150092008-06-05 Martin Rudalics <rudalics@gmx.at>
15010
15011 * window.c (pop_up_windows, pop_up_frames)
15012 (display_buffer_reuse_frames, Vpop_up_frame_function)
15013 (Vdisplay_buffer_function, Veven_window_heights)
15014 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15015 (Vspecial_display_function, Vsame_window_buffer_names)
15016 (Vsame_window_regexps, split_height_threshold)
15017 (Vsplit_window_preferred_function): Move those vars to window.el.
15018 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15019 (Fdisplay_buffer): Move those functions to window.el.
15020 (syms_of_window): Remove corresponding declarations.
15021 (display_buffer): New function.
15022 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15023 * dispnew.c (Flast_nonminibuf_frame): New function.
15024 * buffer.c (Fpop_to_buffer): Move to window.el.
15025
150262008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15027
15028 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15029
150302008-06-05 Kenichi Handa <handa@m17n.org>
15031
15032 * coding.c (detect_coding): Fix previous change.
15033 (detect_coding_system): Likewise.
15034
150352008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15036
15037 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15038
15039 * keymap.c (Vminibuffer_local_filename_must_match_map):
15040 Rename from Vminibuffer_local_must_match_filename_map.
15041 (syms_of_keymap):
15042 * minibuf.c (Fcompleting_read): Adjust accordingly.
15043 * commands.h: Rename declaration as well.
15044
150452008-06-05 Kenichi Handa <handa@m17n.org>
15046
15047 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15048 family name.
15049 (Ffont_put): Likewise.
15050
15051 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15052 current font-spec.
15053
15054 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15055 is unspecified.
15056
15057 * xfaces.c (realize_x_face): If the font-related face attributes
15058 are the same as those of default face, realize a new fontset from
15059 default->fontset.
15060 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15061
150622008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15063
15064 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15065 (move_it_in_display_line): New wrapper.
15066
15067 * window.c (window_scroll_pixel_based_preserve_x)
15068 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15069 (window_scroll_pixel_based, window_scroll_line_based):
15070 Use them to preserve column positions.
15071 (syms_of_window): Initialize them.
15072
15073 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15074 (HPOS . VPOS) pair.
15075
15076 * dispextern.h (move_it_in_display_line): Declare.
15077
150782008-06-05 Juanma Barranquero <lekktu@gmail.com>
15079
15080 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15081 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15082 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15083
150842008-06-04 Juanma Barranquero <lekktu@gmail.com>
15085
15086 * window.c (Fset_window_parameter): Doc fix.
15087 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15088
150892008-06-04 Joakim Verona <joakim@verona.se>
15090
15091 * window.h (struct window): Add new member window_parameters.
15092
15093 * window.c (Fwindow_parameters, Fwindow_parameter)
15094 (Fset_window_parameter): New defuns.
15095 (syms_of_window): Defsubr the new defuns.
15096 (make_window): Initialize window_parameters to nil.
15097
150982008-06-04 John Paul Wallington <jpw@pobox.com>
15099
15100 * eval.c (Fdefmacro): Doc fix.
15101
151022008-06-04 Kenichi Handa <handa@m17n.org>
15103
15104 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15105 Be sure to call setup_coding_system when we find a proper coding system.
15106 (detect_coding_system): Fix handling of coding->head_ascii.
15107
151082008-06-03 Andreas Schwab <schwab@suse.de>
15109
15110 * font.c (font_prop_validate_spacing): Fix last change.
15111
151122008-06-03 Kenichi Handa <handa@m17n.org>
15113
15114 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15115 (font_parse_fcname): Fix handling of unknown key.
15116
15117 * xfont.c (xfont_list): Try an alias.
15118
15119 * charset.c (char_charset): Return NULL if the arg charset_list is
15120 specified and C doesn't belong to any of them.
15121
151222008-06-02 Chip Coldwell <coldwell@redhat.com>
15123
15124 * font.c (font_pixel_size): Don't take cdr of an integer.
15125
151262008-06-02 Jim Meyering <meyering@redhat.com>
15127
15128 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15129 * alloc.c (xfree): Return right away for a NULL arg.
15130 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15131 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15132 * mac.c (create_apple_event_from_event_ref): Likewise.
15133 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15134 Likewise.
15135 * doprnt.c (doprnt1): Likewise.
15136 * frame.c (frame): Likewise.
15137 * keyboard.c (wipe_kboard): Likewise.
15138 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15139 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15140 * term.c (tty_default_color_capabilities, maybe_fatal)
15141 (delete_tty): Likewise.
15142 * w16select.c (string): Likewise.
15143 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15144 * w32bdf.c (w32_free_bdf_font): Likewise.
15145 * w32fns.c (w32_unload_font): Likewise.
15146 * w32font.c (w32font_close): Likewise.
15147 * window.c (size_window): Likewise.
15148 * xselect.c (receive_incremental_selection): Likewise.
15149 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15150 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15151 * w32.c (stat): Likewise.
15152
15153 Remove useless if-before-free tests.
15154 * editfns.c (Fset_time_zone_rule): Likewise.
15155 * lread.c (nosuffix): Likewise.
15156 * ralloc.c (get_bloc): Likewise.
15157 * regex.c (reg_free): Likewise.
15158 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15159 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15160 * xsmfns.c (smc_save_yourself_CB): Likewise.
15161
151622008-06-02 Kenichi Handa <handa@m17n.org>
15163
15164 * font.c (font_find_for_lface): Handle float font size.
15165 (font_open_for_lface): Likewise.
15166
15167 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15168 comparing the properties.
15169
151702008-06-01 Jason Rumney <jasonr@gnu.org>
15171
15172 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15173 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15174 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15175 Don't add empty script list.
15176 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15177
151782008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15179
15180 * Makefile.in (dot, dotdot): Remove, update users.
15181 ".." has been used elsewhere in the file for a long time.
15182 (LIBXT_STATIC): Remove conditional based on unused variable.
15183
151842008-06-01 Miles Bader <miles@gnu.org>
15185
15186 * xfaces.c (Vface_remapping_alist): New variable.
15187 (syms_of_xfaces): Initialize it.
15188 (enum named_merge_point_kind): New type.
15189 (struct named_merge_point): Add `named_merge_point_kind' field.
15190 (push_named_merge_point): Make cycle detection respect different
15191 named-merge-point kinds.
15192 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15193 Remove face-name alias resolution.
15194 (lface_from_face_name): New definition using
15195 `lface_from_face_name_no_resolve'.
15196 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15197 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15198 (get_lface_attributes): New definition that layers face-remapping on
15199 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15200 (lookup_basic_face): New function.
15201 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15202 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15203 `get_lface_attributes'.
15204 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15205 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15206 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15207
15208 * xdisp.c (init_iterator): Pass base_face_id through
15209 `lookup_basic_face' when we actually use it as a face-id.
15210 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15211 DEFAULT_FACE_ID.
15212
15213 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15214 lookup the initial face-id.
15215
15216 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15217
152182008-06-01 Juanma Barranquero <lekktu@gmail.com>
15219
15220 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15221 (Fremove_text_properties): Fix typos in docstrings.
15222
152232008-05-31 Kenichi Handa <handa@m17n.org>
15224
15225 * font.c (font_list_entities): Fix the car part of data to be
15226 stored in the cache.
15227
15228 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15229
152302008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15231
15232 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15233 Add a `test' argument so another predicate than `equal' can be used.
15234 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15235 (map_char_table): Remove unused vars `c' and `i'.
15236 * lisp.h (Foptimize_char_table): Adjust declaration.
15237 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15238
152392008-05-30 Kenichi Handa <handa@m17n.org>
15240
15241 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15242 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15243 defined.
15244
152452008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15246
15247 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15248 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15249 frame-local settings for the same variable.
15250
152512008-05-30 Kenichi Handa <handa@m17n.org>
15252
15253 * fontset.c (Ffont_info): Move to font.c.
15254 (syms_of_fontset): Delete defsubr of Sfont_info.
15255
15256 * font.c (font_style_to_value, font_score): Delete casting of the
15257 args to xstcasecmp.
15258 (register_font_driver): Increment num_font_drivers only when
15259 registering the driver globally.
15260 (Ffont_info): Move from fontset.c. Handle a font object too.
15261 (syms_of_font): Defsubr Sfont_info.
15262
152632008-05-29 Kenichi Handa <handa@m17n.org>
15264
15265 * coding.h (enum define_coding_utf8_arg_index): New enum.
15266 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15267 coding_attr_utf_bom.
15268 (enum utf_bom_type): Rename from utf_16_bom_type.
15269 (struct utf_16_spec): Adjust for the above change.
15270 (struct coding_system): Add utf_8_bom in `spec' union.
15271
15272 * coding.c (CODING_UTF_8_BOM): New macro.
15273 (enum coding_category): Delete coding_category_utf_8, add
15274 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15275 coding_category_utf_8_sig.
15276 (CATEGORY_MASK_UTF_8): Delete it.
15277 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15278 (CATEGORY_MASK_UTF_8_SIG): New macros.
15279 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15280 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15281 CATEGORY_MASK_UTF_8_SIG.
15282 (CATEGORY_MASK_UTF_8): New macro.
15283 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15284 (detect_coding_utf_8): Check BOM.
15285 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15286 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15287 (encode_coding_utf_16): Likewise.
15288 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15289 (detect_coding, detect_coding_system): Handle utf-8-auto.
15290 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15291 (syms_of_coding): Fix setting up of Vcoding_category_table.
15292
152932008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15294
15295 * process.c (Faccept_process_output): If `millisec' is non-nil,
15296 `seconds' default to 0.
15297 (wait_reading_process_output): Also return non-nil if we read output
15298 from a non-running process.
15299
153002008-05-29 Jason Rumney <jasonr@gnu.org>
15301
15302 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15303 `raster' specified.
15304 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15305 in the uniscribe backend, but disallow any font that has no
15306 unicode subrange support.
15307
153082008-05-29 Juanma Barranquero <lekktu@gmail.com>
15309
15310 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15311 Fix typos in docstrings.
15312
153132008-05-29 Kenichi Handa <handa@m17n.org>
15314
15315 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15316 (Fx_family_fonts): Set frame correctly.
15317
153182008-05-28 Jason Rumney <jasonr@gnu.org>
15319
15320 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15321
153222008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15323
15324 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15325 calling build_annotations.
15326
153272008-05-28 Juanma Barranquero <lekktu@gmail.com>
15328
15329 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15330 (Fencode_coding_string):
15331 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15332 <latin-extra-code-table>: Fix typos in docstrings.
15333 (syms_of_coding) <coding-system-alist>: Doc fix.
15334 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15335
153362008-05-28 Kenichi Handa <handa@m17n.org>
15337
15338 * fontset.c (Ffont_info): Don't call font_close_object.
15339
15340 * font.c (font_parse_family_registry): Use Ffont_put to validate
15341 foundry and family.
15342 (font_delete_unmatched): Don't check spacing.
15343 (font_list_entities): Add spacing to the spec to list fonts.
15344
15345 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15346 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15347
15348 * coding.c (encode_coding_raw_text): Fix previous change.
15349 (encode_coding_object): When the dst_object is a buffer and is
15350 different from src_object, move gap to PT.
15351
153522008-05-27 Chong Yidong <cyd@stupidchicken.com>
15353
15354 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15355
153562008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15357
15358 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15359 all branches. Compute it differently.
15360
15361 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15362
153632008-05-27 Juanma Barranquero <lekktu@gmail.com>
15364
15365 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15366 into "else if () ... else ...".
15367
153682008-05-27 Jason Rumney <jasonr@gnu.org>
15369
15370 * w32font.c (w32font_open_internal): Determine if glyph indices
15371 are likely to work here.
15372
153732008-05-27 Chong Yidong <cyd@stupidchicken.com>
15374
15375 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15376 draw overlap glyphs with appropriate highlighting.
15377
153782008-05-27 Kenichi Handa <handa@m17n.org>
15379
15380 * xfont.c (xfont_open): Fix calculation of font->average_width.
15381
153822008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15383
15384 * casefiddle.c (casify_object): Try to guess better whether the
15385 argument is a byte or a char.
15386
153872008-05-26 Andreas Schwab <schwab@suse.de>
15388
15389 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15390 Always send multiples of format size.
15391
15392 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15393
153942008-05-26 Jason Rumney <jasonr@gnu.org>
15395
15396 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15397 (compute_metrics): Don't set failure if we just cleared the cache.
15398 (w32_weight_table): Remove unused variable.
15399 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15400 backwards compatibility.
15401
154022008-05-25 Kenichi Handa <handa@m17n.org>
15403
15404 * w32term.c (x_draw_glyph_string):
15405 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15406
15407 * xfaces.c: Delete unused function prototypes.
15408 (xstrlwr, font_frame): Delete them.
15409 (clear_face_cache): Delete unused variable.
15410
15411 * xftfont.c (xftfont_open): Delete unused variable.
15412 If underline_thickness is not 1, adjust underline_position.
15413
15414 * ftxfont.c (ftxfont_open): Delete unused variable.
15415
15416 * fontset.c (face_for_char): Optimize for the case of no charset
15417 property.
15418
15419 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15420 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15421 (otf_open, font_otf_capability, generate_otf_features)
15422 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15423 Comment out by surrounding "#if 0" and "#endif" for the moment.
15424 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15425 (syms_of_font): Codes for accessing above commented out.
15426
154272008-05-24 Eli Zaretskii <eliz@gnu.org>
15428
15429 * w32proc.c: Include dispextern.h.
15430
15431 * w32.c: Include dispextern.h.
15432
154332008-05-23 Juanma Barranquero <lekktu@gmail.com>
15434
15435 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15436 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15437 Fix typos in docstrings.
15438
154392008-05-23 Jason Rumney <jasonr@gnu.org>
15440
15441 * xsmfns.c: Remove includes that are already included by config.h.
15442
154432008-05-23 Kenichi Handa <handa@m17n.org>
15444
15445 * charset.c (Qemacs, charset_emacs): New variables.
15446 (char_charset): Fix for non-Unicode characters.
15447 (syms_of_charset): Define charset_emacs.
15448
15449 * w32term.c (x_draw_glyph_string): Be sure to update
15450 s->underline_thickness and s->underline_position. Be sure to draw
15451 underline within the current line area.
15452
15453 * xterm.c (x_draw_glyph_string): Be sure to update
15454 s->underline_thickness and s->underline_position. Be sure to draw
15455 underline within the current line area.
15456
15457 * fontset.c: Delete unused variables and add casting for char *
15458 throughout the file.
15459 (fontset_font): Try the fallback fonts of the current fontset
15460 before consulting the default fontset.
15461
15462 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15463
15464 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15465
154662008-05-22 Jason Rumney <jasonr@gnu.org>
15467
15468 * font.c: Don't include strings.h.
15469
15470 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15471
15472 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15473 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15474 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15475 to call xstrcasecmp.
15476
15477 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15478
15479 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15480
15481 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15482
15483 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15484
154852008-05-22 Kenichi Handa <handa@m17n.org>
15486
15487 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15488
15489 * font.c (font_prop_validate_style): Adjust for the format
15490 change of font_style_table.
15491
15492 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15493 two args.
15494
15495 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15496 two args.
15497
154982008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15499
15500 * minibuf.c (keys_of_minibuf): Delete.
15501 * lisp.h (keys_of_minibuf): Delete.
15502 * emacs.c (main): Don't call keys_of_minibuf.
15503
155042008-05-22 Kenichi Handa <handa@m17n.org>
15505
15506 * ftfont.c (ftfont_resolve_generic_family): Rename from
15507 ftfont_list_generic_family. Return a single family for each
15508 generic family.
15509 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15510 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15511 Call font_add_log.
15512 (ftfont_match): Call font_add_log.
15513
15514 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15515 (FONT_DEBUG): Define it.
15516 (font_add_log): Extern it.
15517 (font_assert): Rename from xassert.
15518
15519 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15520 (xfont_list_family): Call font_add_log.
15521 (xfont_match): Likewise.
15522 (memq_no_quit): Delete.
15523
15524 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15525 call of Ffont_xlfd_name.
15526
15527 * xfaces.c (struct table_entry, slant_table, weight_table)
15528 (swidth_table): Move to font.c.
15529
15530 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15531 xassert are changed to font_assert. Delete many unused variables.
15532 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15533 New variables.
15534 (struct table_entry): Move from xfaces.c and modified.
15535 (weight_table, slant_table, width_table): Move from xfaces.c and
15536 contents adjusted for the change of struct table_entry.
15537 (font_style_to_value, font_style_symbolic): Adjust for the
15538 format change of font_style_table.
15539 (font_parse_family_registry): Don't overwrite existing foundry and
15540 family of font_spec.
15541 (font_score): Fix calculation of diff for sizes.
15542 (font_sort_entites): Call font_add_log.
15543 (font_delete_unmatched): Return a newly created list.
15544 (font_list_entities): Fix previous change. Call font_add_log.
15545 (font_matching_entity, font_open_entity, font_close_entity):
15546 Call font_add_log.
15547 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15548 (Finternal_set_font_style_table): Delete.
15549 (BUILD_STYLE_TABLE): New macro.
15550 (build_style_table): New function.
15551 (Vfont_log, font_log_env_checked): New variables.
15552 (font_add_log): New function.
15553 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15554 Declare Lisp variables "font-weight-table", "font-slant-table",
15555 "font-width-table", and "font-log". Initialize font_style_table.
15556
155572008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15558
15559 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15560
155612008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15562 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15563
15564 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15565 (Vframe_alpha_lower_limit): New variable.
15566 (x_set_alpha): New function.
15567
15568 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15569
15570 * xfns.c (x-create-frame, Qalpha):
15571 Initialize the frame parameter `alpha'.
15572 * xterm.c (OPAQUE, OPACITY): New.
15573 (x_set_frame_alpha): New function.
15574 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15575
15576 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15577 * w32fns.c (w32_frame_parm_handlers): Likewise.
15578
155792008-05-20 Jason Rumney <jasonr@gnu.org>
15580
15581 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15582 truetype fonts to opentype list.
15583
155842008-05-20 Juanma Barranquero <lekktu@gmail.com>
15585
15586 * fontset.c (Ffontset_info): Doc fix.
15587 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15588 <ignore-relative-composition>: Fix typos in docstrings.
15589
15590 * font.c (syms-of-font) <font-encoding-alist>:
15591 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15592 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15593 (Ffont_otf_alternates): Doc fixes.
15594
155952008-05-20 Kenichi Handa <handa@m17n.org>
15596
15597 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15598 font.h through out the file.
15599 (FONT_DRIVERS): Rename from FONTOBJ.
15600 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15601 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15602
15603 * emacs.c (main): Call syms_of_font unconditionally.
15604
15605 * font.h (find_font_encoding): Extern it.
15606
15607 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15608 fontset.c.
194d44e7 15609 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
15610 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15611 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15612 only when HAVE_WINDOW_SYSTEM is defined.
15613 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15614 when HAVE_WINDOW_SYSTEM is defined.
15615
15616 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15617 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15618
15619 * xfaces.c: Include font.h unconditionally.
15620 (merge_face_ref, merge_face_vectors)
15621 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15622
156232008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15624
15625 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15626 indirect_variable.
15627 * eval.c (lisp_indirect_variable): New fun.
15628 (Fuser_variable_p): Use it.
15629
156302008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15631
15632 * lisp.h (indirect_variable):
15633 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15634 Use Lisp_Symbol pointers rather than Lisp_Object.
15635 Adjust callers.
15636 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15637 To this end, change calling-convention.
15638
15639 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15640 if some non-hidden buffers are selected by string&pred.
15641
156422008-05-19 Chong Yidong <cyd@stupidchicken.com>
15643
15644 * process.c (wait_reading_process_output): Always check status
15645 when in batch mode.
15646
156472008-05-19 Kenichi Handa <handa@m17n.org>
15648
15649 * font.c (font_list_entities): Fix handling of cache.
15650 (font_matching_entity): Likewise.
15651
15652 * ftfont.c (cs_iso8859_1): Delete.
15653 (ft_face_cache): New variable.
15654 (struct ftfont_info): New member fc_charset_idx.
15655 (ftfont_build_basic_charsets): Delete.
15656 (fc_charset_table): New variable.
15657 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15658 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15659 Callers changed.
15660 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15661 (ftfont_spec_pattern): New argument fc_charset_idx.
15662 Check registry more rigidly. Change callers.
15663 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15664 change of :font-entity property of the font.
15665
15666 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15667 property of the font.
15668
156692008-05-18 Juanma Barranquero <lekktu@gmail.com>
15670
15671 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15672 (Funencodable_char_position, Fcheck_coding_systems_region)
15673 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15674 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15675 (Ffind_operation_coding_system, Fset_coding_system_priority)
15676 (Fcoding_system_eol_type): Doc fixes.
15677
156782008-05-17 Glenn Morris <rgm@gnu.org>
15679
15680 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15681
156822008-05-16 Eli Zaretskii <eliz@gnu.org>
15683
15684 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15685 and st_gid.
15686
15687 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15688 HAVE_WINDOW_SYSTEM is not defined.
15689
15690 * xfaces.c (merge_face_ref, merge_face_vectors)
15691 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15692 HAVE_WINDOW_SYSTEM is defined.
15693 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15694
156952008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15696
15697 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15698
156992008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15700
15701 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15702
157032008-05-15 Kenichi Handa <handa@m17n.org>
15704
15705 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15706 preference.
15707
157082008-05-15 Glenn Morris <rgm@gnu.org>
15709
15710 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15711
157122008-05-15 Chong Yidong <cyd@stupidchicken.com>
15713
15714 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15715 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15716
15717 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15718
157192008-05-15 Kenichi Handa <handa@m17n.org>
15720
15721 * ftfont.c (ftfont_list): Downcase family name to check generic
15722 families.
15723
15724 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15725 font-spec for QCfont value.
15726
15727 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15728 buffer. Check the return value of it.
15729
157302008-05-14 Jason Rumney <jasonr@gnu.org>
15731
15732 * w32term.c (w32_get_glyph_overhangs): Remove.
15733 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15734
157352008-05-14 Kenichi Handa <handa@m17n.org>
15736
15737 * font.c (font_prop_validate): Make nil a valid value.
15738 (font_clear_cache): Check if the cached vector of entities is nil
15739 or not.
15740
157412008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15742
15743 * emacs.c (main_thread): Conditionalize on
15744 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15745 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15746
15747 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15748 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15749 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15750
157512008-05-14 Kenichi Handa <handa@m17n.org>
15752
15753 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15754 has no corresponding coding system.
15755
157562008-05-14 Jason Rumney <jasonr@gnu.org>
15757
15758 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15759
15760 * w32font.h (w32font_open_internal): Update declaration.
15761
15762 * w32font.c (w32font_open_internal): Change last argument from
15763 w32font_info struct to font object. Fill in font object from
15764 font_entity. Get Outline metrics if possible. Use them to
15765 calculate underline position and thickness. Use xlfd name as name
15766 property. Don't set codepage.
15767 (w32font_open): Pass font_object to w32font_open_internal. Don't
15768 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15769 (w32font_draw): Use s->font.
15770 (clear_cached_metrics): Don't clear non-existent blocks.
15771
15772 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15773 font was not found.
15774 (x_draw_glyph_string): Use underline position and thickness from font.
15775
15776 * w32uniscribe.c (uniscribe_open): Pass font_object to
15777 w32font_open_internal.
15778
157792008-05-14 Kenichi Handa <handa@m17n.org>
15780
15781 These changes are to delete all legacy font-handling codes, and
15782 make Emacs use only font-backends.
15783
15784 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15785 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15786
15787 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15788
15789 * charset.h (Vcharset_non_preferred_head)
15790 (Vcurrent_iso639_language): Extern them.
15791
15792 * charset.c (Vcharset_non_preferred_head): New variable.
15793 (Vcurrent_iso639_language): New variable.
15794 (syms_of_charset): Declare it as a Lisp variable.
15795 (char_charset): Don't check non preferred charsets. As a last
15796 resort, return charset_unicode.
15797 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15798
15799 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15800 conditionals. Don't check enable_font_backend. Delete all codes
15801 used only when USE_FONT_BACKEND is not defined.
15802
15803 * dispextern.h (struct glyph_string): Change type of `font' to
15804 `struct font *'.
15805 (struct glyph_string): New member underline_position and
15806 underline_thickness.
15807 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15808 (struct face): Change type of `font' to `struct font *'. Remove
15809 members `font_name', `font_info_id'.
15810 (per_char_metric, encode_char): Delete externs.
15811 (calc_pixel_width_or_height): Adjust the prototype.
15812
15813 * emacs.c (enable_font_backend): Delete extern.
15814 (main): Don't set enable_font_backend. Don't check the command
15815 line argument "-disable-font-backend".
15816
15817 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15818 (enum font_property_index): New members FONT_DPI_INDEX,
15819 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15820 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15821 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15822 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15823 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15824 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15825 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15826 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15827 (struct font_spec, struct font_entity): New structs.
15828 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15829 (struct font): Many members from old "struct font_info" moved to
15830 here. Members font and entity deleted.
15831 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15832 the new font-related objects.
15833 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15834 (CHECK_FONT_GET_OBJECT): Likewise.
15835 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15836 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15837 (struct font_driver): New members case_sensitive anc check. Type
15838 of the member list and open changed.
15839 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15840 (font_symbolic_width, font_find_object, font_get_spec)
15841 (font_set_lface_from_name): Delete extern.
15842 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15843
15844 * font.c: Include <strings.h>.
15845 (enable_font_backend): Delete it.
15846 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15847 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15848 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15849 (null_string): Delete it.
15850 (null_vector): Make it static.
15851 (font_family_alist): Delete it.
15852 (Qnormal): Extern it.
15853 (QCextra, QClanguage): Delete it.
15854 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15855 (font_make_spec, font_make_entity, font_make_object)
15856 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15857 the string. Callers changed.
15858 (font_pixel_size): Adjusted for the format change of font-related
15859 objects.
15860 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15861 (font_style_to_value, font_style_symbolic): New function.
15862 (build_font_family_alist): Delete it.
15863 (font_registry_charsets): Use Fassoc_string instead of
15864 assq_no_quit.
15865 (font_prop_validate_symbol): Don't return null_string.
15866 (font_prop_validate_style): Adjusted for the change of
15867 style-related values in a font vector.
15868 (font_property_table): Delete entries for QClanguage and
15869 QCantialias, add entries for QCavgwidth.
15870 (get_font_prop_index): Delete the 2nd argument FROM.
15871 (font_prop_validate): Arguments changed.
15872 (font_put_extra): Adjusted for the change of font-related objects.
15873 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15874 (font_parse_fcname, font_unparse_fcname)
15875 (font_prepare_composition): Likewise.
15876 (font_parse_family_registry): Renamed from font_merge_old_spec.
15877 (otf_open): Delete the 1st arg entity.
15878 (font_otf_capability): Adjusted for the above change.
15879 (font_score): New arg alternate_families. Adjusted for the change
15880 of font-related objects.
15881 (font_sort_entites): New arg best_only.
15882 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15883 Delete them.
15884 (font_match_p): Check alternate families.
15885 (font_find_object): Delete it.
15886 (font_check_object): New function.
15887 (font_clear_cache): Adjusted for the change of font-related objects.
15888 (font_delete_unmatched): New arg.
15889 (font_list_entities): Call font_driver->list with a spec that
15890 doesn't specify style-related properties.
15891 (font_matching_entity): Arguments changed. Caller changed.
15892 (font_open_entity): Adjusted for the change of font-related objects.
15893 (font_close_object, font_has_char, font_encode_char)
15894 (font_get_name, font_get_spec): Likewise.
15895 (font_spec_from_name, font_clear_prop, font_update_lface):
15896 New functions.
15897 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15898 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15899 (font_at): Adjusted for the change of font-related objects.
15900 (font_range): New function.
15901 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15902 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15903 (Fcopy_font_spec, Fmerge_font_spec): New function.
15904 (Ffont_family_list): Renamed from list-families.
15905 (Finternal_set_font_style_table): Arguments changed.
15906 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15907 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15908 change of font-related objects.
15909 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15910
15911 * fontset.h (struct font_info): Delete it. Most members go to
15912 struct font.
15913 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15914 (enum FONT_SPEC_INDEX): Delete it.
15915 (font_info, list_fonts_func, load_font_func, query_font_func)
15916 (set_frame_fontset_func, find_ccl_program_func)
15917 (get_font_repertory_func, new_fontset_from_font_name): Delete
15918 externs.
15919 (fontset_from_font_name): Extern it.
15920 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15921 (FONT_INFO_FROM_FACE): Deleted.
15922 (face_for_font): Adjust prototype.
15923
15924 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15925 conditionals. Don't check enable_font_backend. Delete all codes
15926 used only when USE_FONT_BACKEND is not defined.
15927 (get_font_info_func, list_font_func, load_font_func)
15928 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15929 (get_font_repertory_func): Delete them.
15930 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15931 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15932 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15933 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15934 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15935 (fontset_compare_rfontdef): New function.
15936 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15937 rfont-defs by qsort. Adjusted for the change of font-group vector.
15938 (load_font_get_repertory): Deleted.
15939 (fontset_find_font): Use new macros to ref/set elements of
15940 font-def and rfont-def.
15941 (fontset_font): Fix the timing of remembering that no font for C.
15942 (free_face_fontset): Do nothing if the face has no fontset.
15943 (face_suitable_for_char_p): Use new macros to ref/set elements of
15944 rfont-def.
15945 (face_for_char): Likewise. Call face_for_char with font_object.
15946 (fs_load_font): Delete. Delete #pragma surrounding it.
15947 (fs_query_fontset): Use strcasecmp instead of strcmp.
15948 (generate_ascii_font_name): Adjusted for the format change of
15949 font-spec.
15950 (Fset_fontset_font): Likewise. Use new macros to set elements of
15951 font-def.
15952 (Fnew_fontset): Use font_unparse_xlfd to generate
15953 FONTSET_ASCII (fontset).
15954 (new_fontset_from_font_name): Deleted.
15955 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15956 a fontset is already created for the font. FIx updating of
15957 Vfontset_alias_alist.
15958 (fontset_ascii_font): Deleted.
15959 (Ffont_info): Adjusted for the format change of font-spec.
15960 (Finternal_char_font): Likewise.
15961 (Ffontset_info): Likewise.
15962 (syms_of_fontset): Don't check load_font_func.
15963
15964 * fns.c (internal_equal): Handle PREV_FONT.
15965
15966 * frame.h: Delete USE_FONT_BACKEND conditional.
15967
15968 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15969 conditionals. Don't check enable_font_backend. Delete all codes
15970 used only when USE_FONT_BACKEND is not defined.
15971 (x_set_font): Call x_new_font, not x_new_fontset2.
15972 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15973 already set for the frame.
15974
15975 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15976 a font-entity by font_make_entity. Use font_intern_prop instead
15977 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15978 font property. If a font is scalable, set avgwidth property to 0.
15979 Set font-entity property by font_put_extra.
15980 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15981 (ffont_driver): Adjusted for the change of struct font_driver.
15982 (ftfont_spec_pattern): New function.
15983 (ftfont_list): Return a list, not vector.
15984 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15985 (ftfont_list_family): Don't downcase names.
15986 (ftfont_free_entity): Deleted.
15987 (ftfont_open): Return a font-object. Adjusted for the change of
15988 struct font. Get underline_thickness and underline_position from
15989 font property. Don't update dpyinfo->smallest_font_height and
15990 dpyinfo->smallest_char_width.
15991 (ftfont_close): Don't free `struct font'.
15992 (ftfont_has_char): Adjusted for the format change of font-entity.
15993 (ftfont_encode_char, ftfont_text_extents): Likewise.
15994
15995 * ftxfont.c (ftxfont_list): Return a list, not vector.
15996 (ftxfont_open): Return a font-object. Adjusted for the change of
15997 struct font. Get underline_thickness and underline_position from
15998 font property. Don't update dpyinfo->smallest_font_height and
15999 dpyinfo->smallest_char_width.
16000 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16001 (ftxfont_draw): Adjusted for the change of struct font.
16002
16003 * image.c (image_ascent): Don't include "charset.h". Include
16004 "character.h" and "font.h".
16005
16006 * lisp.h (enum pvec_type): New member PREV_FONT.
16007 (Fassoc_string): EXFUN it.
16008
16009 * print.c: Include font.h.
16010 (print_object): Handle font-related objects.
16011
16012 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16013 conditionals. Don't check enable_font_backend. Delete all codes
16014 used only when USE_FONT_BACKEND is not defined.
16015 (handle_auto_composed_prop): Do nothing if it->f is not on a
16016 window system. Check how many following characters can be
16017 displayed by the same font.
16018 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16019 'struct font *'.
16020 (get_char_face_and_encoding): Assign the whole encoding task to
16021 the `encode-char' method of a font driver.
16022 (fill_composite_glyph_string): Adjusted for the change of `struct
16023 face' and `struct glyph_string'.
16024 (fill_glyph_string): Likewise.
16025 (get_per_char_metric): Arguments changed.
16026 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16027 and `struct glyph_string'.
16028 (produce_stretch_glyph, calc_line_height_property)
16029 (x_produce_glyphs): Likewise.
16030
16031 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16032 conditionals. Don't check enable_font_backend. Delete all codes
16033 used only when USE_FONT_BACKEND is not defined. Use
16034 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16035 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16036 (Qp): Extern them.
16037 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16038 Deleted.
16039 (struct font_name): Deleted.
16040 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16041 (compare_fonts_by_sort_order): New function.
16042 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16043 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16044 Deleted.
16045 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16046 compare_fonts_by_sort_order.
16047 (Fx_font_family_list): Call Ffont_family_list.
16048 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16049 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16050 (face_symbolic_slant, face_symbolic_swidth)
16051 (split_font_name_into_vector, build_font_name_from_vector)
16052 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16053 (font_rescale_ratio, split_font_name, build_font_name)
16054 (free_font_names, sort_fonts, x_face_list_fonts)
16055 (face_font_available_p, sorted_font_list, cmp_font_names)
16056 (font_list_1, concat_font_list, font_list, remove_duplicates):
16057 Deleted.
16058 (Fx_list_fonts): Use Ffont_list.
16059 (LFACE_AVGWIDTH): Deleted.
16060 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16061 by FONTP.
16062 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16063 (set_lface_from_font_name): Delete it.
16064 (set_lface_from_font): Renamed from
16065 set_lface_from_font_and_fontset. Caller changed. Don't set
16066 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16067 for face.
16068 (merge_face_vectors): Copy font-spec if necessary.
16069 Clear properties of the font-spec if necessary.
16070 (merge_face_ref): Clear properties of the font-spec if necessary.
16071 (Finternal_set_lisp_face_attribute): Likewise.
16072 (set_font_frame_param): Use font_load_for_lface to load a
16073 font-object, and call Fmodify_frame_parameters with it.
16074 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16075 font name by Ffont_xlfd_name.
16076 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16077 QCslant, and QCwidth.
16078 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16079 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16080 Compare fonts by EQ.
16081 (lookup_non_ascii_face): Deleted.
16082 (face_for_font): The 2nd argument changed.
16083 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16084 Check atomic font properties by case insensitive.
16085 (realize_non_ascii_face): Set face->overstrike correctly.
16086 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16087 (dump_realized_face): Get font name from
16088 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16089
16090 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16091 conditionals. Don't check enable_font_backend. Delete all codes
16092 used only when USE_FONT_BACKEND is not defined.
16093 (xic_create_xfontset): Original code deleted and renamed from
16094 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16095 (x_make_gc): Don't set GCFont in GCs.
16096 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16097 opened by "fixed".
16098 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16099 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16100 get_font_repertory_func.
16101
16102 * xfont.c: Include <stdlib.h> and "ccl.h".
16103 (struct xfont_info): New structure.
16104 (xfont_query_font): Deleted.
16105 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16106 moved from xterm.c.
16107 (xfont_driver): Adjusted for the change of struct font_driver.
16108 (compare_font_names): New function.
16109 (xfont_list_pattern): Sort font names case insensitively. Make
16110 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16111 (xfont_list): Return a list, not vector.
16112 (xfont_match): If the font doesn't have QCname property, generate
16113 a name from the other font properties.
16114 (xfont_open): Return a font-object. Adjusted for the change of
16115 struct font. Get underline_thickness and underline_position from
16116 font property. Don't update dpyinfo->smallest_font_height and
16117 dpyinfo->smallest_char_width.
16118 (xfont_close): Don't free struct font.
16119 (xfont_prepare_face): Adjusted for the change of struct font.
16120 (xfont_done_face): Deleted.
16121 (xfont_has_char): Adjusted for the change of struct font.
16122 (xfont_encode_char, xfont_draw): Likewise.
16123 (xfont_check): New function.
16124
16125 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16126 callback function.
16127 (xftfont_match): Adjusted for the format change of font-entity.
16128 (xftfont_open): Adjusted for the format change of font-entity and
16129 font-object. Adjusted for the change of struct font. Return a
16130 font-object. Don't update dpyinfo->smallest_font_height and
16131 dpyinfo->smallest_char_width.
16132 (xftfont_close): Block input while calling XftFontClose.
16133 (xftfont_prepare_face): Don't block input while calling
16134 xftfont_get_colors. Adjusted for the change of struct font.
16135 (xftfont_shape): Return value of error case fixed.
16136
16137 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16138
16139 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16140 conditionals.
16141 (FONT_WIDTH): Return (f)->max_width.
16142 (struct x_display_info): Delete member `font'.
16143 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16144 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16145 (struct x_output): Change type of `font' to `struct font *'.
16146
16147 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16148 conditionals. Don't check enable_font_backend. Delete all codes
16149 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16150 (x_per_char_metric, x_encode_char): Deleted.
16151 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16152 (x_compute_glyph_string_overhangs): Adjusted for the change of
16153 `struct face'.
16154 (x_draw_glyph_string_foreground)
16155 (x_draw_composite_glyph_string_foreground): Likewise.
16156 (x_draw_glyph_string): Likewise. Use font->underline_position and
16157 font->underline_thickness.
16158 (x_new_font): Renamed from x_new_fontset2.
16159 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16160 (x_check_font): Call `check' method of a font driver.
16161 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16162 (x_query_font, x_get_font_repertory): Deleted.
16163 (x_find_ccl_program): Renamed and moved to xfont.c.
16164 (x_redisplay_interface): Adjusted for the change of `struct
16165 redisplay_interface'.
16166
16167 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16168 conditionals. Don't check enable_font_backend. Delete all codes
16169 used only when USE_FONT_BACKEND is not defined. Surround non-used
16170 code by "#ifdef OLD_FONT" and "endif".
16171 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16172
16173 * w32font.h (struct w32font_info): New member.
16174 (FONT_COMPAT): New macro.
16175 (w32font_open_internal): Prototype adjusted.
16176
16177 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16178 OLD_FONT" and "endif".
16179
16180 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16181 conditionals. Don't check enable_font_backend. Delete all codes
16182 used only when USE_FONT_BACKEND is not defined.
16183 (w32font_open): Return a font-object. Make a font-object by
16184 font_make_object. Adjusted for the change of struct w32font_info.
16185 (w32font_close): Don't free struct font. Adjusted for the change
16186 of struct w32font_info.
16187 (w32font_encode_char, w32font_text_extents, w32font_draw):
16188 Adjusted for the change of struct w32font_info.
16189 (w32font_draw): Likewise.
16190 (w32font_list_internal): Return a list, not vector.
16191 (w32font_open_internal): Change the 4th arg to font-object.
16192 Adjusted for the change of struct w32font_info and font-object format.
16193 (add_font_name_to_list): Don't downcase names.
16194 (w32_enumfont_pattern_entity): Make a font-entity by
16195 font_make_entity. Adjusted for the format change of font-entity.
16196 Use FONT_SET_STYLE to set a style-related font property. If a
16197 font is scalable, set avgwidth property to 0. Set font-entity
16198 property by font_put_extra.
16199 (font_matches_spec): Adjusted for the format change of font-entity.
16200 (w32_weight_table, w32_decode_weight): New variables.
16201 (w32_encode_weight): New function.
16202 (fill_in_logfont): Adjusted for the format change of font-spec.
16203 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16204 weight value.
16205 (w32font_driver): Adjusted for the change of struct font_driver.
16206
16207 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16208 conditionals. Don't check enable_font_backend. Surround non-used
16209 code by "#ifdef OLD_FONT" and "endif".
16210 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16211 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16212
16213 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16214 conditionals. Don't check enable_font_backend. Delete all codes
16215 used only when USE_FONT_BACKEND is not defined. Surround non-used
16216 code by "#ifdef OLD_FONT" and "endif".
16217
16218 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16219 (uniscribe_open): Return value changed to font-object.
16220 Adjusted for the format change of font-object.
16221 (uniscribe_otf_capability): Adjusted for the change of struct font.
16222 (add_opentype_font_name_to_list): Don't downcase names.
16223 (uniscribe_font_driver): Adjusted for the change of struct
16224 font_driver.
16225
162262008-05-13 Chong Yidong <cyd@stupidchicken.com>
16227
16228 * dispnew.c (update_frame_1): Check if tty output is still valid
16229 before flushing it.
16230
162312008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16232
16233 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16234 to Gtk+ menus.
16235
162362008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16237
16238 * dired.c (file_name_completion): Tweak the code so as to always do it
16239 in a single pass. Tighten the scope of some variables.
16240
16241 * dired.c (Qdefault_directory): New var.
16242 (file_name_completion): Use it instead of Fexpand_file_name.
16243 (syms_of_dired): Initialize it.
16244
162452008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16246
16247 * fileio.c (double_dollars): Remove dead code.
16248
162492008-05-10 Eli Zaretskii <eliz@gnu.org>
16250
16251 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16252 Mention w32-get-true-file-attributes in doc string.
16253
16254 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16255
162562008-05-09 Glenn Morris <rgm@gnu.org>
16257
16258 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16259 2008-04-23.
16260
162612008-05-09 Eli Zaretskii <eliz@gnu.org>
16262
16263 Support for reporting owner and group of each file on MS-Windows:
16264 * dired.c (stat_uname, stat_gname): New functions, with special
16265 implementation for w32.
16266 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16267
16268 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16269 (dflt_group_name): New static variable.
16270 (dflt_group): Rename from the_group.
16271 (init_user_info): Init dflt_group fields. Get user's group name
16272 from LookupAccountSid.
16273 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16274 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16275 New initialization states.
16276 (globals_of_w32): Initialize them to zero. Initialize the default
16277 group name to "None".
16278 (GetFileSecurity_Name): New global var, the name of the function
16279 to call for GetFileSecurity.
16280 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16281 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16282 (get_file_security, get_security_descriptor_owner)
16283 (get_security_descriptor_group, is_valid_sid)
16284 (get_file_security_desc, get_rid, get_name_and_id)
16285 (get_file_owner_and_group): New functions.
16286 (stat): Use get_file_security_desc and get_file_owner_and_group to
16287 report the owner and primary group of each file. Don't ignore the
16288 high 32 bits of file's size, now that st_size is 64-bit wide.
16289 Fix test when to get true file attributes.
16290 (init_user_info): Use get_rid instead of equivalent inline code.
16291 (fstat): Don't ignore the high 32 bits of file's size.
16292
162932008-05-09 Chong Yidong <cyd@stupidchicken.com>
16294
16295 * image.c (png_load): Use correct bit-depth for setting background
16296 color.
16297
162982008-05-08 Eli Zaretskii <eliz@gnu.org>
16299
16300 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16301 epa-hook.elc.
16302
163032008-05-08 Juanma Barranquero <lekktu@gmail.com>
16304
16305 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16306
163072008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16308
16309 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16310 because the original parameters are in pure storage now.
16311 (mac_window): Remove unused params. Update callers.
16312
163132008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16314
16315 * lread.c (substitute_object_recurse): Use lower-level primitives.
16316 Don't signal errors when traversing sub-char-tables.
16317 Don't loop over all the possible characters when traversing char-tables.
16318
16319 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16320 just like we do in print.c.
16321
163222008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16323
16324 * minibuf.c (Ftry_completion): Remove code left over from when we used
16325 scmp instead of Fcompare_strings.
16326
163272008-05-04 Juanma Barranquero <lekktu@gmail.com>
16328
16329 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16330
163312008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16332
16333 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16334 Create bitmap context in native byte order.
16335
16336 * macterm.c (XDrawLine)
16337 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16338 context in native byte order.
16339
163402008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16341
16342 * config.in: Regenerate.
16343
16344 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16345 New definitions for Image I/O support.
16346 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16347 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16348 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16349 (mac_data_provider_release_data, image_load_image_io)
16350 [USE_MAC_IMAGE_IO]: New functions.
16351 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16352 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16353 (init_image_func_pointer) [MAC_OSX]: Remove function.
16354 (image_load_quartz2d) [MAC_OSX]: Check availability of
16355 CGImageCreateWithPNGDataProvider at compile time.
16356 Use lowercase `false' for boolean constant.
16357 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16358 Use image_load_image_io.
16359 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16360 Don't check MyCGImageCreateWithPNGDataProvider.
16361 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16362 Don't call init_image_func_pointer.
16363
16364 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16365
16366 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16367 Make variable non-static.
16368 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16369 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16370
16371 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16372 (RED_FROM_ULONG): Mask off higher bits.
16373 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16374
16375 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16376 Include AvailabilityMacros.h.
16377 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16378 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16379
163802008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16381
16382 * chartab.c (Fset_char_table_range): If range is t, really set all
16383 chars to that value.
16384
163852008-05-03 Eli Zaretskii <eliz@gnu.org>
16386
16387 * dired.c (Ffile_attributes): Don't allow the device number become
16388 negative.
16389
163902008-05-02 Daiki Ueno <ueno@unixuser.org>
16391
16392 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16393
163942008-05-02 Juri Linkov <juri@jurta.org>
16395
16396 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16397 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16398 DEFAULT argument as a list of default values in docstrings.
16399
164002008-05-01 Chong Yidong <cyd@stupidchicken.com>
16401
16402 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16403
164042008-05-01 Martin Rudalics <rudalics@gmx.at>
16405
16406 * dispnew.c (change_frame_size_1): Preserve small windows when
16407 shrinking frames by calling set_window_height|width with third
16408 arg 2.
16409
16410 * window.h (struct window): Replace field too_small_ok by field
16411 resize_proportionally.
16412
16413 * window.c (make_window): Initialize resize_proportionally.
16414 (enlarge_window): Temporarily set resize_proportionally to make
16415 sure that shrink_windows does scale the window proportionally.
16416 (shrink_windows): When window has resize_proportionally set try
16417 to shrink it proportionally by stealing from other windows.
16418 (struct saved_window, Fset_window_configuration)
16419 (compare_window_configurations): Handle resize_proportionally.
16420 (WINDOW_TOTAL_SIZE): New macro.
16421 (window_min_size, shrink_windows, size_window): Use it.
16422 (check_min_window_sizes): Remove. Invalid values of
16423 window-min-height|width are handled by window_min_size_2 now.
16424 (size_window, Fsplit_window, enlarge_window)
16425 (adjust_window_trailing_edge, grow_mini_window): Don't call
16426 check_min_window_sizes.
16427 (window_min_size_2, window_min_size_1, window_min_size):
16428 New argument safe_p for retrieving "safe" minimum sizes.
16429 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16430 (adjust_window_trailing_edge, grow_mini_window):
16431 Adjust arguments of window_min_size... functions.
16432 (shrink_windows): Argument min_size removed. New argument
16433 safe_p allows shrinking windows to their safe minimum sizes.
16434 Calculate minimum size and decide whether a window shall be
16435 deleted for each window individually.
16436 (size_window): When nodelete_p equals 2, tell shrink_windows to
16437 delete windows only if their new minimum size is no more safe.
16438 (shrink_window_lowest_first): Call window_min_size_1 to make
16439 sure to preserve modeline of bottom-most window when resizing
16440 the minibuffer.
16441 (Fset_window_configuration, Fcurrent_window_configuration)
16442 (compare_window_configurations): Do not handle
16443 window-min-height|width any more.
16444 (syms_of_window): Clarify window-min-height|width doc-strings.
16445
164462008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16447
16448 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16449 some more. Copy some of the code from Ftry_completions.
16450 Remove special case code that dates back to initial revision when the
16451 slash was only added when necessary and that can't trigger nowadays.
16452
164532008-04-27 Kenichi Handa <handa@m17n.org>
16454
16455 * font.c (font_prop_validate): Signal `error' instead of `font'.
16456
164572008-04-29 Jason Rumney <jasonr@gnu.org>
16458
16459 * w32fns.c (Fw32_battery_status): New defun.
16460 (syms_of_w32fns): Defsubr it.
16461
164622008-04-28 Andreas Schwab <schwab@suse.de>
16463
16464 * dired.c (file_name_completion): Fix another mixing of encoded
16465 and decoded names.
16466
164672008-04-28 Juanma Barranquero <lekktu@gmail.com>
16468
16469 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16470
164712008-04-27 Juanma Barranquero <lekktu@gmail.com>
16472
16473 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16474
164752008-04-27 Andreas Schwab <schwab@suse.de>
16476
16477 * dired.c (file_name_completion): Fix inappropriate mixing of
16478 encoded and decoded names.
16479
16480 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16481
16482 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16483
164842008-04-26 Eli Zaretskii <eliz@gnu.org>
16485
16486 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16487 2008-03-31, it's not needed anymore with `struct stat' definition
16488 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16489 for the same reasons.
16490
164912008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16492
16493 * m/sparc.h: Additional redefinitions for GNU/Linux.
16494
164952008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16496
16497 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16498 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16499 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16500 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16501 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16502 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16503 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16504 Likewise.
16505
16506 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16507 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16508 (mac_ax_number_of_characters): Add externs.
16509 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16510 [USE_MAC_TSM]: Likewise.
16511 (mac_handle_text_input_event) [MAC_OSX]:
16512 Handle kEventTextInputOffsetToPos for no active input area case.
16513 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16514 (mac_handle_document_access_event)
16515 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16516 (install_application_handler) [MAC_OSX]: Register handlers for
16517 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16518 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16519 Register mac_handle_document_access_event.
16520
16521 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16522 Make functions non-static.
16523
165242008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16525
16526 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16527 (read_file_name_completion_ignore_case, insert_default_directory)
16528 (Qdefault_directory): Move to minibuffer.el.
16529 (Fread_file_name): Call the new `read-file-name' instead.
16530
165312008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16532
16533 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16534 Make function non-static.
16535 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16536 Remove function.
16537 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16538 Move to mactoolbox.c.
16539 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16540
16541 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16542 (mac_rect_make): New macro.
16543
16544 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16545 instead of float.
16546 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16547 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16548 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16549 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16550 CGRectMake.
16551 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16552 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16553 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16554 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16555 instead of WindowRef in argument type.
16556 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16557 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16558 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16559 instead of DISPLAY. All uses changed.
16560 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16561 (x_calc_absolute_position): Simplify so as not to use
16562 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16563
16564 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16565 instead of WindowRef in argument type.
16566 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16567 [TARGET_API_MAC_CARBON]: Remove externs.
16568 (create_apple_event, mac_event_parameters_to_lisp)
16569 [TARGET_API_MAC_CARBON]: Add externs.
16570
16571 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16572 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16573 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16574 is clicked.
16575 (x_activate_menubar): Remove extern for saved_menu_event_location.
16576 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16577 Move from mac.c.
16578
165792008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16580
16581 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16582 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16583
165842008-04-23 Jason Rumney <jasonr@gnu.org>
16585
16586 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16587 attributes only for local files.
16588
16589 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16590 default to Qlocal.
16591
165922008-04-22 Juri Linkov <juri@jurta.org>
16593
16594 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16595 read-buffer-to-switch instead of using the letter "B".
16596
165972008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16598
16599 * fileio.c (Qdefault_directory): New variable.
16600 (Fread_file_name): Use it to pass `dir' to the completion functions.
16601
166022008-04-20 Chong Yidong <cyd@stupidchicken.com>
16603
16604 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16605
166062008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16607
16608 * keyboard.c (Vpre_help_message): Remove.
16609 (show_help_echo): Remove default C code.
16610
16611 * dired.c (directory_files_internal, file_name_completion):
16612 Only call ENCODE_FILE if the string is indeed decoded.
16613
166142008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16615
16616 * Makefile.in (TOOLKIT_DEFINES): Remove.
16617 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16618
166192008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16620
16621 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16622 (mactoolbox.o): New target.
16623
16624 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16625 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16626
16627 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16628 Use mac_set_frame_window_background instead of XSetWindowBackground.
16629 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16630 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16631 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16632 instead of SetWindowTitleWithCFString.
16633 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16634 Move function to mactoolbox.c.
16635 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16636 Use mac_set_window_modified instead of SetWindowModified.
16637 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16638 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16639 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16640 FrontNonFloatingWindow. Use mac_activate_window instead of
16641 ActivateWindow. Use mac_active_non_floating_window instead of
16642 ActiveNonFloatingWindow.
16643 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16644 Use mac_show_hourglass and mac_hide_hourglass.
16645 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16646 instead of GetGlobalMouse.
16647 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16648 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16649 Use mac_bring_window_to_front instead of BringToFront.
16650 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16651 mactoolbox.c.
16652 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16653 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16654 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16655 mactoolbox.c.
16656
16657 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16658 (XtPointer): Move typedef from macmenu.c.
16659 (enum button_type): Move enum from macmenu.c.
16660 (widget_value): Move typedef from macmenu.c.
16661 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16662 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16663 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16664 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16665 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16666 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16667 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16668 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16669 (Selection): Move typedef from macselect.c.
16670 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16671 macterm.c.
16672 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16673 (mac_is_window_collapsed, mac_bring_window_to_front)
16674 (mac_send_window_behind, mac_hide_window, mac_show_window)
16675 (mac_collapse_window, mac_front_non_floating_window)
16676 (mac_active_non_floating_window, mac_activate_window)
16677 (mac_move_window_structure, mac_move_window, mac_size_window)
16678 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16679
16680 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16681 (enum mac_menu_kind): Move enum to mactoolbox.c.
16682 (min_menu_id): Move variable to mactoolbox.c.
16683 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16684 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16685 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16686 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16687 [TARGET_API_MAC_CARBON]: Likewise.
16688 (XtPointer): Move typedef to macgui.h.
16689 (enum button_type): Move enum to macgui.h.
16690 (widget_value): Move typedef to macgui.h.
16691 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16692 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16693 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16694 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16695 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16696 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16697 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16698 (popup_activated_flag): Make variable non-static.
16699 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16700 (add_menu_item, fill_menu, dispose_menus):
16701 Move functions to mactoolbox.c.
16702 (restore_show_help_function, menu_target_item_handler)
16703 (install_menu_target_item_handler, mac_handle_dialog_event)
16704 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16705 [TARGET_API_MAC_CARBON]: Likewise.
16706 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16707 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16708 (find_and_call_menu_selection, name_is_separator): Make function
16709 non-static.
16710 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16711 to mactoolbox.c.
16712 (set_frame_menubar): Don't call install_menu_quit_handler.
16713 (menu_item_selection): New variable.
16714 (mac_menu_show): Use create_and_show_popup_menu.
16715 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16716 selection but set variable menu_item_selection. All uses changed.
16717 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16718 Call install_menu_quit_handler. Move to mactoolbox.c.
16719
16720 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16721 (Selection): Move typedef to macgui.h.
16722 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16723 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16724 Make variables non-static.
16725 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16726 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16727 Make functions non-static.
16728 (Vmac_service_selection) [MAC_OSX]: Likewise.
16729 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16730 (mac_valid_selection_target_p, mac_clear_selection)
16731 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16732 (mac_put_selection_value, mac_selection_has_target_p)
16733 (mac_get_selection_value, mac_get_selection_target_list)
16734 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16735 Move functions to mactoolbox.c.
16736 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16737 Likewise.
16738 (copy_scrap_flavor_data, mac_handle_service_event)
16739 (install_service_handler) [MAC_OSX]: Likewise.
16740 (syms_of_macselect) <Vmac_dnd_known_types>:
16741 Use mac_dnd_default_known_types.
16742
16743 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16744 Move to mactoolbox.c.
16745 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16746 (Fx_selection_owner_p): Add EXFUN.
16747 (install_window_handler, remove_window_handler, XSetWindowBackground):
16748 Remove externs.
16749 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16750 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16751 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16752 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16753 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16754 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16755 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16756 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16757 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16758 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16759 (mac_valid_selection_target_p, mac_clear_selection)
16760 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16761 (mac_put_selection_value, mac_selection_has_target_p)
16762 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16763 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16764 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16765 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16766 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16767 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16768 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16769 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16770 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16771
16772 * mactoolbox.c: New file.
16773
167742008-04-18 Jason Rumney <jasonr@gnu.org>
16775
16776 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16777
167782008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16779
16780 * character.c (Fmultibyte_char_to_unibyte):
16781 Return latin1 chars unchanged.
16782
16783 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16784 relocated if it points to `name'.
16785
167862008-04-17 Kenichi Handa <handa@m17n.org>
16787
16788 * data.c (Faset): Allow setting a multibyte character in an
16789 ASCII-only unibyte string.
16790
16791 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16792
167932008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16794
16795 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16796 done in config.h.
16797
167982008-04-16 Juanma Barranquero <lekktu@gmail.com>
16799
16800 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16801 (Fchar_direction): Add usage in the docstring.
16802
168032008-04-15 Chong Yidong <cyd@stupidchicken.com>
16804
16805 * keyboard.c (read_key_sequence): Remove always-true checks.
16806
168072008-04-14 Jason Rumney <jasonr@gnu.org>
16808
16809 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16810 compatibility struct, for better underline positioning.
16811
168122008-04-13 David Hansen <david.hansen@gmx.net>
16813
16814 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16815 string.
16816
168172008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16818
16819 * m/hp800.h (XUINT, XSET): Remove.
16820
168212008-04-12 Juanma Barranquero <lekktu@gmail.com>
16822
16823 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16824 previous change.
16825
168262008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16827
16828 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16829 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16830
168312008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16832
16833 * keymap.h (map_keymap_canonical): Declare.
16834 * xmenu.c (single_keymap_panes): Use it.
16835
168362008-04-11 Glenn Morris <rgm@gnu.org>
16837
16838 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16839 set the target's value to that of the alias.
16840
168412008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16842
16843 * term.c (set_tty_color_mode): Left over typo.
16844
168452008-04-10 Michael Albinus <michael.albinus@gmx.de>
16846
16847 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16848 only after check for file name handler functions. Signal, when
16849 native functionality is not supported.
16850 (syms_of_fileio): Declare it unconditionally.
16851
168522008-04-10 Jason Rumney <jasonr@gnu.org>
16853
16854 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16855 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16856
16857 * w32.c (logon_network_drive): Also logon to remote drives that
16858 are mapped to drive letters.
16859
168602008-04-10 Glenn Morris <rgm@gnu.org>
16861
16862 * xdisp.c (truncate-partial-width-windows): Doc fix.
16863
168642008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16865
16866 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16867 Move functions to minibuffer.el.
16868 (syms_of_fileio): Don't declare them.
16869
168702008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16871
16872 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16873 (syms_of_minibuf): Remove its initialization.
16874
16875 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16876
168772008-04-09 Juanma Barranquero <lekktu@gmail.com>
16878
16879 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16880
168812008-04-09 Jason Rumney <jasonr@gnu.org>
16882
16883 * makefile.w32-in (distclean): Delete makefile too.
16884 (maintainer-clean): New target.
16885
16886 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16887
16888 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16889 for new font backend and composite cases.
16890
168912008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16892
16893 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16894 Most of the code moved to run_timers.
16895 (do_pending_atimers): Call run_timers.
16896 (run_timers): New function.
16897
16898 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16899 run atimers.
16900
16901 * process.c (wait_reading_process_output): The same as above.
16902
169032008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16904
16905 * minibuf.c (last_exact_completion): Remove variable.
16906 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16907 (complete_and_exit_1, complete_and_exit_2)
16908 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16909 (Fdisplay_completion_list, display_completion_list_1)
16910 (Fminibuffer_completion_help, Fself_insert_and_exit)
16911 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16912 minibuffer.el.
16913 (syms_of_minibuf): Remove corresponding initializations.
16914
16915 * keyboard.c (Qdeactivate_mark): New var.
16916 (command_loop_1): Use it to call `deactivate-mark'.
16917 (syms_of_keyboard): Initialize it.
16918
16919 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16920 to another frame.
16921 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16922 Don't call set_tty_color_mode.
16923 (store_frame_param): Reset previous_frame rather than call
16924 set_tty_color_mode.
16925 * term.c (set_tty_color_mode): Rewrite.
16926 * dispextern.h (set_tty_color_mode): New type.
16927 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16928
169292008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16930
16931 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16932 for generic chars, which do not exist any more in emacs-unicode.
16933
169342008-04-08 Michael Albinus <michael.albinus@gmx.de>
16935
16936 * coding.c (detect_coding_emacs_mule)
16937 (Ffind_operation_coding_system): Fix typo.
16938
169392008-04-08 Jason Rumney <jasonr@gnu.org>
16940
16941 * w32uniscribe.c (SNAME): Extract only symbol name.
16942
16943 * w32font.h (struct w32_metric_cache): New struct.
16944 (w32font_info): Use it.
16945 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16946 (CACHE_BLOCKSIZE): New constants.
16947
16948 * w32font.c (Qja, Qko, Qzh): New symbols.
16949 (syms_of_w32font): Initialise them.
16950 (font_matches_spec): Use them to filter by language.
16951 (recompute_cached_metrics): Remove function.
16952 (compute_metrics, clear_cached_metrics): New functions.
16953 (w32font_encode_char): Use them to manage metric cache.
16954 (w32font_text_extents): Cache metrics for all glyphs on demand.
16955 Delay converting glyph indices to WORD until needed.
16956 (w32font_open_internal): Initialize metric cache to empty.
16957 (registry_to_w32_charset): Charset should always be a symbol.
16958 (fill_in_logfont, list_all_matching_fonts): Family should
16959 always be a symbol.
16960
169612008-04-06 Jason Rumney <jasonr@gnu.org>
16962
16963 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16964 Give up if glyph indices not supported. Use uniscribe obtained
16965 ABC widths for individual metrics. Map glyph clusters back to
16966 characters using fClusterStart flag. Return number of glyphs
16967 produced, not chars processed.
16968 (uniscribe_shape): Map char at FROM to current glyph.
16969
169702008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16971
16972 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16973 Use SetMenuItemHierarchicalMenu.
16974
169752008-04-05 Jason Rumney <jasonr@gnu.org>
16976
16977 * image.c (pbm_load): Allow color values up to 65535.
16978 Throw an error if max_color_idx is outside the supported range.
16979 Report an error when image size is invalid.
16980 Read two bytes at a time when raw images have max_color_idx above 255.
16981
aac0c6e3
MR
169822008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16983
16984 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16985 append "CCL: Quitted" when the CCL program is quitted.
16986 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16987
16988 * ccl.h (struct ccl_program): New member quit_silently.
16989
169902008-04-05 Chong Yidong <cyd@stupidchicken.com>
16991
16992 * search.c (compile_pattern_1): Treat non-nil and non-string of
16993 search-spaces-regexp as nil.
16994
16995 * minibuf.c (Fassoc_string): Tweak docstring.
16996
169972008-04-05 Eli Zaretskii <eliz@gnu.org>
16998
16999 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17000 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17001 2008-03-14 to force inode be positive.
17002
17003 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17004 _S_* ones, since we now use our own sys/stat.h.
17005 (stat, fstat): Don't mangle the inode number.
17006 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17007
170082008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17009
17010 * frame.h (struct frame): Give one more bit to `visible' since we use
17011 values larger than 1 to indicate obscured frames on ttys.
17012
17013 * keymap.c (Qkeymap_canonicalize): New var.
17014 (Fmap_keymap_internal): New fun.
17015 (describe_map): Use keymap-canonicalize.
17016
17017 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17018 (Fundo_boundary): Set them.
17019 (syms_of_undo): Initialize them.
17020 (record_point): Use them instead of last_point_position*.
17021 (last_undo_buffer): Change type.
17022
170232008-04-04 Jason Rumney <jasonr@gnu.org>
17024
17025 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17026 (recompute_cached_metrics): Don't set ascent and descent per char.
17027
17028 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17029 (uniscribe_check_otf): Add GC protection before consing.
17030 Rearrange loop for counting features.
17031
170322008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17033
17034 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17035 buffer with byte-size of source buffer.
17036
170372008-04-03 Chong Yidong <cyd@stupidchicken.com>
17038
17039 * callint.c (Fcall_interactively): Handle temporary region even
17040 when shift-select-mode is off.
17041
170422008-04-03 Jason Rumney <jasonr@gnu.org>
17043
17044 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17045
170462008-04-03 Kenichi Handa <handa@m17n.org>
17047
17048 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17049 (CATEGORY_MASK_UTF_16): Likewise.
17050 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17051 binary file.
17052 (detect_coding): Add null-byte detection for a binary file.
17053 (detect_coding_system): Likewise.
17054
170552008-04-03 Jason Rumney <jasonr@gnu.org>
17056
17057 * w32uniscribe.c: New file.
17058
17059 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17060
17061 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17062
17063 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17064 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17065 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17066 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17067 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17068 (Qphonetic): New symbols.
17069 (syms_of_w32font): Initialize them.
17070 (font_supported_scripts): Use them.
17071 (w32font_list_family): List all charsets.
17072 (w32font_text_extents, recompute_cached_metrics): Fix metric
17073 calculations.
17074 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17075 Give opentype fonts their own format.
17076 (font_matches_spec): New arguments backend and logfont.
17077 Handle :otf spec for uniscribe backend.
17078 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17079 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17080
17081 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17082 font backend.
17083 (globals_of_w32fns): Initialize uniscribe font backend.
17084
17085 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17086 dependencies.
17087 (w32uniscribe.$(O)): New file to build.
17088 (FONT_OBJ): Include w32uniscribe.$(O).
17089 (LIBS): Add uniscribe libraries.
17090
17091 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17092
170932008-04-02 Chong Yidong <cyd@stupidchicken.com>
17094
17095 * callint.c (Vshift_select_mode): New var.
17096 (Finteractive): Document new ^ spec.
17097 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17098 is present.
17099
17100 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17101 (command_loop_1): Avoid running the direct display versions of
17102 forward-char and backward-char if shift-selection may occur.
17103 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17104 shift-translation takes place.
17105
17106 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17107 avoid clobbering by define-minor-mode.
17108
17109 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17110 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17111
17112 * syntax.c (Fforward_word): Add ^ interactive spec.
17113
17114 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17115 (Fscroll_right): Add ^ interactive spec.
17116
171172008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17118
17119 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17120
17121 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17122
17123 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17124
171252008-03-31 Juri Linkov <juri@jurta.org>
17126
17127 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17128
171292008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17130
17131 * gtkutil.c (xg_set_geometry): Fix indentation.
17132 (xg_resize_outer_widget): Remove.
17133 (x_wm_size_hint_off): Fix indentation.
17134 (xg_frame_set_char_size): Call flush_and_sync after
17135 gtk_window_resize.
17136 (x_wm_set_size_hint): Pass NULL as geometry window to
17137 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17138 Add menu bar and tool bar height to base height.
17139 (xg_update_frame_menubar, free_frame_menubar)
17140 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17141 (update_frame_tool_bar, free_frame_tool_bar):
17142 Change xg_resize_outer_widget to xg_frame_set_char_size.
17143
171442008-03-30 Michael Albinus <michael.albinus@gmx.de>
17145
17146 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17147 (Fdbus_call_method): New parameter TIMEOUT.
17148 (dbus-send-signal): Optimize UNGCPRO call.
17149
171502008-03-29 Juri Linkov <juri@jurta.org>
17151
17152 * window.c (Fdisplay_buffer): Move call to
17153 Vsplit_window_preferred_function out of conditions that check
17154 if window is eligible for vertical splitting.
17155 When Vsplit_window_preferred_function is non-nil, call it and use
17156 its non-nil return value as window. Otherwise, continue doing
17157 vertical splitting using Fsplit_window with arg horflag=nil.
17158 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17159 default value from `split-window' to nil.
17160
171612008-03-29 Juri Linkov <juri@jurta.org>
17162
17163 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17164 for interactive code letters 'b' and 'B'.
17165
171662008-03-29 Eli Zaretskii <eliz@gnu.org>
17167
17168 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17169 multibyte string.
17170
171712008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17172
17173 * keyboard.c (pending_funcalls): New var.
17174 (timer_check): Run it.
17175 (syms_of_keyboard): Initialize it.
17176 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17177 (Vdelete_terminal_functions): New vars.
17178 (syms_of_terminal): Initialize them.
17179 (Fdelete_terminal): Run delete-terminal-functions.
17180 * xdisp.c (safe_eval): Rewrite.
17181 (safe_call2): New fun.
17182 * frame.c (Qdelete_frame_functions): New var.
17183 (syms_of_frame): Initialize it.
17184 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17185 * lisp.h (safe_call2, pending_funcalls): Declare.
17186
171872008-03-28 Andreas Schwab <schwab@suse.de>
17188
17189 * indent.c (Fmove_to_column): Move declaration before statements.
17190
171912008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17192
17193 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17194 (struct frame): Use bit fields for boolean vars.
17195
17196 * process.c (server_accept_connection): Simplify naming.
17197 (emacs_get_tty_pgrp): Use SDATA.
17198
17199 * coding.c (decode_coding_object): Fix last change.
17200
172012008-03-27 Jason Rumney <jasonr@gnu.org>
17202
17203 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17204
172052008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17206
17207 * charset.c (Fdefine_charset_internal): Change the way of
17208 registering charsets in Vcharset_order_list.
17209 (syms_of_charset): Make the charset `eight-bit' supplementary.
17210
172112008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17212
17213 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17214 operations, to avoid having the difference between pointers
17215 overflow.
17216
172172008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17218
17219 * indent.c (check_display_width): New fun.
17220 (scan_for_column): Use it.
17221
17222 * data.c (syms_of_data): Mark most-positive-fixnum and
17223 most-negative-fixnum as constants.
17224
17225 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17226
17227 * indent.c (scan_for_column): Extract from current_column_1.
17228 Merge with the same code from Fmove_to_column.
17229 (current_column_1, Fmove_to_column): Use it.
17230
172312008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17232
17233 * keymap.c (map_keymap_internal): New fun.
17234 (map_keymap): Use it.
17235 (Fmap_keymap_internal): New fun.
17236 (Fmap_keymap): Remove left-out test from before make_save_value.
17237
17238 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17239
17240 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17241 Use XCAR/XCDR.
17242
17243 * process.h (struct Lisp_Process): Remove filter_multibyte.
17244 * process.c (QCfilter_multibyte): Remove.
17245 (setup_process_coding_systems): Don't use filter_multibyte.
17246 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17247 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17248 (Fset_process_filter_multibyte): Change the coding-system to
17249 approximate the previous behavior.
17250 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17251 coding-system.
17252
17253 * coding.c (decode_coding_object): When not decoding into a buffer,
17254 obey the coding system's preference of (uni|multi)byte.
17255
172562008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17257
17258 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17259 every char is changed and has a different byte-length.
17260 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17261 Fix int -> EMACS_INT.
17262
172632008-03-23 David Hansen <david.hansen@gmx.net>
17264
17265 * dbusbind.c (xd_read_message): Remove extra copying of message
17266 strings. Check for NULL `interface' or `member'.
17267
172682008-03-22 Eli Zaretskii <eliz@gnu.org>
17269
17270 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17271 cFileName a file name that includes `?' characters, use the 8+3
17272 alias in cAlternateFileName instead.
17273
172742008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17275
17276 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17277
172782008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17279
17280 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17281 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17282 work on current_buffer only instead (that was already the case
17283 for some of the code anyway).
17284 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17285 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17286 (SET_PT, SET_PT_BOTH): Adjust.
17287 * intervals.h (set_point, temp_set_point, set_point_both)
17288 (temp_set_point_both): Remove redundant declarations.
17289
172902008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17291
17292 * fileio.c (Finsert_file_contents):
17293 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17294 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17295 when buffer != current_buffer anyway.
17296
172972008-03-20 Andreas Schwab <schwab@suse.de>
17298
17299 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17300 as default.
17301
173022008-03-19 Jason Rumney <jasonr@gnu.org>
17303
17304 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17305 (syms_of_w32fns): Initialize them.
17306 (HOURGLASS_ID): New constant.
17307 (x_window_to_frame): Don't check hourglass_window.
17308 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17309 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17310 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17311 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17312 Only change the cursor if hourglass is not active.
17313 (Fx_create_frame): Initialize frame's current_cursor.
17314 (hourglass_atimer): Remove.
17315 (hourglass_started): New function.
17316 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17317 (show_hourglass): Adapt to w32, changing argument to frame.
17318
17319 * w32term.h (struct w32_output): Remove hourglass_window.
17320 Add current_cursor.
17321
17322 * eval.c (call_debugger, Fsignal):
17323 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17324 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17325 (Fexecute_extended_command, cancel_hourglass_unwind):
17326 * minibuf.c (read_minibuf):
17327 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17328
173292008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17330
17331 * window.c (run_funs): New fun.
17332 (run_window_configuration_change_hook): Use it to run the buffer-local
17333 and the global part of the hook.
17334
17335 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17336 (unwind_format_mode_line): Restore selected window.
17337 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17338
173392008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17340
17341 * editfns.c (Fchar_equal): Check they are valid characters.
17342
17343 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17344
173452008-03-17 Andreas Schwab <schwab@suse.de>
17346
17347 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17348 against a charset.
17349
17350 * lisp.h (Fbuffer_list): Declare.
17351
173522008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 17353
aac0c6e3
MR
17354 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17355 handlebox_widget is != 0.
17356
173572008-03-16 Juri Linkov <juri@jurta.org>
17358
17359 * callint.c (Fcall_interactively): For interactive code letters
17360 'b' and 'B' put the buffer list into the list of default "future"
17361 values of the minibuffer.
17362
173632008-03-16 Andreas Schwab <schwab@suse.de>
17364
17365 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17366 modifiers.
17367
17368 * regex.c (re_match_2_internal): Correct matching of a charset
17369 against latin-1 characters.
17370
173712008-03-16 Kenichi Handa <handa@m17n.org>
17372
17373 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17374 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17375 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17376 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17377 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17378 CHAR_STRING_ADVANCE.
17379 (produce_chars): Fix for the case that the source and the
17380 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17381 instead of CHAR_STRING_ADVANCE.
17382 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17383 STRING_CHAR_ADVANCE.
17384
173852008-03-15 Andreas Schwab <schwab@suse.de>
17386
17387 * regex.c (re_match_2_internal): Correct matching of eight bit
17388 characters in unibyte strings.
17389
173902008-03-15 Martin Rudalics <rudalics@gmx.at>
17391
17392 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17393 at end of range when it coincides with the end of the buffer.
17394
173952008-03-14 Eli Zaretskii <eliz@gnu.org>
17396
17397 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17398
17399 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17400
174012008-03-14 Jason Rumney <jasonr@gnu.org>
17402
17403 * editfns.c (initial_tz): New variable.
17404 (syms_of_editfns): Initialize it.
17405 (Fset_time_zone_rule): Set it when first called.
17406 Use it when TZSTRING is nil.
17407
17408 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17409 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17410 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17411 (globals_of_w32fns): Initialize them.
17412 (compute_tip_xy): Use them to position tooltips.
17413
174142008-03-14 Glenn Morris <rgm@gnu.org>
17415
17416 * emacs.c (main): Revert previous change.
17417 (standard_args): Revert -internal-script back to -scriptload,
17418 and remove the long-option form.
17419
174202008-03-13 Glenn Morris <rgm@gnu.org>
17421
17422 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17423 Remove option -enable-font-backend.
17424
174252008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17426
17427 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17428
174292008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17430
17431 * xterm.c (x_connection_closed): For GTK: If this is the last
17432 terminal just exit without closing the display.
17433
174342008-03-11 Jason Rumney <jasonr@gnu.org>
17435
17436 * w32font.c (w32font_full_name): Use floor to round.
17437
f0131492 174382008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
17439
17440 * sound.c (alsa_configure): Declare vol at beginning of block.
17441
17442 * fontset.c (Ffontset_info): Remove extra semicolon.
17443
174442008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17445
17446 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17447 size of resulting string.
17448
174492008-03-10 Jason Rumney <jasonr@gnu.org>
17450
17451 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17452
174532008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17454
17455 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17456 Don't pretend as if characters with display property haven't been
17457 consumed for string-replacing-string case.
17458
174592008-03-08 Kim F. Storm <storm@cua.dk>
17460
17461 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17462 (get_next_display_element, next_element_from_string)
17463 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17464
174652008-03-08 Andreas Schwab <schwab@suse.de>
17466
17467 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17468
174692008-03-06 Jason Rumney <jasonr@gnu.org>
17470
17471 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17472 when charset not specified. Only translate ANSI to unicode when
17473 font_type is truetype.
17474 (w32font_coverage_ok): New function.
17475 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17476
174772008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17478
17479 * lread.c (Fread_char): Resolve modifiers.
17480 (Fread_char_exclusive): Likewise.
17481
17482 * character.c (char_resolve_modifier_mask): New function.
17483 (char_string): Use char_resolve_modifier_mask.
17484 (Fchar_resolve_modifiers): New function.
17485 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17486 function.
17487
174882008-03-04 Jason Rumney <jasonr@gnu.org>
17489
17490 * makefile.w32-in: Always include w32font.c in the build.
17491 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17492
174932008-03-04 Andreas Schwab <schwab@suse.de>
17494
17495 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17496 (versionclean): Likewise.
17497
174982008-03-04 Juanma Barranquero <lekktu@gmail.com>
17499
17500 * .cvsignore: Add oo.
17501
175022008-03-03 Andreas Schwab <schwab@suse.de>
17503
17504 * coding.c (decode_coding_object): Inhibit gap shrinking while
17505 decoding in place.
17506
175072008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17508
17509 * w32term.c: Remove unused include "gnu.h".
17510 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17511
17512 * gnu.h: Rename to ...
17513 * emacs-icon.h: ... this.
17514 * xterm.c: Use emacs-icon.h instead of gnu.h.
17515 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17516
175172008-03-03 Juanma Barranquero <lekktu@gmail.com>
17518
17519 * w32font.c: Include math.h.
17520
175212008-03-03 Jason Rumney <jasonr@gnu.org>
17522
17523 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17524 Compute options separately.
17525 (w32font_open_internal): Set glyph_idx before caching metrics.
17526
17527 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17528 Define if system headers don't.
17529 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17530 (w32font_encode_char): Don't declare here.
17531
17532 * w32font.c (Quniscribe, QCformat): New symbols.
17533 (syms_of_w32font): Define them.
17534 (w32font_has_char): Indicate uncertainty.
17535 (w32font_encode_char): Encode as glyph point. Make static.
17536 (recompute_cached_metrics): New function.
17537 (w32font_open_internal): Use it. Set font to use glyph points
17538 initially. Set format based on type of font.
17539 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17540 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17541 on it. Set format based on information available here.
17542 (add_font_entity_to_list): Identify backend based on opentype_only.
17543
175442008-03-02 Andreas Schwab <schwab@suse.de>
17545
17546 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17547
17548 * coding.c (decode_coding_big5, produce_chars):
17549 Fix typos in last change.
17550
175512008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17552
17553 * gnu.h: New icon.
17554
175552008-03-02 Kenichi Handa <handa@m17n.org>
17556
17557 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17558 `dos', don't decode '\r' if that is the last in the source.
17559 (decode_coding_utf_16, decode_coding_emacs_mule)
17560 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17561 (decode_coding_raw_text, decode_coding_charset): Likewise.
17562 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17563
175642008-03-01 Jason Rumney <jasonr@gnu.org>
17565
17566 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17567
175682008-03-01 Kim F. Storm <storm@cua.dk>
17569
17570 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17571
175722008-03-01 Jason Rumney <jasonr@gnu.org>
17573
17574 * w32font.c (w32font_full_name): New function.
17575 (w32font_open_internal): Use it.
17576
175772008-03-01 Kim F. Storm <storm@cua.dk>
17578
17579 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17580
175812008-03-01 Jason Rumney <jasonr@gnu.org>
17582
17583 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17584
175852008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17586
17587 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17588 xg_frame_resized when the event is for the edit widget.
17589
17590 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17591
17592 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17593 set_char_size.
17594 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17595 operations on widgets here. Just set frame size if needed.
17596 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17597 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17598 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17599 the whole frame.
17600 (xg_create_tool_bar): Move attachment of the tool bar to
17601 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17602 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17603
176042008-03-01 Jason Rumney <jasonr@gnu.org>
17605
17606 * w32fns.c (w32_msg_pump): Disable debug code.
17607
176082008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17609
17610 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17611
176122008-02-29 Chong Yidong <cyd@stupidchicken.com>
17613
17614 * xdisp.c (next_overlay_string): Don't set
17615 overlay_strings_at_end_processed_p if we're currently reading from
17616 a display string.
17617
176182008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17619
17620 * xdisp.c (get_overlay_strings_1): Fix typo.
17621
176222008-02-29 Chong Yidong <cyd@stupidchicken.com>
17623
17624 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17625
176262008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17627
17628 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17629
17630 * xdisp.c (display_mode_element): Cancel the previous change.
17631 (decode_mode_spec): Likewise.
17632 (handle_auto_composed_prop): Don't make composition if it->string
17633 is a string.
17634
176352008-02-27 Kim F. Storm <storm@cua.dk>
17636
17637 * lisp.h (GLYPH): Change type from int to struct with separate char
17638 and face_id members.
17639 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17640 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17641 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17642 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17643 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17644 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17645 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17646 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17647 handle new Lisp glyph code encoding, either an integer or a cons.
17648
17649 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17650 (GLYPH_ALIAS): Delete.
17651 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17652 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17653 (GLYPH_FROM_CHAR): Replace macro by ...
17654 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17655
17656 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17657 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17658 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17659 (GLYPH_INVALID_P): New macro.
17660 (spec_glyph_lookup_face): Update prototype.
17661
17662 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17663 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17664 new glyph code encoding.
17665 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17666 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17667
17668 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17669 Adapt to new glyph type and new glyph code encoding.
17670
17671 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17672
17673 * indent.c (current_column, current_column_1, Fmove_to_column)
17674 (compute_motion): Adapt to new glyph code encoding.
17675
17676 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17677
176782008-02-27 Chong Yidong <cyd@stupidchicken.com>
17679
17680 * process.c (wait_reading_process_output): Check for window
17681 changes caused by timers.
17682 Suggested by Johan Bockgård.
17683
176842008-02-27 Glenn Morris <rgm@gnu.org>
17685
17686 * emacs.c (USAGE1): Add `--disable-font-backend'.
17687
176882008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17689
17690 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17691 is made to the buffer.
17692
176932008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17694
17695 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17696 (face_at_string_position):
17697 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17698 (face_at_string_position):
17699 * xdisp.c (display_string, next_overlay_change):
17700 * buffer.h (overlays_at):
17701 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17702 Update callers.
17703
177042008-02-26 Chong Yidong <cyd@stupidchicken.com>
17705
17706 * editfns.c (Fformat): Doc fix.
17707
177082008-02-26 Juanma Barranquero <lekktu@gmail.com>
17709
17710 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17711 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17712 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17713
177142008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17715
17716 * buffer.c (Fbuffer_swap_text): New function.
17717 (syms_of_buffer): Defsubr it.
17718
177192008-02-25 Chong Yidong <cyd@stupidchicken.com>
17720
17721 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17722
177232008-02-25 Jason Rumney <jasonr@gnu.org>
17724
17725 * w32font.c (w32font_draw): Draw one character at a time when padding.
17726
177272008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17728
17729 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17730 Handle a nil arg. Use run_window_configuration_change_hook.
17731 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17732 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17733 Use run_window_configuration_change_hook.
17734
177352008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17736
17737 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17738 1-pixel width.
17739
177402008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17741
17742 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17743 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17744 if the glyph in the font is zero pixel with.
17745
17746 * dispextern.h (struct glyph_string): New member padding_p.
17747
17748 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17749
17750 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17751
17752 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17753
17754 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17755
17756 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17757
177582008-02-25 Jason Rumney <jasonr@gnu.org>
17759
17760 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17761
177622008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17763
17764 Allow fine-grained image-cache flushing.
17765 * dispextern.h (struct image): Add `dependencies' field.
17766 (clear_image_caches): Change arg to Lisp_Object.
17767 * image.c (make_image): Initialize `dependencies' field.
17768 (clear_image_cache): Change arg to allow fine-grained flushing.
17769 Perform the flush even if image-cache-eviction-delay is nil.
17770 (clear_image_caches): Change arg to Lisp_Object.
17771 (Fclear_image_cache): Expand meaning of the argument.
17772 (mark_image): Mark `dependencies' field.
17773 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17774 (lface_hash): Use XHASH rather than XFASTINT.
17775 (face_at_buffer_position): Fix int -> EMACS_INT position.
17776 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17777 (select_frame_for_redisplay): Remove code duplication.
17778 (redisplay_internal): Adapt arg to call to clear_image_caches.
17779
177802008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17781
17782 * s/vms4-0.h:
17783 * s/vms4-2.h:
17784 * s/vms4-4.h:
17785 * s/vms5-5.h: Remove, unused.
17786
17787 * s/irix5-2.h:
17788 * s/irix6-0.h:
17789 * s/riscos5.h:
17790 * s/mach-bsd4-3.h:
17791 * m/mips4.h: Remove files for obsolete systems.
17792
17793 * Makefile.in:
17794 * filelock.c:
17795 * unexmips.c:
17796 * m/hp9000s300.h:
17797 * m/iris4d.h:
17798 * s/aix3-1.h:
17799 * s/hpux.h:
17800 * s/msdos.h:
17801 * s/usg5-0.h:
17802 * s/usg5-2-2.h:
17803 * s/usg5-2.h:
17804 * s/usg5-3.h: Remove references to obsolete variables.
17805
17806 * s/irix5-0.h: Remove, move all the contents ...
17807 * s/irix6-5.h: ... here. Simplify.
17808 * config.in: Regenerate.
17809
178102008-02-24 Jason Rumney <jasonr@gnu.org>
17811
17812 * w32term.c (x_draw_glyph_string_background): Clear the background
17813 manually when cleartype is in use.
17814 (x_draw_glyph_string_foreground): Draw text transparently when
17815 cleartype is in use.
17816
17817 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17818 a font into it unless we have to.
17819
178202008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17821
17822 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17823 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 17824
aac0c6e3
MR
178252008-02-18 Jason Rumney <jasonr@gnu.org>
17826
17827 * w32fns.c (Fw32_shell_execute): Encode parameters.
17828
178292008-02-09 Eli Zaretskii <eliz@gnu.org>
17830
17831 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17832
178332008-02-05 Juanma Barranquero <lekktu@gmail.com>
17834
17835 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17836
178372008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17838
17839 * xterm.c (x_set_offset): Don't change the gravity if
17840 CHANGE_GRAVITY is -1.
17841
178422008-02-23 Chong Yidong <cyd@stupidchicken.com>
17843
17844 * fileio.c (auto_save_error_occurred): New var.
17845 (auto_save_error): Set it.
17846 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17847 error occurred.
17848
178492008-02-23 Eli Zaretskii <eliz@gnu.org>
17850
17851 * w32.c (globals_of_w32): Add initializations for
17852 g_b_init_get_sid_sub_authority and
17853 g_b_init_get_sid_sub_authority_count.
17854
178552008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17856
17857 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17858 (font_parse_xlfd): Use them for sanity check.
17859 (Finternal_set_font_style_table): Make sure the table is bijective.
17860
17861 Consolidate the image_cache to the terminal struct.
17862 * termhooks.h (P_): Remove redundant def.
17863 (struct terminal): New field `image_cache'.
17864 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17865 of FRAME_X_IMAGE_CACHE.
17866 * xterm.h (struct x_display_info): Remove image_cache field.
17867 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17868 * w32term.h (struct w32_display_info): Remove image_cache field.
17869 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17870 * macterm.h (struct mac_display_info): Remove image_cache field.
17871 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17872 * xterm.c (x_term_init):
17873 * w32term.c (w32_term_init):
17874 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17875 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17876 Remove declarations.
17877 (clear_image_caches, mark_image_cache): New declarations.
17878 * xfaces.c (clear_face_cache):
17879 * xdisp.c (redisplay_internal): Use clear_image_caches.
17880 * image.c (clear_image_cache): Don't check that a frame is on
17881 a window-system before checking if it shares the same cache.
17882 (clear_image_caches): New function.
17883 (Fclear_image_cache): Use it.
17884 (mark_image): Move from allo.c.
17885 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17886 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17887 (mark_object): Don't call mark_image_cache for frames.
17888 (mark_terminals): Call mark_image_cache.
17889
17890 * lisp.h (Fdelete_terminal): Declare.
17891
17892 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17893 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17894 wrong_type_argument.
17895
178962008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17897
17898 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17899 malayalam.el, and tamil.el. Add sinhala.el.
17900
179012008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17902
17903 * xterm.c (x_connection_closed): Consolidate identical tests.
17904 (x_delete_terminal): Don't crash if called via x_connection_closed.
17905
179062008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17907
17908 * xdisp.c (decode_mode_spec): New arg string.
17909 (display_mode_element): Adjust for the above change.
17910
179112008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17912
17913 * callint.c (Fcall_interactively): Use AREF.
17914
179152008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17916
17917 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17918
179192008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17920
17921 * xfns.c (Fx_show_tip): Set string to " " if empty.
17922
179232008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17924
17925 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17926 with Qt.
17927
179282008-02-17 Kenichi Handa <handa@m17n.org>
17929
17930 * ftfont.c (ftfont_shape): Return Lispy number.
17931
17932 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17933 for GCs.
17934 (Finternal_set_font_selection_order): Call font_update_sort_order
17935 only when enable_font_backend is set.
17936 (realize_x_face): Set face->font_info to that of default face only
17937 when enable_font_backend is set.
17938
17939 * xdisp.c (handle_composition_prop): Set it->c to the fist
17940 character of the composed region.
17941 (fill_composite_glyph_string): Set base_face->font_info to
17942 s->font_info. Get a face for ascii from base_face->ascii_face.
17943 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17944 with a face already decided.
17945 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17946 non-negative.
17947 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17948 call font_prepare_composition unconditionally.
17949
17950 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17951
17952 * xterm.h (struct x_display_info): New member font.
17953
17954 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17955 (x_set_mouse_face_gc, x_new_font): Likewise.
17956 (x_term_init): Setup display_info->font.
17957 (x_delete_terminal): Free display_info->font.
17958
17959 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17960
17961 * ftxfont.c (ftxfont_default_fid): Delete it.
17962 (ftxfont_open): Set xfont->fid to 0.
17963 (ftxfont_end_for_frame): Clear data specific to the frame and the
17964 font-driver.
17965
17966 * xftfont.c (xftfont_default_fid): Delete it.
17967 (xftfont_open): Set xfont->fid to 0.
17968
17969 * fontset.c (FONTSET_OBJLIST): New macro.
17970 (fontset_find_font): Update font-object list of the fontset.
17971 (free_realized_fontset): New function.
17972 (free_face_fontset): Call free_realized_fontset.
17973 (Ffont_info): Call font_close_object only when enable_font_backend
17974 is set.
17975
17976 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17977 [HAVE_NTGUI]: Include w32term.h.
17978 [MAC_OS]: Include macterm.ch.
17979 (font_otf_ValueRecord): Use make_number.
17980 (font_finish_cache): Fix handling of reference count.
17981 (font_clear_cache): Update num_fonts.
17982 (font_open_entity): Update smallest_char_width and
17983 smallest_font_height of the frame.
17984 (font_close_object): Update num_fonts.
17985 (Fclear_font_cache): Fix finding the target cache data.
17986
179872008-02-16 Glenn Morris <rgm@gnu.org>
17988
17989 * fontset.c (Finternal_char_font): Fix compilation warning.
17990
179912008-02-16 Eli Zaretskii <eliz@gnu.org>
17992
17993 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17994 instead of char arrays. Enlarge the size of array passed to
17995 get_token_information.
17996
17997 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17998 warnings.
17999
180002008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18001
18002 * .gdbinit: Don't set `args', it breaks gdb --args.
18003
180042008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18005
18006 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18007 within a narrowed buffer.
18008
180092008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18010
18011 * coding.c (decode_coding_object, encode_coding_object):
18012 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18013
180142008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18015
18016 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18017 hardcoding 1.
18018 (detect_coding_system):
18019 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18020 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18021 * insdel.c (insert_from_gap):
18022 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18023 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18024 (string_to_multibyte):
18025 * character.c (chars_in_text, multibyte_chars_in_text):
18026 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18027
18028 * character.h (FETCH_STRING_CHAR_ADVANCE)
18029 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18030 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18031 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18032
18033 * casefiddle.c (casify_region): Only call after-change and composition
18034 functions on the part of the region that was changed.
18035
18036 * keyboard.c (read_avail_input):
18037 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18038
180392008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18040
18041 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18042 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18043
180442008-02-11 Juanma Barranquero <lekktu@gmail.com>
18045
18046 * w32menu.c (push_submenu_start, push_submenu_end)
18047 (push_left_right_boundary, push_menu_pane, push_menu_item):
18048 * keyboard.c (read_key_sequence): Don't pass args with side effects
18049 to AREF, it fails when compiling with -DENABLE_CHECKING.
18050
180512008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18052
18053 * Makefile.in (${lispsource}international/charprop.el):
18054 Delete this target.
18055
18056 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18057 emacs-unicode-2.
18058
180592008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18060
18061 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18062
180632008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18064
18065 * frame.c (Qnoelisp): New symbol.
18066 (syms_of_frame): Initialize it.
18067 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18068 harmless Elisp code, from a strong `force' from x_connection_closed.
18069 * frame.h (Qnoelisp): Declare.
18070 * xterm.c (x_connection_closed): Pass `noelisp'.
18071
18072 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18073 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18074 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18075 rather than `int' for the type of `type'.
18076
180772008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18078
18079 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18080
18081 * Makefile.in (GNUC): Remove support for gcc-1.x.
18082
180832008-02-10 Richard Stallman <rms@gnu.org>
18084
18085 * lisp.h (ASET): Use AREF, not ASLOT.
18086
180872008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18088
18089 * lisp.h (ASET): Check bounds.
18090
180912008-02-10 Glenn Morris <rgm@gnu.org>
18092
18093 * buffer.c (mode-name): Doc fix.
18094
180952008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18096
18097 * Makefile.in:
18098 * emacs.c:
18099 * gmalloc.c:
18100 * keyboard.c:
18101 * lisp.h:
18102 * m/ibm370aix.h:
18103 * process.c:
18104 * regex.c:
18105 * s/hpux.h:
18106 * sysdep.c:
18107 * sysselect.h:
18108 * systty.h:
18109 * unexec.c:
18110 * w32term.c:
18111 * xsmfns.c:
18112 * xterm.c: Remove code that deals with obsolete variables.
18113
18114 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18115
18116 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18117 nothing else needs it anymore.
18118
181192008-02-09 Eli Zaretskii <eliz@gnu.org>
18120
18121 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18122 instead of unibyte_char_to_multibyte.
18123
181242008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18125
18126 * s/gnu-linux.h: Remove commented out code.
18127
18128 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18129
18130 * Makefile.in: Update what RMS says about using autoconf.
18131 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18132 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18133 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18134 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18135
181362008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18137
18138 * keymap.c (Fkey_description): Move side effect outside of macro call.
18139
18140 * xfaces.c (Finternal_make_lisp_face):
18141 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18142
18143 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18144 (syms_of_fontset): Use ASET.
18145
18146 * fns.c (concat): Move side effect outside of macro call.
18147 (hash_clear): Use ASET.
18148
181492008-02-08 Richard Stallman <rms@gnu.org>
18150
18151 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18152 If FORCE, and frame has a surrogate minibuffer for another frame,
18153 delete the other frame first.
18154
181552008-02-07 Timo Savola <timo.savola@iki.fi>
18156
18157 * xterm.c (x_detect_focus_change): Handle embed client message.
18158 (handle_one_xevent): Ditto.
18159 (handle_one_xevent): If embedded and we get a button press/release,
18160 request focus.
18161 (xembed_set_info, xembed_send_message): New functions.
18162 (x_make_frame_visible): Call xembed_set_info if embedded.
18163 (x_make_frame_invisible): Call xembed_set_info if embedded.
18164 (x_term_init): Initialize Xatom_XEMBED.
18165 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18166 (x_iconify_frame): Ditto.
18167
18168 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18169 (enum xembed_info, enum xembed_message, enum xembed_focus)
18170 (enum xembed_modifier, enum xembed_accelerator): New.
18171 (xembed_set_info, xembed_send_message): Declare.
18172 (FRAME_X_EMBEDDED_P): New.
18173
18174 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18175 gtk_plug_new.
18176
18177 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18178 window ID of a frame.
18179 (x_window): Reparent frame if embedded.
18180 (Fx_create_frame): Don't set border width if embedded.
18181
18182 * emacs.c (USAGE3): Add --parent-id.
18183 (standard_args): Ditto.
18184
181852008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18186
18187 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18188
181892008-02-07 Jim Meyering <meyering@redhat.com>
18190
18191 Use "do...while (0)", not "if (1)...else" in macro definitions.
18192 The latter provokes a warning from gcc about the empty else, when
18193 followed by ";". Also, without that trailing semicolon, it would
18194 silently swallow up any following statement.
18195 * syntax.h (SETUP_SYNTAX_TABLE)
18196 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18197 * buffer.h (DECODE_POSITION): Likewise.
18198 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18199 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18200 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18201 (FETCH_CHAR_ADVANCE): Likewise.
18202 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18203
182042008-02-07 Jim Meyering <meyering@redhat.com>
18205
18206 * lread.c [lint]: Don't include <sys/inode.h>.
18207
182082008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18209
18210 * xselect.c (x_handle_dnd_message):
18211 * xmenu.c (digest_single_submenu, xmenu_show):
18212 * xdisp.c (with_echo_area_buffer_unwind_data)
18213 (format_mode_line_unwind_data, unwind_format_mode_line)
18214 (display_menu_bar):
18215 * eval.c (Ffetch_bytecode):
18216 * doc.c (store_function_docstring):
18217 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18218 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18219 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18220
182212008-02-07 Kenichi Handa <handa@m17n.org>
18222
18223 * ftxfont.c (ftxfont_open): Don't set
18224 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18225
18226 * ftfont.c (ftfont_open): Fix previous change.
18227
182282008-02-06 Jason Rumney <jasonr@gnu.org>
18229
18230 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18231 Use cached metrics for ASCII characters.
18232 (w32font_open_internal): Don't set font's owning_frame.
18233 Cache metrics for ASCII characters.
18234
18235 * w32font.h (struct w32font_info): Add ascii_metrics.
18236 Remove owning_frame.
18237
182382008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18239
18240 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18241 to negative value.
18242
18243 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18244
18245 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18246
18247 * charset.c (syms_of_charset): Set QCtest and Qeq.
18248
182492008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18250
18251 * process.c (Fstart_process):
18252 * callproc.c (Fcall_process): Handle the case where
18253 Funhandled_file_name_directory returns nil.
18254
18255 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18256 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18257 * font.c (check_gstring): Use them and AREF to access the vector before
18258 we know it's really a gstring.
18259 (Ffont_shape_text): Fix typo.
46e722a9 18260 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
18261
18262 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18263 Declare.
18264
18265 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18266
182672008-02-05 Jason Rumney <jasonr@gnu.org>
18268
18269 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18270 Set smallest_font_height and smallest_char_width in display info.
18271
182722008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18273
18274 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18275
182762008-02-05 Miles Bader <miles@gnu.org>
18277
18278 * xfaces.c (get_lface_attributes, merge_named_face)
18279 (lookup_named_face, lookup_derived_face, realize_named_face):
18280 Revert 2008-02-01 change by cyd@stupidchicken.com.
18281
182822008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18283
18284 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18285 fallback fonts.
18286 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18287
182882008-02-04 Jason Rumney <jasonr@gnu.org>
18289
18290 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18291 set full_name.
18292 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18293
182942008-02-03 Jason Rumney <jasonr@gnu.org>
18295
18296 * makefile.w32-in (OBJ1): Include font.o here.
18297 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18298
182992008-02-02 Jason Rumney <jasonr@gnu.org>
18300
18301 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18302
183032008-02-01 Jason Rumney <jasonr@gnu.org>
18304
18305 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18306
18307 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18308
183092008-02-01 Andreas Schwab <schwab@suse.de>
18310
18311 * Makefile.in (shortlisp, lisp): Update for rename of
18312 ../lisp/language/myanmar.el.
18313
183142008-02-01 Chong Yidong <cyd@stupidchicken.com>
18315
18316 * xfaces.c (get_lface_attributes): Delete function.
18317 (merge_named_face, lookup_named_face, lookup_derived_face)
18318 (realize_named_face): Call lface_from_face_name directly, and use
18319 the fact that merge_face_vectors does not alter its FROM argument.
18320
183212008-02-01 Jason Rumney <jasonr@gnu.org>
18322
18323 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18324 input in the default locale. Handle non-Unicode multibyte input.
18325
183262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18327
18328 * fontset.c (reorder_font_vector): Exclude nil elements from the
18329 font group. Don't try multiple fonts.
18330 (fontset_font): Adjust for the above change.
18331 (Finternal_char_font): Return nil if the found font doesn't
18332 contain the character ch.
18333
18334 * Makefile.in (lisp, shortlisp): Add cham.el.
18335
183362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18337
18338 * font.h (FONTP): Make it return 1 also for a font-object.
18339
18340 * .gdbinit (xfontset): New function.
18341
18342 * font.c (font_find_for_lface): Check if the character C is
18343 supported or not only for the first font.
18344
18345 * fontset.c (reorder_font_vector): Fix typo.
18346 (fontset_find_font): Don't add a font-spec specifying a script.
18347 Use 0 (not Qt) for the indication of empty font-group. Change the
18348 format of RFONT-DEF. Return Qt if no font in the font-group
18349 support the character.
18350 (fontset_font): Adjust for the above change. If no font was
18351 found the character, remember that.
18352 (face_for_char): Adjust for the change of RFONT-DEF.
18353 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18354 no font for the target.
18355 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18356
183572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18358
18359 * font.c (font_load_for_face): Handle the case that the font in
18360 face->lface is a string.
18361
183622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18363
18364 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18365
183662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18367
18368 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18369 Fix previous change. If the frame is not on a window system,
18370 signal an error.
18371
183722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18373
18374 * coding.c (decode_coding_object, encode_coding_object): Adjust
18375 marker positions after conversion.
18376
18377 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18378
183792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18380
18381 * font.c (font_find_for_lface): Fix the handling of the return
18382 value of font_has_char.
18383 (Ffont_shape_text): Fix previous change.
18384
18385 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18386 (fontset_ref_and_range): Delete it.
18387 (fontset_find_font): Call char_table_ref_and_range instead of
18388 FONTSET_REF_AND_RANGE.
18389 (make_fontset): Don't setup font groups of Latin here.
18390 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18391 (new_fontset_from_font): Make the specified font the default for
18392 all Latin characters.
18393
183942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18395
18396 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18397 is on a window system before accessing the fontset of the frame.
18398
183992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18400
18401 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18402
18403 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18404 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18405
18406 * font.c (Ffont_shape_text): If the font driver doesn't have a
18407 shaper function, make zero-width glyphs to have at least one-pixel
18408 width. Fix setting of `to' field of glyphs.
18409
184102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18411
18412 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18413 glyphs.
18414
18415 * font.h (struct font_driver): Improve docstring of member `shape'.
18416
184172008-02-01 Kenichi Handa <handa@m17n.org>
18418
18419 * composite.c (syms_of_composite): Fix docstring of
18420 auto-composition-function.
18421
18422 * font.h (LGLYPH_SIZE): New macro.
18423
18424 * font.c (Ffont_fill_gstring): Stop filling when a character not
18425 supported by the font is found.
18426 (Ffont_shape_text): When a shape callback function returns nil,
18427 try at most two more times with larger gstring.
18428 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18429
18430 * xdisp.c (handle_auto_composed_prop): Change the argument to
18431 auto-composition-function.
18432
18433 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18434 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18435 Lispy glyph and store it in the lgstring.
18436
18437 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18438
18439 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18440
184412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18442
18443 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18444
18445 * fontset.c (Vfont_encoding_charset_alist): New variable.
18446 (syms_of_fontset): DEFVAR it.
18447 (reorder_font_vector, fontset_find_font): Optimize for the case of
18448 no need of reordering.
18449 (face_for_char): Map the charset property by
18450 Vfont_encoding_charset_alist.
18451
184522008-02-01 Jason Rumney <jasonr@gnu.org>
18453
18454 * w32font.c (logfonts_match): Don't check adstyle here.
18455 (font_matches_spec): Check here against physical font instead.
18456 (add_font_entity_to_list): Avoid some substitutions.
18457
18458 * font.c (font_parse_fcname): Default weight and slant to normal.
18459 (font_score): Prefer normal fonts if weight or slant unspecified.
18460 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18461 match freetype scores.
18462
184632008-02-01 Jason Rumney <jasonr@gnu.org>
18464
18465 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18466 font, as it may have been deleted.
18467 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18468 most common hyphenless variation.
18469 (logfonts_match): Check generic family.
18470 (font_matches_spec): Don't check generic family here.
18471 (fill_in_logfont): Set generic family based on adstyle.
18472
18473 * w32font.h (w32font_get_cache): Update declaration.
18474
184752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18476
18477 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18478
18479 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18480 If none of the new drivers are available, call font_update_drivers
18481 with the old drivers.
18482
18483 * w32font.c (w32font_get_cache): Adjust the argument type.
18484
18485 * xfont.c (xfont_get_cache): Adjust the argument type.
18486
18487 * font.h (struct font_driver): Change argument type of get_cache.
18488
18489 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18490
18491 * font.c (Ffont_get): Fix arguments to Fassoc.
18492 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18493 (font_clear_cache): New function.
18494 (font_list_entities, font_matching_entity): Use font_get_cache.
18495 (font_update_drivers): Call font_clear_cache when finishing a driver.
18496
18497 * fontset.c (fontset_find_font): Fix previous change.
18498
184992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18500
18501 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18502 dpyinfo->font_table.
18503 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18504 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18505
18506 * font.c (font_at): Handle the case that the arg C is negative.
18507 Handle the unibyte case.
18508 (Ffont_at): Call font_at with the arg C -1.
18509
18510 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18511 the position here, and call font_at with the arg C -1.
18512 Don't check the range of the existing composition at the point.
18513
185142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18515
18516 * fontset.c (fontset_add): New args charset_id and family.
18517 Change caller.
18518 (load_font_get_repertory, fontset_find_font): Assume that
18519 font_spec is always a font-spec object.
18520 (Fset_fontset_font): Always store a font-spec object in a fontset.
18521
18522 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18523 instead of get_property_and_range.
18524
185252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18526
18527 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18528 (xftfont_open): Don't keep locking face.
18529 (xftfont_close): Don't unlock face.
18530 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18531
18532 * fontset.c (fontset_find_font): Don't prefer a font of
18533 supplementary charset.
18534
185352008-02-01 Kenichi Handa <handa@m17n.org>
18536
18537 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18538 script, langsys_tag to langsys, new member script.
18539 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 18540 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
18541 listing to the script specified in that property. Fix arg to
18542 OTF_check_features.
18543
185442008-02-01 Jason Rumney <jasonr@gnu.org>
18545
18546 * w32font.h: New file.
18547
18548 * w32font.c: Include it.
18549 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18550 (w32font_open): Set owning_frame.
18551 (w32font_text_extents): Use owning_frame.
18552 (struct font_callback_data): Add opentype_only field.
18553 (add_font_entity_to_list): Use it to filter fonts.
18554 Don't check against full name.
18555 (w32font_list_internal): New function.
18556 (w32font_list): Use it.
18557 (w32font_match_internal): New function.
18558 (w32font_match): Use it.
18559 (w32font_open_internal): New function.
18560 (w32font_open): Use it.
18561 (w32font_get_cache, w32font_close, w32font_has_char)
18562 (w32font_encode_char, w32font_text_extents, w32font_draw):
18563 Make non-static.
18564
18565 * makefile.w32-in (w32font.o): Depend on w32font.h.
18566
185672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18568
18569 * charset.c (Fdefine_charset_internal): Record a supplementary
18570 charset at the tail of Vcharset_order_list.
18571
18572 * font.c (Ffont_shape_text): Fix the return value.
18573
18574 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18575
18576 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18577
185782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18579
18580 * ftfont.c (struct OpenTypeSpec): New struct.
18581 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18582 (ftfont_get_open_type_spec): New function.
18583 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18584
18585 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18586
185872008-02-01 Jason Rumney <jasonr@gnu.org>
18588
18589 * w32font.c (add_font_entity_to_list): Compare only the beginning
18590 of full name.
18591
185922008-02-01 Kenichi Handa <handa@m17n.org>
18593
18594 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18595 Never return HANDLED_RECOMPUTE_PROPS.
18596
185972008-02-01 Kenichi Handa <handa@m17n.org>
18598
18599 * font.c (font_gstring_produce): Delete it.
18600
18601 * composite.h (COMPOSITION_METHOD):
18602 Handle COMPOSITION_WITH_GLYPH_STRING.
18603
186042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18605
18606 * xfont.c (Qx): Delete.
18607 (syms_of_xfont): Don't initialize Qx.
18608
18609 * composite.h (enum composition_method):
18610 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18611
186122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18613
18614 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18615 (choose_face_font): Accept new form of font-spec.
18616
18617 * frame.h (font_driver_list): Declare it unconditionally.
18618 (struct frame): Define members font_driver_list and font_data_list
18619 unconditionally.
18620
18621 * fontset.c: Include "font.h" unconditionally.
18622 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18623 (Fset_fontset_font): Accept a font-spec object.
18624
18625 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18626 PIXEL_SIZE part a wild card.
18627
18628 * dispextern.h (struct glyph_string): Define members clip and
18629 num_clips unconditionally.
18630 (struct face): Define members font_info and extra unconditionally.
18631
18632 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18633 ftfont_info only when HAVE_LIBOTF is defined.
18634
186352008-02-01 Andreas Schwab <schwab@suse.de>
18636
18637 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18638 and end.
18639
186402008-02-01 Jason Rumney <jasonr@gnu.org>
18641
18642 * w32font.c (w32font_driver): Add new fields.
18643
186442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18645
18646 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18647 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18648 (LIBES): Add @M17N_FLT_CFLAGS@.
18649
18650 * composite.c (compose_text): Don't treat the new style
18651 composition specially.
18652
18653 * emacs.c (main): Call syms_of_font unconditionally.
18654
18655 * font.h (FONT_ENTITY_NOT_LOADABLE)
18656 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18657 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18658 (struct font_driver): New member shape.
18659 (font_registry_charsets): Extern it.
18660 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18661 (font_otf_capability, font_drive_otf): Delete their externs.
18662
18663 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18664 (font_charset_alist, font_registry_charsets): Move from xfont.c
18665 and rename.
18666 (font_prop_validate_otf): New function.
18667 (font_property_table): Register it for QCotf.
18668 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18669 (font_drive_otf): Delete.
18670 (font_prepare_composition): New arg F. Adjust for the change of
18671 lispy gstring.
18672 (font_find_for_lface): New arg C.
18673 (font_load_for_face): Adjust for the change of font_find_for_lface.
18674 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18675 lispy gstring.
18676 (Ffont_shape_text): New function.
18677 (Fopen_font): If the font size is not given, use 12-pixel.
18678 (Ffont_at): New arg STRING.
18679 (syms_of_font): Initalize font_charset_alist.
18680 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18681 conditionally.
18682
18683 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18684 fonts of the same font-spec. Change the format of RFONT-DEF.
18685 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18686 Adjust for the change of RFONT-DEF.
18687 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18688
18689 * ftfont.h: New file.
18690
18691 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18692 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18693 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18694 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18695 font_otf_capability and font_drive_otf, set ftfont_shape.
18696 (ftfont_list): Adjust for the change of :otf property value.
18697 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18698 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18699 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18700 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18701 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18702 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18703
18704 * w32term.c (x_draw_composite_glyph_string_foreground):
18705 Adjust for the change of lispy gstring.
18706
18707 * xdisp.c (handle_composition_prop): Adjust for the change of
18708 lispy gstring. Call a function for auto-composition with the
18709 third arg it->window.
18710 (fill_composite_glyph_string): Adjust for the change of lispy string.
18711 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18712
18713 * xfaces.c (set_font_frame_param): Adjust for the change of
18714 font_find_for_lface.
18715
18716 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18717 (xfont_registry_charsets): Likewise. Change caller.
18718 (syms_of_xfont): Don't handle x_font_charset_alist.
18719
18720 * xftfont.c: Include "ftfont.h".
18721 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18722 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18723 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18724 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18725 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18726 Set xftfont_driver.shape to xftfont_shape.
18727
18728 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18729 the change of lispy gstring.
18730
187312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18732
18733 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18734
187352008-02-01 Jason Rumney <jasonr@gnu.org>
18736
18737 * w32font.c (w32font_draw): Fill background manually.
18738
187392008-02-01 Jason Rumney <jasonr@gnu.org>
18740
18741 * font.c (Qfontp): Remove unused symbol.
18742 (QCantialias): New symbol.
18743 (syms_of_font): Define it.
18744 (font_property_table): Set a validator for QCantialias.
18745
18746 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18747 Define if not already.
18748 (QCfamily): Share with xfaces.c.
18749 (Qstandard, Qsubpixel, Qnatural): New symbols.
18750 (syms_of_w32font): Define them. Don't define QCfamily here.
18751 (w32_antialias_type, lispy_antialias_type): New functions.
18752 (w32_enumfont_pattern_entity): New arg requested_font.
18753 Set antialias parameter if non-default was requested.
18754 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18755
187562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18757
18758 * lread.c (read1): Undo the previous change.
18759
187602008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18761
18762 * frame.c (Fdelete_frame): Call font_update_drivers only when
18763 USE_FONT_BACKEND is defined.
18764
187652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18766
18767 * font.h (struct font_bitmap): New member bits_per_pixel.
18768 (struct font_driver): New members start_for_frame and end_for_frame.
18769 (struct font_data_list): New struct.
18770 (font_put_frame_data, font_get_frame_data): Extern them.
18771
18772 * frame.h (struct frame): New member font_data_list.
18773
18774 * font.c (font_update_drivers): Call driver->start_for_frame and
18775 driver->end_for_frame at proper timings.
18776 (font_put_frame_data, font_get_frame_data): New functions.
18777 (Ffont_spec): Add usage in the docstring.
18778
18779 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18780 (Fdelete_frame): Call font_update_drivers.
18781
18782 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18783 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18784 (xftfont_get_xft_draw): New function.
18785 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18786 (xftfont_end_for_frame): New function.
18787 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18788
18789 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18790 Change argument. Cache GCs in the per-frame data.
18791 (struct ftxfont_frame_data): New struct.
18792 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18793 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18794 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18795 (ftxfont_end_for_frame): New function.
18796 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18797
18798 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18799
188002008-02-01 Kenichi Handa <handa@m17n.org>
18801
18802 * xselect.c (Vselection_coding_system)
18803 (Vnext_selection_coding_system): Delete them.
18804 (syms_of_xselect): Don't declare selection-coding-system and
18805 next-selection-coding-system. They are declared in select.el.
18806
188072008-02-01 Jason Rumney <jasonr@gnu.org>
18808
18809 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18810
18811 * w32fns.c: Include imm.h.
18812 (get_composition_string_fn, get_ime_context_fn): New optional
18813 system functions.
18814 (globals_of_w32fns): Load them from imm32.dll.
18815 (ignore_ime_char): New flag.
18816 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18817 WM_IME_ENDCOMPOSITION messages.
18818
18819 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18820 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18821
188222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18823
18824 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18825 (READCHAR_REPORT_MULTIBYTE): New macro.
18826 (readchar): New 2nd arg MULTIBYTE.
18827 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18828 Make symbol's name multibyte according to the multibyteness of the
18829 source.
18830
188312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18832
18833 * xfaces.c (face_for_overlay_string): Call lookup_face with
18834 correct arguments (fix of synching with the trunk).
18835
188362008-02-01 Kenichi Handa <handa@m17n.org>
18837
18838 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18839 (font_prop_validate_non_neg, font_prop_validate_spacing):
18840 Delete argument prop_index.
18841 (font_property_table): Change arguments to validater. Change Callers.
18842 (font_lispy_object): Delete.
18843 (font_at): Use font_find_object instead fo font_lispy_object.
18844
188452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18846
18847 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18848 and file names.
18849
188502008-02-01 Jason Rumney <jasonr@gnu.org>
18851
18852 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18853 (font_matches_spec): Remove debug output.
18854 (add_font_entity_to_list): Avoid using substituted fonts.
18855
188562008-02-01 Jason Rumney <jasonr@gnu.org>
18857
18858 * doc.c (Fsnarf_documentation):
18859 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18860
188612008-02-01 Miles Bader <miles@gnu.org>
18862
18863 * dispextern.h (struct glyph_row): Only define "clip" field if
18864 HAVE_WINDOW_SYSTEM is defined.
18865
188662008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18867
18868 Fix up multi-tty merge.
18869
18870 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18871 and indentation.
18872
18873 * xfaces.c (free_realized_face, clear_face_gcs):
18874 Include font_done_for_face in the input_blocked section, just in case.
18875
18876 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18877 (get_char_face_and_encoding): Undo last change and remove the *other*
18878 duplicate definition (i.e. keep the one that's better scoped and that
18879 includes code for the font-backend).
18880
18881 * terminal.c (create_terminal): Default keyboard_coding to
18882 `no-conversion' and terminal_coding to `undecided'.
18883
18884 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18885
18886 * fontset.c (free_realized_fontsets): Check that the table entry does
18887 contain a fontset before trying to compare it to `base'.
18888
18889 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18890 syms_of_charset, and syms_of_coding earlier because init_window_once
18891 now needs Vcoding_system_hash_table to be setup.
18892
18893 * coding.h (default_buffer_file_coding): Remove.
18894
18895 * coding.c (default_buffer_file_coding): Remove.
18896 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18897 than ->symbol, and use the terminal-local coding system.
18898 (syms_of_coding): Don't setup the coding-systems that are not
18899 terminal-local.
18900 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18901
18902 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18903 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18904
18905 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18906 in chartab.c and were re-added here by mistake.
18907 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18908
18909 * doc.c (Fsnarf_documentation):
18910 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18911 src to etc.
18912
18913 * ChangeLog.10: Add mistakenly removed entry.
18914
189152008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18916
18917 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18918
189192008-02-01 Miles Bader <miles@gnu.org>
18920
18921 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18922 Add extra args to FACE_FOR_CHAR.
18923
189242008-02-01 Kenichi Handa <handa@m17n.org>
18925
18926 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18927 in sequence.
18928
18929 * chartab.c (map_sub_char_table, map_char_table): If the range
18930 contains just one character, call the function with that character
18931 even if the depth is not 3.
18932
189332008-02-01 Jason Rumney <jasonr@gnu.org>
18934
18935 * w32font.c (w32font_text_extents): Calculate metrics for the
18936 whole string.
18937
189382008-02-01 Jason Rumney <jasonr@gnu.org>
18939
18940 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18941
189422008-02-01 Jason Rumney <jasonr@gnu.org>
18943
18944 * w32term.c (x_set_glyph_string_clipping): Use
18945 get_glyph_string_clip_rects.
18946 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18947 Adjust for the change of struct glyph_string.
18948
18949 * w32font.c (w32font_draw): Do clipping here.
18950
189512008-02-01 Kenichi Handa <handa@m17n.org>
18952
18953 * xftfont.c (xftfont_draw): Adjust for the change of struct
18954 glyph_string.
18955
18956 * xterm.c (x_set_glyph_string_clipping): Use
18957 get_glyph_string_clip_rects.
18958 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18959 Adjust for the change of struct glyph_string.
18960
18961 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18962 the resulting clip(s}.
18963 (expose_overlaps): Add arg r. Change callers. Set it to
18964 row->clip temporarily.
18965 (expose_window): Redraw rows overlapping the exposed area.
18966
18967 * dispextern.h (struct glyph_row): New member clip.
18968 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18969 clip_height, new member clip, and num_clips.
18970
189712008-02-01 Kenichi Handa <handa@m17n.org>
18972
18973 * data.c (Fchar_or_string_p): Fix docstring.
18974
189752008-02-01 Kenichi Handa <handa@m17n.org>
18976
18977 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18978 create a temporary XftDraw object.
18979
189802008-02-01 Kenichi Handa <handa@m17n.org>
18981
18982 * font.c (Ffontp): Fix docstring.
18983
18984 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18985 strong evidence of ISO-2022.
18986
189872008-02-01 Kenichi Handa <handa@m17n.org>
18988
18989 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18990 SYNTAX_ENTRY_FOLLOW_PARENT.
18991
189922008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18993
18994 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18995 its type.
18996 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18997 Update to the new type of weak_hash_tables and next_weak.
18998
18999 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19000 a plain C pointer to Lisp_Hash_Table.
19001
19002 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19003 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19004 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19005 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19006 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19007 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19008 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19009 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19010 (GC_EQ): Remove since they've been identical to their non-GC_
19011 alter-egos ever since the markbit was eradicated.
19012
19013 * alloc.c:
19014 * buffer.c:
19015 * buffer.h:
19016 * data.c:
19017 * fileio.c:
19018 * filelock.c:
19019 * fns.c:
19020 * frame.h:
19021 * lisp.h:
19022 * macterm.c:
19023 * print.c:
19024 * process.c:
19025 * w32fns.c:
19026 * w32menu.c:
19027 * w32term.c:
19028 * xfns.c:
19029 * xmenu.c:
19030 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19031
190322008-02-01 Kenichi Handa <handa@m17n.org>
19033
19034 * chartab.c (map_sub_char_table): Make it work for the top-level
19035 char-table. Fix handling of parent char-table.
19036 (map_char_table): Adjust for the above change.
19037
190382008-02-01 Jason Rumney <jasonr@gnu.org>
19039
19040 * w32font.c (Qgdi): Rename from Qw32.
19041
190422008-02-01 Jason Rumney <jasonr@gnu.org>
19043
19044 * w32bdf.c (get_quoted_string): Make function static.
19045
190462008-02-01 Kenichi Handa <handa@m17n.org>
19047
19048 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19049 bigger ascent and descent than those of the font, use them as
19050 font's ascent and descent.
19051
190522008-02-01 Kenichi Handa <handa@m17n.org>
19053
19054 * Makefile.in (${lispsource}international/charprop.el): Move this
19055 target within "#ifdef HAVE_UNIDATA" and "#endif".
19056
190572008-02-01 Kenichi Handa <handa@m17n.org>
19058
19059 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19060 (shortlisp): Add ../lisp/language/tai-viet.el.
19061
190622008-02-01 Ulrich Mueller <ulm@gentoo.org>
19063
19064 * Makefile.in (${lispsource}international/charprop.el): Depend on
19065 temacs${EXEEXT}.
19066
190672008-02-01 Jason Rumney <jasonr@gnu.org>
19068
19069 * w32font.c (w32font_close): Delete the GDI font object.
19070
19071 * w32menu.c: Include character.h.
19072
19073 * w32proc.c: Likewise.
19074
19075 * w32select.c: Likewise.
19076
19077 * makefile.w32-in (w32proc.o): Depend on character.h.
19078
190792008-02-01 Jason Rumney <jasonr@gnu.org>
19080
19081 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19082
19083 * w32menu.c (syms_of_w32menu): Likewise.
19084
19085 * w32proc.c (syms_of_ntproc): Likewise.
19086
19087 * w32select.c (syms_of_w32select): Likewise.
19088
19089 * w32term.c (syms_of_w32term): Likewise.
19090
190912008-02-01 Jason Rumney <jasonr@gnu.org>
19092
19093 * w32font.c (w32font_draw): Delete brush after using it.
19094
190952008-02-01 Jason Rumney <jasonr@gnu.org>
19096
19097 * w32font.c (w32font_open): Don't set font_idx.
19098 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19099 to font settings.
19100 (w32font_draw): Fill background explicitly.
19101
191022008-02-01 Jason Rumney <jasonr@gnu.org>
19103
19104 * w32term.c (w32_initialize): Don't call w32font_initialize.
19105
19106 * w32font.c (w32font_info): Remove subranges.
19107 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19108 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19109 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19110 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19111 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19112 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19113 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19114 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19115 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19116 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19117 New symbols.
19118 (font_callback_data): New struct.
19119 (w32font_list, w32font_match): Use it.
19120 (w32font_open): Don't populate subranges.
19121 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19122 (w32font_encode_char): Always return unicode code-point as-is.
19123 (w32font_text_extents): Supply a transformation matrix to
19124 GetGlyphOutline. Never look up by glyph index. Avoid looping
19125 twice. Use unicode version of GetTexExtentPoint32 instead of
19126 glyph index version.
19127 (set_fonts_frame): Remove.
19128 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19129 set frame parameter. Use backward compatible fake foundries.
19130 Save generic family in extra slot under QCfamily. Make width slot
19131 constant. Save QCspacing value. Save list of scripts instead of
19132 binary subranges.
19133 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19134 (add_font_entity_to_list): Use font_callback_data struct. Filter
19135 unwanted fonts.
19136 (add_one_font_entity_to_list): Use font_callback_data struct.
19137 (w32_registry): Default to iso10646_1.
19138 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19139 string font registries. Don't fill in font name if it is a generic
19140 family name, fill family instead. Use spacing, family and script
19141 extra info to fill pitch, family and charset fields.
19142 (list_all_matching_fonts): Use font_callback_data struct.
19143 (unicode_range_for_char): Remove.
19144 (font_supported_scripts): New function.
19145 (w32font_initialize): Remove.
19146 (syms_of_w32font): Update which symbols are defined.
19147
191482008-02-01 Jason Rumney <jasonr@gnu.org>
19149
19150 * font.c (font_pixel_size): Reverse assq_no_quit args.
19151
19152 * w32term.h (FONT_WIDTH): Report max width, not average.
19153 (FONT_MAX_WIDTH): Remove.
19154 (FONT_AVG_WIDTH): New macro.
19155
19156 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19157 redefinition of FONT_WIDTH.
19158
19159 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19160 (w32_cache_char_metrics): Use FONT_WIDTH.
19161
19162 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19163
191642008-02-01 Jason Rumney <jasonr@gnu.org>
19165
19166 * w32font.c (w32font_open): Make lfHeight negative.
19167
19168 * w32fns.c (x_default_font_parameter): Use new style font name.
19169 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19170
191712008-02-01 Jason Rumney <jasonr@gnu.org>
19172
19173 * w32font.c (QCsubranges): New symbol.
19174 (w32font_open, w32font_has_char): Get subranges from subproperty
19175 of extra.
19176 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19177 (syms_of_w32font): Define :subranges symbol.
19178
19179 * font.c (font_put_extra): Expose externally.
19180
19181 * font.h (font_put_extra): Move declaration from font.c.
19182
19183 * font.c (Ffont_get): Use font driver to determine otf capability.
19184 (adjust_anchor): Check if driver defines anchor_point before using.
19185
19186 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19187 (w32font_draw): Use options.
19188 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19189 Fix detection of truetype fonts.
19190 (registry_to_w32_charset): Handle charsets other than iso8859-1
19191 expressed as lisp symbols.
19192 (w32_registry): Express charset as lisp symbol.
19193 (fill_in_logfont): Reverse pixel and point height logic.
19194 Don't set width here. Set quality to default.
19195
19196 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19197 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19198
19199 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19200 Remove redundant loop and allocation.
19201
19202 * makefile.w32-in (font.o, w32font.o): New objects.
19203 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19204 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19205
19206 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19207 STORE_XCHARB a valid l-value.
19208
19209 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19210 calculations for non-Truetype fonts.
19211 (x_draw_glyph_string): Sync with xterm.c.
19212 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19213 Remove redundant code.
19214 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19215
19216 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19217 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19218
19219 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19220 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19221
19222 * w32font.c: New file for w32 font backend.
19223
192242008-02-01 Kenichi Handa <handa@m17n.org>
19225
19226 * term.c: Don't include "buffer.h" twice.
19227
192282008-02-01 Kenichi Handa <handa@m17n.org>
19229
19230 * character.c (Funibyte_string): New function.
19231 (syms_of_character): Defsubr it.
19232
192332008-02-01 Jason Rumney <jasonr@gnu.org>
19234
19235 * w32term.c [USE_FONT_BACKEND]:
19236 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19237 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19238 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19239 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19240 (x_free_frame_resources): Sync with xterm.c.
19241
192422008-02-01 Andreas Schwab <schwab@suse.de>
19243
19244 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19245 char-table size.
19246
192472008-02-01 Kenichi Handa <handa@m17n.org>
19248
19249 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19250
192512008-02-01 Kenichi Handa <handa@m17n.org>
19252
19253 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19254 font_otf_gpos, add font_drive_otf.
19255
19256 * fontset.c (fontset_find_font): Pay attention to font size
19257 specified for a font.
19258 (reorder_font_vector): Check contents of font_def.
19259
19260 * font.c (struct otf_list): Delete it.
19261 (otf_list): Make it a lisp variable.
19262 (otf_open): Use lispy otf_list.
19263 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19264 (check_otf_features): New function.
19265 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19266 New functions.
19267 (font_drive_otf): New function merging font_otf_gsub and
19268 font_otf_gpos.
19269 (font_open_for_lface): New arg spec. Change argument order.
19270 (font_load_for_face): Adjust for the change of font_open_for_lface.
19271 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19272 Ffont_otf_gpos.
19273 (syms_of_font): Staticpro otf_list. Delete defsubr of
19274 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19275
19276 * xfaces.c (set_font_frame_param): Adjust for the change of
19277 font_open_for_lface.
19278
19279 * font.h (font_open_for_lface): Adjust prototype.
19280 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19281 member otf_drive.
19282 (font_otf_gsub, font_otf_gpos): Delete externs.
19283 (font_drive_otf): Extern it.
19284
192852008-02-01 Kenichi Handa <handa@m17n.org>
19286
19287 * font.c (font_at): If the window W is not on a window system,
19288 return Qnil.
19289
19290 * coding.c (produce_chars, encode_coding): Don't call
19291 insert_from_gap if no characters to produce.
19292
192932008-02-01 Kenichi Handa <handa@m17n.org>
19294
19295 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19296 Fclear_face_cache.
19297
19298 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19299
193002008-02-01 Miles Bader <miles@gnu.org>
19301
19302 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19303 Parse "--disable-font-backend" option.
19304 (standard_args): Add "--disable-font-backend" option.
19305
193062008-02-01 Kenichi Handa <handa@m17n.org>
19307
19308 * fontset.c (fontset_find_font): New function.
19309 (fontset_font): Use fontset_find_font.
19310 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19311 Register the specified font for all Latin characters.
19312 (new_fontset_from_font): Register the specified font for all Latin
19313 characters.
19314 (dump_fontset): For a realized fontset, include the base fontset
19315 name in the returned vector.
19316
193172008-02-01 Kenichi Handa <handa@m17n.org>
19318
19319 * character.h (CHAR_STRING): Cast C to unsigned on calling
19320 char_string.
19321
19322 * character.c (char_string): Type of arg C changed to unsigned.
19323 Signal an error if C is an invalid character code.
19324
19325 * editfns.c (general_insert_function, Fchar_to_string):
19326 Use CHARACTERP, not INTEGERP.
19327
193282008-02-01 Kenichi Handa <handa@m17n.org>
19329
19330 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19331 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19332
19333 * regex.c (analyse_first): Fix for multibyte characters in "case
19334 charset:" and "case categoryspec:".
19335
193362008-02-01 Andreas Schwab <schwab@suse.de>
19337
19338 * Makefile.in (LIBES): Move standard libraries to the end.
19339
193402008-02-01 Kenichi Handa <handa@m17n.org>
19341
19342 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19343 nonzero, don't shrink the buffer nextb.
19344
19345 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19346
19347 * coding.c (coding_alloc_by_making_gap): New arg offset.
19348 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19349 offset.
19350 (decode_coding_iso_2022): Update coding->safe_charsets.
19351 (decode_coding_gap): Temporarily set
19352 current_buffer->text->inhibit_shrinking to 1.
19353
193542008-02-01 Kenichi Handa <handa@m17n.org>
19355
19356 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19357 indexing into elements of s->cmp and s->char2b.
19358
193592008-02-01 Juanma Barranquero <lekktu@gmail.com>
19360
19361 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19362
193632008-02-01 Kenichi Handa <handa@m17n.org>
19364
19365 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19366 target_multibyte instead of multibyte.
19367 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19368 (bcmp_translate): Change the argument name from multibyte to
19369 target_multibyte.
19370
193712008-02-01 Kenichi Handa <handa@m17n.org>
19372
19373 These changes are to compile a regexp into a pattern that can be
19374 used both for multibyte and unibyte targets.
19375
19376 * Makefile.in (search.o): Depend on charset.h.
19377
19378 * character.c (multibyte_char_to_unibyte_safe): New function.
19379
19380 * search.c: Include "charset.h".
19381 (compile_pattern_1): Delete argument multibyte. Don't set
19382 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19383 (compile_pattern): Don't compare cp->buf.target_multibyte.
19384 Compare cp->buf.charset_unibyte.
19385 (compile_pattern): Set cp->buf.target_multibyte.
19386
19387 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19388
19389 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19390
19391 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19392 multibyte. Change callers.
19393 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19394 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19395 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19396 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19397 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19398 (regex_compile): Make the compiled pattern usable both for
19399 multibyte and unibyte targets.
19400 (analyse_first): Make the fastmap usable both for multibyte and
19401 unibyte targets.
19402 (TRANSLATE_VIA_MULTIBYTE): Delete.
19403 (re_match_2_internal): Pay attention to the case that the
19404 multibyteness of bufp and target may be different.
19405
194062008-02-01 Kenichi Handa <handa@m17n.org>
19407
19408 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19409 empty box occupy at least one column width.
19410
194112008-02-01 Miles Bader <miles@gnu.org>
19412
19413 * Makefile.in: Remove redundant HAVE_XFT clause.
19414
194152008-02-01 Kenichi Handa <handa@m17n.org>
19416
19417 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19418
194192008-02-01 Kenichi Handa <handa@m17n.org>
19420
19421 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19422 being nil.
19423
194242008-02-01 Kenichi Handa <handa@m17n.org>
19425
19426 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19427
194282008-02-01 Kenichi Handa <handa@m17n.org>
19429
19430 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19431
194322008-02-01 Kenichi Handa <handa@m17n.org>
19433
19434 * search.c (simple_search): Fix previous change.
19435
194362008-02-01 Kenichi Handa <handa@m17n.org>
19437
19438 * xftfont.c (ftfont_font_format): Extern declaration.
19439
19440 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19441
19442 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19443 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19444
19445 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19446 (ftfont_font_format): Fix previous change.
19447
19448 * font.h (Ffont_xlfd_name): EXFUN it.
19449
19450 * font.c (font_parse_xlfd): Fix the array size of `f'.
19451 (register_font_driver): Use EQ to compare driver->type.
19452
19453 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19454 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19455 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19456
194572008-02-01 Kenichi Handa <handa@m17n.org>
19458
19459 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19460 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19461
194622008-02-01 Kenichi Handa <handa@m17n.org>
19463
19464 * xfont.c (xfont_open): Set font->format.
19465
19466 * xftfont.c (xftfont_open): Set font->format.
19467
19468 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19469 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19470 (ftfont_open): Set font->format.
19471 (ftfont_font_format): New function.
19472
19473 * font.h (struct font): New member format.
19474
19475 * font.c (Qopentype): New variable.
19476 (syms_of_font): Defsym it.
19477 (Fquery_font): Change the format of the last element of the return
19478 value.
19479
194802008-02-01 Kenichi Handa <handa@m17n.org>
19481
19482 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19483 last resort.
19484
194852008-02-01 Kenichi Handa <handa@m17n.org>
19486
19487 * coding.c (detect_coding_charset): Fix detection of multi-byte
19488 charset.
19489
194902008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19491
19492 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19493
194942008-02-01 Kenichi Handa <handa@m17n.org>
19495
19496 * xdisp.c (get_next_display_element): Set it->face_id for the
19497 first component of a composition.
19498 (x_produce_glyphs): Check if the font is changed or not for composition.
19499
195002008-02-01 Kenichi Handa <handa@m17n.org>
19501
19502 * fontset.c (Qlatin): New variable.
19503 (syms_of_fontset): Define it as a lisp symbol.
19504 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19505
195062008-02-01 Kenichi Handa <handa@m17n.org>
19507
19508 * font.c (font_unparse_fcname): Pay attention to the case that
19509 some of font property is a null string.
19510
195112008-02-01 Kenichi Handa <handa@m17n.org>
19512
19513 * term.c: Include "composite.h".
19514 (encode_terminal_code): Output all components of composition.
19515 Check the size of encode_terminal_src.
19516 (produce_glyphs): For composition, call produce_composite_glyph.
19517 (append_composite_glyph, produce_composite_glyph): New functions.
19518
19519 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19520 is not found, get font_info from the current ascii face.
19521
195222008-02-01 Kenichi Handa <handa@m17n.org>
19523
19524 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19525 buffer-file-name to Qnil before calling insert_from_buffer.
19526
19527 * font.c (font_unparse_fcname): Pay attention to the case that
19528 foundry is a null string.
19529
195302008-02-01 Kenichi Handa <handa@m17n.org>
19531
19532 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19533
19534 * font.c (Qunicode_sip): New variable.
19535 (syms_of_font): Declare it as a Lisp symbol.
19536
19537 * font.h (Qunicode_sip): Extern it.
19538
195392008-02-01 Kenichi Handa <handa@m17n.org>
19540
19541 * composite.c (get_composition_id): Pay attention to TAB component.
19542
19543 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19544 TAB. Adjust for the change of s->char2b which always points to
19545 the first element of allocated memory.
19546
19547 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19548
19549 * xdisp.c (handle_composition_prop): Set it->c to the first
19550 non-TAB component.
19551 (fill_composite_glyph_string): Change argument.
19552 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19553 (x_produce_glyphs): Fix handling of left/right padding.
19554
195552008-02-01 Kenichi Handa <handa@m17n.org>
19556
19557 * coding.c (detect_coding_system): Fix for handling off
19558 inhibit_iso_escape_detection. Fix for the case that no coding
19559 system is defined for a specific coding category.
19560
195612008-02-01 Kenichi Handa <handa@m17n.org>
19562
19563 * font.c (font_matching_entity): Delete unused local var.
19564
19565 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19566 opening a font.
19567
19568 * fileio.c (Finsert_file_contents): On recovering a file, assume
19569 Unix-like eol.
19570 (choose_write_coding_system): On auto-saving a file, force
19571 Unix-like eol.
19572
19573 * coding.c (setup_coding_system): Fix setting of
19574 coding->common_flags based on eol_type.
19575 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19576 inherit from it.
19577
195782008-02-01 Kenichi Handa <handa@m17n.org>
19579
19580 * alloc.c (NSTATICS): Increas to 0x600.
19581
195822008-02-01 Kenichi Handa <handa@m17n.org>
19583
19584 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19585 (ftfont_list): Don't check :name property.
19586 (ftfont_match): New function.
19587 (ftfont_pattern_entity): If the pattern doesn't contain
19588 FC_SPACING, don't assume FC_MONO.
19589
19590 * font.h (struct font_driver): New member `match'.
19591 (font_update_drivers): Adjust prototype.
19592
19593 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19594 property of FONT.
19595 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19596 them unconditionally.
19597 (font_matching_entity): New function.
19598 (font_open_by_name): Try font_matching_entity if exact match is
19599 not found.
19600 (font_update_drivers): Delete the arg FONT. Return a list of
19601 actually used backends. Don't free faces, font caches here.
19602 Don't store data in frame parameters. Don't call x_set_font.
19603 (Ffont_spec): Store :name property as is.
19604 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19605 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19606 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19607 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19608 Call font->driver->otf_gsub instead of font_otf_gsub.
19609
19610 * frame.c (x_set_font_backend): Do more works that were done in
19611 font_update_drivers before.
19612
19613 * xfont.c (xfont_match): New function.
19614 (xfont_driver): Set xfont_driver.match to xfont_match.
19615 (xfont_draw): Set font in GC if necessary.
19616
19617 * ftxfont.c (ftxfont_match): New function.
19618 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19619
19620 * xftfont.c (xftfont_match): New function.
19621 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19622
196232008-02-01 Kenichi Handa <handa@m17n.org>
19624
19625 * font.h (struct font): New member scalable.
19626 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19627 (font_otf_gsub): Adjust prototype.
19628
19629 * font.c (font_otf_capability): Fix handling of the default langsys.
19630 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19631 Check the contents of SPEC.
19632 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19633 (check_gstring): New function.
19634 (REPLACEMENT_CHARACTER): New macro.
19635 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19636 glyph codes of GSTRING.
19637 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19638 (font_prepare_composition): Set cmp->glyph_len.
19639 (font_open_entity): Set font->scalable.
19640 (Ffont_get): Handle :otf property.
19641 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19642 functions.
19643 (Fquery_font): Use font->font.full_name.
19644 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19645 Sfont_otf_alternates.
19646
19647 * ftfont.c (ftfont_open): Set font->font.full_name and
19648 font->font.name properly. Fix calculation of font->font.height
19649 and font->min_width.
19650
19651 * ftxfont.c (ftxfont_create_gcs): New function.
19652 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19653 (ftxfont_draw_backgrond): Fix filling region.
19654 (ftxfont_default_fid): New function.
19655 (ftxfont_open): Set xfont->fid to the return value of
19656 ftxfont_default_fid.
19657 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19658 (ftxfont_done_face): Free only GCs that are created by
19659 ftxfont_create_gcs.
19660 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19661
19662 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19663 Clip to src->width, etc (not src->clip_XXX).
19664
19665 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19666 FontBackend frame parameter.
19667
196682008-02-01 Kenichi Handa <handa@m17n.org>
19669
19670 * font.h (struct font_driver_list): New member `on'.
19671 (Fclear_font_cache): EXFUN it.
19672 (font_update_drivers): Extern it.
19673
19674 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19675 (font_list_entities): Check driver_list->on.
19676 (register_font_driver): Initalize `on' member to 0.
19677 (font_update_drivers): New function.
19678 (Fclear_font_cache): Check driver_list->on.
19679
19680 * frame.h (Qfont_backend): Extern it.
19681 (x_set_font_backend): Extern it.
19682
19683 * frame.c (Qfont_backend): New variable.
19684 (frame_parms): New element for font-backend.
19685 (x_set_font_backend): New function.
19686
19687 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19688 FontBackend frame parameter.
19689 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19690 x_set_font_backend.
19691
19692 * xfont.c (xfont_list): Don't try listing by :name property if the
19693 name is not for XLFD.
19694
196952008-02-01 Kenichi Handa <handa@m17n.org>
19696
19697 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19698 (LGLYPH_SET_TO): New macros.
19699 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19700 element of G is vector or not.
19701 (font_at): Extern it.
19702
19703 * font.c: Include window.h.
19704 (font_lispy_object): New function.
19705 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19706 end of valid glyph.
19707 (font_close_object): Fix getting (struct font *).
19708 (font_at): New function.
19709 (Ffont_get): If FONT is a font-object, get entity from it.
19710 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19711 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19712 range check.
19713 (Ffont_at): New function.
19714 (syms_of_font): Defsubr Sfont_at.
19715
19716 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19717 before the entry for Qcomposition.
19718 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19719 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19720 the font in gstring.
19721 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19722 LGLYPH_FORM (g) to detect the end of valid glyph.
19723 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19724 we are composing with gstring.
19725
19726 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19727 Check if adjustment is vector or not.
19728
19729 * Makefile.in (font.o): Make it depends on window.h.
19730
197312008-02-01 Kenichi Handa <handa@m17n.org>
19732
19733 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19734 adjustment is vector or not.
19735
197362008-02-01 Miles Bader <miles@gnu.org>
19737
19738 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19739
197402008-02-01 Kenichi Handa <handa@m17n.org>
19741
19742 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19743 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19744 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19745
19746 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19747 (DEVICE_DELTA): Fix typo.
19748 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19749 LGLYPH format.
19750
19751 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19752 the change of LGLYPH format.
19753
197542008-02-01 Kenichi Handa <handa@m17n.org>
19755
19756 * ftfont.c (ftfont_list): Fix typo.
19757 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19758
197592008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19760
19761 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19762
19763 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19764 xftface_info is non-NULL.
19765
197662008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19767
19768 * ftfont.c (ftfont_list): Move misplaced #endif.
19769
197702008-02-01 Kenichi Handa <handa@m17n.org>
19771
19772 * ftfont.c (ftfont_list): Pay attention to the case that
19773 FC_CAPABILITY is not defined.
19774
197752008-02-01 Kenichi Handa <handa@m17n.org>
19776
19777 * xftfont.c (xftfont_open): Set charset related members to -1.
19778
19779 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19780 QCname.
19781 (ftfont_open): Set charset related members to -1.
19782
19783 * fontset.c (Votf_script_alist): New variable.
19784 (syms_of_fontset): Initialize it.
19785 (fontset_font): Delete unused variable.
19786
19787 * fontset.h (Votf_script_alist): Extern it.
19788
19789 * font.c (font_find_for_lface): Optimize code.
19790
19791 * font.h (font_close_object, font_merge_old_spec): Extern them.
19792
197932008-02-01 Kenichi Handa <handa@m17n.org>
19794
19795 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19796 (syms_of_font): Initialize them.
19797 (font_pixel_size): Allow float value in dpi.
19798 (font_prop_validate_type): Delete.
19799 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19800 Change caller.
19801 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19802 (font_prop_validate_extra): Delete.
19803 (font_prop_validate_spacing): New function.
19804 (font_property_table): Add elements for all known properties.
19805 (get_font_prop_index): Rename from check_font_prop_name. New
19806 argument FROM. Change caller.
19807 (font_prop_validate): Validate all known properties.
19808 (font_put_extra): Delete argument force. Change caller.
19809 (font_expand_wildcards): Make it static. Fix the way of shrinking
19810 the possible range.
19811 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19812 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19813 Change caller.
19814 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19815 (font_parse_fcname): Delete argument merge. Fix parsing of point
19816 size. Don't validate properties values here. Change caller.
19817 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19818 (font_open_by_name): Delete unused variable.
19819 (Ffont_spec): Likewise. Validate property values.
19820 (Ffont_match_p): New function.
19821
19822 * font.h (QCscalable): Extern it.
19823 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19824
19825 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19826
19827 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19828 (xfont_list_pattern): New function.
19829 (xfont_list): Use xfont_list_pattern.
19830
198312008-02-01 Kenichi Handa <handa@m17n.org>
19832
19833 * font.h (Flist_fonts): EXFUN it.
19834
198352008-02-01 Jason Rumney <jasonr@gnu.org>
19836
19837 * w32term.c (w32_initialize): Add back smoothing_type and
19838 smoothing_enabled definitions.
19839
198402008-02-01 Kenichi Handa <handa@m17n.org>
19841
19842 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19843 s->face->font on determining underline position.
19844
198452008-02-01 Kenichi Handa <handa@m17n.org>
19846
19847 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19848 (font_has_char): Accept font-object too.
19849 (font_find_for_lface): Try at first with a size specified in face.
19850
198512008-02-01 Kenichi Handa <handa@m17n.org>
19852
19853 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19854 font_open_by_name.
19855
198562008-02-01 Kenichi Handa <handa@m17n.org>
19857
19858 * font.h (QCspacing, QCdpi): Extern them.
19859 (enum font_spacing): New enum.
19860 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19861
19862 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19863 (QCspacing, QCdpi): New variables.
19864 (syms_of_font): Initialize them.
19865 (font_pixel_size): New function.
19866 (font_put_extra): New function.
19867 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19868 in FONT_EXTRA.
19869 (font_parse_fcname): Handle enumerated values (e.g. bold).
19870 Fix handling font size. Add QCname property that contains only
19871 unknown properties.
19872 (font_score): Change argument. Change caller. Pay attention to
19873 FONT_PIXEL_SIZE_QUANTUM.
19874 (font_sort_entites, font_list_entities, font_find_for_lface)
19875 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19876 (Ffont_spec): Add QCname property that contains only unknown properties.
19877
19878 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19879 include weight in listing pattern, instead check weight of each
19880 listed font. Don't include scalable in pattern. Pay attention to
19881 FONT_PIXEL_SIZE_QUANTUM.
19882
198832008-02-01 Kenichi Handa <handa@m17n.org>
19884
19885 * font.c (font_parse_fcname): Fix parsing of point-size.
19886 (font_unparse_fcname): Produce symbolic names for style properties.
19887 (font_list_entities): Handle float size correctly.
19888 (font_open_by_name): Prefer `normal' property values if the name
19889 doesn't specify them.
19890
19891 * fontset.c (Finternal_char_font): Use font_get_name, not
19892 Ffont_xlfd_name.
19893
19894 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19895 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19896 pattern. Don't force scalable.
19897
19898 * xftfont.c (xftfont_open): For generating a name, start from
19899 96-byte buffer.
19900
199012008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19902
19903 * frame.h (x_new_fontset2): Fix prototype.
19904
199052008-02-01 Kenichi Handa <handa@m17n.org>
19906
19907 * font.h (struct font_driver): Delete member parse_name.
19908 (font_match_p, font_get_spec, font_parse_fcname)
19909 (font_unparse_fcname): Extern them.
19910 (font_get_name): Adjust prototype.
19911
19912 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19913 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19914 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19915 unnecessary checks for weight, slant, and swidth.
19916 (font_parse_fcname): New function.
19917 (font_unparse_fcname): New function.
19918 (font_parse_name): New function.
19919 (font_match_p): New function.
19920 (font_get_name): Change return value to Lisp string.
19921 (font_get_spec): New function.
19922 (Qunspecified, Qignore_defface): Don't extern them.
19923 (font_find_for_lface): Assume that LFACE is fully specified.
19924 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19925 object, use it for FACE.
19926 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19927 driver->parse_name.
19928 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19929
19930 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19931 prototype.
19932
19933 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19934 argument F. Don't call Fnew_fontset. Instead, directly call
19935 make_fontset.
19936
19937 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19938
19939 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19940 of x_new_fontset2.
19941
19942 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19943 (Qsans__serif): New variables.
19944 (ftfont_generic_family_list): New variable.
19945 (syms_of_ftfont): Initialize the above variables.
19946 (ftfont_pattern_entity): Delete argument NAME.
19947 (ftfont_list_generic_family): New function.
19948 (ftfont_parse_name): Delete this function.
19949 (ftfont_list): Try generic family only when FcFontList found no font.
19950 (ftfont_list_family): Fix args to FcObjectSetBuild.
19951
19952 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19953 object in attrs[LFACE_FONT_INDEX].
19954 (set_lface_from_font_name): Cancel all changes for font-backend.
19955 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19956 function.
19957 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19958 font object in QCfont attribute.
19959 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19960 (realize_default_face) [USE_FONT_BACKEND]: Call
19961 set_lface_from_font_and_fontset.
19962
19963 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19964 "fixed", and signal error here if no suitable font was found.
19965
19966 * xfont.c (xfont_parse_name): Delete this function.
19967
19968 * xftfont.c (xftfont_open): Change coding style of error
19969 handling. Generate fontconfig's fontname pattern.
19970
19971 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19972 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19973
19974 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19975 Both args FONTSET and FONT_OBJECT must be existing ones.
19976
199772008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19978
19979 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19980
199812008-02-01 Kenichi Handa <handa@m17n.org>
19982
19983 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19984
19985 * font.h (struct font): Fix typo.
19986
19987 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19988 XLFD_XXX_INDEX.
19989 (enum xlfd_field_mask): New enum.
19990 (intern_font_field): Changed argument. Change caller. If digits
19991 are followed by non-digits, return a symbol.
19992 (font_expand_wildcards): New function.
19993 (font_parse_xlfd): Fix wildcard handling.
19994 (Ffont_spec): If :name is specified, reflect the info in the other
19995 properties.
19996
19997 * ftfont.c (ftfont_pattern_entity): Fix typo.
19998 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19999 locale.
20000
200012008-02-01 Kenichi Handa <handa@m17n.org>
20002
20003 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20004
20005 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20006 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20007 registry doesn't specify encoding part.
20008 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20009 (font_open_by_name): At first try parsing the name.
20010 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20011 as Lisp symbols.
20012
20013 * fontset.c (reorder_font_vector): Pay attention to the case that
20014 the 3rd element of font_def is nil.
20015 (fontset_font): For the default fontset, append one more fontset
20016 elements for a script-based font specification. Don't add script
20017 attribute on finding a font.
20018 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20019 font name.
20020 (fontset_ascii_font): If a font can't be opened, return nil.
20021
20022 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20023 (ftfont_pattern_entity): New function.
20024 (ftfont_get_cache): Assume that freetype_font_cache is already
20025 initialized.
20026 (ftfont_list): Handle the case that a file is specified in font
20027 name. Use ftfont_pattern_entity to generate entities.
20028 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20029 (syms_of_ftfont): Initialize freetype_font_cache.
20030
20031 * xftfont.c (xftfont_open): Make the font name fontconfig's
20032 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20033 (xftfont_close): Free font->font.name if not NULL.
20034
20035 * xfont.c (xfont_list): If script is specified for a font, return
20036 null_vector.
20037 (xfont_list_family): Declare argument type.
20038
20039 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20040 name, set LFACE_FONT (lface) to nil.
20041
20042 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20043 return Qnil.
20044
200452008-02-01 Kenichi Handa <handa@m17n.org>
20046
20047 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20048 (standard_args): Add "-enable-font-backend".
20049
200502008-02-01 Kenichi Handa <handa@m17n.org>
20051
20052 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20053 (struct xftdraw_list, xftdraw_list): Delete them.
20054 (register_xftdraw, check_xftdraw): Delete them.
20055 (xftfont_prepare_face): Don't call register_xftdraw.
20056 (xftfont_done_face): Don't call check_xftdraw.
20057 (xftfont_draw): Get background color only when with_background is
20058 nonzero.
20059
20060 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20061
200622008-02-01 Kenichi Handa <handa@m17n.org>
20063
20064 These changes are for the new font handling codes.
20065
20066 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20067 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20068 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20069 (FONTSRC, FONTOBJ): New variables.
20070 (obj): Add $(FONTOBJ).
20071 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20072 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20073 @LIBOTF_LIBS@.
20074 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20075 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20076
20077 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20078
20079 * character.h (Vscript_representative_chars): Extern it.
20080
20081 * character.c (Vscript_representative_chars): New variable.
20082 (syms_of_character): Declare it as a Lisp variable.
20083
20084 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20085 enable_font_backend is nonzero, accept the composition method
20086 COMPOSITION_WITH_GLYPH_STRING.
20087
20088 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20089 enumeration COMPOSITION_WITH_GLYPH_STRING.
20090
20091 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20092 members clip_x, clip_y, clip_width, and clip_height.
20093 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20094
20095 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20096 --enable-font-backend. Call syms_of_font.
20097
20098 * fns.c (assoc_no_quit): New function.
20099
20100 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20101 (face_for_font, new_fontset_from_font)
20102 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20103
20104 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20105 (fontset_font, fontset_ascii, face_for_char)
20106 (make_fontset_for_ascii_face, Ffont_info)
20107 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20108 is nonzero, use font-backend mechanism.
20109 (find_font_encoding): Make it non-static.
20110 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20111 New functions.
20112
20113 * frame.h (struct frame): New members resx and resy.
20114 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20115 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20116
20117 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20118 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20119
20120 * lisp.h (assoc_no_quit): Extern it.
20121
20122 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20123 Through out the file, use FONT_INFO_FROM_FACE instead of
20124 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20125 rif->per_char_metric.
20126 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20127 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20128 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20129 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20130 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20131 nonzero, use font-backend mechanism.
20132 (get_per_char_metric): New function.
20133
20134 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20135 (set_lface_from_font_name)
20136 (set_font_frame_param, free_realized_face)
20137 (prepare_face_for_display, clear_face_gcs)
20138 (Finternal_set_font_selection_order, realize_x_face)
20139 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20140 font-backend mechanism.
20141 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20142 (load_face_font) [USE_FONT_BACKEND]: Abort.
20143 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20144 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20145
20146 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20147 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20148 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20149 nonzero, register all available font drivers. Call
20150 x_default_font_parameter for deciding a font.
20151 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20152
20153 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20154 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20155 (x_set_glyph_string_clipping_exactly)
20156 (x_compute_glyph_string_overhangs)
20157 (x_draw_glyph_string_foreground)
20158 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20159 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20160 enable_font_backend is nonzero, use font-backend mechanism.
20161 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20162
201632008-02-01 Kenichi Handa <handa@m17n.org>
20164
20165 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20166 system_eol_type.
20167 (syms_of_coding): Initialize system_eol_type.
20168
20169 * process.c (Fset_process_coding_system): Inherit system's eol
20170 format if necessary.
20171
201722008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20173
20174 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20175
201762008-02-01 Kenichi Handa <handa@m17n.org>
20177
20178 * coding.c (decode_eol): Pay attention to buffer relocation in
20179 del_range_2.
20180 (decode_coding): Call decode_eol before restoring undo_list.
20181
201822008-02-01 Kenichi Handa <handa@m17n.org>
20183
20184 * charset.c (Fdefine_charset_internal): Fix setting of
20185 emacs_mule_bytes.
20186
201872008-02-01 Kenichi Handa <handa@m17n.org>
20188
20189 * keyboard.c (read_char): Check if C is a character or not before
20190 looking up Vkeyboard_translate_table.
20191
201922008-02-01 Kenichi Handa <handa@m17n.org>
20193
20194 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20195 condition to terminate the loop.
20196
201972008-02-01 Kenichi Handa <handa@m17n.org>
20198
20199 * coding.c (produce_composition): Compare charbuf[i] instead of
20200 args[i] against 0.
20201 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20202
202032008-02-01 Kenichi Handa <handa@m17n.org>
20204
20205 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20206 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20207 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20208 detect_coding.
20209 (emacs_mule_char): Handle old style (Emacs 20) component character
20210 of a composition.
20211 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20212 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20213 composition rule.
20214 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20215
202162008-02-01 Kenichi Handa <handa@m17n.org>
20217
20218 * coding.c (encode_coding_ccl): Allocate destination dynamically
20219 when necessary.
20220
202212008-02-01 Kenichi Handa <handa@m17n.org>
20222
20223 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20224 the loop. When quitted, show a proper error message.
20225
202262008-02-01 Kenichi Handa <handa@m17n.org>
20227
20228 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20229 src->clip_head and src->clip_tail temporarily instead of src->hl.
20230
20231 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20232 character sequence.
20233 (Fccl_execute_on_string): Use ASET, not XSET.
20234
202352008-02-01 Kenichi Handa <handa@m17n.org>
20236
20237 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20238
202392008-02-01 Kenichi Handa <handa@m17n.org>
20240
20241 * coding.c (decode_coding): Fix the condition of terminating the
20242 decoding loop.
20243
202442008-02-01 Kenichi Handa <handa@m17n.org>
20245
20246 * data.c (Faset): On setting a character bigger than 255 in a
20247 unibyte string, signal an error instead of make the string multibyte.
20248
202492008-02-01 Kenichi Handa <handa@m17n.org>
20250
20251 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20252 made by a mapping table.
20253
202542008-02-01 Kenichi Handa <handa@m17n.org>
20255
20256 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20257 not.
20258 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20259 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20260
20261 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20262 s->face is NULL or not.
20263
202642008-02-01 Kenichi Handa <handa@m17n.org>
20265
20266 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20267 (x_draw_glyph_string): Fix drawing of right_overhang and
20268 left_overhang around/on cursor.
20269
20270 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20271
202722008-02-01 Kenichi Handa <handa@m17n.org>
20273
20274 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20275
202762008-02-01 Kenichi Handa <handa@m17n.org>
20277
20278 * coding.c (Fdefine_coding_system_internal)
20279 (Fdefine_coding_system_alias): Avoid a duplicated element in
20280 Vcoding_system_alist.
20281
202822008-02-01 Kenichi Handa <handa@m17n.org>
20283
20284 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20285
20286 * coding.c (Qcoding_system_define_form): New variable.
20287 (syms_of_coding): Intern and staticpro it.
20288 (Fcoding_system_p): Check Qcoding_system_define_form.
20289 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20290
20291 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20292 Fcoding_system_p.
20293 (CHECK_CODING_SYSTEM): If ID is not available, call
20294 Fcheck_coding_system.
20295 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20296 Try also Fcheck_coding_system.
20297
202982008-02-01 Kenichi Handa <handa@m17n.org>
20299
20300 * coding.c (code_conversion_restore): GCPRO arg.
20301
203022008-02-01 Kenichi Handa <handa@m17n.org>
20303
20304 * character.c (lisp_string_width): Check multibyteness of STRING.
20305
203062008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20307
20308 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20309 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20310 (decode_mac_font_name): Use decode_coding_c_string instead of
20311 decode_coding.
20312 (x_load_font): Initialize fontp->fontset to -1. Set
20313 fontp->encoding_type.
20314
203152008-02-01 Kenichi Handa <handa@m17n.org>
20316
20317 * search.c (search_buffer): Give up BM search on case-fold-search
20318 if one of a target character has a case-equivalence of different
3b59c351 20319 byte length even if that target character is an ASCII.
aac0c6e3
MR
20320 (simple_search): Fix calculation of byte length of matched text.
20321 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20322
203232008-02-01 Kenichi Handa <handa@m17n.org>
20324
20325 * coding.c (decode_coding): Fix handling of invalid bytes.
20326
203272008-02-01 Kenichi Handa <handa@m17n.org>
20328
20329 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20330 Unicode characters.
20331
203322008-02-01 Kenichi Handa <handa@m17n.org>
20333
20334 * coding.c (encode_coding_object): If a pre-write-conversion
20335 function makes a new buffer, kill it.
20336
203372008-02-01 Kenichi Handa <handa@m17n.org>
20338
20339 * coding.c (QCascii_compatible_p): New variable.
20340 (syms_of_coding): Initialize it.
20341 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20342 calling string_char.
20343 (record_conversion_result): Add `default:' case.
20344 (coding_charset_list): Delete unused variable `coding_type'.
20345 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20346 property in the plist of the coding system.
20347 (Fcoding_system_put): Check QCascii_compatible_p.
20348
203492008-02-01 Miles Bader <miles@gnu.org>
20350
20351 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20352 removed calculation of frame `f', as it's now used.
20353
203542008-02-01 Kenichi Handa <handa@m17n.org>
20355
20356 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20357 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20358 (UNIDATA): New variable.
20359 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20360 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20361 $(RUN_TEMACS) unconditionally.
20362
203632008-02-01 Kenichi Handa <handa@m17n.org>
20364
20365 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20366 (admindir): New variable.
20367 ($(lispsource)international/charprop.el): New target.
20368
203692008-02-01 Miles Bader <miles@gnu.org>
20370
20371 * character.c (chars-in-region): Remove obsolete function.
20372 (syms_of_character): Remove its initialization.
20373
203742008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20375
20376 * w32select.c (validate_coding_system)
20377 (setup_windows_coding_system): New functions.
20378 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20379 setup_windows_coding_system.
20380 (setup_config, Fw32_get_clipboard_data): Use
20381 validate_coding_system.
20382 (Fx_selection_exists): Move call to setup_config to a place
20383 where signals are allowed.
20384
20385 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20386 (Fcheck_coding_system): Add declarations.
20387
203882008-02-01 Kenichi Handa <handa@m17n.org>
20389
20390 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20391
203922008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20393
20394 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20395 string as the second argument for x_new_fontset.
20396
203972008-02-01 Kenichi Handa <handa@m17n.org>
20398
20399 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20400 (encode_coding_object): Use safe_call instead of call2.
20401
204022008-02-01 Kenichi Handa <handa@m17n.org>
20403
20404 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20405
20406 * Makefile.in (lisp): Include charprop.el.
20407
204082008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20409
20410 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20411 Not sure if it's unnecessary.
20412
204132008-02-01 Steven Tamm <steventamm@mac.com>
20414
20415 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20416 some possibly unnecessary fontset checking code that crashed
20417 when creating a new frame.
20418
204192008-02-01 Kenichi Handa <handa@m17n.org>
20420
20421 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20422 lookup_face.
20423
20424 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20425
20426 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20427
204282008-02-01 Kenichi Handa <handa@m17n.org>
20429
20430 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20431 (coding_charset_list): New function.
20432
20433 * coding.h (coding_charset_list): Extern it.
20434
204352008-02-01 Kenichi Handa <handa@m17n.org>
20436
20437 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20438 concatenation of family and registry.
20439
204402008-02-01 Kenichi Handa <handa@m17n.org>
20441
20442 * character.h (BYTE8_STRING): Fix typo.
20443
20444 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20445 string to multibyte (sync to HEAD).
20446
20447 * casefiddle.c (casify_region): Handle changes in byte-length
20448 using replace_range_2 (sync to HEAD).
20449
204502008-02-01 Andreas Schwab <schwab@suse.de>
20451
20452 * chartab.c (map_char_table): GCPRO table and arg.
20453
204542008-02-01 Kenichi Handa <handa@m17n.org>
20455
20456 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20457 already at limit.
20458
204592008-02-01 Kenichi Handa <handa@m17n.org>
20460
20461 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20462 instead of fast_c_string_match_ignore_case.
20463 (find_font_encoding): Change argument to Lisp_Object. Use
20464 fast_string_match_ignore_case instead of
20465 fast_c_string_match_ignore_case. Change caller.
20466
204672008-02-01 Kenichi Handa <handa@m17n.org>
20468
20469 * xdisp.c (get_next_display_element): In unibyte case, decide to
20470 display in octal form by checking a character by
20471 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20472
20473 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20474
20475 * character.c (unibyte_has_multibyte_table): New variable.
20476
20477 * character.h (unibyte_has_multibyte_table): Extern it.
20478 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20479
204802008-02-01 Kenichi Handa <handa@m17n.org>
20481
20482 * coding.c (encode_coding_iso_2022): Fix handling of charset
20483 annotation.
20484
204852008-02-01 Kenichi Handa <handa@m17n.org>
20486
20487 * coding.c (setup_coding_system): If coding_system is nil, use
20488 Qundecided.
20489 (Fterminal_coding_system): Return nil if terminal coding system is
20490 `undecided'.
20491 (syms_of_coding): Define coding-system `undecided' here. Setup
20492 terminal_coding as `undecided'.
20493
204942008-02-01 Kenichi Handa <handa@m17n.org>
20495
20496 * xdisp.c (message_dolog, set_message_1): Call
20497 unibyte_char_to_multibyte with arg type int.
20498
20499 * lread.c (read1): Fix reading of a char-table.
20500
20501 * print.c (print_object): Include sub char-table in circularities
20502 detection.
20503
205042008-02-01 Kenichi Handa <handa@m17n.org>
20505
20506 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20507 Append the found sequences in car of ARGS instead of prepending.
20508
205092008-02-01 Kenichi Handa <handa@m17n.org>
20510
20511 * fileio.c (report_file_error): Make a unibyte string from
20512 strerror (errorno).
20513 (Fsubstitute_in_file_name): Fix the arg to
20514 unibyte_char_to_multibyte. It is evaluated twice.
20515
205162008-02-01 Kenichi Handa <handa@m17n.org>
20517
20518 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20519
205202008-02-01 Kenichi Handa <handa@m17n.org>
20521
20522 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20523 BOM is not found.
20524 (detect_coding, detect_coding_system): Optimization for ISO-2022
20525 when no 8-bit data is found.
20526
205272008-02-01 Jason Rumney <jasonr@gnu.org>
20528
20529 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20530
205312008-02-01 Kenichi Handa <handa@m17n.org>
20532
20533 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20534 CHARS.
20535
205362008-02-01 Steven Tamm <steventamm@mac.com>
20537
20538 * macterm.c (mac_encode_char): Add charset argument and update
20539 to use encoding_type.
20540 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20541 switch to pure fontset.
20542 (decode_mac_font_name): Temporarily remove decoding.
20543 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20544 (x_load_font): Temporarily remove encoding.
20545
205462008-02-01 Kenichi Handa <handa@m17n.org>
20547
20548 * xfaces.c (Fface_font): If frame is not on a window system,
20549 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20550 refer to face->font.
20551 (split_font_name_into_vector, build_font_name_from_vector)
20552 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20553 when HAVE_WINDOW_SYSTEM is defined.
20554
205552008-02-01 Kenichi Handa <handa@m17n.org>
20556
20557 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20558 (x_produce_glyphs): Fix setting of members of cmp in case
20559 cmp->glyph_len is zero.
20560
20561 * fontset.c (Fset_fontset_font): Fix docstring.
20562 (Ffontset_info): Make it backward compatible. New arg ALL.
20563
205642008-02-01 Kim F. Storm <storm@cua.dk>
20565
20566 * process.c (read_process_output): Grow decoding_buf when needed;
20567 this could cause a crash in allocate_string and compact_small_strings.
20568
205692008-02-01 Kenichi Handa <handa@m17n.org>
20570
20571 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20572
205732008-02-01 Kenichi Handa <handa@m17n.org>
20574
20575 * coding.c (setup_coding_system): Set coding->common_flags
20576 correctly for raw-text.
20577 (consume_chars): On encoding unibyte text by raw-text, don't check
20578 multibyte form.
20579 (encode_coding): On encoding by raw-text, never use translation tables.
20580
20581 * fileio.c (e_write): Short cut for the case of no encoding.
20582
205832008-02-01 Kenichi Handa <handa@m17n.org>
20584
20585 * coding.c (detect_coding, detect_coding_system): Delete unused
20586 variables.
20587
205882008-02-01 Kenichi Handa <handa@m17n.org>
20589
20590 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20591 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20592
205932008-02-01 Kenichi Handa <handa@m17n.org>
20594
20595 * coding.c (Ffind_coding_systems_region_internal): Include
20596 raw-text and no-conversion in the result.
20597
205982008-02-01 Kenichi Handa <handa@m17n.org>
20599
20600 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20601 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20602 FONT_DEF.
20603 (font_def_arg, add_arg, from_arg, to_arg): New args.
20604 (set_fontset_font): Change argument.
20605 (Fset_fontset_font): Fix for the case that TARGET is a script
20606 name and charset name.
20607 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20608
206092008-02-01 Kenichi Handa <handa@m17n.org>
20610
20611 * fontset.c (fontset_font): Rename from fontset_face. Change return
20612 value.
20613 (face_suitable_for_char_p, face_for_char): Adjust for the change
20614 of fontset_font.
20615 (make_fontset_for_ascii_face): Fix setting of the fontset element
20616 for ASCII.
20617 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20618 to get a font name.
20619 (Ffontset_info): Adjust for the change of fontset_font.
20620
20621 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20622
20623 * character.h (LEADING_CODE_LATIN_1_MIN)
20624 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20625
206262008-02-01 Kenichi Handa <handa@m17n.org>
20627
20628 * editfns.c (check_translation): New function.
20629 (Ftranslate_region_internal): Handle M:N mapping.
20630
206312008-02-01 Kenichi Handa <handa@m17n.org>
20632
20633 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20634
206352008-02-01 Kenichi Handa <handa@m17n.org>
20636
20637 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20638 goto invalid_code.
20639 (decode_coding_iso_2022): Fix handling of invalid designation.
20640
20641 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20642 after calling code_conversion_save.
20643
206442008-02-01 Kenichi Handa <handa@m17n.org>
20645
20646 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20647
20648 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20649
20650 * fontset.c: Include "intervals.h".
20651 (fontset_face): Fix comparing of Lisp_Objects.
20652 (free_face_fontset, new_fontset_from_font_name): Fix
20653 Lisp_Object/int mixup.
20654
20655 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20656
20657 * coding.c: Add many prototypes for static functions.
20658 (get_translation_table): Allow max_lookup to be NULL.
20659 (decode_coding, Ffind_coding_systems_region_internal)
20660 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20661 get_translation_table with max_lookup NULL.
20662
206632008-02-01 Kenichi Handa <handa@m17n.org>
20664
20665 * coding.c (get_translation_table): Declare it as Lisp_Object.
20666 (LOOKUP_TRANSLATION_TABLE): New macro.
20667 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20668 instead of CHAR_TABLE_REF.
20669
206702008-02-01 Kenichi Handa <handa@m17n.org>
20671
20672 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20673 annotation data format.
20674 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20675 Change arguments FROM and TO to single argument NCHARS. Change caller.
20676 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20677 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20678 (decode_coding_ccl, decode_coding_charset): Pay attention to
20679 coding->charbuf_used.
20680 (get_translation): New function.
20681 (produce_chars): New arguments translation_table and last_block.
20682 Translate characters here. Return number of carryover chars.
20683 Change caller.
20684 (produce_composition): New argument pos. Change caller.
20685 Adjust for the change of annotation data format.
20686 (produce_charset, produce_annotation): Likewise.
20687 (decode_coding, encode_coding): Don't call translate_chars.
20688 (consume_chars): New arg translation_table. Change caller.
20689 (translate_chars): Delete.
20690 (syms_of_coding): Make translation-table's number of extra slots 2.
20691
206922008-02-01 Kenichi Handa <handa@m17n.org>
20693
20694 * search.c (simple_search): Fix setting this_pos_byte in backward
20695 search.
20696
20697 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20698 byte sequence.
20699 (detect_coding_ccl): Fix setting of the variable valids.
20700
207012008-02-01 Kenichi Handa <handa@m17n.org>
20702
20703 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20704
20705 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20706
20707 * editfns.c (Ftranslate_region_internal): Rename from
20708 Ftranslate_region. Accept a char-table in TABLE.
20709 (syms_of_editfns): Defsubr Stranslate_region_internal.
20710
20711 * xfaces.c (set_lface_from_font_name): If a font is specified for
20712 a frame, generate a fontset from the font.
20713 (build_scalable_font_name): If the scalable font is requested for
20714 a specific size, don't change that size.
20715 (try_font_list): Try a scalable font also in the case that a
20716 pattern string is specified.
20717
207182008-02-01 Kenichi Handa <handa@m17n.org>
20719
20720 * xfaces.c (Fface_font): New optional arg CHARACTER.
20721
207222008-02-01 Kenichi Handa <handa@m17n.org>
20723
20724 * charset.h (CHARSET_OFFSET): New macro.
20725
207262008-02-01 Kenichi Handa <handa@m17n.org>
20727
20728 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20729
20730 * fontset.c (fontset_face): Handle the case that repertory is a
20731 char-table.
20732 (find_font_encoding): Return nil for unknown encoding.
20733 (Fset_fontset_font): Ignore a font of unknown encoding.
20734
207352008-02-01 Kenichi Handa <handa@m17n.org>
20736
20737 * keymap.c (describe_vector): Handle default value of a char table.
20738
20739 * fontset.c (fontset_face): Handle fallback fonts correctly.
20740 (Ffontset_info): Return infomation about fallback fonts.
20741
207422008-02-01 Kenichi Handa <handa@m17n.org>
20743
20744 * fontset.c (FONTSET_DEFAULT): New macro.
20745 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20746 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20747 the case that it is nil.
20748 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20749 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20750
20751 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20752 subset or superset.
20753
207542008-02-01 Kenichi Handa <handa@m17n.org>
20755
20756 * emacs.c (main): Call init_charset after syms_of_XXX.
20757
20758 * charset.c (Vcharset_map_directory): Delete.
20759 (Vcharset_map_path): New variable.
20760 (load_charset_map_from_file): Use Vcharset_map_path instead.
20761 (init_charset): Initialize Vcharset_map_path.
20762 (syms_of_charset): Delete declaration of "charset-map-directory",
20763 add declaration of "charset-map-path".
20764
207652008-02-01 Kenichi Handa <handa@m17n.org>
20766
20767 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20768 ASCII only string.
20769
20770 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20771
20772 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20773 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20774
207752008-02-01 Kenichi Handa <handa@m17n.org>
20776
20777 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20778
20779 * coding.c (QCmnemonic, QCdefalut_char)
20780 (QCdecode_translation_table, QCencode_translation_table)
20781 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20782 (get_translation_table): Return a list of translation tables if
20783 necessary.
20784 (decode_coding): Call get_translation_table with ENCODEP 0.
20785 (char_encodable_p): If translation_table is non-nil, always call
20786 translate_char.
20787 (Fdefine_coding_system_internal): Accept list of translation
20788 tables as :encode-translation-table and :decode-translation-table.
20789 (Fcoding_system_put): New function.
20790 (syms_of_coding): Declare new symbols. Defsubr
20791 Scoding_system_put.
20792 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20793 typically JISX0212.
20794
20795 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20796 when the charset is superset type.
20797
20798 * character.c (translate_char): Accept list of translation tables.
20799
208002008-02-01 Kenichi Handa <handa@m17n.org>
20801
20802 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20803 (CODING_ATTR_TRANS_TBL): New macro.
20804
20805 * coding.c (get_translation_table): New function.
20806 (translate_chars): Fix the bug of skipping annotation data.
20807 (decode_coding, encode_coding): Utilize get_translation_table.
20808 (char_encodable_p, Funencodable_char_position): Translate char if
20809 necessary.
20810 (Ffind_coding_systems_region_internal)
20811 (Fcheck_coding_systems_region): Setup translation table for encode
20812 in a coding system attribute vector in advance.
20813 (Fdefine_coding_system_internal): Allow a symbol as translation
20814 table. For shift-jis type coding system, allow 4th charset.
20815
208162008-02-01 Kenichi Handa <handa@m17n.org>
20817
20818 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20819
20820 * xdisp.c (get_next_display_element): Pass -1 as POS to
20821 FACE_FOR_CHAR if displaying a C-string.
20822
208232008-02-01 Kenichi Handa <handa@m17n.org>
20824
20825 * composite.c (get_composition_id): Handle xoff and yoff in a
20826 composition rule.
20827
20828 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20829 (struct composition): New member lbearing and rbearing.
20830
20831 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20832 (x_get_glyph_overhangs): Handle a composition glyph.
20833 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20834
20835 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20836 composition glyph.
20837
208382008-02-01 Kenichi Handa <handa@m17n.org>
20839
20840 * print.c: Include charset.h.
20841 (Vprint_charset_text_property): New variable.
20842 (Qdefault): Extern it.
20843 (PRINT_STRING_NON_CHARSET_FOUND)
20844 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20845 (print_check_string_result): New variable.
20846 (print_check_string_charset_prop): New function.
20847 (print_prune_charset_plist): New variable.
20848 (print_prune_string_charset): New function.
20849 (print_object): Call print_prune_string_charset if
20850 Vprint_charset_text_property is not t.
20851 (print_interval): Print nothing if interval->plist is nil.
20852 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20853 variable. Init and staticpro print_prune_charset_plist.
20854
208552008-02-01 Kenichi Handa <handa@m17n.org>
20856
20857 * fontset.c (new_fontset_from_font_name): Use the specified font
20858 for all characters in the new fontset.
20859
20860 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20861 OBJECT args.
20862
20863 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20864 OBJECT args for composition too.
20865
20866 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20867 OBJECT args.
20868
208692008-02-01 Kenichi Handa <handa@m17n.org>
20870
20871 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20872
20873 * fontset.c (reorder_font_vector): Adjust for the change of
20874 FONT_DEF format.
20875 (fontset_face): New arg id. Change caller.
20876 (face_for_char): New args pos and object.
20877 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20878 (fs_query_fontset): Check NAME by Fassoc too.
20879 (Fset_fontset_font): Allow non-XLFD font name.
20880 (Ffontset_info): Adjust for the change of FONT_DEF format.
20881
20882 * fontset.h (face_for_char): Adjust prototype.
20883
20884 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20885 (append_space, extend_face_to_end_of_line)
20886 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20887 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20888
20889 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20890 POS and OBJECT args.
20891
20892 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20893 POS and OBJECT args.
20894
208952008-02-01 Jason Rumney <jasonr@gnu.org>
20896
20897 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20898 of GlobalAlloc'ed memory.
20899
209002008-02-01 Kenichi Handa <handa@m17n.org>
20901
20902 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20903
20904 * charset.h (charset_table_used): Delete extern.
20905
20906 * charset.c (charset_table_used): Make it static.
20907 (map_charset_chars): Fix args to c_function with.
20908
20909 * chartab.c (map_sub_char_table_for_charset): Fix args to
20910 c_function with.
20911
20912 * coding.h (enum coding_result_code): Delete
20913 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20914
20915 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20916 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20917 (Vlast_code_conversion_error): New variables.
20918 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20919 (ONE_MORE_BYTE): Record error if any instead of signaling an
20920 error. If non-ASCII multibyte char is found, return the negative
20921 value of the code. All callers changed to check it.
20922 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20923 (record_conversion_result): New function. Change all codes setting
20924 coding->result to call this function.
20925 (detect_coding_utf_8, decode_coding_utf_8)
20926 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20927 Don't use the local variable incomplete.
20928 (emacs_mule_char): Change the second arg to `const'.
20929 (decode_coding): Fix of flushing out unprocessed data.
20930 (make_conversion_work_buffer): Fix making of a work buffer.
20931 (decode_coding_object): Return coding->dst_object.
20932
20933 * fontset.c (set_fontset_font): Fix args.
20934
20935 * lisp.h (CHARACTERBITS): Define as 22.
20936
20937 * process.c (send_process): Be sure to set coding->src_multibyte.
20938
20939 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20940
209412008-02-01 Kenichi Handa <handa@m17n.org>
20942
20943 * xdisp.c (handle_auto_composed_prop): Give limit to
20944 Fnext_single_char_property_change.
20945
209462008-02-01 Kenichi Handa <handa@m17n.org>
20947
20948 * composite.c (syms_of_composite): Don't make the composition hash
20949 table weak.
20950
20951 * fontset.c (Fset_fontset_font): Fix docstring.
20952
20953 * lisp.h (detect_coding_system): Adjust prototype.
20954
20955 * fileio.c (kill_workbuf_unwind): Delete this function.
20956 (Finsert_file_contents): Adjust the call of detect_coding_system.
20957 Get conversion_buffer by code_conversion_save. Use the macro
20958 CODING_MAY_REQUIRE_DECODING. After decoding, update
20959 coding_system.
20960
20961 * coding.h (make_conversion_work_buffer): Delete extern.
20962 (code_conversion_save): Extern it.
20963
20964 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20965 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20966 (decode_coding_utf_8): Don't do eol converion.
20967 (detect_coding_utf_16): Check coding->src_chars, not
20968 coding->src_bytes. Add heuristics for those that have no signature.
20969 (decode_coding_emacs_mule, decode_coding_iso_2022)
20970 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20971 Don't do eol converion.
20972 (adjust_coding_eol_type): Return a new coding system.
20973 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20974 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20975 each change.
20976 (decode_coding): Pay attention to undo_list. Do eol conversion for
20977 all types of coding-systems (if necessary).
20978 (Vcode_conversion_work_buf_list): Delete it.
20979 (Vcode_conversion_reused_workbuf): Rename from
20980 Vcode_conversion_reused_work_buf.
20981 (Vcode_conversion_workbuf_name): New variable.
20982 (reused_workbuf_in_use): New variable.
20983 (make_conversion_work_buffer): Delete the arg DEPTH.
20984 (code_conversion_restore): Change argument to cons.
20985 (code_conversion_save): Delete the argument BUFFER. Change callers.
20986 (detect_coding_system): New argument src_chars. Change callers.
20987 Fix for utf-16 detection.
20988 (init_coding_once): Don't use ISO_carriage_return.
20989 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20990 reused_workbuf_in_use.
20991
209922008-02-01 Kenichi Handa <handa@m17n.org>
20993
20994 * keymap.c (store_in_keymap): Pay attention to the case that idx
20995 is a cons specifying a character range.
20996
209972008-02-01 Kenichi Handa <handa@m17n.org>
20998
20999 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21000 HANDLED_RECOMPUTE_PROPS.
21001
21002 * coding.c (Fdefine_coding_system_internal): Fix checking of
21003 ascii compatibility.
21004
210052008-02-01 Kenichi Handa <handa@m17n.org>
21006
21007 * charset.c (find_charsets_in_text): Delete unused locale variable.
21008 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21009
21010 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21011 Resync charset_list to Vemacs_mule_charset_list.
21012
21013 * keymap.c (store_in_keymap): Pay attention to the case that idx
21014 is a cons specifying a character range.
21015
210162008-02-01 Kenichi Handa <handa@m17n.org>
21017
21018 * composite.c (update_compositions): Bind inhibit-read-only, etc
21019 to t before calling remove-list-of-text-properties.
21020
21021 * print.c (print_object): Always print ASCII chars as is.
21022
210232008-02-01 Kenichi Handa <handa@m17n.org>
21024
21025 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21026
21027 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21028 is a char table.
21029
210302008-02-01 Kenichi Handa <handa@m17n.org>
21031
21032 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21033
210342008-02-01 Kenichi Handa <handa@m17n.org>
21035
21036 * xfaces.c (set_lface_from_font_name): Fix for the case that
21037 FONTNAME is not fontset name.
21038
210392008-02-01 Kenichi Handa <handa@m17n.org>
21040
21041 * fns.c (base64_encode_1): Fix previous change.
21042
210432008-02-01 Kenichi Handa <handa@m17n.org>
21044
21045 * fontset.c (set_fontset_font): New function.
21046 (Fset_fontset_font): If a font is specified for a charset, use
21047 map_charset_chars to store the font spec in a fontset.
21048
210492008-02-01 Kenichi Handa <handa@m17n.org>
21050
21051 * fontset.c (fontset_face): Create a fallback fontset on demand.
21052 (make_fontset): Don't create a fallback fontset here.
21053 (free_face_fontset): Free a fallback fontset (if any) too.
21054 (n_auto_fontsets): Delete this variable.
21055 (auto_fontset_alist): New variable.
21056 (new_fontset_from_font_name): Check auto_fontset_alist.
21057 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21058 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21059 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21060 Defsubr Sfontset_list_all.
21061
210622008-02-01 Kenichi Handa <handa@m17n.org>
21063
21064 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21065
210662008-02-01 Kenichi Handa <handa@m17n.org>
21067
21068 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21069
210702008-02-01 Kenichi Handa <handa@m17n.org>
21071
21072 * editfns.c (Fgoto_char): Fix docstring.
21073
210742008-02-01 Kenichi Handa <handa@m17n.org>
21075
21076 * insdel.c (insert_from_gap): Adjust intervals correctly.
21077
210782008-02-01 Jason Rumney <jasonr@gnu.org>
21079
21080 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21081 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21082 (w32_initialize): Try to load it.
21083 (x_get_font_repertory): Use it if available.
21084 (w32_encode_char): Add shortcut for unicode output.
21085
21086 * w32fns.c (w32_load_system_font): Default charset to -1.
21087 (x_to_w32_charset): Match all fonts for unicode.
21088 (w32_to_x_charset): New parameter matching. Don't return partial
21089 or wildcard charsets.
21090 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21091 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21092 (w32_to_x_font): Match charset to real charset.
21093 (enum_font_cb2): Always list unicode versions.
21094
21095 * makefile.w32-in (temacs): Increase EMHEAP.
21096
210972008-02-01 Jason Rumney <jasonr@gnu.org>
21098
21099 * w32term.c (w32_encode_char): New charset parameter.
21100 font_info.encoding becomes encoding_type.
21101 (x_get_font_repertory): New function. Warning: stub only!
21102 (x_new_font): Return quickly if font already set.
21103 (x_new_fontset): fontsetname parameter is Lisp_Object.
21104 Use new fs_query_fontset. Try new_fontset_from_font_name.
21105 Use fontset_name for return value.
21106
21107 * w32term.h: Declare x_get_font_repertory.
21108
21109 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21110 place of find_charset_in_text. Use encode_coding_object in place
21111 of encode_coding.
21112 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21113 decode_coding.
21114
21115 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21116 of x_new_fontset.
21117 (w32_load_system_font): Initialize charset as unicode.
21118 font_info.encoding becomes encoding_type.
21119 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21120 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21121 (syms_of_w32fns): Set get_font_repertory_func.
21122
21123 * w32console.c: Include character.h. Use terminal_encode_buffer
21124 from term.c.
21125 (write_glyphs): Use new version of encode_terminal_code. Use
21126 encode_coding_object in place of encode_coding.
21127
21128 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21129 encoding becomes encoding_type.
21130
21131 * term.c (terminal_encode_buffer): Make externally visible.
21132
21133 * makefile.w32-in: Add character.h dependancies.
21134 (character.o, chartab.o): New targets.
21135
211362008-02-01 Kenichi Handa <handa@m17n.org>
21137
21138 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21139 CODING_ID_EOL_TYPE.
21140
211412008-02-01 Andreas Schwab <schwab@suse.de>
21142
21143 * coding.c (produce_chars): Revert last change.
21144
211452008-02-01 Kenichi Handa <handa@m17n.org>
21146
21147 * charset.h (charset_unicode): Extern it.
21148
21149 * charset.c (string_xstring_p): Check by (C >= 0x100).
21150 (find_charsets_in_text): Change format of the arc CHARSETS. New
21151 arg MULTIBYTE.
21152 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21153 change of find_charsets_in_text.
21154 (Fsplit_char): Fix doc. Never return unknown.
21155
21156 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21157
21158 * coding.c (Fdefine_coding_system_alias): Update
21159 Vcoding_system_list.
21160
21161 * fontset.c (load_font_get_repertory): Pay attention to the case
21162 that ENCODING of a font is specified by a char-table.
21163
21164 * xterm.c (x_get_font_repertory): Handle the case that the
21165 encoding of font is other than Unicode.
21166
211672008-02-01 Kenichi Handa <handa@m17n.org>
21168
21169 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21170 if a character is encodable by the terminal coding system. If
21171 not, produces proper number of `?'s. Update
21172 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21173 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21174
211752008-02-01 Kenichi Handa <handa@m17n.org>
21176
21177 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21178 variables.
21179 (encode_terminal_code): Change argument. Encode multiple
21180 characters at once. Store the result of encoding in
21181 terminal_encode_buffer.
21182 (write_glyphs, insert_glyphs): Adjust for the change of
21183 encode_terminal_code.
21184 (term_init): Initialize terminal_encode_buffer and
21185 terminal_encode_buf_size.
21186
21187 * coding.c (consume_chars): If coding->src_object is nil, don't
21188 check annotation.
21189
211902008-02-01 Kenichi Handa <handa@m17n.org>
21191
21192 * character.c (char_string): Use ASCII_CHAR_P instead of
21193 SINGLE_BYTE_CHAR_P.
21194
211952008-02-01 Kenichi Handa <handa@m17n.org>
21196
21197 * xdisp.c (handle_auto_composed_prop): Check if the last
21198 characters of auto-composed region is newly composed with the
21199 following characters.
21200 (handle_composition_prop): Fix checking of point being inside
21201 composition.
21202
212032008-02-01 Kenichi Handa <handa@m17n.org>
21204
21205 * fns.c (concat): Don't change multibyteness of the result by
21206 concatenating an 8-bit character.
21207
21208 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21209 multibyteness of the result when newelt is an 8-bit character.
21210
212112008-02-01 Dave Love <fx@gnu.org>
21212
21213 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21214 EMACS_INT.
21215
21216 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21217
21218 * xfaces.c (face_numeric_value): Declare dim size_t.
21219 (Finternal_lisp_face_equal_p): Remove unused f.
21220
21221 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21222 (MATRIX_ROW): Remove unused vars.
21223 (draw_glyphs, x_insert_glyphs, fast_find_position)
21224 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21225 byte/char counts.
21226
21227 * regex.c (regex_compile): Remove unused var.
21228
21229 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21230
21231 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21232 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21233
21234 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21235
21236 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21237
21238 * fileio.c (Fwrite_region): Remove unused var.
21239
21240 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21241 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21242
21243 * composite.c (Fremove_list_of_text_properties): Declare.
21244
21245 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21246 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21247 (coding_inherit_eol_type): Remove unused attrs.
21248 (detect_coding): Cast arg of detect_eol.
21249
21250 * charset.c (syms_of_charset): Remove unused var p.
21251 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21252 byte/char counts.
21253
21254 * casetab.c (set_case_table): Remove unused var.
21255
21256 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21257 unused vars.
21258
212592008-02-01 Dave Love <fx@gnu.org>
21260
21261 * xterm.c (x_bitmap_mask): Declare.
21262
212632008-02-01 Dave Love <fx@gnu.org>
21264
21265 * xterm.c (x_term_init): Fix type error.
21266
21267 * lisp.h: Add Funibyte_char_to_multibyte.
21268
21269 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21270 (Fset_coding_system_priority): Doc fix.
21271
21272 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21273
21274 * indent.c (check_composition): Make start and end EMACS_INT.
21275
21276 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21277
21278 * xdisp.c (handle_composition_prop, check_point_in_composition):
21279 Make buffer positions EMACS_INT.
21280
21281 * composite.c (find_composition, run_composition_function)
21282 (update_compositions, Ffind_composition_internal): Make buffer
21283 positions EMACS_INT.
21284
21285 * composite.h (find_composition, update_compositions): Make
21286 position args EMACS_INT.
21287
21288 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21289
21290 * intervals.c (get_property_and_range):
21291 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21292
21293 * unexalpha.c: Don't include varargs.h.
21294
212952008-02-01 Dave Love <fx@gnu.org>
21296
21297 * coding.h (ENCODE_UTF_8): New.
21298
21299 * Makefile.in (gtkutil.o): Depend on coding.h.
21300
21301 * coding.c (Fset_coding_system_priority): Doc fix.
21302
213032008-02-01 Kenichi Handa <handa@m17n.org>
21304
21305 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21306 the case of auto saving.
21307
213082008-02-01 Andreas Schwab <schwab@suse.de>
21309
21310 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21311 `range' from GC.
21312
213132008-02-01 Kenichi Handa <handa@m17n.org>
21314
21315 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21316
213172008-02-01 Kenichi Handa <handa@m17n.org>
21318
21319 * fileio.c (choose_write_coding_system): Return a decided coding system.
21320 (Fwrite_region): Set Vlast_coding_system_used to the return value
21321 of choose_write_coding_system.
21322
213232008-02-01 Kenichi Handa <handa@m17n.org>
21324
21325 * charset.c (Fset_charset_priority): Pay attention to duplicated
21326 arguments.
21327
21328 * coding.c (QCcategory): New variable.
21329 (syms_of_coding): Defsym it. Set all elements of
21330 Vcoding_category_table and their symbol values.
21331 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21332 coding-category-XXX, and coding-category-list.
21333 (Fdefine_coding_system_internal): Add category in the plist.
21334
213352008-02-01 Kenichi Handa <handa@m17n.org>
21336
21337 * callproc.c (Fcall_process): Handle carryover correctly.
21338
21339 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21340 (raw_text_coding_system): Check NILP (coding_system).
21341 (coding_inherit_eol_type): Check NILP (coding_system) and
21342 NILP (parent).
21343 (consume_chars): Fix for the case of raw-text.
21344
21345 * process.c (read_process_output): Handle carryover correctly.
21346
213472008-02-01 Dave Love <fx@gnu.org>
21348
21349 * regex.c (re_search_2): Fix last change.
21350
213512008-02-01 Kenichi Handa <handa@m17n.org>
21352
21353 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21354 target_multibyte. Even in a unibyte case, return a converted
21355 multibyte char.
21356 (GET_CHAR_AFTER): New macro.
21357 (PATFETCH): Translate via multibyte char.
21358 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21359 (SETUP_MULTIBYTE_RANGE): New macro.
21360 (regex_compile): Setup compiled code so that its multibyteness
21361 matches that of a target. Fix the handling of "[X-YZ]" using
21362 SETUP_MULTIBYTE_RANGE.
21363 (analyse_first) <charset>: For filling fastmap for all multibyte
21364 characters, don't check by BASE_LEADING_CODE_P.
21365 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21366 the same as RE_MULTIBYTE_P (bufp) now.
21367 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21368 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21369 (TRANSLATE_VIA_MULTIBYTE): New macro.
21370 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21371 It is the same as RE_MULTIBYTE_P (bufp) now.
21372 <exactn>: Translate via multibyte.
21373 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21374 translate it.
21375 <charset, charset_not>: Fetch a character by
21376 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21377 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21378 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21379 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21380 by GET_CHAR_AFTER.
21381 (bcmp_translate): Likewise.
21382
21383 * search.c (compile_pattern): Check the member target_multibyte,
21384 not the member multibyte of buf.
21385
21386 * lread.c (read1): While reading a string, set force_singlebyte
21387 and force_multibyte correctly.
21388
21389 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21390 up of unibyte_to_multibyte_table.
21391
213922008-02-01 Kenichi Handa <handa@m17n.org>
21393
21394 * coding.c (setup_coding_system): If coding has
21395 post-read-conversion or pre-write-conversion, set
21396 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21397 respectively.
21398 (decode_coding_gap): Run post-read-conversion if any.
21399
21400 * fileio.c (Finsert_file_contents): Even if we read into a
21401 unibyte buffer, check if we must decode the result or not.
21402
214032008-02-01 Kenichi Handa <handa@m17n.org>
21404
21405 * coding.c (make_conversion_work_buffer): Change the work buffer
21406 name to the same one as that of Emacs 21.
21407
214082008-02-01 Kenichi Handa <handa@m17n.org>
21409
21410 * coding.h (make_conversion_work_buffer): Adjust prototype.
21411 (code_conversion_restore): Don't extern it.
21412
21413 * coding.c (detected_mask): Delete unused variable.
21414 (decode_coding_iso_2022): Pay attention to the byte sequence of
21415 CTEXT extended segment, and retain those bytes as is.
21416 (decode_coding_ccl): Delete unused variable `valids'.
21417 (setup_coding_system): Delete unused variable `category'.
21418 (consume_chars): Delete unused variable `category'. Make it work
21419 for non-multibyte case.
21420 (make_conversion_work_buffer): Change argument.
21421 (saved_coding): Delete unused variable.
21422 (code_conversion_restore): Don't check saved_coding->destination.
21423 (code_conversion_save): New function.
21424 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21425 instead of record_unwind_protect.
21426 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21427 (detect_coding_system): Delete unused variable `mask'.
21428 (Fdefine_coding_system_internal): Delete unused variable id.
21429
21430 * fileio.c (kill_workbuf_unwind): New function.
21431 (Finsert_file_contents): On replacing, call
21432 make_conversion_work_buffer with correct args, and call
21433 record_unwind_protect with the first arg kill_workbuf_unwind.
21434
21435 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21436
214372008-02-01 Kenichi Handa <handa@m17n.org>
21438
21439 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21440 (fontset_add): Fix for the case that TO is less than TO1.
21441 (Ffontset_info): Don't use fallback fontset on checking the
21442 default fontset.
21443 (dump_fontset): New function for debugging.
21444
21445 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21446 coding_type is Qcharset.
21447
214482008-02-01 Kenichi Handa <handa@m17n.org>
21449
21450 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21451 (map_char_table): Don't inherit the value from the parent on
21452 initializing VAL. Adjust for the above change.
21453
214542008-02-01 Kenichi Handa <handa@m17n.org>
21455
21456 * coding.c (Qsignature, Qendian): Delete these variables.
21457 (syms_of_coding): Don't initialize them.
21458 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21459 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21460 detect_info->found.
21461 (decode_coding_utf_16): Don't detect BOM here.
21462 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21463 is NOT utf_16_without_bom.
21464 (setup_coding_system): For a coding system of type utf-16, check
21465 if the attribute :endian is Qbig or not (not nil or not), and set
21466 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21467 (detect_coding): If coding type is utf-16 and BOM detection is
21468 required, detect it.
21469 (Fdefine_coding_system_internal): For a coding system of type
21470 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21471
214722008-02-01 Kenichi Handa <handa@m17n.org>
21473
21474 * coding.c (coding_set_source): Fix for the case that the current
21475 buffer is different from coding->src_object.
21476 (decode_coding_object): Don't use the conversion work buffer if
21477 DST_OBJECT is a buffer.
21478
214792008-02-01 Dave Love <fx@gnu.org>
21480
21481 * lread.c (read_emacs_mule_char) [len==2]: Index
21482 emacs_mule_charset correctly.
21483
214842008-02-01 Dave Love <fx@gnu.org>
21485
21486 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21487 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21488 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21489 treated specially.)
21490 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21491 (detected_mask): Remove Big5 bits.
21492
214932008-02-01 Kenichi Handa <handa@m17n.org>
21494
21495 The following changes are to make the font rescaling facility
21496 compatible with Emacs 21.
21497
21498 * xfaces.c (Vface_font_rescale_alist): Rename from
21499 Vface_resizing_fonts.
21500 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21501 (font_rescale_ratio): Rename from font_resizing_ratio.
21502 (split_font_name): Set font->rescale_ratio.
21503 (better_font_p): Pay attention to font->rescale_ratio.
21504 (build_scalable_font_name): Likewise. Change RESX, and RESY
21505 fields.
21506 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21507
215082008-02-01 Kenichi Handa <handa@m17n.org>
21509
21510 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21511 (Qutf_16_le): Remove these variables.
21512 (syms_of_coding): Don't DEFSYM them.
21513 (decode_coding_utf_16): Fix handling of BOM.
21514 (encode_coding_utf_16): Fix handling of BOM.
21515
215162008-02-01 Kenichi Handa <handa@m17n.org>
21517
21518 * fileio.c (Finsert_file_contents): On replacing, before decoding
21519 the file into the work buffer, set point of the work buffer to the end.
21520
215212008-02-01 Dave Love <fx@gnu.org>
21522
21523 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21524
215252008-02-01 Dave Love <fx@gnu.org>
21526
21527 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21528 and fix C types.
21529
215302008-02-01 Kenichi Handa <handa@m17n.org>
21531
21532 * xdisp.c (SKIP_GLYPHS): New macro.
21533 (set_cursor_from_row): Pay attention to string display properties.
21534
21535 * category.c (copy_category_entry): Fix for the case that RANGE
21536 is an integer.
21537
21538 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21539
21540 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21541
215422008-02-01 Kenichi Handa <handa@m17n.org>
21543
21544 * charset.c (Fcharset_id_internal): New function.
21545 (syms_of_charset): Defsubr it.
21546
21547 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21548 with the last arg charset_list acquired from coding.
21549 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21550 the attribute coding_attr_ccl_valids.
21551
21552 * coding.h (enum define_coding_ccl_arg_index): Set the first
21553 member coding_arg_ccl_decoder to coding_arg_max.
21554
21555 * ccl.h (ccl_driver): Adjust prototype.
21556
21557 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21558 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 21559 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
21560 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21561 last arg Qnil.
21562
215632008-02-01 Kenichi Handa <handa@m17n.org>
21564
21565 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21566 call encode_char.
21567
21568 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21569
215702008-02-01 Dave Love <fx@gnu.org>
21571
21572 * composite.c (syms_of_composite): Make composition_hash_table weak.
21573
215742008-02-01 Kenichi Handa <handa@m17n.org>
21575
21576 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21577 (font_name_registry): Don't extern them.
21578 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21579
21580 * fontset.h (Qfontset): Don't extern it.
21581 (new_fontset_from_font_name): Extern it.
21582
21583 * fontset.c: Give 8 extra slots to fontset objects.
21584 (Qfontset_info): New variable.
21585 (syms_of_fontset): Defsym it.
21586 (FONTSET_FALLBACK): New macro.
21587 (fontset_face): Try also the default fontset.
21588 (make_fontset): Realize a fallback fontset from the default fontset.
21589 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21590 using split_font_name_into_vector and build_font_name_from_vector.
21591 (Fset_fontset_font): Access the elements of font_spec by enum
21592 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21593 name by using split_font_name_into_vector.
21594 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21595 generate a proper font name from the fontset name. Update
21596 Vfontset_alias_alist.
21597 (n_auto_fontsets): New variable.
21598 (new_fontset_from_font_name): New function.
21599 (Ffont_info): Store the information about fonts generated from the
21600 default fontset in the first extra slot of the returned char-table.
21601
21602 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21603 (font_name_registry): Delete function.
21604 (split_font_name_into_vector): New function.
21605 (build_font_name_from_vector): New function.
21606 (font_list): The argument REGISTRY is now a list of registry names.
21607 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21608 specifies an explicit font name, return the name as is. Make a
21609 list of registy names.
21610
21611 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21612 of x_new_fontset.
21613 (Fx_create_frame): Don't call x_new_fontset here. Just use
21614 x_list_fonts to check the existence of fonts.
21615
21616 * xterm.h (x_new_fontset): Adjust prototype.
21617
21618 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21619 string. Use new_fontset_from_font_name to create a fontset from a
21620 font name.
21621
216222008-02-01 Kenichi Handa <handa@m17n.org>
21623
21624 * syntax.c (Vfind_word_boundary_function_table): New name for
21625 Vnext_word_boundary_function_table.
21626 (find-word-boundary-function-table): New name for
21627 next-word-boundary-function-table.
21628
216292008-02-01 Dave Love <fx@gnu.org>
21630
21631 * Makefile.in: Fix some dependencies.
21632
21633 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21634 set it to nil before returning.
21635
21636 * composite.c (update_compositions): Fix type error.
21637
21638 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21639
216402008-02-01 Kenichi Handa <handa@m17n.org>
21641
21642 * xterm.c (x_new_font): Optimize for the case that the font is
21643 already set for the frame.
21644
216452008-02-01 Kenichi Handa <handa@m17n.org>
21646
21647 * chartab.c (char_table_ascii): Check if the char table contents
21648 is sub-char-table or not.
21649 (char_table_set, char_table_set_range): Fix argument to
21650 char_table_ascii.
21651
21652 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21653 (detect_coding_utf_8, detect_coding_utf_16)
21654 (detect_coding_emacs_mule, detect_coding_iso_2022)
21655 (detect_coding_sjis, detect_coding_big5)
21656 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21657 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21658 sequence is valid in this coding system. Change callers.
21659 (MAX_ANNOTATION_LENGTH): New macro.
21660 (ADD_ANNOTATION_DATA): New macro.
21661 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21662 ADD_ANNOTATION_DATA. Change the format of annotation data.
21663 (ADD_CHARSET_DATA): New macro.
21664 (emacs_mule_char): New argument ID. Change callers.
21665 (decode_coding_emacs_mule, decode_coding_iso_2022)
21666 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21667 Produce charset annotation data in coding->charbuf.
21668 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21669 to charset annotation data in coding->charbuf.
21670 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21671 coding->common_flags if the coding system is iso-2022 based and
21672 uses designation.
21673 (produce_composition): Adjust for the new annotation data format.
21674 (produce_charset): New function.
21675 (produce_annotation): Handle charset annotation.
21676 (handle_composition_annotation, handle_charset_annotation): New
21677 functions.
21678 (consume_chars): Handle charset annotation. Utilize the above two
21679 functions.
21680 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21681 buffer, get the deleted text as a string and set
21682 coding->src_object to that string.
21683 (detect_coding, detect_coding_system): Use the new struct
21684 coding_detection_info.
21685
21686 * coding.h (struct coding_detection_info): New structure.
21687 (struct coding_system): Adjust prototype of the member `detector'.
21688 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21689
216902008-02-01 Kenichi Handa <handa@m17n.org>
21691
21692 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21693
216942008-02-01 Dave Love <fx@gnu.org>
21695
21696 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21697 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21698 to new local and nullify apropos_accumulate before returning.
21699 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21700
217012008-02-01 Kenichi Handa <handa@m17n.org>
21702
21703 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21704 correctly.
e3eea1fc 21705
aac0c6e3
MR
217062008-02-01 Dave Love <fx@gnu.org>
21707
21708 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21709
217102008-02-01 Kenichi Handa <handa@m17n.org>
21711
21712 The following changes are to make character composition happen
21713 automatically on displaying.
21714
21715 * Makefile.in (lisp, shortlisp): Add composite.elc.
21716
21717 * composite.h (Qauto_composed, Vauto_composition_function)
21718 (Qauto_composition_function): Extern them.
21719
21720 * composite.c (Vcomposition_function_table)
21721 (Qcomposition_function_table): Delete variables.
21722 (Qauto_composed, Vauto_composition_function)
21723 (Qauto_composition_function): New variables.
21724 (run_composition_function): Don't call
21725 compose-chars-after-function.
21726 (update_compositions): Clear `auto-composed' text property.
21727 (compose_chars_in_text): Delete this function.
21728 (syms_of_composite): Staticpro Qauto_composed and
21729 Qauto_composition_function. Declare Vauto_composition_function as
21730 a Lisp variable.
21731
21732 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21733
21734 * xdisp.c (it_props): Add an entry for Qauto_composed.
21735 (handle_auto_composed_prop): New function.
21736
21737 * xselect.c (selection_data_to_lisp_data): Don't call
21738 compose_chars_in_text.
21739
217402008-02-01 Dave Love <fx@gnu.org>
21741
21742 * keyboard.c (read_char): Modify checking around use of
21743 Vkeyboard_translate_table.
21744
21745 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21746 and fix C types.
21747
217482008-02-01 Kenichi Handa <handa@m17n.org>
21749
21750 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21751 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21752 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21753 the case that the last byte is '\r' correctly.
21754 (decode_coding): Flush out the unprocessed data correctly.
21755 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21756
217572008-02-01 Dave Love <fx@gnu.org>
21758
21759 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21760 Add XK_ISO... case.
21761 (xaw_scroll_callback): Revert last change.
21762
217632008-02-01 Kenichi Handa <handa@m17n.org>
21764
21765 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21766
217672008-02-01 Kenichi Handa <handa@m17n.org>
21768
21769 * xfaces.c (Vface_resizing_fonts): New variable.
21770 (struct font_name): New member `resizing_ratio'.
21771 (font_resizing_ratio): New function.
21772 (split_font_name): Set font->resizing_ratio.
21773 (better_font_p): Pay attention to font->resizing_ratio.
21774 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21775 RESX, and RESY fields.
21776 (try_alternative_families): Try scalable fonts if
21777 Vscalable_fonts_allowed is not Qt.
21778 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21779
217802008-02-01 Dave Love <fx@gnu.org>
21781
21782 * xterm.c (xaw_scroll_callback): Cast correctly.
21783
217842008-02-01 Dave Love <fx@gnu.org>
21785
21786 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21787 (lispy_kana_keys): Comment out.
21788 (make_lispy_event) [XK_kana_A]: Comment out.
21789
21790 * xterm.c (xaw_scroll_callback): Cast call_data.
21791 (XTread_socket): Deal with ASCII keysyms.
21792 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21793
217942008-02-01 Dave Love <fx@gnu.org>
21795
21796 * xterm.c (Vx_keysym_table): New.
21797 (syms_of_xterm): Initialize it.
21798 (XTread_socket): Use it.
21799 From head: Eliminate incorrect optimization that tried to avoid
21800 decoding the output of X*LookupString.
21801 (x_get_font_repertory): Delete charset declaration.
21802
218032008-02-01 Kenichi Handa <handa@m17n.org>
21804
21805 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21806 return 0.
21807 (Fdefine_coding_system_internal): Setup
21808 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21809
218102008-02-01 Dave Love <fx@gnu.org>
21811
21812 * coding.c (Fcheck_coding_system): Doc fix.
21813
21814 * editfns.c (Finsert_byte): Return a proper value.
21815
218162008-02-01 Kenichi Handa <handa@m17n.org>
21817
21818 * coding.c (decode_coding): Fix args to translate_chars. Pay
21819 attention to Vstandard_translation_table_for_decode.
21820 (encode_coding): Fix args to translate_chars. Pay attention to
21821 Vstandard_translation_table_for_encode.
21822
21823 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21824 SINGLE_BYTE_CHAR_P.
21825
21826 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21827 not by SINGLE_BYTE_CHAR_P.
21828
21829 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21830 SINGLE_BYTE_CHAR_P.
21831
21832 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21833 SINGLE_BYTE_CHAR_P.
21834
21835 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21836 by SINGLE_BYTE_CHAR_P.
21837
21838 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21839 SINGLE_BYTE_CHAR_P.
21840
218412008-02-01 Dave Love <fx@gnu.org>
21842
21843 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21844
218452008-02-01 Dave Love <fx@gnu.org>
21846
21847 * fns.c (Flanginfo): Fix typo.
21848
21849 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21850
218512008-02-01 Kenichi Handa <handa@m17n.org>
21852
21853 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21854 (detect_coding_emacs_mule, detect_coding_iso_2022)
21855 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21856 incomplete byte sequence. Don't update *mask when correctly detected.
21857 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21858 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21859 (detect_coding, detect_coding_system): Adjust for the changes above.
21860
218612008-02-01 Kenichi Handa <handa@m17n.org>
21862
21863 * character.c (char_string): Rename from
21864 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21865 (string_char): Rename from string_char.
21866
21867 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21868 if C is greater than MAX_3_BYTE_CHAR.
21869 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21870 string_char instead of string_char_with_unification.
21871
218722008-02-01 Dave Love <fx@gnu.org>
21873
21874 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21875
218762008-02-01 Kenichi Handa <handa@m17n.org>
21877
21878 * keymap.c (push_key_description): Pay attention to force_multibyte.
21879
21880 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21881
218822008-02-01 Dave Love <fx@gnu.org>
21883
21884 * charset.c (define_charset_internal): Rename `supprementary'.
21885
21886 * Makefile.in (lisp, shortlisp): Remove latin-N.
21887
218882008-02-01 Dave Love <fx@gnu.org>
21889
21890 * xfns.c (x_window, x_window): Use use_xim.
21891
21892 * xterm.c (use_xim): Initialize.
21893 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21894 (x_term_init): Maybe set use_xim.
21895
21896 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21897
218982008-02-01 Kenichi Handa <handa@m17n.org>
21899
21900 * search.c (search_buffer): Fix case-fold-search of multibyte
21901 characters.
21902 (boyer_moore): Rename the last argument to char_high_bits.
21903
219042008-02-01 Kenichi Handa <handa@m17n.org>
21905
21906 * xdisp.c (display_string): Fix for the case of zero width glyph.
21907
21908 * xfns.c (x_set_font): Change the error message of the case that
21909 x_new_fontset returns Qt.
21910
21911 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21912 (Finternal_set_lisp_face_attribute): Use signal_error for the
21913 error of invalid fontset.
21914
21915 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21916 fontset, return Qt.
21917
219182008-02-01 Dave Love <fx@gnu.org>
21919
21920 * unexelf.c (unexec): Make .got handling not SGI-specific.
21921
21922 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21923
21924 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21925
21926 * keyboard.c (read_key_sequence): Fix type error.
21927
21928 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21929 type error.
21930
21931 * fontset.c (fontset_add): Return Lisp_Object.
21932
219332008-02-01 Dave Love <fx@gnu.org>
21934
21935 * charset.h (charset_ordered_list_tick): Declare extern.
21936
219372008-02-01 Kenichi Handa <handa@m17n.org>
21938
21939 The following changes (and some of 2008-02-01 changes of mine) are
21940 for handling syntax, category, and case conversion for unibyte
21941 characters by converting them to multibyte on the fly. With these
21942 changes, we don't have to setup syntax and case tables for unibyte
21943 characters in each language environment.
21944
21945 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21946 multibyte if necessary.
21947
21948 * bytecode.c (Fbyte_code): Likewise.
21949
21950 * character.h (LEADING_CODE_LATIN_1_MIN)
21951 (LEADING_CODE_LATIN_1_MAX): New macros.
21952 (unibyte_to_multibyte_table): Extern it.
21953 (unibyte_char_to_multibyte): New macro.
21954 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21955 (CHAR_LEADING_CODE): New macro.
21956 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21957
21958 * character.c (unibyte_to_multibyte_table): New variable.
21959 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21960 (multibyte_char_to_unibyte): If C is an eight-bit character,
21961 convert it to the corresponding byte value.
21962
21963 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21964 not 1, signals an error. Update the elements of
21965 unibyte_to_multibyte_table.
21966 (init_charset_once): Initialize unibyte_to_multibyte_table.
21967 (syms_of_charset): Define the charset `iso-8859-1'.
21968
21969 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21970 as is without converting it to unibyte. In a unibyte buffer,
21971 convert C to multibyte before checking the syntax.
21972
21973 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21974
21975 * minibuf.c (Fminibuffer_complete_word): Use the macro
21976 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21977
21978 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21979
21980 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21981 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21982 that is zero, convert an eight-bit char to multibyte.
21983 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21984 non-emacs case.
21985 (PATFETCH): Convert an eight-bit char to multibyte.
21986 (HANDLE_UNIBYTE_RANGE): New macro.
21987 (regex_compile): Setup the compiled pattern for multibyte chars
21988 even if the given regex string is unibyte. Use PATFETCH_RAW
21989 instead of PATFETCH in many places. To handle `charset'
21990 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21991 only for ASCII chars.
21992 (analyse_first) <exactn>: Simplify because the compiled pattern
21993 is multibyte.
21994 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21995 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21996 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21997 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21998 multibyte always 1.
21999 (re_search_2): In emacs, set the locale variable multibyte to 1,
22000 otherwise to 0. New local variable target_multibyte. Check it
22001 to decide the multibyteness of STR1 and STR2. If
22002 target_multibyte is zero, convert unibyte chars to multibyte
22003 before translating and checking fastmap.
22004 (TARGET_CHAR_AND_LENGTH): New macro.
22005 (re_match_2_internal): In emacs, set the locale variable multibyte
22006 to 1, otherwise to 0. New local variable target_multibyte. Check
22007 it to decide the multibyteness of STR1 and STR2. Use
22008 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22009 <charset, charset_not>: If multibyte is nonzero, check fastmap
22010 only for ASCII chars. Call bcmp_translate with
22011 target_multibyte, not with multibyte.
22012 <begline>: Declare the local variable C as `unsigned'.
22013 (bcmp_translate): Change the last arg name to target_multibyte.
22014
22015 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22016 the regexp pattern and the matching target. Set cp->buf.multibyte
22017 to the multibyteness of the regexp pattern. Set
22018 cp->but.target_multibyte to the multibyteness of the matching target.
22019 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22020 FETCH_STRING_CHAR_ADVANCE.
22021 (Freplace_match): Convert unibyte chars to multibyte.
22022
22023 * syntax.c (char_quoted, back_comment, scan_words)
22024 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22025 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22026 unibyte chars to multibyte.
22027 (skip_chars): Delete the arg syntaxp, and move the code for
22028 handling syntaxes to skip_syntaxes. Change callers.
22029 Fix the case that the multibyteness of STRING and the current
22030 buffer doesn't match.
22031 (skip_syntaxes): New function.
22032 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22033 SINGLE_BYTE_CHAR_P.
22034
220352008-02-01 Kenichi Handa <handa@m17n.org>
22036
22037 * xfaces.c (QCfontset): New variable.
22038 (LFACE_FONTSET): New macro.
22039 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22040 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22041 (Finternal_set_lisp_face_attribute)
22042 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22043 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22044 check also LFACE_FONTSET_INDEX.
22045 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22046 attrs[LFACE_FONT_INDEX].
22047 (syms_of_xfaces): Intern and staticpro QCfontset.
22048
22049 * dispextern.h (enum lface_attribute_index): New member
22050 LFACE_FONTSET_INDEX.
22051
22052 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22053
220542008-02-01 Kenichi Handa <handa@m17n.org>
22055
22056 * coding.c (coding_set_destination): Fix coding->destination for
22057 the case converting a region.
22058 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22059 (encode_coding_object): Fix coding->dst_pos and
22060 coding->dst_pos_byte for the case converting a region.
22061
22062 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22063
22064 * character.h (BYTE8_STRING): New macro.
22065
22066 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22067
220682008-02-01 Kenichi Handa <handa@m17n.org>
22069
22070 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22071 characters by octal form.
22072
22073 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22074
22075 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22076 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22077 _fetch_multibyte_char_len.
22078 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22079
22080 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22081
22082 * casefiddle.c (casify_object): Simplify. Handle the case that
22083 the case conversion change the byte length.
22084 (casify_region): Likewise.
22085
22086 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22087
22088 * character.c (_fetch_multibyte_char_len): Delete this variable.
22089 (syms_of_character): Setup Vprintable_chars.
22090
22091 * editfns.c (Fchar_equal): Fix for the unibyte case.
22092 (Finsert_byte): New function.
22093 (syms_of_editfns): Defsubr it.
22094
22095 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22096 of direct code 0x3ffff.
22097
22098 * search.c (Freplace_match): Fix for the unibyte case.
22099
221002008-02-01 Kenichi Handa <handa@m17n.org>
22101
22102 * lread.c (safe_to_load_p): Fix the logic.
22103
22104 * syntax.c (scan_words): Don't treat characters belonging to
22105 different scripts as constituting a word.
22106
22107 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22108
22109 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22110
22111 * emacs.c (main): In the case of --unibyte, instead of aborting on
22112 finding non-empty buffer, make it unibyte.
22113
221142008-02-01 Kenichi Handa <handa@m17n.org>
22115
22116 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22117 to create a fontset.
22118
221192008-02-01 Dave Love <fx@gnu.org>
22120
22121 * character.c (Funibyte_char_to_multibyte): Doc fix.
22122
22123 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22124
221252008-02-01 Kenichi Handa <handa@m17n.org>
22126
22127 * fontset.c (fontset_add): Make the type `int'.
22128 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22129
22130 * character.c (unibyte_char_to_multibyte)
22131 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22132 charset_unibyte, not charset_primary.
22133
22134 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22135
22136 * charset.c (charset_unibyte): Rename from charset_primary.
22137 (Funibyte_charset): Rename from Fprimary_charset.
22138 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22139 (syms_of_charset): Adjust for the above changes.
22140
22141 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22142 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22143 it->multibyte_p is zero.
22144
22145 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22146 Delete extern.
22147
221482008-02-01 Kenichi Handa <handa@m17n.org>
22149
22150 * coding.c (Fdefine_coding_system_internal): Fix category setting
22151 for a coding system of type iso-2022.
22152
221532008-02-01 Kenichi Handa <handa@m17n.org>
22154
22155 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22156
221572008-02-01 Kenichi Handa <handa@m17n.org>
22158
22159 * syntax.c (Vnext_word_boundary_function_table): New variable.
22160 (next-word-boundary-function-table): Declare it as a Lisp variable
22161 in syms_of_syntax.
22162 (scan_words): Call functions in Vnext_word_boundary_function_table
22163 if any.
22164
22165 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22166
22167 * fontset.c (fs_load_font): If fontp->charset is not negative,
22168 return fontp without setting its members.
22169
221702008-02-01 Dave Love <fx@gnu.org>
22171
22172 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22173
22174 * m/sparc.h (HAVE_ALLOCA): Delete.
22175
22176 * s/irix6-5.h: Don't include strings.h.
22177 (bcopy, bzero, bcmp): Don't undef.
22178
22179 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22180
22181 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22182 (TIOCSIGSEND): Don't test IRIX6.
22183 (bcopy, bzero, bcmp): Define conditionally.
22184
221852008-02-01 Kenichi Handa <handa@m17n.org>
22186
22187 * buffer.c (Qas, Qmake, Qto): New variables.
22188 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22189 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22190
22191 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22192 we are inserting a process output into a multibyte buffer.
22193
22194 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22195 multibyte_char_to_unibyte.
22196
22197 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22198 by the primary charset, make it eight-bit char.
22199 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22200
22201 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22202 (charset_8_bit__control, charset_8_bit_graphic)
22203 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22204 (define_charset_internal): New function.
22205 (syms_of_charset): Call define_charset_internal for pre-defined
22206 charsets.
22207
22208 * charset.h (charset_8_bit): Extern it.
22209
22210 * coding.c (make_conversion_work_buffer): Adjust for the change
22211 of Fset_buffer_multibyte.
22212 (encode_coding_raw_text): Increment p0 in the loop.
22213
22214 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22215
22216 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22217 for the change of Fset_buffer_multibyte.
22218
22219 * fns.c (Fstring_to_multibyte): New function.
22220 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22221
222222008-02-01 Dave Love <fx@gnu.org>
22223
22224 * xfns.c (x_put_x_image): Declare args.
22225
22226 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22227 (try_font_list): Declare an arg.
22228
22229 * xdisp.c (message2_nolog, set_message): Declare an arg.
22230
22231 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22232
22233 * syntax.c (scan_sexps_forward): Declare an arg.
22234
22235 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22236 Declare an arg.
22237
22238 * lisp.h (Fnew_fontset): Declare.
22239
22240 * keymap.c (push_key_description): Call CHARACTERP correctly.
22241
22242 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22243 (face_for_char): Delete unused vars.
22244 (Fset_fontset_font): Doc fix. Delete unused vars.
22245
22246 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22247
22248 * composite.c (update_compositions): Declare arg.
22249
22250 * cm.c (calccost, cmgoto): Declare args.
22251
22252 * charset.c: Remove `emacs' conditional. Doc fixes.
22253 (map_char_table_for_charset): Declare.
22254
22255 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22256
22257 * ccl.c: Remove `emacs' conditional.
22258
222592008-02-01 Kenichi Handa <handa@m17n.org>
22260
22261 The following changes are to allow specifying multiple font
22262 patterns for a character range (specified by script or charset).
22263
22264 * Makefile.in (abbrev.o): Depend on syntax.h.
22265 (xfaces.o): Depend on charset.h.
22266
22267 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22268 SINGLE_BYTE_CHAR_P.
22269
22270 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22271
22272 * character.h (Vchar_script_table): Extern it.
22273
22274 * character.c (Vscript_alist): Delete.
22275 (Vchar_script_table, Qchar_script_table): New variable.
22276 (syms_of_character): Declare Vchar_script_table as a lisp variable
22277 and initialize it.
22278
22279 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22280 have property char-table-extra-slots, make no extra slot.
22281
22282 * dispextern.h (struct face): Delete member `charset'.
22283 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22284 SINGLE_BYTE_CHAR_P.
22285 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22286 Add prototypes.
22287 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22288 (generate_ascii_font_name): Rename from generate_ascii_font.
22289
22290 * fontset.h (get_font_repertory_func): New prototype.
22291 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22292 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22293
22294 * fontset.c (Qprepend, Qappend): New variables.
22295 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22296 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22297 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22298 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22299 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22300 (load_font_get_repertory): New functions.
22301 (fontset_set): Delete.
22302 (fontset_face): New arg FACE. Return face ID, not face.
22303 Complete re-write to handle new fontset structure. Change caller.
22304 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22305 (face_for_char): Don't call lookup_face.
22306 (make_fontset_for_ascii_face): New arg FACE.
22307 (fs_load_font): New arg CHARSET_ID. Don't check
22308 Vfont_encoding_alist here.
22309 (find_font_encoding): New function.
22310 (list_fontsets): Use STRINGP, not ! NILP.
22311 (accumulate_script_ranges): New function.
22312 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22313 re-written to handle new fontset structure.
22314 (Ffontset_font): Return a copy of element.
22315 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22316 docstring of font-encoding-alist.
22317
22318 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22319 (Fset_fotset_font): Fix arguments to 5.
22320
22321 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22322
22323 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22324 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22325 (highlight_trailing_whitespace): Adjust for the change of
22326 lookup_named_face.
22327
22328 * xfaces.c: Include charset.h.
22329 (load_face_font): Delete argument C. Change caller.
22330 (generate_ascii_font_name): Rename from generate_ascii_font.
22331 (font_name_registry): New function.
22332 (cache_face): Store ascii faces before non-ascii faces in buckets.
22333 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22334 Lookup only ascii faces.
22335 (lookup_non_ascii_face): New function.
22336 (lookup_named_face): Delete argument C. Change caller.
22337 (lookup_derived_face): Delete argument C. Change caller.
22338 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22339 a string, just call font_list with it.
22340 (choose_face_font): Delete arguments FACE and C. New arg
22341 FONT_SPEC. Change caller.
22342 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22343 Change caller.
22344 (realize_non_ascii_face): New function.
22345 (realize_x_face): Call load_face_font here.
22346 (realize_tty_face): Delete argument C. Change caller.
22347 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22348 get a face ID.
22349 (dump_realized_face): Don't print charset of FACE.
22350
22351 * xfns.c (x_set_font): Always call x_new_fontset and
22352 store_frame_parameter.
22353 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22354 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22355
22356 * xterm.h (x_get_font_repertory): Extern it.
22357
22358 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22359 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22360 it->multibyte_p is zero.
22361 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22362 (x_new_fontset): If FONTSETNAME doesn't match any existing
22363 fontsets, create a new one.
22364 (x_get_font_repertory): New function.
22365
223662008-02-01 Kenichi Handa <handa@m17n.org>
22367
22368 * coding.c (Ffind_coding_systems_region_internal): Detect an
22369 ASCII only string correctly.
22370
22371 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22372 version is 0.
22373
223742008-02-01 Kenichi Handa <handa@m17n.org>
22375
22376 * lread.c: Include "coding.h".
22377 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22378 (load_each_byte, unread_char): New variables.
22379 (readchar_backlog): Delete.
22380 (readchar): Return a character unless load_each_byte is nonzero.
22381 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22382 cons. If unread_char is not -1, simply return it.
22383 (unreadchar): Handle the case that readcharfun is
22384 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22385 (read_multibyte): Delete.
22386 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22387 (read_emacs_mule_char): New functions.
22388 (Fload): Even if the file doesn't have the extension ".elc", if
22389 safe_to_load_p returns a positive version number, assume that the
22390 file contains bytecompiled code. If the version is less than 22,
22391 load the file while decoding multibyte sequences by emacs-mule.
22392 (readevalloop): Don't use readchar_backlog.
22393 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22394 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22395 (read_escape): Delete the arg BYTEREP.
22396 (read1): Set load_each_byte to 1 temporarily while handling
22397 #@NUMBER. Don't call read_multibyte.
22398 (read_vector): Call Fread with a cons. If readcharfun is
22399 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22400 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22401 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22402 and Qload_force_doc_strings.
22403
224042008-02-01 Kenichi Handa <handa@m17n.org>
22405
22406 * xdisp.c (face_before_or_after_it_pos): Call
22407 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22408
224092008-02-01 Kenichi Handa <handa@m17n.org>
22410
22411 * character.h (TRAILING_CODE_P): New macro.
22412 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22413 (string_char_with_unification): Fix prototype.
22414 (Vscript_alist): Extern it.
22415
22416 * character.c (Vscript_alist): New variable.
22417 (string_char_with_unification, str_as_unibyte)
22418 (string_escape_byte8): Add `const' to local variables.
22419 (syms_of_character): Declare script-alist as a Lisp variable.
22420
22421 * charset.h (Vcharset_ordered_list): Extern it.
22422 (charset_ordered_list_tick): Extern it.
22423 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22424 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22425 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22426 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22427 (Funify_charset): Adjust for the change of Funify_charset.
22428
22429 * charset.c (charset_ordered_list_tick): New variable.
22430 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22431 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 22432 deunify instead of unify a charset.
aac0c6e3
MR
22433 (string_xstring_p): Add `const' to local variables.
22434 (find_charsets_in_text): Add `const' to arguments and local variables.
22435 (encode_char): Adjust for the change of Funify_charset. Fix
22436 detecting of invalid code.
22437 (Fset_charset_priority): Increment charset_ordered_list_tick.
22438 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22439 and TO_CODE.
22440
22441 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22442 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22443 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22444 (decode_coding_ccl, consume_chars)
22445 (Ffind_coding_systems_region_internal)
22446 (Fcheck_coding_systems_region): Add `const' to local variables.
22447
22448 * print.c (print_object): Use octal form for printing the
22449 contents of a bool vector.
22450
224512008-02-01 Dave Love <fx@gnu.org>
22452
22453 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22454 <version == 20>: Refuse to load.
22455
224562008-02-01 Dave Love <fx@gnu.org>
22457
22458 * fns.c: Move coding.h.
22459 (Qcodeset, Qdays, Qmonths): New.
22460 (concat): Use CHARACTERP instead of INTEGERP.
22461 (Flocale_codeset): Delete.
22462 (Flanginfo): New function.
22463 (syms_of_fns): Change accordingly.
22464
22465 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22466
224672008-02-01 Dave Love <fx@gnu.org>
22468
22469 * casetab.c (init_casetab_once, init_casetab_once): Fix
22470 CHAR_TABLE_SET call.
22471
22472 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22473
22474 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22475
22476 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22477 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22478 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22479
22480 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22481
22482 * coding.c (ENCODE_DESIGNATION, decode_eol)
22483 (make_conversion_work_buffer, code_conversion_restore)
22484 (Fdefine_coding_system_internal): Convert Lisp types.
22485 (code_conversion_restore): Use EQ, not ==.
22486 (Fencode_coding_string): Fix code_convert_string call.
22487
22488 * coding.h (code_convert_region): Fix prototype.
22489
22490 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22491
22492 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22493 (Ffontset_info): Convert Lisp types.
22494
22495 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22496
22497 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22498
22499 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22500
22501 * chartab.c: Include "...h", not <...h> in some cases.
22502
22503 * callproc.c (Fcall_process): Remove unused variables.
22504
225052008-02-01 Dave Love <fx@gnu.org>
22506
22507 * coding.c (Fset_coding_system_priority): Allow null arg list.
22508
225092008-02-01 Dave Love <fx@gnu.org>
22510
22511 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22512 (Fself_insert_and_exit): Use CHARACTERP.
22513
22514 * callproc.c (Fcall_process): Remove unused vars.
22515
22516 * xterm.c (XTread_socket): Add extra dead keysyms.
22517
22518 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22519
22520 * dispextern.h: Remove prototypes for redraw_frame,
22521 redraw_garbaged_frames.
22522
22523 * cmds.c (Fself_insert_command): Use CHARACTERP.
22524
22525 * chartab.c (make_sub_char_table): Remove unused var.
22526 (Fset_char_table_default, Fmap_char_table): Doc fix.
22527
22528 * keymap.c (access_keymap): Remove generic char code.
22529 (push_key_description): Use CHARACTERP.
22530
225312008-02-01 Dave Love <fx@gnu.org>
22532
22533 * charset.c: Doc fixes.
22534 (Funify_charset): Extra checking.
22535
225362008-02-01 Dave Love <fx@gnu.org>
22537
22538 * lread.c: Remove some unused variables.
22539 (safe_to_load_p): If safe, return the magic number version byte.
22540 (Fload): Maybe use load-with-code-conversion.
22541
225422008-02-01 Kenichi Handa <handa@m17n.org>
22543
22544 * category.c (Fmodify_category_entry): Don't modify the contents
22545 of category_set for characters out of the range. Avoid
22546 unnecessary modification.
22547
22548 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22549 Vchar_unify_table. The default value of the table is now nil.
22550
22551 * character.c (syms_of_character): Setup Vchar_width_table for
22552 eight-bit-control and raw-byte chars.
22553
22554 * charset.h (enum define_charset_arg_index): Delete
22555 charset_arg_parents and add charset_arg_subset and
22556 charset_arg_superset.
22557 (enum charset_attr_index): Delete charset_parents and add
22558 charset_subset and charset_superset.
22559 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22560 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22561 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22562 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22563 (CHARSET_SUPERSET): New macros.
22564 (charset_work): Extern it.
22565 (ENCODE_CHAR): Use charset_work.
22566 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22567 (map_charset_chars): Extern it.
22568
22569 * charset.c (load_charset_map): Set the default value of encoder
22570 and deunifier char-tables to nil.
22571 (map_charset_chars): Change argument. Change callers. Use
22572 map_char_table_for_charset instead of map_char_table.
22573 (Fmap_charset_chars): New optional args from_code and to_code.
22574 (Fdefine_charset_internal): Adjust for the change of
22575 `define-charset' (:parents -> :subset or :superset).
22576 (charset_work): New variable.
22577 (encode_char, syms_of_charset): Adjust for the change of
22578 Fdefine_charset_internal.
22579 (Ffind_charset_string): Setup the vector `charsets' correctly.
22580
22581 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22582 the previous change.
22583 (char_table_ref_and_range): Adjust for the above change.
22584 (map_sub_char_table_for_charset): New function.
22585 (map_char_table_for_charset): New function.
22586
22587 * keymap.c (describe_vector): Handle a char-table directly here.
22588 (describe_char_table): Delete.
22589
22590 * lisp.h (map_charset_chars): Delete.
22591
225922008-02-01 Dave Love <fx@gnu.org>
22593
22594 * fns.c (count_combining): Comment out (unused).
22595 (Flocale_codeset): New.
22596 (syms_of_fns): Defsubr it.
22597
22598 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22599 (size_t): Remove.
22600
226012008-02-01 Dave Love <fx@gnu.org>
22602
22603 * Makefile.in (chartab.o): Depend on charset.h.
22604
226052008-02-01 Kenichi Handa <handa@m17n.org>
22606
22607 * character.c (syms_of_character): Set the default value of
22608 Vprintable_chars to Qnil.
22609
226102008-02-01 Dave Love <fx@gnu.org>
22611
22612 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22613
226142008-02-01 Kenichi Handa <handa@m17n.org>
22615
22616 * charset.c (load_charset_map): Handle the case that from < to
22617 correctly.
22618
22619 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22620 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22621 Pay attention to raw-8-bit chars.
22622
226232008-02-01 Kenichi Handa <handa@m17n.org>
22624
22625 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22626 It is not bytecompiled now.
22627
22628 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22629 (charset_jisx0208): New variables.
22630 (Fdefine_charset_internal): Setup them if appropriate.
22631 (init_charset_once): Initialize them to -1.
22632
22633 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22634 (charset_jisx0208): Extern them.
22635
22636 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22637 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22638 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22639 (setup_iso_safe_charsets): Fix arguments to Fassq.
22640 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22641 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22642 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22643 (encode_coding_iso_2022): Change the 1st arg to
22644 ENCODE_ISO_CHARACTER to a variable.
22645
226462008-02-01 Kenichi Handa <handa@m17n.org>
22647
22648 * charset.h (enum define_charset_arg_index): New enums
22649 charset_arg_min_code and charset_arg_max_code.
22650 (struct charset): New member char_index_offset.
22651
22652 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22653 Take charset->char_index_offset into account.
22654 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22655 args[charset_arg_max_code]. Setup charset.char_index_offset.
22656 (syms_of_charset): Fix args to Fdefine_charset_internal.
22657
226582008-02-01 Dave Love <fx@gnu.org>
22659
22660 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22661
226622008-02-01 Dave Love <fx@gnu.org>
22663
22664 * coding.c: Doc fixes.
22665 (Fcoding_system_aliases): Fix return value.
22666 (Qmac): Remove (duplicated) definition.
22667
226682008-02-01 Dave Love <fx@gnu.org>
22669
362654a6
JB
22670 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22671 New functions.
aac0c6e3
MR
22672
22673 * character.c (Fstring): Doc fix.
22674
22675 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22676
362654a6 22677 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
22678 (font-encoding-alist): Doc fix.
22679
226802008-02-01 Dave Love <fx@gnu.org>
22681
22682 * term.c (costs_set): Declare static, non-initialized for pcc.
22683 (encode_terminal_code): Remove unused var.
22684
22685 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22686 for K&R.
22687
22688 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22689
22690 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22691 (suffixes): Move out of make_subsidiaries for K&R.
22692
22693 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22694
22695 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22696
226972008-02-01 Dave Love <fx@gnu.org>
22698
22699 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22700
22701 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22702
227032008-02-01 Yong Lu <lyongu@asia-infonet.com>
22704
22705 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22706
22707 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22708
227092008-02-01 Kenichi Handa <handa@m17n.org>
22710
22711 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22712 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22713
227142008-02-01 Kenichi Handa <handa@m17n.org>
22715
22716 * coding.c (decode_coding_charset): Adjust for the change of
22717 Fdefine_coding_system_internal.
22718 (Fdefine_coding_system_internal): For a coding system of
22719 `charset' type, store a list of charset IDs in
22720 `charset_attr_charset_valids' element of coding attributes.
22721
227222008-02-01 Kenichi Handa <handa@m17n.org>
22723
22724 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22725 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22726 caller. Handle 2-byte and 3-byte charsets correctly.
22727 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22728 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22729 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22730 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22731 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22732 sequence.
22733 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22734 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22735 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22736 and alt&rule composition.
22737 (decode_coding_iso_2022): Handle composition correctly.
22738 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22739
22740 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22741 re-defining a charset. If the charset has :emacs-mule-id, setup
22742 emacs_mule_bytes.
22743 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22744
227452008-02-01 Kenichi Handa <handa@m17n.org>
22746
22747 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22748 (encode_coding_big5, encode_coding_charset): If coding requires safe
22749 encoding, produce a character specified by
22750 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22751
227522008-02-01 Dave Love <fx@gnu.org>
22753
22754 * xterm.c (XSetIMValues): Declare.
22755
22756 * process.c: Conditionally include sys/wait.h, pty.h.
22757
22758 * print.c (print_object): Fix print format for 64-bit systems.
22759
22760 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22761
22762 * buffer.c (emacs_strerror): Declare.
22763
22764 * fontset.c (Fclear_face_cache): Declare.
22765 (accumulate_font_info): Comment-out (unused).
22766 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22767 variables.
22768
22769 * character.h (string_escape_byte8): Declare.
22770
22771 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22772 unused vars.
22773 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22774 (Fmap_charset_chars): Doc fix.
22775
22776 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22777 (Fset_coding_system_priority, Fset_coding_system_priority)
22778 (Fdefine_coding_system_internal): Doc fix.
22779
227802008-02-01 Dave Love <fx@gnu.org>
22781
22782 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22783
227842008-02-01 Kenichi Handa <handa@m17n.org>
22785
22786 * character.c (string_escape_byte8): Make multibyte string with
22787 correct size.
22788
22789 * charset.c (Fmake_char): Delete unnecessary code.
22790
227912008-02-01 Kenichi Handa <handa@m17n.org>
22792
22793 * xfns.c (x_encode_text): Allocate coding.destination here, and
22794 call encode_coding_object with dst_object Qnil.
22795
22796 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22797 multibyte form correctly.
22798
22799 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22800 against Vfont_encoding_alist.
22801
22802 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22803 handling of charset list.
22804 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22805 (decode_coding_object): Move point to coding->dst_pos before
22806 calling post-read-conversion function.
22807 (encode_coding_object): Give correct arguments to
22808 pre-write-conversion. Ignore the return value of
22809 pre-write-conversion function. Pay attention to the case that
22810 pre-write-conversion changes the current buffer. If dst_object is
22811 Qt, even if coding->src_bytes is zero, allocate at least one byte
22812 to coding->destination.
22813
22814 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22815
22816 * charset.c (Fmake_char): Make it more backward compatible.
22817 (Fmap_charset_chars): Fix docstring.
22818
228192008-02-01 Dave Love <fx@gnu.org>
22820
22821 * coding.c: Doc fixes.
22822 (Fdefine_coding_system_alias): Use names, not symbols, in
22823 coding-system-alist.
22824
228252008-02-01 Kenichi Handa <handa@m17n.org>
22826
22827 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22828 of calling free_realized_face.
22829
228302008-02-01 Yong Lu <lyongu@asia-infonet.com>
22831
22832 * charset.c (read_hex): Don't treat SPC as a comment starter.
22833 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22834 (Fdecode_char): Fix typo.
22835
228362008-02-01 Kenichi Handa <handa@m17n.org>
22837
22838 * charset.h (struct charset): New member `code_space_mask'.
22839
22840 * coding.c (coding_set_source): Delete the local variable beg_byte.
22841 (encode_coding_charset, Fdefine_coding_system_internal):
22842 Delete the local variable charset.
22843 (Fdefine_coding_system_internal): Setup
22844 attrs[coding_attr_charset_valids] correctly.
22845
22846 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22847 member to check if CODE is valid or not.
22848 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22849 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22850 is within the range of charset->min_code and carset->max_code.
22851
228522008-02-01 Dave Love <fx@gnu.org>
22853
22854 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22855
22856 * dispextern.h (generate_ascii_font): Fix return type.
22857
22858 * xfaces.c (generate_ascii_font): Fix arg declaration.
22859
22860 * coding.c (coding_inherit_eol_type)
22861 (Fset_terminal_coding_system_internal)
22862 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22863
228642008-02-01 Kenichi Handa <handa@m17n.org>
22865
22866 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22867 multiple charsets correctly.
22868
228692008-02-01 Kenichi Handa <handa@m17n.org>
22870
22871 * search.c (boyer_moore): Fix handling of multibyte character
22872 translation.
22873
22874 * xdisp.c (display_mode_element): When the variable `elt' is
22875 changed, update `this' and `lisp_string'.
22876
228772008-02-01 Kenichi Handa <handa@m17n.org>
22878
22879 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22880
22881 * callproc.c (Fcall_process): Be sure to give the current buffer
22882 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22883
22884 * charset.c (struct charset_map_entries): New struct.
22885 (load_charset_map): Rename from parse_charset_map. New args
22886 entries and n_entries. Change caller.
22887 (load_charset_map_from_file): Rename from load_charset_map.
22888 Change caller. New arg control_flag. Call load_charset_map at
22889 the tail.
22890 (load_charset_map_from_vector): New function.
22891 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22892 (encode_char): If the charset is compact, change a character index
22893 to a code point.
22894
22895 * coding.c (coding_alloc_by_making_gap): Check the case that the
22896 source and destination are the same correctly.
22897 (decode_coding_raw_text): Set coding->consumed_char and
22898 coding->consumed to 0.
22899 (produce_chars): If coding->chars_at_source is nonzero, update
22900 coding->consumed_char and coding->consumed before calling
22901 alloc_destination.
22902 (Fdefine_coding_system_alias): Register ALIAS in
22903 Vcoding_system_alist.
22904 (syms_of_coding): Define `no-conversion' coding system at the tail.
22905
22906 * fileio.c (Finsert_file_contents): Set coding_system instead of
22907 val. If the current buffer is multibyte, always call
22908 decode_coding_gap.
22909
22910 * xfaces.c (try_font_list): Give higher priority to fontset's
22911 family than face's family.
22912
229132008-02-01 Kenichi Handa <handa@m17n.org>
22914
22915 * callproc.c (Fcall_process): Be sure to give the current buffer
22916 to decode_coding_c_string.
22917
22918 * xfaces.c (try_font_list): Give a family specified in a fontset
22919 higher priority than a family specified in a face.
22920
229212008-02-01 Kenichi Handa <handa@m17n.org>
22922
22923 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22924 Fix arguments to insert_from_buffer.
22925
22926 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22927
229282008-02-01 Kenichi Handa <handa@m17n.org>
22929
22930 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22931 (decode_coding_gap): Set coding->dst_multibyte correctly.
22932
229332008-02-01 Kenichi Handa <handa@m17n.org>
22934
22935 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22936 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22937 (encode_coding_utf_16): Substitute coding->default_char for
22938 non-Unicode characters.
22939 (decode_coding): Don't call record_insert here.
22940 (setup_coding_system): Initialize `surrogate' of
22941 coding->spec.utf_16 to 0.
22942 (EMIT_ONE_BYTE): Fix for multibyte case.
22943
22944 * insdel.c (insert_from_gap): Call record_insert.
22945
229462008-02-01 Kenichi Handa <handa@m17n.org>
22947
22948 * casefiddle.c (casify_region): Fix multibyte case.
22949
22950 * character.c (c_string_width): Add return type `int'.
22951 (char_string_with_unification): Delete arg ADVANCED.
22952
22953 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22954 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22955 (CHAR_STRING_ADVANCE): Make it do-while statement.
22956
22957 * chartab.c (sub_char_table_set_range): Optimize for the case
22958 DEPTH == 3. Add workaround code for a GCC optimization bug.
22959
22960 * charset.c (parse_charset_map): Remove an unused variable.
22961
22962 * coding.c: Delete unused variables.
22963
22964 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22965 earlier. If inserted is zero and the coding system doesn't
22966 require flushing, don't call decode_coding_gap.
22967
22968 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22969
229702008-02-01 Kenichi Handa <handa@m17n.org>
22971
22972 The following changes are for using Unicode as an internal
22973 character model, and use UTF-8 format for buffer/string
22974 representation.
22975
22976 * .gdbinit (xchartable): Adjust for the change of char table structure.
22977 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22978
22979 * Makefile.in (obj): Add character.o and chartab.o.
22980 (lisp, shortlisp): Remove utf-8.elc.
22981 (*.o): For many files, change dependency on charset.h to
22982 character.h, and add dependency on character.h.
22983 (character.o, chartab.o): New targets.
22984
22985 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22986 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22987 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22988 of "charset.h".
22989
22990 * dired.c, filelock.c: Include "character.h".
22991
22992 * alloc.c: Include "character.h" instead of "charset.h".
22993 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22994 (syms_of_alloc): Remove defsubr for Smake_char_table.
22995
22996 * buffer.c: Include "character.h" instead of "charset.h", don't
22997 include "coding.h".
22998 (Fset_buffer_multibyte): Adjust for UTF-8.
22999
23000 * buffer.h: EXFUN Fbuffer_live_p.
23001
23002 * callproc.c: Include "character.h" instead of "charset.h".
23003 (Fcall_process): Big change for the new code-conversion APIs.
23004
23005 * casetab.c: Include "character.h" instead of "charset.h".
23006 (set_canon, set_identity, shuffle): Adjust for the new
23007 map_char_table spec.
23008 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23009 accessing the char table structure.
23010
23011 * chartab.c: New file that implements char table.
23012
23013 * category.c: Include "character.h".
23014 (copy_category_entry): New function.
23015 (copy_category_table): Call map_char_table and copy_category_entry.
23016 (Fmake_category_table): Initialize all top-level slots.
23017 (char_category_set): New function.
23018 (modify_lower_category_set): Delete.
23019 (Fmodify_category_entry): Call char_table_ref_and_range.
23020
23021 * category.h (CATEGORY_SET): Just call char_category_set.
23022
23023 * ccl.c: Include "character.h".
23024 (Qccl, Qcclp): New variables.
23025 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23026 it's less than 256.
23027 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23028 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23029 and DST type.
23030 (ccl_driver): Change types of argument, adjust code accordingly.
23031 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23032 ccl_driver.
23033 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23034
23035 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23036 New members src_multibyte, dst_multibyte, consumed, and produced.
23037 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23038 (CODING_SPEC_CCL_PROGRAM): New macro.
23039 (ccl_driver): Update prototype.
23040 (Qccl, Qcclp, Fccl_program_p): Extern them.
23041 (CHECK_CCL_PROGRAM): New macro.
23042
23043 * character.c, character.h, chartab.c: New files.
23044
23045 * charset.c: Mostly re-written. Move character and multibyte sequence
23046 handling codes to character.c.
23047
23048 * charset.h: Mostly re-written. Move character and multibyte sequence
23049 handling codes to character.h.
23050
23051 * coding.c, coding.h: Mostly re-written.
23052
23053 * composite.c: Include "character.h" instead of "charset.h".
23054 (CHAR_WIDTH): Move to character.h.
23055 (HASH_KEY, HASH_VALUE): Delete.
23056
23057 * composite.h (enum composition_method): Change order of enumeration
23058 symbols.
23059
23060 * data.c: Include "character.h" instead of "charset.h".
23061 (Faref): Call CHAR_TABLE_REF for a char table.
23062 (Faset): Call CHAR_TABLE_SET for a char table.
23063
23064 * dispextern.h (free_realized_face, check_face_attribytes)
23065 (generate_ascii_font): Extern them.
23066 (free_realized_multibyte_face): Delete extern.
23067
23068 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23069 table structure.
23070
23071 * editfns.c: Include "character.h" instead of "charset.h".
23072 (Fchar_to_string): Always call CHAR_STRING.
23073
23074 * emacs.c (main): Call init_charset_once, init_charset,
23075 syms_of_chartab, and syms_of_character.
23076
23077 * fileio.c: Include "character.h" instead of "charset.h".
23078 (Finsert_file_contents): Big change for the new code-conversion API.
23079 (choose_write_coding_system, Fwrite_region): Likewise.
23080 (build_annotations_2): Delete.
23081 (e_write): Big change for the new code-conversion API.
23082
23083 * fns.c: Include "character.h" instead of "charset.h".
23084 (copy_sub_char_table): Move to chartab.c.
23085 (Fcopy_sequence): Call copy_char_table for a char table.
23086 (concat): Delete codes calling count_multibyte.
23087 (string_char_to_byte, string_byte_to_char): Adjust for the new
23088 multibyte form.
23089 (internal_equal): Adjust for the change of char table structure.
23090 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23091 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23092 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23093 (char_table_translate, optimize_sub_char_table)
23094 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23095 chartab.c.
23096 (char_table_ref_and_index): Delete.
23097 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23098 (Fmd5): Call preferred_coding_system instead of accessing
23099 Vcoding_category_list. Adjust for the new code-conversion API.
23100 (syms_of_fns): Move defsubr for char table related functions to
23101 chartab.c.
23102
23103 * fontset.c: Mostly re-written.
23104
23105 * fontset.h (struct font_info): Change type of the member encoding_type.
23106 (enum FONT_SPEC_INDEX): New enum.
23107 (fontset_font_pattern, fs_load_font): Update prototype.
23108 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23109
23110 * indent.c: Include "character.h" instead of "charset.h".
23111 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23112
23113 * insdel.c: Include "character.h" instead of "charset.h".
23114 (copy_text): Don't refer to Vnonascii_translation_table.
23115 (insert_from_gap): New function.
23116
23117 * keyboard.c: Include "character.h" instead of "charset.h".
23118 (command_loop_1): Never call direct_output_forward_char before
23119 a non-ASCII character.
23120 (read_char): If Vkeyboard_translate_table is a char table, always
23121 translate a character.
23122
23123 * keymap.c: Include "character.h".
23124 (store_in_keymap): Handle the case that IDX is a cons.
23125 (Fdefine_key): Handle the case that KEY is a cons and the car part
23126 is also a cons (range).
23127 (push_key_description): Adjust for the new character code.
23128 (describe_vector): Call describe_char_table for a char table.
23129 (describe_char_table): New function.
23130
23131 * keymap.h (describe_char_table): Extern it.
23132
23133 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23134 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23135 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23136 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23137 Delete.
23138 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23139 structure.
23140 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23141 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23142 (CHARTAB_SIZE_BITS_3): New macros.
23143 (chartab_size): Extern it.
23144 (struct Lisp_Char_Table): Re-design.
23145 (struct Lisp_Sub_Char_Table): New structure.
23146 (HASH_KEY, HASH_VALUE): Move from fns.c.
23147 (CHARACTERBITS): Define as 22.
23148 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23149 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23150 (GC_SUB_CHAR_TABLE_P): New macro.
23151 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23152 (code_convert_string_norecord): Deleted extern.
23153 (init_character_once, syms_of_character, init_charset)
23154 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23155
23156 * lread.c: Include "character.h".
23157 (read_multibyte): New arg NBYTES.
23158 (read_escape): Change the meaning of returned *BYTEREP.
23159 (to_multibyte): Delete.
23160 (read1): Adjust the handling of char table and string.
23161
23162 * print.c: Include "character.h" instead of "charset.h".
23163 (print_string): Convert 8-bit raw bytes to octal form by
23164 string_escape_byte8.
23165 (print_object): Adjust for the new multibyte form. Print 8-bit
23166 raw bytes always in octal form. Handle sub char table correctly.
23167
23168 * process.c: Include "character.h" instead of "charset.h".
23169 (read_process_output, send_process): Adjust for the new
23170 code-conversion API.
23171
23172 * puresize.h (BASE_PURESIZE): Increase.
23173
23174 * regex.c: Include "character.h" instead of "charset.h".
23175 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23176 (regex_compile): Accept a range whose starting and ending
23177 character have different leading bytes.
23178 (analyse_first): Adjust for the above change.
23179
23180 * search.c: Include "character.h" instead of "charset.h".
23181 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23182 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23183
23184 * syntax.c: Include "character.h" instead of "charset.h".
23185 (syntax_parent_lookup): Delete.
23186 (Fmodify_syntax_entry): Accept a cons as CHAR.
23187 (skip_chars): Adjust for the new multibyte form.
23188 (init_syntax_once): Call char_table_set_range instead of directly
23189 accessing the structure of a char table.
23190
23191 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23192 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23193 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23194 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23195
23196 * term.c: Include "buffer.h" and "character.h".
23197 (encode_terminal_code, write_glyphs): Adjust for the new
23198 code-conversion API.
23199 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23200
23201 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23202
23203 * xdisp.c: Include "character.h".
23204 (get_next_display_element): Adjust for the new multibyte form.
23205 (disp_char_vector): Adjust for the new char table structure.
23206 (decode_mode_spec_coding): Adjust for the new structure of
23207 coding system.
23208 (decode_mode_spec): Adjust for the new code-conversion API.
23209
23210 * xfaces.c: Include "character.h" instead of "charset.h".
23211 (load_face_font): Adjust for the change of choose_face_font and
23212 FS_LOAD_FONT.
23213 (generate_ascii_font): New function.
23214 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23215 (set_font_frame_param): Adjust for the change of choose_face_font.
23216 (free_realized_face): Make it public.
23217 (free_realized_faces_for_fontset): Rename from
23218 free_realized_multibyte_face. Free also faces realized for ASCII.
23219 (choose_face_font): Change arguments. Adjust for the change of
23220 fontset_font_pattern and FS_LOAD_FONT.
23221
23222 * xfns.c: Include "character.h".
23223 (x_encode_text): Adjust for the new code-conversion API.
23224
23225 * xselect.c: Don't include "charset.h".
23226 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23227
23228 * xterm.c: Include "character.h".
23229 (x_encode_char): New argument CHARSET. Change caller.
23230 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23231 Call ENCODE_CHAR instead of SPLIT_CHAR.
23232 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23233 CHAR_WIDTH instead of CHARSET_WIDTH.
23234 (XTread_socket): Adjust for the new code-conversion API.
23235 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23236 (x_load_font): Adjust for the change of struct font.
23237
232382008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23239
23240 * xfaces.c (face_at_buffer_position): Remove unused vars.
23241
232422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23243
23244 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23245 Fix overflow checking.
23246
232472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23248
23249 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23250 Cancel previous change.
23251
232522008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23253
23254 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23255 ccl->eight_bit_control. Fix check for buffer overflow.
23256 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23257 (ccl_driver): Initialize extra_bytes to 0.
23258
232592008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23260
23261 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23262 return it ORed with ctrl_modifier.
23263
232642008-01-29 Miles Bader <miles@gnu.org>
23265
23266 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23267
232682008-01-28 Jason Rumney <jasonr@gnu.org>
23269
23270 * w32.c (stat): Don't double check for networked drive.
23271
232722008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23273
23274 * window.c (run_window_configuration_change_hook): New function.
23275 Code extracted from set_window_buffer. Set the selected frame.
23276 (set_window_buffer): Use it.
23277 * window.h (run_window_configuration_change_hook): Declare.
23278 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23279
23280 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23281
232822008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23283
23284 * Makefile.in: Remove references to unused macros.
23285
232862008-01-26 Eli Zaretskii <eliz@gnu.org>
23287
23288 * w32.c (g_b_init_get_sid_sub_authority)
23289 (g_b_init_get_sid_sub_authority_count): New static variables.
23290 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23291 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23292 (init_user_info): Use them to retrieve uid and gid.
23293 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23294 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23295 st_uid and st_gid of the file.
23296
232972008-01-26 Jason Rumney <jasonr@gnu.org>
23298
23299 * w32.c (logon_network_drive): New function.
23300 (stat): Use it.
23301
233022008-01-26 Chong Yidong <cyd@stupidchicken.com>
23303
23304 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23305 invisible text covered with an ellipsis.
23306
233072008-01-25 Richard Stallman <rms@gnu.org>
23308
23309 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23310 jump back to beginning. Move some other initializations after that.
23311 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23312 New variables.
23313 (syms_of_xdisp): Init them.
23314
23315 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23316
23317 * buffer.c (reset_buffer_local_variables):
23318 Implement `permanent-local-hook'.
23319 (Qpermanent_local_hook): New variable.
23320 (syms_of_buffer): Init and staticpro it.
23321
233222008-01-25 Michael Albinus <michael.albinus@gmx.de>
23323
23324 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23325
233262008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23327
23328 * fns.c (Fclrhash): Return TABLE.
23329
233302008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23331
23332 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23333 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23334 is set even without positional changes.
23335 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23336
23337 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23338
233392008-01-23 Jason Rumney <jasonr@gnu.org>
23340
23341 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23342
23343 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23344 the unicode range available in MULE by locale-coding-system.
23345 Improve dbcs lead byte detection. Set event timestamp and modifiers
23346 earlier.
23347
233482008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23349
23350 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23351 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23352 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23353 when used on child processes.
23354
233552008-01-21 Michael Albinus <michael.albinus@gmx.de>
23356
23357 * dbusbind.c (Fdbus_method_return_internal): Rename from
23358 Fdbus_method_return.
23359 (Fdbus_unregister_object): Move to dbus.el.
23360 (Fdbus_call_method, Fdbus_method_return_internal)
23361 (Fdbus_send_signal): Improve debug messages.
23362
233632008-01-20 Martin Rudalics <rudalics@gmx.at>
23364
23365 * undo.c (undo_inhibit_record_point): New variable.
23366 (syms_of_undo): Initialize it.
23367 (record_point): Don't record point when undo_inhibit_record_point
23368 is set.
23369
233702008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23371
23372 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23373
23374 * xdisp.c (Qauto_hscroll_mode): New var.
23375 (syms_of_xdisp): Initialize it.
23376 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23377 window's buffer.
23378 (hscroll_windows): Don't check automatic_hscrolling_p here.
23379
23380 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23381 vscroll if we're setting window-buffer to the value it already has.
23382
233832008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23384
23385 * m/intel386.h: Remove references to XENIX.
23386
233872008-01-17 Andreas Schwab <schwab@suse.de>
23388
23389 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23390 instead of HAVE_X86_64_LIB64_DIR.
23391 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23392
233932008-01-17 Glenn Morris <rgm@gnu.org>
23394
23395 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23396 to HAVE_X86_64_LIB64_DIR.
23397
233982008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23399
23400 * s/irix3-3.h:
23401 * s/irix4-0.h:
23402 * s/386-ix.h:
23403 * s/domain.h:
23404 * s/hpux9-x11r4.h:
23405 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23406
23407 * sysdep.c: Remove code containing references to symbols defined
23408 by unsupported systems.
23409
234102008-01-16 Glenn Morris <rgm@gnu.org>
23411
23412 * coding.c (select-safe-coding-system-function): Doc fix.
23413
234142008-01-15 Glenn Morris <rgm@gnu.org>
23415
23416 * config.in: Revert 2008-01-13 change: this is a generated file.
23417
234182008-01-13 Tom Tromey <tromey@redhat.com>
23419
23420 * lisp.h: Fix typo.
23421
234222008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23423
23424 * m/sequent-ptx.h:
23425 * m/sequent.h:
23426 * s/ptx.h:
23427 * s/ptx4-2.h:
23428 * s/ptx4.h: Remove files for systems no longer supported.
23429
23430 * callproc.c (Fcall_process): Fix previous change.
23431
234322008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23433
23434 * unexsunos4.c: Remove file, system not supported anymore.
23435
23436 * m/mips.h:
23437 * m/intel386.h:
23438 * callproc.c:
23439 * config.in:
23440 * ecrt0.c:
23441 * emacs.c:
23442 * fileio.c:
23443 * frame.c:
23444 * getpagesize.h:
23445 * keyboard.c:
23446 * lread.c:
23447 * process.c:
23448 * puresize.h:
23449 * sysdep.c:
23450 * systty.h:
23451 * syswait.h:
23452 * unexec.c:
23453 * xdisp.c:
23454 * alloc.c: Remove code containing references to symbols defined by
23455 unsupported systems.
23456
234572008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23458
23459 * coding.c (detect_coding_mask): Fix previous change.
23460
234612008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23462
23463 * coding.c (detect_coding_iso2022): New arg
23464 latin_extra_code_state. Allow Latin extra codes only
23465 when *latin_extra_code_state is nonzero.
23466 (detect_coding_mask): If there is a NULL byte, detect the encoding
23467 as UTF-16 or binary. If Latin extra codes exist, detect the
23468 encoding as ISO-2022 only when there's no other proper encoding is
23469 found.
23470
234712008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23472
23473 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23474 #ifdef MAC_OS.
23475
234762008-01-08 Richard Stallman <rms@gnu.org>
23477
23478 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23479
234802008-01-06 Nick Roberts <nickrob@snap.net.nz>
23481
23482 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23483 menu bar in parentheses.
23484
234852008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23486
23487 * m/7300.h:
23488 * m/acorn.h:
23489 * m/alliant-2800.h:
23490 * m/alliant.h:
23491 * m/alliant1.h:
23492 * m/alliant4.h:
23493 * m/altos.h:
23494 * m/amdahl.h:
23495 * m/apollo.h:
23496 * m/att3b.h:
23497 * m/aviion-intel.h:
23498 * m/aviion.h:
23499 * m/celerity.h:
23500 * m/clipper.h:
23501 * m/cnvrgnt.h:
23502 * m/convex.h:
23503 * m/cydra5.h:
23504 * m/delta88k.h:
23505 * m/dpx2.h:
23506 * m/dual.h:
23507 * m/elxsi.h:
23508 * m/f301.h:
23509 * m/gould-np1.h:
23510 * m/gould.h:
23511 * m/i860.h:
23512 * m/ibmps2-aix.h:
23513 * m/ibmrt-aix.h:
23514 * m/ibmrt.h:
23515 * m/irist.h:
23516 * m/is386.h:
23517 * m/isi-ov.h:
23518 * m/mega68.h:
23519 * m/mg1.h:
23520 * m/news-r6.h:
23521 * m/news-risc.h:
23522 * m/news.h:
23523 * m/nh3000.h:
23524 * m/nh4000.h:
23525 * m/ns16000.h:
23526 * m/ns32000.h:
23527 * m/nu.h:
23528 * m/orion.h:
23529 * m/orion105.h:
23530 * m/paragon.h:
23531 * m/pfa50.h:
23532 * m/plexus.h:
23533 * m/pyramid.h:
23534 * m/pyrmips.h:
23535 * m/sh3el.h:
23536 * m/sps7.h:
23537 * m/sr2k.h:
23538 * m/stride.h:
23539 * m/sun1.h:
23540 * m/sun2.h:
23541 * m/sun3-68881.h:
23542 * m/sun3-fpa.h:
23543 * m/sun3-soft.h:
23544 * m/sun3.h:
23545 * m/sun386.h:
23546 * m/symmetry.h:
23547 * m/tad68k.h:
23548 * m/tahoe.h:
23549 * m/targon31.h:
23550 * m/tek4300.h:
23551 * m/tekxd88.h:
23552 * m/tower32.h:
23553 * m/tower32v3.h:
23554 * m/ustation.h:
23555 * m/wicat.h:
23556 * m/xps100.h:
23557 * s/cxux.h:
23558 * s/cxux7.h:
23559 * s/dgux.h:
23560 * s/dgux4.h:
23561 * s/dgux5-4-3.h:
23562 * s/dgux5-4r2.h:
23563 * s/esix.h:
23564 * s/esix5r4.h:
23565 * s/hiuxmpp.h:
23566 * s/hiuxwe2.h:
23567 * s/iris3-5.h:
23568 * s/iris3-6.h:
23569 * s/isc2-2.h:
23570 * s/isc3-0.h:
23571 * s/isc4-0.h:
23572 * s/isc4-1.h:
23573 * s/newsos5.h:
23574 * s/newsos6.h:
23575 * s/osf1.h:
23576 * s/osf5-0.h:
23577 * s/riscix1-1.h:
23578 * s/riscix12.h:
23579 * s/sco4.h:
23580 * s/sco5.h:
23581 * s/sunos4-0.h:
23582 * s/sunos4-1.h:
23583 * s/sunos413.h:
23584 * s/sunos4shr.h:
23585 * s/umax.h:
23586 * s/unipl5-2.h:
23587 * s/xenix.h:
23588 * cxux-crt0.s:
23589 * unexapollo.c:
23590 * unexconvex.c:
23591 * unexenix.c:
23592 * unexsni.c: Remove files for systems no longer supported.
23593
23594 * m/intel386.h: Remove references to unsupported systems.
23595
23596 * w32.c (get_emacs_configuration): Remove reference to i860.
23597
23598 * sysdep.c: Remove dead code.
23599
236002008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23601
23602 * s/rtu.h:
23603 * m/masscomp.h: Remove files. Platform is obsolete.
23604
236052008-01-04 Michael Albinus <michael.albinus@gmx.de>
23606
23607 * dbusbind.c (Fdbus_method_return): New function.
23608 (xd_read_message): Add the serial number to the event.
23609 (Fdbus_register_method): Activate the function.
23610
236112008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23612
23613 * keyboard.c (read_key_sequence): Fix typo.
23614
236152008-01-03 Michael Albinus <michael.albinus@gmx.de>
23616
23617 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23618 (xd_signature, xd_append_arg): Handle element type detection for
23619 empty arrays.
23620 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23621 SDATA () calls; this must be solved more general.
23622 (Fdbus_register_signal): Use SBYTES instead of strlen.
23623
236242008-01-03 Magnus Henoch <magnus@zemdatav>
23625
23626 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23627 unsigned int for byte values (necessary for big-endian platform).
23628 (Fdbus_call_method): Handle the case of no returned arguments.
23629
236302007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23631
23632 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23633
236342007-12-31 Magnus Henoch <mange@freemail.hu>
23635
23636 * dbusbind.c (xd_signature): Signature of variant is just "v".
23637
236382007-12-30 Michael Albinus <michael.albinus@gmx.de>
23639
23640 * dbusbind.c: Fix several errors and compiler warnings.
23641 Reported by Tom Tromey <tromey@redhat.com>.
23642 (XD_ERROR, XD_DEBUG_MESSAGE)
23643 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23644 (xd_append_arg): Part for basic D-Bus types rewritten.
23645 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23646 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23647 appropriate.
23648 (xd_read_message): Return Qnil. Don't signal an error; it is not
23649 useful during event reading.
23650 (Fdbus_register_signal): Signal an error if the check for
23651 FUNCTIONP fails.
23652 (Fdbus_register_method): New function. The implementation is not
23653 complete, the call of the function signals an error therefore.
23654 (Fdbus_unregister_object): New function, renamed from
23655 Fdbus_unregister_signal. The initial check signals an error, if
23656 the object is not well formed.
23657
236582007-12-30 Richard Stallman <rms@gnu.org>
23659
23660 * textprop.c (get_char_property_and_overlay):
23661 Signal error if POSITION is out of range in a buffer.
23662
236632007-12-29 Martin Rudalics <rudalics@gmx.at>
23664
23665 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23666 because the original parameters are in pure storage now.
23667
236682007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23669
23670 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23671
236722007-12-22 Eli Zaretskii <eliz@gnu.org>
23673
23674 * callint.c (syms_of_callint) <command-history>: Add reference to
23675 history-length in the doc string.
23676
236772007-12-17 Jason Rumney <jasonr@gnu.org>
23678
23679 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23680 before passing as wParam.
23681
236822007-12-22 Michael Albinus <michael.albinus@gmx.de>
23683
23684 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23685 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23686 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23687 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23688 as number.
23689 (Fdbus_call_method): Fix docstring.
23690
236912007-12-21 Michael Albinus <michael.albinus@gmx.de>
23692
23693 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23694 New macros.
23695 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23696 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23697 Simplify.
23698 (xd_signature): New function.
23699 (xd_append_arg): Compute also signatures. Major rewrite.
23700 (xd_retrieve_arg): Make debug messages friendly.
23701 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23702 Check for signatures of arguments.
23703
237042007-12-19 Michael Albinus <michael.albinus@gmx.de>
23705
23706 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23707 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23708 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23709 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23710 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23711 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23712 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23713 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23714 (xd_retrieve_value): Remove. Functionality included in ...
23715 (xd_append_arg): New function.
23716 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23717
237182007-12-16 Michael Albinus <michael.albinus@gmx.de>
23719
23720 * dbusbind.c (top): Include <stdio.h>.
23721 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23722 dbus_message_new_method_call and dbus_message_new_signal.
23723 (Fdbus_register_signal): Rename unique_name to uname.
23724 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23725 non-existing unique name. Fix typos in matching rule. Return an
23726 object which is useful in Fdbus_unregister_signal.
23727 (Fdbus_unregister_signal): Reimplementation, in order to remove
23728 only the corresponding entry.
23729 (Vdbus_registered_functions_table): Change the order of entries.
23730 Apply these changes in xd_read_message and Fdbus_register_signal.
23731
237322007-12-16 Andreas Schwab <schwab@suse.de>
23733
23734 * fileio.c (Finsert_file_contents): Fix overflow check to not
23735 depend on undefined integer overflow.
23736
237372007-12-14 Jason Rumney <jasonr@gnu.org>
23738
23739 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23740 for characters above 127.
23741
237422007-12-13 Jason Rumney <jasonr@gnu.org>
23743
23744 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23745 before dereferencing array.
23746 (lookup_vk_code): Remove zero comparison.
23747
237482007-12-14 Michael Albinus <michael.albinus@gmx.de>
23749
23750 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23751 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23752 Use `unsigned int' instead of `uint'.
23753 (xd_read_message, Fdbus_register_signal): Split expressions into
23754 multiple lines before operators "&&" and "||", according to the
23755 GNU Coding Standards.
23756
237572007-12-14 Eli Zaretskii <eliz@gnu.org>
23758
23759 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23760
237612007-12-12 Juri Linkov <juri@jurta.org>
23762
23763 * buffer.c (Frename_buffer): In interactive spec replace
23764 `read-buffer' with `read-string' that uses `buffer-name-history'
23765 as history, and the current buffer's name as default.
23766
237672007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23768
23769 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23770 manipulating the backtrace manually.
23771 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23772 (struct backtrace, backtrace_list): Remove.
23773 (command_loop_1): Remove dead var `no_direct'.
23774
23775 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23776 preserve non-built-in buffer-local variables.
23777 (Fkill_all_local_variables): Don't re-create&re-set permanent
23778 buffer-local variables.
23779
237802007-12-09 Juri Linkov <juri@jurta.org>
23781
23782 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23783 Lisp code that uses `read-buffer' with current buffer as default.
23784
237852007-12-08 Michael Albinus <michael.albinus@gmx.de>
23786
23787 * dbusbind.c (xd_read_message): Generate an event for every
23788 registered handler. There might be several handlers registered
23789 for the same signal.
23790 (Fdbus_register_signal): Don't overwrite a registration for the
23791 same signal. Add a new registration if handlers are different.
23792 (Vdbus_registered_functions_table): Rework doc string.
23793
237942007-12-07 Michael Albinus <michael.albinus@gmx.de>
23795
23796 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23797 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23798 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23799 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23800 Unify argument lists.
23801 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23802 arguments and hash table keys. Use unique name for service.
23803 (Fdbus_unregister_signal): Remove checks.
23804 (Vdbus_registered_functions_table): Fix doc string.
23805
238062007-12-05 Magnus Henoch <mange@freemail.hu>
23807
23808 * process.c (make_process): Initialize pty_flag to 0.
23809
238102007-12-05 Jason Rumney <jasonr@gnu.org>
23811
23812 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23813 specified XBMs.
23814
238152007-12-05 Richard Stallman <rms@gnu.org>
23816
23817 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23818
238192007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23820
23821 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23822 New variable.
23823 (mac_try_close_socket) [MAC_OSX]: New function.
23824 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23825 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23826
23827 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23828 Use mac_try_close_socket.
23829
238302007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23831
23832 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23833 reloc_base.
23834 (copy_dysymtab): Compute relocation base here.
23835 (rebase_reloc_address) [__ppc64__]: New function.
23836 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23837 changed.
23838
238392007-12-05 Jason Rumney <jasonr@gnu.org>
23840
23841 * w32proc.c (sys_spawnve): Quote args with wildcards.
23842
238432007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23844
23845 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23846 __objc_* sections.
23847 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23848
238492007-12-05 Michael Albinus <michael.albinus@gmx.de>
23850
23851 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23852 Move check for Vdbus_registered_functions_table to
23853 xd_read_queued_messages.
23854 (xd_read_queued_messages): Protect xd_read_message calls by
23855 internal_condition_case_1.
23856
238572007-12-04 Michael Albinus <michael.albinus@gmx.de>
23858
23859 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23860 Qdbus_system_bus and Qdbus_session_bus, respectively.
23861 (Vdbus_intern_symbols): Remove.
23862 (Vdbus_registered_functions_table): New hash table.
23863 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23864 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23865 Rewrite in order to manage registered functions by hash table
23866 Vdbus_registered_functions_table.
23867
238682007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23869
23870 * xterm.c: Update URL to Window Manager Specification in comment.
23871
238722007-12-02 Michael Albinus <michael.albinus@gmx.de>
23873
23874 * config.in (HAVE_DBUS): Add.
23875
23876 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23877 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23878 (obj): Add $(DBUS_OBJ).
23879 (LIBES): Add $(DBUS_LIBS).
23880 (dbusbind.o): New target.
23881
23882 * dbusbind.c: New file.
23883
23884 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23885
23886 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23887 (Qdbus_event): New Lisp symbol.
23888 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23889 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23890 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23891
23892 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23893
238942007-12-01 Richard Stallman <rms@gnu.org>
23895
23896 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23897
238982007-11-30 Jason Rumney <jasonr@gnu.org>
23899
23900 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23901 (w32con_reset_terminal_modes): Clear screen buffer.
23902 (w32_face_attributes): Don't use color indexes that are out of range.
23903 Only reverse the default colors.
23904
23905 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23906 WINDOWSNT.
23907
23908 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23909
239102007-11-29 Jason Rumney <jasonr@gnu.org>
23911
23912 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23913 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23914 if the terminal colors are initialized.
23915 (unspecified_fg, unspecified_bg): Remove unused declarations.
23916
239172007-11-29 Andreas Schwab <schwab@suse.de>
23918
23919 * keyboard.c (apply_modifiers): Fix typo.
23920
239212007-11-29 Richard Stallman <rms@gnu.org>
23922
23923 * keymap.c (Fcurrent_local_map): Doc fix.
23924
239252007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23926
23927 * s/gnu-kfreebsd.h: New file.
23928
239292007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23930
23931 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23932 Don't cast redundantly.
23933
23934 * keyboard.c (KEY_TO_CHAR): New macro.
23935 (parse_modifiers, apply_modifiers): Accept integer arguments.
23936 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23937 for chars and symbol keys.
23938 After doing such remapping, apply function-key-map again.
23939
239402007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23941
23942 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23943 compiled anymore.
23944
239452007-11-26 Andreas Schwab <schwab@suse.de>
23946
23947 * process.c (list_processes_1): Fix indentation level of the
23948 command column.
23949
239502007-11-23 Andreas Schwab <schwab@suse.de>
23951
23952 * editfns.c (Fformat): Handle %c specially since it requires the
23953 argument to be of type int.
23954
239552007-11-23 Markus Triska <markus.triska@gmx.at>
23956
23957 * emacs.c (main): Call init_editfns before init_process, since
23958 init_process sets Vprocess_connection_type depending on OS release.
23959
239602007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23961
23962 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23963 (find_symbol_value): Use do_symval_forwarding.
23964
23965 * data.c (set_internal): Set the value in the `cons-cell' (for
23966 Buffer_Local_values) not only for frame-local variables.
23967
239682007-11-22 Andreas Schwab <schwab@suse.de>
23969
23970 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23971 values to sprintf.
23972 * keymap.c (Fsingle_key_description): Likewise.
23973 * print.c (print_object): Likewise.
23974
239752007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23976
23977 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23978 file for image is nil.
23979
239802007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23981
23982 * term.c: Include stdarg.h.
23983 (fatal): Implement using varargs.
23984 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23985
239862007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23987
23988 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23989 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23990 Update call to buffer_slot_type_mismatch.
23991 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23992 (buffer_slot_type_mismatch): Update.
23993 * buffer.c (buffer_local_types): Remove.
23994 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23995 (defvar_per_buffer): Set the type in the buffer_objfwd.
23996
239972007-11-21 Jason Rumney <jasonr@gnu.org>
23998
23999 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24000 CreateFileMapping returns NULL on failure.
24001
240022007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24003
24004 * search.c (Fset_match_data): Remove the `evaporate' feature.
24005 (unwind_set_match_data): Don't use the `evaporate' feature.
24006
240072007-11-21 Jason Rumney <jasonr@gnu.org>
24008
24009 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24010
24011 * w32console.c (w32con_write_glyphs): Remove unused variables.
24012
240132007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24014
24015 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24016
24017 * s/darwin.h (MULTI_KBOARD): Remove.
24018
24019 * macfns.c (x_create_tip_frame, Fx_create_frame)
24020 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24021
240222007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24023
24024 * buffer.c (Fbuffer_local_value): Remove redundant test.
24025 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24026 than in `current-buffer' to match the comment.
24027 Do the swap using swap_in_global_binding.
24028
24029 * data.c (store_symval_forwarding, set_internal):
24030 * eval.c (specbind): Remove dead code.
24031
24032 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24033 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24034 Since we do not want to see internal Lisp_*fwd objects here.
24035
240362007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24037
24038 * sysdep.c (init_system_name): Use getaddrinfo if available.
24039
24040 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24041 (x_scroll_bar_note_movement): start, end, with, height in struct
24042 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24043
240442007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24045
24046 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24047
240482007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24049
24050 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24051 This undoes Richard's change of 14-Oct-2002.
24052
24053 * alloc.c (allocate_other_vector):
24054 * lisp.h (allocate_other_vector): Remove.
24055
24056 * window.c (struct save_window_data): Move non-lisp data to the end
24057 and make it `int' rather than Lisp_Object.
24058 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24059 Done wrap/unwrap integer values.
24060 (Fset_window_configuration, compare_window_configurations):
24061 Update use of fields to their new types.
24062
24063 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24064 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24065 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24066 (SET_SCROLL_BAR_X_WINDOW): Remove.
24067 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24068 Access the new x_window field directly.
24069 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24070 Don't wrap/unwrap integers into Lisp_Objects.
24071 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24072 (x_scroll_bar_report_motion):
24073 Don't wrap/unwrap integers into Lisp_Objects.
24074 (x_term_init): Use SDATA.
24075 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24076 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24077 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24078 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24079 * xfns.c (x_set_background_color):
24080 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24081 Access the new x_window field directly.
24082
24083 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24084 (allocate_pseudovector): Make non-static.
24085
24086 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24087 (allocate_pseudovector): Declare.
24088 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24089
240902007-11-15 Andreas Schwab <schwab@suse.de>
24091
24092 * editfns.c (Fformat): Correctly format EMACS_INT values.
24093 Also take precision into account when formatting an integer.
24094
24095 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24096
240972007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24098
24099 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24100 (syms_of_keyboard): Defsubr it.
24101
24102 * data.c (swap_in_global_binding): Fix longstanding bug where
24103 store_symval_forwarding was not called with the right second argument,
24104 thus causing objfwd-ing from being dropped.
24105
241062007-11-14 Juanma Barranquero <lekktu@gmail.com>
24107
24108 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24109 (Fx_display_pixel_height, Fx_display_planes)
24110 (Fx_display_color_cells, Fx_server_max_request_size)
24111 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24112 (Fx_display_visual_class, Fx_display_save_under):
24113 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24114 (Fx_display_pixel_height, Fx_display_planes)
24115 (Fx_display_color_cells, Fx_server_max_request_size)
24116 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24117 (Fx_display_mm_height, Fx_display_mm_width)
24118 (Fx_display_backing_store, Fx_display_visual_class)
24119 (Fw32_select_font, Fx_display_save_under):
24120 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24121 (Fx_display_pixel_height, Fx_display_planes)
24122 (Fx_display_color_cells, Fx_server_max_request_size)
24123 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24124 (Fx_display_save_under): Fix typos in docstrings.
24125
241262007-11-14 Juanma Barranquero <lekktu@gmail.com>
24127
24128 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24129 corresponding to deleted entries; they are an implementation detail.
24130 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24131 Remove variables.
24132 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24133 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24134 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24135 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24136 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24137 (Fw32_define_rgb_color, Fw32_load_color_file)
24138 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24139 Fix typos in docstrings.
24140 (Fx_server_version): Reflow docstring.
24141 (Fw32_shell_execute): Doc fixes.
24142
241432007-11-13 Juanma Barranquero <lekktu@gmail.com>
24144
24145 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24146 if w32_parse_hot_key returned nil.
24147
241482007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24149
24150 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24151
241522007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 24153
aac0c6e3
MR
24154 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24155
24156 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24157
24158 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24159 Remove W32_SCROLL_BAR_CLICK_EVENT.
24160
24161 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24162 Add MULTIMEDIA_KEY_EVENT.
24163
24164 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24165 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24166 (make_lispy_event) [WINDOWSNT]: Use it to translate
24167 MULTIMEDIA_KEY_EVENT.
24168
24169 * w32term.h (WM_APPCOMMAND): Define if not already.
24170 (GET_APPCOMMAND_LPARAM): Likewise.
24171
24172 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24173 WM_APPCOMMAND.
24174
24175 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24176 (syms_of_w32fns): Export and initialize it.
24177 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24178
241792007-11-09 Chong Yidong <cyd@stupidchicken.com>
24180
24181 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24182 twice.
24183
24184 * xdisp.c (handle_face_prop): Fix last change.
24185
241862007-11-09 Richard Stallman <rms@gnu.org>
24187
24188 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24189 not just for after-strings and before-strings.
24190 Call face_for_overlay_string and pass the overlay to it.
24191 (handle_display_prop): Determine whether property came from an overlay.
24192 Pass OVERLAY arg to handle_single_display_spec.
24193 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24194 (load_overlay_strings): Fill in it->string_overlays.
24195 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24196
24197 * xfaces.c (face_for_overlay_string): Function renamed from
24198 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24199
24200 * dispextern.h (struct it): New elt string_overlays.
24201 New elt from_overlay, also in stack.
24202 Rearrange a few elements.
24203 (face_for_overlay_string): Decl renamed from
24204 face_at_buffer_position_no_overlays, and add argument.
24205
242062007-11-09 Richard Stallman <rms@gnu.org>
24207
24208 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24209 to get the base face for an overlay string.
24210
24211 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24212
24213 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24214
24215 * xdisp.c (handle_stop): Move some code out of loop.
24216
242172007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24218
24219 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24220 Fix conversion from Lisp object to ATSUFontID.
24221
242222007-11-09 Jason Rumney <jasonr@gnu.org>
24223
24224 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24225
242262007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24227
24228 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24229 Don't assume regions are aligned to page boundary.
24230 (print_load_command_name): Add LC_UUID if defined.
24231
242322007-11-09 Richard Stallman <rms@gnu.org>
24233
24234 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24235
242362007-11-07 Jason Rumney <jasonr@gnu.org>
24237
24238 * s/windows95.h: Remove.
24239
242402007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24241
24242 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24243 abort with a message on unhandled store_type values.
24244
242452007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24246
24247 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24248 Remove HAVE_X11R5 and HAVE_X11R4.
24249
242502007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24251
24252 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24253
242542007-11-01 Johan Bockgård <bojohan@gnu.org>
24255
24256 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24257 Don't set s->stippled_p here, since it has already been set by
24258 x_set_glyph_string_gc from x_draw_glyph_string.
24259
242602007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24261
24262 * sunfns.c: Remove file.
24263
24264 * m/sun386.h:
24265 * m/sun2.h:
24266 * m/sparc.h: Remove Sun windows code.
24267
242682007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24269
24270 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24271 (init_keyboard): Set current_kboard's window-system to nil.
24272 (tty_read_avail_input): Typo.
24273 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24274
242752007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24276
24277 * s/usg5-4.h:
24278 * s/usg5-3.h:
24279 * s/ptx.h:
24280 * m/is386.h:
24281 * m/ibmps2-aix.h:
24282 * Makefile.in: Remove all mentions of X10.
24283
24284 * dispnew.c (syms_of_display): Don't mention version 10.
24285
242862007-10-28 Juanma Barranquero <lekktu@gmail.com>
24287
24288 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24289 ($(BLD)/abbrev.$(O)): Remove.
24290
242912007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24292
24293 Rewrite abbrev.c in Elisp.
24294 * image.c (Qcount): Don't declare as extern.
24295 (syms_of_image): Initialize and staticpro `Qcount'.
24296 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24297 * emacs.c (main): Don't call syms_of_abbrev.
24298 * Makefile.in (obj): Remove abbrev.o.
24299 (abbrev.o): Remove.
24300 * abbrev.c: Remove.
24301
243022007-10-26 Martin Rudalics <rudalics@gmx.at>
24303
24304 * window.c (window_min_size_2): Don't count header-line.
24305
243062007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24307
24308 * frame.h (struct frame): Move all bit fields after the first bit
24309 field to take advantage of the available space. Group all the
24310 chars together to reduce wasted space due to padding.
24311
243122007-10-26 Juanma Barranquero <lekktu@gmail.com>
24313
24314 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24315
24316 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24317 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24318 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24319 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24320 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24321 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24322 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24323 (last_marked, mark_object_loop_halt): Make static.
24324
24325 * frame.c (syms_of_frame) <delete-frame-functions>:
24326 Fix typo in docstring.
24327
243282007-10-25 Juanma Barranquero <lekktu@gmail.com>
24329
24330 * w32.c (init_environment): Fix tiny memory leak.
24331 (w32_get_resource): Remove unused variable `ok'.
24332
243332007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24334
24335 Make `window-system' into a keyboard-local variable (rather than
24336 frame-local as done originally by multi-tty).
24337
24338 * keyboard.h (struct kboard): Add Vwindow_system.
24339 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24340 (mark_kboards): Mark Vwindow_system.
24341
24342 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24343 (init_display): Don't set the obsolete `window-system' frame-param.
24344
24345 * xterm.c (x_term_init):
24346 * w32term.c (w32_create_terminal):
24347 * term.c (init_tty): Set Vwindow_system.
24348 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24349 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24350
24351 * xfns.c (Fx_create_frame, x_create_tip_frame):
24352 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24353 * macfns.c (Fx_create_frame):
24354 Don't set the obsolete `window-system' frame-param.
24355
24356 * frame.h (Qwindow_system): Remove.
24357 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24358 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24359
243602007-10-24 Richard Stallman <rms@gnu.org>
24361
24362 * frame.c (x_figure_window_size): For fullscreen case,
24363 set USPosition | PPosition without clobbering rest of window_prompting.
24364
24365 * keyboard.c (Fcurrent_idle_time): Doc fix.
24366
24367 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24368
243692007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24370
24371 * process.c (unwind_request_sigio): Only define if __ultrix__.
24372
24373 * callproc.c (child_setup): Remove spurious *.
24374
24375 * lisp.h (Fget_text_property): Declare.
24376 (have_menus_p): Declare it here rather than in sys-dep header files.
24377 * macterm.h (have_menus_p):
24378 * msdos.h (have_menus_p):
24379 * xterm.h (have_menus_p): Remove.
24380
24381 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24382 (Fmake_variable_frame_local): Just check the variable's const-ness
24383 rather than checking nil or t.
24384
243852007-10-22 Jason Rumney <jasonr@gnu.org>
24386
24387 * w32fns.c: Include math.h.
24388 (w32_abort): Declaration moved to nt/config.nt.
24389
24390 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24391 (abort): Redefinition moved to nt/config.nt.
24392
24393 * m/windowsnt.h: Remove.
24394
243952007-10-22 Juanma Barranquero <lekktu@gmail.com>
24396
24397 * emacs.c (Fdump_emacs): Fix typo in message.
24398 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24399 <installation-directory>: Reflow docstring.
24400
244012007-10-22 Juri Linkov <juri@jurta.org>
24402
24403 * minibuf.c: Allow minibuffer default to be a list of default values.
24404 With empty input use the first element of this list as returned default.
24405 (string_to_object)
24406 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24407 (read_minibuf): If defalt is cons, set histstring to its car.
24408 (Fread_string): If default_value is cons, set val to its car.
24409 (Fread_buffer): If def is cons, use its car.
24410 (Fcompleting_read): If defalt is cons, set val to its car.
24411
244122007-10-21 Michael Albinus <michael.albinus@gmx.de>
24413
24414 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24415
244162007-10-20 Juanma Barranquero <lekktu@gmail.com>
24417
24418 * doc.c (Fdocumentation): Check for advice in all cases.
24419
244202007-10-19 Chong Yidong <cyd@stupidchicken.com>
24421
24422 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24423
244242007-10-19 Richard Stallman <rms@gnu.org>
24425
24426 * doc.c (Fdocumentation): Check for and handle an advised function.
24427
244282007-10-19 Juanma Barranquero <lekktu@gmail.com>
24429
24430 * process.c (Fset_process_filter): Doc fix.
24431
244322007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24433
24434 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24435 which caused key-translation-map to applied repeatedly (thus breaking
24436 double-mode).
24437
244382007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24439
24440 * xselect.c (x_own_selection, x_handle_selection_clear)
24441 (x_clear_frame_selections):
24442 * w32menu.c (list_of_panes, list_of_items):
24443 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24444 * textprop.c (validate_plist, interval_has_all_properties)
24445 (interval_has_some_properties, interval_has_some_properties_list)
24446 (add_properties, text_property_list):
24447 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24448 * minibuf.c (Fassoc_string):
24449 * macselect.c (x_own_selection, x_clear_frame_selections)
24450 (Fx_disown_selection_internal):
24451 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24452 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24453
244542007-10-17 Chong Yidong <cyd@stupidchicken.com>
24455
24456 * process.c: Link to libs for calling res_init() if available.
24457 (Fmake_network_process): Call res_init() before getaddrinfo or
24458 gethostbyname, if possible.
24459
244602007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24461
24462 * lread.c (read1): Set pvectype for char_tables.
24463
24464 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24465 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24466 Add type checks.
24467 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24468
24469 * alloc.c (free_misc): Use XMISCTYPE.
24470 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24471
244722007-10-17 Glenn Morris <rgm@gnu.org>
24473
24474 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24475 (syms_of_minibuf): Add Qcompletion_ignore_case.
24476 * dired.c (Qcompletion_ignore_case): Change to external.
24477 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24478 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24479 (Fread_file_name): Use it rather than intern'ing.
24480
24481 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24482 (Fread_coding_system): Ignore case of user input.
24483
244842007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24485
24486 * xdisp.c (handle_display_prop): Ignore display specs after
24487 replacing one when string text is being replaced.
24488 (handle_single_display_spec): Pretend as if characters with display
24489 property haven't been consumed only when buffer text is being replaced.
24490
244912007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24492
24493 * xfns.c (Fx_create_frame, Fx_display_list):
24494 * window.c (window_fixed_size_p, enlarge_window)
24495 (shrink_window_lowest_first):
24496 * macterm.c (init_font_name_table):
24497 * macfns.c (Fx_create_frame, Fx_display_list):
24498 * lread.c (close_load_descs):
24499 * keyboard.c (read_char_x_menu_prompt):
24500 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24501 * coding.c (code_convert_region_unwind): Test the type of an object
24502 rather than just !NILP before extracting data from it.
24503
24504 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24505
24506 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24507 (XMISCANY): New macro.
24508 (XMISCTYPE): Use it.
24509 (struct Lisp_Misc_Any): New type.
24510 (union Lisp_Misc): Use it.
24511 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24512 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24513 (find_symbol_value, set_internal, default_value, Fset_default)
24514 (Fmake_variable_buffer_local, Fmake_local_variable)
24515 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24516 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24517 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24518 * alloc.c (allocate_buffer): Set the size and tag.
24519 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24520 Use XMISCANY.
24521 (die): Follow the GNU convention for error messages.
24522 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24523 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24524 tag any more.
24525 (set_buffer_internal_1):
24526 * frame.c (store_frame_param):
24527 * eval.c (specbind):
24528 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24529
24530 * doc.c (Fsnarf_documentation): Simplify.
24531
245322007-10-14 Juanma Barranquero <lekktu@gmail.com>
24533
24534 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24535 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24536
245372007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24538
24539 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24540
245412007-10-14 Juanma Barranquero <lekktu@gmail.com>
24542
24543 * eval.c (do_autoload): Don't save autoloads.
24544
24545 * data.c (Ffset): Save autoload of the function being set.
24546
245472007-10-07 John Paul Wallington <jpw@pobox.com>
24548
24549 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24550 parameter before setting up faces.
24551
245522007-10-13 Eli Zaretskii <eliz@gnu.org>
24553
24554 * ccl.c (Fregister_code_conversion_map):
24555 * keyboard.c (append_tool_bar_item): Reformat last change.
24556
24557 * lisp.h (eabs): Rename from `abs'. All callers changed.
24558
245592007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24560
24561 * buffer.c (add_overlay_mod_hooklist):
24562 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24563 * fontset.c (make_fontset):
24564 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24565 (append_tool_bar_item):
24566 * macmenu.c (grow_menu_items):
24567 * w32menu.c (grow_menu_items):
24568 * xmenu.c (grow_menu_items): Use larger_vector.
24569
245702007-10-13 Eli Zaretskii <eliz@gnu.org>
24571
24572 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24573 selected frame'' on MSDOS).
24574
245752007-10-12 Martin Rudalics <rudalics@gmx.at>
24576
24577 * frame.c (Qexplicit_name): New variable.
24578 (x_report_frame_params): Report it in parameter alist.
24579 (syms_of_frame): Intern and staticpro it.
24580
245812007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24582
24583 * macfns.c (x_create_tip_frame): Set terminal for frame.
24584
245852007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24586
24587 * frame.c (Qenvironment): Remove.
24588 (syms_of_frame) <Qenvironment>: Don't initialize.
24589 (Fdelete_frame): Don't treat the `environment' param specially.
24590 * frame.h (Qenvironment): Don't declare.
24591 * callproc.c (set_initial_environment): Don't set unused frame param.
24592
24593 * frame.c (Fframe_with_environment): Remove.
24594 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24595
24596 * lisp.h (Fframe_with_environment): Don't declare.
24597
245982007-10-10 Juanma Barranquero <lekktu@gmail.com>
24599
24600 * indent.c (indent_tabs_mode, last_known_column)
24601 (last_known_column_modified): Make static.
24602 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24603
246042007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24605
24606 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24607
246082007-10-09 Jason Rumney <jasonr@gnu.org>
24609
24610 * w32term.c (x_set_window_size): Disable code that attempts to tell
24611 Lisp code about a size change before it actually happens.
24612
246132007-10-09 Richard Stallman <rms@gnu.org>
24614
24615 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24616 return HANDLED_RETURN.
24617
246182007-10-08 Martin Rudalics <rudalics@gmx.at>
24619
24620 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24621 when there's an unread command event.
24622
24623 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24624 window autoselection act appropriately when leaving selected frame.
24625 (syms_of_frame): Initialize focus_follows_mouse.
24626 * frame.h (focus_follows_mouse): Extern it.
24627 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24628 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24629 * msdos.c (dos_rawgetc): Likewise.
24630 * w32term.c (w32_read_socket): Likewise.
24631 * xterm.c (handle_one_xevent): Likewise.
24632 * xdisp.c (syms_of_xdisp): In doc-string of
24633 mouse-autoselect-window mention focus-follows-mouse.
24634
246352007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24636
24637 * macterm.c (mac_load_query_font): Fix missing return value.
24638 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24639 Add BLOCK_INPUT.
24640
246412007-10-08 Richard Stallman <rms@gnu.org>
24642
24643 * xdisp.c (get_window_cursor_type): Implement documented behavior
24644 for cursor-in-non-selected-windows = t.
24645
246462007-10-08 Jason Rumney <jasonr@gnu.org>
24647
24648 * w32.c (w32_get_resource): Always close registry keys.
24649
246502007-10-08 Jason Rumney <jasonr@gnu.org>
24651
24652 * makefile.w32-in (LIBS): Add COMCTL32.
24653
24654 * w32fns.c (globals_of_w32fns): Init common controls.
24655
246562007-10-08 Richard Stallman <rms@gnu.org>
24657
24658 * image.c (our_memory_buffer): Rename from omfib_buffer.
24659
246602007-10-08 Richard Stallman <rms@gnu.org>
24661
24662 * buffer.c (Foverlays_at): Doc fix.
24663
246642007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24665
24666 * fns.c (Fplist_put): Preserve uneven tail data.
24667
246682007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24669
24670 * termhooks.h (enum event_kind): Remove trailing comma.
24671
24672 * frame.h (enum): Remove trailing comma.
24673
246742007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24675
24676 * w32proc.c (delete_child): Don't terminate threads of zombies.
24677
246782007-10-08 Martin Rudalics <rudalics@gmx.at>
24679
24680 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24681
24682 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24683 last-repeatable-command.
24684 (init_kboard): Initialize Vlast_repeatable_command.
24685 (command_loop_1): Set it to real_this_command unless that was
24686 bound to an input event.
24687 (mark_kboards): Mark it.
24688
246892007-10-08 Richard Stallman <rms@gnu.org>
24690
24691 * eval.c (condition-case): Doc fix.
24692
246932007-10-08 Masatake YAMATO <jet@gyve.org>
24694
24695 * xfaces.c (tty_supports_face_attributes_p): Fix code
24696 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24697 was copied and not edited.
24698
246992007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24700
24701 Add new `input-decode-map' keymap and use it for terminal
24702 escape sequences.
24703 * keyboard.h (struct kboard): Add Vinput_decode_map.
24704 Remove Vlocal_key_translation_map.
24705 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24706 (init_kboard): Init input-decode-map.
24707 Replace local-key-translation-map back with key-translation-map.
24708 (syms_of_keyboard): Declare input-decode-map.
24709 Remove local-key-translation-map. Update docstrings.
24710 (mark_kboards): Mark Vinput_decode_map.
24711 Don't mark Vlocal_key_translation_map.
24712 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24713 Replace local-key-translation-map back with key-translation-map.
24714 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24715 Bind in input-decode-map rather than function-key-map.
24716
24717 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24718 This was made redundant by the previous introduction of XSETPVECTYPE.
24719
247202007-10-09 Richard Stallman <rms@gnu.org>
24721
24722 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24723
247242007-09-29 Richard Stallman <rms@gnu.org>
24725
24726 * eval.c (internal_condition_case_2, internal_condition_case_1)
24727 (internal_condition_case): Reenable abort if x_catching_errors ()
24728 to see if that really happens and why.
24729
247302007-10-06 Andreas Schwab <schwab@suse.de>
24731
24732 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24733
247342007-10-04 Juanma Barranquero <lekktu@gmail.com>
24735
24736 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24737
247382007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24739
24740 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24741
247422007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24743
24744 * window.h (struct window):
24745 * window.c (struct save_window_data, struct saved_window):
24746 * termhooks.h (struct terminal):
24747 * process.h (struct Lisp_Process):
24748 * frame.h (struct frame):
24749 * buffer.h (struct buffer):
24750 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24751 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24752 The size field of (pseudo)vectors is now unsigned.
24753 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24754
24755 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24756 Turn `count' into an integer.
24757
24758 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24759 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24760 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24761 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24762 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24763
24764 * alloc.c (allocate_pseudovector): New fun.
24765 (ALLOCATE_PSEUDOVECTOR): New macro.
24766 (allocate_window, allocate_terminal, allocate_frame)
24767 (allocate_process): Use it.
24768 (mark_vectorlike): New function.
24769 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24770 (mark_terminals): Use it.
24771 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24772 (Fmake_byte_code): Use XSETPVECTYPE.
24773
24774 * frame.c (Fframe_parameters): Minor simplification.
24775
24776 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24777
24778 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24779
24780 * buffer.c (Fget_buffer_create, init_buffer_once):
24781 * lread.c (defsubr):
24782 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24783
24784 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24785 defined differently in the m/*.h files.
24786 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24787 (XSETPVECTYPE): New macro.
24788 (XSETPSEUDOVECTOR): Use it.
24789
24790 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24791 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24792
24793 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24794 * lread.c (defvar_per_buffer):
24795 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24796
24797 * window.c (candidate_window_p): Only consider as visible frames that
24798 are on the same terminal.
24799
24800 * m/ibms390x.h (MARKBIT): Remove unused macro.
24801
248022007-10-01 Juanma Barranquero <lekktu@gmail.com>
24803
24804 * lread.c (Fload): Fix typo in docstring.
24805
248062007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24807
24808 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24809 of a non-zero value can't yield zero.
24810
248112007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24812
24813 * term.c (term_clear_mouse_face, term_mouse_highlight)
24814 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24815
24816 * print.c (safe_debug_print): Use XHASH.
24817
24818 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24819 Lisp elements such as tags.
24820 (XHASH): New macro.
24821 (EQ): Use it.
24822 (SREF, SSET, STRING_COPYIN): Use SDATA.
24823 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24824
24825 * alloc.c (mark_terminal): Remove left-over declaration.
24826 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24827 (allocate_vectorlike): Remove type argument. Adjust callers.
24828 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24829 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24830
24831 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24832 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24833 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24834 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24835 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24836 Use them.
24837
24838 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24839 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24840 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24841
248422007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24843
24844 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24845 loaded by default.
24846
248472007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24848
24849 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24850 on this tty.
24851 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24852
24853 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24854 Update all users.
24855 (handle_one_term_event): Use Gpm_DrawPointer.
24856 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24857 Signal errors instead of returning nil. Always return nil.
24858 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24859 Make it a noop if gpm-mouse was not activated.
24860 (syms_of_term): Update names.
24861
248622007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24863
24864 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24865 (init_sys_modes): Check that gpm_tty is the current tty.
24866
24867 * alloc.c (allocate_terminal): Set the vector size to only count the
24868 lisp fields. Initialize those to nil.
24869 (mark_object): Don't treat terminals specially.
24870 (mark_terminal): Remove.
24871 (mark_terminals): Use mark_object instead.
24872
24873 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24874 the GC to the beginning.
24875
24876 * indent.h:
24877 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24878
24879 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24880
248812007-09-25 Jason Rumney <jasonr@gnu.org>
24882
24883 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24884
24885 * w32console.c (create_w32cons_output): Remove.
24886
24887 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24888
24889 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24890 (reset_sys_modes): Use reset_terminal_modes_hook.
24891
248922007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24893
24894 * eval.c (do_autoload): Don't output any message.
24895
248962007-09-24 Juri Linkov <juri@jurta.org>
24897
24898 * emacs.c (standard_args): Change priority of "--no-splash"
24899 from 40 to 3. Add "--no-desktop" with the same priority.
24900
249012007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24902
24903 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24904 and optimize the case where they are all 1.
24905
249062007-09-23 Johannes Weiner <hannes@saeurebad.de>
24907
24908 * lisp.h (abs): Define if not defined.
24909 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24910 Don't define `abs', since it's defined in lisp.h.
24911
249122007-09-22 Eli Zaretskii <eliz@gnu.org>
24913
24914 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24915 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24916 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24917 (init_tty): Use DEV_TTY instead of "/dev/tty".
24918 [WINDOWSNT]: No need to protect from NAME arg being null.
24919
249202007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24921
24922 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24923 up the tty state.
24924
249252007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24926
24927 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24928 (gpm_tty): Change its type.
24929 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24930 (gpm_tty): Change its type and initialize it.
24931 (Fterm_open_connection): Check the frame is indeed a tty.
24932 Use the new gpm_tty.
24933 (Fterm_close_connection): Use the new gpm_tty.
24934 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24935 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24936
249372007-09-21 Juanma Barranquero <lekktu@gmail.com>
24938
24939 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24940 underline_color, to draw strike-through.
24941
249422007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24943
24944 * lisp.h (allocate_terminal): Declare.
24945
24946 * window.c (candidate_window_p): Consider frames that are being placed
24947 by the user as somewhere between visible and iconified.
24948 (window_loop): Prefer windows on the current frame.
24949 (Fselect_window): Move the use of select-frame to the beginning so we
24950 can just delegate all the work (it'll call us back anyway).
24951
24952 * frame.c (Qdisplay_environment_variable):
24953 * frame.h (Qdisplay_environment_variable): Delete.
24954
24955 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24956 of the first arg, since that value may be a union.
24957
24958 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24959 parameter rather than Qdisplay_environment_variable. If all else
24960 fails, look for DISPLAY in initial-environment.
24961
249622007-09-21 Glenn Morris <rgm@gnu.org>
24963
24964 * Makefile.in (emacstool): Remove target.
24965 (lisp, shortlisp): Remove termdev.elc.
24966
249672007-09-21 Markus Triska <markus.triska@gmx.at>
24968
24969 * xterm.c (x_delete_display): Compile session management conditionally.
24970
249712007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24972
24973 * callproc.c (getenv_internal_1): New function.
24974 (getenv_internal): Use it.
24975 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24976
24977 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24978 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24979 (Fset_terminal_parameter): Work with dead terminals as well.
24980 (Fmodify_terminal_parameters): Remove.
24981
24982 * terminal.c (get_terminal): Handle terminals.
24983 Make sure the terminal returned is live.
24984 (create_terminal): Use allocate_terminal.
24985 (mark_terminals): Move to alloc.c.
24986 (delete_terminal): Use terminal->name as liveness status.
24987 NULL out fields after freeing their contents.
24988 Don't deallocate the object.
24989 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24990 rather than an int.
24991 (Fterminal_live_p): Accept non-integer arguments.
24992 (Fterminal_list): Return terminal objects rather than an ints.
24993
24994 * alloc.c (enum mem_type): New member for `terminal' objects.
24995 (allocate_terminal): New function.
24996 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24997 Handle terminals.
24998 (mark_terminal): New fun.
24999 (mark_terminals): Move from terminal.c.
25000
25001 * term.c (get_tty_terminal): Don't treat output_initial specially.
25002 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25003 (delete_tty): Use terminal->name as liveness status.
25004
25005 * termhooks.h (struct terminal): Make it into a pseudovector.
25006 Remove `deleted' replaced by checking `name's nullness.
25007
25008 * print.c (print_object): Handle terminals.
25009
25010 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25011 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25012
25013 * frame.c (make_terminal_frame):
25014 * keyboard.c (tty_read_avail_input):
25015 * w32term.c (x_delete_terminal):
25016 * xfns.c (Fx_create_frame, x_create_tip_frame):
25017 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25018
250192007-09-20 Glenn Morris <rgm@gnu.org>
25020
25021 * process.c (Fmake_network_process): Doc fix.
25022
250232007-09-19 Jason Rumney <jasonr@gnu.org>
25024
25025 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25026
250272007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25028
25029 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25030 Fix a C warning regarding variable constness.
25031
25032 * xterm.c (handle_one_xevent): Fix a C warning.
25033
250342007-09-18 Jason Rumney <jasonr@gnu.org>
25035
25036 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25037
250382007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25039
25040 * gtkutil.c (gdpy_def): New variable.
25041 (xg_initialize): Initialize gdpy_def.
25042 (xg_display_close): If no other display exists, set gdpy_def to a
25043 new connection.
25044
250452007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25046
25047 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25048 when we have no file name for the icon.
25049 (xg_tool_bar_expose_callback): Remove.
25050 (xg_create_tool_bar): Don't connect expose signal to
25051 xg_tool_bar_expose_callback.
25052 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25053
250542007-09-16 Andreas Schwab <schwab@suse.de>
25055
25056 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25057 values instead of zapping them.
25058
250592007-09-14 Glenn Morris <rgm@gnu.org>
25060
25061 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25062 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25063 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25064 scope and rename to omfib_buffer for clarity.
25065 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25066
250672007-09-14 Kenichi Handa <handa@m17n.org>
25068
25069 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25070
250712007-09-13 Jason Rumney <jasonr@gnu.org>
25072
25073 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25074
25075 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25076
25077 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25078 (mac_term_init): Call here instead, passing rif.
25079
250802007-09-13 Glenn Morris <rgm@gnu.org>
25081
25082 * s/hpux.h: No longer define `static' as nothing.
25083
250842007-09-13 Johan Bockgård <bojohan@gnu.org>
25085
25086 * callint.c (Fcall_interactively): Remove unused var `fun'.
25087
250882007-09-12 Romain Francoise <romain@orebokech.com>
25089
25090 * window.c (prefer_window_split_horizontally, display_buffer):
25091 Revert 2007-09-08 change.
25092
250932007-09-12 Glenn Morris <rgm@gnu.org>
25094
25095 * alloca.c: Remove file.
25096 * Makefile.in (alloca): Do not undef.
25097 (allocaobj, alloca.o): Remove.
25098 (otherobj): Remove allocaobj.
25099 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25100 * regex.c (C_ALLOCA): Remove all references and code that was only
25101 used when this was defined.
25102 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25103 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25104 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25105
25106 * Makefile.in (SOURCES, unlock, relock): Delete.
25107
25108 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25109 (menu_grab_callback): All uses changed.
25110
25111 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25112 (x_reply_selection_request): All uses changed.
25113
251142007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25115
25116 * lread.c (load_warn_old_style_backquotes): Change message to look
25117 better when it appears in the middle of byte-compiler messages.
25118
251192007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25120
25121 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25122
25123 * xterm.c (x_create_terminal): Add comment.
25124
25125 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25126
251272007-09-10 Richard Stallman <rms@gnu.org>
25128
25129 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25130
251312007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25132
25133 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25134 (DEFUN): Document `intspec', use it instead of `prompt'.
25135
25136 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25137
25138 * data.c (Finteractive_form): If the interactive specification starts
25139 with a `(', use it as a Lisp form.
25140
25141 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25142 name and file modes.
25143
25144 * callint.c (Fcall_interactively): Comment fixes.
25145
251462007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25147
25148 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25149 and compiled functions.
25150
251512007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25152
25153 * window.c (prefer_window_split_horizontally): New variable.
25154 (display_buffer): Consider splitting window horizontally depending
25155 on prefer_window_split_horizontally.
25156
251572007-09-08 Eli Zaretskii <eliz@gnu.org>
25158
25159 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25160
251612007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25162
25163 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25164
25165 * frame.c (x_set_frame_parameters): Check number is positive before
25166 using XFASTINT.
25167
25168 * window.c (freeze_window_start): Don't presume selected_window holds
25169 a window object.
25170 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25171
251722007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25173
25174 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25175
251762007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25177
25178 * window.c (Vsplit_window_preferred_function): New var.
25179 (Fdisplay_buffer): Use it.
25180 (syms_of_window): Export, and initialize it.
25181
251822007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25183
25184 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25185
251862007-09-06 Glenn Morris <rgm@gnu.org>
25187
25188 * gtkutil.c (menu_grab_callback) <cnt>:
25189 * xselect.c (x_reply_selection_request) <cnt>: Move static
25190 variable to file scope.
25191
251922007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25193
25194 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25195 consistent values of selected_frame and selected_window.
25196
251972007-09-04 Jason Rumney <jasonr@gnu.org>
25198
25199 * w32console.c (initialize_w32_display): Zero unused hooks.
25200
252012007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25202
25203 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25204 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25205
252062007-09-04 Jason Rumney <jasonr@gnu.org>
25207
25208 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25209 in w32console.c. Set up input. Remove XXX comments that have been
25210 confirmed as correct.
25211
25212 * s/ms-w32.h (MULTI_KBOARD): Define.
25213
25214 * w32console.c (one_and_only_w32cons): Remove.
25215 (initialize_w32_display): Take terminal argument.
25216
25217 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25218 initialize_w32_display.
25219 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25220
25221 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25222
25223 * keyboard.c (discard_mouse_events): Discard it.
25224 (make_lispy_event): Translate it to a lisp event.
25225 (lispy_wheel_names): Add wheel-left and right events.
25226 (syms_of_keyboard): Enlarge wheel_syms.
25227
25228 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25229 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25230
25231 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25232
25233 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25234 from WM_MOUSEHWHEEL.
25235 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25236
25237 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25238 terminal.
25239
25240 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25241 keyboard for the terminal.
25242
252432007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25244
25245 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25246 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25247 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25248 and resume-tty-function to resume-tty-hook.
25249 (Fsuspend_tty, Fresume_tty): Use new names.
25250
252512007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25252
25253 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25254 if it starts with "n:".
25255
252562007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25257
25258 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25259
252602007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25261
25262 * frame.h:
25263 * frame.c (Qterm_environment_variable): Remove.
25264 (syms_of_frame): Don't init and staticpro it.
25265
25266 * callproc.c (getenv_internal): Remove special case for $TERM.
25267
25268 * callproc.c (Vinitial_environment): New variable.
25269 (set_initial_environment): Initialize it.
25270 (syms_of_callproc): Declare it.
25271 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25272 TERM under which a process runs is never related to the TERM in which
25273 Emacs is running.
25274
252752007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25276
25277 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25278 * s/darwin.h: ... do it here.
25279
252802007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25281
25282 * lisp.h (set_initial_environment): Rename from set_global_environment.
25283
25284 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25285 removed by mistake on the multi-tty branch.
25286
25287 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25288 (Fmodify_frame_parameters): Return a value.
25289
25290 * image.c (png_load): Comment-out var only used in commented-out code.
25291
25292 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25293 before passing it to mark_object.
25294
25295 * xfaces.c (internal_resolve_face_name): Return a value.
25296 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25297
25298 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25299 (x_icon): Comment-out var only used in commented-out code.
25300
253012007-08-29 Romain Francoise <romain@orebokech.com>
25302
25303 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25304 QUIT hasn't been provided.
25305
253062007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25307
25308 * callproc.c (child_setup, getenv_internal): Use the
25309 display-environment-variable and term-environment-variable frame params.
25310 (set_initial_environment): Initialise Vprocess_environment.
25311
25312 * config.in: Disable multi-keyboard support on a mac.
25313
25314 * frame.c (Qterm_environment_variable)
25315 (Qdisplay_environment_variable): New variables.
25316 (syms_of_frame): Intern and staticpro them.
25317 (Fmake_terminal_frame): Disable output method test.
25318
25319 * frame.h: Declare them here.
25320
25321 * macfns.c (x_set_mouse_color): Get rif from the frame.
25322 (x_set_tool_bar_lines): Don't use updating_frame.
25323 (mac_window): Add 2 new parameters for consistency with other systems.
25324 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25325 frame parameters following what is done in X11 and w32. Don't use
25326 FRAME_MAC_DISPLAY_INFO.
25327 (Fx_open_connection, start_hourglass): Remove window-system check.
25328 (x_create_tip_frame): Get the keyboard from the terminal.
25329
25330 * macmenu.c: Reorder includes.
25331 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25332
25333 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25334 terminal parameter.
25335 (x_clear_frame): Add a frame parameter.
25336 (note_mouse_movement): Get rif from the frame.
25337 (mac_term_init): Initialize the terminal.
25338 (mac_initialize): Make static and move terminal initialization ...
25339 (mac_create_terminal): ... to this new function.
25340
25341 * macterm.h (struct mac_display_info): Add terminal.
25342 (mac_initialize): Delete declaration.
25343
25344 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25345
25346 * sysdep.c: Comment out text after #endif.
25347
25348 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25349 is defined. Better initialize ttys in windows. Use terminal
25350 specific mouse_position_hook.
25351
25352 * termhooks.h (union display_info): Add mac_display_info.
25353
25354 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25355 Set the default minibuffer frame, window_system and the rest of the
25356 frame parameters following what is done in X11.
25357
25358 * w32term.c (w32_initialize): Make static.
25359
25360 * xselect.c (x_handle_selection_clear): Only access
25361 terminal->kboard when MULTI_KBOARD is defined.
25362
25363 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25364 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25365
253662007-08-29 Jason Rumney <jasonr@gnu.org>
25367
25368 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25369 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25370
25371 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25372 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25373
25374 * keyboard.c (restore_kboard_configuration): Only define when
25375 MULTI_KBOARD defined.
25376
25377 * makefile.w32-in: Update dependancies from Makefile.in.
25378 (OBJ1): Add terminal.$(O)
25379
25380 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25381 Don't define function body.
25382 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25383
25384 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25385
25386 * w32.c (request_sigio, unrequest_sigio): Remove.
25387
25388 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25389 (w32con_clear_frame, w32con_clear_end_of_line)
25390 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25391 (w32con_delete_glyphs, w32con_set_terminal_window)
25392 (scroll_line, w32_sys_ring_bell): Add frame arg.
25393 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25394 Add terminal arg.
25395 (PICK_FRAME): Remove.
25396 (w32con_write_glyphs): Use frame specific terminal coding.
25397 (one_and_only_w32cons): New global variable.
25398 (initialize_w32_display): Use it for storing hooks.
25399 (create_w32cons_output): New function.
25400
25401 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25402 arg a frame.
25403
25404 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25405 Set window_system.
25406 (x_set_tool_bar_lines): Don't use updating_frame.
25407 (Fx_create_frame): Set terminal and ref count.
25408 (Fx_open_connection): Remove window-system check.
25409
25410 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25411
25412 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25413 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25414 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25415 Add frame arg.
25416 (x_delete_terminal, w32_create_terminal): New functions.
25417 (w32_term_init): Create a terminal.
25418 (w32_initialize): Move terminal specific initialization to
25419 w32_create_terminal.
25420
25421 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25422 (w32_clear_rect, w32_clear_area): Use background from frame.
25423 (w32_display_info): Add terminal.
25424 (w32_sys_ring_bell, x_delete_display): Declare here.
25425
25426 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25427
25428 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25429
254302007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25431
25432 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25433 Fix get_named_tty calls for the controlling tty.
25434
254352007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25436
194d44e7 25437 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
25438
254392007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25440
25441 * term.c (tty_insert_glyphs): Add missing first parameter.
25442
254432007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25444
25445 * buffer.c (Fbuffer_list, Fbury_buffer):
25446 Take frame->buried_buffer_list into account.
25447
25448 * cm.c (current_tty): New variable, for cmputc().
25449 (cmputc): Use it.
25450 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25451 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25452 (cmgoto): Add tty parameter. Pass it on to calccost().
25453 Use emacs_tputs() instead of tputs().
25454
25455 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25456 tputs().
25457 (current_tty): New variable, for cmputc().
25458 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25459
25460 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25461 (internal_condition_case, internal_condition_case_1)
25462 (internal_condition_case_2): Don't abort when x_catching_errors.
25463
25464 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25465 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25466 prevent crashes caused by bogus longjmps in read_char.
25467
25468 * keymap.h (Fset_keymap_parent): Add EXFUN.
25469
25470 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25471 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25472 Remove redundant definition.
25473
25474 * macfns.c (x_set_mouse_color, x_make_gc):
25475 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25476
25477 * w32term.c (x_free_frame_resources):
25478 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25479 (w32_initialize): Use the accessor macros for terminal characteristics.
25480
25481 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25482 Use the accessor macros for terminal characteristics.
25483 * msdos.c (internal_terminal_init): Use the accessor macros for
25484 terminal characteristics.
25485 (ScreenVisualBell, internal_terminal_init):
25486 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25487
25488 * termopts.h (no_redraw_on_reenter): Declare.
25489
25490 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25491 (mark_terminals, mark_ttys): Declare.
25492 (Fgarbage_collect): Call them.
25493 (mark_object): Mark buried_buffer_list.
25494
25495 * prefix-args.c: Include stdlib.h for exit.
25496
25497 * syssignal.h: Add comment.
25498
25499 * indent.c: Include stdio.h.
25500
25501 * window.h (Vinitial_window_system): Declare.
25502 (Vwindow_system): Delete declaration.
25503
25504 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25505
25506 * image.c (lookup_image): Don't initialize `c' until the xasserts
25507 have been run.
25508
25509 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25510 FRAME_FOREGROUND_PIXEL.
25511
25512 * print.c (print_preprocess): Don't lose print_depth levels while
25513 iterating.
25514
25515 * widget.c (update_from_various_frame_slots):
25516 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25517
25518 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25519 frames.
25520 (window_internal_height): Remove bogus make_number call.
25521 (init_window_once): Call make_terminal_frame with two zero parameters.
25522
25523 * fileio.c (Fread_file_name): Update comment.
25524
25525 * callint.c (Fcall_interactively):
25526 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25527 Make sure it is correctly unwound.
25528
25529 * xsmfns.c (x_session_close): New function.
25530
25531 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25532 Delete declarations.
25533
25534 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25535 (x_output): Remove background_pixel and foreground_pixel fields.
25536 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25537 (x_delete_device, x_session_close): Declare.
25538
25539 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25540 (read_filtered_event): Call `read_char' with a local
25541 `wrong_kboard_jmpbuf'.
25542
25543 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25544 Don't call single_kboard_state. Use FRAME_RIF.
25545
25546 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25547 systems.
25548
25549 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25550 (Fframe_with_environment, Fset_input_meta_mode)
25551 (Fset_quit_char): EXFUN.
25552 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25553 (init_sys_modes, reset_sys_modes): Update prototypes.
25554 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25555
25556 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25557 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25558 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25559 Delete declarations.
25560 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25561 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25562 New declarations.
25563
25564 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25565 already does that during init_display(). Call syms_of_keymap
25566 before syms_of_keyboard. Call `syms_of_terminal'.
25567 Call set_initial_environment, not set_process_environment.
25568 (shut_down_emacs): Call reset_all_sys_modes() instead of
25569 reset_sys_modes().
25570
25571 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25572 (internal_resolve_face_name, resolve_face_name_error): New functions.
25573 (resolve_face_name): Protect against loops and errors thrown by Fget.
25574 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25575 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25576
25577 * scroll.c: Replace CURTTY() with local variables throughout the
25578 file (where applicable).
25579 (calculate_scrolling, calculate_direct_scrolling)
25580 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25581 characteristics.
25582
25583 * keymap.c (Vfunction_key_map): Remove.
25584 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25585 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25586 (Vkey_translation_map): Remove.
25587 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25588 (Fdescribe_buffer_bindings)
25589 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25590 Update for terminal-local key-translation-map.
25591
25592 * Makefile.in (callproc.o): Update dependencies.
25593 (lisp, shortlisp): Add termdev.elc.
25594 (obj): Add terminal.o.
25595 (terminal.o): Add dependencies.
25596 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25597 (data.o, fns.o): Add termhooks.h dependency.
25598 (SOME_MACHINE_LISP): Add dnd.elc.
25599 (minibuf.o): Fix typo.
25600 Update dependencies.
25601
25602 * data.c (do_symval_forwarding, store_symval_forwarding)
25603 (find_symbol_value): Use the selected frame's keyboard, not
25604 current_kboard.
25605
25606 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25607 Vwindow_system.
25608
25609 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25610 Fmenu_bar_open.
25611 (syms_of_xmenu): Update defsubr.
25612 (mouse_position_for_popup, Fx_popup_menu)
25613 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25614 (set_frame_menubar, free_frame_menubar)
b97439ce 25615 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
25616 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25617 an X frame.
25618
25619 * xselect.c (x_own_selection): Abort if not an X frame.
25620 (some_frame_on_display): Check if it is an X frame.
25621 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25622
25623 * coding.c: Include frame.h and termhooks.h.
25624 (terminal_coding, keyboard_coding): Delete.
25625 (Fset_terminal_coding_system_internal)
25626 (Fset_keyboard_coding_system_internal)
25627 (Fkeyboard_coding_system)
25628 (Fterminal_coding_system): Add a terminal parameter.
25629 Get terminal_coding from the terminal.
25630 (init_coding_once): Don't call setup_coding_system here.
25631
25632 * dispextern.h (set_scroll_region, turn_off_insert)
25633 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25634 (tty_clear_end_of_line, tty_setup_colors)
25635 (delete_tty, updating_frame)
25636 (produce_special_glyphs, produce_glyphs, write_glyphs)
25637 (insert_glyphs): Remove.
25638 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25639 (tty_turn_off_highlight, get_tty_size): Add declaration.
25640 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25641
25642 * frame.h (enum output_method): Add output_initial.
25643 (struct x_output): Delete.
25644 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25645 Access foreground_pixel and background_pixel directly from the frame.
25646 (tty_display): Delete.
25647 (struct frame): Add buried_buffer_list, foreground_pixel,
25648 background_pixel and terminal. Delete kboard.
25649 (union output_data): Add tty.
25650 (FRAME_KBOARD): Get the kboard from the terminal.
25651 (FRAME_INITIAL_P): New macro.
25652 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25653 (Qterm_environment_variable, Qdisplay_environment_variable)
25654 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25655 New declarations.
25656
25657 * termchar.h (tty_output, tty_display_info): New structures.
25658 (tty_list): Declare.
25659 (FRAME_TTY, CURTTY): New macros.
25660 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25661 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25662 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25663 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25664
25665 * callproc.c: Include frame.h and termhooks.h, for terminal
25666 parameters.
25667 (add_env): New function.
25668 (child_setup): Use it.
25669 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25670 (getenv_internal): Fix get_terminal_param call.
25671 (Fgetenv_internal, egetenv): Update doc.
25672 (syms_of_callproc): Initialize Vprocess_environment to nil.
25673 Register and initialize them. Remove obsolete defvars. Update doc
25674 strings.
25675 (child_setup): Handle Vlocal_environment_variables.
25676 (getenv_internal): Add terminal parameter.
25677 Handle Vlocal_environment_variables.
25678 (Fgetenv_internal): Add terminal parameter.
25679 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25680 environment in a frame (not terminal) parameter. Update doc strings.
25681 (set_initial_environment): Rename from set_global_environment.
25682 Store Emacs environment in initial frame parameter.
25683
25684 * xdisp.c (redisplay_internal): Update references to
25685 `previous_terminal_frame'.
25686 (display_mode_line, Fformat_mode_line): Replace calls to
25687 `push_frame_kboard' with `push_kboard'.
25688 (get_glyph_string_clip_rects): Add extra parentheses and
25689 braces to prevent compiler warnings.
25690 (calc_pixel_width_or_height): Add xassert to check that the
25691 frame is alive. Don't call `lookup_image' on a termcap frame.
25692 (message2_nolog, message3_nolog, redisplay_internal)
25693 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25694 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25695 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25696 (Fx_display_pixel_width, Fx_display_pixel_height)
25697 (Fx_display_planes, Fx_display_color_cells)
25698 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25699 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25700 (Fx_display_backing_store, Fx_display_visual_class)
25701 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25702 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25703
25704 * xfns.c (x_set_foreground_color x_set_background_color)
25705 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25706 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25707 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25708 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25709 terminal that is being deleted.
25710 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25711 frame parameter, and make sure it overrides any user-supplied setting.
25712 (Fx_close_connection, Fx_synchronize): Unify argument names with
25713 the rest of the DEFUNs.
25714
25715 * dispnew.c (Fsend_string_to_terminal): Update call to
25716 `get_tty_terminal'.
25717 (Fredraw_frame, Fsend_string_to_terminal)
25718 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25719 FRAME_TERMCAP_P and FRAME_TTY.
25720 (window_change_signal): Don't believe width/height values that are
25721 impossibly small.
25722 (Vinitial_window_system): Rename from Vwindow_system.
25723 (termscript, Wcm, rif): Delete.
25724
25725 * termhooks.h (struct terminal): New struct containing the
25726 previously global text display hooks and new members NAME,
25727 DELETED and PARAM_ALIST.
25728 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25729 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25730 (FRAME_RIF): New macros.
25731 (get_terminal_param, get_device): New declarations.
25732 (termscript): Delete declaration.
25733
25734 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25735 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25736 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25737 FRAME_FOREGROUND_PIXEL.
25738 (x_fully_uncatch_errors): Disable definition.
25739 (x_scroll_bar_expose): Fix reference to foreground pixel.
25740 (XTread_socket): Disable loop on all X displays.
25741 (x_delete_terminal): Don't set terminal->deleted and let
25742 delete_terminal delete the frames on the terminal.
25743 (x_delete_display): Doc update to reflect changes in
25744 delete_terminal.
25745 (x_display_info) <terminal>: Move member earlier in the struct.
25746 (deleting_tty): Remove old variable.
25747 (Fsuspend_tty): Call clear_tty_hooks.
25748 (Fresume_tty, init_tty): Call set_tty_hooks.
25749 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25750 errors on X frames.
25751 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25752 (handle_one_xevent): Initialize `f' to NULL.
25753 (x_delete_terminal, x_create_terminal): New functions.
25754 (XTset_terminal_modes, XTreset_terminal_modes)
25755 (XTread_socket, x_connection_closed, x_term_init)
25756 (x_term_init, x_delete_display): Add terminal parameter.
25757 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25758 X connections.
25759
25760 * frame.c: Include termchar.h.
25761 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25762 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25763 (Qdisplay_environment_variable): New vars.
25764 (Fframep): Deal with output_initial.
25765 (Fframe-live-p): Doc fix.
25766 (Fwindow-system): New function.
25767 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25768 (make_terminal_frame): Don't create frames on a terminal that is
25769 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25770 (store_frame_param): Check for found_for_frame before calling XFRAME.
25771 (Fmake_terminal_frame): Handle NULL tty names correctly.
25772 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25773 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25774 frames to refer to a deleted frame in their 'environment parameter.
25775 (Fframe_with_environment): New function.
25776 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25777 (get_future_frame_param): New function.
25778 (Fmake_terminal_frame): Use it.
25779 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25780
25781 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25782 * sysdep.c (reset_sys_modes): Update for renames.
25783
25784 * keyboard.c (tty_read_avail_input): New function.
25785 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25786 (syms_of_keyboard): Defsubr them.
25787 (Fset_input_meta_mode, Fset_quit_char): New functions.
25788 (Fset_input_mode): Split to above functions.
25789 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25790 parameter. Use it in call to `read_char'.
25791 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25792 Set wrong_kboard_jmpbuf correctly in recursive calls.
25793 Use current_kboard to access Vkeyboard_translate_table.
25794 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25795 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25796 Update longjmp invocations. Remember the original current_kboard,
25797 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25798 changes it. Comment out unnecessary calls to
25799 `record_single_kboard_state' and `any_kboard_state'.
25800 Update recursive calls.
25801 (wrong_kboard_jmpbuf): Remove global variable.
25802 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25803 Handle deleted interrupted_kboards correctly; that is a legal
25804 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25805 and read_char calls. Abort if interrupted_kboard died in read_char.
25806 (any_kboard_state, single_kboard_state)
25807 (push_frame_kboard): Remove function.
25808 (pop_kboard): Switch out of single_kboard mode if the kboard has
25809 been deleted. Remove unused variable. Help debugging by not
25810 changing current_kboard unnecessarily. Set current_kboard to the
25811 kboard of the selected frame when the stored kboard object has
25812 been deleted before pop_kboard.
25813 (temporarily_switch_to_single_kboard): Change first parameter to a
25814 frame pointer. Throw an error when caller wants to change kboards
25815 while in single_kboard mode. Don't push_kboard if we weren't in
25816 single kboard state. Don't pop_kboard if we popped into any
25817 kboard state.
25818 (restore_kboard_configuration): Abort if pop_kboard changed the
25819 kboard in single_kboard mode. Call pop_kboard only after setting
25820 up single_kboard mode.
25821 (Frecursive_edit): Switch to single_kboard mode only in nested
25822 command loops.
25823 (cmd_error, command_loop, command_loop_1, timer_check):
25824 Comment out unnecessary call to `any_kboard_state' and
25825 `record_single_kboard_state'.
25826 (delete_kboard): Exit single_kboard mode if we have just deleted
25827 that kboard. Use FRAME_KBOARD.
25828 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25829 `fatal_error_signal'.
25830 (record_single_kboard_state): Don't push_kboard if we weren't in
25831 single kboard state. Don't pop_kboard if we popped into any
25832 kboard state.
25833 (push_frame_kboard): Rename to push_kboard.
25834 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25835 (read_avail_input): Read input from all terminals.
25836 (mark_kboards): Also mark Vkeyboard_translate_table.
25837 (kbd_buffer_store_event_hold): Simplify condition.
25838 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25839 (Vkeyboard_translate_table): Move to struct kboard.
25840 (init_kboard): Initialize Vkeyboard_translate_table.
25841 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25842 Vkeyboard_translate_table. Update doc strings. Update docs of
25843 local-function-key-map and function-key-map.
25844
25845 * terminal.c: New file.
25846
25847 * term.c: Include errno.h.
25848 (Vring_bell_function, device_list, initial_device)
25849 (next_device_id, ring_bell, update_begin, update_end)
25850 (set_terminal_window, cursor_to, raw_cursor_to)
25851 (clear_to_end, clear_frame, clear_end_of_line)
25852 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25853 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25854 (syms_of_term): Move their initialization to terminal.c.
25855 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25856 (Ftty_display_color_cells)
25857 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25858 (clear_tty_hooks, set_tty_hooks)
25859 (init_tty, maybe_fatal): New functions.
25860 (Ftty_type): Return nil if terminal is not on a tty instead of
25861 throwing an error. Doc update.
25862 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25863 Doc update. Initialize new subrs and variables.
25864 (delete_tty): Use terminal->deleted.
25865 (tty_set_terminal_modes): Rename from set_terminal_modes.
25866 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25867 (set_scroll_region): Rename to `tty_set_scroll_region'.
25868 (turn_on_insert): Rename to `tty_turn_on_insert'.
25869 (turn_off_insert): Rename to `tty_turn_off_insert'.
25870 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25871 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25872 (toggle_highligh): Rename to `tty_toggle_highlight'.
25873 (background_highlight): Rename to `tty_background_highlight'.
25874 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25875 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25876 (tty_set_scroll_region, tty_background_highlight)
25877 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25878 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25879 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25880 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25881 Add static modifier.
25882 (tty_reset_terminal_modes, tty_set_terminal_window)
25883 (tty_set_scroll_region, tty_background_highlight)
25884 (tty_highlight_if_desired, tty_cursor_to)
25885 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25886 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25887 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25888 renames.
25889
258902007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25891
25892 * keyboard.c: Qrtl is new.
25893 (parse_tool_bar_item): Handle :rtl keyword.
25894 (syms_of_keyboard): Intern :rtl keyword.
25895
25896 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25897
25898 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25899 so no Lisp code is executed.
25900 (file_for_image, find_rtl_image): New functions.
25901 (xg_get_image_for_pixmap): Use file_for_image.
25902 (update_frame_tool_bar): If direction is RTL, use RTL image if
25903 defined. Use Gtk stock images if defined.
25904
259052007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25906
25907 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25908 for nonexistent or zero-width glyph in composition glyph.
25909
259102007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25911
25912 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25913
25914 * xdisp.c (Finvisible_p): New function.
25915 (syms_of_xdisp): defsubr it.
25916
259172007-08-24 Juanma Barranquero <lekktu@gmail.com>
25918
25919 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25920 Doc fixes.
25921
259222007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25923
25924 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25925
259262007-08-24 Martin Rudalics <rudalics@gmx.at>
25927
25928 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25929 whether decoding has modified buffer contents.
25930
259312007-08-24 Jason Rumney <jasonr@gnu.org>
25932
25933 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25934 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25935 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25936 (init_svg_functions) [HAVE_NTGUI]: New function.
25937 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25938 (svg_load_image): Use them.
25939 (svg_load_image) [HAVE_NTGUI]: Implement background.
25940
259412007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25942
25943 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25944 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25945 (LIBX): Remove @RSVG_LIBS@.
25946 (LIBES): Add $(RSVG_LIBS).
25947
25948 * image.c (svg_load_image): Blend with specified background if exists.
25949 Use IMAGE_BACKGROUND. Add Mac OS Support.
25950
25951 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25952 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25953 Remove macros.
25954 [MAC_OSX] (socket_callback): Do nothing.
25955 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25956 ReceiveNextEvent.
25957 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25958 socket_callback.
25959 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25960
259612007-08-22 Glenn Morris <rgm@gnu.org>
25962
25963 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25964
259652007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25966
25967 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25968
25969 * image.c: Add support for SVG images. Some additional comments
25970 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25971 (svg_image_p): New function to test for SVG image.
25972 (svg_load): New function to load SVG image.
25973 (svg_load_image): New function, helper for svg_load.
25974 (Qsvg): New Lisp_object.
25975 (svg_keyword_index): New enum.
25976 (svg_format): New static `image_keyword' struct.
25977 (svg_type): New static `image_type' struct.
25978 (librsvg/rsvg.h): Include it.
25979
259802007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25981
25982 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25983
259842007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25985
25986 * lread.c (Qold_style_backquotes): New var.
25987 (syms_of_lread): Init and staticpro it.
25988 (load_warn_old_style_backquotes): New fun.
25989 (Fload): Use them to warn about old style backquotes.
25990 (end_of_file_error, Fload): Remove unused vars.
25991
25992 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25993
25994 * lread.c (Vold_style_backquotes): New var.
25995 (syms_of_lread): Init and export it to Elisp.
25996 (read1): Set it when we find an old-style (back)quote.
25997
259982007-08-22 Jason Rumney <jasonr@gnu.org>
25999
26000 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26001
260022007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26003
26004 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26005
260062007-08-19 Richard Stallman <rms@gnu.org>
26007
26008 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26009
260102007-08-19 Andreas Schwab <schwab@suse.de>
26011
26012 * alloc.c (pure): Round PURESIZE up.
26013
260142007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26015
26016 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26017 active frame.
26018
260192007-08-16 Richard Stallman <rms@gnu.org>
26020
26021 * eval.c (Fcommandp): Add parens to clarify.
26022
26023 * minibuf.c (Fall_completions): Use enum for type of table.
26024
26025 * emacs.c (USAGE2): Improve text.
26026
260272007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26028
26029 * term.c (tty_default_color_capabilities): Declare static
26030 variables in file scope, to avoid HPUX compiler problem.
26031
260322007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26033
26034 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26035 to gtk_toolbar_insert.
26036
260372007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26038
26039 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26040
26041 * insdel.c (reset_var_on_error): New fun.
26042 (signal_before_change, signal_after_change):
26043 Use it to reset (after|before)-change-functions to nil in case of error.
26044 Bind inhibit-modification-hooks to t.
26045 Don't bind (after|before)-change-functions to nil while they run.
26046
260472007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26048
26049 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26050 filling pixmap with stippled background.
26051
260522007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26053
26054 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26055 Don't use invisible frame as parent window for repositioning.
26056
260572007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26058
26059 * print.c (new_backquote_output): Rename from old_backquote_output.
26060 (print): Inverse its logic (according to its name) so as to match the
26061 behavior of new_backquote_flag in lread.c.
26062
260632007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26064
26065 * gmalloc.c (posix_memalign): New function.
26066
26067 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26068 ActivateControl/DeactivateControl here.
26069 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26070 frame-notice-user-settings is non-nil.
26071 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26072 for kEventParamFMFontStyle.
26073 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26074 mac_pass_command_to_system and mac_pass_control_to_system here.
26075 (XTread_socket): Call ActivateControl/DeactivateControl here.
26076 (XTread_socket) [TARGET_API_MAC_CARBON]:
26077 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26078 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26079 for window repositioning.
26080
260812007-08-08 Glenn Morris <rgm@gnu.org>
26082
26083 * Replace `iff' in doc-strings and comments.
26084
260852007-08-07 Chong Yidong <cyd@stupidchicken.com>
26086
26087 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26088
260892007-08-07 Martin Rudalics <rudalics@gmx.at>
26090
26091 * fileio.c (Finsert_file_contents): Run format-decode and
26092 after_insert_file_functions on entire buffer when REPLACE is
26093 non-nil and inhibit modification_hooks and point_motion_hooks.
26094 For consistency, run after_insert_file_functions iff something
26095 got inserted. Move signal_after_change and update_compositions
26096 after code running after_insert_file_functions. Make sure that
26097 undo_list doesn't record intermediate steps of the decoding process.
26098
260992007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26100
26101 * emacs.c (main)
26102 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26103 Call malloc_enable_thread on interactive startup.
26104
26105 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26106 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26107 [USE_PTHREAD]: Conditionalize with it.
26108 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26109 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26110 New functions.
26111
261122007-08-06 Chong Yidong <cyd@stupidchicken.com>
26113
26114 * xdisp.c (redisplay_window): When restoring original buffer
26115 position, make sure it is still valid.
26116
26117 * image.c (png_load): Ignore png-supplied background color.
26118
261192007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26120
26121 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26122 Use kCFAbsoluteTimeIntervalSince1970.
26123
26124 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26125 New variable.
26126 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26127 event loop should be quit.
26128 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26129 Quit dialog event loop if quit_dialog_event_loop is set.
26130
26131 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26132 (Selection): New typedef. Use instead of ScrapRef.
26133 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26134 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26135 (mac_clear_selection): Rename from clear_scrap.
26136 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26137 scrap_has_target_type. All uses changed.
26138 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26139 (mac_selection_has_target_p): New functions.
26140 (mac_put_selection_value): Rename from put_scrap_string.
26141 (mac_get_selection_value): Rename from get_scrap_string.
26142 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26143 (put_scrap_private_timestamp, scrap_has_target_type)
26144 (get_scrap_private_timestamp): Remove functions.
26145 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26146 (x_own_selection, x_get_local_selection):
26147 Use mac_valid_selection_value_p.
26148 (x_own_selection): Don't use put_scrap_private_timestamp.
26149 Record OWNERSHIP-INFO into Vselection_alist instead.
26150 (x_get_local_selection): Don't check type if request is local.
26151 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26152 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26153
261542007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26155
26156 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26157 add comment explaining why.
26158
261592007-08-03 Richard Stallman <rms@gnu.org>
26160
26161 * fileio.c (Fvisited_file_modtime): Use make_time.
26162
261632007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26164
26165 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26166 build.
26167
261682007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26169
26170 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26171
261722007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26173
26174 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26175
261762007-07-30 Richard Stallman <rms@gnu.org>
26177
26178 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26179
261802007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26181
26182 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26183
261842007-07-28 Nick Roberts <nickrob@snap.net.nz>
26185
26186 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26187 remote default-directory.
26188
26189 * buffer.c (mode-line-format): Update doc string.
26190
261912007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26192
26193 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26194 scroll bar gap.
26195 (x_scroll_bar_create): Set bar->fringe_extended_p.
26196 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26197 on frame edge. Check fringe background extension. Don't clear
26198 extended fringe background area.
26199
26200 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26201 (w32_fill_area): Enclose multiple statements with do ... while (0).
26202
26203 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26204 Extend fringe background to scroll bar gap.
26205 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26206 Set bar->fringe_extended_p.
26207 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26208 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26209 background extension. Don't clear extended fringe background area.
26210
26211 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26212 New member fringe_extended_p.
26213
262142007-07-25 Glenn Morris <rgm@gnu.org>
26215
26216 * Relicense all FSF files to GPLv3 or later.
26217
26218 * COPYING: Switch to GPLv3.
26219
262202007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26221
26222 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26223
26224 * data.c (Finteractive_form): Check for the presence of an
26225 `interactive-form' symbol property more thoroughly.
26226
26227 * data.c (Finteractive_form): Use an `interactive-form' property if
26228 present, analogous to the function-documentation property.
26229
262302007-07-24 Jason Rumney <jasonr@gnu.org>
26231
26232 * w32fns.c (x_real_positions): Get real position from OS instead of
26233 calculating it.
26234
262352007-07-23 Jason Rumney <jasonr@gnu.org>
26236
26237 * filelock.c (current_lock_owner): Allow for @ sign in username.
26238
262392007-07-22 Nick Roberts <nickrob@snap.net.nz>
26240
26241 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26242 remote default-directory.
26243
26244 * buffer.c (mode-line-format): Describe above case in doc string.
26245
262462007-07-20 Eli Zaretskii <eliz@gnu.org>
26247
26248 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26249 Define if not defined.
26250
262512007-07-18 Jason Rumney <jasonr@gnu.org>
26252
26253 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26254
262552007-07-18 Richard Stallman <rms@gnu.org>
26256
26257 * data.c (Fsetq_default): Doc fix.
26258
26259 * eval.c (Fsetq): Doc fix.
26260
262612007-07-18 Juanma Barranquero <lekktu@gmail.com>
26262
26263 * coding.c (Ffind_operation_coding_system):
26264 * eval.c (For, Fand): Doc fixes.
26265 Reported by Johan Bockgård.
26266
262672007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26268
26269 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26270
26271 * xterm.h: Declare x_ewmh_activate_frame.
26272
26273 * xterm.c (x_ewmh_activate_frame): New function.
26274 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26275
262762007-07-17 Martin Rudalics <rudalics@gmx.at>
26277
26278 * window.c (Fdisplay_buffer): If largest or LRU window is the
26279 only window, split it even if it is not eligible for splitting.
26280 This restores the original behavior broken by the 2007-07-15
26281 change.
26282
262832007-07-17 Glenn Morris <rgm@gnu.org>
26284
26285 * abbrev.c (abbrev_check_chars): New function.
26286 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26287 Call abbrev_check_chars to check abbrev characters are word
26288 constituents. Doc fix.
26289
262902007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26291
26292 * process.c (Fstart_process, Fmake_network_process)
26293 (read_process_output): Fix up last changes.
26294
262952007-07-16 Eli Zaretskii <eliz@gnu.org>
26296
26297 * makefile.w32-in (clean): Don't delete *~.
26298
262992007-07-16 Andreas Schwab <schwab@suse.de>
26300
26301 * window.c (Fdisplay_buffer): Use NILP.
26302 (Fset_window_scroll_bars): Likewise.
26303
263042007-07-15 Martin Rudalics <rudalics@gmx.at>
26305
26306 * window.c (window_min_size_2): New function.
26307 (window_min_size_1, size_window, Fdisplay_buffer)
26308 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26309 windows without mode- or header-lines when window-min-height is
26310 too small.
26311 (size_window): Reset nodelete_p after testing it, following an
26312 earlier note by Kim F. Storm.
26313 (display_buffer): Do not set split_height_threshold to twice the
26314 value of window_min_height to avoid changing the value of a
26315 customizable variable. Rather explicitly check whether the
26316 height of the window that shall be splitted is at least as large
26317 as split_height_threshold.
26318 (Fwindow_full_width_p): New defun.
26319 (syms_of_window): Defsubr it.
26320
26321 * window.h: Add EXFUN for Fwindow_full_width_p.
26322
263232007-07-14 Jason Rumney <jasonr@gnu.org>
26324
26325 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26326
263272007-07-14 Richard Stallman <rms@gnu.org>
26328
26329 * eval.c (maybe_call_debugger): New function.
26330 (find_handler_clause): Use maybe_call_debugger.
26331 Call it when the handler says `debug'.
26332 Eliminate DEBUGGER_VALUE_PTR.
26333 (Fsignal): Eliminate debugger_value.
26334 (Qdebug): New variable.
26335 (syms_of_eval): Initialize it.
26336
263372007-07-14 Juanma Barranquero <lekktu@gmail.com>
26338
26339 * eval.c (Fprogn):
26340 * keyboard.c (Ftrack_mouse):
26341 * print.c (Fwith_output_to_temp_buffer):
26342 * window.c (Fsave_window_excursion): Doc fix.
26343
263442007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26345
26346 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26347
263482007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26349
26350 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26351 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26352 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26353 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26354 Remove unused encoding_carryover.
26355 * process.c: Adjust all functions accordingly.
26356
263572007-07-12 Richard Stallman <rms@gnu.org>
26358
26359 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26360
263612007-07-11 Jason Rumney <jasonr@gnu.org>
26362
26363 * makefile.w32-in (LIBS): Include OLE32.
26364
26365 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26366 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26367
263682007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26369
26370 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26371 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26372 from a Lisp_Object into a bare pointer.
26373 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26374 Adjust the code correspondingly.
26375
26376 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26377
26378 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26379 (term_show_mouse_face): Remove unused var `j'.
26380 (handle_one_term_event): Remove unused vars `i' and `j'.
26381 Don't cast return value of ttyname since it's not necessary.
26382
263832007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26384
26385 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26386 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26387
26388 * fns.c (map_char_table): Use an array of int for `indices' rather than
26389 an array of Lisp_Objects (which are only ever integers anyway).
26390 (Fmap_char_table): Update caller.
26391 * lisp.h: Update prototype.
26392 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26393 * fontset.c (Ffontset_info):
26394 * casetab.c (set_case_table): Update callers.
26395
26396 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26397
26398 * keymap.c (struct accessible_keymaps_data)
26399 (struct where_is_internal_data): New structures.
26400 (accessible_keymaps_1, where_is_internal_1): Use them to change
26401 interface to adhere to the one used by map_keymap.
26402 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26403 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26404
26405 * keymap.h (map_keymap_function_t): More informative prototype.
26406
264072007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26408
26409 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26410 (looking_at_1): Don't change search_regs and last_thing_searched
26411 if `inhibit-changing-match-data' is non-nil.
26412 (string_match_1, search_buffer, set_search_regs): Likewise.
26413 (syms_of_search): Add Lisp level definition for
26414 `inhibit-changing-match-data' and set it to nil.
26415 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26416 start and end of the match, instead of using values in search_regs.
26417
264182007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26419
26420 * minibuf.c (Fcompleting_read): New value `confirm-only'
26421 for `require-match'.
26422
264232007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26424
26425 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26426 part of the 2007-06-27 change to syms_of_fileio.
26427
264282007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26429
26430 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26431 Check WINDOWP before using XWINDOW. Consolidate return statements.
26432
264332007-06-27 Richard Stallman <rms@gnu.org>
26434
26435 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26436
264372007-06-27 Juanma Barranquero <lekktu@gmail.com>
26438
26439 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26440
264412007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26442
26443 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26444 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26445 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26446 (_free_internal, memalign): Use them.
26447 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26448 Initialize to PTHREAD_MUTEX_INITIALIZER.
26449 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26450 (morecore_nolock): Rename from morecore. All uses changed.
26451 Use only nolock versions of internal allocation functions.
26452 (_malloc_internal_nolock, _realloc_internal_nolock)
26453 (_free_internal_nolock): New functions created from
26454 _malloc_internal, _realloc_internal, and _free_internal.
26455 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26456 Copy hook value to automatic variable before its use.
26457 (memalign): Copy hook value to automatic variable before its use.
26458
264592007-06-26 Kenichi Handa <handa@m17n.org>
26460
26461 * coding.c (Ffind_operation_coding_system): Docstring improved.
26462 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26463
264642007-06-25 David Kastrup <dak@gnu.org>
26465
26466 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26467 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26468 cater for additional parameter.
26469
26470 * keymap.h: Adjust number of parameters to `current-active-maps'.
26471
26472 * doc.c (Fsubstitute_command_keys): Adjust call of
26473 `current-active-maps'.
26474
264752007-06-25 David Kastrup <dak@gnu.org>
26476
26477 * callint.c (Fcall_interactively): Make the parsing of interactive
26478 specs somewhat more readable.
26479
264802007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26481
26482 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26483 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26484 if extended background has already been filled.
26485
264862007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26487
26488 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26489 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26490
26491 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26492 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26493 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26494 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26495 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26496 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26497 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26498 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26499 Run timers during dialog popup.
26500 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26501
265022007-06-21 Jason Rumney <jasonr@gnu.org>
26503
26504 * image.c (convert_mono_to_color_image): Swap fore and background.
26505
265062007-06-20 Jason Rumney <jasonr@gnu.org>
26507
26508 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26509 (w32_free_bdf_font): Unmap memory not handle.
26510
265112007-06-20 Sam Steingold <sds@gnu.org>
26512
26513 * gmalloc.c (__morecore): Fix the declaration to comply with the
26514 definition.
26515
265162007-06-20 Juanma Barranquero <lekktu@gmail.com>
26517
26518 * w32term.c (w32_delete_display): Remove leftover declaration.
26519 (w32_define_cursor, w32_initialize): Make static.
26520
26521 * w32.c (_wsa_errlist): Fix typo in error message.
26522 (init_environment): Ignore any environment variable from the
26523 registry having a null value.
26524
265252007-06-20 Glenn Morris <rgm@gnu.org>
26526
26527 * Makefile.in (LIBGIF): Default to -lgif.
26528
265292007-06-17 Jason Rumney <jasonr@gnu.org>
26530
26531 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26532 unicode strings.
26533
265342007-06-16 Juanma Barranquero <lekktu@gmail.com>
26535
26536 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26537 Fix typo in docstring.
26538
265392007-06-16 Eli Zaretskii <eliz@gnu.org>
26540
26541 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26542 and their keybindings.
26543
265442007-06-15 Chong Yidong <cyd@stupidchicken.com>
26545
26546 * composite.c (update_compositions): Fix last fix.
26547
265482007-06-14 Jason Rumney <jasonr@gnu.org>
26549
26550 * w32.c (get_process_times_fn): New function pointer.
26551 (globals_of_w32): Intialize it if present in kernel32.dll.
26552 (w32_get_internal_run_time): New function.
26553
26554 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26555
265562007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26557
26558 * composite.c (update_compositions): Check the validness of
26559 compositions.
26560
265612007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26562
26563 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26564 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26565
26566 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26567 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26568
26569 * macgui.h (USE_MAC_TOOLBAR): New define.
26570
26571 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26572 Return immediately unless popup is activated.
26573
26574 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26575 background to scroll bar gap.
26576 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26577 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26578 scroll bars on frame edge. Check fringe background extension.
26579 Don't clear extended fringe background area.
26580 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26581 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26582 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26583 [USE_MAC_TOOLBAR]: New macros.
26584 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26585 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26586 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26587 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26588 [USE_MAC_TOOLBAR]: New functions.
26589 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26590 manually if previous repositioning has failed.
26591 (mac_handle_keyboard_event): Use precomputed event kind.
26592 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26593 as tool bar item click. Handle mouse movement over tool bar items.
26594
26595 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26596 toolbar_win_gravity.
26597 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26598 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26599 Add externs.
26600
26601 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26602 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26603
266042007-06-14 Chong Yidong <cyd@stupidchicken.com>
26605
26606 * image.c (search_image_cache): Remove unused variable.
26607
266082007-06-13 Chong Yidong <cyd@stupidchicken.com>
26609
26610 * xfns.c, xmenu.c: Link to xaw3d if available.
26611
266122007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26613
26614 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26615 frame_foreground and frame_background.
26616
26617 * image.c (lookup_image): Save frame foreground and background colors.
26618 (search_image_cache): Check if saved and current frame colors match.
26619
266202007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26621
26622 * regex.c (regex_compile): Remove the `regnum' counter.
26623 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26624
266252007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26626
26627 * term.c: Include intervals.h to declare Fget_text_property.
26628
266292007-06-10 Jason Rumney <jasonr@gnu.org>
26630
26631 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26632
266332007-06-08 Juanma Barranquero <lekktu@gmail.com>
26634
26635 * callint.c (Fcall_interactively):
26636 * editfns.c (Fdelete_and_extract_region):
26637 * fileio.c (Fread_file_name):
26638 * fns.c (Fmapconcat):
26639 * keyboard.c (cmd_error_internal):
26640 * keymap.c (Fkey_description):
26641 * lread.c (openp):
26642 * minibuf.c (read_minibuf):
26643 * search.c (wordify):
26644 * sunfns.c (sel_read):
26645 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26646 * xfns.c (x_default_scroll_bar_color_parameter):
26647 * xmenu.c (menu_help_callback):
26648 * xselect.c (Fx_get_atom_name):
26649 * xterm.c (x_term_init): Use empty_unibyte_string.
26650
266512007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26652
26653 * alloc.c (init_strings): Initialize canonical empty strings.
26654 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26655 canonical empty string when the requested size is 0.
26656
26657 * emacs.c (empty_unibyte_string): Rename from empty_string.
26658 (empty_multibyte_string): New canonical empty string.
26659 (syms_of_emacs): Don't initialize empty_string.
26660
26661 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26662 string, if appropriate.
26663 (empty_unibyte_string, empty_multibyte_string): New externs.
26664 (empty_string): Remove extern.
26665
26666 * lread.c (syms_of_lread): Use empty_unibyte_string.
26667
266682007-06-07 Jason Rumney <jasonr@gnu.org>
26669
26670 * s/ms-w32.h: Don't define HAVE_TZNAME.
26671
26672 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26673
266742007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26675
26676 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26677
26678 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26679 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26680
26681 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26682 Don't call next handler.
26683 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26684 Remove argument. Install handler to application.
26685 (set_frame_menubar): Don't change deep_p.
26686 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26687 FRAME_OUTER_TO_INNER_DIFF_Y.
26688 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26689 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26690 [HAVE_DIALOGS]: New macros.
26691 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26692 Use them.
26693 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26694
26695 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26696 init_service_handler. All callers changed. Return OSStatus value.
26697
26698 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26699 All callers changed so as not to call SetPortWindowPort.
26700 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26701 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26702 mac_draw_string_common.
26703 (mac_draw_image_string_qd): Likewise.
26704 (mac_draw_string_common): Use them. Add INLINE.
26705 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26706 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26707 GetGlobalMouse.
26708 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26709 and FRAME_OUTER_TO_INNER_DIFF_Y.
26710 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26711 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26712 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26713 repositioning window to mac_handle_window_event.
26714 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26715 saving window location to mac_handle_window_event
26716 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26717 (install_menu_target_item_handler): Remove argument in extern.
26718 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26719 Also accept command events.
26720 (do_keystroke): New function created from XTread_socket.
26721 (init_command_handler): Remove functions.
26722 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26723 and save window location by kEventWindowShowing and kEventWindowHiding
26724 handlers here. Don't call next handler for window state change and
26725 focus events.
26726 (mac_handle_application_event, mac_handle_keyboard_event)
26727 [TARGET_API_MAC_CARBON]: New functions.
26728 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26729 kEventWindowShowing and kEventWindowHiding events. Move installation
26730 of mouse, font, text input and menu target item handlers to
26731 install_application_handler.
26732 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26733 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26734 New function.
26735 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26736 Register it.
26737 (XTread_socket) [TARGET_API_MAC_CARBON]:
26738 Consolidate SendEventToEventTarget calls.
26739 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26740 Move application activation handler to mac_handle_application_event.
26741 Move keyboard handler to mac_handle_keyboard_event.
26742 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26743 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26744 init_command_handler. Call install_application_handler.
26745
26746 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26747 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26748
267492007-06-07 Glenn Morris <rgm@gnu.org>
26750
26751 * emacs.c (main): Use `emacs-copyright' in --version output.
26752
267532007-06-06 Chong Yidong <cyd@stupidchicken.com>
26754
26755 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26756
267572007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26758
26759 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26760
26761 * macgui.h: Replace WindowPtr with WindowRef.
26762
26763 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26764 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26765 Replace ControlHandle with ControlRef.
26766 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26767
26768 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26769 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26770 Replace ControlHandle with ControlRef.
26771 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26772 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26773
26774 * macterm.h (struct scroll_bar): Rename member control_handle_low
26775 and control_handle_high to control_ref_low and control_ref_high.
26776 All uses changed.
26777 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26778 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26779 respectively. All uses changed.
26780 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26781 (install_window_handler, remove_window_handler): Replace WindowPtr
26782 with WindowRef in externs.
26783
267842007-06-05 Juanma Barranquero <lekktu@gmail.com>
26785
26786 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26787
267882007-06-03 Nick Roberts <nickrob@snap.net.nz>
26789
26790 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26791
26792 * frame.c (Fmouse_position, Fmouse_pixel_position):
26793 Condition on HAVE_GPM too.
26794
26795 * term.c (term_mouse_highlight): Remove unused variables.
26796 (Fterm_open_connection): Set gpm_zerobased to 1.
26797 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26798 Use zero based co-ordinates.
26799 (handle_one_term_event): Report a drag as mouse movement too.
26800
26801 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26802
268032007-06-03 Chong Yidong <cyd@stupidchicken.com>
26804
26805 * image.c (search_image_cache): New function. Require background
26806 color match if background color is unspecified in the image spec.
26807 (uncache_image, lookup_image): Use it.
26808
268092007-06-01 Juanma Barranquero <lekktu@gmail.com>
26810
26811 * window.c (Fshrink_window): Reflow docstring.
26812
268132007-06-02 Chong Yidong <cyd@stupidchicken.com>
26814
26815 * Version 22.1 released.
26816
268172007-06-01 Richard Stallman <rms@gnu.org>
26818
26819 * xfns.c (x_encode_text): Add GCPRO.
26820
268212007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26822
26823 * xfns.c (x_set_name_internal): Save encoded name before
26824 x_encode_text in case string data is relocated.
26825
268262007-05-31 Richard Stallman <rms@gnu.org>
26827
26828 * buffer.c (syms_of_buffer): Doc fix.
26829
268302007-05-30 Nick Roberts <nickrob@snap.net.nz>
26831
26832 * sysdep.c (init_sys_modes): Add rather than replace with
26833 O_NONBLOCK.
26834
26835 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26836 term_mouse_moveto.
26837
26838 * termhooks.h (term_mouse_moveto): New extern.
26839
26840 * term.c (mouse_face_window): Rename...
26841 (Qmouse_face_window): ...to this.
26842 (term_show_mouse_face, term_clear_mouse_face)
26843 (term_mouse_highlight): Use Qmouse_face_window.
26844 (term_mouse_moveto): New function.
26845 (term_mouse_position): Make it work.
26846 (syms_of_term): Uncomment assignment to mouse_position_hook.
26847 Staticpro Qmouse_face_window.
26848
268492007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26850
26851 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26852 around current_column call.
26853
268542007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26855
26856 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26857 * xdisp.c (next_element_from_buffer):
26858 * window.c (delete_window):
26859 * term.c (term_mouse_highlight):
26860 * msdos.c (getdefdir):
26861 * macterm.c (mac_create_bitmap_from_bitmap_data)
26862 (init_font_name_table):
26863 * fns.c (Fsxhash):
26864 * data.c (Fmake_local_variable):
26865 * ccl.c (ccl_driver): Likewise.
26866
268672007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26868
26869 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26870 Call mac_wakeup_from_rne on window size change.
26871
268722007-05-25 Chong Yidong <cyd@stupidchicken.com>
26873
26874 * image.c (uncache_image): Fix typo.
26875
268762007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26877
26878 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26879
268802007-05-22 Richard Stallman <rms@gnu.org>
26881
26882 * xterm.c (x_connection_closed): Remove NO_RETURN.
26883
268842007-05-22 Martin Rudalics <rudalics@gmx.at>
26885
26886 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26887
268882007-05-21 Chong Yidong <cyd@stupidchicken.com>
26889
26890 * image.c (uncache_image): New function.
26891 (Fimage_refresh): New function.
26892
268932007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26894
26895 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26896
268972007-05-20 Nick Roberts <nickrob@snap.net.nz>
26898
26899 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26900 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26901
269022007-05-20 Nick Roberts <nickrob@snap.net.nz>
26903
26904 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26905 conditional on [HAVE_GPM_H].
26906
269072007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26908
26909 * syntax.c (skip_chars): Update syntax-table only after we checked that
26910 the new location is valid.
26911
269122007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26913
26914 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26915 mac_get_window_bounds.
26916
269172007-05-20 Nick Roberts <nickrob@snap.net.nz>
26918
26919 * Makefile.in (LIBGPM): Allow it to be set from configure.
26920 If set then link Emacs with it.
26921
26922 * config.in: Regenerate.
26923
26924 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26925 New externs.
26926
26927 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26928 Include gpm.h.
26929 (handle_one_term_event, term_gpm): New externs.
26930
26931 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26932 and allow it to be interrupted by SIGIO.
26933
26934 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26935 (wait_reading_process_output): Wait on gpm_fd too.
26936 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26937 (add_gpm_wait_descriptor_called_flag): New variable.
26938 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26939
26940 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26941 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26942 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26943 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26944 (make_lispy_event): Add case GPM_CLICK_EVENT.
26945 (read_avail_input): Handle mouse input.
26946
26947 * term.c (write_glyphs_with_face): New function.
26948 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26949 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26950 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26951 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26952 (last_mouse_x, last_mouse_y): New variables.
26953 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26954 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26955 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26956 (Fterm_close_connection): New functions.
26957 (term_init): Initialise mouse_face_window.
26958
269592007-05-19 Chong Yidong <cyd@stupidchicken.com>
26960
26961 * xdisp.c (redisplay_window): If first window line is a
26962 continuation line, recompute the new window start instead of
26963 recentering.
26964
269652007-05-18 Glenn Morris <rgm@gnu.org>
26966
26967 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26968 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26969
269702007-05-17 Glenn Morris <rgm@gnu.org>
26971
26972 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26973
269742007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26975
26976 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26977 dead key repeat and up events.
26978
269792007-05-14 Chong Yidong <cyd@stupidchicken.com>
26980
26981 * image.c (pbm_load): Check image size for monochrome pbm.
26982
269832007-05-13 Chong Yidong <cyd@stupidchicken.com>
26984
26985 * xterm.c (XTread_socket): Revert last change.
26986
269872007-05-12 Chong Yidong <cyd@stupidchicken.com>
26988
26989 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26990
26991 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26992
269932007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26994
26995 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26996 mixup (YAILOM).
26997
269982007-05-07 Andreas Schwab <schwab@suse.de>
26999
27000 * keymap.c (Flookup_key): Fix typo in last change.
27001
270022007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27003
27004 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27005 mapping for unibyte strings.
27006
270072007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27008
27009 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27010 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27011
270122007-04-29 Richard Stallman <rms@gnu.org>
27013
27014 * insdel.c (replace_range): For undo, record insertion first.
27015
270162007-04-29 Andreas Schwab <schwab@suse.de>
27017
27018 * lisp.h (VECSIZE): Use OFFSETOF.
27019
270202007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27021
27022 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27023 disabled lines.
27024
270252007-04-28 Richard Stallman <rms@gnu.org>
27026
27027 * lread.c (read_escape): In a string, \s is always space.
27028
270292007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27030
27031 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27032
27033 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27034 submenu for menu bar items.
27035
27036See ChangeLog.10 for earlier changes.
27037
27038;; Local Variables:
27039;; coding: utf-8
27040;; add-log-time-zone-rule: t
aac0c6e3
MR
27041;; End:
27042
e3eb1dae 27043 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
27044
27045 This file is part of GNU Emacs.
27046
27047 GNU Emacs is free software: you can redistribute it and/or modify
27048 it under the terms of the GNU General Public License as published by
27049 the Free Software Foundation, either version 3 of the License, or
27050 (at your option) any later version.
27051
27052 GNU Emacs is distributed in the hope that it will be useful,
27053 but WITHOUT ANY WARRANTY; without even the implied warranty of
27054 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27055 GNU General Public License for more details.
27056
27057 You should have received a copy of the GNU General Public License
27058 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27059
27060;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40