Fix bug #6933 regarding `half' width fringes.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
283357a7
LMI
12010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * process.c (wait_reading_process_output): Don't message about
4 accept-process-output unless the time limit really is zero.
5
4ddb20d6
SM
62010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7
8 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
9 int/Lisp_Object mixup).
10
e24ad6dd
J
112010-09-17 Jan Djärv <jan.h.d@swipnet.se>
12
13 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
14 not HELP.
15
fb0cf781
J
162010-09-17 Stephen Berman <stephen.berman@gmx.net>
17
18 * frame.c (Ftool_bar_pixel_width): New function to expose tool
19 bar's pixel width to Lisp (Bug#7048).
20
4ddb20d6
SM
212010-09-14 Juanma Barranquero <lekktu@gmail.com>
22
23 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 24
318a04c6
J
252010-09-17 Jan Djärv <jan.h.d@swipnet.se>
26
27 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
28 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
29
78a21772
KH
302010-09-17 Kenichi Handa <handa@m17n.org>
31
32 * ftfont.c (ftfont_check_otf): Fix previous change.
33
fa3f6039
KH
342010-09-14 Kenichi Handa <handa@m17n.org>
35
36 * ftfont.c (ftfont_check_otf): Fix the case of checking just
37 existence of GSUB or GPOS.
38
2b5491fa
JB
392010-09-14 Juanma Barranquero <lekktu@gmail.com>
40
41 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
42
c97c655f
LMI
432010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
44
2b5491fa 45 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
46 what it does.
47 (parse_string): Return nil when the document can't be parsed.
48
6664fc59 492010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
50
51 * xterm.c (get_current_vm_state): New function.
52 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
53 want_fullscreen so set_wm_state calls are few (Bug#7013).
54 (x_handle_net_wm_state): Move code to get_current_vm_state and
55 call that function.
56
6664fc59 572010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
58
59 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
60
6664fc59 612010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
62
63 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
64 we may use designation or locking-shift.
65
6664fc59 662010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
67
68 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
69 sequence when the source is multibyte.
70
1da70e99
AS
712010-09-14 Andreas Schwab <schwab@linux-m68k.org>
72
6664fc59
JB
73 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
74 Don't make first argument optional. Doc fix.
1da70e99 75
26632d8d
LMI
762010-09-14 Leo <sdl.web@gmail.com> (tiny change)
77
78 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
79 parameters for the doc string.
80
21fa8e37
LMI
812010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
82
83 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
84
5616cc54
SM
852010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
86
87 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
88 (syms_of_fns): Don't defsubr Sy_or_n_p.
89 * lisp.h: Don't declare Fy_or_n_p.
90 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
91
381408e2
LMI
922010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
93
94 * xml.c (Fxml_parse_buffer): New function to parse XML files.
95
962010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
97
98 * xml.c: New file.
99 (Fhtml_parse_buffer): New function to interface to the libxml2
100 html parsing function.
101
733946e7
JB
1022010-09-05 Juanma Barranquero <lekktu@gmail.com>
103
104 * biditype.h: Regenerate.
105
7574650a
AS
1062010-09-04 Andreas Schwab <schwab@linux-m68k.org>
107
108 * nsimage.m (ns_load_image): Check argument types.
109
110 * image.c: Remove all uses of gcpro.
111 (xpm_load): Check all lisp types.
112 (pbm_load): Likewise.
113 (png_load): Likewise.
114 (jpeg_load): Likewise.
115 (tiff_load): Likewise.
116 (gif_load): Likewise.
117 (imagemagick_load_image): Likewise.
118 (imagemagick_load): Likewise.
119 (svg_load): Likewise.
120 (gs_load): Likewise.
121
6e6b8e25
EZ
1222010-09-04 Eli Zaretskii <eliz@gnu.org>
123
124 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
125 try to reorder grapheme clusters, since LGSTRING should always
126 hold them in the logical order.
127 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
128 return glyph codes in the logical order.
129
dbfe4532
AS
1302010-09-04 Andreas Schwab <schwab@linux-m68k.org>
131
132 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 133 (imagemagick_load_image): Fix type mismatch.
5e5992c2 134 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 135
6d7cc563
JD
1362010-09-02 Jan Djärv <jan.h.d@swipnet.se>
137
138 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
139
140 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
141
142 * xselect.c: Remove declaration of cut-buffer objects and functions.
143 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
144 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
145 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
146 (Fx_rotate_cut_buffers_internal): Remove.
147 (syms_of_xselect): Remove defsubr of above.
148 Remove intern of QCUT_BUFFERn.
149
8f4e9110
SM
1502010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
151
152 * cmds.c (Vblink_paren_function): Remove.
153 (internal_self_insert): Make it insert N chars at a time.
154 Don't call blink-paren-function.
155 (Fself_insert_command): Adjust accordingly.
156 (syms_of_cmds): Don't declare blink-paren-function.
157
d419e1d9
KH
1582010-08-31 Kenichi Handa <handa@m17n.org>
159
160 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
161 characters.
162
163 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
164 (produce_glyphs): Don't set it->char_to_display here.
165 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
166 (produce_special_glyphs): Set temp_it.char_to_display before
167 calling produce_glyphs.
168
169 * xdisp.c (get_next_display_element): Set it->char_to_display
170 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
171 characters.
172 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
173 calling PRODUCE_GLYPHS.
174 (append_space_for_newline): Save and store it->char_to_display.
175 Set it->char_to_display before calling PRODUCE_GLYPHS.
176 (extend_face_to_end_of_line): Set it->char_to_display before
177 calling PRODUCE_GLYPHS.
178 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
179 character to its byte value.
180 (get_char_glyph_code): New function.
181 (produce_stretch_glyph): Set it2.char_to_display too before
182 calling x_produce_glyphs.
183 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
184 non-ASCII characters. Don't set it->char_to_display here.
185 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 186 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 187
b819f760
SM
1882010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
189
190 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
191
07fa68a7
CY
1922010-08-31 Chong Yidong <cyd@stupidchicken.com>
193
194 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
195
cd196f12
SM
1962010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
197
198 * marker.c (Fcopy_marker): Make the first arg optional.
199
49a752bb
KH
2002010-08-30 Kenichi Handa <handa@m17n.org>
201
202 * composite.c (composition_update_it): Fix computing of
203 cmp_it->width.
204
769ae9e1
KH
2052010-08-29 Kenichi Handa <handa@m17n.org>
206
9e69cb05 207 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 208 corresponding bytes.
9e69cb05 209
4520b858
J
2102010-08-29 Jan Djärv <jan.h.d@swipnet.se>
211
212 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
213
fe50eb41
KH
2142010-08-26 Kenichi Handa <handa@m17n.org>
215
216 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
217 on calling composition_compute_stop_pos.
218
f6aa6ec6
KH
2192010-08-25 Kenichi Handa <handa@m17n.org>
220
9dfdbc0a
KH
221 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
222 :otf.
223
f6aa6ec6
KH
224 * composite.c (composition_compute_stop_pos): Don't break
225 composition at PT.
226 (composition_reseat_it): Likewise. Fix calculation of character
227 position starting a composition.
228 (Fcomposition_get_gstring): Don't limit the number of components
229 for automatic composition.
230
ff94e32c
KH
2312010-08-25 Kenichi Handa <handa@m17n.org>
232
233 * composite.c (composition_compute_stop_pos): In forward search,
234 pay attention to the possibility that some character after ENDPOS
235 will be composed with charactrs before ENDPOS.
236
1c409d0b
CY
2372010-08-24 Chong Yidong <cyd@stupidchicken.com>
238
239 * keyboard.c (command_loop_1): Don't clobber primary selection
240 during handle-switch-frame (Bug#6872).
241
0c372655
MA
2422010-08-23 Michael Albinus <michael.albinus@gmx.de>
243
244 * dbusbind.c: Accept UNIX domain sockets as bus address.
245 (Fdbus_close_bus): New function.
246 (Vdbus_registered_buses): New variable.
247 (xd_initialize): Implement string as bus address.
248 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
249 (Fdbus_get_unique_name, Fdbus_call_method)
250 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
251 (Fdbus_method_error_internal, Fdbus_send_signal)
252 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
253 check. This is done in xd_initialize_bus. Adapt doc string, if
254 necessary.
255 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
256 Vdbus_registered_buses.
257 (Vdbus_registered_objects_table): Create hash.
258
7133b7ee
JL
2592010-08-22 Juri Linkov <juri@jurta.org>
260
261 * keyboard.c (Fexecute_extended_command): Move reading a command name
262 with `completing-read' to a new Elisp function `read-extended-command'.
263 Call it to read a command to `function' (bug#5364, bug#5214).
264
198a7a97
CY
2652010-08-22 Chong Yidong <cyd@stupidchicken.com>
266
267 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
268
b0126eac 2692010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
270
271 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
272 instead of SAFE_ALLOCA.
273
b0126eac 2742010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
275
276 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
277 (Bug#6214).
278
b0126eac 2792010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
280
281 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
282
b0126eac
CY
2832010-08-22 Jan Djärv <jan.h.d@swipnet.se>
284
285 * doc.c (Fsnarf_documentation): Initialize skip_file before
286 build-files test.
287
692f3ddc 2882010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 289
692f3ddc
JB
290 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
291 New definitions.
b0126eac
CY
292 (HAVE_TERMIO): Remove.
293
5f2f0bc1
EZ
2942010-08-22 Eli Zaretskii <eliz@gnu.org>
295
b613941b
EZ
296 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
297
a583bbef
EZ
298 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
299 for w32.
300
301 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
302 it's done in nt/config.nt.
303
304 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
305
5f2f0bc1
EZ
306 * unexcoff.c (report_error, make_hdr, write_segment)
307 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
308 Convert argument lists and prototypes to ANSI C.
309 (make_hdr, write_segment): Remove unused variables.
310 (unexec): Remove commented-out line. Initialize `new' to shut up
311 compiler warnings.
312
a7ebc409
DN
3132010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
314
315 Simplify termio code.
316 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
317 HAVE_TERMIO code is obsolete.
318 Replace HAVE_TERMIOS conditionals with !DOS_NT.
319 * systty.h: Do not define HAVE_TCATTR.
320 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
321 Do not define EMACS_HAVE_TTY_PGRP. Only define
322 EMACS_GET_TTY_PGRP for !DOS_NT.
323 * sysdep.c: Include sysselect.h unconditionally. Do not include
324 sys/ioctl.h and termios.h, systty.h does it. Use
325 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
326 (init_baud_rate): Remove HAVE_TERMIO code.
327 (child_setup_tty): Remove HAVE_TERMIO code.
328 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
329 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
330 (new_ltchars, new_tchars): Remove, unused.
331 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
332 code. Remove special casing for __mips__, it was a no-op. Remove
333 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
334 (init_sys_modes): Remove HPUX special case.
335 * process.c: Include stdlib.h unconditionally. Do not include
336 fcntl.h, systty.h does it. Remove conditional code for
337 HAVE_SERIAL, it is always true.
338 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
339 always true when SIGNALS_VIA_CHARACTERS is true.
340 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
341 !WINDOWSNT means HAVE_TERMIOS.
342 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
343 conditional, which is true for all HAVE_TERMIOS systems.
344 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
345 instead of HAVE_TERMIOS.
346 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
347 EMACS_HAVE_TTY_PGRP.
348 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
349 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
350 anyway.
351
40629f17
EZ
3522010-08-21 Eli Zaretskii <eliz@gnu.org>
353
354 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
355 mirroring pixel positions.
356
d931da8c
DN
3572010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
358
b5c76d0c
DN
359 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
360 write only.
361 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
362 malloc_sbrk_used, nothing uses them.
363
74815588
DN
364 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
365 defined, unconditionally defined in lisp.h.
366
f5817d1c
DN
367 * term.c: Do not include <termios.h>, systty.h does it.
368
d931da8c
DN
369 * s/unixware.h (HAVE_TCATTR):
370 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
371 systty.h defines it when HAVE_TERMIOS is defined.
372
ff2de6d2 3732010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 374
b43c883c 375 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 376 terminals: add one-character offset for R2L lines.
b43c883c 377
491a1546
EZ
378 * emacs.c <emacs_version>: Add a comment regarding
379 msdos/mainmake.v2's dependency on the syntax of this declaration.
380
2396cbba
EZ
3812010-08-20 Eli Zaretskii <eliz@gnu.org>
382
383 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
384 position for R2L lines by mirroring the pixel position wrt the
385 text are box. Improve commentary.
386
7df6150a
AS
3872010-08-20 Andreas Schwab <schwab@linux-m68k.org>
388
389 * image.c (imagemagick_clear_image): Remove debugging output.
390
a2e5caf7
SM
3912010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
392
393 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
394 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
395 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
396 self-insert-face.
397 (syms_of_cmds): Initialize the new vars.
398
20d60baf
JR
3992010-08-19 Jason Rumney <jasonr@gnu.org>
400
cc477da7
JR
401 * w32menu.c (set_frame_menubar): Remove call to undefined function.
402
20d60baf
JR
403 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
404
2c0ac867
J
4052010-08-19 Jan Djärv <jan.h.d@swipnet.se>
406
407 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
408
93352106
EZ
4092010-08-18 Eli Zaretskii <eliz@gnu.org>
410
411 * xterm.c (x_draw_bar_cursor):
412 * w32term.c (x_draw_bar_cursor): If the character under cursor is
413 R2L, draw the bar cursor on its right rather than on its left.
414
c785836d
SM
4152010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
416
0193499f
SM
417 * eval.c (Fdefmacro): Only obey one declaration.
418
c785836d
SM
419 * casefiddle.c (casify_region): Setup gl_state.
420
9cb728a5
J
4212010-08-18 Jan Djärv <jan.h.d@swipnet.se>
422
423 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
424
e1e18511
J
4252010-08-18 Jan Djärv <jan.h.d@swipnet.se>
426
427 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
428
64cb6c78
J
4292010-08-18 David De La Harpe Golden <david@harpegolden.net>
430
431 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
432 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
433 QPRIMARY => NXPrimaryPboard.
434 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
435 NXPrimaryPboard => QPRIMARY.
436 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
437 NXSecondaryPboard = SecondarySelection.
438 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
439
0c9b8993
GM
4402010-08-18 Joakim Verona <joakim@verona.se>
441
442 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
443 defined:
444 (imagemagick_image_p): New function to test for ImageMagic image.
445 (imagemagick_load): New function to load ImageMagick image.
446 (imagemagick_load_image): New function, helper for imagemagick_load.
447 (imagemagick-types): New function.
448 (Qimagemagick): New Lisp_object.
449 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 450
c3554f68
SM
4512010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
452
453 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
454 is a string.
455
1ff2e434
J
4562010-08-17 Jan Djärv <jan.h.d@swipnet.se>
457
458 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
459 x_set_tool_bar_position handler.
460
0cc56427
EZ
4612010-08-17 Eli Zaretskii <eliz@gnu.org>
462
463 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
464 x_set_tool_bar_position handler, needed to support changes from
465 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
466
e45a249b
JD
4672010-08-16 Jan Djärv <jan.h.d@swipnet.se>
468
921242c6
J
469 * nsselect.m: include keyboard.h for QPRIMARY, remove its
470 declaration (Bug#6863).
573d150b 471 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 472
e45a249b
JD
473 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
474
475 * keyboard.h (QPRIMARY): Declare (Bug#6864).
476
7c23dd44
CY
4772010-08-16 Chong Yidong <cyd@stupidchicken.com>
478
479 * keyboard.c (command_loop_1): Avoid setting selection twice,
480 since it's done in deactivate-mark as well.
481 (Vselect_active_regions): Change default to t. Replace `lazy'
482 with non-default value `only', meaning only set PRIMARY for
483 temporarily active regions.
484
485 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
486 select-active-regions.
487
0005830c
J
4882010-08-15 Jan Djärv <jan.h.d@swipnet.se>
489
490 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
491 isn't a string.
492
603dfc72
AS
4932010-08-15 Andreas Schwab <schwab@linux-m68k.org>
494
495 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
496
c25ce9d0
J
4972010-08-15 Jan Djärv <jan.h.d@swipnet.se>
498
c3554f68
SM
499 * keyboard.c (parse_tool_bar_item): malloc buf.
500 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
501 new_lbl (Bug#6855).
c25ce9d0 502
5872c762
EZ
5032010-08-14 Eli Zaretskii <eliz@gnu.org>
504
b236615c
EZ
505 * xterm.c (x_draw_stretch_glyph_string):
506 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
507 the cursor on the right edge of the stretch glyph.
508
c3554f68
SM
509 * xdisp.c (window_box_right_offset, window_box_right):
510 Fix commentary.
b236615c 511
5872c762
EZ
512 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
513 direction when point is inside a run of whitespace characters.
514
515 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
516
e66f9a1b
JR
5172010-08-14 Jason Rumney <jasonr@gnu.org>
518
519 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
520
79d6f59e
CY
5212010-08-14 Chong Yidong <cyd@stupidchicken.com>
522
523 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
524
1c9b4129
JR
5252010-08-13 Jason Rumney <jasonr@gnu.org>
526
527 * w32menu.c (simple_dialog_show): Use unicode message box if available.
528 (MessageBoxW_Proc): New function typedef.
529 (unicode-message-box): New function pointer.
530 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
531
2b4e6277
J
5322010-08-13 Jan Djärv <jan.h.d@swipnet.se>
533
534 * frame.h (Qtool_bar_position): Declare.
535
536 * xfns.c (Fx_create_frame): Call x_default_parameter for
537 Qtool_bar_position.
538
94c97d85
EZ
5392010-08-13 Eli Zaretskii <eliz@gnu.org>
540
8ee81892
EZ
541 * unexcoff.c: Remove the parts used when "emacs" is not defined.
542 (report_error, report_error_1): Ditto.
543 (write_segment): Remove "#if 0" unused code.
544 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
545 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
546 (start_of_text): Remove unused function (was used only if NO_REMAP
547 was NOT defined).
548
891ef8f7
EZ
549 * msdos.c (IT_set_face): Fix format string to match argument
550 types.
551 (IT_write_glyphs, IT_note_mode_line_highlight)
552 (IT_set_frame_parameters): Remove unused variables.
553 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
554 (IT_set_terminal_modes): Disambiguate expression in if clause.
555 (Fmsdos_remember_default_colors): Return Qnil.
556 (IT_set_frame_parameters): Add parens to disambiguate boolean
557 expression for logging the cursor type to termscript.
558 (keyboard_layout_list, keypad_translate_map)
559 (grey_key_translate_map): Add braces in inner initializers.
560 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
561 (dos_rawgetc): Remove unused label.
562 (XMenuActivate): Add braces to remove ambiguous `else'.
563 (dos_ttraw): Always return a value.
564 (spawnve): Declare.
565 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
566
567 * dosfns.h (x_set_title): Declare.
568
569 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
570 Remove unused variables.
571
572 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
573 variables.
574 (init_dosfns): Declare get_lim_data.
575 (system_process_attributes): Declare Fget_internal_run_time.
576
38e41e0e
EZ
577 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
578 list to be consistent with menu.h.
579
94c97d85
EZ
580 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
581 warnings due to mixing of "char *" and "const char *".
582
c5683ceb
SM
5832010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
584
585 Introduce a new comment style "c" flag.
586 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
587 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
588 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
589 (syntax_prefix_flag_p): New function.
590 (Fstring_to_syntax): Understand new "c" flag.
591 (Finternal_describe_syntax_value): Recognize new flag; use the
592 SYNTAX_FLAGS_* macros.
593 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
594 comment style to accomodate the new styles.
595 (back_comment, forw_comment, Fforward_comment, scan_lists)
596 (scan_sexps_forward): Update code to obey the new comment style flag.
597
598 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
599
600 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
601
7aee76f4
J
6022010-08-11 Jan Djärv <jan.h.d@swipnet.se>
603
3a46642b
J
604 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
605 first.
94dff98f 606 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
607
608 * gtkutil.h (xg_check_special_colors): Declare.
609
610 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
611 (xg_create_frame_widgets): Connect theme name changes to
612 style_changed_cb.
613
42ca4633
J
614 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
615 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
616 (x_term_init): Use char[] display_opt and name_opt instead of
617 string literal. file is const char*.
618
619 * xsmfns.c (NOSPLASH_OPT): Change to char[].
620 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
621 props. Free them at the end.
622
623 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
624
c5683ceb
SM
625 * xrdb.c (get_system_app): Make path const and use char *p for
626 non-const char.
42ca4633
J
627
628 * xmenu.c (Fx_popup_dialog): error_name is const char*.
629 (xmenu_show): error parameter is const char **. pane_string is const
630 char *.
631 (button_names): Is const char *.
632 (xdialog_show): error_name and pane_string is const.
633
634 * process.h (synch_process_death): Is const char*.
635
636 * w32menu.c (w32_menu_show):
637 * nsmenu.m (ns_menu_show): error parameter is const char **.
638
639 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
640 is const char **.
641
642 * menu.c (Fx_popup_menu): error_name is const.
643
644 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
645 with unsigned char and XtPointer with void *.
646
647 * gtkutil.h: Replace widget_value with struct _widget_value.
648 (enum button_type, struct _widget_value): Remove and use the one from
649 keyboard.h.
650
651 * gtkutil.c (get_utf8_string): Always return an allocated string.
652 Parameter is const.
653 (create_dialog, xg_create_one_menuitem, create_menus)
654 (xg_item_label_same_p, xg_update_menu_item): Free result from
655 get_utf8_string.
656 (xg_separator_p, xg_item_label_same_p): label is const.
657
658 * font.h (font_open_by_name): Make name const.
659
660 * font.c (font_open_by_name): Make name const.
661
662 * floatfns.c (matherr): Use a const char* variable for x->name.
663
664 * emacs.c (main): Pass char[] to putenv instead of literal.
665
666 * callproc.c (synch_process_death): Make const.
667 (Fcall_process): Make signame const.
668
9c5bd55a
J
669 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
670 (addDisplayItemWithImage): Use const char*.
671
672 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
673 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
674
675 * nsfont.m (ns_descriptor_to_entity): Use const char*.
676
677 * keyboard.h (_widget_value): name, value and key are const char*.
678
7aee76f4
J
679 * unexmacosx.c (unexec_error): Use const char *.
680
09d93395
DN
6812010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
682
683 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 684 (font_parse_name, font_open_by_name):
09d93395 685 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 686 (font_parse_name, font_open_by_name): Remove const.
09d93395 687
671d409f
AS
6882010-08-09 Andreas Schwab <schwab@linux-m68k.org>
689
690 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
691 definition.
692
693 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
694 * m/amdx86-64.h: Likewise.
695 * m/arm.h: Likewise.
696 * m/hp800.h: Likewise.
697 * m/ia64.h: Likewise.
698 * m/ibmrs6000.h: Likewise.
699 * m/ibms390.h: Likewise.
700 * m/intel386.h: Likewise.
701 * m/iris4d.h: Likewise.
702 * m/m68k.h: Likewise.
703 * m/macppc.h: Likewise.
704 * m/mips.h: Likewise.
705 * m/sh3.h: Likewise.
706 * m/sparc.h: Likewise.
707 * m/template.h: Likewise.
708 * m/vax.h: Likewise.
709 * m/xtensa.h: Likewise.
710 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
711 WORDS_BIG_ENDIAN.
712 * lisp.h: Likewise.
713 * md5.c: Likewise.
714 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
715
8ea90aa3
DN
7162010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
717
718 Use const char* instead of char*.
719 Reduce the number of warnings with -Wwrite-strings.
720 * xrdb.c (get_environ_db, get_system_name):
721 * unexelf.c (find_section):
722 * term.c (string_cost, string_cost_one_line, per_line_cost)
723 (get_named_tty, init_tty):
724 * sysdep.c (sys_subshell):
725 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
726 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
727 * search.c (Freplace_match):
728 * process.c (Fmake_network_process, send_process, init_process):
729 * lread.c (Fload, init_lread):
730 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
731 * keyboard.c (parse_tool_bar_item, struct event_head):
732 * gtkutil.h (xg_get_font_name):
733 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
734 (make_widget_for_menu_item, make_menu_item, create_menus)
735 (xg_make_tool_item):
736 * font.c (parse_matrix, font_parse_name):
737 * floatfns.c (rounding_driver, float_error_fn_name):
738 * filelock.c (get_boot_time_1, lock_file_1):
739 * fileio.c (barf_or_query_if_file_exists, check_writable):
740 * editfns.c (get_system_name, get_operating_system_release)
741 (Fencode_time, Fset_time_zone_rule):
742 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
743 * buffer.c (defvar_per_buffer): Use const.
744
7815fe19 7452010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 746
692f3ddc 747 * charset.c: Include <stdlib.h>.
7a84eee5
KH
748 (struct charset_sort_data): New struct.
749 (charset_compare): New function.
692f3ddc 750 (Fsort_charsets): New function.
7a84eee5
KH
751 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
752
753 * coding.c (decode_coding_iso_2022): Fix checking of dimension
754 number in CTEXT extended segment.
755
7815fe19 7562010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
757
758 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
759 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
760
7815fe19 7612010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
762
763 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
764 (Fhash_table_size): Fix typos in docstrings.
765 (Fmake_hash_table): Doc fix.
766
7815fe19 7672010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
768
769 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
770 Doc fix (bug#5625).
771
7815fe19 7722010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
773
774 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
775 the MSDOS definition.
776
1b6d8cf0
DN
7772010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
778
675e2c69
DN
779 Use const char* instead of char*.
780 * xterm.c (x_create_toolkit_scroll_bar):
781 * xfont.c (xfont_list_pattern):
782 * xfns.c (x_default_scroll_bar_color_parameter)
783 (xic_create_fontsetname, x_default_font_parameter)
784 (x_screen_planes):
785 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
786 (store_mode_line_string, decode_mode_spec, display_string):
787 * menu.c (digest_single_submenu):
788 * keymap.h (initial_define_key, initial_define_lispy_key):
789 * keymap.c (initial_define_key, initial_define_lispy_key):
790 * image.c (image_error, image_keyword):
791 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
792 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
793 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
794 (ftfont_list, ftfont_match):
795 * frame.c (frame_parm_table):
796 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
797 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
798 (font_add_log, font_deferred_log):
799 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
800 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
801 (font_add_log, font_deferred_log):
802 * emacs.c (argmatch):
803 * dispextern.h (struct it):
804 * coding.c (ENCODE_DESIGNATION):
805 * charset.c (define_charset_internal): Use const.
806
25717ca1
DN
807 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
808
c5683ceb
SM
809 * xrdb.c: Remove include guard.
810 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
811 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
812 realloc->xrealloc instead of using #defines.
813
efb41e21
EZ
8142010-08-08 Eli Zaretskii <eliz@gnu.org>
815
cd21226d 816 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
817 * editfns.c (Fline_beginning_position, Fline_end_position):
818 State in the doc strings that start and end of line are in the
819 logical order.
cd21226d 820
efb41e21
EZ
821 * xdisp.c (display_line): Move the handling of overlay arrow after
822 the call to find_row_edges. (Bug#6699)
823
746812d9
CY
8242010-08-07 Chong Yidong <cyd@stupidchicken.com>
825
826 * keyboard.c (command_loop_1):
827 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
828
9852377f
CY
8292010-08-07 Chong Yidong <cyd@stupidchicken.com>
830
831 * insdel.c (prepare_to_modify_buffer): Save active region text to
832 Vsaved_region_selection.
833
834 * xselect.c (QPRIMARY): Move to keyboard.c.
835
836 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
837 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
838 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 839
0e9c8657
JB
8402010-08-07 Juanma Barranquero <lekktu@gmail.com>
841
842 * alloc.c (lisp_malloc):
843 * buffer.c (set_buffer_internal, set_buffer_internal_1):
844 * charset.h (emacs_mule_charset):
845 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
846 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
847 (bitch_at_user):
848 * lisp.h (Fcheck_coding_system, Fget_text_property)
849 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
850 Remove duplicate declarations.
851
648801d1
DN
8522010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
853
32bc6709
DN
854 * process.c: Simplify include logic.
855
3ef1d108
DN
856 * keyboard.h (quit_char): Add declaration.
857 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
858 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
859 Add declarations.
3ef1d108
DN
860 * sysdep.c:
861 * w32.c: Remove the above declarations.
862
97ec208f
DN
863 Remove extern declarations in .c files, .h files have them.
864 * xterm.c:
865 * xdisp.c:
97ec208f
DN
866 * msdos.c:
867 * image.c:
868 * gtkutil.c:
869 * fileio.c:
870 * eval.c: Remove declarations.
871
94eed851
DN
872 * frame.c (frame_params): Make const.
873
36e053eb
DN
874 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
875
0e843971
DN
876 * emacs.c (emacs_copyright, emacs_version): Make static.
877 (Vinitial_window_system, Vauto_save_list_file_name)
878 (Vinhibit_redisplay): Remove declarations.
879 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
880 for AIX.
881
648801d1
DN
882 Use const for some arrays and functions.
883 * xterm.h (xg_set_icon_from_xpm_data):
884 * xfns.c (xg_set_icon_from_xpm_data):
885 * term.c (fkeys):
886 * keyboard.c (lispy_accent_keys, lispy_function_keys)
887 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
888 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
889 (frame.c frame_parms):
890 * emacs-icon.h (gnu_xpm_bits):
891 * callint.c (callint_argfuns): Use const.
892
8646d999
J
8932010-08-06 Jan Djärv <jan.h.d@swipnet.se>
894
895 * sysdep.c: Move include term.h last of includes (Bug#6812).
896
cb4545ad
EZ
8972010-08-06 Eli Zaretskii <eliz@gnu.org>
898
899 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
900
901 * msdos.c (IT_display_cursor): Log cursor position on termscript.
902
903 * .gdbinit (pgx): Display the avoid_cursor_p flag.
904
da7e2be6
JB
9052010-08-06 Juanma Barranquero <lekktu@gmail.com>
906
907 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
908
3d608a86
J
9092010-08-06 Jan Djärv <jan.h.d@swipnet.se>
910
7908fb60
J
911 * xterm.h (x_get_focus_frame): Declare.
912
913 * keyboard.h (poll_for_input_1): Unconditionally declare.
914
4094bf36
J
915 * nsterm.h (x_set_menu_bar_lines): Declare.
916
917 * window.c: Don't include menu.h, it depends on lots of other .h-files.
918
3d608a86
J
919 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
920
921 * window.c: Include menu.h.
922
923 * unexmacosx.c (print_region_list, print_regions)
924 (build_region_list, find_emacs_zone_regions)
925 (unexec_regions_merge, read_load_commands, dump_it)
926 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
927
928 * term.c: Check HAVE_SYS_IOCTL_H.
929
686b968e 930 * sysdep.c: Check HAVE_TERM_H.
3d608a86 931
686b968e 932 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
933
934 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
935 (ns_ring_bell, ns_defined_color, hide_hourglass)
936 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
937 Convert to ANSI C prototypes.
938 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
939 before code.
940
941 * nsterm.h : Include sysselect.h.
942 (x_sync, x_get_focus_frame, x_set_mouse_position)
943 (x_set_mouse_pixel_position, x_make_frame_visible)
944 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
945 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
946 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
947 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 948 Declare.
3d608a86
J
949
950 * nsmenu.m (popup_activated, name_is_separator)
951 (syms_of_nsmenu): Convert to ANSI C prototypes.
952 (runMenuAt): Prototypes and move declarations before code.
953
954 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
955
956 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
957 prototypes.
958
959 * nsfns.m (have_menus_p, ns_display_info_for_name)
960 (x_set_cursor_type, ns_appkit_version_str)
961 (ns_appkit_version_int, ns_do_applescript)
962 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
963 (syms_of_nsfns): Convert to ANSI C prototypes.
964
965 * menu.h (x_set_menu_bar_line): Declare.
966 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
967
968 * lisp.h (fmod_float): Declare.
969
970 * image.c (xpm_scan, xpm_make_color_table_v)
971 (xpm_put_color_table_v, xpm_get_color_table_v)
972 (xpm_make_color_table_h, xpm_put_color_table_h)
973 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
974 (xpm_load): Convert to ANSI C prototypes.
975
976 * emacs.c: Include nsterm.h if HAVE_NS.
977
978 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
979
fce70521
DN
9802010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
981
982 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
983 subprocesses, only MSDOS does not define HAVE_SOCKETS.
984 (socket_options): Use const char* for name.
985
a11889ab
JB
9862010-08-06 Juanma Barranquero <lekktu@gmail.com>
987
988 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
989
990 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
991 Don't declare xmalloc_widget_value and digest_single_submenu.
992
993 * w32font.c (Qlatin): Remove declaration.
994
995 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
996
c95b508f 997 * dired.c (compile_pattern): Restore declaration.
a11889ab 998
6254cdda
DN
9992010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1000
04bab72c
DN
1001 Remove extern declarations in .c files, .h files have them.
1002 * data.c:
1003 * dired.c:
1004 * editfns.c:
1005 * filelock.c:
1006 * fns.c:
1007 * font.c:
1008 * fontset.c:
1009 * frame.c:
1010 * fringe.c:
1011 * ftfont.c:
1012 * gtkutil.c:
1013 * indent.c:
1014 * keyboard.c:
1015 * keymap.c:
1016 * lread.c:
1017 * menu.c:
1018 * print.c:
1019 * search.c:
1020 * sound.c:
1021 * window.c:
1022 * xdisp.c:
1023 * xfaces.c:
1024 * xfns.c:
1025 * xfont.c:
1026 * xftfont.c:
1027 * xmenu.c:
1028 * xterm.c: Remove declarations.
1029
dff94ed5
DN
1030 Cleanup syssignal.h.
1031 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1032 (main_thread): Move down to remove #ifdef.
1033 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1034 Remove conditional definition following unconditional ones.
1035
99f3388e
DN
1036 * lisp.h: Remove HAVE_SHM code, unused.
1037 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1038 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1039 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1040 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1041 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1042 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1043 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1044 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1045 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1046 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1047 (Qwindow_scroll_functions, Vafter_load_alist)
1048 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1049 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1050 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1051 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1052 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1053 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1054 (initial_argv, last_nonmenu_event, load_in_progress)
1055 (noninteractive_need_newline, scroll_margin): Add declarations.
1056
1057 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1058 declarations, menu.h has them.
1059 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1060 (Vinput_method_function, Qinput_method_function)
1061 (Qevent_symbol_element_mask, last_event_timestamp):
1062 * dispextern.h (Voverflow_newline_into_fringe):
1063 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1064 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1065 (syms_of_w32font, syms_of_nsfont):
1066 * fontset.h (find_font_encoding, Qlatin):
1067 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1068 (Vtool_bar_mode, set_frame_menubar):
1069 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1070 * xterm.h (Qx_gtk_map_stock):
1071 * keymap.h (meta_prefix_char): Add declarations.
1072
9f5dd6f2
DN
1073 * term.c: Remove dead code.
1074
6254cdda
DN
1075 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1076 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1077 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1078 which is what was there before BSD_PGRPS was removed.
1079
29cf3e20
EZ
10802010-08-05 Eli Zaretskii <eliz@gnu.org>
1081
1082 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1083
1084 * unexcoff.c: Renamed from unexec.c.
1085
aaa0a19a
SM
10862010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1087
1088 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1089
8d1d9587
JB
10902010-08-03 Johan Bockgård <bojohan@gnu.org>
1091
1092 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 1093 (Bug#6744)
8d1d9587 1094
9a747ba6
JD
10952010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1096
4d464ae4
JD
1097 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1098 to TRUE if depth of screen is < 16.
1099
ac01763e
JD
1100 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1101 USE_GTK_TOOLTIP.
e0d62a9b
JB
1102 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1103 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 1104 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
1105 USE_GTK_TOOLTIP.
1106 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1107
1108 * xterm.h (USE_GTK_TOOLTIP): New define.
1109 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1110
9a747ba6
JD
1111 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1112 to Control-D (Bug#6771).
1113
7b0815ba
JB
11142010-08-02 Juanma Barranquero <lekktu@gmail.com>
1115
1116 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1117 Wording by Drew Adams <drew.adams@oracle.com>.
1118
aa1859f5
J
11192010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1120
1121 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1122 ttip_lbl.
1123
1124 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1125 calling gtk_widget_queue_draw.
1126 (x_free_frame_resources): Call xg_free_frame_widgets.
1127
1128 * xfns.c (x_gtk_use_system_tooltips): New variable.
1129 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1130 new gtkutil tooltip functions to show the tooltip.
1131 (Fx_hide_tip): Call xg_hide_tooltip.
1132 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1133
1134 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1135 (xg_show_tooltip, xg_hide_tooltip): Declare.
1136
1137 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
1138 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1139 New functions.
aa1859f5
J
1140 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1141 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1142 Remove code that is commented out.
1143
76417ef4
SM
11442010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1145
1146 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1147
16041401
CY
11482010-07-31 Chong Yidong <cyd@stupidchicken.com>
1149
1150 * xselect.c (x_own_selection): Use list4.
1151
2c09a58f
DN
11522010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1153
1154 * buffer.c (Qwindow): Do not define, already defined in data.c.
1155 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1156
59df9fdd 11572010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 1158
59df9fdd
JB
1159 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1160 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1161 * config.in: Undef HAVE_DIRENT_H.
1c97e857 1162 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 1163 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 1164
1b231651
DN
11652010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1166
1167 Rename s/usg5-4.h -> s/usg5-4-common.h.
1168 * s/usg5-4.h: Rename file to ...
1169 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1170 * s/unixware.h:
1171 * s/sol2-6.h:
1172 * s/irix6-5.h: Update includes accordingly.
1173
bfeabdc3
JD
11742010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1175
2ebf1083
J
1176 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1177
bfeabdc3 1178 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
1179 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1180 Remove toolbar_height.
1181 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
1182 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1183 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1184 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1185
1186 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1187
1188 * xfns.c (x_set_tool_bar_position): New function.
1189 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1190 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 1191 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
1192
1193 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1194 and FRAME_TOOLBAR_LEFT_WIDTH.
1195
1196 * gtkutil.h (xg_change_toolbar_position): Declare.
1197
1198 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1199 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1200 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1201 (xg_create_frame_widgets): Create a hobox for placing widgets
1202 vertically. Use gtk_box_pack_start.
1203 (xg_height_or_width_changed): Renamed from xg_height_changed.
1204 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1205 (xg_update_frame_menubar, free_frame_menubar): Change to
1206 xg_height_or_width_changed.
1207 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1208 size correctly. Remove hardcoded 4, instead use handlebox size -
1209 toolbar size.
1210 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 1211 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
1212 (xg_pack_tool_bar): POS is a new parameter.
1213 Set orientation of tool bar based on pos.
1214 Only make handlebox_widget if NULL.
1215 Check if tool bar goes to vbox or hbox depending on pos.
1216 (xg_update_tool_bar_sizes): New function.
686b968e 1217 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
1218 height, call xg_update_tool_bar_sizes instead.
1219 (free_frame_tool_bar): Remove from hbox or vbox depending on
1220 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1221 (xg_change_toolbar_position): New function.
1222
1223 * frame.h (struct frame): Add tool_bar_position.
1224 (Qbottom): Declare.
1225
1226 * frame.c (Qtool_bar_position): New variable.
1227 (make_frame): Set tool_bar_position to Qtop.
1228 (frame_parms): Add tool-bar-position.
1229 (x_report_frame_params): Store tool_bar_position.
1230 (x_set_fringe_width): Reset wm size hint after fringe changes.
1231
26469a38
DN
12322010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1233
1234 Make lisp_time_argument declaration work on all systems.
1235 * lisp.h (lisp_time_argument): Move declaration ...
1236 * systime.h (lisp_time_argument): ... here
1237 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1238
8848b728
JD
12392010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1240
1241 * vm-limit.c (POINTER): Add typedef for it.
1242 (start_of_data): Change return type from POINTER to char *.
1243
1244 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1245 HAVE_WINDOW_SYSTEM.
1246
76fd1ee9
DN
12472010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1248
0441987e
DN
1249 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1250 Remove reference to __osf__, unused.
1251
56a000c7
DN
1252 * mem-limits.h: Remove duplicated includes.
1253 (NULL): Remove definition, unused.
1254 (POINTER): Remove definition.
1255 (start_of_data): Use char* in prototype, as the function
1256 definition does.
1257
e6cba650
DN
1258 Remove extern declarations from .c files, and them to .h files.
1259 * keyboard.h (Qhelp_echo, waiting_for_input)
1260 (input_available_clear_time, ignore_mouse_drag_p)
1261 (Vdouble_click_time, real_this_command, Vthis_original_command):
1262 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1263 (Voverriding_local_map_menu_flag):
1264 * lisp.h (Qinteractive_form, use_file_dialog)
1265 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1266 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1267 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1268 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1269 (Qfunction, debug_on_next_call, Qfield)
1270 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1271 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1272 (Qfile_directory_p, Qinsert_file_contents)
1273 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1274 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1275 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1276 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1277 (Qminibuffer_prompt)
1278 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1279 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1280 (gray_bitmap_bits, xic_create_fontsetname):
1281 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1282
1283 * xsmfns.c (Vuser_login_name):
1284 * xrdb.c (Vdouble_click_time):
1285 * xfaces.c (xic_create_fontsetname):
1286 * w32select.c (waiting_for_input):
1287 * print.c (minibuffer_auto_raise):
1288 * msdos.c (Qhelp_echo):
1289 * macros.c (real_this_command):
1290 * keymap.c (Voverriding_local_map):
1291 * xterm.c (poll_for_input_1, gray_bitmap_width)
1292 (gray_bitmap_height, gray_bitmap_bits;
1293 * xmenu.c ( Voverriding_local_map)
1294 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1295 (use_file_dialog, Xt_app_con):
1296 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1297 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1298 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1299 (Qtool_bar_lines, ignore_mouse_drag_p):
1300 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1301 (Qrear_nonsticky, nconc2):
1302 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1303 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1304 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1305 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1306 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1307 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1308 (gc_in_progress):
1309 * doc.c (Voverriding_local_map, Qremap):
1310 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1311 (Vcompletion_regexp_list):
1312 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1313 (Qcompletion_ignore_case):
1314 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1315 (Vhistory_length, Vthis_original_command, real_this_command)
1316 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1317 * image.c (Qrisky_local_variable):
1318 * fontset.c (QCname):
1319 * fns.c (minibuffer_auto_raise, QCname):
1320 * dispnew.c (char_ins_del_cost):
1321 * composite.c (font_fill_lglyph_metrics):
1322 * cmds.c (Qface, Vtranslation_table_for_input):
1323 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1324 * ccl.c (charset_unicode):
1325 * callproc.c (Vtemporary_file_directory):
1326 * buffer.c (emacs_strerror): Remove extern declarations.
1327
1328 * data.c (Qwindow): Make non-static, used from other files too.
1329 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1330
76fd1ee9
DN
1331 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1332 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1333 * s/usg5-4.h (COFF):
1334 * s/template.h:
1335 * s/msdos.h (COFF, NO_REMAP):
1336 * s/ms-w32.h (NO_REMAP):
1337 * s/hpux10-20.h (NO_REMAP):
1338 * m/sparc.h (SEGMENT_MASK):
1339 * m/m68k.h (NO_REMAP):
1340 * m/intel386.h (SEGMENT_MASK):
1341 * m/arm.h (NO_REMAP):
1342 * m/alpha.h (COFF):
1343 * m/template.h: Remove references to unused defines.
1344
8a52f00a
JD
13452010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1346
1347 * xsettings.c (Ftool_bar_get_system_style): Also check for
1348 Qtext_image_horiz.
1349
1350 * xdisp.c (Qtext_image_horiz): Define.
1351 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 1352 to documentation of tool-bar-style.
8a52f00a
JD
1353
1354 * lisp.h (Qtext_image_horiz): Declare.
1355
1356 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1357 style text_image_horiz.
1358
89dc303e
DN
13592010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1360
60799703
DN
1361 * emacs.c (Fkill_emacs): Remove return statement.
1362
37254dc1
DN
1363 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1364 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1365 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1366 local extern declarations.
1367
71c7345a
DN
1368 * xmenu.c: Do not included lwlib.h, not needed.
1369
6ba577cb
DN
1370 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1371
fdb183d6
DN
1372 * process.c: Move definitions earlier to minimize #ifdefs.
1373
1374 * xterm.h (x_get_customization_string, x_load_resources)
1375 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1376 (x_check_errors, x_property_data_to_lisp, defined_color)
1377 (xic_set_xfontset, x_defined_color): Use const.
1378
1379 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1380 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1381
1382 * xselect.c (selection_data_to_lisp_data)
1383 (x_property_data_to_lisp):
1384 * xrdb.c (x_get_string_resource, file_p)
1385 (x_get_customization_string, magic_file_p, search_magic_path)
1386 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1387 (x_get_string_resource): Use const.
1388
1389 * xfns.c: Include xlwmenu.h when USE_LUCID.
1390 (x_defined_color, xic_set_xfontset): Use const.
1391 (Fx_hide_tip): Remove local extern declaration.
1392
1393 * xfaces.c (Qmouse_face): Remove declaration.
1394 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 1395 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
1396
1397 * xdisp.c (do_mouse_tracking): Remove declaration.
1398 (add_to_log): Use const.
1399
1400 * minibuf.c (Qmouse_face): Remove declaration.
1401
1402 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1403
1404 * keyboard.h (do_mouse_tracking): Add declaration.
1405
1406 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1407 (QCdata, QCtype, Qcenter): Remove declarations.
1408
1409 * frame.c (x_get_resource_string, x_get_string_resource)
1410 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1411 (x_default_parameter): Use const.
1412
1413 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1414 (QCheight, QCsize, QCname): Remove declarations.
1415
1416 * emacs.c (main): Remove local extern declaration.
1417
1418 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1419 declarations.
1420
1421 * dispnew.c: Remove duplicate #include <unistd.h>.
1422 (update_window, update_frame_1, init_display): Remove local extern
1423 declarations.
1424
1425 * dispextern.h (add_to_log): Remove declaration.
1426 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1427 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1428
1429 * dired.c (scmp): Add const.
1430 (directory_files_internal): Remove local extern declaration.
1431
1432 * data.c (Finteractive_form): Use const.
1433
1434 * composite.c (syms_of_composite): Remove local extern declarations.
1435
1436 * charset.c (add_to_log): Remove declaration.
1437
1438 * character.c (strwidth, parse_str_to_multibyte): Add const.
1439
1440 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1441
1442 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1443
89dc303e 1444 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
1445 (Lisp_Subr): Make doc and intspec constant.
1446 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1447 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1448 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1449 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1450 (display_arg): Add declarations.
89dc303e 1451
0ed082fe 14522010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
1453
1454 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1455
0ed082fe
JB
1456 * window.c (Fwindow_height): Doc fix (bug#6518).
1457
14582010-07-27 Juanma Barranquero <lekktu@gmail.com>
1459
1460 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1461
ccaf0336
DN
14622010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1463
977105dc
DN
1464 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1465 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1466 functions.
1467
f5ada890
DN
1468 * frame.h (Qtty_color_mode): Add declaration.
1469
ccaf0336
DN
1470 * lisp.h (Ftop_level, Fexit_recursive_edit)
1471 (Fabort_recursive_edit): Mark as NO_RETURN.
1472
dfe3c90f
KH
14732010-07-26 Kenichi Handa <handa@m17n.org>
1474
1475 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 1476 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 1477
7d383292
JB
14782010-07-26 Juanma Barranquero <lekktu@gmail.com>
1479
1480 * lread.c (unreadpure, mapatoms_1): Make static.
1481
da31e629
JB
14822010-07-25 Juanma Barranquero <lekktu@gmail.com>
1483
1484 * terminfo.c (tparam): Fix prototype of tparm.
1485
7bfa6d77
AS
14862010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1487
dcc19aac
AS
1488 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1489 find start of text segment.
1490 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1491 is defined.
1492
7bfa6d77
AS
1493 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1494
63f9a672
KB
14952010-07-25 Ken Brown <kbrown@cornell.edu>
1496
1497 * vm-limit.c (check_memory_limits): Fix previous change;
1498 accidentally reverted an earlier change.
1499
24933075
KB
15002010-07-25 Ken Brown <kbrown@cornell.edu>
1501
1502 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1503 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1504
361358ea
JB
15052010-07-25 Juanma Barranquero <lekktu@gmail.com>
1506
1507 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1508 * dired.c (opendir, readdir): Fix prototypes.
1509 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1510 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1511 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1512 (telldir): Remove declaration.
1513 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1514 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1515 * syssignal.h (strsignal): Fix prototype.
1516 * term.c (tparam): Fix prototype.
1517 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1518 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1519 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1520 and __morecore.
1521 * w32gui.h (XParseGeometry): Fix prototype.
1522 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1523 * w32term.c (my_set_focus): Declare inside #if 0.
1524 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1525 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1526 (drain_message_queue, get_next_msg, post_msg, parse_button)
1527 (ClipboardSequence_Proc): Fix prototypes.
1528 (wait_for_sync): Remove declaration.
1529
630b9592
JB
15302010-07-24 Juanma Barranquero <lekktu@gmail.com>
1531
1532 * w32fns.c (w32_to_x_color): Remove, unused.
1533
6a0d6611
AS
15342010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1535
1536 * lisp.h: Remove leftover P_.
1537
4e8608ff
DN
15382010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1539
1540 * ecrt0.c, unexalpha.c: Remove files, unused.
1541
c8197983
AS
15422010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1543
1544 * cmds.c (internal_self_insert): Make static.
1545 * lisp.h (internal_self_insert): Remove declaration.
1546
97b372d7
JB
15472010-07-23 Juanma Barranquero <lekktu@gmail.com>
1548
33ac0414
JB
1549 * alloc.c (free_float):
1550 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1551 * frame.c (delete_frame_handler):
1552 * ralloc.c (reorder_bloc):
1553 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1554 Remove unused static functions.
1555
94da8397
JB
1556 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1557 it is called only from NS code.
1558
2e6c8532
JB
1559 * w32term.c (my_set_focus): #ifdef away; it is called only from
1560 "#ifdef 0" code.
1561
97b372d7
JB
1562 * w32fns.c (x_edge_detection):
1563 * xfaces.c (may_use_scalable_font_p):
1564 Remove obsolete static declarations.
1565
7c3320d8
JB
15662010-07-20 Juanma Barranquero <lekktu@gmail.com>
1567
1568 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1569 (emacs_blocked_realloc, uninterrupt_malloc):
1570 * fringe.c (w32_reset_fringes):
1571 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1572 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1573 * sound.c (be2hs, do_play_sound):
1574 * vm-limit.c (get_lim_data, ret_lim_data):
1575 * w32term.c (x_free_frame_resources):
1576 * xfaces.c (x_create_gc, x_free_gc):
1577 Convert definitions to standard C.
1578
d5273788
SM
15792010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1580
1581 * eval.c (Feval, Ffuncall): Use the new names.
1582
1583 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1584 (DEFUN): Add braces around the union initialisation and use ## to
1585 specify the right union alternative and avoid a cast.
1586
8d16a259
JB
15872010-07-18 Juanma Barranquero <lekktu@gmail.com>
1588
1589 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1590
3b8eff32
CY
15912010-07-17 Chong Yidong <cyd@stupidchicken.com>
1592
1593 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1594
499322ce
J
15952010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1596
1597 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1598 is related to the menu bar (Bug#6499).
a628ad9d 1599 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 1600
f6003da5 16012010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
1602
1603 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1604
1605 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1606
1607 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1608 i.e. don't put back ButtonRelease (Bug#6608).
1609
1610 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1611 instead of Window. Call xg_event_is_for_menubar when
1612 USE_GTK (Bug#6499).
1613
1614 * gtkutil.h (xg_event_is_for_menubar): Declare.
1615
1616 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1617
f6003da5 16182010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
1619
1620 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1621 when it's the same as the old foreground. (Bug#6609)
1622
23243f29
J
16232010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1624
1625 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1626 widget is non-null (Bug#6645).
1627
2b23d2a6
AS
16282010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1629
01b564ff
AS
1630 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1631 Convert old-style definition.
1632
2b23d2a6
AS
1633 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1634 timestamp argument.
1635
c4affd2c
EZ
16362010-07-15 Eli Zaretskii <eliz@gnu.org>
1637
1638 * fringe.c (update_window_fringes): Restore mistakenly reverted
1639 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1640
cf28cebc
J
16412010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1642
1643 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1644 (SET_SAVED_KEY_EVENT): Remove (not used).
1645 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1646 remove size parameter.
1647 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1648 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1649 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1650 ButtonRelease.
6b2c4bd9
J
1651 (x_set_window_size_1): scroll_bar_actual_width is always
1652 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
1653
1654 * xdisp.c (pending_menu_activation): Remove extern declaration.
1655 (prepare_menu_bars): Remove setting of pending_menu_activation.
1656
1657 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
1658 (x_activate_menubar): Set popup_activated_flag for Xt also.
1659 Remove setting of pending_menu_activation.
cf28cebc
J
1660 (set_frame_menubar): Remove check of pending_menu_activation.
1661 Declare menubar_size before code. Correct spelling in comment.
1662
f6c1c771
KH
16632010-07-14 Kenichi Handa <handa@m17n.org>
1664
1665 * font.c (font_open_entity): Cancel previous change.
1666 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1667
20477505
EZ
16682010-07-13 Eli Zaretskii <eliz@gnu.org>
1669
77defa9a
EZ
1670 Remove subprocesses #ifdefs.
1671 * process.c <inhibit_sentinels>: Move to the common part.
1672 (Fwaiting_for_user_input_p): Move to the common part; return nil
1673 if async subprocesses aren't supported.
1674 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1675 MS-DOS. Remove "#ifdef subprocesses".
1676 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1677 (gettimeofday): Remove "#ifdef subprocesses".
1678 (wait_without_blocking): Remove function.
1679 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1680 Remove "#ifdef subprocesses".
1681 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1682 compiled on MS-DOS.
1683 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1684 wait_for_termination on MS-DOS.
1685 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1686 initialization of inhibit_sentinels.
1687 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1688 subprocesses" conditional.
1689 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1690 wait_for_termination, since `buffer' cannot be an integer when
1691 async subprocesses are not supported
1692 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1693 for ifdefing away the call to Fprocess_status.
1694
20477505
EZ
1695 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1696 away the entire body of the function.
1697
b3ffc17c
DN
16982010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1699
01faa934
DN
1700 Remove subprocesses #ifdefs from term.c.
1701 * process.c (add_keyboard_wait_descriptor)
1702 (delete_keyboard_wait_descriptor): Move to common section, do
1703 nothing when subprocesses is not defined.
a628ad9d
JB
1704 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1705 Remove subprocesses #ifdefs.
01faa934 1706
b3ffc17c
DN
1707 Convert maybe_fatal to standard C.
1708 * lisp.h (verror): Declare.
1709 * eval.c (verror): New function containing the code from ...
1710 (error): ... this. Call verror.
1711 * term.c (vfatal): New function containing the code from ...
1712 (fatal): ... this. Call vfatal.
1713 (maybe_fatal): Convert to standard C, use variable number of
1714 arguments. Declare as non-return.
1715 (init_tty): Fix maybe_fatal call.
1716
0521f580
DN
17172010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1718
1719 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1720 (_scroll_bar_note_movement): Convert definitions to standard C.
1721 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1722 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1723
ebd15611
DN
17242010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1725
1726 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1727 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1728 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1729 (xaw_jump_callback, xaw_scroll_callback)
1730 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1731 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1732 definitions to standard C.
1733 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1734 (popup_activate_callback, popup_deactivate_callback)
1735 (menu_highlight_callback, menubar_selection_callback)
1736 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1737 (free_frame_menubar, popup_selection_callback, as)
1738 (create_and_show_popup_menu, dialog_selection_callback)
1739 (create_and_show_dialog):
1740 * xfns.c (hack_wm_protocols, x_window):
1741 * xfaces.c (x_update_menu_appearance):
1742 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1743 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1744 (set_frame_size, update_wm_hints, setup_frame_gcs)
1745 (update_various_frame_slots, update_from_various_frame_slots)
1746 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1747 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1748 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1749
de06a2dd
AS
17502010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1751
a628ad9d 1752 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 1753
fc549af9
EZ
17542010-07-12 Eli Zaretskii <eliz@gnu.org>
1755
1756 * process.c (setup_process_coding_systems): Move to the part
1757 shared by non-subprocesses systems, and make its body empty when
1758 subprocesses is not defined.
1759 (close_process_descs): Move to the part shared by non-subprocesses
1760 systems.
1408902e
EZ
1761 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1762 ANSI C.
fc549af9 1763
d5a3eaaf
AS
17642010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1765
1766 * editfns.c (transpose_markers): Convert old-style definition.
1767 * emacs.c (abort, shut_down_emacs, fixup_locale)
1768 (synchronize_system_time_locale)
1769 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1770 * floatfns.c (extract_float, matherr, init_floatfns)
1771 (syms_of_floatfns): Likewise.
1772 * fns.c (make_hash_table): Likewise.
1773 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1774 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1775 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1776 (ftfont_variation_glyphs): Likewise.
1777 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1778 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1779 * lread.c (read_filtered_event): Likewise.
1780 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1781 * process.c (wait_reading_process_output): Likewise.
1782 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1783 * search.c (search_buffer, boyer_moore): Likewise.
1784 * syntax.c (scan_sexps_forward): Likewise.
1785 * xdisp.c (try_scrolling): Likewise.
1786 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1787 (face_at_string_position): Likewise.
1788 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1789 * xselect.c (x_get_window_property, receive_incremental_selection)
1790 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1791 Likewise.
1792 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1793
6f704c76
DN
17942010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1795
ded80a25
DN
1796 * callproc.c (child_setup): Remove subprocesses conditional.
1797 Remove code dealing with SET_EMACS_PRIORITY, unused.
1798
49d937f4 1799 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
1800 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1801
1802 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1803 (__do_global_dtors, __main): Use void in definition.
1804 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1805 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1806 the only users from ...
1807 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1808 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1809 (HAVE_VOLATILE): Remove, unused.
1810
6f704c76
DN
1811 Convert more function definitions to standard C.
1812 * xdisp.c (window_box_edges, handle_single_display_spec)
1813 (display_string): Convert definition to standard C.
1814 * scroll.c (do_direct_scrolling, scrolling_1):
1815 * dispnew.c (allocate_matrices_for_frame_redisplay)
1816 (mirrored_line_dance):
1817 * coding.c (code_convert_string):
1818 * charset.c (map_charset_chars):
1819 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1820 (Fregister_ccl_program, Fregister_code_conversion_map):
1821 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1822 (head_table): Make static and const.
1823
e6cfa7c3
AS
18242010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1825
1826 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1827 (PROFILING_LDFLAGS): Set from substitution.
1828 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1829 CFLAGS last.
1830
892dd565
KH
18312010-07-12 Kenichi Handa <handa@m17n.org>
1832
6f2cdcd1
KH
1833 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1834 (shortlisp): Likewise.
1835
892dd565
KH
1836 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1837
1838 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1839 of FONT_ENTITY_INDEX.
1840 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1841 property, get the property value dynamically.
1842 (Ffont_put): Accept font-entity and font-object too.
1843 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1844 return value changed.
1845 (syms_of_font): Adjusted for the above change.
1846
ae96d47a
AS
18472010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1848
c8fc18ee
AS
1849 * blockinput.h: Remove obsolete comment.
1850
89887d67
AS
1851 * lisp.h: Include <stddef.h>.
1852 (OFFSETOF): Don't define.
1853 (VECSIZE): Use offsetof instead of OFFSETOF.
1854 (PSEUDOVECSIZE): Likewise.
1855 * process.c (conv_sockaddr_to_lisp): Likewise.
1856 * alloc.c: Don't include <stddef.h>.
1857 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1858
ae96d47a
AS
1859 * process.c: Remove obsolete comment.
1860
635c0aa1
CY
18612010-07-11 Chong Yidong <cyd@stupidchicken.com>
1862
1863 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1864
a64df650
AS
18652010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1866
8966b757
AS
1867 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1868 index, rindex.
1869 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1870 * editfns.c (Fuser_full_name, Fformat): Likewise.
1871 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1872 * fileio.c (Ffile_symlink_p): Likewise.
1873 * filelock.c (current_lock_owner): Likewise.
1874 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1875 * fontset.c (fontset_pattern_regexp): Likewise.
1876 * lread.c (read1): Likewise.
1877 * sysdep.c (init_system_name): Likewise.
1878 * xfns.c (select_visual): Likewise.
1879 * s/hpux10-20.h (index, rindex): Don't define.
1880 * s/ms-w32.h (index): Likewise.
1881 * s/usg5-4.h: Likewise.
1882
cf237e27
AS
1883 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1884
a8fe7202
AS
1885 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1886 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1887 (egetenv): Likewise.
1888 * doprnt.c (doprnt): Likewise.
1889 * editfns.c (set_time_zone_rule, format2): Likewise.
1890 * emacs.c (decode_env_path): Likewise.
1891 * eval.c (signal_error, error): Likewise.
1892 * insdel.c (replace_range_2): Likewise.
1893 * keyboard.c (cmd_error_internal): Likewise.
1894 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1895 * print.c (write_string, write_string_1, print_error_message):
1896 Likewise.
1897 * vm-limit.c (warn_function, memory_warnings): Likewise.
1898 * xdisp.c (message1, message1_nolog, message_with_string)
1899 (vmessage, message, message_nolog): Likewise.
1900 * emacs.c: Remove duplicate declaration.
1901 * keyboard.h: Likewise.
1902 * lisp.h: Update prototypes.
1903
bb8e180f
AS
1904 * eval.c: Fix indentation problem.
1905
83380e65
AS
1906 * keyboard.c: Include "process.h"
1907
a64df650
AS
1908 * eval.c: Remove obsolete noinline declaration.
1909 * fns.c: Likewise.
1910
6a8033e1
KR
19112010-07-11 Ken Raeburn <raeburn@raeburn.org>
1912
1913 * doprnt.c (doprnt): Take a va_list argument instead of count and
1914 pointer.
1915 * eval.c (error): Change to a standard-C variadic function.
1916 * xdisp.c (vmessage): Renamed from message, made static, and
1917 changed to take a va_list argument.
1918 (message): New variadic wrapper.
1919 (message_nolog): Now a variadic function, calling vmessage.
1920 * lisp.h: Include stdarg.h for va_list.
1921 (doprnt, error, message, message_nolog): Decls updated.
1922
462aa963
EZ
19232010-07-11 Eli Zaretskii <eliz@gnu.org>
1924
1925 * process.c (syms_of_process) <delete-exited-processes>: Define
1926 even if !subprocesses.
1927 (delete_exited_processes): Ditto.
1928
1929 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1930 (delete_exited_processes): Don't define.
1931
48104462
CY
19322010-07-10 Chong Yidong <cyd@stupidchicken.com>
1933
1934 * frame.c (make_frame): Initialize menu_bar_lines and
1935 tool_bar_lines members.
1936 (make_initial_frame, make_terminal_frame): Initialize
1937 menu_bar_lines using value of menu-bar-mode.
1938
1939 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1940
f388c88a
EZ
19412010-07-10 Eli Zaretskii <eliz@gnu.org>
1942
1943 * process.c: Reshuffle #include's. Condition some of the global
1944 and static variables on `subprocesses'.
1945 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1946 Leave only one implementation.
1947 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1948 (kill_buffer_processes, Flist_system_processes)
1949 (Fprocess_attributes, init_process, syms_of_process): Unify the
1950 implementations for with subprocesses and without them.
1951
723f5a07
J
19522010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1953
1954 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1955 correct size for Motif.
1956 (free_frame_menubar): Call x_set_window_size to update frame size.
1957
1958 * xfns.c (x_window): Set borderWidth to 0 for pane and
1959 EmacsFrame. Frame size calculation is wrong otherwise.
1960
2536a4b7
MA
19612010-07-09 Michael Albinus <michael.albinus@gmx.de>
1962
1963 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1964 allows to suppress errors when polling in Emacs' main loop.
1965 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1966 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1967 (Fdbus_method_error_internal, Fdbus_send_signal)
1968 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1969 (Fdbus_register_method): Use it. (Bug#6579)
1970
5842a27b
DN
19712010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1972
1973 * alloc.c: Convert DEFUNs to standard C.
1974 * buffer.c:
1975 * bytecode.c:
1976 * callint.c:
1977 * callproc.c:
1978 * casefiddle.c:
1979 * casetab.c:
1980 * category.c:
1981 * character.c:
1982 * charset.c:
1983 * chartab.c:
1984 * cmds.c:
1985 * coding.c:
1986 * composite.c:
1987 * data.c:
1988 * dbusbind.c:
1989 * dired.c:
1990 * dispnew.c:
1991 * doc.c:
1992 * dosfns.c:
1993 * editfns.c:
1994 * emacs.c:
1995 * eval.c:
1996 * fileio.c:
1997 * filelock.c:
1998 * floatfns.c:
1999 * fns.c:
2000 * font.c:
2001 * fontset.c:
2002 * frame.c:
2003 * fringe.c:
2004 * image.c:
2005 * indent.c:
2006 * insdel.c:
2007 * keyboard.c:
2008 * keymap.c:
2009 * lread.c:
2010 * macros.c:
2011 * marker.c:
2012 * menu.c:
2013 * minibuf.c:
2014 * msdos.c:
2015 * nsfns.m:
2016 * nsmenu.m:
2017 * nsselect.m:
2018 * print.c:
2019 * process.c:
2020 * search.c:
2021 * sound.c:
2022 * syntax.c:
2023 * term.c:
2024 * terminal.c:
2025 * textprop.c:
2026 * undo.c:
2027 * w16select.c:
2028 * w32console.c:
2029 * w32fns.c:
2030 * w32font.c:
2031 * w32menu.c:
2032 * w32proc.c:
2033 * w32select.c:
2034 * window.c:
2035 * xdisp.c:
2036 * xfaces.c:
2037 * xfns.c:
2038 * xmenu.c:
2039 * xselect.c:
2040 * xsettings.c:
2041 * xsmfns.c: Likewise.
2042
d568829b
EZ
20432010-07-08 Eli Zaretskii <eliz@gnu.org>
2044
2045 * process.c (kbd_is_on_hold, hold_keyboard_input)
2046 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2047
52214050
J
20482010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2049
2050 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2051 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2052 unless USE_LUCID.
2053
313d9eb2
DN
20542010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2055
a628ad9d
JB
2056 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2057 declaration.
d8825aa3 2058
295d0d8f
DN
2059 Clean up include guards.
2060 * tparam.c: Remove include guards for config.h, string.h and code
2061 that assumes #ifndef emacs.
2062 * termcap.c:
2063 * unexalpha.c:
2064 * sysdep.c:
2065 * filemode.c:
2066 * filelock.c:
2067 * bidi.c: Likewise.
2068
49d9e6b0
DN
2069 Remove prefix-args.c
2070 * prefix-args.c: Remove file.
2071 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2072 * Makefile.in (temacs${EXEEXT}): Remove references to
2073 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2074 (mostlyclean): Remove reference to prefix-args.
2075 (prefix-args): Remove.
2076
313d9eb2
DN
2077 Simplify cstart_of_data, start_of_code and related code.
2078 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2079 (start_of_data): Merge into start_of_data function.
2080 * sysdep.c (start_of_text): Remove. Move simplified versions of
2081 it in the only users: unexaix.c and unexec.c.
2082 (read_input_waiting): Remove local declaration of quit_char.
2083 (start, etext): Remove declarations.
2084 (start_of_data): Merge with the version in mem-limits.h and move
2085 to vm-limits.c.
2086 * vm-limit.c (start_of_data): Merged and simplified version of the
2087 code formerly in mem-limits.h and sysdep.c.
2088 * unexec.c (start): New declaration, moved from sysdep.c.
2089 (start_of_text): Simplified version of the code formerly in sysdep.c.
2090 * unexaix.c (start_of_text): Simplified version of the code
2091 formerly in sysdep.c.
2092 * m/alpha.h (HAVE_TEXT_START): Remove.
2093 (TEXT_START): Move ...
2094 * unexalpha.c (TEXT_START): ... here.
2095 * s/hpux10-20.h (TEXT_START): Remove.
2096 * s/darwin.h (TEXT_START):
2097 * m/mips.h (TEXT_START):
2098 * m/macppc.h (HAVE_TEXT_START):
2099 * m/m68k.h (TEXT_START):
2100 * m/iris4d.h (TEXT_START):
2101 * m/intel386.h (TEXT_START):
2102 * m/ibmrs6000.h (TEXT_START):
2103 * m/ia64.h (HAVE_TEXT_START):
2104 * s/msdos.h (TEXT_START): Likewise.
2105
72af86bd
AS
21062010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2107
2108 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2109 (overrun_check_free, xstrdup, allocate_string)
2110 (allocate_string_data, compact_small_strings, Fmake_string)
2111 (make_unibyte_string, make_multibyte_string)
2112 (make_string_from_bytes, make_specified_string, make_float)
2113 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2114 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2115 memcpy, memmove, memset, memcmp.
2116 * atimer.c (start_atimer, set_alarm): Likewise.
2117 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2118 (mmap_realloc, init_buffer_once): Likewise.
2119 * callint.c (Fcall_interactively): Likewise.
2120 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2121 (getenv_internal_1): Likewise.
2122 * casefiddle.c (casify_object): Likewise.
2123 * ccl.c (ccl_driver): Likewise.
2124 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2125 * charset.c (load_charset_map_from_file)
2126 (load_charset_map_from_file, load_charset_map_from_vector)
2127 (Fdefine_charset_internal): Likewise.
2128 * cm.c (Wcm_clear): Likewise.
2129 * coding.c (decode_eol, decode_coding_object)
2130 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2131 * data.c (Faset): Likewise.
2132 * dired.c (directory_files_internal, file_name_completion_stat):
2133 Likewise.
2134 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2135 (clear_glyph_row, copy_row_except_pointers)
2136 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2137 (save_current_matrix, restore_current_matrix)
2138 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2139 (mirror_line_dance, scrolling_window): Likewise.
2140 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2141 Likewise.
2142 * doprnt.c (doprnt): Likewise.
2143 * editfns.c (Fuser_full_name, make_buffer_string_both)
2144 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2145 * emacs.c (sort_args): Likewise.
2146 * eval.c (Fapply, Ffuncall): Likewise.
2147 * fileio.c (Ffile_name_directory, make_temp_name)
2148 (Fexpand_file_name, search_embedded_absfilename)
2149 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2150 (auto_save_error): Likewise.
2151 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2152 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2153 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2154 (Fmake_hash_table): Likewise.
2155 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2156 * ftfont.c (ftfont_text_extents): Likewise.
2157 * getloadavg.c (getloadavg): Likewise.
2158 * image.c (define_image_type, make_image, make_image_cache)
2159 (x_create_x_image_and_pixmap, xbm_image_p)
2160 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2161 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2162 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2163 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2164 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2165 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2166 Likewise.
2167 * indent.c (scan_for_column, compute_motion): Likewise.
2168 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2169 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2170 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2171 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2172 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2173 (store_user_signal_events, menu_bar_items, tool_bar_items)
2174 (process_tool_bar_item, append_tool_bar_item)
2175 (read_char_minibuf_menu_prompt, read_key_sequence)
2176 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2177 Likewise.
2178 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2179 Likewise.
2180 * lisp.h (STRING_COPYIN): Likewise.
2181 * lread.c (Fload, read1, oblookup): Likewise.
2182 * msdos.c (Frecent_doskeys): Likewise.
2183 * nsfns.m (Fx_create_frame): Likewise.
2184 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2185 Likewise.
2186 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2187 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2188 Likewise.
2189 * nsmenu.m (ns_update_menubar): Likewise.
2190 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2191 * print.c (print_unwind, printchar, strout, print_string)
2192 (print_error_message): Likewise.
2193 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2194 (Fmake_network_process, Fnetwork_interface_list)
2195 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2196 (init_process): Likewise.
2197 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2198 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2199 Likewise.
2200 * scroll.c (do_scrolling, do_direct_scrolling)
2201 (scrolling_max_lines_saved): Likewise.
2202 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2203 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2204 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2205 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2206 (emacs_set_tty): Likewise.
2207 * term.c (encode_terminal_code, calculate_costs)
2208 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2209 Likewise.
2210 * termcap.c (tgetst1, gobble_line): Likewise.
2211 * termhooks.h (EVENT_INIT): Likewise.
2212 * tparam.c (tparam1): Likewise.
2213 * unexalpha.c (unexec): Likewise.
2214 * unexec.c (write_segment): Likewise.
2215 * unexmacosx.c (unexec_write_zero): Likewise.
2216 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2217 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2218 * w32font.c (w32font_list_family, w32font_text_extents)
2219 (w32font_list_internal, w32font_match_internal)
2220 (w32font_open_internal, compute_metrics, Fx_select_font):
2221 Likewise.
2222 * w32menu.c (set_frame_menubar, add_menu_item)
2223 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2224 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2225 * w32uniscribe.c (uniscribe_list_family): Likewise.
2226 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2227 * window.c (make_window, replace_window, set_window_buffer)
2228 (Fsplit_window): Likewise.
2229 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2230 (add_to_log, message3, x_consider_frame_title)
2231 (append_space_for_newline, extend_face_to_end_of_line)
2232 (decode_mode_spec_coding, init_glyph_string): Likewise.
2233 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2234 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2235 (face_attr_equal_p, make_realized_face, make_face_cache)
2236 (free_realized_faces, lookup_named_face, smaller_face)
2237 (face_with_height, lookup_derived_face)
2238 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2239 (Finternal_set_font_selection_order, realize_default_face)
2240 (compute_char_face, face_at_buffer_position)
2241 (face_for_overlay_string, face_at_string_position, merge_faces):
2242 Likewise.
2243 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2244 (Fx_window_property, x_create_tip_frame)
2245 (Fx_backspace_delete_keys_p): Likewise.
2246 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2247 (xfont_text_extents): Likewise.
2248 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2249 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2250 * xselect.c (x_queue_event, x_get_window_property)
2251 (receive_incremental_selection): Likewise.
2252 * xsmfns.c (x_session_check_input): Likewise.
2253 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2254 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2255 Likewise.
2256 * character.h (BCOPY_SHORT): Removed.
2257 * config.in: Regenerate.
2258 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2259 * emacs.c (main) [PROFILING]: Don't declare
2260 dump_opcode_frequencies.
2261 * lisp.h (safe_bcopy): Remove declaration.
2262 (memset) [!HAVE_MEMSET]: Declare.
2263 (memcpy) [!HAVE_MEMCPY]: Likewise.
2264 (memmove) [!HAVE_MEMMOVE]: Likewise.
2265 (memcmp) [!HAVE_MEMCMP]: Likewise.
2266 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2267 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2268 Don't define.
2269 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2270 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2271 (BCOPY_DOWNWARD_SAFE): Don't define.
2272 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2273 (memcpy) [!HAVE_MEMCPY]: Define.
2274 (memmove) [!HAVE_MEMMOVE]: Define.
2275 (memcmp) [!HAVE_MEMCMP]: Define.
2276
cb768704
J
22772010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2278
2279 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
2280 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2281 New functions.
cb768704
J
2282 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2283 select on empty input mask.
2284 (init_process): Initialize kbd_is_on_hold to 0.
2285
2286 * process.h (hold_keyboard_input, unhold_keyboard_input)
2287 (kbd_on_hold_p): Declare.
2288
2289 * keyboard.c (input_available_signal): Declare.
2290 (kbd_buffer_nr_stored): New function.
2291 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2292 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2293 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2294 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2295 (tty_read_avail_input): If input is on hold, return.
2296 Don't read more that free slots in kbd_buffer (Bug#6571).
2297
3a8ce822
EZ
22982010-07-07 Eli Zaretskii <eliz@gnu.org>
2299
2300 * msdos.h:
2301 * msdos.c:
2302 * dosfns.c:
2303 * w16select.c: Convert function definitions to ANSI C.
2304
a628ad9d
JB
2305 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2306 Remove unused prototypes.
3a8ce822 2307
cf84bb53
JB
23082010-07-07 Juanma Barranquero <lekktu@gmail.com>
2309
2310 * coding.c, sysdep.c: Convert some more functions to standard C.
2311
1a4990fb
JB
23122010-07-07 Juanma Barranquero <lekktu@gmail.com>
2313
2314 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2315 (encode_coding_object): Use SPECPDL_INDEX.
2316 (syms_of_coding): Use DOS_NT.
2317
c0f2f16b
DN
23182010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2319
48fb6855
DN
2320 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2321
c0f2f16b
DN
2322 Make the function member of Lisp_Subr use standard C prototypes.
2323 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2324 (DECL_ALIGN): Add a cast for the function.
2325 * eval.c (Feval, Ffuncall): Use the proper type for each type
2326 function call.
2327
67aecef9
CY
23282010-07-06 Chong Yidong <cyd@stupidchicken.com>
2329
2330 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2331 fringe face id, so face-remapping-alist works (Bug#6091).
2332
b56ceb92
JB
23332010-07-06 Juanma Barranquero <lekktu@gmail.com>
2334
2335 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2336 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2337 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2338
7af07b96
AS
23392010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2340
2341 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2342 * lisp.h: Declare x_get_keysym_name.
2343 * keyboard.c (modify_event_symbol): Don't declare
2344 x_get_keysym_name here.
2345
69e24e34
DN
23462010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2347
2348 * ecrt0.c: Revert conversion to standard C.
2349
d3da34e0 23502010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
2351
2352 * vm-limit.c (memory_warnings):
2353 * keyboard.c (modify_event_symbol):
2354 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2355 (round2, emacs_rint):
2356 * process.c (send_process, old_sigpipe): Convert function
2357 definitions and declarations to standard C.
2358
23592010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
2360
2361 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2362 * xdisp.c: Convert function definitions to standard C.
2363
2364 * cm.c (cmputc): Arg C is now int, not char.
2365 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2366
00be444c
J
23672010-07-05 James Cloos <cloos@jhcloos.com>
2368
2369 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2370
2371 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2372 _NET_WM_ICON_NAME atoms.
2373
2374 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2375 and _NET_WM_ICON_NAME properties, too, matching what is
2376 done in the Gtk+ case.
2377
e4c8d29a
J
23782010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2379
ff919460
J
2380 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2381
e4c8d29a
J
2382 * xsmfns.c (SSDATA): New macro.
2383 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2384 passed to strlen/strcpy/strcat.
2385 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2386 7:th arg to XChangeProperty to (unsigned char *)
2387
2388 * xsettings.c (something_changedCB, parse_settings)
2389 (apply_xft_settings): Reformat prototype.
2390 (something_changedCB, init_gconf): Remove unused variable i.
2391 (read_settings): Remove unused variable long_len.
2392
2393 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2394 (xg_get_image_for_pixmap, create_dialog)
2395 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2396 (menuitem_highlight_callback, make_menu_item)
2397 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2398 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2399 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2400 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2401 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2402 (xg_tool_bar_item_expose_callback): Reformat prototype.
2403 (xg_update_menubar): GList *group => GSList *group.
2404 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2405 before use.
2406 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2407 to GTK_IMAGE (wimage).
2408
dd4c5104
DN
24092010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2410
898b4c5c
DN
2411 * atimer.c: Use "" instead of <> for local includes for
2412 consistency with the rest of the code.
2413
dd4c5104
DN
2414 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2415 * xrdb.c (get_system_name):
2416 * window.c (shrink_windows):
2417 * syntax.c (forw_comment):
2418 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2419 (ins_del_costs):
2420 * mem-limits.h (start_of_data):
2421 * lread.c (readevalloop):
2422 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2423 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2424 * frame.c (x_get_focus_frame):
2425 * floatfns.c (fmod_float):
2426 * fileio.c (choose_write_coding_system):
2427 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2428 (malloc_initialize_hook, sort_args, synchronize_locale):
2429 * doprnt.c (doprnt):
2430 * dired.c (compile_pattern):
2431 * data.c (fmod_float):
2432 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2433 (map_char_table_for_charset):
2434 * charset.c (define_charset_internal):
2435 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2436 to standard C.
2437
9a39b306 24382010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 2439 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
2440
2441 * lread.c (read1): Fix up last change to not mess up `c'.
2442
e6cb2cbb
JB
24432010-07-04 Juanma Barranquero <lekktu@gmail.com>
2444
2445 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2446
438105ed
JB
24472010-07-04 Juanma Barranquero <lekktu@gmail.com>
2448
2449 Fix prototypes.
2450
e5447b22 2451 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 2452 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
2453 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2454 arg, as required by internal_condition_case_1.
dcc7404b 2455 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
2456 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2457 (analyse_first): Fix "const const".
e5447b22 2458 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 2459 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 2460 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 2461
971de7fb
DN
24622010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2463
2464 * alloc.c: Convert function definitions to standard C.
2465 * atimer.c:
2466 * bidi.c:
2467 * bytecode.c:
2468 * callint.c:
2469 * callproc.c:
2470 * casefiddle.c:
2471 * casetab.c:
2472 * category.c:
2473 * ccl.c:
2474 * character.c:
2475 * charset.c:
2476 * chartab.c:
2477 * cmds.c:
2478 * coding.c:
2479 * composite.c:
2480 * data.c:
2481 * dbusbind.c:
2482 * dired.c:
2483 * dispnew.c:
2484 * doc.c:
2485 * doprnt.c:
2486 * ecrt0.c:
2487 * editfns.c:
2488 * fileio.c:
2489 * filelock.c:
2490 * filemode.c:
2491 * fns.c:
2492 * font.c:
2493 * fontset.c:
2494 * frame.c:
2495 * fringe.c:
2496 * ftfont.c:
2497 * ftxfont.c:
2498 * gtkutil.c:
2499 * indent.c:
2500 * insdel.c:
2501 * intervals.c:
2502 * keymap.c:
2503 * lread.c:
2504 * macros.c:
2505 * marker.c:
2506 * md5.c:
2507 * menu.c:
2508 * minibuf.c:
2509 * prefix-args.c:
2510 * print.c:
2511 * ralloc.c:
2512 * regex.c:
2513 * region-cache.c:
2514 * scroll.c:
2515 * search.c:
2516 * sound.c:
2517 * strftime.c:
2518 * syntax.c:
2519 * sysdep.c:
2520 * termcap.c:
2521 * terminal.c:
2522 * terminfo.c:
2523 * textprop.c:
2524 * tparam.c:
2525 * undo.c:
2526 * unexelf.c:
2527 * window.c:
2528 * xfaces.c:
2529 * xfns.c:
2530 * xfont.c:
2531 * xftfont.c:
2532 * xgselect.c:
2533 * xmenu.c:
2534 * xrdb.c:
2535 * xselect.c:
2536 * xsettings.c:
2537 * xsmfns.c:
2538 * xterm.c: Likewise.
2539
ae492bec
EZ
25402010-07-03 Eli Zaretskii <eliz@gnu.org>
2541
76ea4cc9
EZ
2542 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2543 frames other than the initial one. Fix reversal of colors when
2544 `reverse' is specified in the frame parameters. Call
2545 update_face_from_frame_parameter instead of
2546 internal-set-lisp-face-attribute. Initialize screen colors from
2547 initial_screen_colors[] when f->default_face_done_p is zero,
2548 instead of depending on being called with default-frame-alist as
2549 the alist argument.
2550
2551 * xfaces.c (update_face_from_frame_parameter): Move out of
2552 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2553 with HAVE_WINDOW_SYSTEM.
2554
1e6255ae
EZ
2555 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2556 to menu-bar-mode, if not set in the frame parameters or in
2557 default-frame-alist.
2558
ae492bec
EZ
2559 * w32console.c (sys_tputs): Adjust argument list to prototype in
2560 term.c.
2561
3a35a84c
JB
25622010-07-03 Juanma Barranquero <lekktu@gmail.com>
2563
2564 * lisp.h (memory_warnings): Fix prototype.
2565
2566 * cm.h (evalcost): Fix prototype.
2567
2568 * cm.c (evalcost): Fix arg type.
2569
c532d349
DN
25702010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2571
2572 * term.c (term_clear_mouse_face, Fidentity):
2573 * syssignal.h (signal_handler_t):
2574 * lisp.h (memory_warnings):
2575 * coding.h (preferred_coding_system):
2576 * cm.h (evalcost):
2577 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2578
c0b36d46
EZ
25792010-07-02 Eli Zaretskii <eliz@gnu.org>
2580
2581 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2582 from prototypes.
2583
2584 * msdos.h (load_pixmap): Don't define away.
2585
383e0970
J
25862010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2587
f57e2426
J
2588 * lisp.h:
2589 * atimer.h: Remove define for P_.
2590
2591 * alloc.c: Remove __P and P_ from .c and .m files.
2592 * atimer.c:
2593 * buffer.c:
2594 * callint.c:
2595 * category.c:
2596 * charset.c:
2597 * chartab.c:
2598 * cm.c:
2599 * coding.c:
2600 * composite.c:
2601 * data.c:
2602 * dired.c:
2603 * dispnew.c:
2604 * doc.c:
2605 * editfns.c:
2606 * emacs.c:
2607 * eval.c:
2608 * fileio.c:
2609 * filelock.c:
2610 * fns.c:
2611 * font.c:
2612 * fontset.c:
2613 * frame.c:
2614 * ftfont.c:
2615 * ftxfont.c:
2616 * gmalloc.c:
2617 * gtkutil.c:
2618 * image.c:
2619 * indent.c:
2620 * intervals.c:
2621 * keyboard.c:
2622 * keymap.c:
2623 * lread.c:
2624 * marker.c:
2625 * menu.c:
2626 * minibuf.c:
2627 * print.c:
2628 * process.c:
2629 * scroll.c:
2630 * search.c:
2631 * sound.c:
2632 * strftime.c:
2633 * syntax.c:
2634 * sysdep.c:
2635 * term.c:
2636 * terminal.c:
2637 * textprop.c:
2638 * unexalpha.c:
2639 * w32console.c:
2640 * w32fns.c:
2641 * w32font.c:
2642 * w32menu.c:
2643 * w32term.c:
2644 * w32uniscribe.c:
2645 * window.c:
2646 * xdisp.c:
2647 * xfaces.c:
2648 * xfns.c:
2649 * xfont.c:
2650 * xftfont.c:
2651 * xmenu.c:
2652 * xselect.c:
2653 * xterm.c: Likewise.
2654
383e0970 2655 Remove P_ and __P macros.
f57e2426
J
2656 * atimer.h: Remove P_ and __P macros.
2657 * buffer.h:
383e0970
J
2658 * category.h:
2659 * ccl.h:
2660 * character.h:
2661 * charset.h:
2662 * cm.h:
2663 * coding.h:
2664 * composite.h:
2665 * dispextern.h:
2666 * disptab.h:
9e892c8d 2667 * dosfns.h:
383e0970
J
2668 * font.h:
2669 * fontset.h:
2670 * frame.h:
2671 * gtkutil.h:
2672 * indent.h:
2673 * intervals.h:
2674 * keyboard.h:
2675 * keymap.h:
2676 * lisp.h:
2677 * macros.h:
2678 * md5.h:
2679 * menu.h:
2680 * msdos.h:
2681 * nsterm.h:
2682 * puresize.h:
2683 * region-cache.h:
2684 * syntax.h:
2685 * syssignal.h:
2686 * systime.h:
2687 * termhooks.h:
9e892c8d 2688 * w32font.h:
383e0970
J
2689 * w32term.h:
2690 * widget.h:
2691 * window.h:
2692 * xgselect.h:
2693 * xsettings.h:
2694 * xterm.h: Likewise.
2695
98601119
DN
26962010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2697
d9170db5
DN
2698 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2699
98601119
DN
2700 Cleanup old code.
2701 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2702 * syssignal.h: Remove code for Lynx, not supported anymore.
2703 * vm-limit.c: Remove unused code the depends on emacs not being
2704 defined and NO_LIM_DATA being defined.
2705 * mem-limits.h: Remove dead code.
2706
1f984e12
J
27072010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2708
c49d071a
J
2709 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2710
9d5405ec
J
2711 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2712 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2713
7a18115b
J
2714 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2715 parameters, they are already absolute.
2716
a628ad9d
JB
2717 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2718 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 2719
a628ad9d 2720 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 2721
a628ad9d
JB
2722 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2723 Update FRAME_TOOLBAR_HEIGHT.
581a8100 2724
a628ad9d
JB
2725 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2726 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 2727
c1ef4455
CY
27282010-06-30 Chong Yidong <cyd@stupidchicken.com>
2729
2730 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2731 check default-frame-alist.
2732
ce8f5a9a
AS
27332010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2734
2735 * process.c (create_process): Avoid using invalid file descriptors.
2736
2737 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2738
bf935339
J
27392010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2740
2741 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2742 Improve documentation. Return font regardless of use_system_font.
2743 (syms_of_xsettings): Improve documentation for font-use-system-font.
2744
7c33a057
CY
27452010-07-10 Chong Yidong <cyd@stupidchicken.com>
2746
2ec1b5ee
CY
2747 * xfaces.c (realize_face): Garbage the frame if a face is removed
2748 (Bug#6593).
2749
27502010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2751
2752 * keyboard.c: Remove duplicate <setjmp.h>.
2753 (read_key_sequence): Remove volatile qualifiers.
2754
27552010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2756
2757 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2758 (struct glyph_row): New members left_fringe_offset and
2759 right_fringe_offset.
2760
2761 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2762 specially.
2763 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2764 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2765
2766 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 2767 Take account of bitmap offset.
2ec1b5ee
CY
2768 (draw_window_fringes): Take account of window vscroll.
2769 (update_window_fringes): Likewise. Extend top-aligned top indicator
2770 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2771 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2772 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2773
27742010-07-04 Juanma Barranquero <lekktu@gmail.com>
2775
2776 * w32fns.c (Qtooltip): Declare.
2777 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2778
27792010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2780
2781 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2782 grab on just Press (Bug#6499).
2783
27842010-07-02 Chong Yidong <cyd@stupidchicken.com>
2785
2786 * frame.c (Qtooltip): New var.
2787 (delete_frame): Use it. Fix faulty if statement. Don't update
2788 mode line for tooltip frames. Suggested by Martin Rudalics.
2789
2790 * xfns.c (x_create_tip_frame):
2791 * w32fns.c (x_create_tip_frame): Use it.
2792
27932010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
2794
2795 * xftfont.c (xftfont_open): Check font width one by one also when
2796 spacing is dual.
2797
2798 * ftfont.c (ftfont_open): Ditto.
2799
6259c2ec
GM
28002010-06-30 Glenn Morris <rgm@gnu.org>
2801
a46007e9
GM
2802 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2803
6259c2ec
GM
2804 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2805
2806 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2807 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2808 * s/darwin.h (SYSTEM_MALLOC):
2809 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2810
5d1d3d04
J
28112010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2812
2813 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2814 (ns_get_screen): Don't assign integer to f.
2815 (Fx_display_color_cells): Declarations before statements.
2816
e547b051
J
28172010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2818
5fc8e5bc
J
2819 * xfns.c (x_default_font_parameter): Remove got_from_system
2820 (Bug#6526).
2821
e547b051
J
2822 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2823 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2824 defines based on what configure finds.
2825
2826 * xterm.c (XTflash): Use gtk_widget_get_window.
2827 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2828 gtk_adjustment_get_page_size.
2829 (handle_one_xevent): Use gtk_widget_get_mapped.
2830 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2831 messages.
2832
2833 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2834
2835 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2836 HAVE_GTK_FILE_SELECTION_NEW.
2837
2838 * gtkutil.c (xg_display_open, xg_display_close): Remove
2839 HAVE_GTK_MULTIDISPLAY, it is always defined.
2840 (xg_display_open): Return type is void.
2841 (gtk_widget_set_has_window)
2842 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2843 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2844 (gtk_adjustment_set_page_increment)
2845 (gtk_adjustment_get_step_increment): #define these if not found
2846 by configure.
2847 (remove_submenu): New define based on Gtk+ version.
2848 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2849 gtk_widget_get_window.
2850 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2851 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2852 (create_dialog): Use gtk_dialog_get_action_area and
2853 gtk_dialog_get_content_area.
2854 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2855 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2856 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2857 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2858 g_object_ref and g_object_unref.
2859 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2860 gtk_widget_get_sensitive.
2861 (xg_update_submenu): Use remove_submenu.
2862 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2863 properties instead to get old x and y position.
2864 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2865 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 2866 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
2867 (xg_get_tool_bar_widgets): New function.
2868 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2869 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2870 (toolbar_set_orientation): New #define based on if configure
2871 finds gtk_orientable_set_orientation.
2872 (xg_create_tool_bar): Call toolbar_set_orientation.
2873 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2874 instead of gtk_box_pack_start_defaults.
2875
b9229673
CY
28762010-06-28 Chong Yidong <cyd@stupidchicken.com>
2877
2878 * cmds.c (Fdelete_backward_char): Move into Lisp.
2879
bbc803b0
DN
28802010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2881
2882 * s/freebsd.h (BSD4_2): Remove redundant definition.
2883 bsd-common.h defines it already.
2884
6431f2e6
CY
28852010-06-27 Chong Yidong <cyd@stupidchicken.com>
2886
2887 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2888 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2889 tool-bar-mode, which are now set using these X resources at
2890 startup, to determine the defaults (Bug#2249).
2891
2892 * w32fns.c (Fx_create_frame):
2893 * nsfns.m (Fx_create_frame): Likewise.
2894
2895 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2896
8c079ebb
JB
28972010-06-24 Juanma Barranquero <lekktu@gmail.com>
2898
2899 * gtkutil.c (xg_update_scrollbar_pos):
2900 Avoid C99 mid-block variable declaration.
2901
e9b7ab96
JD
29022010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2903
bc869eca
JD
2904 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2905
2b7e356a 2906 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2907
2908 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2909 if height is less than scroll bar min size.
2910 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2911
e9b7ab96
JD
2912 * xfns.c (x_default_font_parameter): Try to open font from system
2913 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2914
a628ad9d 29152010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2916
2917 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2918
70c4cfbb
EZ
29192010-06-20 Eli Zaretskii <eliz@gnu.org>
2920
2921 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2922 most-positive-fixnum, be extra accurate when scrolling window
2923 start, to avoid missing the cursor line.
2924
ad5a12b5
EZ
29252010-06-19 Eli Zaretskii <eliz@gnu.org>
2926
2927 * xdisp.c (try_scrolling): Compute the limit for searching point
2928 in forward scroll from scroll_max, instead of an arbitrary limit
2929 of 10 screen lines. See
2930 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2931 and
2932 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2933 for details.
2934
2a64315a 29352010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2936
2937 * editfns.c (Fbyte_to_string): Pacify compiler.
2938
288cf4e9
SM
29392010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2940
2941 * lread.c (read1): Phase out old-style backquotes a bit more.
2942
6e6e5760
EZ
29432010-06-12 Eli Zaretskii <eliz@gnu.org>
2944
cbc4fd20
EZ
2945 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2946 bidimirror.h.
2947
2948 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2949
317fbf33
EZ
2950 * bidi.c (bidi_initialize): Remove explicit initialization of
2951 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 2952 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 2953 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
2954
2955 * biditype.h: New file.
2956
cbc4fd20
EZ
2957 * bidimirror.h: New file.
2958
6e6e5760
EZ
2959 * window.c (syms_of_window): Doc fix (bug#6409).
2960
4176cba2
RF
29612010-06-12 Romain Francoise <romain@orebokech.com>
2962
2963 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2964 ediff-hook.
2965
cb4bfcb5
GM
29662010-06-10 Glenn Morris <rgm@gnu.org>
2967
64c60c2f
GM
2968 * editfns.c (Fbyte_to_string): Pacify compiler.
2969
cb4bfcb5
GM
2970 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2971
2ec1b5ee
CY
29722010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2973
2974 * alloc.c (Fmake_byte_code): Don't access undefined argument
2975 (Bug#6517).
2976
29772010-06-25 Chong Yidong <cyd@stupidchicken.com>
2978
2979 * xdisp.c (next_element_from_image): Ensure that after-strings are
2980 read the next time we hit handle_stop (Bug#1336).
2981
29822010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2983
2984 * lread.c (read1): Signal error if #s is not followed by paren.
2985
29862010-06-19 Chong Yidong <cyd@stupidchicken.com>
2987
2988 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2989
2990 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2991
29922010-06-15 Glenn Morris <rgm@gnu.org>
2993
2994 * editfns.c (Fbyte_to_string): Pacify compiler.
2995
e454a4a3
SM
29962010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2997
2998 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2999 Check `object's type before accessing its guts.
3000
c1b1acc2
DN
30012010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3002
3003 * s/usg5-4.h: Fix previous change.
3004 Suggested by Lawrence Mitchell <wence@gmx.li>
3005
657d4c0b
AS
30062010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3007
3008 * minibuf.c (Fall_completions): Add more checks.
3009
9b27fd9f
JB
30102010-06-08 Juanma Barranquero <lekktu@gmail.com>
3011
3012 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3013
a99ebb40
DN
30142010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3015
d7c5d87d
DN
3016 * lread.c (X_OK): Remove, unused.
3017
0263a941
DN
3018 * dispnew.c: Remove obsolete comment.
3019
a99ebb40
DN
3020 Remove INCLUDED_FCNTL.
3021 * xterm.c (INCLUDED_FCNTL):
3022 * callproc.c (INCLUDED_FCNTL):
3023 * alloc.c (INCLUDED_FCNTL):
3024 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3025 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3026
13b5221f
MR
30272010-06-07 Martin Rudalics <rudalics@gmx.at>
3028
3029 * window.c (Fselect_window): Move `record_buffer' up to the
3030 beginning of this function, so the buffer gets recorded
3031 even if the selected window does not change.
3032 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3033
5220357f
JB
30342010-06-07 Juanma Barranquero <lekktu@gmail.com>
3035
3036 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3037 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3038
3085237c
DN
30392010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3040
3041 Remove BSTRING related code, all platforms define it.
3042 * s/usg5-4.h (BSTRING): Remove definition.
3043 * s/template.h (BSTRING):
3044 * s/msdos.h (BSTRING):
3045 * s/ms-w32.h (BSTRING):
3046 * s/hpux10-20.h (BSTRING):
3047 * s/gnu-linux.h (BSTRING):
3048 * s/darwin.h (BSTRING):
3049 * s/cygwin.h (BSTRING):
3050 * s/bsd-common.h (BSTRING):
3051 * s/aix4-2.h (BSTRING): Likewise.
3052 * sysdep.c: Remove code depending on BSTRING not being defined.
3053
409f2919
JB
30542010-06-05 Juanma Barranquero <lekktu@gmail.com>
3055
3056 Remove obsolete macro BASE_LEADING_CODE_P.
3057 * character.h (BASE_LEADING_CODE_P): Remove.
3058 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3059 * buffer.c (Fset_buffer_multibyte):
3060 * indent.c (scan_for_column, compute_motion):
3061 * insdel.c (count_combining_before, count_combining_after):
3062 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3063
087fc47a
JB
30642010-06-04 Juanma Barranquero <lekktu@gmail.com>
3065
3066 Turn `directory-sep-char' into a noop.
3067
3068 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3069 (DIRECTORY_SEP): Define unconditionally.
3070
3071 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3072
3073 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3074 call dostounix_filename directly.
3075
3076 * fileio.c (CORRECT_DIR_SEPS): Remove.
3077 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3078 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3079 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3080 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3081
3082 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3083 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3084
0eb7675e
AS
30852010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3086
a628ad9d
JB
3087 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3088 (Bug#6346)
0eb7675e 3089
78edd3b7
JB
30902010-06-03 Juanma Barranquero <lekktu@gmail.com>
3091
3092 * ccl.c (Fccl_program_p): Fix typo in docstring.
3093
eb697db5
DN
30942010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3095
3096 Move UNEXEC definition to autoconf.
3097 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3098 * s/sol2-10.h (UNEXEC):
3099 * s/irix6-5.h (UNEXEC):
3100 * s/hpux10-20.h (UNEXEC):
3101 * s/gnu-linux.h (UNEXEC):
3102 * s/darwin.h (UNEXEC):
3103 * s/cygwin.h (UNEXEC):
3104 * s/bsd-common.h (UNEXEC):
3105 * s/aix4-2.h (UNEXEC):
3106 * m/alpha.h (UNEXEC): Likewise.
3107 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3108
aa3830c4
JB
31092010-06-03 Juanma Barranquero <lekktu@gmail.com>
3110
3111 Remove obsolete pre-unicode2 macros.
3112 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3113 * composite.c (composition_reseat_it):
3114 * data.c (Faset):
3115 * fns.c (Ffillarray):
3116 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3117 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3118
d234d13e
JL
31192010-06-03 Juri Linkov <juri@jurta.org>
3120
3121 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3122 (Fswitch_to_buffer): Remove unused variable `err'.
3123
0d4bcf4d
GM
31242010-06-03 Glenn Morris <rgm@gnu.org>
3125
e23dc1e2
GM
3126 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3127
05b09564
GM
3128 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3129 now that AH_BOTTOM does it.
3130
824e2978
GM
3131 * m/hp800.h (HAVE_ALLOCA):
3132 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3133
0d4bcf4d
GM
3134 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3135 Remove NOT_C_CODE tests, it is always true now.
3136
c55d2abf
DN
31372010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3138
08a494a3
DN
3139 Fix config.h includes.
3140 * xsettings.c:
3141 * xgselect.c:
3142 * nsterm.m:
3143 * nsselect.m:
3144 * nsimage.m:
3145 * nsfont.m:
3146 * nsfns.m:
3147 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3148 other files do.
3149
75934b1d
DN
3150 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3151
9f32a766
DN
3152 * s/sol2-6.h: Remove obsolete comments.
3153
c55d2abf
DN
3154 Remove unnecessary alloca.h includes.
3155 * keymap.c: Do not include alloca.h, config.h does that.
3156 * sysdep.c: Likewise. Do not define fwrite, not used.
3157
06ac62b4
SM
31582010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3159
3160 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3161 the HAVE_TERMIO where it belongs (bug#6149).
3162
1ab8293c
SM
31632010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3164
3165 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3166 of bug#6305).
3167
6dcfd253
EZ
31682010-05-30 Eli Zaretskii <eliz@gnu.org>
3169
3170 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3171 state is always cached (bug#6306).
3172
6d26bbb2
EZ
31732010-05-29 Eli Zaretskii <eliz@gnu.org>
3174
06fa4a23
EZ
3175 Fix cursor motion in bidi-reordered continued lines.
3176 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3177 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
3178 over continuation lines in bidi-reordered buffers. Return
3179 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3180 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3181
f5783df3
MA
31822010-05-28 Michael Albinus <michael.albinus@gmx.de>
3183
3184 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3185
7d56b2dd
KH
31862010-05-28 Kenichi Handa <handa@m17n.org>
3187
3188 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3189 Don't sheck SPEC if it is nil.
3190 (font_list_entities): Call font_delete_unmatched if
b925d231 3191 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 3192
e58d4ff7
GM
31932010-05-28 Glenn Morris <rgm@gnu.org>
3194
3195 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3196
f1a5d776
CY
31972010-05-27 Chong Yidong <cyd@stupidchicken.com>
3198
3199 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3200 whether to trash.
3201 (internal_delete_file, Frename_file): Callers changed.
3202 (delete_by_moving_to_trash): Doc fix.
3203 (Fdelete_directory_internal): Don't move to trash.
3204
3205 * callproc.c (delete_temp_file):
3206 * buffer.c (Fkill_buffer): Callers changed.
3207
3208 * lisp.h: Update prototype.
3209
f44a59e6
CY
32102010-05-27 Chong Yidong <cyd@stupidchicken.com>
3211
3212 * xdisp.c (redisplay_window): After redisplay, check if point is
3213 still valid before setting it (Bug#6177).
3214
81ac4f35
GM
32152010-05-27 Glenn Morris <rgm@gnu.org>
3216
3217 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3218 Convert comments to Makefile format.
3219
3220 * Makefile.in (bootstrap-clean): No more Makefile.c.
3221
ccd89fb3
GM
32222010-05-26 Glenn Morris <rgm@gnu.org>
3223
90278cb6
GM
3224 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3225 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3226
ccd89fb3
GM
3227 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3228 Remove.
3229 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3230
b7050583
KH
32312010-05-26 Kenichi Handa <handa@m17n.org>
3232
3233 * composite.c (composition_compute_stop_pos): Fix condition for
3234 backward scanning.
3235
e5458003
GM
32362010-05-25 Glenn Morris <rgm@gnu.org>
3237
c345fe90
GM
3238 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3239 Move before TEMACS_LDFLAGS.
3240 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3241 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3242
2e0689ab
GM
3243 * Makefile.in (NOT_C_CODE): No longer define.
3244 (config.h): No longer include.
3245
8009a5e8
GM
3246 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3247 variables it may reference.
3248
e5458003
GM
3249 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3250 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3251
10f72a37
KH
32522010-05-25 Kenichi Handa <handa@m17n.org>
3253
3254 * dispextern.h (struct composition_it): New members rule_idx and
3255 charpos.
3256
3257 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3258 that the character positions of IT point the last character of the
3259 current grapheme cluster.
3260 (next_element_from_composition): Don't change character positions
3261 of IT.
3262 (append_composite_glyph): Set glyph->charpos to
3263 it->cmp_it.charpos.
3264
3265 * composite.c (autocmp_chars): Change the first argument to RULE,
3266 and try composition with RULE only.
3267 (composition_compute_stop_pos): Record the index number of the
3268 composition rule in CMP_IT->rule_idx.
3269 (composition_reseat_it): Call autocmp_chars repeatedly until the
3270 correct rule of the composition is found.
3271 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3272 is at the last character of the current grapheme cluster when
3273 CMP_IT->reversed_p is nonzero.
3274
171eda53 32752010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 3276
171eda53
SM
3277 * editfns.c (Fbyte_to_string): New function.
3278
66a9f7f4
SM
32792010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3280
3281 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3282 Suggested by Masatake YAMATO <yamato@redhat.com>.
3283
d8c315d1
EZ
32842010-05-23 Eli Zaretskii <eliz@gnu.org>
3285
171eda53 3286 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 3287
f5b416d2 32882010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3289
3290 * s/netbsd.h: If terminfo is found, use it in preference to
3291 termcap. (Bug#6190) [Backport from trunk]
3292
0416466c
EZ
32932010-05-19 Eli Zaretskii <eliz@gnu.org>
3294
11117830 3295 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
3296
3297 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3298 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3299 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3300 and maxpos members instead of start.pos and end.pos, respectively.
3301
3302 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3303 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3304 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
3305 (try_window_reusing_current_matrix, try_window_id):
3306 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
3307 (init_from_display_pos, init_iterator): Use EMACS_INT for
3308 character and byte positions.
66a9f7f4 3309 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
3310 arguments for minimum and maximum buffer positions seen by
3311 display_line for this row. Don't use iterator to find the
3312 position following the maximum one; instead, increment the
11117830
EZ
3313 position found by display_line directly. Fix logic; eol_pos
3314 should be tested before the rest. Handle the case of characters
3315 delivered from display vector (bug#6036). Fix tests related to
3316 it->method. Handle the truncated_on_right_p rows.
3317 (RECORD_MAX_MIN_POS): New macro.
3318 (display_line): Use it to record the minimum and maximum buffer
3319 positions for glyphs in the row being assembled. Record the
3320 position of the newline that terminates the line. If word wrap is
3321 in effect, restore minimum and maximum positions seen up to the
3322 wrap point, when iterator returns to it.
3323 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3324 row and cursor not already at point. Restore original pre-bidi
3325 code for unidirectional buffers.
d36fe237
EZ
3326
3327 * dispnew.c (increment_row_positions, check_matrix_invariants):
3328 Increment and check row->start.pos and row->end.pos, in addition
3329 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3330
11117830
EZ
3331 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3332 Display truncated_on_left_p and truncated_on_right_p flags.
3333 Formatting fixes.
3334 (pmtxrows): Display the ordinal number of each row. Don't display
3335 rows beyond the last one.
3336
3337 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3338 it is not copied by bidi_copy_it.
3339
6e83d800
EZ
33402010-05-22 Eli Zaretskii <eliz@gnu.org>
3341
3342 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3343 (Bug#6237)
3344
110683ad
CY
33452010-05-22 Chong Yidong <cyd@stupidchicken.com>
3346
3347 * image.c (Fimage_flush): Rename from image-refresh.
3348
98fe5161
CY
33492010-05-21 Chong Yidong <cyd@stupidchicken.com>
3350
3351 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3352 just one window.
3353
3354 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3355 (clear_image_cache): If the number of cached images is unusually
3356 large, decrease the cache eviction delay (Bug#6230).
3357
e8752c66
GM
33582010-05-21 Glenn Morris <rgm@gnu.org>
3359
66dbf213
GM
3360 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3361 Move these rules to ns.mk.
3362 * ns.mk: New file.
3363
04384b2d
GM
3364 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3365
e8752c66
GM
3366 * Makefile.in (CANNOT_DUMP): New, set by configure.
3367 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3368
2e2bbddb
JL
33692010-05-20 Juri Linkov <juri@jurta.org>
3370
3371 * fileio.c (Fdelete_file): Change interative spec to use
3372 `read-file-name' like in `find-file-read-args' where the default
3373 value is `default-directory' instead of `buffer-file-name'.
3374 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3375
31c4aaf6
KR
33762010-05-20 Kevin Ryde <user42@zip.com.au>
3377
3378 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3379 (Voverriding_terminal_local_map, Vsystem_key_alist)
3380 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3381
9d5cf9b6
GM
33822010-05-20 Glenn Morris <rgm@gnu.org>
3383
3384 * Makefile.in (DEPDIR): New constant.
3385 (DEPFLAGS): Set with configure, not cpp.
3386 (MKDEPDIR): New, set by configure.
3387 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3388 (clean): Use $DEPDIR.
3389 (deps_frag): Include from configure.
3390 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3391 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3392
ead6f8f5
EZ
3393 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3394 reallocation of the cache. (Bug#6210)
3395
7f34aec3
GM
33962010-05-19 Glenn Morris <rgm@gnu.org>
3397
d494e8f2
GM
3398 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3399
c1d0dcfd
GM
3400 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3401 (GNULIB_VAR): Remove.
3402 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3403
3404 * m/ibms390x.h (LINKER):
3405 * m/macppc.h (LINKER) [GNU_LINUX]:
3406 * s/aix4-2.h (ORDINARY_LINK):
3407 * s/cygwin.h (LINKER):
3408 * s/darwin.h (ORDINARY_LINK):
3409 * s/gnu.h (ORDINARY_LINK):
3410 * s/netbsd.h (LINKER):
3411 * s/usg5-4.h (ORDINARY_LINK):
3412 Move to configure.
3413
7f34aec3
GM
3414 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3415
754790b6
CY
34162010-05-18 Chong Yidong <cyd@stupidchicken.com>
3417
3418 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3419 prevent stack overflow if number of arguments is too large
3420 (Bug#6214).
3421
161e44d1
JB
34222010-05-18 Juanma Barranquero <lekktu@gmail.com>
3423
3424 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3425
be4ff9da
GM
34262010-05-18 Glenn Morris <rgm@gnu.org>
3427
9539dc5d
GM
3428 * s/gnu-linux.h: Combine two conditionals.
3429
3430 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
3431 $(POST_ALLOC_OBJ).
3432
40dc6bf4
GM
3433 * Makefile.in (RALLOC_OBJ): New, set by configure.
3434 (rallocobj): Replace with the previous variable.
3435 (otherobj): Use $RALLOC_OBJ.
3436
3437 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3438 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3439
be4ff9da
GM
3440 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3441 (gmallocobj, vmlimitobj): Replace with previous two variables.
3442 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3443
16455a85
GM
34442010-05-17 Glenn Morris <rgm@gnu.org>
3445
3446 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3447 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3448
5fdb7468
GM
34492010-05-16 Glenn Morris <rgm@gnu.org>
3450
7ca1f3f9
GM
3451 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3452
7541dad5
GM
3453 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3454
da53fab9
GM
3455 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3456 trailing "/".
3457
b02a6645
GM
3458 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3459 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3460
8877ca0f
GM
3461 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3462 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3463 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3464 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3465 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3466
5fdb7468
GM
3467 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3468 Remove ${STARTFLAGS}, nothing ever sets it.
3469
95adb4b1
DN
34702010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3471
3472 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3473
676b6304
GM
34742010-05-16 Glenn Morris <rgm@gnu.org>
3475
9beab9ce
GM
3476 * Makefile.in (LIBX_BASE): Always define.
3477
8a95f0e7
GM
3478 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3479
676b6304
GM
3480 * Makefile.in (LIBXT): Always define.
3481
6e546d18
GM
34822010-05-15 Glenn Morris <rgm@gnu.org>
3483
4235ca47 3484 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 3485
6e546d18
GM
3486 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3487 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3488
8c5ff6dd
KR
34892010-05-15 Ken Raeburn <raeburn@raeburn.org>
3490
560bb7ae 3491 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
3492 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3493
8b4eb796
KR
3494 * emacs.c (main): Initialize initial-environment and
3495 process-environment before generating from env, not after.
3496
8c5ff6dd
KR
3497 Handle --version reasonably in CANNOT_DUMP configuration.
3498 * emacs.c (emacs_version, emacs_copyright): New string variables.
3499 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3500 (syms_of_emacs): Defvar them, and initialize them from the C
3501 string variables.
3502 (main): If initialization hasn't been done, print initial version
3503 info from the C strings, instead of starting an interactive session.
3504
dbd3f723
EZ
35052010-05-15 Eli Zaretskii <eliz@gnu.org>
3506
d20e1419
EZ
3507 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3508 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
3509 (bidi_paragraph_init): Remove redundant assertion that we are at
3510 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
3511
3512 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3513 (syms_of_xdisp): Defsubr it.
3514
d36fe237
EZ
3515 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3516
dbd3f723
EZ
3517 * Makefile.in: Fix MSDOS-related comments.
3518
02be533b
GM
35192010-05-15 Glenn Morris <rgm@gnu.org>
3520
1a82cca9
GM
3521 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3522 (really-lwlib, really-oldXMenu): Always define.
3523 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3524
3df7b338
GM
3525 * Makefile.in: Simplify cpp conditional.
3526
2b5f541b
GM
3527 * Makefile.in (${ns_appdir}): Simplify using umask.
3528
02be533b
GM
3529 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3530
4e2db1fe
SM
35312010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3532
3533 * eval.c (specbind): Remove left-over duplicate test.
3534 Disallow let-binding frame-local vars. Add comment.
3535
4b292a22
EZ
35362010-05-14 Eli Zaretskii <eliz@gnu.org>
3537
2fe72643 3538 Make the cache of bidi iterator states dynamically allocated.
1edbd309 3539 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
3540 (bidi_init_it): Call it.
3541 (bidi_cache_iterator_state): Enlarge the cache if needed.
3542
4e2db1fe 3543 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
3544 bidi_get_next_char_visually. All callers changed.
3545
82ebc97b
KH
35462010-05-14 Kenichi Handa <handa@m17n.org>
3547
3548 * dispextern.h (struct composition_it): New member reversed_p.
3549
3550 * composite.c (composition_compute_stop_pos): Search backward if
3551 ENDPOS < CHARPOS.
3552 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3553 Set CMP_IT->reversed_p.
b4b6e17e 3554 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 3555
4e2db1fe
SM
3556 * xdisp.c (set_iterator_to_next):
3557 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
3558 scanning backward. Call composition_compute_stop_pos if scan
3559 direction is changed.
3560 (next_element_from_buffer): Call composition_compute_stop_pos with
3561 negative ENDPOS if we are scanning backward.
3562 (next_element_from_composition): Pay attention to
3563 IT->cmp_it.reversed_p.
3564
0e5d7800
KH
35652010-05-14 Kenichi Handa <handa@m17n.org>
3566
560bb7ae 3567 * font.c (font_range): Return the range for the font found at first.
0e5d7800 3568
cb027b32
GM
35692010-05-14 Glenn Morris <rgm@gnu.org>
3570
177b0288
GM
3571 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3572
fbc00890
GM
3573 * Makefile.in (mktime, X11, register): Move undefs to configure.
3574
f14d1dfd
GM
3575 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3576 (MSDOS_X_OBJ): New variable.
3577 (MSDOS_SUPPORT_REAL): New constant.
3578 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3579 (obj): Use MSDOS_X_OBJ.
3580 (lisp): Use MSDOS_SUPPORT as a variable.
3581
11842bd8
GM
3582 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3583 (GPM_MOUSE_SUPPORT): Now it's a constant.
3584 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3585 not cpp.
3586
489d31a4 3587 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 3588 (ns_appresdir): Remove, unused.
e20f1f07 3589
489d31a4
GM
3590 * Makefile.in (SHELL): Move outside cpp section.
3591
cb027b32
GM
3592 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3593
5a903aa9
GM
35942010-05-13 Glenn Morris <rgm@gnu.org>
3595
3369c79f
GM
3596 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3597 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3598
d5e982a6
GM
3599 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3600 HAVE_WINDOW_SYSTEM must be too.
3601
6192e163
GM
3602 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3603 (lisp): Remove WINNT_SUPPORT.
3604
472c5d6b
GM
3605 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3606 Let configure set these variables (to empty) in this case as well.
3607
0116466b
GM
3608 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3609 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3610
5a903aa9
GM
3611 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3612 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3613 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3614 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3615 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 3616 the values output by configure.
5a903aa9
GM
3617 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3618
1a0d7c06
GM
36192010-05-12 Glenn Morris <rgm@gnu.org>
3620
b5457f14
GM
3621 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3622 (LINKER_WAS_SPECIFIED): Remove.
3623
1a0d7c06
GM
3624 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3625 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3626 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3627 * s/cygwin.h (LIB_GCC):
3628 * s/freebsd.h (LIB_GCC):
3629 * s/gnu-linux.h (LIB_GCC):
3630 * s/msdos.h (LIB_GCC):
3631 * s/netbsd.h (LIB_GCC):
3632 Move to configure.
3633
3ffd4615 36342010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
3635
3636 * ftfont.c: Fix incorrect parentheses of #if condition for
3637 definining M17N_FLT_USE_NEW_FEATURE.
3638
acddf8ae
GM
36392010-05-11 Glenn Morris <rgm@gnu.org>
3640
3641 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3642 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3643
ae5e04fa
EZ
36442010-05-10 Eli Zaretskii <eliz@gnu.org>
3645
3646 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3647 unibyte buffers. See
3648 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3649
7490175b
GM
36502010-05-10 Glenn Morris <rgm@gnu.org>
3651
97efb629
GM
3652 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3653 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3654 (LIBES): Use LIBS_SYSTEM as a variable.
3655 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3656 * s/aix4-2.h (LIBS_SYSTEM):
3657 * s/freebsd.h (LIBS_SYSTEM):
3658 * s/hpux10-20.h (LIBS_SYSTEM):
3659 * s/sol2-6.h (LIBS_SYSTEM):
3660 * s/unixware.h (LIBS_SYSTEM):
3661 Move to configure.
3662
7490175b
GM
3663 * s/aix4-2.h (MAIL_USE_LOCKF):
3664 * s/bsd-common.h (MAIL_USE_FLOCK):
3665 * s/darwin.h (MAIL_USE_FLOCK):
3666 * s/gnu-linux.h (MAIL_USE_FLOCK):
3667 * s/irix6-5.h (MAIL_USE_FLOCK):
3668 * s/template.h (MAIL_USE_FLOCK):
3669 Move to configure.
3670
0235128c 36712010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
3672
3673 * Version 23.2 released.
3674
0235128c 36752010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
3676
3677 * composite.c (autocmp_chars): Save point as marker before calling
3678 auto-composition-function (Bug#5984).
3679
3680 * lisp.h (restore_point_unwind): Add prototype.
3681
3682 * fileio.c (restore_point_unwind): Remove static attribute.
3683
0235128c 36842010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
3685
3686 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3687 new feature of libotf and m17n-flt.
0235128c
SM
3688 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3689 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
3690 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3691 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3692 that OUT is NULL. Use OTF_drive_gsub_with_log and
3693 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3694 OTF_drive_gpos.
3695 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
3696 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3697 Setup mflt_enable_new_feature and mflt_try_otf.
3698
4721152c
J
36992010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3700
3701 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3702
3703 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3704 box and toolbar (Bug #6139).
3705 (xg_create_tool_bar): Remove comment (Bug #6139).
3706 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3707 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3708
ee0a16cf
JB
37092010-05-08 Juanma Barranquero <lekktu@gmail.com>
3710
3711 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3712 Update dependencies.
3713
96d79611
EZ
37142010-05-08 Eli Zaretskii <eliz@gnu.org>
3715
3716 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3717 R2L lines.
3718
40c17879
GM
37192010-05-08 Glenn Morris <rgm@gnu.org>
3720
7b42b29f
GM
3721 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3722
40c17879
GM
3723 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3724 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3725 (termcapobj): Replace with TERMCAP_OBJ.
3726 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3727 (LIBES): Use LIBS_TERMCAP as a variable.
3728
3729 * s/freebsd.h (osreldate.h): No longer include, since this file
3730 does not use __FreeBSD_version any more.
3731
3732 * s/aix4-2.h (TERMINFO):
3733 * s/cygwin.h (TERMINFO):
3734 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3735 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3736 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3737 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3738 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3739 * s/irix6-5.h (TERMINFO):
3740 * s/netbsd.h (LIBS_TERMCAP):
3741 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3742 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3743 * s/usg5-4.h (TERMINFO):
3744 Move to configure.
3745
94b612ad
SM
37462010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3747
3748 * eval.c (unbind_to): Don't unbind a local binding into the global
3749 binding when the local binding disappeared. Inversely, don't unbind
3750 a global binding into a newly created local binding.
3751 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3752 can specify the frame to use, when applicable. Adjust callers.
3753
15e12598 37542010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 3755 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
3756
3757 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3758
f724825e
EZ
37592010-05-07 Eli Zaretskii <eliz@gnu.org>
3760
5cba3209
EZ
3761 * w32fns.c: Include w32.h.
3762 (Fw32_shell_execute): Decode the error message before passing it
3763 to `error'. (Bug#6126)
3764
d16bdfc3
EZ
3765 * msdos.c (dos_set_window_size):
3766 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3767 instead of `XSYMBOL (foo)->value'.
3768
59d93e87
EZ
37692010-05-07 Eli Zaretskii <eliz@gnu.org>
3770
9fdec8bc
EZ
3771 Fix the MS-DOS build, broken by autoconfiscation.
3772
3773 * Makefile.in: Don't use Make-style comments past the "start of
3774 cpp stuff" line.
3775 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3776
3777 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3778 edited directly by msdos/sed1v2.inp).
f724825e 3779
2f86b22b
GM
37802010-05-07 Glenn Morris <rgm@gnu.org>
3781
3782 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3783 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3784 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3785 move out of cpp section.
3786 * s/freebsd.h (LD_SWITCH_SYSTEM):
3787 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3788 * s/netbsd.h (LD_SWITCH_SYSTEM):
3789 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3790
49ebbd65
DN
37912010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3792
3793 Define LIB_STANDARD and START_FILES using autoconf.
3794 * s/usg5-4.h (LIB_STANDARD):
3795 * s/netbsd.h (START_FILES):
3796 * s/irix6-5.h (LIB_STANDARD):
3797 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3798 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3799 * s/freebsd.h (START_FILES):
3800 * s/darwin.h (START_FILES):
3801 * s/cygwin.h (START_FILES):
3802 * s/aix4-2.h (LIB_STANDARD):
3803 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3804 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3805 autoconf, not cpp.
3806
d43c06d6
DN
38072010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3808
28823648
DN
3809 Remove NEED_BSDTTY and NEED_UNISTD_H.
3810 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3811 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3812 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3813 <sys/ptyio.h> and <unistd.h>.
3814
aca00430
DN
3815 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3816
d43c06d6
DN
3817 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3818 * s/gnu.h (START_FILES): Remove empty definition.
3819
3e56b11d
JD
38202010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3821
3822 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3823
e3cf0cde
GM
38242010-05-06 Glenn Morris <rgm@gnu.org>
3825
3826 * Makefile.in (CPP, LN_S): Remove unused variables.
3827
774b9a60
SM
38282010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3829
3830 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3831
4ab92842
LM
38322010-05-05 Lawrence Mitchell <wence@gmx.li>
3833
3834 * m/sparc.h: Fix typo in earlier change.
3835
178f2507
SM
38362010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3837
3838 Misc tweaks.
3839 * eval.c (Fdefvaralias): Remove unintended nested if.
3840 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3841
80f00217 38422010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
3843
3844 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3845
ef03a4e6
DN
38462010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3847
58eb6cf0
DN
3848 Remove BSD_PGRPS.
3849 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3850 * s/gnu-linux.h (BSD_PGRPS): Remove.
3851 * term.c (dissociate_if_controlling_tty):
3852 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3853 (init_sys_modes, reset_sys_modes):
3854 * emacs.c (main):
3855 * callproc.c (Fcall_process, child_setup): Remove code depending
3856 on BSD_PGRPS.
3857
ef03a4e6
DN
3858 Remove POSIX_SIGNALS.
3859 * s/usg5-4.h (POSIX_SIGNALS):
3860 * s/netbsd.h (POSIX_SIGNALS):
3861 * s/msdos.h (POSIX_SIGNALS):
3862 * s/ms-w32.h (POSIX_SIGNALS):
3863 * s/hpux11.h (POSIX_SIGNALS):
3864 * s/gnu.h (POSIX_SIGNALS):
3865 * s/gnu-linux.h (POSIX_SIGNALS):
3866 * s/freebsd.h (POSIX_SIGNALS):
3867 * s/darwin.h (POSIX_SIGNALS):
3868 * s/cygwin.h (POSIX_SIGNALS):
3869 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3870 * s/unixware.h:
3871 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3872 * process.c (create_process):
3873 * syssignal.h:
3874 * sysdep.c (wait_for_termination, init_signals):
3875 * process.c (create_process):
3876 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3877 remove all code that assumes the contrary.
3878
49628785
GM
38792010-05-04 Glenn Morris <rgm@gnu.org>
3880
27a2cdfc
GM
3881 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3882 variable.
3883 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3884 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3885 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3886 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3887 LD_SWITCH_SYSTEM_tmp.
3888 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3889 New variables, set by configure.
3890
eb21eab5
GM
3891 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3892 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3893 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3894 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3895 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3896
49628785
GM
3897 * s/aix4-2.h (C_SWITCH_SYSTEM):
3898 * m/alpha.h (C_SWITCH_MACHINE):
3899 Move to configure.in.
3900 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3901 New variables, set by configure.
3902 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3903 $c_switch_machine and $c_switch_system.
3904
7dff330b
DN
39052010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3906
3907 * s/hpux10-20.h (LIB_STANDARD): New definition.
3908 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3909 on it, not used anymore.
3910
53967e09
CY
39112010-05-03 Chong Yidong <cyd@stupidchicken.com>
3912
3913 * eval.c (internal_condition_case_n): Rename from
3914 internal_condition_case_2.
3915 (internal_condition_case_2): New function.
3916
3917 * xdisp.c (safe_call): Use internal_condition_case_n.
3918
3919 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3920 (internal_delete_file, Frename_file): Callers changed.
3921
3922 * buffer.c (Fkill_buffer):
3923 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3924
3925 * lisp.h: Update prototypes.
3926
3dee6fdb
GM
39272010-05-03 Glenn Morris <rgm@gnu.org>
3928
3929 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3930 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3931 (LIBXT): Set with configure, not cpp.
3932 (LIBX): Remove.
3933 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3934
a101e0fb
DN
39352010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3936
3937 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3938 The FreeBSD is not needed, the default works, Solaris version is
3939 not needed, and the remaining case is not supported by configure.
3940
f63d0028
JD
39412010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3942
3943 * xsmfns.c (CHDIR_OPT): New define.
3944 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3945 restarting emacs.
3946
3947 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3948 shut_down_emacs.
3949
3950 * emacs.c (USAGE1): Mention --chdir.
3951 (main): Handle --chdir.
3952 (standard_args): Add --chdir.
3953 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3954 #5552).
3955
e4814a9f
DN
39562010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3957
cd03c74a
DN
3958 Remove LD_SWITCH_MACHINE.
3959 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3960 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3961
c3a398a1
DN
3962 Clean up IRIX code.
3963 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3964 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3965
87e7285c
DN
3966 Clean up AIX code.
3967 * m/ibmrs6000.inp: Remove file, unused.
3968 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3969 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3970 definition ...
3971 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3972
80f00217
JB
3973 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3974 unused.
e4814a9f 3975
59ca28de
EZ
39762010-05-01 Eli Zaretskii <eliz@gnu.org>
3977
197daef4
EZ
3978 Emulate POSIX_SIGNALS on MS-Windows.
3979
3980 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3981 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
3982
3983 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3984 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3985 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3986
80f00217
JB
3987 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3988 New stubs.
197daef4 3989
af7c7572
EZ
3990 Miscellaneous fixes of bidi display.
3991
59ca28de
EZ
3992 * xdisp.c (find_row_end): New function, refactored from display_line.
3993 (display_line): Use it.
017ea819
EZ
3994 (extend_face_to_end_of_line): In almost-filled rows, extend only
3995 if the row is R2L and not continued.
166e930d 3996 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 3997 Preserve overlay and string info in row->end.
166e930d
EZ
3998 (insert_left_trunc_glyphs): Support addition of left truncation
3999 glyphs to R2L rows.
b47e0dcf 4000 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
4001 glyph between adjacent windows. Fix a crash when a display string
4002 is continued to the next line. Don't return zero if cursor was
4003 found by `cursor' property of a display string.
b47e0dcf
EZ
4004 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4005 test for that explicitly.
59ca28de 4006
7acac9f4
GM
40072010-05-01 Glenn Morris <rgm@gnu.org>
4008
4009 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4010 for clarity.
4011 (OTHER_OBJ): Remove.
4012 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4013 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4014
45841e65
KK
40152010-05-01 Karel Klíč <kklic@redhat.com>
4016
4017 * fileio.c (Ffile_selinux_context): Context functions may return null.
4018
afc61943
DN
40192010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4020
80f00217 4021 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 4022
5a1bb006
GM
40232010-04-30 Glenn Morris <rgm@gnu.org>
4024
4025 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4026 (OTHER_OBJ): Define as a separate variable, for clarity.
4027
210af043
J
40282010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4029
4030 * xsettings.c: include limits.h and update file comment.
4031
0a7df391
GM
40322010-04-30 Glenn Morris <rgm@gnu.org>
4033
d5096f16
GM
4034 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4035 Set with configure, not cpp.
4036 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4037
7eb1ac33
GM
4038 * Makefile.in (mallocobj): Remove.
4039 (otherobj): Simplify using @OTHER_OBJ@.
4040
517d086b
GM
4041 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4042 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4043 Don't bother making nsgui.h dependency platform-specific.
4044
0a7df391
GM
4045 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4046
d6d23852
SM
40472010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4048
d2630aef
SM
4049 * process.c (read_process_output, exec_sentinel): Don't burp if the
4050 sentinel/filter kills the current buffer (bug#6060).
4051
f9dddf52 4052 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
4053 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4054 Remove unused var `args'.
4055 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4056 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4057 * doc.c (store_function_docstring): Use XSETCAR.
4058
f1e3642a
GM
40592010-04-28 Glenn Morris <rgm@gnu.org>
4060
faf535f8
GM
4061 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4062 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4063
c40f9449
GM
4064 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4065
658f86ca
GM
4066 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4067 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4068
bc0b5f61
GM
4069 * Makefile.in (FONT_OBJ): New, set by configure.
4070 (FONT_DRIVERS): Use $FONT_OBJ.
4071
294c50a0
GM
4072 * Makefile.in (LIBXMU): Set with configure, not cpp.
4073 * s/aix4-2.h (LIBXMU):
4074 * s/hpux10-20.h (LIBXMU):
4075 Remove definition, now set in configure.
4076
e6ec4e99
GM
4077 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4078
f1e3642a
GM
4079 * m/amdx86-64.h [i386]: Move this test to configure.in.
4080
c6ea2936
GM
40812010-04-27 Glenn Morris <rgm@gnu.org>
4082
8fdac2c3
GM
4083 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4084 * s/unixware.h (NEED_LIBW): Remove definition.
4085
986fb647
GM
4086 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4087 (TOOLKIT_LIBW): New, set by configure.
4088 (@X_TOOLKIT_TYPE@): No longer define it.
4089
c6ea2936
GM
4090 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4091 (MOTIF_LIBW): Set with configure, not cpp.
4092 * s/aix4-2.h (LIB_MOTIF):
4093 * s/gnu-linux.h (LIB_MOTIF):
4094 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4095
aaa36002
DN
40962010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4097
4098 Reduce CPP usage.
4099 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4100 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
4101 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4102 definitions and undefs. Inline definitions in the only user.
4103 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 4104
b678dd8b
GM
41052010-04-27 Glenn Morris <rgm@gnu.org>
4106
76cda504
GM
4107 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4108 since the defaults (set by the system file) are fine in most cases.
4109 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4110 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4111 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4112 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4113 Remove definitions, since they are set correctly in s/gnu-linux.h.
4114 * s/freebsd.h (START_FILES, LIB_STANDARD):
4115 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4116 * s/hpux10-20.h (START_FILES):
4117 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4118 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4119
b678dd8b
GM
4120 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4121 (MOTIF_LIBW): Use $LIBXP.
4122 (otherobj): Use $WIDGET_OBJ.
4123
9452ded1
DN
41242010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4125
7e10844c
DN
4126 * Makefile.in (LIBS_MACHINE): Remove, unused.
4127
9452ded1
DN
4128 Use autoconf instead of cpp for LIB_MATH.
4129 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4130 * s/cygwin.h (LIB_MATH): Likewise.
4131 * Makefile.in (LIB_MATH): Do not define with cpp.
4132 (LIBES): Use autoconf for LIB_MATH.
4133
fcebfc6a
KH
41342010-04-26 Kenichi Handa <handa@m17n.org>
4135
4136 * composite.c (Ffind_composition_internal): Fix the return value
4137 for an automatic composition.
4138
39e2ad1b
DN
41392010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4140
4141 Remove all NO_ARG_ARRAY uses.
4142 * fns.c (concat2, concat3, nconc2):
4143 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4144 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4145 * m/xtensa.h (NO_ARG_ARRAY):
4146 * m/template.h (NO_ARG_ARRAY):
4147 * m/sparc.h (NO_ARG_ARRAY):
4148 * m/sh3.h (NO_ARG_ARRAY):
4149 * m/mips.h (NO_ARG_ARRAY):
4150 * m/macppc.h (NO_ARG_ARRAY):
4151 * m/iris4d.h (NO_ARG_ARRAY):
4152 * m/intel386.h (NO_ARG_ARRAY):
4153 * m/ibms390x.h (NO_ARG_ARRAY):
4154 * m/ibms390.h (NO_ARG_ARRAY):
4155 * m/ibmrs6000.h (NO_ARG_ARRAY):
4156 * m/ia64.h (NO_ARG_ARRAY):
4157 * m/hp800.h (NO_ARG_ARRAY):
4158 * m/arm.h (NO_ARG_ARRAY):
4159 * m/amdx86-64.h (NO_ARG_ARRAY):
4160 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4161
adf4f59c
EZ
41622010-04-25 Eli Zaretskii <eliz@gnu.org>
4163
6bdf5d65
EZ
4164 * xdisp.c (display_line): Don't assume 2nd call to
4165 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
4166 (iterate_out_of_display_property): New function, body from pop_it.
4167 (pop_it): Use it.
adf4f59c 4168
dfbbda83
GM
41692010-04-24 Glenn Morris <rgm@gnu.org>
4170
4171 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4172 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4173 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4174 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4175
2d4018aa
EZ
41762010-04-24 Eli Zaretskii <eliz@gnu.org>
4177
a49884a6
EZ
4178 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4179 use `get_next_display_element' and `set_iterator_to_next' to
4180 advance to the next character, when looking for the character that
4181 begins the next row.
4182
76db6fcc 4183 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
4184 definition of "struct Lisp_Symbol".
4185
70eab5c1
GM
41862010-04-24 Glenn Morris <rgm@gnu.org>
4187
4188 * Makefile.in (CRT_DIR): New variable, set by configure.
4189 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4190 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4191
1ad4cc3d
DN
41922010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4193
e769f484
DN
4194 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4195
4196ff33
DN
4196 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4197
879b0ee4
DN
4198 Remove redundant flags.
4199 * s/freebsd.h (C_SWITCH_SYSTEM):
4200 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4201 * s/netbsd.h (C_SWITCH_SYSTEM):
4202 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4203 of these.
4204
03cbbcb8
DN
4205 Simplify m/intel386.h.
4206 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4207 user: ecrt0.c.
4208 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4209 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4210 the only user: s/unixware.h.
4211 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4212 from m/intel386.h.
4213 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4214 moved here from m/intel386.h.
4215
1ad4cc3d
DN
4216 * m/mips.h: Remove #if 0 code.
4217
8785b888
EZ
42182010-04-23 Eli Zaretskii <eliz@gnu.org>
4219
728588cc
EZ
4220 Fix display of composed characters from L2R scripts in bidi buffers.
4221 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4222 After advancing IT past the composition, resync the bidi iterator
4223 with IT's position. (Bug#5977)
4224
a63f80b4
DN
42252010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4226
4227 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4228 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4229
ff5dec5c
SM
42302010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4231
4232 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4233
8785b888
EZ
42342010-04-23 Eli Zaretskii <eliz@gnu.org>
4235
58ccf243 4236 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
4237 * xdisp.c (pop_it): When the stack is popped after displaying
4238 from a string, bidi-iterate to exit from the text portion covered
4239 by the `display' property or overlay. (Bug#5988, bug#5920)
4240
feeb1604
DN
42412010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4242
8e324eb6
DN
4243 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4244 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4245
809fcaba
DN
4246 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4247 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4248
ed710380
DN
4249 Simplify STARTFILES definition.
4250 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4251 relying on Makefile.in to define it.
4252 * s/cygwin.h (START_FILES): Likewise.
4253 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4254
feeb1604
DN
4255 Clean up Solaris code.
4256 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4257 (LIB_MOTIF): Remove, configure takes care of this.
4258 (NOT_USING_MOTIF): Remove, unused.
4259 * xrdb.c: Remove #if 0-ed #include.
4260 (SYSV): Remove conditional for old SysV.
4261 * sysdep.c (closedir): Remove conditional code for Solaris,
4262 Solaris has closedir.
4263
a0d0b563
JD
42642010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4265
4266 * xsettings.c (read_and_apply_settings): Check if current_font is
4267 NULL before strcmp (Bug#6001).
4268
56bae7c7
DN
42692010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4270
4271 Clean up HP-UX files.
4272 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4273 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4274 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4275 * s/hpux10-20.h: ... to the only user, here.
4276
372b7a95
EZ
42772010-04-21 Eli Zaretskii <eliz@gnu.org>
4278
4279 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4280 use buffer-local values of paragraph-start and paragraph-separate.
4281 <paragraph_start_re, paragraph_separate_re>: Rename from
4282 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4283 (Bug#5992)
4284
f904c0f9
JD
42852010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4286
4287 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4288 current_tool_bar_style are new.
4289 (store_config_changed_event): Rename from store_font_changed_event.
4290 (XSETTINGS_TOOL_BAR_STYLE): New define.
4291 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4292 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4293 HAVE_XFT.
4294 (something_changedCB): store_font_changed_event is now
c4cc8b9a 4295 store_config_changed_event.
f904c0f9
JD
4296 (parse_settings): Rename from parse_xft_settings. Read
4297 non-xft xsettings outside #ifdef HAVE_XFT.
4298 (read_settings): Renamed from read_xft_settings.
4299 (apply_xft_settings): Take current settings as parameter. Do not
4300 call read_(xft)_settings.
4301 (read_and_apply_settings): New function.
4302 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4303 read_and_apply_settings if there are settings to be read.
4304 (init_xsettings): Renamed from init_xfd_settings.
4305 Call read_and_apply_settings unconditionally.
4306 (xsettings_initialize): Call init_xsettings.
4307 (Ftool_bar_get_system_style): New function.
4308 (syms_of_xsettings): Define Qmonospace_font_name and
4309 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 4310 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 4311 dynamic-setting.
31a01b90 4312 Move misplaced HAVE_GCONF
f904c0f9
JD
4313
4314 * xsettings.h (Ftool_bar_get_system_style): Declare.
4315
4316 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4317 Qtext, Qboth, Qboth_horiz are new.
4318 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4319 Vtool_bar_style, tool_bar_max_label_size.
4320
4321 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4322
4323 * keyboard.c: QClabel is new.
4324 (parse_tool_bar_item): Take out QClabel from tool bar items.
4325 Try to construct a label if ther is no QClabel.
4326 (syms_of_keyboard): Intern :label as QClabel.
4327
4328 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4329 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4330 New.
4331
4332 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4333 dynamic-setting.el.
4334
4335 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4336 (xg_make_tool_item, xg_show_toolbar_item): New function.
4337 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4338 Call xg_make_tool_item to make a tool bar item.
4339 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4340
4341 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4342 into account for toolbars.
4343
c632dfda
JD
43442010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4345
4346 * data.c (make_blv): Declarations before code (Bug#5993).
4347
10efe302
GM
43482010-04-21 Glenn Morris <rgm@gnu.org>
4349
4350 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4351 Define using autoconf, not cpp.
4352 (LIBXSM): New variable, set by autoconf.
4353 (LIBXT): Use $LIBXSM.
4354
4285ac5a
DN
43552010-04-21 Dan Nicolaescu <local_user@dannlt>
4356
3ec759e7
DN
4357 Remove NOMULTIPLEJOBS, unused.
4358 * s/template.h (NOMULTIPLEJOBS):
4359 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4360
4285ac5a
DN
4361 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4362 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4363 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4364 detects -znocombreloc and passes it to the linker
4365 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4366
2807228d
GM
43672010-04-21 Glenn Morris <rgm@gnu.org>
4368
4369 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4370
574c05e2
KK
43712010-04-21 Karel Klíč <kklic@redhat.com>
4372
4373 * Makefile.in (LIBSELINUX_LIBS): New.
4374 (LIBES): Add $LIBSELINUX_LIBS.
4375 * eval.c, lisp.h (call7): New function.
4376 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4377 (Ffile_selinux_context, Fset_file_selinux_context):
4378 New functions.
4379 (Fcopy_file): New parameter preserve-selinux-context.
4380 (Frename_file): Preserve selinux context when renaming by copy-file.
4381
91eac4bb 43822010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 4383 Eli Zaretskii <eliz@gnu.org>
91eac4bb 4384
50426a04
JB
4385 Don't depend on cm.c or termcap.c on Windows, use stubs.
4386 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4387 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4388 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4389 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4390 (sys_tputs, sys_tgetstr): New stubs.
4391 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4392 (tputs, tgetstr): New; define to sys_*.
91eac4bb 4393
938efb77
JB
43942010-04-20 Juanma Barranquero <lekktu@gmail.com>
4395
4396 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4397
b4bf28b7
SM
43982010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4399
8b1e1112
SM
4400 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4401 Just signal a warning rather than an error when inside a let.
4402 (Fmake_variable_frame_local): Add the same test.
4403
933ac235
SM
4404 * font.c (syms_of_font): Make the style table vars read-only.
4405
b4bf28b7
SM
4406 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4407 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4408
4409 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4410
93d68d0c
EZ
44112010-04-20 Eli Zaretskii <eliz@gnu.org>
4412
4413 Fix R2L paragraph display on TTY.
4414
4415 * xdisp.c (unproduce_glyphs): New function.
4416 (display_line): Use it when produced glyphs are discarded from R2L
4417 glyph rows.
4418 (append_composite_glyph): In R2L rows, prepend the glyph rather
4419 than appending it.
4420
4421 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4422 rather than append it. Set up the resolved_level and bidi_type
4423 attributes of the appended glyph.
283ccc18
EZ
4424 (produce_special_glyphs): Mirror the backslash continuation
4425 character in R2L lines.
93d68d0c 4426
283ccc18 4427 Implement display of R2L paragraphs in GUI sessions.
26cdf528 4428
283ccc18
EZ
4429 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4430 append_stretch_glyph.
4431 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4432 off-by-one error in computing x at end of text in the row.
4433 (append_stretch_glyph): In reversed row, prepend the glyph rather
4434 than append it. Set resolved_level and bidi_type of the glyph.
4435 (extend_face_to_end_of_line): If the row is reversed, prepend a
4436 stretch glyph whose width is such that the rightmost glyph will be
4437 drawn at the right margin of the window. Fix off-by-one error on
4438 TTY frames in testing whether a line needs face extension. Fix
4439 face extension at ZV. If this is the last glyph row, use
4440 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4441 region face.
4442 (set_cursor_from_row, display_line): Use
26cdf528
EZ
4443 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4444 row->continuation_lines_width.
283ccc18
EZ
4445 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4446 are at ZV. Fixes a crash when reseated to ZV by
4447 try_window_reusing_current_matrix.
45903529
EZ
4448 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4449 which happens with R2L glyph rows. Fixes a crash when inserting a
4450 character at end of an R2L line.
283ccc18
EZ
4451 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4452 treat them as having zero-width characters. Improve comments.
4453 Don't reverse pos_before and pos_after for reversed glyph rows.
4454 Set cursor.x to negative value when the cursor might be on the
4455 left fringe.
4456 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4457 left fringe, not the right one.
f951a506
EZ
4458 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4459 (erase_phys_cursor): For reversed cursor_row, support cursor on
4460 the left fringe.
4461
283ccc18
EZ
4462 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4463 of continuation indicators on the fringes.
4464 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4465 left fringe.
4466
f951a506
EZ
4467 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4468 draw cursor on the left fringe.
4469
4470 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4471 cursor on the left fringe.
4472
f951a506
EZ
4473 * dispnew.c (update_text_area): Handle reversed desired rows when
4474 the cursor is on the left fringe.
4475 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4476 below, not by 0, for when the cursor is on the left fringe.
4477
3bb49aaf
JD
44782010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4479
4480 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4481 widget is a scrollbar.
4482
c0be27fd
KH
44832010-04-20 Kenichi Handa <handa@m17n.org>
4484
4485 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4486 only when the arg CHARSET_LIST is nil.
4487
ce5b453a
SM
44882010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4489
4490 Make variable forwarding explicit rather the using special values.
4491 Basically, this makes the structure of buffer-local values and object
4492 forwarding explicit in the type of Lisp_Symbols rather than use
4493 special Lisp_Objects for that. This tends to lead to slightly more
4494 verbose code, but is more C-like, simpler, and makes it easier to make
4495 sure we handled all cases, among other things by letting the compiler
4496 help us check it.
4497 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4498 Removing forwarding objects.
4499 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4500 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4501 explicit rather than hiding them inside Lisp_Object "values".
4502 (XFWDTYPE): New macro.
4503 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4504 (XBUFFER_LOCAL_VALUE): Remove.
4505 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4506 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4507 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4508 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4509 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4510 Remove the Lisp_Misc_* header.
4511 (struct Lisp_Buffer_Local_Value): Redefine.
4512 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4513 (struct Lisp_Misc_Any): Add filler to get the right size.
4514 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4515 Lisp_Intfwd.
4516 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4517 (DEFVAR_KBOARD): Allocate a forwarding object.
4518 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4519 (let_shadows_global_binding_p): New function.
4520 (union Lisp_Val_Fwd): New type.
4521 (make_blv): New function.
4522 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4523 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4524 (swap_in_symval_forwarding, find_symbol_value, Fset)
4525 (let_shadows_buffer_binding_p, set_internal, default_value)
4526 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4527 (Fkill_local_variable, Fmake_variable_frame_local)
4528 (Flocal_variable_p, Flocal_variable_if_set_p)
4529 (Fvariable_binding_locus):
4530 * xdisp.c (select_frame_for_redisplay):
4531 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4532 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4533 * frame.c (store_frame_param):
4534 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4535 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4536 value structure.
4537 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4538 (clone_per_buffer_values): Only adjust markers into the current buffer.
4539 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4540 (Fbuffer_local_value, set_buffer_internal_1)
4541 (swap_out_buffer_local_variables):
4542 Adapt to the new symbol value structure.
4543 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4544 (defvar_per_buffer): Take a new arg for the fwd object.
4545 (buffer_lisp_local_variables): Return a proper alist (different fix
4546 for bug#4138).
4547 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4548 (Fgarbage_collect): Don't handle buffer_defaults specially.
4549 (mark_object): Handle new symbol value structure rather than the old
4550 special Lisp_Misc_* objects.
4551 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4552 * term.c (set_tty_color_mode):
4553 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4554 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4555 a buffer_local_flags.
4556 * print.c (print_object): Get rid of impossible forwarding objects.
4557
fd3998ff
EZ
45582010-04-19 Eli Zaretskii <eliz@gnu.org>
4559
4560 * bidi.c (bidi_get_type, bidi_get_category)
4561 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
4562 (bidi_type_of_next_char, bidi_level_of_next_char):
4563 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 4564
e42cd1a7
JB
45652010-04-19 Juanma Barranquero <lekktu@gmail.com>
4566
4567 * dired.c (Ffile_attributes): Fix typo in docstring.
4568
6e104790 45692010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
4570
4571 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4572 NSInteger (Bug#5811).
4573
6e104790 45742010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
4575
4576 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4577 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4578
6e104790 45792010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
4580
4581 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4582
6e104790
SM
45832010-04-19 Chong Yidong <cyd@stupidchicken.com>
4584
4585 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4586 terminal frames (Bug#5837).
4587
37dcfea0
EZ
45882010-04-19 Eli Zaretskii <eliz@gnu.org>
4589
d1da276f
EZ
4590 * .gdbinit (xsubchartable): New command.
4591
37dcfea0
EZ
45922010-04-19 Eli Zaretskii <eliz@gnu.org>
4593
4594 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 4595 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
4596 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4597 and
4598 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4599
e9515805
SM
46002010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4601
4602 * alloc.c (Fpurecopy): Hash-cons if requested.
4603 (syms_of_alloc): Update purify-flag docstring.
4604
22aa44a8
JD
46052010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4606
4607 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4608 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4609
ebb5722e
EZ
46102010-04-17 Eli Zaretskii <eliz@gnu.org>
4611
4612 Fix a crash when an NSM character is inserted at BEGV.
4613
4614 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4615 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4616 NEUTRAL_B or UNKNOWN_BT.
4617
0f4442ef
EZ
46182010-04-16 Eli Zaretskii <eliz@gnu.org>
4619
4620 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4621 other rows with cursor unless they are different from this row and
4622 this row is part of a continued line. (Bug#5943)
4623
7d4e45f8
DN
46242010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4625
4626 * s/freebsd.h: Restore osreldate.h include.
4627 Suggested by Naohiro Aota.
4628
5ba5ec85
J
46292010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4630
4631 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4632
20af301d
CY
46332010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4634
4635 * s/cygwin.h: Avoid linking against static libgcc.
4636
a4b000fb
JL
46372010-04-15 Juri Linkov <juri@jurta.org>
4638
4639 * window.c: Add Qscroll_command.
4640 Remove Vscroll_preserve_screen_position_commands.
4641 (window_scroll_pixel_based, window_scroll_line_based): Check the
4642 `scroll-command' property on the last command instead of searching
4643 the last command in Vscroll_preserve_screen_position_commands.
4644 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4645 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4646 (scroll-preserve-screen-position): Doc fix.
4647 (Vscroll_preserve_screen_position_commands): Remove variable.
4648
bc319ba4
DN
46492010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4650
6bb24457
DN
4651 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4652
19d4c244
DN
46532010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4654
4655 Reduce cpp use in Makefile.in.
4656 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4657 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4658 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4659 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4660 (CRT0_COMPILE): Remove, inline it in the only user.
4661
32129746
JL
46622010-04-14 Juri Linkov <juri@jurta.org>
4663
4664 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4665 `scroll-up-command' and `M-v' from `scroll-down' to
4666 `scroll-down-command'.
4667
9013a7f8
JL
46682010-04-14 Juri Linkov <juri@jurta.org>
4669
4670 * window.c (Vscroll_preserve_screen_position_commands): New variable
4671 with the default value as the list of Qscroll_down and Qscroll_up.
4672 (window_scroll_pixel_based, window_scroll_line_based): Search the
4673 last command in the list Vscroll_preserve_screen_position_commands
4674 instead of comparing with Qscroll_up and Qscroll_down.
4675
4bef8d26
JD
46762010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4677
92848133
JD
4678 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4679 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4680 does that.
4681
4bef8d26
JD
4682 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4683 to zero.
4684
58b963f7
SM
46852010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4686
84164a0d
SM
4687 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4688
2b0a91e7
SM
4689 Try to solve the problem of spurious EOF chars in long lines of text
4690 sent to interactive subprocesses.
4691 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4692 (system_process_attributes): Remove unused var `ttotal'.
4693 * process.c (send_process): Don't bother breaking long line with EOF
4694 chars when talking to ttys any more.
4695 (wait_reading_process_output): Output a warning when called in such
4696 a way that it could block without being interruptible.
4697
58b963f7
SM
4698 Try to detect file modification within the same second.
4699 * buffer.h (struct buffer): New field modtime_size.
4700 * buffer.c (reset_buffer): Initialize it.
4701 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4702 (Fverify_visited_file_modtime): Check it.
4703 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4704 (Fset_visited_file_modtime): Set (or clear) it.
4705
01f5787b
SM
47062010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4707
4708 * process.c (status_notify): Remove unused var `ro'.
4709
83725342
JD
47102010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4711
4712 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4713 more than one visual (Bug#5938).
4714
b9465836
DN
47152010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4716
50426a04
JB
4717 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4718 Undefine.
b9465836 4719
8d9c8ece
DN
47202010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4721
b1f52161
DN
4722 Remove C_SWITCH_SYSTEM_TEMACS.
4723 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4724 (malloc, realloc, free): Use emacs, not temacs for conditional
4725 definition.
4726
4727 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4728 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4729
8d9c8ece
DN
4730 Use autoconf, not cpp for some variables.
4731 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4732 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4733 (ALL_CFLAGS): Use them as make variables.
4734 (really-lwlib, really-oldXMenu): Do not pass them.
4735
1ecb2d3f
JD
47362010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4737
4738 * xmenu.c (apply_systemfont_to_dialog): New.
4739 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4740
3a4fa2f2
SM
47412010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4742
97e53006
SM
4743 * process.c (exec_sentinel): Preserve current-buffer.
4744
3a4fa2f2
SM
4745 * process.c (read_process_output): Move the save-current-buffer to
4746 apply to both the filter and the non-filter branches.
4747
88df7221
DN
47482010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4749
4750 * s/msdos.h (UNEXEC): New definition.
4751
5634ff85
YM
47522010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4753
6eff5c3d
YM
4754 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4755 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4756
4757 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4758 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4759 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4760 TRY_WINDOW_CHECK_MARGINS.
4761
4762 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
4763 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4764 width only when it is for padding.
5634ff85 4765
b13aef54
J
47662010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4767
4768 * xfns.c (Fx_show_tip): Call try_window in a loop until
4769 fonts_changed_p is zero (Bug#2423).
4770
21d28484
EZ
47712010-04-08 Eli Zaretskii <eliz@gnu.org>
4772
4773 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4774 the end of TEXT_AREA. (Bug#5856)
4775
0269ef77
JD
47762010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4777
4778 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4779 HAVE_GCONF.
4780
5930fe97
EZ
47812010-04-08 Eli Zaretskii <eliz@gnu.org>
4782
4783 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4784 prev.orig_type, for resolving type of NSM. (Bug#5858)
4785
99852628
JD
47862010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4787
4788 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4789 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4790 in current_font.
4791 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
4792 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4793 New functions.
4794 (syms_of_xsettings): Initialize current_font.
4795 defsubr Sfont_get_system_normal_font.
99852628 4796
686b968e
JB
4797 * xsettings.h (Ffont_get_system_normal_font)
4798 (xsettings_get_system_normal_font): Declare.
99852628
JD
4799
4800 * xfns.c (extern xlwmenu_default_font): Remove.
4801 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4802 to xlwmenu.c.
4803
4804 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4805 menu items in UTF-8.
4806
4807 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4808 (apply_systemfont_to_menu): New function.
4809 (set_frame_menubar, create_and_show_popup_menu): Call
4810 apply_systemfont_to_menu.
4811
7fc874c4
J
48122010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4813
4814 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4815 FRAME_LINE_TO_PIXEL_Y.
4816
4817 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4818 pixelwidth/height.
4819
863bf481
DN
48202010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4821
5e5a3b92
DN
4822 Simplify code for HP machines.
4823 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4824 for GNU_LINUX, not needed.
4825 (UNEXEC, NEED_BSDTTY): Move definitions...
4826 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4827
863bf481
DN
4828 * m/iris4d.h (UNEXEC): Move definition ...
4829 * s/irix6-5.h (UNEXEC): ... here.
4830
3e6bec3b
JD
48312010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4832
4833 * xfns.c (set_machine_and_pid_properties): New function.
4834 (Fx_create_frame): Call set_machine_and_pid_properties.
4835
2912322b
SM
48362010-04-03 Eli Zaretskii <eliz@gnu.org>
4837
1502b819
EZ
4838 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4839 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4840 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4841
2912322b
SM
4842 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4843 in this function. (Bug#5703)
4844
48452010-04-03 Chong Yidong <cyd@stupidchicken.com>
4846
4847 * nsterm.h: Fix last change.
4848
c435b432
DN
48492010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4850
a568f507
DN
4851 * m/intel386.h (NO_REMAP): Move definition ...
4852 * s/msdos.h (NO_REMAP): ... here.
4853
4cd9f6c2
DN
4854 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4855
c435b432
DN
4856 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4857 used on those platforms.
4858
42a2c622
DN
48592010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4860
4861 Remove extern errno declarations.
4862 * xterm.c:
4863 * xrdb.c:
4864 * w32term.c:
4865 * unexec.c:
4866 * unexaix.c:
4867 * sysdep.c:
4868 * process.c:
4869 * lread.c:
4870 * keyboard.c:
4871 * floatfns.c:
4872 * filelock.c:
4873 * fileio.c:
4874 * emacs.c (main):
4875 * ecrt0.c:
4876 * dispnew.c:
4877 * callproc.c:
4878 * buffer.c: Remove errno extern declarations.
4879 * s/netbsd.h (NEED_ERRNO): Remove.
4880
8224f93d
DN
48812010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4882
4883 Remove all uses of LIBX11_SYSTEM.
4884 * Makefile.in (LIBX11_SYSTEM): Remove.
4885 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4886 instead.
4887
814062c7
EZ
48882010-04-01 Eli Zaretskii <eliz@gnu.org>
4889
ed68db4d
EZ
4890 Remove support for DJGPP v1.x (bug#5813).
4891
4892 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
4893 * s/msdos.h:
4894 * unexec.c (make_hdr, copy_text_and_data):
4895 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4896 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4897 (IT_set_terminal_modes, __write, _rename, gethostname)
4898 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4899 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4900 the value of __DJGPP__.
ed68db4d
EZ
4901 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4902 compatibility code.
8224f93d
DN
4903 * lread.c:
4904 * gmalloc.c (memalign):
4905 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4906 * emacs.c (main):
4907 * dosfns.c (init_dosfns):
ed68db4d
EZ
4908 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4909
52f4d8d5
EZ
49102010-04-01 Eli Zaretskii <eliz@gnu.org>
4911
814062c7
EZ
4912 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4913 string with `cursor' property comes from an `after-string'
4914 overlay. (Bug#5816)
4915
0dc2e11d
GM
49162010-04-01 Glenn Morris <rgm@gnu.org>
4917
4918 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4919 Define as Makefile variables.
4920 (LIBX): Use above variables rather than directly using autoconf.
4921
1d29df59
DN
49222010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4923
4924 Clean up BSD_SYSTEM use.
4925 * xterm.c:
4926 * process.c:
4927 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4928 for including <sys/ioctl.h>.
4929 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4930 code is only used for MSDOS.
4931
1546c559
JL
49322010-03-31 Juri Linkov <juri@jurta.org>
4933
4934 * image.c: Add `Qextension_data'.
4935 (syms_of_image): Initialize and staticpro `Qextension_data'.
4936 (Fimage_metadata): Rename from `Fimage_extension_data'.
4937 (gif_load): Put GIF extension data to the property
4938 `Qextension_data'.
4939
6521c534
CY
49402010-03-31 Chong Yidong <cyd@stupidchicken.com>
4941
4942 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4943 * nsterm.h: Fix prototype.
4944
52c30783
EZ
49452010-03-31 Eli Zaretskii <eliz@gnu.org>
4946
4947 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4948 trailing whitespace in right-to-left rows.
4949
855a0da7
SM
49502010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4951
4952 Get rid of the direct_output optimizations.
4953 * keyboard.c (nonundocount): Remove extern declaration.
4954 (command_loop_1): Remove brittle optimisation for cheap and
4955 common operations.
4956 * xdisp.c (redisplay_internal): Don't bother checking
4957 redisplay_performed_directly_p any more.
4958 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4959 any more.
4960 * dispnew.c (redisplay_performed_directly_p)
4961 (direct_output_for_insert, direct_output_forward_char):
4962 * dispextern.h (redisplay_performed_directly_p)
4963 (direct_output_for_insert, direct_output_forward_char): Remove.
4964 * cmds.c (nonundocount): Make it static.
4965
85738751 49662010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
4967
4968 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4969
85738751 49702010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
4971
4972 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4973 invisible (Bug#5766).
4974
85738751 49752010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 4976
855a0da7
SM
4977 * xdisp.c (x_consider_frame_title, update_window_cursor):
4978 Remove HAVE_NS conditionals.
194d44e7 4979 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
4980
4981 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4982 filename for the title.
4983 (ns_set_doc_edited): Do nothing if the selected window is a
4984 minibuffer window.
4985
4986 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4987 ns_set_doc_edited.
4988
4989 * nsterm.m: Remove unneeded prototype.
4990
85738751 49912010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
4992
4993 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4994 in the DOC file. (Bug#5336)
4995
85738751 49962010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
4997
4998 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4999
75d1428c
SM
50002010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5001
5002 * window.c (keys_of_window): Remove redundant/overridden bindings.
5003
82043cfb
EZ
50042010-03-30 Eli Zaretskii <eliz@gnu.org>
5005
5006 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5007 Restore original behavior when the iterator is not bidi_p.
5008
b5dd0ae7
DN
50092010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5010
5011 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5012
bd924a5d
EZ
50132010-03-30 Eli Zaretskii <eliz@gnu.org>
5014
5015 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5016 are outside the range of cached character positions.
5017
3580374b
JB
50182010-03-30 Juanma Barranquero <lekktu@gmail.com>
5019
5020 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5021
a7b02820
EZ
50222010-03-30 Eli Zaretskii <eliz@gnu.org>
5023
5024 Initial support for bidirectional editing.
5025
5026 * Makefile.in (obj): Include bidi.o.
5027 (bidi.o): New target.
5028
5029 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5030 ($(BLD)/bidi.$(O)): New target.
5031
5032 * bidi.c: New file.
5033
5034 * buffer.h (struct buffer): New members bidi_display_reordering
5035 and bidi_paragraph_direction.
5036
5037 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5038 and bidi_paragraph_direction.
5039 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5040 and bidi-paragraph-direction.
5041 (Fbuffer_swap_text): Swap the values of
5042 bidi_display_reordering and bidi_paragraph_direction.
5043
5044 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5045 (bidi_type_t, bidi_dir_t): New types.
5046 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5047 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5048 prev_stop, base_level_stop, and eol_pos.
5049 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5050 (IT_STACK_SIZE): Enlarge to 5.
5051 (struct glyph_row): New member reversed_p.
5052 <string_buffer_position>: Update prototype.
5053 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5054 glyph_row if bidi_it.paragraph_dir == R2L.
5055 (struct glyph): New members resolved_level and bidi_type.
5056
5057 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5058 processing or buffer's direction is right-to-left.
5059 (prepare_desired_row): Preserve the reversed_p flag.
5060 (row_equal_p): Compare the reversed_p attributes as well.
5061
5062 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5063 bidi_init_it and set it->paragraph_embedding from the current
5064 buffer's value of bidi_paragraph_direction.
5065 (reseat_1): Initialize bidi_it.first_elt.
5066 (set_iterator_to_next, next_element_from_buffer): Use the value of
5067 paragraph_embedding to determine the paragraph direction.
5068 (set_iterator_to_next): Under bidi reordering, call
5069 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5070 new_paragraph flag is set in the bidi iterator.
5071 (next_element_from_buffer): If bidi_it.first_elt is set,
5072 initialize paragraph direction and find the first character to
5073 display in the visual order. If reseated to a middle of a line,
5074 prime the bidi iterator starting at the line's beginning. Handle
5075 the situation where we overstepped stop_charpos due to
5076 non-linearity of the bidi iteration. Likewise for when we back up
5077 beyond the previous stop_charpos. When moving across stop_charpos,
5078 record it in prev_stop.
5079 (display_line): Set row->end and it->start for the next row to the
5080 next character in logical order. Always extend reversed_p rows to
5081 the end of line, even if they end at ZV. Copy the reversed_p flag
5082 to the next glyph row. Keep calling set_cursor_from_row for
5083 bidi-reordered rows even if we already have a possible candidate
5084 for cursor position. Set row_end after all the row's glyphs have
5085 been produced, by looping over the glyphs. Record the position
5086 after EOL in it->eol_pos, and use it to set end_pos of the last
5087 row produced for a continued line.
5088 <Qright_to_left, Qleft_to_right>: New variables.
5089 (syms_of_xdisp): Initialize and staticpro them.
5090 (string_buffer_position_lim): New function.
5091 (string_buffer_position): Most of code moved to
5092 string_buffer_position_lim. Last argument and return value are
5093 now EMACS_INT; all callers changed.
5094 (set_cursor_from_row): Rewritten to support bidirectional text and
5095 reversed glyph rows.
5096 (text_outside_line_unchanged_p, try_window_id): Disable
5097 optimizations if we are reordering bidirectional text and the
5098 paragraph direction can be affected by the change.
5099 (append_glyph, append_composite_glyph)
5100 (produce_image_glyph, append_stretch_glyph): Set the
5101 resolved_level and bidi_type members of each glyph.
5102 (append_glyph): If the glyph row is reversed, prepend the glyph
5103 rather than appending it.
5104 (handle_stop_backwards): New function.
5105 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5106 (reseat): call handle_stop_backwards to recompute prev_stop and
5107 base_level_stop for the new position.
5108 (handle_invisible_prop): Under bidi iteration, skip invisible text
5109 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5110 paragraph direction. Update IT->prev_stop after skipping
5111 invisible text.
5112 (move_it_in_display_line_to): New variables prev_method
5113 and prev_pos. Compare for strict equality in
5114 BUFFER_POS_REACHED_P.
5115 (try_cursor_movement): Examine all the candidate rows that occlude
5116 point, to return the best match. If rows are bidi-reordered
5117 and point moved backwards, back up to the row that is not a
5118 continuation line, and start looking for a suitable row from
5119 there.
5120
5121 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5122 rather than appending, if the glyph_row's reversed_p flag is set.
5123 Set the resolved_level and bidi_type members of each glyph.
5124
5125 * .gdbinit (pbiditype): New command.
5126 (pgx): Use it to display bidi level and type of the glyph.
5127 (pitx): Display some bidi information about the iterator.
5128 (prowlims, pmtxrows): New commands.
5129
32a8894e
DN
51302010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5131
5132 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5133 * s/usg5-4.h (LIBS_DEBUG):
5134 * s/irix6-5.h (C_DEBUG_SWITCH):
5135 * s/gnu-linux.h (LIBS_DEBUG):
5136 * s/darwin.h (LIBS_DEBUG):
5137 * s/bsd-common.h (LIBS_DEBUG):
5138 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5139 * m/iris4d.h (LIBS_DEBUG):
5140 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5141
5142 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5143 (LIBS_DEBUG): Remove definition.
5144
649dbf36
CY
51452010-03-27 Chong Yidong <cyd@stupidchicken.com>
5146
5147 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5148 Windows.
5149
cad4261f
YM
51502010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5151
5152 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5153 `connect' (Bug#5723).
5154
cd591dbc
HE
51552010-03-25 Helmut Eller <eller.helmut@gmail.com>
5156
5157 * process.c (Fmake_network_process): Call `select' for interrupted
5158 `connect' rather than creating new socket (Bug#5173).
5159
e867cb5d 51602010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
5161
5162 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5163
5164 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5165
5166 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5167
e867cb5d 51682010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
5169
5170 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5171 XLoadQueryFont.
5172
e867cb5d 51732010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
5174
5175 * coding.c (decode_coding_ccl): Fix previous change for the
5176 multibyte case.
fb608df3
KH
5177 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5178 case that the output buffer is fullfilled.
5179 (encode_coding): Setup ccl program here.
fbdc1721 5180
5845f0ed
DN
51812010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5182
814fb708
DN
5183 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5184
5845f0ed
DN
5185 Simplify LIBS_MACHINE definitions.
5186 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5187 * m/iris4d.h (LIBS_MACHINE): Likewise.
5188 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5189 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 5190 * s/netbsd.h: Remove commented out code.
5845f0ed 5191
b7064064
DN
51922010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5193
df7734b2
DN
5194 Remove dead code dealing with POSIX_SIGNALS.
5195 * atimer.c (set_alarm): Remove dead code, all USG systems define
5196 POSIX_SIGNALS.
5197 * data.c (arith_error): Likewise.
5198 * keyboard.c (input_available_signal, handle_user_signal)
5199 (interrupt_signal): Likewise.
5200 * process.c (sigchld_handler): Likewise.
5201 (create_process): Remove if 0 code. Remove HPUX conditional when
5202 !defined (POSIX_SIGNALS), it cannot be true.
5203 * syssignal.h: Remove USG5_4 and USG conditionals when
5204 !POSIX_SIGNALS, they cannot be true.
5205
b7064064
DN
5206 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5207 NO_SOCK_SIGIO, not used anymore.
5208
55da5ee3
DN
52092010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5210
0be96e3a
DN
5211 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5212 support vax on BSDs.
5213
55da5ee3
DN
5214 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5215 * s/aix4-2.h (ORDINARY_LINK): ... here.
5216
c0282183
AS
52172010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5218
82c3d67a
AS
5219 * Makefile.in (abs_builddir): Define.
5220 (bootstrap_exe): Use it.
5221 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 5222
3613edce
SM
52232010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5224
5225 * Makefile.in (bootstrap_exe): Use an absolute name.
5226
7f110ddc
DN
52272010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5228
22e87574
DN
5229 Remove support for old GNU/Linux using libc version 5.
5230 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5231 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5232
05a670e6
DN
5233 Consolidate redundant definitions in s/bsd-common.h.
5234 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5235 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5236 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5237 doing it in all files that include this one.
5238 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5239 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5240 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5241 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5242 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5243 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5244 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5245 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5246 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5247
2968f561
DN
5248 Consolidate redundant definitions.
5249 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5250 it's undefined in all files that include this one.
5251 (POSIX_SIGNALS): Define here instead of doing it in all files that
5252 include this one.
5253 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5254 (POSIX_SIGNALS): Do not define.
5255 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5256 (POSIX_SIGNALS): Do not define.
5257 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5258 (POSIX_SIGNALS): Do not define.
5259
15d25dc0
DN
5260 Remove support for old UNIX System V systems.
5261 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5262 * s/usg-5-4-2.h: Remove.
5263
07e339e4
DN
5264 Remove support for Solaris on PPC and for old versions.
5265 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5266 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5267 that cancel each other.
5268 * s/sol2-3.h:
5269 * s/sol2-4.h:
5270 * s/sol2-5.h: Remove.
5271 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5272 (NO_REMAP): Remove, unused.
5273 (UNEXEC): Move definition ...
5274 * s/aix4-2.h (UNEXEC): ... here.
5275
7f110ddc
DN
5276 * s/openbsd.h: Remove support for non-ELF and for systems that do
5277 not support shared libraries.
5278 * s/netbsd.h:
5279 * s/freebsd.h: Likewise.
5280
605f35cd
DN
52812010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5282
5283 Remove non-working support for lynxos 3.0.
5284 * s/lynxos.h: Remove file.
5285
5286 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5287 COFF_BSD_SYMBOLS, nothing defines it anymore.
5288
aed71cf4
DN
52892010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5290
5291 Remove obsolete uses of HAVE_SHM.
5292 * emacs.c (standard_args):
5293 (Fdump_emacs):
5294 (syms_of_emacs): Remove code depending on HAVE_SHM.
5295
5296 * alloc.c: Remove HAVE_SHM dependent definition.
5297
5298 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5299
aded53ff
GM
53002010-03-18 Glenn Morris <rgm@gnu.org>
5301
17284745
GM
5302 * emacs.c (USAGE4): Hard-code bug address.
5303 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5304 (bug_reporting_address): Remove.
5305 (main): Don't call bug_reporting_address.
5306
aded53ff
GM
5307 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5308 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5309
303500aa
CY
53102010-03-15 Chong Yidong <cyd@stupidchicken.com>
5311
5312 * xfns.c (Fx_create_frame):
5313 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5314 on left.
5315
cef3058f
CY
53162010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5317
5318 * editfns.c (Fformat): Account for string precision when computing
5319 field width (Bug#5710).
5320
a647d59d
CY
53212010-03-12 Chong Yidong <cyd@stupidchicken.com>
5322
4fa42018
CY
5323 * xfns.c (Fx_create_frame): Set default to Qright.
5324
a647d59d
CY
5325 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5326 all window systems.
5327
6da23aaa
EZ
53282010-03-12 Eli Zaretskii <eliz@gnu.org>
5329
a96f6398 5330 These changes remove termcap.c from the build on Posix platforms.
83d02def 5331 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
5332 (MSDOS_OBJ): ...to here.
5333 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5334 now identical to when LIBS_TERMCAP is defined.
5335
5336 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5337
5338 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5339
a96f6398 5340 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 5341
288f9fc0
CY
53422010-03-10 Chong Yidong <cyd@stupidchicken.com>
5343
5344 * Branch for 23.2.
5345
d48cd3f4
SM
53462010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5347
5348 Cleanup setup of gl_state in various parts of the code.
5349 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5350 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5351 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5352 (skip_chars):
5353 * regex.c (regex_compile): Use it.
5354 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5355 it's now set in regex_compile when/if we need it.
5356
618db430
SM
53572010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5358
c0335e02
SM
5359 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5360 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5361 (QUIT): Use it to consolidate code and remove redundancy.
5362 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5363
254c06a8
SM
5364 * regex.c (regex_compile): Setup gl_state as well.
5365
618db430
SM
5366 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5367 (in_classes): Use CONSP before XCAR/XCDR.
5368
233f0c9f
CY
53692010-03-03 Chong Yidong <cyd@stupidchicken.com>
5370
5371 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5372 definitions, so that keyboard macros are correctly handled
5373 (Bug#5481).
5374
75f80e63
EZ
53752010-03-02 Eli Zaretskii <eliz@gnu.org>
5376
5377 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5378 text that could be relocated inside the call to emacs_mule_char.
5379 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5380 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5381
dcfb9bc4
KH
53822010-03-02 Kenichi Handa <handa@m17n.org>
5383
fc9a17bc
KH
5384 * character.c (parse_str_as_multibyte): Fix handling of the
5385 multibyte form of raw-bytes.
5386 (str_as_multibyte): Likewise.
5387
dcfb9bc4
KH
5388 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5389 form of raw-bytes.
5390
412c01b6
CY
53912010-02-28 Chong Yidong <cyd@stupidchicken.com>
5392
5393 * charset.c (load_charset_map_from_file)
5394 (load_charset_map_from_vector): Zero out allocated
5395 charset_map_entries before using them.
5396
df7e1ea0
AS
53972010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5398
5399 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5400
fe69a722
CY
54012010-02-27 Chong Yidong <cyd@stupidchicken.com>
5402
4ed28cf4
CY
5403 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5404 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 5405
7379cfce
KH
54062010-02-26 Kenichi Handa <handa@m17n.org>
5407
f88cc4d6
KH
5408 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5409
7379cfce
KH
5410 * xdisp.c (reseat_to_string): Fix previous change.
5411
cf2fdcfb
CY
54122010-02-26 David Reitter <david.reitter@gmail.com>
5413
5414 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5415 Lisp_Object (Bug#4736).
5416
cc6c7c75
KH
54172010-02-25 Kenichi Handa <handa@m17n.org>
5418
5419 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5420
32e737d7
JD
54212010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5422
5423 * xterm.c (XTflash): Move declarations before statements.
5424
5425 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5426 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5427 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5428 (xg_create_tool_bar): Remove unused variables.
5429 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 5430 (xg_create_frame_widgets): Remove variable grav.
32e737d7 5431
676cae9f
CY
54322010-02-21 Chong Yidong <cyd@stupidchicken.com>
5433
5434 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5435
886cc2b8
SM
54362010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5437
5438 * term.c (fatal): Add a final \n if needed (bug#5596).
5439
ddb2d8e2
CY
54402010-02-18 Chong Yidong <cyd@stupidchicken.com>
5441
5442 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5443
2a4f8d3d
GM
54442010-02-18 Glenn Morris <rgm@gnu.org>
5445
5446 * callint.c (Finteractive): Doc fix.
5447
ebaf11b6
KH
54482010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5449
886cc2b8
SM
5450 * coding.c (record_conversion_result):
5451 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
5452 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5453 memory allocation error.
5454
d0396581
KH
54552010-02-17 Kenichi Handa <handa@m17n.org>
5456
886cc2b8
SM
5457 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5458 Fix for the case that the output buffer is fullfilled.
d0396581
KH
5459 (decode_coding): Setup ccl program here. Keep looping when the
5460 decoder stopped because the output buffer is
5461 fullfilled (bug#5534).
5462
5463 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5464
98599f74
JD
54652010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5466
471e4f04 5467 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 5468 bug #5571.
886cc2b8 5469 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 5470 overdrawn.
98599f74 5471
182659ae
JD
54722010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5473
5474 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5475 doing_interact here.
5476 (ice_connection_closed): New function.
5477 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5478 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5479 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5480 returns I/O error.
5481 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5482 bug #5512.
5483
9be32c4e 54842010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
5485
5486 * nsfont.m (nsfont_open): The system's value for the font descent
5487 is negative, so round it down to avoid clipping.
5488
a2f3eb19
CY
54892010-02-06 Chong Yidong <cyd@stupidchicken.com>
5490
5491 * charset.c (load_charset_map_from_file)
5492 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 5493 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 5494
3088147c
CY
54952010-02-05 Chong Yidong <cyd@stupidchicken.com>
5496
5497 * charset.c (load_charset_map_from_file): Allocate large
5498 charset_map_entries structure on the heap rather than the stack.
5499 (Bug#5526).
5500
b57d9029
KH
55012010-01-31 Kenichi Handa <handa@m17n.org>
5502
5503 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 5504 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 5505
c67d885b
CY
55062010-01-31 Chong Yidong <cyd@stupidchicken.com>
5507
5508 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5509 <deactivated@gmail.com> (Bug#3605).
5510
8fab2362
CY
55112010-01-31 David De La Harpe Golden <david@harpegolden.net>
5512
5513 * fileio.c (Frename_file): Correctly rename symlinks to
5514 directories (Bug#5496).
5515
cb2a62f2
CY
55162010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5517
5518 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5519
944c7a26
AS
55202010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5521
5522 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5523
c024ac08
CY
55242010-01-29 Chong Yidong <cyd@stupidchicken.com>
5525
5526 * frame.c (DEFAULT_ROWS): Change default to 35.
5527
5528 * xfns.c (x_default_font_parameter): Change default XFT font to
5529 monospace-10 (Bug#3643).
5530
af93af83
EZ
55312010-01-29 Eli Zaretskii <eliz@gnu.org>
5532
5533 * w32inevt.c (key_event): Remove unnecessary comparison of
5534 event->uChar.AsciiChar with 128.
5535
ca0eb708
CY
55362010-01-28 Chong Yidong <cyd@stupidchicken.com>
5537
b242dbfc
CY
5538 * fileio.c (Frename_file): Fix last change (Bug#5487).
5539
ca0eb708
CY
5540 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5541
5542 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5543
45d45af5
JD
55442010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5545
5546 * xfns.c (Fx_create_frame): Remove window size matching code from
5547 2010-01-15.
a73f9c9d 5548 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 5549
7e233730
JR
55502010-01-27 Jason Rumney <jasonr@gnu.org>
5551
5552 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 5553 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 5554
86e893e3
KH
55552010-01-27 Kenichi Handa <handa@m17n.org>
5556
5557 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 5558 pattern string (Bug#4209).
86e893e3 5559
8719abec
CY
55602010-01-27 David De La Harpe Golden <david@harpegolden.net>
5561
5562 * fileio.c (Frename_file): Call copy-directory and
5563 delete-directory for directories, in order to handle cross-device
5564 renaming (Bug#3353).
5565
844794c8
JD
55662010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5567
aa3e13b5 5568 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 5569 sizes 24 and 10. Bug #3643.
844794c8 5570
bd4b5750
SM
55712010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5572
8dc1adf6 5573 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
5574 * keymap.c (shadow_lookup): Add `remap' arg.
5575 (describe_map, describe_vector): Update calls to shadow_lookup.
5576 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5577 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
5578 perform remapping during shadow_lookup check of remapped_sequences.
5579
285d07e2
CY
55802010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5581
5582 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5583 png_check_sig, which has been removed in libpng 1.4.
5584
c6d09b8d
CY
55852010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5586
5587 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5588 lacks this header file).
5589
3d782998
YM
55902010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5591
5592 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5593 as in Emacs 22.
5594
2aff7c53
YM
55952010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5596
5597 * lisp.h (make_pure_string): String pointer arg now points to const.
5598
5599 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5600 args now point to const.
5601
74327f7a
EZ
56022010-01-22 Eli Zaretskii <eliz@gnu.org>
5603
5604 * lread.c (Fload): Don't treat files without .elc extension as
5605 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5606 them. (bug#5303)
5607
4d1e6632
KH
56082010-01-20 Kenichi Handa <handa@m17n.org>
5609
5610 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5611 treat the source as actual byte sequence.
5612
1fdede8f
AM
56132010-01-19 Alan Mackenzie <acm@muc.de>
5614
5615 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 5616 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
5617 `signal_after_change_p' to `coherent_change_p', and make the
5618 invocation of `modify_region' conditional on it.
5619
67477f30
JD
56202010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5621
5622 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5623 for debug purpose.
5624 (syms_of_xsettings): Declare xft-settings.
5625
244b023e
CY
56262010-01-18 Chong Yidong <cyd@stupidchicken.com>
5627
5628 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5629
617364fe
CY
56302010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5631
5632 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5633
4fe22cdf
CY
56342010-01-16 Chong Yidong <cyd@stupidchicken.com>
5635
5636 * emacs.c (standard_args): Adjust arg priorities to reflect how
5637 they are processed in startup.el.
5638
e118d2be
AS
56392010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5640
5641 * Makefile.in (lisp, shortlisp): Update.
5642
523ae620
SM
56432010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5644
5645 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5646 code, link the new kboard into all_kboard before running Lisp code,
5647 and protect the new terminal with GCPRO (Bug#5365).
5648 (x_term_init): Remove unused var `atom'.
5649 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5650
f0d13888
JD
56512010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5652
5653 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5654 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5655 to find out usable size of the desktop. Don't make frames larger than
ac146f82 5656 this. Bug #3643.
f0d13888 5657
cc320f07
KH
56582010-01-15 Kenichi Handa <handa@m17n.org>
5659
5660 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5661
7ffdf101
CY
56622010-01-15 Chong Yidong <cyd@stupidchicken.com>
5663
5664 * nsterm.m (Qnone): Define.
5665
5666 * nsfns.m (Qnone): Move definition to nsterm.m.
5667
d12bd917
KH
56682010-01-14 Kenichi Handa <handa@m17n.org>
5669
5670 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5671 systems.
5672
d9a7c140
KH
56732010-01-14 Kenichi Handa <handa@m17n.org>
5674
5675 Make auto-composition work on all buffers even if they are
5676 fundamental mode.
5677
5678 * composite.c (Vauto_composition_mode): New variable.
5679 (composition_compute_stop_pos): Check Vauto_composition_mode
5680 instead of Vauto_composition_function.
5681 (composition_adjust_point, Ffind_composition_internal): Likewise.
5682 (syms_of_composite): Declare Lisp variable
5683 "auto-composition-mode" here.
5684
63286bb2
CY
56852010-01-13 Chong Yidong <cyd@stupidchicken.com>
5686
5687 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5688 during call to vendor-specific-keysyms (Bug#5365).
5689
c2623ee7
YM
56902010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5691
5692 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5693 Call SIGNAL_THREAD_CHECK (Bug#5333).
5694
5695 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5696 Call SIGNAL_THREAD_CHECK.
5697
0b5397c2
SM
56982010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5699
5700 Try to fix bug#5314. This is probably not the final word, tho.
5701 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5702 recent-auto-save-p as a side-effect.
5703 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5704 * buffer.c (Fkill_buffer, reset_buffer):
5705 * editfns.c (Fsubst_char_in_region):
5706 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5707 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5708
dc954cb2
KH
57092010-01-13 Kenichi Handa <handa@m17n.org>
5710
5711 Display buffer name, etc. in mode line by composing correctly.
5712
5713 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5714 STRING is not nil.
0b5397c2 5715 (display_mode_element): Adjust for the change of
dc954cb2
KH
5716 decode_mode_spec and display_line.
5717 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5718 (display_string): Handle the case that STRING is non-null and
5719 LISP_STRING is not nil.
5720
0b5397c2
SM
5721 * xterm.c (x_draw_composite_glyph_string_foreground):
5722 Pay attention to s->face->overstrike.
dc954cb2
KH
5723
5724 * composite.c (composition_reseat_it): Don't check PT if STRING is
5725 non nil.
5726
4a00eaca
YM
57272010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5728
5729 * keyboard.c (read_char): Don't apply previous change when current
5730 buffer is unchanged by command execution.
5731
60abb287
JD
57322010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5733
5734 * keyboard.c (read_char): Return after executing from special map.
5735
893db5bc
GM
57362010-01-12 Glenn Morris <rgm@gnu.org>
5737
5738 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5739 bug-gnu-emacs rather than emacs-pretest-bug.
5740
4d03ece0
CY
57412010-01-11 Chong Yidong <cyd@stupidchicken.com>
5742
5743 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5744 initializing the Lisp variables that depend on them.
5745
1df47e38
YM
57462010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5747
5748 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5749 Clear areas that will not be updated after change of menu bar lines.
5750 Clear the menu bar window's current matrix when the window gets empty.
5751
2f1c6384
CY
57522010-01-09 Chong Yidong <cyd@stupidchicken.com>
5753
e398c61c
CY
5754 * intervals.h, textprop.c (extend_property_ranges): Return value
5755 and args changed. Discard properties that begin at or after the
5756 new end (Bug#5306).
5757
5758 * editfns.c (Fformat): Caller changed.
5759
e5a29a10
CY
5760 * nsterm.m (ns_set_default_prefs): Delete function.
5761 (syms_of_nsterm): Initialize ns_command_modifier,
5762 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5763 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5764
2f1c6384
CY
5765 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5766 position (Bug#4040).
5767
d427a9fa
EZ
57682010-01-09 Eli Zaretskii <eliz@gnu.org>
5769
5770 * editfns.c (Ffloat_time): Doc fix.
5771
21b9df2f
JD
57722010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5773
5774 * xfns.c (Fx_create_frame): Don't create frame larger than display
5775 by default bug#3643.
5776
4b00d3b1
YM
57772010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5778
5779 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5780 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5781 windows above internal border.
5782
5783 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5784 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5785 windows above internal border.
5786
5787 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5788 tool bar windows specially.
5789
5790 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5791
5792 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5793 specially.
5794 (XTflash): Take account of menu bar height.
5795
5796 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5797 specially.
5798
5075d853
JD
57992010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5800
ac146f82 5801 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
5802 also be true before we can return early (bug #5339).
5803
474217c8
CY
58042010-01-06 David Reitter <david.reitter@gmail.com>
5805
5806 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5807 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5808 (Bug#3233).
5809
c0e6d47d
JD
58102010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5811
d0cf45b7
JD
5812 * font.c (font_open_entity): Enable chache and call cached_font_ok
5813 for the driver if defined.
5814 (QCuser_spec): New symbol.
5815 (font_spec_from_name): Save name as user-spec.
5816 (font_load_for_lface): Keep user-spec instead of name.
5817 (font_open_by_name): Save name as user-spec.
5818 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 5819 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
5820
5821 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5822 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5823 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5824
5825 * font.h (struct font_driver): Add cached_font_ok.
5826
c0e6d47d
JD
5827 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5828
7c583cd8
JD
58292010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5830
5831 * xterm.c (x_new_font): Move code for setting rows/cols before
5832 resizing ...
ac146f82 5833 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
5834
5835 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
5836 (xg_frame_resized, xg_frame_set_char_size):
5837 Call xg_clear_under_internal_border.
7c583cd8 5838 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 5839
03f77f0a
CY
58402010-01-05 Chong Yidong <cyd@stupidchicken.com>
5841
5842 * keyboard.c (read_key_sequence): Catch keyboard switch after
5843 making a new tty frame (Bug#5095).
5844
2a1ef5be
KH
58452010-01-05 Kenichi Handa <handa@m17n.org>
5846
5847 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5848
e3eb1dae
SM
58492010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5850
5851 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5852 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5853 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5854
777013f2
MA
58552010-01-03 Michael Albinus <michael.albinus@gmx.de>
5856
5857 * dbusbind.c (xd_add_watch): Improve debug message.
5858 (xd_remove_watch): Improve debug message. If DATA is the session
5859 bus, unset D-Bus session environment.
5860 (Fdbus_init_bus): Pass the bus as argument to
5861 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 5862
8932b1c2
CY
58632010-01-01 Chong Yidong <cyd@stupidchicken.com>
5864
87231e2c
CY
5865 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5866
4801c5fa
CY
5867 * lread.c (syms_of_lread): Make it clearer that these are the
5868 names of loaded files (Bug#5068).
5869
8932b1c2
CY
5870 * eval.c (run_hook_with_args): Handle the case where the global
5871 value has the obsolete single-function form (Bug#5026).
5872
11e3c684
CY
58732009-12-27 Chong Yidong <cyd@stupidchicken.com>
5874
5875 * minibuf.c (Fall_completions): Minor optimization.
5876
5b28ce35
EZ
58772009-12-26 Eli Zaretskii <eliz@gnu.org>
5878
5ce6e4f4
JB
5879 * .gdbinit (pgx): Fix display of composite glyphs.
5880 Display cmp.from and cmp.to as well.
5881 (pitx): Fix last change.
5b28ce35 5882
bcffff46
KH
58832009-12-25 Kenichi Handa <handa@m17n.org>
5884
5885 * composite.h (composition_adjust_point): Update prototype.
5886
5887 * composite.c (composition_reseat_it): Don't make a composition
5888 spanning over point.
5889 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5890 composable characters.
5891 (composition_adjust_point): New arg NEW_PT. Callers changed.
5892
5893 * keyboard.c (command_loop_1): Force redisplay if the last point
5894 was within a composition.
5895 (adjust_point_for_property): Don't adjust point for automatic
5896 composition when called after buffer modification.
5897
3f670e9a
EZ
58982009-12-19 Eli Zaretskii <eliz@gnu.org>
5899
5ce6e4f4
JB
5900 * .gdbinit (pitx): Don't use enum names, use their values.
5901 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5902 (pgx): Don't use enum names, use their values.
5903 (pitmethod): New helper command.
5904 (pitx): Use it to display iteration method.
5905 (pgrowit): New command.
5906
ad903955
EZ
5907 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5908
3f670e9a
EZ
5909 Update dependencies in Makefile.in.
5910
5911 * Makefile.in (alloc.o): Depend on termhooks.h.
5912 (atimer.o): Depend on blockinput.h.
5913 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5914 and frame.h.
5915 (callint.o): Depend on systime.h, coding.h, and composite.h.
5916 (callproc.o): Depend on buffer.h.
5917 (casefiddle.o): Don't depend on charset.h.
5918 (casetab.o): Depend on character.h.
5919 (ccl.o): Depend on composite.h.
5920 (chartab.o): Depend on ccl.h.
5921 (cm.o): Depend on dispextern.h.
5922 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5923 (coding.o): Don't depend on $(INTERVALS_H).
5924 (composite.o): Don't depend on dispextern.h explicitly (it's in
5925 $(INTERVALS_H)). Depend on ccl.h.
5926 (data.o): Depend on systime.h, coding.h, composite.h,
5927 dispextern.h, font.h, and ccl.h.
5928 (dired.o): Depend on composite.h.
5929 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5930 composite.h (it's in $(INTERVALS_H)).
5931 (doc.o): Depend on systime.h, coding.h, and composite.h.
5932 (editfns.o): Don't depend explicitly on dispextern.h.
5933 (emacs.o): Depend on frame.h and coding.h.
5934 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5935 (fileio.o): Depend on frame.h and commands.h. Don't depend
5936 explicitly on dispextern.h.
5937 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5938 composite.h.
5939 (fns.o): Don't depend on termhooks.h.
5940 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5941 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5942 coding.h, $(INTERVALS_H), window.h, xterm.h.
5943 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5944 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5945 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5946 fontset.h, ccl.h, and ftfont.h.
5947 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5948 (gtkutil.o): Depend on dispextern.h and composite.h.
5949 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5950 termhooks.h, and ccl.h.
5951 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5952 (intervals.o): Depend on systime.h and coding.h.
5953 (keyboard.o): Depend on composite.h and coding.h.
5954 (keymap.o): Depend on coding.h and frame.h.
5955 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5956 (macros.o): Depend on systime.h, coding.h, and composite.h.
5957 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5958 and atimer.h.
5959 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5960 dispextern.h explicitly.
0b5397c2
SM
5961 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5962 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
5963 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5964 (regex.o): Don't depend on charset.h.
5965 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5966 (search.o): Don't depend explicitly on composite.h.
5967 (sound.o): Depend on atimer.h and systime.h.
5968 (syntax.o): Don't depend explicitly on composite.h.
5969 (sysdep.o): Depend on coding.h and composite.h.
5970 (term.o): Depend on xterm.h and buffer.h.
5971 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5972 (textprop.o): Don't depend on dispextern.h explicitly.
5973 (undo.o): Depend on dispextern.h.
5974 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5975 dispextern.h and composite.h explicitly.
5976 (xdisp.o): Depend on ccl.h.
5977 (xfaces.o): Depend on coding.h and ccl.h.
5978 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5979 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5980 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5981 ftfont.h.
5982 (xgselect.o): New dependency.
5983 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5984 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5985 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5986 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5987 (xsmfns.o): Depend on frame.h and dispextern.h.
5988 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5989 sysselect.h.
5990
7a6f7fea
AS
59912009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5992
5993 * font.c (Fclear_font_cache): Pass correct cache argument to
5994 font_clear_cache.
5995
f4c21026
AS
59962009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5997
5998 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5999 twice.
6000
f7ab0997
CY
60012009-12-15 Chong Yidong <cyd@stupidchicken.com>
6002
6003 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6004 calling file-remote-p. Reported by Jim Meyering.
6005
fa8e045a
MA
60062009-12-15 Michael Albinus <michael.albinus@gmx.de>
6007
6008 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 6009 avoid compiler warnings. (Bug #5217)
fa8e045a 6010
a63dba42
KH
60112009-12-14 Kenichi Handa <handa@m17n.org>
6012
6013 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6014 in 8-bit encoding.
6015
5ce6e4f4 60162009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
6017
6018 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6019 tooltip windows.
6020
223e5fc6
JD
60212009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6022
36acb2a7
JD
6023 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6024 Xatom_net_window_type.
6025
6026 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6027 Xatom_net_window_type.
6028
b8f00677
JD
6029 * xterm.c (my_log_handler): New function.
6030 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 6031 so we can filter out buggy messages. (Bug #5120).
b8f00677 6032
e5f0bc9a
JD
6033 * xterm.c (xg_scroll_callback): Parameter list changed,
6034 use parameter GtkScrollType to determine scroll/line/page.
6035 Only allow dragging if a button < 4 is grabbed (bug #5177).
6036 (xg_end_scroll_callback): New function.
6037 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6038 xg_create_scroll_bar.
6039
6040 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6041 (scroll_end_callback): Remove.
6042 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6043 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 6044 bug #5177.
e5f0bc9a
JD
6045 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6046 bug #5177.
6047
6048 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6049 (xg_create_scroll_bar): Add GCallback end_callback.
6050
223e5fc6
JD
6051 * xftfont.c (QClcdfilter): New variable.
6052 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6053 (syms_of_xftfont): Initialize QClcdfilter.
6054
3c055b77
JD
60552009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6056
6057 * xsettings.c (struct xsettings): Add member seen.
6058 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 6059 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
6060 (apply_xft_settings): Only update Xft settings with what member seen
6061 indicates as new.
6062
05fe33ff
EZ
60632009-12-12 Eli Zaretskii <eliz@gnu.org>
6064
c4cc8b9a 6065 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
6066 (struct glyph): Use EMACS_INT for charpos.
6067 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6068 region_beg_charpos, region_end_charpos,
6069 redisplay_end_trigger_charpos, and also for
6070 iterator_stack_entry.end_charpos and
6071 iterator_stack_entry.stop_charpos.
6072
e8d7886a
JD
60732009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6074
5ce6e4f4 6075 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
6076 (xg_create_scroll_bar): Call scroll_end_callback on button release
6077 event (bug #5177).
6078 (xg_event_is_for_scrollbar): != replaced with ==.
6079
d0db2ec8
KH
60802009-12-12 Kenichi Handa <handa@m17n.org>
6081
6082 * ftfont.c (struct ftfont_info): New member matrix.
6083 (ftfont_open): Setup xftfont_info->matrix.
6084 (MFLTFontFT): New member matrix.
6085 (FLOOR, CEIL, ROUND): New macros.
6086 (ftfont_get_metrics): Handle matrix transformation.
6087 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6088
6089 * xftfont.c (struct xftfont_info): New member matrix.
6090 (xftfont_open): Setup xftfont_info->matrix.
6091
60922009-12-10 Kenichi Handa <handa@m17n.org>
6093
6094 * xdisp.c (append_space_for_newline): Consider face-remapping.
6095
2cc7b62f
AS
60962009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6097
b87dd913
AS
6098 * xsettings.c: Include "keyboard.h".
6099
eba5eb94
AS
6100 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6101
2cc7b62f
AS
6102 Fix implicit function declarations.
6103 * cmds.c: Include "frame.h".
6104 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6105 * frame.h: Move declaration of delete_frame outside of
6106 HAVE_WINDOW_SYSTEM.
6107
a4ef73c8
CY
61082009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6109
6110 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6111
6112 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6113 GTK builds.
6114
944a300c
AS
61152009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6116
6117 * unexelf.c (unexec): Don't search for .data twice.
6118
022eef62
CY
61192009-12-05 Chong Yidong <cyd@stupidchicken.com>
6120
426ac949
CY
6121 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6122 if push failed.
6123 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6124 of push_display_prop (Bug#5000).
6125
022eef62
CY
6126 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6127 value of font_list_entities (Bug#5085).
6128
be95bee9
JB
61292009-12-04 Juanma Barranquero <lekktu@gmail.com>
6130
6131 Fix `string-to-number' to deal consistently with integers and floats.
6132 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6133 trailing characters, not just whitespace.
6134 (read1): Pass new arg 0 to keep old behavior.
6135 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6136 trailing chars, as it is already done for integers. Doc fixes.
6137 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6138
24c2d7ce
EZ
61392009-12-04 Eli Zaretskii <eliz@gnu.org>
6140
0b5397c2
SM
6141 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6142 Delete unused enumeration value.
24c2d7ce 6143
7e694795
EZ
61442009-12-03 Eli Zaretskii <eliz@gnu.org>
6145
6146 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6147
84b31826
SM
61482009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6149
6150 * process.c (Fmake_network_process): Fix up the tests for
6151 "connectionless socket", so they DTRT for seqpacket sockets as well.
6152
f00c449b
SM
61532009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6154
6155 * process.c (Qseqpacket): New symbol.
6156 (HAVE_SEQPACKET): New macro.
6157 (Fmake_network_process): Accept new :type `seqpacket'.
6158 (init_process): Add `seqpacket' feature when applicable.
6159 (syms_of_process): Initialize Qseqpacket.
6160
8096a0ff
YM
61612009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6162
6163 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6164 if entity is Qnil.
6165
3e0de07f
SM
61662009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6167
6168 * print.c (print_preprocess): Preprocess the key_and_value table of
6169 hashtables, even tho they're "hidden" (bug#5082).
6170
abeafb2a
JD
61712009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6172
6173 * frame.c (frame_make_pointer_invisible)
6174 (frame_make_pointer_visible): Declare f before statements.
6175
4bf47195
EZ
61762009-11-28 Eli Zaretskii <eliz@gnu.org>
6177
6178 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6179 omitted dependencies on lisp.h.
6180
c525b3f2
JD
61812009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6182
ece2d4ed
JD
6183 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6184 is NULL.
6185
6186 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6187
6188 * frame.c (frame_make_pointer_invisible)
3e0de07f 6189 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
6190 frame.
6191
c525b3f2
JD
6192 * search.c (simple_search): Remove warning by making *p const.
6193
2f00e299
DN
61942009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6195
6196 * xdisp.c (power_letter): Remove duplicate const.
6197
084b049b
JD
61982009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6199
a1fadc6f
JD
6200 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6201
5ce6e4f4 6202 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
6203 defaults (bug #5025).
6204
28259cac
SM
62052009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6206
6207 * insdel.c (adjust_markers_for_delete): Move it in the
6208 right direction! (bug#4803)
6209
e8e14166
YM
62102009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6211
6212 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6213
6214 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6215
86677b58
GM
62162009-11-24 Glenn Morris <rgm@gnu.org>
6217
6218 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6219
581e51e8
JD
62202009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6221
cfc86c7a
JD
6222 * Makefile.in: Must create deps for ecrt0.o in its rule.
6223
581e51e8
JD
6224 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6225 because that is what Gtk+ font dialog understands.
6226
6227 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6228 of Fcopy_sequence.
6229 (font_open_by_name): Put name given into QCname for font-object returned.
6230
6231 * frame.c (x_set_font): Save original font name as frame parameter
6232 font-parameter.
6233
6234 * xsettings.c (set_default_xft_settings): New function.
6235 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6236 is found.
6237
8b264ecb
AS
62382009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6239
6240 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6241 searching backwards through multibyte buffer.
6242
872870b2
JD
62432009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6244
6245 * xterm.c: #include xgselect.h.
6246 (x_initialize): Call xgselect_initialize.
6247
6248 * xsettings.c (something_changedCB): C++ comments => C comments.
6249 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6250 does that now.
6251
6252 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6253 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6254 (scroll_bar_button_cb): Remove.
5ce6e4f4 6255 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
6256 event.
6257 (xg_create_scroll_bar): Don't bind button-press-event and
6258 button-release-event.
6259
6260 * process.c: Include xgselect.h if defined (USE_GTK) ||
6261 defined (HAVE_GCONF).
6262 (wait_reading_process_output): Call xg_select for the same condition.
6263
6264 * xgselect.c (xg_select): New function to better integrate with
6265 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6266
6267 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6268
6269 * Makefile.in (XOBJ): Add xgselect.o.
6270
62a6e103
AS
62712009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6272
0b5397c2
SM
6273 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6274 Remove ignored second argument. All callers changed.
62a6e103
AS
6275 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6276 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6277 * xdisp.c (string_char_and_length): Likewise.
6278
b0ca0f33
DN
62792009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6280
6281 * xterm.c (x_new_font):
6282 * print.c (print_object):
6283 * cmds.c (Fself_insert_command): Move declarations before statements.
6284
dd5a6279
CY
62852009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6286
6287 * s/cygwin.h: Remove unneeded linker flags.
6288
4a8e097d
JD
62892009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6290
0d1d0d26
JD
6291 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6292
6293 * xsettings.h: Declare xsettings_get_system_font.
6294
6295 * xsettings.c (xsettings_get_system_font): New function.
6296 (init_gconf): No use initiating gconf unless we have Xft also.
6297 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6298 HAVE_GCONF.
6299
4a8e097d
JD
6300 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6301 add a blank entry so it doesn't collapse into nothing.
6302
8ab1650e
SM
63032009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6304
6305 * lread.c (Funintern): Comment out last change.
6306
82c602f0
RS
63072009-11-19 Richard Stallman <rms@gnu.org>
6308
6309 * lread.c (Funintern): Error if symbol is t or nil.
6310
87e32266
SM
63112009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6312
6313 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6314 representation of Lisp integers.
6315 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6316
1b9ac145
AS
63172009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6318
6319 * lisp.h: Remove declaration of Ffont_get_system_font.
6320 * xfns.c: Move include of "xsettings.h".
6321 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6322
dfb3c4c6
JD
63232009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6324
87e32266
SM
6325 * xsettings.c (something_changedCB, Ffont_get_system_font):
6326 Check use_system_font.
dfb3c4c6
JD
6327 (syms_of_xsettings): DEFVAR font-use-system-font.
6328
9370c1d8
AS
63292009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6330
25fe851a
AS
6331 * xfns.c (x_default_font_parameter): Remove dead assignment.
6332
9370c1d8
AS
6333 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6334
637fa988
JD
63352009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6336
87e32266 6337 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 6338 not have FC_LCD_*. #define them if not there.
a6eb20d8 6339
87e32266 6340 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 6341
637fa988
JD
6342 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6343
6344 * xterm.c (handle_one_xevent): Call xft_settings_event for
6345 ClientMessage, PropertyNotify and DestroyNotify.
6346 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6347 Call xsettings_initialize.
6348
6349 * xftfont.c (xftfont_fix_match): New function.
6350 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6351 Call xftfont_fix_match after XftFontMatch.
6352
6353 * xfont.c (xfont_driver): Initialize all members.
6354
87e32266
SM
6355 * xfns.c (x_default_font_parameter):
6356 Try font from Ffont_get_system_font.
637fa988
JD
6357 Do not get font from x_default_parameter if we got one from
6358 Ffont_get_system_font.
87e32266 6359 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
6360
6361 * w32font.c (w32font_driver): Initialize all members.
6362
6363 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6364
6365 * lisp.h: Declare syms_of_xsettings.
6366
87e32266
SM
6367 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6368 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
6369
6370 * ftfont.c (ftfont_filter_properties): New function.
6371
6372 * frame.c (x_set_font): Remove unused variable lval.
6373
87e32266 6374 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
6375
6376 * font.c (font_put_extra): Don't return if val is nil, it means
6377 boolean option is off.
6378 (font_parse_fcname): Collect all extra properties in extra_props
6379 and call filter_properties for all drivers with extra_props and
6380 font as parameter.
87e32266
SM
6381 (font_open_entity): Do not use cache, it does not pick up new
6382 fontconfig settings like hinting.
637fa988
JD
6383 (font_load_for_lface): If spec had a name in it, store it in entity.
6384
a73f9c9d 6385 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
6386
6387 * config.in: HAVE_GCONF is new.
6388
6389 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6390 xsettings.o is new.
6391
5a942932
KH
63922009-11-17 Kenichi Handa <handa@m17n.org>
6393
6394 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6395 back to the default font in case that no suitable font is found.
6396
b7c7a4d1
SM
63972009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6398
6399 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6400 Suggested by Chad Brown <yandros@mit.edu>.
6401 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6402
072f1e39
JD
64032009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6404
6405 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6406
5d1e70a2
AS
64072009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6408
87e32266 6409 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 6410
a53cfbe5
JD
64112009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6412
473a99b7
JD
6413 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6414 has a parent.
6415
a53cfbe5 6416 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 6417 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
6418
6419 * config.in: Generated (AUTO_DEPEND).
6420
f04bb9b2
MA
64212009-11-13 Michael Albinus <michael.albinus@gmx.de>
6422
b7c7a4d1 6423 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
6424 Vdbus_registered_functions_table, because it contains also
6425 properties. Fix docstring.
b7c7a4d1 6426 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 6427
8f11f7ec
SM
64282009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6429
6430 * alloc.c (mark_object): Don't reprocess marked strings.
6431 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6432 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6433
8a605fe8
KH
64342009-11-13 Kenichi Handa <handa@m17n.org>
6435
8f11f7ec 6436 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
6437 semantics of Vword_combining_categories.
6438 (Vword_combining_categories): Describe the slight change of the
6439 semantics.
6440
241c4680
EZ
64412009-11-13 Eli Zaretskii <eliz@gnu.org>
6442
6443 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6444
6445 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6446
5d58e44c
SM
64472009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6448
6449 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6450
5e13f9d3
JB
64512009-11-12 Juanma Barranquero <lekktu@gmail.com>
6452
6453 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6454
cf54c754
DR
64552009-11-11 David Reitter <david.reitter@gmail.com>
6456
6457 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6458 variables to fix 2009-11-09 change.
6459
a4ada374
DN
64602009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6461
91433552
DN
6462 * process.c (ifflag_def): Make flag_sym constant.
6463 (Fnetwork_interface_info): Use a constant pointer.
6464 (ifflag_table):
6465 * xfns.c (cursor_bits):
6466 * xdisp.c (power_letter):
6467 * termcap.c (speeds, esctab):
6468 * sysdep.c (baud_convert):
6469 * keyboard.c (lispy_accent_codes, modifier_names):
6470 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6471 (jpeg_format, tiff_format, gif_format, svg_format)
6472 (interlace_start, interlace_increment, gs_format):
6473 * gtkutil.c (separator_names):
6474 * fringe.c (swap_nibble):
6475 * fns.c (base64_value_to_char, base64_char_to_value):
6476 * fileio.c (make_temp_name_tbl):
6477 * coding.c (suffixes): Make constant.
6478
f4265f6c
DN
6479 * frame.c (make_initial_frame):
6480 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6481 build_string.
6482 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6483
04420943
DN
6484 * s/freebsd.h:
6485 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6486
0a5d24ae
DN
6487 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6488 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6489
a4ada374
DN
6490 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6491 * xterm.c (syms_of_xterm):
6492 * xfaces.c (syms_of_xfaces):
6493 * xdisp.c (syms_of_xdisp):
6494 * lread.c (syms_of_lread):
6495 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6496 build_string.
91433552 6497
a4ada374
DN
6498 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6499
af98fc7f
SM
65002009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6501
8ab1650e 6502 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 6503
e90292a9
JD
65042009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6505
6506 * keyboard.h: Declare timer_check.
6507
6508 * keyboard.c (timer_check_2): New function that does what the old
6509 timer_check did.
6510 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6511 returned, i.e. don't return -1 with timers pending.
6512
6513 * process.c: Remove extern declaration of timer_check.
6514
6515 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6516 even if timer_check returned -1.
6517
af98fc7f
SM
6518 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6519 xg_dialog_data.
e90292a9
JD
6520 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6521 the event loop.
6522 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6523 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6524 Destroy the dialog after xg_dialog_run.
6525
045b83c0
SM
65262009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6527
6528 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6529
1fb99a3a
JD
65302009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6531
6532 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6533
04e452cb
JB
65342009-11-09 Juanma Barranquero <lekktu@gmail.com>
6535
6536 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6537
ef7417fd
SM
65382009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6539
6540 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6541 w32menu.c, and nsmenu.m.
6542 Simplify the obsolete case where position is nil.
6543 (cleanup_popup_menu): New function, moved from nsmenu.m.
6544 (struct skp): Remove slot `notreal'.
6545 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6546 adjust callers.
6547 (single_menu_item): Adjust call to parse_menu_item.
6548 (syms_of_menu): Defsubr x-popup-menu.
6549 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6550 (keymap_panes): Don't export any more.
6551 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6552 (xmenu_show): Declare.
6553 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6554 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6555 * keyboard.h (parse_menu_item): Update declaration.
6556 * xmenu.c (Fx_popup_menu): Remove.
6557 (syms_of_xmenu): Don't defsubr x-popup-menu.
6558 * w32menu.c (Fx_popup_menu): Remove.
6559 (syms_of_w32menu): Don't defsubr x-popup-menu.
6560 * nsmenu.m (cleanup_popup_menu): Remove.
6561 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6562 moved to menu.c's Fx_popup_menu.
6563 (Fx_popup_menu): Remove.
6564 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6565 menu_items (it's done in menu.c already).
6566
424d6179
SM
65672009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6568
6569 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6570 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6571
c0df13a6 65722009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
6573
6574 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 6575 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
6576 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6577 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6578
2de9f71c
SM
65792009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6580
6581 Let integers use up 2 tags to give them one extra bit and thus double
6582 their range.
6583 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6584 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6585 New macros.
6586 (enum Lisp_Type): Use them. Give explicit values.
6587 (Lisp_Type_Limit): Remove.
6588 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6589 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6590 Pay attention to USE_2_TAGS_FOR_INTS.
6591 (INTEGERP): Use LISP_INT_TAG_P.
6592 * fns.c (internal_equal): Simplify the default case.
6593 (sxhash): Use case_Lisp_Int.
6594 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6595 any more.
6596 (Ftype_of): Use case_Lisp_Int.
6597 (store_symval_forwarding): Take into account the fact that Ints can
6598 now have more than one tag.
6599 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 6600 (buffer_slot_type_mismatch):
2de9f71c
SM
6601 * xfaces.c (face_attr_equal_p):
6602 * print.c (print_object):
6603 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6604 Use case_Lisp_Int.
6605
323637a2
EZ
66062009-11-06 Eli Zaretskii <eliz@gnu.org>
6607
7ac65b38
EZ
6608 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6609
323637a2
EZ
6610 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6611 warning.
6612
e511451f
JD
66132009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6614
6615 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6616
6617 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6618
6619 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6620 ButtonPressRelease and MotionNotify (bug#4870).
6621
5e2327cf
DN
66222009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6623
5adc433e
DN
6624 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6625
d67b4f80
DN
6626 * xterm.c (syms_of_xterm):
6627 * xselect.c (syms_of_xselect):
6628 * xmenu.c (syms_of_xmenu):
6629 * xfns.c (syms_of_xfns):
6630 * xfaces.c (syms_of_xfaces):
6631 * xdisp.c (syms_of_xdisp):
6632 * window.c (syms_of_window):
6633 * w32fns.c (syms_of_w32fns):
6634 * undo.c (syms_of_undo):
6635 * textprop.c (syms_of_textprop):
6636 * terminal.c (syms_of_terminal):
6637 * syntax.c (syms_of_syntax):
6638 * sound.c (syms_of_sound):
6639 * search.c (syms_of_search):
6640 * print.c (syms_of_print):
6641 * minibuf.c (syms_of_minibuf):
6642 * macros.c (syms_of_macros):
6643 * keymap.c (syms_of_keymap, initial_define_key)
6644 (initial_define_lispy_key):
6645 * keyboard.c (syms_of_keyboard):
6646 * insdel.c (syms_of_insdel):
6647 * image.c (syms_of_image):
6648 * fringe.c (syms_of_fringe):
6649 * frame.c (syms_of_frame):
6650 * fontset.c (syms_of_fontset):
6651 * fns.c (syms_of_fns):
6652 * fns.c (syms_of_fns):
6653 * fileio.c (syms_of_fileio):
6654 * fileio.c (syms_of_fileio):
6655 * eval.c (syms_of_eval):
6656 * doc.c (syms_of_doc):
6657 * dispnew.c (syms_of_display):
6658 * dired.c (syms_of_dired):
6659 * dbusbind.c (syms_of_dbusbind):
6660 * data.c (syms_of_data):
6661 * composite.c (syms_of_composite):
6662 * coding.c (syms_of_coding):
6663 * cmds.c (syms_of_cmds):
6664 * charset.c (define_charset_internal, syms_of_character):
6665 * ccl.c (syms_of_ccl):
6666 * category.c (syms_of_category, init_category_once):
6667 * casetab.c (syms_of_casetab):
6668 * casefiddle.c (syms_of_casefiddle):
6669 * callint.c (syms_of_callint):
6670 * bytecode.c (syms_of_bytecode):
6671 * buffer.c (keys_of_buffer, syms_of_buffer):
6672 * alloc.c (syms_of_alloc):
6673 * process.c (syms_of_process, init_process):
6674 * lread.c (syms_of_lread, init_obarray):
6675 * font.c (build_style_table):
6676 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6677 intern_c_string, calls to make_pure_string with
6678 make_pure_c_string. Use pure_cons instead of Fcons.
6679
5e2327cf
DN
6680 * process.c (socket_options): Make it const.
6681 (set_socket_option, init_process): Use a const pointer.
6682
6683 * lread.c (intern_c_string): New function.
6684 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6685 (defvar_int): Uset it. Make the name const char*.
6686
6687 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6688 (defvar_int): Update prototypes.
6689 (DEFUN, EXFUN): Support for prototypes is now required.
6690 (intern_c_string): New prototype.
6691 (struct Lisp_Subr): Make symbol_name constant.
6692
6693 * font.c (struct table_entry): Remove unused member. Make NAMES
6694 constant.
6695 (weight_table, slant_table, width_table): Make constant.
6696
6697 * emacs.c (struct standard_args): Make name and longname constant.
6698
6699 * character.h (DEFSYM): Use intern_c_string.
6700
a56eaaef
DN
67012009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6702
6703 * alloc.c (make_pure_c_string): New function.
6704
6705 * eval.c (Fautoload): Purecopy all arguments.
6706
f6a07420
KH
67072009-11-05 Kenichi Handa <handa@m17n.org>
6708
6709 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6710 the buffer in case of replace.
6711
5d28d4b1
DN
67122009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6713
6714 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6715
b349d111
SM
67162009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6717
d528b1ce
SM
6718 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6719 when applicable (bug#4851).
6720
b349d111
SM
6721 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6722 (P_): Support for prototypes is now required.
6723
c38eb027
CY
67242009-10-31 Chong Yidong <cyd@stupidchicken.com>
6725
6726 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6727 (Bug#4827).
6728
0405f8d9
EZ
67292009-10-30 Eli Zaretskii <eliz@gnu.org>
6730
d528b1ce 6731 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 6732
ca0a881a
DN
67332009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6734
6735 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6736
d528b1ce
SM
6737 * lread.c (Fload): Purecopy the file name when building
6738 Vpreloaded_file_list.
ca0a881a 6739
47e0e0e4
JR
67402009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6741
6742 * w32fns.c (syms_of_w32fns): Change default value of
6743 w32-scroll-lock-modifier to nil. (Bug#2827)
6744
057bce6f
JB
67452009-10-26 Juanma Barranquero <lekktu@gmail.com>
6746
782a943e 6747 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 6748
242bc74c
AS
67492009-10-26 Andreas Schwab <schwab@redhat.com>
6750
6751 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6752
522d013a
JB
67532009-10-26 Juanma Barranquero <lekktu@gmail.com>
6754
6755 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6756 For delta < 0, skip check that only makes sense when the mini-window
6757 is going to be enlarged. (Bug#4534)
6758
18060980
CY
67592009-10-25 Chong Yidong <cyd@stupidchicken.com>
6760
6761 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6762 string in menu maps (Bug#4471).
6763
fec8f0fe
CY
67642009-10-24 Chong Yidong <cyd@stupidchicken.com>
6765
6766 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6767 FRAME_NS_VIEW on terminal frames (Bug#4765).
6768
10d66ec0
AS
67692009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6770
1cae01f7
AS
6771 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6772 DBUS_TYPE_UINTnn separately to get proper sign extension.
6773
58a12889
AS
6774 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6775 can properly handle unsigned types.
d528b1ce 6776 (make_uid, make_gid): Remove.
58a12889 6777
987c9327
AS
6778 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6779 types again.
6780
522d013a 6781 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
6782 (system_process_attributes): Likewise.
6783
905a9ed3
DN
67842009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6785
6786 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6787
6788 * eval.c (Fautoload): Purecopy the filename. Simplify.
6789
6790 * category.c (Fdefine_category): Purecopy docstring.
6791
a599b3e8
AS
67922009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6793
7b792fc9
AS
6794 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6795
a599b3e8
AS
6796 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6797
b35ac83e
CY
67982009-10-23 Chong Yidong <cyd@stupidchicken.com>
6799
6800 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6801 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6802 (Bug#4775).
6803
e8903e00
SM
68042009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6805
6806 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6807 (init_fileio_once):
6808 * lisp.h (init_fileio_once): Remove.
6809 * emacs.c (main): Don't call init_fileio_once.
6810
8f43cbf3
DN
68112009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6812
6813 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6814
26898943
AS
68152009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6816
6817 * doprnt.c (doprnt): Fix overflow check.
6818
5c646d5a
JD
68192009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6820
3132a7ea
JD
6821 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6822
5c646d5a
JD
6823 * xterm.h (x_wait_for_event): Declare it.
6824
6825 * xterm.c (pending_event_wait): New variable.
6826 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6827 see pending_event_wait.eventtype.
6828 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
6829 (x_new_font): Call change_frame_size with new rows/columns before we
6830 try to resize the frame.
5c646d5a 6831 (x_wait_for_event): New function.
d528b1ce
SM
6832 (x_set_window_size_1): Don't change gravity unless change_gravity
6833 is set.
5c646d5a
JD
6834 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6835 don't change frame size, instead wait for the ConfigureNotify.
6836 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6837 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6838 (x_initialize): Initialize pending_event_wait.
6839
6840 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6841 size.
6842
6843 * widget.c (EmacsFrameSetValues): Add comment.
6844 (EmacsFrameSetCharSize): Just call x_set_window_size.
6845
6846 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6847 x_wait_for_event.
d528b1ce 6848 (flush_and_sync): Remove again.
5c646d5a
JD
6849 (xg_get_font_name): Suggest monospace if no previous font is known.
6850
e9c1637d
SM
68512009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6852
6853 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 6854 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 6855
5a72cccb
YM
68562009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6857
6858 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6859 processing pending events when event is filtered for input method.
ab04798f 6860 (Bug#3681)
5a72cccb 6861
2629aa37
JB
68622009-10-20 Juanma Barranquero <lekktu@gmail.com>
6863
6864 * fns.c: Add #endif accidentally removed in previous change.
6865
c3417a74
DN
68662009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6867
6868 * fns.c: Remove code for unsupported system: MAC_OS.
6869 * image.c: Likewise. Include setjmp.h.
6870
9685cef2
JD
68712009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6872
6873 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6874 pixel -1 (bug #4742).
6875
d7306fe6
DN
68762009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6877
019d2c4c
DN
6878 * process.c (create_pty): Remove conditionals for no longer
6879 supported systems: UNIPLUS and RTU.
6880
ee6bacd4
DN
6881 * xterm.c:
6882 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6883
d7306fe6
DN
6884 * alloc.c: Do not define struct catchtag.
6885 * eval.c: Move struct catchtag definition ...
6886 * lisp.h: ... here.
6887
6888 * image.c: Move png.h #include earlier to avoid warnings.
6889
6890 * xterm.c:
6891 * xsmfns.c:
6892 * xselect.c:
6893 * xrdb.c:
6894 * xmenu.c:
6895 * xftfont.c:
6896 * xfont.c:
6897 * xfns.c:
6898 * xfaces.c:
6899 * xdisp.c:
6900 * window.c:
6901 * widget.c:
6902 * w32xfns.c:
6903 * w32uniscribe.c:
6904 * w32term.c:
6905 * w32select.c:
6906 * w32reg.c:
6907 * w32proc.c:
6908 * w32menu.c:
6909 * w32inevt.c:
6910 * w32heap.c:
6911 * w32font.c:
6912 * w32fns.c:
6913 * w32console.c:
6914 * w32.c:
6915 * w16select.c:
6916 * vm-limit.c:
6917 * unexsol.c:
6918 * unexec.c:
6919 * unexcw.c:
6920 * unexaix.c:
6921 * undo.c:
6922 * tparam.c:
6923 * textprop.c:
6924 * terminfo.c:
6925 * terminal.c:
6926 * termcap.c:
6927 * term.c:
6928 * syntax.c:
6929 * sound.c:
6930 * sheap.c:
6931 * search.c:
6932 * scroll.c:
6933 * region-cache.c:
6934 * regex.c:
6935 * ralloc.c:
6936 * process.c:
6937 * print.c:
b024548b
DN
6938 * nsterm.m:
6939 * nsselect.m:
6940 * nsmenu.m:
6941 * nsimage.m:
6942 * nsfont.m:
6943 * nsfns.m:
d7306fe6
DN
6944 * msdos.c:
6945 * minibuf.c:
6946 * menu.c:
6947 * marker.c:
6948 * macros.c:
6949 * keymap.c:
6950 * keyboard.c:
6951 * intervals.c:
6952 * insdel.c:
6953 * indent.c:
6954 * gtkutil.c:
6955 * ftxfont.c:
6956 * ftfont.c:
6957 * fringe.c:
6958 * frame.c:
6959 * fontset.c:
6960 * font.c:
6961 * fns.c:
6962 * floatfns.c:
6963 * filelock.c:
6964 * fileio.c:
6965 * emacs.c:
6966 * editfns.c:
6967 * dosfns.c:
6968 * doprnt.c:
6969 * doc.c:
6970 * dispnew.c:
6971 * dired.c:
6972 * dbusbind.c:
6973 * data.c:
6974 * composite.c:
6975 * coding.c:
6976 * cmds.c:
6977 * cm.c:
6978 * chartab.c:
6979 * charset.c:
6980 * character.c:
6981 * ccl.c:
6982 * category.c:
6983 * casetab.c:
6984 * casefiddle.c:
6985 * callproc.c:
6986 * callint.c:
6987 * bytecode.c:
6988 * buffer.c:
6989 * atimer.c: Include setjmp.h. (Bug#4643)
6990
fd5f21e6
SM
69912009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6992
4c0354d7
SM
6993 Remove leftover table unibyte_to_multibyte_table.
6994 * character.c (unibyte_to_multibyte_table): Remove.
6995 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6996 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6997 * character.h (UNIBYTE_TO_CHAR): New macro.
6998 (MAKE_CHAR_MULTIBYTE): Use it.
6999 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7000 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7001 (message_dolog, set_message_1):
7002 * search.c (Freplace_match):
7003 * editfns.c (Fcompare_buffer_substrings):
7004 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7005 (concat):
7006 * insdel.c (copy_text, count_size_as_multibyte):
7007 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7008 * term.c (produce_glyphs):
7009 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7010 * regex.c (RE_CHAR_TO_MULTIBYTE):
7011 * cmds.c (internal_self_insert):
7012 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7013
fd5f21e6
SM
7014 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7015
4418646e
DN
70162009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7017
7018 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7019
35f5c1d2
JB
70202009-10-16 Juanma Barranquero <lekktu@gmail.com>
7021
7022 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7023
a0cd8f6b
AR
70242009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7025
7026 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7027 still needed under Tiger.
7028
7029 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7030
7031 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7032 __Apple__.
7033
7034 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7035
01a8d3fa
KH
70362009-10-15 Kenichi Handa <handa@m17n.org>
7037
7038 * print.c (print_object): Escape a symbol like "2E10" too.
7039
bf6c75c9 70402009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
7041
7042 Cleanups and changes for 64-bit compile under Snow Leopard.
7043 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
7044
7045 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7046
c5959062 7047 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
7048 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7049 cast argument.
7050 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 7051 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
7052
7053 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7054
7055 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7056 where appropriate.
7057
7058 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7059 where appropriate.
6e4780c5
JB
7060 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7061 Use stringWithUTF8String.
bf6c75c9
AR
7062 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7063
6e4780c5
JB
7064 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7065 Add formal protocol mention to inheritance.
bf6c75c9
AR
7066 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7067
6e4780c5
JB
7068 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7069 Fix printf format.
bf6c75c9
AR
7070 (ns_query_color): Use CGFloat where appropriate.
7071 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 7072 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
7073 argument.
7074
3d87f118
AR
7075 * config.in (NS_HAVE_NSINTEGER): Drop.
7076
a95c8102
AR
7077 * dbusbind.c (dbus-method-return-internal)
7078 (dbus-method-error-internal): Use long format in printf, and cast
7079 argument.
7080
7081 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7082 in printf, and cast argument.
7083
6873acca 7084 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
7085 cast argument.
7086
9ec6f100
GM
70872009-10-11 Glenn Morris <rgm@gnu.org>
7088
7089 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7090
5be883cd
JD
70912009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7092
7093 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7094 menu bar with a small width so it doesn't enlarge the frame.
7095
d7a39b51
JB
70962009-10-08 Juanma Barranquero <lekktu@gmail.com>
7097
7098 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7099
0c2b6f8e
GM
71002009-10-06 Glenn Morris <rgm@gnu.org>
7101
7102 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7103 SOME_MACHINE_LISP (this enters indirectly via DOC).
7104
e02131a2
EZ
71052009-10-05 Eli Zaretskii <eliz@gnu.org>
7106
7107 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7108
b4744254
EZ
71092009-10-04 Eli Zaretskii <eliz@gnu.org>
7110
7111 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7112 Doc fix.
7113
dbf64827
JB
71142009-10-03 Martin Rudalics <rudalics@gmx.at>
7115
7116 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7117
e9a0aef8
MA
71182009-10-02 Michael Albinus <michael.albinus@gmx.de>
7119
d528b1ce 7120 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
7121 used anymore outside fileio.c.
7122
7123 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7124
64eb2b56
JB
71252009-10-01 Juanma Barranquero <lekktu@gmail.com>
7126
7127 * lisp.h (Qdelete_directory_internal):
7128 Declare, instead of Qdelete_directory.
7129
7130 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7131
9d28c33e
SM
71322009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7133
7134 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7135
9d8f3bd9
MA
71362009-10-01 Michael Albinus <michael.albinus@gmx.de>
7137
9d28c33e 7138 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
7139 Fdelete_directory. It is not a command anymore. It has no file
7140 name handler.
7141
9694740b
SM
71422009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7143
7144 * xdisp.c (get_next_display_element): Use an enum in last change.
7145
748e162f
KH
71462009-09-28 Kenichi Handa <handa@m17n.org>
7147
9694740b 7148 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
7149 unibyte_display_via_language_environment in handling
7150 Vnobreak_char_display.
7151
17efd58d
AR
71522009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7153
7154 * nsterm.h (ns_app_name): New extern variable.
7155
7156 * nsterm.m (ns_app_name): New variable.
7157 (ns_term_init): Set and use it.
7158 (ns_term_shutdown): Use it.
7159
7160 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7161 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7162
7163 * nsfns.m (ns_set_name_iconic, ns_set_name)
7164 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7165 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7166
9694740b
SM
7167 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7168 Remove double-casting in client_data comparison.
31c2d412 7169
3208cb35
YM
71702009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7171
7172 * keyboard.c (make_lispy_event): Remember last wheel direction.
7173 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7174
b7d552d6
GM
71752009-09-26 Glenn Morris <rgm@gnu.org>
7176
7177 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7178 internal.elc. Add term/pc-win.elc.
7179 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7180 term/x-win.elc.
7181 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7182 term/w32-win.elc.
7183 (NS_SUPPORT): New.
7184 (lisp): Add NS_SUPPORT.
7185 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7186
4ff670a8
DR
71872009-09-25 David Reitter <david.reitter@gmail.com>
7188
7189 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7190 on Mac OS X 10.6+ (bug#4513).
7191
feabfb6c
JB
71922009-09-24 Juanma Barranquero <lekktu@gmail.com>
7193
7194 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
7195 some parts of Emacs code (like font selection) don't grok them.
7196 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 7197
de59072a
AS
71982009-09-24 Andreas Schwab <schwab@redhat.com>
7199
7200 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7201
a489517b
JB
72022009-09-24 Juanma Barranquero <lekktu@gmail.com>
7203
7204 * dired.c (Fdirectory_files): Fix typo in docstring.
7205
0592970c
AR
72062009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7207
7208 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7209 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7210 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7211 under GNUstep.
7212 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7213
7214 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7215 glyph advancement.
7216
48e8a88b
AR
72172009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7218
7219 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 7220 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
7221
7222 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7223 deleted (bug #4492).
7224
e14f0a78
AR
7225 * nsfont.m (Vns_reg_to_script): New lisp variable.
7226 (syms_of_nsfont): Declare it.
7227 (ns_registry_to_script): New function.
7228 (ns_get_req_script): Call it.
7229 (ns_findfonts): Don't give up on non-unicode registry.
7230
7231 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7232
5b650faa
SM
72332009-09-20 Tom Tromey <tromey@redhat.com>
7234
7235 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7236 batch mode (bug#4228).
7237
a489517b 72382009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
7239
7240 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 7241 carefully. (Bug #4339)
0bae4e09 7242
fcfe06f3
CY
72432009-09-18 Chong Yidong <cyd@stupidchicken.com>
7244
d798ba87 7245 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 7246
31642728
AR
72472009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7248
7249 * emacs.c (inhibit_x_resources): Update doc string for NS.
7250 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 7251 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
7252
7253 * nsterm.h (ns_no_defaults): Remove.
7254
7255 * nsterm.m (ns_no_defaults): Remove.
7256 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7257 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
7258 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7259 don't update the NSWindow itself.
7260 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 7261 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
7262
7263 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7264 ns_use_qd_smoothing.
7265
7266 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7267 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 7268 (x-close-connection): Drop PSFlush() under OS X.
a489517b 7269 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 7270
8686ac71
JB
72712009-09-17 Juanma Barranquero <lekktu@gmail.com>
7272
7273 * emacs.c (inhibit_x_resources): New variable.
7274 (main) [HAVE_NS]: Don't process --quick command line option.
7275 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7276
7277 * lisp.h (inhibit_x_resources): Declare it extern.
7278
7279 * w32reg.c (x_get_string_resource):
7280 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7281
e227ba05
EZ
72822009-09-17 Eli Zaretskii <eliz@gnu.org>
7283
362654a6
JB
7284 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7285 Add lisp/term/internal.elc.
e227ba05 7286
742d40e8
SM
72872009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7288
7289 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7290 (bug#4461).
7291
005bd5a2
DN
72922009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7293
7294 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7295
7296 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7297 (OBJECTS_MACHINE): Remove, unused.
7298
f9af9719
SM
72992009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7300
7301 * frame.c (x_get_resource_string): Remove unused.
7302
0307c7d2
JD
73032009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7304
7305 * xterm.c (x_new_font): Call change_frame_size before calling
7306 x_set_window_size, in case frame size won't change.
7307
7308 * frame.c (x_set_font): Remove dead code.
7309
428b13d6
SM
73102009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7311
7312 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7313
5766c380
SM
73142009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7315
7316 * lread.c (Fload): Don't output a message after loading an obsolete
7317 package any more (done in Lisp now).
7318
2fd0161b
CY
73192009-09-12 Chong Yidong <cyd@stupidchicken.com>
7320
7321 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7322
bc5e75b6
SM
73232009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7324
7325 * keymap.c (Fwhere_is_internal): Use nconc2.
7326
c31c985e
AM
73272009-09-11 Alan Mackenzie <acm@muc.de>
7328
7329 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7330 batch mode.
7331
78012bd2
AS
73322009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7333
7334 * xdisp.c (display_mode_element): Detect cycles.
7335
9d889332
SM
73362009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7337
7338 * keymap.c (where_is_internal): Don't erroneously return nil right after
7339 filling the cache.
7340 (where_is_internal_1): Fix up typo.
7341
7ab5d780
GM
73422009-09-11 Glenn Morris <rgm@gnu.org>
7343
7344 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7345 share a common doc-string.
7346
5238a749
SM
73472009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7348
66d77eda
SM
7349 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7350 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7351
5238a749
SM
7352 * keymap.c (QCadvertised_binding): New constant.
7353 (syms_of_keymap): Initialize it.
7354 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7355 if applicable.
7356
19f48442
SM
73572009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7358
50d4ba39
SM
7359 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7360 (parse_menu_item): Streamline since bindings are recomputed all the
7361 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7362 more and don't support lmenu's menu-alias any more either.
7363
a88a5372
SM
7364 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7365 (where_is_internal): Strip it down to only traverse the keymaps.
7366 Move the cache handling from Fwhere_is_internal to here.
7367 (Fwhere_is_internal): Move the handling of remapping and the choice of
7368 the best binding from where_is_internal to here.
7369 Unify the cached/noncached paths, so remapping is also handled
7370 correctly when the cache is used, and so the cache can be used to
7371 speed up remap-handling when applicable.
7372 Give preference to non-remapped bindings.
7373 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7374 non-remapped bindings.
7375 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7376 command remapping.
7377
19f48442
SM
7378 * xdisp.c (display_mode_element): Move list length limit from 50 to
7379 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7380
599498c3 73812009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
7382
7383 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7384
f9b7b5ac
SM
73852009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7386
a53af587
JB
7387 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7388 (Bug#4334)
7389
f9b7b5ac
SM
7390 * keymap.c (where_is_internal): Filter out shadowed remappings.
7391 Assume that where_is_internal returns unshadowed bindings to simplify
7392 the code and get rid of the gotos. Use ASIZE.
7393
04f4b72d
JD
73942009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7395
4da146f2
JD
7396 * xterm.c (x_focus_changed): If we get a focusout and pointer
7397 is invisible, make it visible.
7398
04f4b72d
JD
7399 * xterm.h: Remove condition for declaration of
7400 x_*_window_to_frame.
7401
7cef7ce3
SM
74022009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7403
7404 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7405 initial terminal as well.
7406
a54fa5b7
JD
74072009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7408
7409 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 7410 x_menubar_window_to_frame.
a54fa5b7 7411
50426a04 7412 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
7413 (XTmouse_position): Do not return valid positions
7414 for clicks in the menubar and the toolbar for Gtk+.
7415
7416 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7417 if the widget for the event has the same top level as a frame,
7418 return the frame.
7419 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7420 internal windows, bug #4122.
7421 (x_non_menubar_window_to_frame): Remove.
7422
5a021dd0
GM
74232009-09-02 Glenn Morris <rgm@gnu.org>
7424
7425 * buffer.c (default-major-mode): Move most of the doc from here...
7426 (major-mode): ... to here.
7427
548fe2f3
NR
74282009-08-30 Nick Roberts <nickrob@snap.net.nz>
7429
7430 * process.c (wait_reading_process_output): Keep the descriptor
7431 when pty is used by a non-child process, e.g., in I/O buffer of
7432 GDB this allows inferior to be restarted.
7433
e0840eef
EZ
74342009-08-29 Eli Zaretskii <eliz@gnu.org>
7435
7436 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7437 both branches into one.
7438
82e98df4
SM
74392009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7440
7441 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7442 (main): Use enable-multibyte-characters rather than
7443 default-enable-multibyte-characters. Output a warning message when
7444 running a unibyte session.
7445
890617cb
YM
74462009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7447
7448 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7449 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7450 (copy_data_segment): Also copy __program_vars section.
7451 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7452 (dump_it) [LC_DYLD_INFO]: Use it.
7453
7454 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7455
e7adeadc
EZ
74562009-08-28 Eli Zaretskii <eliz@gnu.org>
7457
7458 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7459 $(SRC)/buildobj.h.
7460 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7461 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7462 $(SRC)/buildobj.h.
7463 (clean): Add buildobj.h.
7464
3ed8bbdc
TZ
74652009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7466
7467 * print.c (print_object): Set escapeflag to 1 when printing
7468 hashtable keys and values.
7469
155a6764
SM
74702009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7471
7472 * lread.c (read_integer): Use doubles (and potentially return a float
7473 number) as we do in string-to-number.
7474 (read1): Use strtol to read integers, signal errors on strtol's
7475 overflow and use floats if strtol's output is too large for
7476 Elisp integers.
7477
877610de
EZ
74782009-08-27 Eli Zaretskii <eliz@gnu.org>
7479
7480 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7481 (make-buildobj-SH): Fix last change.
7482 (SRC): Move to before where it's first used.
7483
ef73e7be
KH
74842009-08-27 Kenichi Handa <handa@m17n.org>
7485
550c8289
KH
7486 * process.c (send_process): Use encode_coding_object instead of
7487 encode_coding_string to perform eol-conversion even if the string
7488 is unibyte.
7489
60afa08d
KH
7490 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7491 character.
7492
ef73e7be 7493 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 7494 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 7495
7b3a82d7
DN
74962009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7497
5654bf63
DN
7498 * callproc.c (Fcall_process): Remove always true #if.
7499
7b3a82d7
DN
7500 * lisp.h: Replace #if 0 code for checking with text pointing to
7501 the --enable-checking configure flag.
7502
7503 * emacs.c (main): Mention the --enable-profiling configure flag
7504 instead of using CFLAGS.
7505
878bde49
KR
75062009-08-26 Ken Raeburn <raeburn@raeburn.org>
7507
7508 * Makefile.in (buildobj.h): New target.
7509 (doc.o): Depend on it.
7510 (temacs${EXEEXT}): Don't generate buildobj.lst.
7511 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7512 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7513 ($(BLD)/doc.$(O)): Depend on it.
7514 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7515 provided by Eli Zaretskii.)
7516 ($(TEMACS)): Don't generate buildobj.lst.
7517 * doc.c: Include buildobj.h.
7518 (buildobj): New static variable.
7519 (Fsnarf_documentation): Use it, instead of opening and reading
7520 buildobj.lst.
7521
1574224c
MA
75222009-08-25 Michael Albinus <michael.albinus@gmx.de>
7523
7524 * dbusbind.c (Fdbus_call_method)
7525 (Fdbus_call_method_asynchronously): Use English numeric format for
7526 timeout values in doc string.
7527
d9da2f45
KH
75282009-08-25 Kenichi Handa <handa@m17n.org>
7529
ef73e7be
KH
7530 * alloc.c (mark_char_table): New function.
7531 (mark_object): Use mark_char_table for a char-table.
7532
d9da2f45
KH
7533 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7534 (CHAR_TABLE_REF): Use it.
7535
c8edcc01
KR
75362009-08-23 Ken Raeburn <raeburn@raeburn.org>
7537
7538 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7539 before invoking the newly build emacs to check for load-path
7540 shadowing.
7541
7763401b
GM
75422009-08-22 Glenn Morris <rgm@gnu.org>
7543
7544 * Makefile.in (bootstrap_exe): New variable.
7545 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7546 Use ${bootstrap_exe}.
7547
729eadda
EZ
75482009-08-22 Eli Zaretskii <eliz@gnu.org>
7549
7550 * coding.h (encode_coding_string): Don't encode unibyte strings.
7551 (Bug#4047)
7552
eb4c6ace
MA
75532009-08-22 Michael Albinus <michael.albinus@gmx.de>
7554
7555 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7556
7557 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7558 intended as hotfix only.
7559 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7560
36e34d1b
AR
75612009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7562
7563 * nsterm.m (ns_get_color): Update documentation properly for last
7564 change, and clean up loose ends in the code left by it. Fix
7565 longstanding bug with 16-bit hex parsing, and add support for
7566 yet another X11 format (rgb:r/g/b) for compatibility.
7567 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7568 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7569
f983eb8a
SM
75702009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7571
7572 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7573
3f56d3c6
MA
75742009-08-20 Michael Albinus <michael.albinus@gmx.de>
7575
7576 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7577 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7578 (xd_initialize, xd_pending_messages): Check, whether
7579 $DBUS_SESSION_BUS_ADDRESS is set.
7580
fb641d68
YM
75812009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7582
7583 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7584
7585 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7586
cf59a374
GM
75872009-08-20 Glenn Morris <rgm@gnu.org>
7588
7589 * emacs.c (system-type): Doc fix.
7590
1373f3be
SM
75912009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7592
7593 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7594 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7595
058ed861
MA
75962009-08-18 Michael Albinus <michael.albinus@gmx.de>
7597
1373f3be
SM
7598 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7599 New functions.
058ed861
MA
7600 (xd_initialize): Revert change from 2009-08-16.
7601
563a866e 76022009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
7603
7604 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 7605 font-group vector, return nil.
5fc05db0 7606
e42bdf01
CY
76072009-08-17 Chong Yidong <cyd@stupidchicken.com>
7608
7609 * process.c (status_notify): Don't perform redisplay.
7610 (Fdelete_process, list_processes_1, process_send_signal):
7611 Expliticly perform redisplay.
7612 (wait_reading_process_output): Always check process status, but
7613 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7614
4230ab74
KR
76152009-08-17 Ken Raeburn <raeburn@raeburn.org>
7616
1373f3be 7617 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
7618 (XFLOAT_INIT): New macro for storing a float value.
7619 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7620 * fns.c (sxhash): Copy out the value of a float in order to
7621 examine its bytes.
7622 * dbusbind.c (xd_append_arg): Likewise.
7623
4230ab74
KR
7624 * emacs.c (main): Don't call syms_of_data twice.
7625
a0645cdd
MA
76262009-08-16 Michael Albinus <michael.albinus@gmx.de>
7627
7628 * dbusbind.c (xd_initialize): Add connection file descriptor to
7629 input_wait_mask, in order to let select() detect, whether a new
7630 message has been arrived.
ca4f31ea 7631 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 7632
485db0ba
MA
76332009-08-15 Michael Albinus <michael.albinus@gmx.de>
7634
1373f3be
SM
7635 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7636 New functions.
485db0ba
MA
7637
7638 * lisp.h (xd_pending_messages): Declare.
7639
7640 * keyboard.c (readable_events): Call xd_pending_messages.
7641
b5b98ff4
CY
76422009-08-15 Chong Yidong <cyd@stupidchicken.com>
7643
1373f3be 7644 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 7645
f8354c6e
CY
7646 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7647
b5b98ff4
CY
7648 * buffer.c (set_buffer_internal_1)
7649 (swap_out_buffer_local_variables): Check for unbound local
7650 variables (Bug#4138).
7651
8b9fc636
EZ
76522009-08-14 Eli Zaretskii <eliz@gnu.org>
7653
7654 * process.c (create_pty): Fix last change.
7655
ce959360
CY
76562009-08-13 Chong Yidong <cyd@stupidchicken.com>
7657
7658 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7659 (xbm_load_image): Caller changed.
64b807c9 7660 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 7661
c7baf7e9
NR
76622009-08-13 Nick Roberts <nickrob@snap.net.nz>
7663
7664 * process.c (create_pty): New function.
7665 (Fstart_process): Use it to allow Emacs to just associate a pty
7666 with the buffer. See associated change in gdb-mi.el.
7667 (list_processes_1): Deal with no program name.
7668 (start_process_unwind): Use pid == -2 to mean no process.
7669
1ac9108a
SM
76702009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7671
7672 * cmds.c (nonundocount): New global variable.
7673 (keys_of_cmds): Initialize it.
7674 (Fself_insert_command): Use it to combine upto 20 sequential chars
7675 into a single undo entry, just like the Qself_insert_command code in
7676 keyboard.c does.
7677 Call frame_make_pointer_invisible, also like the Qself_insert_command
7678 code in keyboard.c does.
7679 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7680 than its own local replacement for it.
7681
e267324c
KR
76822009-08-10 Ken Raeburn <raeburn@raeburn.org>
7683
1ac9108a 7684 * fns.c (concat): Don't re-set string length to its current value.
77437343 7685
1ac9108a
SM
7686 * coding.h (decode_coding_string, encode_coding_string):
7687 Use SBYTES macro.
f0bed503 7688
1ac9108a 7689 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
7690 (doprnt): Merge with doprnt1, discarding lispstrings code.
7691 * lisp.h (doprnt_lisp): Don't declare.
7692
416e006d
JL
76932009-08-07 Juri Linkov <juri@jurta.org>
7694
7695 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7696
6f7d5780
DN
76972009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7698
7699 * print.c (syms_of_print): Undo previous change.
7700
f19a0f5b
TZ
77012009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7702
7703 * lread.c (read1, syms_of_lread): Read hashtables back from the
7704 readable format.
7705
7706 * print.c (print_preprocess, print_object): Print hashtables fully
7707 and readably.
7708 (syms_of_print): Provide 'hashtable-print-readable.
7709
b9173dc2
AR
77102009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7711
7712 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7713 no family set.
7714 (nsfont_open): Handle case when entity has no family.
7715
1586503c
AR
77162009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7717
7718 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7719 element, not a list, for match case.
7720
087048cd
KH
77212009-07-28 Kenichi Handa <handa@m17n.org>
7722
7723 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7724 rigidly.
7725
7726 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7727 font_parse_xlfd. Check font properties more rigidly.
7728
780c2506
DN
77292009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7730
31fd7c5c
JB
7731 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7732 bsd-common.h.
780c2506 7733
a8c0cc18
KH
77342009-07-27 Kenichi Handa <handa@m17n.org>
7735
7736 * xfaces.c (face_with_height): Call font_clear_prop.
7737
4fbe2306
CY
77382009-07-26 Chong Yidong <cyd@stupidchicken.com>
7739
111d9af3
CY
7740 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7741
7742 * xterm.c (x_term_init): Use Qx.
7743
4fbe2306
CY
7744 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7745
1ac9108a 7746 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
7747 (ns_get_color): Revert 2009-07-16 change.
7748
beb0b7f9
EZ
77492009-07-25 Eli Zaretskii <eliz@gnu.org>
7750
7751 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 7752 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 7753
2baf5e76
KR
77542009-07-25 Ken Raeburn <raeburn@raeburn.org>
7755
1ac9108a
SM
7756 * coding.h (decode_coding_string, encode_coding_string):
7757 Use SCHARS macro.
8890e5f5 7758
2baf5e76 7759 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 7760 (load_depth): Delete.
2baf5e76
KR
7761 (Qload_in_progress): New variable.
7762 (load_unwind): Don't reference load_depth or load_in_progress.
7763 (Fload): Likewise; specbind Qload_in_progress instead.
7764 (init_lread): Don't initialize load_depth.
7765 (syms_of_lread): Initialize and protect Qload_in_progress.
7766
1395c6f5
AR
77672009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7768
7769 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7770
4e2f36cf
AR
77712009-07-23 Yavor Doganov <yavor@gnu.org>
7772
7773 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7774
5dd9a6f7
AR
77752009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7776
7777 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
7778 Bugs 3792, 3720, 2402.
7779 (ns_lookup_indexed_color): Check for bad index.
7780 (ns_index_color): Init unused slot to 0.
7781 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7782 Bug 3714, possibly 3082.
5dd9a6f7 7783
c902b920
JR
77842009-07-22 Jason Rumney <jasonr@gnu.org>
7785
1ac9108a
SM
7786 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7787 Position IME window at cursor (Bug#2570).
c902b920
JR
7788 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7789 (globals_of_w32fns): Dynamically load functions required above.
7790
7791 * w32term.c (w32_draw_window_cursor): Send message to reposition
7792 any IME window.
7793
090101cf
CY
77942009-07-21 Chong Yidong <cyd@stupidchicken.com>
7795
7796 * fileio.c: Revert 2009-07-16 changes.
7797 (Vauto_save_include_big_deletions): New variable.
7798 (Fdo_auto_save): Disable auto-save only if
7799 auto-save-include-big-deletions is nil.
7800
e6583e3d
CY
78012009-07-21 Chong Yidong <cyd@stupidchicken.com>
7802
7803 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7804 the overflowed pixels into account (Bug#3879).
7805
ece435a5
KR
78062009-07-21 Ken Raeburn <raeburn@raeburn.org>
7807
7808 * lread.c (load_depth): New variable.
7809 (Fload, load_unwind, init_lread): Set it to the load recursion
7810 depth; set load_in_progress as a simple boolean based on the
7811 current load_depth. (Bug#3892)
7812
40b2d973
AR
78132009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7814
7815 * nsfont.m (ns_has_attribute): Remove.
7816 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7817
10be7e0d
JL
78182009-07-18 Juri Linkov <juri@jurta.org>
7819
7820 * process.c (Fset_process_query_on_exit_flag): Mention killing
7821 a buffer in docstring.
7822
fa055055
KH
78232009-07-17 Kenichi Handa <handa@m17n.org>
7824
7825 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7826
042f7b69
YM
78272009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7828
7829 * nsfns.m (Fns_set_alpha): Remove function.
7830 (syms_of_nsfns): Don't defsubr it.
7831
7832 * nsterm.m (ns_get_color): Remove incompatible color formats.
7833 (ns_color_to_lisp): Generate #rrggbb color format string.
7834
4be941e3
RS
78352009-07-16 Richard Stallman <rms@gnu.org>
7836
7837 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7838 (Fset_buffer_auto_saved): Handle save_length = -2.
7839
4e6b227d
CY
78402009-07-16 Chong Yidong <cyd@stupidchicken.com>
7841
7842 * xterm.c (Qx_gtk_map_stock): New var.
7843
7844 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7845 of calling intern each time.
7846
a1856973
YM
78472009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7848
7849 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7850 does tiling.
7851
7852 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7853
497e54d8
KH
78542009-07-14 Kenichi Handa <handa@m17n.org>
7855
72d36834
KH
7856 * font.c (font_vconcat_entity_vectors): New function.
7857 (struct font_sort_data): New member font_driver_preference.
7858 (font_compare): Check font_driver_preference.
7859 (font_sort_entities): The format of the first argument changed.
7860 (font_delete_unmatched): Likewise.
7861 (font_list_entities): The return type changed.
7862 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
7863 (font_find_for_lface): Adjuste for the above changes.
7864 Don't suppress the checking of C even if the repertory supports it.
7865 (Flist_fonts): Adjust for the above changes.
72d36834 7866
1ac9108a
SM
7867 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7868 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
7869 Reject a font who has adstyle property that is different from a
7870 langname derived from registry property.
1ac9108a 7871 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 7872
b6046155
EZ
78732009-07-13 Eli Zaretskii <eliz@gnu.org>
7874
7875 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7876 local copy of dirfilename.
7877
fb6b6049
KH
78782009-07-13 Kenichi Handa <handa@m17n.org>
7879
e2402a5e
KH
7880 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7881 against max_char.
7882
fb6b6049
KH
7883 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7884 calling XSYMBOL (sym).
7885
65156807
EZ
78862009-07-11 Eli Zaretskii <eliz@gnu.org>
7887
1ac9108a
SM
7888 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7889 New function.
7890 (directory_files_internal) [WINDOWSNT]:
7891 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
7892 the filesystem of the directory is fast or slow.
7893
7894 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7895 file name.
7896 (is_slow_fs): New function.
7897 (stat): Use it to determine whether to issue more system calls to
7898 get accurate file attributes, when w32-get-true-file-attributes is
7899 `local'.
7900
e0ab5fcf
JD
79012009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7902
7903 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7904 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7905 parameter font-parameter as default to the font dialog.
7906
784ceded
KH
79072009-07-10 Kenichi Handa <handa@m17n.org>
7908
7909 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7910
fb8edc0b
EZ
79112009-07-09 Eli Zaretskii <eliz@gnu.org>
7912
1ac9108a 7913 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7914
fb8edc0b
EZ
7915 * w32.c (stat): Treat UNC file names as residing on remote
7916 drives. (Bug#3542)
7917
635c75b1
KH
79182009-07-09 Kenichi Handa <handa@m17n.org>
7919
7920 * fontset.c (fontset_find_font): Fix previous change.
7921
c1d5ce94
MA
79222009-07-08 Michael Albinus <michael.albinus@gmx.de>
7923
7924 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7925 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7926 error flag.
7927
edb61b39
KH
79282009-07-08 Kenichi Handa <handa@m17n.org>
7929
374bf7e4
KH
7930 * fontset.c (fontset_find_font): Fix the logic of handling
7931 charset_matched.
7932 (font_for_char): Delete unused var.
7933 (generate_ascii_font_name): Delete it.
7934
edb61b39
KH
7935 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7936
7937 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7938 (encode_coding_sjis): Fix the code range check.
7939
0f3f018c
CY
79402009-07-07 Chong Yidong <cyd@stupidchicken.com>
7941
7942 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7943 (Fexpand_file_name): Copy string data properly (Bug#3772).
7944
fcaf6f3a
JD
79452009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7946
7947 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7948 first MapNotify.
7949
6809ca75
KH
79502009-07-07 Kenichi Handa <handa@m17n.org>
7951
7952 * character.h (unibyte_has_multibyte_table): Delete extern.
7953 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7954
7955 * charset.c (Fset_charset_priority): Update charset_unibyte.
7956 (syms_of_charset): Initialize charset_unibyte.
7957
7958 * character.c (unibyte_has_multibyte_table): Delete it.
7959 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7960 charset_unibyte.
7961 (multibyte_char_to_unibyte_safe): Likewise.
7962 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7963
1ac9108a 7964 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
7965 (x_produce_glyphs): Likewise.
7966
7967 * .gdbinit (xcharset): Fix the treating $arg0.
7968
ad9e2d54
EZ
79692009-07-04 Eli Zaretskii <eliz@gnu.org>
7970
7971 Emulation of `getloadavg' on MS-Windows.
50426a04 7972 * w32.c: Include float.h.
ad9e2d54
EZ
7973 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7974 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7975 (get_native_system_info, get_system_times): New functions.
7976 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7977 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7978 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7979 g_b_init_get_system_times, and num_of_processors.
7980
0a3472c7
JR
79812009-07-03 Jason Rumney <jasonr@gnu.org>
7982
7983 * w32term.c (w32_initialize): Use standard types.
7984
80904120
EZ
79852009-07-03 Eli Zaretskii <eliz@gnu.org>
7986
7987 * dired.c (Ffile_attributes): Decode user and group names by the
7988 locale's encoding. (Bug#3443)
7989
6978862d
DN
79902009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7991
f8d23104
DN
7992 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7993 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7994
7995 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7996
7997 * term.c (init_tty): Remove spurious #ifdef.
7998
6978862d
DN
7999 * m/mips.h: Mention this file is also used for netbsd.
8000 * m/pmax.h: Remove file.
8001
e044e4fc
JD
80022009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8003
8004 * xterm.h (struct x_display_info): Add invisible_cursor.
8005 (struct x_output): Add current_cursor.
8006
8007 * xterm.c (XTtoggle_invisible_pointer): New function.
8008 (x_define_frame_cursor): Don't define cursor if invisible or the
8009 same as before. Set current_cursor.
8010 (x_create_terminal): Set toggle_invisible_pointer_hook.
8011
8012 * xfns.c (make_invisible_cursor): New function.
8013 (x_set_mouse_color): Call make_invisible_cursor.
8014 Set current_cursor.
8015 (x_window): Set current_cursor.
8016
8017 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8018
8019 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8020 inserting a character.
8021 (read_avail_input): Call frame_make_pointer_visible.
8022
8023 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
8024 (frame_make_pointer_invisible, frame_make_pointer_visible):
8025 New functions.
e044e4fc
JD
8026 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8027
8028 * frame.h: Declare frame_make_pointer_invisible and
8029 frame_make_pointer_visible.
8030 (struct frame): Add pointer_invisible.
8031
574c8efa
JD
80322009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8033
7b507248
JD
8034 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8035 frame isn't visible.
8036 (xg_frame_resized): If width/height is -1, get size of window
8037 from X server.
8038
8039 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8040 for MapNotify.
8041
835bdaa7 8042 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 8043 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 8044 (flush_and_sync): Reintroduce.
574c8efa 8045
3f1c6666 80462009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 8047
31fd7c5c 8048 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
8049
8050 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8051 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8052
8053 * frame.h: Declare Qsticky.
8054
cad9ef74
JD
8055 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8056
8057 * nsfns.m (ns_frame_parm_handlers): Ditto.
8058
8059 * frame.c: Declare Qsticky.
8060 (frame_parms): Add sticky.
8061
8062 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8063
8064 * xterm.h: Declare x_set_sticky.
8065
8066 * xterm.c (x_set_sticky): New function.
8067
69b16610
JD
8068 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8069 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8070 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
8071
8072 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8073
8074 * frame.c: Qmaximized is new.
8075 (x_set_frame_parameters): Do not handle fullscreen specially.
8076 Only set width and height if explicitly set.
8077 (x_set_fullscreen): Handle Qmaximized.
8078 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8079 (syms_of_frame): Initialize Qmaximized.
8080
1ac9108a
SM
8081 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8082 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
8083
8084 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
8085 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8086 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
8087 set gravity to NorthWestGravity when USE_GTK.
8088 (set_wm_state): New function.
31fd7c5c 8089 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
8090 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8091 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 8092 or the case when no window manager is running. That means remove calls
3f1c6666
JD
8093 to x_real_positions and x_fullscreen_adjust.
8094
8095 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8096 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8097 flush_and_sync.
8098 (xg_height_changed): New function.
8099 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
8100 and gtk_window_set_policy. Set frame gravity after parsing the
8101 geometry string.
3f1c6666
JD
8102 (xg_update_frame_menubar, free_frame_menubar)
8103 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8104 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8105 Remove calls to xg_frame_set_char_size.
8106
fd503d99
KH
81072009-07-01 Kenichi Handa <handa@m17n.org>
8108
8109 * keyboard.c (decode_keyboard_code): New function.
8110 (tty_read_avail_input): Decode the input bytes if necessary.
8111
1ac9108a
SM
8112 * coding.c (setup_coding_system):
8113 Initialize coding->carryover_bytes to 0.
fd503d99
KH
8114 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8115 use Qno_conversion.
8116
24ed93fb
YM
81172009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8118
8119 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8120
99061dfc
CY
81212009-06-30 Chong Yidong <cyd@stupidchicken.com>
8122
1ac9108a 8123 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 8124
ff90fbde
JR
81252009-06-30 Jason Rumney <jasonr@gnu.org>
8126
8127 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8128 is already loaded.
8129 Set user model ID if supported (bug#1849).
8130
5f445726
JM
81312009-06-29 Jim Meyering <meyering@redhat.com>
8132
8133 Remove useless if-before-xfree test.
8134 * nsfont.m (nsfont_close): Remove useless test.
8135 * term.c (delete_tty): Likewise.
8136 * w32.c (system_process_attributes): Likewise.
8137 * w32font.c (w32font_close): Likewise.
8138 * xfaces.c (x_free_gc): Likewise.
8139 * xselect.c (buffer): Likewise.
8140
b9607587
AS
81412009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8142
8143 * process.c (send_process): Keep decoded string in a local
8144 variable and protect it from GC. (Bug#3521)
8145
89ba96f4
EZ
81462009-06-28 Eli Zaretskii <eliz@gnu.org>
8147
8148 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8149 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8150
098a1589
CY
81512009-06-28 Chong Yidong <cyd@stupidchicken.com>
8152
485422be
CY
8153 * xdisp.c (start_display, handle_face_prop)
8154 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
8155 (redisplay_window, try_window_id, produce_image_glyph):
8156 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 8157
098a1589
CY
8158 * xterm.c (x_update_window_begin, x_new_focus_frame)
8159 (x_scroll_bar_handle_click, handle_one_xevent)
8160 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8161 (x_make_frame_visible, x_make_frame_invisible)
8162 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8163 code chunks that are now obsolete.
8164
78c38319
MA
81652009-06-28 Michael Albinus <michael.albinus@gmx.de>
8166
8167 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8168 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8169 for hours, when optimzation is enabled.
8170 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8171 (xd_read_message): Make them static.
8172
4189ed40
CY
81732009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8174
8175 * term.c (turn_on_face): Allow simultaneously bold and dim
8176 terminal faces (Bug#3530).
8177
cd9b5e16
CY
81782009-06-27 Chong Yidong <cyd@stupidchicken.com>
8179
4e23bedb
CY
8180 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8181
cd9b5e16
CY
8182 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8183 truncation glyphs (Bug#3686).
8184
07cc3c35
GM
81852009-06-27 Glenn Morris <rgm@gnu.org>
8186
8187 * m/pmax.h: Restore file, with only netbsd portions.
8188
31fd7c5c 81892009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 8190
cd9b5e16 8191 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 8192
42d4a64f
KH
81932009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8194
8195 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8196 the arg FORCE_SYMBOL.
8197
930fe55b 81982009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
8199
8200 * fontset.c (fontset_find_font): When a usable rfont_def is found
8201 in a fallback font-group, make it the first element of the group.
8202
57ebc3fd
CY
82032009-06-24 Chong Yidong <cyd@stupidchicken.com>
8204
8205 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8206
f084f942
KH
82072009-06-24 Kenichi Handa <handa@m17n.org>
8208
8209 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8210 set for C.
8211 (fontset_font): Record the availability of a font for C both in
8212 the realized fontsets of the current one and the default one.
8213
2f686c87
DN
82142009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8215
8216 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8217 conditional, it is always defined on AIX.
8218
666e158e
MB
82192009-06-23 Miles Bader <miles@gnu.org>
8220
8221 * window.c (Vrecenter_redisplay): New variable.
8222 (syms_of_window): Initialize it.
8223 (Qtty): New extern declaration.
8224 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8225
c6da7cd2
JM
82262009-06-23 Jim Meyering <meyering@redhat.com>
8227
1ac9108a
SM
8228 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8229 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 8230 pointer dereferences are guaranteed to be valid.
c6da7cd2 8231
678dca3d
KH
82322009-06-23 Kenichi Handa <handa@m17n.org>
8233
74d75424
KH
8234 * emacs.c (main): Call init_font ().
8235
8236 * font.h (Vfont_log): Extern it.
8237 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8238
8239 * font.c (font_sort_entities, font_list_entities)
8240 (font_matching_entity, font_open_entity)
8241 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8242 (Vfont_log): Delete static.
8243 (font_log_env_checked): Delete this variable.
8244 (font_add_log): Don't check font_log_env_checked.
8245 (font_deferred_log): Check Vfont_log.
8246 (init_font): New function.
8247
678dca3d
KH
8248 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8249
8250 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8251
8252 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8253
8254 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8255
8256 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8257 (face_for_char): Don't call font_deferred_log here.
8258 (font_for_char): Likewise.
8259
8a668709
CY
82602009-06-22 Chong Yidong <cyd@stupidchicken.com>
8261
9a01ee33
CY
8262 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8263 rather than its background_width for drawing the overline and
8264 underline (Bug#489).
8265
8266 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8267 rather than its background_width for drawing the overline and
8268 underline (Bug#489).
ec7c9926
CY
8269 (xg_default_icon_file): New variable.
8270 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8271 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 8272
8a668709
CY
8273 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8274 (load_overlay_strings): Remove externs.
8275 (fast_find_position): Function deleted.
8276 (mouse_face_from_buffer_pos): New function, based on
8277 fast_find_position. Correctly handle before-strings,
8278 display-strings, and after-strings (Bug#1220).
8279 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8280
4d4c02d8
CY
82812009-06-21 Chong Yidong <cyd@stupidchicken.com>
8282
1ac9108a 8283 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
8284 (move_it_in_display_line_to, move_it_in_display_line_to)
8285 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8286
70243478
CY
82872009-06-21 Chong Yidong <cyd@stupidchicken.com>
8288
8289 * Branch for 23.1.
8290
13087e59
JR
82912009-06-21 Jason Rumney <jasonr@gnu.org>
8292
8293 * w32term.c (keyboard_codepage): New static variable.
8294 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8295 (w32_read_socket) [WM_CHAR]: Use it to decode character
8296 input (bug#3237).
8297 (w32_initialize): Initialize it.
8298 (codepage_for_locale): New function.
8299
4735b74e
KR
83002009-06-20 Ken Raeburn <raeburn@raeburn.org>
8301
8302 * process.c (status_message): Pass Faset index argument as a lisp
8303 object, so as to work with USE_LISP_UNION_TYPE.
8304
0e727afa
YM
83052009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8306
8307 * coding.c (Ffind_coding_systems_region_internal):
8308 Cache checked characters.
8309
cf299835
KH
83102009-06-18 Kenichi Handa <handa@m17n.org>
8311
1ac9108a 8312 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 8313
90f20d94
AS
83142009-06-18 Andreas Schwab <aschwab@redhat.com>
8315
8316 * xdisp.c (redisplay_internal): Check that the frame is still
8317 live after redisplay of its windows.
8318 (redisplay_windows): Check that the window is still live.
8319
7f1faf1c
KH
83202009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8321
8322 * coding.c (detect_coding_utf_16): Fix previous change.
8323
cc13543e
KH
83242009-06-16 Kenichi Handa <handa@m17n.org>
8325
8326 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8327 UTF-16 by checking the dispersion of Eth and Oth bytes.
8328
977b85f4
AS
83292009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8330
8331 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8332
66bd43d1
KH
83332009-06-15 Kenichi Handa <handa@m17n.org>
8334
8335 * process.c (status_message): Fix previous change. Be sure to
8336 decode a localized string.
8337
cb5ca9c5
YM
83382009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8339
8340 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8341 add comment explaining why.
8342
ec7709ba 83432009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 8344
ec7709ba 8345 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 8346
4b7f335c
AR
83472009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8348
8349 * nsfont.m (ns_attribute_value): Remove.
8350 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8351 (ns_has_attribute): Shrink the normal range.
8352 (ns_findfonts): Don't worry about requested spec in determining
8353 need for synthItal.
e41820ee 8354 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 8355
73b26103
SZ
83562009-06-14 Seiji Zenitani <zenitani@mac.com>
8357
8358 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8359
5753e4da
KH
83602009-06-11 Kenichi Handa <handa@m17n.org>
8361
8362 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8363 overhang for the static composition case.
8364
3561b671
KH
83652009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8366
5753e4da
KH
8367 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8368 overhang for the automatic composition case.
8369
3561b671
KH
8370 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8371 composition case.
8372
852bbd41
CY
83732009-06-10 Chong Yidong <cyd@stupidchicken.com>
8374
8375 * xdisp.c (get_next_display_element): When handling wrap-prefix
8376 and line-prefix, treat \n as a control character (bug#3502).
8377
9903d1e6
KH
83782009-06-10 Kenichi Handa <handa@m17n.org>
8379
8380 * font.c (font_parse_family_registry): Fix for one-char foundry.
8381 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8382
0bcbaaaa
CY
83832009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8384
8385 * process.c (status_message): Fix handling of multibyte signal
8386 string (Bug#3499).
8387
40aa3f13
JM
83882009-06-09 Jim Meyering <meyering@redhat.com>
8389
1f80c7e2
CY
8390 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8391 color name is missing.
40aa3f13 8392
72d51285
KH
83932009-06-09 Kenichi Handa <handa@m17n.org>
8394
8395 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8396 FROM-CODE and TO-CODE are codepoints of CHARSET.
8397
c1d04d84
AR
83982009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8399
8400 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8401
84022009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8403
8404 Changes to support :script/:lang/:otf in NS font driver.
8405 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8406 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8407 indicate not part of font driver interface, and change callers.
8408 (ns_get_family): Remove pointless null check.
8409 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8410 ns_spec_to_descriptor, ns_descriptor_to_entity.
8411 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8412 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8413 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8414 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8415 (ns_get_req_script, ns_accumulate_script_ranges)
8416 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8417 New functions.
8418 (nsfont_list, nsfont_match): Use ns_findfonts.
8419 (nsfont_open): Use font descriptor instead of traits.
8420 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8421 (dump_glyphstring): Rename to ns_dump_glyphstring.
8422
c7eb9816
AR
8423 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8424
c1d04d84
AR
8425 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8426
8427 * fontset.c (fontset_from_font): Remove NS-specific code.
8428
ec7709ba 84292009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
8430
8431 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8432 nonactive windows.
8433
31fd7c5c 84342009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 8435
1ac9108a 8436 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 8437
68852c13 84382009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
8439
8440 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8441
6756cd1d
CY
84422009-06-07 Chong Yidong <cyd@stupidchicken.com>
8443
8444 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8445 account for the overflowing of newlines into the last glyph on the
8446 display line (Bug#3482).
8447
28bf482a
DR
84482009-06-05 David Reitter <david.reitter@gmail.com>
8449
ec7709ba
JB
8450 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8451 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
8452 Fns_selection_exists_p, Fns_selection_owner_p.
8453
fdb55376
JR
84542009-06-03 Jason Rumney <jasonr@gnu.org>
8455
8456 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8457 available. (Bug#3379)
8458
05129fbe
KH
84592009-05-29 Kenichi Handa <handa@m17n.org>
8460
1ac9108a
SM
8461 * coding.c (get_translation_table):
8462 Check Venable_character_translation.
05129fbe 8463
ec7709ba 84642009-05-26 David Reitter <david.reitter@gmail.com>
15891144 8465
ec7709ba
JB
8466 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8467 (x_make_frame_visible): Move frame to front rather than calling
15891144 8468 ns_raise_frame().
ec7709ba 8469 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 8470 isn't key window.
ec7709ba 8471 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
8472 drawRect may be called by NSView even if the frame is hidden.
8473
ec7709ba
JB
8474 * nsfns.m (Fx_create_frame): Follow other ports in
8475 determining visibility; default to t. Ensure async_visible is set.
15891144 8476
21f73755
EZ
84772009-05-23 Eli Zaretskii <eliz@gnu.org>
8478
8479 * dired.c (Ffile_attributes): Doc fix.
8480
34001e41
CY
84812009-05-22 Chong Yidong <cyd@stupidchicken.com>
8482
8483 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8484
46306a17
SM
84852009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8486
8487 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8488 and xfont_scratch_props.
8489 (syms_of_xfont): Do it here instead.
8490 (xfont_find_ccl_program): Delete, unused.
8491 (xfont_open): Delete unused var `i'.
8492
ef6e0694
KH
84932009-05-21 Kenichi Handa <handa@m17n.org>
8494
8495 * fontset.c (Qlatin): Don't make it static.
8496
46306a17
SM
8497 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8498 New functions.
ef6e0694
KH
8499 (xfont_scripts_cache, xfont_scratch_props): New variables.
8500 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
8501 (xfont_list_pattern): Argument changed. Callers changed.
8502 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
8503 (xfont_list): Don't reject a font spec with :script property.
8504 (xfont_has_char): Fix setting of encoding.
8505 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8506 xfont_scratch_props.
8507
85082009-05-19 Kenichi Handa <handa@m17n.org>
8509
46306a17 8510 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
8511 Callers changed.
8512
85132009-05-18 Kenichi Handa <handa@m17n.org>
8514
8515 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8516
ac71ced7
SM
85172009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8518
8519 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8520 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8521
1c6d1051
YM
85222009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8523
8524 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8525 (x_delete_terminal): Dissociate resource database from display and
8526 then call XrmDestroyDatabase before closing display.
8527
9b9b779c
AR
85282009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8529
8530 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
8531 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8532 whether selected frame is viable before raising it (based on patch
8533 by David Reitter), and improve commentary.
8534 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 8535
cccd42d5
KH
85362009-05-15 Kenichi Handa <handa@m17n.org>
8537
8538 * font.c (Ffont_spec): Check arguments.
8539
337fbd17
CY
85402009-05-14 Chong Yidong <cyd@stupidchicken.com>
8541
8542 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8543 weight when testing attributes (Bug#3282).
8544
47a6002f
JD
85452009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8546
8547 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8548 what we expect to get in the next ConfigureNotify event.
8549
9cb363db
YM
8550 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8551 before Xft one (Bug#1696).
8552
b9126609
CY
85532009-05-07 David Reitter <david.reitter@gmail.com>
8554
8555 * nsfns.m (Fx_display_planes): Compute bitplanes using
8556 NSBitsPerPixelFromDepth (Bug#3207).
8557
27a69fd9
CY
85582009-05-10 Chong Yidong <cyd@stupidchicken.com>
8559
8560 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8561
00f37552
TTN
85622009-05-10 Ulrich Mueller <ulm@gentoo.org>
8563
8564 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8565
2d82a920
DR
85662009-05-07 David Reitter <david.reitter@gmail.com>
8567
ec7709ba
JB
8568 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8569 Respect mouse face background.
2d82a920 8570
46b0d52d
DR
85712009-05-07 David Reitter <david.reitter@gmail.com>
8572
ec7709ba
JB
8573 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8574 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
8575 in ns_update_begin and ns_update_end.
8576
ce1b23bb
SM
85772009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8578
5996e1b7
SM
8579 * nsfns.m (ns_get_screen): Rewrite.
8580 Don't presume selected-frame is of type `ns'.
8581
ba98e3a0
SM
8582 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8583 all drivers.
8584
ce1b23bb
SM
8585 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8586
bcda200f
YM
85872009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8588
8589 * keyboard.h (add_user_signal): Fix typo in extern.
8590
8591 * lisp.h (add_user_signal): Remove extern.
8592
8593 * unexelf.c (unexec): Consider a section to precede the .bss section
8594 if its addresses overlap that of .bss.
8595 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8596 instead of dumping process.
8597
864660a2
SM
85982009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8599
8600 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8601
50da4e56
SM
86022009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8603
8604 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8605
51520a1a
DN
86062009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8607
8608 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8609 any statements.
8610
409ea3a1
AS
86112009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8612
59c4c60f
AS
8613 * process.c (read_process_output): Make sure the current buffer is
8614 always restored.
8615
409ea3a1
AS
8616 * coding.c (record_conversion_result): Don't modify
8617 Vlast_code_conversion_error for successful result.
8618 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8619
56f00ed2
KH
86202009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8621
8622 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 8623 (load_charset_map): Remove unnecessary code.
56f00ed2 8624
4491c9d2
DR
86252009-04-30 David Reitter <david.reitter@gmail.com>
8626
35f5b128 8627 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
8628 through f24.
8629
6970f632
CY
86302009-04-30 Chong Yidong <cyd@stupidchicken.com>
8631
8632 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8633
8634 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8635 face_at_buffer_position.
8636 (face_before_or_after_it_pos, get_next_display_element)
8637 (note_mouse_highlight): Update face_at_buffer_position call.
8638
8639 * term.c (term_mouse_highlight):
8640 * msdos.c (IT_note_mouse_highlight):
8641 * fontset.c (Finternal_char_font):
35f5b128 8642 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
8643
8644 * dispextern.h (face_at_buffer_position): Update prototype.
8645
0c616f63
KH
86462009-04-30 Kenichi Handa <handa@m17n.org>
8647
35f5b128 8648 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 8649
ad3aaf33
AS
86502009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8651
8652 * callproc.c (Fcall_process): Fix GC protection. Make sure
8653 current buffer is always restored.
8654
c3c963a0
YM
86552009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8656
8657 * atimer.c (init_atimer): Also clear stopped_atimers.
8658
8659 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8660
7e3386cb
YM
8661 * process.c (create_process): Clean up merger residues of
8662 2008-07-17 change.
8663
91f68422
CY
86642009-04-29 Ulrich Mueller <ulm@gentoo.org>
8665
8666 * lread.c (Vread_circle): New variable.
8667 (read1): Disable recursive read if Vread_circle is nil.
8668
24b34550
KH
86692009-04-29 Kenichi Handa <handa@m17n.org>
8670
8671 * fontset.h (set_default_ascii_font): Delete extern.
8672
8673 * fontset.c (set_default_ascii_font): Delete this unused function.
8674
8675 * frame.c (x_set_font): When ARG is a font-object, check if the
8676 font-object matches with the ASCII font-spec of the frame's
9c358bda 8677 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 8678
77bf07e1
AS
86792009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8680
8681 * fns.c (Flocale_info): Protect vector from GC during decoding.
8682
8683 * process.c (Fstart_process): Protect argv strings from GC during
8684 encoding.
8685
2c55aacf
AS
86862009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8687
8688 * sysdep.c: Include <ctype.h>.
8689
b892d3c9
DR
86902009-04-27 David Reitter <david.reitter@gmail.com>
8691
35f5b128 8692 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
8693 Remove commented-out code.
8694
9d0644c4
JB
86952009-04-26 Johan Bockgård <bojohan@gnu.org>
8696
8697 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8698
b7053016
JR
86992009-04-25 Jason Rumney <jasonr@gnu.org>
8700
8701 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8702
4e8231f3
YM
87032009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8704
8705 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8706 Swap bytes in short integer if fringe bitmap width > 8.
8707
493dcf2c
KH
87082009-04-23 Kenichi Handa <handa@m17n.org>
8709
8710 * xfaces.c (Fx_list_fonts): If a font size is specified in
8711 PATTERN, set it in returned scalable fonts.
8712
401e9e57
CY
87132009-04-22 Chong Yidong <cyd@stupidchicken.com>
8714
708e05dc
CY
8715 * keyboard.c (Fset_input_meta_mode): Doc fix.
8716
8717 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8718
1ac9108a 8719 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
8720
8721 * coding.c (Fterminal_coding_system): Doc fix.
8722
8723 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8724 (Fx_display_pixel_height, Fx_display_planes)
8725 (Fx_display_color_cells, Fx_server_max_request_size)
8726 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8727 (Fx_display_mm_height, Fx_display_mm_width)
8728 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
8729 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8730 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
8731 (check_x_display_info): Handle terminal objects instead of
8732 terminal ids.
8733
401e9e57
CY
8734 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8735 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
8736 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8737 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 8738
df80c7f0
KH
87392009-04-21 Kenichi Handa <handa@m17n.org>
8740
5a8f12af 8741 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 8742 (font_score): Check AVGWIDTH too.
908567ef 8743
df80c7f0
KH
8744 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8745 worst case.
1ac9108a
SM
8746 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8747 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 8748
705af33f
JR
87492009-04-19 Jason Rumney <jasonr@gnu.org>
8750
8751 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 8752 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
8753
8754 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8755 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8756 get_phys_cursor_geometry.
8757
b71ac3dd 8758 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
8759 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8760 using get_phys_cursor_geometry.
8761
8762 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8763 correctly calculated.
8764
dc2933eb
JD
87652009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8766
1ac9108a
SM
8767 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8768 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
8769 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8770 is deprecated.
8771
973e7849
AS
87722009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8773
8774 * font.c (font_put_frame_data): Use xfree instead of free.
8775
314d66f4
JB
87762009-04-17 Juanma Barranquero <lekktu@gmail.com>
8777
8778 * w32font.c (Qja, Qko): Remove declarations.
8779 (syms_of_w32font): Don't DEFSYM them.
8780
cf702558
CY
87812009-04-17 Chong Yidong <cyd@stupidchicken.com>
8782
8783 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8784
8785 * font.h (Qja, Qko): Extern them.
8786
8787 * ftfont.c (Qja, Qko): Remove declarations.
8788
8789 * xfont.c (Qja, Qko): Remove declarations.
8790
b50504f5
KH
87912009-04-17 Kenichi Handa <handa@m17n.org>
8792
bde25748
KH
8793 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8794 string from a vector to handle Latin-1 characters correctly.
8795
b50504f5
KH
8796 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8797 entity even if the cache hits.
8798
f4646fff
AS
87992009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8800
8801 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 8802 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 8803
e7deaab0
AS
8804 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8805 * lisp.h: Adjust prototypes.
8806
0a0e7d49
CY
88072009-04-16 Chong Yidong <cyd@stupidchicken.com>
8808
8809 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8810 change (Bug#3003).
8811
3c908a57
KH
88122009-04-16 Kenichi Handa <handa@m17n.org>
8813
1ac9108a 8814 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
8815
8816 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8817 adstyle.
8818
8819 * ftfont.c (Qja, Qko): Don't make them static.
8820 (enum ftfont_cache_for): New enum.
8821 (fc_charset_table): Undo the previous change.
8822 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
8823 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8824 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
8825 non-scarable font, try to get AVERAGE_WIDTH.
8826 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8827 Change ft_face_cache from a list of a hash-table. Don't check
8828 `ja' and `ko' adstyle here.
8829 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8830 FTFONT_CACHE_FOR_CHARET.
8831 (ftfont_get_charset): Undo the previous change.
1ac9108a 8832 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
8833 (ftfont_close): Likewise.
8834 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8835
8836 * font.c (font_sort_entites): Change the meaning of the arg
8837 BEST-ONLY. Don't optimize for VEC of lenght 1.
8838 (font_select_entity): Just return the value of font_sort_entites.
8839
8840 * xfaces.c (merge_face_vectors): Reflect font properties in
8841 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8842 font_clear_prop if a face attribute doesn't change.
8843
3c908a57
KH
8844 * charset.h (charset_ksc5601): Extern it.
8845
8846 * charset.c (charset_ksc5601): New variable.
8847 (Fdefine_charset_internal): Set charset_ksc5601.
8848 (init_charset_once): Initialize charset_ksc5601 to -1.
8849
d65859c3
DN
88502009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8851
8852 * fileio.c (history_delete_duplicates): Remove unused declaration.
8853
8854 * callint.c (history_delete_duplicates): New declaration.
8855 (Fcall_interactively): Remove command history duplicates when
8856 history_delete_duplicates is true.
8857
3ba010e5
EZ
88582009-04-14 Eli Zaretskii <eliz@gnu.org>
8859
8860 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8861
06f19b91
KH
88622009-04-14 Kenichi Handa <handa@m17n.org>
8863
8864 * font.c (Ffont_info): Fix docstring. Fix the second element of
8865 the returned value (bug#2949).
8866
2cce8bfc
CY
88672009-04-14 Chong Yidong <cyd@stupidchicken.com>
8868
8869 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8870
d156542d
KH
88712009-04-14 Kenichi Handa <handa@m17n.org>
8872
8873 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8874 encoding charset is ascii_compatible.
8875
8876 * charset.c (Fdefine_charset_internal): Make charset
8877 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8878 code_offset is 0, and covers all ASCII characters.
8879
86fa089e
SM
88802009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8881
8882 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8883 (ns_string_to_pasteboard_internal):
8884 * nsmenu.m (process_dialog):
8885 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8886 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8887 * lisp.h (Fx_load_color_file): Declare.
8888
a8a3728b
KH
88892009-04-13 Kenichi Handa <handa@m17n.org>
8890
1ac9108a 8891 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
8892 (font_select_entity): Suppress the code to optimize for the same
8893 kind of fonts.
8894 (font_load_for_lface): Get a font that supports at least ASCII
8895 characters.
8896
8897 * ftfont.c (Qja, Qko): New variables.
8898 (fc_charset_table): Delete uniquifier data for iso8859-1.
8899 (ftfont_get_latin1_charset): New function.
8900 (get_adstyle_property): New function.
8901 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8902 bitmap fonts.
8903 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8904 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8905 `ko' or `ja'.
8906 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8907 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8908 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8909 property.
8910 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8911 (syms_of_ftfont): DEFSYM Qja and Qko.
8912
483670b5
KH
89132009-04-09 Kenichi Handa <handa@m17n.org>
8914
12b55765
KH
8915 * charset.c (map_charset_chars): For a charset of `superset'
8916 method, fix calculation of code range.
8917
483670b5
KH
8918 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8919 from the list of extra properties.
8920 (font_clear_prop): Be sure to delete `:name' font property.
8921
57d3b93b
KH
89222009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8923
b4b2c2ca
YM
8924 * dispnew.c (redraw_overlapping_rows): Fix detection of
8925 overlapping for topmost and bottommost rows.
8926
1ac9108a 8927 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8928
472c3609
JR
89292009-04-06 Jason Rumney <jasonr@gnu.org>
8930
8931 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8932
ab193662
KH
89332009-04-06 Kenichi Handa <handa@m17n.org>
8934
8935 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8936
8937 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8938
0c26f026
KH
89392009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8940
8941 * ftfont.c (ftfont_open): Fix checking of the return value of
8942 FT_Load_Char. Fix setting font->underline_thickness.
8943
e173bbce
CY
89442009-04-04 Chong Yidong <cyd@stupidchicken.com>
8945
8946 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8947 (Fterminal_parameters, Fterminal_parameter)
8948 (Fset_terminal_parameter): In doc string, refer to terminal
8949 objects rather than terminal ids.
8950
693a2698
EZ
89512009-04-04 Eli Zaretskii <eliz@gnu.org>
8952
8953 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8954 ret_lim_data. (Bug#2867)
8955
d5221487
CY
89562009-04-03 Chong Yidong <cyd@stupidchicken.com>
8957
8958 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8959 so they don't get wider than the window, matching 2006-01-23
8960 change to the partner function in xdisp.c (Bug#2800).
8961
223509a3
KH
89622009-04-03 Kenichi Handa <handa@m17n.org>
8963
8964 * print.c (print_object): Make each lowest sub_char_table start a
8965 new line (Bug#2866).
8966
74fcd0b1
KH
89672009-04-02 Kenichi Handa <handa@m17n.org>
8968
8969 * fontset.c (fontset_font): Record no-font when a fontset
8970 explicitly tells not to try another font-specs.
8971
c542407d
SM
89722009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8973
8974 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8975
e3869731
KH
89762009-03-30 Kenichi Handa <handa@m17n.org>
8977
d8d2f142
KH
8978 * fontset.c (fontset_from_font): Specify only registry in a
8979 font-spec for all characters supported by that registry.
8980
e3869731
KH
8981 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8982 even if HAVE_M17N_FLT is not defined.
8983
5da5f805
CY
89842009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8985
8986 * ftfont.c: Conditionalize prototyping and use of
8987 ftfont_variation_glyphs.
8988
ab226c50
SM
89892009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8990
9628fed7
SM
8991 * frame.c (delete_frame): Work around compiler bug.
8992
8993 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8994 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8995 Some more EMACS_INT.
8996 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8997
8998 * xdisp.c (dump_glyph): Fix typo.
8999
ae19ba7c
SM
9000 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9001 (adjust_markers_gap_motion, adjust_markers_for_delete)
9002 (adjust_markers_for_insert, adjust_point)
9003 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9004 (make_gap, copy_text, count_size_as_multibyte, insert)
9005 (insert_and_inherit, insert_before_markers)
9006 (insert_before_markers_and_inherit, insert_1)
9007 (count_combining_before, count_combining_after, insert_1_both)
9008 (insert_from_string, insert_from_string_before_markers)
9009 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9010 (insert_from_buffer_1, adjust_after_replace)
9011 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9012 (replace_range_2, del_range, del_range_1, del_range_byte)
9013 (del_range_both, del_range_2, modify_region)
9014 (prepare_to_modify_buffer, signal_before_change)
9015 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9016 for buffer positions and sizes.
9017 * lisp.h: Adjust prototypes accordingly.
9018
9019 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9020 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9021 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9022
ab226c50
SM
9023 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9024
46dfb8fb
JD
90252009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9026
9027 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9028 lines and columns so we keep the same pixel height and width.
9029
9030 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9031 the property _NET_WM_STATE has changed.
46dfb8fb
JD
9032 (x_handle_net_wm_state): New function to update frame parameter
9033 fullscreen.
9034 (x_term_init): Initialize atoms for _NET_WM_STATE.
9035
9036 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9037
d347e494
SM
90382009-03-27 Kevin Ryde <user42@zip.com.au>
9039
9040 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9041 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9042 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9043 (Fgpm_mouse_stop): Pass that new parameter.
9044 * termhooks.h (close_gpm): Adjust prototype.
9045
84db11d6
SM
90462009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9047
c95a5008
SM
9048 * lisp.h (Fx_focus_frame): Declare.
9049
84db11d6
SM
9050 * callint.c (Fcall_interactively): For '^' just delegate the work to
9051 handle-shift-selection.
9052 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9053
0a1958d6
CY
90542009-03-24 Chong Yidong <cyd@stupidchicken.com>
9055
0bfdff23
CY
9056 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9057
0a1958d6
CY
9058 * data.c (Qinteractive_form): New variable.
9059 (Finteractive_form): Use it.
9060
9061 * eval.c (Fcommandp): Use Qinteractive_form.
9062
58aec0d6
JR
90632009-03-24 Jason Rumney <jasonr@gnu.org>
9064
9065 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9066 Calculate total size precisely. Decode environment variables
9067 before substituting. (Bug#38)
9068
553dd618
KH
90692009-03-24 Kenichi Handa <handa@m17n.org>
9070
9071 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 9072 encoding (Bug#2722).
553dd618 9073
c39ea606
JD
90742009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9075
9076 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9077 that gdpy is set.
9078
bc9b2b5e
AM
90792009-03-22 Alan Mackenzie <acm@muc.de>
9080
9081 * callint.c (Finteractive): Clarify the doc string - even
9082 promptless elements need \n separators.
9083
9f995a76
JR
90842009-03-22 Jason Rumney <jasonr@gnu.org>
9085
9086 * w32term.c (syms_of_w32term): Doc fix for
9087 x-use-underline-position-properties.
9088
22749e9a
EZ
90892009-03-21 Eli Zaretskii <eliz@gnu.org>
9090
9091 * w32.c (getpwuid): Change argument type to unsigned.
9092 (struct w32_id): Change type of `rid' member to unsigned.
9093 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9094 argument ID to unsigned. All callers changed.
9095 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9096
e00553bf
EZ
90972009-03-20 Eli Zaretskii <eliz@gnu.org>
9098
9099 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9100 negative, produce a float value.
9101
9102 * dired.c (make_uid, make_gid): New functions.
9103 (Ffile_attributes): Use them to avoid negative UID and GID.
9104
f761d6b6
JB
91052009-03-20 Juanma Barranquero <lekktu@gmail.com>
9106
9107 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9108 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9109 Fix typos in docstrings.
9110
d507f8d7
KH
91112009-03-19 Kenichi Handa <handa@m17n.org>
9112
9113 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
9114 changed, use font_load_for_lface to get a new font object.
9115 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
9116
9117 * frame.c (x_set_font): Handle the case that ARG is a cons.
9118
c68845e0
GM
91192009-03-19 Glenn Morris <rgm@gnu.org>
9120
9121 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9122
bfa49dd1
CY
91232009-03-19 Chong Yidong <cyd@stupidchicken.com>
9124
9125 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9126
8458d4c1
KH
91272009-03-19 Kenichi Handa <handa@m17n.org>
9128
9129 * charset.c (load_charset_map_from_file): When a mapfile can't be
9130 loaded, signal an error.
9131
78e7d1fe
EZ
91322009-03-18 Eli Zaretskii <eliz@gnu.org>
9133
9134 * dired.c (Ffile_attributes): Make sure UID and GID are always
9135 positive, even if the value is too large for a positive EMACS_INT.
9136 Doc fix.
9137
9138 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9139
5da9fdfa
YM
91402009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9141
9142 * xmenu.c (xdialog_show): Move Fredisplay call ...
9143 (Fx_popup_dialog): ... here.
9144
7519c40d
SM
91452009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9146
9147 * dired.c (file_name_completion): Disable the first optimization just
9148 installed, since it is not implemented correctly.
9149
2cd298e2
SM
91502009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9151
9152 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 9153 only if the entry can affect bestmatch.
2cd298e2
SM
9154 Stop the search early, as Ftry_completion already does.
9155
48d37adf
CY
91562009-03-17 Chong Yidong <cyd@stupidchicken.com>
9157
e10c9c93 9158 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 9159
9286b16a
CY
91602009-03-15 Chong Yidong <cyd@stupidchicken.com>
9161
9162 * keyboard.c (parse_menu_item): Don't display remappings as menu
9163 equivalent bindings (Bug#788).
9164
f7b146dc
JR
91652009-03-15 Jason Rumney <jasonr@gnu.org>
9166
9167 * w32term.h (WM_EMACS_PAINT): New message.
9168 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9169 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9170 before passing to lisp thread. (Bug#950)
9171
f761d6b6 91722009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 9173
d93f9575
CY
9174 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9175 variable as it was never reset.
9176 (ns_term_init): Remove initialization of Lisp-settable defaults
9177 and ns_expand_space.
9178 (-setPanelFromDefaultValues): Remove ns_expand_space.
9179 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9180 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
9181 i.e. no additional spacing, similar to Carbon port.
9182
d93f9575
CY
9183 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9184 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 9185
305018ec
JD
91862009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9187
9188 * sound.c (alsa_configure): Remove call to deprecated
9189 snd_pcm_sw_params_set_xfer_align.
9190
f761d6b6 91912009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
9192
9193 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9194 after clicking in a detached tool bar.
9195 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9196
46e722a9
SM
91972009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9198
348db3dd
SM
9199 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9200 int/Lisp_Object mixup).
46e722a9 9201
a3d16f39
KH
92022009-03-13 Kenichi Handa <handa@m17n.org>
9203
9204 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 9205 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
9206 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9207 (set_fontset_font): Change ARG to a vector. Handle range_list in
9208 ARG correctly.
9209 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 9210 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
9211 the above change.
9212 (fontset_from_font): Fix previous change.
fe24f56a 9213 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
9214 entry. If FONTSET is the default fontset, don't set the extra
9215 slot of the returning char-table.
9216
b066e6b6
JB
92172009-03-12 Juanma Barranquero <lekktu@gmail.com>
9218
9219 * nsfns.m (Fx_close_connection): Doc fix.
9220 (Fns_do_applescript): Reflow docstring.
9221 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9222 (Fx_display_pixel_width, Fx_display_pixel_height)
9223 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9224 Fix typos in docstrings.
9225 (Fns_set_alpha): Fix typos in error messages.
9226
d472514e 92272009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 9228
d472514e 9229 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
9230 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9231 were used for such events.
9232
d472514e
JB
9233 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9234 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 9235
d472514e 9236 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
9237 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9238
fb930676
KH
92392009-03-11 Kenichi Handa <handa@m17n.org>
9240
ff85581a
KH
9241 * font.h (font_open_by_spec): Extern it.
9242
c50b7e98
KH
9243 * font.c (font_open_by_spec): New function.
9244 (font_open_by_name): Use font_open_by_spec.
9245
fb930676
KH
9246 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9247 fontset of the frame.
9248
9249 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9250 modify the default font of frames that use this fontset.
9251 (num_auto_fontsets): New variable.
9252 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9253 name. Be sure to set FONTSET_ASCII to the correct font name.
9254 (update_auto_fontset_alist): New function.
9255
df4e8455
JB
92562009-03-11 Juanma Barranquero <lekktu@gmail.com>
9257
9258 * makefile.w32-in: Update dependencies.
9259
0a375797
AR
92602009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9261
9262 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9263
61313fa3
SM
92642009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9265
9266 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9267
b55103fb
CY
92682009-03-10 Chong Yidong <cyd@stupidchicken.com>
9269
9270 * lread.c (Feval_buffer): Doc fix.
9271
dde2559c
KH
92722009-03-09 Kenichi Handa <handa@m17n.org>
9273
9274 * charset.c (Qfile_name_handler_alist): Extern it.
9275 (load_charset_map_from_file): Temporarily bind
9276 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9277
df4e8455 92782009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 9279
47f588bb
GM
9280 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9281 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 9282
4ddf94bd
AR
92832009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9284
4c9bdfc2
AR
9285 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9286 (x_set_window_size): Change back to calculated method of setting
9287 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
9288 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9289 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9290
fe41ae9e
AR
9291 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9292
4c9bdfc2
AR
9293 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9294 accelerator in parens under GNUstep.
9295
825d0875
KH
92962009-03-06 Kenichi Handa <handa@m17n.org>
9297
9298 These changes are to detect incorrect composition sequence without
f3b3be74 9299 looking ahead the source. (Bug#2370)
825d0875
KH
9300
9301 * coding.h: Include "composite.h".
9302 (enum compisition_state): New enum.
9303 (struct compisition_status): New struct.
9304 (struct iso_2022_spec): New member cmp_status.
9305 (struct emacs_mule_spec): New struct.
9306 (struct coding_system): New members ctext_extended_segment_len and
9307 embedded_utf_8. Change the union member
9308 spec.emacs_mule_full_support to spec.emacs_mule.
9309
9310 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9311 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 9312 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
9313 (ADD_COMPOSITION_DATA): New arg nbytes.
9314 (emacs_mule_char): New arg cmp_status.
9315 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9316 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9317 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9318 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9319 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9320 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9321 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9322 (EMACS_MULE_COMPOSITION_END): New macro.
9323 (emacs_mule_finish_composition): New function.
9324 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9325 (decode_coding_emacs_mule): Avoid long looking ahead while
9326 handling composition.
9327 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9328 (ENCODE_COMPOSITION_RULE): New macro.
9329 (finish_composition): New function.
9330 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9331 (DECODE_COMPOSITION_START): New implementation.
9332 (DECODE_COMPOSITION_END): Likewise.
9333 (STORE_COMPOSITION_RULE): New macro.
9334 (decode_coding_iso_2022): Avoid long looking ahead while handling
9335 composition, CTEXT extended segment, and embedded UTF-8.
9336 (setup_coding_system): For a coding of type iso-2022, reset
9337 CODING_ISO_EXTSEGMENT_LEN (coding) and
9338 CODING_ISO_EMBEDDED_UTF_8 (coding).
9339 (get_translation): Delete arguments last_block, from_nchars,
9340 to_nchars. Callers changed.
9341 (produce_chars): Don't modify charbuf. Adjusted for the change of
9342 get_translation.
98a326f7 9343 (produce_composition): Adjust for the new annotation sequence.
825d0875 9344 (handle_composition_annotation): Likewise.
98a326f7 9345 (consume_chars): Adjust for the change of get_translation.
825d0875 9346
ccbc4452
AR
93472009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9348
4ddf94bd 9349 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 9350
988a7ddb
KH
93512009-03-05 Kenichi Handa <handa@m17n.org>
9352
9353 * font.c (font_select_entity): New function.
9354 (font_find_for_lface): Use font_select_entity to select a font.
9355
9356 * fontset.c (fontset_find_font): If a font found without
a8a3728b 9357 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
9358 font with C restriction.
9359
98a326f7 93602009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 9361
be1bce46 9362 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 9363
10ea2b82
JR
93642009-03-04 Jason Rumney <jasonr@gnu.org>
9365
2c93b248 9366 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 9367 characters that have already been read. (Bug#2569)
2c93b248 9368
10ea2b82
JR
9369 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9370 Log an error message if check_image_size failed.
9371 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 9372 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 9373
71a0c011
EZ
93742009-03-02 Eli Zaretskii <eliz@gnu.org>
9375
9376 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9377 when decoding process output.
9378
2f63bba8
RS
93792009-03-01 Richard M Stallman <rms@gnu.org>
9380
9381 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9382
9383 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9384
0a9564cb
EZ
93852009-02-28 Eli Zaretskii <eliz@gnu.org>
9386
9387 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9388 (decode_coding_emacs_mule, decode_coding_iso_2022)
9389 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9390 (decode_coding_raw_text, decode_coding_charset)
9391 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9392 Honor inhibit-eol-conversion. (Bug #2186)
9393
449148b3
JR
93942009-02-28 Jason Rumney <jasonr@gnu.org>
9395
9396 * coding.c (detect_coding_charset): If not checking latin extra,
9397 fail on characters between 0x80 and 0xA0. (Bug#2354)
9398
a4aee864
EZ
93992009-02-28 Eli Zaretskii <eliz@gnu.org>
9400
9401 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 9402 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 9403
d88bee5a
GM
94042009-02-27 Glenn Morris <rgm@gnu.org>
9405
9406 * callint.c (Finteractive): Doc fix.
9407
a808f22d
KH
94082009-02-27 Kenichi Handa <handa@m17n.org>
9409
9410 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9411
caf8d60c
CY
94122009-02-27 Chong Yidong <cyd@stupidchicken.com>
9413
9414 * font.c (font_style_to_value): Set value for unknown symbols to
9415 100 instead of 255.
b61137ea
CY
9416 (weight_table, slant_table, width_table): Treat "unspecified" as
9417 the default value.
caf8d60c 9418
1a0de25c
JB
94192009-02-26 Juanma Barranquero <lekktu@gmail.com>
9420
9421 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9422
8fc45744
JB
94232009-02-25 Juanma Barranquero <lekktu@gmail.com>
9424
107bd7d1
JB
9425 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9426 error as soon as a recursive load is detected.
8fc45744 9427
f097e223
AR
94282009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9429
9430 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9431 before caching.
9432
8810a12f
KH
94332009-02-24 Kenichi Handa <handa@m17n.org>
9434
9435 * fontset.c (fontset_find_font): Fix the condition for checking
9436 unavailable font.
9437
2c7d1565
GM
94382009-02-24 Glenn Morris <rgm@gnu.org>
9439
9440 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9441 whitespace that confuses documentation.
9442
a20878b6
MB
94432009-02-23 Miles Bader <miles@gnu.org>
9444
9445 * process.c (Flist_system_processes, Fprocess_attributes)
9446 (syms_of_process): Rename `system-process-attributes' to
9447 `process-attributes'.
9448
b3b58c01
AS
94492009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9450
1b3b981b
AS
9451 * coding.h (struct coding_system): Make safe_charsets a pointer to
9452 unsigned char.
9453 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9454 being 255.
9455 (SAFE_CHARSET_P): Likewise.
9456 (setup_iso_safe_charsets): Properly setup safe_charsets.
9457 (Fdefine_coding_system_internal): Likewise.
9458 (setup_coding_system): Likewise. Remove unneeded casts.
9459 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9460 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9461 unneeded casts.
9462
b3b58c01
AS
9463 * insdel.c (del_range_2): Don't modify gap contents when called
9464 from decode_coding_object. (Bug#1809)
9465
0b6f228c
CY
94662009-02-21 Chong Yidong <cyd@stupidchicken.com>
9467
9468 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9469 Qfont_object.
9470 (Ftype_of): Recognize font objects.
9471
9472 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9473
9474 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9475 moved to data.c.
9476
52f8870b
AR
94772009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9478
9479 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9480 async_iconified. Based on a patch by Christian Lynbech
9481 <christian.lynbech@tieto.com>.
9482 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9483
7087d5e9
GM
94842009-02-20 Glenn Morris <rgm@gnu.org>
9485
9486 * syntax.c (Fskip_chars_forward): Fix doc typo.
9487
41d2ceef
CY
94882009-02-20 Chong Yidong <cyd@stupidchicken.com>
9489
9490 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9491
1a3b7ca6
CY
94922009-02-19 Chong Yidong <cyd@stupidchicken.com>
9493
9494 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9495
73cce38d
KH
94962009-02-19 Kenichi Handa <handa@m17n.org>
9497
9498 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 9499 Don't overflow coding->carryover. (Bug#2370)
73cce38d 9500
a51092ee
DN
95012009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9502
9503 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9504
c423ecca
KH
95052009-02-18 Kenichi Handa <handa@m17n.org>
9506
9507 * font.c (font_check_otf_features): Fix handling of `nil' element.
9508 (Ffont_spec): Describe :lang and :otf in the docstring.
9509
4c1958f4
AS
95102009-02-16 Andreas Schwab <schwab@suse.de>
9511
9512 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9513 string.
9514
5704f39a
KH
95152009-02-16 Kenichi Handa <handa@m17n.org>
9516
9517 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 9518 (Bug#1723)
5704f39a 9519
8f0085aa
CY
95202009-02-14 Chong Yidong <cyd@stupidchicken.com>
9521
a057d86a 9522 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
9523
9524 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9525 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9526
aff01dd9
EZ
95272009-02-14 Eli Zaretskii <eliz@gnu.org>
9528
9529 * msdos.c (MAX_SCREEN_BUF): New macro.
9530 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9531 Encode the entire run of glyphs sharing the same face, instead of
9532 doing that one glyph at a time (fixes a bug with displaying
9533 double-size characters).
9534
ba301db3
AR
95352009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9536
9537 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9538
9539 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9540 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 9541 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
9542
9543 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 9544 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 9545
51d861de
SM
95462009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9547
ac146f82 9548 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
9549 invisible areas.
9550
7fed8996
JR
95512009-02-12 Jason Rumney <jasonr@gnu.org>
9552
631ea4fb
JR
9553 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9554 (add_font_entity_to_list): Call check_face_name even when family
9555 is unspecified.
9556
cb4a3e42
JR
9557 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9558 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 9559 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 9560
7fed8996 9561 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 9562 raster fonts. (Bug#2219)
7fed8996 9563
895416e3
KH
95642009-02-12 Kenichi Handa <handa@m17n.org>
9565
9566 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9567 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9568 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 9569 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9570 (find_automatic_composition): While looking forward and backward,
9571 check static composition. Fix where to stop looking forward.
9572 (composition_adjust_point): Fix checking of static composition.
9573 (Fcomposition_get_gstring): Pay attention to
1dacf998 9574 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9575
9576 * lisp.h (fast_looking_at): Extern it.
9577
9578 * search.c (fast_looking_at): New function.
9579
51d861de 9580 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
9581 <struct glyph>.u.cmp.to.
9582 (append_composite_glyph): Likewise.
9583
51d861de 9584 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
9585 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9586 composition.
51d861de 9587 (append_composite_glyph): Adjust for the change of
895416e3
KH
9588 <strcut glyph>.u.cmp.to.
9589
8510724d
JB
95902009-02-11 Juanma Barranquero <lekktu@gmail.com>
9591
9592 * casetab.c (init_casetab_once):
9593 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9594 * font.c (font_update_lface):
9595 * fontset.c (Fnew_fontset):
9596 * ftfont.c (ftfont_drive_otf):
9597 * xfont.c (xfont_open):
9598 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9599
294fa707
SM
96002009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9601
9602 * fileio.c (Fwrite_region): !NILP -> CONSP.
9603
b5bfebec
AS
96042009-02-10 Andreas Schwab <schwab@suse.de>
9605
9606 * process.c (send_process): Properly relocate pointer into data
adab88bd 9607 when using encoded data. (Bug#2272)
b5bfebec 9608
cb84a2be
KH
96092009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9610
9611 * coding.c (detect_coding_charset): Fix previous change.
9612
89e09428
JR
96132009-02-08 Jason Rumney <jasonr@gnu.org>
9614
9615 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 9616 disappeared while hourglass was displayed. (Bug #2193)
89e09428 9617
4470a277
AS
96182009-02-07 Andreas Schwab <schwab@suse.de>
9619
9620 * unexelf.c (unexec): Fix error message.
9621
3175b12a
AR
96222009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9623
9624 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 9625 when modal window is active. (Bug #2152)
3175b12a
AR
9626 (applicationShouldTerminate:): Remove now-unneeded while loop
9627 around NSRunAlertPanel.
9628
9629 * nsmenu.m (popupSession): New file-global variable.
9630 (pop_down_menu): End the popupSession before closing dialog.
9631 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9632 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9633 don't query NSApp for events (just sleep instead).
9634
8434d0b8
EZ
96352009-02-07 Eli Zaretskii <eliz@gnu.org>
9636
51d861de
SM
9637 * coding.c (syms_of_coding) <translation-table-for-input>:
9638 Modify doc string to discourage use for character code unification.
8434d0b8 9639
aa82edfd
CY
96402009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9641
9642 * atimer.c (run_timers): Update pending_atimers.
9643
2d283c7c
CY
96442009-02-06 Chong Yidong <cyd@stupidchicken.com>
9645
eb306cab
CY
9646 * image.c (svg_load_image): Fix last change.
9647
2d283c7c
CY
9648 * xfns.c (Fx_create_frame): Signal an error if no font is
9649 found (Bug#2147).
9650
4d8e170e
JB
96512009-02-05 Juanma Barranquero <lekktu@gmail.com>
9652
9653 * character.c (syms_of_character) <script-representative-chars>:
9654 Fix typo in docstring.
9655
c96169a0
AR
96562009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9657
9658 * nsmenu.m (pop_down_menu): New function.
9659 (ns_popup_dialog): Call it on unwind.
9660 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9661 call timer_check() (Bug#2154).
9662 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9663 handling_signal is set.
9664 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9665
31fd7c5c 9666 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
9667
9668 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9669
9670 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9671
51d861de
SM
9672 * keyboard.c (poll_for_input_1, handle_async_input):
9673 Set handling_signal under HAVE_NS.
c96169a0 9674
aacd8ba1
GM
96752009-02-04 Glenn Morris <rgm@gnu.org>
9676
9677 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9678
4cb75c4b
KH
96792009-02-04 Kenichi Handa <handa@m17n.org>
9680
9681 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9682
9683 * charset.c (Fchar_charset): New optional arg restriction.
9684
9685 * coding.h (coding_system_charset_list): Extern it.
9686
9687 * coding.c (coding_system_charset_list): New function.
9688
9689 * composite.c: Include coding.h and termhooks.h.
9690 (composition_gstring_p): Fix for the terminal case.
9691 (composition_gstring_width): Likewise.
9692 (fill_gstring_body): Likewise.
9693 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9694 the frame.
9695 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9696 is within a composition.
867d4bb3 9697 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
9698
9699 * term.c (encode_terminal_code): Fix handling of composition.
9700 (produce_composite_glyph): For static composition, get pixel_width
9701 from struct composition.
9702
826ba17e
AS
97032009-02-02 Andreas Schwab <schwab@suse.de>
9704
9705 * unexelf.c (unexec): Handle unaligned bss offset.
9706
8ad093db
AR
97072009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9708
9709 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9710 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 9711
8ad093db
AR
9712 * keyboard.c (handle_interrupt): Don't call
9713 quit_throw_to_read_char() under NS.
d0a76a6e 9714
8ad093db
AR
9715 * blockinput.h: Remove NS-specific code.
9716
4d18a7a2
DN
97172009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9718
db878925
DN
9719 * dispnew.c (window_change_signal): Don't try to get the size of a
9720 suspended tty frame.
9721 * term.c (Fresume_tty): Resize if the size has changed while the
9722 tty was suspended.
9723
4d18a7a2
DN
9724 * alloc.c (mark_stack): Properly conditionalize previous change.
9725
8984df7c
JB
97262009-01-30 Juanma Barranquero <lekktu@gmail.com>
9727
9728 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9729 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9730 Remove; this code is not used on Windows.
9731
75f4f1ac
EZ
97322009-01-30 Eli Zaretskii <eliz@gnu.org>
9733
9734 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9735 EOLs that also has stray ^M characters.
9736
07a1e794
JB
97372009-01-30 Juanma Barranquero <lekktu@gmail.com>
9738
9739 * atimer.c (run_timers, alarm_signal_handler):
9740 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9741 * w32inevt.c (w32_console_read_socket):
9742 * w32term.c (w32_read_socket):
9743 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9744
a8b11cc9
CY
97452009-01-30 Chong Yidong <cyd@stupidchicken.com>
9746
9747 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9748 Initialize it as a relative filename pattern.
9749 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9750 (Fcall_process_region): Simplify temp file creation using
9751 temporary-file-directory.
9752
c279587b
EZ
97532009-01-29 Eli Zaretskii <eliz@gnu.org>
9754
9755 * msdos.c: Rename pending_signals to msdos_pending_signals.
9756 (sig_suspender, sigprocmask): Adjust.
9757
a8fe3242
CY
97582009-01-29 Chong Yidong <cyd@stupidchicken.com>
9759
9760 * keyboard.c (pending_signals): New var.
9761 (poll_for_input, input_available_signal, init_keyboard): Set it.
9762 (process_pending_signals): New function.
9763
9764 * lisp.h (QUIT): Check pending_signals instead of
9765 interrupt_input_pending. Use process_pending_signals.
9766
51d861de 9767 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 9768
51d861de 9769 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
9770
9771 * sysdep.c (emacs_write): Use process_pending_signals.
9772
9773 * xterm.c (XTread_socket): Update pending_signals.
9774
9775 * w32term.c (w32_read_socket): Update pending_signals.
9776
9777 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9778
6570a1c4
KH
97792009-01-29 Kenichi Handa <handa@m17n.org>
9780
9781 * xftfont.c (xftfont_has_char): New function.
9782 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9783
d72a4afa
AR
97842009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9785
9786 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9787 under GNUstep.
9788 (ns_query_color): New declaration.
9789
9790 * nsterm.m (ns_confirm_quit): New variable.
9791 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9792 (EmacsApp-applicationShouldTerminate:): Use it.
9793 (EmacsPrefsController): Let user set it.
9794 (ns_query_color): New function.
9795 (ns_defined_color): Use it.
9796 (ns_initialize): Drop.
9797 (ns_term_init): Add two lines from ns_initialize(), and set
9798 input_interrupt_mode to nil.
9799
9800 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 9801 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 9802
9fe78804
KH
98032009-01-28 Kenichi Handa <handa@m17n.org>
9804
9805 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
9806 (fontset_get_font_group): Remember that no font-group is specified
9807 for C.
9fe78804 9808
fa57de36
CY
98092009-01-27 Chong Yidong <cyd@stupidchicken.com>
9810
930600e9
CY
9811 * fns.c (concat): Check for string overflow (bug#1787).
9812
fa57de36
CY
9813 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9814 Quadruple undo limits (bug#1501).
9815
7179ce7b
KH
98162009-01-27 Kenichi Handa <handa@m17n.org>
9817
9818 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9819 directly use GT_Get_Char_index.
9820
9821 * xftfont.c (struct xftfont_info): New member `index'.
9822
9823 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 9824 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 9825
5be8fcc0
CY
98262009-01-26 Kenichi Handa <handa@m17n.org>
9827
9828 * fontset.c (fontset_find_font): Fix handling of non-cons return
9829 value of fontset_get_font_group.
9830 (fontset_font): Revert last change.
9831
19ae3e61
JR
98322009-01-26 Jason Rumney <jasonr@gnu.org>
9833
9834 * w32font.c (w32font_list_internal): Return quickly if registry is
9835 unknown. Simplify final return.
9836 (add_font_entity_to_list): Break complex logic down into more
9837 manageable chunks. Move unknown registry check to
9838 w32font_list_internal.
9839
8612b71a
AR
98402009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9841
9842 Changes to remove Feval calls from GUI under NS.
9843
d8038940
JB
9844 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9845 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
9846 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9847
9848 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9849 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9850 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9851 instead of NON_ASCII_KEYSTROKE_EVENT.
9852 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9853 (EmacsApp-applicationShouldTerminate:): Query user.
9854 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9855 instead of Feval.
9856
9857 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9858
9859 * keyboard.c (kbd_buffer_get_event): Check for it.
9860 (keys_of_keyboard): Define lispy keys for
9861 ns-put/unput-working-text.
9862
9863 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9864 versions.
9865 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9866
6288ae55
CY
98672009-01-25 Chong Yidong <cyd@stupidchicken.com>
9868
9869 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 9870 setting current_buffer directly. (Bug#2044)
6288ae55 9871
289e7f8f
CY
98722009-01-24 Chong Yidong <cyd@stupidchicken.com>
9873
5ce87308 9874 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 9875 any work. (Bug#1952, bug#1990).
5ce87308 9876
64cc3cf6 9877 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 9878
b3243e6f
AR
98792009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9880
9881 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
9882 (ns_no_defaults): New declaration.
9883 (main): Use it.
e0d2e69a 9884
d900b2af 9885 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 9886
d900b2af 9887 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 9888
d900b2af
AR
9889 * nsterm.m (ns_no_defaults): New variable.
9890 (ns_initialize): Don't read defaults when ns_no_defaults.
9891 (EmacsView-readSelectionFromPasteboard:)
9892 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 9893 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
9894 (ns_dumpglyphs_stretch): New function.
9895 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9896 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9897
e0d2e69a
AR
9898 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9899
3ac71f5d
CY
99002009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9901
9902 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9903 call for Sparc64.
9904
3fe53a83
AR
99052009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9906
9907 * nsfns.m:
9908 * nsgui.h:
9909 * nsmenu.m:
9910 * nsselect.m:
9911 * nsterm.h:
9912 * nsterm.m: Remove '23' comments that indicated code added during
9913 update from emacs-20 -> emacs-23.
9914
10f87c6f 99152009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9916
9917 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9918 ns_alternate_modifier. (Bug#1217)
a3b53a85 9919
c7cef62d
AR
9920 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9921 Display all shortcuts, including those w/o super modifier.
9922
575fb8bd
AR
9923 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9924
918b848b
CY
99252009-01-22 Chong Yidong <cyd@stupidchicken.com>
9926
9927 * fileio.c (Vwrite_region_post_annotation_function)
9928 (Vwrite_region_annotation_buffers): New vars.
9929 (build_annotations_unwind): Just reset
9930 Vwrite_region_annotation_buffers.
9931 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9932 Call write-region-post-annotation-function.
9933 (build_annotations): Add to Vwrite_region_annotation_buffers if
9934 buffer changes.
9935
a39e2539
AR
99362009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9937
9938 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9939 Tiger.
51d861de
SM
9940 * nsfns.m (ns_do_applescript):
9941 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9942
35ed44db
AR
99432009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9944
9945 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9946
cbe0b5bf
AR
99472009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9948
9949 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 9950
6049d3a0
AR
9951 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9952
9953 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
9954 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9955 handle Ctrl-tab. (Bug#1841)
9956 (ns_get_color): Use unsigned long long for scanned hex string value.
9957 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 9958 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 9959 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 9960 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 9961 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 9962 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 9963 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 9964
d3810c21 9965 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 9966 DPI. (Bug#1316)
d3810c21
AR
9967 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9968 values in onTiger section.
4c7077c3 9969
e301e634
CY
99702009-01-19 Chong Yidong <cyd@stupidchicken.com>
9971
7f82490b
CY
9972 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9973 Check return value of font_spec_from_name.
64cc3cf6 9974 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
9975
9976 * font.c (font_spec_from_name): Return Qnil if font name could not
9977 be parsed.
9978 (font_parse_name): Treat a `?' character as part of an XLFD.
9979
e301e634
CY
9980 * fns.c (Fsubstring): Doc fix.
9981
1c0db158
KH
99822009-01-19 Kenichi Handa <handa@m17n.org>
9983
51d861de 9984 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
9985 (ftfont_list): Likewise.
9986
acf20901
JB
99872009-01-18 Juanma Barranquero <lekktu@gmail.com>
9988
fff4e459
JB
9989 * dbusbind.c (Fdbus_register_signal):
9990 * process.c (conv_sockaddr_to_lisp):
9991 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9992
acf20901
JB
9993 * callproc.c (Fgetenv_internal): Doc fix.
9994
e7abcdfb
CY
99952009-01-16 Chong Yidong <cyd@stupidchicken.com>
9996
9997 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9998 it is not even used.
9999
b60861e6
GM
100002009-01-16 Glenn Morris <rgm@gnu.org>
10001
10002 * font.c (Ffont_variation_glyphs): Silence compiler.
10003
8db52afe
JB
100042009-01-15 Juanma Barranquero <lekktu@gmail.com>
10005
10006 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10007 Reported by David Robinow <drobinow@gmail.com>.
10008
4cddb209
KH
100092009-01-15 Kenichi Handa <handa@m17n.org>
10010
51d861de 10011 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 10012
f247f67b
JR
100132009-01-14 Jason Rumney <jasonr@gnu.org>
10014
10015 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 10016 never a fontset. (Bug#1562)
f247f67b 10017
f56a4450
KH
100182009-01-14 Kenichi Handa <handa@m17n.org>
10019
10020 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 10021 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 10022
4e99855e
CY
100232009-01-13 Chong Yidong <cyd@stupidchicken.com>
10024
10025 * font.c (font_clear_prop): If clearing the family, clear the font
10026 width index too.
10027
fff4e459 10028 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 10029
24f01470
JB
100302009-01-12 Juanma Barranquero <lekktu@gmail.com>
10031
10032 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10033 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10034 functions, use sizeof.
10035
a41240a3
MR
100362009-01-12 Martin Rudalics <rudalics@gmx.at>
10037
10038 * keyboard.c (read_char): Fix case where last_nonmenu_event
10039 returned a bad value with submenus. (Bug#447)
10040
944636b8
CY
100412009-01-12 Chong Yidong <cyd@stupidchicken.com>
10042
10043 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10044 family, clear the font width index too.
10045
0dad7c6f
JR
100462009-01-11 Jason Rumney <jasonr@gnu.org>
10047
10048 * keyboard.c (cmd_error_internal): Exit when errors occur before
10049 frame creation and not in daemon mode. (Bug#1836)
10050
7c2363af
CY
100512009-01-10 Chong Yidong <cyd@stupidchicken.com>
10052
10053 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10054 of a display vector, backtrack.
10055 (try_window_reusing_current_matrix): Check glyph type before
10056 referencing charpos member.
10057
97b1b294
EZ
100582009-01-10 Eli Zaretskii <eliz@gnu.org>
10059
10060 Fix Bug #876:
10061
10062 * coding.c (inhibit_null_byte_detection): New variable.
10063 (detect_coding, detect_coding_system): Don't pay attention to null
10064 bytes if inhibit_null_byte_detection is non-zero.
51d861de 10065 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
10066 <inhibit-iso-escape-detection>: Doc fix.
10067
4624b6e3
JR
100682009-01-09 Jason Rumney <jasonr@gnu.org>
10069
10070 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 10071 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
10072 Only report Unicode Plane 2 fonts as unicode-sip.
10073
323b840c
CY
100742009-01-09 Chong Yidong <cyd@stupidchicken.com>
10075
51d861de
SM
10076 * xfaces.c (Fx_font_family_list): Delete function.
10077 Move compatibility version to faces.el.
323b840c 10078
51d861de 10079 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 10080
eba7400d
MR
100812009-01-09 Martin Rudalics <rudalics@gmx.at>
10082
10083 * frame.c (x_set_frame_parameters): Remember requested value for
10084 fullscreen before it's reset by the parameter handler.
10085
4b09796d
GM
100862009-01-09 Glenn Morris <rgm@gnu.org>
10087
10088 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 10089 (last_command_event): ... and update all users.
4b09796d
GM
10090 (last_input_char): For clarity, rename to...
10091 (last_input_event): ... and update all users.
10092 (last-command-char, last-input-char): Move to subr.el as aliases.
10093 * cmds.c, commands.h: Update for last_command_char rename.
10094
14ccea62
CY
100952009-01-08 Chong Yidong <cyd@stupidchicken.com>
10096
51d861de 10097 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 10098
5f004711
JR
100992009-01-08 Jason Rumney <jasonr@gnu.org>
10100
10101 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10102 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10103 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10104 Don't declare.
fff4e459 10105 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
10106 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10107
b71f6f73
KH
101082009-01-07 Kenichi Handa <handa@m17n.org>
10109
50b06221 10110 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 10111 remember the coding system used for decoding in
50b06221
KH
10112 coding_system (Bug#1039).
10113
b71f6f73 10114 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 10115 breaking the loop. (Bug#870)
b71f6f73
KH
10116 (decode_coding_utf_16, decode_coding_emacs_mule)
10117 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10118 (decode_coding_charset): Likewise.
10119
56f668f7
MR
101202009-01-05 Martin Rudalics <rudalics@gmx.at>
10121
10122 * frame.c (x_set_frame_parameters): Make sure height (width) get
10123 applied when fullwidth (fullheight) is set. (Bug#1522)
10124
5da9424d
JB
101252009-01-04 Juanma Barranquero <lekktu@gmail.com>
10126
10127 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10128 (utc_base): Declare as ULONGLONG, not long double.
10129 (convert_time_raw): Delete.
10130 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10131 (initialize_utc_base): New function.
10132 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10133 (convert_from_time_t): Use initialize_utc_base; compute result with
10134 64-bit arithmetic.
10135 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10136
c4605e09
EZ
101372009-01-03 Eli Zaretskii <eliz@gnu.org>
10138
9acef61c 10139 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
10140 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10141 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10142 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10143 [!subprocesses]: Define.
10144 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10145 (Flist_system_processes, Fsystem_process_attributes)
10146 [!subprocesses]: Call list_system_processes and
10147 system_process_attributes instead of returning Qnil.
10148
9acef61c
JB
10149 * dosfns.c (system_process_attributes, list_system_processes):
10150 New functions.
c4605e09
EZ
10151
10152 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10153
10154 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10155 Don't use the default (no-op) implementation.
10156
8b7d0a16
JR
101572009-01-03 Jason Rumney <jasonr@gnu.org>
10158
a6d46bc1
JR
10159 * keyboard.c (parse_modifiers_uncached): Wheel events are
10160 clicks (bug#687).
10161
8b7d0a16
JR
10162 * w32term.c (x_query_colors, x_query_color): New functions.
10163
10164 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10165 (svg_load_image): Cast returned pointers from dynamically loaded
10166 functions. Eliminate W32 specific code.
10167
bfe11752
DN
101682009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10169
89e2438a
DN
10170 * nsfns.m (x_set_foreground_color, x_set_background_color)
10171 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10172 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10173 x_ prefix instead of ns_. Update references.
10174 (syms_of_nsfns): Add a FIXME comment.
10175
10176 * nsterm.m (x_set_cursor_type): New prototype.
10177 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10178
bfe11752
DN
10179 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10180 for Solaris instead of incorrectly providing Qutime and Qcutime.
10181
031da700
EZ
101822009-01-02 Eli Zaretskii <eliz@gnu.org>
10183
10184 * w32.c (process_times): Compute sum of utime and stime.
10185 (system_process_attributes): Add Qtime to the alist.
10186
10187 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10188 and add them to the alist.
10189
10190 * process.c (top level) <Qtime, Qctime>: New variables.
10191 (syms_of_process): staticpro them.
10192 (Fsystem_process_attributes): Add their documentation to the doc
10193 string.
10194
10195 * process.h: Declare Qtime and Qctime.
10196
df23bf08
JR
101972009-01-02 Jason Rumney <jasonr@gnu.org>
10198
9acef61c 10199 * image.c (Qgobject): New symbol.
df23bf08
JR
10200 (syms_of_image): Initialize it.
10201 (init_svg_functions): Load some functions from gobject library.
10202
5bbdf7aa
DN
102032009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10204
10205 * frame.c (make_terminal_frame): Remove redundant code and useless
10206 block.
10207
63136da6
AS
102082009-01-01 Andreas Schwab <schwab@suse.de>
10209
10210 * process.c (conv_sockaddr_to_lisp): Add workaround for
10211 getsockname bug on BSD.
10212
9ef69046
CY
102132009-01-01 Chong Yidong <cyd@stupidchicken.com>
10214
d6fafbe0
CY
10215 * xfns.c (x_create_tip_frame): Set border width of the X window.
10216
51d861de 10217 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 10218
f9c34147
JR
102192009-01-01 Jason Rumney <jasonr@gnu.org>
10220
9acef61c 10221 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
10222 Don't block input, as per earlier xterm.c changes.
10223
f5497e45
AR
102242008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10225
10226 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10227 (ns_appkit_version_int): New function.
10228 (x-server-version): Use ns_appkit_version_int and follow 21+
10229 convention of returning 3 integers.
10230
c19cab20
KH
102312008-12-30 Kenichi Handa <handa@m17n.org>
10232
10233 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10234 (CHAR_SURROGATE_PAIR_P): New macro.
10235
10236 * font.h (struct font_driver): New member get_variation_glyphs.
10237
9acef61c 10238 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
10239 (Ffont_variation_glyphs): New function.
10240 (syms_of_font): Defsubr it.
10241
10242 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10243 ftfont_variation_glyphs.
10244 (setup_otf_gstring): New function.
10245 (ftfont_drive_otf): Use it.
10246 (ftfont_shape_by_flt): Handle variation selector.
10247 (ftfont_variation_glyphs): New function.
10248
28cd591f
MR
102492008-12-30 Martin Rudalics <rudalics@gmx.at>
10250
10251 * frame.c (Vemacs_iconified): Remove.
10252
7f714baf
JR
102532008-12-30 Jason Rumney <jasonr@gnu.org>
10254
10255 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 10256 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 10257
9d2d22ab
CY
102582008-12-30 Chong Yidong <cyd@stupidchicken.com>
10259
10260 * indent.c (Fvertical_motion): Don't advance iterator if we have
10261 reseated to the desired position.
10262
10263 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10264 checking for pos match.
10265
545312c2
KH
102662008-12-30 Kenichi Handa <handa@m17n.org>
10267
1ede3eb6
KH
10268 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10269 just get the low 8-bit of the code.
10270
545312c2
KH
10271 * font.c (font_intern_prop): Validate str as multibyte.
10272
bd7bbf29
DN
102732008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10274
31e0750e
DN
10275 * dispextern.h (struct face): Move lface and hash from the middle
10276 of bitfields.
10277
bd7bbf29
DN
10278 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10279
b5672e7c
DN
102802008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10281
10282 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10283 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10284 instead of intervals.h.
10285
d704470f
AS
102862008-12-26 Andreas Schwab <schwab@suse.de>
10287
10288 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10289 cons.
10290
54b33868
MR
102912008-12-26 Martin Rudalics <rudalics@gmx.at>
10292
10293 * textprop.c (Qminibuffer_prompt): New variable.
10294 (syms_of_textprop): Initialize it.
10295 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10296 in minibuffer-prompt face. (Bug#1662)
10297
40b615d6
JR
102982008-12-25 Jason Rumney <jasonr@gnu.org>
10299
10300 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10301
baae5c2d
JR
103022008-12-24 Jason Rumney <jasonr@gnu.org>
10303
10304 * ralloc.c (r_alloc_reset_variable): New function.
10305
10306 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 10307 record of what points where. (Bug#716)
baae5c2d 10308
a9051c88
DN
103092008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10310
10311 * minibuf.c (read_minibuf): Follow the non-interactive case when
10312 running as a daemon, before detaching.
10313
8b146312
AS
103142008-12-22 Andreas Schwab <schwab@suse.de>
10315
10316 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10317 * gtkutil.c (free_widget_value): Use xfree instead of free.
10318
56f2de10
MR
103192008-12-22 Martin Rudalics <rudalics@gmx.at>
10320
10321 * frame.c (delete_frame): New function derived from
10322 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10323 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10324 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10325 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10326 * frame.h: Extern delete_frame.
10327 * window.c (window_loop):
10328 * terminal.c (delete_terminal):
10329 * xterm.c (x_connection_closed):
10330 * xfns.c (Fx_hide_tip):
9acef61c 10331 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 10332
1fc200d6
JR
103332008-12-21 Jason Rumney <jasonr@gnu.org>
10334
10335 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10336 when character maps to .notdef character.
10337
5e252df2
SM
103382008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10339
10340 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10341
99b72cc4
JR
103422008-12-20 Jason Rumney <jasonr@gnu.org>
10343
10344 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 10345 a graphical frame on Windows. (Bug#1325)
99b72cc4 10346
acc49a52
JD
103472008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10348
10349 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10350
6ea15123
CY
103512008-12-20 Chong Yidong <cyd@stupidchicken.com>
10352
10353 * minibuf.c (Fread_buffer): Doc fix.
10354
b2dab6c8
JR
103552008-12-20 Jason Rumney <jasonr@gnu.org>
10356
54ea0c87 10357 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 10358 server name in UNC paths. (Bug#719)
54ea0c87 10359
b2dab6c8 10360 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 10361 charbuf. (Bug#1035)
b2dab6c8 10362
6d1921be
DN
103632008-12-19 Daniel Engeler <engeler@gmail.com>
10364
10365 * sysdep.c (serial_configure): Fix typo.
10366
53934c98
DN
103672008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10368
10369 * sysdep.c: Include alloca.h.
f4f634e8
DN
10370 (system_process_attributes): Add implementation for Solaris.
10371
10372 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 10373
06e111a6
DN
103742008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10375
10376 Reorganize implementation of Flist_system_processes and
10377 Fsystem_process_attributes. No functional changes.
10378 * process.c: Don't #include pwd.h, grp.h and limits.h.
10379 (Flist_system_processes): Just call list_system_processes.
10380 (Fsystem_process_attributes): Just call system_process_attributes.
10381 (procfs_list_system_processes, time_from_jiffies)
10382 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10383 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10384
10385 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10386 (list_system_processes): Rename from
10387 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10388 Provide a do nothing implementation.
10389 (system_process_attributes): Rename from
10390 procfs_list_system_processes.
10391 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 10392 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
10393
10394 * w32.c (list_system_processes): Rename from
10395 w32_list_system_processes.
10396 (system_process_attributes): Rename from
10397 w32_system_process_attributes.
10398
10399 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10400
10401 * process.h (w32_list_system_processes)
10402 (w32_system_process_attributes): Remove.
362654a6
JB
10403 (list_system_processes, system_process_attributes):
10404 New prototypes.
06e111a6 10405
6a705b23
KH
104062008-12-19 Kenichi Handa <handa@m17n.org>
10407
10408 * xfont.c (xfont_decode_coding_xlfd): New function.
10409 (xfont_encode_coding_xlfd): New function.
10410 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10411 (xfont_list): Decode and encode XLFD by iso-8859-1.
10412 (xfont_match): Likewise.
10413 (xfont_list_family): Likewise.
10414 (xfont_open): Likewise.
10415
d66c0241 10416 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
10417 names are utf-8.
10418
d66c0241 10419 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
10420 names are utf-8.
10421
5a130941
JD
104222008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10423
10424 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10425 changed.
bfd20325
JD
10426 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10427 clicked on a detached tool bar button.
5a130941 10428
fd95644b
DN
104292008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10430
10431 * emacs.c (main): Print and error and exit when no data is read
10432 from the pipe.
10433
e6eee6ae
JR
104342008-12-17 Jason Rumney <jasonr@gnu.org>
10435
10436 * w32font.c (w32font_has_char): Always return -1.
10437
a35dd56b
KH
104382008-12-16 Kenichi Handa <handa@m17n.org>
10439
10440 * font.c (font_open_entity): Fix previous change.
10441
0e3635c2
DN
104422008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10443
10444 * process.c: Include <limits.h>.
10445
d4835507 104462008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
10447
10448 * font.c (font_update_drivers): Fix mistake in reconstructing the
10449 driver list.
10450
104512008-12-16 Chong Yidong <cyd@stupidchicken.com>
10452
10453 * font.c (font_clear_cache): Fix format of font cache data.
10454
e2cbc401
CY
104552008-12-15 Chong Yidong <cyd@stupidchicken.com>
10456
10457 * xftfont.c (xftfont_open): Free Xft font pattern if
10458 XftFontOpenPattern fails.
10459
10460 * xterm.c (x_free_frame_resources): Remove extraneous call to
10461 free_frame_faces.
10462
b131d535
CY
104632008-12-13 Chong Yidong <cyd@stupidchicken.com>
10464
10465 * xterm.c (x_delete_display): Move xim_close_dpy call to
10466 x_delete_terminal.
10467 (x_delete_terminal): Call xim_close_dpy.
10468
e6df5336
JR
104692008-12-13 Jason Rumney <jasonr@gnu.org>
10470
10471 * w32font.c (intern_font_name): New function.
10472 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10473 (w32font_open_internal, Fx_select_font): Decode font name.
10474 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10475
10476 * w32font.h (intern_font_name): Declare new function.
10477
10478 * w32uniscribe.c (add_opentype_font_name_to_list):
10479 Use intern_font_name.
10480
20d68145
CY
104812008-12-13 Chong Yidong <cyd@stupidchicken.com>
10482
9f2554de
CY
10483 * frame.c (Fdelete_frame): Call free_font_driver_list.
10484
3d9bec9a
CY
10485 * font.c (free_font_driver_list): Implement missing function.
10486
20d68145
CY
10487 * w32term.c (w32_term_init): Don't initialize the image cache
10488 here; it will be done in init_frame_faces.
10489
10490 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10491 (struct x_display_info): Remove unused member null_pixel. New
10492 member xim_callback_data.
10493
10494 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10495 (xim_initialize): Save pointer to callback function data.
10496 (xim_close_dpy): Free callback function data. Call XCloseIM,
10497 reverting 2008-11-04 change by David Smith.
10498 (x_term_init): Don't initialize the image cache here; it will be
10499 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10500 (x_delete_display): Free x_dnd_atoms member.
10501
96f9306b
KH
105022008-12-13 Kenichi Handa <handa@m17n.org>
10503
6dec9044
JB
10504 * font.c (font_rescale_ratio): Moved from xfaces.c.
10505 Argument type changed. Handle a font-spec too.
96f9306b 10506 (font_score): Check Vface_font_rescale_alist.
6dec9044 10507 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
10508
10509 * xfaces.c (font_rescale_ratio): Moved to font.c.
10510
8d5b4964
CY
105112008-12-13 Chong Yidong <cyd@stupidchicken.com>
10512
10513 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10514
e6df5336
JR
105152008-12-12 Jason Rumney <jasonr@gnu.org>
10516
10517 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10518 Vwindow_system_version to the real w32 major version.
10519
97c6058a
DN
105202008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10521
10522 * term.c (init_tty): Move setting the terminal name before the
10523 potential user: maybe_fatal.
10524
ec4e88d7
CY
105252008-12-11 Chong Yidong <cyd@stupidchicken.com>
10526
d4835507
JB
10527 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10528 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 10529
b4233ec9
JR
105302008-12-11 Jason Rumney <jasonr@gnu.org>
10531
8ec71e23 10532 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 10533 SYMBOL_CHARSET. (Bug#547)
8ec71e23 10534
b4233ec9 10535 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 10536 size for surrogates. (Bug#1096, bug#872)
b4233ec9 10537
011a0143
JB
105382008-12-11 Juanma Barranquero <lekktu@gmail.com>
10539
10540 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10541
3c309f34
JB
105422008-12-11 Juanma Barranquero <lekktu@gmail.com>
10543
10544 * process.c (Fsystem_process_attributes, syms_of_process):
10545 Fix typo in name of Ssystem_process_attributes.
10546 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10547
fedc6ab5
JB
105482008-12-11 Juanma Barranquero <lekktu@gmail.com>
10549
10550 * syntax.c (Fmodify_syntax_entry): Doc fix.
10551
ba3de0e8
JB
105522008-12-10 Juanma Barranquero <lekktu@gmail.com>
10553
10554 * font.c (Ffont_spec): Move usage to end of docstring.
10555
174f1c74
JR
105562008-12-10 Jason Rumney <jasonr@gnu.org>
10557
10558 * w32font.c (Qcham): New symbol.
10559 (font_supported_scripts): Add cham, and comments for other new
10560 scripts in bitfield from OpenType spec.
9d32f818
JR
10561 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10562 contain characters beyond the bmp.
174f1c74 10563
7b649478
KH
105642008-12-10 Kenichi Handa <handa@m17n.org>
10565
10566 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 10567 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
10568 Qunicode_sip.
10569
2133e2d1
JB
105702008-12-10 Juanma Barranquero <lekktu@gmail.com>
10571
10572 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10573 (Fcoding_system_put): Use QCdefault_char.
10574 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10575
9af886ee
CY
105762008-12-09 Chong Yidong <cyd@stupidchicken.com>
10577
74d819eb
CY
10578 * xftfont.c (syms_of_xftfont): Fix typo.
10579
4ccfa1c0 10580 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 10581
7c19d3ae
DN
105822008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10583
10584 * emacs.c (main): Close daemon_pipe on exec.
10585
567826bb
CY
105862008-12-08 Chong Yidong <cyd@stupidchicken.com>
10587
10588 * termchar.h (struct tty): New members termcap_term_buffer and
10589 termcap_strings_buffer.
10590
10591 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 10592 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
10593 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10594 All callers changed.
10595 (init_tty): Store termcap data and string buffers in new struct
10596 tty members termcap_term_buffer and termcap_strings_buffer.
10597 (delete_tty): Free them.
4ccfa1c0 10598 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 10599
aa96c42b
SZ
106002008-12-07 Seiji Zenitani <zenitani@mac.com>
10601
10602 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 10603 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 10604
b7e1d896
CY
106052008-12-06 Chong Yidong <cyd@stupidchicken.com>
10606
10607 * coding.c (make_conversion_work_buffer): Disable buffer
10608 modification hooks in the work buffer.
10609
b5ec91a5
EZ
106102008-12-05 Eli Zaretskii <eliz@gnu.org>
10611
10612 * process.c (procfs_system_process_attributes): If `nread' has a
10613 negative value, assign zero to it.
10614
a5d2a52b
CY
106152008-12-05 Chong Yidong <cyd@stupidchicken.com>
10616
68c5540b 10617 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 10618
7bf1bb21
KH
106192008-12-05 Kenichi Handa <handa@m17n.org>
10620
10621 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10622 second character is a combining character.
10623
2fdc7d00
EZ
106242008-12-05 Eli Zaretskii <eliz@gnu.org>
10625
10626 * process.c (procfs_system_process_attributes): Don't use cmd,
10627 cmdsize, and q without initializing them first.
10628
bf6bfba8
JR
106292008-12-04 Jason Rumney <jasonr@gnu.org>
10630
10631 * w32font.c (w32font_draw): Initialize orig_clip before getting
10632 it, and delete it when finished.
10633
a3b1a468
DN
106342008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10635
10636 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10637 case when running as a daemon before detaching.
10638
8b8be8eb
JB
106392008-12-03 Juanma Barranquero <lekktu@gmail.com>
10640
805f2638 10641 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 10642
b1bde622
KH
106432008-12-03 Kenichi Handa <handa@m17n.org>
10644
e500c47d
KH
10645 * font.c (font_at): Set `multibyte' at first.
10646
ca516334
KH
10647 * coding.c (decode_coding_charset): Check type of an element of
10648 vector VALIDS.
7bf1bb21 10649 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 10650
4ccfa1c0 10651 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
10652 (font_for_char): Likewise.
10653
1e5ecd37
CY
106542008-12-03 Chong Yidong <cyd@stupidchicken.com>
10655
d5b01609 10656 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
10657 (font_update_lface): Handle fonts with corrupted size specs,
10658 i.e. non-int and non-float.
d5b01609 10659
11e3a6e4 10660 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 10661 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 10662 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 10663
ab06788b
CY
10664 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10665
1e5ecd37 10666 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 10667 underline_minimum_offset for underline position.
1e5ecd37 10668
63c125ab
DN
106692008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10670
10671 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10672
10673 * character.c (c_string_width): Specify the type for LEN.
10674
3a8406e1
KH
106752008-12-03 Kenichi Handa <handa@m17n.org>
10676
4ccfa1c0 10677 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 10678 (decode_coding_utf_8): Likewise.
4ccfa1c0 10679 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 10680 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 10681
651df7d9
CY
106822008-12-02 Chong Yidong <cyd@stupidchicken.com>
10683
10684 * keyboard.c (make_lispy_position): Only use PT if the selected
10685 window is current.
10686
1f625c6c
AS
106872008-12-02 Andreas Schwab <schwab@suse.de>
10688
f7741ce9
AS
10689 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10690
1f625c6c
AS
10691 * doprnt.c (doprnt1): Fix size of charbuf.
10692
92bc2678
CY
106932008-12-02 Chong Yidong <cyd@stupidchicken.com>
10694
10695 * keyboard.c (timer_check): Revert last change.
10696
93b9e8cc
JB
106972008-12-02 Juanma Barranquero <lekktu@gmail.com>
10698
10699 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10700
fd7a37d5
JB
107012008-12-01 Juanma Barranquero <lekktu@gmail.com>
10702
10703 * makefile.w32-in: Update dependencies.
10704 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10705
c115043b
AS
107062008-12-01 Andreas Schwab <schwab@suse.de>
10707
10708 * font.c (register_font_driver): Use xmalloc.
10709 (font_put_frame_data): Likewise.
10710
f5668d2a
CY
107112008-12-01 Chong Yidong <cyd@stupidchicken.com>
10712
860d96be
CY
10713 * xfaces.c (realize_x_face): Make abort condition clearer.
10714
f5668d2a
CY
10715 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10716
379c17e7
CY
107172008-11-30 Chong Yidong <cyd@stupidchicken.com>
10718
10719 * keyboard.c (timer_check): After a timer runs, ensure that the
10720 selected window's buffer is current.
10721
35f36d65
JB
107222008-11-30 Juanma Barranquero <lekktu@gmail.com>
10723
f952c61c
JB
10724 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10725 It was accidentally restored by the Unicode merge.
10726
35f36d65
JB
10727 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10728
b23077df
JB
107292008-11-29 Juanma Barranquero <lekktu@gmail.com>
10730
10731 * w32proc.c: Include "coding.h".
10732 (Fw32_short_file_name): Encode filename passed to Windows API.
10733 (Fw32_long_file_name): Encode filename passed to Windows API and
10734 decode back the result. (Bug#1433)
10735
b8ebe9dd
KH
107362008-11-29 Kenichi Handa <handa@m17n.org>
10737
8cc53f96
KH
10738 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10739 not before accessing it.
10740
b8ebe9dd
KH
10741 * charset.c (Fdefine_charset_internal): After calculating
10742 min_char, max_char, and fastmap, copy the charset structure again.
10743 (encode_char): Fix the previous change.
10744
59bc82c0
SZ
107452008-11-28 Seiji Zenitani <zenitani@mac.com>
10746
10747 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10748
10749 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10750
10751 * nsterm.m (x_set_frame_alpha): New function.
10752
32247e3d
EZ
107532008-11-27 Eli Zaretskii <eliz@gnu.org>
10754
10755 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10756
b003e5ff
JB
107572008-11-27 Juanma Barranquero <lekktu@gmail.com>
10758
10759 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10760 pointer to check_face_name.
10761
708550f5
KH
107622008-11-27 Kenichi Handa <handa@m17n.org>
10763
10764 * category.h (SET_CATEGORY_SET): Call set_category_set.
10765 (set_category_set): Extern it.
10766
10767 * category.c (hash_get_category_set): New function.
10768 (Fmodify_category_entry): Adjusted for the change of
10769 char_table_ref_and_range. Call hash_get_category_set to get a
10770 category set to store in the table.
10771
10772 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10773 Funify_charset.
10774
2ae37cf0 10775 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
10776 (DECODE_CHAR): Check if the decoder vector is ready.
10777 (ENCODE_CHAR): Check if the encoder char-table is ready.
10778 (maybe_unify_char): Extern it.
10779
10780 * charset.c (Vchar_unified_charset_table): Delete it.
10781 (inhibit_load_charset_map): New variable.
10782 (temp_charset_work): New variable.
10783 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10784 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10785 New macros.
10786 (load_charset_map): Meaning of control_flag changed. If
10787 inhibit_load_charset_map is nonzero, setup a table in
10788 temp_charset_work.
10789 (load_charset): New argument control_flag.
10790 (map_charset_for_dump): New function.
10791 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10792 map_charset_for_dump.
10793 (Fdefine_charset_internal): If the charset method is MAP, load
10794 mapping tables by calling load_charset.
10795 (Funify_charset): Don't load a mapping table but directly set
10796 Vchar_unify_table.
10797 (maybe_unify_char): New function.
10798 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10799 Handle the case of inhibit_load_charset_map being nonzero.
10800 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10801 Handle the case of inhibit_load_charset_map being nonzero.
10802 (Fclear_charset_maps): Just free temp_charset_work.
10803 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10804 variable.
10805
10806 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10807 change of char_table_ref_and_range.
10808 (char_table_ref_and_range): Change the meaning of argument FROM
10809 and TO. Now the caller must provide initial values for *FROM
10810 and *TO.
10811
10812 * fontset.c (fontset_add): Adjusted for the change of
10813 char_table_ref_and_range.
10814 (fontset_get_font_group): Likewise.
10815 (Ffontset_info): Likewise.
10816
10817 * keymap.c (describe_vector): Adjusted for the change of
10818 char_table_ref_and_range. For char-table, put boundary between
10819 non-ASCII and 8-bit characters.
10820
10821 * print.c (print_object): For bool-vector, delete unnecessary
10822 check of ASCII_BYTE_P.
10823
9196133b
JR
108242008-11-26 Jason Rumney <jasonr@gnu.org>
10825
10826 * w32font.c (w32font_open_internal): Don't include external
9acef61c 10827 leading in font height. (Bug#879)
9196133b 10828
9f688acf
GM
108292008-11-26 Glenn Morris <rgm@gnu.org>
10830
10831 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10832 redefinition with ifdef. (Bug#1383)
10833
90d19aff
AR
108342008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10835
10836 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10837
4ccfa1c0 108382008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
10839
10840 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10841 New EmacsView methods.
10842 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10843 Fixes bug #1048,1357,1414.
10844
108452008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10846
10847 Fix bug #1362.
10848 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10849 is not an indexed color.
10850 * nsterm.m (free_indexed_color): Add argument checking.
10851 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10852
e7d5ecb3
CY
108532008-11-24 Chong Yidong <cyd@stupidchicken.com>
10854
10855 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10856 Document confirm-after-completion value for
10857 minibuffer-completion-confirm.
10858
c285743c
JR
108592008-11-24 Jason Rumney <jasonr@gnu.org>
10860
10861 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10862 warning.
10863
b0857706
JR
108642008-11-23 Jason Rumney <jasonr@gnu.org>
10865
10866 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10867 restored before returning.
10868
10869 * w32font.c (check_face_name): New function.
10870 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 10871 fonts. (Bug#642)
b0857706 10872
ee50ff07
MR
108732008-11-22 Martin Rudalics <rudalics@gmx.at>
10874
10875 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10876 confirm-nonexistent-file-or-buffer in doc-string.
10877
b8ff72fa
SM
108782008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10879
10880 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10881 Fix copy/paste typo. Add checks.
10882
cee53ed4
KH
108832008-11-21 Kenichi Handa <handa@m17n.org>
10884
10885 * coding.c (detect_coding_iso_2022): Reject invalid composition
10886 sequence.
10887 (DECODE_COMPOSITION_START): If the current source is the last
10888 block, and the current composition doesn't end, regard this
10889 sequence as invalid.
10890 (decode_coding_iso_2022): Handle invalid composition sequence.
10891
f6ef1e65
MR
108922008-11-20 Martin Rudalics <rudalics@gmx.at>
10893
10894 * window.c (coordinates_in_window): Don't return
10895 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10896 line when the window is not the rightmost one. (Bug#1372)
10897
e08b1705
MR
108982008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10899
10900 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10901
ad98e89f
EZ
109022008-11-15 Eli Zaretskii <eliz@gnu.org>
10903
10904 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10905 and bright_bg if noninteractive is non-zero.
10906
fb098a4b
CY
109072008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10908
10909 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10910 x_draw_glyph_string_background.
10911
10912 * w32term.c (x_draw_glyph_string): Likewise.
10913
ce952b6e
CY
109142008-11-15 Chong Yidong <cyd@stupidchicken.com>
10915
10916 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10917 the next glyph string once past the overhang width.
10918
10919 * nsterm.m (ns_draw_glyph_string): Likewise.
10920
10921 * w32term.c (x_draw_glyph_string): Likewise.
10922
26ea7079
CY
109232008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10924
10925 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10926 double file close.
10927
1c33c906
MR
109282008-11-14 Martin Rudalics <rudalics@gmx.at>
10929
10930 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10931 dedicated status of window before attempting to display another
10932 buffer in it.
10933
8fc29035
JB
109342008-11-14 Juanma Barranquero <lekktu@gmail.com>
10935
10936 * msdos.c (Fmsdos_long_file_names):
10937 (syms_of_msdos) <dos-unsupported-char-glyph>:
10938 * dosfns.c (Fint86): Fix typos in docstrings.
10939
55fb4286
EZ
109402008-11-14 Eli Zaretskii <eliz@gnu.org>
10941
10942 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10943
3fda0315
KY
109442008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10945
10946 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10947
7e849c17
CY
109482008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10949
10950 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10951
10952 * frame.h: Negative alpha means "don't touch".
10953
10954 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10955
10956 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10957
b9fd67bd
DN
109582008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10959
10960 * hftctl.c:
10961 * chpdef.h:
10962 * acldef.h: Remove files used only for systems no longer supported.
10963
10964 * Makefile.in: Fix .o alphabetical ordering.
10965 (hftctl.o): Remove dependency, file removed.
10966 (keymap.o, print.o): Depend on charset.h.
10967
d5998e03
KH
109682008-11-10 Kenichi Handa <handa@m17n.org>
10969
2ae37cf0 10970 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 10971
be70e183
CY
109722008-11-08 Chong Yidong <cyd@stupidchicken.com>
10973
10974 * dired.c (file_name_completion): If completion_ignore_case is
10975 enabled, ignore case when checking completion-regexp-list.
10976
7cf94eac
EZ
109772008-11-08 Eli Zaretskii <eliz@gnu.org>
10978
10979 * vm-limit.c (get_lim_data): Fix last change.
10980
ee107a89
KH
109812008-11-08 Kenichi Handa <handa@m17n.org>
10982
10983 * character.c (Fget_byte): New function.
10984 (syms_of_character): Defsubr Fget_byte.
10985
5fd15622
CY
109862008-11-07 Chong Yidong <cyd@stupidchicken.com>
10987
10988 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10989 cursor position is valid after scrolling.
10990
13d62fad
JB
109912008-11-06 Juanma Barranquero <lekktu@gmail.com>
10992
10993 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10994
a1dd2936
GM
109952008-11-06 Glenn Morris <rgm@gnu.org>
10996
10997 * xterm.c (handle_one_xevent): Don't let popup menus cause
10998 mouse-autoselect-window related window switching. (Bug#1261)
10999
860cd236
CY
110002008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11001
11002 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11003
653a3150
AS
110042008-11-04 Andreas Schwab <schwab@suse.de>
11005
11006 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11007
870f5cac
CY
110082008-11-03 Chong Yidong <cyd@stupidchicken.com>
11009
11010 * xfns.c (Fx_wm_set_size_hint): New function.
11011
1e02f3cb
MR
110122008-11-03 Martin Rudalics <rudalics@gmx.at>
11013
11014 * textprop.c (Fprevious_single_char_property_change): Return 0
11015 when there's no change in a string. (Bug#1301)
11016
e630dfc6
MR
110172008-11-02 Martin Rudalics <rudalics@gmx.at>
11018
11019 * frame.c (do_switch_frame): New argument NORECORD passed to
11020 Fselect_window.
11021 (Fselect_frame): New argument NORECORD passed to
11022 do_switch_frame.
11023 (Fset_frame_selected_window): New argument NORECORD passed to
11024 Fselect_frame.
11025 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11026 in call of do_switch_frame.
11027 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11028 Handle NORECORD argument in call of Fselect_frame.
11029 * lisp.h (do_switch_frame, Fselect_frame)
11030 (Fset_frame_selected_window): Adjust declarations.
11031 * window.c (select_frame_norecord): New function.
11032 (run_window_configuration_change_hook): Use it and call
11033 Fselect_frame with NORECORD set.
11034 (Fselect_window): Pass NORECORD to Fselect_frame.
11035 (Fset_window_configuration): Handle NORECORD argument in call of
11036 do_switch_frame.
11037 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11038 Fset_frame_selected_window.
11039 * keyboard.c (command_loop_1): Handle NORECORD in call of
11040 Fselect_frame (currently ifdefd).
11041
9020b223
GM
110422008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11043
11044 * emacs.c (USAGE2): Untabify.
11045
793ffee8
SM
110462008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11047
11048 * composite.c (fill_gstring_header): Fix copy/paste typo.
11049
ab6d1131
MR
110502008-10-31 Martin Rudalics <rudalics@gmx.at>
11051
11052 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11053 (Fother_window): Rename argument and rewrite doc-string.
11054 (select_window_norecord): Fix return value. (Bug#1276)
11055
601a9cf1
JB
110562008-10-30 Juanma Barranquero <lekktu@gmail.com>
11057
11058 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11059 new frames overriding foreground for tooltips. Based on similar patch
11060 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11061
813b0652
CY
110622008-10-29 Chong Yidong <cyd@stupidchicken.com>
11063
11064 * emacs.c (Fdaemon_initialized): Initialize nfd.
11065
4414f58f
MR
110662008-10-29 Martin Rudalics <rudalics@gmx.at>
11067
11068 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11069 (Fwindow_text_height): Clarify doc-strings.
11070 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11071 doc-string of window-scroll-functions.
11072
ecdcaa09
RS
110732008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11074
11075 * category.c (syms_of_category): Fix typo in docstring.
11076
23fe745a
JB
110772008-10-28 Juanma Barranquero <lekktu@gmail.com>
11078
11079 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11080 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11081 Fix typos in docstrings.
11082
ff808935
DN
110832008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11084
11085 * emacs.c (daemon_pipe): Make non-static.
11086 (IS_DAEMON): Move definition ...
11087 * lisp.h (IS_DAEMON): ... here.
11088 (daemon_pipe): Declare.
11089 (is_daemon): Remove.
11090 * dispnew.c (init_display): Use IS_DAEMON.
11091
fc012771
SM
110922008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11093
11094 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11095 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11096
11097 * emacs.c (is_daemon): Remove.
11098 (main): Don't set is_daemon.
11099 (IS_DAEMON): New macro.
11100 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 11101 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
11102 parent exits.
11103 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11104
d8bdbe6f
CY
111052008-10-27 Chong Yidong <cyd@stupidchicken.com>
11106
d1a072bf
CY
11107 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11108 over-sized glyph, draw it with the default glyph width.
11109
e2e325aa
CY
11110 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11111 glyph, draw it with the default glyph width.
11112
11113 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11114 glyph, draw it with the default glyph width.
11115
d8bdbe6f
CY
11116 * xdisp.c (try_scrolling): When computing the distance from the
11117 scroll margin to PT, try moving some distance past the window
11118 bottom before giving up.
11119
7bfac547
MR
111202008-10-27 Martin Rudalics <rudalics@gmx.at>
11121
11122 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11123 (Fset_window_buffer): Explain in doc-string that a window can be
11124 "strongly" dedicated to its buffer.
11125
4ff029f6
DN
111262008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11127
11128 * emacs.c (daemon_name): New variable.
11129 (main): Deal with --daemon=SERVER_NAME.
11130 (Fdaemonp): Return a name if one was passed to --daemon.
11131
5790ef40
DN
111322008-10-26 Romain Francoise <romain@orebokech.com>
11133
f9bd0df9 11134 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
11135 (main): Create a pipe before forking, make the parent exit only after
11136 the child has closed its end of the pipe. Move closing the
11137 descriptors ...
11138 (Fdaemon_initialized): ... here. New function.
11139
f5385255
SM
111402008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11141
4d632321
SM
11142 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11143 the previous unoptimized table.
11144
f5385255
SM
11145 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11146 the distinction between non-nil and non-t value of `dedicated'.
11147
6c56a0f3
CY
111482008-10-25 Chong Yidong <cyd@stupidchicken.com>
11149
11150 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 11151 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 11152
fec89261
MR
111532008-10-25 Martin Rudalics <rudalics@gmx.at>
11154
11155 * window.c (Fget_buffer_window, Fdelete_windows_on)
11156 (Freplace_buffer_in_windows): Make buffer argument optional and
11157 rename to buffer_or_name.
11158
34fcddd0
CY
111592008-10-24 Chong Yidong <cyd@stupidchicken.com>
11160
f5385255
SM
11161 * xdisp.c (handle_single_display_spec, handle_display_prop):
11162 Undo 2005-05-16 change.
34fcddd0
CY
11163 (handle_stop): Pop iterator if it's loaded with an empty string.
11164 (get_overlay_strings_1): Don't save iterator if it's loaded with
11165 an empty string (bug#1201).
11166
064766f2
KH
111672008-10-24 Kenichi Handa <handa@m17n.org>
11168
11169 * ftfont.c (ftfont_otf_features): Fix previous change.
11170 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11171 calling ftfont_otf_features.
11172
f9bd0df9 111732008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
11174
11175 * font.c (font_match_p): Fix for the case that a vector of
11176 characters is in script-representative-chars.
11177
1dae9197
MA
111782008-10-24 Michael Albinus <michael.albinus@gmx.de>
11179
11180 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 11181 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
11182 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11183 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 11184 macro. (Bug#1186)
1dae9197 11185
f9bd0df9 111862008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
11187
11188 * s/sol2-10.h: New file.
11189
878a4584
JB
111902008-10-23 Juanma Barranquero <lekktu@gmail.com>
11191
11192 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11193 poor beast has survived 9+ years and the jump from xterm.c!).
11194
cd265ca6
MR
111952008-10-23 Martin Rudalics <rudalics@gmx.at>
11196
11197 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11198 Reword doc-string.
f5385255 11199 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 11200
472a4dc9
JB
112012008-10-23 Juanma Barranquero <lekktu@gmail.com>
11202
11203 * character.c (syms_of_character) <script-representative-chars>:
11204 <unicode-category-table>: Doc fixes.
11205
159bd5a2
NF
112062008-10-23 Noah Friedman <friedman@splode.com>
11207
11208 * coding.c (make_conversion_work_buffer): Check that
11209 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11210 Fget_buffer_create.
11211
49f9c344
KH
112122008-10-23 Kenichi Handa <handa@m17n.org>
11213
11214 * font.c (font_add_log): Check the values of extra properties.
11215
12bb3111
MR
112162008-10-22 Martin Rudalics <rudalics@gmx.at>
11217
11218 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11219 Reword doc-string.
11220 (Fset_window_parameter): Use NILP.
11221 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 11222 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 11223
bbeb4e99
JB
112242008-10-22 Juanma Barranquero <lekktu@gmail.com>
11225
11226 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11227
112282008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
11229
11230 * nsfns.m (ns_appkit_version): New function.
11231 (x-server-version): Use it.
11232 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11233 (x-server-vendor): Don't check_ns().
11234
11235 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11236
a9b555d3
JB
112372008-10-22 Juanma Barranquero <lekktu@gmail.com>
11238
11239 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11240 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11241
4626499f
KH
112422008-10-22 Kenichi Handa <handa@m17n.org>
11243
e3681952
KH
11244 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11245 scripts.
11246
4626499f
KH
11247 * category.c (word_boundary_p): Check scripts instead of charset.
11248 Handle nil value in word-separating-categories and
11249 word-combining-categories.
11250 (syms_of_category): Fix docstrings of word-separating-categories
11251 and word-combining-categories.
11252
1560f91a
EZ
112532008-10-21 Eli Zaretskii <eliz@gnu.org>
11254
11255 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11256 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11257
f4668441
MR
112582008-10-21 Martin Rudalics <rudalics@gmx.at>
11259
11260 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11261 Rename arg "buffer" to "buffer_or_name".
11262 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11263 it optional.
11264 (no_switch_window): Remove since the return value is not used.
a9b555d3 11265 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
11266 Consider window as dedicated when Fwindow_dedicated_p returns a
11267 non-nil value.
11268 * lisp.h: Remove prototype for no_switch_window.
11269
fd75ddb2
JD
112702008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11271
11272 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 11273 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 11274
07295713
KH
112752008-10-21 Kenichi Handa <handa@m17n.org>
11276
11277 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11278 check Vlatin_extra_code_table.
11279
712adc82
EZ
112802008-10-20 Eli Zaretskii <eliz@gnu.org>
11281
11282 * fileio.c (Fset_file_modes): Doc fix.
11283
f549eb0b
MA
112842008-10-19 Michael Albinus <michael.albinus@gmx.de>
11285
11286 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11287 in arrays.
11288
aac0c6e3
MR
112892008-10-19 Martin Rudalics <rudalics@gmx.at>
11290
11291 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11292 Mention kill-buffer in doc-string.
11293 (Fset_window_buffer): Reinsert tem check removed in last commit.
11294 (Fenlarge_window, Fshrink_window): Have argument names and
11295 doc-string follow Elisp manual more closely.
11296
112972008-10-18 Eli Zaretskii <eliz@gnu.org>
11298
11299 * fileio.c (Fset_file_modes): Doc fix.
11300
113012008-10-18 Martin Rudalics <rudalics@gmx.at>
11302
11303 * window.c (Fwindow_width, Fset_window_start)
11304 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
11305 (Fdelete_windows_on, Freplace_buffer_in_windows):
11306 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
11307 (Fwindow_dedicated_p): Make window argument optional.
11308 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11309 (Fset_window_buffer): Respect any non-nil dedicated value for
11310 window. Rename "buffer" argument to "buffer_or_name".
11311
113122008-10-18 Ulrich Mueller <ulm@gentoo.org>
11313
11314 * m/sh3.h: New file, machine description for SuperH.
11315
113162008-10-17 Martin Rudalics <rudalics@gmx.at>
11317
11318 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11319
113202008-10-17 Kenichi Handa <handa@m17n.org>
11321
11322 * ftfont.c (ftfont_otf_features): Fix indexing
11323 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11324
113252008-10-16 Magnus Henoch <mange@freemail.hu>
11326
11327 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11328 (Fdbus_call_method_asynchronously): Ditto.
11329 This change makes C-h f display the argument list.
11330
113312008-10-16 Chong Yidong <cyd@stupidchicken.com>
11332
11333 * fileio.c (Fexpand_file_name): Doc fix.
11334
11335 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11336 of :foreground and :background equivalent to unspecified (20.x
11337 compatibility).
11338
113392008-10-15 Eli Zaretskii <eliz@gnu.org>
11340
11341 * buffer.c (syms_of_buffer): Doc fix.
11342
113432008-10-14 Kenichi Handa <handa@m17n.org>
11344
11345 * font.c (font_clear_prop): When clearing font width, clear the
11346 average width field too.
11347
113482008-10-12 Andreas Schwab <schwab@suse.de>
11349
11350 * ftfont.c (ftfont_shape_by_flt): Make static.
11351 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11352
11353 * font.c: Don't include <m17n-flt.h>.
11354
113552008-10-10 Eli Zaretskii <eliz@gnu.org>
11356
11357 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11358
113592008-10-09 Eli Zaretskii <eliz@gnu.org>
11360
11361 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11362 away code.
11363
113642008-10-09 Chong Yidong <cyd@stupidchicken.com>
11365
11366 * dispnew.c (update_text_area): Avoid looping due to large glyph
11367 overhangs (bug#1070).
11368
113692008-10-09 Kenichi Handa <handa@m17n.org>
11370
11371 * fontset.c (face_for_char): If face->fontset is negative, just
11372 return ascii_face.
11373
f5385255
SM
11374 * font.c (font_delete_unmatched): Fix previous change.
11375 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
11376
113772008-10-09 Martin Rudalics <rudalics@gmx.at>
11378
11379 * frame.c (Fraise_frame): On text-only terminals select frame in
11380 order to make it visible. (Bug#1061)
11381
113822008-10-08 Chong Yidong <cyd@stupidchicken.com>
11383
11384 * fontset.c (fontset_find_font): Check frame validity.
11385
113862008-10-07 Chong Yidong <cyd@stupidchicken.com>
11387
a9b555d3 11388 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
11389 (xg_display_close): Allow Emacs to close all displays (bug#985).
11390
113912008-10-06 Andreas Schwab <schwab@suse.de>
11392
f5385255 11393 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
11394
113952008-10-06 Chong Yidong <cyd@stupidchicken.com>
11396
f5385255 11397 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 11398
a9b555d3 11399 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
11400
11401 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11402 during initialization.
11403
114042008-10-04 Eli Zaretskii <eliz@gnu.org>
11405
11406 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11407 whole thing on MSDOS frames as well as on a TTY.
11408
11409 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11410 well as for TTY.
11411 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11412 well as on a TTY.
11413
11414 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11415 as well as for TTY.
11416
11417 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11418
11419 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11420 MSDOS frames as well.
11421
114222008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11423
11424 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11425 correct arguments.
b71ac3dd 11426 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
11427
114282008-10-03 Glenn Morris <rgm@gnu.org>
11429
11430 * emacs.c (USAGE1): Add --daemon.
11431
114322008-10-02 Eli Zaretskii <eliz@gnu.org>
11433
11434 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11435 100, so it's in percents as advertised.
11436
114372008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11438
11439 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11440 (ns_output.current_cursor, ns_output.desired_cursor)
11441 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11442 (FRAME_NEW_CURSOR_COLOR): Remove.
11443
11444 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 11445 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
11446 enumeration (HOLLOW_BOX_CURSOR, etc.).
11447
11448 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11449 (draw_window_cursor): Simplify code.
f5385255
SM
11450 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11451 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 11452 updates manually.
a9b555d3
JB
11453 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11454 Use core Emacs cursor types.
aac0c6e3 11455
b8ff72fa 11456 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
11457
114582008-10-02 Martin Rudalics <rudalics@gmx.at>
11459
11460 * process.c (Faccept_process_output): Fix doc-string.
11461
114622008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11463
11464 * gmalloc.c (__sbrk): Also define for uClibc.
11465
11466 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11467 for uClibc.
11468
114692008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11470
11471 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11472 styles.
11473 (nsfont_open): Reenable the cache.
11474
114752008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11476
11477 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11478 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11479
114802008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11481
11482 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11483 a suspended terminal.
11484
114852008-09-30 Michael Albinus <michael.albinus@gmx.de>
11486
11487 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11488
114892008-09-30 Eli Zaretskii <eliz@gnu.org>
11490
11491 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11492
114932008-09-30 Chong Yidong <cyd@stupidchicken.com>
11494
11495 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11496 in a continued line coincides with a line beginning.
11497
114982008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11499
11500 * nsfont.m (nsfont_trait_distance): Fix bug.
11501 (nsfont_list): Return a list rather than a vector (syncs with Handa
11502 changes of 2008-05-14).
11503 (nsfont_open): Improve logging.
11504
115052008-09-29 Andreas Schwab <schwab@suse.de>
11506
11507 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11508
115092008-09-28 Martin Rudalics <rudalics@gmx.at>
11510
11511 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11512 name as char-resolve-modifiers.
11513 Reported by: Markus Triska <markus.triska@gmx.at>
11514
115152008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11516
11517 * dispnew.c (init_display): Return earlier when running as a daemon.
11518
115192008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11520
11521 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11522
115232008-09-27 Eli Zaretskii <eliz@gnu.org>
11524
11525 * composite.c (Fcomposition_get_gstring)
11526 (Fcompose_region_internal, Fcompose_string_internal)
11527 (Ffind_composition_internal): Doc fix.
11528 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11529 (syms_of_composite) <auto-composition-function>: Doc fix.
11530 (syms_of_composite) <composition-function-table>: Doc fix.
11531
115322008-09-25 Chong Yidong <cyd@stupidchicken.com>
11533
11534 * search.c (wordify): New argument for lax word-ends.
11535 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11536
115372008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11538
11539 * lisp.h (is_daemon): Declare.
11540 * dispnew.c (init_display): Do not try to initialize the terminal
11541 when running as a daemon.
11542
115432008-09-22 Chong Yidong <cyd@stupidchicken.com>
11544
11545 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11546 x_display_pixel_height.
11547
115482008-09-22 Martin Rudalics <rudalics@gmx.at>
11549
11550 * undo.c (record_point): Don't call Fundo_boundary for first
11551 change. (Bug#731)
11552
115532008-09-22 Juanma Barranquero <lekktu@gmail.com>
11554
11555 * emacs.c (Fdaemonp): Doc fix.
11556
115572008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11558
11559 * emacs.c (main): Place #ifdef in the proper place.
11560
115612008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11562
11563 * emacs.c (standard_args): Add --daemon.
11564 (main): Disconnect from the terminal when --daemon is passed.
11565 (is_daemon): New variable.
11566 (Fdaemonp): New function.
11567 (syms_of_emacs): Defsubr it.
11568
115692008-09-20 Chong Yidong <cyd@stupidchicken.com>
11570
11571 * xdisp.c (get_next_display_element): Handle string display
11572 correctly when checking for the end of a box run.
11573
115742008-09-20 Glenn Morris <rgm@gnu.org>
11575
11576 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11577 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11578 (Frename_file): Avoid copying to trash if a rename involves
11579 a delete. (Bug#964).
11580
115812008-09-20 Eli Zaretskii <eliz@gnu.org>
11582
11583 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11584 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11585 frames as well as termcap frames.
11586 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11587 get_named_tty.
11588
115892008-09-19 Eli Zaretskii <eliz@gnu.org>
11590
11591 * process.c (procfs_system_process_attributes): Fix cmdline in
11592 case /proc/PID/cmdline is empty.
11593
11594 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11595 x_display_pixel_height.
11596
115972008-09-19 Juanma Barranquero <lekktu@gmail.com>
11598
11599 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11600
11601 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11602 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11603
116042008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11605
11606 * dispextern.h (struct it): Move line_wrap away from the middle of
11607 bitfields. Move voffset in struct iterator_stack_entry after the
11608 bitfields. Move tab_width near after another short.
11609
116102008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11611
11612 * frame.h (struct frame): Move alpha from the middle of bitfields.
11613
11614 * window.h (struct window): Move frozen_window_start_p after the
11615 rest of the bitfields to reduce padding.
11616
116172008-09-18 Chong Yidong <cyd@stupidchicken.com>
11618
11619 * xterm.h (x_display_info): Remove `height' and `width' members.
11620
11621 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11622
11623 * w32term.h (w32_display_info): Remove `height', `width',
11624 `height_in', and `width_in' members.
11625
b8ff72fa
SM
11626 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11627 New functions.
aac0c6e3
MR
11628 (x_calc_absolute_position): Use them.
11629 (x_term_init): Omit removed `height' and `width' members.
11630
b8ff72fa
SM
11631 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11632 New functions.
aac0c6e3
MR
11633 (w32_read_socket, x_calc_absolute_position): Use them.
11634 (w32_initialize_display_info, w32_term_init): Omit removed members
11635 of w32_display_info.
11636
b8ff72fa
SM
11637 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11638 New functions.
11639 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 11640
b8ff72fa
SM
11641 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11642 New functions.
aac0c6e3
MR
11643 (x_calc_absolute_position): Use them.
11644 (x_term_init): Omit removed `height' and `width' members.
11645
11646 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
11647 (compute_tip_xy):
11648 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
11649 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11650 x_display_pixel_width.
11651
116522008-09-18 Kenichi Handa <handa@m17n.org>
11653
11654 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11655 (composition_compute_stop_pos): Fix handling of static composition.
11656 (Fcomposition_get_gstring): Check FROM and TO at first.
11657
116582008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11659
46e722a9 11660 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
11661 mixup (YAILOM).
11662
116632008-09-17 Chong Yidong <cyd@stupidchicken.com>
11664
11665 * indent.c (Fvertical_motion): Use position reported by iterator
11666 instead of PT for determining screen motion (bug#943).
11667
116682008-09-17 Romain Francoise <romain@orebokech.com>
11669
11670 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11671
116722008-09-17 Kenichi Handa <handa@m17n.org>
11673
11674 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11675
11676 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11677 if necessary.
11678
116792008-09-16 Kenichi Handa <handa@m17n.org>
11680
11681 * coding.c (make_conversion_work_buffer): Avoid calling
11682 Fget_buffer_create if it is not necessary.
11683
116842008-09-15 Martin Rudalics <rudalics@gmx.at>
11685
11686 * window.c (Fselect_window): Don't update window_select_count and
11687 use_time when norecord is not nil.
11688
116892008-09-14 Kenichi Handa <handa@m17n.org>
11690
11691 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11692 specpdl_ptr.
11693
116942008-09-12 Kenichi Handa <handa@m17n.org>
11695
11696 * indent.c (scan_for_column): Don't handle automatic composition
11697 if the current buffer is not associated with a window.
11698
11699 * composite.c (composition_reseat_it): If the current buffer is
11700 not associated with a window, ignore the automatic composition.
11701 (find_automatic_composition): Likewise.
11702
117032008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11704
11705 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11706 (Fgpm_mouse_stop): Use it.
11707 * termhooks.h (close_gpm): Declare.
11708 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11709 connection if Gpm_GetEvent fails.
11710
11711 * window.c (set_window_buffer): Always preserve current-buffer.
11712
117132008-09-12 Glenn Morris <rgm@gnu.org>
11714
11715 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11716
117172008-09-11 Glenn Morris <rgm@gnu.org>
11718
11719 * charset.c (charset-map-path): Doc fix.
11720
117212008-09-10 Kenichi Handa <handa@m17n.org>
11722
11723 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11724
11725 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11726 compose a grapheme cluster with the preceding base glyph.
11727
11728 * composite.c (composition_compute_stop_pos): Fix previous change.
11729 Reset cmp_it->id to -1 at first.
11730
117312008-09-10 Glenn Morris <rgm@gnu.org>
11732
11733 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11734
117352008-09-09 Chong Yidong <cyd@stupidchicken.com>
11736
11737 * keyboard.c (read_key_sequence): Reapply translation maps when
11738 switching keyboards.
11739
117402008-09-09 Kenichi Handa <handa@m17n.org>
11741
11742 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11743 characters.
11744
11745 * composite.c (FORWARD_CHAR): Fix calculation
11746 of (POSITION).pos_byte.
11747 (composition_compute_stop_pos): Limit the search of composition to
11748 at most 500 characters ahead. If we reach the limit or find a
11749 newline, set cmp_it->ch to -2 and return 0.
11750 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11751
117522008-09-08 Kenichi Handa <handa@m17n.org>
11753
11754 * indent.c (Fvertical_motion): Be sure to set
11755 it_overshoot_expected if it.cmp_it.id is non-negative.
11756
117572008-09-07 Andreas Schwab <schwab@suse.de>
11758
11759 * callproc.c (Fcall_process): Don't hold references to string data
11760 across garbage collection. Move initialisation of new_argv down
11761 to avoid compiler bug.
11762
117632008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11764
11765 * process.c (Fsystem_process_attributes): Doc fix.
11766
117672008-09-07 Chong Yidong <cyd@stupidchicken.com>
11768
11769 * callproc.c (Fcall_process): Canonicalize current directory name.
11770
11771 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11772 iterator advances to the next line if the current line ends in a
11773 continued tab.
11774
117752008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11776
11777 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11778 member to point to cmp_from.
11779
11780 * xdisp.c: Doc fix for references to gidx data member.
11781
117822008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11783
11784 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11785
117862008-09-07 Kenichi Handa <handa@m17n.org>
11787
11788 * composite.c (FORWARD_CHAR): Check STOP after
11789 incrementing (POSITION).pos.
11790
117912008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11792
11793 * process.c (Fsystem_process_attributes): Doc fix.
11794
117952008-09-06 Chong Yidong <cyd@stupidchicken.com>
11796
11797 * keyboard.c (Ftop_level): Doc fix.
11798
117992008-09-06 Eli Zaretskii <eliz@gnu.org>
11800
11801 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11802 minibuffer, don't let lower part of menu invade the echo area.
11803
11804 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11805 "char *q" to access menu text and advance through it. Revert the
11806 change that displayed ">" instead of ASCII character 0x10.
11807
118082008-09-05 Eli Zaretskii <eliz@gnu.org>
11809
11810 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11811 toggle boxes and radio buttons on MS-DOS as well.
11812
118132008-09-05 Kenichi Handa <handa@m17n.org>
11814
11815 * composite.c (autocmp_chars): Check lookback count.
11816 (composition_compute_stop_pos): Set cmp_it->lookback.
11817 (composition_reseat_it): Check lookback count.
11818 (struct position_record): New struct.
11819 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11820 (find_automatic_composition): New function.
11821 (composition_adjust_point): Use find_automatic_composition.
11822
11823 * dispextern.h (struct composition_it): New member lookback.
11824
118252008-09-02 Chong Yidong <cyd@stupidchicken.com>
11826
11827 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11828 if moving by a single line.
11829
118302008-09-02 Andreas Schwab <schwab@suse.de>
11831
11832 * xterm.c (x_delete_display): Fix merge error.
11833
11834 * fileio.c (Fexpand_file_name): Remove unused variables.
11835
118362008-09-02 Eli Zaretskii <eliz@gnu.org>
11837
11838 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11839 storage on all platforms, not just on DOS_NT.
11840
118412008-09-02 Jason Rumney <jasonr@gnu.org>
11842
b8ff72fa
SM
11843 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11844 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
11845
118462008-09-01 Chong Yidong <cyd@stupidchicken.com>
11847
11848 * xfaces.c (Finternal_set_alternative_font_family_alist)
11849 (Finternal_set_alternative_font_registry_alist): Properly copy
11850 entire alist structure.
11851
118522008-09-01 Kenichi Handa <handa@m17n.org>
11853
d66c0241 11854 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 11855 representative chars of the script is a vector.
d66c0241
JB
11856 (ftfont_list): Handle the case where the representative chars of
11857 the script is a vector.
aac0c6e3
MR
11858
11859 * character.c (syms_of_character): Docstring of
11860 script-representative-chars fixed.
11861
118622008-08-31 Eli Zaretskii <eliz@gnu.org>
11863
11864 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11865 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11866 the menu. Allocate larger buffer for `text', to account for
11867 possible ^C characters.
11868
118692008-08-31 Martin Rudalics <rudalics@gmx.at>
11870
11871 * xdisp.c (prepare_menu_bars): Don't call
11872 Vwindow_size_change_functions with arg Qt.
11873
118742008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11875
11876 * font.h (font_range):
11877 * fileio.c (report_file_error):
46e722a9
SM
11878 * composite.c (composition_update_it): Yet another int/Lisp_Object
11879 mixup (YAILOM).
aac0c6e3
MR
11880
118812008-08-30 Glenn Morris <rgm@gnu.org>
11882
11883 * data.c (Fmake_variable_frame_local): Doc fix.
11884
11885 * frame.c (Fmodify_frame_parameters): Doc fix.
11886
118872008-08-30 Eli Zaretskii <eliz@gnu.org>
11888
11889 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11890 needed by GetTokenInformation.
11891 (w32_system_process_attributes): Check return values of all system
11892 APIs.
11893
11894 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11895 only when the state changes.
11896 (IT_update_begin, IT_update_end): Add termscript trace.
11897
11898 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11899 clipboard is unavailable. Set dst to NULL if it doesn't point to
11900 malloc'ed data.
11901 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11902 passing random values to xfree.
11903
11904 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11905 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11906
119072008-08-29 Jason Rumney <jasonr@gnu.org>
11908
11909 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11910
119112008-08-29 Eli Zaretskii <eliz@gnu.org>
11912
11913 * composite.c (fill_gstring_body): Avoid compiler warnings.
11914
11915 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11916 LGLYPH_SET_CODE to avoid compiler warnings.
11917
2ae37cf0 11918 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11919
11920 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11921
11922 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11923 LGLYPH_SET_CODE.
11924
119252008-08-29 Kenichi Handa <handa@m17n.org>
11926
11927 * fileio.c (report_file_error): Don't downcase the first character
11928 of errstring if it is still unibyte.
11929
119302008-08-29 Kenichi Handa <handa@m17n.org>
11931
11932 These changes are to re-implement the automatic composition so
11933 that it doesn't use text properties.
11934
11935 * Makefile.in (ftfont.o): Depend on composite.h.
11936 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11937
11938 * character.h (Vunicode_category_table): Extern it.
11939
11940 * character.c (Vunicode_category_table): New variable.
11941 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11942
11943 * chartab.c (optimize_sub_char_table): Perform more greedy
11944 optimization.
11945
b8ff72fa
SM
11946 * composite.h (enum composition_method):
11947 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
11948 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11949 (Vcomposition_function_table): Extern it.
11950 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11951 (composition_gstring_put_cache, composition_gstring_from_id)
11952 (composition_gstring_p, composition_gstring_width)
11953 (composition_compute_stop_pos, composition_reseat_it)
11954 (composition_update_it, composition_adjust_point): Extern them.
11955 (Fcomposition_get_gstring): EXFUN it.
11956
d66c0241 11957 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
11958 (Vcomposition_function_table)
11959 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
11960 (gstring_hash_table, gstring_work, gstring_work_headers):
11961 New variables.
aac0c6e3
MR
11962 (gstring_lookup_cache, composition_gstring_put_cache)
11963 (composition_gstring_from_id, composition_gstring_p)
11964 (composition_gstring_width, fill_gstring_header)
11965 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11966 (composition_reseat_it, composition_update_it)
b8ff72fa 11967 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
11968 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11969 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 11970 Defsubr composition_get_gstring.
aac0c6e3
MR
11971
11972 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11973 cmp_id.
11974 (struct glyph_string): Delete the member gidx. New members
11975 cmp_id, cmp_from, and cmp_to.
11976 (enum it_method): Delete GET_FROM_COMPOSITION.
11977 (struct composition_it): New struct.
11978 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11979 Delete c, len, cmp_id, cmp_len in u.comp.
11980
11981 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 11982 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 11983 (enum lglyph_indices): Likewise.
b8ff72fa 11984 (font_range): Adjust extern.
aac0c6e3
MR
11985 (font_fill_lglyph_metrics): Extern it.
11986
11987 * font.c (QCf): New variable.
11988 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11989 (font_prepare_composition): Delete this function.
11990 (font_range): Type and arguments changed.
11991 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11992 (font_fill_lglyph_metrics): New function.
b8ff72fa 11993 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 11994 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
11995 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11996 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
11997
11998 * fontset.h (font_for_char): Extern it.
11999
12000 * fontset.c (font_for_char): New function.
12001
12002 * ftfont.c: Include composite.h.
12003 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 12004 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
12005
12006 * indent.c: Include composite.h and dispextern.h.
12007 (check_composition): Delete this function.
12008 (scan_for_column): Handle composition by
12009 composition_compute_stop_pos, composition_reseat_it, and
12010 composition_update_it.
12011 (compute_motion): Likewise.
12012 (Fvertical_motion): Fix checking of composition.
12013
12014 * keyboard.c (adjust_point_for_property): Check composition by
12015 composition_adjust_point.
12016
b8ff72fa 12017 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
12018 struct glyph_string.
12019
b8ff72fa
SM
12020 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12021 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
12022 struct glyph.
12023 (produce_composite_glyph): Likewise.
12024
b8ff72fa
SM
12025 * w32term.c (x_draw_composite_glyph_string_foreground):
12026 Adjust for the change of struct glyph_string.
aac0c6e3
MR
12027 (x_draw_glyph_string): Likewise.
12028
12029 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12030 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12031
12032 * xdisp.c: Include font.h.
12033 (it_props): Delete the entry for Qauto_composed.
12034 (init_iterator): Initialize it->cmp_it.id to -1.
12035 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 12036 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
12037 (handle_auto_composed_prop): Delete it.
12038 (handle_composition_prop): Handle only static composition.
12039 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12040 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 12041 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
12042 (pop_it): Likewise.
12043 (get_next_element): Delete next_element_from_composition.
12044 (CHAR_COMPOSED_P): New macro.
12045 (get_next_display_element): For automatic composition, get a face
12046 from the font in the glyph-string.
12047 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 12048 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
12049 (next_element_from_string): Check if the character at the current
12050 position is composed by CHAR_COMPOSED_P.
12051 (next_element_from_buffer): Likewise.
d66c0241
JB
12052 (next_element_from_composition): Adjust for the change of struct it.
12053 Update it->cmp_it.
b8ff72fa
SM
12054 (dump_glyph): Adjust for the change of struct glyph.
12055 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
12056 it and struct glyph. Don't handle automatic composition here.
12057 (fill_gstring_glyph_string): New function.
12058 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 12059 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
12060 (BUILD_GSTRING_GLYPH_STRING): New macro.
12061 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12062 automatic composition.
b8ff72fa 12063 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 12064 struct glyph.
b8ff72fa 12065 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 12066
b8ff72fa 12067 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
12068 the change of struct glyph_string.
12069 (x_draw_glyph_string): Likewise.
12070
120712008-08-29 Glenn Morris <rgm@gnu.org>
12072
12073 * buffer.c (word-wrap): Doc fix.
12074 * xdisp.c (truncate-partial-width-windows): Doc fix.
12075 Increase default to 50.
12076
120772008-08-29 Chong Yidong <cyd@stupidchicken.com>
12078
12079 * xdisp.c (update_tool_bar_unwind): New function.
12080 (update_tool_bar): Temporarily set selected frame before building
12081 tool-bar items.
12082
120832008-08-28 Michael Albinus <michael.albinus@gmx.de>
12084
12085 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12086 snprintf, respectively.
12087 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12088
120892008-08-28 Chong Yidong <cyd@stupidchicken.com>
12090
12091 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12092 LDFLAGS to GNUstep CC invocation.
12093
120942008-08-27 Chong Yidong <cyd@stupidchicken.com>
12095
12096 * indent.c (Fvertical_motion): Revert last change. Handle the
12097 general case where we are moving forward, and PT spans multiple
12098 screen lines.
12099
12100 * eval.c (find_handler_clause): Temporarily increase
12101 max-lisp-eval-depth while printing the backtrace buffer, to
12102 guarantee that help-mode code can run.
12103
121042008-08-27 Eli Zaretskii <eliz@gnu.org>
12105
12106 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12107 colors under -rv.
12108 (IT_set_frame_parameters): Don't swap foreground and background
12109 colors if `(reverse . t)' is present in the frame properties.
12110 (internal_terminal_init): Call init_frame_faces only for the
12111 initial frame.
12112
121132008-08-27 Andreas Schwab <schwab@suse.de>
12114
12115 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12116
121172008-08-27 Andreas Schwab <schwab@suse.de>
12118
12119 * search.c (search_buffer): Set char_base to zero only at the end.
12120
121212008-08-27 Kenichi Handa <handa@m17n.org>
12122
b8ff72fa 12123 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
12124
121252008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12126
12127 * xterm.c (x_term_init): Temporarily hide the partially
12128 initialized terminal while calling vendor-specific-keysyms.
12129
121302008-08-26 Eli Zaretskii <eliz@gnu.org>
12131
12132 * msdos.c (internal_terminal_init): Most initializations done only
12133 once, especially initial_screen_colors[] and termscript open.
12134
121352008-08-26 Chong Yidong <cyd@stupidchicken.com>
12136
12137 * eval.c (Fcondition_case): Doc fix.
12138
12139 * widgetprv.h (EmacsFramePart): Change font member to the new font
12140 struct.
12141
12142 * widget.c: Include character.h and font.h for XSETFONT.
12143 (setup_frame_gcs): Compute X font id from font struct, just once.
12144
121452008-08-26 Eli Zaretskii <eliz@gnu.org>
12146
12147 * term.c (get_named_tty): Fix last change.
12148
121492008-08-26 Chong Yidong <cyd@stupidchicken.com>
12150
12151 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 12152 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
12153
121542008-08-25 Eli Zaretskii <eliz@gnu.org>
12155
12156 * frame.c (do_switch_frame): Mark previously displayed frame as
12157 obscured for FRAME_MSDOS_P frames as well.
12158
121592008-08-24 Eli Zaretskii <eliz@gnu.org>
12160
12161 * frame.c (make_terminal_frame): Initialize f->terminal,
12162 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12163 Set the top frame to newly created frame.
12164 (Fmake_terminal_frame): Reuse the_only_display_info.
12165
12166 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12167 estimating available memory.
12168
b97439ce 121692008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
12170
12171 * nsterm.m (ns_draw_window_cursor): Don't call
12172 NSDisableScreenUpdates and NSEnableScreenUpdates on
12173 non-NS_IMPL_COCOA systems.
12174
121752008-08-23 Andreas Schwab <schwab@suse.de>
12176
12177 * process.c (procfs_system_process_attributes): Fix use of
12178 uninitialized variables.
12179
121802008-08-23 Eli Zaretskii <eliz@gnu.org>
12181
12182 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12183
12184 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12185 calling tty-set-up-initial-frame-faces.
12186
b8ff72fa
SM
12187 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12188 Allow MSDOS frames along with X frames.
aac0c6e3
MR
12189
12190 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12191 addition to output_termcap.
12192
12193 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12194
12195 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12196 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12197 highlight.
12198
12199 * process.c [!subprocesses]: Define QCname.
12200 (syms_of_process): Intern and staticpro it.
12201
12202 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
12203 Adjust for changes in encoding/decoding routines.
12204 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
12205 encode_coding and decode_coding.
12206
b8ff72fa 12207 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
12208
12209 * dosfns.c: Include frame.h before termhooks.h.
12210 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12211 variable termscript.
12212
12213 * s/msdos.h (USER_FULL_NAME): Define.
12214 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12215
12216 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12217 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12218 pw->pw_gecos.
12219
12220 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12221 SELECTED_FRAME as additional (1st) argument.
12222 (tty_read_avail_input): Handle output_msdos_raw in
12223 addition to output_termcap.
12224
12225 * msdos.c: Include frame.h before termhooks.h.
12226 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12227 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12228 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12229 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12230 (IT_set_terminal_modes, IT_reset_terminal_modes)
12231 (IT_set_frame_parameters): Use tty->termscript instead of a global
12232 variable termscript.
12233 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12234 global variable terminal_coding. Don't refer to
12235 Vnonascii_translation_table.
12236 (internal_terminal_init): Set Vwindow_system in current_kboard.
12237 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12238 Announce date and time of session start, if termscript is open.
12239 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
12240 term.c:init_tty). Open termscript only of not already open.
12241 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
12242 here instead of dos_ttraw. Don't initialize display if this is an
12243 initial tty. Don't set FRAME_FONT.
12244 (Vwindow_system_version): Bump to 23.
12245 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12246 is available, set up mouse_position_hook.
12247 (dos_ttraw, IT_set_terminal_modes): If called with initial
12248 terminal, do nothing.
12249 (IT_set_frame_parameters): Handle the Qtty_type frame
12250 parameter by calling internal_terminal_init.
12251 (dos_set_window_size, show_mouse_face)
12252 (clear_mouse_face, IT_note_mode_line_highlight)
12253 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12254 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12255 (initialize_msdos_display): New function.
12256 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12257 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12258 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12259 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 12260 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
12261 (request_sigio, unrequest_sigio): Don't define, now defined on
12262 sysdep.c.
12263 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12264
12265 * term.c [MSDOS]: Include msdos.h.
12266 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12267 conditional to DOS_NT. Allow only one call to this function in a
12268 session. Don't allocate a new struct tty_display_info; instead,
12269 reuse the_only_display_info. Call get_tty_size to get screen
12270 dimensions. Call init_baud_rate to set bad_rate.
12271 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12272 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 12273 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
12274 (get_tty_terminal, get_named_tty, Ftty_type)
12275 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12276 output_termcap.
b8ff72fa
SM
12277 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12278 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 12279 only when subprocesses are supported.
aac0c6e3
MR
12280
12281 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12282 f->output_data.x.
12283 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12284 terminal devices.
12285
5582fbc7 12286 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
12287 x_output.
12288 (FRAME_FONT): Use output_data.tty.
12289 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
12290 (struct x_display_info): Rename from display_info. Update all users in
12291 msdos.c.
aac0c6e3 12292 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 12293 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
12294 (dos_ttraw): Update prototype.
12295
12296 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12297 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12298
122992008-08-23 Jason Rumney <jasonr@gnu.org>
12300
12301 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12302 (fn_TIFFSetDirectory): New library function used.
12303 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12304 (tiff_load): Use :index to select among multiple images. Set count
12305 property when multiple images exist.
12306 (gif_format): Use :index, not :image.
12307
123082008-08-23 Chong Yidong <cyd@stupidchicken.com>
12309
12310 * xdisp.c (try_scrolling): Check INT_MAX instead of
12311 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12312 to obtain INT_MAX.
12313
123142008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12315
12316 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12317
123182008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12319
12320 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12321 GNUstep library location.
12322
123232008-08-21 Chong Yidong <cyd@stupidchicken.com>
12324
12325 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12326 before using it.
12327
12328 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12329
123302008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12331
12332 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12333 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12334 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12335 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12336 (EmacsApp-cursor_blink_handler): Remove declaration.
12337 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12338 match 01 Feb 2008 changes in xterm.c.
12339 (ns_read_socket): Add cast to avoid warning.
12340 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12341 GNUstep.
12342
123432008-08-20 Chong Yidong <cyd@stupidchicken.com>
12344
12345 * xselect.c (x_get_foreign_selection): Return nil if desired
12346 selection could not be obtained, instead of signalling an error.
12347
123482008-08-20 David Reitter <david.reitter@gmail.com>
12349
12350 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12351 * nsterm.m: Remove ns-specific code for cursor blinking.
12352 (ns_draw_window_cursor): Clear cursor properly rather than
12353 redrawing the area. Respect width of bar cursors.
12354 These changes enable the use of generic blink-cursor-mode and
12355 generic cursor types in NS and support smooth cursor movements (do
12356 not blink off after command).
12357 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12358 Nextstep, too.
12359
123602008-08-19 Kenichi Handa <handa@m17n.org>
12361
12362 * font.c (Vfont_log_deferred): New variable.
12363 (font_add_log): Check Vfont_log_deferred.
12364 (font_deferred_log): New function.
12365
12366 * font.h (font_deferred_log): Extern it.
12367
12368 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12369 for sorting.
12370 (face_for_char): Use deferred log.
12371
123722008-08-18 Kenichi Handa <handa@m17n.org>
12373
12374 * fontset.c (face_for_char): Add font log.
12375
12376 * font.c (font_add_log): Add the font properties :script, :lang,
12377 and :otf in the log.
12378
123792008-08-17 Chong Yidong <cyd@stupidchicken.com>
12380
12381 * xdisp.c: Remove dead code.
12382 (handle_invisible_prop, next_overlay_string): Defer call to
12383 setup_for_ellipsis.
12384 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12385
123862008-08-15 Chong Yidong <cyd@stupidchicken.com>
12387
12388 * xfaces.c (lookup_derived_face): Properly handle possible zero
12389 return value of get_lface_attributes.
12390 (merge_faces): Don't tell lookup_derived_face to signal an error
12391 if face is not found.
12392
12393 * dired.c (Fdirectory_files): Doc fix.
12394
12395 * process.c (make_process): Initialize kill_without_query struct
12396 member.
12397
123982008-08-15 Eli Zaretskii <eliz@gnu.org>
12399
12400 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12401 Alternative calculation of totphys for Visual Studio 6.
12402
12403 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12404
12405 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12406 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12407 All users changed.
12408 (stat): Only root directory passed to GetDriveType. Allow RAM
12409 disk as well as local fixed disk when w32-get-true-file-attributes
12410 is set to `local'.
12411 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12412 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12413 (w32_cached_id, w32_add_to_cache): New functions.
12414 (get_name_and_id): Look account names in the cache before calling
12415 lookup_account_sid.
12416 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12417 New initialization flags.
12418 (globals_of_w32): Initialize them to zero.
12419 (w32_system_process_attributes): Use w32_cached_id and
12420 w32_add_to_cache.
12421
124222008-08-14 Lawrence Mitchell <wence@gmx.li>
12423
12424 * lread.c (Fread_char, Fread_char_exclusive): If no character
12425 event is read before timeout is reached, return nil, rather than
12426 converting to a number.
12427
124282008-08-14 Chong Yidong <cyd@stupidchicken.com>
12429
12430 * fns.c (use_dialog_box): Doc fix.
12431
12432 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12433 on OS X.
12434
124352008-08-13 Chong Yidong <cyd@stupidchicken.com>
12436
12437 * frame.c (Qns_parse_geometry): New var.
12438 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12439
124402008-08-11 Chong Yidong <cyd@stupidchicken.com>
12441
12442 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12443 space character in calculating tabs.
12444
124452008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12446
12447 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12448
124492008-08-10 Glenn Morris <rgm@gnu.org>
12450
12451 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12452 silence gcc "limited range of data type" warnings in some
12453 make_fixnum_or_float calls.
12454
124552008-08-09 Eli Zaretskii <eliz@gnu.org>
12456
12457 * w32.c (w32_system_process_attributes): If the process does not
12458 exist, return nil.
12459
12460 * w32.c: Include thelp32.h, psapi.h and coding.h.
12461 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12462 declarations.
12463 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12464 (Process32Next_Proc): New typedefs.
12465 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12466 (g_b_init_process32_next, g_b_init_open_thread_token)
12467 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12468 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12469 (g_b_init_get_process_working_set_size)
12470 (g_b_init_global_memory_status_ex): New static variables.
12471 (globals_of_w32): Initialize them.
12472 (create_toolhelp32_snapshot, process32_first, process32_next)
12473 (open_thread_token, impersonate_self, revert_to_self)
12474 (get_process_memory_info, get_process_working_set_size)
12475 (global_memory_status, global_memory_status_ex): New wrapper
12476 functions.
12477 (w32_list_system_processes, w32_system_process_attributes)
12478 (enable_privilege, restore_privilege, ltime, process_times):
12479 New functions.
12480 (convert_time_raw): New function.
12481 (convert_time): Remove conversion of FILETIME into time in 100
12482 nsec units, call convert_time_raw instead.
12483
12484 * process.h (w32_list_system_processes, w32_system_process_attributes):
12485 Add prototypes.
12486 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12487 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12488 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12489 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12490
12491 * process.c (Fsystem_process_attributes): Doc fix.
12492
124932008-08-08 Chong Yidong <cyd@stupidchicken.com>
12494
12495 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12496 a continued multi-char glyph; if so, advance to the actual glyph.
12497
124982008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12499
12500 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12501
12502 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12503 (.m.o): Use it.
12504 * config.in: Regenerate.
12505
125062008-08-07 Chong Yidong <cyd@stupidchicken.com>
12507
12508 * xdisp.c (redisplay_window): Revert last change.
12509 (try_window): Check bottom scroll margin too.
12510
125112008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12512
12513 * config.in: Regenerate.
12514
12515 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12516 -list-load-path-shadows'.
12517 (nsgui.h): Reduce number of things depending on it.
12518
125192008-08-06 Chong Yidong <cyd@stupidchicken.com>
12520
12521 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12522 instead of window-end which does the wrong thing at eob.
12523 (try_cursor_movement): Minor optimization.
12524 (redisplay_window): If scroll margin is defined, don't assume
12525 window doesn't need scrolling.
12526
125272008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12528
12529 * config.in: Regenerate.
12530
12531 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12532 (mostlyclean): Don't delete *.d under NS.
12533
12534 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12535
125362008-08-06 Kenichi Handa <handa@m17n.org>
12537
12538 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12539
125402008-08-06 Andreas Schwab <schwab@suse.de>
12541
12542 * config.in: Regenerate.
12543
125442008-08-05 Chong Yidong <cyd@stupidchicken.com>
12545
12546 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12547 forcing a window start.
12548
12549 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12550 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12551
125522008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12553
12554 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12555 argument.
12556
125572008-08-05 Juanma Barranquero <lekktu@gmail.com>
12558
12559 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12560 <scroll-down-aggressively, before-change-functions>:
12561 <after-change-functions>: Reflow docstrings.
12562
125632008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 12564 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
12565
12566 Dock menu customization, based on a patch by Ken Raeburn, plus some
12567 other fixes.
12568 * nsmenu.m (dockMenu): New variable.
12569 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12570
12571 * nsterm.h (dockMenu): Declare.
12572
12573 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12574 (ns_term_init): Initialize dockMenu.
12575 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12576 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12577 left.
12578
12579 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12580
125812008-08-04 Chong Yidong <cyd@stupidchicken.com>
12582
12583 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12584
12585 * config.in: Regenerate.
12586
125872008-08-04 Seiji Zenitani <zenitani@mac.com>
12588
12589 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12590
125912008-08-04 Chong Yidong <cyd@stupidchicken.com>
12592
12593 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12594
125952008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12596
12597 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12598
12599 * keyboard.h: Comment an #endif.
12600
12601 * lisp.h (have_menus_p): Adjust comment.
12602
12603 * menu.c (find_and_return_menu_selection): Fix comparison with
12604 client_data.
12605
12606 * nsmenu.m (popup_activated_flag): New variable.
12607 (popup_activated): New function.
12608 (menu-or-popup-active-p): New exported lisp definition.
12609 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12610 when popup done.
12611 (ns_popup_dialog): Set popup_activated_flag.
12612
12613 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12614 version for GNUstep (handled by conditional typedef in nsterm.m).
12615 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12616 in rgb.txt).
12617
12618 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12619
12620 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12621
12622 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12623
12624 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12625 shortcircuit if popup_activated like GTK and X toolkit.
12626
12627 * m/inter386.h: Change DARWIN to DARWIN_OS.
12628
12629 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12630 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12631 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12632 comment on NO_SOCK_SIGIO.
12633
126342008-08-03 Chong Yidong <cyd@stupidchicken.com>
12635
12636 * nsterm.m (windowDidResize): Remove stopModal call.
12637
126382008-08-03 Andreas Schwab <schwab@suse.de>
12639
12640 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12641 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12642
126432008-08-02 Chong Yidong <cyd@stupidchicken.com>
12644
12645 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12646 Don't use uninitialized pointer variable when using getrlimit.
12647
126482008-08-02 Jason Rumney <jasonr@gnu.org>
12649
12650 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12651
126522008-08-02 Eli Zaretskii <eliz@gnu.org>
12653
12654 * alloc.c (NSTATICS): Bump to 0x640.
12655
12656 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12657
12658 * lisp.h: Add prototype for directory_files_internal.
12659
12660 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12661 New functions.
12662 (syms_of_process): Defsubr them. Add initializations for various
12663 Q* symbols used in procfs_system_process_attributes.
12664 (procfs_list_system_processes, procfs_system_process_attributes)
12665 [HAVE_PROCFS]: New functions.
12666 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12667 (procfs_get_total_memory): New functions.
12668
126692008-08-01 Juanma Barranquero <lekktu@gmail.com>
12670
12671 * xfaces.c (Fx_load_color_file): Fix previous change;
12672 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12673
126742008-08-01 Michael Albinus <michael.albinus@gmx.de>
12675
12676 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12677
126782008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12679
12680 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12681
126822008-08-01 Chong Yidong <cyd@stupidchicken.com>
12683
12684 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12685
12686 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12687 define NSApplicationDelegateReplySuccess.
12688 (EmacsView -converstationIdentifier): Use long instead of
12689 NSInteger for GNUstep, since it doesn't have NSInteger.
12690
12691 * xmenu.c: Revert last change.
12692
12693 * keyboard.h: Fix last change.
12694
126952008-08-01 Juanma Barranquero <lekktu@gmail.com>
12696
12697 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12698 on Windows.
12699
127002008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12701
12702 Warning clearing and clean-up in NS port.
12703 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12704 Add prototypes.
12705 * nsgui.h (FACE_DEFAULT): Remove, unused.
12706 (XGCValues): Change colors to unsigned long.
12707 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12708 nsterm.m.
12709 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12710 (ns_list_fonts): Remove, unused.
12711 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12712 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12713 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12714 (nsfont_draw): Compare face colors to 0, not nil.
12715 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12716 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12717 (-addSubmenuWithTitle:): Use NSMenuItem class.
12718 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12719 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12720 (ns_clip_to_row): Make gc arg a BOOL.
12721 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12722 ns_clip_to_row() call.
12723 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12724 used). Cast FRAME_FONT assignments.
12725 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12726 (ns_string_to_lispmod): Change arg to const char.
12727 (ns_term_init): Use NSMenuItem class.
12728 (EmacsApp -openFile:): Move to different section of file.
12729 (EmacsApp -application:openFiles:): Don't return a value, call
12730 -replyToOpenOrPrint:.
12731 (EmacsView -keyDown:): Fix up cast.
12732 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12733 (EmacsView -menuDown:): Cast tag in call to
12734 find_and_call_menu_selection().
12735 (ns_list_fonts): Remove, unused.
12736 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12737 (ns_fontname_to_xlfd): Make static.
12738 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12739 Remove prototypes (now in keyboard.h).
12740 (next_menubar_widget_id): Remove, unused.
12741 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12742 Remove prototypes (now in keyboard.h).
12743 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12744
127452008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12746
12747 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12748 (floatfns.o): Depend on syssignal.h.
12749 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12750
12751 * systty.h: Fix previous change that removed BSD_TERMIOS.
12752 Add comments to #ifdefs.
12753
127542008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12755
12756 * w32fns.c (w32-load-color-file): Remove.
12757 (x-open-connection): Use renamed Fx_load_color_file.
12758 * xfaces.c (x-load-color-file): Add.
12759 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12760 Emacs.clr.
12761 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12762
127632008-07-31 Michael Albinus <michael.albinus@gmx.de>
12764
12765 * dbusbind.c (Fdbus_call_method_asynchronously)
12766 (Fdbus_method_error_internal): New defuns.
12767 (xd_read_message): Handle also reply messages.
12768 (Vdbus_registered_functions_table): Extend docstring.
12769
127702008-07-31 Juanma Barranquero <lekktu@gmail.com>
12771
12772 * keyboard.c (gobble_input): Fix previous change.
12773
127742008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12775
12776 * bitmaps/README:
12777 * xfns.c:
12778 * termcap.c:
12779 * term.c:
12780 * syswait.h:
12781 * systty.h:
12782 * systime.h:
12783 * syssignal.h:
12784 * sysdep.c:
12785 * process.h:
12786 * process.c:
12787 * print.c:
12788 * ndir.h:
12789 * lread.c:
12790 * keyboard.c:
12791 * getpagesize.h:
12792 * floatfns.c:
12793 * fileio.c:
12794 * emacs.c:
12795 * doc.c:
12796 * dispnew.c:
12797 * dired.c:
12798 * data.c:
12799 * callproc.c:
12800 * buffer.c:
12801 * README:
12802 * Makefile.in:
12803 * s/template.h:
12804 * s/msdos.h:
12805 * m/vax.h: Remove VMS support.
12806 * s/vms.h:
12807 * vlimit.h:
12808 * uaf.h:
12809 * temacs.opt:
12810 * param.h:
12811 * ioctl.h: Remove file.
12812
128132008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12814
12815 * s/ms-w32.h (MULTI_KBOARD): Remove.
12816 * xterm.c:
12817 * xselect.c:
12818 * xfns.c:
12819 * window.c:
12820 * w32term.c:
12821 * w32fns.c:
12822 * terminal.c:
12823 * termhooks.h:
12824 * term.c:
12825 * sysdep.c:
12826 * keyboard.h:
12827 * keyboard.c:
12828 * frame.h:
12829 * frame.c:
12830 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12831 * config.in: Regenerate.
12832
128332008-07-30 Jason Rumney <jasonr@gnu.org>
12834
12835 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12836
12837 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12838 (w32font_open_internal): Get unicode version of textmetrics.
12839 Don't enable or disable glyph indices here.
12840 (w32font_open): Disable use of glyph indices.
12841
12842 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12843
128442008-07-30 Chong Yidong <cyd@stupidchicken.com>
12845
12846 * minibuf.c (Vread_buffer_function): Doc fix.
12847
128482008-07-30 John Paul Wallington <jpw@pobox.com>
12849
12850 * minibuf.c (read_buffer_completion_ignore_case): New var.
12851 (Fread_buffer): Use it.
12852
128532008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12854
12855 * systty.h (sensemode): Remove empty #if. Remove reference to
12856 BSD_TERMIOS, unused.
12857
12858 * sysdep.c: Remove reference to DGUX.
12859 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12860
12861 * config.in: Regenerate.
12862
128632008-07-30 Jason Rumney <jasonr@gnu.org>
12864
12865 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12866
128672008-07-29 Jason Rumney <jasonr@gnu.org>
12868
12869 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12870 is populated.
12871 (uniscribe_encode_char): Always use uniscribe.
12872 Avoid using context if cache is populated.
12873
128742008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12875
12876 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12877 open menu.
12878
12879 * gtkutil.c (menu_nav_ended): Remove.
12880 (create_menus): Remove signal connect for menu_nav_ended.
12881
128822008-07-28 Chong Yidong <cyd@stupidchicken.com>
12883
12884 * xdisp.c (redisplay_window): Check return value of
12885 compute_window_start_on_continuation_line before forcing a window
12886 start.
12887
128882008-07-28 Jason Rumney <jasonr@gnu.org>
12889
12890 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12891
12892 * w32term.c (w32_enable_unicode_output, cleartype_active):
12893 Remove obsolete display options.
12894 (x_draw_glyph_string_background): Don't use old cleartype_active
12895 workaround.
12896 (w32_initialize): Remove cleartype_active initialization.
12897 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12898
128992008-07-28 Andreas Schwab <schwab@suse.de>
12900
12901 * lisp.h (init_weak_hash_tables, syms_of_font)
12902 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12903 (remove_hash_entry): Don't declare.
12904 * eval.c (maybe_call_debugger): Make static and move before use.
12905 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12906 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12907 * xterm.h (x_set_frame_alpha): Declare.
12908
129092008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12910
12911 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12912 (create_menus): Connect selection-done to menu_nav_ended.
12913
129142008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12915
12916 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12917 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12918 parameter with read of 'alpha' one.
12919 (Qns_frame_parameter): Remove.
5582fbc7 12920 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12921 (next-selection-coding-system, Vselection_coding_system)
12922 (Vnext_selection_coding_system): Drop.
12923
129242008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12925
12926 * nsfns.m (do-applescript, do_applescript): Rename to
12927 ns-do-applescript, ns_do_applescript, and move within file.
12928
129292008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12930
12931 Remove support for Mac Carbon.
12932 * mactoolbox.c:
12933 * macterm.h:
12934 * macterm.c:
12935 * macselect.c:
12936 * macmenu.c:
12937 * macgui.h:
12938 * macfns.c:
12939 * mac.c: Remove file.
12940 * s/darwin.h:
12941 * m/intel386.h:
12942 * xfaces.c:
12943 * xdisp.c:
12944 * window.c:
12945 * tparam.c:
12946 * termhooks.h:
12947 * termcap.c:
12948 * term.c:
12949 * syssignal.h:
12950 * sysselect.h:
12951 * sysdep.c:
12952 * process.c:
12953 * lread.c:
12954 * lisp.h:
12955 * keyboard.c:
12956 * image.c:
12957 * fringe.c:
12958 * frame.h:
12959 * frame.c:
12960 * fontset.c:
12961 * font.h:
12962 * font.c:
12963 * fns.c:
12964 * fileio.c:
12965 * emacs.c:
12966 * dispnew.c:
12967 * dispextern.h:
12968 * config.in:
12969 * atimer.c:
2ae37cf0 12970 * Makefile.in: Remove code for Carbon.
aac0c6e3 12971
f0131492 129722008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12973
12974 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12975
129762008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12977
12978 * macterm.h (kCGBitmapByteOrder32Host): New define for
12979 non-universal SDKs.
12980
12981 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12982 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12983
12984 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12985 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12986
129872008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12988
12989 * w32inevt.c: Include dispextern.h.
12990
129912008-07-26 Andreas Schwab <schwab@suse.de>
12992
12993 * print.c (print_object): Fix off-by-one in last change.
12994
129952008-07-25 Juanma Barranquero <lekktu@gmail.com>
12996
12997 * term.c (syms_of_term): Don't initialize default_orig_pair,
12998 default_set_foreground and default_set_background on Windows.
12999
130002008-07-25 Jason Rumney <jasonr@gnu.org>
13001
13002 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13003 ScriptItemize. Clean up return value checking. Remove unused
13004 variables.
13005 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13006 shaping engine.
13007
13008 * w32font.c (w32font_has_char): Handle the case where we can't
13009 determine the script for a character.
13010
130112008-07-25 Chong Yidong <cyd@stupidchicken.com>
13012
13013 * term.c (syms_of_term): Initialize default_orig_pair,
13014 default_set_foreground, and default_set_background.
13015
13016 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13017 clash (bug#86).
13018 (getloadavg): Callers changed.
13019
13020 * image.c (svg_load_image): Fix last change.
13021 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13022 image size is valid. Use g_object_unref instead of deprecated
13023 rsvg_handle_free to free rsvg handle.
13024 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13025
130262008-07-25 Jason Rumney <jasonr@gnu.org>
13027
13028 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13029 surrogates before looking up glyph index.
13030 (w32font_text_extents): Encode as surrogates if falling back to
13031 functions that need UTF-16 wide chars.
13032
13033 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13034 BMP as surrogates before looking up glyph index.
13035
130362008-07-25 Chong Yidong <cyd@stupidchicken.com>
13037
13038 * image.c (svg_load_image): Check for failure in return value of
13039 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13040
130412008-07-25 Jason Rumney <jasonr@gnu.org>
13042
13043 * w32font.c (Fx_select_font): Reverse sense of second arg.
13044
130452008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13046
13047 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13048 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13049
13050 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13051 (PURESIZE): Use it.
13052
130532008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13054
13055 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13056 * m/alpha.h (TEXT_END):
13057 * m/ibmrs6000.h (TEXT_END):
13058 * m/macppc.h (TEXT_END):
13059 * s/darwin.h (TEXT_END):
13060 * s/msdos.h (TEXT_END): Remove, unused.
13061 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13062 * s/cygwin.h: Remove comment.
13063
13064 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13065 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13066 * m/intel386.h (DOT_GLOBAL_START):
13067 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13068 (USG): Remove, file not used on USG platforms.
13069
13070 * Makefile.in (HAVE_X11): Remove empty #else.
13071
130722008-07-24 Andreas Schwab <schwab@suse.de>
13073
13074 * fileio.c (Finsert_file_contents): Properly adjust undo list
13075 after format conversion.
13076
130772008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13078
13079 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13080 (menu_nav_ended): Remove.
13081 (create_menus): Remove signal connect for menu_nav_ended.
13082 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13083 create_menus.
13084 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13085
130862008-07-23 Jason Rumney <jasonr@gnu.org>
13087
13088 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13089 with opened font.
13090 (w32font_open): Set font type to gdi.
13091
13092 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13093
130942008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13095
13096 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13097 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13098 defines it.
13099 * unexec.c (ADDR_CORRECT): Define unconditionally.
13100
13101 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13102
13103 * unexec.c: Remove code depending on !COFF and USG, the file is
13104 not used for such systems.
13105
13106 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13107 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13108 (LD_SWITCH_SYSTEM_1): Remove, update users.
13109
13110 * s/darwin.h (DATA_END):
13111 * m/intel386.h (DATA_END):
13112 * m/ibmrs6000.h (DATA_END):
13113 * m/alpha.h (DATA_END): Remove, unused.
13114
13115 * config.in: Regenerate.
13116 * s/ms-w32.h (subprocesses): Define unconditionally.
13117 * s/template.h (subprocesses): Update comment.
13118 * s/vms.h (subprocesses):
13119 * s/usg5-4.h (subprocesses):
13120 * s/hpux10-20.h (subprocesses):
13121 * s/gnu-linux.h (subprocesses):
13122 * s/cygwin.h (subprocesses):
13123 * s/bsd-common.h (subprocesses):
13124 * s/aix4-2.h (subprocesses):
13125 * s/darwin.h (subprocesses): Do not define, defined by default now.
13126
13127 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13128 Remove all references.
13129 (temacs): Add GNUstep specific ld flags.
13130
13131 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13132 similarly to what X does.
13133
131342008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13135
13136 * nsfns.m (x-list-fonts): Remove.
13137 (syms_of_nsfns): Drop the x-list-fonts declaration.
13138 * nsterm.m: Get rid of remaining "//" comments.
13139
131402008-07-22 Chong Yidong <cyd@stupidchicken.com>
13141
13142 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13143
13144 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13145 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13146 (Fns_own_selection_internal, Fx_disown_selection_internal)
13147 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13148
13149 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13150 ... */' style of docstrings. Doc fixes.
13151
131522008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13153
13154 * terminfo.c (UP, BC, PC): Undo previous change.
13155
13156 * nsfns.m: Rename ns prefixed functions/variables to the
13157 corresponding x versions. Update references.
13158
131592008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13160
13161 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13162
131632008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13164
13165 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13166 Remove forwarding functions.
13167 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13168 non-static.
13169 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13170 non-static.
13171 (ns_frame_parm_handlers): Use the new names.
13172 (syms_of_nsfns): Move to the end of file.
13173
13174 * nsterm.m (syms_of_nsterm): Move to the end of file.
13175
13176 * dispnew.c (init_display): Remove code for X10.
13177
131782008-07-22 Jason Rumney <jasonr@gnu.org>
13179
13180 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13181 bare drive.
13182
131832008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13184
13185 * nsterm.m (syms_of_nsterm): Remove debugging println.
13186
131872008-07-22 David Reitter <david.reitter@gmail.com>
13188
13189 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13190 Carbon implementation of the same functionality: execute arbitrary
13191 AppleScript code.
13192
131932008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13194
13195 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13196 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13197 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13198 (Fx_display_mm_height, Fx_display_mm_width)
13199 (Fx_display_backing_store, Fx_display_visual_class)
13200 (Fx_display_save_under, Fx_open_connection)
13201 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13202 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13203 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13204 (Fx_display_pixel_width, Fx_display_pixel_height)
13205 (Fx_display_usable_bounds, Fx_display_planes)
13206 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13207 ... */' style of docstrings.
13208
132092008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13210
13211 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13212 on this platform.
13213 (mips):
13214 * m/iris4d.h (mips): Do not define.
13215 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13216
13217 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13218
13219 * image.c:
13220 * nsfns.m:
13221 * nsselect.m:
13222 * nsterm.h:
13223 * nsterm.m: Rename ns prefixed functions/variables to the
13224 corresponding x versions. Update references.
13225
13226 * m/ibms390x.h (NO_REMAP): Do not undefine.
13227
13228 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13229
132302008-07-21 Chong Yidong <cyd@stupidchicken.com>
13231
13232 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13233 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13234 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13235 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13236 (Fns_display_mm_height, Fns_display_mm_width)
13237 (Fns_display_backing_store, Fns_display_visual_class)
13238 (Fns_display_save_under, Fns_open_connection)
13239 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13240 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13241 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13242 (Fns_display_pixel_width, Fns_display_pixel_height)
13243 (Fns_display_usable_bounds, Fx_display_planes)
13244 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13245
132462008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13247
13248 * print.c (print_object): Check print_depth before searching for
13249 circularities.
13250
132512008-07-21 Michael Albinus <michael.albinus@gmx.de>
13252
13253 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13254 only sprintf.
13255
132562008-07-21 Kenichi Handa <handa@m17n.org>
13257
13258 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13259
132602008-07-20 Andreas Schwab <schwab@suse.de>
13261
13262 * syntax.c (find_start_pos, find_start_value)
13263 (find_start_value_byte, find_start_begv, find_defun_start)
13264 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13265
132662008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13267
13268 * s/sol2-3.h: Insert contents of s/sol2.h.
13269 (LD_SWITCH_SYSTEM): Remove redundant definition.
13270 * s/sol2.h: Remove, unused.
13271
132722008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13273
13274 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13275
132762008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13277
13278 * Makefile.in (ns_appdir): Fix typo in find command.
13279
132802008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13281
13282 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13283
13284 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13285 added not supported anymore.
13286
13287 * s/usg5-4-2.h (LIBS_SYSTEM):
13288 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13289
13290 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13291 * s/lynxos.h (GETPGRP_NO_ARG):
13292 * s/hpux10-20.h (NO_SIOCTL_H):
13293 * s/gnu.h (GETPGRP_NO_ARG):
13294 * s/gnu-linux.h (NO_SIOCTL_H):
13295 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13296 * s/cygwin.h (GETPGRP_NO_ARG):
13297 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13298 (C_DEBUG_SWITCH): Remove duplicate definition.
13299
13300 * m/ibms390.h: Remove boilerplate comments.
13301
13302 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13303
13304 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13305 (wait_reading_process_output): Remove code for SunOS, platform not
13306 supported anymore. Use SOLARIS2 instead of sun.
13307
133082008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13309
13310 * font.c (font_open_by_name): Under NS, default lface height to zero.
13311 (font_open_for_lface): Under NS, set size based on frame fontsize.
13312 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13313 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13314
133152008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13316
13317 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13318 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13319 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13320 YES/NO.
13321 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13322 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13323 * Makefile.in (clean): Clear out build destination dir.
13324
133252008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13326
13327 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13328 xterm, xselect.
13329 * lisp.h: Remove declaration of hash_remove.
13330 * nsgui.h: Remove redefinitions of hash_remove.
13331 * fns.c (hash_remove): Rename to hash_remove_from_table.
13332
133332008-07-19 Seiji Zenitani <zenitani@mac.com>
13334
13335 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13336 strdup() the family UTF8String before modifying it.
13337
133382008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13339
13340 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13341 NS_FACE_BACKGROUND with 0 instead of nil.
13342 * nsfont.m (nsfont_draw): Same.
13343
133442008-07-19 Chong Yidong <cyd@stupidchicken.com>
13345
13346 * nsfns.m (ns_set_background_color): Fix crash.
13347
133482008-07-18 Chong Yidong <cyd@stupidchicken.com>
13349
13350 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13351
133522008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13353
13354 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13355
133562008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13357
13358 * gtkutil.c: Include <config.h> instead of "config.h".
13359
13360 * lisp.h (Foverlay_buffer): Add EXFUN.
13361
13362 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13363 child process to complete child_setup. Undo 2005-09-21 change.
13364
13365 * s/darwin.h: Mention setsid after vfork.
13366
133672008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13368
13369 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13370 Depend on macgui.h.
13371
13372 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13373 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13374
13375 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13376 and f19.
13377 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13378
13379 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13380 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13381 Remove enumerators.
13382
13383 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13384 Check if FACE_FROM_ID returns NULL.
13385
133862008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13387
13388 * w32inevt.c (change_frame_size): Remove extern declaration.
13389 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13390 change_frame_size.
13391
133922008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13393
13394 * getloadavg.c: Revert last change (2008-07-15).
13395
133962008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13397
13398 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 13399 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
13400 from configure.
13401
134022008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13403
13404 * s/sol2.h:
13405 * s/sol2-4.h: Reorganize conditionals.
13406
13407 * ecrt0.c: Remove code depending on m68000, not used anymore.
13408
13409 * fns.c (hash_remove): Make static.
13410 * lisp.h (hash_remove): Don't prototype.
13411
13412 * m/ibmrs6000.h:
13413 * m/ibms390x.h:
13414 * m/macppc.h: Remove boilerplate comments.
13415
13416 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13417 Solaris, which does not need them.
13418
13419 * m/vax.h: Remove comments about unsupported systems.
13420
13421 * s/darwin.h: Reorganize ifdefs.
13422
134232008-07-17 Andreas Schwab <schwab@suse.de>
13424
13425 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13426
134272008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13428
13429 Use SDATA. Follow coding convention of placing operators at
13430 beginning of next line rather than end of previous line, and placing
13431 spaces around infix operators.
13432
13433 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13434 in case it was defined already.
13435 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13436 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13437 ns_default.
13438 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13439 Lisp_Objects.
13440 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13441 (ns_defined_color, ns_color_to_lisp): Declare.
13442 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13443 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13444 it's accepted even with USE_LISP_UNION_TYPE.
13445 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13446 (update_frame_tool_bar): Remove apparently obsolete tests for
13447 non-integerness of f->tool_bar_lines.
13448 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13449 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13450 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13451 (nsfont_open): Don't confuse NULL for Qnil.
13452 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13453 * menu.h (find_and_call_menu_selection):
13454 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13455 (find_and_return_menu_selection): Always return something.
13456 * frame.h: Include dispextern.h for Display_Info.
13457 (display_x_get_resource): Declare.
13458
134592008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13460
13461 * syntax.c: Remove stdio.h include accidentally introduced in
13462 Emacs.app commit.
13463 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13464 NS_IMPL_COCOA.
13465 * keyboard.c (handle_async_input, input_available_signal): Remove
13466 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13467
134682008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13469
13470 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13471 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13472 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13473 Use SDATA.
13474
13475 * keymap.c: Remove all NS-specific code.
13476 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13477 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13478 where_is_preferred_modifier, return a different value depending on how
13479 preferred is the binding.
13480 (where_is_internal): Adjust accordingly.
13481 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13482 Adjust to new preferred_sequence_p.
13483 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13484 * keyboard.c (parse_solitary_modifier): Not static any more.
13485 * keyboard.h (parse_solitary_modifier): Declare.
13486
134872008-07-16 Andreas Schwab <schwab@suse.de>
13488
13489 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13490 of easymenu.
13491
134922008-07-16 Chong Yidong <cyd@stupidchicken.com>
13493
13494 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13495 that we don't move off the line.
13496
134972008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13498
13499 * keyboard.c (Qsuper): Remove.
13500 (parse_menu_item): Don't call where_is_internal specially for NS.
13501
135022008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13503
13504 * s/gnu-linux.h: Remove boilerplate comments.
13505
13506 * m/alpha.h (__ELF__): Consolidate conditions.
13507
13508 * m/m68k.h (linux): Use GNU_LINUX instead.
13509 Remove boilerplate comments.
13510
13511 * m/intel386.h: Undo refactoring from previous change.
13512 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13513 too, remove dead code.
13514 (linux): Use GNU_LINUX instead.
13515
135162008-07-16 Jason Rumney <jasonr@gnu.org>
13517
13518 * w32gui.h: Repeat 26 June changes lost by last change.
13519
135202008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13521
13522 * systty.h: Remove code for Aix on 386, unsupported platform.
13523
13524 * s/ms-w32.h: Remove boilerplate comments.
13525 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13526
13527 * s/gnu-linux.h (TERM): Remove support.
13528 (HAVE_SYSVIPC): Remove, unused.
13529 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13530 for this system.
13531
13532 * process.c: Remove support for IRIS, unused.
13533 Remove support for TERM, not relevant anymore.
13534
13535 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13536 used with the definition.
13537
13538 * s/aix4-2.h (static): Do not undef.
13539
13540 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13541 only used on Aix.
13542 (HAVE_SYSVIPC): Remove, unused.
13543
13544 * m/hp800.h (CANNOT_DUMP): Do not undef.
13545
13546 * m/alpha.h: Fix comment.
13547
13548 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13549 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13550 used by this configuration.
13551 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13552 * unexec.c: Remove code depending on HPUX and
13553 USG_SHARED_LIBRARIES, not used with this file. Remove code
13554 depending on IRIS, unused. Remove if 0-ed code.
13555
13556 * s/template.h: Remove comments about static.
13557
13558 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13559 Remove if 0-ed code.
13560 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13561 were the same as the default.
13562 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13563 Remove boilerplate comments.
13564 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13565 (HAVE_SYSVIPC): Remove, unused.
13566 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13567
13568 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13569 Remove boilerplate comments.
13570 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13571 Remove boilerplate comments.
13572 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13573 Remove boilerplate comments.
13574 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13575
13576 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13577 USG systems which do not use DATA_SEG_BITS.
13578 Refactor code. Remove boilerplate comments.
13579
13580 * m/ibms390.h:
13581 * m/m68k.h:
13582 * s/bsd-common.h:
13583 * s/cygwin.h:
13584 * s/darwin.h:
13585 * s/freebsd.h:
13586 * s/gnu.h:
13587 * s/msdos.h: Remove boilerplate comments.
13588
13589 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 13590 do not use this file.
aac0c6e3
MR
13591 (IRIS_4D): Remove, unused.
13592
13593 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 13594 do not use this file.
aac0c6e3
MR
13595 (SIGN_EXTEND_CHAR):
13596 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13597 * unexmips.c: Remove file, unused.
13598
13599 * editfns.c (Fuser_full_name): Replace the only use of
13600 USER_FULL_NAME with its value.
13601 * config.in: Regenerate.
13602
136032008-07-16 David Reitter <david.reitter@gmail.com>
13604
13605 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13606 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13607
136082008-07-16 Glenn Morris <rgm@gnu.org>
13609
13610 * emacs.c (system-type): Doc fix.
13611
136122008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13613
13614 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13615 If the cache doesn't work, let's fix it, rather than work around it.
13616
136172008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13618
13619 * Makefile.in: Correct additions for nsfont.o in last commit.
13620 * nsfont.m: New file (forgot last commit).
13621
136222008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13623
13624 * callproc.c (set_initial_environment): Initialize
13625 Vprocess_environment under CANNOT_DUMP (fixes crash when
13626 batch-compiling for bootstrap).
13627
136282008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 13629 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 13630
c4cc8b9a
JB
13631 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13632 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
13633
136342008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13635
13636 Changes and additions for NeXTstep windowing system (Cocoa and
13637 GNUstep) support.
13638
13639 * Makefile.in:
13640 * config.in: Support defines and build commands for NS port.
13641 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13642 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13643 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13644 windowing.
13645 (struct face): Add synth_ital field.
13646 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13647 (init_display): Initialize Vinitial_window_system to "ns" when so
13648 compiled.
13649 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13650 (display_arg): Use under NS.
13651 (main): Under NS, allocate autorelease pool and handle command line
13652 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13653 (standard_args): Add NS-specific args.
13654 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13655 * font.c (DEFAULT_ENCODING): New variable.
13656 (font_find_for_lface): Use it.
13657 (syms_of_font): Load syms_of_nsfont under NS.
13658 * font.h: Declare nsfont_driver when compiled under NS.
13659 * fontset.c: When compiling under NS, include nsterm.h.
13660 (fontset_from_font): Autoconstruct fontset under NS.
13661 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13662 symbol, document and use it.
13663 (do_switch_frame): When for_deletion under Cocoa, add
13664 Fraise_frame(Qnil).
13665 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13666 (x_get_arg): Allow "yes" and "no" as boolean values.
13667 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13668 Qright under Cocoa.
13669 (focus-follows-mouse): Default to 0 under NS.
13670 * frame.h (enum output_method): Add output_ns.
13671 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13672 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13673 (FRAME_WINDOW_P): NS-specific definition.
13674 * fringe.c (max_used_fringe_bitmap): Make public.
13675 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13676 (getloadavg): Use NeXT code under descendant OS's.
13677 * image.c (includes and header section, x_create_bitmap_from_data)
13678 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13679 (image_background_transparent, x_clear_image_1)
13680 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13681 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13682 (x_to_xcolors, x_from_xcolors, x_disable_image)
13683 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13684 other GUIs, including XPM support using code originally written for
13685 Carbon GUI.
13686 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13687 using NS API.
13688 (image_ascent): Use font metrics macros instead of direct struct field
13689 access.
13690 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13691 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13692 Also, handle NS as GTK for menu bar purposes.
13693 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13694 toolkit where they differ.
13695 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13696 use cachelist, still needed under NS.
13697 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13698 (struct widget_value): Define it here for menu.c.
13699 * keymap.c (includes): Include modifier internals.
13700 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13701 NS.
13702 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13703 support for preferring sequences using certain modifiers, specified by
13704 the FIRSTONLY argument.
13705 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13706 under NS GNUstep implementation.
13707 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13708 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13709 * menu.c: Include nsterm.h under NS.
13710 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13711 (free_menubar_widget_tree_value, update_submenu_strings)
13712 (find_and_call_menu_selection): Treat NS as X and NT.
13713 (find_and_return_menu_selection): New function, used for popup menus.
13714 * nsgui.h:
13715 * nsterm.h:
13716 * nsfns.m:
13717 * nsimage.m:
13718 * nsmenu.m:
13719 * nsselect.m:
13720 * nsterm.m: New files.
13721 * process.c (wait_reading_process_output): Under NS, call ns_select()
13722 instead of plain select().
13723 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13724 beginning of buffer.
13725 * sysselect.h (init_process): Rename when compiling under Cocoa to
13726 avoid name conflict.
13727 * termhooks.h (display_info): Add ns_display_info to union.
13728 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13729 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13730 COCOA environment.
13731 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13732 unexec() signature. (Note, this will dump, but the resulting file
13733 crashes; unexosx is used instead; keeping around for reference and
13734 possible aid in getting dump working under GNUstep.)
13735 * w32gui.h (button_type, widget_value): Remove definitions (now in
13736 keyboard.h).
13737 * window.c: Include nsterm.h when compiling under NS.
13738 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13739 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13740 other GUI windowing systems.
13741 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13742 GTK.
13743 (x_consider_frame_title): Under NS, set icon type and frame
13744 modified-state indicator; use ns_set_name_as_filename() when using
13745 formatted title.
13746 (update_window_cursor): Make public when compiling under NS.
13747 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13748 (hourglass_atimer, Vhourglass_delay
13749 * xfaces.c (header section, init_frame_faces, clear_font_table)
13750 (defined_color, unload_color, x_face_list_fonts)
13751 (prepare_face_for_display): Add NS support parallel to other GUIs.
13752 Emulate GCs like other non-X GUIs.
13753 (split_font_name): Don't lowercase font name under NS.
13754 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13755 under NS.
13756 * s/darwin.h: Add support for compilation under NS.
13757
137582008-07-15 Jason Rumney <jasonr@gnu.org>
13759
13760 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13761 (w32_show_hourglass): Rename from show_hourglass.
13762 (w32_hide_hourglass): Rename from hide_hourglass.
13763 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13764 (Vhourglass_delay): Declare extern.
13765 (hourglass_started): Remove.
13766
13767 * xdisp.c (Vhourglass_delay): Remove static.
13768 (hourglass_started, start_hourglass, cancel_hourglass):
13769 Don't include these versions on WINDOWSNT.
13770
137712008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13772
13773 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13774 variables (formerly in xfns.c).
13775 (show_hourglass, hide_hourglass): New prototypes (same).
13776 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13777 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13778 in xfns.c).
13779 (syms_of_xdisp): Declare/initialize display-hourglass,
13780 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13781 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13782 formerly in xfns.c.
13783 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13784 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13785 (start_hourglass, cancel_hourglass): Remove.
13786 (show_hourglass, hide_hourglass): Remove prototypes and static
13787 modifiers.
13788 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13789 hourglass_atimer, hourglass_shown_p declaration/initialization.
13790 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13791 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13792 (start_hourglass, cancel_hourglass): Remove.
13793 (show_hourglass, hide_hourglass): Remove prototypes and static
13794 modifiers.
13795 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13796 hourglass_atimer, hourglass_shown_p declaration/initialization.
13797 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13798 (DEFAULT_HOURGLASS_DELAY): Remove.
13799 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13800 hourglass_shown_p declaration/initialization.
13801
138022008-07-14 Jason Rumney <jasonr@gnu.org>
13803
13804 * w32fns.c (w32_get_arg): Remove wrapper function.
13805 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13806 directly.
13807 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13808
138092008-07-14 Kenichi Handa <handa@m17n.org>
13810
13811 * xfont.c (xfont_open): Add workaround for X's bug.
13812
138132008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13814
13815 * fontset.c: Include <stdio.h> unconditionally.
13816
138172008-07-13 Michael Albinus <michael.albinus@gmx.de>
13818
13819 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13820 for filtering.
13821
138222008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13823
13824 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13825
13826 * m/macppc.h:
13827 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13828
c4cc8b9a 13829 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
13830 (SPECIAL_EMACS_INT):
13831 * m/ia64.h (SPECIAL_EMACS_INT):
13832 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13833 * s/gnu.h (NLIST_STRUCT):
13834 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13835 * s/gnu-linux.h (LINUX):
13836 * s/msdos.h (HAVE_FACES):
13837 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13838
13839 * systty.h:
13840 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13841 anymore.
13842
138432008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13844
13845 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13846 always defined as int.
13847
13848 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13849 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13850 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13851 * s/freebsd.h (HAVE_WAIT_HEADER):
13852 * s/bsd-common.h (HAVE_UNION_WAIT):
13853 * s/aix4-2.h (HAVE_WAIT_HEADER):
13854 * m/mips.h (HAVE_UNION_WAIT):
13855 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13856 (COFF, static): Do not define, they are undefined later in the file.
13857
13858 * process.c (update_status): Don't use a union.
13859 (status_convert):
13860 (sigchld_handler): Use int instead of WAITTYPE.
13861
138622008-07-12 Chong Yidong <cyd@stupidchicken.com>
13863
13864 * indent.c (Fvertical_motion): Restore hscroll before moving to
13865 goal column.
13866
138672008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13868
13869 * lisp.h: Remove left over code.
13870
138712008-07-11 Andreas Schwab <schwab@suse.de>
13872
13873 * lisp.h: Fix logic in last change.
13874
13875 * menu.h: New file.
13876 * menu.c: Include it.
13877 * xmenu.c: Likewise.
13878 * Makefile.in: Update dependencies.
13879
138802008-07-11 Kenichi Handa <handa@m17n.org>
13881
13882 * fontset.c (fontset_from_font): Cancel the previous change.
13883
138842008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13885
13886 * lisp.h:
13887 * w32heap.c:
13888 * emacs.c:
13889 * alloc.c: Replace all references of NO_UNION_TYPE with
13890 USE_LISP_UNION_TYPE.
13891
13892 * m/xtensa.h (NO_UNION_TYPE):
13893 * m/vax.h (NO_UNION_TYPE):
13894 * m/template.h (NO_UNION_TYPE):
13895 * m/sparc.h (NO_UNION_TYPE):
13896 * m/mips.h (NO_UNION_TYPE):
13897 * m/macppc.h (NO_UNION_TYPE):
13898 * m/m68k.h (NO_UNION_TYPE):
13899 * m/iris4d.h (NO_UNION_TYPE):
13900 * m/intel386.h (NO_UNION_TYPE):
13901 * m/ibms390x.h (NO_UNION_TYPE):
13902 * m/ibms390.h (NO_UNION_TYPE):
13903 * m/ibmrs6000.h (NO_UNION_TYPE):
13904 * m/ia64.h (NO_UNION_TYPE):
13905 * m/hp800.h (NO_UNION_TYPE):
13906 * m/arm.h (NO_UNION_TYPE):
13907 * m/amdx86-64.h (NO_UNION_TYPE):
13908 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13909 defining it the same.
13910
139112008-07-10 Chong Yidong <cyd@stupidchicken.com>
13912
13913 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13914
139152008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13916
13917 * fileio.c:
50426a04 13918 * sysdep.c:
aac0c6e3
MR
13919 * systty.h:
13920 * m/ibmrs6000.h:
13921 * m/iris4d.h:
13922 * s/aix4-2.h:
13923 * s/freebsd.h:
13924 * s/gnu-linux.h:
13925 * s/hpux10-20.h:
13926 * s/hpux11.h:
13927 * s/netbsd.h:
13928 * s/sol2-3.h:
13929 * s/sol2-4.h:
13930 * s/sol2.h:
13931 * s/usg5-4.h:
13932 * s/vms.h: Remove references to unused variables.
13933
139342008-07-10 Andreas Schwab <schwab@suse.de>
13935
13936 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13937 pattern before matching the generic family.
13938
139392008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13940
13941 * unexec.c:
13942 * s/vms.h:
13943 * s/usg5-4-2.h:
13944 * s/sol2-5.h:
13945 * s/freebsd.h:
13946 * s/darwin.h: Remove dead code.
13947
13948 * m/template.h:
13949 * m/sparc.h:
13950 * m/mips.h:
13951 * m/m68k.h:
13952 * m/iris4d.h:
13953 * m/intel386.h:
13954 * m/ibms390x.h:
13955 * m/ibms390.h:
13956 * m/ia64.h:
13957 * m/hp800.h:
13958 * m/arm.h:
13959 * m/amdx86-64.h: Remove dead code and references to unused
13960 and compiler defined symbols.
13961
13962 * unexmips.c:
13963 * unexelf.c: Remove references to desupported systems.
13964
13965 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13966
13967 * m/powermac.h: Remove boilerplate comments.
13968 (NO_REMAP): Remove unused definition.
13969
13970 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13971 define them.
13972
139732008-07-10 Kenichi Handa <handa@m17n.org>
13974
13975 * xfont.c (xfont_open): Log the reason of failure.
13976
139772008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13978
13979 * fontset.c (fontset_get_font_group):
13980 * font.c (font_check_otf): Specify argument types.
13981
139822008-07-09 Kenichi Handa <handa@m17n.org>
13983
13984 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13985 non-ASCII char is found.
13986
13987 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13988 (reorder_font_vector): Change the arg preferred_family to font.
13989 Prefer the spec matching with font.
13990 (fontset_get_font_group): New function.
13991 (fontset_find_font): Change the format of an element of a realized
13992 fontset. Use fontset_get_font_group.
13993 (fontset_font): Try the current fontset, the default fontset, the
13994 fallbacks of the current fontset, and the fallbacks of the default
13995 fontset in this order.
13996 (face_for_char): Delete the shortcut to use the current font.
13997 (fontset_from_font): Don't set fonts for Latin in the fontset.
13998
13999 * font.h (font_make_object, font_match_p): Adjust prototypes.
14000
14001 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14002
14003 * font.c (font_make_object): New arg entity and pixelsize.
14004 (font_check_otf_features, font_check_otf): New functions.
14005 (font_match_p): Check :lang, :script, and :otf properties.
14006
14007 * xfont.c (xfont_open): Adjust it for the change of
14008 font_make_object.
14009 (xfont_text_extents): Fix initial setting of metrics.
14010
14011 * ftfont.c (struct ftfont_info): New member index, delete member
14012 fc_charset_idx. Make the member order compatible with struct
14013 xftfont_info.
14014 (fc_charset_table): Change charset names to registry names.
14015 (ftfont_pattern_entity): Delete the args registry and
14016 fc_charset_idx. Change the value of :font-entity property
14017 to (FONTNAME . INDEX). Always set :registry property to
14018 `iso10646-1'.
14019 (struct ftfont_cache_data): New struct.
14020 (ftfont_lookup_cache): New arg for_face.
14021 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14022 (ftfont_driver): Set the member otf_capability.
14023 (ftfont_get_charset): Adjust it for the change of
14024 fc_charset_table.
14025 (OTF_TAG_SYM): New macro.
14026 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14027 for the change of fc_charset_table.
14028 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14029 ftfont_pattern_entity. Add FC_INDEX to objset.
14030 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14031 and ftfont_pattern_entity.
14032 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14033 font_make_object, struct ftfont_info.
14034 (ftfont_has_char): Use ftfont_get_fc_charset.
14035 (ftfont_otf_features, ftfont_otf_capability): New functions.
14036 (ftfont_shape): Use ftfont_get_otf.
14037 (ftfont_text_extents): Fix initial setting of metrics.
14038
14039 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14040 member order compatible with struct ftfont_info.
14041 (xftfont_open): Add FC_CHARSET to the pattern. Set
14042 xftfont_info->ft_size. Don't unlock the face. Check BDF
14043 properties if appropriate.
14044 (xftfont_close): Unlock the face.
14045 (xftfont_anchor_point, xftfont_shape): Deleted.
14046 (syms_of_xftfont): Don't set members anchor_point and shape of
14047 xftfont_driver.
14048
14049 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14050 font_make_object.
14051
14052 * w32font.c (w32font_open): Adjust it for the change of
14053 font_make_object.
14054 (w32font_open_internal): Don't set properties of font_object here.
14055
140562008-07-08 Chong Yidong <cyd@stupidchicken.com>
14057
14058 * macfns.c (x_create_tip_frame):
14059 * w32fns.c (x_create_tip_frame):
14060 * xfns.c (x_create_tip_frame): Pass parameter argument to
14061 face-set-after-frame-default.
14062
14063 * xfaces.c (Finternal_merge_in_global_face): Save merged
14064 attributes for the default face back into the face vector.
14065
140662008-07-08 Andreas Schwab <schwab@suse.de>
14067
14068 * fontset.h: Declare fontset_from_font. Don't declare
14069 new_fontset_from_font and fontset_from_font_name.
14070 * xterm.c: Include "fontset.h".
14071 * Makefile.in (xterm.o): Update dependencies.
14072
140732008-07-08 Glenn Morris <rgm@gnu.org>
14074
14075 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14076 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14077
140782008-07-07 Chong Yidong <cyd@stupidchicken.com>
14079
14080 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14081 (x_set_frame_parameters): Don't bind it.
14082
140832008-07-07 Juanma Barranquero <lekktu@gmail.com>
14084
14085 * w32fns.c (map_w32_filename): Declare extern.
14086
140872008-07-07 Jason Rumney <jasonr@gnu.org>
14088
14089 * w32term.c (WS_EX_LAYERED): Define if not already.
14090
140912008-07-06 Chong Yidong <cyd@stupidchicken.com>
14092
14093 * xfaces.c (set_font_frame_param): Don't try to set the font
14094 parameter if it is still unspecified in the lface.
14095
140962008-07-05 Chong Yidong <cyd@stupidchicken.com>
14097
14098 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14099 face if it didn't already exist.
14100
14101 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14102
141032008-07-05 Andreas Schwab <schwab@suse.de>
14104
14105 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14106
141072008-07-05 Chong Yidong <cyd@stupidchicken.com>
14108
14109 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14110 word-wrapping.
14111 (IT_DISPLAYING_WHITESPACE): New macro.
14112 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14113 when word-wrapping. Simplify word-wrapping logic. Use correct
14114 pixel positions when saving copies of the iterator.
14115 (display_line): Use proper wrap point if the last character on a
14116 line was preceded by whitespace.
14117
141182008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14119
14120 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14121
141222008-07-04 Kenichi Handa <handa@m17n.org>
14123
14124 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14125
14126 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14127
141282008-07-02 Jason Rumney <jasonr@gnu.org>
14129
14130 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 14131 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
14132
14133 * xdisp.c (next_element_from_display_vector): Move assignment out
14134 of if statement.
14135
141362008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14137
14138 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14139
14140 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14141 (syms_of_fileio): Initialize and export them.
14142 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14143
14144 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14145 (Fsystem_move_file_to_trash): New function.
14146 (syms_of_w32fns): Export it to lisp.
14147
141482008-07-01 Jason Rumney <jasonr@gnu.org>
14149
14150 * w32font.c (w32font_text_extents): Don't count overhang as part
14151 of width.
14152
141532008-06-30 Miles Bader <miles@gnu.org>
14154
14155 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14156 Add `avoid_cursor_p' field.
14157
14158 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14159 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14160 (append_glyph, append_composite_glyph, produce_image_glyph)
14161 (append_stretch_glyph): Initialize avoid_cursor_p.
14162 (get_it_property): Rename from `get_line_height_property'.
14163 (x_produce_glyphs): Use get_it_property.
14164 (handle_line_prefix, push_display_prop): New functions.
14165 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14166 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14167 New variables.
14168 (syms_of_xdisp): Initialize them.
14169
141702008-06-30 Kenichi Handa <handa@m17n.org>
14171
14172 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14173 XftDefaultSubstitute (they are called in XftFontMatch).
14174 (xftfont_open): Fix args to ftfont_font_format.
14175
14176 * ftfont.c (fc_charset_table): New member lang.
14177 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 14178 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
14179 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14180 (ftfont_open): Fix args to ftfont_font_format.
14181 (ftfont_font_format): New arg filename.
14182
141832008-06-30 Chong Yidong <cyd@stupidchicken.com>
14184
14185 * xfaces.c (Finternal_merge_in_global_face): If default face was
14186 modified, realize it again. Update the font face attribute.
14187
141882008-06-29 Jason Rumney <jasonr@gnu.org>
14189
14190 * w32term.c (x_set_frame_alpha): Fix logic.
14191
141922008-06-29 Kenichi Handa <handa@m17n.org>
14193
14194 * fontset.c (Finternal_char_font): Return font-object instead of
14195 font-name.
14196
14197 * composite.c (get_composition_id): Fix the width calculation for TAB.
14198
141992008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14200
14201 * indent.c (Fvertical_motion): Properly handle float column arg.
14202
142032008-06-28 Jason Rumney <jasonr@gnu.org>
14204
14205 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14206 (pfnSetLayeredWindowAttributes): New function pointer.
14207 (w32_initialize): Initialize it when supported.
14208 (x_set_frame_alpha): New function.
14209
14210 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14211 (w32_frame_parm_handlers): Set alpha handler.
14212
14213 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14214
142152008-06-27 Jason Rumney <jasonr@gnu.org>
14216
14217 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14218 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14219 (w32_to_x_charset, x_to_w32_charset)
14220 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14221 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14222 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14223 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14224 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14225 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14226 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14227 (Qw32_charset_unicode): Remove.
14228 (syms_of_w32fns): Update for above changes.
14229
14230 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14231 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14232 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14233 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14234 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14235 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14236 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14237 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14238 (syms_of_w32font): Update for above changes.
14239
142402008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14241
14242 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14243 removed #if.
14244 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14245
142462008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 14247 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
14248
14249 * makefile.w32-in (LOCAL_FLAGS):
14250 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14251
14252 * sysdep.c (_spawnlp, _getpid):
14253 Declare with explicit _cdecl instead of _CRTAPI1.
14254
14255 * editfns.c (Fget_internal_run_time):
14256 Check for WINDOWSNT with #ifdef, not #if.
14257
142582008-06-26 Jason Rumney <jasonr@gnu.org>
14259
14260 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14261
14262 * w32term.c (x_draw_glyph_string_foreground)
14263 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14264 Use FONT_HANDLE macro.
14265 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14266
14267 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14268 (uniscribe_encode_char): Use FONT_HANDLE macro.
14269
14270 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14271 (w32font_text_extents): Use precast w32_font.
14272 (w32font_close): Free cached metrics.
14273 (w32font_open_internal): Allocate space for name on stack.
14274
142752008-06-26 Chong Yidong <cyd@stupidchicken.com>
14276
14277 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14278
142792008-06-26 Jason Rumney <jasonr@gnu.org>
14280
14281 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14282 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14283
142842008-06-26 Juanma Barranquero <lekktu@gmail.com>
14285
14286 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14287
142882008-06-26 Jason Rumney <jasonr@gnu.org>
14289
14290 * w32bdf.c, w32bdf.h: Remove obsolete files.
14291
14292 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14293
14294 * w32gui.h: Don't include w32bdf.h.
14295 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14296 Remove obsolete font support.
14297
14298 * w32font.h (struct w32font_info): Remove compat_w32_font.
14299 Add hfont member.
14300 (FONT_COMPAT): Remove obsolete macro.
14301
14302 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14303 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14304 (w32font_open_internal): Remove compat code. Set new hfont member.
14305 (Fx_select_font): Use new hfont member.
14306
14307 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14308 (uniscribe_encode_char): Use new hfont member.
14309
14310 * w32term.c (x_draw_glyph_string_foreground)
14311 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14312 (x_draw_glyph_string): Use metrics in w32font_info.
14313
143142008-06-26 Kenichi Handa <handa@m17n.org>
14315
14316 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14317
143182008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14319
14320 * unexnext.c:
14321 * m/ews4800.h:
14322 * m/hp9000s300.h:
14323 * m/ibm370aix.h:
14324 * m/mips-siemens.h:
14325 * m/ncr386.h:
14326 * m/next.h:
14327 * m/pmax.h:
14328 * m/powerpcle.h:
14329 * m/tandem-s2.h:
14330 * s/386bsd.h:
14331 * s/bsd386.h:
14332 * s/bsd4-1.h:
14333 * s/bsd4-2.h:
14334 * s/bsdos2-1.h:
14335 * s/bsdos2.h:
14336 * s/bsdos3.h:
14337 * s/bsdos4.h:
14338 * s/nextstep.h:
14339 * s/ultrix4-3.h:
14340 * s/usg5-0.h:
14341 * s/usg5-2-2.h:
14342 * s/usg5-2.h:
14343 * s/usg5-4-3.h:
14344 * s/ux4800.h:
14345 * s/uxpds.h:
14346 * s/uxpv.h: Remove support for obsolete systems.
14347 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 14348 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
14349 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14350 Remove, insert contents in s/aix4-2.h.
14351 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14352 * s/bsd4-3.h: Rename to ...
14353 * s/bsd-common.h: ... this.
14354 * data.c:
14355 * doc.c:
14356 * ecrt0.c:
14357 * emacs.c:
14358 * fileio.c:
14359 * floatfns.c:
14360 * keyboard.c:
14361 * mem-limits.h:
14362 * print.c:
14363 * process.c:
14364 * sysdep.c:
14365 * syssignal.h:
14366 * systty.h:
14367 * syswait.h:
14368 * term.c:
14369 * unexec.c:
14370 * unexelf.c:
14371 * unexhp9k800.c:
14372 * m/hp800.h:
14373 * m/ibmrs6000.h:
14374 * m/mips.h:
14375 * m/vax.h:
14376 * s/darwin.h:
14377 * s/freebsd.h:
14378 * s/gnu.h:
14379 * s/ms-w32.h:
14380 * s/msdos.h:
14381 * s/netbsd.h:
14382 * s/template.h: Remove references to obsolete variables.
14383
14384 * Makefile.in: Add dependencies for all unexec files.
14385 (admindir): Remove unused variable.
14386 (UNEXEC_SRC): Remove references.
14387
143882008-06-25 Chong Yidong <cyd@stupidchicken.com>
14389
14390 * xfns.c (x_default_font_parameter): If Xft is available, first
14391 try Monospace-12 for the default font.
14392
143932008-06-25 Jason Rumney <jasonr@gnu.org>
14394
14395 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14396
143972008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14398
14399 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14400
14401 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14402
144032008-06-25 Juanma Barranquero <lekktu@gmail.com>
14404
14405 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14406 <scroll-conservatively>: Fix typo in docstring.
14407
14408 * xselect.c (Fx_send_client_event): Doc fix.
14409
144102008-06-25 Kenichi Handa <handa@m17n.org>
14411
14412 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14413
14414 * font.c (font_parse_fcname): Remove unused variables.
14415 (font_sort_entites): Delete the arg SPEC. Caller changed.
14416 Fix for the case of ! best_only.
14417 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14418
14419 * lisp.h (Fstring_to_unibyte): EXFUN it.
14420
14421 * character.h (str_to_unibyte): Extern it.
14422
14423 * character.c (str_to_unibyte): New function.
14424
14425 * fns.c (Fstring_to_unibyte): New function.
14426 (syms_of_fns): Defsubr it.
14427
144282008-06-24 Kenichi Handa <handa@m17n.org>
14429
14430 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14431 DPI too.
14432 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14433
144342008-06-24 Andreas Schwab <schwab@suse.de>
14435
14436 * Makefile.in (${lispsource}loaddefs.el): Rename from
14437 ../lisp/loaddefs.el.
14438 (bootstrap-clean): Do what distclean does but don't remove
14439 Makefile.
14440 (distclean): Depend on bootstrap-clean and remove Makefile.
14441
144422008-06-24 Chong Yidong <cyd@stupidchicken.com>
14443
14444 * buffer.h (struct buffer): New member word_wrap.
14445
14446 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14447 word-wrap.
14448 (init_buffer_once): Initialize them.
14449
14450 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14451 line_wrap enum possessing three possible values.
14452
14453 * termopts.h: Replace truncate_partial_width_windows with
14454 Vtruncate_partial_width_windows.
14455
14456 * dispnew.c (direct_output_for_insert): Avoid direct output when
14457 inserting a space with word wrap on.
14458
14459 * indent.c (compute_motion): Obey integer values of
14460 truncate-partial-width-windows.
14461
14462 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14463 replacing truncate_partial_width_windows.
14464 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14465 truncate only if the window width is below that integer.
14466 (start_display, resize_mini_window, produce_stretch_glyph)
14467 (display_string, move_it_in_display_line_to): Use line_wrap.
14468 (back_to_previous_visible_line_start, reseat_1): Reset
14469 string_from_display_prop_p.
14470 (display_line): Extend default face to end of line when wrapping.
14471
144722008-06-24 Kim F. Storm <storm@cua.dk>
14473
14474 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14475 to wrap continued lines at word boundaries.
14476
144772008-06-24 Jason Rumney <jasonr@gnu.org>
14478
14479 * font.c (Ffont_face_attributes): Multiply pixel size before point
14480 conversion to avoid multiplying rounding error.
14481
144822008-06-23 Jason Rumney <jasonr@gnu.org>
14483
14484 * w32term.c (x_draw_glyph_string_background)
14485 (x_draw_glyph_string): Remove old bdf font code.
14486
14487 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14488
144892008-06-22 Kenichi Handa <handa@m17n.org>
14490
14491 * font.c (font_find_for_lface): Try the adstyle specified in
14492 the property of LFACE_FONT of LFACE (if any).
14493
144942008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14495 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14496
14497 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14498
144992008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14500
14501 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14502 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14503 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14504 (witness-emacs): Remove.
14505 (lisp, shortlisp): Move loaddefs.el earlier.
14506 (mostlyclean): Forget about witness-emacs.
14507
145082008-06-22 Glenn Morris <rgm@gnu.org>
14509
14510 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14511 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14512
145132008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14514
14515 * Makefile.in (PRECOMP): Remove.
14516 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14517 (witness-emacs): Run `compile-first'.
14518 (.el.elc): Use the new compile-onefile target.
14519
145202008-06-21 Kenichi Handa <handa@m17n.org>
14521
14522 * xftfont.c (xftfont_open): Handle QCembolden only when
14523 FC_EMBOLDEN is defined.
14524
145252008-06-21 Andreas Schwab <schwab@suse.de>
14526
14527 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14528 (.el.elc): Likewise.
14529
145302008-06-21 Miles Bader <miles@gnu.org>
14531
14532 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14533 build dir, not the lisp source dir.
14534
145352008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14536
14537 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14538 (bootstrapclean): Remove.
14539 (.el.elc): New rule.
14540 (PRECOMP): New var.
14541 (../lisp/subdirs.el): Remove.
14542 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14543 (witness-emacs): New target.
14544 (mostlyclean): Remove witness-emacs as well.
14545 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14546 Add witness-emacs dependency.
14547
145482008-06-20 Chong Yidong <cyd@stupidchicken.com>
14549
14550 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14551 defined by the font.
14552
145532008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14554
14555 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14556 (bootstrap-clean): New target that keeps TAGS around.
14557 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14558 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14559
145602008-06-20 Jason Rumney <jasonr@gnu.org>
14561
14562 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14563 Remove obsolete font code.
14564
14565 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14566 to determine language support.
14567
145682008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14569
14570 * sysdep.c (cfsetspeed): New fun extracted from the code.
14571 (cfmakeraw): Move before first use.
14572
145732008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14574
14575 * sysdep.c (cfmakeraw): Provide fallback implementation.
14576 (serial_configure): Provide fallback implementation of cfsetspeed.
14577
145782008-06-20 Kenichi Handa <handa@m17n.org>
14579
14580 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14581 the pattern.
14582
14583 * fontset.c (fontset_from_font): Copy font_spec before changing
14584 the elements.
14585
14586 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14587
145882008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14589
14590 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14591 for explicit `font' parameters.
14592
14593 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14594
145952008-06-19 Kenichi Handa <handa@m17n.org>
14596
14597 * frame.c: Include <ctype.h>.
14598 (x_set_font_backend): Allow spacing characters in the X resource
14599 for FontBackend.
14600
146012008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14602
14603 * w32fns.c, xfns.c (Qfont_param): New var.
14604 (syms_of_w32fns): Initialize it.
14605 (x_default_font_parameter): Record explicit `font' into
14606 `font-parameter'.
14607
146082008-06-18 Kenichi Handa <handa@m17n.org>
14609
14610 * font.c (font_parse_xlfd): Fix previous change.
14611 (font_parse_fcname): Don't use :fc-unknown-spec.
14612 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14613 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14614 (font_add_log): Prepend the driver name to the resulting fonts.
14615
14616 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14617 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14618 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14619
14620 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14621 (QCembolden): New variables.
14622 (syms_of_xftfont): DEFSYM them.
14623 (xftfont_open): Call XftFontMatch. Don't trust the result of
14624 XftTextExtents8 if the pixel_size is less than 5.
14625
146262008-06-18 Andreas Schwab <schwab@suse.de>
14627
14628 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14629 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14630
146312008-06-18 Jason Rumney <jasonr@gnu.org>
14632
14633 * w32font.c (w32font_list, w32font_match): Add logging.
14634
14635 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14636
146372008-06-17 Chong Yidong <cyd@stupidchicken.com>
14638
14639 * font.c (font_parse_fcname): Store divider characters for
14640 unknown-spec list. For known key symbols, intern using correct
14641 symbol name.
14642
146432008-06-17 Kenichi Handa <handa@m17n.org>
14644
14645 * xfaces.c (realize_default_face): If the frame is not on window
14646 system, set the fontset of face to nil.
14647
146482008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14649
14650 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14651
146522008-06-16 Juanma Barranquero <lekktu@gmail.com>
14653
14654 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14655 (build_font_name_from_vector): Delete externs.
14656
14657 * xfaces.c (struct font_name): Don't declare.
14658
146592008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14660
14661 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14662
146632008-06-16 Chong Yidong <cyd@stupidchicken.com>
14664
14665 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14666
146672008-06-16 Juanma Barranquero <lekktu@gmail.com>
14668
14669 * font.c (Ffont_spec): Fix usage in docstring.
14670 (Ffont_face_attributes): Doc fix.
14671
146722008-06-16 Andreas Schwab <schwab@suse.de>
14673
14674 * font.c (Ffont_face_attributes): Fix definition.
14675
146762008-06-16 Jason Rumney <jasonr@gnu.org>
14677
14678 * font.h (font_style_symbolic_from_value): Remove.
14679
14680 * font.c (font_style_symbolic_from_value): Remove.
14681 (font_style_symbolic): Revert to pre 2008-06-13 version.
14682
14683 * w32font.c (w32_to_fc_weight): New function.
14684 (w32font_full_name, logfont_to_fcname): Use it.
14685
146862008-06-16 Kenichi Handa <handa@m17n.org>
14687
14688 * font.c (font_check_object): Delete it.
14689 (font_clear_cache): Check if a font-object is alive.
14690 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14691 font-object to nil.
14692 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14693 (font_at): Don't call font_check_object.
14694 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14695
146962008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14697
14698 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14699
147002008-06-16 Chong Yidong <cyd@stupidchicken.com>
14701
14702 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14703
147042008-06-15 Chong Yidong <cyd@stupidchicken.com>
14705
14706 * font.c (font_parse_fcname): Only one decimal point.
14707 (font_unparse_fcname): Handle data in family and foundry indices
14708 as symbols, not strings.
14709 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14710
14711 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14712
14713 * font.h (font_unparse_gtkname): Add prototype.
14714
147152008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14716
14717 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14718
147192008-06-15 Andreas Schwab <schwab@suse.de>
14720
14721 * font.c (font_update_drivers): Fix crash when no drivers match.
14722
147232008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14724
14725 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14726 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14727
147282008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14729
14730 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14731
147322008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14733
14734 * process.c (Fserial_process_configure, Fprocess_send_eof):
14735 Use EQ to compare Lisp_Objects.
14736
147372008-06-13 Jason Rumney <jasonr@gnu.org>
14738
14739 * w32fns.c (Fw32_select_font): Remove old font API function.
14740
14741 * w32font.c (logfont_to_fcname): New function.
14742 (Fx_select_font): New font dialog function compatible with
14743 GTK/fontconfig version.
14744
14745 * font.c (font_style_symbolic_from_value): New function.
14746 (font_style_symbolic): Use it.
14747
14748 * font.h (font_style_symbolic_from_value): Declare new function.
14749
147502008-06-13 Juanma Barranquero <lekktu@gmail.com>
14751
14752 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14753 <font-width-table>: Fix typos in docstrings.
14754
147552008-06-13 Daniel Engeler <engeler@gmail.com>
14756
14757 These changes add serial port access.
14758 * process.c: Add HAVE_SERIAL.
14759 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14760 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14761 (list_processes_1, select_wrapper, Fstop_process)
14762 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14763 (status_notify): Modify to handle serial processes.
14764 [HAVE_SERIAL] (Fserial_process_configure)
14765 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14766 New functions.
14767 * process.h (struct Lisp_Process): Add `type'.
14768 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14769 New functions.
14770 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14771 serial ports.
b71ac3dd 14772 (serial_open, serial_configure): New functions.
aac0c6e3
MR
14773 * w32.h: Add FILE_SERIAL.
14774 (struct _child_process): Add ovl_read, ovl_write.
14775
147762008-06-13 Kenichi Handa <handa@m17n.org>
14777
14778 * dispextern.h (enum lface_attribute_index): New member
14779 LFACE_FOUNDRY_INDEX.
14780
14781 * font.c (font_score): Delete arg alternate_families. Check only
14782 weight, slant, width, and size. Ignore the difference of alias
14783 style symbols.
14784 (font_sort_entites): Adjust for the above change. Reflect the
14785 order of font-driver to scores.
14786 (font_list_entities): Don't check alternate_familes here.
14787 (font_clear_prop): Handle foundry.
14788 (font_update_lface): Don't parse "foundry-family" form here.
14789 Handle FONT_FOUNDRY_INDEX.
14790 (font_find_for_lface): Likewise. Handle alternate families here.
14791 If registry is nil, try iso8859-1 and ascii-0.
14792 (font_open_for_lface): Pay attention to size in ENTITY.
14793 (font_open_by_name): Simplify by calling font_load_for_lface.
14794 (free_font_driver_list): Delete it.
14795 (font_update_drivers): Preserve the order of backends.
14796 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14797 of font_score and font_sort_entites.
14798 (font_update_sort_order): Likewise.
14799
14800 * xfaces.c (LFACE_FOUNDRY): New macro.
14801 (check_lface_attrs): Check foundry.
14802 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14803 (merge_face_vectors): Check foundry.
14804 (merge_face_ref): Likewise.
14805 (Finternal_set_lisp_face_attribute): Likewise.
14806 (x_update_menu_appearance): Likewise.
14807 (Finternal_get_lisp_face_attribute): Likewise.
14808 (lface_hash): Likewise.
14809 (lface_same_font_attributes_p): Likewise.
14810 (x_supports_face_attributes_p): Likewise.
14811 (tty_supports_face_attributes_p): Likewise.
14812 (Finternal_set_alternative_font_family_alist): Intern strings.
14813 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14814 (realize_default_face): Set LFACE_FOUNDRY (lface).
14815
14816 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14817 font-driver at first.
14818
14819 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14820
148212008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14822
14823 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14824
148252008-06-12 Jim Meyering <meyering@redhat.com>
14826
14827 Make unexec_free handle NULL the same way free does.
14828 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14829
148302008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14831
14832 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14833 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14834 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14835 (WEAK_ALIAS): Simplify.
14836 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14837 when searching a unibyte buffer.
14838
148392008-06-12 Chong Yidong <cyd@stupidchicken.com>
14840
14841 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14842
148432008-06-12 Juanma Barranquero <lekktu@gmail.com>
14844
14845 * w32font.c: Include ctype.h.
14846
148472008-06-11 Jason Rumney <jasonr@gnu.org>
14848
14849 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14850 misreported as space.
14851 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14852 as aliases for registry iso10646-1.
14853
148542008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14855
14856 * buffer.c (clone_per_buffer_values): Skip `name'.
14857
148582008-06-11 Chong Yidong <cyd@stupidchicken.com>
14859
14860 * font.c (font_parse_fcname): Fix last change; accept decimal
14861 points in font size.
14862
148632008-06-10 Jason Rumney <jasonr@gnu.org>
14864
14865 * w32uniscribe.c (add_opentype_font_name_to_list):
14866 Skip non unicode fonts.
14867
148682008-06-10 Chong Yidong <cyd@stupidchicken.com>
14869
14870 * xfns.c (Fx_font_dialog): New function.
14871
14872 * gtkutil.c (xg_dialog_response_cb): Rename from
14873 xg_file_response_callback.
14874 (pop_down_dialog): Rename from pop_down_file_dialog.
14875 (xg_get_file_name): Callers changed.
14876 (xg_get_font_name): New function.
14877
14878 * gtkutil.h (xg_get_font_name): Insert prototype.
14879
148802008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14881
14882 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14883 x_underline_minimum_display_offset.
14884 (syms_of_xdisp): Declare it here rather than in xterm.c.
14885 * dispextern.h (underline_minimum_offset): Declare it.
14886 * w32term.c (x_draw_glyph_string): Use it.
14887 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14888 (syms_of_xterm): Don't declare it any more.
14889 (x_draw_glyph_string): Adjust to the new name.
14890
8719abec 148912008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
14892
14893 * xterm.c (x_underline_minimum_display_offset): New var.
14894 (x_draw_glyph_string): Use it.
14895 (syms_of_xterm): Declare it.
14896
148972008-06-10 Chong Yidong <cyd@stupidchicken.com>
14898
14899 * font.c (font_parse_fcname): Accept GTK-style font names too.
14900
149012008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14902
14903 * dired.c (file_name_completion): Don't return t if the match is exact
14904 but with different capitalization.
14905 * minibuf.c (Ftry_completion): Simplify.
14906
14907 * window.c (Vwindow_point_insertion_type): New var.
14908 (set_window_buffer): Use it.
14909 (syms_of_window): Init and export it to Lisp.
14910
149112008-06-10 Kenichi Handa <handa@m17n.org>
14912
14913 * font.h (font_intern_prop): Prototype adjusted.
14914
14915 * font.c (font_intern_prop): New arg force_symbol.
14916 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14917 Adjust for the change of font_intern_prop.
14918
14919 * ftfont.c (ftfont_pattern_entity):
14920 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14921 (w32_registry):
14922 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14923 the change of font_intern_prop.
14924
149252008-06-09 Juanma Barranquero <lekktu@gmail.com>
14926
14927 * w32menu.c (digest_single_submenu): Declare extern.
14928
149292008-06-09 Jason Rumney <jasonr@gnu.org>
14930
14931 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14932
14933 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14934 (parse_single_submenu): Remove.
14935 (digest_single_submenu): Remove.
14936 (syms_of_w32menu): Don't initialise variables that have moved
14937 to menu.c.
14938 (set_frame_menubar): Sync with version in xmenu.c.
14939 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14940
14941 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14942 Make static again.
14943
149442008-06-09 Jason Rumney <jasonr@gnu.org>
14945
14946 Changes to w32 files related to the move of common menu code
14947 to menu.c on 2008-06-08 by Chong Yidong.
14948
14949 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14950 defs to w32gui.h.
14951 (single_keymap_panes, push_menu_item, push_menu_pane):
14952 Make globally visible.
14953
14954 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14955 (local_free, malloc_widget_value, free_widget_value)
14956 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14957 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14958 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14959 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14960 (menu_items, menu_items_allocated, menu_items_used)
14961 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14962 (init_menu_items, finish_menu_items, discard_menu_items)
14963 (grow_menu_items, push_submenu_start, push_submenu_end)
14964 (push_left_right_boundary, push_menu_pane, push_menu_item)
14965 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14966 (free_menubar_widget_tree_value, parse_single_submenu)
14967 (update_submenu_strings): Remove functions.
14968 (xmalloc_widget_value): Remove and declare extern.
14969
14970 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14971 (OBJ1): Build it.
14972
14973 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14974 (local_heap, local_alloc, local_free, malloc_widget_value)
14975 (free_widget_value): Define here.
14976
149772008-06-09 Kenichi Handa <handa@m17n.org>
14978
14979 * font.h (Qascii_0): Extern it.
14980
14981 * font.c (Qascii_0): New variable.
14982 (syms_of_font): DEFSYM it.
14983 (font_open_by_name): If the registry "iso8859-1" fails, try also
14984 "ascii-0".
14985
14986 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14987
149882008-06-08 Kenichi Handa <handa@m17n.org>
14989
14990 * .gdbinit (xfont): New command.
14991
149922008-06-08 Andreas Schwab <schwab@suse.de>
14993
14994 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14995 * Makefile.in (menu.o): Update dependencies.
14996
14997 * Makefile.in (obj): Always add menu.o.
14998 * emacs.c (main): Always call syms_of_menu.
14999 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15000
150012008-06-08 Chong Yidong <cyd@stupidchicken.com>
15002
15003 * Makefile.in: Compile menu.c.
15004
15005 * lisp.h: Declare syms_of_menu.
15006
15007 * emacs.c (main): Call syms_of_menu.
15008
15009 * keyboard.h: Relocate platform-independent menu definitions from
15010 xmenu.c.
15011
15012 * menu.c: New file. Relocate platform-independent menu
15013 definitions from xmenu.c. Suggested by Adrian Robert.
15014
15015 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 15016 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
15017 (menu_items_used, menu_items_n_panes)
15018 (menu_items_submenu_depth): Move to keyboard.h.
15019 (init_menu_items, finish_menu_items, unuse_menu_items)
15020 (discard_menu_items, restore_menu_items, save_menu_items)
15021 (grow_menu_items, push_submenu_start, push_submenu_end)
15022 (push_left_right_boundary, push_menu_pane, push_menu_item)
15023 (keymap_panes, single_keymap_panes, single_menu_item)
15024 (list_of_panes, list_of_items, find_and_call_menu_selection)
15025 (xmalloc_widget_value, free_menubar_widget_value_tree)
15026 (parse_single_submenu, digest_single_submenu)
15027 (update_submenu_strings): Move to menu.c.
15028
150292008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15030
15031 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15032
150332008-06-06 Miles Bader <miles@gnu.org>
15034
15035 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15036 face, not frame default.
15037
150382008-06-05 Martin Rudalics <rudalics@gmx.at>
15039
15040 * window.c (pop_up_windows, pop_up_frames)
15041 (display_buffer_reuse_frames, Vpop_up_frame_function)
15042 (Vdisplay_buffer_function, Veven_window_heights)
15043 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15044 (Vspecial_display_function, Vsame_window_buffer_names)
15045 (Vsame_window_regexps, split_height_threshold)
15046 (Vsplit_window_preferred_function): Move those vars to window.el.
15047 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15048 (Fdisplay_buffer): Move those functions to window.el.
15049 (syms_of_window): Remove corresponding declarations.
15050 (display_buffer): New function.
15051 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15052 * dispnew.c (Flast_nonminibuf_frame): New function.
15053 * buffer.c (Fpop_to_buffer): Move to window.el.
15054
150552008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15056
15057 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15058
150592008-06-05 Kenichi Handa <handa@m17n.org>
15060
15061 * coding.c (detect_coding): Fix previous change.
15062 (detect_coding_system): Likewise.
15063
150642008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15065
15066 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15067
15068 * keymap.c (Vminibuffer_local_filename_must_match_map):
15069 Rename from Vminibuffer_local_must_match_filename_map.
15070 (syms_of_keymap):
15071 * minibuf.c (Fcompleting_read): Adjust accordingly.
15072 * commands.h: Rename declaration as well.
15073
150742008-06-05 Kenichi Handa <handa@m17n.org>
15075
15076 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15077 family name.
15078 (Ffont_put): Likewise.
15079
15080 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15081 current font-spec.
15082
15083 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15084 is unspecified.
15085
15086 * xfaces.c (realize_x_face): If the font-related face attributes
15087 are the same as those of default face, realize a new fontset from
15088 default->fontset.
15089 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15090
150912008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15092
15093 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15094 (move_it_in_display_line): New wrapper.
15095
15096 * window.c (window_scroll_pixel_based_preserve_x)
15097 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15098 (window_scroll_pixel_based, window_scroll_line_based):
15099 Use them to preserve column positions.
15100 (syms_of_window): Initialize them.
15101
15102 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15103 (HPOS . VPOS) pair.
15104
15105 * dispextern.h (move_it_in_display_line): Declare.
15106
151072008-06-05 Juanma Barranquero <lekktu@gmail.com>
15108
15109 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15110 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15111 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15112
151132008-06-04 Juanma Barranquero <lekktu@gmail.com>
15114
15115 * window.c (Fset_window_parameter): Doc fix.
15116 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15117
151182008-06-04 Joakim Verona <joakim@verona.se>
15119
15120 * window.h (struct window): Add new member window_parameters.
15121
15122 * window.c (Fwindow_parameters, Fwindow_parameter)
15123 (Fset_window_parameter): New defuns.
15124 (syms_of_window): Defsubr the new defuns.
15125 (make_window): Initialize window_parameters to nil.
15126
151272008-06-04 John Paul Wallington <jpw@pobox.com>
15128
15129 * eval.c (Fdefmacro): Doc fix.
15130
151312008-06-04 Kenichi Handa <handa@m17n.org>
15132
15133 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15134 Be sure to call setup_coding_system when we find a proper coding system.
15135 (detect_coding_system): Fix handling of coding->head_ascii.
15136
151372008-06-03 Andreas Schwab <schwab@suse.de>
15138
15139 * font.c (font_prop_validate_spacing): Fix last change.
15140
151412008-06-03 Kenichi Handa <handa@m17n.org>
15142
15143 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15144 (font_parse_fcname): Fix handling of unknown key.
15145
15146 * xfont.c (xfont_list): Try an alias.
15147
15148 * charset.c (char_charset): Return NULL if the arg charset_list is
15149 specified and C doesn't belong to any of them.
15150
151512008-06-02 Chip Coldwell <coldwell@redhat.com>
15152
15153 * font.c (font_pixel_size): Don't take cdr of an integer.
15154
151552008-06-02 Jim Meyering <meyering@redhat.com>
15156
15157 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15158 * alloc.c (xfree): Return right away for a NULL arg.
15159 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15160 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15161 * mac.c (create_apple_event_from_event_ref): Likewise.
15162 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15163 Likewise.
15164 * doprnt.c (doprnt1): Likewise.
15165 * frame.c (frame): Likewise.
15166 * keyboard.c (wipe_kboard): Likewise.
15167 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15168 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15169 * term.c (tty_default_color_capabilities, maybe_fatal)
15170 (delete_tty): Likewise.
15171 * w16select.c (string): Likewise.
15172 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15173 * w32bdf.c (w32_free_bdf_font): Likewise.
15174 * w32fns.c (w32_unload_font): Likewise.
15175 * w32font.c (w32font_close): Likewise.
15176 * window.c (size_window): Likewise.
15177 * xselect.c (receive_incremental_selection): Likewise.
15178 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15179 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15180 * w32.c (stat): Likewise.
15181
15182 Remove useless if-before-free tests.
15183 * editfns.c (Fset_time_zone_rule): Likewise.
15184 * lread.c (nosuffix): Likewise.
15185 * ralloc.c (get_bloc): Likewise.
15186 * regex.c (reg_free): Likewise.
15187 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15188 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15189 * xsmfns.c (smc_save_yourself_CB): Likewise.
15190
151912008-06-02 Kenichi Handa <handa@m17n.org>
15192
15193 * font.c (font_find_for_lface): Handle float font size.
15194 (font_open_for_lface): Likewise.
15195
15196 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15197 comparing the properties.
15198
151992008-06-01 Jason Rumney <jasonr@gnu.org>
15200
15201 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15202 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15203 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15204 Don't add empty script list.
15205 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15206
152072008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15208
15209 * Makefile.in (dot, dotdot): Remove, update users.
15210 ".." has been used elsewhere in the file for a long time.
15211 (LIBXT_STATIC): Remove conditional based on unused variable.
15212
152132008-06-01 Miles Bader <miles@gnu.org>
15214
15215 * xfaces.c (Vface_remapping_alist): New variable.
15216 (syms_of_xfaces): Initialize it.
15217 (enum named_merge_point_kind): New type.
15218 (struct named_merge_point): Add `named_merge_point_kind' field.
15219 (push_named_merge_point): Make cycle detection respect different
15220 named-merge-point kinds.
15221 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15222 Remove face-name alias resolution.
15223 (lface_from_face_name): New definition using
15224 `lface_from_face_name_no_resolve'.
15225 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15226 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15227 (get_lface_attributes): New definition that layers face-remapping on
15228 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15229 (lookup_basic_face): New function.
15230 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15231 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15232 `get_lface_attributes'.
15233 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15234 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15235 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15236
15237 * xdisp.c (init_iterator): Pass base_face_id through
15238 `lookup_basic_face' when we actually use it as a face-id.
15239 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15240 DEFAULT_FACE_ID.
15241
15242 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15243 lookup the initial face-id.
15244
15245 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15246
152472008-06-01 Juanma Barranquero <lekktu@gmail.com>
15248
15249 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15250 (Fremove_text_properties): Fix typos in docstrings.
15251
152522008-05-31 Kenichi Handa <handa@m17n.org>
15253
15254 * font.c (font_list_entities): Fix the car part of data to be
15255 stored in the cache.
15256
15257 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15258
152592008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15260
15261 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15262 Add a `test' argument so another predicate than `equal' can be used.
15263 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15264 (map_char_table): Remove unused vars `c' and `i'.
15265 * lisp.h (Foptimize_char_table): Adjust declaration.
15266 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15267
152682008-05-30 Kenichi Handa <handa@m17n.org>
15269
15270 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15271 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15272 defined.
15273
152742008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15275
15276 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15277 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15278 frame-local settings for the same variable.
15279
152802008-05-30 Kenichi Handa <handa@m17n.org>
15281
15282 * fontset.c (Ffont_info): Move to font.c.
15283 (syms_of_fontset): Delete defsubr of Sfont_info.
15284
15285 * font.c (font_style_to_value, font_score): Delete casting of the
15286 args to xstcasecmp.
15287 (register_font_driver): Increment num_font_drivers only when
15288 registering the driver globally.
15289 (Ffont_info): Move from fontset.c. Handle a font object too.
15290 (syms_of_font): Defsubr Sfont_info.
15291
152922008-05-29 Kenichi Handa <handa@m17n.org>
15293
15294 * coding.h (enum define_coding_utf8_arg_index): New enum.
15295 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15296 coding_attr_utf_bom.
15297 (enum utf_bom_type): Rename from utf_16_bom_type.
15298 (struct utf_16_spec): Adjust for the above change.
15299 (struct coding_system): Add utf_8_bom in `spec' union.
15300
15301 * coding.c (CODING_UTF_8_BOM): New macro.
15302 (enum coding_category): Delete coding_category_utf_8, add
15303 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15304 coding_category_utf_8_sig.
15305 (CATEGORY_MASK_UTF_8): Delete it.
15306 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15307 (CATEGORY_MASK_UTF_8_SIG): New macros.
15308 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15309 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15310 CATEGORY_MASK_UTF_8_SIG.
15311 (CATEGORY_MASK_UTF_8): New macro.
15312 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15313 (detect_coding_utf_8): Check BOM.
15314 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15315 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15316 (encode_coding_utf_16): Likewise.
15317 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15318 (detect_coding, detect_coding_system): Handle utf-8-auto.
15319 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15320 (syms_of_coding): Fix setting up of Vcoding_category_table.
15321
153222008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15323
15324 * process.c (Faccept_process_output): If `millisec' is non-nil,
15325 `seconds' default to 0.
15326 (wait_reading_process_output): Also return non-nil if we read output
15327 from a non-running process.
15328
153292008-05-29 Jason Rumney <jasonr@gnu.org>
15330
15331 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15332 `raster' specified.
15333 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15334 in the uniscribe backend, but disallow any font that has no
15335 unicode subrange support.
15336
153372008-05-29 Juanma Barranquero <lekktu@gmail.com>
15338
15339 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15340 Fix typos in docstrings.
15341
153422008-05-29 Kenichi Handa <handa@m17n.org>
15343
15344 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15345 (Fx_family_fonts): Set frame correctly.
15346
153472008-05-28 Jason Rumney <jasonr@gnu.org>
15348
15349 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15350
153512008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15352
15353 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15354 calling build_annotations.
15355
153562008-05-28 Juanma Barranquero <lekktu@gmail.com>
15357
15358 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15359 (Fencode_coding_string):
15360 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15361 <latin-extra-code-table>: Fix typos in docstrings.
15362 (syms_of_coding) <coding-system-alist>: Doc fix.
15363 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15364
153652008-05-28 Kenichi Handa <handa@m17n.org>
15366
15367 * fontset.c (Ffont_info): Don't call font_close_object.
15368
15369 * font.c (font_parse_family_registry): Use Ffont_put to validate
15370 foundry and family.
15371 (font_delete_unmatched): Don't check spacing.
15372 (font_list_entities): Add spacing to the spec to list fonts.
15373
15374 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15375 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15376
15377 * coding.c (encode_coding_raw_text): Fix previous change.
15378 (encode_coding_object): When the dst_object is a buffer and is
15379 different from src_object, move gap to PT.
15380
153812008-05-27 Chong Yidong <cyd@stupidchicken.com>
15382
15383 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15384
153852008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15386
15387 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15388 all branches. Compute it differently.
15389
15390 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15391
153922008-05-27 Juanma Barranquero <lekktu@gmail.com>
15393
15394 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15395 into "else if () ... else ...".
15396
153972008-05-27 Jason Rumney <jasonr@gnu.org>
15398
15399 * w32font.c (w32font_open_internal): Determine if glyph indices
15400 are likely to work here.
15401
154022008-05-27 Chong Yidong <cyd@stupidchicken.com>
15403
15404 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15405 draw overlap glyphs with appropriate highlighting.
15406
154072008-05-27 Kenichi Handa <handa@m17n.org>
15408
15409 * xfont.c (xfont_open): Fix calculation of font->average_width.
15410
154112008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15412
15413 * casefiddle.c (casify_object): Try to guess better whether the
15414 argument is a byte or a char.
15415
154162008-05-26 Andreas Schwab <schwab@suse.de>
15417
15418 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15419 Always send multiples of format size.
15420
15421 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15422
154232008-05-26 Jason Rumney <jasonr@gnu.org>
15424
15425 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15426 (compute_metrics): Don't set failure if we just cleared the cache.
15427 (w32_weight_table): Remove unused variable.
15428 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15429 backwards compatibility.
15430
154312008-05-25 Kenichi Handa <handa@m17n.org>
15432
15433 * w32term.c (x_draw_glyph_string):
15434 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15435
15436 * xfaces.c: Delete unused function prototypes.
15437 (xstrlwr, font_frame): Delete them.
15438 (clear_face_cache): Delete unused variable.
15439
15440 * xftfont.c (xftfont_open): Delete unused variable.
15441 If underline_thickness is not 1, adjust underline_position.
15442
15443 * ftxfont.c (ftxfont_open): Delete unused variable.
15444
15445 * fontset.c (face_for_char): Optimize for the case of no charset
15446 property.
15447
15448 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15449 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15450 (otf_open, font_otf_capability, generate_otf_features)
15451 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15452 Comment out by surrounding "#if 0" and "#endif" for the moment.
15453 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15454 (syms_of_font): Codes for accessing above commented out.
15455
154562008-05-24 Eli Zaretskii <eliz@gnu.org>
15457
15458 * w32proc.c: Include dispextern.h.
15459
15460 * w32.c: Include dispextern.h.
15461
154622008-05-23 Juanma Barranquero <lekktu@gmail.com>
15463
15464 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15465 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15466 Fix typos in docstrings.
15467
154682008-05-23 Jason Rumney <jasonr@gnu.org>
15469
15470 * xsmfns.c: Remove includes that are already included by config.h.
15471
154722008-05-23 Kenichi Handa <handa@m17n.org>
15473
15474 * charset.c (Qemacs, charset_emacs): New variables.
15475 (char_charset): Fix for non-Unicode characters.
15476 (syms_of_charset): Define charset_emacs.
15477
15478 * w32term.c (x_draw_glyph_string): Be sure to update
15479 s->underline_thickness and s->underline_position. Be sure to draw
15480 underline within the current line area.
15481
15482 * xterm.c (x_draw_glyph_string): Be sure to update
15483 s->underline_thickness and s->underline_position. Be sure to draw
15484 underline within the current line area.
15485
15486 * fontset.c: Delete unused variables and add casting for char *
15487 throughout the file.
15488 (fontset_font): Try the fallback fonts of the current fontset
15489 before consulting the default fontset.
15490
15491 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15492
15493 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15494
154952008-05-22 Jason Rumney <jasonr@gnu.org>
15496
15497 * font.c: Don't include strings.h.
15498
15499 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15500
15501 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15502 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15503 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15504 to call xstrcasecmp.
15505
15506 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15507
15508 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15509
15510 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15511
15512 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15513
155142008-05-22 Kenichi Handa <handa@m17n.org>
15515
15516 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15517
15518 * font.c (font_prop_validate_style): Adjust for the format
15519 change of font_style_table.
15520
15521 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15522 two args.
15523
15524 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15525 two args.
15526
155272008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15528
15529 * minibuf.c (keys_of_minibuf): Delete.
15530 * lisp.h (keys_of_minibuf): Delete.
15531 * emacs.c (main): Don't call keys_of_minibuf.
15532
155332008-05-22 Kenichi Handa <handa@m17n.org>
15534
15535 * ftfont.c (ftfont_resolve_generic_family): Rename from
15536 ftfont_list_generic_family. Return a single family for each
15537 generic family.
15538 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15539 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15540 Call font_add_log.
15541 (ftfont_match): Call font_add_log.
15542
15543 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15544 (FONT_DEBUG): Define it.
15545 (font_add_log): Extern it.
15546 (font_assert): Rename from xassert.
15547
15548 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15549 (xfont_list_family): Call font_add_log.
15550 (xfont_match): Likewise.
15551 (memq_no_quit): Delete.
15552
15553 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15554 call of Ffont_xlfd_name.
15555
15556 * xfaces.c (struct table_entry, slant_table, weight_table)
15557 (swidth_table): Move to font.c.
15558
15559 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15560 xassert are changed to font_assert. Delete many unused variables.
15561 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15562 New variables.
15563 (struct table_entry): Move from xfaces.c and modified.
15564 (weight_table, slant_table, width_table): Move from xfaces.c and
15565 contents adjusted for the change of struct table_entry.
15566 (font_style_to_value, font_style_symbolic): Adjust for the
15567 format change of font_style_table.
15568 (font_parse_family_registry): Don't overwrite existing foundry and
15569 family of font_spec.
15570 (font_score): Fix calculation of diff for sizes.
15571 (font_sort_entites): Call font_add_log.
15572 (font_delete_unmatched): Return a newly created list.
15573 (font_list_entities): Fix previous change. Call font_add_log.
15574 (font_matching_entity, font_open_entity, font_close_entity):
15575 Call font_add_log.
15576 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15577 (Finternal_set_font_style_table): Delete.
15578 (BUILD_STYLE_TABLE): New macro.
15579 (build_style_table): New function.
15580 (Vfont_log, font_log_env_checked): New variables.
15581 (font_add_log): New function.
15582 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15583 Declare Lisp variables "font-weight-table", "font-slant-table",
15584 "font-width-table", and "font-log". Initialize font_style_table.
15585
155862008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15587
15588 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15589
155902008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15591 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15592
15593 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15594 (Vframe_alpha_lower_limit): New variable.
15595 (x_set_alpha): New function.
15596
15597 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15598
15599 * xfns.c (x-create-frame, Qalpha):
15600 Initialize the frame parameter `alpha'.
15601 * xterm.c (OPAQUE, OPACITY): New.
15602 (x_set_frame_alpha): New function.
15603 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15604
15605 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15606 * w32fns.c (w32_frame_parm_handlers): Likewise.
15607
156082008-05-20 Jason Rumney <jasonr@gnu.org>
15609
15610 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15611 truetype fonts to opentype list.
15612
156132008-05-20 Juanma Barranquero <lekktu@gmail.com>
15614
15615 * fontset.c (Ffontset_info): Doc fix.
15616 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15617 <ignore-relative-composition>: Fix typos in docstrings.
15618
15619 * font.c (syms-of-font) <font-encoding-alist>:
15620 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15621 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15622 (Ffont_otf_alternates): Doc fixes.
15623
156242008-05-20 Kenichi Handa <handa@m17n.org>
15625
15626 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15627 font.h through out the file.
15628 (FONT_DRIVERS): Rename from FONTOBJ.
15629 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15630 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15631
15632 * emacs.c (main): Call syms_of_font unconditionally.
15633
15634 * font.h (find_font_encoding): Extern it.
15635
15636 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15637 fontset.c.
194d44e7 15638 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
15639 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15640 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15641 only when HAVE_WINDOW_SYSTEM is defined.
15642 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15643 when HAVE_WINDOW_SYSTEM is defined.
15644
15645 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15646 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15647
15648 * xfaces.c: Include font.h unconditionally.
15649 (merge_face_ref, merge_face_vectors)
15650 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15651
156522008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15653
15654 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15655 indirect_variable.
15656 * eval.c (lisp_indirect_variable): New fun.
15657 (Fuser_variable_p): Use it.
15658
156592008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15660
15661 * lisp.h (indirect_variable):
15662 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15663 Use Lisp_Symbol pointers rather than Lisp_Object.
15664 Adjust callers.
15665 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15666 To this end, change calling-convention.
15667
15668 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15669 if some non-hidden buffers are selected by string&pred.
15670
156712008-05-19 Chong Yidong <cyd@stupidchicken.com>
15672
15673 * process.c (wait_reading_process_output): Always check status
15674 when in batch mode.
15675
156762008-05-19 Kenichi Handa <handa@m17n.org>
15677
15678 * font.c (font_list_entities): Fix handling of cache.
15679 (font_matching_entity): Likewise.
15680
15681 * ftfont.c (cs_iso8859_1): Delete.
15682 (ft_face_cache): New variable.
15683 (struct ftfont_info): New member fc_charset_idx.
15684 (ftfont_build_basic_charsets): Delete.
15685 (fc_charset_table): New variable.
15686 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15687 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15688 Callers changed.
15689 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15690 (ftfont_spec_pattern): New argument fc_charset_idx.
15691 Check registry more rigidly. Change callers.
15692 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15693 change of :font-entity property of the font.
15694
15695 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15696 property of the font.
15697
156982008-05-18 Juanma Barranquero <lekktu@gmail.com>
15699
15700 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15701 (Funencodable_char_position, Fcheck_coding_systems_region)
15702 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15703 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15704 (Ffind_operation_coding_system, Fset_coding_system_priority)
15705 (Fcoding_system_eol_type): Doc fixes.
15706
157072008-05-17 Glenn Morris <rgm@gnu.org>
15708
15709 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15710
157112008-05-16 Eli Zaretskii <eliz@gnu.org>
15712
15713 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15714 and st_gid.
15715
15716 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15717 HAVE_WINDOW_SYSTEM is not defined.
15718
15719 * xfaces.c (merge_face_ref, merge_face_vectors)
15720 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15721 HAVE_WINDOW_SYSTEM is defined.
15722 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15723
157242008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15725
15726 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15727
157282008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15729
15730 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15731
157322008-05-15 Kenichi Handa <handa@m17n.org>
15733
15734 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15735 preference.
15736
157372008-05-15 Glenn Morris <rgm@gnu.org>
15738
15739 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15740
157412008-05-15 Chong Yidong <cyd@stupidchicken.com>
15742
15743 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15744 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15745
15746 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15747
157482008-05-15 Kenichi Handa <handa@m17n.org>
15749
15750 * ftfont.c (ftfont_list): Downcase family name to check generic
15751 families.
15752
15753 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15754 font-spec for QCfont value.
15755
15756 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15757 buffer. Check the return value of it.
15758
157592008-05-14 Jason Rumney <jasonr@gnu.org>
15760
15761 * w32term.c (w32_get_glyph_overhangs): Remove.
15762 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15763
157642008-05-14 Kenichi Handa <handa@m17n.org>
15765
15766 * font.c (font_prop_validate): Make nil a valid value.
15767 (font_clear_cache): Check if the cached vector of entities is nil
15768 or not.
15769
157702008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15771
15772 * emacs.c (main_thread): Conditionalize on
15773 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15774 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15775
15776 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15777 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15778 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15779
157802008-05-14 Kenichi Handa <handa@m17n.org>
15781
15782 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15783 has no corresponding coding system.
15784
157852008-05-14 Jason Rumney <jasonr@gnu.org>
15786
15787 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15788
15789 * w32font.h (w32font_open_internal): Update declaration.
15790
15791 * w32font.c (w32font_open_internal): Change last argument from
15792 w32font_info struct to font object. Fill in font object from
15793 font_entity. Get Outline metrics if possible. Use them to
15794 calculate underline position and thickness. Use xlfd name as name
15795 property. Don't set codepage.
15796 (w32font_open): Pass font_object to w32font_open_internal. Don't
15797 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15798 (w32font_draw): Use s->font.
15799 (clear_cached_metrics): Don't clear non-existent blocks.
15800
15801 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15802 font was not found.
15803 (x_draw_glyph_string): Use underline position and thickness from font.
15804
15805 * w32uniscribe.c (uniscribe_open): Pass font_object to
15806 w32font_open_internal.
15807
158082008-05-14 Kenichi Handa <handa@m17n.org>
15809
15810 These changes are to delete all legacy font-handling codes, and
15811 make Emacs use only font-backends.
15812
15813 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15814 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15815
15816 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15817
15818 * charset.h (Vcharset_non_preferred_head)
15819 (Vcurrent_iso639_language): Extern them.
15820
15821 * charset.c (Vcharset_non_preferred_head): New variable.
15822 (Vcurrent_iso639_language): New variable.
15823 (syms_of_charset): Declare it as a Lisp variable.
15824 (char_charset): Don't check non preferred charsets. As a last
15825 resort, return charset_unicode.
15826 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15827
15828 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15829 conditionals. Don't check enable_font_backend. Delete all codes
15830 used only when USE_FONT_BACKEND is not defined.
15831
15832 * dispextern.h (struct glyph_string): Change type of `font' to
15833 `struct font *'.
15834 (struct glyph_string): New member underline_position and
15835 underline_thickness.
15836 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15837 (struct face): Change type of `font' to `struct font *'. Remove
15838 members `font_name', `font_info_id'.
15839 (per_char_metric, encode_char): Delete externs.
15840 (calc_pixel_width_or_height): Adjust the prototype.
15841
15842 * emacs.c (enable_font_backend): Delete extern.
15843 (main): Don't set enable_font_backend. Don't check the command
15844 line argument "-disable-font-backend".
15845
15846 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15847 (enum font_property_index): New members FONT_DPI_INDEX,
15848 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15849 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15850 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15851 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15852 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15853 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15854 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15855 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15856 (struct font_spec, struct font_entity): New structs.
15857 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15858 (struct font): Many members from old "struct font_info" moved to
15859 here. Members font and entity deleted.
15860 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15861 the new font-related objects.
15862 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15863 (CHECK_FONT_GET_OBJECT): Likewise.
15864 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15865 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15866 (struct font_driver): New members case_sensitive anc check. Type
15867 of the member list and open changed.
15868 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15869 (font_symbolic_width, font_find_object, font_get_spec)
15870 (font_set_lface_from_name): Delete extern.
15871 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15872
15873 * font.c: Include <strings.h>.
15874 (enable_font_backend): Delete it.
15875 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15876 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15877 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15878 (null_string): Delete it.
15879 (null_vector): Make it static.
15880 (font_family_alist): Delete it.
15881 (Qnormal): Extern it.
15882 (QCextra, QClanguage): Delete it.
15883 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15884 (font_make_spec, font_make_entity, font_make_object)
15885 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15886 the string. Callers changed.
15887 (font_pixel_size): Adjusted for the format change of font-related
15888 objects.
15889 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15890 (font_style_to_value, font_style_symbolic): New function.
15891 (build_font_family_alist): Delete it.
15892 (font_registry_charsets): Use Fassoc_string instead of
15893 assq_no_quit.
15894 (font_prop_validate_symbol): Don't return null_string.
15895 (font_prop_validate_style): Adjusted for the change of
15896 style-related values in a font vector.
15897 (font_property_table): Delete entries for QClanguage and
15898 QCantialias, add entries for QCavgwidth.
15899 (get_font_prop_index): Delete the 2nd argument FROM.
15900 (font_prop_validate): Arguments changed.
15901 (font_put_extra): Adjusted for the change of font-related objects.
15902 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15903 (font_parse_fcname, font_unparse_fcname)
15904 (font_prepare_composition): Likewise.
15905 (font_parse_family_registry): Renamed from font_merge_old_spec.
15906 (otf_open): Delete the 1st arg entity.
15907 (font_otf_capability): Adjusted for the above change.
15908 (font_score): New arg alternate_families. Adjusted for the change
15909 of font-related objects.
15910 (font_sort_entites): New arg best_only.
15911 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15912 Delete them.
15913 (font_match_p): Check alternate families.
15914 (font_find_object): Delete it.
15915 (font_check_object): New function.
15916 (font_clear_cache): Adjusted for the change of font-related objects.
15917 (font_delete_unmatched): New arg.
15918 (font_list_entities): Call font_driver->list with a spec that
15919 doesn't specify style-related properties.
15920 (font_matching_entity): Arguments changed. Caller changed.
15921 (font_open_entity): Adjusted for the change of font-related objects.
15922 (font_close_object, font_has_char, font_encode_char)
15923 (font_get_name, font_get_spec): Likewise.
15924 (font_spec_from_name, font_clear_prop, font_update_lface):
15925 New functions.
15926 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15927 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15928 (font_at): Adjusted for the change of font-related objects.
15929 (font_range): New function.
15930 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15931 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15932 (Fcopy_font_spec, Fmerge_font_spec): New function.
15933 (Ffont_family_list): Renamed from list-families.
15934 (Finternal_set_font_style_table): Arguments changed.
15935 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15936 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15937 change of font-related objects.
15938 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15939
15940 * fontset.h (struct font_info): Delete it. Most members go to
15941 struct font.
15942 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15943 (enum FONT_SPEC_INDEX): Delete it.
15944 (font_info, list_fonts_func, load_font_func, query_font_func)
15945 (set_frame_fontset_func, find_ccl_program_func)
15946 (get_font_repertory_func, new_fontset_from_font_name): Delete
15947 externs.
15948 (fontset_from_font_name): Extern it.
15949 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15950 (FONT_INFO_FROM_FACE): Deleted.
15951 (face_for_font): Adjust prototype.
15952
15953 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15954 conditionals. Don't check enable_font_backend. Delete all codes
15955 used only when USE_FONT_BACKEND is not defined.
15956 (get_font_info_func, list_font_func, load_font_func)
15957 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15958 (get_font_repertory_func): Delete them.
15959 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15960 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15961 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15962 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15963 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15964 (fontset_compare_rfontdef): New function.
15965 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15966 rfont-defs by qsort. Adjusted for the change of font-group vector.
15967 (load_font_get_repertory): Deleted.
15968 (fontset_find_font): Use new macros to ref/set elements of
15969 font-def and rfont-def.
15970 (fontset_font): Fix the timing of remembering that no font for C.
15971 (free_face_fontset): Do nothing if the face has no fontset.
15972 (face_suitable_for_char_p): Use new macros to ref/set elements of
15973 rfont-def.
15974 (face_for_char): Likewise. Call face_for_char with font_object.
15975 (fs_load_font): Delete. Delete #pragma surrounding it.
15976 (fs_query_fontset): Use strcasecmp instead of strcmp.
15977 (generate_ascii_font_name): Adjusted for the format change of
15978 font-spec.
15979 (Fset_fontset_font): Likewise. Use new macros to set elements of
15980 font-def.
15981 (Fnew_fontset): Use font_unparse_xlfd to generate
15982 FONTSET_ASCII (fontset).
15983 (new_fontset_from_font_name): Deleted.
15984 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15985 a fontset is already created for the font. FIx updating of
15986 Vfontset_alias_alist.
15987 (fontset_ascii_font): Deleted.
15988 (Ffont_info): Adjusted for the format change of font-spec.
15989 (Finternal_char_font): Likewise.
15990 (Ffontset_info): Likewise.
15991 (syms_of_fontset): Don't check load_font_func.
15992
15993 * fns.c (internal_equal): Handle PREV_FONT.
15994
15995 * frame.h: Delete USE_FONT_BACKEND conditional.
15996
15997 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15998 conditionals. Don't check enable_font_backend. Delete all codes
15999 used only when USE_FONT_BACKEND is not defined.
16000 (x_set_font): Call x_new_font, not x_new_fontset2.
16001 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16002 already set for the frame.
16003
16004 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16005 a font-entity by font_make_entity. Use font_intern_prop instead
16006 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16007 font property. If a font is scalable, set avgwidth property to 0.
16008 Set font-entity property by font_put_extra.
16009 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16010 (ffont_driver): Adjusted for the change of struct font_driver.
16011 (ftfont_spec_pattern): New function.
16012 (ftfont_list): Return a list, not vector.
16013 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16014 (ftfont_list_family): Don't downcase names.
16015 (ftfont_free_entity): Deleted.
16016 (ftfont_open): Return a font-object. Adjusted for the change of
16017 struct font. Get underline_thickness and underline_position from
16018 font property. Don't update dpyinfo->smallest_font_height and
16019 dpyinfo->smallest_char_width.
16020 (ftfont_close): Don't free `struct font'.
16021 (ftfont_has_char): Adjusted for the format change of font-entity.
16022 (ftfont_encode_char, ftfont_text_extents): Likewise.
16023
16024 * ftxfont.c (ftxfont_list): Return a list, not vector.
16025 (ftxfont_open): Return a font-object. Adjusted for the change of
16026 struct font. Get underline_thickness and underline_position from
16027 font property. Don't update dpyinfo->smallest_font_height and
16028 dpyinfo->smallest_char_width.
16029 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16030 (ftxfont_draw): Adjusted for the change of struct font.
16031
16032 * image.c (image_ascent): Don't include "charset.h". Include
16033 "character.h" and "font.h".
16034
16035 * lisp.h (enum pvec_type): New member PREV_FONT.
16036 (Fassoc_string): EXFUN it.
16037
16038 * print.c: Include font.h.
16039 (print_object): Handle font-related objects.
16040
16041 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16042 conditionals. Don't check enable_font_backend. Delete all codes
16043 used only when USE_FONT_BACKEND is not defined.
16044 (handle_auto_composed_prop): Do nothing if it->f is not on a
16045 window system. Check how many following characters can be
16046 displayed by the same font.
16047 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16048 'struct font *'.
16049 (get_char_face_and_encoding): Assign the whole encoding task to
16050 the `encode-char' method of a font driver.
16051 (fill_composite_glyph_string): Adjusted for the change of `struct
16052 face' and `struct glyph_string'.
16053 (fill_glyph_string): Likewise.
16054 (get_per_char_metric): Arguments changed.
16055 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16056 and `struct glyph_string'.
16057 (produce_stretch_glyph, calc_line_height_property)
16058 (x_produce_glyphs): Likewise.
16059
16060 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16061 conditionals. Don't check enable_font_backend. Delete all codes
16062 used only when USE_FONT_BACKEND is not defined. Use
16063 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16064 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16065 (Qp): Extern them.
16066 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16067 Deleted.
16068 (struct font_name): Deleted.
16069 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16070 (compare_fonts_by_sort_order): New function.
16071 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16072 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16073 Deleted.
16074 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16075 compare_fonts_by_sort_order.
16076 (Fx_font_family_list): Call Ffont_family_list.
16077 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16078 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16079 (face_symbolic_slant, face_symbolic_swidth)
16080 (split_font_name_into_vector, build_font_name_from_vector)
16081 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16082 (font_rescale_ratio, split_font_name, build_font_name)
16083 (free_font_names, sort_fonts, x_face_list_fonts)
16084 (face_font_available_p, sorted_font_list, cmp_font_names)
16085 (font_list_1, concat_font_list, font_list, remove_duplicates):
16086 Deleted.
16087 (Fx_list_fonts): Use Ffont_list.
16088 (LFACE_AVGWIDTH): Deleted.
16089 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16090 by FONTP.
16091 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16092 (set_lface_from_font_name): Delete it.
16093 (set_lface_from_font): Renamed from
16094 set_lface_from_font_and_fontset. Caller changed. Don't set
16095 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16096 for face.
16097 (merge_face_vectors): Copy font-spec if necessary.
16098 Clear properties of the font-spec if necessary.
16099 (merge_face_ref): Clear properties of the font-spec if necessary.
16100 (Finternal_set_lisp_face_attribute): Likewise.
16101 (set_font_frame_param): Use font_load_for_lface to load a
16102 font-object, and call Fmodify_frame_parameters with it.
16103 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16104 font name by Ffont_xlfd_name.
16105 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16106 QCslant, and QCwidth.
16107 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16108 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16109 Compare fonts by EQ.
16110 (lookup_non_ascii_face): Deleted.
16111 (face_for_font): The 2nd argument changed.
16112 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16113 Check atomic font properties by case insensitive.
16114 (realize_non_ascii_face): Set face->overstrike correctly.
16115 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16116 (dump_realized_face): Get font name from
16117 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16118
16119 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16120 conditionals. Don't check enable_font_backend. Delete all codes
16121 used only when USE_FONT_BACKEND is not defined.
16122 (xic_create_xfontset): Original code deleted and renamed from
16123 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16124 (x_make_gc): Don't set GCFont in GCs.
16125 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16126 opened by "fixed".
16127 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16128 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16129 get_font_repertory_func.
16130
16131 * xfont.c: Include <stdlib.h> and "ccl.h".
16132 (struct xfont_info): New structure.
16133 (xfont_query_font): Deleted.
16134 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16135 moved from xterm.c.
16136 (xfont_driver): Adjusted for the change of struct font_driver.
16137 (compare_font_names): New function.
16138 (xfont_list_pattern): Sort font names case insensitively. Make
16139 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16140 (xfont_list): Return a list, not vector.
16141 (xfont_match): If the font doesn't have QCname property, generate
16142 a name from the other font properties.
16143 (xfont_open): Return a font-object. Adjusted for the change of
16144 struct font. Get underline_thickness and underline_position from
16145 font property. Don't update dpyinfo->smallest_font_height and
16146 dpyinfo->smallest_char_width.
16147 (xfont_close): Don't free struct font.
16148 (xfont_prepare_face): Adjusted for the change of struct font.
16149 (xfont_done_face): Deleted.
16150 (xfont_has_char): Adjusted for the change of struct font.
16151 (xfont_encode_char, xfont_draw): Likewise.
16152 (xfont_check): New function.
16153
16154 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16155 callback function.
16156 (xftfont_match): Adjusted for the format change of font-entity.
16157 (xftfont_open): Adjusted for the format change of font-entity and
16158 font-object. Adjusted for the change of struct font. Return a
16159 font-object. Don't update dpyinfo->smallest_font_height and
16160 dpyinfo->smallest_char_width.
16161 (xftfont_close): Block input while calling XftFontClose.
16162 (xftfont_prepare_face): Don't block input while calling
16163 xftfont_get_colors. Adjusted for the change of struct font.
16164 (xftfont_shape): Return value of error case fixed.
16165
16166 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16167
16168 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16169 conditionals.
16170 (FONT_WIDTH): Return (f)->max_width.
16171 (struct x_display_info): Delete member `font'.
16172 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16173 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16174 (struct x_output): Change type of `font' to `struct font *'.
16175
16176 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16177 conditionals. Don't check enable_font_backend. Delete all codes
16178 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16179 (x_per_char_metric, x_encode_char): Deleted.
16180 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16181 (x_compute_glyph_string_overhangs): Adjusted for the change of
16182 `struct face'.
16183 (x_draw_glyph_string_foreground)
16184 (x_draw_composite_glyph_string_foreground): Likewise.
16185 (x_draw_glyph_string): Likewise. Use font->underline_position and
16186 font->underline_thickness.
16187 (x_new_font): Renamed from x_new_fontset2.
16188 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16189 (x_check_font): Call `check' method of a font driver.
16190 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16191 (x_query_font, x_get_font_repertory): Deleted.
16192 (x_find_ccl_program): Renamed and moved to xfont.c.
16193 (x_redisplay_interface): Adjusted for the change of `struct
16194 redisplay_interface'.
16195
16196 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16197 conditionals. Don't check enable_font_backend. Delete all codes
16198 used only when USE_FONT_BACKEND is not defined. Surround non-used
16199 code by "#ifdef OLD_FONT" and "endif".
16200 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16201
16202 * w32font.h (struct w32font_info): New member.
16203 (FONT_COMPAT): New macro.
16204 (w32font_open_internal): Prototype adjusted.
16205
16206 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16207 OLD_FONT" and "endif".
16208
16209 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16210 conditionals. Don't check enable_font_backend. Delete all codes
16211 used only when USE_FONT_BACKEND is not defined.
16212 (w32font_open): Return a font-object. Make a font-object by
16213 font_make_object. Adjusted for the change of struct w32font_info.
16214 (w32font_close): Don't free struct font. Adjusted for the change
16215 of struct w32font_info.
16216 (w32font_encode_char, w32font_text_extents, w32font_draw):
16217 Adjusted for the change of struct w32font_info.
16218 (w32font_draw): Likewise.
16219 (w32font_list_internal): Return a list, not vector.
16220 (w32font_open_internal): Change the 4th arg to font-object.
16221 Adjusted for the change of struct w32font_info and font-object format.
16222 (add_font_name_to_list): Don't downcase names.
16223 (w32_enumfont_pattern_entity): Make a font-entity by
16224 font_make_entity. Adjusted for the format change of font-entity.
16225 Use FONT_SET_STYLE to set a style-related font property. If a
16226 font is scalable, set avgwidth property to 0. Set font-entity
16227 property by font_put_extra.
16228 (font_matches_spec): Adjusted for the format change of font-entity.
16229 (w32_weight_table, w32_decode_weight): New variables.
16230 (w32_encode_weight): New function.
16231 (fill_in_logfont): Adjusted for the format change of font-spec.
16232 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16233 weight value.
16234 (w32font_driver): Adjusted for the change of struct font_driver.
16235
16236 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16237 conditionals. Don't check enable_font_backend. Surround non-used
16238 code by "#ifdef OLD_FONT" and "endif".
16239 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16240 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16241
16242 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16243 conditionals. Don't check enable_font_backend. Delete all codes
16244 used only when USE_FONT_BACKEND is not defined. Surround non-used
16245 code by "#ifdef OLD_FONT" and "endif".
16246
16247 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16248 (uniscribe_open): Return value changed to font-object.
16249 Adjusted for the format change of font-object.
16250 (uniscribe_otf_capability): Adjusted for the change of struct font.
16251 (add_opentype_font_name_to_list): Don't downcase names.
16252 (uniscribe_font_driver): Adjusted for the change of struct
16253 font_driver.
16254
162552008-05-13 Chong Yidong <cyd@stupidchicken.com>
16256
16257 * dispnew.c (update_frame_1): Check if tty output is still valid
16258 before flushing it.
16259
162602008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16261
16262 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16263 to Gtk+ menus.
16264
162652008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16266
16267 * dired.c (file_name_completion): Tweak the code so as to always do it
16268 in a single pass. Tighten the scope of some variables.
16269
16270 * dired.c (Qdefault_directory): New var.
16271 (file_name_completion): Use it instead of Fexpand_file_name.
16272 (syms_of_dired): Initialize it.
16273
162742008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16275
16276 * fileio.c (double_dollars): Remove dead code.
16277
162782008-05-10 Eli Zaretskii <eliz@gnu.org>
16279
16280 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16281 Mention w32-get-true-file-attributes in doc string.
16282
16283 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16284
162852008-05-09 Glenn Morris <rgm@gnu.org>
16286
16287 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16288 2008-04-23.
16289
162902008-05-09 Eli Zaretskii <eliz@gnu.org>
16291
16292 Support for reporting owner and group of each file on MS-Windows:
16293 * dired.c (stat_uname, stat_gname): New functions, with special
16294 implementation for w32.
16295 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16296
16297 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16298 (dflt_group_name): New static variable.
16299 (dflt_group): Rename from the_group.
16300 (init_user_info): Init dflt_group fields. Get user's group name
16301 from LookupAccountSid.
16302 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16303 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16304 New initialization states.
16305 (globals_of_w32): Initialize them to zero. Initialize the default
16306 group name to "None".
16307 (GetFileSecurity_Name): New global var, the name of the function
16308 to call for GetFileSecurity.
16309 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16310 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16311 (get_file_security, get_security_descriptor_owner)
16312 (get_security_descriptor_group, is_valid_sid)
16313 (get_file_security_desc, get_rid, get_name_and_id)
16314 (get_file_owner_and_group): New functions.
16315 (stat): Use get_file_security_desc and get_file_owner_and_group to
16316 report the owner and primary group of each file. Don't ignore the
16317 high 32 bits of file's size, now that st_size is 64-bit wide.
16318 Fix test when to get true file attributes.
16319 (init_user_info): Use get_rid instead of equivalent inline code.
16320 (fstat): Don't ignore the high 32 bits of file's size.
16321
163222008-05-09 Chong Yidong <cyd@stupidchicken.com>
16323
16324 * image.c (png_load): Use correct bit-depth for setting background
16325 color.
16326
163272008-05-08 Eli Zaretskii <eliz@gnu.org>
16328
16329 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16330 epa-hook.elc.
16331
163322008-05-08 Juanma Barranquero <lekktu@gmail.com>
16333
16334 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16335
163362008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16337
16338 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16339 because the original parameters are in pure storage now.
16340 (mac_window): Remove unused params. Update callers.
16341
163422008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16343
16344 * lread.c (substitute_object_recurse): Use lower-level primitives.
16345 Don't signal errors when traversing sub-char-tables.
16346 Don't loop over all the possible characters when traversing char-tables.
16347
16348 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16349 just like we do in print.c.
16350
163512008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16352
16353 * minibuf.c (Ftry_completion): Remove code left over from when we used
16354 scmp instead of Fcompare_strings.
16355
163562008-05-04 Juanma Barranquero <lekktu@gmail.com>
16357
16358 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16359
163602008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16361
16362 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16363 Create bitmap context in native byte order.
16364
16365 * macterm.c (XDrawLine)
16366 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16367 context in native byte order.
16368
163692008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16370
16371 * config.in: Regenerate.
16372
16373 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16374 New definitions for Image I/O support.
16375 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16376 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16377 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16378 (mac_data_provider_release_data, image_load_image_io)
16379 [USE_MAC_IMAGE_IO]: New functions.
16380 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16381 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16382 (init_image_func_pointer) [MAC_OSX]: Remove function.
16383 (image_load_quartz2d) [MAC_OSX]: Check availability of
16384 CGImageCreateWithPNGDataProvider at compile time.
16385 Use lowercase `false' for boolean constant.
16386 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16387 Use image_load_image_io.
16388 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16389 Don't check MyCGImageCreateWithPNGDataProvider.
16390 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16391 Don't call init_image_func_pointer.
16392
16393 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16394
16395 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16396 Make variable non-static.
16397 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16398 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16399
16400 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16401 (RED_FROM_ULONG): Mask off higher bits.
16402 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16403
16404 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16405 Include AvailabilityMacros.h.
16406 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16407 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16408
164092008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16410
16411 * chartab.c (Fset_char_table_range): If range is t, really set all
16412 chars to that value.
16413
164142008-05-03 Eli Zaretskii <eliz@gnu.org>
16415
16416 * dired.c (Ffile_attributes): Don't allow the device number become
16417 negative.
16418
164192008-05-02 Daiki Ueno <ueno@unixuser.org>
16420
16421 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16422
164232008-05-02 Juri Linkov <juri@jurta.org>
16424
16425 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16426 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16427 DEFAULT argument as a list of default values in docstrings.
16428
164292008-05-01 Chong Yidong <cyd@stupidchicken.com>
16430
16431 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16432
164332008-05-01 Martin Rudalics <rudalics@gmx.at>
16434
16435 * dispnew.c (change_frame_size_1): Preserve small windows when
16436 shrinking frames by calling set_window_height|width with third
16437 arg 2.
16438
16439 * window.h (struct window): Replace field too_small_ok by field
16440 resize_proportionally.
16441
16442 * window.c (make_window): Initialize resize_proportionally.
16443 (enlarge_window): Temporarily set resize_proportionally to make
16444 sure that shrink_windows does scale the window proportionally.
16445 (shrink_windows): When window has resize_proportionally set try
16446 to shrink it proportionally by stealing from other windows.
16447 (struct saved_window, Fset_window_configuration)
16448 (compare_window_configurations): Handle resize_proportionally.
16449 (WINDOW_TOTAL_SIZE): New macro.
16450 (window_min_size, shrink_windows, size_window): Use it.
16451 (check_min_window_sizes): Remove. Invalid values of
16452 window-min-height|width are handled by window_min_size_2 now.
16453 (size_window, Fsplit_window, enlarge_window)
16454 (adjust_window_trailing_edge, grow_mini_window): Don't call
16455 check_min_window_sizes.
16456 (window_min_size_2, window_min_size_1, window_min_size):
16457 New argument safe_p for retrieving "safe" minimum sizes.
16458 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16459 (adjust_window_trailing_edge, grow_mini_window):
16460 Adjust arguments of window_min_size... functions.
16461 (shrink_windows): Argument min_size removed. New argument
16462 safe_p allows shrinking windows to their safe minimum sizes.
16463 Calculate minimum size and decide whether a window shall be
16464 deleted for each window individually.
16465 (size_window): When nodelete_p equals 2, tell shrink_windows to
16466 delete windows only if their new minimum size is no more safe.
16467 (shrink_window_lowest_first): Call window_min_size_1 to make
16468 sure to preserve modeline of bottom-most window when resizing
16469 the minibuffer.
16470 (Fset_window_configuration, Fcurrent_window_configuration)
16471 (compare_window_configurations): Do not handle
16472 window-min-height|width any more.
16473 (syms_of_window): Clarify window-min-height|width doc-strings.
16474
164752008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16476
16477 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16478 some more. Copy some of the code from Ftry_completions.
16479 Remove special case code that dates back to initial revision when the
16480 slash was only added when necessary and that can't trigger nowadays.
16481
164822008-04-27 Kenichi Handa <handa@m17n.org>
16483
16484 * font.c (font_prop_validate): Signal `error' instead of `font'.
16485
164862008-04-29 Jason Rumney <jasonr@gnu.org>
16487
16488 * w32fns.c (Fw32_battery_status): New defun.
16489 (syms_of_w32fns): Defsubr it.
16490
164912008-04-28 Andreas Schwab <schwab@suse.de>
16492
16493 * dired.c (file_name_completion): Fix another mixing of encoded
16494 and decoded names.
16495
164962008-04-28 Juanma Barranquero <lekktu@gmail.com>
16497
16498 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16499
165002008-04-27 Juanma Barranquero <lekktu@gmail.com>
16501
16502 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16503
165042008-04-27 Andreas Schwab <schwab@suse.de>
16505
16506 * dired.c (file_name_completion): Fix inappropriate mixing of
16507 encoded and decoded names.
16508
16509 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16510
16511 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16512
165132008-04-26 Eli Zaretskii <eliz@gnu.org>
16514
16515 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16516 2008-03-31, it's not needed anymore with `struct stat' definition
16517 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16518 for the same reasons.
16519
165202008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16521
16522 * m/sparc.h: Additional redefinitions for GNU/Linux.
16523
165242008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16525
16526 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16527 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16528 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16529 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16530 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16531 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16532 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16533 Likewise.
16534
16535 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16536 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16537 (mac_ax_number_of_characters): Add externs.
16538 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16539 [USE_MAC_TSM]: Likewise.
16540 (mac_handle_text_input_event) [MAC_OSX]:
16541 Handle kEventTextInputOffsetToPos for no active input area case.
16542 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16543 (mac_handle_document_access_event)
16544 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16545 (install_application_handler) [MAC_OSX]: Register handlers for
16546 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16547 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16548 Register mac_handle_document_access_event.
16549
16550 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16551 Make functions non-static.
16552
165532008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16554
16555 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16556 (read_file_name_completion_ignore_case, insert_default_directory)
16557 (Qdefault_directory): Move to minibuffer.el.
16558 (Fread_file_name): Call the new `read-file-name' instead.
16559
165602008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16561
16562 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16563 Make function non-static.
16564 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16565 Remove function.
16566 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16567 Move to mactoolbox.c.
16568 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16569
16570 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16571 (mac_rect_make): New macro.
16572
16573 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16574 instead of float.
16575 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16576 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16577 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16578 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16579 CGRectMake.
16580 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16581 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16582 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16583 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16584 instead of WindowRef in argument type.
16585 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16586 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16587 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16588 instead of DISPLAY. All uses changed.
16589 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16590 (x_calc_absolute_position): Simplify so as not to use
16591 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16592
16593 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16594 instead of WindowRef in argument type.
16595 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16596 [TARGET_API_MAC_CARBON]: Remove externs.
16597 (create_apple_event, mac_event_parameters_to_lisp)
16598 [TARGET_API_MAC_CARBON]: Add externs.
16599
16600 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16601 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16602 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16603 is clicked.
16604 (x_activate_menubar): Remove extern for saved_menu_event_location.
16605 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16606 Move from mac.c.
16607
166082008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16609
16610 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16611 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16612
166132008-04-23 Jason Rumney <jasonr@gnu.org>
16614
16615 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16616 attributes only for local files.
16617
16618 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16619 default to Qlocal.
16620
166212008-04-22 Juri Linkov <juri@jurta.org>
16622
16623 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16624 read-buffer-to-switch instead of using the letter "B".
16625
166262008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16627
16628 * fileio.c (Qdefault_directory): New variable.
16629 (Fread_file_name): Use it to pass `dir' to the completion functions.
16630
166312008-04-20 Chong Yidong <cyd@stupidchicken.com>
16632
16633 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16634
166352008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16636
16637 * keyboard.c (Vpre_help_message): Remove.
16638 (show_help_echo): Remove default C code.
16639
16640 * dired.c (directory_files_internal, file_name_completion):
16641 Only call ENCODE_FILE if the string is indeed decoded.
16642
166432008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16644
16645 * Makefile.in (TOOLKIT_DEFINES): Remove.
16646 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16647
166482008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16649
16650 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16651 (mactoolbox.o): New target.
16652
16653 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16654 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16655
16656 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16657 Use mac_set_frame_window_background instead of XSetWindowBackground.
16658 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16659 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16660 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16661 instead of SetWindowTitleWithCFString.
16662 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16663 Move function to mactoolbox.c.
16664 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16665 Use mac_set_window_modified instead of SetWindowModified.
16666 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16667 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16668 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16669 FrontNonFloatingWindow. Use mac_activate_window instead of
16670 ActivateWindow. Use mac_active_non_floating_window instead of
16671 ActiveNonFloatingWindow.
16672 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16673 Use mac_show_hourglass and mac_hide_hourglass.
16674 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16675 instead of GetGlobalMouse.
16676 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16677 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16678 Use mac_bring_window_to_front instead of BringToFront.
16679 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16680 mactoolbox.c.
16681 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16682 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16683 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16684 mactoolbox.c.
16685
16686 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16687 (XtPointer): Move typedef from macmenu.c.
16688 (enum button_type): Move enum from macmenu.c.
16689 (widget_value): Move typedef from macmenu.c.
16690 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
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 from macmenu.c.
16698 (Selection): Move typedef from macselect.c.
16699 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16700 macterm.c.
16701 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16702 (mac_is_window_collapsed, mac_bring_window_to_front)
16703 (mac_send_window_behind, mac_hide_window, mac_show_window)
16704 (mac_collapse_window, mac_front_non_floating_window)
16705 (mac_active_non_floating_window, mac_activate_window)
16706 (mac_move_window_structure, mac_move_window, mac_size_window)
16707 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16708
16709 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16710 (enum mac_menu_kind): Move enum to mactoolbox.c.
16711 (min_menu_id): Move variable to mactoolbox.c.
16712 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16713 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16714 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16715 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16716 [TARGET_API_MAC_CARBON]: Likewise.
16717 (XtPointer): Move typedef to macgui.h.
16718 (enum button_type): Move enum to macgui.h.
16719 (widget_value): Move typedef to macgui.h.
16720 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16721 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16722 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16723 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16724 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16725 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16726 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16727 (popup_activated_flag): Make variable non-static.
16728 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16729 (add_menu_item, fill_menu, dispose_menus):
16730 Move functions to mactoolbox.c.
16731 (restore_show_help_function, menu_target_item_handler)
16732 (install_menu_target_item_handler, mac_handle_dialog_event)
16733 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16734 [TARGET_API_MAC_CARBON]: Likewise.
16735 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16736 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16737 (find_and_call_menu_selection, name_is_separator): Make function
16738 non-static.
16739 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16740 to mactoolbox.c.
16741 (set_frame_menubar): Don't call install_menu_quit_handler.
16742 (menu_item_selection): New variable.
16743 (mac_menu_show): Use create_and_show_popup_menu.
16744 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16745 selection but set variable menu_item_selection. All uses changed.
16746 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16747 Call install_menu_quit_handler. Move to mactoolbox.c.
16748
16749 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16750 (Selection): Move typedef to macgui.h.
16751 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16752 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16753 Make variables non-static.
16754 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16755 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16756 Make functions non-static.
16757 (Vmac_service_selection) [MAC_OSX]: Likewise.
16758 (mac_get_selection_from_symbol, get_flavor_type_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)
16763 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16764 Move functions to mactoolbox.c.
16765 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16766 Likewise.
16767 (copy_scrap_flavor_data, mac_handle_service_event)
16768 (install_service_handler) [MAC_OSX]: Likewise.
16769 (syms_of_macselect) <Vmac_dnd_known_types>:
16770 Use mac_dnd_default_known_types.
16771
16772 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16773 Move to mactoolbox.c.
16774 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16775 (Fx_selection_owner_p): Add EXFUN.
16776 (install_window_handler, remove_window_handler, XSetWindowBackground):
16777 Remove externs.
16778 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16779 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16780 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16781 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16782 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16783 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16784 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16785 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16786 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16787 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16788 (mac_valid_selection_target_p, mac_clear_selection)
16789 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16790 (mac_put_selection_value, mac_selection_has_target_p)
16791 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16792 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16793 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16794 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16795 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16796 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16797 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16798 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16799 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16800
16801 * mactoolbox.c: New file.
16802
168032008-04-18 Jason Rumney <jasonr@gnu.org>
16804
16805 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16806
168072008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16808
16809 * character.c (Fmultibyte_char_to_unibyte):
16810 Return latin1 chars unchanged.
16811
16812 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16813 relocated if it points to `name'.
16814
168152008-04-17 Kenichi Handa <handa@m17n.org>
16816
16817 * data.c (Faset): Allow setting a multibyte character in an
16818 ASCII-only unibyte string.
16819
16820 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16821
168222008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16823
16824 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16825 done in config.h.
16826
168272008-04-16 Juanma Barranquero <lekktu@gmail.com>
16828
16829 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16830 (Fchar_direction): Add usage in the docstring.
16831
168322008-04-15 Chong Yidong <cyd@stupidchicken.com>
16833
16834 * keyboard.c (read_key_sequence): Remove always-true checks.
16835
168362008-04-14 Jason Rumney <jasonr@gnu.org>
16837
16838 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16839 compatibility struct, for better underline positioning.
16840
168412008-04-13 David Hansen <david.hansen@gmx.net>
16842
16843 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16844 string.
16845
168462008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16847
16848 * m/hp800.h (XUINT, XSET): Remove.
16849
168502008-04-12 Juanma Barranquero <lekktu@gmail.com>
16851
16852 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16853 previous change.
16854
168552008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16856
16857 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16858 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16859
168602008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16861
16862 * keymap.h (map_keymap_canonical): Declare.
16863 * xmenu.c (single_keymap_panes): Use it.
16864
168652008-04-11 Glenn Morris <rgm@gnu.org>
16866
16867 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16868 set the target's value to that of the alias.
16869
168702008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16871
16872 * term.c (set_tty_color_mode): Left over typo.
16873
168742008-04-10 Michael Albinus <michael.albinus@gmx.de>
16875
16876 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16877 only after check for file name handler functions. Signal, when
16878 native functionality is not supported.
16879 (syms_of_fileio): Declare it unconditionally.
16880
168812008-04-10 Jason Rumney <jasonr@gnu.org>
16882
16883 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16884 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16885
16886 * w32.c (logon_network_drive): Also logon to remote drives that
16887 are mapped to drive letters.
16888
168892008-04-10 Glenn Morris <rgm@gnu.org>
16890
16891 * xdisp.c (truncate-partial-width-windows): Doc fix.
16892
168932008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16894
16895 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16896 Move functions to minibuffer.el.
16897 (syms_of_fileio): Don't declare them.
16898
168992008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16900
16901 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16902 (syms_of_minibuf): Remove its initialization.
16903
16904 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16905
169062008-04-09 Juanma Barranquero <lekktu@gmail.com>
16907
16908 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16909
169102008-04-09 Jason Rumney <jasonr@gnu.org>
16911
16912 * makefile.w32-in (distclean): Delete makefile too.
16913 (maintainer-clean): New target.
16914
16915 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16916
16917 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16918 for new font backend and composite cases.
16919
169202008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16921
16922 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16923 Most of the code moved to run_timers.
16924 (do_pending_atimers): Call run_timers.
16925 (run_timers): New function.
16926
16927 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16928 run atimers.
16929
16930 * process.c (wait_reading_process_output): The same as above.
16931
169322008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16933
16934 * minibuf.c (last_exact_completion): Remove variable.
16935 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16936 (complete_and_exit_1, complete_and_exit_2)
16937 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16938 (Fdisplay_completion_list, display_completion_list_1)
16939 (Fminibuffer_completion_help, Fself_insert_and_exit)
16940 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16941 minibuffer.el.
16942 (syms_of_minibuf): Remove corresponding initializations.
16943
16944 * keyboard.c (Qdeactivate_mark): New var.
16945 (command_loop_1): Use it to call `deactivate-mark'.
16946 (syms_of_keyboard): Initialize it.
16947
16948 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16949 to another frame.
16950 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16951 Don't call set_tty_color_mode.
16952 (store_frame_param): Reset previous_frame rather than call
16953 set_tty_color_mode.
16954 * term.c (set_tty_color_mode): Rewrite.
16955 * dispextern.h (set_tty_color_mode): New type.
16956 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16957
169582008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16959
16960 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16961 for generic chars, which do not exist any more in emacs-unicode.
16962
169632008-04-08 Michael Albinus <michael.albinus@gmx.de>
16964
16965 * coding.c (detect_coding_emacs_mule)
16966 (Ffind_operation_coding_system): Fix typo.
16967
169682008-04-08 Jason Rumney <jasonr@gnu.org>
16969
16970 * w32uniscribe.c (SNAME): Extract only symbol name.
16971
16972 * w32font.h (struct w32_metric_cache): New struct.
16973 (w32font_info): Use it.
16974 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16975 (CACHE_BLOCKSIZE): New constants.
16976
16977 * w32font.c (Qja, Qko, Qzh): New symbols.
16978 (syms_of_w32font): Initialise them.
16979 (font_matches_spec): Use them to filter by language.
16980 (recompute_cached_metrics): Remove function.
16981 (compute_metrics, clear_cached_metrics): New functions.
16982 (w32font_encode_char): Use them to manage metric cache.
16983 (w32font_text_extents): Cache metrics for all glyphs on demand.
16984 Delay converting glyph indices to WORD until needed.
16985 (w32font_open_internal): Initialize metric cache to empty.
16986 (registry_to_w32_charset): Charset should always be a symbol.
16987 (fill_in_logfont, list_all_matching_fonts): Family should
16988 always be a symbol.
16989
169902008-04-06 Jason Rumney <jasonr@gnu.org>
16991
16992 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16993 Give up if glyph indices not supported. Use uniscribe obtained
16994 ABC widths for individual metrics. Map glyph clusters back to
16995 characters using fClusterStart flag. Return number of glyphs
16996 produced, not chars processed.
16997 (uniscribe_shape): Map char at FROM to current glyph.
16998
169992008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17000
17001 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17002 Use SetMenuItemHierarchicalMenu.
17003
170042008-04-05 Jason Rumney <jasonr@gnu.org>
17005
17006 * image.c (pbm_load): Allow color values up to 65535.
17007 Throw an error if max_color_idx is outside the supported range.
17008 Report an error when image size is invalid.
17009 Read two bytes at a time when raw images have max_color_idx above 255.
17010
aac0c6e3
MR
170112008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17012
17013 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17014 append "CCL: Quitted" when the CCL program is quitted.
17015 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17016
17017 * ccl.h (struct ccl_program): New member quit_silently.
17018
170192008-04-05 Chong Yidong <cyd@stupidchicken.com>
17020
17021 * search.c (compile_pattern_1): Treat non-nil and non-string of
17022 search-spaces-regexp as nil.
17023
17024 * minibuf.c (Fassoc_string): Tweak docstring.
17025
170262008-04-05 Eli Zaretskii <eliz@gnu.org>
17027
17028 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17029 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17030 2008-03-14 to force inode be positive.
17031
17032 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17033 _S_* ones, since we now use our own sys/stat.h.
17034 (stat, fstat): Don't mangle the inode number.
17035 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17036
170372008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17038
17039 * frame.h (struct frame): Give one more bit to `visible' since we use
17040 values larger than 1 to indicate obscured frames on ttys.
17041
17042 * keymap.c (Qkeymap_canonicalize): New var.
17043 (Fmap_keymap_internal): New fun.
17044 (describe_map): Use keymap-canonicalize.
17045
17046 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17047 (Fundo_boundary): Set them.
17048 (syms_of_undo): Initialize them.
17049 (record_point): Use them instead of last_point_position*.
17050 (last_undo_buffer): Change type.
17051
170522008-04-04 Jason Rumney <jasonr@gnu.org>
17053
17054 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17055 (recompute_cached_metrics): Don't set ascent and descent per char.
17056
17057 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17058 (uniscribe_check_otf): Add GC protection before consing.
17059 Rearrange loop for counting features.
17060
170612008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17062
17063 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17064 buffer with byte-size of source buffer.
17065
170662008-04-03 Chong Yidong <cyd@stupidchicken.com>
17067
17068 * callint.c (Fcall_interactively): Handle temporary region even
17069 when shift-select-mode is off.
17070
170712008-04-03 Jason Rumney <jasonr@gnu.org>
17072
17073 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17074
170752008-04-03 Kenichi Handa <handa@m17n.org>
17076
17077 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17078 (CATEGORY_MASK_UTF_16): Likewise.
17079 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17080 binary file.
17081 (detect_coding): Add null-byte detection for a binary file.
17082 (detect_coding_system): Likewise.
17083
170842008-04-03 Jason Rumney <jasonr@gnu.org>
17085
17086 * w32uniscribe.c: New file.
17087
17088 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17089
17090 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17091
17092 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17093 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17094 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17095 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17096 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17097 (Qphonetic): New symbols.
17098 (syms_of_w32font): Initialize them.
17099 (font_supported_scripts): Use them.
17100 (w32font_list_family): List all charsets.
17101 (w32font_text_extents, recompute_cached_metrics): Fix metric
17102 calculations.
17103 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17104 Give opentype fonts their own format.
17105 (font_matches_spec): New arguments backend and logfont.
17106 Handle :otf spec for uniscribe backend.
17107 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17108 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17109
17110 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17111 font backend.
17112 (globals_of_w32fns): Initialize uniscribe font backend.
17113
17114 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17115 dependencies.
17116 (w32uniscribe.$(O)): New file to build.
17117 (FONT_OBJ): Include w32uniscribe.$(O).
17118 (LIBS): Add uniscribe libraries.
17119
17120 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17121
171222008-04-02 Chong Yidong <cyd@stupidchicken.com>
17123
17124 * callint.c (Vshift_select_mode): New var.
17125 (Finteractive): Document new ^ spec.
17126 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17127 is present.
17128
17129 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17130 (command_loop_1): Avoid running the direct display versions of
17131 forward-char and backward-char if shift-selection may occur.
17132 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17133 shift-translation takes place.
17134
17135 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17136 avoid clobbering by define-minor-mode.
17137
17138 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17139 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17140
17141 * syntax.c (Fforward_word): Add ^ interactive spec.
17142
17143 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17144 (Fscroll_right): Add ^ interactive spec.
17145
171462008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17147
17148 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17149
17150 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17151
17152 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17153
171542008-03-31 Juri Linkov <juri@jurta.org>
17155
17156 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17157
171582008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17159
17160 * gtkutil.c (xg_set_geometry): Fix indentation.
17161 (xg_resize_outer_widget): Remove.
17162 (x_wm_size_hint_off): Fix indentation.
17163 (xg_frame_set_char_size): Call flush_and_sync after
17164 gtk_window_resize.
17165 (x_wm_set_size_hint): Pass NULL as geometry window to
17166 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17167 Add menu bar and tool bar height to base height.
17168 (xg_update_frame_menubar, free_frame_menubar)
17169 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17170 (update_frame_tool_bar, free_frame_tool_bar):
17171 Change xg_resize_outer_widget to xg_frame_set_char_size.
17172
171732008-03-30 Michael Albinus <michael.albinus@gmx.de>
17174
17175 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17176 (Fdbus_call_method): New parameter TIMEOUT.
17177 (dbus-send-signal): Optimize UNGCPRO call.
17178
171792008-03-29 Juri Linkov <juri@jurta.org>
17180
17181 * window.c (Fdisplay_buffer): Move call to
17182 Vsplit_window_preferred_function out of conditions that check
17183 if window is eligible for vertical splitting.
17184 When Vsplit_window_preferred_function is non-nil, call it and use
17185 its non-nil return value as window. Otherwise, continue doing
17186 vertical splitting using Fsplit_window with arg horflag=nil.
17187 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17188 default value from `split-window' to nil.
17189
171902008-03-29 Juri Linkov <juri@jurta.org>
17191
17192 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17193 for interactive code letters 'b' and 'B'.
17194
171952008-03-29 Eli Zaretskii <eliz@gnu.org>
17196
17197 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17198 multibyte string.
17199
172002008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17201
17202 * keyboard.c (pending_funcalls): New var.
17203 (timer_check): Run it.
17204 (syms_of_keyboard): Initialize it.
17205 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17206 (Vdelete_terminal_functions): New vars.
17207 (syms_of_terminal): Initialize them.
17208 (Fdelete_terminal): Run delete-terminal-functions.
17209 * xdisp.c (safe_eval): Rewrite.
17210 (safe_call2): New fun.
17211 * frame.c (Qdelete_frame_functions): New var.
17212 (syms_of_frame): Initialize it.
17213 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17214 * lisp.h (safe_call2, pending_funcalls): Declare.
17215
172162008-03-28 Andreas Schwab <schwab@suse.de>
17217
17218 * indent.c (Fmove_to_column): Move declaration before statements.
17219
172202008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17221
17222 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17223 (struct frame): Use bit fields for boolean vars.
17224
17225 * process.c (server_accept_connection): Simplify naming.
17226 (emacs_get_tty_pgrp): Use SDATA.
17227
17228 * coding.c (decode_coding_object): Fix last change.
17229
172302008-03-27 Jason Rumney <jasonr@gnu.org>
17231
17232 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17233
172342008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17235
17236 * charset.c (Fdefine_charset_internal): Change the way of
17237 registering charsets in Vcharset_order_list.
17238 (syms_of_charset): Make the charset `eight-bit' supplementary.
17239
172402008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17241
17242 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17243 operations, to avoid having the difference between pointers
17244 overflow.
17245
172462008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17247
17248 * indent.c (check_display_width): New fun.
17249 (scan_for_column): Use it.
17250
17251 * data.c (syms_of_data): Mark most-positive-fixnum and
17252 most-negative-fixnum as constants.
17253
17254 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17255
17256 * indent.c (scan_for_column): Extract from current_column_1.
17257 Merge with the same code from Fmove_to_column.
17258 (current_column_1, Fmove_to_column): Use it.
17259
172602008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17261
17262 * keymap.c (map_keymap_internal): New fun.
17263 (map_keymap): Use it.
17264 (Fmap_keymap_internal): New fun.
17265 (Fmap_keymap): Remove left-out test from before make_save_value.
17266
17267 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17268
17269 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17270 Use XCAR/XCDR.
17271
17272 * process.h (struct Lisp_Process): Remove filter_multibyte.
17273 * process.c (QCfilter_multibyte): Remove.
17274 (setup_process_coding_systems): Don't use filter_multibyte.
17275 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17276 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17277 (Fset_process_filter_multibyte): Change the coding-system to
17278 approximate the previous behavior.
17279 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17280 coding-system.
17281
17282 * coding.c (decode_coding_object): When not decoding into a buffer,
17283 obey the coding system's preference of (uni|multi)byte.
17284
172852008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17286
17287 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17288 every char is changed and has a different byte-length.
17289 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17290 Fix int -> EMACS_INT.
17291
172922008-03-23 David Hansen <david.hansen@gmx.net>
17293
17294 * dbusbind.c (xd_read_message): Remove extra copying of message
17295 strings. Check for NULL `interface' or `member'.
17296
172972008-03-22 Eli Zaretskii <eliz@gnu.org>
17298
17299 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17300 cFileName a file name that includes `?' characters, use the 8+3
17301 alias in cAlternateFileName instead.
17302
173032008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17304
17305 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17306
173072008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17308
17309 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17310 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17311 work on current_buffer only instead (that was already the case
17312 for some of the code anyway).
17313 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17314 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17315 (SET_PT, SET_PT_BOTH): Adjust.
17316 * intervals.h (set_point, temp_set_point, set_point_both)
17317 (temp_set_point_both): Remove redundant declarations.
17318
173192008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17320
17321 * fileio.c (Finsert_file_contents):
17322 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17323 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17324 when buffer != current_buffer anyway.
17325
173262008-03-20 Andreas Schwab <schwab@suse.de>
17327
17328 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17329 as default.
17330
173312008-03-19 Jason Rumney <jasonr@gnu.org>
17332
17333 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17334 (syms_of_w32fns): Initialize them.
17335 (HOURGLASS_ID): New constant.
17336 (x_window_to_frame): Don't check hourglass_window.
17337 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17338 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17339 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17340 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17341 Only change the cursor if hourglass is not active.
17342 (Fx_create_frame): Initialize frame's current_cursor.
17343 (hourglass_atimer): Remove.
17344 (hourglass_started): New function.
17345 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17346 (show_hourglass): Adapt to w32, changing argument to frame.
17347
17348 * w32term.h (struct w32_output): Remove hourglass_window.
17349 Add current_cursor.
17350
17351 * eval.c (call_debugger, Fsignal):
17352 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17353 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17354 (Fexecute_extended_command, cancel_hourglass_unwind):
17355 * minibuf.c (read_minibuf):
17356 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17357
173582008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17359
17360 * window.c (run_funs): New fun.
17361 (run_window_configuration_change_hook): Use it to run the buffer-local
17362 and the global part of the hook.
17363
17364 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17365 (unwind_format_mode_line): Restore selected window.
17366 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17367
173682008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17369
17370 * editfns.c (Fchar_equal): Check they are valid characters.
17371
17372 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17373
173742008-03-17 Andreas Schwab <schwab@suse.de>
17375
17376 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17377 against a charset.
17378
17379 * lisp.h (Fbuffer_list): Declare.
17380
173812008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 17382
aac0c6e3
MR
17383 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17384 handlebox_widget is != 0.
17385
173862008-03-16 Juri Linkov <juri@jurta.org>
17387
17388 * callint.c (Fcall_interactively): For interactive code letters
17389 'b' and 'B' put the buffer list into the list of default "future"
17390 values of the minibuffer.
17391
173922008-03-16 Andreas Schwab <schwab@suse.de>
17393
17394 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17395 modifiers.
17396
17397 * regex.c (re_match_2_internal): Correct matching of a charset
17398 against latin-1 characters.
17399
174002008-03-16 Kenichi Handa <handa@m17n.org>
17401
17402 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17403 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17404 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17405 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17406 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17407 CHAR_STRING_ADVANCE.
17408 (produce_chars): Fix for the case that the source and the
17409 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17410 instead of CHAR_STRING_ADVANCE.
17411 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17412 STRING_CHAR_ADVANCE.
17413
174142008-03-15 Andreas Schwab <schwab@suse.de>
17415
17416 * regex.c (re_match_2_internal): Correct matching of eight bit
17417 characters in unibyte strings.
17418
174192008-03-15 Martin Rudalics <rudalics@gmx.at>
17420
17421 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17422 at end of range when it coincides with the end of the buffer.
17423
174242008-03-14 Eli Zaretskii <eliz@gnu.org>
17425
17426 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17427
17428 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17429
174302008-03-14 Jason Rumney <jasonr@gnu.org>
17431
17432 * editfns.c (initial_tz): New variable.
17433 (syms_of_editfns): Initialize it.
17434 (Fset_time_zone_rule): Set it when first called.
17435 Use it when TZSTRING is nil.
17436
17437 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17438 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17439 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17440 (globals_of_w32fns): Initialize them.
17441 (compute_tip_xy): Use them to position tooltips.
17442
174432008-03-14 Glenn Morris <rgm@gnu.org>
17444
17445 * emacs.c (main): Revert previous change.
17446 (standard_args): Revert -internal-script back to -scriptload,
17447 and remove the long-option form.
17448
174492008-03-13 Glenn Morris <rgm@gnu.org>
17450
17451 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17452 Remove option -enable-font-backend.
17453
174542008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17455
17456 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17457
174582008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17459
17460 * xterm.c (x_connection_closed): For GTK: If this is the last
17461 terminal just exit without closing the display.
17462
174632008-03-11 Jason Rumney <jasonr@gnu.org>
17464
17465 * w32font.c (w32font_full_name): Use floor to round.
17466
f0131492 174672008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
17468
17469 * sound.c (alsa_configure): Declare vol at beginning of block.
17470
17471 * fontset.c (Ffontset_info): Remove extra semicolon.
17472
174732008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17474
17475 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17476 size of resulting string.
17477
174782008-03-10 Jason Rumney <jasonr@gnu.org>
17479
17480 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17481
174822008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17483
17484 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17485 Don't pretend as if characters with display property haven't been
17486 consumed for string-replacing-string case.
17487
174882008-03-08 Kim F. Storm <storm@cua.dk>
17489
17490 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17491 (get_next_display_element, next_element_from_string)
17492 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17493
174942008-03-08 Andreas Schwab <schwab@suse.de>
17495
17496 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17497
174982008-03-06 Jason Rumney <jasonr@gnu.org>
17499
17500 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17501 when charset not specified. Only translate ANSI to unicode when
17502 font_type is truetype.
17503 (w32font_coverage_ok): New function.
17504 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17505
175062008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17507
17508 * lread.c (Fread_char): Resolve modifiers.
17509 (Fread_char_exclusive): Likewise.
17510
17511 * character.c (char_resolve_modifier_mask): New function.
17512 (char_string): Use char_resolve_modifier_mask.
17513 (Fchar_resolve_modifiers): New function.
17514 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17515 function.
17516
175172008-03-04 Jason Rumney <jasonr@gnu.org>
17518
17519 * makefile.w32-in: Always include w32font.c in the build.
17520 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17521
175222008-03-04 Andreas Schwab <schwab@suse.de>
17523
17524 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17525 (versionclean): Likewise.
17526
175272008-03-04 Juanma Barranquero <lekktu@gmail.com>
17528
17529 * .cvsignore: Add oo.
17530
175312008-03-03 Andreas Schwab <schwab@suse.de>
17532
17533 * coding.c (decode_coding_object): Inhibit gap shrinking while
17534 decoding in place.
17535
175362008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17537
17538 * w32term.c: Remove unused include "gnu.h".
17539 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17540
17541 * gnu.h: Rename to ...
17542 * emacs-icon.h: ... this.
17543 * xterm.c: Use emacs-icon.h instead of gnu.h.
17544 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17545
175462008-03-03 Juanma Barranquero <lekktu@gmail.com>
17547
17548 * w32font.c: Include math.h.
17549
175502008-03-03 Jason Rumney <jasonr@gnu.org>
17551
17552 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17553 Compute options separately.
17554 (w32font_open_internal): Set glyph_idx before caching metrics.
17555
17556 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17557 Define if system headers don't.
17558 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17559 (w32font_encode_char): Don't declare here.
17560
17561 * w32font.c (Quniscribe, QCformat): New symbols.
17562 (syms_of_w32font): Define them.
17563 (w32font_has_char): Indicate uncertainty.
17564 (w32font_encode_char): Encode as glyph point. Make static.
17565 (recompute_cached_metrics): New function.
17566 (w32font_open_internal): Use it. Set font to use glyph points
17567 initially. Set format based on type of font.
17568 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17569 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17570 on it. Set format based on information available here.
17571 (add_font_entity_to_list): Identify backend based on opentype_only.
17572
175732008-03-02 Andreas Schwab <schwab@suse.de>
17574
17575 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17576
17577 * coding.c (decode_coding_big5, produce_chars):
17578 Fix typos in last change.
17579
175802008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17581
17582 * gnu.h: New icon.
17583
175842008-03-02 Kenichi Handa <handa@m17n.org>
17585
17586 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17587 `dos', don't decode '\r' if that is the last in the source.
17588 (decode_coding_utf_16, decode_coding_emacs_mule)
17589 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17590 (decode_coding_raw_text, decode_coding_charset): Likewise.
17591 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17592
175932008-03-01 Jason Rumney <jasonr@gnu.org>
17594
17595 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17596
175972008-03-01 Kim F. Storm <storm@cua.dk>
17598
17599 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17600
176012008-03-01 Jason Rumney <jasonr@gnu.org>
17602
17603 * w32font.c (w32font_full_name): New function.
17604 (w32font_open_internal): Use it.
17605
176062008-03-01 Kim F. Storm <storm@cua.dk>
17607
17608 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17609
176102008-03-01 Jason Rumney <jasonr@gnu.org>
17611
17612 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17613
176142008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17615
17616 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17617 xg_frame_resized when the event is for the edit widget.
17618
17619 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17620
17621 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17622 set_char_size.
17623 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17624 operations on widgets here. Just set frame size if needed.
17625 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17626 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17627 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17628 the whole frame.
17629 (xg_create_tool_bar): Move attachment of the tool bar to
17630 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17631 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17632
176332008-03-01 Jason Rumney <jasonr@gnu.org>
17634
17635 * w32fns.c (w32_msg_pump): Disable debug code.
17636
176372008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17638
17639 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17640
176412008-02-29 Chong Yidong <cyd@stupidchicken.com>
17642
17643 * xdisp.c (next_overlay_string): Don't set
17644 overlay_strings_at_end_processed_p if we're currently reading from
17645 a display string.
17646
176472008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17648
17649 * xdisp.c (get_overlay_strings_1): Fix typo.
17650
176512008-02-29 Chong Yidong <cyd@stupidchicken.com>
17652
17653 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17654
176552008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17656
17657 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17658
17659 * xdisp.c (display_mode_element): Cancel the previous change.
17660 (decode_mode_spec): Likewise.
17661 (handle_auto_composed_prop): Don't make composition if it->string
17662 is a string.
17663
176642008-02-27 Kim F. Storm <storm@cua.dk>
17665
17666 * lisp.h (GLYPH): Change type from int to struct with separate char
17667 and face_id members.
17668 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17669 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17670 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17671 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17672 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17673 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17674 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17675 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17676 handle new Lisp glyph code encoding, either an integer or a cons.
17677
17678 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17679 (GLYPH_ALIAS): Delete.
17680 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17681 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17682 (GLYPH_FROM_CHAR): Replace macro by ...
17683 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17684
17685 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17686 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17687 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17688 (GLYPH_INVALID_P): New macro.
17689 (spec_glyph_lookup_face): Update prototype.
17690
17691 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17692 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17693 new glyph code encoding.
17694 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17695 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17696
17697 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17698 Adapt to new glyph type and new glyph code encoding.
17699
17700 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17701
17702 * indent.c (current_column, current_column_1, Fmove_to_column)
17703 (compute_motion): Adapt to new glyph code encoding.
17704
17705 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17706
177072008-02-27 Chong Yidong <cyd@stupidchicken.com>
17708
17709 * process.c (wait_reading_process_output): Check for window
17710 changes caused by timers.
17711 Suggested by Johan Bockgård.
17712
177132008-02-27 Glenn Morris <rgm@gnu.org>
17714
17715 * emacs.c (USAGE1): Add `--disable-font-backend'.
17716
177172008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17718
17719 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17720 is made to the buffer.
17721
177222008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17723
17724 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17725 (face_at_string_position):
17726 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17727 (face_at_string_position):
17728 * xdisp.c (display_string, next_overlay_change):
17729 * buffer.h (overlays_at):
17730 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17731 Update callers.
17732
177332008-02-26 Chong Yidong <cyd@stupidchicken.com>
17734
17735 * editfns.c (Fformat): Doc fix.
17736
177372008-02-26 Juanma Barranquero <lekktu@gmail.com>
17738
17739 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17740 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17741 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17742
177432008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17744
17745 * buffer.c (Fbuffer_swap_text): New function.
17746 (syms_of_buffer): Defsubr it.
17747
177482008-02-25 Chong Yidong <cyd@stupidchicken.com>
17749
17750 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17751
177522008-02-25 Jason Rumney <jasonr@gnu.org>
17753
17754 * w32font.c (w32font_draw): Draw one character at a time when padding.
17755
177562008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17757
17758 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17759 Handle a nil arg. Use run_window_configuration_change_hook.
17760 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17761 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17762 Use run_window_configuration_change_hook.
17763
177642008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17765
17766 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17767 1-pixel width.
17768
177692008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17770
17771 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17772 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17773 if the glyph in the font is zero pixel with.
17774
17775 * dispextern.h (struct glyph_string): New member padding_p.
17776
17777 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17778
17779 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17780
17781 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17782
17783 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17784
17785 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17786
177872008-02-25 Jason Rumney <jasonr@gnu.org>
17788
17789 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17790
177912008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17792
17793 Allow fine-grained image-cache flushing.
17794 * dispextern.h (struct image): Add `dependencies' field.
17795 (clear_image_caches): Change arg to Lisp_Object.
17796 * image.c (make_image): Initialize `dependencies' field.
17797 (clear_image_cache): Change arg to allow fine-grained flushing.
17798 Perform the flush even if image-cache-eviction-delay is nil.
17799 (clear_image_caches): Change arg to Lisp_Object.
17800 (Fclear_image_cache): Expand meaning of the argument.
17801 (mark_image): Mark `dependencies' field.
17802 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17803 (lface_hash): Use XHASH rather than XFASTINT.
17804 (face_at_buffer_position): Fix int -> EMACS_INT position.
17805 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17806 (select_frame_for_redisplay): Remove code duplication.
17807 (redisplay_internal): Adapt arg to call to clear_image_caches.
17808
178092008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17810
17811 * s/vms4-0.h:
17812 * s/vms4-2.h:
17813 * s/vms4-4.h:
17814 * s/vms5-5.h: Remove, unused.
17815
17816 * s/irix5-2.h:
17817 * s/irix6-0.h:
17818 * s/riscos5.h:
17819 * s/mach-bsd4-3.h:
17820 * m/mips4.h: Remove files for obsolete systems.
17821
17822 * Makefile.in:
17823 * filelock.c:
17824 * unexmips.c:
17825 * m/hp9000s300.h:
17826 * m/iris4d.h:
17827 * s/aix3-1.h:
17828 * s/hpux.h:
17829 * s/msdos.h:
17830 * s/usg5-0.h:
17831 * s/usg5-2-2.h:
17832 * s/usg5-2.h:
17833 * s/usg5-3.h: Remove references to obsolete variables.
17834
17835 * s/irix5-0.h: Remove, move all the contents ...
17836 * s/irix6-5.h: ... here. Simplify.
17837 * config.in: Regenerate.
17838
178392008-02-24 Jason Rumney <jasonr@gnu.org>
17840
17841 * w32term.c (x_draw_glyph_string_background): Clear the background
17842 manually when cleartype is in use.
17843 (x_draw_glyph_string_foreground): Draw text transparently when
17844 cleartype is in use.
17845
17846 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17847 a font into it unless we have to.
17848
178492008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17850
17851 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17852 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 17853
aac0c6e3
MR
178542008-02-18 Jason Rumney <jasonr@gnu.org>
17855
17856 * w32fns.c (Fw32_shell_execute): Encode parameters.
17857
178582008-02-09 Eli Zaretskii <eliz@gnu.org>
17859
17860 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17861
178622008-02-05 Juanma Barranquero <lekktu@gmail.com>
17863
17864 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17865
178662008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17867
17868 * xterm.c (x_set_offset): Don't change the gravity if
17869 CHANGE_GRAVITY is -1.
17870
178712008-02-23 Chong Yidong <cyd@stupidchicken.com>
17872
17873 * fileio.c (auto_save_error_occurred): New var.
17874 (auto_save_error): Set it.
17875 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17876 error occurred.
17877
178782008-02-23 Eli Zaretskii <eliz@gnu.org>
17879
17880 * w32.c (globals_of_w32): Add initializations for
17881 g_b_init_get_sid_sub_authority and
17882 g_b_init_get_sid_sub_authority_count.
17883
178842008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17885
17886 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17887 (font_parse_xlfd): Use them for sanity check.
17888 (Finternal_set_font_style_table): Make sure the table is bijective.
17889
17890 Consolidate the image_cache to the terminal struct.
17891 * termhooks.h (P_): Remove redundant def.
17892 (struct terminal): New field `image_cache'.
17893 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17894 of FRAME_X_IMAGE_CACHE.
17895 * xterm.h (struct x_display_info): Remove image_cache field.
17896 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17897 * w32term.h (struct w32_display_info): Remove image_cache field.
17898 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17899 * macterm.h (struct mac_display_info): Remove image_cache field.
17900 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17901 * xterm.c (x_term_init):
17902 * w32term.c (w32_term_init):
17903 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17904 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17905 Remove declarations.
17906 (clear_image_caches, mark_image_cache): New declarations.
17907 * xfaces.c (clear_face_cache):
17908 * xdisp.c (redisplay_internal): Use clear_image_caches.
17909 * image.c (clear_image_cache): Don't check that a frame is on
17910 a window-system before checking if it shares the same cache.
17911 (clear_image_caches): New function.
17912 (Fclear_image_cache): Use it.
17913 (mark_image): Move from allo.c.
17914 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17915 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17916 (mark_object): Don't call mark_image_cache for frames.
17917 (mark_terminals): Call mark_image_cache.
17918
17919 * lisp.h (Fdelete_terminal): Declare.
17920
17921 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17922 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17923 wrong_type_argument.
17924
179252008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17926
17927 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17928 malayalam.el, and tamil.el. Add sinhala.el.
17929
179302008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17931
17932 * xterm.c (x_connection_closed): Consolidate identical tests.
17933 (x_delete_terminal): Don't crash if called via x_connection_closed.
17934
179352008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17936
17937 * xdisp.c (decode_mode_spec): New arg string.
17938 (display_mode_element): Adjust for the above change.
17939
179402008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17941
17942 * callint.c (Fcall_interactively): Use AREF.
17943
179442008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17945
17946 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17947
179482008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17949
17950 * xfns.c (Fx_show_tip): Set string to " " if empty.
17951
179522008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17953
17954 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17955 with Qt.
17956
179572008-02-17 Kenichi Handa <handa@m17n.org>
17958
17959 * ftfont.c (ftfont_shape): Return Lispy number.
17960
17961 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17962 for GCs.
17963 (Finternal_set_font_selection_order): Call font_update_sort_order
17964 only when enable_font_backend is set.
17965 (realize_x_face): Set face->font_info to that of default face only
17966 when enable_font_backend is set.
17967
17968 * xdisp.c (handle_composition_prop): Set it->c to the fist
17969 character of the composed region.
17970 (fill_composite_glyph_string): Set base_face->font_info to
17971 s->font_info. Get a face for ascii from base_face->ascii_face.
17972 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17973 with a face already decided.
17974 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17975 non-negative.
17976 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17977 call font_prepare_composition unconditionally.
17978
17979 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17980
17981 * xterm.h (struct x_display_info): New member font.
17982
17983 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17984 (x_set_mouse_face_gc, x_new_font): Likewise.
17985 (x_term_init): Setup display_info->font.
17986 (x_delete_terminal): Free display_info->font.
17987
17988 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17989
17990 * ftxfont.c (ftxfont_default_fid): Delete it.
17991 (ftxfont_open): Set xfont->fid to 0.
17992 (ftxfont_end_for_frame): Clear data specific to the frame and the
17993 font-driver.
17994
17995 * xftfont.c (xftfont_default_fid): Delete it.
17996 (xftfont_open): Set xfont->fid to 0.
17997
17998 * fontset.c (FONTSET_OBJLIST): New macro.
17999 (fontset_find_font): Update font-object list of the fontset.
18000 (free_realized_fontset): New function.
18001 (free_face_fontset): Call free_realized_fontset.
18002 (Ffont_info): Call font_close_object only when enable_font_backend
18003 is set.
18004
18005 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18006 [HAVE_NTGUI]: Include w32term.h.
18007 [MAC_OS]: Include macterm.ch.
18008 (font_otf_ValueRecord): Use make_number.
18009 (font_finish_cache): Fix handling of reference count.
18010 (font_clear_cache): Update num_fonts.
18011 (font_open_entity): Update smallest_char_width and
18012 smallest_font_height of the frame.
18013 (font_close_object): Update num_fonts.
18014 (Fclear_font_cache): Fix finding the target cache data.
18015
180162008-02-16 Glenn Morris <rgm@gnu.org>
18017
18018 * fontset.c (Finternal_char_font): Fix compilation warning.
18019
180202008-02-16 Eli Zaretskii <eliz@gnu.org>
18021
18022 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18023 instead of char arrays. Enlarge the size of array passed to
18024 get_token_information.
18025
18026 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18027 warnings.
18028
180292008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18030
18031 * .gdbinit: Don't set `args', it breaks gdb --args.
18032
180332008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18034
18035 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18036 within a narrowed buffer.
18037
180382008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18039
18040 * coding.c (decode_coding_object, encode_coding_object):
18041 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18042
180432008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18044
18045 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18046 hardcoding 1.
18047 (detect_coding_system):
18048 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18049 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18050 * insdel.c (insert_from_gap):
18051 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18052 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18053 (string_to_multibyte):
18054 * character.c (chars_in_text, multibyte_chars_in_text):
18055 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18056
18057 * character.h (FETCH_STRING_CHAR_ADVANCE)
18058 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18059 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18060 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18061
18062 * casefiddle.c (casify_region): Only call after-change and composition
18063 functions on the part of the region that was changed.
18064
18065 * keyboard.c (read_avail_input):
18066 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18067
180682008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18069
18070 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18071 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18072
180732008-02-11 Juanma Barranquero <lekktu@gmail.com>
18074
18075 * w32menu.c (push_submenu_start, push_submenu_end)
18076 (push_left_right_boundary, push_menu_pane, push_menu_item):
18077 * keyboard.c (read_key_sequence): Don't pass args with side effects
18078 to AREF, it fails when compiling with -DENABLE_CHECKING.
18079
180802008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18081
18082 * Makefile.in (${lispsource}international/charprop.el):
18083 Delete this target.
18084
18085 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18086 emacs-unicode-2.
18087
180882008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18089
18090 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18091
180922008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18093
18094 * frame.c (Qnoelisp): New symbol.
18095 (syms_of_frame): Initialize it.
18096 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18097 harmless Elisp code, from a strong `force' from x_connection_closed.
18098 * frame.h (Qnoelisp): Declare.
18099 * xterm.c (x_connection_closed): Pass `noelisp'.
18100
18101 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18102 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18103 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18104 rather than `int' for the type of `type'.
18105
181062008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18107
18108 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18109
18110 * Makefile.in (GNUC): Remove support for gcc-1.x.
18111
181122008-02-10 Richard Stallman <rms@gnu.org>
18113
18114 * lisp.h (ASET): Use AREF, not ASLOT.
18115
181162008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18117
18118 * lisp.h (ASET): Check bounds.
18119
181202008-02-10 Glenn Morris <rgm@gnu.org>
18121
18122 * buffer.c (mode-name): Doc fix.
18123
181242008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18125
18126 * Makefile.in:
18127 * emacs.c:
18128 * gmalloc.c:
18129 * keyboard.c:
18130 * lisp.h:
18131 * m/ibm370aix.h:
18132 * process.c:
18133 * regex.c:
18134 * s/hpux.h:
18135 * sysdep.c:
18136 * sysselect.h:
18137 * systty.h:
18138 * unexec.c:
18139 * w32term.c:
18140 * xsmfns.c:
18141 * xterm.c: Remove code that deals with obsolete variables.
18142
18143 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18144
18145 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18146 nothing else needs it anymore.
18147
181482008-02-09 Eli Zaretskii <eliz@gnu.org>
18149
18150 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18151 instead of unibyte_char_to_multibyte.
18152
181532008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18154
18155 * s/gnu-linux.h: Remove commented out code.
18156
18157 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18158
18159 * Makefile.in: Update what RMS says about using autoconf.
18160 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18161 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18162 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18163 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18164
181652008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18166
18167 * keymap.c (Fkey_description): Move side effect outside of macro call.
18168
18169 * xfaces.c (Finternal_make_lisp_face):
18170 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18171
18172 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18173 (syms_of_fontset): Use ASET.
18174
18175 * fns.c (concat): Move side effect outside of macro call.
18176 (hash_clear): Use ASET.
18177
181782008-02-08 Richard Stallman <rms@gnu.org>
18179
18180 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18181 If FORCE, and frame has a surrogate minibuffer for another frame,
18182 delete the other frame first.
18183
181842008-02-07 Timo Savola <timo.savola@iki.fi>
18185
18186 * xterm.c (x_detect_focus_change): Handle embed client message.
18187 (handle_one_xevent): Ditto.
18188 (handle_one_xevent): If embedded and we get a button press/release,
18189 request focus.
18190 (xembed_set_info, xembed_send_message): New functions.
18191 (x_make_frame_visible): Call xembed_set_info if embedded.
18192 (x_make_frame_invisible): Call xembed_set_info if embedded.
18193 (x_term_init): Initialize Xatom_XEMBED.
18194 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18195 (x_iconify_frame): Ditto.
18196
18197 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18198 (enum xembed_info, enum xembed_message, enum xembed_focus)
18199 (enum xembed_modifier, enum xembed_accelerator): New.
18200 (xembed_set_info, xembed_send_message): Declare.
18201 (FRAME_X_EMBEDDED_P): New.
18202
18203 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18204 gtk_plug_new.
18205
18206 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18207 window ID of a frame.
18208 (x_window): Reparent frame if embedded.
18209 (Fx_create_frame): Don't set border width if embedded.
18210
18211 * emacs.c (USAGE3): Add --parent-id.
18212 (standard_args): Ditto.
18213
182142008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18215
18216 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18217
182182008-02-07 Jim Meyering <meyering@redhat.com>
18219
18220 Use "do...while (0)", not "if (1)...else" in macro definitions.
18221 The latter provokes a warning from gcc about the empty else, when
18222 followed by ";". Also, without that trailing semicolon, it would
18223 silently swallow up any following statement.
18224 * syntax.h (SETUP_SYNTAX_TABLE)
18225 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18226 * buffer.h (DECODE_POSITION): Likewise.
18227 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18228 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18229 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18230 (FETCH_CHAR_ADVANCE): Likewise.
18231 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18232
182332008-02-07 Jim Meyering <meyering@redhat.com>
18234
18235 * lread.c [lint]: Don't include <sys/inode.h>.
18236
182372008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18238
18239 * xselect.c (x_handle_dnd_message):
18240 * xmenu.c (digest_single_submenu, xmenu_show):
18241 * xdisp.c (with_echo_area_buffer_unwind_data)
18242 (format_mode_line_unwind_data, unwind_format_mode_line)
18243 (display_menu_bar):
18244 * eval.c (Ffetch_bytecode):
18245 * doc.c (store_function_docstring):
18246 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18247 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18248 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18249
182502008-02-07 Kenichi Handa <handa@m17n.org>
18251
18252 * ftxfont.c (ftxfont_open): Don't set
18253 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18254
18255 * ftfont.c (ftfont_open): Fix previous change.
18256
182572008-02-06 Jason Rumney <jasonr@gnu.org>
18258
18259 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18260 Use cached metrics for ASCII characters.
18261 (w32font_open_internal): Don't set font's owning_frame.
18262 Cache metrics for ASCII characters.
18263
18264 * w32font.h (struct w32font_info): Add ascii_metrics.
18265 Remove owning_frame.
18266
182672008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18268
18269 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18270 to negative value.
18271
18272 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18273
18274 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18275
18276 * charset.c (syms_of_charset): Set QCtest and Qeq.
18277
182782008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18279
18280 * process.c (Fstart_process):
18281 * callproc.c (Fcall_process): Handle the case where
18282 Funhandled_file_name_directory returns nil.
18283
18284 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18285 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18286 * font.c (check_gstring): Use them and AREF to access the vector before
18287 we know it's really a gstring.
18288 (Ffont_shape_text): Fix typo.
46e722a9 18289 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
18290
18291 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18292 Declare.
18293
18294 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18295
182962008-02-05 Jason Rumney <jasonr@gnu.org>
18297
18298 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18299 Set smallest_font_height and smallest_char_width in display info.
18300
183012008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18302
18303 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18304
183052008-02-05 Miles Bader <miles@gnu.org>
18306
18307 * xfaces.c (get_lface_attributes, merge_named_face)
18308 (lookup_named_face, lookup_derived_face, realize_named_face):
18309 Revert 2008-02-01 change by cyd@stupidchicken.com.
18310
183112008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18312
18313 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18314 fallback fonts.
18315 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18316
183172008-02-04 Jason Rumney <jasonr@gnu.org>
18318
18319 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18320 set full_name.
18321 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18322
183232008-02-03 Jason Rumney <jasonr@gnu.org>
18324
18325 * makefile.w32-in (OBJ1): Include font.o here.
18326 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18327
183282008-02-02 Jason Rumney <jasonr@gnu.org>
18329
18330 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18331
183322008-02-01 Jason Rumney <jasonr@gnu.org>
18333
18334 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18335
18336 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18337
183382008-02-01 Andreas Schwab <schwab@suse.de>
18339
18340 * Makefile.in (shortlisp, lisp): Update for rename of
18341 ../lisp/language/myanmar.el.
18342
183432008-02-01 Chong Yidong <cyd@stupidchicken.com>
18344
18345 * xfaces.c (get_lface_attributes): Delete function.
18346 (merge_named_face, lookup_named_face, lookup_derived_face)
18347 (realize_named_face): Call lface_from_face_name directly, and use
18348 the fact that merge_face_vectors does not alter its FROM argument.
18349
183502008-02-01 Jason Rumney <jasonr@gnu.org>
18351
18352 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18353 input in the default locale. Handle non-Unicode multibyte input.
18354
183552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18356
18357 * fontset.c (reorder_font_vector): Exclude nil elements from the
18358 font group. Don't try multiple fonts.
18359 (fontset_font): Adjust for the above change.
18360 (Finternal_char_font): Return nil if the found font doesn't
18361 contain the character ch.
18362
18363 * Makefile.in (lisp, shortlisp): Add cham.el.
18364
183652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18366
18367 * font.h (FONTP): Make it return 1 also for a font-object.
18368
18369 * .gdbinit (xfontset): New function.
18370
18371 * font.c (font_find_for_lface): Check if the character C is
18372 supported or not only for the first font.
18373
18374 * fontset.c (reorder_font_vector): Fix typo.
18375 (fontset_find_font): Don't add a font-spec specifying a script.
18376 Use 0 (not Qt) for the indication of empty font-group. Change the
18377 format of RFONT-DEF. Return Qt if no font in the font-group
18378 support the character.
18379 (fontset_font): Adjust for the above change. If no font was
18380 found the character, remember that.
18381 (face_for_char): Adjust for the change of RFONT-DEF.
18382 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18383 no font for the target.
18384 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18385
183862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18387
18388 * font.c (font_load_for_face): Handle the case that the font in
18389 face->lface is a string.
18390
183912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18392
18393 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18394
183952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18396
18397 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18398 Fix previous change. If the frame is not on a window system,
18399 signal an error.
18400
184012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18402
18403 * coding.c (decode_coding_object, encode_coding_object): Adjust
18404 marker positions after conversion.
18405
18406 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18407
184082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18409
18410 * font.c (font_find_for_lface): Fix the handling of the return
18411 value of font_has_char.
18412 (Ffont_shape_text): Fix previous change.
18413
18414 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18415 (fontset_ref_and_range): Delete it.
18416 (fontset_find_font): Call char_table_ref_and_range instead of
18417 FONTSET_REF_AND_RANGE.
18418 (make_fontset): Don't setup font groups of Latin here.
18419 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18420 (new_fontset_from_font): Make the specified font the default for
18421 all Latin characters.
18422
184232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18424
18425 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18426 is on a window system before accessing the fontset of the frame.
18427
184282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18429
18430 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18431
18432 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18433 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18434
18435 * font.c (Ffont_shape_text): If the font driver doesn't have a
18436 shaper function, make zero-width glyphs to have at least one-pixel
18437 width. Fix setting of `to' field of glyphs.
18438
184392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18440
18441 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18442 glyphs.
18443
18444 * font.h (struct font_driver): Improve docstring of member `shape'.
18445
184462008-02-01 Kenichi Handa <handa@m17n.org>
18447
18448 * composite.c (syms_of_composite): Fix docstring of
18449 auto-composition-function.
18450
18451 * font.h (LGLYPH_SIZE): New macro.
18452
18453 * font.c (Ffont_fill_gstring): Stop filling when a character not
18454 supported by the font is found.
18455 (Ffont_shape_text): When a shape callback function returns nil,
18456 try at most two more times with larger gstring.
18457 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18458
18459 * xdisp.c (handle_auto_composed_prop): Change the argument to
18460 auto-composition-function.
18461
18462 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18463 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18464 Lispy glyph and store it in the lgstring.
18465
18466 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18467
18468 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18469
184702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18471
18472 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18473
18474 * fontset.c (Vfont_encoding_charset_alist): New variable.
18475 (syms_of_fontset): DEFVAR it.
18476 (reorder_font_vector, fontset_find_font): Optimize for the case of
18477 no need of reordering.
18478 (face_for_char): Map the charset property by
18479 Vfont_encoding_charset_alist.
18480
184812008-02-01 Jason Rumney <jasonr@gnu.org>
18482
18483 * w32font.c (logfonts_match): Don't check adstyle here.
18484 (font_matches_spec): Check here against physical font instead.
18485 (add_font_entity_to_list): Avoid some substitutions.
18486
18487 * font.c (font_parse_fcname): Default weight and slant to normal.
18488 (font_score): Prefer normal fonts if weight or slant unspecified.
18489 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18490 match freetype scores.
18491
184922008-02-01 Jason Rumney <jasonr@gnu.org>
18493
18494 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18495 font, as it may have been deleted.
18496 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18497 most common hyphenless variation.
18498 (logfonts_match): Check generic family.
18499 (font_matches_spec): Don't check generic family here.
18500 (fill_in_logfont): Set generic family based on adstyle.
18501
18502 * w32font.h (w32font_get_cache): Update declaration.
18503
185042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18505
18506 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18507
18508 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18509 If none of the new drivers are available, call font_update_drivers
18510 with the old drivers.
18511
18512 * w32font.c (w32font_get_cache): Adjust the argument type.
18513
18514 * xfont.c (xfont_get_cache): Adjust the argument type.
18515
18516 * font.h (struct font_driver): Change argument type of get_cache.
18517
18518 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18519
18520 * font.c (Ffont_get): Fix arguments to Fassoc.
18521 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18522 (font_clear_cache): New function.
18523 (font_list_entities, font_matching_entity): Use font_get_cache.
18524 (font_update_drivers): Call font_clear_cache when finishing a driver.
18525
18526 * fontset.c (fontset_find_font): Fix previous change.
18527
185282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18529
18530 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18531 dpyinfo->font_table.
18532 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18533 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18534
18535 * font.c (font_at): Handle the case that the arg C is negative.
18536 Handle the unibyte case.
18537 (Ffont_at): Call font_at with the arg C -1.
18538
18539 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18540 the position here, and call font_at with the arg C -1.
18541 Don't check the range of the existing composition at the point.
18542
185432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18544
18545 * fontset.c (fontset_add): New args charset_id and family.
18546 Change caller.
18547 (load_font_get_repertory, fontset_find_font): Assume that
18548 font_spec is always a font-spec object.
18549 (Fset_fontset_font): Always store a font-spec object in a fontset.
18550
18551 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18552 instead of get_property_and_range.
18553
185542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18555
18556 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18557 (xftfont_open): Don't keep locking face.
18558 (xftfont_close): Don't unlock face.
18559 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18560
18561 * fontset.c (fontset_find_font): Don't prefer a font of
18562 supplementary charset.
18563
185642008-02-01 Kenichi Handa <handa@m17n.org>
18565
18566 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18567 script, langsys_tag to langsys, new member script.
18568 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 18569 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
18570 listing to the script specified in that property. Fix arg to
18571 OTF_check_features.
18572
185732008-02-01 Jason Rumney <jasonr@gnu.org>
18574
18575 * w32font.h: New file.
18576
18577 * w32font.c: Include it.
18578 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18579 (w32font_open): Set owning_frame.
18580 (w32font_text_extents): Use owning_frame.
18581 (struct font_callback_data): Add opentype_only field.
18582 (add_font_entity_to_list): Use it to filter fonts.
18583 Don't check against full name.
18584 (w32font_list_internal): New function.
18585 (w32font_list): Use it.
18586 (w32font_match_internal): New function.
18587 (w32font_match): Use it.
18588 (w32font_open_internal): New function.
18589 (w32font_open): Use it.
18590 (w32font_get_cache, w32font_close, w32font_has_char)
18591 (w32font_encode_char, w32font_text_extents, w32font_draw):
18592 Make non-static.
18593
18594 * makefile.w32-in (w32font.o): Depend on w32font.h.
18595
185962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18597
18598 * charset.c (Fdefine_charset_internal): Record a supplementary
18599 charset at the tail of Vcharset_order_list.
18600
18601 * font.c (Ffont_shape_text): Fix the return value.
18602
18603 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18604
18605 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18606
186072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18608
18609 * ftfont.c (struct OpenTypeSpec): New struct.
18610 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18611 (ftfont_get_open_type_spec): New function.
18612 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18613
18614 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18615
186162008-02-01 Jason Rumney <jasonr@gnu.org>
18617
18618 * w32font.c (add_font_entity_to_list): Compare only the beginning
18619 of full name.
18620
186212008-02-01 Kenichi Handa <handa@m17n.org>
18622
18623 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18624 Never return HANDLED_RECOMPUTE_PROPS.
18625
186262008-02-01 Kenichi Handa <handa@m17n.org>
18627
18628 * font.c (font_gstring_produce): Delete it.
18629
18630 * composite.h (COMPOSITION_METHOD):
18631 Handle COMPOSITION_WITH_GLYPH_STRING.
18632
186332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18634
18635 * xfont.c (Qx): Delete.
18636 (syms_of_xfont): Don't initialize Qx.
18637
18638 * composite.h (enum composition_method):
18639 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18640
186412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18642
18643 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18644 (choose_face_font): Accept new form of font-spec.
18645
18646 * frame.h (font_driver_list): Declare it unconditionally.
18647 (struct frame): Define members font_driver_list and font_data_list
18648 unconditionally.
18649
18650 * fontset.c: Include "font.h" unconditionally.
18651 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18652 (Fset_fontset_font): Accept a font-spec object.
18653
18654 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18655 PIXEL_SIZE part a wild card.
18656
18657 * dispextern.h (struct glyph_string): Define members clip and
18658 num_clips unconditionally.
18659 (struct face): Define members font_info and extra unconditionally.
18660
18661 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18662 ftfont_info only when HAVE_LIBOTF is defined.
18663
186642008-02-01 Andreas Schwab <schwab@suse.de>
18665
18666 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18667 and end.
18668
186692008-02-01 Jason Rumney <jasonr@gnu.org>
18670
18671 * w32font.c (w32font_driver): Add new fields.
18672
186732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18674
18675 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18676 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18677 (LIBES): Add @M17N_FLT_CFLAGS@.
18678
18679 * composite.c (compose_text): Don't treat the new style
18680 composition specially.
18681
18682 * emacs.c (main): Call syms_of_font unconditionally.
18683
18684 * font.h (FONT_ENTITY_NOT_LOADABLE)
18685 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18686 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18687 (struct font_driver): New member shape.
18688 (font_registry_charsets): Extern it.
18689 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18690 (font_otf_capability, font_drive_otf): Delete their externs.
18691
18692 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18693 (font_charset_alist, font_registry_charsets): Move from xfont.c
18694 and rename.
18695 (font_prop_validate_otf): New function.
18696 (font_property_table): Register it for QCotf.
18697 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18698 (font_drive_otf): Delete.
18699 (font_prepare_composition): New arg F. Adjust for the change of
18700 lispy gstring.
18701 (font_find_for_lface): New arg C.
18702 (font_load_for_face): Adjust for the change of font_find_for_lface.
18703 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18704 lispy gstring.
18705 (Ffont_shape_text): New function.
18706 (Fopen_font): If the font size is not given, use 12-pixel.
18707 (Ffont_at): New arg STRING.
18708 (syms_of_font): Initalize font_charset_alist.
18709 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18710 conditionally.
18711
18712 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18713 fonts of the same font-spec. Change the format of RFONT-DEF.
18714 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18715 Adjust for the change of RFONT-DEF.
18716 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18717
18718 * ftfont.h: New file.
18719
18720 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18721 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18722 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18723 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18724 font_otf_capability and font_drive_otf, set ftfont_shape.
18725 (ftfont_list): Adjust for the change of :otf property value.
18726 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18727 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18728 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18729 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18730 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18731 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18732
18733 * w32term.c (x_draw_composite_glyph_string_foreground):
18734 Adjust for the change of lispy gstring.
18735
18736 * xdisp.c (handle_composition_prop): Adjust for the change of
18737 lispy gstring. Call a function for auto-composition with the
18738 third arg it->window.
18739 (fill_composite_glyph_string): Adjust for the change of lispy string.
18740 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18741
18742 * xfaces.c (set_font_frame_param): Adjust for the change of
18743 font_find_for_lface.
18744
18745 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18746 (xfont_registry_charsets): Likewise. Change caller.
18747 (syms_of_xfont): Don't handle x_font_charset_alist.
18748
18749 * xftfont.c: Include "ftfont.h".
18750 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18751 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18752 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18753 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18754 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18755 Set xftfont_driver.shape to xftfont_shape.
18756
18757 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18758 the change of lispy gstring.
18759
187602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18761
18762 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18763
187642008-02-01 Jason Rumney <jasonr@gnu.org>
18765
18766 * w32font.c (w32font_draw): Fill background manually.
18767
187682008-02-01 Jason Rumney <jasonr@gnu.org>
18769
18770 * font.c (Qfontp): Remove unused symbol.
18771 (QCantialias): New symbol.
18772 (syms_of_font): Define it.
18773 (font_property_table): Set a validator for QCantialias.
18774
18775 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18776 Define if not already.
18777 (QCfamily): Share with xfaces.c.
18778 (Qstandard, Qsubpixel, Qnatural): New symbols.
18779 (syms_of_w32font): Define them. Don't define QCfamily here.
18780 (w32_antialias_type, lispy_antialias_type): New functions.
18781 (w32_enumfont_pattern_entity): New arg requested_font.
18782 Set antialias parameter if non-default was requested.
18783 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18784
187852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18786
18787 * lread.c (read1): Undo the previous change.
18788
187892008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18790
18791 * frame.c (Fdelete_frame): Call font_update_drivers only when
18792 USE_FONT_BACKEND is defined.
18793
187942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18795
18796 * font.h (struct font_bitmap): New member bits_per_pixel.
18797 (struct font_driver): New members start_for_frame and end_for_frame.
18798 (struct font_data_list): New struct.
18799 (font_put_frame_data, font_get_frame_data): Extern them.
18800
18801 * frame.h (struct frame): New member font_data_list.
18802
18803 * font.c (font_update_drivers): Call driver->start_for_frame and
18804 driver->end_for_frame at proper timings.
18805 (font_put_frame_data, font_get_frame_data): New functions.
18806 (Ffont_spec): Add usage in the docstring.
18807
18808 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18809 (Fdelete_frame): Call font_update_drivers.
18810
18811 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18812 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18813 (xftfont_get_xft_draw): New function.
18814 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18815 (xftfont_end_for_frame): New function.
18816 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18817
18818 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18819 Change argument. Cache GCs in the per-frame data.
18820 (struct ftxfont_frame_data): New struct.
18821 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18822 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18823 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18824 (ftxfont_end_for_frame): New function.
18825 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18826
18827 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18828
188292008-02-01 Kenichi Handa <handa@m17n.org>
18830
18831 * xselect.c (Vselection_coding_system)
18832 (Vnext_selection_coding_system): Delete them.
18833 (syms_of_xselect): Don't declare selection-coding-system and
18834 next-selection-coding-system. They are declared in select.el.
18835
188362008-02-01 Jason Rumney <jasonr@gnu.org>
18837
18838 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18839
18840 * w32fns.c: Include imm.h.
18841 (get_composition_string_fn, get_ime_context_fn): New optional
18842 system functions.
18843 (globals_of_w32fns): Load them from imm32.dll.
18844 (ignore_ime_char): New flag.
18845 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18846 WM_IME_ENDCOMPOSITION messages.
18847
18848 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18849 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18850
188512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18852
18853 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18854 (READCHAR_REPORT_MULTIBYTE): New macro.
18855 (readchar): New 2nd arg MULTIBYTE.
18856 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18857 Make symbol's name multibyte according to the multibyteness of the
18858 source.
18859
188602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18861
18862 * xfaces.c (face_for_overlay_string): Call lookup_face with
18863 correct arguments (fix of synching with the trunk).
18864
188652008-02-01 Kenichi Handa <handa@m17n.org>
18866
18867 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18868 (font_prop_validate_non_neg, font_prop_validate_spacing):
18869 Delete argument prop_index.
18870 (font_property_table): Change arguments to validater. Change Callers.
18871 (font_lispy_object): Delete.
18872 (font_at): Use font_find_object instead fo font_lispy_object.
18873
188742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18875
18876 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18877 and file names.
18878
188792008-02-01 Jason Rumney <jasonr@gnu.org>
18880
18881 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18882 (font_matches_spec): Remove debug output.
18883 (add_font_entity_to_list): Avoid using substituted fonts.
18884
188852008-02-01 Jason Rumney <jasonr@gnu.org>
18886
18887 * doc.c (Fsnarf_documentation):
18888 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18889
188902008-02-01 Miles Bader <miles@gnu.org>
18891
18892 * dispextern.h (struct glyph_row): Only define "clip" field if
18893 HAVE_WINDOW_SYSTEM is defined.
18894
188952008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18896
18897 Fix up multi-tty merge.
18898
18899 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18900 and indentation.
18901
18902 * xfaces.c (free_realized_face, clear_face_gcs):
18903 Include font_done_for_face in the input_blocked section, just in case.
18904
18905 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18906 (get_char_face_and_encoding): Undo last change and remove the *other*
18907 duplicate definition (i.e. keep the one that's better scoped and that
18908 includes code for the font-backend).
18909
18910 * terminal.c (create_terminal): Default keyboard_coding to
18911 `no-conversion' and terminal_coding to `undecided'.
18912
18913 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18914
18915 * fontset.c (free_realized_fontsets): Check that the table entry does
18916 contain a fontset before trying to compare it to `base'.
18917
18918 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18919 syms_of_charset, and syms_of_coding earlier because init_window_once
18920 now needs Vcoding_system_hash_table to be setup.
18921
18922 * coding.h (default_buffer_file_coding): Remove.
18923
18924 * coding.c (default_buffer_file_coding): Remove.
18925 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18926 than ->symbol, and use the terminal-local coding system.
18927 (syms_of_coding): Don't setup the coding-systems that are not
18928 terminal-local.
18929 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18930
18931 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18932 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18933
18934 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18935 in chartab.c and were re-added here by mistake.
18936 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18937
18938 * doc.c (Fsnarf_documentation):
18939 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18940 src to etc.
18941
18942 * ChangeLog.10: Add mistakenly removed entry.
18943
189442008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18945
18946 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18947
189482008-02-01 Miles Bader <miles@gnu.org>
18949
18950 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18951 Add extra args to FACE_FOR_CHAR.
18952
189532008-02-01 Kenichi Handa <handa@m17n.org>
18954
18955 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18956 in sequence.
18957
18958 * chartab.c (map_sub_char_table, map_char_table): If the range
18959 contains just one character, call the function with that character
18960 even if the depth is not 3.
18961
189622008-02-01 Jason Rumney <jasonr@gnu.org>
18963
18964 * w32font.c (w32font_text_extents): Calculate metrics for the
18965 whole string.
18966
189672008-02-01 Jason Rumney <jasonr@gnu.org>
18968
18969 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18970
189712008-02-01 Jason Rumney <jasonr@gnu.org>
18972
18973 * w32term.c (x_set_glyph_string_clipping): Use
18974 get_glyph_string_clip_rects.
18975 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18976 Adjust for the change of struct glyph_string.
18977
18978 * w32font.c (w32font_draw): Do clipping here.
18979
189802008-02-01 Kenichi Handa <handa@m17n.org>
18981
18982 * xftfont.c (xftfont_draw): Adjust for the change of struct
18983 glyph_string.
18984
18985 * xterm.c (x_set_glyph_string_clipping): Use
18986 get_glyph_string_clip_rects.
18987 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18988 Adjust for the change of struct glyph_string.
18989
18990 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18991 the resulting clip(s}.
18992 (expose_overlaps): Add arg r. Change callers. Set it to
18993 row->clip temporarily.
18994 (expose_window): Redraw rows overlapping the exposed area.
18995
18996 * dispextern.h (struct glyph_row): New member clip.
18997 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18998 clip_height, new member clip, and num_clips.
18999
190002008-02-01 Kenichi Handa <handa@m17n.org>
19001
19002 * data.c (Fchar_or_string_p): Fix docstring.
19003
190042008-02-01 Kenichi Handa <handa@m17n.org>
19005
19006 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19007 create a temporary XftDraw object.
19008
190092008-02-01 Kenichi Handa <handa@m17n.org>
19010
19011 * font.c (Ffontp): Fix docstring.
19012
19013 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19014 strong evidence of ISO-2022.
19015
190162008-02-01 Kenichi Handa <handa@m17n.org>
19017
19018 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19019 SYNTAX_ENTRY_FOLLOW_PARENT.
19020
190212008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19022
19023 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19024 its type.
19025 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19026 Update to the new type of weak_hash_tables and next_weak.
19027
19028 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19029 a plain C pointer to Lisp_Hash_Table.
19030
19031 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19032 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19033 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19034 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19035 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19036 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19037 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19038 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19039 (GC_EQ): Remove since they've been identical to their non-GC_
19040 alter-egos ever since the markbit was eradicated.
19041
19042 * alloc.c:
19043 * buffer.c:
19044 * buffer.h:
19045 * data.c:
19046 * fileio.c:
19047 * filelock.c:
19048 * fns.c:
19049 * frame.h:
19050 * lisp.h:
19051 * macterm.c:
19052 * print.c:
19053 * process.c:
19054 * w32fns.c:
19055 * w32menu.c:
19056 * w32term.c:
19057 * xfns.c:
19058 * xmenu.c:
19059 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19060
190612008-02-01 Kenichi Handa <handa@m17n.org>
19062
19063 * chartab.c (map_sub_char_table): Make it work for the top-level
19064 char-table. Fix handling of parent char-table.
19065 (map_char_table): Adjust for the above change.
19066
190672008-02-01 Jason Rumney <jasonr@gnu.org>
19068
19069 * w32font.c (Qgdi): Rename from Qw32.
19070
190712008-02-01 Jason Rumney <jasonr@gnu.org>
19072
19073 * w32bdf.c (get_quoted_string): Make function static.
19074
190752008-02-01 Kenichi Handa <handa@m17n.org>
19076
19077 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19078 bigger ascent and descent than those of the font, use them as
19079 font's ascent and descent.
19080
190812008-02-01 Kenichi Handa <handa@m17n.org>
19082
19083 * Makefile.in (${lispsource}international/charprop.el): Move this
19084 target within "#ifdef HAVE_UNIDATA" and "#endif".
19085
190862008-02-01 Kenichi Handa <handa@m17n.org>
19087
19088 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19089 (shortlisp): Add ../lisp/language/tai-viet.el.
19090
190912008-02-01 Ulrich Mueller <ulm@gentoo.org>
19092
19093 * Makefile.in (${lispsource}international/charprop.el): Depend on
19094 temacs${EXEEXT}.
19095
190962008-02-01 Jason Rumney <jasonr@gnu.org>
19097
19098 * w32font.c (w32font_close): Delete the GDI font object.
19099
19100 * w32menu.c: Include character.h.
19101
19102 * w32proc.c: Likewise.
19103
19104 * w32select.c: Likewise.
19105
19106 * makefile.w32-in (w32proc.o): Depend on character.h.
19107
191082008-02-01 Jason Rumney <jasonr@gnu.org>
19109
19110 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19111
19112 * w32menu.c (syms_of_w32menu): Likewise.
19113
19114 * w32proc.c (syms_of_ntproc): Likewise.
19115
19116 * w32select.c (syms_of_w32select): Likewise.
19117
19118 * w32term.c (syms_of_w32term): Likewise.
19119
191202008-02-01 Jason Rumney <jasonr@gnu.org>
19121
19122 * w32font.c (w32font_draw): Delete brush after using it.
19123
191242008-02-01 Jason Rumney <jasonr@gnu.org>
19125
19126 * w32font.c (w32font_open): Don't set font_idx.
19127 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19128 to font settings.
19129 (w32font_draw): Fill background explicitly.
19130
191312008-02-01 Jason Rumney <jasonr@gnu.org>
19132
19133 * w32term.c (w32_initialize): Don't call w32font_initialize.
19134
19135 * w32font.c (w32font_info): Remove subranges.
19136 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19137 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19138 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19139 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19140 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19141 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19142 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19143 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19144 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19145 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19146 New symbols.
19147 (font_callback_data): New struct.
19148 (w32font_list, w32font_match): Use it.
19149 (w32font_open): Don't populate subranges.
19150 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19151 (w32font_encode_char): Always return unicode code-point as-is.
19152 (w32font_text_extents): Supply a transformation matrix to
19153 GetGlyphOutline. Never look up by glyph index. Avoid looping
19154 twice. Use unicode version of GetTexExtentPoint32 instead of
19155 glyph index version.
19156 (set_fonts_frame): Remove.
19157 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19158 set frame parameter. Use backward compatible fake foundries.
19159 Save generic family in extra slot under QCfamily. Make width slot
19160 constant. Save QCspacing value. Save list of scripts instead of
19161 binary subranges.
19162 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19163 (add_font_entity_to_list): Use font_callback_data struct. Filter
19164 unwanted fonts.
19165 (add_one_font_entity_to_list): Use font_callback_data struct.
19166 (w32_registry): Default to iso10646_1.
19167 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19168 string font registries. Don't fill in font name if it is a generic
19169 family name, fill family instead. Use spacing, family and script
19170 extra info to fill pitch, family and charset fields.
19171 (list_all_matching_fonts): Use font_callback_data struct.
19172 (unicode_range_for_char): Remove.
19173 (font_supported_scripts): New function.
19174 (w32font_initialize): Remove.
19175 (syms_of_w32font): Update which symbols are defined.
19176
191772008-02-01 Jason Rumney <jasonr@gnu.org>
19178
19179 * font.c (font_pixel_size): Reverse assq_no_quit args.
19180
19181 * w32term.h (FONT_WIDTH): Report max width, not average.
19182 (FONT_MAX_WIDTH): Remove.
19183 (FONT_AVG_WIDTH): New macro.
19184
19185 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19186 redefinition of FONT_WIDTH.
19187
19188 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19189 (w32_cache_char_metrics): Use FONT_WIDTH.
19190
19191 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19192
191932008-02-01 Jason Rumney <jasonr@gnu.org>
19194
19195 * w32font.c (w32font_open): Make lfHeight negative.
19196
19197 * w32fns.c (x_default_font_parameter): Use new style font name.
19198 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19199
192002008-02-01 Jason Rumney <jasonr@gnu.org>
19201
19202 * w32font.c (QCsubranges): New symbol.
19203 (w32font_open, w32font_has_char): Get subranges from subproperty
19204 of extra.
19205 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19206 (syms_of_w32font): Define :subranges symbol.
19207
19208 * font.c (font_put_extra): Expose externally.
19209
19210 * font.h (font_put_extra): Move declaration from font.c.
19211
19212 * font.c (Ffont_get): Use font driver to determine otf capability.
19213 (adjust_anchor): Check if driver defines anchor_point before using.
19214
19215 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19216 (w32font_draw): Use options.
19217 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19218 Fix detection of truetype fonts.
19219 (registry_to_w32_charset): Handle charsets other than iso8859-1
19220 expressed as lisp symbols.
19221 (w32_registry): Express charset as lisp symbol.
19222 (fill_in_logfont): Reverse pixel and point height logic.
19223 Don't set width here. Set quality to default.
19224
19225 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19226 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19227
19228 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19229 Remove redundant loop and allocation.
19230
19231 * makefile.w32-in (font.o, w32font.o): New objects.
19232 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19233 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19234
19235 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19236 STORE_XCHARB a valid l-value.
19237
19238 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19239 calculations for non-Truetype fonts.
19240 (x_draw_glyph_string): Sync with xterm.c.
19241 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19242 Remove redundant code.
19243 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19244
19245 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19246 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19247
19248 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19249 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19250
19251 * w32font.c: New file for w32 font backend.
19252
192532008-02-01 Kenichi Handa <handa@m17n.org>
19254
19255 * term.c: Don't include "buffer.h" twice.
19256
192572008-02-01 Kenichi Handa <handa@m17n.org>
19258
19259 * character.c (Funibyte_string): New function.
19260 (syms_of_character): Defsubr it.
19261
192622008-02-01 Jason Rumney <jasonr@gnu.org>
19263
19264 * w32term.c [USE_FONT_BACKEND]:
19265 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19266 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19267 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19268 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19269 (x_free_frame_resources): Sync with xterm.c.
19270
192712008-02-01 Andreas Schwab <schwab@suse.de>
19272
19273 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19274 char-table size.
19275
192762008-02-01 Kenichi Handa <handa@m17n.org>
19277
19278 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19279
192802008-02-01 Kenichi Handa <handa@m17n.org>
19281
19282 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19283 font_otf_gpos, add font_drive_otf.
19284
19285 * fontset.c (fontset_find_font): Pay attention to font size
19286 specified for a font.
19287 (reorder_font_vector): Check contents of font_def.
19288
19289 * font.c (struct otf_list): Delete it.
19290 (otf_list): Make it a lisp variable.
19291 (otf_open): Use lispy otf_list.
19292 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19293 (check_otf_features): New function.
19294 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19295 New functions.
19296 (font_drive_otf): New function merging font_otf_gsub and
19297 font_otf_gpos.
19298 (font_open_for_lface): New arg spec. Change argument order.
19299 (font_load_for_face): Adjust for the change of font_open_for_lface.
19300 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19301 Ffont_otf_gpos.
19302 (syms_of_font): Staticpro otf_list. Delete defsubr of
19303 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19304
19305 * xfaces.c (set_font_frame_param): Adjust for the change of
19306 font_open_for_lface.
19307
19308 * font.h (font_open_for_lface): Adjust prototype.
19309 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19310 member otf_drive.
19311 (font_otf_gsub, font_otf_gpos): Delete externs.
19312 (font_drive_otf): Extern it.
19313
193142008-02-01 Kenichi Handa <handa@m17n.org>
19315
19316 * font.c (font_at): If the window W is not on a window system,
19317 return Qnil.
19318
19319 * coding.c (produce_chars, encode_coding): Don't call
19320 insert_from_gap if no characters to produce.
19321
193222008-02-01 Kenichi Handa <handa@m17n.org>
19323
19324 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19325 Fclear_face_cache.
19326
19327 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19328
193292008-02-01 Miles Bader <miles@gnu.org>
19330
19331 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19332 Parse "--disable-font-backend" option.
19333 (standard_args): Add "--disable-font-backend" option.
19334
193352008-02-01 Kenichi Handa <handa@m17n.org>
19336
19337 * fontset.c (fontset_find_font): New function.
19338 (fontset_font): Use fontset_find_font.
19339 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19340 Register the specified font for all Latin characters.
19341 (new_fontset_from_font): Register the specified font for all Latin
19342 characters.
19343 (dump_fontset): For a realized fontset, include the base fontset
19344 name in the returned vector.
19345
193462008-02-01 Kenichi Handa <handa@m17n.org>
19347
19348 * character.h (CHAR_STRING): Cast C to unsigned on calling
19349 char_string.
19350
19351 * character.c (char_string): Type of arg C changed to unsigned.
19352 Signal an error if C is an invalid character code.
19353
19354 * editfns.c (general_insert_function, Fchar_to_string):
19355 Use CHARACTERP, not INTEGERP.
19356
193572008-02-01 Kenichi Handa <handa@m17n.org>
19358
19359 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19360 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19361
19362 * regex.c (analyse_first): Fix for multibyte characters in "case
19363 charset:" and "case categoryspec:".
19364
193652008-02-01 Andreas Schwab <schwab@suse.de>
19366
19367 * Makefile.in (LIBES): Move standard libraries to the end.
19368
193692008-02-01 Kenichi Handa <handa@m17n.org>
19370
19371 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19372 nonzero, don't shrink the buffer nextb.
19373
19374 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19375
19376 * coding.c (coding_alloc_by_making_gap): New arg offset.
19377 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19378 offset.
19379 (decode_coding_iso_2022): Update coding->safe_charsets.
19380 (decode_coding_gap): Temporarily set
19381 current_buffer->text->inhibit_shrinking to 1.
19382
193832008-02-01 Kenichi Handa <handa@m17n.org>
19384
19385 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19386 indexing into elements of s->cmp and s->char2b.
19387
193882008-02-01 Juanma Barranquero <lekktu@gmail.com>
19389
19390 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19391
193922008-02-01 Kenichi Handa <handa@m17n.org>
19393
19394 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19395 target_multibyte instead of multibyte.
19396 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19397 (bcmp_translate): Change the argument name from multibyte to
19398 target_multibyte.
19399
194002008-02-01 Kenichi Handa <handa@m17n.org>
19401
19402 These changes are to compile a regexp into a pattern that can be
19403 used both for multibyte and unibyte targets.
19404
19405 * Makefile.in (search.o): Depend on charset.h.
19406
19407 * character.c (multibyte_char_to_unibyte_safe): New function.
19408
19409 * search.c: Include "charset.h".
19410 (compile_pattern_1): Delete argument multibyte. Don't set
19411 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19412 (compile_pattern): Don't compare cp->buf.target_multibyte.
19413 Compare cp->buf.charset_unibyte.
19414 (compile_pattern): Set cp->buf.target_multibyte.
19415
19416 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19417
19418 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19419
19420 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19421 multibyte. Change callers.
19422 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19423 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19424 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19425 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19426 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19427 (regex_compile): Make the compiled pattern usable both for
19428 multibyte and unibyte targets.
19429 (analyse_first): Make the fastmap usable both for multibyte and
19430 unibyte targets.
19431 (TRANSLATE_VIA_MULTIBYTE): Delete.
19432 (re_match_2_internal): Pay attention to the case that the
19433 multibyteness of bufp and target may be different.
19434
194352008-02-01 Kenichi Handa <handa@m17n.org>
19436
19437 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19438 empty box occupy at least one column width.
19439
194402008-02-01 Miles Bader <miles@gnu.org>
19441
19442 * Makefile.in: Remove redundant HAVE_XFT clause.
19443
194442008-02-01 Kenichi Handa <handa@m17n.org>
19445
19446 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19447
194482008-02-01 Kenichi Handa <handa@m17n.org>
19449
19450 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19451 being nil.
19452
194532008-02-01 Kenichi Handa <handa@m17n.org>
19454
19455 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19456
194572008-02-01 Kenichi Handa <handa@m17n.org>
19458
19459 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19460
194612008-02-01 Kenichi Handa <handa@m17n.org>
19462
19463 * search.c (simple_search): Fix previous change.
19464
194652008-02-01 Kenichi Handa <handa@m17n.org>
19466
19467 * xftfont.c (ftfont_font_format): Extern declaration.
19468
19469 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19470
19471 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19472 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19473
19474 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19475 (ftfont_font_format): Fix previous change.
19476
19477 * font.h (Ffont_xlfd_name): EXFUN it.
19478
19479 * font.c (font_parse_xlfd): Fix the array size of `f'.
19480 (register_font_driver): Use EQ to compare driver->type.
19481
19482 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19483 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19484 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19485
194862008-02-01 Kenichi Handa <handa@m17n.org>
19487
19488 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19489 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19490
194912008-02-01 Kenichi Handa <handa@m17n.org>
19492
19493 * xfont.c (xfont_open): Set font->format.
19494
19495 * xftfont.c (xftfont_open): Set font->format.
19496
19497 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19498 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19499 (ftfont_open): Set font->format.
19500 (ftfont_font_format): New function.
19501
19502 * font.h (struct font): New member format.
19503
19504 * font.c (Qopentype): New variable.
19505 (syms_of_font): Defsym it.
19506 (Fquery_font): Change the format of the last element of the return
19507 value.
19508
195092008-02-01 Kenichi Handa <handa@m17n.org>
19510
19511 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19512 last resort.
19513
195142008-02-01 Kenichi Handa <handa@m17n.org>
19515
19516 * coding.c (detect_coding_charset): Fix detection of multi-byte
19517 charset.
19518
195192008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19520
19521 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19522
195232008-02-01 Kenichi Handa <handa@m17n.org>
19524
19525 * xdisp.c (get_next_display_element): Set it->face_id for the
19526 first component of a composition.
19527 (x_produce_glyphs): Check if the font is changed or not for composition.
19528
195292008-02-01 Kenichi Handa <handa@m17n.org>
19530
19531 * fontset.c (Qlatin): New variable.
19532 (syms_of_fontset): Define it as a lisp symbol.
19533 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19534
195352008-02-01 Kenichi Handa <handa@m17n.org>
19536
19537 * font.c (font_unparse_fcname): Pay attention to the case that
19538 some of font property is a null string.
19539
195402008-02-01 Kenichi Handa <handa@m17n.org>
19541
19542 * term.c: Include "composite.h".
19543 (encode_terminal_code): Output all components of composition.
19544 Check the size of encode_terminal_src.
19545 (produce_glyphs): For composition, call produce_composite_glyph.
19546 (append_composite_glyph, produce_composite_glyph): New functions.
19547
19548 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19549 is not found, get font_info from the current ascii face.
19550
195512008-02-01 Kenichi Handa <handa@m17n.org>
19552
19553 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19554 buffer-file-name to Qnil before calling insert_from_buffer.
19555
19556 * font.c (font_unparse_fcname): Pay attention to the case that
19557 foundry is a null string.
19558
195592008-02-01 Kenichi Handa <handa@m17n.org>
19560
19561 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19562
19563 * font.c (Qunicode_sip): New variable.
19564 (syms_of_font): Declare it as a Lisp symbol.
19565
19566 * font.h (Qunicode_sip): Extern it.
19567
195682008-02-01 Kenichi Handa <handa@m17n.org>
19569
19570 * composite.c (get_composition_id): Pay attention to TAB component.
19571
19572 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19573 TAB. Adjust for the change of s->char2b which always points to
19574 the first element of allocated memory.
19575
19576 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19577
19578 * xdisp.c (handle_composition_prop): Set it->c to the first
19579 non-TAB component.
19580 (fill_composite_glyph_string): Change argument.
19581 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19582 (x_produce_glyphs): Fix handling of left/right padding.
19583
195842008-02-01 Kenichi Handa <handa@m17n.org>
19585
19586 * coding.c (detect_coding_system): Fix for handling off
19587 inhibit_iso_escape_detection. Fix for the case that no coding
19588 system is defined for a specific coding category.
19589
195902008-02-01 Kenichi Handa <handa@m17n.org>
19591
19592 * font.c (font_matching_entity): Delete unused local var.
19593
19594 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19595 opening a font.
19596
19597 * fileio.c (Finsert_file_contents): On recovering a file, assume
19598 Unix-like eol.
19599 (choose_write_coding_system): On auto-saving a file, force
19600 Unix-like eol.
19601
19602 * coding.c (setup_coding_system): Fix setting of
19603 coding->common_flags based on eol_type.
19604 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19605 inherit from it.
19606
196072008-02-01 Kenichi Handa <handa@m17n.org>
19608
19609 * alloc.c (NSTATICS): Increas to 0x600.
19610
196112008-02-01 Kenichi Handa <handa@m17n.org>
19612
19613 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19614 (ftfont_list): Don't check :name property.
19615 (ftfont_match): New function.
19616 (ftfont_pattern_entity): If the pattern doesn't contain
19617 FC_SPACING, don't assume FC_MONO.
19618
19619 * font.h (struct font_driver): New member `match'.
19620 (font_update_drivers): Adjust prototype.
19621
19622 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19623 property of FONT.
19624 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19625 them unconditionally.
19626 (font_matching_entity): New function.
19627 (font_open_by_name): Try font_matching_entity if exact match is
19628 not found.
19629 (font_update_drivers): Delete the arg FONT. Return a list of
19630 actually used backends. Don't free faces, font caches here.
19631 Don't store data in frame parameters. Don't call x_set_font.
19632 (Ffont_spec): Store :name property as is.
19633 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19634 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19635 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19636 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19637 Call font->driver->otf_gsub instead of font_otf_gsub.
19638
19639 * frame.c (x_set_font_backend): Do more works that were done in
19640 font_update_drivers before.
19641
19642 * xfont.c (xfont_match): New function.
19643 (xfont_driver): Set xfont_driver.match to xfont_match.
19644 (xfont_draw): Set font in GC if necessary.
19645
19646 * ftxfont.c (ftxfont_match): New function.
19647 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19648
19649 * xftfont.c (xftfont_match): New function.
19650 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19651
196522008-02-01 Kenichi Handa <handa@m17n.org>
19653
19654 * font.h (struct font): New member scalable.
19655 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19656 (font_otf_gsub): Adjust prototype.
19657
19658 * font.c (font_otf_capability): Fix handling of the default langsys.
19659 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19660 Check the contents of SPEC.
19661 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19662 (check_gstring): New function.
19663 (REPLACEMENT_CHARACTER): New macro.
19664 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19665 glyph codes of GSTRING.
19666 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19667 (font_prepare_composition): Set cmp->glyph_len.
19668 (font_open_entity): Set font->scalable.
19669 (Ffont_get): Handle :otf property.
19670 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19671 functions.
19672 (Fquery_font): Use font->font.full_name.
19673 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19674 Sfont_otf_alternates.
19675
19676 * ftfont.c (ftfont_open): Set font->font.full_name and
19677 font->font.name properly. Fix calculation of font->font.height
19678 and font->min_width.
19679
19680 * ftxfont.c (ftxfont_create_gcs): New function.
19681 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19682 (ftxfont_draw_backgrond): Fix filling region.
19683 (ftxfont_default_fid): New function.
19684 (ftxfont_open): Set xfont->fid to the return value of
19685 ftxfont_default_fid.
19686 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19687 (ftxfont_done_face): Free only GCs that are created by
19688 ftxfont_create_gcs.
19689 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19690
19691 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19692 Clip to src->width, etc (not src->clip_XXX).
19693
19694 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19695 FontBackend frame parameter.
19696
196972008-02-01 Kenichi Handa <handa@m17n.org>
19698
19699 * font.h (struct font_driver_list): New member `on'.
19700 (Fclear_font_cache): EXFUN it.
19701 (font_update_drivers): Extern it.
19702
19703 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19704 (font_list_entities): Check driver_list->on.
19705 (register_font_driver): Initalize `on' member to 0.
19706 (font_update_drivers): New function.
19707 (Fclear_font_cache): Check driver_list->on.
19708
19709 * frame.h (Qfont_backend): Extern it.
19710 (x_set_font_backend): Extern it.
19711
19712 * frame.c (Qfont_backend): New variable.
19713 (frame_parms): New element for font-backend.
19714 (x_set_font_backend): New function.
19715
19716 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19717 FontBackend frame parameter.
19718 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19719 x_set_font_backend.
19720
19721 * xfont.c (xfont_list): Don't try listing by :name property if the
19722 name is not for XLFD.
19723
197242008-02-01 Kenichi Handa <handa@m17n.org>
19725
19726 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19727 (LGLYPH_SET_TO): New macros.
19728 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19729 element of G is vector or not.
19730 (font_at): Extern it.
19731
19732 * font.c: Include window.h.
19733 (font_lispy_object): New function.
19734 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19735 end of valid glyph.
19736 (font_close_object): Fix getting (struct font *).
19737 (font_at): New function.
19738 (Ffont_get): If FONT is a font-object, get entity from it.
19739 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19740 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19741 range check.
19742 (Ffont_at): New function.
19743 (syms_of_font): Defsubr Sfont_at.
19744
19745 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19746 before the entry for Qcomposition.
19747 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19748 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19749 the font in gstring.
19750 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19751 LGLYPH_FORM (g) to detect the end of valid glyph.
19752 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19753 we are composing with gstring.
19754
19755 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19756 Check if adjustment is vector or not.
19757
19758 * Makefile.in (font.o): Make it depends on window.h.
19759
197602008-02-01 Kenichi Handa <handa@m17n.org>
19761
19762 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19763 adjustment is vector or not.
19764
197652008-02-01 Miles Bader <miles@gnu.org>
19766
19767 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19768
197692008-02-01 Kenichi Handa <handa@m17n.org>
19770
19771 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19772 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19773 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19774
19775 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19776 (DEVICE_DELTA): Fix typo.
19777 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19778 LGLYPH format.
19779
19780 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19781 the change of LGLYPH format.
19782
197832008-02-01 Kenichi Handa <handa@m17n.org>
19784
19785 * ftfont.c (ftfont_list): Fix typo.
19786 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19787
197882008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19789
19790 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19791
19792 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19793 xftface_info is non-NULL.
19794
197952008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19796
19797 * ftfont.c (ftfont_list): Move misplaced #endif.
19798
197992008-02-01 Kenichi Handa <handa@m17n.org>
19800
19801 * ftfont.c (ftfont_list): Pay attention to the case that
19802 FC_CAPABILITY is not defined.
19803
198042008-02-01 Kenichi Handa <handa@m17n.org>
19805
19806 * xftfont.c (xftfont_open): Set charset related members to -1.
19807
19808 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19809 QCname.
19810 (ftfont_open): Set charset related members to -1.
19811
19812 * fontset.c (Votf_script_alist): New variable.
19813 (syms_of_fontset): Initialize it.
19814 (fontset_font): Delete unused variable.
19815
19816 * fontset.h (Votf_script_alist): Extern it.
19817
19818 * font.c (font_find_for_lface): Optimize code.
19819
19820 * font.h (font_close_object, font_merge_old_spec): Extern them.
19821
198222008-02-01 Kenichi Handa <handa@m17n.org>
19823
19824 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19825 (syms_of_font): Initialize them.
19826 (font_pixel_size): Allow float value in dpi.
19827 (font_prop_validate_type): Delete.
19828 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19829 Change caller.
19830 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19831 (font_prop_validate_extra): Delete.
19832 (font_prop_validate_spacing): New function.
19833 (font_property_table): Add elements for all known properties.
19834 (get_font_prop_index): Rename from check_font_prop_name. New
19835 argument FROM. Change caller.
19836 (font_prop_validate): Validate all known properties.
19837 (font_put_extra): Delete argument force. Change caller.
19838 (font_expand_wildcards): Make it static. Fix the way of shrinking
19839 the possible range.
19840 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19841 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19842 Change caller.
19843 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19844 (font_parse_fcname): Delete argument merge. Fix parsing of point
19845 size. Don't validate properties values here. Change caller.
19846 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19847 (font_open_by_name): Delete unused variable.
19848 (Ffont_spec): Likewise. Validate property values.
19849 (Ffont_match_p): New function.
19850
19851 * font.h (QCscalable): Extern it.
19852 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19853
19854 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19855
19856 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19857 (xfont_list_pattern): New function.
19858 (xfont_list): Use xfont_list_pattern.
19859
198602008-02-01 Kenichi Handa <handa@m17n.org>
19861
19862 * font.h (Flist_fonts): EXFUN it.
19863
198642008-02-01 Jason Rumney <jasonr@gnu.org>
19865
19866 * w32term.c (w32_initialize): Add back smoothing_type and
19867 smoothing_enabled definitions.
19868
198692008-02-01 Kenichi Handa <handa@m17n.org>
19870
19871 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19872 s->face->font on determining underline position.
19873
198742008-02-01 Kenichi Handa <handa@m17n.org>
19875
19876 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19877 (font_has_char): Accept font-object too.
19878 (font_find_for_lface): Try at first with a size specified in face.
19879
198802008-02-01 Kenichi Handa <handa@m17n.org>
19881
19882 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19883 font_open_by_name.
19884
198852008-02-01 Kenichi Handa <handa@m17n.org>
19886
19887 * font.h (QCspacing, QCdpi): Extern them.
19888 (enum font_spacing): New enum.
19889 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19890
19891 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19892 (QCspacing, QCdpi): New variables.
19893 (syms_of_font): Initialize them.
19894 (font_pixel_size): New function.
19895 (font_put_extra): New function.
19896 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19897 in FONT_EXTRA.
19898 (font_parse_fcname): Handle enumerated values (e.g. bold).
19899 Fix handling font size. Add QCname property that contains only
19900 unknown properties.
19901 (font_score): Change argument. Change caller. Pay attention to
19902 FONT_PIXEL_SIZE_QUANTUM.
19903 (font_sort_entites, font_list_entities, font_find_for_lface)
19904 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19905 (Ffont_spec): Add QCname property that contains only unknown properties.
19906
19907 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19908 include weight in listing pattern, instead check weight of each
19909 listed font. Don't include scalable in pattern. Pay attention to
19910 FONT_PIXEL_SIZE_QUANTUM.
19911
199122008-02-01 Kenichi Handa <handa@m17n.org>
19913
19914 * font.c (font_parse_fcname): Fix parsing of point-size.
19915 (font_unparse_fcname): Produce symbolic names for style properties.
19916 (font_list_entities): Handle float size correctly.
19917 (font_open_by_name): Prefer `normal' property values if the name
19918 doesn't specify them.
19919
19920 * fontset.c (Finternal_char_font): Use font_get_name, not
19921 Ffont_xlfd_name.
19922
19923 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19924 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19925 pattern. Don't force scalable.
19926
19927 * xftfont.c (xftfont_open): For generating a name, start from
19928 96-byte buffer.
19929
199302008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19931
19932 * frame.h (x_new_fontset2): Fix prototype.
19933
199342008-02-01 Kenichi Handa <handa@m17n.org>
19935
19936 * font.h (struct font_driver): Delete member parse_name.
19937 (font_match_p, font_get_spec, font_parse_fcname)
19938 (font_unparse_fcname): Extern them.
19939 (font_get_name): Adjust prototype.
19940
19941 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19942 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19943 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19944 unnecessary checks for weight, slant, and swidth.
19945 (font_parse_fcname): New function.
19946 (font_unparse_fcname): New function.
19947 (font_parse_name): New function.
19948 (font_match_p): New function.
19949 (font_get_name): Change return value to Lisp string.
19950 (font_get_spec): New function.
19951 (Qunspecified, Qignore_defface): Don't extern them.
19952 (font_find_for_lface): Assume that LFACE is fully specified.
19953 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19954 object, use it for FACE.
19955 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19956 driver->parse_name.
19957 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19958
19959 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19960 prototype.
19961
19962 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19963 argument F. Don't call Fnew_fontset. Instead, directly call
19964 make_fontset.
19965
19966 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19967
19968 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19969 of x_new_fontset2.
19970
19971 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19972 (Qsans__serif): New variables.
19973 (ftfont_generic_family_list): New variable.
19974 (syms_of_ftfont): Initialize the above variables.
19975 (ftfont_pattern_entity): Delete argument NAME.
19976 (ftfont_list_generic_family): New function.
19977 (ftfont_parse_name): Delete this function.
19978 (ftfont_list): Try generic family only when FcFontList found no font.
19979 (ftfont_list_family): Fix args to FcObjectSetBuild.
19980
19981 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19982 object in attrs[LFACE_FONT_INDEX].
19983 (set_lface_from_font_name): Cancel all changes for font-backend.
19984 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19985 function.
19986 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19987 font object in QCfont attribute.
19988 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19989 (realize_default_face) [USE_FONT_BACKEND]: Call
19990 set_lface_from_font_and_fontset.
19991
19992 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19993 "fixed", and signal error here if no suitable font was found.
19994
19995 * xfont.c (xfont_parse_name): Delete this function.
19996
19997 * xftfont.c (xftfont_open): Change coding style of error
19998 handling. Generate fontconfig's fontname pattern.
19999
20000 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20001 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20002
20003 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20004 Both args FONTSET and FONT_OBJECT must be existing ones.
20005
200062008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20007
20008 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20009
200102008-02-01 Kenichi Handa <handa@m17n.org>
20011
20012 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20013
20014 * font.h (struct font): Fix typo.
20015
20016 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20017 XLFD_XXX_INDEX.
20018 (enum xlfd_field_mask): New enum.
20019 (intern_font_field): Changed argument. Change caller. If digits
20020 are followed by non-digits, return a symbol.
20021 (font_expand_wildcards): New function.
20022 (font_parse_xlfd): Fix wildcard handling.
20023 (Ffont_spec): If :name is specified, reflect the info in the other
20024 properties.
20025
20026 * ftfont.c (ftfont_pattern_entity): Fix typo.
20027 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20028 locale.
20029
200302008-02-01 Kenichi Handa <handa@m17n.org>
20031
20032 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20033
20034 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20035 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20036 registry doesn't specify encoding part.
20037 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20038 (font_open_by_name): At first try parsing the name.
20039 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20040 as Lisp symbols.
20041
20042 * fontset.c (reorder_font_vector): Pay attention to the case that
20043 the 3rd element of font_def is nil.
20044 (fontset_font): For the default fontset, append one more fontset
20045 elements for a script-based font specification. Don't add script
20046 attribute on finding a font.
20047 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20048 font name.
20049 (fontset_ascii_font): If a font can't be opened, return nil.
20050
20051 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20052 (ftfont_pattern_entity): New function.
20053 (ftfont_get_cache): Assume that freetype_font_cache is already
20054 initialized.
20055 (ftfont_list): Handle the case that a file is specified in font
20056 name. Use ftfont_pattern_entity to generate entities.
20057 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20058 (syms_of_ftfont): Initialize freetype_font_cache.
20059
20060 * xftfont.c (xftfont_open): Make the font name fontconfig's
20061 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20062 (xftfont_close): Free font->font.name if not NULL.
20063
20064 * xfont.c (xfont_list): If script is specified for a font, return
20065 null_vector.
20066 (xfont_list_family): Declare argument type.
20067
20068 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20069 name, set LFACE_FONT (lface) to nil.
20070
20071 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20072 return Qnil.
20073
200742008-02-01 Kenichi Handa <handa@m17n.org>
20075
20076 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20077 (standard_args): Add "-enable-font-backend".
20078
200792008-02-01 Kenichi Handa <handa@m17n.org>
20080
20081 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20082 (struct xftdraw_list, xftdraw_list): Delete them.
20083 (register_xftdraw, check_xftdraw): Delete them.
20084 (xftfont_prepare_face): Don't call register_xftdraw.
20085 (xftfont_done_face): Don't call check_xftdraw.
20086 (xftfont_draw): Get background color only when with_background is
20087 nonzero.
20088
20089 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20090
200912008-02-01 Kenichi Handa <handa@m17n.org>
20092
20093 These changes are for the new font handling codes.
20094
20095 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20096 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20097 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20098 (FONTSRC, FONTOBJ): New variables.
20099 (obj): Add $(FONTOBJ).
20100 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20101 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20102 @LIBOTF_LIBS@.
20103 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20104 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20105
20106 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20107
20108 * character.h (Vscript_representative_chars): Extern it.
20109
20110 * character.c (Vscript_representative_chars): New variable.
20111 (syms_of_character): Declare it as a Lisp variable.
20112
20113 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20114 enable_font_backend is nonzero, accept the composition method
20115 COMPOSITION_WITH_GLYPH_STRING.
20116
20117 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20118 enumeration COMPOSITION_WITH_GLYPH_STRING.
20119
20120 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20121 members clip_x, clip_y, clip_width, and clip_height.
20122 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20123
20124 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20125 --enable-font-backend. Call syms_of_font.
20126
20127 * fns.c (assoc_no_quit): New function.
20128
20129 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20130 (face_for_font, new_fontset_from_font)
20131 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20132
20133 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20134 (fontset_font, fontset_ascii, face_for_char)
20135 (make_fontset_for_ascii_face, Ffont_info)
20136 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20137 is nonzero, use font-backend mechanism.
20138 (find_font_encoding): Make it non-static.
20139 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20140 New functions.
20141
20142 * frame.h (struct frame): New members resx and resy.
20143 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20144 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20145
20146 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20147 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20148
20149 * lisp.h (assoc_no_quit): Extern it.
20150
20151 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20152 Through out the file, use FONT_INFO_FROM_FACE instead of
20153 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20154 rif->per_char_metric.
20155 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20156 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20157 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20158 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20159 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20160 nonzero, use font-backend mechanism.
20161 (get_per_char_metric): New function.
20162
20163 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20164 (set_lface_from_font_name)
20165 (set_font_frame_param, free_realized_face)
20166 (prepare_face_for_display, clear_face_gcs)
20167 (Finternal_set_font_selection_order, realize_x_face)
20168 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20169 font-backend mechanism.
20170 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20171 (load_face_font) [USE_FONT_BACKEND]: Abort.
20172 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20173 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20174
20175 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20176 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20177 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20178 nonzero, register all available font drivers. Call
20179 x_default_font_parameter for deciding a font.
20180 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20181
20182 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20183 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20184 (x_set_glyph_string_clipping_exactly)
20185 (x_compute_glyph_string_overhangs)
20186 (x_draw_glyph_string_foreground)
20187 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20188 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20189 enable_font_backend is nonzero, use font-backend mechanism.
20190 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20191
201922008-02-01 Kenichi Handa <handa@m17n.org>
20193
20194 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20195 system_eol_type.
20196 (syms_of_coding): Initialize system_eol_type.
20197
20198 * process.c (Fset_process_coding_system): Inherit system's eol
20199 format if necessary.
20200
202012008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20202
20203 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20204
202052008-02-01 Kenichi Handa <handa@m17n.org>
20206
20207 * coding.c (decode_eol): Pay attention to buffer relocation in
20208 del_range_2.
20209 (decode_coding): Call decode_eol before restoring undo_list.
20210
202112008-02-01 Kenichi Handa <handa@m17n.org>
20212
20213 * charset.c (Fdefine_charset_internal): Fix setting of
20214 emacs_mule_bytes.
20215
202162008-02-01 Kenichi Handa <handa@m17n.org>
20217
20218 * keyboard.c (read_char): Check if C is a character or not before
20219 looking up Vkeyboard_translate_table.
20220
202212008-02-01 Kenichi Handa <handa@m17n.org>
20222
20223 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20224 condition to terminate the loop.
20225
202262008-02-01 Kenichi Handa <handa@m17n.org>
20227
20228 * coding.c (produce_composition): Compare charbuf[i] instead of
20229 args[i] against 0.
20230 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20231
202322008-02-01 Kenichi Handa <handa@m17n.org>
20233
20234 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20235 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20236 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20237 detect_coding.
20238 (emacs_mule_char): Handle old style (Emacs 20) component character
20239 of a composition.
20240 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20241 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20242 composition rule.
20243 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20244
202452008-02-01 Kenichi Handa <handa@m17n.org>
20246
20247 * coding.c (encode_coding_ccl): Allocate destination dynamically
20248 when necessary.
20249
202502008-02-01 Kenichi Handa <handa@m17n.org>
20251
20252 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20253 the loop. When quitted, show a proper error message.
20254
202552008-02-01 Kenichi Handa <handa@m17n.org>
20256
20257 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20258 src->clip_head and src->clip_tail temporarily instead of src->hl.
20259
20260 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20261 character sequence.
20262 (Fccl_execute_on_string): Use ASET, not XSET.
20263
202642008-02-01 Kenichi Handa <handa@m17n.org>
20265
20266 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20267
202682008-02-01 Kenichi Handa <handa@m17n.org>
20269
20270 * coding.c (decode_coding): Fix the condition of terminating the
20271 decoding loop.
20272
202732008-02-01 Kenichi Handa <handa@m17n.org>
20274
20275 * data.c (Faset): On setting a character bigger than 255 in a
20276 unibyte string, signal an error instead of make the string multibyte.
20277
202782008-02-01 Kenichi Handa <handa@m17n.org>
20279
20280 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20281 made by a mapping table.
20282
202832008-02-01 Kenichi Handa <handa@m17n.org>
20284
20285 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20286 not.
20287 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20288 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20289
20290 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20291 s->face is NULL or not.
20292
202932008-02-01 Kenichi Handa <handa@m17n.org>
20294
20295 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20296 (x_draw_glyph_string): Fix drawing of right_overhang and
20297 left_overhang around/on cursor.
20298
20299 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20300
203012008-02-01 Kenichi Handa <handa@m17n.org>
20302
20303 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20304
203052008-02-01 Kenichi Handa <handa@m17n.org>
20306
20307 * coding.c (Fdefine_coding_system_internal)
20308 (Fdefine_coding_system_alias): Avoid a duplicated element in
20309 Vcoding_system_alist.
20310
203112008-02-01 Kenichi Handa <handa@m17n.org>
20312
20313 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20314
20315 * coding.c (Qcoding_system_define_form): New variable.
20316 (syms_of_coding): Intern and staticpro it.
20317 (Fcoding_system_p): Check Qcoding_system_define_form.
20318 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20319
20320 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20321 Fcoding_system_p.
20322 (CHECK_CODING_SYSTEM): If ID is not available, call
20323 Fcheck_coding_system.
20324 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20325 Try also Fcheck_coding_system.
20326
203272008-02-01 Kenichi Handa <handa@m17n.org>
20328
20329 * coding.c (code_conversion_restore): GCPRO arg.
20330
203312008-02-01 Kenichi Handa <handa@m17n.org>
20332
20333 * character.c (lisp_string_width): Check multibyteness of STRING.
20334
203352008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20336
20337 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20338 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20339 (decode_mac_font_name): Use decode_coding_c_string instead of
20340 decode_coding.
20341 (x_load_font): Initialize fontp->fontset to -1. Set
20342 fontp->encoding_type.
20343
203442008-02-01 Kenichi Handa <handa@m17n.org>
20345
20346 * search.c (search_buffer): Give up BM search on case-fold-search
20347 if one of a target character has a case-equivalence of different
3b59c351 20348 byte length even if that target character is an ASCII.
aac0c6e3
MR
20349 (simple_search): Fix calculation of byte length of matched text.
20350 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20351
203522008-02-01 Kenichi Handa <handa@m17n.org>
20353
20354 * coding.c (decode_coding): Fix handling of invalid bytes.
20355
203562008-02-01 Kenichi Handa <handa@m17n.org>
20357
20358 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20359 Unicode characters.
20360
203612008-02-01 Kenichi Handa <handa@m17n.org>
20362
20363 * coding.c (encode_coding_object): If a pre-write-conversion
20364 function makes a new buffer, kill it.
20365
203662008-02-01 Kenichi Handa <handa@m17n.org>
20367
20368 * coding.c (QCascii_compatible_p): New variable.
20369 (syms_of_coding): Initialize it.
20370 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20371 calling string_char.
20372 (record_conversion_result): Add `default:' case.
20373 (coding_charset_list): Delete unused variable `coding_type'.
20374 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20375 property in the plist of the coding system.
20376 (Fcoding_system_put): Check QCascii_compatible_p.
20377
203782008-02-01 Miles Bader <miles@gnu.org>
20379
20380 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20381 removed calculation of frame `f', as it's now used.
20382
203832008-02-01 Kenichi Handa <handa@m17n.org>
20384
20385 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20386 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20387 (UNIDATA): New variable.
20388 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20389 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20390 $(RUN_TEMACS) unconditionally.
20391
203922008-02-01 Kenichi Handa <handa@m17n.org>
20393
20394 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20395 (admindir): New variable.
20396 ($(lispsource)international/charprop.el): New target.
20397
203982008-02-01 Miles Bader <miles@gnu.org>
20399
20400 * character.c (chars-in-region): Remove obsolete function.
20401 (syms_of_character): Remove its initialization.
20402
204032008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20404
20405 * w32select.c (validate_coding_system)
20406 (setup_windows_coding_system): New functions.
20407 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20408 setup_windows_coding_system.
20409 (setup_config, Fw32_get_clipboard_data): Use
20410 validate_coding_system.
20411 (Fx_selection_exists): Move call to setup_config to a place
20412 where signals are allowed.
20413
20414 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20415 (Fcheck_coding_system): Add declarations.
20416
204172008-02-01 Kenichi Handa <handa@m17n.org>
20418
20419 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20420
204212008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20422
20423 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20424 string as the second argument for x_new_fontset.
20425
204262008-02-01 Kenichi Handa <handa@m17n.org>
20427
20428 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20429 (encode_coding_object): Use safe_call instead of call2.
20430
204312008-02-01 Kenichi Handa <handa@m17n.org>
20432
20433 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20434
20435 * Makefile.in (lisp): Include charprop.el.
20436
204372008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20438
20439 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20440 Not sure if it's unnecessary.
20441
204422008-02-01 Steven Tamm <steventamm@mac.com>
20443
20444 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20445 some possibly unnecessary fontset checking code that crashed
20446 when creating a new frame.
20447
204482008-02-01 Kenichi Handa <handa@m17n.org>
20449
20450 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20451 lookup_face.
20452
20453 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20454
20455 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20456
204572008-02-01 Kenichi Handa <handa@m17n.org>
20458
20459 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20460 (coding_charset_list): New function.
20461
20462 * coding.h (coding_charset_list): Extern it.
20463
204642008-02-01 Kenichi Handa <handa@m17n.org>
20465
20466 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20467 concatenation of family and registry.
20468
204692008-02-01 Kenichi Handa <handa@m17n.org>
20470
20471 * character.h (BYTE8_STRING): Fix typo.
20472
20473 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20474 string to multibyte (sync to HEAD).
20475
20476 * casefiddle.c (casify_region): Handle changes in byte-length
20477 using replace_range_2 (sync to HEAD).
20478
204792008-02-01 Andreas Schwab <schwab@suse.de>
20480
20481 * chartab.c (map_char_table): GCPRO table and arg.
20482
204832008-02-01 Kenichi Handa <handa@m17n.org>
20484
20485 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20486 already at limit.
20487
204882008-02-01 Kenichi Handa <handa@m17n.org>
20489
20490 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20491 instead of fast_c_string_match_ignore_case.
20492 (find_font_encoding): Change argument to Lisp_Object. Use
20493 fast_string_match_ignore_case instead of
20494 fast_c_string_match_ignore_case. Change caller.
20495
204962008-02-01 Kenichi Handa <handa@m17n.org>
20497
20498 * xdisp.c (get_next_display_element): In unibyte case, decide to
20499 display in octal form by checking a character by
20500 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20501
20502 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20503
20504 * character.c (unibyte_has_multibyte_table): New variable.
20505
20506 * character.h (unibyte_has_multibyte_table): Extern it.
20507 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20508
205092008-02-01 Kenichi Handa <handa@m17n.org>
20510
20511 * coding.c (encode_coding_iso_2022): Fix handling of charset
20512 annotation.
20513
205142008-02-01 Kenichi Handa <handa@m17n.org>
20515
20516 * coding.c (setup_coding_system): If coding_system is nil, use
20517 Qundecided.
20518 (Fterminal_coding_system): Return nil if terminal coding system is
20519 `undecided'.
20520 (syms_of_coding): Define coding-system `undecided' here. Setup
20521 terminal_coding as `undecided'.
20522
205232008-02-01 Kenichi Handa <handa@m17n.org>
20524
20525 * xdisp.c (message_dolog, set_message_1): Call
20526 unibyte_char_to_multibyte with arg type int.
20527
20528 * lread.c (read1): Fix reading of a char-table.
20529
20530 * print.c (print_object): Include sub char-table in circularities
20531 detection.
20532
205332008-02-01 Kenichi Handa <handa@m17n.org>
20534
20535 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20536 Append the found sequences in car of ARGS instead of prepending.
20537
205382008-02-01 Kenichi Handa <handa@m17n.org>
20539
20540 * fileio.c (report_file_error): Make a unibyte string from
20541 strerror (errorno).
20542 (Fsubstitute_in_file_name): Fix the arg to
20543 unibyte_char_to_multibyte. It is evaluated twice.
20544
205452008-02-01 Kenichi Handa <handa@m17n.org>
20546
20547 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20548
205492008-02-01 Kenichi Handa <handa@m17n.org>
20550
20551 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20552 BOM is not found.
20553 (detect_coding, detect_coding_system): Optimization for ISO-2022
20554 when no 8-bit data is found.
20555
205562008-02-01 Jason Rumney <jasonr@gnu.org>
20557
20558 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20559
205602008-02-01 Kenichi Handa <handa@m17n.org>
20561
20562 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20563 CHARS.
20564
205652008-02-01 Steven Tamm <steventamm@mac.com>
20566
20567 * macterm.c (mac_encode_char): Add charset argument and update
20568 to use encoding_type.
20569 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20570 switch to pure fontset.
20571 (decode_mac_font_name): Temporarily remove decoding.
20572 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20573 (x_load_font): Temporarily remove encoding.
20574
205752008-02-01 Kenichi Handa <handa@m17n.org>
20576
20577 * xfaces.c (Fface_font): If frame is not on a window system,
20578 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20579 refer to face->font.
20580 (split_font_name_into_vector, build_font_name_from_vector)
20581 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20582 when HAVE_WINDOW_SYSTEM is defined.
20583
205842008-02-01 Kenichi Handa <handa@m17n.org>
20585
20586 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20587 (x_produce_glyphs): Fix setting of members of cmp in case
20588 cmp->glyph_len is zero.
20589
20590 * fontset.c (Fset_fontset_font): Fix docstring.
20591 (Ffontset_info): Make it backward compatible. New arg ALL.
20592
205932008-02-01 Kim F. Storm <storm@cua.dk>
20594
20595 * process.c (read_process_output): Grow decoding_buf when needed;
20596 this could cause a crash in allocate_string and compact_small_strings.
20597
205982008-02-01 Kenichi Handa <handa@m17n.org>
20599
20600 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20601
206022008-02-01 Kenichi Handa <handa@m17n.org>
20603
20604 * coding.c (setup_coding_system): Set coding->common_flags
20605 correctly for raw-text.
20606 (consume_chars): On encoding unibyte text by raw-text, don't check
20607 multibyte form.
20608 (encode_coding): On encoding by raw-text, never use translation tables.
20609
20610 * fileio.c (e_write): Short cut for the case of no encoding.
20611
206122008-02-01 Kenichi Handa <handa@m17n.org>
20613
20614 * coding.c (detect_coding, detect_coding_system): Delete unused
20615 variables.
20616
206172008-02-01 Kenichi Handa <handa@m17n.org>
20618
20619 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20620 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20621
206222008-02-01 Kenichi Handa <handa@m17n.org>
20623
20624 * coding.c (Ffind_coding_systems_region_internal): Include
20625 raw-text and no-conversion in the result.
20626
206272008-02-01 Kenichi Handa <handa@m17n.org>
20628
20629 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20630 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20631 FONT_DEF.
20632 (font_def_arg, add_arg, from_arg, to_arg): New args.
20633 (set_fontset_font): Change argument.
20634 (Fset_fontset_font): Fix for the case that TARGET is a script
20635 name and charset name.
20636 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20637
206382008-02-01 Kenichi Handa <handa@m17n.org>
20639
20640 * fontset.c (fontset_font): Rename from fontset_face. Change return
20641 value.
20642 (face_suitable_for_char_p, face_for_char): Adjust for the change
20643 of fontset_font.
20644 (make_fontset_for_ascii_face): Fix setting of the fontset element
20645 for ASCII.
20646 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20647 to get a font name.
20648 (Ffontset_info): Adjust for the change of fontset_font.
20649
20650 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20651
20652 * character.h (LEADING_CODE_LATIN_1_MIN)
20653 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20654
206552008-02-01 Kenichi Handa <handa@m17n.org>
20656
20657 * editfns.c (check_translation): New function.
20658 (Ftranslate_region_internal): Handle M:N mapping.
20659
206602008-02-01 Kenichi Handa <handa@m17n.org>
20661
20662 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20663
206642008-02-01 Kenichi Handa <handa@m17n.org>
20665
20666 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20667 goto invalid_code.
20668 (decode_coding_iso_2022): Fix handling of invalid designation.
20669
20670 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20671 after calling code_conversion_save.
20672
206732008-02-01 Kenichi Handa <handa@m17n.org>
20674
20675 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20676
20677 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20678
20679 * fontset.c: Include "intervals.h".
20680 (fontset_face): Fix comparing of Lisp_Objects.
20681 (free_face_fontset, new_fontset_from_font_name): Fix
20682 Lisp_Object/int mixup.
20683
20684 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20685
20686 * coding.c: Add many prototypes for static functions.
20687 (get_translation_table): Allow max_lookup to be NULL.
20688 (decode_coding, Ffind_coding_systems_region_internal)
20689 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20690 get_translation_table with max_lookup NULL.
20691
206922008-02-01 Kenichi Handa <handa@m17n.org>
20693
20694 * coding.c (get_translation_table): Declare it as Lisp_Object.
20695 (LOOKUP_TRANSLATION_TABLE): New macro.
20696 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20697 instead of CHAR_TABLE_REF.
20698
206992008-02-01 Kenichi Handa <handa@m17n.org>
20700
20701 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20702 annotation data format.
20703 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20704 Change arguments FROM and TO to single argument NCHARS. Change caller.
20705 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20706 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20707 (decode_coding_ccl, decode_coding_charset): Pay attention to
20708 coding->charbuf_used.
20709 (get_translation): New function.
20710 (produce_chars): New arguments translation_table and last_block.
20711 Translate characters here. Return number of carryover chars.
20712 Change caller.
20713 (produce_composition): New argument pos. Change caller.
20714 Adjust for the change of annotation data format.
20715 (produce_charset, produce_annotation): Likewise.
20716 (decode_coding, encode_coding): Don't call translate_chars.
20717 (consume_chars): New arg translation_table. Change caller.
20718 (translate_chars): Delete.
20719 (syms_of_coding): Make translation-table's number of extra slots 2.
20720
207212008-02-01 Kenichi Handa <handa@m17n.org>
20722
20723 * search.c (simple_search): Fix setting this_pos_byte in backward
20724 search.
20725
20726 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20727 byte sequence.
20728 (detect_coding_ccl): Fix setting of the variable valids.
20729
207302008-02-01 Kenichi Handa <handa@m17n.org>
20731
20732 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20733
20734 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20735
20736 * editfns.c (Ftranslate_region_internal): Rename from
20737 Ftranslate_region. Accept a char-table in TABLE.
20738 (syms_of_editfns): Defsubr Stranslate_region_internal.
20739
20740 * xfaces.c (set_lface_from_font_name): If a font is specified for
20741 a frame, generate a fontset from the font.
20742 (build_scalable_font_name): If the scalable font is requested for
20743 a specific size, don't change that size.
20744 (try_font_list): Try a scalable font also in the case that a
20745 pattern string is specified.
20746
207472008-02-01 Kenichi Handa <handa@m17n.org>
20748
20749 * xfaces.c (Fface_font): New optional arg CHARACTER.
20750
207512008-02-01 Kenichi Handa <handa@m17n.org>
20752
20753 * charset.h (CHARSET_OFFSET): New macro.
20754
207552008-02-01 Kenichi Handa <handa@m17n.org>
20756
20757 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20758
20759 * fontset.c (fontset_face): Handle the case that repertory is a
20760 char-table.
20761 (find_font_encoding): Return nil for unknown encoding.
20762 (Fset_fontset_font): Ignore a font of unknown encoding.
20763
207642008-02-01 Kenichi Handa <handa@m17n.org>
20765
20766 * keymap.c (describe_vector): Handle default value of a char table.
20767
20768 * fontset.c (fontset_face): Handle fallback fonts correctly.
20769 (Ffontset_info): Return infomation about fallback fonts.
20770
207712008-02-01 Kenichi Handa <handa@m17n.org>
20772
20773 * fontset.c (FONTSET_DEFAULT): New macro.
20774 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20775 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20776 the case that it is nil.
20777 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20778 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20779
20780 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20781 subset or superset.
20782
207832008-02-01 Kenichi Handa <handa@m17n.org>
20784
20785 * emacs.c (main): Call init_charset after syms_of_XXX.
20786
20787 * charset.c (Vcharset_map_directory): Delete.
20788 (Vcharset_map_path): New variable.
20789 (load_charset_map_from_file): Use Vcharset_map_path instead.
20790 (init_charset): Initialize Vcharset_map_path.
20791 (syms_of_charset): Delete declaration of "charset-map-directory",
20792 add declaration of "charset-map-path".
20793
207942008-02-01 Kenichi Handa <handa@m17n.org>
20795
20796 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20797 ASCII only string.
20798
20799 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20800
20801 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20802 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20803
208042008-02-01 Kenichi Handa <handa@m17n.org>
20805
20806 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20807
20808 * coding.c (QCmnemonic, QCdefalut_char)
20809 (QCdecode_translation_table, QCencode_translation_table)
20810 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20811 (get_translation_table): Return a list of translation tables if
20812 necessary.
20813 (decode_coding): Call get_translation_table with ENCODEP 0.
20814 (char_encodable_p): If translation_table is non-nil, always call
20815 translate_char.
20816 (Fdefine_coding_system_internal): Accept list of translation
20817 tables as :encode-translation-table and :decode-translation-table.
20818 (Fcoding_system_put): New function.
20819 (syms_of_coding): Declare new symbols. Defsubr
20820 Scoding_system_put.
20821 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20822 typically JISX0212.
20823
20824 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20825 when the charset is superset type.
20826
20827 * character.c (translate_char): Accept list of translation tables.
20828
208292008-02-01 Kenichi Handa <handa@m17n.org>
20830
20831 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20832 (CODING_ATTR_TRANS_TBL): New macro.
20833
20834 * coding.c (get_translation_table): New function.
20835 (translate_chars): Fix the bug of skipping annotation data.
20836 (decode_coding, encode_coding): Utilize get_translation_table.
20837 (char_encodable_p, Funencodable_char_position): Translate char if
20838 necessary.
20839 (Ffind_coding_systems_region_internal)
20840 (Fcheck_coding_systems_region): Setup translation table for encode
20841 in a coding system attribute vector in advance.
20842 (Fdefine_coding_system_internal): Allow a symbol as translation
20843 table. For shift-jis type coding system, allow 4th charset.
20844
208452008-02-01 Kenichi Handa <handa@m17n.org>
20846
20847 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20848
20849 * xdisp.c (get_next_display_element): Pass -1 as POS to
20850 FACE_FOR_CHAR if displaying a C-string.
20851
208522008-02-01 Kenichi Handa <handa@m17n.org>
20853
20854 * composite.c (get_composition_id): Handle xoff and yoff in a
20855 composition rule.
20856
20857 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20858 (struct composition): New member lbearing and rbearing.
20859
20860 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20861 (x_get_glyph_overhangs): Handle a composition glyph.
20862 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20863
20864 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20865 composition glyph.
20866
208672008-02-01 Kenichi Handa <handa@m17n.org>
20868
20869 * print.c: Include charset.h.
20870 (Vprint_charset_text_property): New variable.
20871 (Qdefault): Extern it.
20872 (PRINT_STRING_NON_CHARSET_FOUND)
20873 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20874 (print_check_string_result): New variable.
20875 (print_check_string_charset_prop): New function.
20876 (print_prune_charset_plist): New variable.
20877 (print_prune_string_charset): New function.
20878 (print_object): Call print_prune_string_charset if
20879 Vprint_charset_text_property is not t.
20880 (print_interval): Print nothing if interval->plist is nil.
20881 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20882 variable. Init and staticpro print_prune_charset_plist.
20883
208842008-02-01 Kenichi Handa <handa@m17n.org>
20885
20886 * fontset.c (new_fontset_from_font_name): Use the specified font
20887 for all characters in the new fontset.
20888
20889 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20890 OBJECT args.
20891
20892 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20893 OBJECT args for composition too.
20894
20895 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20896 OBJECT args.
20897
208982008-02-01 Kenichi Handa <handa@m17n.org>
20899
20900 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20901
20902 * fontset.c (reorder_font_vector): Adjust for the change of
20903 FONT_DEF format.
20904 (fontset_face): New arg id. Change caller.
20905 (face_for_char): New args pos and object.
20906 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20907 (fs_query_fontset): Check NAME by Fassoc too.
20908 (Fset_fontset_font): Allow non-XLFD font name.
20909 (Ffontset_info): Adjust for the change of FONT_DEF format.
20910
20911 * fontset.h (face_for_char): Adjust prototype.
20912
20913 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20914 (append_space, extend_face_to_end_of_line)
20915 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20916 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20917
20918 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20919 POS and OBJECT args.
20920
20921 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20922 POS and OBJECT args.
20923
209242008-02-01 Jason Rumney <jasonr@gnu.org>
20925
20926 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20927 of GlobalAlloc'ed memory.
20928
209292008-02-01 Kenichi Handa <handa@m17n.org>
20930
20931 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20932
20933 * charset.h (charset_table_used): Delete extern.
20934
20935 * charset.c (charset_table_used): Make it static.
20936 (map_charset_chars): Fix args to c_function with.
20937
20938 * chartab.c (map_sub_char_table_for_charset): Fix args to
20939 c_function with.
20940
20941 * coding.h (enum coding_result_code): Delete
20942 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20943
20944 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20945 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20946 (Vlast_code_conversion_error): New variables.
20947 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20948 (ONE_MORE_BYTE): Record error if any instead of signaling an
20949 error. If non-ASCII multibyte char is found, return the negative
20950 value of the code. All callers changed to check it.
20951 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20952 (record_conversion_result): New function. Change all codes setting
20953 coding->result to call this function.
20954 (detect_coding_utf_8, decode_coding_utf_8)
20955 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20956 Don't use the local variable incomplete.
20957 (emacs_mule_char): Change the second arg to `const'.
20958 (decode_coding): Fix of flushing out unprocessed data.
20959 (make_conversion_work_buffer): Fix making of a work buffer.
20960 (decode_coding_object): Return coding->dst_object.
20961
20962 * fontset.c (set_fontset_font): Fix args.
20963
20964 * lisp.h (CHARACTERBITS): Define as 22.
20965
20966 * process.c (send_process): Be sure to set coding->src_multibyte.
20967
20968 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20969
209702008-02-01 Kenichi Handa <handa@m17n.org>
20971
20972 * xdisp.c (handle_auto_composed_prop): Give limit to
20973 Fnext_single_char_property_change.
20974
209752008-02-01 Kenichi Handa <handa@m17n.org>
20976
20977 * composite.c (syms_of_composite): Don't make the composition hash
20978 table weak.
20979
20980 * fontset.c (Fset_fontset_font): Fix docstring.
20981
20982 * lisp.h (detect_coding_system): Adjust prototype.
20983
20984 * fileio.c (kill_workbuf_unwind): Delete this function.
20985 (Finsert_file_contents): Adjust the call of detect_coding_system.
20986 Get conversion_buffer by code_conversion_save. Use the macro
20987 CODING_MAY_REQUIRE_DECODING. After decoding, update
20988 coding_system.
20989
20990 * coding.h (make_conversion_work_buffer): Delete extern.
20991 (code_conversion_save): Extern it.
20992
20993 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20994 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20995 (decode_coding_utf_8): Don't do eol converion.
20996 (detect_coding_utf_16): Check coding->src_chars, not
20997 coding->src_bytes. Add heuristics for those that have no signature.
20998 (decode_coding_emacs_mule, decode_coding_iso_2022)
20999 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21000 Don't do eol converion.
21001 (adjust_coding_eol_type): Return a new coding system.
21002 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21003 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21004 each change.
21005 (decode_coding): Pay attention to undo_list. Do eol conversion for
21006 all types of coding-systems (if necessary).
21007 (Vcode_conversion_work_buf_list): Delete it.
21008 (Vcode_conversion_reused_workbuf): Rename from
21009 Vcode_conversion_reused_work_buf.
21010 (Vcode_conversion_workbuf_name): New variable.
21011 (reused_workbuf_in_use): New variable.
21012 (make_conversion_work_buffer): Delete the arg DEPTH.
21013 (code_conversion_restore): Change argument to cons.
21014 (code_conversion_save): Delete the argument BUFFER. Change callers.
21015 (detect_coding_system): New argument src_chars. Change callers.
21016 Fix for utf-16 detection.
21017 (init_coding_once): Don't use ISO_carriage_return.
21018 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21019 reused_workbuf_in_use.
21020
210212008-02-01 Kenichi Handa <handa@m17n.org>
21022
21023 * keymap.c (store_in_keymap): Pay attention to the case that idx
21024 is a cons specifying a character range.
21025
210262008-02-01 Kenichi Handa <handa@m17n.org>
21027
21028 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21029 HANDLED_RECOMPUTE_PROPS.
21030
21031 * coding.c (Fdefine_coding_system_internal): Fix checking of
21032 ascii compatibility.
21033
210342008-02-01 Kenichi Handa <handa@m17n.org>
21035
21036 * charset.c (find_charsets_in_text): Delete unused locale variable.
21037 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21038
21039 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21040 Resync charset_list to Vemacs_mule_charset_list.
21041
21042 * keymap.c (store_in_keymap): Pay attention to the case that idx
21043 is a cons specifying a character range.
21044
210452008-02-01 Kenichi Handa <handa@m17n.org>
21046
21047 * composite.c (update_compositions): Bind inhibit-read-only, etc
21048 to t before calling remove-list-of-text-properties.
21049
21050 * print.c (print_object): Always print ASCII chars as is.
21051
210522008-02-01 Kenichi Handa <handa@m17n.org>
21053
21054 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21055
21056 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21057 is a char table.
21058
210592008-02-01 Kenichi Handa <handa@m17n.org>
21060
21061 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21062
210632008-02-01 Kenichi Handa <handa@m17n.org>
21064
21065 * xfaces.c (set_lface_from_font_name): Fix for the case that
21066 FONTNAME is not fontset name.
21067
210682008-02-01 Kenichi Handa <handa@m17n.org>
21069
21070 * fns.c (base64_encode_1): Fix previous change.
21071
210722008-02-01 Kenichi Handa <handa@m17n.org>
21073
21074 * fontset.c (set_fontset_font): New function.
21075 (Fset_fontset_font): If a font is specified for a charset, use
21076 map_charset_chars to store the font spec in a fontset.
21077
210782008-02-01 Kenichi Handa <handa@m17n.org>
21079
21080 * fontset.c (fontset_face): Create a fallback fontset on demand.
21081 (make_fontset): Don't create a fallback fontset here.
21082 (free_face_fontset): Free a fallback fontset (if any) too.
21083 (n_auto_fontsets): Delete this variable.
21084 (auto_fontset_alist): New variable.
21085 (new_fontset_from_font_name): Check auto_fontset_alist.
21086 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21087 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21088 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21089 Defsubr Sfontset_list_all.
21090
210912008-02-01 Kenichi Handa <handa@m17n.org>
21092
21093 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21094
210952008-02-01 Kenichi Handa <handa@m17n.org>
21096
21097 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21098
210992008-02-01 Kenichi Handa <handa@m17n.org>
21100
21101 * editfns.c (Fgoto_char): Fix docstring.
21102
211032008-02-01 Kenichi Handa <handa@m17n.org>
21104
21105 * insdel.c (insert_from_gap): Adjust intervals correctly.
21106
211072008-02-01 Jason Rumney <jasonr@gnu.org>
21108
21109 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21110 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21111 (w32_initialize): Try to load it.
21112 (x_get_font_repertory): Use it if available.
21113 (w32_encode_char): Add shortcut for unicode output.
21114
21115 * w32fns.c (w32_load_system_font): Default charset to -1.
21116 (x_to_w32_charset): Match all fonts for unicode.
21117 (w32_to_x_charset): New parameter matching. Don't return partial
21118 or wildcard charsets.
21119 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21120 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21121 (w32_to_x_font): Match charset to real charset.
21122 (enum_font_cb2): Always list unicode versions.
21123
21124 * makefile.w32-in (temacs): Increase EMHEAP.
21125
211262008-02-01 Jason Rumney <jasonr@gnu.org>
21127
21128 * w32term.c (w32_encode_char): New charset parameter.
21129 font_info.encoding becomes encoding_type.
21130 (x_get_font_repertory): New function. Warning: stub only!
21131 (x_new_font): Return quickly if font already set.
21132 (x_new_fontset): fontsetname parameter is Lisp_Object.
21133 Use new fs_query_fontset. Try new_fontset_from_font_name.
21134 Use fontset_name for return value.
21135
21136 * w32term.h: Declare x_get_font_repertory.
21137
21138 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21139 place of find_charset_in_text. Use encode_coding_object in place
21140 of encode_coding.
21141 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21142 decode_coding.
21143
21144 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21145 of x_new_fontset.
21146 (w32_load_system_font): Initialize charset as unicode.
21147 font_info.encoding becomes encoding_type.
21148 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21149 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21150 (syms_of_w32fns): Set get_font_repertory_func.
21151
21152 * w32console.c: Include character.h. Use terminal_encode_buffer
21153 from term.c.
21154 (write_glyphs): Use new version of encode_terminal_code. Use
21155 encode_coding_object in place of encode_coding.
21156
21157 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21158 encoding becomes encoding_type.
21159
21160 * term.c (terminal_encode_buffer): Make externally visible.
21161
21162 * makefile.w32-in: Add character.h dependancies.
21163 (character.o, chartab.o): New targets.
21164
211652008-02-01 Kenichi Handa <handa@m17n.org>
21166
21167 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21168 CODING_ID_EOL_TYPE.
21169
211702008-02-01 Andreas Schwab <schwab@suse.de>
21171
21172 * coding.c (produce_chars): Revert last change.
21173
211742008-02-01 Kenichi Handa <handa@m17n.org>
21175
21176 * charset.h (charset_unicode): Extern it.
21177
21178 * charset.c (string_xstring_p): Check by (C >= 0x100).
21179 (find_charsets_in_text): Change format of the arc CHARSETS. New
21180 arg MULTIBYTE.
21181 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21182 change of find_charsets_in_text.
21183 (Fsplit_char): Fix doc. Never return unknown.
21184
21185 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21186
21187 * coding.c (Fdefine_coding_system_alias): Update
21188 Vcoding_system_list.
21189
21190 * fontset.c (load_font_get_repertory): Pay attention to the case
21191 that ENCODING of a font is specified by a char-table.
21192
21193 * xterm.c (x_get_font_repertory): Handle the case that the
21194 encoding of font is other than Unicode.
21195
211962008-02-01 Kenichi Handa <handa@m17n.org>
21197
21198 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21199 if a character is encodable by the terminal coding system. If
21200 not, produces proper number of `?'s. Update
21201 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21202 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21203
212042008-02-01 Kenichi Handa <handa@m17n.org>
21205
21206 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21207 variables.
21208 (encode_terminal_code): Change argument. Encode multiple
21209 characters at once. Store the result of encoding in
21210 terminal_encode_buffer.
21211 (write_glyphs, insert_glyphs): Adjust for the change of
21212 encode_terminal_code.
21213 (term_init): Initialize terminal_encode_buffer and
21214 terminal_encode_buf_size.
21215
21216 * coding.c (consume_chars): If coding->src_object is nil, don't
21217 check annotation.
21218
212192008-02-01 Kenichi Handa <handa@m17n.org>
21220
21221 * character.c (char_string): Use ASCII_CHAR_P instead of
21222 SINGLE_BYTE_CHAR_P.
21223
212242008-02-01 Kenichi Handa <handa@m17n.org>
21225
21226 * xdisp.c (handle_auto_composed_prop): Check if the last
21227 characters of auto-composed region is newly composed with the
21228 following characters.
21229 (handle_composition_prop): Fix checking of point being inside
21230 composition.
21231
212322008-02-01 Kenichi Handa <handa@m17n.org>
21233
21234 * fns.c (concat): Don't change multibyteness of the result by
21235 concatenating an 8-bit character.
21236
21237 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21238 multibyteness of the result when newelt is an 8-bit character.
21239
212402008-02-01 Dave Love <fx@gnu.org>
21241
21242 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21243 EMACS_INT.
21244
21245 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21246
21247 * xfaces.c (face_numeric_value): Declare dim size_t.
21248 (Finternal_lisp_face_equal_p): Remove unused f.
21249
21250 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21251 (MATRIX_ROW): Remove unused vars.
21252 (draw_glyphs, x_insert_glyphs, fast_find_position)
21253 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21254 byte/char counts.
21255
21256 * regex.c (regex_compile): Remove unused var.
21257
21258 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21259
21260 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21261 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21262
21263 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21264
21265 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21266
21267 * fileio.c (Fwrite_region): Remove unused var.
21268
21269 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21270 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21271
21272 * composite.c (Fremove_list_of_text_properties): Declare.
21273
21274 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21275 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21276 (coding_inherit_eol_type): Remove unused attrs.
21277 (detect_coding): Cast arg of detect_eol.
21278
21279 * charset.c (syms_of_charset): Remove unused var p.
21280 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21281 byte/char counts.
21282
21283 * casetab.c (set_case_table): Remove unused var.
21284
21285 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21286 unused vars.
21287
212882008-02-01 Dave Love <fx@gnu.org>
21289
21290 * xterm.c (x_bitmap_mask): Declare.
21291
212922008-02-01 Dave Love <fx@gnu.org>
21293
21294 * xterm.c (x_term_init): Fix type error.
21295
21296 * lisp.h: Add Funibyte_char_to_multibyte.
21297
21298 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21299 (Fset_coding_system_priority): Doc fix.
21300
21301 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21302
21303 * indent.c (check_composition): Make start and end EMACS_INT.
21304
21305 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21306
21307 * xdisp.c (handle_composition_prop, check_point_in_composition):
21308 Make buffer positions EMACS_INT.
21309
21310 * composite.c (find_composition, run_composition_function)
21311 (update_compositions, Ffind_composition_internal): Make buffer
21312 positions EMACS_INT.
21313
21314 * composite.h (find_composition, update_compositions): Make
21315 position args EMACS_INT.
21316
21317 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21318
21319 * intervals.c (get_property_and_range):
21320 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21321
21322 * unexalpha.c: Don't include varargs.h.
21323
213242008-02-01 Dave Love <fx@gnu.org>
21325
21326 * coding.h (ENCODE_UTF_8): New.
21327
21328 * Makefile.in (gtkutil.o): Depend on coding.h.
21329
21330 * coding.c (Fset_coding_system_priority): Doc fix.
21331
213322008-02-01 Kenichi Handa <handa@m17n.org>
21333
21334 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21335 the case of auto saving.
21336
213372008-02-01 Andreas Schwab <schwab@suse.de>
21338
21339 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21340 `range' from GC.
21341
213422008-02-01 Kenichi Handa <handa@m17n.org>
21343
21344 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21345
213462008-02-01 Kenichi Handa <handa@m17n.org>
21347
21348 * fileio.c (choose_write_coding_system): Return a decided coding system.
21349 (Fwrite_region): Set Vlast_coding_system_used to the return value
21350 of choose_write_coding_system.
21351
213522008-02-01 Kenichi Handa <handa@m17n.org>
21353
21354 * charset.c (Fset_charset_priority): Pay attention to duplicated
21355 arguments.
21356
21357 * coding.c (QCcategory): New variable.
21358 (syms_of_coding): Defsym it. Set all elements of
21359 Vcoding_category_table and their symbol values.
21360 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21361 coding-category-XXX, and coding-category-list.
21362 (Fdefine_coding_system_internal): Add category in the plist.
21363
213642008-02-01 Kenichi Handa <handa@m17n.org>
21365
21366 * callproc.c (Fcall_process): Handle carryover correctly.
21367
21368 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21369 (raw_text_coding_system): Check NILP (coding_system).
21370 (coding_inherit_eol_type): Check NILP (coding_system) and
21371 NILP (parent).
21372 (consume_chars): Fix for the case of raw-text.
21373
21374 * process.c (read_process_output): Handle carryover correctly.
21375
213762008-02-01 Dave Love <fx@gnu.org>
21377
21378 * regex.c (re_search_2): Fix last change.
21379
213802008-02-01 Kenichi Handa <handa@m17n.org>
21381
21382 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21383 target_multibyte. Even in a unibyte case, return a converted
21384 multibyte char.
21385 (GET_CHAR_AFTER): New macro.
21386 (PATFETCH): Translate via multibyte char.
21387 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21388 (SETUP_MULTIBYTE_RANGE): New macro.
21389 (regex_compile): Setup compiled code so that its multibyteness
21390 matches that of a target. Fix the handling of "[X-YZ]" using
21391 SETUP_MULTIBYTE_RANGE.
21392 (analyse_first) <charset>: For filling fastmap for all multibyte
21393 characters, don't check by BASE_LEADING_CODE_P.
21394 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21395 the same as RE_MULTIBYTE_P (bufp) now.
21396 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21397 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21398 (TRANSLATE_VIA_MULTIBYTE): New macro.
21399 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21400 It is the same as RE_MULTIBYTE_P (bufp) now.
21401 <exactn>: Translate via multibyte.
21402 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21403 translate it.
21404 <charset, charset_not>: Fetch a character by
21405 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21406 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21407 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21408 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21409 by GET_CHAR_AFTER.
21410 (bcmp_translate): Likewise.
21411
21412 * search.c (compile_pattern): Check the member target_multibyte,
21413 not the member multibyte of buf.
21414
21415 * lread.c (read1): While reading a string, set force_singlebyte
21416 and force_multibyte correctly.
21417
21418 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21419 up of unibyte_to_multibyte_table.
21420
214212008-02-01 Kenichi Handa <handa@m17n.org>
21422
21423 * coding.c (setup_coding_system): If coding has
21424 post-read-conversion or pre-write-conversion, set
21425 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21426 respectively.
21427 (decode_coding_gap): Run post-read-conversion if any.
21428
21429 * fileio.c (Finsert_file_contents): Even if we read into a
21430 unibyte buffer, check if we must decode the result or not.
21431
214322008-02-01 Kenichi Handa <handa@m17n.org>
21433
21434 * coding.c (make_conversion_work_buffer): Change the work buffer
21435 name to the same one as that of Emacs 21.
21436
214372008-02-01 Kenichi Handa <handa@m17n.org>
21438
21439 * coding.h (make_conversion_work_buffer): Adjust prototype.
21440 (code_conversion_restore): Don't extern it.
21441
21442 * coding.c (detected_mask): Delete unused variable.
21443 (decode_coding_iso_2022): Pay attention to the byte sequence of
21444 CTEXT extended segment, and retain those bytes as is.
21445 (decode_coding_ccl): Delete unused variable `valids'.
21446 (setup_coding_system): Delete unused variable `category'.
21447 (consume_chars): Delete unused variable `category'. Make it work
21448 for non-multibyte case.
21449 (make_conversion_work_buffer): Change argument.
21450 (saved_coding): Delete unused variable.
21451 (code_conversion_restore): Don't check saved_coding->destination.
21452 (code_conversion_save): New function.
21453 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21454 instead of record_unwind_protect.
21455 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21456 (detect_coding_system): Delete unused variable `mask'.
21457 (Fdefine_coding_system_internal): Delete unused variable id.
21458
21459 * fileio.c (kill_workbuf_unwind): New function.
21460 (Finsert_file_contents): On replacing, call
21461 make_conversion_work_buffer with correct args, and call
21462 record_unwind_protect with the first arg kill_workbuf_unwind.
21463
21464 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21465
214662008-02-01 Kenichi Handa <handa@m17n.org>
21467
21468 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21469 (fontset_add): Fix for the case that TO is less than TO1.
21470 (Ffontset_info): Don't use fallback fontset on checking the
21471 default fontset.
21472 (dump_fontset): New function for debugging.
21473
21474 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21475 coding_type is Qcharset.
21476
214772008-02-01 Kenichi Handa <handa@m17n.org>
21478
21479 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21480 (map_char_table): Don't inherit the value from the parent on
21481 initializing VAL. Adjust for the above change.
21482
214832008-02-01 Kenichi Handa <handa@m17n.org>
21484
21485 * coding.c (Qsignature, Qendian): Delete these variables.
21486 (syms_of_coding): Don't initialize them.
21487 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21488 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21489 detect_info->found.
21490 (decode_coding_utf_16): Don't detect BOM here.
21491 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21492 is NOT utf_16_without_bom.
21493 (setup_coding_system): For a coding system of type utf-16, check
21494 if the attribute :endian is Qbig or not (not nil or not), and set
21495 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21496 (detect_coding): If coding type is utf-16 and BOM detection is
21497 required, detect it.
21498 (Fdefine_coding_system_internal): For a coding system of type
21499 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21500
215012008-02-01 Kenichi Handa <handa@m17n.org>
21502
21503 * coding.c (coding_set_source): Fix for the case that the current
21504 buffer is different from coding->src_object.
21505 (decode_coding_object): Don't use the conversion work buffer if
21506 DST_OBJECT is a buffer.
21507
215082008-02-01 Dave Love <fx@gnu.org>
21509
21510 * lread.c (read_emacs_mule_char) [len==2]: Index
21511 emacs_mule_charset correctly.
21512
215132008-02-01 Dave Love <fx@gnu.org>
21514
21515 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21516 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21517 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21518 treated specially.)
21519 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21520 (detected_mask): Remove Big5 bits.
21521
215222008-02-01 Kenichi Handa <handa@m17n.org>
21523
21524 The following changes are to make the font rescaling facility
21525 compatible with Emacs 21.
21526
21527 * xfaces.c (Vface_font_rescale_alist): Rename from
21528 Vface_resizing_fonts.
21529 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21530 (font_rescale_ratio): Rename from font_resizing_ratio.
21531 (split_font_name): Set font->rescale_ratio.
21532 (better_font_p): Pay attention to font->rescale_ratio.
21533 (build_scalable_font_name): Likewise. Change RESX, and RESY
21534 fields.
21535 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21536
215372008-02-01 Kenichi Handa <handa@m17n.org>
21538
21539 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21540 (Qutf_16_le): Remove these variables.
21541 (syms_of_coding): Don't DEFSYM them.
21542 (decode_coding_utf_16): Fix handling of BOM.
21543 (encode_coding_utf_16): Fix handling of BOM.
21544
215452008-02-01 Kenichi Handa <handa@m17n.org>
21546
21547 * fileio.c (Finsert_file_contents): On replacing, before decoding
21548 the file into the work buffer, set point of the work buffer to the end.
21549
215502008-02-01 Dave Love <fx@gnu.org>
21551
21552 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21553
215542008-02-01 Dave Love <fx@gnu.org>
21555
21556 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21557 and fix C types.
21558
215592008-02-01 Kenichi Handa <handa@m17n.org>
21560
21561 * xdisp.c (SKIP_GLYPHS): New macro.
21562 (set_cursor_from_row): Pay attention to string display properties.
21563
21564 * category.c (copy_category_entry): Fix for the case that RANGE
21565 is an integer.
21566
21567 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21568
21569 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21570
215712008-02-01 Kenichi Handa <handa@m17n.org>
21572
21573 * charset.c (Fcharset_id_internal): New function.
21574 (syms_of_charset): Defsubr it.
21575
21576 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21577 with the last arg charset_list acquired from coding.
21578 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21579 the attribute coding_attr_ccl_valids.
21580
21581 * coding.h (enum define_coding_ccl_arg_index): Set the first
21582 member coding_arg_ccl_decoder to coding_arg_max.
21583
21584 * ccl.h (ccl_driver): Adjust prototype.
21585
21586 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21587 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 21588 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
21589 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21590 last arg Qnil.
21591
215922008-02-01 Kenichi Handa <handa@m17n.org>
21593
21594 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21595 call encode_char.
21596
21597 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21598
215992008-02-01 Dave Love <fx@gnu.org>
21600
21601 * composite.c (syms_of_composite): Make composition_hash_table weak.
21602
216032008-02-01 Kenichi Handa <handa@m17n.org>
21604
21605 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21606 (font_name_registry): Don't extern them.
21607 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21608
21609 * fontset.h (Qfontset): Don't extern it.
21610 (new_fontset_from_font_name): Extern it.
21611
21612 * fontset.c: Give 8 extra slots to fontset objects.
21613 (Qfontset_info): New variable.
21614 (syms_of_fontset): Defsym it.
21615 (FONTSET_FALLBACK): New macro.
21616 (fontset_face): Try also the default fontset.
21617 (make_fontset): Realize a fallback fontset from the default fontset.
21618 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21619 using split_font_name_into_vector and build_font_name_from_vector.
21620 (Fset_fontset_font): Access the elements of font_spec by enum
21621 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21622 name by using split_font_name_into_vector.
21623 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21624 generate a proper font name from the fontset name. Update
21625 Vfontset_alias_alist.
21626 (n_auto_fontsets): New variable.
21627 (new_fontset_from_font_name): New function.
21628 (Ffont_info): Store the information about fonts generated from the
21629 default fontset in the first extra slot of the returned char-table.
21630
21631 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21632 (font_name_registry): Delete function.
21633 (split_font_name_into_vector): New function.
21634 (build_font_name_from_vector): New function.
21635 (font_list): The argument REGISTRY is now a list of registry names.
21636 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21637 specifies an explicit font name, return the name as is. Make a
21638 list of registy names.
21639
21640 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21641 of x_new_fontset.
21642 (Fx_create_frame): Don't call x_new_fontset here. Just use
21643 x_list_fonts to check the existence of fonts.
21644
21645 * xterm.h (x_new_fontset): Adjust prototype.
21646
21647 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21648 string. Use new_fontset_from_font_name to create a fontset from a
21649 font name.
21650
216512008-02-01 Kenichi Handa <handa@m17n.org>
21652
21653 * syntax.c (Vfind_word_boundary_function_table): New name for
21654 Vnext_word_boundary_function_table.
21655 (find-word-boundary-function-table): New name for
21656 next-word-boundary-function-table.
21657
216582008-02-01 Dave Love <fx@gnu.org>
21659
21660 * Makefile.in: Fix some dependencies.
21661
21662 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21663 set it to nil before returning.
21664
21665 * composite.c (update_compositions): Fix type error.
21666
21667 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21668
216692008-02-01 Kenichi Handa <handa@m17n.org>
21670
21671 * xterm.c (x_new_font): Optimize for the case that the font is
21672 already set for the frame.
21673
216742008-02-01 Kenichi Handa <handa@m17n.org>
21675
21676 * chartab.c (char_table_ascii): Check if the char table contents
21677 is sub-char-table or not.
21678 (char_table_set, char_table_set_range): Fix argument to
21679 char_table_ascii.
21680
21681 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21682 (detect_coding_utf_8, detect_coding_utf_16)
21683 (detect_coding_emacs_mule, detect_coding_iso_2022)
21684 (detect_coding_sjis, detect_coding_big5)
21685 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21686 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21687 sequence is valid in this coding system. Change callers.
21688 (MAX_ANNOTATION_LENGTH): New macro.
21689 (ADD_ANNOTATION_DATA): New macro.
21690 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21691 ADD_ANNOTATION_DATA. Change the format of annotation data.
21692 (ADD_CHARSET_DATA): New macro.
21693 (emacs_mule_char): New argument ID. Change callers.
21694 (decode_coding_emacs_mule, decode_coding_iso_2022)
21695 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21696 Produce charset annotation data in coding->charbuf.
21697 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21698 to charset annotation data in coding->charbuf.
21699 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21700 coding->common_flags if the coding system is iso-2022 based and
21701 uses designation.
21702 (produce_composition): Adjust for the new annotation data format.
21703 (produce_charset): New function.
21704 (produce_annotation): Handle charset annotation.
21705 (handle_composition_annotation, handle_charset_annotation): New
21706 functions.
21707 (consume_chars): Handle charset annotation. Utilize the above two
21708 functions.
21709 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21710 buffer, get the deleted text as a string and set
21711 coding->src_object to that string.
21712 (detect_coding, detect_coding_system): Use the new struct
21713 coding_detection_info.
21714
21715 * coding.h (struct coding_detection_info): New structure.
21716 (struct coding_system): Adjust prototype of the member `detector'.
21717 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21718
217192008-02-01 Kenichi Handa <handa@m17n.org>
21720
21721 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21722
217232008-02-01 Dave Love <fx@gnu.org>
21724
21725 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21726 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21727 to new local and nullify apropos_accumulate before returning.
21728 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21729
217302008-02-01 Kenichi Handa <handa@m17n.org>
21731
21732 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21733 correctly.
e3eea1fc 21734
aac0c6e3
MR
217352008-02-01 Dave Love <fx@gnu.org>
21736
21737 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21738
217392008-02-01 Kenichi Handa <handa@m17n.org>
21740
21741 The following changes are to make character composition happen
21742 automatically on displaying.
21743
21744 * Makefile.in (lisp, shortlisp): Add composite.elc.
21745
21746 * composite.h (Qauto_composed, Vauto_composition_function)
21747 (Qauto_composition_function): Extern them.
21748
21749 * composite.c (Vcomposition_function_table)
21750 (Qcomposition_function_table): Delete variables.
21751 (Qauto_composed, Vauto_composition_function)
21752 (Qauto_composition_function): New variables.
21753 (run_composition_function): Don't call
21754 compose-chars-after-function.
21755 (update_compositions): Clear `auto-composed' text property.
21756 (compose_chars_in_text): Delete this function.
21757 (syms_of_composite): Staticpro Qauto_composed and
21758 Qauto_composition_function. Declare Vauto_composition_function as
21759 a Lisp variable.
21760
21761 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21762
21763 * xdisp.c (it_props): Add an entry for Qauto_composed.
21764 (handle_auto_composed_prop): New function.
21765
21766 * xselect.c (selection_data_to_lisp_data): Don't call
21767 compose_chars_in_text.
21768
217692008-02-01 Dave Love <fx@gnu.org>
21770
21771 * keyboard.c (read_char): Modify checking around use of
21772 Vkeyboard_translate_table.
21773
21774 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21775 and fix C types.
21776
217772008-02-01 Kenichi Handa <handa@m17n.org>
21778
21779 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21780 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21781 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21782 the case that the last byte is '\r' correctly.
21783 (decode_coding): Flush out the unprocessed data correctly.
21784 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21785
217862008-02-01 Dave Love <fx@gnu.org>
21787
21788 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21789 Add XK_ISO... case.
21790 (xaw_scroll_callback): Revert last change.
21791
217922008-02-01 Kenichi Handa <handa@m17n.org>
21793
21794 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21795
217962008-02-01 Kenichi Handa <handa@m17n.org>
21797
21798 * xfaces.c (Vface_resizing_fonts): New variable.
21799 (struct font_name): New member `resizing_ratio'.
21800 (font_resizing_ratio): New function.
21801 (split_font_name): Set font->resizing_ratio.
21802 (better_font_p): Pay attention to font->resizing_ratio.
21803 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21804 RESX, and RESY fields.
21805 (try_alternative_families): Try scalable fonts if
21806 Vscalable_fonts_allowed is not Qt.
21807 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21808
218092008-02-01 Dave Love <fx@gnu.org>
21810
21811 * xterm.c (xaw_scroll_callback): Cast correctly.
21812
218132008-02-01 Dave Love <fx@gnu.org>
21814
21815 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21816 (lispy_kana_keys): Comment out.
21817 (make_lispy_event) [XK_kana_A]: Comment out.
21818
21819 * xterm.c (xaw_scroll_callback): Cast call_data.
21820 (XTread_socket): Deal with ASCII keysyms.
21821 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21822
218232008-02-01 Dave Love <fx@gnu.org>
21824
21825 * xterm.c (Vx_keysym_table): New.
21826 (syms_of_xterm): Initialize it.
21827 (XTread_socket): Use it.
21828 From head: Eliminate incorrect optimization that tried to avoid
21829 decoding the output of X*LookupString.
21830 (x_get_font_repertory): Delete charset declaration.
21831
218322008-02-01 Kenichi Handa <handa@m17n.org>
21833
21834 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21835 return 0.
21836 (Fdefine_coding_system_internal): Setup
21837 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21838
218392008-02-01 Dave Love <fx@gnu.org>
21840
21841 * coding.c (Fcheck_coding_system): Doc fix.
21842
21843 * editfns.c (Finsert_byte): Return a proper value.
21844
218452008-02-01 Kenichi Handa <handa@m17n.org>
21846
21847 * coding.c (decode_coding): Fix args to translate_chars. Pay
21848 attention to Vstandard_translation_table_for_decode.
21849 (encode_coding): Fix args to translate_chars. Pay attention to
21850 Vstandard_translation_table_for_encode.
21851
21852 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21853 SINGLE_BYTE_CHAR_P.
21854
21855 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21856 not by SINGLE_BYTE_CHAR_P.
21857
21858 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21859 SINGLE_BYTE_CHAR_P.
21860
21861 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21862 SINGLE_BYTE_CHAR_P.
21863
21864 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21865 by SINGLE_BYTE_CHAR_P.
21866
21867 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21868 SINGLE_BYTE_CHAR_P.
21869
218702008-02-01 Dave Love <fx@gnu.org>
21871
21872 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21873
218742008-02-01 Dave Love <fx@gnu.org>
21875
21876 * fns.c (Flanginfo): Fix typo.
21877
21878 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21879
218802008-02-01 Kenichi Handa <handa@m17n.org>
21881
21882 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21883 (detect_coding_emacs_mule, detect_coding_iso_2022)
21884 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21885 incomplete byte sequence. Don't update *mask when correctly detected.
21886 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21887 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21888 (detect_coding, detect_coding_system): Adjust for the changes above.
21889
218902008-02-01 Kenichi Handa <handa@m17n.org>
21891
21892 * character.c (char_string): Rename from
21893 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21894 (string_char): Rename from string_char.
21895
21896 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21897 if C is greater than MAX_3_BYTE_CHAR.
21898 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21899 string_char instead of string_char_with_unification.
21900
219012008-02-01 Dave Love <fx@gnu.org>
21902
21903 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21904
219052008-02-01 Kenichi Handa <handa@m17n.org>
21906
21907 * keymap.c (push_key_description): Pay attention to force_multibyte.
21908
21909 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21910
219112008-02-01 Dave Love <fx@gnu.org>
21912
21913 * charset.c (define_charset_internal): Rename `supprementary'.
21914
21915 * Makefile.in (lisp, shortlisp): Remove latin-N.
21916
219172008-02-01 Dave Love <fx@gnu.org>
21918
21919 * xfns.c (x_window, x_window): Use use_xim.
21920
21921 * xterm.c (use_xim): Initialize.
21922 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21923 (x_term_init): Maybe set use_xim.
21924
21925 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21926
219272008-02-01 Kenichi Handa <handa@m17n.org>
21928
21929 * search.c (search_buffer): Fix case-fold-search of multibyte
21930 characters.
21931 (boyer_moore): Rename the last argument to char_high_bits.
21932
219332008-02-01 Kenichi Handa <handa@m17n.org>
21934
21935 * xdisp.c (display_string): Fix for the case of zero width glyph.
21936
21937 * xfns.c (x_set_font): Change the error message of the case that
21938 x_new_fontset returns Qt.
21939
21940 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21941 (Finternal_set_lisp_face_attribute): Use signal_error for the
21942 error of invalid fontset.
21943
21944 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21945 fontset, return Qt.
21946
219472008-02-01 Dave Love <fx@gnu.org>
21948
21949 * unexelf.c (unexec): Make .got handling not SGI-specific.
21950
21951 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21952
21953 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21954
21955 * keyboard.c (read_key_sequence): Fix type error.
21956
21957 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21958 type error.
21959
21960 * fontset.c (fontset_add): Return Lisp_Object.
21961
219622008-02-01 Dave Love <fx@gnu.org>
21963
21964 * charset.h (charset_ordered_list_tick): Declare extern.
21965
219662008-02-01 Kenichi Handa <handa@m17n.org>
21967
21968 The following changes (and some of 2008-02-01 changes of mine) are
21969 for handling syntax, category, and case conversion for unibyte
21970 characters by converting them to multibyte on the fly. With these
21971 changes, we don't have to setup syntax and case tables for unibyte
21972 characters in each language environment.
21973
21974 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21975 multibyte if necessary.
21976
21977 * bytecode.c (Fbyte_code): Likewise.
21978
21979 * character.h (LEADING_CODE_LATIN_1_MIN)
21980 (LEADING_CODE_LATIN_1_MAX): New macros.
21981 (unibyte_to_multibyte_table): Extern it.
21982 (unibyte_char_to_multibyte): New macro.
21983 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21984 (CHAR_LEADING_CODE): New macro.
21985 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21986
21987 * character.c (unibyte_to_multibyte_table): New variable.
21988 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21989 (multibyte_char_to_unibyte): If C is an eight-bit character,
21990 convert it to the corresponding byte value.
21991
21992 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21993 not 1, signals an error. Update the elements of
21994 unibyte_to_multibyte_table.
21995 (init_charset_once): Initialize unibyte_to_multibyte_table.
21996 (syms_of_charset): Define the charset `iso-8859-1'.
21997
21998 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21999 as is without converting it to unibyte. In a unibyte buffer,
22000 convert C to multibyte before checking the syntax.
22001
22002 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22003
22004 * minibuf.c (Fminibuffer_complete_word): Use the macro
22005 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22006
22007 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22008
22009 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22010 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22011 that is zero, convert an eight-bit char to multibyte.
22012 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22013 non-emacs case.
22014 (PATFETCH): Convert an eight-bit char to multibyte.
22015 (HANDLE_UNIBYTE_RANGE): New macro.
22016 (regex_compile): Setup the compiled pattern for multibyte chars
22017 even if the given regex string is unibyte. Use PATFETCH_RAW
22018 instead of PATFETCH in many places. To handle `charset'
22019 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22020 only for ASCII chars.
22021 (analyse_first) <exactn>: Simplify because the compiled pattern
22022 is multibyte.
22023 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22024 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22025 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22026 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22027 multibyte always 1.
22028 (re_search_2): In emacs, set the locale variable multibyte to 1,
22029 otherwise to 0. New local variable target_multibyte. Check it
22030 to decide the multibyteness of STR1 and STR2. If
22031 target_multibyte is zero, convert unibyte chars to multibyte
22032 before translating and checking fastmap.
22033 (TARGET_CHAR_AND_LENGTH): New macro.
22034 (re_match_2_internal): In emacs, set the locale variable multibyte
22035 to 1, otherwise to 0. New local variable target_multibyte. Check
22036 it to decide the multibyteness of STR1 and STR2. Use
22037 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22038 <charset, charset_not>: If multibyte is nonzero, check fastmap
22039 only for ASCII chars. Call bcmp_translate with
22040 target_multibyte, not with multibyte.
22041 <begline>: Declare the local variable C as `unsigned'.
22042 (bcmp_translate): Change the last arg name to target_multibyte.
22043
22044 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22045 the regexp pattern and the matching target. Set cp->buf.multibyte
22046 to the multibyteness of the regexp pattern. Set
22047 cp->but.target_multibyte to the multibyteness of the matching target.
22048 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22049 FETCH_STRING_CHAR_ADVANCE.
22050 (Freplace_match): Convert unibyte chars to multibyte.
22051
22052 * syntax.c (char_quoted, back_comment, scan_words)
22053 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22054 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22055 unibyte chars to multibyte.
22056 (skip_chars): Delete the arg syntaxp, and move the code for
22057 handling syntaxes to skip_syntaxes. Change callers.
22058 Fix the case that the multibyteness of STRING and the current
22059 buffer doesn't match.
22060 (skip_syntaxes): New function.
22061 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22062 SINGLE_BYTE_CHAR_P.
22063
220642008-02-01 Kenichi Handa <handa@m17n.org>
22065
22066 * xfaces.c (QCfontset): New variable.
22067 (LFACE_FONTSET): New macro.
22068 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22069 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22070 (Finternal_set_lisp_face_attribute)
22071 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22072 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22073 check also LFACE_FONTSET_INDEX.
22074 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22075 attrs[LFACE_FONT_INDEX].
22076 (syms_of_xfaces): Intern and staticpro QCfontset.
22077
22078 * dispextern.h (enum lface_attribute_index): New member
22079 LFACE_FONTSET_INDEX.
22080
22081 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22082
220832008-02-01 Kenichi Handa <handa@m17n.org>
22084
22085 * coding.c (coding_set_destination): Fix coding->destination for
22086 the case converting a region.
22087 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22088 (encode_coding_object): Fix coding->dst_pos and
22089 coding->dst_pos_byte for the case converting a region.
22090
22091 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22092
22093 * character.h (BYTE8_STRING): New macro.
22094
22095 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22096
220972008-02-01 Kenichi Handa <handa@m17n.org>
22098
22099 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22100 characters by octal form.
22101
22102 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22103
22104 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22105 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22106 _fetch_multibyte_char_len.
22107 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22108
22109 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22110
22111 * casefiddle.c (casify_object): Simplify. Handle the case that
22112 the case conversion change the byte length.
22113 (casify_region): Likewise.
22114
22115 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22116
22117 * character.c (_fetch_multibyte_char_len): Delete this variable.
22118 (syms_of_character): Setup Vprintable_chars.
22119
22120 * editfns.c (Fchar_equal): Fix for the unibyte case.
22121 (Finsert_byte): New function.
22122 (syms_of_editfns): Defsubr it.
22123
22124 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22125 of direct code 0x3ffff.
22126
22127 * search.c (Freplace_match): Fix for the unibyte case.
22128
221292008-02-01 Kenichi Handa <handa@m17n.org>
22130
22131 * lread.c (safe_to_load_p): Fix the logic.
22132
22133 * syntax.c (scan_words): Don't treat characters belonging to
22134 different scripts as constituting a word.
22135
22136 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22137
22138 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22139
22140 * emacs.c (main): In the case of --unibyte, instead of aborting on
22141 finding non-empty buffer, make it unibyte.
22142
221432008-02-01 Kenichi Handa <handa@m17n.org>
22144
22145 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22146 to create a fontset.
22147
221482008-02-01 Dave Love <fx@gnu.org>
22149
22150 * character.c (Funibyte_char_to_multibyte): Doc fix.
22151
22152 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22153
221542008-02-01 Kenichi Handa <handa@m17n.org>
22155
22156 * fontset.c (fontset_add): Make the type `int'.
22157 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22158
22159 * character.c (unibyte_char_to_multibyte)
22160 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22161 charset_unibyte, not charset_primary.
22162
22163 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22164
22165 * charset.c (charset_unibyte): Rename from charset_primary.
22166 (Funibyte_charset): Rename from Fprimary_charset.
22167 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22168 (syms_of_charset): Adjust for the above changes.
22169
22170 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22171 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22172 it->multibyte_p is zero.
22173
22174 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22175 Delete extern.
22176
221772008-02-01 Kenichi Handa <handa@m17n.org>
22178
22179 * coding.c (Fdefine_coding_system_internal): Fix category setting
22180 for a coding system of type iso-2022.
22181
221822008-02-01 Kenichi Handa <handa@m17n.org>
22183
22184 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22185
221862008-02-01 Kenichi Handa <handa@m17n.org>
22187
22188 * syntax.c (Vnext_word_boundary_function_table): New variable.
22189 (next-word-boundary-function-table): Declare it as a Lisp variable
22190 in syms_of_syntax.
22191 (scan_words): Call functions in Vnext_word_boundary_function_table
22192 if any.
22193
22194 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22195
22196 * fontset.c (fs_load_font): If fontp->charset is not negative,
22197 return fontp without setting its members.
22198
221992008-02-01 Dave Love <fx@gnu.org>
22200
22201 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22202
22203 * m/sparc.h (HAVE_ALLOCA): Delete.
22204
22205 * s/irix6-5.h: Don't include strings.h.
22206 (bcopy, bzero, bcmp): Don't undef.
22207
22208 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22209
22210 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22211 (TIOCSIGSEND): Don't test IRIX6.
22212 (bcopy, bzero, bcmp): Define conditionally.
22213
222142008-02-01 Kenichi Handa <handa@m17n.org>
22215
22216 * buffer.c (Qas, Qmake, Qto): New variables.
22217 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22218 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22219
22220 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22221 we are inserting a process output into a multibyte buffer.
22222
22223 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22224 multibyte_char_to_unibyte.
22225
22226 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22227 by the primary charset, make it eight-bit char.
22228 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22229
22230 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22231 (charset_8_bit__control, charset_8_bit_graphic)
22232 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22233 (define_charset_internal): New function.
22234 (syms_of_charset): Call define_charset_internal for pre-defined
22235 charsets.
22236
22237 * charset.h (charset_8_bit): Extern it.
22238
22239 * coding.c (make_conversion_work_buffer): Adjust for the change
22240 of Fset_buffer_multibyte.
22241 (encode_coding_raw_text): Increment p0 in the loop.
22242
22243 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22244
22245 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22246 for the change of Fset_buffer_multibyte.
22247
22248 * fns.c (Fstring_to_multibyte): New function.
22249 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22250
222512008-02-01 Dave Love <fx@gnu.org>
22252
22253 * xfns.c (x_put_x_image): Declare args.
22254
22255 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22256 (try_font_list): Declare an arg.
22257
22258 * xdisp.c (message2_nolog, set_message): Declare an arg.
22259
22260 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22261
22262 * syntax.c (scan_sexps_forward): Declare an arg.
22263
22264 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22265 Declare an arg.
22266
22267 * lisp.h (Fnew_fontset): Declare.
22268
22269 * keymap.c (push_key_description): Call CHARACTERP correctly.
22270
22271 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22272 (face_for_char): Delete unused vars.
22273 (Fset_fontset_font): Doc fix. Delete unused vars.
22274
22275 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22276
22277 * composite.c (update_compositions): Declare arg.
22278
22279 * cm.c (calccost, cmgoto): Declare args.
22280
22281 * charset.c: Remove `emacs' conditional. Doc fixes.
22282 (map_char_table_for_charset): Declare.
22283
22284 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22285
22286 * ccl.c: Remove `emacs' conditional.
22287
222882008-02-01 Kenichi Handa <handa@m17n.org>
22289
22290 The following changes are to allow specifying multiple font
22291 patterns for a character range (specified by script or charset).
22292
22293 * Makefile.in (abbrev.o): Depend on syntax.h.
22294 (xfaces.o): Depend on charset.h.
22295
22296 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22297 SINGLE_BYTE_CHAR_P.
22298
22299 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22300
22301 * character.h (Vchar_script_table): Extern it.
22302
22303 * character.c (Vscript_alist): Delete.
22304 (Vchar_script_table, Qchar_script_table): New variable.
22305 (syms_of_character): Declare Vchar_script_table as a lisp variable
22306 and initialize it.
22307
22308 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22309 have property char-table-extra-slots, make no extra slot.
22310
22311 * dispextern.h (struct face): Delete member `charset'.
22312 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22313 SINGLE_BYTE_CHAR_P.
22314 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22315 Add prototypes.
22316 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22317 (generate_ascii_font_name): Rename from generate_ascii_font.
22318
22319 * fontset.h (get_font_repertory_func): New prototype.
22320 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22321 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22322
22323 * fontset.c (Qprepend, Qappend): New variables.
22324 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22325 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22326 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22327 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22328 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22329 (load_font_get_repertory): New functions.
22330 (fontset_set): Delete.
22331 (fontset_face): New arg FACE. Return face ID, not face.
22332 Complete re-write to handle new fontset structure. Change caller.
22333 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22334 (face_for_char): Don't call lookup_face.
22335 (make_fontset_for_ascii_face): New arg FACE.
22336 (fs_load_font): New arg CHARSET_ID. Don't check
22337 Vfont_encoding_alist here.
22338 (find_font_encoding): New function.
22339 (list_fontsets): Use STRINGP, not ! NILP.
22340 (accumulate_script_ranges): New function.
22341 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22342 re-written to handle new fontset structure.
22343 (Ffontset_font): Return a copy of element.
22344 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22345 docstring of font-encoding-alist.
22346
22347 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22348 (Fset_fotset_font): Fix arguments to 5.
22349
22350 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22351
22352 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22353 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22354 (highlight_trailing_whitespace): Adjust for the change of
22355 lookup_named_face.
22356
22357 * xfaces.c: Include charset.h.
22358 (load_face_font): Delete argument C. Change caller.
22359 (generate_ascii_font_name): Rename from generate_ascii_font.
22360 (font_name_registry): New function.
22361 (cache_face): Store ascii faces before non-ascii faces in buckets.
22362 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22363 Lookup only ascii faces.
22364 (lookup_non_ascii_face): New function.
22365 (lookup_named_face): Delete argument C. Change caller.
22366 (lookup_derived_face): Delete argument C. Change caller.
22367 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22368 a string, just call font_list with it.
22369 (choose_face_font): Delete arguments FACE and C. New arg
22370 FONT_SPEC. Change caller.
22371 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22372 Change caller.
22373 (realize_non_ascii_face): New function.
22374 (realize_x_face): Call load_face_font here.
22375 (realize_tty_face): Delete argument C. Change caller.
22376 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22377 get a face ID.
22378 (dump_realized_face): Don't print charset of FACE.
22379
22380 * xfns.c (x_set_font): Always call x_new_fontset and
22381 store_frame_parameter.
22382 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22383 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22384
22385 * xterm.h (x_get_font_repertory): Extern it.
22386
22387 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22388 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22389 it->multibyte_p is zero.
22390 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22391 (x_new_fontset): If FONTSETNAME doesn't match any existing
22392 fontsets, create a new one.
22393 (x_get_font_repertory): New function.
22394
223952008-02-01 Kenichi Handa <handa@m17n.org>
22396
22397 * coding.c (Ffind_coding_systems_region_internal): Detect an
22398 ASCII only string correctly.
22399
22400 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22401 version is 0.
22402
224032008-02-01 Kenichi Handa <handa@m17n.org>
22404
22405 * lread.c: Include "coding.h".
22406 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22407 (load_each_byte, unread_char): New variables.
22408 (readchar_backlog): Delete.
22409 (readchar): Return a character unless load_each_byte is nonzero.
22410 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22411 cons. If unread_char is not -1, simply return it.
22412 (unreadchar): Handle the case that readcharfun is
22413 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22414 (read_multibyte): Delete.
22415 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22416 (read_emacs_mule_char): New functions.
22417 (Fload): Even if the file doesn't have the extension ".elc", if
22418 safe_to_load_p returns a positive version number, assume that the
22419 file contains bytecompiled code. If the version is less than 22,
22420 load the file while decoding multibyte sequences by emacs-mule.
22421 (readevalloop): Don't use readchar_backlog.
22422 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22423 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22424 (read_escape): Delete the arg BYTEREP.
22425 (read1): Set load_each_byte to 1 temporarily while handling
22426 #@NUMBER. Don't call read_multibyte.
22427 (read_vector): Call Fread with a cons. If readcharfun is
22428 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22429 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22430 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22431 and Qload_force_doc_strings.
22432
224332008-02-01 Kenichi Handa <handa@m17n.org>
22434
22435 * xdisp.c (face_before_or_after_it_pos): Call
22436 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22437
224382008-02-01 Kenichi Handa <handa@m17n.org>
22439
22440 * character.h (TRAILING_CODE_P): New macro.
22441 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22442 (string_char_with_unification): Fix prototype.
22443 (Vscript_alist): Extern it.
22444
22445 * character.c (Vscript_alist): New variable.
22446 (string_char_with_unification, str_as_unibyte)
22447 (string_escape_byte8): Add `const' to local variables.
22448 (syms_of_character): Declare script-alist as a Lisp variable.
22449
22450 * charset.h (Vcharset_ordered_list): Extern it.
22451 (charset_ordered_list_tick): Extern it.
22452 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22453 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22454 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22455 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22456 (Funify_charset): Adjust for the change of Funify_charset.
22457
22458 * charset.c (charset_ordered_list_tick): New variable.
22459 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22460 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 22461 deunify instead of unify a charset.
aac0c6e3
MR
22462 (string_xstring_p): Add `const' to local variables.
22463 (find_charsets_in_text): Add `const' to arguments and local variables.
22464 (encode_char): Adjust for the change of Funify_charset. Fix
22465 detecting of invalid code.
22466 (Fset_charset_priority): Increment charset_ordered_list_tick.
22467 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22468 and TO_CODE.
22469
22470 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22471 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22472 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22473 (decode_coding_ccl, consume_chars)
22474 (Ffind_coding_systems_region_internal)
22475 (Fcheck_coding_systems_region): Add `const' to local variables.
22476
22477 * print.c (print_object): Use octal form for printing the
22478 contents of a bool vector.
22479
224802008-02-01 Dave Love <fx@gnu.org>
22481
22482 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22483 <version == 20>: Refuse to load.
22484
224852008-02-01 Dave Love <fx@gnu.org>
22486
22487 * fns.c: Move coding.h.
22488 (Qcodeset, Qdays, Qmonths): New.
22489 (concat): Use CHARACTERP instead of INTEGERP.
22490 (Flocale_codeset): Delete.
22491 (Flanginfo): New function.
22492 (syms_of_fns): Change accordingly.
22493
22494 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22495
224962008-02-01 Dave Love <fx@gnu.org>
22497
22498 * casetab.c (init_casetab_once, init_casetab_once): Fix
22499 CHAR_TABLE_SET call.
22500
22501 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22502
22503 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22504
22505 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22506 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22507 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22508
22509 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22510
22511 * coding.c (ENCODE_DESIGNATION, decode_eol)
22512 (make_conversion_work_buffer, code_conversion_restore)
22513 (Fdefine_coding_system_internal): Convert Lisp types.
22514 (code_conversion_restore): Use EQ, not ==.
22515 (Fencode_coding_string): Fix code_convert_string call.
22516
22517 * coding.h (code_convert_region): Fix prototype.
22518
22519 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22520
22521 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22522 (Ffontset_info): Convert Lisp types.
22523
22524 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22525
22526 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22527
22528 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22529
22530 * chartab.c: Include "...h", not <...h> in some cases.
22531
22532 * callproc.c (Fcall_process): Remove unused variables.
22533
225342008-02-01 Dave Love <fx@gnu.org>
22535
22536 * coding.c (Fset_coding_system_priority): Allow null arg list.
22537
225382008-02-01 Dave Love <fx@gnu.org>
22539
22540 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22541 (Fself_insert_and_exit): Use CHARACTERP.
22542
22543 * callproc.c (Fcall_process): Remove unused vars.
22544
22545 * xterm.c (XTread_socket): Add extra dead keysyms.
22546
22547 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22548
22549 * dispextern.h: Remove prototypes for redraw_frame,
22550 redraw_garbaged_frames.
22551
22552 * cmds.c (Fself_insert_command): Use CHARACTERP.
22553
22554 * chartab.c (make_sub_char_table): Remove unused var.
22555 (Fset_char_table_default, Fmap_char_table): Doc fix.
22556
22557 * keymap.c (access_keymap): Remove generic char code.
22558 (push_key_description): Use CHARACTERP.
22559
225602008-02-01 Dave Love <fx@gnu.org>
22561
22562 * charset.c: Doc fixes.
22563 (Funify_charset): Extra checking.
22564
225652008-02-01 Dave Love <fx@gnu.org>
22566
22567 * lread.c: Remove some unused variables.
22568 (safe_to_load_p): If safe, return the magic number version byte.
22569 (Fload): Maybe use load-with-code-conversion.
22570
225712008-02-01 Kenichi Handa <handa@m17n.org>
22572
22573 * category.c (Fmodify_category_entry): Don't modify the contents
22574 of category_set for characters out of the range. Avoid
22575 unnecessary modification.
22576
22577 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22578 Vchar_unify_table. The default value of the table is now nil.
22579
22580 * character.c (syms_of_character): Setup Vchar_width_table for
22581 eight-bit-control and raw-byte chars.
22582
22583 * charset.h (enum define_charset_arg_index): Delete
22584 charset_arg_parents and add charset_arg_subset and
22585 charset_arg_superset.
22586 (enum charset_attr_index): Delete charset_parents and add
22587 charset_subset and charset_superset.
22588 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22589 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22590 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22591 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22592 (CHARSET_SUPERSET): New macros.
22593 (charset_work): Extern it.
22594 (ENCODE_CHAR): Use charset_work.
22595 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22596 (map_charset_chars): Extern it.
22597
22598 * charset.c (load_charset_map): Set the default value of encoder
22599 and deunifier char-tables to nil.
22600 (map_charset_chars): Change argument. Change callers. Use
22601 map_char_table_for_charset instead of map_char_table.
22602 (Fmap_charset_chars): New optional args from_code and to_code.
22603 (Fdefine_charset_internal): Adjust for the change of
22604 `define-charset' (:parents -> :subset or :superset).
22605 (charset_work): New variable.
22606 (encode_char, syms_of_charset): Adjust for the change of
22607 Fdefine_charset_internal.
22608 (Ffind_charset_string): Setup the vector `charsets' correctly.
22609
22610 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22611 the previous change.
22612 (char_table_ref_and_range): Adjust for the above change.
22613 (map_sub_char_table_for_charset): New function.
22614 (map_char_table_for_charset): New function.
22615
22616 * keymap.c (describe_vector): Handle a char-table directly here.
22617 (describe_char_table): Delete.
22618
22619 * lisp.h (map_charset_chars): Delete.
22620
226212008-02-01 Dave Love <fx@gnu.org>
22622
22623 * fns.c (count_combining): Comment out (unused).
22624 (Flocale_codeset): New.
22625 (syms_of_fns): Defsubr it.
22626
22627 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22628 (size_t): Remove.
22629
226302008-02-01 Dave Love <fx@gnu.org>
22631
22632 * Makefile.in (chartab.o): Depend on charset.h.
22633
226342008-02-01 Kenichi Handa <handa@m17n.org>
22635
22636 * character.c (syms_of_character): Set the default value of
22637 Vprintable_chars to Qnil.
22638
226392008-02-01 Dave Love <fx@gnu.org>
22640
22641 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22642
226432008-02-01 Kenichi Handa <handa@m17n.org>
22644
22645 * charset.c (load_charset_map): Handle the case that from < to
22646 correctly.
22647
22648 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22649 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22650 Pay attention to raw-8-bit chars.
22651
226522008-02-01 Kenichi Handa <handa@m17n.org>
22653
22654 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22655 It is not bytecompiled now.
22656
22657 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22658 (charset_jisx0208): New variables.
22659 (Fdefine_charset_internal): Setup them if appropriate.
22660 (init_charset_once): Initialize them to -1.
22661
22662 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22663 (charset_jisx0208): Extern them.
22664
22665 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22666 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22667 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22668 (setup_iso_safe_charsets): Fix arguments to Fassq.
22669 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22670 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22671 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22672 (encode_coding_iso_2022): Change the 1st arg to
22673 ENCODE_ISO_CHARACTER to a variable.
22674
226752008-02-01 Kenichi Handa <handa@m17n.org>
22676
22677 * charset.h (enum define_charset_arg_index): New enums
22678 charset_arg_min_code and charset_arg_max_code.
22679 (struct charset): New member char_index_offset.
22680
22681 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22682 Take charset->char_index_offset into account.
22683 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22684 args[charset_arg_max_code]. Setup charset.char_index_offset.
22685 (syms_of_charset): Fix args to Fdefine_charset_internal.
22686
226872008-02-01 Dave Love <fx@gnu.org>
22688
22689 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22690
226912008-02-01 Dave Love <fx@gnu.org>
22692
22693 * coding.c: Doc fixes.
22694 (Fcoding_system_aliases): Fix return value.
22695 (Qmac): Remove (duplicated) definition.
22696
226972008-02-01 Dave Love <fx@gnu.org>
22698
362654a6
JB
22699 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22700 New functions.
aac0c6e3
MR
22701
22702 * character.c (Fstring): Doc fix.
22703
22704 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22705
362654a6 22706 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
22707 (font-encoding-alist): Doc fix.
22708
227092008-02-01 Dave Love <fx@gnu.org>
22710
22711 * term.c (costs_set): Declare static, non-initialized for pcc.
22712 (encode_terminal_code): Remove unused var.
22713
22714 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22715 for K&R.
22716
22717 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22718
22719 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22720 (suffixes): Move out of make_subsidiaries for K&R.
22721
22722 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22723
22724 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22725
227262008-02-01 Dave Love <fx@gnu.org>
22727
22728 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22729
22730 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22731
227322008-02-01 Yong Lu <lyongu@asia-infonet.com>
22733
22734 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22735
22736 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22737
227382008-02-01 Kenichi Handa <handa@m17n.org>
22739
22740 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22741 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22742
227432008-02-01 Kenichi Handa <handa@m17n.org>
22744
22745 * coding.c (decode_coding_charset): Adjust for the change of
22746 Fdefine_coding_system_internal.
22747 (Fdefine_coding_system_internal): For a coding system of
22748 `charset' type, store a list of charset IDs in
22749 `charset_attr_charset_valids' element of coding attributes.
22750
227512008-02-01 Kenichi Handa <handa@m17n.org>
22752
22753 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22754 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22755 caller. Handle 2-byte and 3-byte charsets correctly.
22756 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22757 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22758 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22759 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22760 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22761 sequence.
22762 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22763 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22764 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22765 and alt&rule composition.
22766 (decode_coding_iso_2022): Handle composition correctly.
22767 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22768
22769 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22770 re-defining a charset. If the charset has :emacs-mule-id, setup
22771 emacs_mule_bytes.
22772 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22773
227742008-02-01 Kenichi Handa <handa@m17n.org>
22775
22776 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22777 (encode_coding_big5, encode_coding_charset): If coding requires safe
22778 encoding, produce a character specified by
22779 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22780
227812008-02-01 Dave Love <fx@gnu.org>
22782
22783 * xterm.c (XSetIMValues): Declare.
22784
22785 * process.c: Conditionally include sys/wait.h, pty.h.
22786
22787 * print.c (print_object): Fix print format for 64-bit systems.
22788
22789 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22790
22791 * buffer.c (emacs_strerror): Declare.
22792
22793 * fontset.c (Fclear_face_cache): Declare.
22794 (accumulate_font_info): Comment-out (unused).
22795 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22796 variables.
22797
22798 * character.h (string_escape_byte8): Declare.
22799
22800 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22801 unused vars.
22802 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22803 (Fmap_charset_chars): Doc fix.
22804
22805 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22806 (Fset_coding_system_priority, Fset_coding_system_priority)
22807 (Fdefine_coding_system_internal): Doc fix.
22808
228092008-02-01 Dave Love <fx@gnu.org>
22810
22811 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22812
228132008-02-01 Kenichi Handa <handa@m17n.org>
22814
22815 * character.c (string_escape_byte8): Make multibyte string with
22816 correct size.
22817
22818 * charset.c (Fmake_char): Delete unnecessary code.
22819
228202008-02-01 Kenichi Handa <handa@m17n.org>
22821
22822 * xfns.c (x_encode_text): Allocate coding.destination here, and
22823 call encode_coding_object with dst_object Qnil.
22824
22825 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22826 multibyte form correctly.
22827
22828 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22829 against Vfont_encoding_alist.
22830
22831 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22832 handling of charset list.
22833 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22834 (decode_coding_object): Move point to coding->dst_pos before
22835 calling post-read-conversion function.
22836 (encode_coding_object): Give correct arguments to
22837 pre-write-conversion. Ignore the return value of
22838 pre-write-conversion function. Pay attention to the case that
22839 pre-write-conversion changes the current buffer. If dst_object is
22840 Qt, even if coding->src_bytes is zero, allocate at least one byte
22841 to coding->destination.
22842
22843 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22844
22845 * charset.c (Fmake_char): Make it more backward compatible.
22846 (Fmap_charset_chars): Fix docstring.
22847
228482008-02-01 Dave Love <fx@gnu.org>
22849
22850 * coding.c: Doc fixes.
22851 (Fdefine_coding_system_alias): Use names, not symbols, in
22852 coding-system-alist.
22853
228542008-02-01 Kenichi Handa <handa@m17n.org>
22855
22856 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22857 of calling free_realized_face.
22858
228592008-02-01 Yong Lu <lyongu@asia-infonet.com>
22860
22861 * charset.c (read_hex): Don't treat SPC as a comment starter.
22862 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22863 (Fdecode_char): Fix typo.
22864
228652008-02-01 Kenichi Handa <handa@m17n.org>
22866
22867 * charset.h (struct charset): New member `code_space_mask'.
22868
22869 * coding.c (coding_set_source): Delete the local variable beg_byte.
22870 (encode_coding_charset, Fdefine_coding_system_internal):
22871 Delete the local variable charset.
22872 (Fdefine_coding_system_internal): Setup
22873 attrs[coding_attr_charset_valids] correctly.
22874
22875 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22876 member to check if CODE is valid or not.
22877 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22878 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22879 is within the range of charset->min_code and carset->max_code.
22880
228812008-02-01 Dave Love <fx@gnu.org>
22882
22883 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22884
22885 * dispextern.h (generate_ascii_font): Fix return type.
22886
22887 * xfaces.c (generate_ascii_font): Fix arg declaration.
22888
22889 * coding.c (coding_inherit_eol_type)
22890 (Fset_terminal_coding_system_internal)
22891 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22892
228932008-02-01 Kenichi Handa <handa@m17n.org>
22894
22895 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22896 multiple charsets correctly.
22897
228982008-02-01 Kenichi Handa <handa@m17n.org>
22899
22900 * search.c (boyer_moore): Fix handling of multibyte character
22901 translation.
22902
22903 * xdisp.c (display_mode_element): When the variable `elt' is
22904 changed, update `this' and `lisp_string'.
22905
229062008-02-01 Kenichi Handa <handa@m17n.org>
22907
22908 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22909
22910 * callproc.c (Fcall_process): Be sure to give the current buffer
22911 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22912
22913 * charset.c (struct charset_map_entries): New struct.
22914 (load_charset_map): Rename from parse_charset_map. New args
22915 entries and n_entries. Change caller.
22916 (load_charset_map_from_file): Rename from load_charset_map.
22917 Change caller. New arg control_flag. Call load_charset_map at
22918 the tail.
22919 (load_charset_map_from_vector): New function.
22920 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22921 (encode_char): If the charset is compact, change a character index
22922 to a code point.
22923
22924 * coding.c (coding_alloc_by_making_gap): Check the case that the
22925 source and destination are the same correctly.
22926 (decode_coding_raw_text): Set coding->consumed_char and
22927 coding->consumed to 0.
22928 (produce_chars): If coding->chars_at_source is nonzero, update
22929 coding->consumed_char and coding->consumed before calling
22930 alloc_destination.
22931 (Fdefine_coding_system_alias): Register ALIAS in
22932 Vcoding_system_alist.
22933 (syms_of_coding): Define `no-conversion' coding system at the tail.
22934
22935 * fileio.c (Finsert_file_contents): Set coding_system instead of
22936 val. If the current buffer is multibyte, always call
22937 decode_coding_gap.
22938
22939 * xfaces.c (try_font_list): Give higher priority to fontset's
22940 family than face's family.
22941
229422008-02-01 Kenichi Handa <handa@m17n.org>
22943
22944 * callproc.c (Fcall_process): Be sure to give the current buffer
22945 to decode_coding_c_string.
22946
22947 * xfaces.c (try_font_list): Give a family specified in a fontset
22948 higher priority than a family specified in a face.
22949
229502008-02-01 Kenichi Handa <handa@m17n.org>
22951
22952 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22953 Fix arguments to insert_from_buffer.
22954
22955 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22956
229572008-02-01 Kenichi Handa <handa@m17n.org>
22958
22959 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22960 (decode_coding_gap): Set coding->dst_multibyte correctly.
22961
229622008-02-01 Kenichi Handa <handa@m17n.org>
22963
22964 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22965 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22966 (encode_coding_utf_16): Substitute coding->default_char for
22967 non-Unicode characters.
22968 (decode_coding): Don't call record_insert here.
22969 (setup_coding_system): Initialize `surrogate' of
22970 coding->spec.utf_16 to 0.
22971 (EMIT_ONE_BYTE): Fix for multibyte case.
22972
22973 * insdel.c (insert_from_gap): Call record_insert.
22974
229752008-02-01 Kenichi Handa <handa@m17n.org>
22976
22977 * casefiddle.c (casify_region): Fix multibyte case.
22978
22979 * character.c (c_string_width): Add return type `int'.
22980 (char_string_with_unification): Delete arg ADVANCED.
22981
22982 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22983 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22984 (CHAR_STRING_ADVANCE): Make it do-while statement.
22985
22986 * chartab.c (sub_char_table_set_range): Optimize for the case
22987 DEPTH == 3. Add workaround code for a GCC optimization bug.
22988
22989 * charset.c (parse_charset_map): Remove an unused variable.
22990
22991 * coding.c: Delete unused variables.
22992
22993 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22994 earlier. If inserted is zero and the coding system doesn't
22995 require flushing, don't call decode_coding_gap.
22996
22997 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22998
229992008-02-01 Kenichi Handa <handa@m17n.org>
23000
23001 The following changes are for using Unicode as an internal
23002 character model, and use UTF-8 format for buffer/string
23003 representation.
23004
23005 * .gdbinit (xchartable): Adjust for the change of char table structure.
23006 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23007
23008 * Makefile.in (obj): Add character.o and chartab.o.
23009 (lisp, shortlisp): Remove utf-8.elc.
23010 (*.o): For many files, change dependency on charset.h to
23011 character.h, and add dependency on character.h.
23012 (character.o, chartab.o): New targets.
23013
23014 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23015 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23016 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23017 of "charset.h".
23018
23019 * dired.c, filelock.c: Include "character.h".
23020
23021 * alloc.c: Include "character.h" instead of "charset.h".
23022 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23023 (syms_of_alloc): Remove defsubr for Smake_char_table.
23024
23025 * buffer.c: Include "character.h" instead of "charset.h", don't
23026 include "coding.h".
23027 (Fset_buffer_multibyte): Adjust for UTF-8.
23028
23029 * buffer.h: EXFUN Fbuffer_live_p.
23030
23031 * callproc.c: Include "character.h" instead of "charset.h".
23032 (Fcall_process): Big change for the new code-conversion APIs.
23033
23034 * casetab.c: Include "character.h" instead of "charset.h".
23035 (set_canon, set_identity, shuffle): Adjust for the new
23036 map_char_table spec.
23037 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23038 accessing the char table structure.
23039
23040 * chartab.c: New file that implements char table.
23041
23042 * category.c: Include "character.h".
23043 (copy_category_entry): New function.
23044 (copy_category_table): Call map_char_table and copy_category_entry.
23045 (Fmake_category_table): Initialize all top-level slots.
23046 (char_category_set): New function.
23047 (modify_lower_category_set): Delete.
23048 (Fmodify_category_entry): Call char_table_ref_and_range.
23049
23050 * category.h (CATEGORY_SET): Just call char_category_set.
23051
23052 * ccl.c: Include "character.h".
23053 (Qccl, Qcclp): New variables.
23054 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23055 it's less than 256.
23056 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23057 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23058 and DST type.
23059 (ccl_driver): Change types of argument, adjust code accordingly.
23060 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23061 ccl_driver.
23062 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23063
23064 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23065 New members src_multibyte, dst_multibyte, consumed, and produced.
23066 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23067 (CODING_SPEC_CCL_PROGRAM): New macro.
23068 (ccl_driver): Update prototype.
23069 (Qccl, Qcclp, Fccl_program_p): Extern them.
23070 (CHECK_CCL_PROGRAM): New macro.
23071
23072 * character.c, character.h, chartab.c: New files.
23073
23074 * charset.c: Mostly re-written. Move character and multibyte sequence
23075 handling codes to character.c.
23076
23077 * charset.h: Mostly re-written. Move character and multibyte sequence
23078 handling codes to character.h.
23079
23080 * coding.c, coding.h: Mostly re-written.
23081
23082 * composite.c: Include "character.h" instead of "charset.h".
23083 (CHAR_WIDTH): Move to character.h.
23084 (HASH_KEY, HASH_VALUE): Delete.
23085
23086 * composite.h (enum composition_method): Change order of enumeration
23087 symbols.
23088
23089 * data.c: Include "character.h" instead of "charset.h".
23090 (Faref): Call CHAR_TABLE_REF for a char table.
23091 (Faset): Call CHAR_TABLE_SET for a char table.
23092
23093 * dispextern.h (free_realized_face, check_face_attribytes)
23094 (generate_ascii_font): Extern them.
23095 (free_realized_multibyte_face): Delete extern.
23096
23097 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23098 table structure.
23099
23100 * editfns.c: Include "character.h" instead of "charset.h".
23101 (Fchar_to_string): Always call CHAR_STRING.
23102
23103 * emacs.c (main): Call init_charset_once, init_charset,
23104 syms_of_chartab, and syms_of_character.
23105
23106 * fileio.c: Include "character.h" instead of "charset.h".
23107 (Finsert_file_contents): Big change for the new code-conversion API.
23108 (choose_write_coding_system, Fwrite_region): Likewise.
23109 (build_annotations_2): Delete.
23110 (e_write): Big change for the new code-conversion API.
23111
23112 * fns.c: Include "character.h" instead of "charset.h".
23113 (copy_sub_char_table): Move to chartab.c.
23114 (Fcopy_sequence): Call copy_char_table for a char table.
23115 (concat): Delete codes calling count_multibyte.
23116 (string_char_to_byte, string_byte_to_char): Adjust for the new
23117 multibyte form.
23118 (internal_equal): Adjust for the change of char table structure.
23119 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23120 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23121 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23122 (char_table_translate, optimize_sub_char_table)
23123 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23124 chartab.c.
23125 (char_table_ref_and_index): Delete.
23126 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23127 (Fmd5): Call preferred_coding_system instead of accessing
23128 Vcoding_category_list. Adjust for the new code-conversion API.
23129 (syms_of_fns): Move defsubr for char table related functions to
23130 chartab.c.
23131
23132 * fontset.c: Mostly re-written.
23133
23134 * fontset.h (struct font_info): Change type of the member encoding_type.
23135 (enum FONT_SPEC_INDEX): New enum.
23136 (fontset_font_pattern, fs_load_font): Update prototype.
23137 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23138
23139 * indent.c: Include "character.h" instead of "charset.h".
23140 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23141
23142 * insdel.c: Include "character.h" instead of "charset.h".
23143 (copy_text): Don't refer to Vnonascii_translation_table.
23144 (insert_from_gap): New function.
23145
23146 * keyboard.c: Include "character.h" instead of "charset.h".
23147 (command_loop_1): Never call direct_output_forward_char before
23148 a non-ASCII character.
23149 (read_char): If Vkeyboard_translate_table is a char table, always
23150 translate a character.
23151
23152 * keymap.c: Include "character.h".
23153 (store_in_keymap): Handle the case that IDX is a cons.
23154 (Fdefine_key): Handle the case that KEY is a cons and the car part
23155 is also a cons (range).
23156 (push_key_description): Adjust for the new character code.
23157 (describe_vector): Call describe_char_table for a char table.
23158 (describe_char_table): New function.
23159
23160 * keymap.h (describe_char_table): Extern it.
23161
23162 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23163 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23164 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23165 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23166 Delete.
23167 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23168 structure.
23169 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23170 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23171 (CHARTAB_SIZE_BITS_3): New macros.
23172 (chartab_size): Extern it.
23173 (struct Lisp_Char_Table): Re-design.
23174 (struct Lisp_Sub_Char_Table): New structure.
23175 (HASH_KEY, HASH_VALUE): Move from fns.c.
23176 (CHARACTERBITS): Define as 22.
23177 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23178 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23179 (GC_SUB_CHAR_TABLE_P): New macro.
23180 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23181 (code_convert_string_norecord): Deleted extern.
23182 (init_character_once, syms_of_character, init_charset)
23183 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23184
23185 * lread.c: Include "character.h".
23186 (read_multibyte): New arg NBYTES.
23187 (read_escape): Change the meaning of returned *BYTEREP.
23188 (to_multibyte): Delete.
23189 (read1): Adjust the handling of char table and string.
23190
23191 * print.c: Include "character.h" instead of "charset.h".
23192 (print_string): Convert 8-bit raw bytes to octal form by
23193 string_escape_byte8.
23194 (print_object): Adjust for the new multibyte form. Print 8-bit
23195 raw bytes always in octal form. Handle sub char table correctly.
23196
23197 * process.c: Include "character.h" instead of "charset.h".
23198 (read_process_output, send_process): Adjust for the new
23199 code-conversion API.
23200
23201 * puresize.h (BASE_PURESIZE): Increase.
23202
23203 * regex.c: Include "character.h" instead of "charset.h".
23204 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23205 (regex_compile): Accept a range whose starting and ending
23206 character have different leading bytes.
23207 (analyse_first): Adjust for the above change.
23208
23209 * search.c: Include "character.h" instead of "charset.h".
23210 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23211 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23212
23213 * syntax.c: Include "character.h" instead of "charset.h".
23214 (syntax_parent_lookup): Delete.
23215 (Fmodify_syntax_entry): Accept a cons as CHAR.
23216 (skip_chars): Adjust for the new multibyte form.
23217 (init_syntax_once): Call char_table_set_range instead of directly
23218 accessing the structure of a char table.
23219
23220 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23221 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23222 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23223 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23224
23225 * term.c: Include "buffer.h" and "character.h".
23226 (encode_terminal_code, write_glyphs): Adjust for the new
23227 code-conversion API.
23228 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23229
23230 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23231
23232 * xdisp.c: Include "character.h".
23233 (get_next_display_element): Adjust for the new multibyte form.
23234 (disp_char_vector): Adjust for the new char table structure.
23235 (decode_mode_spec_coding): Adjust for the new structure of
23236 coding system.
23237 (decode_mode_spec): Adjust for the new code-conversion API.
23238
23239 * xfaces.c: Include "character.h" instead of "charset.h".
23240 (load_face_font): Adjust for the change of choose_face_font and
23241 FS_LOAD_FONT.
23242 (generate_ascii_font): New function.
23243 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23244 (set_font_frame_param): Adjust for the change of choose_face_font.
23245 (free_realized_face): Make it public.
23246 (free_realized_faces_for_fontset): Rename from
23247 free_realized_multibyte_face. Free also faces realized for ASCII.
23248 (choose_face_font): Change arguments. Adjust for the change of
23249 fontset_font_pattern and FS_LOAD_FONT.
23250
23251 * xfns.c: Include "character.h".
23252 (x_encode_text): Adjust for the new code-conversion API.
23253
23254 * xselect.c: Don't include "charset.h".
23255 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23256
23257 * xterm.c: Include "character.h".
23258 (x_encode_char): New argument CHARSET. Change caller.
23259 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23260 Call ENCODE_CHAR instead of SPLIT_CHAR.
23261 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23262 CHAR_WIDTH instead of CHARSET_WIDTH.
23263 (XTread_socket): Adjust for the new code-conversion API.
23264 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23265 (x_load_font): Adjust for the change of struct font.
23266
232672008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23268
23269 * xfaces.c (face_at_buffer_position): Remove unused vars.
23270
232712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23272
23273 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23274 Fix overflow checking.
23275
232762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23277
23278 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23279 Cancel previous change.
23280
232812008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23282
23283 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23284 ccl->eight_bit_control. Fix check for buffer overflow.
23285 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23286 (ccl_driver): Initialize extra_bytes to 0.
23287
232882008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23289
23290 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23291 return it ORed with ctrl_modifier.
23292
232932008-01-29 Miles Bader <miles@gnu.org>
23294
23295 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23296
232972008-01-28 Jason Rumney <jasonr@gnu.org>
23298
23299 * w32.c (stat): Don't double check for networked drive.
23300
233012008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23302
23303 * window.c (run_window_configuration_change_hook): New function.
23304 Code extracted from set_window_buffer. Set the selected frame.
23305 (set_window_buffer): Use it.
23306 * window.h (run_window_configuration_change_hook): Declare.
23307 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23308
23309 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23310
233112008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23312
23313 * Makefile.in: Remove references to unused macros.
23314
233152008-01-26 Eli Zaretskii <eliz@gnu.org>
23316
23317 * w32.c (g_b_init_get_sid_sub_authority)
23318 (g_b_init_get_sid_sub_authority_count): New static variables.
23319 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23320 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23321 (init_user_info): Use them to retrieve uid and gid.
23322 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23323 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23324 st_uid and st_gid of the file.
23325
233262008-01-26 Jason Rumney <jasonr@gnu.org>
23327
23328 * w32.c (logon_network_drive): New function.
23329 (stat): Use it.
23330
233312008-01-26 Chong Yidong <cyd@stupidchicken.com>
23332
23333 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23334 invisible text covered with an ellipsis.
23335
233362008-01-25 Richard Stallman <rms@gnu.org>
23337
23338 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23339 jump back to beginning. Move some other initializations after that.
23340 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23341 New variables.
23342 (syms_of_xdisp): Init them.
23343
23344 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23345
23346 * buffer.c (reset_buffer_local_variables):
23347 Implement `permanent-local-hook'.
23348 (Qpermanent_local_hook): New variable.
23349 (syms_of_buffer): Init and staticpro it.
23350
233512008-01-25 Michael Albinus <michael.albinus@gmx.de>
23352
23353 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23354
233552008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23356
23357 * fns.c (Fclrhash): Return TABLE.
23358
233592008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23360
23361 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23362 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23363 is set even without positional changes.
23364 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23365
23366 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23367
233682008-01-23 Jason Rumney <jasonr@gnu.org>
23369
23370 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23371
23372 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23373 the unicode range available in MULE by locale-coding-system.
23374 Improve dbcs lead byte detection. Set event timestamp and modifiers
23375 earlier.
23376
233772008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23378
23379 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23380 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23381 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23382 when used on child processes.
23383
233842008-01-21 Michael Albinus <michael.albinus@gmx.de>
23385
23386 * dbusbind.c (Fdbus_method_return_internal): Rename from
23387 Fdbus_method_return.
23388 (Fdbus_unregister_object): Move to dbus.el.
23389 (Fdbus_call_method, Fdbus_method_return_internal)
23390 (Fdbus_send_signal): Improve debug messages.
23391
233922008-01-20 Martin Rudalics <rudalics@gmx.at>
23393
23394 * undo.c (undo_inhibit_record_point): New variable.
23395 (syms_of_undo): Initialize it.
23396 (record_point): Don't record point when undo_inhibit_record_point
23397 is set.
23398
233992008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23400
23401 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23402
23403 * xdisp.c (Qauto_hscroll_mode): New var.
23404 (syms_of_xdisp): Initialize it.
23405 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23406 window's buffer.
23407 (hscroll_windows): Don't check automatic_hscrolling_p here.
23408
23409 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23410 vscroll if we're setting window-buffer to the value it already has.
23411
234122008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23413
23414 * m/intel386.h: Remove references to XENIX.
23415
234162008-01-17 Andreas Schwab <schwab@suse.de>
23417
23418 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23419 instead of HAVE_X86_64_LIB64_DIR.
23420 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23421
234222008-01-17 Glenn Morris <rgm@gnu.org>
23423
23424 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23425 to HAVE_X86_64_LIB64_DIR.
23426
234272008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23428
23429 * s/irix3-3.h:
23430 * s/irix4-0.h:
23431 * s/386-ix.h:
23432 * s/domain.h:
23433 * s/hpux9-x11r4.h:
23434 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23435
23436 * sysdep.c: Remove code containing references to symbols defined
23437 by unsupported systems.
23438
234392008-01-16 Glenn Morris <rgm@gnu.org>
23440
23441 * coding.c (select-safe-coding-system-function): Doc fix.
23442
234432008-01-15 Glenn Morris <rgm@gnu.org>
23444
23445 * config.in: Revert 2008-01-13 change: this is a generated file.
23446
234472008-01-13 Tom Tromey <tromey@redhat.com>
23448
23449 * lisp.h: Fix typo.
23450
234512008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23452
23453 * m/sequent-ptx.h:
23454 * m/sequent.h:
23455 * s/ptx.h:
23456 * s/ptx4-2.h:
23457 * s/ptx4.h: Remove files for systems no longer supported.
23458
23459 * callproc.c (Fcall_process): Fix previous change.
23460
234612008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23462
23463 * unexsunos4.c: Remove file, system not supported anymore.
23464
23465 * m/mips.h:
23466 * m/intel386.h:
23467 * callproc.c:
23468 * config.in:
23469 * ecrt0.c:
23470 * emacs.c:
23471 * fileio.c:
23472 * frame.c:
23473 * getpagesize.h:
23474 * keyboard.c:
23475 * lread.c:
23476 * process.c:
23477 * puresize.h:
23478 * sysdep.c:
23479 * systty.h:
23480 * syswait.h:
23481 * unexec.c:
23482 * xdisp.c:
23483 * alloc.c: Remove code containing references to symbols defined by
23484 unsupported systems.
23485
234862008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23487
23488 * coding.c (detect_coding_mask): Fix previous change.
23489
234902008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23491
23492 * coding.c (detect_coding_iso2022): New arg
23493 latin_extra_code_state. Allow Latin extra codes only
23494 when *latin_extra_code_state is nonzero.
23495 (detect_coding_mask): If there is a NULL byte, detect the encoding
23496 as UTF-16 or binary. If Latin extra codes exist, detect the
23497 encoding as ISO-2022 only when there's no other proper encoding is
23498 found.
23499
235002008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23501
23502 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23503 #ifdef MAC_OS.
23504
235052008-01-08 Richard Stallman <rms@gnu.org>
23506
23507 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23508
235092008-01-06 Nick Roberts <nickrob@snap.net.nz>
23510
23511 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23512 menu bar in parentheses.
23513
235142008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23515
23516 * m/7300.h:
23517 * m/acorn.h:
23518 * m/alliant-2800.h:
23519 * m/alliant.h:
23520 * m/alliant1.h:
23521 * m/alliant4.h:
23522 * m/altos.h:
23523 * m/amdahl.h:
23524 * m/apollo.h:
23525 * m/att3b.h:
23526 * m/aviion-intel.h:
23527 * m/aviion.h:
23528 * m/celerity.h:
23529 * m/clipper.h:
23530 * m/cnvrgnt.h:
23531 * m/convex.h:
23532 * m/cydra5.h:
23533 * m/delta88k.h:
23534 * m/dpx2.h:
23535 * m/dual.h:
23536 * m/elxsi.h:
23537 * m/f301.h:
23538 * m/gould-np1.h:
23539 * m/gould.h:
23540 * m/i860.h:
23541 * m/ibmps2-aix.h:
23542 * m/ibmrt-aix.h:
23543 * m/ibmrt.h:
23544 * m/irist.h:
23545 * m/is386.h:
23546 * m/isi-ov.h:
23547 * m/mega68.h:
23548 * m/mg1.h:
23549 * m/news-r6.h:
23550 * m/news-risc.h:
23551 * m/news.h:
23552 * m/nh3000.h:
23553 * m/nh4000.h:
23554 * m/ns16000.h:
23555 * m/ns32000.h:
23556 * m/nu.h:
23557 * m/orion.h:
23558 * m/orion105.h:
23559 * m/paragon.h:
23560 * m/pfa50.h:
23561 * m/plexus.h:
23562 * m/pyramid.h:
23563 * m/pyrmips.h:
23564 * m/sh3el.h:
23565 * m/sps7.h:
23566 * m/sr2k.h:
23567 * m/stride.h:
23568 * m/sun1.h:
23569 * m/sun2.h:
23570 * m/sun3-68881.h:
23571 * m/sun3-fpa.h:
23572 * m/sun3-soft.h:
23573 * m/sun3.h:
23574 * m/sun386.h:
23575 * m/symmetry.h:
23576 * m/tad68k.h:
23577 * m/tahoe.h:
23578 * m/targon31.h:
23579 * m/tek4300.h:
23580 * m/tekxd88.h:
23581 * m/tower32.h:
23582 * m/tower32v3.h:
23583 * m/ustation.h:
23584 * m/wicat.h:
23585 * m/xps100.h:
23586 * s/cxux.h:
23587 * s/cxux7.h:
23588 * s/dgux.h:
23589 * s/dgux4.h:
23590 * s/dgux5-4-3.h:
23591 * s/dgux5-4r2.h:
23592 * s/esix.h:
23593 * s/esix5r4.h:
23594 * s/hiuxmpp.h:
23595 * s/hiuxwe2.h:
23596 * s/iris3-5.h:
23597 * s/iris3-6.h:
23598 * s/isc2-2.h:
23599 * s/isc3-0.h:
23600 * s/isc4-0.h:
23601 * s/isc4-1.h:
23602 * s/newsos5.h:
23603 * s/newsos6.h:
23604 * s/osf1.h:
23605 * s/osf5-0.h:
23606 * s/riscix1-1.h:
23607 * s/riscix12.h:
23608 * s/sco4.h:
23609 * s/sco5.h:
23610 * s/sunos4-0.h:
23611 * s/sunos4-1.h:
23612 * s/sunos413.h:
23613 * s/sunos4shr.h:
23614 * s/umax.h:
23615 * s/unipl5-2.h:
23616 * s/xenix.h:
23617 * cxux-crt0.s:
23618 * unexapollo.c:
23619 * unexconvex.c:
23620 * unexenix.c:
23621 * unexsni.c: Remove files for systems no longer supported.
23622
23623 * m/intel386.h: Remove references to unsupported systems.
23624
23625 * w32.c (get_emacs_configuration): Remove reference to i860.
23626
23627 * sysdep.c: Remove dead code.
23628
236292008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23630
23631 * s/rtu.h:
23632 * m/masscomp.h: Remove files. Platform is obsolete.
23633
236342008-01-04 Michael Albinus <michael.albinus@gmx.de>
23635
23636 * dbusbind.c (Fdbus_method_return): New function.
23637 (xd_read_message): Add the serial number to the event.
23638 (Fdbus_register_method): Activate the function.
23639
236402008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23641
23642 * keyboard.c (read_key_sequence): Fix typo.
23643
236442008-01-03 Michael Albinus <michael.albinus@gmx.de>
23645
23646 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23647 (xd_signature, xd_append_arg): Handle element type detection for
23648 empty arrays.
23649 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23650 SDATA () calls; this must be solved more general.
23651 (Fdbus_register_signal): Use SBYTES instead of strlen.
23652
236532008-01-03 Magnus Henoch <magnus@zemdatav>
23654
23655 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23656 unsigned int for byte values (necessary for big-endian platform).
23657 (Fdbus_call_method): Handle the case of no returned arguments.
23658
236592007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23660
23661 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23662
236632007-12-31 Magnus Henoch <mange@freemail.hu>
23664
23665 * dbusbind.c (xd_signature): Signature of variant is just "v".
23666
236672007-12-30 Michael Albinus <michael.albinus@gmx.de>
23668
23669 * dbusbind.c: Fix several errors and compiler warnings.
23670 Reported by Tom Tromey <tromey@redhat.com>.
23671 (XD_ERROR, XD_DEBUG_MESSAGE)
23672 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23673 (xd_append_arg): Part for basic D-Bus types rewritten.
23674 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23675 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23676 appropriate.
23677 (xd_read_message): Return Qnil. Don't signal an error; it is not
23678 useful during event reading.
23679 (Fdbus_register_signal): Signal an error if the check for
23680 FUNCTIONP fails.
23681 (Fdbus_register_method): New function. The implementation is not
23682 complete, the call of the function signals an error therefore.
23683 (Fdbus_unregister_object): New function, renamed from
23684 Fdbus_unregister_signal. The initial check signals an error, if
23685 the object is not well formed.
23686
236872007-12-30 Richard Stallman <rms@gnu.org>
23688
23689 * textprop.c (get_char_property_and_overlay):
23690 Signal error if POSITION is out of range in a buffer.
23691
236922007-12-29 Martin Rudalics <rudalics@gmx.at>
23693
23694 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23695 because the original parameters are in pure storage now.
23696
236972007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23698
23699 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23700
237012007-12-22 Eli Zaretskii <eliz@gnu.org>
23702
23703 * callint.c (syms_of_callint) <command-history>: Add reference to
23704 history-length in the doc string.
23705
237062007-12-17 Jason Rumney <jasonr@gnu.org>
23707
23708 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23709 before passing as wParam.
23710
237112007-12-22 Michael Albinus <michael.albinus@gmx.de>
23712
23713 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23714 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23715 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23716 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23717 as number.
23718 (Fdbus_call_method): Fix docstring.
23719
237202007-12-21 Michael Albinus <michael.albinus@gmx.de>
23721
23722 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23723 New macros.
23724 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23725 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23726 Simplify.
23727 (xd_signature): New function.
23728 (xd_append_arg): Compute also signatures. Major rewrite.
23729 (xd_retrieve_arg): Make debug messages friendly.
23730 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23731 Check for signatures of arguments.
23732
237332007-12-19 Michael Albinus <michael.albinus@gmx.de>
23734
23735 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23736 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23737 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23738 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23739 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23740 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23741 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23742 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23743 (xd_retrieve_value): Remove. Functionality included in ...
23744 (xd_append_arg): New function.
23745 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23746
237472007-12-16 Michael Albinus <michael.albinus@gmx.de>
23748
23749 * dbusbind.c (top): Include <stdio.h>.
23750 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23751 dbus_message_new_method_call and dbus_message_new_signal.
23752 (Fdbus_register_signal): Rename unique_name to uname.
23753 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23754 non-existing unique name. Fix typos in matching rule. Return an
23755 object which is useful in Fdbus_unregister_signal.
23756 (Fdbus_unregister_signal): Reimplementation, in order to remove
23757 only the corresponding entry.
23758 (Vdbus_registered_functions_table): Change the order of entries.
23759 Apply these changes in xd_read_message and Fdbus_register_signal.
23760
237612007-12-16 Andreas Schwab <schwab@suse.de>
23762
23763 * fileio.c (Finsert_file_contents): Fix overflow check to not
23764 depend on undefined integer overflow.
23765
237662007-12-14 Jason Rumney <jasonr@gnu.org>
23767
23768 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23769 for characters above 127.
23770
237712007-12-13 Jason Rumney <jasonr@gnu.org>
23772
23773 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23774 before dereferencing array.
23775 (lookup_vk_code): Remove zero comparison.
23776
237772007-12-14 Michael Albinus <michael.albinus@gmx.de>
23778
23779 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23780 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23781 Use `unsigned int' instead of `uint'.
23782 (xd_read_message, Fdbus_register_signal): Split expressions into
23783 multiple lines before operators "&&" and "||", according to the
23784 GNU Coding Standards.
23785
237862007-12-14 Eli Zaretskii <eliz@gnu.org>
23787
23788 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23789
237902007-12-12 Juri Linkov <juri@jurta.org>
23791
23792 * buffer.c (Frename_buffer): In interactive spec replace
23793 `read-buffer' with `read-string' that uses `buffer-name-history'
23794 as history, and the current buffer's name as default.
23795
237962007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23797
23798 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23799 manipulating the backtrace manually.
23800 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23801 (struct backtrace, backtrace_list): Remove.
23802 (command_loop_1): Remove dead var `no_direct'.
23803
23804 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23805 preserve non-built-in buffer-local variables.
23806 (Fkill_all_local_variables): Don't re-create&re-set permanent
23807 buffer-local variables.
23808
238092007-12-09 Juri Linkov <juri@jurta.org>
23810
23811 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23812 Lisp code that uses `read-buffer' with current buffer as default.
23813
238142007-12-08 Michael Albinus <michael.albinus@gmx.de>
23815
23816 * dbusbind.c (xd_read_message): Generate an event for every
23817 registered handler. There might be several handlers registered
23818 for the same signal.
23819 (Fdbus_register_signal): Don't overwrite a registration for the
23820 same signal. Add a new registration if handlers are different.
23821 (Vdbus_registered_functions_table): Rework doc string.
23822
238232007-12-07 Michael Albinus <michael.albinus@gmx.de>
23824
23825 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23826 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23827 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23828 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23829 Unify argument lists.
23830 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23831 arguments and hash table keys. Use unique name for service.
23832 (Fdbus_unregister_signal): Remove checks.
23833 (Vdbus_registered_functions_table): Fix doc string.
23834
238352007-12-05 Magnus Henoch <mange@freemail.hu>
23836
23837 * process.c (make_process): Initialize pty_flag to 0.
23838
238392007-12-05 Jason Rumney <jasonr@gnu.org>
23840
23841 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23842 specified XBMs.
23843
238442007-12-05 Richard Stallman <rms@gnu.org>
23845
23846 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23847
238482007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23849
23850 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23851 New variable.
23852 (mac_try_close_socket) [MAC_OSX]: New function.
23853 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23854 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23855
23856 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23857 Use mac_try_close_socket.
23858
238592007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23860
23861 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23862 reloc_base.
23863 (copy_dysymtab): Compute relocation base here.
23864 (rebase_reloc_address) [__ppc64__]: New function.
23865 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23866 changed.
23867
238682007-12-05 Jason Rumney <jasonr@gnu.org>
23869
23870 * w32proc.c (sys_spawnve): Quote args with wildcards.
23871
238722007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23873
23874 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23875 __objc_* sections.
23876 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23877
238782007-12-05 Michael Albinus <michael.albinus@gmx.de>
23879
23880 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23881 Move check for Vdbus_registered_functions_table to
23882 xd_read_queued_messages.
23883 (xd_read_queued_messages): Protect xd_read_message calls by
23884 internal_condition_case_1.
23885
238862007-12-04 Michael Albinus <michael.albinus@gmx.de>
23887
23888 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23889 Qdbus_system_bus and Qdbus_session_bus, respectively.
23890 (Vdbus_intern_symbols): Remove.
23891 (Vdbus_registered_functions_table): New hash table.
23892 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23893 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23894 Rewrite in order to manage registered functions by hash table
23895 Vdbus_registered_functions_table.
23896
238972007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23898
23899 * xterm.c: Update URL to Window Manager Specification in comment.
23900
239012007-12-02 Michael Albinus <michael.albinus@gmx.de>
23902
23903 * config.in (HAVE_DBUS): Add.
23904
23905 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23906 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23907 (obj): Add $(DBUS_OBJ).
23908 (LIBES): Add $(DBUS_LIBS).
23909 (dbusbind.o): New target.
23910
23911 * dbusbind.c: New file.
23912
23913 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23914
23915 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23916 (Qdbus_event): New Lisp symbol.
23917 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23918 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23919 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23920
23921 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23922
239232007-12-01 Richard Stallman <rms@gnu.org>
23924
23925 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23926
239272007-11-30 Jason Rumney <jasonr@gnu.org>
23928
23929 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23930 (w32con_reset_terminal_modes): Clear screen buffer.
23931 (w32_face_attributes): Don't use color indexes that are out of range.
23932 Only reverse the default colors.
23933
23934 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23935 WINDOWSNT.
23936
23937 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23938
239392007-11-29 Jason Rumney <jasonr@gnu.org>
23940
23941 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23942 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23943 if the terminal colors are initialized.
23944 (unspecified_fg, unspecified_bg): Remove unused declarations.
23945
239462007-11-29 Andreas Schwab <schwab@suse.de>
23947
23948 * keyboard.c (apply_modifiers): Fix typo.
23949
239502007-11-29 Richard Stallman <rms@gnu.org>
23951
23952 * keymap.c (Fcurrent_local_map): Doc fix.
23953
239542007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23955
23956 * s/gnu-kfreebsd.h: New file.
23957
239582007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23959
23960 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23961 Don't cast redundantly.
23962
23963 * keyboard.c (KEY_TO_CHAR): New macro.
23964 (parse_modifiers, apply_modifiers): Accept integer arguments.
23965 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23966 for chars and symbol keys.
23967 After doing such remapping, apply function-key-map again.
23968
239692007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23970
23971 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23972 compiled anymore.
23973
239742007-11-26 Andreas Schwab <schwab@suse.de>
23975
23976 * process.c (list_processes_1): Fix indentation level of the
23977 command column.
23978
239792007-11-23 Andreas Schwab <schwab@suse.de>
23980
23981 * editfns.c (Fformat): Handle %c specially since it requires the
23982 argument to be of type int.
23983
239842007-11-23 Markus Triska <markus.triska@gmx.at>
23985
23986 * emacs.c (main): Call init_editfns before init_process, since
23987 init_process sets Vprocess_connection_type depending on OS release.
23988
239892007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23990
23991 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23992 (find_symbol_value): Use do_symval_forwarding.
23993
23994 * data.c (set_internal): Set the value in the `cons-cell' (for
23995 Buffer_Local_values) not only for frame-local variables.
23996
239972007-11-22 Andreas Schwab <schwab@suse.de>
23998
23999 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24000 values to sprintf.
24001 * keymap.c (Fsingle_key_description): Likewise.
24002 * print.c (print_object): Likewise.
24003
240042007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24005
24006 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24007 file for image is nil.
24008
240092007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24010
24011 * term.c: Include stdarg.h.
24012 (fatal): Implement using varargs.
24013 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24014
240152007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24016
24017 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24018 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24019 Update call to buffer_slot_type_mismatch.
24020 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24021 (buffer_slot_type_mismatch): Update.
24022 * buffer.c (buffer_local_types): Remove.
24023 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24024 (defvar_per_buffer): Set the type in the buffer_objfwd.
24025
240262007-11-21 Jason Rumney <jasonr@gnu.org>
24027
24028 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24029 CreateFileMapping returns NULL on failure.
24030
240312007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24032
24033 * search.c (Fset_match_data): Remove the `evaporate' feature.
24034 (unwind_set_match_data): Don't use the `evaporate' feature.
24035
240362007-11-21 Jason Rumney <jasonr@gnu.org>
24037
24038 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24039
24040 * w32console.c (w32con_write_glyphs): Remove unused variables.
24041
240422007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24043
24044 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24045
24046 * s/darwin.h (MULTI_KBOARD): Remove.
24047
24048 * macfns.c (x_create_tip_frame, Fx_create_frame)
24049 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24050
240512007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24052
24053 * buffer.c (Fbuffer_local_value): Remove redundant test.
24054 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24055 than in `current-buffer' to match the comment.
24056 Do the swap using swap_in_global_binding.
24057
24058 * data.c (store_symval_forwarding, set_internal):
24059 * eval.c (specbind): Remove dead code.
24060
24061 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24062 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24063 Since we do not want to see internal Lisp_*fwd objects here.
24064
240652007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24066
24067 * sysdep.c (init_system_name): Use getaddrinfo if available.
24068
24069 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24070 (x_scroll_bar_note_movement): start, end, with, height in struct
24071 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24072
240732007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24074
24075 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24076
240772007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24078
24079 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24080 This undoes Richard's change of 14-Oct-2002.
24081
24082 * alloc.c (allocate_other_vector):
24083 * lisp.h (allocate_other_vector): Remove.
24084
24085 * window.c (struct save_window_data): Move non-lisp data to the end
24086 and make it `int' rather than Lisp_Object.
24087 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24088 Done wrap/unwrap integer values.
24089 (Fset_window_configuration, compare_window_configurations):
24090 Update use of fields to their new types.
24091
24092 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24093 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24094 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24095 (SET_SCROLL_BAR_X_WINDOW): Remove.
24096 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24097 Access the new x_window field directly.
24098 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24099 Don't wrap/unwrap integers into Lisp_Objects.
24100 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24101 (x_scroll_bar_report_motion):
24102 Don't wrap/unwrap integers into Lisp_Objects.
24103 (x_term_init): Use SDATA.
24104 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24105 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24106 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24107 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24108 * xfns.c (x_set_background_color):
24109 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24110 Access the new x_window field directly.
24111
24112 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24113 (allocate_pseudovector): Make non-static.
24114
24115 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24116 (allocate_pseudovector): Declare.
24117 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24118
241192007-11-15 Andreas Schwab <schwab@suse.de>
24120
24121 * editfns.c (Fformat): Correctly format EMACS_INT values.
24122 Also take precision into account when formatting an integer.
24123
24124 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24125
241262007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24127
24128 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24129 (syms_of_keyboard): Defsubr it.
24130
24131 * data.c (swap_in_global_binding): Fix longstanding bug where
24132 store_symval_forwarding was not called with the right second argument,
24133 thus causing objfwd-ing from being dropped.
24134
241352007-11-14 Juanma Barranquero <lekktu@gmail.com>
24136
24137 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24138 (Fx_display_pixel_height, Fx_display_planes)
24139 (Fx_display_color_cells, Fx_server_max_request_size)
24140 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24141 (Fx_display_visual_class, Fx_display_save_under):
24142 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24143 (Fx_display_pixel_height, Fx_display_planes)
24144 (Fx_display_color_cells, Fx_server_max_request_size)
24145 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24146 (Fx_display_mm_height, Fx_display_mm_width)
24147 (Fx_display_backing_store, Fx_display_visual_class)
24148 (Fw32_select_font, Fx_display_save_under):
24149 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24150 (Fx_display_pixel_height, Fx_display_planes)
24151 (Fx_display_color_cells, Fx_server_max_request_size)
24152 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24153 (Fx_display_save_under): Fix typos in docstrings.
24154
241552007-11-14 Juanma Barranquero <lekktu@gmail.com>
24156
24157 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24158 corresponding to deleted entries; they are an implementation detail.
24159 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24160 Remove variables.
24161 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24162 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24163 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24164 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24165 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24166 (Fw32_define_rgb_color, Fw32_load_color_file)
24167 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24168 Fix typos in docstrings.
24169 (Fx_server_version): Reflow docstring.
24170 (Fw32_shell_execute): Doc fixes.
24171
241722007-11-13 Juanma Barranquero <lekktu@gmail.com>
24173
24174 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24175 if w32_parse_hot_key returned nil.
24176
241772007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24178
24179 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24180
241812007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 24182
aac0c6e3
MR
24183 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24184
24185 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24186
24187 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24188 Remove W32_SCROLL_BAR_CLICK_EVENT.
24189
24190 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24191 Add MULTIMEDIA_KEY_EVENT.
24192
24193 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24194 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24195 (make_lispy_event) [WINDOWSNT]: Use it to translate
24196 MULTIMEDIA_KEY_EVENT.
24197
24198 * w32term.h (WM_APPCOMMAND): Define if not already.
24199 (GET_APPCOMMAND_LPARAM): Likewise.
24200
24201 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24202 WM_APPCOMMAND.
24203
24204 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24205 (syms_of_w32fns): Export and initialize it.
24206 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24207
242082007-11-09 Chong Yidong <cyd@stupidchicken.com>
24209
24210 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24211 twice.
24212
24213 * xdisp.c (handle_face_prop): Fix last change.
24214
242152007-11-09 Richard Stallman <rms@gnu.org>
24216
24217 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24218 not just for after-strings and before-strings.
24219 Call face_for_overlay_string and pass the overlay to it.
24220 (handle_display_prop): Determine whether property came from an overlay.
24221 Pass OVERLAY arg to handle_single_display_spec.
24222 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24223 (load_overlay_strings): Fill in it->string_overlays.
24224 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24225
24226 * xfaces.c (face_for_overlay_string): Function renamed from
24227 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24228
24229 * dispextern.h (struct it): New elt string_overlays.
24230 New elt from_overlay, also in stack.
24231 Rearrange a few elements.
24232 (face_for_overlay_string): Decl renamed from
24233 face_at_buffer_position_no_overlays, and add argument.
24234
242352007-11-09 Richard Stallman <rms@gnu.org>
24236
24237 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24238 to get the base face for an overlay string.
24239
24240 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24241
24242 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24243
24244 * xdisp.c (handle_stop): Move some code out of loop.
24245
242462007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24247
24248 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24249 Fix conversion from Lisp object to ATSUFontID.
24250
242512007-11-09 Jason Rumney <jasonr@gnu.org>
24252
24253 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24254
242552007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24256
24257 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24258 Don't assume regions are aligned to page boundary.
24259 (print_load_command_name): Add LC_UUID if defined.
24260
242612007-11-09 Richard Stallman <rms@gnu.org>
24262
24263 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24264
242652007-11-07 Jason Rumney <jasonr@gnu.org>
24266
24267 * s/windows95.h: Remove.
24268
242692007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24270
24271 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24272 abort with a message on unhandled store_type values.
24273
242742007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24275
24276 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24277 Remove HAVE_X11R5 and HAVE_X11R4.
24278
242792007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24280
24281 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24282
242832007-11-01 Johan Bockgård <bojohan@gnu.org>
24284
24285 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24286 Don't set s->stippled_p here, since it has already been set by
24287 x_set_glyph_string_gc from x_draw_glyph_string.
24288
242892007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24290
24291 * sunfns.c: Remove file.
24292
24293 * m/sun386.h:
24294 * m/sun2.h:
24295 * m/sparc.h: Remove Sun windows code.
24296
242972007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24298
24299 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24300 (init_keyboard): Set current_kboard's window-system to nil.
24301 (tty_read_avail_input): Typo.
24302 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24303
243042007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24305
24306 * s/usg5-4.h:
24307 * s/usg5-3.h:
24308 * s/ptx.h:
24309 * m/is386.h:
24310 * m/ibmps2-aix.h:
24311 * Makefile.in: Remove all mentions of X10.
24312
24313 * dispnew.c (syms_of_display): Don't mention version 10.
24314
243152007-10-28 Juanma Barranquero <lekktu@gmail.com>
24316
24317 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24318 ($(BLD)/abbrev.$(O)): Remove.
24319
243202007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24321
24322 Rewrite abbrev.c in Elisp.
24323 * image.c (Qcount): Don't declare as extern.
24324 (syms_of_image): Initialize and staticpro `Qcount'.
24325 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24326 * emacs.c (main): Don't call syms_of_abbrev.
24327 * Makefile.in (obj): Remove abbrev.o.
24328 (abbrev.o): Remove.
24329 * abbrev.c: Remove.
24330
243312007-10-26 Martin Rudalics <rudalics@gmx.at>
24332
24333 * window.c (window_min_size_2): Don't count header-line.
24334
243352007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24336
24337 * frame.h (struct frame): Move all bit fields after the first bit
24338 field to take advantage of the available space. Group all the
24339 chars together to reduce wasted space due to padding.
24340
243412007-10-26 Juanma Barranquero <lekktu@gmail.com>
24342
24343 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24344
24345 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24346 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24347 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24348 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24349 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24350 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24351 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24352 (last_marked, mark_object_loop_halt): Make static.
24353
24354 * frame.c (syms_of_frame) <delete-frame-functions>:
24355 Fix typo in docstring.
24356
243572007-10-25 Juanma Barranquero <lekktu@gmail.com>
24358
24359 * w32.c (init_environment): Fix tiny memory leak.
24360 (w32_get_resource): Remove unused variable `ok'.
24361
243622007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24363
24364 Make `window-system' into a keyboard-local variable (rather than
24365 frame-local as done originally by multi-tty).
24366
24367 * keyboard.h (struct kboard): Add Vwindow_system.
24368 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24369 (mark_kboards): Mark Vwindow_system.
24370
24371 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24372 (init_display): Don't set the obsolete `window-system' frame-param.
24373
24374 * xterm.c (x_term_init):
24375 * w32term.c (w32_create_terminal):
24376 * term.c (init_tty): Set Vwindow_system.
24377 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24378 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24379
24380 * xfns.c (Fx_create_frame, x_create_tip_frame):
24381 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24382 * macfns.c (Fx_create_frame):
24383 Don't set the obsolete `window-system' frame-param.
24384
24385 * frame.h (Qwindow_system): Remove.
24386 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24387 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24388
243892007-10-24 Richard Stallman <rms@gnu.org>
24390
24391 * frame.c (x_figure_window_size): For fullscreen case,
24392 set USPosition | PPosition without clobbering rest of window_prompting.
24393
24394 * keyboard.c (Fcurrent_idle_time): Doc fix.
24395
24396 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24397
243982007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24399
24400 * process.c (unwind_request_sigio): Only define if __ultrix__.
24401
24402 * callproc.c (child_setup): Remove spurious *.
24403
24404 * lisp.h (Fget_text_property): Declare.
24405 (have_menus_p): Declare it here rather than in sys-dep header files.
24406 * macterm.h (have_menus_p):
24407 * msdos.h (have_menus_p):
24408 * xterm.h (have_menus_p): Remove.
24409
24410 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24411 (Fmake_variable_frame_local): Just check the variable's const-ness
24412 rather than checking nil or t.
24413
244142007-10-22 Jason Rumney <jasonr@gnu.org>
24415
24416 * w32fns.c: Include math.h.
24417 (w32_abort): Declaration moved to nt/config.nt.
24418
24419 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24420 (abort): Redefinition moved to nt/config.nt.
24421
24422 * m/windowsnt.h: Remove.
24423
244242007-10-22 Juanma Barranquero <lekktu@gmail.com>
24425
24426 * emacs.c (Fdump_emacs): Fix typo in message.
24427 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24428 <installation-directory>: Reflow docstring.
24429
244302007-10-22 Juri Linkov <juri@jurta.org>
24431
24432 * minibuf.c: Allow minibuffer default to be a list of default values.
24433 With empty input use the first element of this list as returned default.
24434 (string_to_object)
24435 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24436 (read_minibuf): If defalt is cons, set histstring to its car.
24437 (Fread_string): If default_value is cons, set val to its car.
24438 (Fread_buffer): If def is cons, use its car.
24439 (Fcompleting_read): If defalt is cons, set val to its car.
24440
244412007-10-21 Michael Albinus <michael.albinus@gmx.de>
24442
24443 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24444
244452007-10-20 Juanma Barranquero <lekktu@gmail.com>
24446
24447 * doc.c (Fdocumentation): Check for advice in all cases.
24448
244492007-10-19 Chong Yidong <cyd@stupidchicken.com>
24450
24451 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24452
244532007-10-19 Richard Stallman <rms@gnu.org>
24454
24455 * doc.c (Fdocumentation): Check for and handle an advised function.
24456
244572007-10-19 Juanma Barranquero <lekktu@gmail.com>
24458
24459 * process.c (Fset_process_filter): Doc fix.
24460
244612007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24462
24463 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24464 which caused key-translation-map to applied repeatedly (thus breaking
24465 double-mode).
24466
244672007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24468
24469 * xselect.c (x_own_selection, x_handle_selection_clear)
24470 (x_clear_frame_selections):
24471 * w32menu.c (list_of_panes, list_of_items):
24472 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24473 * textprop.c (validate_plist, interval_has_all_properties)
24474 (interval_has_some_properties, interval_has_some_properties_list)
24475 (add_properties, text_property_list):
24476 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24477 * minibuf.c (Fassoc_string):
24478 * macselect.c (x_own_selection, x_clear_frame_selections)
24479 (Fx_disown_selection_internal):
24480 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24481 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24482
244832007-10-17 Chong Yidong <cyd@stupidchicken.com>
24484
24485 * process.c: Link to libs for calling res_init() if available.
24486 (Fmake_network_process): Call res_init() before getaddrinfo or
24487 gethostbyname, if possible.
24488
244892007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24490
24491 * lread.c (read1): Set pvectype for char_tables.
24492
24493 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24494 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24495 Add type checks.
24496 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24497
24498 * alloc.c (free_misc): Use XMISCTYPE.
24499 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24500
245012007-10-17 Glenn Morris <rgm@gnu.org>
24502
24503 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24504 (syms_of_minibuf): Add Qcompletion_ignore_case.
24505 * dired.c (Qcompletion_ignore_case): Change to external.
24506 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24507 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24508 (Fread_file_name): Use it rather than intern'ing.
24509
24510 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24511 (Fread_coding_system): Ignore case of user input.
24512
245132007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24514
24515 * xdisp.c (handle_display_prop): Ignore display specs after
24516 replacing one when string text is being replaced.
24517 (handle_single_display_spec): Pretend as if characters with display
24518 property haven't been consumed only when buffer text is being replaced.
24519
245202007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24521
24522 * xfns.c (Fx_create_frame, Fx_display_list):
24523 * window.c (window_fixed_size_p, enlarge_window)
24524 (shrink_window_lowest_first):
24525 * macterm.c (init_font_name_table):
24526 * macfns.c (Fx_create_frame, Fx_display_list):
24527 * lread.c (close_load_descs):
24528 * keyboard.c (read_char_x_menu_prompt):
24529 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24530 * coding.c (code_convert_region_unwind): Test the type of an object
24531 rather than just !NILP before extracting data from it.
24532
24533 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24534
24535 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24536 (XMISCANY): New macro.
24537 (XMISCTYPE): Use it.
24538 (struct Lisp_Misc_Any): New type.
24539 (union Lisp_Misc): Use it.
24540 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24541 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24542 (find_symbol_value, set_internal, default_value, Fset_default)
24543 (Fmake_variable_buffer_local, Fmake_local_variable)
24544 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24545 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24546 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24547 * alloc.c (allocate_buffer): Set the size and tag.
24548 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24549 Use XMISCANY.
24550 (die): Follow the GNU convention for error messages.
24551 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24552 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24553 tag any more.
24554 (set_buffer_internal_1):
24555 * frame.c (store_frame_param):
24556 * eval.c (specbind):
24557 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24558
24559 * doc.c (Fsnarf_documentation): Simplify.
24560
245612007-10-14 Juanma Barranquero <lekktu@gmail.com>
24562
24563 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24564 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24565
245662007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24567
24568 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24569
245702007-10-14 Juanma Barranquero <lekktu@gmail.com>
24571
24572 * eval.c (do_autoload): Don't save autoloads.
24573
24574 * data.c (Ffset): Save autoload of the function being set.
24575
245762007-10-07 John Paul Wallington <jpw@pobox.com>
24577
24578 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24579 parameter before setting up faces.
24580
245812007-10-13 Eli Zaretskii <eliz@gnu.org>
24582
24583 * ccl.c (Fregister_code_conversion_map):
24584 * keyboard.c (append_tool_bar_item): Reformat last change.
24585
24586 * lisp.h (eabs): Rename from `abs'. All callers changed.
24587
245882007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24589
24590 * buffer.c (add_overlay_mod_hooklist):
24591 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24592 * fontset.c (make_fontset):
24593 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24594 (append_tool_bar_item):
24595 * macmenu.c (grow_menu_items):
24596 * w32menu.c (grow_menu_items):
24597 * xmenu.c (grow_menu_items): Use larger_vector.
24598
245992007-10-13 Eli Zaretskii <eliz@gnu.org>
24600
24601 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24602 selected frame'' on MSDOS).
24603
246042007-10-12 Martin Rudalics <rudalics@gmx.at>
24605
24606 * frame.c (Qexplicit_name): New variable.
24607 (x_report_frame_params): Report it in parameter alist.
24608 (syms_of_frame): Intern and staticpro it.
24609
246102007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24611
24612 * macfns.c (x_create_tip_frame): Set terminal for frame.
24613
246142007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24615
24616 * frame.c (Qenvironment): Remove.
24617 (syms_of_frame) <Qenvironment>: Don't initialize.
24618 (Fdelete_frame): Don't treat the `environment' param specially.
24619 * frame.h (Qenvironment): Don't declare.
24620 * callproc.c (set_initial_environment): Don't set unused frame param.
24621
24622 * frame.c (Fframe_with_environment): Remove.
24623 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24624
24625 * lisp.h (Fframe_with_environment): Don't declare.
24626
246272007-10-10 Juanma Barranquero <lekktu@gmail.com>
24628
24629 * indent.c (indent_tabs_mode, last_known_column)
24630 (last_known_column_modified): Make static.
24631 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24632
246332007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24634
24635 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24636
246372007-10-09 Jason Rumney <jasonr@gnu.org>
24638
24639 * w32term.c (x_set_window_size): Disable code that attempts to tell
24640 Lisp code about a size change before it actually happens.
24641
246422007-10-09 Richard Stallman <rms@gnu.org>
24643
24644 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24645 return HANDLED_RETURN.
24646
246472007-10-08 Martin Rudalics <rudalics@gmx.at>
24648
24649 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24650 when there's an unread command event.
24651
24652 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24653 window autoselection act appropriately when leaving selected frame.
24654 (syms_of_frame): Initialize focus_follows_mouse.
24655 * frame.h (focus_follows_mouse): Extern it.
24656 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24657 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24658 * msdos.c (dos_rawgetc): Likewise.
24659 * w32term.c (w32_read_socket): Likewise.
24660 * xterm.c (handle_one_xevent): Likewise.
24661 * xdisp.c (syms_of_xdisp): In doc-string of
24662 mouse-autoselect-window mention focus-follows-mouse.
24663
246642007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24665
24666 * macterm.c (mac_load_query_font): Fix missing return value.
24667 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24668 Add BLOCK_INPUT.
24669
246702007-10-08 Richard Stallman <rms@gnu.org>
24671
24672 * xdisp.c (get_window_cursor_type): Implement documented behavior
24673 for cursor-in-non-selected-windows = t.
24674
246752007-10-08 Jason Rumney <jasonr@gnu.org>
24676
24677 * w32.c (w32_get_resource): Always close registry keys.
24678
246792007-10-08 Jason Rumney <jasonr@gnu.org>
24680
24681 * makefile.w32-in (LIBS): Add COMCTL32.
24682
24683 * w32fns.c (globals_of_w32fns): Init common controls.
24684
246852007-10-08 Richard Stallman <rms@gnu.org>
24686
24687 * image.c (our_memory_buffer): Rename from omfib_buffer.
24688
246892007-10-08 Richard Stallman <rms@gnu.org>
24690
24691 * buffer.c (Foverlays_at): Doc fix.
24692
246932007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24694
24695 * fns.c (Fplist_put): Preserve uneven tail data.
24696
246972007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24698
24699 * termhooks.h (enum event_kind): Remove trailing comma.
24700
24701 * frame.h (enum): Remove trailing comma.
24702
247032007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24704
24705 * w32proc.c (delete_child): Don't terminate threads of zombies.
24706
247072007-10-08 Martin Rudalics <rudalics@gmx.at>
24708
24709 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24710
24711 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24712 last-repeatable-command.
24713 (init_kboard): Initialize Vlast_repeatable_command.
24714 (command_loop_1): Set it to real_this_command unless that was
24715 bound to an input event.
24716 (mark_kboards): Mark it.
24717
247182007-10-08 Richard Stallman <rms@gnu.org>
24719
24720 * eval.c (condition-case): Doc fix.
24721
247222007-10-08 Masatake YAMATO <jet@gyve.org>
24723
24724 * xfaces.c (tty_supports_face_attributes_p): Fix code
24725 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24726 was copied and not edited.
24727
247282007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24729
24730 Add new `input-decode-map' keymap and use it for terminal
24731 escape sequences.
24732 * keyboard.h (struct kboard): Add Vinput_decode_map.
24733 Remove Vlocal_key_translation_map.
24734 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24735 (init_kboard): Init input-decode-map.
24736 Replace local-key-translation-map back with key-translation-map.
24737 (syms_of_keyboard): Declare input-decode-map.
24738 Remove local-key-translation-map. Update docstrings.
24739 (mark_kboards): Mark Vinput_decode_map.
24740 Don't mark Vlocal_key_translation_map.
24741 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24742 Replace local-key-translation-map back with key-translation-map.
24743 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24744 Bind in input-decode-map rather than function-key-map.
24745
24746 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24747 This was made redundant by the previous introduction of XSETPVECTYPE.
24748
247492007-10-09 Richard Stallman <rms@gnu.org>
24750
24751 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24752
247532007-09-29 Richard Stallman <rms@gnu.org>
24754
24755 * eval.c (internal_condition_case_2, internal_condition_case_1)
24756 (internal_condition_case): Reenable abort if x_catching_errors ()
24757 to see if that really happens and why.
24758
247592007-10-06 Andreas Schwab <schwab@suse.de>
24760
24761 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24762
247632007-10-04 Juanma Barranquero <lekktu@gmail.com>
24764
24765 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24766
247672007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24768
24769 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24770
247712007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24772
24773 * window.h (struct window):
24774 * window.c (struct save_window_data, struct saved_window):
24775 * termhooks.h (struct terminal):
24776 * process.h (struct Lisp_Process):
24777 * frame.h (struct frame):
24778 * buffer.h (struct buffer):
24779 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24780 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24781 The size field of (pseudo)vectors is now unsigned.
24782 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24783
24784 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24785 Turn `count' into an integer.
24786
24787 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24788 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24789 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24790 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24791 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24792
24793 * alloc.c (allocate_pseudovector): New fun.
24794 (ALLOCATE_PSEUDOVECTOR): New macro.
24795 (allocate_window, allocate_terminal, allocate_frame)
24796 (allocate_process): Use it.
24797 (mark_vectorlike): New function.
24798 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24799 (mark_terminals): Use it.
24800 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24801 (Fmake_byte_code): Use XSETPVECTYPE.
24802
24803 * frame.c (Fframe_parameters): Minor simplification.
24804
24805 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24806
24807 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24808
24809 * buffer.c (Fget_buffer_create, init_buffer_once):
24810 * lread.c (defsubr):
24811 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24812
24813 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24814 defined differently in the m/*.h files.
24815 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24816 (XSETPVECTYPE): New macro.
24817 (XSETPSEUDOVECTOR): Use it.
24818
24819 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24820 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24821
24822 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24823 * lread.c (defvar_per_buffer):
24824 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24825
24826 * window.c (candidate_window_p): Only consider as visible frames that
24827 are on the same terminal.
24828
24829 * m/ibms390x.h (MARKBIT): Remove unused macro.
24830
248312007-10-01 Juanma Barranquero <lekktu@gmail.com>
24832
24833 * lread.c (Fload): Fix typo in docstring.
24834
248352007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24836
24837 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24838 of a non-zero value can't yield zero.
24839
248402007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24841
24842 * term.c (term_clear_mouse_face, term_mouse_highlight)
24843 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24844
24845 * print.c (safe_debug_print): Use XHASH.
24846
24847 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24848 Lisp elements such as tags.
24849 (XHASH): New macro.
24850 (EQ): Use it.
24851 (SREF, SSET, STRING_COPYIN): Use SDATA.
24852 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24853
24854 * alloc.c (mark_terminal): Remove left-over declaration.
24855 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24856 (allocate_vectorlike): Remove type argument. Adjust callers.
24857 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24858 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24859
24860 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24861 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24862 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24863 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24864 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24865 Use them.
24866
24867 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24868 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24869 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24870
248712007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24872
24873 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24874 loaded by default.
24875
248762007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24877
24878 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24879 on this tty.
24880 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24881
24882 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24883 Update all users.
24884 (handle_one_term_event): Use Gpm_DrawPointer.
24885 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24886 Signal errors instead of returning nil. Always return nil.
24887 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24888 Make it a noop if gpm-mouse was not activated.
24889 (syms_of_term): Update names.
24890
248912007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24892
24893 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24894 (init_sys_modes): Check that gpm_tty is the current tty.
24895
24896 * alloc.c (allocate_terminal): Set the vector size to only count the
24897 lisp fields. Initialize those to nil.
24898 (mark_object): Don't treat terminals specially.
24899 (mark_terminal): Remove.
24900 (mark_terminals): Use mark_object instead.
24901
24902 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24903 the GC to the beginning.
24904
24905 * indent.h:
24906 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24907
24908 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24909
249102007-09-25 Jason Rumney <jasonr@gnu.org>
24911
24912 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24913
24914 * w32console.c (create_w32cons_output): Remove.
24915
24916 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24917
24918 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24919 (reset_sys_modes): Use reset_terminal_modes_hook.
24920
249212007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24922
24923 * eval.c (do_autoload): Don't output any message.
24924
249252007-09-24 Juri Linkov <juri@jurta.org>
24926
24927 * emacs.c (standard_args): Change priority of "--no-splash"
24928 from 40 to 3. Add "--no-desktop" with the same priority.
24929
249302007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24931
24932 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24933 and optimize the case where they are all 1.
24934
249352007-09-23 Johannes Weiner <hannes@saeurebad.de>
24936
24937 * lisp.h (abs): Define if not defined.
24938 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24939 Don't define `abs', since it's defined in lisp.h.
24940
249412007-09-22 Eli Zaretskii <eliz@gnu.org>
24942
24943 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24944 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24945 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24946 (init_tty): Use DEV_TTY instead of "/dev/tty".
24947 [WINDOWSNT]: No need to protect from NAME arg being null.
24948
249492007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24950
24951 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24952 up the tty state.
24953
249542007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24955
24956 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24957 (gpm_tty): Change its type.
24958 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24959 (gpm_tty): Change its type and initialize it.
24960 (Fterm_open_connection): Check the frame is indeed a tty.
24961 Use the new gpm_tty.
24962 (Fterm_close_connection): Use the new gpm_tty.
24963 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24964 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24965
249662007-09-21 Juanma Barranquero <lekktu@gmail.com>
24967
24968 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24969 underline_color, to draw strike-through.
24970
249712007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24972
24973 * lisp.h (allocate_terminal): Declare.
24974
24975 * window.c (candidate_window_p): Consider frames that are being placed
24976 by the user as somewhere between visible and iconified.
24977 (window_loop): Prefer windows on the current frame.
24978 (Fselect_window): Move the use of select-frame to the beginning so we
24979 can just delegate all the work (it'll call us back anyway).
24980
24981 * frame.c (Qdisplay_environment_variable):
24982 * frame.h (Qdisplay_environment_variable): Delete.
24983
24984 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24985 of the first arg, since that value may be a union.
24986
24987 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24988 parameter rather than Qdisplay_environment_variable. If all else
24989 fails, look for DISPLAY in initial-environment.
24990
249912007-09-21 Glenn Morris <rgm@gnu.org>
24992
24993 * Makefile.in (emacstool): Remove target.
24994 (lisp, shortlisp): Remove termdev.elc.
24995
249962007-09-21 Markus Triska <markus.triska@gmx.at>
24997
24998 * xterm.c (x_delete_display): Compile session management conditionally.
24999
250002007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25001
25002 * callproc.c (getenv_internal_1): New function.
25003 (getenv_internal): Use it.
25004 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25005
25006 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25007 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25008 (Fset_terminal_parameter): Work with dead terminals as well.
25009 (Fmodify_terminal_parameters): Remove.
25010
25011 * terminal.c (get_terminal): Handle terminals.
25012 Make sure the terminal returned is live.
25013 (create_terminal): Use allocate_terminal.
25014 (mark_terminals): Move to alloc.c.
25015 (delete_terminal): Use terminal->name as liveness status.
25016 NULL out fields after freeing their contents.
25017 Don't deallocate the object.
25018 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25019 rather than an int.
25020 (Fterminal_live_p): Accept non-integer arguments.
25021 (Fterminal_list): Return terminal objects rather than an ints.
25022
25023 * alloc.c (enum mem_type): New member for `terminal' objects.
25024 (allocate_terminal): New function.
25025 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25026 Handle terminals.
25027 (mark_terminal): New fun.
25028 (mark_terminals): Move from terminal.c.
25029
25030 * term.c (get_tty_terminal): Don't treat output_initial specially.
25031 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25032 (delete_tty): Use terminal->name as liveness status.
25033
25034 * termhooks.h (struct terminal): Make it into a pseudovector.
25035 Remove `deleted' replaced by checking `name's nullness.
25036
25037 * print.c (print_object): Handle terminals.
25038
25039 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25040 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25041
25042 * frame.c (make_terminal_frame):
25043 * keyboard.c (tty_read_avail_input):
25044 * w32term.c (x_delete_terminal):
25045 * xfns.c (Fx_create_frame, x_create_tip_frame):
25046 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25047
250482007-09-20 Glenn Morris <rgm@gnu.org>
25049
25050 * process.c (Fmake_network_process): Doc fix.
25051
250522007-09-19 Jason Rumney <jasonr@gnu.org>
25053
25054 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25055
250562007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25057
25058 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25059 Fix a C warning regarding variable constness.
25060
25061 * xterm.c (handle_one_xevent): Fix a C warning.
25062
250632007-09-18 Jason Rumney <jasonr@gnu.org>
25064
25065 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25066
250672007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25068
25069 * gtkutil.c (gdpy_def): New variable.
25070 (xg_initialize): Initialize gdpy_def.
25071 (xg_display_close): If no other display exists, set gdpy_def to a
25072 new connection.
25073
250742007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25075
25076 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25077 when we have no file name for the icon.
25078 (xg_tool_bar_expose_callback): Remove.
25079 (xg_create_tool_bar): Don't connect expose signal to
25080 xg_tool_bar_expose_callback.
25081 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25082
250832007-09-16 Andreas Schwab <schwab@suse.de>
25084
25085 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25086 values instead of zapping them.
25087
250882007-09-14 Glenn Morris <rgm@gnu.org>
25089
25090 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25091 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25092 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25093 scope and rename to omfib_buffer for clarity.
25094 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25095
250962007-09-14 Kenichi Handa <handa@m17n.org>
25097
25098 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25099
251002007-09-13 Jason Rumney <jasonr@gnu.org>
25101
25102 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25103
25104 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25105
25106 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25107 (mac_term_init): Call here instead, passing rif.
25108
251092007-09-13 Glenn Morris <rgm@gnu.org>
25110
25111 * s/hpux.h: No longer define `static' as nothing.
25112
251132007-09-13 Johan Bockgård <bojohan@gnu.org>
25114
25115 * callint.c (Fcall_interactively): Remove unused var `fun'.
25116
251172007-09-12 Romain Francoise <romain@orebokech.com>
25118
25119 * window.c (prefer_window_split_horizontally, display_buffer):
25120 Revert 2007-09-08 change.
25121
251222007-09-12 Glenn Morris <rgm@gnu.org>
25123
25124 * alloca.c: Remove file.
25125 * Makefile.in (alloca): Do not undef.
25126 (allocaobj, alloca.o): Remove.
25127 (otherobj): Remove allocaobj.
25128 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25129 * regex.c (C_ALLOCA): Remove all references and code that was only
25130 used when this was defined.
25131 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25132 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25133 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25134
25135 * Makefile.in (SOURCES, unlock, relock): Delete.
25136
25137 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25138 (menu_grab_callback): All uses changed.
25139
25140 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25141 (x_reply_selection_request): All uses changed.
25142
251432007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25144
25145 * lread.c (load_warn_old_style_backquotes): Change message to look
25146 better when it appears in the middle of byte-compiler messages.
25147
251482007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25149
25150 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25151
25152 * xterm.c (x_create_terminal): Add comment.
25153
25154 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25155
251562007-09-10 Richard Stallman <rms@gnu.org>
25157
25158 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25159
251602007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25161
25162 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25163 (DEFUN): Document `intspec', use it instead of `prompt'.
25164
25165 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25166
25167 * data.c (Finteractive_form): If the interactive specification starts
25168 with a `(', use it as a Lisp form.
25169
25170 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25171 name and file modes.
25172
25173 * callint.c (Fcall_interactively): Comment fixes.
25174
251752007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25176
25177 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25178 and compiled functions.
25179
251802007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25181
25182 * window.c (prefer_window_split_horizontally): New variable.
25183 (display_buffer): Consider splitting window horizontally depending
25184 on prefer_window_split_horizontally.
25185
251862007-09-08 Eli Zaretskii <eliz@gnu.org>
25187
25188 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25189
251902007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25191
25192 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25193
25194 * frame.c (x_set_frame_parameters): Check number is positive before
25195 using XFASTINT.
25196
25197 * window.c (freeze_window_start): Don't presume selected_window holds
25198 a window object.
25199 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25200
252012007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25202
25203 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25204
252052007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25206
25207 * window.c (Vsplit_window_preferred_function): New var.
25208 (Fdisplay_buffer): Use it.
25209 (syms_of_window): Export, and initialize it.
25210
252112007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25212
25213 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25214
252152007-09-06 Glenn Morris <rgm@gnu.org>
25216
25217 * gtkutil.c (menu_grab_callback) <cnt>:
25218 * xselect.c (x_reply_selection_request) <cnt>: Move static
25219 variable to file scope.
25220
252212007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25222
25223 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25224 consistent values of selected_frame and selected_window.
25225
252262007-09-04 Jason Rumney <jasonr@gnu.org>
25227
25228 * w32console.c (initialize_w32_display): Zero unused hooks.
25229
252302007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25231
25232 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25233 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25234
252352007-09-04 Jason Rumney <jasonr@gnu.org>
25236
25237 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25238 in w32console.c. Set up input. Remove XXX comments that have been
25239 confirmed as correct.
25240
25241 * s/ms-w32.h (MULTI_KBOARD): Define.
25242
25243 * w32console.c (one_and_only_w32cons): Remove.
25244 (initialize_w32_display): Take terminal argument.
25245
25246 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25247 initialize_w32_display.
25248 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25249
25250 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25251
25252 * keyboard.c (discard_mouse_events): Discard it.
25253 (make_lispy_event): Translate it to a lisp event.
25254 (lispy_wheel_names): Add wheel-left and right events.
25255 (syms_of_keyboard): Enlarge wheel_syms.
25256
25257 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25258 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25259
25260 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25261
25262 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25263 from WM_MOUSEHWHEEL.
25264 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25265
25266 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25267 terminal.
25268
25269 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25270 keyboard for the terminal.
25271
252722007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25273
25274 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25275 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25276 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25277 and resume-tty-function to resume-tty-hook.
25278 (Fsuspend_tty, Fresume_tty): Use new names.
25279
252802007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25281
25282 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25283 if it starts with "n:".
25284
252852007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25286
25287 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25288
252892007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25290
25291 * frame.h:
25292 * frame.c (Qterm_environment_variable): Remove.
25293 (syms_of_frame): Don't init and staticpro it.
25294
25295 * callproc.c (getenv_internal): Remove special case for $TERM.
25296
25297 * callproc.c (Vinitial_environment): New variable.
25298 (set_initial_environment): Initialize it.
25299 (syms_of_callproc): Declare it.
25300 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25301 TERM under which a process runs is never related to the TERM in which
25302 Emacs is running.
25303
253042007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25305
25306 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25307 * s/darwin.h: ... do it here.
25308
253092007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25310
25311 * lisp.h (set_initial_environment): Rename from set_global_environment.
25312
25313 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25314 removed by mistake on the multi-tty branch.
25315
25316 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25317 (Fmodify_frame_parameters): Return a value.
25318
25319 * image.c (png_load): Comment-out var only used in commented-out code.
25320
25321 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25322 before passing it to mark_object.
25323
25324 * xfaces.c (internal_resolve_face_name): Return a value.
25325 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25326
25327 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25328 (x_icon): Comment-out var only used in commented-out code.
25329
253302007-08-29 Romain Francoise <romain@orebokech.com>
25331
25332 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25333 QUIT hasn't been provided.
25334
253352007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25336
25337 * callproc.c (child_setup, getenv_internal): Use the
25338 display-environment-variable and term-environment-variable frame params.
25339 (set_initial_environment): Initialise Vprocess_environment.
25340
25341 * config.in: Disable multi-keyboard support on a mac.
25342
25343 * frame.c (Qterm_environment_variable)
25344 (Qdisplay_environment_variable): New variables.
25345 (syms_of_frame): Intern and staticpro them.
25346 (Fmake_terminal_frame): Disable output method test.
25347
25348 * frame.h: Declare them here.
25349
25350 * macfns.c (x_set_mouse_color): Get rif from the frame.
25351 (x_set_tool_bar_lines): Don't use updating_frame.
25352 (mac_window): Add 2 new parameters for consistency with other systems.
25353 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25354 frame parameters following what is done in X11 and w32. Don't use
25355 FRAME_MAC_DISPLAY_INFO.
25356 (Fx_open_connection, start_hourglass): Remove window-system check.
25357 (x_create_tip_frame): Get the keyboard from the terminal.
25358
25359 * macmenu.c: Reorder includes.
25360 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25361
25362 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25363 terminal parameter.
25364 (x_clear_frame): Add a frame parameter.
25365 (note_mouse_movement): Get rif from the frame.
25366 (mac_term_init): Initialize the terminal.
25367 (mac_initialize): Make static and move terminal initialization ...
25368 (mac_create_terminal): ... to this new function.
25369
25370 * macterm.h (struct mac_display_info): Add terminal.
25371 (mac_initialize): Delete declaration.
25372
25373 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25374
25375 * sysdep.c: Comment out text after #endif.
25376
25377 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25378 is defined. Better initialize ttys in windows. Use terminal
25379 specific mouse_position_hook.
25380
25381 * termhooks.h (union display_info): Add mac_display_info.
25382
25383 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25384 Set the default minibuffer frame, window_system and the rest of the
25385 frame parameters following what is done in X11.
25386
25387 * w32term.c (w32_initialize): Make static.
25388
25389 * xselect.c (x_handle_selection_clear): Only access
25390 terminal->kboard when MULTI_KBOARD is defined.
25391
25392 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25393 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25394
253952007-08-29 Jason Rumney <jasonr@gnu.org>
25396
25397 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25398 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25399
25400 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25401 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25402
25403 * keyboard.c (restore_kboard_configuration): Only define when
25404 MULTI_KBOARD defined.
25405
25406 * makefile.w32-in: Update dependancies from Makefile.in.
25407 (OBJ1): Add terminal.$(O)
25408
25409 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25410 Don't define function body.
25411 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25412
25413 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25414
25415 * w32.c (request_sigio, unrequest_sigio): Remove.
25416
25417 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25418 (w32con_clear_frame, w32con_clear_end_of_line)
25419 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25420 (w32con_delete_glyphs, w32con_set_terminal_window)
25421 (scroll_line, w32_sys_ring_bell): Add frame arg.
25422 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25423 Add terminal arg.
25424 (PICK_FRAME): Remove.
25425 (w32con_write_glyphs): Use frame specific terminal coding.
25426 (one_and_only_w32cons): New global variable.
25427 (initialize_w32_display): Use it for storing hooks.
25428 (create_w32cons_output): New function.
25429
25430 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25431 arg a frame.
25432
25433 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25434 Set window_system.
25435 (x_set_tool_bar_lines): Don't use updating_frame.
25436 (Fx_create_frame): Set terminal and ref count.
25437 (Fx_open_connection): Remove window-system check.
25438
25439 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25440
25441 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25442 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25443 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25444 Add frame arg.
25445 (x_delete_terminal, w32_create_terminal): New functions.
25446 (w32_term_init): Create a terminal.
25447 (w32_initialize): Move terminal specific initialization to
25448 w32_create_terminal.
25449
25450 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25451 (w32_clear_rect, w32_clear_area): Use background from frame.
25452 (w32_display_info): Add terminal.
25453 (w32_sys_ring_bell, x_delete_display): Declare here.
25454
25455 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25456
25457 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25458
254592007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25460
25461 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25462 Fix get_named_tty calls for the controlling tty.
25463
254642007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25465
194d44e7 25466 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
25467
254682007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25469
25470 * term.c (tty_insert_glyphs): Add missing first parameter.
25471
254722007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25473
25474 * buffer.c (Fbuffer_list, Fbury_buffer):
25475 Take frame->buried_buffer_list into account.
25476
25477 * cm.c (current_tty): New variable, for cmputc().
25478 (cmputc): Use it.
25479 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25480 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25481 (cmgoto): Add tty parameter. Pass it on to calccost().
25482 Use emacs_tputs() instead of tputs().
25483
25484 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25485 tputs().
25486 (current_tty): New variable, for cmputc().
25487 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25488
25489 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25490 (internal_condition_case, internal_condition_case_1)
25491 (internal_condition_case_2): Don't abort when x_catching_errors.
25492
25493 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25494 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25495 prevent crashes caused by bogus longjmps in read_char.
25496
25497 * keymap.h (Fset_keymap_parent): Add EXFUN.
25498
25499 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25500 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25501 Remove redundant definition.
25502
25503 * macfns.c (x_set_mouse_color, x_make_gc):
25504 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25505
25506 * w32term.c (x_free_frame_resources):
25507 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25508 (w32_initialize): Use the accessor macros for terminal characteristics.
25509
25510 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25511 Use the accessor macros for terminal characteristics.
25512 * msdos.c (internal_terminal_init): Use the accessor macros for
25513 terminal characteristics.
25514 (ScreenVisualBell, internal_terminal_init):
25515 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25516
25517 * termopts.h (no_redraw_on_reenter): Declare.
25518
25519 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25520 (mark_terminals, mark_ttys): Declare.
25521 (Fgarbage_collect): Call them.
25522 (mark_object): Mark buried_buffer_list.
25523
25524 * prefix-args.c: Include stdlib.h for exit.
25525
25526 * syssignal.h: Add comment.
25527
25528 * indent.c: Include stdio.h.
25529
25530 * window.h (Vinitial_window_system): Declare.
25531 (Vwindow_system): Delete declaration.
25532
25533 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25534
25535 * image.c (lookup_image): Don't initialize `c' until the xasserts
25536 have been run.
25537
25538 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25539 FRAME_FOREGROUND_PIXEL.
25540
25541 * print.c (print_preprocess): Don't lose print_depth levels while
25542 iterating.
25543
25544 * widget.c (update_from_various_frame_slots):
25545 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25546
25547 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25548 frames.
25549 (window_internal_height): Remove bogus make_number call.
25550 (init_window_once): Call make_terminal_frame with two zero parameters.
25551
25552 * fileio.c (Fread_file_name): Update comment.
25553
25554 * callint.c (Fcall_interactively):
25555 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25556 Make sure it is correctly unwound.
25557
25558 * xsmfns.c (x_session_close): New function.
25559
25560 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25561 Delete declarations.
25562
25563 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25564 (x_output): Remove background_pixel and foreground_pixel fields.
25565 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25566 (x_delete_device, x_session_close): Declare.
25567
25568 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25569 (read_filtered_event): Call `read_char' with a local
25570 `wrong_kboard_jmpbuf'.
25571
25572 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25573 Don't call single_kboard_state. Use FRAME_RIF.
25574
25575 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25576 systems.
25577
25578 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25579 (Fframe_with_environment, Fset_input_meta_mode)
25580 (Fset_quit_char): EXFUN.
25581 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25582 (init_sys_modes, reset_sys_modes): Update prototypes.
25583 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25584
25585 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25586 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25587 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25588 Delete declarations.
25589 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25590 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25591 New declarations.
25592
25593 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25594 already does that during init_display(). Call syms_of_keymap
25595 before syms_of_keyboard. Call `syms_of_terminal'.
25596 Call set_initial_environment, not set_process_environment.
25597 (shut_down_emacs): Call reset_all_sys_modes() instead of
25598 reset_sys_modes().
25599
25600 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25601 (internal_resolve_face_name, resolve_face_name_error): New functions.
25602 (resolve_face_name): Protect against loops and errors thrown by Fget.
25603 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25604 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25605
25606 * scroll.c: Replace CURTTY() with local variables throughout the
25607 file (where applicable).
25608 (calculate_scrolling, calculate_direct_scrolling)
25609 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25610 characteristics.
25611
25612 * keymap.c (Vfunction_key_map): Remove.
25613 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25614 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25615 (Vkey_translation_map): Remove.
25616 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25617 (Fdescribe_buffer_bindings)
25618 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25619 Update for terminal-local key-translation-map.
25620
25621 * Makefile.in (callproc.o): Update dependencies.
25622 (lisp, shortlisp): Add termdev.elc.
25623 (obj): Add terminal.o.
25624 (terminal.o): Add dependencies.
25625 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25626 (data.o, fns.o): Add termhooks.h dependency.
25627 (SOME_MACHINE_LISP): Add dnd.elc.
25628 (minibuf.o): Fix typo.
25629 Update dependencies.
25630
25631 * data.c (do_symval_forwarding, store_symval_forwarding)
25632 (find_symbol_value): Use the selected frame's keyboard, not
25633 current_kboard.
25634
25635 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25636 Vwindow_system.
25637
25638 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25639 Fmenu_bar_open.
25640 (syms_of_xmenu): Update defsubr.
25641 (mouse_position_for_popup, Fx_popup_menu)
25642 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25643 (set_frame_menubar, free_frame_menubar)
b97439ce 25644 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
25645 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25646 an X frame.
25647
25648 * xselect.c (x_own_selection): Abort if not an X frame.
25649 (some_frame_on_display): Check if it is an X frame.
25650 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25651
25652 * coding.c: Include frame.h and termhooks.h.
25653 (terminal_coding, keyboard_coding): Delete.
25654 (Fset_terminal_coding_system_internal)
25655 (Fset_keyboard_coding_system_internal)
25656 (Fkeyboard_coding_system)
25657 (Fterminal_coding_system): Add a terminal parameter.
25658 Get terminal_coding from the terminal.
25659 (init_coding_once): Don't call setup_coding_system here.
25660
25661 * dispextern.h (set_scroll_region, turn_off_insert)
25662 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25663 (tty_clear_end_of_line, tty_setup_colors)
25664 (delete_tty, updating_frame)
25665 (produce_special_glyphs, produce_glyphs, write_glyphs)
25666 (insert_glyphs): Remove.
25667 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25668 (tty_turn_off_highlight, get_tty_size): Add declaration.
25669 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25670
25671 * frame.h (enum output_method): Add output_initial.
25672 (struct x_output): Delete.
25673 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25674 Access foreground_pixel and background_pixel directly from the frame.
25675 (tty_display): Delete.
25676 (struct frame): Add buried_buffer_list, foreground_pixel,
25677 background_pixel and terminal. Delete kboard.
25678 (union output_data): Add tty.
25679 (FRAME_KBOARD): Get the kboard from the terminal.
25680 (FRAME_INITIAL_P): New macro.
25681 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25682 (Qterm_environment_variable, Qdisplay_environment_variable)
25683 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25684 New declarations.
25685
25686 * termchar.h (tty_output, tty_display_info): New structures.
25687 (tty_list): Declare.
25688 (FRAME_TTY, CURTTY): New macros.
25689 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25690 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25691 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25692 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25693
25694 * callproc.c: Include frame.h and termhooks.h, for terminal
25695 parameters.
25696 (add_env): New function.
25697 (child_setup): Use it.
25698 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25699 (getenv_internal): Fix get_terminal_param call.
25700 (Fgetenv_internal, egetenv): Update doc.
25701 (syms_of_callproc): Initialize Vprocess_environment to nil.
25702 Register and initialize them. Remove obsolete defvars. Update doc
25703 strings.
25704 (child_setup): Handle Vlocal_environment_variables.
25705 (getenv_internal): Add terminal parameter.
25706 Handle Vlocal_environment_variables.
25707 (Fgetenv_internal): Add terminal parameter.
25708 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25709 environment in a frame (not terminal) parameter. Update doc strings.
25710 (set_initial_environment): Rename from set_global_environment.
25711 Store Emacs environment in initial frame parameter.
25712
25713 * xdisp.c (redisplay_internal): Update references to
25714 `previous_terminal_frame'.
25715 (display_mode_line, Fformat_mode_line): Replace calls to
25716 `push_frame_kboard' with `push_kboard'.
25717 (get_glyph_string_clip_rects): Add extra parentheses and
25718 braces to prevent compiler warnings.
25719 (calc_pixel_width_or_height): Add xassert to check that the
25720 frame is alive. Don't call `lookup_image' on a termcap frame.
25721 (message2_nolog, message3_nolog, redisplay_internal)
25722 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25723 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25724 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25725 (Fx_display_pixel_width, Fx_display_pixel_height)
25726 (Fx_display_planes, Fx_display_color_cells)
25727 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25728 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25729 (Fx_display_backing_store, Fx_display_visual_class)
25730 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25731 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25732
25733 * xfns.c (x_set_foreground_color x_set_background_color)
25734 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25735 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25736 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25737 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25738 terminal that is being deleted.
25739 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25740 frame parameter, and make sure it overrides any user-supplied setting.
25741 (Fx_close_connection, Fx_synchronize): Unify argument names with
25742 the rest of the DEFUNs.
25743
25744 * dispnew.c (Fsend_string_to_terminal): Update call to
25745 `get_tty_terminal'.
25746 (Fredraw_frame, Fsend_string_to_terminal)
25747 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25748 FRAME_TERMCAP_P and FRAME_TTY.
25749 (window_change_signal): Don't believe width/height values that are
25750 impossibly small.
25751 (Vinitial_window_system): Rename from Vwindow_system.
25752 (termscript, Wcm, rif): Delete.
25753
25754 * termhooks.h (struct terminal): New struct containing the
25755 previously global text display hooks and new members NAME,
25756 DELETED and PARAM_ALIST.
25757 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25758 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25759 (FRAME_RIF): New macros.
25760 (get_terminal_param, get_device): New declarations.
25761 (termscript): Delete declaration.
25762
25763 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25764 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25765 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25766 FRAME_FOREGROUND_PIXEL.
25767 (x_fully_uncatch_errors): Disable definition.
25768 (x_scroll_bar_expose): Fix reference to foreground pixel.
25769 (XTread_socket): Disable loop on all X displays.
25770 (x_delete_terminal): Don't set terminal->deleted and let
25771 delete_terminal delete the frames on the terminal.
25772 (x_delete_display): Doc update to reflect changes in
25773 delete_terminal.
25774 (x_display_info) <terminal>: Move member earlier in the struct.
25775 (deleting_tty): Remove old variable.
25776 (Fsuspend_tty): Call clear_tty_hooks.
25777 (Fresume_tty, init_tty): Call set_tty_hooks.
25778 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25779 errors on X frames.
25780 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25781 (handle_one_xevent): Initialize `f' to NULL.
25782 (x_delete_terminal, x_create_terminal): New functions.
25783 (XTset_terminal_modes, XTreset_terminal_modes)
25784 (XTread_socket, x_connection_closed, x_term_init)
25785 (x_term_init, x_delete_display): Add terminal parameter.
25786 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25787 X connections.
25788
25789 * frame.c: Include termchar.h.
25790 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25791 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25792 (Qdisplay_environment_variable): New vars.
25793 (Fframep): Deal with output_initial.
25794 (Fframe-live-p): Doc fix.
25795 (Fwindow-system): New function.
25796 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25797 (make_terminal_frame): Don't create frames on a terminal that is
25798 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25799 (store_frame_param): Check for found_for_frame before calling XFRAME.
25800 (Fmake_terminal_frame): Handle NULL tty names correctly.
25801 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25802 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25803 frames to refer to a deleted frame in their 'environment parameter.
25804 (Fframe_with_environment): New function.
25805 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25806 (get_future_frame_param): New function.
25807 (Fmake_terminal_frame): Use it.
25808 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25809
25810 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25811 * sysdep.c (reset_sys_modes): Update for renames.
25812
25813 * keyboard.c (tty_read_avail_input): New function.
25814 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25815 (syms_of_keyboard): Defsubr them.
25816 (Fset_input_meta_mode, Fset_quit_char): New functions.
25817 (Fset_input_mode): Split to above functions.
25818 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25819 parameter. Use it in call to `read_char'.
25820 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25821 Set wrong_kboard_jmpbuf correctly in recursive calls.
25822 Use current_kboard to access Vkeyboard_translate_table.
25823 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25824 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25825 Update longjmp invocations. Remember the original current_kboard,
25826 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25827 changes it. Comment out unnecessary calls to
25828 `record_single_kboard_state' and `any_kboard_state'.
25829 Update recursive calls.
25830 (wrong_kboard_jmpbuf): Remove global variable.
25831 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25832 Handle deleted interrupted_kboards correctly; that is a legal
25833 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25834 and read_char calls. Abort if interrupted_kboard died in read_char.
25835 (any_kboard_state, single_kboard_state)
25836 (push_frame_kboard): Remove function.
25837 (pop_kboard): Switch out of single_kboard mode if the kboard has
25838 been deleted. Remove unused variable. Help debugging by not
25839 changing current_kboard unnecessarily. Set current_kboard to the
25840 kboard of the selected frame when the stored kboard object has
25841 been deleted before pop_kboard.
25842 (temporarily_switch_to_single_kboard): Change first parameter to a
25843 frame pointer. Throw an error when caller wants to change kboards
25844 while in single_kboard mode. Don't push_kboard if we weren't in
25845 single kboard state. Don't pop_kboard if we popped into any
25846 kboard state.
25847 (restore_kboard_configuration): Abort if pop_kboard changed the
25848 kboard in single_kboard mode. Call pop_kboard only after setting
25849 up single_kboard mode.
25850 (Frecursive_edit): Switch to single_kboard mode only in nested
25851 command loops.
25852 (cmd_error, command_loop, command_loop_1, timer_check):
25853 Comment out unnecessary call to `any_kboard_state' and
25854 `record_single_kboard_state'.
25855 (delete_kboard): Exit single_kboard mode if we have just deleted
25856 that kboard. Use FRAME_KBOARD.
25857 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25858 `fatal_error_signal'.
25859 (record_single_kboard_state): Don't push_kboard if we weren't in
25860 single kboard state. Don't pop_kboard if we popped into any
25861 kboard state.
25862 (push_frame_kboard): Rename to push_kboard.
25863 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25864 (read_avail_input): Read input from all terminals.
25865 (mark_kboards): Also mark Vkeyboard_translate_table.
25866 (kbd_buffer_store_event_hold): Simplify condition.
25867 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25868 (Vkeyboard_translate_table): Move to struct kboard.
25869 (init_kboard): Initialize Vkeyboard_translate_table.
25870 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25871 Vkeyboard_translate_table. Update doc strings. Update docs of
25872 local-function-key-map and function-key-map.
25873
25874 * terminal.c: New file.
25875
25876 * term.c: Include errno.h.
25877 (Vring_bell_function, device_list, initial_device)
25878 (next_device_id, ring_bell, update_begin, update_end)
25879 (set_terminal_window, cursor_to, raw_cursor_to)
25880 (clear_to_end, clear_frame, clear_end_of_line)
25881 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25882 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25883 (syms_of_term): Move their initialization to terminal.c.
25884 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25885 (Ftty_display_color_cells)
25886 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25887 (clear_tty_hooks, set_tty_hooks)
25888 (init_tty, maybe_fatal): New functions.
25889 (Ftty_type): Return nil if terminal is not on a tty instead of
25890 throwing an error. Doc update.
25891 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25892 Doc update. Initialize new subrs and variables.
25893 (delete_tty): Use terminal->deleted.
25894 (tty_set_terminal_modes): Rename from set_terminal_modes.
25895 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25896 (set_scroll_region): Rename to `tty_set_scroll_region'.
25897 (turn_on_insert): Rename to `tty_turn_on_insert'.
25898 (turn_off_insert): Rename to `tty_turn_off_insert'.
25899 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25900 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25901 (toggle_highligh): Rename to `tty_toggle_highlight'.
25902 (background_highlight): Rename to `tty_background_highlight'.
25903 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25904 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25905 (tty_set_scroll_region, tty_background_highlight)
25906 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25907 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25908 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25909 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25910 Add static modifier.
25911 (tty_reset_terminal_modes, tty_set_terminal_window)
25912 (tty_set_scroll_region, tty_background_highlight)
25913 (tty_highlight_if_desired, tty_cursor_to)
25914 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25915 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25916 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25917 renames.
25918
259192007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25920
25921 * keyboard.c: Qrtl is new.
25922 (parse_tool_bar_item): Handle :rtl keyword.
25923 (syms_of_keyboard): Intern :rtl keyword.
25924
25925 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25926
25927 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25928 so no Lisp code is executed.
25929 (file_for_image, find_rtl_image): New functions.
25930 (xg_get_image_for_pixmap): Use file_for_image.
25931 (update_frame_tool_bar): If direction is RTL, use RTL image if
25932 defined. Use Gtk stock images if defined.
25933
259342007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25935
25936 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25937 for nonexistent or zero-width glyph in composition glyph.
25938
259392007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25940
25941 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25942
25943 * xdisp.c (Finvisible_p): New function.
25944 (syms_of_xdisp): defsubr it.
25945
259462007-08-24 Juanma Barranquero <lekktu@gmail.com>
25947
25948 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25949 Doc fixes.
25950
259512007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25952
25953 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25954
259552007-08-24 Martin Rudalics <rudalics@gmx.at>
25956
25957 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25958 whether decoding has modified buffer contents.
25959
259602007-08-24 Jason Rumney <jasonr@gnu.org>
25961
25962 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25963 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25964 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25965 (init_svg_functions) [HAVE_NTGUI]: New function.
25966 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25967 (svg_load_image): Use them.
25968 (svg_load_image) [HAVE_NTGUI]: Implement background.
25969
259702007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25971
25972 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25973 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25974 (LIBX): Remove @RSVG_LIBS@.
25975 (LIBES): Add $(RSVG_LIBS).
25976
25977 * image.c (svg_load_image): Blend with specified background if exists.
25978 Use IMAGE_BACKGROUND. Add Mac OS Support.
25979
25980 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25981 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25982 Remove macros.
25983 [MAC_OSX] (socket_callback): Do nothing.
25984 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25985 ReceiveNextEvent.
25986 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25987 socket_callback.
25988 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25989
259902007-08-22 Glenn Morris <rgm@gnu.org>
25991
25992 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25993
259942007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25995
25996 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25997
25998 * image.c: Add support for SVG images. Some additional comments
25999 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26000 (svg_image_p): New function to test for SVG image.
26001 (svg_load): New function to load SVG image.
26002 (svg_load_image): New function, helper for svg_load.
26003 (Qsvg): New Lisp_object.
26004 (svg_keyword_index): New enum.
26005 (svg_format): New static `image_keyword' struct.
26006 (svg_type): New static `image_type' struct.
26007 (librsvg/rsvg.h): Include it.
26008
260092007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26010
26011 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26012
260132007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26014
26015 * lread.c (Qold_style_backquotes): New var.
26016 (syms_of_lread): Init and staticpro it.
26017 (load_warn_old_style_backquotes): New fun.
26018 (Fload): Use them to warn about old style backquotes.
26019 (end_of_file_error, Fload): Remove unused vars.
26020
26021 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26022
26023 * lread.c (Vold_style_backquotes): New var.
26024 (syms_of_lread): Init and export it to Elisp.
26025 (read1): Set it when we find an old-style (back)quote.
26026
260272007-08-22 Jason Rumney <jasonr@gnu.org>
26028
26029 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26030
260312007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26032
26033 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26034
260352007-08-19 Richard Stallman <rms@gnu.org>
26036
26037 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26038
260392007-08-19 Andreas Schwab <schwab@suse.de>
26040
26041 * alloc.c (pure): Round PURESIZE up.
26042
260432007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26044
26045 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26046 active frame.
26047
260482007-08-16 Richard Stallman <rms@gnu.org>
26049
26050 * eval.c (Fcommandp): Add parens to clarify.
26051
26052 * minibuf.c (Fall_completions): Use enum for type of table.
26053
26054 * emacs.c (USAGE2): Improve text.
26055
260562007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26057
26058 * term.c (tty_default_color_capabilities): Declare static
26059 variables in file scope, to avoid HPUX compiler problem.
26060
260612007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26062
26063 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26064 to gtk_toolbar_insert.
26065
260662007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26067
26068 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26069
26070 * insdel.c (reset_var_on_error): New fun.
26071 (signal_before_change, signal_after_change):
26072 Use it to reset (after|before)-change-functions to nil in case of error.
26073 Bind inhibit-modification-hooks to t.
26074 Don't bind (after|before)-change-functions to nil while they run.
26075
260762007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26077
26078 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26079 filling pixmap with stippled background.
26080
260812007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26082
26083 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26084 Don't use invisible frame as parent window for repositioning.
26085
260862007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26087
26088 * print.c (new_backquote_output): Rename from old_backquote_output.
26089 (print): Inverse its logic (according to its name) so as to match the
26090 behavior of new_backquote_flag in lread.c.
26091
260922007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26093
26094 * gmalloc.c (posix_memalign): New function.
26095
26096 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26097 ActivateControl/DeactivateControl here.
26098 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26099 frame-notice-user-settings is non-nil.
26100 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26101 for kEventParamFMFontStyle.
26102 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26103 mac_pass_command_to_system and mac_pass_control_to_system here.
26104 (XTread_socket): Call ActivateControl/DeactivateControl here.
26105 (XTread_socket) [TARGET_API_MAC_CARBON]:
26106 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26107 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26108 for window repositioning.
26109
261102007-08-08 Glenn Morris <rgm@gnu.org>
26111
26112 * Replace `iff' in doc-strings and comments.
26113
261142007-08-07 Chong Yidong <cyd@stupidchicken.com>
26115
26116 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26117
261182007-08-07 Martin Rudalics <rudalics@gmx.at>
26119
26120 * fileio.c (Finsert_file_contents): Run format-decode and
26121 after_insert_file_functions on entire buffer when REPLACE is
26122 non-nil and inhibit modification_hooks and point_motion_hooks.
26123 For consistency, run after_insert_file_functions iff something
26124 got inserted. Move signal_after_change and update_compositions
26125 after code running after_insert_file_functions. Make sure that
26126 undo_list doesn't record intermediate steps of the decoding process.
26127
261282007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26129
26130 * emacs.c (main)
26131 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26132 Call malloc_enable_thread on interactive startup.
26133
26134 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26135 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26136 [USE_PTHREAD]: Conditionalize with it.
26137 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26138 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26139 New functions.
26140
261412007-08-06 Chong Yidong <cyd@stupidchicken.com>
26142
26143 * xdisp.c (redisplay_window): When restoring original buffer
26144 position, make sure it is still valid.
26145
26146 * image.c (png_load): Ignore png-supplied background color.
26147
261482007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26149
26150 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26151 Use kCFAbsoluteTimeIntervalSince1970.
26152
26153 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26154 New variable.
26155 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26156 event loop should be quit.
26157 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26158 Quit dialog event loop if quit_dialog_event_loop is set.
26159
26160 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26161 (Selection): New typedef. Use instead of ScrapRef.
26162 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26163 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26164 (mac_clear_selection): Rename from clear_scrap.
26165 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26166 scrap_has_target_type. All uses changed.
26167 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26168 (mac_selection_has_target_p): New functions.
26169 (mac_put_selection_value): Rename from put_scrap_string.
26170 (mac_get_selection_value): Rename from get_scrap_string.
26171 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26172 (put_scrap_private_timestamp, scrap_has_target_type)
26173 (get_scrap_private_timestamp): Remove functions.
26174 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26175 (x_own_selection, x_get_local_selection):
26176 Use mac_valid_selection_value_p.
26177 (x_own_selection): Don't use put_scrap_private_timestamp.
26178 Record OWNERSHIP-INFO into Vselection_alist instead.
26179 (x_get_local_selection): Don't check type if request is local.
26180 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26181 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26182
261832007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26184
26185 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26186 add comment explaining why.
26187
261882007-08-03 Richard Stallman <rms@gnu.org>
26189
26190 * fileio.c (Fvisited_file_modtime): Use make_time.
26191
261922007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26193
26194 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26195 build.
26196
261972007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26198
26199 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26200
262012007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26202
26203 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26204
262052007-07-30 Richard Stallman <rms@gnu.org>
26206
26207 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26208
262092007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26210
26211 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26212
262132007-07-28 Nick Roberts <nickrob@snap.net.nz>
26214
26215 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26216 remote default-directory.
26217
26218 * buffer.c (mode-line-format): Update doc string.
26219
262202007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26221
26222 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26223 scroll bar gap.
26224 (x_scroll_bar_create): Set bar->fringe_extended_p.
26225 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26226 on frame edge. Check fringe background extension. Don't clear
26227 extended fringe background area.
26228
26229 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26230 (w32_fill_area): Enclose multiple statements with do ... while (0).
26231
26232 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26233 Extend fringe background to scroll bar gap.
26234 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26235 Set bar->fringe_extended_p.
26236 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26237 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26238 background extension. Don't clear extended fringe background area.
26239
26240 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26241 New member fringe_extended_p.
26242
262432007-07-25 Glenn Morris <rgm@gnu.org>
26244
26245 * Relicense all FSF files to GPLv3 or later.
26246
26247 * COPYING: Switch to GPLv3.
26248
262492007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26250
26251 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26252
26253 * data.c (Finteractive_form): Check for the presence of an
26254 `interactive-form' symbol property more thoroughly.
26255
26256 * data.c (Finteractive_form): Use an `interactive-form' property if
26257 present, analogous to the function-documentation property.
26258
262592007-07-24 Jason Rumney <jasonr@gnu.org>
26260
26261 * w32fns.c (x_real_positions): Get real position from OS instead of
26262 calculating it.
26263
262642007-07-23 Jason Rumney <jasonr@gnu.org>
26265
26266 * filelock.c (current_lock_owner): Allow for @ sign in username.
26267
262682007-07-22 Nick Roberts <nickrob@snap.net.nz>
26269
26270 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26271 remote default-directory.
26272
26273 * buffer.c (mode-line-format): Describe above case in doc string.
26274
262752007-07-20 Eli Zaretskii <eliz@gnu.org>
26276
26277 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26278 Define if not defined.
26279
262802007-07-18 Jason Rumney <jasonr@gnu.org>
26281
26282 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26283
262842007-07-18 Richard Stallman <rms@gnu.org>
26285
26286 * data.c (Fsetq_default): Doc fix.
26287
26288 * eval.c (Fsetq): Doc fix.
26289
262902007-07-18 Juanma Barranquero <lekktu@gmail.com>
26291
26292 * coding.c (Ffind_operation_coding_system):
26293 * eval.c (For, Fand): Doc fixes.
26294 Reported by Johan Bockgård.
26295
262962007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26297
26298 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26299
26300 * xterm.h: Declare x_ewmh_activate_frame.
26301
26302 * xterm.c (x_ewmh_activate_frame): New function.
26303 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26304
263052007-07-17 Martin Rudalics <rudalics@gmx.at>
26306
26307 * window.c (Fdisplay_buffer): If largest or LRU window is the
26308 only window, split it even if it is not eligible for splitting.
26309 This restores the original behavior broken by the 2007-07-15
26310 change.
26311
263122007-07-17 Glenn Morris <rgm@gnu.org>
26313
26314 * abbrev.c (abbrev_check_chars): New function.
26315 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26316 Call abbrev_check_chars to check abbrev characters are word
26317 constituents. Doc fix.
26318
263192007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26320
26321 * process.c (Fstart_process, Fmake_network_process)
26322 (read_process_output): Fix up last changes.
26323
263242007-07-16 Eli Zaretskii <eliz@gnu.org>
26325
26326 * makefile.w32-in (clean): Don't delete *~.
26327
263282007-07-16 Andreas Schwab <schwab@suse.de>
26329
26330 * window.c (Fdisplay_buffer): Use NILP.
26331 (Fset_window_scroll_bars): Likewise.
26332
263332007-07-15 Martin Rudalics <rudalics@gmx.at>
26334
26335 * window.c (window_min_size_2): New function.
26336 (window_min_size_1, size_window, Fdisplay_buffer)
26337 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26338 windows without mode- or header-lines when window-min-height is
26339 too small.
26340 (size_window): Reset nodelete_p after testing it, following an
26341 earlier note by Kim F. Storm.
26342 (display_buffer): Do not set split_height_threshold to twice the
26343 value of window_min_height to avoid changing the value of a
26344 customizable variable. Rather explicitly check whether the
26345 height of the window that shall be splitted is at least as large
26346 as split_height_threshold.
26347 (Fwindow_full_width_p): New defun.
26348 (syms_of_window): Defsubr it.
26349
26350 * window.h: Add EXFUN for Fwindow_full_width_p.
26351
263522007-07-14 Jason Rumney <jasonr@gnu.org>
26353
26354 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26355
263562007-07-14 Richard Stallman <rms@gnu.org>
26357
26358 * eval.c (maybe_call_debugger): New function.
26359 (find_handler_clause): Use maybe_call_debugger.
26360 Call it when the handler says `debug'.
26361 Eliminate DEBUGGER_VALUE_PTR.
26362 (Fsignal): Eliminate debugger_value.
26363 (Qdebug): New variable.
26364 (syms_of_eval): Initialize it.
26365
263662007-07-14 Juanma Barranquero <lekktu@gmail.com>
26367
26368 * eval.c (Fprogn):
26369 * keyboard.c (Ftrack_mouse):
26370 * print.c (Fwith_output_to_temp_buffer):
26371 * window.c (Fsave_window_excursion): Doc fix.
26372
263732007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26374
26375 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26376
263772007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26378
26379 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26380 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26381 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26382 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26383 Remove unused encoding_carryover.
26384 * process.c: Adjust all functions accordingly.
26385
263862007-07-12 Richard Stallman <rms@gnu.org>
26387
26388 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26389
263902007-07-11 Jason Rumney <jasonr@gnu.org>
26391
26392 * makefile.w32-in (LIBS): Include OLE32.
26393
26394 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26395 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26396
263972007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26398
26399 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26400 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26401 from a Lisp_Object into a bare pointer.
26402 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26403 Adjust the code correspondingly.
26404
26405 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26406
26407 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26408 (term_show_mouse_face): Remove unused var `j'.
26409 (handle_one_term_event): Remove unused vars `i' and `j'.
26410 Don't cast return value of ttyname since it's not necessary.
26411
264122007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26413
26414 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26415 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26416
26417 * fns.c (map_char_table): Use an array of int for `indices' rather than
26418 an array of Lisp_Objects (which are only ever integers anyway).
26419 (Fmap_char_table): Update caller.
26420 * lisp.h: Update prototype.
26421 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26422 * fontset.c (Ffontset_info):
26423 * casetab.c (set_case_table): Update callers.
26424
26425 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26426
26427 * keymap.c (struct accessible_keymaps_data)
26428 (struct where_is_internal_data): New structures.
26429 (accessible_keymaps_1, where_is_internal_1): Use them to change
26430 interface to adhere to the one used by map_keymap.
26431 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26432 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26433
26434 * keymap.h (map_keymap_function_t): More informative prototype.
26435
264362007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26437
26438 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26439 (looking_at_1): Don't change search_regs and last_thing_searched
26440 if `inhibit-changing-match-data' is non-nil.
26441 (string_match_1, search_buffer, set_search_regs): Likewise.
26442 (syms_of_search): Add Lisp level definition for
26443 `inhibit-changing-match-data' and set it to nil.
26444 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26445 start and end of the match, instead of using values in search_regs.
26446
264472007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26448
26449 * minibuf.c (Fcompleting_read): New value `confirm-only'
26450 for `require-match'.
26451
264522007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26453
26454 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26455 part of the 2007-06-27 change to syms_of_fileio.
26456
264572007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26458
26459 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26460 Check WINDOWP before using XWINDOW. Consolidate return statements.
26461
264622007-06-27 Richard Stallman <rms@gnu.org>
26463
26464 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26465
264662007-06-27 Juanma Barranquero <lekktu@gmail.com>
26467
26468 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26469
264702007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26471
26472 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26473 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26474 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26475 (_free_internal, memalign): Use them.
26476 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26477 Initialize to PTHREAD_MUTEX_INITIALIZER.
26478 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26479 (morecore_nolock): Rename from morecore. All uses changed.
26480 Use only nolock versions of internal allocation functions.
26481 (_malloc_internal_nolock, _realloc_internal_nolock)
26482 (_free_internal_nolock): New functions created from
26483 _malloc_internal, _realloc_internal, and _free_internal.
26484 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26485 Copy hook value to automatic variable before its use.
26486 (memalign): Copy hook value to automatic variable before its use.
26487
264882007-06-26 Kenichi Handa <handa@m17n.org>
26489
26490 * coding.c (Ffind_operation_coding_system): Docstring improved.
26491 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26492
264932007-06-25 David Kastrup <dak@gnu.org>
26494
26495 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26496 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26497 cater for additional parameter.
26498
26499 * keymap.h: Adjust number of parameters to `current-active-maps'.
26500
26501 * doc.c (Fsubstitute_command_keys): Adjust call of
26502 `current-active-maps'.
26503
265042007-06-25 David Kastrup <dak@gnu.org>
26505
26506 * callint.c (Fcall_interactively): Make the parsing of interactive
26507 specs somewhat more readable.
26508
265092007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26510
26511 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26512 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26513 if extended background has already been filled.
26514
265152007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26516
26517 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26518 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26519
26520 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26521 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26522 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26523 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26524 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26525 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26526 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26527 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26528 Run timers during dialog popup.
26529 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26530
265312007-06-21 Jason Rumney <jasonr@gnu.org>
26532
26533 * image.c (convert_mono_to_color_image): Swap fore and background.
26534
265352007-06-20 Jason Rumney <jasonr@gnu.org>
26536
26537 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26538 (w32_free_bdf_font): Unmap memory not handle.
26539
265402007-06-20 Sam Steingold <sds@gnu.org>
26541
26542 * gmalloc.c (__morecore): Fix the declaration to comply with the
26543 definition.
26544
265452007-06-20 Juanma Barranquero <lekktu@gmail.com>
26546
26547 * w32term.c (w32_delete_display): Remove leftover declaration.
26548 (w32_define_cursor, w32_initialize): Make static.
26549
26550 * w32.c (_wsa_errlist): Fix typo in error message.
26551 (init_environment): Ignore any environment variable from the
26552 registry having a null value.
26553
265542007-06-20 Glenn Morris <rgm@gnu.org>
26555
26556 * Makefile.in (LIBGIF): Default to -lgif.
26557
265582007-06-17 Jason Rumney <jasonr@gnu.org>
26559
26560 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26561 unicode strings.
26562
265632007-06-16 Juanma Barranquero <lekktu@gmail.com>
26564
26565 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26566 Fix typo in docstring.
26567
265682007-06-16 Eli Zaretskii <eliz@gnu.org>
26569
26570 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26571 and their keybindings.
26572
265732007-06-15 Chong Yidong <cyd@stupidchicken.com>
26574
26575 * composite.c (update_compositions): Fix last fix.
26576
265772007-06-14 Jason Rumney <jasonr@gnu.org>
26578
26579 * w32.c (get_process_times_fn): New function pointer.
26580 (globals_of_w32): Intialize it if present in kernel32.dll.
26581 (w32_get_internal_run_time): New function.
26582
26583 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26584
265852007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26586
26587 * composite.c (update_compositions): Check the validness of
26588 compositions.
26589
265902007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26591
26592 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26593 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26594
26595 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26596 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26597
26598 * macgui.h (USE_MAC_TOOLBAR): New define.
26599
26600 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26601 Return immediately unless popup is activated.
26602
26603 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26604 background to scroll bar gap.
26605 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26606 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26607 scroll bars on frame edge. Check fringe background extension.
26608 Don't clear extended fringe background area.
26609 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26610 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26611 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26612 [USE_MAC_TOOLBAR]: New macros.
26613 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26614 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26615 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26616 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26617 [USE_MAC_TOOLBAR]: New functions.
26618 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26619 manually if previous repositioning has failed.
26620 (mac_handle_keyboard_event): Use precomputed event kind.
26621 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26622 as tool bar item click. Handle mouse movement over tool bar items.
26623
26624 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26625 toolbar_win_gravity.
26626 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26627 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26628 Add externs.
26629
26630 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26631 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26632
266332007-06-14 Chong Yidong <cyd@stupidchicken.com>
26634
26635 * image.c (search_image_cache): Remove unused variable.
26636
266372007-06-13 Chong Yidong <cyd@stupidchicken.com>
26638
26639 * xfns.c, xmenu.c: Link to xaw3d if available.
26640
266412007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26642
26643 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26644 frame_foreground and frame_background.
26645
26646 * image.c (lookup_image): Save frame foreground and background colors.
26647 (search_image_cache): Check if saved and current frame colors match.
26648
266492007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26650
26651 * regex.c (regex_compile): Remove the `regnum' counter.
26652 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26653
266542007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26655
26656 * term.c: Include intervals.h to declare Fget_text_property.
26657
266582007-06-10 Jason Rumney <jasonr@gnu.org>
26659
26660 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26661
266622007-06-08 Juanma Barranquero <lekktu@gmail.com>
26663
26664 * callint.c (Fcall_interactively):
26665 * editfns.c (Fdelete_and_extract_region):
26666 * fileio.c (Fread_file_name):
26667 * fns.c (Fmapconcat):
26668 * keyboard.c (cmd_error_internal):
26669 * keymap.c (Fkey_description):
26670 * lread.c (openp):
26671 * minibuf.c (read_minibuf):
26672 * search.c (wordify):
26673 * sunfns.c (sel_read):
26674 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26675 * xfns.c (x_default_scroll_bar_color_parameter):
26676 * xmenu.c (menu_help_callback):
26677 * xselect.c (Fx_get_atom_name):
26678 * xterm.c (x_term_init): Use empty_unibyte_string.
26679
266802007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26681
26682 * alloc.c (init_strings): Initialize canonical empty strings.
26683 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26684 canonical empty string when the requested size is 0.
26685
26686 * emacs.c (empty_unibyte_string): Rename from empty_string.
26687 (empty_multibyte_string): New canonical empty string.
26688 (syms_of_emacs): Don't initialize empty_string.
26689
26690 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26691 string, if appropriate.
26692 (empty_unibyte_string, empty_multibyte_string): New externs.
26693 (empty_string): Remove extern.
26694
26695 * lread.c (syms_of_lread): Use empty_unibyte_string.
26696
266972007-06-07 Jason Rumney <jasonr@gnu.org>
26698
26699 * s/ms-w32.h: Don't define HAVE_TZNAME.
26700
26701 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26702
267032007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26704
26705 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26706
26707 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26708 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26709
26710 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26711 Don't call next handler.
26712 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26713 Remove argument. Install handler to application.
26714 (set_frame_menubar): Don't change deep_p.
26715 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26716 FRAME_OUTER_TO_INNER_DIFF_Y.
26717 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26718 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26719 [HAVE_DIALOGS]: New macros.
26720 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26721 Use them.
26722 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26723
26724 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26725 init_service_handler. All callers changed. Return OSStatus value.
26726
26727 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26728 All callers changed so as not to call SetPortWindowPort.
26729 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26730 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26731 mac_draw_string_common.
26732 (mac_draw_image_string_qd): Likewise.
26733 (mac_draw_string_common): Use them. Add INLINE.
26734 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26735 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26736 GetGlobalMouse.
26737 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26738 and FRAME_OUTER_TO_INNER_DIFF_Y.
26739 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26740 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26741 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26742 repositioning window to mac_handle_window_event.
26743 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26744 saving window location to mac_handle_window_event
26745 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26746 (install_menu_target_item_handler): Remove argument in extern.
26747 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26748 Also accept command events.
26749 (do_keystroke): New function created from XTread_socket.
26750 (init_command_handler): Remove functions.
26751 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26752 and save window location by kEventWindowShowing and kEventWindowHiding
26753 handlers here. Don't call next handler for window state change and
26754 focus events.
26755 (mac_handle_application_event, mac_handle_keyboard_event)
26756 [TARGET_API_MAC_CARBON]: New functions.
26757 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26758 kEventWindowShowing and kEventWindowHiding events. Move installation
26759 of mouse, font, text input and menu target item handlers to
26760 install_application_handler.
26761 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26762 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26763 New function.
26764 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26765 Register it.
26766 (XTread_socket) [TARGET_API_MAC_CARBON]:
26767 Consolidate SendEventToEventTarget calls.
26768 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26769 Move application activation handler to mac_handle_application_event.
26770 Move keyboard handler to mac_handle_keyboard_event.
26771 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26772 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26773 init_command_handler. Call install_application_handler.
26774
26775 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26776 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26777
267782007-06-07 Glenn Morris <rgm@gnu.org>
26779
26780 * emacs.c (main): Use `emacs-copyright' in --version output.
26781
267822007-06-06 Chong Yidong <cyd@stupidchicken.com>
26783
26784 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26785
267862007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26787
26788 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26789
26790 * macgui.h: Replace WindowPtr with WindowRef.
26791
26792 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26793 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26794 Replace ControlHandle with ControlRef.
26795 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26796
26797 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26798 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26799 Replace ControlHandle with ControlRef.
26800 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26801 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26802
26803 * macterm.h (struct scroll_bar): Rename member control_handle_low
26804 and control_handle_high to control_ref_low and control_ref_high.
26805 All uses changed.
26806 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26807 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26808 respectively. All uses changed.
26809 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26810 (install_window_handler, remove_window_handler): Replace WindowPtr
26811 with WindowRef in externs.
26812
268132007-06-05 Juanma Barranquero <lekktu@gmail.com>
26814
26815 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26816
268172007-06-03 Nick Roberts <nickrob@snap.net.nz>
26818
26819 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26820
26821 * frame.c (Fmouse_position, Fmouse_pixel_position):
26822 Condition on HAVE_GPM too.
26823
26824 * term.c (term_mouse_highlight): Remove unused variables.
26825 (Fterm_open_connection): Set gpm_zerobased to 1.
26826 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26827 Use zero based co-ordinates.
26828 (handle_one_term_event): Report a drag as mouse movement too.
26829
26830 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26831
268322007-06-03 Chong Yidong <cyd@stupidchicken.com>
26833
26834 * image.c (search_image_cache): New function. Require background
26835 color match if background color is unspecified in the image spec.
26836 (uncache_image, lookup_image): Use it.
26837
268382007-06-01 Juanma Barranquero <lekktu@gmail.com>
26839
26840 * window.c (Fshrink_window): Reflow docstring.
26841
268422007-06-02 Chong Yidong <cyd@stupidchicken.com>
26843
26844 * Version 22.1 released.
26845
268462007-06-01 Richard Stallman <rms@gnu.org>
26847
26848 * xfns.c (x_encode_text): Add GCPRO.
26849
268502007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26851
26852 * xfns.c (x_set_name_internal): Save encoded name before
26853 x_encode_text in case string data is relocated.
26854
268552007-05-31 Richard Stallman <rms@gnu.org>
26856
26857 * buffer.c (syms_of_buffer): Doc fix.
26858
268592007-05-30 Nick Roberts <nickrob@snap.net.nz>
26860
26861 * sysdep.c (init_sys_modes): Add rather than replace with
26862 O_NONBLOCK.
26863
26864 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26865 term_mouse_moveto.
26866
26867 * termhooks.h (term_mouse_moveto): New extern.
26868
26869 * term.c (mouse_face_window): Rename...
26870 (Qmouse_face_window): ...to this.
26871 (term_show_mouse_face, term_clear_mouse_face)
26872 (term_mouse_highlight): Use Qmouse_face_window.
26873 (term_mouse_moveto): New function.
26874 (term_mouse_position): Make it work.
26875 (syms_of_term): Uncomment assignment to mouse_position_hook.
26876 Staticpro Qmouse_face_window.
26877
268782007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26879
26880 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26881 around current_column call.
26882
268832007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26884
26885 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26886 * xdisp.c (next_element_from_buffer):
26887 * window.c (delete_window):
26888 * term.c (term_mouse_highlight):
26889 * msdos.c (getdefdir):
26890 * macterm.c (mac_create_bitmap_from_bitmap_data)
26891 (init_font_name_table):
26892 * fns.c (Fsxhash):
26893 * data.c (Fmake_local_variable):
26894 * ccl.c (ccl_driver): Likewise.
26895
268962007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26897
26898 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26899 Call mac_wakeup_from_rne on window size change.
26900
269012007-05-25 Chong Yidong <cyd@stupidchicken.com>
26902
26903 * image.c (uncache_image): Fix typo.
26904
269052007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26906
26907 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26908
269092007-05-22 Richard Stallman <rms@gnu.org>
26910
26911 * xterm.c (x_connection_closed): Remove NO_RETURN.
26912
269132007-05-22 Martin Rudalics <rudalics@gmx.at>
26914
26915 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26916
269172007-05-21 Chong Yidong <cyd@stupidchicken.com>
26918
26919 * image.c (uncache_image): New function.
26920 (Fimage_refresh): New function.
26921
269222007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26923
26924 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26925
269262007-05-20 Nick Roberts <nickrob@snap.net.nz>
26927
26928 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26929 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26930
269312007-05-20 Nick Roberts <nickrob@snap.net.nz>
26932
26933 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26934 conditional on [HAVE_GPM_H].
26935
269362007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26937
26938 * syntax.c (skip_chars): Update syntax-table only after we checked that
26939 the new location is valid.
26940
269412007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26942
26943 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26944 mac_get_window_bounds.
26945
269462007-05-20 Nick Roberts <nickrob@snap.net.nz>
26947
26948 * Makefile.in (LIBGPM): Allow it to be set from configure.
26949 If set then link Emacs with it.
26950
26951 * config.in: Regenerate.
26952
26953 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26954 New externs.
26955
26956 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26957 Include gpm.h.
26958 (handle_one_term_event, term_gpm): New externs.
26959
26960 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26961 and allow it to be interrupted by SIGIO.
26962
26963 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26964 (wait_reading_process_output): Wait on gpm_fd too.
26965 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26966 (add_gpm_wait_descriptor_called_flag): New variable.
26967 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26968
26969 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26970 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26971 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26972 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26973 (make_lispy_event): Add case GPM_CLICK_EVENT.
26974 (read_avail_input): Handle mouse input.
26975
26976 * term.c (write_glyphs_with_face): New function.
26977 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26978 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26979 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26980 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26981 (last_mouse_x, last_mouse_y): New variables.
26982 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26983 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26984 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26985 (Fterm_close_connection): New functions.
26986 (term_init): Initialise mouse_face_window.
26987
269882007-05-19 Chong Yidong <cyd@stupidchicken.com>
26989
26990 * xdisp.c (redisplay_window): If first window line is a
26991 continuation line, recompute the new window start instead of
26992 recentering.
26993
269942007-05-18 Glenn Morris <rgm@gnu.org>
26995
26996 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26997 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26998
269992007-05-17 Glenn Morris <rgm@gnu.org>
27000
27001 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27002
270032007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27004
27005 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27006 dead key repeat and up events.
27007
270082007-05-14 Chong Yidong <cyd@stupidchicken.com>
27009
27010 * image.c (pbm_load): Check image size for monochrome pbm.
27011
270122007-05-13 Chong Yidong <cyd@stupidchicken.com>
27013
27014 * xterm.c (XTread_socket): Revert last change.
27015
270162007-05-12 Chong Yidong <cyd@stupidchicken.com>
27017
27018 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27019
27020 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27021
270222007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27023
27024 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27025 mixup (YAILOM).
27026
270272007-05-07 Andreas Schwab <schwab@suse.de>
27028
27029 * keymap.c (Flookup_key): Fix typo in last change.
27030
270312007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27032
27033 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27034 mapping for unibyte strings.
27035
270362007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27037
27038 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27039 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27040
270412007-04-29 Richard Stallman <rms@gnu.org>
27042
27043 * insdel.c (replace_range): For undo, record insertion first.
27044
270452007-04-29 Andreas Schwab <schwab@suse.de>
27046
27047 * lisp.h (VECSIZE): Use OFFSETOF.
27048
270492007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27050
27051 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27052 disabled lines.
27053
270542007-04-28 Richard Stallman <rms@gnu.org>
27055
27056 * lread.c (read_escape): In a string, \s is always space.
27057
270582007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27059
27060 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27061
27062 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27063 submenu for menu bar items.
27064
27065See ChangeLog.10 for earlier changes.
27066
27067;; Local Variables:
27068;; coding: utf-8
27069;; add-log-time-zone-rule: t
aac0c6e3
MR
27070;; End:
27071
e3eb1dae 27072 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
27073
27074 This file is part of GNU Emacs.
27075
27076 GNU Emacs is free software: you can redistribute it and/or modify
27077 it under the terms of the GNU General Public License as published by
27078 the Free Software Foundation, either version 3 of the License, or
27079 (at your option) any later version.
27080
27081 GNU Emacs is distributed in the hope that it will be useful,
27082 but WITHOUT ANY WARRANTY; without even the implied warranty of
27083 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27084 GNU General Public License for more details.
27085
27086 You should have received a copy of the GNU General Public License
27087 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27088
27089;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40